Intermact API Reference / @intermact/core / CompileContext
Interface: CompileContext
Defined in: packages/core/src/animation/track.ts:88
Optional compile-time context for specs that need object definitions.
Properties
applyBaselinePatch?
readonlyoptionalapplyBaselinePatch?: (targetId,patch) =>void
Defined in: packages/core/src/animation/track.ts:91
Merge a patch into the object's baseline runtime state at compile time.
Parameters
targetId
string
patch
RuntimeState2DPatch | RuntimeState3DPatch
Returns
void
getObject
readonlygetObject: (id) =>IMObject|undefined
Defined in: packages/core/src/animation/track.ts:89
Parameters
id
string
Returns
IMObject | undefined
resolveAnimation?
readonlyoptionalresolveAnimation?: (type) =>AnimationCompiler|undefined
Defined in: packages/core/src/animation/track.ts:101
Resolve a plugin AnimationCompiler for a custom spec's type (design.md §18). Supplied by the StoryboardBuilder, which defaults to the global animations registry. When absent, custom specs throw unsupported-animation.
Parameters
type
string
Returns
AnimationCompiler | undefined