We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a0b1a90 + 29a2c4a commit f4c3429Copy full SHA for f4c3429
1 file changed
src/graph-builder/graph-core/2-canvas.js
@@ -8,6 +8,7 @@ class GraphCanvas extends Core {
8
resetZoom() {
9
this.cy.reset();
10
this.cy.center();
11
+ this.dispatcher({ type: T.SET_ZOOM_LEVEL, payload: this.getZoom() });
12
}
13
14
setOnZoom(cb) {
@@ -18,6 +19,7 @@ class GraphCanvas extends Core {
18
19
20
fitZoom() {
21
this.cy.fit();
22
23
24
25
setZoom(v) {
0 commit comments