Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/views/orb-map-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,6 @@ export class OrbMapView<N extends INodeBase, E extends IEdgeBase> implements IOr
if (this._renderer.isInitiallyRendered) {
this._leaflet.invalidateSize(false);
this._renderer.render(this._graph);
this.recenter();
}
}

Expand Down
9 changes: 0 additions & 9 deletions src/views/orb-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ export class OrbView<N extends INodeBase, E extends IEdgeBase> implements IOrbVi
this._simulator.on(SimulatorEventType.SIMULATION_END, (data) => {
this._graph.setNodePositions(data.nodes);
this.render();
this.recenter();
// this._isSimulating = false;
this._onSimulationEnd?.();
this._onSimulationEnd = undefined;
Expand Down Expand Up @@ -212,16 +211,9 @@ export class OrbView<N extends INodeBase, E extends IEdgeBase> implements IOrbVi
const edgePositions = this._graph.getEdgePositions(edgeFilter);

this._simulator.mergeData({ nodes: nodePositions, edges: edgePositions });
// this._simulator.simulate();
},
onRemoveData: (data) => {
this._simulator.deleteData(data);
/*
const nodePositions = this._graph.getNodePositions();
const edgePositions = this._graph.getEdgePositions();
this._simulator.updateData({ nodes: nodePositions, edges: edgePositions });
this.render();
*/
},
});
}
Expand Down Expand Up @@ -618,7 +610,6 @@ export class OrbView<N extends INodeBase, E extends IEdgeBase> implements IOrbVi
this._renderer.height = containerSize.height;
if (this._renderer.isInitiallyRendered) {
this._renderer.render(this._graph);
this.recenter();
}
}

Expand Down