MessageLayout
import type { MessageLayout } from 'pixi-silk/i18n';
A laid out message: instances ready to upload, plus boxes for objects, text slots and taps.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
baked? | boolean | True when the layout came baked from the bundle (LAYOUTS) instead of being computed. | packages/pixi-silk/src/i18n/layout.ts:114 |
count | number | Instances in use. | packages/pixi-silk/src/i18n/layout.ts:96 |
height | number | Height of all lines. | packages/pixi-silk/src/i18n/layout.ts:100 |
hits | LayoutBox & { tag: string; }[] | Boxes of spans whose style is interactive, by tag, one per visual fragment. | packages/pixi-silk/src/i18n/layout.ts:110 |
instances | Float32Array | INSTANCE_FLOATS floats per instance. | packages/pixi-silk/src/i18n/layout.ts:94 |
lines | { baseline: number; left: number; right: number; }[] | Lines: baseline y and the x range of their content. | packages/pixi-silk/src/i18n/layout.ts:102 |
objects | LayoutBox & { name: string; }[] | Inline objects. | packages/pixi-silk/src/i18n/layout.ts:106 |
slots | SlotPlacement[] | Number slots, for in-place updates. | packages/pixi-silk/src/i18n/layout.ts:104 |
text | string | Plain text with values filled in, for accessibility. | packages/pixi-silk/src/i18n/layout.ts:112 |
textSlots | LayoutBox & { baseline: number; name: string; style: number; value: string; }[] | Text slots, drawn by the dynamic path. baseline is the distance from the box top to the baseline. | packages/pixi-silk/src/i18n/layout.ts:108 |
width | number | Width of the widest line, or maxWidth when set. | packages/pixi-silk/src/i18n/layout.ts:98 |