SpinHost
pixi-wheels / index / SpinHost
Interface: SpinHost
Defined in: spin/SpinController.ts:36
What the controller needs from its ring. Kept as an interface so the controller is testable without PixiJS.
Properties#
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
direction | readonly | SpinDirection | - | spin/SpinController.ts:40 |
events | readonly | EventEmitter<WheelEvents> | - | spin/SpinController.ts:38 |
geometry | readonly | RingGeometry | - | spin/SpinController.ts:39 |
landingDefaults | readonly | LandingOptions | - | spin/SpinController.ts:45 |
pointerAngle | readonly | number | Screen angle of the pointer results are read against. | spin/SpinController.ts:42 |
profile | readonly | SpinProfile | - | spin/SpinController.ts:44 |
ringId | readonly | string | - | spin/SpinController.ts:37 |
rng | readonly | () => number | - | spin/SpinController.ts:43 |
skipConfig | readonly | Required<SkipConfig> | - | spin/SpinController.ts:46 |
Methods#
getRotation()#
getRotation(): number;
Defined in: spin/SpinController.ts:47
Returns#
number
setRotation()#
setRotation(deg: number): void;
Defined in: spin/SpinController.ts:48
Parameters#
| Parameter | Type |
|---|---|
deg | number |
Returns#
void