Skip to content

Commit c3513dd

Browse files
committed
centering nodes when creating them
1 parent fa01616 commit c3513dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/event-handlers/component-manipulation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export class GraphNodeFactory {
6666
this.addPhysicalNodeData(network, nodeData);
6767
break;
6868
}
69+
network._graph.center();
6970
}
7071

7172
private static addNetNode(network: NetworkComponent): void {

0 commit comments

Comments
 (0)