ValuePillOptions
import type { ValuePillOptions } from 'pixi-silk/ui/pill';
Options of ValuePill.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
color? | string | number | Text colour, applied as a tint. Default 0x1c1c1e. | ui/ValuePill.ts:13 |
fill? | string | number | Background colour. Default white. | ui/ValuePill.ts:11 |
fontSize? | number | Font size in px. Default 12, semibold. | ui/ValuePill.ts:15 |
height? | number | Pill height in local units. The width follows the text, at least the height. Default 22. | ui/ValuePill.ts:19 |
label? | LabelFactory | Builds the text. Default PixiJS Text. Pass silkLabel() from pixi-silk/text for distance-field text, which scales with a zooming camera without re-rasterising. | ui/ValuePill.ts:24 |
textStyle? | TextStyleOptions | More text style, passed to the label. | ui/ValuePill.ts:17 |