Skip to content

Commit fb2e238

Browse files
Release v0.0.123
1 parent 7447fe1 commit fb2e238

6 files changed

Lines changed: 14 additions & 10 deletions

File tree

dist/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48538,7 +48538,7 @@ var SchemaDesigner = class {
4853848538
configureMxOutline() {
4853948539
this._outlineContainer = document.createElement("div");
4854048540
this._outlineContainer.classList.add("sd-outline");
48541-
this.container.appendChild(this._outlineContainer);
48541+
this.container.parentElement.appendChild(this._outlineContainer);
4854248542
this.mxOutline = new mxGraphFactory.mxOutline(this.mxGraph, this._outlineContainer);
4854348543
}
4854448544
/**
@@ -48547,7 +48547,6 @@ var SchemaDesigner = class {
4854748547
initializeToolbar() {
4854848548
const toolbarBelt = document.createElement("div");
4854948549
toolbarBelt.classList.add("sd-toolbar-belt");
48550-
this.container.parentElement.appendChild(toolbarBelt);
4855148550
this.toolbar = new SchemaDesignerToolbar(toolbarBelt, this.mxGraph, this.config);
4855248551
if (this.config.isEditable) {
4855348552
this.toolbar.addButton(
@@ -48656,6 +48655,8 @@ var SchemaDesigner = class {
4865648655
}
4865748656
if (this.config.showToolbar === false) {
4865848657
toolbarBelt.style.display = "none";
48658+
} else {
48659+
this.container.parentElement.appendChild(toolbarBelt);
4865948660
}
4866048661
}
4866148662
/**

dist/index.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/src/ts/schemaDesigner/schemaDesigner.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ class SchemaDesigner {
455455
configureMxOutline() {
456456
this._outlineContainer = document.createElement("div");
457457
this._outlineContainer.classList.add("sd-outline");
458-
this.container.appendChild(this._outlineContainer);
458+
this.container.parentElement.appendChild(this._outlineContainer);
459459
this.mxOutline = new mx_1.mxGraphFactory.mxOutline(this.mxGraph, this._outlineContainer);
460460
}
461461
/**
@@ -464,7 +464,6 @@ class SchemaDesigner {
464464
initializeToolbar() {
465465
const toolbarBelt = document.createElement("div");
466466
toolbarBelt.classList.add("sd-toolbar-belt");
467-
this.container.parentElement.appendChild(toolbarBelt);
468467
this.toolbar = new schemaDesignerToolbar_1.SchemaDesignerToolbar(toolbarBelt, this.mxGraph, this.config);
469468
if (this.config.isEditable) {
470469
this.toolbar.addButton(this.config.icons.addTableIcon, "Add Table", () => {
@@ -534,6 +533,9 @@ class SchemaDesigner {
534533
if (this.config.showToolbar === false) {
535534
toolbarBelt.style.display = "none";
536535
}
536+
else {
537+
this.container.parentElement.appendChild(toolbarBelt);
538+
}
537539
}
538540
/**
539541
* Zoom in the schema designer

dist/tsconfig.tsbuildinfo

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "azdataGraph",
33
"description": "azdataGraph is a derivative of mxGraph, which is a fully client side JavaScript diagramming library that uses SVG and HTML for rendering.",
4-
"version": "0.0.122",
4+
"version": "0.0.123",
55
"homepage": "https://github.com/microsoft/azdataGraph",
66
"author": "Microsoft",
77
"license": "Apache-2.0",

src/ts/schemaDesigner/schemaDesigner.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ export class SchemaDesigner {
498498
private configureMxOutline() {
499499
this._outlineContainer = document.createElement("div");
500500
this._outlineContainer.classList.add("sd-outline");
501-
this.container.appendChild(this._outlineContainer);
501+
(this.container.parentElement as HTMLElement).appendChild(this._outlineContainer);
502502
this.mxOutline = new mx.mxOutline(this.mxGraph, this._outlineContainer);
503503
}
504504

@@ -508,7 +508,6 @@ export class SchemaDesigner {
508508
private initializeToolbar() {
509509
const toolbarBelt = document.createElement("div");
510510
toolbarBelt.classList.add("sd-toolbar-belt");
511-
(this.container.parentElement as HTMLElement).appendChild(toolbarBelt);
512511
this.toolbar = new SchemaDesignerToolbar(toolbarBelt, this.mxGraph, this.config);
513512
if (this.config.isEditable) {
514513
this.toolbar.addButton(
@@ -626,6 +625,8 @@ export class SchemaDesigner {
626625

627626
if (this.config.showToolbar === false) {
628627
toolbarBelt.style.display = "none";
628+
} else {
629+
(this.container.parentElement as HTMLElement).appendChild(toolbarBelt);
629630
}
630631
}
631632

0 commit comments

Comments
 (0)