We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 55f77a9 + df0215d commit 23eeb04Copy full SHA for 23eeb04
1 file changed
src/GraphArea.jsx
@@ -27,6 +27,9 @@ function Graph({
27
}
28
if (graphML) myGraph.setGraphML(graphML);
29
myGraph.setCurStatus();
30
+ myGraph.cy.on('zoom', () => {
31
+ dispatcher({ type: T.SET_ZOOM_LEVEL, payload: (myGraph.cy.zoom() * 100).toFixed(0) });
32
+ });
33
return myGraph;
34
};
35
// Remote server implementation - Not being used.
0 commit comments