layout.sphere
sphere(nodeIds?: string[], options?: SphereLayoutOptions): Promise<void>Distribute nodes uniformly on the surface of a sphere.
Recorded in history as "SetPositions" or "DragPositions".
Emits "layout:start" and "layout:end".
nodeIds | string[] | Subset of nodes to lay out; defaults to all nodes. |
options | SphereLayoutOptions | Radius and distribution parameters. |
Returns: Promise<void>
Example
await api.layout.sphere();
await api.camera.flyToAll();