pixi-wheels

SpinHost

pixi-wheels


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#

PropertyModifierTypeDescriptionDefined in
directionreadonlySpinDirection-spin/SpinController.ts:40
eventsreadonlyEventEmitter<WheelEvents>-spin/SpinController.ts:38
geometryreadonlyRingGeometry-spin/SpinController.ts:39
landingDefaultsreadonlyLandingOptions-spin/SpinController.ts:45
pointerAnglereadonlynumberScreen angle of the pointer results are read against.spin/SpinController.ts:42
profilereadonlySpinProfile-spin/SpinController.ts:44
ringIdreadonlystring-spin/SpinController.ts:37
rngreadonly() => number-spin/SpinController.ts:43
skipConfigreadonlyRequired<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#

ParameterType
degnumber

Returns#

void