ProcessSlotConfig
Defined in: ProcessSlot.ts:4
Configuration for a ProcessSlot.
Properties
Section titled “Properties”cleanup?
Section titled “cleanup?”
optionalcleanup?: () =>void
Defined in: ProcessSlot.ts:20
Called on complete, cancel, OR restart — like finally.
Returns
Section titled “Returns”void
clock?
Section titled “clock?”
optionalclock?:ProcessClock
Defined in: ProcessSlot.ts:11
Which clock ticks the slot: "frame" (default) or "fixed". Read once
when the slot is created via ProcessComponent.slot(); start()/
restart() overrides cannot change it. A standalone ProcessSlot has
no clock — whoever calls _tick decides.
duration?
Section titled “duration?”
optionalduration?:number
Defined in: ProcessSlot.ts:13
Auto-complete after this duration in seconds.
optionalloop?:boolean
Defined in: ProcessSlot.ts:24
Loop the slot’s process.
onComplete?
Section titled “onComplete?”
optionalonComplete?: () =>void
Defined in: ProcessSlot.ts:18
Called on natural completion only.
Returns
Section titled “Returns”void
optionaltags?:string[]
Defined in: ProcessSlot.ts:22
Tags for filtering.
update?
Section titled “update?”
optionalupdate?: (dt,elapsed) =>boolean|void
Defined in: ProcessSlot.ts:16
Called each frame with dt (seconds) and elapsed (seconds). Return true to complete early.
Parameters
Section titled “Parameters”number
elapsed
Section titled “elapsed”number
Returns
Section titled “Returns”boolean | void