Skip to content

How do I calculate the camera state to zoom to a selection of nodes in the graph #1461

Answered by jacomyal
benny-noumena asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @benny-noumena,

You can now use the fitViewportToNodes helper from the new @sigma/utils package.
You can try it in this story.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@benny-noumena
Comment options

Comment options

You must be logged in to vote
5 replies
@Rich5
Comment options

@jacomyal
Comment options

@Rich5
Comment options

@jacomyal
Comment options

@Rich5
Comment options

Answer selected by jacomyal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants