Graph (cangraph)
Loading
| Name | Detail |
|---|---|
useViewport() | Reads x, y, and zoom from graph state. |
useOnViewportChange(callbacks) | Subscribes to viewport start, change, and end callbacks. |
getNodesBounds(nodes) | Calculates document-space bounds for visible nodes. |
getViewportForBounds(bounds, width, height, padding?) | Computes a viewport that fits bounds into the canvas. |