-
Notifications
You must be signed in to change notification settings - Fork 797
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set zoom level(initial,min , max)?? #20
Comments
@shikharka the initial zoom level is calculated based on the number of nodes in the system, in a cubic relationship. There is no way currently to specify zoom max/min boundaries programmatically from outside the component. |
It will be a good to have feature |
@shikharka from
|
Thanks! will check |
Hello, and is ther any wat to tell the graph not to move? I mean, the first time it'is like the 3D grapgh flies away from my div... |
By exposing tbControls like you exposed camera and scene I was able to set the min and max zoom and also disable rotation which I needed to display a 2D graph. Could you maybe expose this, so that my code doesn't differ from the one on repository. Thank you, |
Hi, can you please explain how you set min and max zoom. |
@shaliniBITC you can access the various config of TrackballControls via the myGraph.controls().maxDistance = 2000; |
No description provided.
The text was updated successfully, but these errors were encountered: