CascadeDropInPhaseConfig
pixi-reels / index / CascadeDropInPhaseConfig
Interface: CascadeDropInPhaseConfig
Defined in: spin/phases/CascadeDropInPhase.ts:14
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
events | EventEmitter<ReelSetEvents> | Reel-set event bus, injected by SpinController. | spin/phases/CascadeDropInPhase.ts:40 |
initial | boolean | true for Moment A (initial spin: every row drops from above); false for Moment B (refill: only winner-displaced rows animate). | spin/phases/CascadeDropInPhase.ts:20 |
role? | "all" | "gravity" | "new" | Two-stage refill filter. - 'all' (default). animate every mover: survivors-sliding-down AND new-symbols-from-above. The classic single-phase refill. - 'gravity'. animate only survivors that slide down to fill holes (originalRow ≥ 0 with offsetRows > 0). New-symbol movers stay repositioned above the viewport with alpha=0. invisible, awaiting the second stage. Emits cascade:gravity:* events. - 'new'. animate only new-symbol movers (originalRow < 0). Survivors are already at their grid Y from the prior gravity stage, so this phase reveals them at alpha=1 and only tweens the new arrivals down from above. Emits cascade:dropIn:* events. Used by mode: 'gravity-then-drop' on refill() to split one refill into two animated beats with a hold in between. | spin/phases/CascadeDropInPhase.ts:38 |
winnerRows | number[] | Visible rows whose old symbols were winners. drives per-row drop geometry. Empty AND initial: false ⇒ no animation on this reel. | spin/phases/CascadeDropInPhase.ts:17 |