pixi-wheels

ResolvedSection

pixi-wheels


pixi-wheels / index / ResolvedSection

Interface: ResolvedSection

Defined in: config/types.ts:119

A section with its geometry resolved. Angles are wheel-local degrees: they rotate with the disc. startAngle is where the section begins going clockwise; endAngle = startAngle + arc. Both are kept unnormalised and increasing across the ring so endAngle of section i equals startAngle of section i + 1.

Properties#

PropertyTypeDescriptionDefined in
arcnumberAngular size in degrees.config/types.ts:132
content?LabelContentRich label content, when the section has one.config/types.ts:136
endAnglenumberLocal end angle in degrees.config/types.ts:128
idstring-config/types.ts:120
indexnumber-config/types.ts:121
labelstring-config/types.ts:122
midAnglenumberLocal centre angle in degrees.config/types.ts:130
startAnglenumberLocal start angle in degrees (clockwise edge first in layout order).config/types.ts:126
styleResolvedSectionStyle-config/types.ts:133
tagsreadonly string[]-config/types.ts:134
valuestring | number | undefined-config/types.ts:123
weightnumber-config/types.ts:124