Open W-HanYu opened 1 week ago
@vasturiano thanks for reaching out.
zoomToFit
is a component method for react-force-graph-2d
. In fact, you can see it working in this example:
https://github.com/vasturiano/react-force-graph/blob/master/example/fit-to-canvas/index.html
If you're having some trouble getting it to work, please provide a simple example on https://codesandbox.io/.
Why can't
zoomTofit
api be used inreact-force-grapg-2d
?