Skip to content
Snippets Groups Projects
Commit aae48a41 authored by Maximilian Giller's avatar Maximilian Giller :squid:
Browse files

Removed unnecessary connection between graph and 2d-force-graph

parent 557db035
No related branches found
No related tags found
No related merge requests found
Pipeline #51633 passed
......@@ -78,6 +78,4 @@ function load() {
graph.onChangeCallbacks.push((data) => {
graphObj.graphData(data);
});
graph.setRenderer(graphObj);
}
......@@ -49,11 +49,6 @@ export class Graph extends ManagedData {
this.onChangeCallbacks = [];
this.physicsDelay = STOP_PHYSICS_DELAY;
this.physicsStopTimeoutId = undefined;
this.graphRenderer = undefined;
}
setRenderer(graphRenderer) {
this.graphRenderer = graphRenderer;
}
restartSimulation() {
......@@ -62,10 +57,8 @@ export class Graph extends ManagedData {
}
if (this.graphRenderer !== undefined) {
this.data = Graph.addIdentifiers(this.getCleanData(this.data, false));
this.triggerOnChange();
}
this.data = Graph.addIdentifiers(this.getCleanData(this.data, false));
this.triggerOnChange();
// Deactivate physics after a short delay
this.physicsStopTimeoutId = setTimeout(() => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment