Skip to content
pixi-silk
GitHub repository
Interface

ValuePillOptions

import type { ValuePillOptions } from 'pixi-silk/ui/pill';

Options of ValuePill.

Properties#

PropertyTypeDescriptionDefined in
color?string | numberText colour, applied as a tint. Default 0x1c1c1e.ui/ValuePill.ts:13
fill?string | numberBackground colour. Default white.ui/ValuePill.ts:11
fontSize?numberFont size in px. Default 12, semibold.ui/ValuePill.ts:15
height?numberPill height in local units. The width follows the text, at least the height. Default 22.ui/ValuePill.ts:19
label?LabelFactoryBuilds 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?TextStyleOptionsMore text style, passed to the label.ui/ValuePill.ts:17