pixi-wheels

ResolvedSection

pixi-wheels


pixi-wheels / index / ResolvedSection

Interface: ResolvedSection

Defined in: config/types.ts:117

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:130
content?LabelContentRich label content, when the section has one.config/types.ts:134
endAnglenumberLocal end angle in degrees.config/types.ts:126
idstring-config/types.ts:118
indexnumber-config/types.ts:119
labelstring-config/types.ts:120
midAnglenumberLocal centre angle in degrees.config/types.ts:128
startAnglenumberLocal start angle in degrees (clockwise edge first in layout order).config/types.ts:124
styleResolvedSectionStyle-config/types.ts:131
tagsreadonly string[]-config/types.ts:132
valuestring | number | undefined-config/types.ts:121
weightnumber-config/types.ts:122