Skip to content

Intermact API Reference / @intermact/core / PlayerOptions

Interface: PlayerOptions

Defined in: packages/core/src/animation/player.ts:61

Optional hooks for the framework-free Player.

Properties

initialStates

readonly initialStates: ReadonlyMap<string, RuntimeState>

Defined in: packages/core/src/animation/player.ts:63

Initial baseline runtime states keyed by object id.


objects

readonly objects: ReadonlyMap<string, IMObject>

Defined in: packages/core/src/animation/player.ts:65

Object definitions keyed by id, for building snapshots.


onNonSeekable?

readonly optional onNonSeekable?: (effectId, time) => void

Defined in: packages/core/src/animation/player.ts:69

Called when a scrub crosses a non-seekable call boundary (?11.5).

Parameters

effectId

string

time

number

Returns

void


parents?

readonly optional parents?: ReadonlyMap<string, string>

Defined in: packages/core/src/animation/player.ts:75

Transform-hierarchy parent links (child id ��� parent id), design.md ?9.3.


reactive?

readonly optional reactive?: ReactiveEngine

Defined in: packages/core/src/animation/player.ts:71

Reactive engine for signal tracks and derived/updater flush (?8).


scene?

readonly optional scene?: ReactiveSceneHost

Defined in: packages/core/src/animation/player.ts:73

Primary scene for reactive geometry rebuilds.


serialization?

readonly optional serialization?: PlayerSerializationMeta

Defined in: packages/core/src/animation/player.ts:77

Serialization metadata (design.md ?17); attached by buildProgram.


viewports?

readonly optional viewports?: readonly ViewportSnapshot[]

Defined in: packages/core/src/animation/player.ts:67

Viewports to include in every snapshot (M3/M5).

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