pixi-wheels

PointerSkin

pixi-wheels


pixi-wheels / index / PointerSkin

Interface: PointerSkin

Defined in: pointer/PointerSkin.ts:9

The visual of a pointer. Drawn in a local space where the pin (the point it pivots around) is at (0, 0) and the tip is at (+length, 0). The ring positions and rotates the view so the tip faces the hub or the rim.

Extends#

Properties#

PropertyModifierTypeDescriptionInherited fromDefined in
isDestroyedreadonlyboolean-Disposable.isDestroyedutils/Disposable.ts:9
lengthreadonlynumberPin-to-tip distance in pixels, so the ring can seat the tip on the rim.-pointer/PointerSkin.ts:12
viewreadonlyContainer--pointer/PointerSkin.ts:10

Methods#

destroy()#

destroy(): void;

Defined in: utils/Disposable.ts:8

Returns#

void

Inherited from#

Disposable.destroy


setDeflection()#

setDeflection(deg: number): void;

Defined in: pointer/PointerSkin.ts:14

Rotate the visual around the pin by deg (the flap).

Parameters#

ParameterType
degnumber

Returns#

void


tick()?#

optional tick(speed: number): void;

Defined in: pointer/PointerSkin.ts:16

A divider just passed. Optional: skins with a “tick” animation play it here.

Parameters#

ParameterType
speednumber

Returns#

void