Skip to content
M2O Scripting APIScripting reference
Data shapeClient APIGenerated

Render2DTextOptions

Defined in: client/api.d.ts:234

Native text-region options.

clipping: boolean | null

Defined in: client/api.d.ts:198

Whether clipping is enabled.

Render2DNodeOptions.clipping


clipRect: Render2DRect | null

Defined in: client/api.d.ts:203

Normalized clipping rectangle.

Render2DNodeOptions.clipRect


color: Color | null

Defined in: client/api.d.ts:243

Normalized RGBA text color.


font: string | null

Defined in: client/api.d.ts:248

Native font hash name.


fontHeight: number | null

Defined in: client/api.d.ts:258

Normalized font height.


fontScale: number | null

Defined in: client/api.d.ts:263

Font scale multiplier.


fontStyle: "bold" | "normal" | "italic" | "boldItalic" | null

Defined in: client/api.d.ts:253

Native font variant.


horizontalAlign: "left" | "center" | "right" | null

Defined in: client/api.d.ts:283

Horizontal alignment.


kerning: boolean | null

Defined in: client/api.d.ts:278

Whether kerning is enabled.


nonOverlapGroup: number | null

Defined in: client/api.d.ts:218

Native non-overlap group.

Render2DNodeOptions.nonOverlapGroup


offset: Vector2 | null

Defined in: client/api.d.ts:268

Text cursor offset.


parent: Render2DContainer | null

Defined in: client/api.d.ts:178

Optional container parent; defaults to the canvas root.

Render2DNodeOptions.parent


pixelClipping: boolean | null

Defined in: client/api.d.ts:208

Whether pixel clipping is enabled.

Render2DNodeOptions.pixelClipping


position: Vector2 | null

Defined in: client/api.d.ts:183

Normalized position local to the parent.

Render2DNodeOptions.position


size: Vector2 | null

Defined in: client/api.d.ts:188

Normalized size.

Render2DNodeOptions.size


text: string

Defined in: client/api.d.ts:238

Initial text.


useAllMonitors: boolean | null

Defined in: client/api.d.ts:213

Whether the node spans all monitors.

Render2DNodeOptions.useAllMonitors


verticalAlign: "center" | "top" | "bottom" | null

Defined in: client/api.d.ts:288

Vertical alignment.


visible: boolean | null

Defined in: client/api.d.ts:193

Initial visibility.

Render2DNodeOptions.visible


widthLimit: number | null

Defined in: client/api.d.ts:273

Optional normalized width limit.