Skip to content

TextData

Defined in: ui/core/text.ts:38

core-ui.ts

The stable UI surface promoted into the top-level esengine namespace (text, UINode box visuals, interaction, layout, theme).

This is the curated public UI API. The complete UI module surface — which also includes low-level text/atlas internals and engine-internal composition glue (e.g. EntityStateMap, ensureComponent) — lives in ./ui and is imported module-directly by the SDK code that needs it. Those internals are intentionally NOT re-exported here, so the public esengine namespace stays a stable, intentional surface.

Re-exported wholesale by core.ts.

align: TextAlign

Defined in: ui/core/text.ts:51


bold: boolean

Defined in: ui/core/text.ts:56


color: Color

Defined in: ui/core/text.ts:50


content: string

Defined in: ui/core/text.ts:39


enabled: boolean

Defined in: ui/core/text.ts:67

Render toggle — the editor’s eye and runtime hiding both flip this.


fontFamily: string

Defined in: ui/core/text.ts:48


fontSize: number

Defined in: ui/core/text.ts:49


i18nKey: string

Defined in: ui/core/text.ts:47

Localization key. Non-empty ⇒ content is DERIVED: every frame the text-localization system resolves the key through the app’s Localization resource (opt-in plugin) and writes the result into content, so a setLocale re-flows every bound label. Empty (default) or no Localization resource ⇒ content stands as authored.


italic: boolean

Defined in: ui/core/text.ts:57


lineHeight: number

Defined in: ui/core/text.ts:55


overflow: TextOverflow

Defined in: ui/core/text.ts:54


renderMode: TextRenderMode

Defined in: ui/core/text.ts:65


richText: boolean

Defined in: ui/core/text.ts:64


shadowBlur: number

Defined in: ui/core/text.ts:61


shadowColor: Color

Defined in: ui/core/text.ts:60


shadowOffsetX: number

Defined in: ui/core/text.ts:62


shadowOffsetY: number

Defined in: ui/core/text.ts:63


strokeColor: Color

Defined in: ui/core/text.ts:58


strokeWidth: number

Defined in: ui/core/text.ts:59


verticalAlign: TextVerticalAlign

Defined in: ui/core/text.ts:52


wordWrap: boolean

Defined in: ui/core/text.ts:53