camera.flyToAll
flyToAll(options?: FlyToOptions): Promise<void>Animate the camera to frame all nodes currently in the graph.
Iterates over the flat Float32Array of positions obtained from the bound
CameraPositionSource, computes the overall bounding box, and animates
cloudScene to center and fit the entire graph with 1.5× padding.
Returns immediately if the interaction manager or layout runtime are not yet bound, or if no positions are available.
Not undoable. Does not emit any event.
options | FlyToOptions | Optional animation duration, scale, and z-offset overrides. |
Returns: Promise<void>
Example
await api.camera.flyToAll({ duration: 800 });
- Fly camera to fit all nodes
- Set positions — programmatic placement
- World capitals — geo basemap
- Cinematic flythrough — animation as a reading tool
- Custom node layer — author your own LayerRenderer, inject via api.layers
- Les Misérables — Louvain communities
- Audio-reactive nodes — spectrum as a texture, not as uniforms
- Media components — video, images and audio with no shader
- Image mosaic — N image URLs, one draw call
- Sci-fi HUD — holographic dossier panels and reticles, two draw calls
- Broadcast monitors — a few nodes play video, the rest don't