pixi-wheels

WheelSectionConfig

pixi-wheels


pixi-wheels / index / WheelSectionConfig

Interface: WheelSectionConfig

Defined in: config/types.ts:74

One section as the consumer authors it.

Properties#

PropertyTypeDescriptionDefined in
content?LabelContentRich label: any container, or a factory that builds one. Replaces the text label on skins that draw labels. See LabelContent.config/types.ts:83
idstringUnique id within the ring. What setResult({ section }) and events name.config/types.ts:76
label?stringText drawn by skins that draw labels. Defaults to the id. Pass '' for none.config/types.ts:78
style?SectionStyleLook overrides for this section.config/types.ts:93
tags?string[]Free-form tag for consumers. Not read by the library.config/types.ts:95
value?string | numberPayload the section stands for (a multiplier, a prize code). Used by setResult({ value }).config/types.ts:85
weight?numberArc share, relative to the sum of all weights in the ring. Default 1. Arcs need not be uniform: { weight: 0.5 } is half the width of a default section. Changing weights at run time is how dynamic sections work.config/types.ts:91