WheelSectionConfig
pixi-wheels / index / WheelSectionConfig
Interface: WheelSectionConfig
Defined in: config/types.ts:74
One section as the consumer authors it.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
content? | LabelContent | Rich label: any container, or a factory that builds one. Replaces the text label on skins that draw labels. See LabelContent. | config/types.ts:83 |
id | string | Unique id within the ring. What setResult({ section }) and events name. | config/types.ts:76 |
label? | string | Text drawn by skins that draw labels. Defaults to the id. Pass '' for none. | config/types.ts:78 |
style? | SectionStyle | Look 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 | number | Payload the section stands for (a multiplier, a prize code). Used by setResult({ value }). | config/types.ts:85 |
weight? | number | Arc 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 |