|
@@ -533,6 +533,7 @@ export class GraphFrame {
|
|
|
if (index === -1) {
|
|
|
return;
|
|
|
} else {
|
|
|
+ node.enclosingFrameId = -1;
|
|
|
this._nodes.splice(index, 1);
|
|
|
}
|
|
|
});
|
|
@@ -575,8 +576,8 @@ export class GraphFrame {
|
|
|
|
|
|
public removeNode(node: GraphNode) {
|
|
|
let index = this.nodes.indexOf(node);
|
|
|
-
|
|
|
if (index > -1) {
|
|
|
+ node.enclosingFrameId = -1;
|
|
|
this.nodes.splice(index, 1);
|
|
|
}
|
|
|
}
|
|
@@ -1266,6 +1267,10 @@ export class GraphFrame {
|
|
|
|
|
|
public dispose() {
|
|
|
this.isCollapsed = false;
|
|
|
+
|
|
|
+ this._nodes.forEach(node => {
|
|
|
+ node.enclosingFrameId = -1;
|
|
|
+ });
|
|
|
|
|
|
if (this._onSelectionChangedObserver) {
|
|
|
this._ownerCanvas.globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver);
|