Model - Animation
API reference for src/lanes/animations/animation on @huukhanhnguyen/model, reachable from ..
See the Guide for the ModelJSON / evaluate pipeline.
API reference
Signatures are generated from the live package .d.ts - not hand-written.
animatedParameters
function
Recursively collect animated parameters (header containers are display grouping).
animatedParameters(model: PlayerModel): ParameterNode[]animatedParametersFor
function
Interact-tool click resolution: the animated parameters referenced by any expression inside the subtree of the node keyed nodeKey — click the door, only the door's openAngle runs. A model with a single animated parameter resolves to it regardless of what was clicked.
animatedParametersFor(model: PlayerModel, nodeKey: string): ParameterNode[]AnimationPlayer
class
class AnimationPlayerMembers: hasAnimation, onStateChange, playing, seek, stop, toggleAll, toggleParameters
groupDuration
function
How long a GROUP of tracks runs — the longest member. One fold, not reimplemented at each call site: AnimationPlayer.run below uses it for whichever tracks are playing this tick, and a clip's length is this over its members (which is exactly why a clip stores no length of its own).
groupDuration(tracks: Track[]): numbertrackDuration
function
Where a track's own domain ends — its last keyframe time. Not a stored field: the samples say it (see evaluate/animation.ts's header).
trackDuration(track: Track): numbertrackValueAt
function
trackValueAt(track: Track, time: number): number