diff --git a/editor/js/graph.js b/editor/js/graph.js index d5a67651f417cd0290cb0e29d949e744d9ffe83c..d93015a869c80a8892526c8ea2ef6f6926191677 100644 --- a/editor/js/graph.js +++ b/editor/js/graph.js @@ -63,19 +63,9 @@ export class Graph extends ManagedData { if (this.graphRenderer !== undefined) { - this.graphRenderer.graphData(this.getCleanData(this.data, false)); + this.data = Graph.addIdentifiers(this.getCleanData(this.data, false)); + this.triggerOnChange(); } - // this.onChangeCallbacks.forEach((fn) => fn(this.getCleanData(this.data, false))); - // if (this.graphRenderer !== undefined) { - // this.data[GRAPH_NODES].forEach((n) => { - // n.x /= 10; - // n.y /= 10; - // n.fx = undefined; - // n.fy = undefined; - // }); - - // this.graphRenderer.d3ReheatSimulation(); - // } // Deactivate physics after a short delay this.physicsStopTimeoutId = setTimeout(() => {