MessageLayoutOptions
import type { MessageLayoutOptions } from 'pixi-silk/i18n';
Options of layoutMessage.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
align | MessageAlign | Alignment of the lines. | packages/pixi-silk/src/i18n/layout.ts:48 |
inline? | (name: string) => InlineMetrics | undefined | Size of inline objects by name. Unknown objects take 1 em. | packages/pixi-silk/src/i18n/layout.ts:56 |
lineHeight | number | Distance between baselines as a factor of size. | packages/pixi-silk/src/i18n/layout.ts:50 |
maxWidth | number | Widest a line may be, in pixels. 0 for no wrapping. | packages/pixi-silk/src/i18n/layout.ts:46 |
measureText? | (name: string, value: string, size: number, styleRow: number) => number | Width of a text slot’s value in pixels (the dynamic path measures it). Default an estimate. | packages/pixi-silk/src/i18n/layout.ts:58 |
size | number | Font size in pixels. | packages/pixi-silk/src/i18n/layout.ts:44 |
styles | StyleTable | Style rows. | packages/pixi-silk/src/i18n/layout.ts:54 |
values | Readonly<Record<string, number | string>> | Slot values by name. | packages/pixi-silk/src/i18n/layout.ts:52 |