Skip to content
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

Camera mouvement #23

Closed
mhebrard opened this issue Jan 9, 2018 · 2 comments
Closed

Camera mouvement #23

mhebrard opened this issue Jan 9, 2018 · 2 comments
Assignees

Comments

@mhebrard
Copy link

mhebrard commented Jan 9, 2018

It could be nice to have access to the camera position.
Let say, when user click on one node, the camera pan at a certain distance of that node.

using onNodeClick(fn) we can trigger an event on click,
but there is no way (as far as I know) to modify the camera position programmatically.

@vasturiano vasturiano self-assigned this Jan 10, 2018
@AmbroiseCouissin
Copy link

Yes, I'd like to have this feature as well. It can get very useful when the graph is getting bigger.
Cheers

@vasturiano
Copy link
Owner

@mhebrard @AmbroiseCouissin from v1.22.0 this is now supported using .cameraPosition({ x, y, z }).

Here's an example of usage.

Let me know if this works for your use case.

@piaaaac piaaaac mentioned this issue Mar 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants