animations.edgeFlow
edgeFlow(edgeIds: string | string[], config?: EdgeFlowConfig): stringStart 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.
edgeIds | string | string[] | One or more edge IDs to animate. |
config | EdgeFlowConfig | Optional 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);