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

Initial prototype

parent eb9b0f28
No related branches found
No related tags found
No related merge requests found
Pipeline #51400 passed
...@@ -61,16 +61,21 @@ export class Graph extends ManagedData { ...@@ -61,16 +61,21 @@ export class Graph extends ManagedData {
clearTimeout(this.physicsStopTimeoutId); clearTimeout(this.physicsStopTimeoutId);
} }
if (this.graphRenderer !== undefined) { if (this.graphRenderer !== undefined) {
this.data[GRAPH_NODES].forEach((n) => { this.graphRenderer.graphData(this.getCleanData(this.data, false));
n.x /= 10;
n.y /= 10;
n.fx = undefined;
n.fy = undefined;
});
this.graphRenderer.d3ReheatSimulation();
} }
// 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 // Deactivate physics after a short delay
this.physicsStopTimeoutId = setTimeout(() => { 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