pixi-wheels

LabelContent

pixi-wheels


pixi-wheels / index / LabelContent

Type Alias: LabelContent

type LabelContent = 
  | Container
  | ((ctx: LabelContext) => Container);

Defined in: config/types.ts:71

Anything a section shows instead of a text label: a Text, a Sprite, a BitmapText, a Spine instance, a whole Container of them. Pass the object, or a factory that builds it once from the section’s context. The label layer positions, rotates and fits it like a text label; it is re-fitted whenever the geometry changes. Code only: toConfig() keeps label and drops content.