layout.scatter
scatter(nodeIds?: string[], options?: ScatterLayoutOptions): Promise<void>Scatter nodes randomly in 3-D space.
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 | ScatterLayoutOptions | Bounding box size and seed parameters. |
Returns: Promise<void>
Example
await api.layout.scatter();
await api.camera.flyToAll();