Types - AnimationBinding
API reference for ./model/animationBinding on @huukhanhnguyen/types.
See the Guide for the package's role.
API reference
Signatures are generated from the live package .d.ts - not hand-written.
AnimationBinding
type
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.
type AnimationBinding
// = {
/** `Track.key`, resolved against the model's track pool. */
track: string;
/** Repeat from t=0 once the track's last keyframe is passed. Absent =
* play once and hold. */
loop?: boolean;
}