LabelFactory
import type { LabelFactory } from 'pixi-silk/ui/pill';
type LabelFactory = (style: TextStyleOptions) => TextLabel;
Builds the label of a widget from the style the widget asks for. Widgets that show text take one
as their label option, so they never import a text renderer you do not use. Pass silkLabel()
from pixi-silk/text for distance-field labels, which a zooming camera scales without re-rasterising.
Parameters#
| Parameter | Type |
|---|---|
style | TextStyleOptions |