PointerSkin
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#
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
isDestroyed | readonly | boolean | - | Disposable.isDestroyed | utils/Disposable.ts:9 |
length | readonly | number | Pin-to-tip distance in pixels, so the ring can seat the tip on the rim. | - | pointer/PointerSkin.ts:12 |
view | readonly | Container | - | - | pointer/PointerSkin.ts:10 |
Methods#
destroy()#
destroy(): void;
Defined in: utils/Disposable.ts:8
Returns#
void
Inherited from#
setDeflection()#
setDeflection(deg: number): void;
Defined in: pointer/PointerSkin.ts:14
Rotate the visual around the pin by deg (the flap).
Parameters#
| Parameter | Type |
|---|---|
deg | number |
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#
| Parameter | Type |
|---|---|
speed | number |
Returns#
void