Skip to content

Commit 57c1002

Browse files
authored
Merge pull request #156 from parteekcoder/focus-fix
reset Zoom
2 parents 30503ad + 0896a3d commit 57c1002

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)