@sigma/utils
v4.0.0
Published
A set of utils functions to ease the use of sigma.js
Downloads
37,677
Readme
Sigma.js - Utils
This package contains various utils functions to ease the use of sigma.js, and expose some code snippets that are very useful, but are not important and complex enough to deserve their own package.
fitViewportToNodes and getCameraStateToFitViewportToNodes
These functions allow moving a sigma instance's camera so that it fits to a given group of nodes.
getNodesInViewport
This function allows retrieving the list of nodes that are visible (even partially) in the current viewport.
Please check the website examples for more advanced examples.
