Skip to content
pixi-silk
GitHub repository
Interface

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#

PropertyTypeDescriptionDefined in
baked?booleanTrue when the layout came baked from the bundle (LAYOUTS) instead of being computed.packages/pixi-silk/src/i18n/layout.ts:114
countnumberInstances in use.packages/pixi-silk/src/i18n/layout.ts:96
heightnumberHeight of all lines.packages/pixi-silk/src/i18n/layout.ts:100
hitsLayoutBox & { tag: string; }[]Boxes of spans whose style is interactive, by tag, one per visual fragment.packages/pixi-silk/src/i18n/layout.ts:110
instancesFloat32ArrayINSTANCE_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
objectsLayoutBox & { name: string; }[]Inline objects.packages/pixi-silk/src/i18n/layout.ts:106
slotsSlotPlacement[]Number slots, for in-place updates.packages/pixi-silk/src/i18n/layout.ts:104
textstringPlain text with values filled in, for accessibility.packages/pixi-silk/src/i18n/layout.ts:112
textSlotsLayoutBox & { 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
widthnumberWidth of the widest line, or maxWidth when set.packages/pixi-silk/src/i18n/layout.ts:98