animations
The animations namespace runs decorative GPU motion on existing nodes and
edges: ripples, edge flow, glow, breathe, entrance / explosion, and metric pulse.
Each effect runs in a shader with zero per-frame CPU work.
Every start method returns an opaque effect ID — keep it to stop the effect
later, or stopAll(type?) to clear a family / everything:
const id = api.animations.edgeFlow(edgeIds, { speed: 2.0 });
api.animations.nodeRipple(['s1'], { loop: false, duration: 1200 }); // one-shot
api.animations.stop(id);
api.animations.stopAll();
Five persistent effects (nodeRipple, nodeBreathe, edgeFlow, edgeGlow,
metricPulse) take a loop flag — loop: true (default) runs until stopped;
loop: false self-terminates after duration. Effects are transient and are
not recorded in history.
For attention / focus effects (highlight, cascade, dim) see
api.emphasis. For worked examples, see the
Animations & emphasis guide.