pixi-wheels

SectionStyle

pixi-wheels


pixi-wheels / index / SectionStyle

Interface: SectionStyle

Defined in: config/types.ts:29

Per-section look. Everything is optional: a section with no style gets the skin’s palette colour for its index and the skin’s default label style. Skins that draw from textures or Spine ignore the paint fields and only read the label ones.

Properties#

PropertyTypeDescriptionDefined in
alpha?numberFill alpha, default 1.config/types.ts:33
fill?numberFill colour (0xRRGGBB).config/types.ts:31
labelColor?numberLabel colour (0xRRGGBB).config/types.ts:37
labelFit?FitModeHow the label (text or content) is fitted into the room it has. Default 'contain'.config/types.ts:49
labelFont?stringCSS font family for the label.config/types.ts:41
labelOrientation?LabelOrientation'radial' (default) reads from the hub to the rim, 'tangential' follows the arc.config/types.ts:45
labelRadius?numberWhere along the radius the label sits, as a fraction of the outer radius (0..1).config/types.ts:47
labelSize?numberLabel font size in px at the ring’s authored radius.config/types.ts:39
labelWeight?stringFont weight for the label, e.g. '700'.config/types.ts:43
stroke?numberDivider / outline colour for this section only.config/types.ts:35