TextSlotRender
import type { TextSlotRender } from 'pixi-silk/i18n/pixi';
A text slot to draw, as DynamicTextProvider.draw receives it. Sizes in local pixels.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
baseline | number | Distance from the box top to the baseline. | packages/pixi-silk/src/i18n/pixi/silk.ts:60 |
height | number | Height of the line box. | packages/pixi-silk/src/i18n/pixi/silk.ts:58 |
row | number | The slot’s style row, for drawing with the message shader. | packages/pixi-silk/src/i18n/pixi/silk.ts:54 |
size | number | Font size. | packages/pixi-silk/src/i18n/pixi/silk.ts:50 |
style | ThemeStyle | The slot’s resolved style. | packages/pixi-silk/src/i18n/pixi/silk.ts:52 |
value | string | The value. | packages/pixi-silk/src/i18n/pixi/silk.ts:48 |
width | number | Width the layout reserved. | packages/pixi-silk/src/i18n/pixi/silk.ts:56 |