MotionScript

@motion-script/core


@motion-script/core / ControllerParams

Type Alias: ControllerParams

ControllerParams = object

Defined in: runtime/playback-controller.ts:28

Dependencies injected into PlaybackController at construction time.

Properties

assets

assets: AssetCatalog

Defined in: runtime/playback-controller.ts:34


audioDevice

audioDevice: AudioDevice

Defined in: runtime/playback-controller.ts:33


fps

fps: number

Defined in: runtime/playback-controller.ts:36


masterClock

masterClock: MasterClock

Defined in: runtime/playback-controller.ts:32


measureScope

measureScope: MeasureScope

Defined in: runtime/playback-controller.ts:30


onPrecompProgress?

optional onPrecompProgress?: (result) => void

Defined in: runtime/playback-controller.ts:58

Called each time the background precomp measures another scene, with the newly assembled result. Fires until result.complete is true. Passed at construction rather than subscribed afterwards so a fast first scene can't publish before the caller has attached.

Parameters

result

PrecompResult

Returns

void


precompBudgetMs?

optional precompBudgetMs?: number

Defined in: runtime/playback-controller.ts:51

Wall-clock ms the background precomp may run before yielding. Defaults to DEFAULT_PRECOMP_BUDGET_MS. Set to 0 in tests to force a yield on every precomped frame.


precomposition

precomposition: Precomp

Defined in: runtime/playback-controller.ts:35


renderContext

renderContext: RenderContext

Defined in: runtime/playback-controller.ts:29


replayBudgetMs?

optional replayBudgetMs?: number

Defined in: runtime/playback-controller.ts:45

Wall-clock ms a scrub's state replay may run before yielding to the event loop (see StateEvaluator.stateAtAsync). Defaults to DEFAULT_REPLAY_BUDGET_MS. Set to 0 in tests to force a yield on every frame, making preemption deterministic.


scenes

scenes: Scene[]

Defined in: runtime/playback-controller.ts:38


storageAdapter

storageAdapter: StorageAdapter

Defined in: runtime/playback-controller.ts:31


viewport

viewport: Size2D

Defined in: runtime/playback-controller.ts:37