Intermact API Reference / @intermact/core / CustomAnimationContext
Interface: CustomAnimationContext
Defined in: packages/core/src/animation/track.ts:110
Compile-time context handed to a plugin AnimationCompiler (design.md §18). Exposes the same machinery the built-in compiler uses so custom kinds can read object definitions, resolve tween from values from the projection, patch the compile-time baseline, and mint stable ids.
Properties
applyBaselinePatch?
readonlyoptionalapplyBaselinePatch?: (targetId,patch) =>void
Defined in: packages/core/src/animation/track.ts:116
Parameters
targetId
string
patch
RuntimeState2DPatch | RuntimeState3DPatch
Returns
void
getObject
readonlygetObject: (id) =>IMObject|undefined
Defined in: packages/core/src/animation/track.ts:115
Parameters
id
string
Returns
IMObject | undefined
ids
readonlyids:IdGen
Defined in: packages/core/src/animation/track.ts:113
projection
readonlyprojection:Projection
Defined in: packages/core/src/animation/track.ts:114
startTime
readonlystartTime:number
Defined in: packages/core/src/animation/track.ts:112
Absolute scene-time start (seconds) at which the animation is placed.