Skip to content
Merged
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
11 changes: 10 additions & 1 deletion workspaces/vis-network/src/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,11 @@ export default class NodeSecureNetwork {


this.nodes.update(Object.values(allNodes));
this.network.focus(selectedNode, {
animation: true,
scale: 0.35,
offset: { x: 250, y: 0 }
});
this.network.stopSimulation();

return true;
Expand Down Expand Up @@ -421,7 +426,11 @@ export default class NodeSecureNetwork {
}

// offset set to 250 to compensate for the package info slide in on the left of screen
this.network.focus(selectedNode, { animation: true, scale: 0.35, offset: { x: 250, y: 0 } });
this.network.focus(selectedNode, {
animation: true,
scale: 0.35,
offset: { x: 250, y: 0 }
});
}
else if (this.highlightEnabled) {
this.highlightEnabled = false;
Expand Down