API

Interface AnimationManager

Owns a set of AnimationTasks and ticks them, either manually or via its own requestAnimationFrame loop.

interface AnimationManager {
    animations: AnimationTask[];
    engine?: EngineContext;
    fixedDeltaMs: number;
    onUpdate?: (deltaMs: number) => void;
    running: boolean;
}
Index
animations: AnimationTask[]
engine?: EngineContext
fixedDeltaMs: number
onUpdate?: (deltaMs: number) => void

Called after each autonomous tick with the step (in ms) that was applied.

running: boolean