animations

animations.edgeFlow

edgeFlow(edgeIds: string | string[], config?: EdgeFlowConfig): string

Start a flow particle animation on one or more edges (particles travel along edge paths).

Default: loop: true (particles flow continuously until stopped). Pass loop: false with a positive duration for a one-shot burst.

Not undoable. Not recorded in history.

edgeIdsstring | string[]One or more edge IDs to animate.
configEdgeFlowConfigOptional EdgeFlowConfig (speed, color, density, loop, duration).

Returns: string

Example

const id = api.animations.edgeFlow(["e1", "e2"], { speed: 2.0 });
// flows indefinitely; stop when done:
api.animations.stop(id);