Skip to content
Shapemetry

@huukhanhnguyen/types / model/animationBinding

model/animationBinding

AnimationBinding

AnimationBinding = { loop?: boolean; track: string; }

One consumer's USE of a track: which curve drives it, and how that curve is played. This is the third object the pair Track/AnimationClip was missing — without it, playback state had no home and ended up stored on the data (twice: once on the track, once copied onto the clip).

Consumer-holds-the-reference, the same law the rest of this graph follows: the track declares no target, the thing being animated declares which track drives it — and now, on what terms.

loop?

optional loop?: boolean

Repeat from t=0 once the track's last keyframe is passed. Absent = play once and hold.

track

track: string

Track.key, resolved against the model's track pool.

Last updated: 📖 1 min readEdit on GitHub