DebugRingSkin
pixi-wheels / index / DebugRingSkin
Class: DebugRingSkin
Defined in: skins/DebugRingSkin.ts:12
The plain skin: flat alternating fills, section index and id, the start angle of every section, degree marks on the disc and a line at every pointer. Nothing pretty, everything legible. Use it while wiring a wheel, or as the base of a headless-looking recipe.
Implements#
Constructors#
Constructor#
new DebugRingSkin(): DebugRingSkin;
Returns#
DebugRingSkin
Accessors#
isDestroyed#
Get Signature#
get isDestroyed(): boolean;
Defined in: skins/DebugRingSkin.ts:87
Returns
boolean
Implementation of#
Methods#
attach()#
attach(ctx: RingSkinContext): void;
Defined in: skins/DebugRingSkin.ts:22
Parameters#
| Parameter | Type |
|---|---|
ctx | RingSkinContext |
Returns#
void
Implementation of#
destroy()#
destroy(): void;
Defined in: skins/DebugRingSkin.ts:91
Returns#
void
Implementation of#
highlight()#
highlight(sectionId: string | null): void;
Defined in: skins/DebugRingSkin.ts:73
Turn a highlight on one section (or off with null).
Parameters#
| Parameter | Type |
|---|---|
sectionId | string | null |
Returns#
void
Implementation of#
layout()#
layout(): void;
Defined in: skins/DebugRingSkin.ts:37
Returns#
void