Skip to content

ProcessSlotConfig

Defined in: ProcessSlot.ts:4

Configuration for a ProcessSlot.

optional cleanup?: () => void

Defined in: ProcessSlot.ts:20

Called on complete, cancel, OR restart — like finally.

void


optional clock?: 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.


optional duration?: number

Defined in: ProcessSlot.ts:13

Auto-complete after this duration in seconds.


optional loop?: boolean

Defined in: ProcessSlot.ts:24

Loop the slot’s process.


optional onComplete?: () => void

Defined in: ProcessSlot.ts:18

Called on natural completion only.

void


optional tags?: string[]

Defined in: ProcessSlot.ts:22

Tags for filtering.


optional update?: (dt, elapsed) => boolean | void

Defined in: ProcessSlot.ts:16

Called each frame with dt (seconds) and elapsed (seconds). Return true to complete early.

number

number

boolean | void