labelSlot()
pixi-wheels / index / labelSlot
Function: labelSlot()
function labelSlot(
section: {
arc: number;
},
outerRadius: number,
innerRadius: number,
options?: LabelSlotOptions
): LabelSlot;
Defined in: utils/fit.ts:116
Compute the box a section offers a label at a given radius: the chord across
the wedge there, and the radial room between hub and rim around that point.
SectionLabels uses it for every label; use it yourself to size custom
content in a content factory or a skin.
Parameters#
| Parameter | Type |
|---|---|
section | { arc: number; } |
section.arc | number |
outerRadius | number |
innerRadius | number |
options | LabelSlotOptions |