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.
Properties
Section titled “Properties”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
Section titled “content”content:
string
Defined in: ui/core/text.ts:39
enabled
Section titled “enabled”enabled:
boolean
Defined in: ui/core/text.ts:67
Render toggle — the editor’s eye and runtime hiding both flip this.
fontFamily
Section titled “fontFamily”fontFamily:
string
Defined in: ui/core/text.ts:48
fontSize
Section titled “fontSize”fontSize:
number
Defined in: ui/core/text.ts:49
i18nKey
Section titled “i18nKey”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
Section titled “italic”italic:
boolean
Defined in: ui/core/text.ts:57
lineHeight
Section titled “lineHeight”lineHeight:
number
Defined in: ui/core/text.ts:55
overflow
Section titled “overflow”overflow:
TextOverflow
Defined in: ui/core/text.ts:54
renderMode
Section titled “renderMode”renderMode:
TextRenderMode
Defined in: ui/core/text.ts:65
richText
Section titled “richText”richText:
boolean
Defined in: ui/core/text.ts:64
shadowBlur
Section titled “shadowBlur”shadowBlur:
number
Defined in: ui/core/text.ts:61
shadowColor
Section titled “shadowColor”shadowColor:
Color
Defined in: ui/core/text.ts:60
shadowOffsetX
Section titled “shadowOffsetX”shadowOffsetX:
number
Defined in: ui/core/text.ts:62
shadowOffsetY
Section titled “shadowOffsetY”shadowOffsetY:
number
Defined in: ui/core/text.ts:63
strokeColor
Section titled “strokeColor”strokeColor:
Color
Defined in: ui/core/text.ts:58
strokeWidth
Section titled “strokeWidth”strokeWidth:
number
Defined in: ui/core/text.ts:59
verticalAlign
Section titled “verticalAlign”verticalAlign:
TextVerticalAlign
Defined in: ui/core/text.ts:52
wordWrap
Section titled “wordWrap”wordWrap:
boolean
Defined in: ui/core/text.ts:53