Skip to content

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? ​

readonly optional applyBaselinePatch?: (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 ​

readonly getObject: (id) => IMObject | undefined

Defined in: packages/core/src/animation/track.ts:89

Parameters ​

id ​

string

Returns ​

IMObject | undefined


resolveAnimation? ​

readonly optional resolveAnimation?: (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

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)