pixi-wheels

DebugRingSkin

pixi-wheels


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#

RingSkin.isDestroyed

Methods#

attach()#

attach(ctx: RingSkinContext): void;

Defined in: skins/DebugRingSkin.ts:22

Parameters#

ParameterType
ctxRingSkinContext

Returns#

void

Implementation of#

RingSkin.attach


destroy()#

destroy(): void;

Defined in: skins/DebugRingSkin.ts:91

Returns#

void

Implementation of#

RingSkin.destroy


highlight()#

highlight(sectionId: string | null): void;

Defined in: skins/DebugRingSkin.ts:73

Turn a highlight on one section (or off with null).

Parameters#

ParameterType
sectionIdstring | null

Returns#

void

Implementation of#

RingSkin.highlight


layout()#

layout(): void;

Defined in: skins/DebugRingSkin.ts:37

Returns#

void

Implementation of#

RingSkin.layout