Skip to content

Commit 0896a3d

Browse files
committed
reset Zoom
1 parent 30503ad commit 0896a3d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/graph-builder/graph-core/2-canvas.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ class GraphCanvas extends Core {
77

88
resetZoom() {
99
this.cy.reset();
10+
this.cy.center();
1011
}
1112

1213
setOnZoom(cb) {

0 commit comments

Comments
 (0)