WheelSpinResult
pixi-wheels / index / WheelSpinResult
Interface: WheelSpinResult
Defined in: config/types.ts:339
What spin() resolves with.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
duration | number | Milliseconds from spin() to spin:complete. | config/types.ts:350 |
landingAngle | number | Wheel-local angle (deg) under the pointer when the spin completed. | config/types.ts:344 |
offset | number | Position within the section, 0..1. | config/types.ts:346 |
ring | string | The ring that spun. 'main' for a single-ring wheel. | config/types.ts:341 |
section | ResolvedSection | - | config/types.ts:342 |
turns | number | Full turns the wheel made from spin() to landing, rounded down. | config/types.ts:352 |
wasSkipped | boolean | True when a skip or slam ended the spin early. | config/types.ts:348 |