Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

Export UIPointerEvents, the one UINode enum a game could not name

yhh16b986301e49
diff --git a/sdk/etc/index.api.md b/sdk/etc/index.api.md
index 6b038c1ca..9cd95a845 100644
--- a/sdk/etc/index.api.md
+++ b/sdk/etc/index.api.md
@@ -1,7 +1,7 @@
# API surface — esengine/index
<!-- Generated by tools/api-surface.mjs — do not edit. Run --update to accept changes. -->
-Symbols: 1376 stable · 17 beta · 1 deprecated
+Symbols: 1377 stable · 17 beta · 1 deprecated
## ABI_LAYOUT_HASH — const
```
@@ -7767,6 +7767,12 @@ static new (): UIPlugin
static prototype: UIPlugin
```
+## UIPointerEvents — enum
+```
+Auto = 0
+None = 1
+```
+
## UIPositionType — enum
```
Absolute = 1
diff --git a/sdk/etc/index.native.api.md b/sdk/etc/index.native.api.md
index f7530e289..ec22425ba 100644
--- a/sdk/etc/index.native.api.md
+++ b/sdk/etc/index.native.api.md
@@ -1,7 +1,7 @@
# API surface — esengine/index.native
<!-- Generated by tools/api-surface.mjs — do not edit. Run --update to accept changes. -->
-Symbols: 1395 stable · 22 beta · 1 deprecated
+Symbols: 1396 stable · 22 beta · 1 deprecated
## ABI_LAYOUT_HASH — const
```
@@ -7931,6 +7931,12 @@ static new (): UIPlugin
static prototype: UIPlugin
```
+## UIPointerEvents — enum
+```
+Auto = 0
+None = 1
+```
+
## UIPositionType — enum
```
Absolute = 1
diff --git a/sdk/etc/index.node.api.md b/sdk/etc/index.node.api.md
index be8852499..90b899293 100644
--- a/sdk/etc/index.node.api.md
+++ b/sdk/etc/index.node.api.md
@@ -1,7 +1,7 @@
# API surface — esengine/index.node
<!-- Generated by tools/api-surface.mjs — do not edit. Run --update to accept changes. -->
-Symbols: 1375 stable · 19 beta · 1 deprecated
+Symbols: 1376 stable · 19 beta · 1 deprecated
## ANCHOR_AXES — const
```
@@ -7762,6 +7762,12 @@ static new (): UIPlugin
static prototype: UIPlugin
```
+## UIPointerEvents — enum
+```
+Auto = 0
+None = 1
+```
+
## UIPositionType — enum
```
Absolute = 1
diff --git a/sdk/etc/minigame.api.md b/sdk/etc/minigame.api.md
index 81fca79f1..85795ff45 100644
--- a/sdk/etc/minigame.api.md
+++ b/sdk/etc/minigame.api.md
@@ -1,7 +1,7 @@
# API surface — esengine/minigame
<!-- Generated by tools/api-surface.mjs — do not edit. Run --update to accept changes. -->
-Symbols: 1396 stable · 17 beta · 1 deprecated
+Symbols: 1397 stable · 17 beta · 1 deprecated
## ANCHOR_AXES — const
```
@@ -7977,6 +7977,12 @@ static new (): UIPlugin
static prototype: UIPlugin
```
+## UIPointerEvents — enum
+```
+Auto = 0
+None = 1
+```
+
## UIPositionType — enum
```
Absolute = 1
diff --git a/sdk/etc/wechat.api.md b/sdk/etc/wechat.api.md
index ae9d077da..c3c0656eb 100644
--- a/sdk/etc/wechat.api.md
+++ b/sdk/etc/wechat.api.md
@@ -1,7 +1,7 @@
# API surface — esengine/wechat
<!-- Generated by tools/api-surface.mjs — do not edit. Run --update to accept changes. -->
-Symbols: 1386 stable · 17 beta · 1 deprecated
+Symbols: 1387 stable · 17 beta · 1 deprecated
## ANCHOR_AXES — const
```
@@ -7769,6 +7769,12 @@ static new (): UIPlugin
static prototype: UIPlugin
```
+## UIPointerEvents — enum
+```
+Auto = 0
+None = 1
+```
+
## UIPositionType — enum
```
Absolute = 1
diff --git a/sdk/src/core-ui.ts b/sdk/src/core-ui.ts
index ccd708548..3c0368c5f 100644
--- a/sdk/src/core-ui.ts
+++ b/sdk/src/core-ui.ts
@@ -149,6 +149,7 @@ export {
// UINode layout enums
UIPositionType,
UIDisplay,
+ UIPointerEvents,
AlignSelf,
// Flex container
FlexContainer,
diff --git a/sdk/src/ui/index.ts b/sdk/src/ui/index.ts
index e657c36f4..7628d5d11 100644
--- a/sdk/src/ui/index.ts
+++ b/sdk/src/ui/index.ts
@@ -45,7 +45,9 @@ export {
// ─── Layer 1: Primitives ────────────────────────────────────────────────────
export { DimensionUnit, type Dimension, px, percent, auto, isAuto } from './core/dimension';
-export { UINode, UIPositionType, UIDisplay, AlignSelf, type UINodeData } from './core/ui-node';
+// `UIPointerEvents` rides along with the rest: it is the enum of a public UINode field,
+// and without it a game turning a closing panel click-through has to write the raw 1.
+export { UINode, UIPositionType, UIDisplay, UIPointerEvents, AlignSelf, type UINodeData } from './core/ui-node';
export {
UIVisual,