Skip to content

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?

readonly optional applyBaselinePatch?: (targetId, patch) => void

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

Parameters

targetId

string

patch

RuntimeState2DPatch | RuntimeState3DPatch

Returns

void


getObject

readonly getObject: (id) => IMObject | undefined

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

Parameters

id

string

Returns

IMObject | undefined


ids

readonly ids: IdGen

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


projection

readonly projection: Projection

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


startTime

readonly startTime: number

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

Absolute scene-time start (seconds) at which the animation is placed.

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