Intermact API Reference / @intermact/core / StoryboardBuilder
Class: StoryboardBuilder
Defined in: packages/core/src/animation/storyboard.ts:99
Accumulates the timeline during the build pass (design.md §3.2). play appends animations at the current cursor and advances it; the builder also resolves tween from values via a per-property projection seeded from each object's initial runtime state.
Constructors
Constructor
new StoryboardBuilder(
initialStates,objects?,resolveAnimation?):StoryboardBuilder
Defined in: packages/core/src/animation/storyboard.ts:111
Parameters
initialStates
Map<string, RuntimeState>
objects?
ReadonlyMap<string, IMObject> = ...
resolveAnimation?
AnimationResolver = ...
Returns
StoryboardBuilder
Accessors
time
Get Signature
get time():
number
Defined in: packages/core/src/animation/storyboard.ts:144
Current scene-time cursor (seconds).
Returns
number
Methods
build()
build():
Storyboard
Defined in: packages/core/src/animation/storyboard.ts:204
Finalize into an immutable, sorted Storyboard.
Returns
commit()
commit(
animations):void
Defined in: packages/core/src/animation/storyboard.ts:170
Apply immediate (duration-0) changes without advancing the cursor.
Parameters
animations
readonly Animation[]
Returns
void
getOps()
getOps(): readonly
TimelineOp[]
Defined in: packages/core/src/animation/storyboard.ts:199
Ordered op-log of build-pass operations (design.md §17 serialization).
Returns
readonly TimelineOp[]
marker()
marker(
name):void
Defined in: packages/core/src/animation/storyboard.ts:193
Record a named marker at the current cursor.
Parameters
name
string
Returns
void
play()
play(
animations):number
Defined in: packages/core/src/animation/storyboard.ts:149
Append animations in parallel at the cursor; advance cursor by the longest.
Parameters
animations
readonly Animation[]
Returns
number
wait()
wait(
duration):void
Defined in: packages/core/src/animation/storyboard.ts:187
Advance the cursor by duration seconds.
Parameters
duration
number
Returns
void