pixi-wheels

PointerSpec

pixi-wheels


pixi-wheels / index / PointerSpec

Interface: PointerSpec

Defined in: core/WheelBuilder.ts:38

A pointer as the builder accepts it: placement plus a skin instance or config.

Extends#

Properties#

PropertyTypeDescriptionInherited fromDefined in
angle?numberScreen angle in degrees. -90 is twelve o’clock (the default), 0 is three o’clock.PointerConfig.angleconfig/types.ts:428
facing?PointerFacing'inward' (default) sits on the rim with the tip pointing at the hub; 'outward' sits at the hub pointing out.PointerConfig.facingconfig/types.ts:430
flap?false | FlapConfigFlap physics against the ring’s pegs, or false to keep the pointer rigid.PointerConfig.flapconfig/types.ts:434
id?stringUnique id within the ring. Default 'pointer' for the first one.PointerConfig.idconfig/types.ts:426
skin?| PointerSkin | PointerSkinConfig--core/WheelBuilder.ts:39
tipInset?numberHow far the tip reaches past the rim into the sections (or past the hub). Default 18.PointerConfig.tipInsetconfig/types.ts:432