TextBlockOptions
import type { TextBlockOptions } from 'pixi-silk/ui/blocks';
Options of a TextBlock.
Extends#
Properties#
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
align? | readonly [number, number] | Where the text sits in the slot: 0 left or top, 0.5 centre, 1 right or bottom. Default [0, 0.5]. | - | packages/pixi-silk/src/ui/blocks.ts:696 |
fill? | Value<FillInput> | Paint of the letters. Default white. | - | packages/pixi-silk/src/ui/blocks.ts:694 |
height? | number | Height. Default 0 (set by the layout through onSize). | BlockOptions.height | packages/pixi-silk/src/ui/blocks.ts:42 |
layer? | BlockLayer | Which layer of the surface paints the block. 'auto' (default) starts in the cached still layer and moves to the live layer the first time the block animates or changes. 'still' stays in the still layer: a change repaints and re-caches that layer, and the block keeps its place under live blocks. 'live' starts in the live layer. | BlockOptions.layer | packages/pixi-silk/src/ui/blocks.ts:49 |
style? | DrawTextStyle | Font and layout. | - | packages/pixi-silk/src/ui/blocks.ts:692 |
text | Value<string> | The text. A signal repaints the block when it changes. | - | packages/pixi-silk/src/ui/blocks.ts:690 |
width? | number | Width. Default 0 (set by the layout through onSize). | BlockOptions.width | packages/pixi-silk/src/ui/blocks.ts:40 |