Skip to content

Documentation / device / DrawTextLayoutOptions

Interface: DrawTextLayoutOptions

Defined in: libs/device/src/base_types.ts:2480

Layout options for drawing text inside a rectangle

Properties

halign?

optional halign?: TextHorizontalAlignment

Defined in: libs/device/src/base_types.ts:2482

Horizontal alignment of each line


valign?

optional valign?: TextVerticalAlignment

Defined in: libs/device/src/base_types.ts:2484

Vertical alignment of the text block


wordWrap?

optional wordWrap?: boolean

Defined in: libs/device/src/base_types.ts:2486

Whether to wrap text automatically to fit the rectangle width

Released under the MIT License.