LayoutRequest
What to lay out: the string, the font, its size, and its alignment.
Interface: LayoutRequest
Defined in: packages/renderer/src/Text.ts:93
What to lay out: the string, the font, its size, and its alignment.
Properties
baseline?
readonly optional baseline?: "middle" | "auto" | "hanging";Defined in: packages/renderer/src/Text.ts:109
Vertical alignment relative to the entity's position.
Default Value
"auto" — the text's own baseline
fontId
readonly fontId: string;Defined in: packages/renderer/src/Text.ts:96
Id of a font registered with registerFont.
fontSize
readonly fontSize: number;Defined in: packages/renderer/src/Text.ts:97
text
readonly text: string;Defined in: packages/renderer/src/Text.ts:94
textAnchor?
readonly optional textAnchor?: "start" | "end" | "middle";Defined in: packages/renderer/src/Text.ts:103
Horizontal alignment relative to the entity's position.
Default Value
"start"