@geastack/geatsc-plugin-gea 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +37 -0
- package/dist/analyze.d.ts +4 -0
- package/dist/analyze.js +195 -0
- package/dist/cpp-canvas-colors.d.ts +4 -0
- package/dist/cpp-canvas-colors.js +226 -0
- package/dist/cpp-field-access.d.ts +49 -0
- package/dist/cpp-field-access.js +144 -0
- package/dist/cpp-ir-dom-style.d.ts +1 -0
- package/dist/cpp-ir-dom-style.js +49 -0
- package/dist/cpp-ir.d.ts +30 -0
- package/dist/cpp-ir.js +2426 -0
- package/dist/cpp-keyed-component-diagnostics.d.ts +8 -0
- package/dist/cpp-keyed-component-diagnostics.js +74 -0
- package/dist/cpp-keyed-list-diagnostics.d.ts +17 -0
- package/dist/cpp-keyed-list-diagnostics.js +84 -0
- package/dist/cpp-mounted-lowering.d.ts +81 -0
- package/dist/cpp-mounted-lowering.js +2235 -0
- package/dist/cpp-mounted.d.ts +25 -0
- package/dist/cpp-mounted.js +1376 -0
- package/dist/cpp-reactive-component-diagnostics.d.ts +2 -0
- package/dist/cpp-reactive-component-diagnostics.js +76 -0
- package/dist/cpp-reactive-component.d.ts +14 -0
- package/dist/cpp-reactive-component.js +349 -0
- package/dist/cpp-replacements.d.ts +14 -0
- package/dist/cpp-replacements.js +787 -0
- package/dist/cpp-source-replacements.d.ts +11 -0
- package/dist/cpp-source-replacements.js +257 -0
- package/dist/cpp-store-hub.d.ts +7 -0
- package/dist/cpp-store-hub.js +160 -0
- package/dist/cpp-store-method-body-parser.d.ts +2 -0
- package/dist/cpp-store-method-body-parser.js +392 -0
- package/dist/cpp-store-method-context.d.ts +48 -0
- package/dist/cpp-store-method-context.js +114 -0
- package/dist/cpp-store-method-expressions.d.ts +12 -0
- package/dist/cpp-store-method-expressions.js +1263 -0
- package/dist/cpp-store-method-replacements.d.ts +5 -0
- package/dist/cpp-store-method-replacements.js +1521 -0
- package/dist/cpp-store-method-targets.d.ts +19 -0
- package/dist/cpp-store-method-targets.js +296 -0
- package/dist/cpp-store-typed-arrays.d.ts +2 -0
- package/dist/cpp-store-typed-arrays.js +655 -0
- package/dist/cpp-stores.d.ts +73 -0
- package/dist/cpp-stores.js +1739 -0
- package/dist/cpp-template-renderer.d.ts +23 -0
- package/dist/cpp-template-renderer.js +3530 -0
- package/dist/css-style-declaration-shims.d.ts +3 -0
- package/dist/css-style-declaration-shims.js +47 -0
- package/dist/host-declarations.d.ts +11 -0
- package/dist/host-declarations.js +320 -0
- package/dist/host-shims.d.ts +3 -0
- package/dist/host-shims.js +3217 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1239 -0
- package/dist/load-ir.d.ts +7 -0
- package/dist/load-ir.js +40 -0
- package/dist/types.d.ts +604 -0
- package/dist/types.js +1 -0
- package/dist/utils.d.ts +26 -0
- package/dist/utils.js +723 -0
- package/dist/validate.d.ts +3 -0
- package/dist/validate.js +226 -0
- package/package.json +57 -0
|
@@ -0,0 +1,3217 @@
|
|
|
1
|
+
import { geaHostExternDeclarations, geaVirtualListRowHeightEmit } from "./host-declarations.js";
|
|
2
|
+
import { CSS_STYLE_DECLARATION_NATIVE_TYPES, CSS_STYLE_DECLARATION_NATIVE_MEMBER_METHODS, } from "./css-style-declaration-shims.js";
|
|
3
|
+
// Receiver types a DOM-node property getter binding matches: the concrete C++
|
|
4
|
+
// handle plus every DOM interface name that lowers to it (see `nativeTypes`).
|
|
5
|
+
// geatsc probes a property read with both the TS type display name and the C++
|
|
6
|
+
// storage type, so listing both forms makes the binding fire regardless of
|
|
7
|
+
// which the checker resolved.
|
|
8
|
+
const NODE_HANDLE_RECEIVER_TYPES = [
|
|
9
|
+
"gea::embedded::ui::NodeHandle",
|
|
10
|
+
"Node",
|
|
11
|
+
"ChildNode",
|
|
12
|
+
"ParentNode",
|
|
13
|
+
"Element",
|
|
14
|
+
"HTMLElement",
|
|
15
|
+
"DocumentFragment",
|
|
16
|
+
"Text",
|
|
17
|
+
"Comment",
|
|
18
|
+
"GeaNode",
|
|
19
|
+
"GeaElement",
|
|
20
|
+
"GeaCanvasElement",
|
|
21
|
+
"GeaCameraElement",
|
|
22
|
+
"VirtualListElement",
|
|
23
|
+
];
|
|
24
|
+
// Receiver type names for the event a listener is handed. One native struct
|
|
25
|
+
// backs every gea event (`gea::framework::events::PointerEvent`), so the
|
|
26
|
+
// qualified storage type and every declared interface that lowers to it are
|
|
27
|
+
// listed together -- the same "one runtime type, many declared names" join
|
|
28
|
+
// `NODE_HANDLE_RECEIVER_TYPES` above states.
|
|
29
|
+
const EVENT_RECEIVER_TYPES = [
|
|
30
|
+
"gea::framework::events::PointerEvent",
|
|
31
|
+
"PointerEvent",
|
|
32
|
+
"TouchEvent",
|
|
33
|
+
"RotaryEvent",
|
|
34
|
+
// `InputEvent` and `KeyEvent` (index.d.ts) are the same one runtime struct:
|
|
35
|
+
// the engine dispatches `PointerEvent&` for `input`/`keydown` exactly as it
|
|
36
|
+
// does for the pointer types, with `target`/`currentTarget`/`keyCode` already
|
|
37
|
+
// filled in (`GeaTextAreaView textDidChange:` sets type + targetId, the
|
|
38
|
+
// listener adapter sets currentTarget). Leaving them off this list -- and off
|
|
39
|
+
// `nativeTypes` -- gave an `onInput={e => ...}` handler's parameter no host
|
|
40
|
+
// carrier, so it lowered to a synthesized record and the runtime listener
|
|
41
|
+
// adapter took its `abort()` arm on the FIRST keystroke.
|
|
42
|
+
"InputEvent",
|
|
43
|
+
"KeyEvent",
|
|
44
|
+
];
|
|
45
|
+
// Receiver type names for the two WebRTC/WebSocket host wrappers. Both the
|
|
46
|
+
// qualified storage type and the interface name a declaration site spells
|
|
47
|
+
// (`index.d.ts` names the instance interfaces `WebSocketInstance` /
|
|
48
|
+
// `RTCPeerConnectionInstance`; the bare `WebSocket` / `RTCPeerConnection` are
|
|
49
|
+
// the ambient CONSTRUCTOR globals), the same join every list here states.
|
|
50
|
+
const WEB_SOCKET_RECEIVER_TYPES = ["gea::host::WebSocket", "WebSocketInstance"];
|
|
51
|
+
const RTC_PEER_CONNECTION_RECEIVER_TYPES = [
|
|
52
|
+
"gea::host::RTCPeerConnection",
|
|
53
|
+
"RTCPeerConnectionInstance",
|
|
54
|
+
];
|
|
55
|
+
// Receiver type names for the node an event names as its target. The engine
|
|
56
|
+
// hands `gea::framework::events::EventTarget` (a node id plus attribute
|
|
57
|
+
// accessors), which is what `InputEvent.target` / `.currentTarget` -- declared
|
|
58
|
+
// as `InputEventTarget` in index.d.ts -- actually are at runtime.
|
|
59
|
+
const EVENT_TARGET_RECEIVER_TYPES = [
|
|
60
|
+
"gea::framework::events::EventTarget",
|
|
61
|
+
"InputEventTarget",
|
|
62
|
+
];
|
|
63
|
+
// Receiver type names for a concrete `gea::host::GeaEmbeddedImage` value: the
|
|
64
|
+
// qualified storage type, the unqualified TS interface name, and the `LoadedImage`
|
|
65
|
+
// alias used by app code (TS resolves the alias, but list it defensively).
|
|
66
|
+
const IMAGE_RECEIVER_TYPES = [
|
|
67
|
+
"gea::host::GeaEmbeddedImage",
|
|
68
|
+
"GeaEmbeddedImage",
|
|
69
|
+
"LoadedImage",
|
|
70
|
+
];
|
|
71
|
+
const DISPLAY_NO_THROW_METHODS = [
|
|
72
|
+
"getBrightness",
|
|
73
|
+
"setBrightness",
|
|
74
|
+
"getDevicePixelRatio",
|
|
75
|
+
"setDevicePixelRatio",
|
|
76
|
+
"getFrameIntervalMs",
|
|
77
|
+
"setFrameIntervalMs",
|
|
78
|
+
"getFrameRate",
|
|
79
|
+
"setFrameRate",
|
|
80
|
+
"getOrientation",
|
|
81
|
+
"setOrientation",
|
|
82
|
+
"getSupportedOrientations",
|
|
83
|
+
"setSupportedOrientations",
|
|
84
|
+
"getAutoRotate",
|
|
85
|
+
"setAutoRotate",
|
|
86
|
+
"setVSync",
|
|
87
|
+
"setTextRasterCache",
|
|
88
|
+
"getPixelFormat",
|
|
89
|
+
"setPixelFormat",
|
|
90
|
+
"getPanelPixelFormat",
|
|
91
|
+
"getSupportedPixelFormats",
|
|
92
|
+
"setAA",
|
|
93
|
+
"setFlushConfig",
|
|
94
|
+
"setMemoryConfig",
|
|
95
|
+
"setEpaperRefreshConfig",
|
|
96
|
+
"epaperFullRefresh",
|
|
97
|
+
];
|
|
98
|
+
const MEMORY_NO_THROW_METHODS = [
|
|
99
|
+
"internalFree",
|
|
100
|
+
"internalLargestFreeBlock",
|
|
101
|
+
"internalMinimumFree",
|
|
102
|
+
"psramFree",
|
|
103
|
+
"currentTaskStackHighWaterMark",
|
|
104
|
+
"geaMainStackBytes",
|
|
105
|
+
"geaInitStackBytes",
|
|
106
|
+
"appFrameStackWords",
|
|
107
|
+
"appFrameStackBytes",
|
|
108
|
+
"displayFlushConfiguredRows",
|
|
109
|
+
"displayFlushConfiguredDepth",
|
|
110
|
+
"displayFlushBufferMaxBytes",
|
|
111
|
+
"displayFlushRows",
|
|
112
|
+
"displayFlushDepth",
|
|
113
|
+
"displayFlushBufferBytes",
|
|
114
|
+
];
|
|
115
|
+
const HOST_NATIVE_CALLABLE_SIDECARS = [
|
|
116
|
+
...[
|
|
117
|
+
["reactive-text-value", "reactiveTextValue", 3],
|
|
118
|
+
["reactive-text", "reactiveText", 3],
|
|
119
|
+
["reactive-attr", "reactiveAttr", 4],
|
|
120
|
+
["reactive-class", "reactiveClass", 3],
|
|
121
|
+
["reactive-class-name", "reactiveClassName", 3],
|
|
122
|
+
["reactive-style", "reactiveStyle", 3],
|
|
123
|
+
["reactive-style-prop", "reactiveStyleProp", 4],
|
|
124
|
+
["reactive-bool-attr", "reactiveBoolAttr", 4],
|
|
125
|
+
["reactive-bool", "reactiveBool", 4],
|
|
126
|
+
["reactive-value-read", "reactiveValueRead", 3],
|
|
127
|
+
["reactive-value", "reactiveValue", 3],
|
|
128
|
+
["reactive-html", "reactiveHtml", 3],
|
|
129
|
+
].map(([id, exportName, parameterIndex]) => ({
|
|
130
|
+
kind: "host-native-callable-sidecar-v1",
|
|
131
|
+
semanticCategory: "framework-protocol",
|
|
132
|
+
id: `gea.host-native-callable.${id}`,
|
|
133
|
+
version: 1,
|
|
134
|
+
payload: {
|
|
135
|
+
callable: { moduleSpecifier: "/", exportName },
|
|
136
|
+
operations: {
|
|
137
|
+
disposerContainedCallbacks: { parameterIndices: [parameterIndex] },
|
|
138
|
+
structuralDynamicParameters: [
|
|
139
|
+
{
|
|
140
|
+
parameterIndex: 2,
|
|
141
|
+
structuralType: "object",
|
|
142
|
+
transport: "declared-dynamic",
|
|
143
|
+
},
|
|
144
|
+
],
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
})),
|
|
148
|
+
{
|
|
149
|
+
kind: "host-native-callable-sidecar-v1",
|
|
150
|
+
semanticCategory: "framework-protocol",
|
|
151
|
+
id: "gea.host-native-callable.conditional",
|
|
152
|
+
version: 1,
|
|
153
|
+
payload: {
|
|
154
|
+
callable: { moduleSpecifier: "/", exportName: "conditional" },
|
|
155
|
+
operations: {
|
|
156
|
+
structuralDynamicParameters: [
|
|
157
|
+
{
|
|
158
|
+
parameterIndex: 3,
|
|
159
|
+
structuralType: "object",
|
|
160
|
+
transport: "declared-dynamic",
|
|
161
|
+
},
|
|
162
|
+
],
|
|
163
|
+
retainedCleanupLifecycle: {
|
|
164
|
+
disposerParameterIndex: 2,
|
|
165
|
+
registrationTarget: {
|
|
166
|
+
owner: {
|
|
167
|
+
moduleSpecifier: "/runtime/disposer.ts",
|
|
168
|
+
exportName: "Disposer",
|
|
169
|
+
},
|
|
170
|
+
instanceMethod: "add",
|
|
171
|
+
},
|
|
172
|
+
cleanupParameterIndex: 0,
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
kind: "host-native-callable-sidecar-v1",
|
|
179
|
+
semanticCategory: "framework-protocol",
|
|
180
|
+
id: "gea.host-native-callable.with-tracking",
|
|
181
|
+
version: 1,
|
|
182
|
+
payload: {
|
|
183
|
+
callable: { moduleSpecifier: "/", exportName: "withTracking" },
|
|
184
|
+
operations: {
|
|
185
|
+
disposerContainedCallbacks: { parameterIndices: [2] },
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
kind: "host-native-callable-sidecar-v1",
|
|
191
|
+
semanticCategory: "framework-protocol",
|
|
192
|
+
id: "gea.host-native-callable.bind-apply",
|
|
193
|
+
version: 1,
|
|
194
|
+
payload: {
|
|
195
|
+
callable: {
|
|
196
|
+
moduleSpecifier: "/",
|
|
197
|
+
exportName: "bind",
|
|
198
|
+
},
|
|
199
|
+
operations: {
|
|
200
|
+
disposerContainedCallbacks: { parameterIndices: [3] },
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
kind: "host-native-callable-sidecar-v1",
|
|
206
|
+
semanticCategory: "framework-protocol",
|
|
207
|
+
id: "gea.host-native-callable.delegate-click",
|
|
208
|
+
version: 1,
|
|
209
|
+
payload: {
|
|
210
|
+
callable: {
|
|
211
|
+
moduleSpecifier: "/",
|
|
212
|
+
exportName: "delegateClick",
|
|
213
|
+
},
|
|
214
|
+
operations: {
|
|
215
|
+
disposerContainedCallbacks: { parameterIndices: [1] },
|
|
216
|
+
callableExpandoProperties: [
|
|
217
|
+
{
|
|
218
|
+
key: "__gc",
|
|
219
|
+
receiverTypes: ["gea::embedded::ui::NodeHandle"],
|
|
220
|
+
receiverRole: "host-native-handle",
|
|
221
|
+
valueRole: "callable",
|
|
222
|
+
parameterTransports: [
|
|
223
|
+
{
|
|
224
|
+
kind: "dynamic-record",
|
|
225
|
+
protocolId: "gea.pointer-event-record-v1",
|
|
226
|
+
},
|
|
227
|
+
],
|
|
228
|
+
},
|
|
229
|
+
],
|
|
230
|
+
dataExpandoProperties: [
|
|
231
|
+
{
|
|
232
|
+
key: "__gdc",
|
|
233
|
+
receiverTypes: ["gea::embedded::ui::Document"],
|
|
234
|
+
receiverRole: "host-native-handle",
|
|
235
|
+
valueRole: "dynamic",
|
|
236
|
+
},
|
|
237
|
+
],
|
|
238
|
+
},
|
|
239
|
+
},
|
|
240
|
+
},
|
|
241
|
+
];
|
|
242
|
+
export function createGeaHostShims() {
|
|
243
|
+
return {
|
|
244
|
+
// Gea embedded has no dynamic Symbol type: a `unique symbol` const used as a
|
|
245
|
+
// property key lowers to its named string key (`__sym_<name>`) and well-known
|
|
246
|
+
// symbol protocols read named members, so nothing boxes to a `gea_cpp_value`
|
|
247
|
+
// symbol. (The general TypeScript/test262 path leaves this off.)
|
|
248
|
+
lowerSymbolsAsNamedMembers: true,
|
|
249
|
+
// On the gea embedded/IR backend a rendered node IS a `NodeHandle` (a typed
|
|
250
|
+
// id into the retained UI tree). The DOM-shaped `Node`/`Element`/… types the
|
|
251
|
+
// gea runtime is written against all lower to that one concrete handle, so
|
|
252
|
+
// component templates flow as `NodeHandle` end-to-end with no `gea_cpp_value`
|
|
253
|
+
// record bridge.
|
|
254
|
+
nativeTypes: {
|
|
255
|
+
// The ambient DOM global `document` (lib.dom.d.ts's `Document`) — a
|
|
256
|
+
// singleton, not a tree node, so it gets its own storage rather than
|
|
257
|
+
// sharing `NodeHandle`. Registering it here is what lets
|
|
258
|
+
// `hostInterfaceCarrierRule` (`driver/type-carriers/host-interfaces.ts`,
|
|
259
|
+
// via `hostNativeStorageForType`) seal a real carrier for the RECEIVER of
|
|
260
|
+
// `document.<method>(...)`: without an entry, `document`'s receiver
|
|
261
|
+
// operand resolved no representation at all and every typed
|
|
262
|
+
// `document.getElementById(...)` (etc.) rejected with
|
|
263
|
+
// `missing-operand-source-representation` on top of the template
|
|
264
|
+
// mismatch fixed alongside this entry. `host-document-calls.ts`'s own
|
|
265
|
+
// plans never actually load this value (its templates call
|
|
266
|
+
// `Document::instance()` themselves — `document` is a singleton, so no
|
|
267
|
+
// receiver value has to flow), so this entry exists purely to satisfy the
|
|
268
|
+
// semantic-operation graph's requirement that the receiver operand of a
|
|
269
|
+
// property-access callee resolve SOME carrier.
|
|
270
|
+
Document: "gea::embedded::ui::Document",
|
|
271
|
+
Node: "gea::embedded::ui::NodeHandle",
|
|
272
|
+
ChildNode: "gea::embedded::ui::NodeHandle",
|
|
273
|
+
ParentNode: "gea::embedded::ui::NodeHandle",
|
|
274
|
+
Element: "gea::embedded::ui::NodeHandle",
|
|
275
|
+
HTMLElement: "gea::embedded::ui::NodeHandle",
|
|
276
|
+
DOMTokenList: "gea::embedded::ui::ClassList",
|
|
277
|
+
DocumentFragment: "gea::embedded::ui::NodeHandle",
|
|
278
|
+
Text: "gea::embedded::ui::NodeHandle",
|
|
279
|
+
Comment: "gea::embedded::ui::NodeHandle",
|
|
280
|
+
// An event target IS a DOM node on this backend; without this mapping
|
|
281
|
+
// `event.target` flows as a boxed __gea_type_EventTarget record that won't
|
|
282
|
+
// convert to NodeHandle (delegate-click assigns it to one).
|
|
283
|
+
EventTarget: "gea::embedded::ui::NodeHandle",
|
|
284
|
+
// The event a listener DECLARES (`onTouchMove={e => pan(e.clientX,
|
|
285
|
+
// e.clientY)}`). One native struct backs every gea event -- the engine
|
|
286
|
+
// hands `gea::framework::events::PointerEvent&` to every listener it
|
|
287
|
+
// dispatches, and that struct already carries the full surface these
|
|
288
|
+
// interfaces declare (`clientX`/`clientY`/`x`/`y`/`pageX`/`pageY`/
|
|
289
|
+
// `screenX`/`screenY`/`pointerId`/`target`/`currentTarget`/`touches`).
|
|
290
|
+
// So this is the same "one runtime type, many declared names" join the
|
|
291
|
+
// DOM-alias rows above already state, not several carriers.
|
|
292
|
+
//
|
|
293
|
+
// Without these rows an event PARAMETER has no carrier at all, so the
|
|
294
|
+
// emitter registered the handler as an arity-1 callable it could not
|
|
295
|
+
// call: the runtime's listener overload refused at dispatch. And because
|
|
296
|
+
// that refusal registered on the node rather than the body, the engine --
|
|
297
|
+
// which dispatches to the hit-test target and does not walk ancestors --
|
|
298
|
+
// never reached it either. A wrapper `<div>`'s drag handlers received
|
|
299
|
+
// nothing, silently, and the app just did not respond.
|
|
300
|
+
PointerEvent: "gea::framework::events::PointerEvent",
|
|
301
|
+
TouchEvent: "gea::framework::events::PointerEvent",
|
|
302
|
+
RotaryEvent: "gea::framework::events::PointerEvent",
|
|
303
|
+
TouchPoint: "gea::framework::events::TouchPoint",
|
|
304
|
+
// The text-input half of the same join. `onInput={e => ...}` /
|
|
305
|
+
// `onKeyDown={e => ...}` declare `InputEvent` / `KeyEvent` (index.d.ts),
|
|
306
|
+
// and the engine dispatches the SAME `PointerEvent&` for them: the macOS
|
|
307
|
+
// text bridge writes the edited string into the node's `value` attribute
|
|
308
|
+
// and posts `PointerEventType::Input` with `targetId` set
|
|
309
|
+
// (`apple/targets/macos/main/macos_renderer.mm`), and the keydown path
|
|
310
|
+
// fills `keyCode`. Without these two rows the handler parameter had no
|
|
311
|
+
// carrier, so it lowered to a synthesized record
|
|
312
|
+
// (`std::shared_ptr<gea_record_type_NNN>`) that
|
|
313
|
+
// `gea::jsx::detail::addNodeListener` cannot construct from a
|
|
314
|
+
// `PointerEvent&` -- its `if constexpr` fell to the `std::abort()` arm and
|
|
315
|
+
// the app died on the first keystroke in any `<input>` / `<textarea>`.
|
|
316
|
+
InputEvent: "gea::framework::events::PointerEvent",
|
|
317
|
+
KeyEvent: "gea::framework::events::PointerEvent",
|
|
318
|
+
// `InputEvent.target` / `.currentTarget`. Declared as `InputEventTarget`
|
|
319
|
+
// (an `Element` with a `value: string`); at runtime it is the engine's own
|
|
320
|
+
// `EventTarget` -- a node id plus attribute accessors -- which is where
|
|
321
|
+
// `value` actually lives (the text bridge stores it as the `value`
|
|
322
|
+
// attribute). v1 emitted exactly this:
|
|
323
|
+
// `event.currentTarget.getAttribute("value")`.
|
|
324
|
+
InputEventTarget: "gea::framework::events::EventTarget",
|
|
325
|
+
// gea-embedded's own element interfaces (index.d.ts) — without these a
|
|
326
|
+
// `Component<GeaCanvasElement>`'s `this.el` lowers to a record-alias struct
|
|
327
|
+
// of std::functions whose boxed form has no `__gea_node_id`, so
|
|
328
|
+
// `getContext('2d')` binds a CanvasRenderingContext2D to node -1 and every
|
|
329
|
+
// draw silently no-ops (black screen, zero flush).
|
|
330
|
+
GeaNode: "gea::embedded::ui::NodeHandle",
|
|
331
|
+
GeaElement: "gea::embedded::ui::NodeHandle",
|
|
332
|
+
GeaCanvasElement: "gea::embedded::ui::NodeHandle",
|
|
333
|
+
GeaCameraElement: "gea::embedded::ui::NodeHandle",
|
|
334
|
+
// `<virtual-list>`'s own element interface (index.d.ts). Same family and
|
|
335
|
+
// same reason as the three above: without the mapping a
|
|
336
|
+
// `VirtualListElement | null` field is not a node at all, and its
|
|
337
|
+
// `rowHeight`/`scrollTop` reads fall to the dynamic path.
|
|
338
|
+
VirtualListElement: "gea::embedded::ui::NodeHandle",
|
|
339
|
+
// The result of `fetch(...)` flows as the concrete C++ struct (which carries
|
|
340
|
+
// `ok`/`status`/`body` data members plus `text()`/`bytes()`/`arrayBuffer()`
|
|
341
|
+
// methods), not a `gea_cpp_value` record — so `await fetch(url).arrayBuffer()`
|
|
342
|
+
// hands the raw body bytes straight to `loadImage` with no boxing.
|
|
343
|
+
FetchResponse: "gea::host::FetchResponse",
|
|
344
|
+
// Device-hosted HTTP server handle (Node-style `http.createServer`). Keeps
|
|
345
|
+
// `const server = http.createServer(...)` a concrete `gea::host::HttpServer`
|
|
346
|
+
// (a thin handle) so `server.listen(...)` / `server.close()` lower to direct
|
|
347
|
+
// native calls instead of boxing into a gea_cpp_value record.
|
|
348
|
+
HttpServer: "gea::host::HttpServer",
|
|
349
|
+
// `loadImage(...)` yields this concrete handle (id + cached width/height/
|
|
350
|
+
// frameCount/isAnimated + play/pause/seek/dispose methods), so decoded
|
|
351
|
+
// images — including a `GeaEmbeddedImage[]` tile cache — flow as native
|
|
352
|
+
// structs with no `gea_cpp_value` boxing. `canvasImageId` reads `.id`.
|
|
353
|
+
GeaEmbeddedImage: "gea::host::GeaEmbeddedImage",
|
|
354
|
+
// `touch.read()` yields this concrete {touching,x,y} struct. Without the
|
|
355
|
+
// native mapping the binding boxes it to a gea_cpp_value whose fields the
|
|
356
|
+
// host struct can't expose, so `sample.touching` reads nullish — the device
|
|
357
|
+
// touch poll then clears every frame and on-screen buttons never register.
|
|
358
|
+
TouchSample: "gea::host::TouchSample",
|
|
359
|
+
GeolocationCoordinates: "gea::host::GeolocationCoordinates",
|
|
360
|
+
GeolocationPosition: "gea::host::GeolocationPosition",
|
|
361
|
+
GeolocationPositionError: "gea::host::GeolocationPositionError",
|
|
362
|
+
PositionOptions: "gea::host::GeolocationOptions",
|
|
363
|
+
MediaStream: "gea::host::MediaStream",
|
|
364
|
+
MediaStreamTrack: "gea::host::MediaStreamTrack",
|
|
365
|
+
MediaRecorder: "gea::host::MediaRecorder",
|
|
366
|
+
MediaRecorderDataAvailableEvent: "gea::host::MediaRecorderDataEvent",
|
|
367
|
+
GeaAudioBlob: "gea::host::GeaAudioBlob",
|
|
368
|
+
HTMLAudioElement: "gea::host::HTMLAudioElement",
|
|
369
|
+
// The three ambient CONSTRUCTOR interfaces (`declare var Audio:
|
|
370
|
+
// AudioConstructor`, etc.) share their instance type's own carrier
|
|
371
|
+
// above: `new Audio(...)` and every `audio.play()` afterward flow
|
|
372
|
+
// through the identical `gea::host::HTMLAudioElement`, so this is the
|
|
373
|
+
// same "one runtime type, many declared names" join the file's other
|
|
374
|
+
// DOM-alias rows already state (see `NODE_HANDLE_RECEIVER_TYPES`'s own
|
|
375
|
+
// comment) — never a second, constructor-only C++ type. See
|
|
376
|
+
// `nativeConstructors` below for the actual `new` spelling.
|
|
377
|
+
AudioConstructor: "gea::host::HTMLAudioElement",
|
|
378
|
+
MediaStreamConstructor: "gea::host::MediaStream",
|
|
379
|
+
MediaRecorderConstructor: "gea::host::MediaRecorder",
|
|
380
|
+
AudioContext: "gea::host::AudioContext",
|
|
381
|
+
AudioDestinationNode: "gea::host::AudioDestinationNode",
|
|
382
|
+
AudioParam: "gea::host::AudioParam",
|
|
383
|
+
OscillatorNode: "gea::host::OscillatorNode",
|
|
384
|
+
AudioBuffer: "gea::host::AudioBuffer",
|
|
385
|
+
AudioBufferSourceNode: "gea::host::AudioBufferSourceNode",
|
|
386
|
+
// A colour already in the board's native pixel (`rgb565()` -> constexpr
|
|
387
|
+
// `pixel::nativeColorValue`). Keep it wrapped as `NativeColor` instead of
|
|
388
|
+
// aliasing it to `native_t`: on RGBA8888 targets `native_t` is uint32_t, the
|
|
389
|
+
// same C++ type as `Uint32Array` authored 0xRRGGBBAA colours. The wrapper
|
|
390
|
+
// preserves the zero-cost native palette path without letting plain JS
|
|
391
|
+
// numbers masquerade as native pixels.
|
|
392
|
+
Rgb565: "gea::framework::graphics::pixel::NativeColor",
|
|
393
|
+
// Raw byte buffers are native vectors, end to end. Without this mapping a
|
|
394
|
+
// `Uint8Array` binding (e.g. `const bytes: Uint8Array = await
|
|
395
|
+
// res.arrayBuffer()`) stores as gea_cpp_value, which boxes EVERY BYTE into a
|
|
396
|
+
// ~292-byte gea_cpp_value at the conversion boundary — a 25 KB PNG tile
|
|
397
|
+
// becomes a ~7 MB contiguous temporary that fragments PSRAM and aborts on
|
|
398
|
+
// device. `FetchResponse.bytes()/arrayBuffer()` and the `image.loadBytes*` /
|
|
399
|
+
// `image.writeFile` host methods already speak std::vector<std::uint8_t>
|
|
400
|
+
// natively, so with this mapping the whole fetch→decode→write path is
|
|
401
|
+
// zero-boxing.
|
|
402
|
+
Uint8Array: "std::vector<std::uint8_t>",
|
|
403
|
+
ArrayBuffer: "std::vector<std::uint8_t>",
|
|
404
|
+
// Real, unboxed handle wrappers already shipped for the device target
|
|
405
|
+
// (packages/host/include/host/websocket.h, rtc.h) -- nativeHandle plus
|
|
406
|
+
// real methods (send/close, addTrack/createOffer/setLocalDescription/...)
|
|
407
|
+
// and mutable on-event property slots. Instance and constructor share
|
|
408
|
+
// one carrier, the same "one runtime type, many declared names" join
|
|
409
|
+
// HTMLAudioElement/AudioConstructor already state above.
|
|
410
|
+
WebSocket: "gea::host::WebSocket",
|
|
411
|
+
WebSocketConstructor: "gea::host::WebSocket",
|
|
412
|
+
RTCPeerConnection: "gea::host::RTCPeerConnection",
|
|
413
|
+
RTCPeerConnectionConstructor: "gea::host::RTCPeerConnection",
|
|
414
|
+
// The INSTANCE interfaces, which are the names an app actually annotates
|
|
415
|
+
// with: `index.d.ts` declares the globals as
|
|
416
|
+
// `const WebSocket: WebSocketConstructor` /
|
|
417
|
+
// `const RTCPeerConnection: RTCPeerConnectionConstructor`, so
|
|
418
|
+
// `WebSocket`/`RTCPeerConnection` above are value names this table --
|
|
419
|
+
// keyed by TYPE name -- never matches, and `WebSocketInstance` /
|
|
420
|
+
// `RTCPeerConnectionInstance` are what a declaration site spells
|
|
421
|
+
// (`shared/Dialer/store.tsx`: `pc: RTCPeerConnectionInstance | null`).
|
|
422
|
+
// Without these rows the constructor call emitted the right host type and
|
|
423
|
+
// the variable holding it derived a synthesized record, so clang rejected
|
|
424
|
+
// `v33 = gea::host::RTCPeerConnection(...)` -- "no known conversion to
|
|
425
|
+
// Ref<gea_record_type_265>" -- on a program with zero refusals.
|
|
426
|
+
WebSocketInstance: "gea::host::WebSocket",
|
|
427
|
+
RTCPeerConnectionInstance: "gea::host::RTCPeerConnection",
|
|
428
|
+
...CSS_STYLE_DECLARATION_NATIVE_TYPES,
|
|
429
|
+
},
|
|
430
|
+
// `new <AmbientConstructor>(...)` spellings for the three WebAudio/media
|
|
431
|
+
// constructors above — real `gea::host` constructors already shipped for
|
|
432
|
+
// the device target (`packages/host/include/host/audio.h`,
|
|
433
|
+
// `.../media.h`), so this states the call rather than adding any new C++.
|
|
434
|
+
// Keyed by the CONSTRUCTOR interface's own declared name (see
|
|
435
|
+
// `nativeConstructors`'s own field comment, types.ts, for why).
|
|
436
|
+
nativeConstructors: {
|
|
437
|
+
// `new Audio(src?: string): HTMLAudioElement` -> `HTMLAudioElement(const
|
|
438
|
+
// std::string&)` (audio.h). One argument: the checker's own optional
|
|
439
|
+
// `src` still reaches this template as an argument slot, padded to an
|
|
440
|
+
// empty string when a call omits it (the shared `paddedArguments`
|
|
441
|
+
// machinery every other constructor carrier's trailing-optional
|
|
442
|
+
// argument goes through).
|
|
443
|
+
AudioConstructor: "gea::host::HTMLAudioElement({arg0})",
|
|
444
|
+
// `new MediaStream(): MediaStream` -> the default constructor
|
|
445
|
+
// (media.h). No arguments in either the declaration or the C++ type.
|
|
446
|
+
MediaStreamConstructor: "gea::host::MediaStream()",
|
|
447
|
+
// `new MediaRecorder(stream, options?): MediaRecorder` -> the two-
|
|
448
|
+
// argument constructor (media.h's `MediaRecorder(MediaStream, const
|
|
449
|
+
// Options&)` template, `Options` deduced). A call that omits `options`
|
|
450
|
+
// is padded the same way `AudioConstructor` pads `src` -- the templated
|
|
451
|
+
// constructor reads only the members an actually-passed options object
|
|
452
|
+
// states (`media::recorder_path_from_options`/`_mime_from_options`,
|
|
453
|
+
// both SFINAE'd on `requires { options.path/mimeType; }`), so a padded
|
|
454
|
+
// placeholder with neither member compiles and falls to the same
|
|
455
|
+
// default path/mimeType the JS call's own omission means.
|
|
456
|
+
MediaRecorderConstructor: "gea::host::MediaRecorder({arg0}, {arg1})",
|
|
457
|
+
// `new WebSocket(url: string): WebSocket` -> `WebSocket(NativeWebSocketHandle)`
|
|
458
|
+
// wrapping `gea::host::websocket::create_handle(const std::string&)`
|
|
459
|
+
// (websocket.h). One argument, no padding needed -- the declared
|
|
460
|
+
// constructor takes `url` as required.
|
|
461
|
+
WebSocketConstructor: "gea::host::WebSocket(gea::host::websocket::create_handle({arg0}))",
|
|
462
|
+
// `new RTCPeerConnection(config): RTCPeerConnection` -> the templated
|
|
463
|
+
// `gea::host::rtc::create_handle(const Config&)` overload (rtc.h),
|
|
464
|
+
// which accepts the emitted config record's own C++ type directly (its
|
|
465
|
+
// own comment: "for now we ignore the contents and fall back to the
|
|
466
|
+
// no-arg form" -- a pre-existing, already-shipped limitation this
|
|
467
|
+
// binding does not change or paper over).
|
|
468
|
+
RTCPeerConnectionConstructor: "gea::host::RTCPeerConnection(gea::host::rtc::create_handle({arg0}))",
|
|
469
|
+
},
|
|
470
|
+
hostGlobalObjects: {
|
|
471
|
+
navigator: "gea::host::navigator",
|
|
472
|
+
window: "gea::host::window",
|
|
473
|
+
// `localStorage` (a browser global, no import) resolves to the persistent
|
|
474
|
+
// NVS-backed facade rather than the standalone in-memory runtime store. This
|
|
475
|
+
// also makes the `localStorage.length` property read lower to the facade.
|
|
476
|
+
localStorage: "gea::host::Storage",
|
|
477
|
+
},
|
|
478
|
+
// The C++ type of each object named above, read off the host's own headers
|
|
479
|
+
// (`packages/host/include/host/{navigator,window,storage}.h`). See
|
|
480
|
+
// `HostShimDefinitions.hostGlobalObjectTypes` for why the value spelling
|
|
481
|
+
// alone is not enough.
|
|
482
|
+
hostGlobalObjectTypes: {
|
|
483
|
+
// `inline constexpr Navigator navigator{}` -- navigator.h.
|
|
484
|
+
navigator: "gea::host::Navigator",
|
|
485
|
+
// `inline constexpr WindowFacade window{}` -- window.h.
|
|
486
|
+
window: "gea::host::WindowFacade",
|
|
487
|
+
// `inline StorageFacade Storage` -- storage.h. The global is spelled
|
|
488
|
+
// `gea::host::Storage` and its type is `gea::host::StorageFacade`; the
|
|
489
|
+
// two names differ here where they coincide for the other two rows,
|
|
490
|
+
// which is precisely why this table cannot be derived from its sibling.
|
|
491
|
+
localStorage: "gea::host::StorageFacade",
|
|
492
|
+
},
|
|
493
|
+
hostNamespaces: {
|
|
494
|
+
navigator: "gea::host::navigator",
|
|
495
|
+
// The viewport globals. `gea::host::window` is a real facade object
|
|
496
|
+
// (packages/host/include/host/window.h) whose `innerWidth`/`innerHeight`
|
|
497
|
+
// are METHODS, which is why they are listed as accessors below --
|
|
498
|
+
// `navigator`'s siblings are plain fields and are not.
|
|
499
|
+
window: "gea::host::window",
|
|
500
|
+
image: "image",
|
|
501
|
+
// Async tile/image loader (second-core worker: SD read -> HTTP fetch ->
|
|
502
|
+
// decode, drained per frame). See packages/core/host/tile_loader.h.
|
|
503
|
+
tiles: "tiles",
|
|
504
|
+
touch: "touch",
|
|
505
|
+
apps: "apps",
|
|
506
|
+
Apps: "gea::host::apps",
|
|
507
|
+
BLE: "gea::host::navigator.bluetooth",
|
|
508
|
+
bluetooth: "gea::host::navigator.bluetooth",
|
|
509
|
+
Geolocation: "gea::host::navigator.geolocation",
|
|
510
|
+
geolocation: "gea::host::navigator.geolocation",
|
|
511
|
+
WiFi: "gea::host::navigator.wifi",
|
|
512
|
+
wifi: "gea::host::navigator.wifi",
|
|
513
|
+
http: "gea::host::http",
|
|
514
|
+
Accelerometer: "Accelerometer",
|
|
515
|
+
__gea_Accelerometer: "gea::host::Accelerometer",
|
|
516
|
+
Camera: "gea::host::Camera",
|
|
517
|
+
__gea_Camera: "gea::host::Camera",
|
|
518
|
+
Display: "gea::host::Display",
|
|
519
|
+
display: "gea::host::Display",
|
|
520
|
+
Memory: "gea::host::Memory",
|
|
521
|
+
memory: "gea::host::Memory",
|
|
522
|
+
Input: "gea::host::Input",
|
|
523
|
+
Gpio: "gea::host::Gpio",
|
|
524
|
+
Led: "gea::host::Led",
|
|
525
|
+
Clock: "gea::host::Clock",
|
|
526
|
+
Profiler: "gea::host::Profiler",
|
|
527
|
+
Battery: "gea::host::Battery",
|
|
528
|
+
Notify: "gea::host::Notify",
|
|
529
|
+
DeviceControl: "gea::host::DeviceControl",
|
|
530
|
+
nativeBench: "gea::host::native_bench",
|
|
531
|
+
epubArchive: "gea::host::epub_archive",
|
|
532
|
+
deviceInfo: "gea::host::device_info",
|
|
533
|
+
gea3dNative: "gea::host::gea3d",
|
|
534
|
+
__gea_Audio: "audio",
|
|
535
|
+
__gea_Display: "gea::host::Display",
|
|
536
|
+
__gea_Memory: "gea::host::Memory",
|
|
537
|
+
__gea_Input: "gea::host::Input",
|
|
538
|
+
__gea_Gpio: "gea::host::Gpio",
|
|
539
|
+
__gea_Led: "gea::host::Led",
|
|
540
|
+
__gea_Clock: "gea::host::Clock",
|
|
541
|
+
__gea_Profiler: "gea::host::Profiler",
|
|
542
|
+
__gea_Battery: "gea::host::Battery",
|
|
543
|
+
__gea_Notify: "gea::host::Notify",
|
|
544
|
+
__gea_DeviceControl: "gea::host::DeviceControl",
|
|
545
|
+
// `console` is a PATH, not a value. An app that declares its own
|
|
546
|
+
// `declare const console: { log(message: string): void }` (several in
|
|
547
|
+
// `examples/` do, in their `env.d.ts`) gives the global an anonymous
|
|
548
|
+
// object type, so no protocol named `Console` matches it and a compiler
|
|
549
|
+
// with only that declaration to go on materializes a record global --
|
|
550
|
+
// `extern std::shared_ptr<gea_record_type_222> console;`, which nothing
|
|
551
|
+
// defines and which surfaces only at link. Stating the path here is the
|
|
552
|
+
// package answering for its own host, the same way `window` and
|
|
553
|
+
// `navigator` are answered above.
|
|
554
|
+
console: "gea::host::console",
|
|
555
|
+
},
|
|
556
|
+
hostNamespaceIdentities: {
|
|
557
|
+
Display: { moduleSpecifier: "/", exportName: "Display" },
|
|
558
|
+
},
|
|
559
|
+
hostNamespaceMethods: {
|
|
560
|
+
// Free functions in `gea::host::console` (geatsc's `gea_runtime.h`
|
|
561
|
+
// declares them unconditionally, outside any `GEA_HOST_DECLARED` guard,
|
|
562
|
+
// so they are reachable from a gea build too). `warn`/`info`/`debug` are
|
|
563
|
+
// deliberately absent: no runtime function backs them, and a member no
|
|
564
|
+
// row claims is refused by name rather than silently accepted.
|
|
565
|
+
console: {
|
|
566
|
+
log: "gea::host::console::log",
|
|
567
|
+
error: "gea::host::console::error",
|
|
568
|
+
},
|
|
569
|
+
"navigator.mediaDevices": {
|
|
570
|
+
getUserMedia: "gea::host::media::get_user_media_audio",
|
|
571
|
+
},
|
|
572
|
+
nativeBench: {
|
|
573
|
+
loopOverhead: "gea::host::native_bench::loopOverhead",
|
|
574
|
+
arrayRead: "gea::host::native_bench::arrayRead",
|
|
575
|
+
arrayWrite: "gea::host::native_bench::arrayWrite",
|
|
576
|
+
closure: "gea::host::native_bench::closure",
|
|
577
|
+
methodCalls: "gea::host::native_bench::methodCalls",
|
|
578
|
+
mathIntensive: "gea::host::native_bench::mathIntensive",
|
|
579
|
+
modulo: "gea::host::native_bench::modulo",
|
|
580
|
+
factorial: "gea::host::native_bench::factorial",
|
|
581
|
+
fibonacci: "gea::host::native_bench::fibonacci",
|
|
582
|
+
nestedLoops: "gea::host::native_bench::nestedLoops",
|
|
583
|
+
matrixMultiply: "gea::host::native_bench::matrixMultiply",
|
|
584
|
+
mandelbrot: "gea::host::native_bench::mandelbrot",
|
|
585
|
+
binaryTrees: "gea::host::native_bench::binaryTrees",
|
|
586
|
+
primeSieve: "gea::host::native_bench::primeSieve",
|
|
587
|
+
stringConcat: "gea::host::native_bench::stringConcat",
|
|
588
|
+
objectCreate: "gea::host::native_bench::objectCreate",
|
|
589
|
+
jsonStringify: "gea::host::native_bench::jsonStringify",
|
|
590
|
+
jsonParse: "gea::host::native_bench::jsonParse",
|
|
591
|
+
ttfFontReady: "gea::host::native_bench::ttfFontReady",
|
|
592
|
+
ttfFontBytes: "gea::host::native_bench::ttfFontBytes",
|
|
593
|
+
ttfCMalloc64: "gea::host::native_bench::ttfCMalloc64",
|
|
594
|
+
ttfScaleForSize: "gea::host::native_bench::ttfScaleForSize",
|
|
595
|
+
ttfGlyphIndex: "gea::host::native_bench::ttfGlyphIndex",
|
|
596
|
+
ttfGlyphAdvance: "gea::host::native_bench::ttfGlyphAdvance",
|
|
597
|
+
ttfGlyphWidth: "gea::host::native_bench::ttfGlyphWidth",
|
|
598
|
+
ttfGlyphHeight: "gea::host::native_bench::ttfGlyphHeight",
|
|
599
|
+
ttfShapeCount: "gea::host::native_bench::ttfShapeCount",
|
|
600
|
+
ttfShapeChecksum: "gea::host::native_bench::ttfShapeChecksum",
|
|
601
|
+
ttfFlattenGlyph: "gea::host::native_bench::ttfFlattenGlyph",
|
|
602
|
+
ttfRasterEmptyStatic: "gea::host::native_bench::ttfRasterEmptyStatic",
|
|
603
|
+
ttfManualBoxStatic: "gea::host::native_bench::ttfManualBoxStatic",
|
|
604
|
+
ttfSortEdgesStatic: "gea::host::native_bench::ttfSortEdgesStatic",
|
|
605
|
+
ttfScanEdgesStatic: "gea::host::native_bench::ttfScanEdgesStatic",
|
|
606
|
+
ttfRasterBoxSimple: "gea::host::native_bench::ttfRasterBoxSimple",
|
|
607
|
+
ttfRasterBoxStatic: "gea::host::native_bench::ttfRasterBoxStatic",
|
|
608
|
+
ttfRasterGlyphStatic: "gea::host::native_bench::ttfRasterGlyphStatic",
|
|
609
|
+
ttfSpecimenWidth: "gea::host::native_bench::ttfSpecimenWidth",
|
|
610
|
+
ttfSpecimenHeight: "gea::host::native_bench::ttfSpecimenHeight",
|
|
611
|
+
ttfSpecimenReady: "gea::host::native_bench::ttfSpecimenReady",
|
|
612
|
+
ttfSpecimenColumnBits: "gea::host::native_bench::ttfSpecimenColumnBits",
|
|
613
|
+
ttfColdGlyph: "gea::host::native_bench::ttfColdGlyph",
|
|
614
|
+
ttfColdRun: "gea::host::native_bench::ttfColdRun",
|
|
615
|
+
ttfCachedRun: "gea::host::native_bench::ttfCachedRun",
|
|
616
|
+
},
|
|
617
|
+
epubArchive: {
|
|
618
|
+
inflateRaw: "gea::host::epub_archive::inflateRaw",
|
|
619
|
+
parse: "gea::host::epub_archive::parse",
|
|
620
|
+
meta: "gea::host::epub_archive::meta",
|
|
621
|
+
chapter: "gea::host::epub_archive::chapter",
|
|
622
|
+
readTextFile: "gea::host::epub_archive::readTextFile",
|
|
623
|
+
writeTextFile: "gea::host::epub_archive::writeTextFile",
|
|
624
|
+
coverBytes: "gea::host::epub_archive::coverBytes",
|
|
625
|
+
cacheCover: "gea::host::epub_archive::cacheCover",
|
|
626
|
+
thumbnailCover: "gea::host::epub_archive::thumbnailCover",
|
|
627
|
+
imageBytes: "gea::host::epub_archive::imageBytes",
|
|
628
|
+
},
|
|
629
|
+
deviceInfo: {
|
|
630
|
+
deviceId: "gea::host::device_info::deviceId",
|
|
631
|
+
platform: "gea::host::device_info::platform",
|
|
632
|
+
chipModel: "gea::host::device_info::chipModel",
|
|
633
|
+
chipArch: "gea::host::device_info::chipArch",
|
|
634
|
+
chipRevision: "gea::host::device_info::chipRevision",
|
|
635
|
+
cores: "gea::host::device_info::cores",
|
|
636
|
+
cpuMhz: "gea::host::device_info::cpuMhz",
|
|
637
|
+
flashSizeBytes: "gea::host::device_info::flashSizeBytes",
|
|
638
|
+
ramSizeBytes: "gea::host::device_info::ramSizeBytes",
|
|
639
|
+
uniqueId: "gea::host::device_info::uniqueId",
|
|
640
|
+
osVersion: "gea::host::device_info::osVersion",
|
|
641
|
+
resetReason: "gea::host::device_info::resetReason",
|
|
642
|
+
uptimeMs: "gea::host::device_info::uptimeMs",
|
|
643
|
+
dieTemperatureC: "gea::host::device_info::dieTemperatureC",
|
|
644
|
+
},
|
|
645
|
+
gea3dNative: {
|
|
646
|
+
createBuffer: "gea::host::gea3d::createBuffer",
|
|
647
|
+
bufferDataF32: "gea::host::gea3d::bufferDataF32",
|
|
648
|
+
bufferDataU32: "gea::host::gea3d::bufferDataU32",
|
|
649
|
+
beginFrame: "gea::host::gea3d::beginFrame",
|
|
650
|
+
ambientLight: "gea::host::gea3d::ambientLight",
|
|
651
|
+
directionalLight: "gea::host::gea3d::directionalLight",
|
|
652
|
+
drawElements: "gea::host::gea3d::drawElements",
|
|
653
|
+
endFrame: "gea::host::gea3d::endFrame",
|
|
654
|
+
stat: "gea::host::gea3d::stat",
|
|
655
|
+
},
|
|
656
|
+
"navigator.geolocation": {
|
|
657
|
+
hasFix: "gea::host::navigator.geolocation.hasFix",
|
|
658
|
+
currentPosition: "gea::host::navigator.geolocation.currentPosition",
|
|
659
|
+
coords: "gea::host::navigator.geolocation.coords",
|
|
660
|
+
latitude: "gea::host::navigator.geolocation.latitude",
|
|
661
|
+
longitude: "gea::host::navigator.geolocation.longitude",
|
|
662
|
+
accuracy: "gea::host::navigator.geolocation.accuracy",
|
|
663
|
+
getCurrentPosition: "gea::host::navigator.geolocation.getCurrentPosition",
|
|
664
|
+
watchPosition: "gea::host::navigator.geolocation.watchPosition",
|
|
665
|
+
clearWatch: "gea::host::navigator.geolocation.clearWatch",
|
|
666
|
+
},
|
|
667
|
+
tiles: {
|
|
668
|
+
request: "gea::host::tiles.request",
|
|
669
|
+
setNetworkAllowed: "gea::host::tiles.setNetworkAllowed",
|
|
670
|
+
purgeQueued: "gea::host::tiles.purgeQueued",
|
|
671
|
+
pruneLevels: "gea::host::tiles.pruneLevels",
|
|
672
|
+
poll: "gea::host::tiles.poll",
|
|
673
|
+
key: "gea::host::tiles.key",
|
|
674
|
+
keyNum: "gea::host::tiles.keyNum",
|
|
675
|
+
imageId: "gea::host::tiles.imageId",
|
|
676
|
+
status: "gea::host::tiles.status",
|
|
677
|
+
},
|
|
678
|
+
image: {
|
|
679
|
+
loadBytes: "gea::host::image.loadBytes",
|
|
680
|
+
loadBytesOpaque: "gea::host::image.loadBytesOpaque",
|
|
681
|
+
loadFile: "gea::host::image.loadFile",
|
|
682
|
+
loadFileOpaque: "gea::host::image.loadFileOpaque",
|
|
683
|
+
loadAssetPath: "gea::host::image.loadAssetPath",
|
|
684
|
+
writeFile: "gea::host::image.writeFile",
|
|
685
|
+
readFile: "gea::host::image.readFile",
|
|
686
|
+
readMapArchive: "gea::host::image.readMapArchive",
|
|
687
|
+
readFileRange: "gea::host::image.readFileRange",
|
|
688
|
+
listFiles: "gea::host::image.listFiles",
|
|
689
|
+
fetchBytes: "gea::host::image.fetchBytes",
|
|
690
|
+
fetchText: "gea::host::image.fetchText",
|
|
691
|
+
draw: "gea::host::image.draw",
|
|
692
|
+
width: "gea::host::image.width",
|
|
693
|
+
height: "gea::host::image.height",
|
|
694
|
+
frameCount: "gea::host::image.frameCount",
|
|
695
|
+
isAnimated: "gea::host::image.isAnimated",
|
|
696
|
+
setPlaying: "gea::host::image.setPlaying",
|
|
697
|
+
seek: "gea::host::image.seek",
|
|
698
|
+
advance: "gea::host::image.advance",
|
|
699
|
+
dispose: "gea::host::image.dispose",
|
|
700
|
+
},
|
|
701
|
+
touch: {
|
|
702
|
+
read: "gea::host::touch.read",
|
|
703
|
+
},
|
|
704
|
+
apps: {
|
|
705
|
+
launch: "gea::host::apps.launch",
|
|
706
|
+
},
|
|
707
|
+
Apps: {
|
|
708
|
+
launch: "gea::host::apps.launch",
|
|
709
|
+
},
|
|
710
|
+
BLE: {
|
|
711
|
+
init: "gea::host::navigator.bluetooth.init",
|
|
712
|
+
enabled: "gea::host::navigator.bluetooth.enabled",
|
|
713
|
+
setEnabled: "gea::host::navigator.bluetooth.setEnabled",
|
|
714
|
+
startAdvertising: "gea::host::navigator.bluetooth.startAdvertising",
|
|
715
|
+
stopAdvertising: "gea::host::navigator.bluetooth.stopAdvertising",
|
|
716
|
+
connected: "gea::host::navigator.bluetooth.connected",
|
|
717
|
+
bound: "gea::host::navigator.bluetooth.bound",
|
|
718
|
+
batteryLevel: "gea::host::navigator.bluetooth.batteryLevel",
|
|
719
|
+
mac: "gea::host::navigator.bluetooth.mac",
|
|
720
|
+
deviceName: "gea::host::navigator.bluetooth.deviceName",
|
|
721
|
+
},
|
|
722
|
+
bluetooth: {
|
|
723
|
+
init: "gea::host::navigator.bluetooth.init",
|
|
724
|
+
enabled: "gea::host::navigator.bluetooth.enabled",
|
|
725
|
+
setEnabled: "gea::host::navigator.bluetooth.setEnabled",
|
|
726
|
+
startAdvertising: "gea::host::navigator.bluetooth.startAdvertising",
|
|
727
|
+
stopAdvertising: "gea::host::navigator.bluetooth.stopAdvertising",
|
|
728
|
+
connected: "gea::host::navigator.bluetooth.connected",
|
|
729
|
+
bound: "gea::host::navigator.bluetooth.bound",
|
|
730
|
+
batteryLevel: "gea::host::navigator.bluetooth.batteryLevel",
|
|
731
|
+
mac: "gea::host::navigator.bluetooth.mac",
|
|
732
|
+
deviceName: "gea::host::navigator.bluetooth.deviceName",
|
|
733
|
+
},
|
|
734
|
+
"navigator.bluetooth": {
|
|
735
|
+
init: "gea::host::navigator.bluetooth.init",
|
|
736
|
+
enabled: "gea::host::navigator.bluetooth.enabled",
|
|
737
|
+
setEnabled: "gea::host::navigator.bluetooth.setEnabled",
|
|
738
|
+
startAdvertising: "gea::host::navigator.bluetooth.startAdvertising",
|
|
739
|
+
stopAdvertising: "gea::host::navigator.bluetooth.stopAdvertising",
|
|
740
|
+
connected: "gea::host::navigator.bluetooth.connected",
|
|
741
|
+
bound: "gea::host::navigator.bluetooth.bound",
|
|
742
|
+
batteryLevel: "gea::host::navigator.bluetooth.batteryLevel",
|
|
743
|
+
mac: "gea::host::navigator.bluetooth.mac",
|
|
744
|
+
deviceName: "gea::host::navigator.bluetooth.deviceName",
|
|
745
|
+
},
|
|
746
|
+
"BLE.keyboard": {
|
|
747
|
+
tap: "gea::host::navigator.bluetooth.keyboard.tap",
|
|
748
|
+
down: "gea::host::navigator.bluetooth.keyboard.down",
|
|
749
|
+
up: "gea::host::navigator.bluetooth.keyboard.up",
|
|
750
|
+
},
|
|
751
|
+
"bluetooth.keyboard": {
|
|
752
|
+
tap: "gea::host::navigator.bluetooth.keyboard.tap",
|
|
753
|
+
down: "gea::host::navigator.bluetooth.keyboard.down",
|
|
754
|
+
up: "gea::host::navigator.bluetooth.keyboard.up",
|
|
755
|
+
},
|
|
756
|
+
"navigator.bluetooth.keyboard": {
|
|
757
|
+
tap: "gea::host::navigator.bluetooth.keyboard.tap",
|
|
758
|
+
down: "gea::host::navigator.bluetooth.keyboard.down",
|
|
759
|
+
up: "gea::host::navigator.bluetooth.keyboard.up",
|
|
760
|
+
},
|
|
761
|
+
"BLE.mouse": {
|
|
762
|
+
move: "gea::host::navigator.bluetooth.mouse.move",
|
|
763
|
+
click: "gea::host::navigator.bluetooth.mouse.click",
|
|
764
|
+
},
|
|
765
|
+
"BLE.midi": {
|
|
766
|
+
enable: "gea::host::navigator.bluetooth.midi.enable",
|
|
767
|
+
bound: "gea::host::navigator.bluetooth.midi.bound",
|
|
768
|
+
send: "gea::host::navigator.bluetooth.midi.send",
|
|
769
|
+
startScan: "gea::host::navigator.bluetooth.midi.startScan",
|
|
770
|
+
stopScan: "gea::host::navigator.bluetooth.midi.stopScan",
|
|
771
|
+
scanning: "gea::host::navigator.bluetooth.midi.scanning",
|
|
772
|
+
scanCount: "gea::host::navigator.bluetooth.midi.scanCount",
|
|
773
|
+
scanNameAt: "gea::host::navigator.bluetooth.midi.scanNameAt",
|
|
774
|
+
connect: "gea::host::navigator.bluetooth.midi.connect",
|
|
775
|
+
disconnect: "gea::host::navigator.bluetooth.midi.disconnect",
|
|
776
|
+
},
|
|
777
|
+
"bluetooth.midi": {
|
|
778
|
+
enable: "gea::host::navigator.bluetooth.midi.enable",
|
|
779
|
+
bound: "gea::host::navigator.bluetooth.midi.bound",
|
|
780
|
+
send: "gea::host::navigator.bluetooth.midi.send",
|
|
781
|
+
startScan: "gea::host::navigator.bluetooth.midi.startScan",
|
|
782
|
+
stopScan: "gea::host::navigator.bluetooth.midi.stopScan",
|
|
783
|
+
scanning: "gea::host::navigator.bluetooth.midi.scanning",
|
|
784
|
+
scanCount: "gea::host::navigator.bluetooth.midi.scanCount",
|
|
785
|
+
scanNameAt: "gea::host::navigator.bluetooth.midi.scanNameAt",
|
|
786
|
+
connect: "gea::host::navigator.bluetooth.midi.connect",
|
|
787
|
+
disconnect: "gea::host::navigator.bluetooth.midi.disconnect",
|
|
788
|
+
},
|
|
789
|
+
"navigator.bluetooth.midi": {
|
|
790
|
+
enable: "gea::host::navigator.bluetooth.midi.enable",
|
|
791
|
+
bound: "gea::host::navigator.bluetooth.midi.bound",
|
|
792
|
+
send: "gea::host::navigator.bluetooth.midi.send",
|
|
793
|
+
startScan: "gea::host::navigator.bluetooth.midi.startScan",
|
|
794
|
+
stopScan: "gea::host::navigator.bluetooth.midi.stopScan",
|
|
795
|
+
scanning: "gea::host::navigator.bluetooth.midi.scanning",
|
|
796
|
+
scanCount: "gea::host::navigator.bluetooth.midi.scanCount",
|
|
797
|
+
scanNameAt: "gea::host::navigator.bluetooth.midi.scanNameAt",
|
|
798
|
+
connect: "gea::host::navigator.bluetooth.midi.connect",
|
|
799
|
+
disconnect: "gea::host::navigator.bluetooth.midi.disconnect",
|
|
800
|
+
},
|
|
801
|
+
"BLE.hidHost": {
|
|
802
|
+
startScan: "gea::host::navigator.bluetooth.hidHost.startScan",
|
|
803
|
+
stopScan: "gea::host::navigator.bluetooth.hidHost.stopScan",
|
|
804
|
+
scanning: "gea::host::navigator.bluetooth.hidHost.scanning",
|
|
805
|
+
scanCount: "gea::host::navigator.bluetooth.hidHost.scanCount",
|
|
806
|
+
scanNameAt: "gea::host::navigator.bluetooth.hidHost.scanNameAt",
|
|
807
|
+
connect: "gea::host::navigator.bluetooth.hidHost.connect",
|
|
808
|
+
disconnect: "gea::host::navigator.bluetooth.hidHost.disconnect",
|
|
809
|
+
bound: "gea::host::navigator.bluetooth.hidHost.bound",
|
|
810
|
+
reportCount: "gea::host::navigator.bluetooth.hidHost.reportCount",
|
|
811
|
+
reportIdAt: "gea::host::navigator.bluetooth.hidHost.reportIdAt",
|
|
812
|
+
reportLenAt: "gea::host::navigator.bluetooth.hidHost.reportLenAt",
|
|
813
|
+
reportByteAt: "gea::host::navigator.bluetooth.hidHost.reportByteAt",
|
|
814
|
+
clearReports: "gea::host::navigator.bluetooth.hidHost.clearReports",
|
|
815
|
+
},
|
|
816
|
+
"bluetooth.hidHost": {
|
|
817
|
+
startScan: "gea::host::navigator.bluetooth.hidHost.startScan",
|
|
818
|
+
stopScan: "gea::host::navigator.bluetooth.hidHost.stopScan",
|
|
819
|
+
scanning: "gea::host::navigator.bluetooth.hidHost.scanning",
|
|
820
|
+
scanCount: "gea::host::navigator.bluetooth.hidHost.scanCount",
|
|
821
|
+
scanNameAt: "gea::host::navigator.bluetooth.hidHost.scanNameAt",
|
|
822
|
+
connect: "gea::host::navigator.bluetooth.hidHost.connect",
|
|
823
|
+
disconnect: "gea::host::navigator.bluetooth.hidHost.disconnect",
|
|
824
|
+
bound: "gea::host::navigator.bluetooth.hidHost.bound",
|
|
825
|
+
reportCount: "gea::host::navigator.bluetooth.hidHost.reportCount",
|
|
826
|
+
reportIdAt: "gea::host::navigator.bluetooth.hidHost.reportIdAt",
|
|
827
|
+
reportLenAt: "gea::host::navigator.bluetooth.hidHost.reportLenAt",
|
|
828
|
+
reportByteAt: "gea::host::navigator.bluetooth.hidHost.reportByteAt",
|
|
829
|
+
clearReports: "gea::host::navigator.bluetooth.hidHost.clearReports",
|
|
830
|
+
},
|
|
831
|
+
"navigator.bluetooth.hidHost": {
|
|
832
|
+
startScan: "gea::host::navigator.bluetooth.hidHost.startScan",
|
|
833
|
+
stopScan: "gea::host::navigator.bluetooth.hidHost.stopScan",
|
|
834
|
+
scanning: "gea::host::navigator.bluetooth.hidHost.scanning",
|
|
835
|
+
scanCount: "gea::host::navigator.bluetooth.hidHost.scanCount",
|
|
836
|
+
scanNameAt: "gea::host::navigator.bluetooth.hidHost.scanNameAt",
|
|
837
|
+
connect: "gea::host::navigator.bluetooth.hidHost.connect",
|
|
838
|
+
disconnect: "gea::host::navigator.bluetooth.hidHost.disconnect",
|
|
839
|
+
bound: "gea::host::navigator.bluetooth.hidHost.bound",
|
|
840
|
+
reportCount: "gea::host::navigator.bluetooth.hidHost.reportCount",
|
|
841
|
+
reportIdAt: "gea::host::navigator.bluetooth.hidHost.reportIdAt",
|
|
842
|
+
reportLenAt: "gea::host::navigator.bluetooth.hidHost.reportLenAt",
|
|
843
|
+
reportByteAt: "gea::host::navigator.bluetooth.hidHost.reportByteAt",
|
|
844
|
+
clearReports: "gea::host::navigator.bluetooth.hidHost.clearReports",
|
|
845
|
+
},
|
|
846
|
+
"BLE.connections": {
|
|
847
|
+
count: "gea::host::navigator.bluetooth.connections.count",
|
|
848
|
+
kindAt: "gea::host::navigator.bluetooth.connections.kindAt",
|
|
849
|
+
nameAt: "gea::host::navigator.bluetooth.connections.nameAt",
|
|
850
|
+
},
|
|
851
|
+
"bluetooth.connections": {
|
|
852
|
+
count: "gea::host::navigator.bluetooth.connections.count",
|
|
853
|
+
kindAt: "gea::host::navigator.bluetooth.connections.kindAt",
|
|
854
|
+
nameAt: "gea::host::navigator.bluetooth.connections.nameAt",
|
|
855
|
+
},
|
|
856
|
+
"navigator.bluetooth.connections": {
|
|
857
|
+
count: "gea::host::navigator.bluetooth.connections.count",
|
|
858
|
+
kindAt: "gea::host::navigator.bluetooth.connections.kindAt",
|
|
859
|
+
nameAt: "gea::host::navigator.bluetooth.connections.nameAt",
|
|
860
|
+
},
|
|
861
|
+
"BLE.config": {
|
|
862
|
+
setDocument: "gea::host::navigator.bluetooth.config.setDocument",
|
|
863
|
+
pendingLength: "gea::host::navigator.bluetooth.config.pendingLength",
|
|
864
|
+
pendingByteAt: "gea::host::navigator.bluetooth.config.pendingByteAt",
|
|
865
|
+
consumePending: "gea::host::navigator.bluetooth.config.consumePending",
|
|
866
|
+
pairing: "gea::host::navigator.bluetooth.config.pairing",
|
|
867
|
+
pairCode: "gea::host::navigator.bluetooth.config.pairCode",
|
|
868
|
+
dismissPairing: "gea::host::navigator.bluetooth.config.dismissPairing",
|
|
869
|
+
pushActivity: "gea::host::navigator.bluetooth.config.pushActivity",
|
|
870
|
+
},
|
|
871
|
+
"bluetooth.config": {
|
|
872
|
+
setDocument: "gea::host::navigator.bluetooth.config.setDocument",
|
|
873
|
+
pendingLength: "gea::host::navigator.bluetooth.config.pendingLength",
|
|
874
|
+
pendingByteAt: "gea::host::navigator.bluetooth.config.pendingByteAt",
|
|
875
|
+
consumePending: "gea::host::navigator.bluetooth.config.consumePending",
|
|
876
|
+
pairing: "gea::host::navigator.bluetooth.config.pairing",
|
|
877
|
+
pairCode: "gea::host::navigator.bluetooth.config.pairCode",
|
|
878
|
+
dismissPairing: "gea::host::navigator.bluetooth.config.dismissPairing",
|
|
879
|
+
pushActivity: "gea::host::navigator.bluetooth.config.pushActivity",
|
|
880
|
+
},
|
|
881
|
+
"navigator.bluetooth.config": {
|
|
882
|
+
setDocument: "gea::host::navigator.bluetooth.config.setDocument",
|
|
883
|
+
pendingLength: "gea::host::navigator.bluetooth.config.pendingLength",
|
|
884
|
+
pendingByteAt: "gea::host::navigator.bluetooth.config.pendingByteAt",
|
|
885
|
+
consumePending: "gea::host::navigator.bluetooth.config.consumePending",
|
|
886
|
+
pairing: "gea::host::navigator.bluetooth.config.pairing",
|
|
887
|
+
pairCode: "gea::host::navigator.bluetooth.config.pairCode",
|
|
888
|
+
dismissPairing: "gea::host::navigator.bluetooth.config.dismissPairing",
|
|
889
|
+
pushActivity: "gea::host::navigator.bluetooth.config.pushActivity",
|
|
890
|
+
},
|
|
891
|
+
"bluetooth.mouse": {
|
|
892
|
+
move: "gea::host::navigator.bluetooth.mouse.move",
|
|
893
|
+
click: "gea::host::navigator.bluetooth.mouse.click",
|
|
894
|
+
},
|
|
895
|
+
"navigator.bluetooth.mouse": {
|
|
896
|
+
move: "gea::host::navigator.bluetooth.mouse.move",
|
|
897
|
+
click: "gea::host::navigator.bluetooth.mouse.click",
|
|
898
|
+
},
|
|
899
|
+
Geolocation: {
|
|
900
|
+
hasFix: "gea::host::navigator.geolocation.hasFix",
|
|
901
|
+
currentPosition: "gea::host::navigator.geolocation.currentPosition",
|
|
902
|
+
coords: "gea::host::navigator.geolocation.coords",
|
|
903
|
+
latitude: "gea::host::navigator.geolocation.latitude",
|
|
904
|
+
longitude: "gea::host::navigator.geolocation.longitude",
|
|
905
|
+
accuracy: "gea::host::navigator.geolocation.accuracy",
|
|
906
|
+
getCurrentPosition: "gea::host::navigator.geolocation.getCurrentPosition",
|
|
907
|
+
watchPosition: "gea::host::navigator.geolocation.watchPosition",
|
|
908
|
+
clearWatch: "gea::host::navigator.geolocation.clearWatch",
|
|
909
|
+
},
|
|
910
|
+
geolocation: {
|
|
911
|
+
hasFix: "gea::host::navigator.geolocation.hasFix",
|
|
912
|
+
currentPosition: "gea::host::navigator.geolocation.currentPosition",
|
|
913
|
+
coords: "gea::host::navigator.geolocation.coords",
|
|
914
|
+
latitude: "gea::host::navigator.geolocation.latitude",
|
|
915
|
+
longitude: "gea::host::navigator.geolocation.longitude",
|
|
916
|
+
accuracy: "gea::host::navigator.geolocation.accuracy",
|
|
917
|
+
getCurrentPosition: "gea::host::navigator.geolocation.getCurrentPosition",
|
|
918
|
+
watchPosition: "gea::host::navigator.geolocation.watchPosition",
|
|
919
|
+
clearWatch: "gea::host::navigator.geolocation.clearWatch",
|
|
920
|
+
},
|
|
921
|
+
WiFi: {
|
|
922
|
+
enabled: "gea::host::navigator.wifi.enabled",
|
|
923
|
+
setEnabled: "gea::host::navigator.wifi.setEnabled",
|
|
924
|
+
connected: "gea::host::navigator.wifi.connected",
|
|
925
|
+
isConnected: "gea::host::navigator.wifi.connected",
|
|
926
|
+
rssi: "gea::host::navigator.wifi.rssi",
|
|
927
|
+
getRSSI: "gea::host::navigator.wifi.rssi",
|
|
928
|
+
ssid: "gea::host::navigator.wifi.ssid",
|
|
929
|
+
getSSID: "gea::host::navigator.wifi.ssid",
|
|
930
|
+
ip: "gea::host::navigator.wifi.ip",
|
|
931
|
+
getIP: "gea::host::navigator.wifi.ip",
|
|
932
|
+
mac: "gea::host::navigator.wifi.mac",
|
|
933
|
+
configure: "gea::host::navigator.wifi.configure",
|
|
934
|
+
waitForConnection: "gea::host::navigator.wifi.waitForConnection",
|
|
935
|
+
startScan: "gea::host::navigator.wifi.startScan",
|
|
936
|
+
scanning: "gea::host::navigator.wifi.scanning",
|
|
937
|
+
scanCount: "gea::host::navigator.wifi.scanCount",
|
|
938
|
+
scanSsidAt: "gea::host::navigator.wifi.scanSsidAt",
|
|
939
|
+
scanRssiAt: "gea::host::navigator.wifi.scanRssiAt",
|
|
940
|
+
scanSecuredAt: "gea::host::navigator.wifi.scanSecuredAt",
|
|
941
|
+
},
|
|
942
|
+
wifi: {
|
|
943
|
+
enabled: "gea::host::navigator.wifi.enabled",
|
|
944
|
+
setEnabled: "gea::host::navigator.wifi.setEnabled",
|
|
945
|
+
connected: "gea::host::navigator.wifi.connected",
|
|
946
|
+
isConnected: "gea::host::navigator.wifi.connected",
|
|
947
|
+
rssi: "gea::host::navigator.wifi.rssi",
|
|
948
|
+
getRSSI: "gea::host::navigator.wifi.rssi",
|
|
949
|
+
ssid: "gea::host::navigator.wifi.ssid",
|
|
950
|
+
getSSID: "gea::host::navigator.wifi.ssid",
|
|
951
|
+
ip: "gea::host::navigator.wifi.ip",
|
|
952
|
+
getIP: "gea::host::navigator.wifi.ip",
|
|
953
|
+
mac: "gea::host::navigator.wifi.mac",
|
|
954
|
+
configure: "gea::host::navigator.wifi.configure",
|
|
955
|
+
waitForConnection: "gea::host::navigator.wifi.waitForConnection",
|
|
956
|
+
startScan: "gea::host::navigator.wifi.startScan",
|
|
957
|
+
scanning: "gea::host::navigator.wifi.scanning",
|
|
958
|
+
scanCount: "gea::host::navigator.wifi.scanCount",
|
|
959
|
+
scanSsidAt: "gea::host::navigator.wifi.scanSsidAt",
|
|
960
|
+
scanRssiAt: "gea::host::navigator.wifi.scanRssiAt",
|
|
961
|
+
scanSecuredAt: "gea::host::navigator.wifi.scanSecuredAt",
|
|
962
|
+
},
|
|
963
|
+
"navigator.wifi": {
|
|
964
|
+
enabled: "gea::host::navigator.wifi.enabled",
|
|
965
|
+
setEnabled: "gea::host::navigator.wifi.setEnabled",
|
|
966
|
+
connected: "gea::host::navigator.wifi.connected",
|
|
967
|
+
isConnected: "gea::host::navigator.wifi.connected",
|
|
968
|
+
rssi: "gea::host::navigator.wifi.rssi",
|
|
969
|
+
getRSSI: "gea::host::navigator.wifi.rssi",
|
|
970
|
+
ssid: "gea::host::navigator.wifi.ssid",
|
|
971
|
+
getSSID: "gea::host::navigator.wifi.ssid",
|
|
972
|
+
ip: "gea::host::navigator.wifi.ip",
|
|
973
|
+
getIP: "gea::host::navigator.wifi.ip",
|
|
974
|
+
mac: "gea::host::navigator.wifi.mac",
|
|
975
|
+
configure: "gea::host::navigator.wifi.configure",
|
|
976
|
+
waitForConnection: "gea::host::navigator.wifi.waitForConnection",
|
|
977
|
+
startScan: "gea::host::navigator.wifi.startScan",
|
|
978
|
+
scanning: "gea::host::navigator.wifi.scanning",
|
|
979
|
+
scanCount: "gea::host::navigator.wifi.scanCount",
|
|
980
|
+
scanSsidAt: "gea::host::navigator.wifi.scanSsidAt",
|
|
981
|
+
scanRssiAt: "gea::host::navigator.wifi.scanRssiAt",
|
|
982
|
+
scanSecuredAt: "gea::host::navigator.wifi.scanSecuredAt",
|
|
983
|
+
},
|
|
984
|
+
Accelerometer: {
|
|
985
|
+
start: "gea::host::Accelerometer.start",
|
|
986
|
+
init: "gea::host::Accelerometer.init",
|
|
987
|
+
close: "gea::host::Accelerometer.close",
|
|
988
|
+
calibrateBias: "gea::host::Accelerometer.calibrateBias",
|
|
989
|
+
},
|
|
990
|
+
__gea_Accelerometer: {
|
|
991
|
+
start: "gea::host::Accelerometer.start",
|
|
992
|
+
init: "gea::host::Accelerometer.init",
|
|
993
|
+
close: "gea::host::Accelerometer.close",
|
|
994
|
+
calibrateBias: "gea::host::Accelerometer.calibrateBias",
|
|
995
|
+
},
|
|
996
|
+
Camera: {
|
|
997
|
+
isAvailable: "gea::host::Camera.isAvailable",
|
|
998
|
+
hasPermission: "gea::host::Camera.hasPermission",
|
|
999
|
+
requestPermission: "gea::host::Camera.requestPermission",
|
|
1000
|
+
open: "gea::host::Camera.open",
|
|
1001
|
+
close: "gea::host::Camera.close",
|
|
1002
|
+
isOpen: "gea::host::Camera.isOpen",
|
|
1003
|
+
draw: "gea::host::Camera.draw",
|
|
1004
|
+
// capture/capturePhoto/stopRecording return typed synchronous promises
|
|
1005
|
+
// (CameraPhotoPromise/CameraClipPromise with a native `then`) so the
|
|
1006
|
+
// app-facing `.then(photo => …)` chain stays box-free. The raw id/ms
|
|
1007
|
+
// forms remain on the __gea_Camera table for the runtime shim's own use.
|
|
1008
|
+
capture: "gea::host::Camera.capturePhoto",
|
|
1009
|
+
capturePhoto: "gea::host::Camera.capturePhoto",
|
|
1010
|
+
captureMirrored: "gea::host::Camera.captureMirrored",
|
|
1011
|
+
startRecording: "gea::host::Camera.startRecording",
|
|
1012
|
+
stopRecording: "gea::host::Camera.stopRecordingClip",
|
|
1013
|
+
isRecording: "gea::host::Camera.isRecording",
|
|
1014
|
+
setFlash: "gea::host::Camera.setFlash",
|
|
1015
|
+
setZoom: "gea::host::Camera.setZoom",
|
|
1016
|
+
setMirror: "gea::host::Camera.setMirror",
|
|
1017
|
+
setExposure: "gea::host::Camera.setExposure",
|
|
1018
|
+
setWhiteBalance: "gea::host::Camera.setWhiteBalance",
|
|
1019
|
+
setFocus: "gea::host::Camera.setFocus",
|
|
1020
|
+
setTorch: "gea::host::Camera.setTorch",
|
|
1021
|
+
switchCamera: "gea::host::Camera.open",
|
|
1022
|
+
deviceIdAt: "gea::host::Camera.deviceIdAt",
|
|
1023
|
+
deviceFacingAt: "gea::host::Camera.deviceFacingAt",
|
|
1024
|
+
},
|
|
1025
|
+
__gea_Camera: {
|
|
1026
|
+
isAvailable: "gea::host::Camera.isAvailable",
|
|
1027
|
+
hasPermission: "gea::host::Camera.hasPermission",
|
|
1028
|
+
requestPermission: "gea::host::Camera.requestPermission",
|
|
1029
|
+
open: "gea::host::Camera.open",
|
|
1030
|
+
close: "gea::host::Camera.close",
|
|
1031
|
+
isOpen: "gea::host::Camera.isOpen",
|
|
1032
|
+
draw: "gea::host::Camera.draw",
|
|
1033
|
+
capture: "gea::host::Camera.capture",
|
|
1034
|
+
captureMirrored: "gea::host::Camera.captureMirrored",
|
|
1035
|
+
startRecording: "gea::host::Camera.startRecording",
|
|
1036
|
+
stopRecording: "gea::host::Camera.stopRecording",
|
|
1037
|
+
isRecording: "gea::host::Camera.isRecording",
|
|
1038
|
+
setFlash: "gea::host::Camera.setFlash",
|
|
1039
|
+
setZoom: "gea::host::Camera.setZoom",
|
|
1040
|
+
setMirror: "gea::host::Camera.setMirror",
|
|
1041
|
+
setExposure: "gea::host::Camera.setExposure",
|
|
1042
|
+
setWhiteBalance: "gea::host::Camera.setWhiteBalance",
|
|
1043
|
+
setFocus: "gea::host::Camera.setFocus",
|
|
1044
|
+
setTorch: "gea::host::Camera.setTorch",
|
|
1045
|
+
deviceIdAt: "gea::host::Camera.deviceIdAt",
|
|
1046
|
+
deviceFacingAt: "gea::host::Camera.deviceFacingAt",
|
|
1047
|
+
},
|
|
1048
|
+
__gea_audioContext: {
|
|
1049
|
+
createOscillator: "gea::host::audioContext.createOscillator",
|
|
1050
|
+
createBufferSource: "gea::host::audioContext.createBufferSource",
|
|
1051
|
+
decodeAudioData: "gea::host::audioContext.decodeAudioData",
|
|
1052
|
+
},
|
|
1053
|
+
audioContext: {
|
|
1054
|
+
createOscillator: "gea::host::audioContext.createOscillator",
|
|
1055
|
+
createBufferSource: "gea::host::audioContext.createBufferSource",
|
|
1056
|
+
decodeAudioData: "gea::host::audioContext.decodeAudioData",
|
|
1057
|
+
},
|
|
1058
|
+
__gea_Audio: {
|
|
1059
|
+
getVolume: "gea::host::Audio.getVolume",
|
|
1060
|
+
setVolume: "gea::host::Audio.setVolume",
|
|
1061
|
+
},
|
|
1062
|
+
Display: {
|
|
1063
|
+
getBrightness: "gea::host::Display.getBrightness",
|
|
1064
|
+
setBrightness: "gea::host::Display.setBrightness",
|
|
1065
|
+
getDevicePixelRatio: "gea::host::Display.getDevicePixelRatio",
|
|
1066
|
+
setDevicePixelRatio: "gea::host::Display.setDevicePixelRatio",
|
|
1067
|
+
getFrameIntervalMs: "gea::host::Display.getFrameIntervalMs",
|
|
1068
|
+
setFrameIntervalMs: "gea::host::Display.setFrameIntervalMs",
|
|
1069
|
+
getFrameRate: "gea::host::Display.getFrameRate",
|
|
1070
|
+
setFrameRate: "gea::host::Display.setFrameRate",
|
|
1071
|
+
getOrientation: "gea::host::Display.getOrientation",
|
|
1072
|
+
setOrientation: "gea::host::Display.setOrientation",
|
|
1073
|
+
getSupportedOrientations: "gea::host::Display.getSupportedOrientations",
|
|
1074
|
+
setSupportedOrientations: "gea::host::Display.setSupportedOrientations",
|
|
1075
|
+
getAutoRotate: "gea::host::Display.getAutoRotate",
|
|
1076
|
+
setAutoRotate: "gea::host::Display.setAutoRotate",
|
|
1077
|
+
setVSync: "gea::host::Display.setVSync",
|
|
1078
|
+
setTextRasterCache: "gea::host::Display.setTextRasterCache",
|
|
1079
|
+
setTextSolidBackdrop: "gea::host::Display.setTextSolidBackdrop",
|
|
1080
|
+
getPixelFormat: "gea::host::Display.getPixelFormat",
|
|
1081
|
+
setPixelFormat: "gea::host::Display.setPixelFormat",
|
|
1082
|
+
getPanelPixelFormat: "gea::host::Display.getPanelPixelFormat",
|
|
1083
|
+
getSupportedPixelFormats: "gea::host::Display.getSupportedPixelFormats",
|
|
1084
|
+
setAA: "gea::host::Display.setAA",
|
|
1085
|
+
setFlushConfig: "gea::host::Display.setFlushConfig",
|
|
1086
|
+
setMemoryConfig: "gea::host::Display.setMemoryConfig",
|
|
1087
|
+
setEpaperRefreshConfig: "gea::host::Display.setEpaperRefreshConfig",
|
|
1088
|
+
epaperFullRefresh: "gea::host::Display.epaperFullRefresh",
|
|
1089
|
+
},
|
|
1090
|
+
display: {
|
|
1091
|
+
getBrightness: "gea::host::Display.getBrightness",
|
|
1092
|
+
setBrightness: "gea::host::Display.setBrightness",
|
|
1093
|
+
getDevicePixelRatio: "gea::host::Display.getDevicePixelRatio",
|
|
1094
|
+
setDevicePixelRatio: "gea::host::Display.setDevicePixelRatio",
|
|
1095
|
+
getFrameIntervalMs: "gea::host::Display.getFrameIntervalMs",
|
|
1096
|
+
setFrameIntervalMs: "gea::host::Display.setFrameIntervalMs",
|
|
1097
|
+
getFrameRate: "gea::host::Display.getFrameRate",
|
|
1098
|
+
setFrameRate: "gea::host::Display.setFrameRate",
|
|
1099
|
+
getOrientation: "gea::host::Display.getOrientation",
|
|
1100
|
+
setOrientation: "gea::host::Display.setOrientation",
|
|
1101
|
+
getSupportedOrientations: "gea::host::Display.getSupportedOrientations",
|
|
1102
|
+
setSupportedOrientations: "gea::host::Display.setSupportedOrientations",
|
|
1103
|
+
getAutoRotate: "gea::host::Display.getAutoRotate",
|
|
1104
|
+
setAutoRotate: "gea::host::Display.setAutoRotate",
|
|
1105
|
+
setVSync: "gea::host::Display.setVSync",
|
|
1106
|
+
setTextRasterCache: "gea::host::Display.setTextRasterCache",
|
|
1107
|
+
setTextSolidBackdrop: "gea::host::Display.setTextSolidBackdrop",
|
|
1108
|
+
getPixelFormat: "gea::host::Display.getPixelFormat",
|
|
1109
|
+
setPixelFormat: "gea::host::Display.setPixelFormat",
|
|
1110
|
+
getPanelPixelFormat: "gea::host::Display.getPanelPixelFormat",
|
|
1111
|
+
getSupportedPixelFormats: "gea::host::Display.getSupportedPixelFormats",
|
|
1112
|
+
setAA: "gea::host::Display.setAA",
|
|
1113
|
+
setFlushConfig: "gea::host::Display.setFlushConfig",
|
|
1114
|
+
setMemoryConfig: "gea::host::Display.setMemoryConfig",
|
|
1115
|
+
setEpaperRefreshConfig: "gea::host::Display.setEpaperRefreshConfig",
|
|
1116
|
+
epaperFullRefresh: "gea::host::Display.epaperFullRefresh",
|
|
1117
|
+
},
|
|
1118
|
+
__gea_Display: {
|
|
1119
|
+
getBrightness: "gea::host::Display.getBrightness",
|
|
1120
|
+
setBrightness: "gea::host::Display.setBrightness",
|
|
1121
|
+
getDevicePixelRatio: "gea::host::Display.getDevicePixelRatio",
|
|
1122
|
+
setDevicePixelRatio: "gea::host::Display.setDevicePixelRatio",
|
|
1123
|
+
getFrameIntervalMs: "gea::host::Display.getFrameIntervalMs",
|
|
1124
|
+
setFrameIntervalMs: "gea::host::Display.setFrameIntervalMs",
|
|
1125
|
+
getFrameRate: "gea::host::Display.getFrameRate",
|
|
1126
|
+
setFrameRate: "gea::host::Display.setFrameRate",
|
|
1127
|
+
getOrientation: "gea::host::Display.getOrientation",
|
|
1128
|
+
setOrientation: "gea::host::Display.setOrientation",
|
|
1129
|
+
getSupportedOrientations: "gea::host::Display.getSupportedOrientations",
|
|
1130
|
+
setSupportedOrientations: "gea::host::Display.setSupportedOrientations",
|
|
1131
|
+
getAutoRotate: "gea::host::Display.getAutoRotate",
|
|
1132
|
+
setAutoRotate: "gea::host::Display.setAutoRotate",
|
|
1133
|
+
setVSync: "gea::host::Display.setVSync",
|
|
1134
|
+
setTextRasterCache: "gea::host::Display.setTextRasterCache",
|
|
1135
|
+
setTextSolidBackdrop: "gea::host::Display.setTextSolidBackdrop",
|
|
1136
|
+
getPixelFormat: "gea::host::Display.getPixelFormat",
|
|
1137
|
+
setPixelFormat: "gea::host::Display.setPixelFormat",
|
|
1138
|
+
getPanelPixelFormat: "gea::host::Display.getPanelPixelFormat",
|
|
1139
|
+
getSupportedPixelFormats: "gea::host::Display.getSupportedPixelFormats",
|
|
1140
|
+
setAA: "gea::host::Display.setAA",
|
|
1141
|
+
setFlushConfig: "gea::host::Display.setFlushConfig",
|
|
1142
|
+
setMemoryConfig: "gea::host::Display.setMemoryConfig",
|
|
1143
|
+
setEpaperRefreshConfig: "gea::host::Display.setEpaperRefreshConfig",
|
|
1144
|
+
epaperFullRefresh: "gea::host::Display.epaperFullRefresh",
|
|
1145
|
+
},
|
|
1146
|
+
Memory: {
|
|
1147
|
+
internalFree: "gea::host::Memory.internalFree",
|
|
1148
|
+
internalLargestFreeBlock: "gea::host::Memory.internalLargestFreeBlock",
|
|
1149
|
+
internalMinimumFree: "gea::host::Memory.internalMinimumFree",
|
|
1150
|
+
psramFree: "gea::host::Memory.psramFree",
|
|
1151
|
+
currentTaskStackHighWaterMark: "gea::host::Memory.currentTaskStackHighWaterMark",
|
|
1152
|
+
geaMainStackBytes: "gea::host::Memory.geaMainStackBytes",
|
|
1153
|
+
geaInitStackBytes: "gea::host::Memory.geaInitStackBytes",
|
|
1154
|
+
appFrameStackWords: "gea::host::Memory.appFrameStackWords",
|
|
1155
|
+
appFrameStackBytes: "gea::host::Memory.appFrameStackBytes",
|
|
1156
|
+
displayFlushConfiguredRows: "gea::host::Memory.displayFlushConfiguredRows",
|
|
1157
|
+
displayFlushConfiguredDepth: "gea::host::Memory.displayFlushConfiguredDepth",
|
|
1158
|
+
displayFlushBufferMaxBytes: "gea::host::Memory.displayFlushBufferMaxBytes",
|
|
1159
|
+
displayFlushRows: "gea::host::Memory.displayFlushRows",
|
|
1160
|
+
displayFlushDepth: "gea::host::Memory.displayFlushDepth",
|
|
1161
|
+
displayFlushBufferBytes: "gea::host::Memory.displayFlushBufferBytes",
|
|
1162
|
+
allocationSramCount: "gea::host::Memory.allocationSramCount",
|
|
1163
|
+
allocationPsramCount: "gea::host::Memory.allocationPsramCount",
|
|
1164
|
+
allocationSramBytes: "gea::host::Memory.allocationSramBytes",
|
|
1165
|
+
allocationPsramBytes: "gea::host::Memory.allocationPsramBytes",
|
|
1166
|
+
allocationSramPeakBytes: "gea::host::Memory.allocationSramPeakBytes",
|
|
1167
|
+
allocationPsramPeakBytes: "gea::host::Memory.allocationPsramPeakBytes",
|
|
1168
|
+
},
|
|
1169
|
+
memory: {
|
|
1170
|
+
internalFree: "gea::host::Memory.internalFree",
|
|
1171
|
+
internalLargestFreeBlock: "gea::host::Memory.internalLargestFreeBlock",
|
|
1172
|
+
internalMinimumFree: "gea::host::Memory.internalMinimumFree",
|
|
1173
|
+
psramFree: "gea::host::Memory.psramFree",
|
|
1174
|
+
currentTaskStackHighWaterMark: "gea::host::Memory.currentTaskStackHighWaterMark",
|
|
1175
|
+
geaMainStackBytes: "gea::host::Memory.geaMainStackBytes",
|
|
1176
|
+
geaInitStackBytes: "gea::host::Memory.geaInitStackBytes",
|
|
1177
|
+
appFrameStackWords: "gea::host::Memory.appFrameStackWords",
|
|
1178
|
+
appFrameStackBytes: "gea::host::Memory.appFrameStackBytes",
|
|
1179
|
+
displayFlushConfiguredRows: "gea::host::Memory.displayFlushConfiguredRows",
|
|
1180
|
+
displayFlushConfiguredDepth: "gea::host::Memory.displayFlushConfiguredDepth",
|
|
1181
|
+
displayFlushBufferMaxBytes: "gea::host::Memory.displayFlushBufferMaxBytes",
|
|
1182
|
+
displayFlushRows: "gea::host::Memory.displayFlushRows",
|
|
1183
|
+
displayFlushDepth: "gea::host::Memory.displayFlushDepth",
|
|
1184
|
+
displayFlushBufferBytes: "gea::host::Memory.displayFlushBufferBytes",
|
|
1185
|
+
allocationSramCount: "gea::host::Memory.allocationSramCount",
|
|
1186
|
+
allocationPsramCount: "gea::host::Memory.allocationPsramCount",
|
|
1187
|
+
allocationSramBytes: "gea::host::Memory.allocationSramBytes",
|
|
1188
|
+
allocationPsramBytes: "gea::host::Memory.allocationPsramBytes",
|
|
1189
|
+
allocationSramPeakBytes: "gea::host::Memory.allocationSramPeakBytes",
|
|
1190
|
+
allocationPsramPeakBytes: "gea::host::Memory.allocationPsramPeakBytes",
|
|
1191
|
+
},
|
|
1192
|
+
__gea_Memory: {
|
|
1193
|
+
internalFree: "gea::host::Memory.internalFree",
|
|
1194
|
+
internalLargestFreeBlock: "gea::host::Memory.internalLargestFreeBlock",
|
|
1195
|
+
internalMinimumFree: "gea::host::Memory.internalMinimumFree",
|
|
1196
|
+
psramFree: "gea::host::Memory.psramFree",
|
|
1197
|
+
currentTaskStackHighWaterMark: "gea::host::Memory.currentTaskStackHighWaterMark",
|
|
1198
|
+
geaMainStackBytes: "gea::host::Memory.geaMainStackBytes",
|
|
1199
|
+
geaInitStackBytes: "gea::host::Memory.geaInitStackBytes",
|
|
1200
|
+
appFrameStackWords: "gea::host::Memory.appFrameStackWords",
|
|
1201
|
+
appFrameStackBytes: "gea::host::Memory.appFrameStackBytes",
|
|
1202
|
+
displayFlushConfiguredRows: "gea::host::Memory.displayFlushConfiguredRows",
|
|
1203
|
+
displayFlushConfiguredDepth: "gea::host::Memory.displayFlushConfiguredDepth",
|
|
1204
|
+
displayFlushBufferMaxBytes: "gea::host::Memory.displayFlushBufferMaxBytes",
|
|
1205
|
+
displayFlushRows: "gea::host::Memory.displayFlushRows",
|
|
1206
|
+
displayFlushDepth: "gea::host::Memory.displayFlushDepth",
|
|
1207
|
+
displayFlushBufferBytes: "gea::host::Memory.displayFlushBufferBytes",
|
|
1208
|
+
allocationSramCount: "gea::host::Memory.allocationSramCount",
|
|
1209
|
+
allocationPsramCount: "gea::host::Memory.allocationPsramCount",
|
|
1210
|
+
allocationSramBytes: "gea::host::Memory.allocationSramBytes",
|
|
1211
|
+
allocationPsramBytes: "gea::host::Memory.allocationPsramBytes",
|
|
1212
|
+
allocationSramPeakBytes: "gea::host::Memory.allocationSramPeakBytes",
|
|
1213
|
+
allocationPsramPeakBytes: "gea::host::Memory.allocationPsramPeakBytes",
|
|
1214
|
+
},
|
|
1215
|
+
Input: {
|
|
1216
|
+
consumeBackButton: "gea::host::Input.consumeBackButton",
|
|
1217
|
+
},
|
|
1218
|
+
__gea_Input: {
|
|
1219
|
+
consumeBackButton: "gea::host::Input.consumeBackButton",
|
|
1220
|
+
},
|
|
1221
|
+
Gpio: {
|
|
1222
|
+
configureOutput: "gea::host::Gpio.configureOutput",
|
|
1223
|
+
configureInput: "gea::host::Gpio.configureInput",
|
|
1224
|
+
write: "gea::host::Gpio.write",
|
|
1225
|
+
read: "gea::host::Gpio.read",
|
|
1226
|
+
},
|
|
1227
|
+
__gea_Gpio: {
|
|
1228
|
+
configureOutput: "gea::host::Gpio.configureOutput",
|
|
1229
|
+
configureInput: "gea::host::Gpio.configureInput",
|
|
1230
|
+
write: "gea::host::Gpio.write",
|
|
1231
|
+
read: "gea::host::Gpio.read",
|
|
1232
|
+
},
|
|
1233
|
+
Led: {
|
|
1234
|
+
set: "gea::host::Led.set",
|
|
1235
|
+
off: "gea::host::Led.off",
|
|
1236
|
+
attach: "gea::host::Led.attach",
|
|
1237
|
+
setPixel: "gea::host::Led.setPixel",
|
|
1238
|
+
show: "gea::host::Led.show",
|
|
1239
|
+
detach: "gea::host::Led.detach",
|
|
1240
|
+
},
|
|
1241
|
+
__gea_Led: {
|
|
1242
|
+
set: "gea::host::Led.set",
|
|
1243
|
+
off: "gea::host::Led.off",
|
|
1244
|
+
attach: "gea::host::Led.attach",
|
|
1245
|
+
setPixel: "gea::host::Led.setPixel",
|
|
1246
|
+
show: "gea::host::Led.show",
|
|
1247
|
+
detach: "gea::host::Led.detach",
|
|
1248
|
+
},
|
|
1249
|
+
Clock: {
|
|
1250
|
+
epochMs: "gea::host::Clock.epochMs",
|
|
1251
|
+
},
|
|
1252
|
+
__gea_Clock: {
|
|
1253
|
+
epochMs: "gea::host::Clock.epochMs",
|
|
1254
|
+
},
|
|
1255
|
+
Profiler: {
|
|
1256
|
+
nowUs: "gea::host::Profiler.nowUs",
|
|
1257
|
+
nowCycles: "gea::host::Profiler.nowCycles",
|
|
1258
|
+
},
|
|
1259
|
+
__gea_Profiler: {
|
|
1260
|
+
nowUs: "gea::host::Profiler.nowUs",
|
|
1261
|
+
nowCycles: "gea::host::Profiler.nowCycles",
|
|
1262
|
+
},
|
|
1263
|
+
localStorage: {
|
|
1264
|
+
getItem: "gea::host::Storage.getItem",
|
|
1265
|
+
setItem: "gea::host::Storage.setItem",
|
|
1266
|
+
removeItem: "gea::host::Storage.removeItem",
|
|
1267
|
+
clear: "gea::host::Storage.clear",
|
|
1268
|
+
key: "gea::host::Storage.key",
|
|
1269
|
+
},
|
|
1270
|
+
Battery: {
|
|
1271
|
+
level: "gea::host::Battery.level",
|
|
1272
|
+
},
|
|
1273
|
+
__gea_Battery: {
|
|
1274
|
+
level: "gea::host::Battery.level",
|
|
1275
|
+
},
|
|
1276
|
+
Notify: {
|
|
1277
|
+
text: "gea::host::Notify.text",
|
|
1278
|
+
seq: "gea::host::Notify.seq",
|
|
1279
|
+
},
|
|
1280
|
+
__gea_Notify: {
|
|
1281
|
+
text: "gea::host::Notify.text",
|
|
1282
|
+
seq: "gea::host::Notify.seq",
|
|
1283
|
+
},
|
|
1284
|
+
DeviceControl: {
|
|
1285
|
+
exec: "gea::host::DeviceControl.exec",
|
|
1286
|
+
},
|
|
1287
|
+
__gea_DeviceControl: {
|
|
1288
|
+
exec: "gea::host::DeviceControl.exec",
|
|
1289
|
+
},
|
|
1290
|
+
},
|
|
1291
|
+
hostNamespaceNoThrowMethods: {
|
|
1292
|
+
navigator: ["bluetooth", "wifi", "geolocation"],
|
|
1293
|
+
Display: DISPLAY_NO_THROW_METHODS,
|
|
1294
|
+
display: DISPLAY_NO_THROW_METHODS,
|
|
1295
|
+
__gea_Display: DISPLAY_NO_THROW_METHODS,
|
|
1296
|
+
Memory: MEMORY_NO_THROW_METHODS,
|
|
1297
|
+
memory: MEMORY_NO_THROW_METHODS,
|
|
1298
|
+
__gea_Memory: MEMORY_NO_THROW_METHODS,
|
|
1299
|
+
Input: ["consumeBackButton"],
|
|
1300
|
+
__gea_Input: ["consumeBackButton"],
|
|
1301
|
+
Gpio: ["configureOutput", "configureInput", "write", "read"],
|
|
1302
|
+
__gea_Gpio: ["configureOutput", "configureInput", "write", "read"],
|
|
1303
|
+
Led: ["set", "off", "attach", "setPixel", "show", "detach"],
|
|
1304
|
+
__gea_Led: ["set", "off", "attach", "setPixel", "show", "detach"],
|
|
1305
|
+
Clock: ["epochMs"],
|
|
1306
|
+
__gea_Clock: ["epochMs"],
|
|
1307
|
+
Profiler: ["nowUs"],
|
|
1308
|
+
__gea_Profiler: ["nowUs"],
|
|
1309
|
+
Battery: ["level"],
|
|
1310
|
+
__gea_Battery: ["level"],
|
|
1311
|
+
Notify: ["seq"],
|
|
1312
|
+
__gea_Notify: ["seq"],
|
|
1313
|
+
},
|
|
1314
|
+
hostNamespaceProperties: {
|
|
1315
|
+
window: {
|
|
1316
|
+
innerWidth: "gea::host::window.innerWidth",
|
|
1317
|
+
innerHeight: "gea::host::window.innerHeight",
|
|
1318
|
+
},
|
|
1319
|
+
navigator: {
|
|
1320
|
+
userAgent: "gea::host::navigator.userAgent",
|
|
1321
|
+
language: "gea::host::navigator.language",
|
|
1322
|
+
platform: "gea::host::navigator.platform",
|
|
1323
|
+
onLine: "gea::host::navigator.onLine",
|
|
1324
|
+
},
|
|
1325
|
+
Display: {
|
|
1326
|
+
ctx: "gea::host::Display.ctx",
|
|
1327
|
+
width: "gea::host::Display.width",
|
|
1328
|
+
height: "gea::host::Display.height",
|
|
1329
|
+
nativeWidth: "gea::host::Display.nativeWidth",
|
|
1330
|
+
nativeHeight: "gea::host::Display.nativeHeight",
|
|
1331
|
+
orientation: "gea::host::Display.orientation",
|
|
1332
|
+
supportedOrientations: "gea::host::Display.supportedOrientations",
|
|
1333
|
+
autoRotate: "gea::host::Display.autoRotate",
|
|
1334
|
+
pixelFormat: "gea::host::Display.pixelFormat",
|
|
1335
|
+
panelPixelFormat: "gea::host::Display.panelPixelFormat",
|
|
1336
|
+
supportedPixelFormats: "gea::host::Display.supportedPixelFormats",
|
|
1337
|
+
},
|
|
1338
|
+
display: {
|
|
1339
|
+
ctx: "gea::host::Display.ctx",
|
|
1340
|
+
width: "gea::host::Display.width",
|
|
1341
|
+
height: "gea::host::Display.height",
|
|
1342
|
+
nativeWidth: "gea::host::Display.nativeWidth",
|
|
1343
|
+
nativeHeight: "gea::host::Display.nativeHeight",
|
|
1344
|
+
orientation: "gea::host::Display.orientation",
|
|
1345
|
+
supportedOrientations: "gea::host::Display.supportedOrientations",
|
|
1346
|
+
autoRotate: "gea::host::Display.autoRotate",
|
|
1347
|
+
pixelFormat: "gea::host::Display.pixelFormat",
|
|
1348
|
+
panelPixelFormat: "gea::host::Display.panelPixelFormat",
|
|
1349
|
+
supportedPixelFormats: "gea::host::Display.supportedPixelFormats",
|
|
1350
|
+
},
|
|
1351
|
+
__gea_Display: {
|
|
1352
|
+
ctx: "gea::host::Display.ctx",
|
|
1353
|
+
width: "gea::host::Display.width",
|
|
1354
|
+
height: "gea::host::Display.height",
|
|
1355
|
+
nativeWidth: "gea::host::Display.nativeWidth",
|
|
1356
|
+
nativeHeight: "gea::host::Display.nativeHeight",
|
|
1357
|
+
orientation: "gea::host::Display.orientation",
|
|
1358
|
+
supportedOrientations: "gea::host::Display.supportedOrientations",
|
|
1359
|
+
autoRotate: "gea::host::Display.autoRotate",
|
|
1360
|
+
pixelFormat: "gea::host::Display.pixelFormat",
|
|
1361
|
+
panelPixelFormat: "gea::host::Display.panelPixelFormat",
|
|
1362
|
+
supportedPixelFormats: "gea::host::Display.supportedPixelFormats",
|
|
1363
|
+
},
|
|
1364
|
+
Accelerometer: {
|
|
1365
|
+
tiltX: "gea::host::Accelerometer.tiltX",
|
|
1366
|
+
tiltY: "gea::host::Accelerometer.tiltY",
|
|
1367
|
+
x: "gea::host::Accelerometer.x",
|
|
1368
|
+
y: "gea::host::Accelerometer.y",
|
|
1369
|
+
z: "gea::host::Accelerometer.z",
|
|
1370
|
+
accelerationX: "gea::host::Accelerometer.accelerationX",
|
|
1371
|
+
accelerationY: "gea::host::Accelerometer.accelerationY",
|
|
1372
|
+
accelerationZ: "gea::host::Accelerometer.accelerationZ",
|
|
1373
|
+
gyroscopeX: "gea::host::Accelerometer.gyroscopeX",
|
|
1374
|
+
gyroscopeY: "gea::host::Accelerometer.gyroscopeY",
|
|
1375
|
+
gyroscopeZ: "gea::host::Accelerometer.gyroscopeZ",
|
|
1376
|
+
},
|
|
1377
|
+
__gea_Accelerometer: {
|
|
1378
|
+
tiltX: "gea::host::Accelerometer.tiltX",
|
|
1379
|
+
tiltY: "gea::host::Accelerometer.tiltY",
|
|
1380
|
+
x: "gea::host::Accelerometer.x",
|
|
1381
|
+
y: "gea::host::Accelerometer.y",
|
|
1382
|
+
z: "gea::host::Accelerometer.z",
|
|
1383
|
+
accelerationX: "gea::host::Accelerometer.accelerationX",
|
|
1384
|
+
accelerationY: "gea::host::Accelerometer.accelerationY",
|
|
1385
|
+
accelerationZ: "gea::host::Accelerometer.accelerationZ",
|
|
1386
|
+
gyroscopeX: "gea::host::Accelerometer.gyroscopeX",
|
|
1387
|
+
gyroscopeY: "gea::host::Accelerometer.gyroscopeY",
|
|
1388
|
+
gyroscopeZ: "gea::host::Accelerometer.gyroscopeZ",
|
|
1389
|
+
},
|
|
1390
|
+
Camera: {
|
|
1391
|
+
width: "gea::host::Camera.width",
|
|
1392
|
+
height: "gea::host::Camera.height",
|
|
1393
|
+
orientation: "gea::host::Camera.orientation",
|
|
1394
|
+
facing: "gea::host::Camera.facing",
|
|
1395
|
+
deviceCount: "gea::host::Camera.deviceCount",
|
|
1396
|
+
},
|
|
1397
|
+
__gea_Camera: {
|
|
1398
|
+
width: "gea::host::Camera.width",
|
|
1399
|
+
height: "gea::host::Camera.height",
|
|
1400
|
+
orientation: "gea::host::Camera.orientation",
|
|
1401
|
+
facing: "gea::host::Camera.facing",
|
|
1402
|
+
deviceCount: "gea::host::Camera.deviceCount",
|
|
1403
|
+
},
|
|
1404
|
+
},
|
|
1405
|
+
hostNamespacePropertyAccessors: {
|
|
1406
|
+
window: ["innerWidth", "innerHeight"],
|
|
1407
|
+
Display: [
|
|
1408
|
+
"ctx",
|
|
1409
|
+
"width",
|
|
1410
|
+
"height",
|
|
1411
|
+
"nativeWidth",
|
|
1412
|
+
"nativeHeight",
|
|
1413
|
+
"orientation",
|
|
1414
|
+
"supportedOrientations",
|
|
1415
|
+
"autoRotate",
|
|
1416
|
+
"pixelFormat",
|
|
1417
|
+
"panelPixelFormat",
|
|
1418
|
+
"supportedPixelFormats",
|
|
1419
|
+
],
|
|
1420
|
+
display: [
|
|
1421
|
+
"ctx",
|
|
1422
|
+
"width",
|
|
1423
|
+
"height",
|
|
1424
|
+
"nativeWidth",
|
|
1425
|
+
"nativeHeight",
|
|
1426
|
+
"orientation",
|
|
1427
|
+
"supportedOrientations",
|
|
1428
|
+
"autoRotate",
|
|
1429
|
+
"pixelFormat",
|
|
1430
|
+
"panelPixelFormat",
|
|
1431
|
+
"supportedPixelFormats",
|
|
1432
|
+
],
|
|
1433
|
+
__gea_Display: [
|
|
1434
|
+
"ctx",
|
|
1435
|
+
"width",
|
|
1436
|
+
"height",
|
|
1437
|
+
"nativeWidth",
|
|
1438
|
+
"nativeHeight",
|
|
1439
|
+
"orientation",
|
|
1440
|
+
"supportedOrientations",
|
|
1441
|
+
"autoRotate",
|
|
1442
|
+
"pixelFormat",
|
|
1443
|
+
"panelPixelFormat",
|
|
1444
|
+
"supportedPixelFormats",
|
|
1445
|
+
],
|
|
1446
|
+
},
|
|
1447
|
+
hostNamespacePropertySetters: {
|
|
1448
|
+
Display: {
|
|
1449
|
+
orientation: "gea::host::Display.setOrientation",
|
|
1450
|
+
supportedOrientations: "gea::host::Display.setSupportedOrientations",
|
|
1451
|
+
autoRotate: "gea::host::Display.setAutoRotate",
|
|
1452
|
+
pixelFormat: "gea::host::Display.setPixelFormat",
|
|
1453
|
+
},
|
|
1454
|
+
display: {
|
|
1455
|
+
orientation: "gea::host::Display.setOrientation",
|
|
1456
|
+
supportedOrientations: "gea::host::Display.setSupportedOrientations",
|
|
1457
|
+
autoRotate: "gea::host::Display.setAutoRotate",
|
|
1458
|
+
pixelFormat: "gea::host::Display.setPixelFormat",
|
|
1459
|
+
},
|
|
1460
|
+
__gea_Display: {
|
|
1461
|
+
orientation: "gea::host::Display.setOrientation",
|
|
1462
|
+
supportedOrientations: "gea::host::Display.setSupportedOrientations",
|
|
1463
|
+
autoRotate: "gea::host::Display.setAutoRotate",
|
|
1464
|
+
pixelFormat: "gea::host::Display.setPixelFormat",
|
|
1465
|
+
},
|
|
1466
|
+
},
|
|
1467
|
+
domElementMethods: {
|
|
1468
|
+
getContext: "gea_ir::getCanvasContext($receiver, $args)",
|
|
1469
|
+
},
|
|
1470
|
+
// The tags v1 collapses into a text node when their content is a single
|
|
1471
|
+
// text run: `isTextNodeTag` in `cpp-template-renderer.ts`, verbatim. A
|
|
1472
|
+
// heading is in the list for the same reason a span is -- it is a leaf that
|
|
1473
|
+
// carries characters -- and `<div>`/`<button>` are not, because they are
|
|
1474
|
+
// containers whose children are laid out.
|
|
1475
|
+
//
|
|
1476
|
+
// Why it matters, measured: `<span class="cube-face-label">front</span>`
|
|
1477
|
+
// built as a view meant the classed node carried no text and emitted no
|
|
1478
|
+
// draw command at all (css-3d-cube), and `<button><span>L</span></button>`
|
|
1479
|
+
// put one extra level between the button and its characters, so the app's
|
|
1480
|
+
// own pressed-state binding was on a node nothing looked at (sky-hop-jsx).
|
|
1481
|
+
elementTextLeafTags: ["span", "p", "h1", "h2", "h3", "h4", "h5", "h6"],
|
|
1482
|
+
nativeDocumentMethods: {
|
|
1483
|
+
// Typed generic-tag factory (Document::createElement maps known embedded
|
|
1484
|
+
// tags to their typed creators, anything else to a tagged view). The
|
|
1485
|
+
// NodeHandle return keeps the whole document.createElement path native —
|
|
1486
|
+
// a dynamic slot (`let input: any = …`) still boxes at the ASSIGNMENT via
|
|
1487
|
+
// the gea_cpp_key(NodeHandle) → nodeValue bridge, so the record protocol
|
|
1488
|
+
// (setAttribute/getAttribute/…) stays available there. Without a binding
|
|
1489
|
+
// the call falls through to the generic member-call emit, which for a
|
|
1490
|
+
// record-typed `document` (an app-side ambient `declare const document:
|
|
1491
|
+
// {…}`) produces `document()->createElement(…)` — a compile error on the
|
|
1492
|
+
// by-reference host Document.
|
|
1493
|
+
// The argument passes through untouched — Document::createElement/createText
|
|
1494
|
+
// take both `const char *` and `const std::string &`, covering every form
|
|
1495
|
+
// geatsc emits for the argument (no .c_str() adaptation in the template).
|
|
1496
|
+
createElement: {
|
|
1497
|
+
emit: "gea::embedded::ui::Document::instance().createElement(({arg0}))",
|
|
1498
|
+
returnType: "gea::embedded::ui::NodeHandle",
|
|
1499
|
+
},
|
|
1500
|
+
createTextNode: {
|
|
1501
|
+
emit: "gea::embedded::ui::Document::instance().createText(({arg0}))",
|
|
1502
|
+
returnType: "gea::embedded::ui::NodeHandle",
|
|
1503
|
+
},
|
|
1504
|
+
// Like `createElement`/`createText` above, the argument passes through
|
|
1505
|
+
// untouched: `Document::getElementById`/`querySelector`/`querySelectorAll`
|
|
1506
|
+
// now overload both `const char *` and `const std::string &` (see
|
|
1507
|
+
// `packages/engine/ui/document.h`), so no `.c_str()` adaptation belongs in
|
|
1508
|
+
// the template. `host-document-calls.ts`'s `callSymbolFromTemplate` only
|
|
1509
|
+
// ever plans a template shaped exactly `symbol({arg0}, ...)` — a
|
|
1510
|
+
// `.c_str()` suffix (the previous spelling here) is a shape it cannot
|
|
1511
|
+
// read, so every typed `document.getElementById(id)` reached lowering
|
|
1512
|
+
// with no call plan at all, even though this binding, the runtime method,
|
|
1513
|
+
// and the receiver's own native carrier were all in place.
|
|
1514
|
+
getElementById: {
|
|
1515
|
+
emit: "gea::embedded::ui::Document::instance().getElementById(({arg0}))",
|
|
1516
|
+
returnType: "gea::embedded::ui::NodeHandle",
|
|
1517
|
+
},
|
|
1518
|
+
querySelector: {
|
|
1519
|
+
emit: "gea::embedded::ui::Document::instance().querySelector(({arg0}))",
|
|
1520
|
+
returnType: "gea::embedded::ui::NodeHandle",
|
|
1521
|
+
},
|
|
1522
|
+
querySelectorAll: {
|
|
1523
|
+
emit: "gea::embedded::ui::Document::instance().querySelectorAll(({arg0}))",
|
|
1524
|
+
returnType: "std::vector<gea::embedded::ui::NodeHandle>",
|
|
1525
|
+
},
|
|
1526
|
+
// The compiled-component runtime builds a fragment for batched list /
|
|
1527
|
+
// conditional children. Map it to the native embedded Document so it returns
|
|
1528
|
+
// a real NodeHandle (children append, then it appends to the parent) instead
|
|
1529
|
+
// of falling through to the boxed gea_cpp_value path -- which produced a
|
|
1530
|
+
// 'gea_cpp_value -> NodeHandle' conversion error at `NodeHandle frag = ...`.
|
|
1531
|
+
createDocumentFragment: {
|
|
1532
|
+
emit: "gea::embedded::ui::Document::instance().createDocumentFragment()",
|
|
1533
|
+
returnType: "gea::embedded::ui::NodeHandle",
|
|
1534
|
+
},
|
|
1535
|
+
// The embedded UI has no comment node, and does not need one: every use of
|
|
1536
|
+
// `createComment` in the framework is a SENTINEL — a non-rendering node
|
|
1537
|
+
// parked in the tree so a later `insertBefore` has a stable anchor
|
|
1538
|
+
// (`conditional-truthy.ts`'s `sentinel`, the keyed-list row anchors). An
|
|
1539
|
+
// empty text node is exactly that on this target: it occupies a position,
|
|
1540
|
+
// renders nothing, and is a real `NodeHandle`. Without a binding here the
|
|
1541
|
+
// call had no plan at all and took its whole function out of the program.
|
|
1542
|
+
createComment: {
|
|
1543
|
+
emit: "gea::embedded::ui::Document::instance().createText(({arg0}))",
|
|
1544
|
+
returnType: "gea::embedded::ui::NodeHandle",
|
|
1545
|
+
},
|
|
1546
|
+
},
|
|
1547
|
+
// DOM `Node` accessor PROPERTIES on a concrete NodeHandle receiver. The gea
|
|
1548
|
+
// backend flows DOM nodes as `gea::embedded::ui::NodeHandle` (see nativeTypes
|
|
1549
|
+
// above), which carries methods (appendChild/remove/…) but not data members,
|
|
1550
|
+
// so geatsc would otherwise emit `node.nodeType` / `node.parentNode` as struct
|
|
1551
|
+
// field reads that don't exist. Route them through the gea_ir accessors, which
|
|
1552
|
+
// resolve against the retained tree — matching the gea_cpp_value record
|
|
1553
|
+
// protocol (nodeValue) used when a node is value-bridged instead of typed.
|
|
1554
|
+
nativeMemberPropertyGetters: {
|
|
1555
|
+
// `document.body`, the one PROPERTY the document singleton publishes.
|
|
1556
|
+
// `Document::body()` (engine/ui/document.h) is a method in C++ and a
|
|
1557
|
+
// readonly property in TypeScript (`Document.body: Element`), which is
|
|
1558
|
+
// exactly the shape this table exists to bridge -- the document's own
|
|
1559
|
+
// METHODS are stated in `nativeDocumentMethods`, and that table has no
|
|
1560
|
+
// entry that could ever answer a property read. Without this row a typed
|
|
1561
|
+
// `document.body.appendChild(node)` refused at emission ("Document.body
|
|
1562
|
+
// is claimed by no host member table"), which is the fail-closed guard
|
|
1563
|
+
// correctly naming the missing statement.
|
|
1564
|
+
body: [
|
|
1565
|
+
{
|
|
1566
|
+
emit: "gea::embedded::ui::Document::instance().body()",
|
|
1567
|
+
returnType: "gea::embedded::ui::NodeHandle",
|
|
1568
|
+
receiverTypes: ["gea::embedded::ui::Document", "Document"],
|
|
1569
|
+
},
|
|
1570
|
+
],
|
|
1571
|
+
// The event a listener DECLARES. Every field the TS `PointerEvent` /
|
|
1572
|
+
// `TouchEvent` / `RotaryEvent` interfaces publish is already a data
|
|
1573
|
+
// member of the engine's own event struct (events.h), so each getter is
|
|
1574
|
+
// the member read itself -- no bridge, no boxed record. Widened to
|
|
1575
|
+
// `double` because the engine stores each as `int` while the declared
|
|
1576
|
+
// property is a `number`, exactly as the virtual-list geometry rows
|
|
1577
|
+
// below are widened.
|
|
1578
|
+
//
|
|
1579
|
+
// Without these the event parameter had a carrier (`nativeTypes`) but no
|
|
1580
|
+
// member spellings, so emission refused `TouchEvent.clientX` by name --
|
|
1581
|
+
// the fail-closed guard reporting, correctly, that this table was the
|
|
1582
|
+
// thing missing.
|
|
1583
|
+
pointerId: [
|
|
1584
|
+
{
|
|
1585
|
+
emit: "static_cast<double>(({receiver}).pointerId)",
|
|
1586
|
+
returnType: "double",
|
|
1587
|
+
receiverTypes: EVENT_RECEIVER_TYPES,
|
|
1588
|
+
},
|
|
1589
|
+
],
|
|
1590
|
+
// `KeyEvent.keyCode` / `.which` (index.d.ts). One engine field backs both,
|
|
1591
|
+
// exactly as the DOM's own two spellings alias one value; `keydown` is
|
|
1592
|
+
// filled by `Tree::dispatchDocumentKey` and by the macOS key bridge.
|
|
1593
|
+
keyCode: [
|
|
1594
|
+
{
|
|
1595
|
+
emit: "static_cast<double>(({receiver}).keyCode)",
|
|
1596
|
+
returnType: "double",
|
|
1597
|
+
receiverTypes: EVENT_RECEIVER_TYPES,
|
|
1598
|
+
},
|
|
1599
|
+
],
|
|
1600
|
+
which: [
|
|
1601
|
+
{
|
|
1602
|
+
emit: "static_cast<double>(({receiver}).keyCode)",
|
|
1603
|
+
returnType: "double",
|
|
1604
|
+
receiverTypes: EVENT_RECEIVER_TYPES,
|
|
1605
|
+
},
|
|
1606
|
+
],
|
|
1607
|
+
// The node an event names. Both are real members of the engine's event
|
|
1608
|
+
// struct, so the getter is the member read itself -- but it must be
|
|
1609
|
+
// STATED, because without a row here the emitter has no spelling for
|
|
1610
|
+
// `event.currentTarget` and the whole `onInput` handler falls to the
|
|
1611
|
+
// boxed path (or refuses).
|
|
1612
|
+
target: [
|
|
1613
|
+
{
|
|
1614
|
+
emit: "(({receiver}).target)",
|
|
1615
|
+
returnType: "gea::framework::events::EventTarget",
|
|
1616
|
+
receiverTypes: EVENT_RECEIVER_TYPES,
|
|
1617
|
+
},
|
|
1618
|
+
],
|
|
1619
|
+
currentTarget: [
|
|
1620
|
+
{
|
|
1621
|
+
emit: "(({receiver}).currentTarget)",
|
|
1622
|
+
returnType: "gea::framework::events::EventTarget",
|
|
1623
|
+
receiverTypes: EVENT_RECEIVER_TYPES,
|
|
1624
|
+
},
|
|
1625
|
+
],
|
|
1626
|
+
x: [
|
|
1627
|
+
{
|
|
1628
|
+
emit: "static_cast<double>(({receiver}).x)",
|
|
1629
|
+
returnType: "double",
|
|
1630
|
+
receiverTypes: EVENT_RECEIVER_TYPES,
|
|
1631
|
+
},
|
|
1632
|
+
],
|
|
1633
|
+
y: [
|
|
1634
|
+
{
|
|
1635
|
+
emit: "static_cast<double>(({receiver}).y)",
|
|
1636
|
+
returnType: "double",
|
|
1637
|
+
receiverTypes: EVENT_RECEIVER_TYPES,
|
|
1638
|
+
},
|
|
1639
|
+
],
|
|
1640
|
+
clientX: [
|
|
1641
|
+
{
|
|
1642
|
+
emit: "static_cast<double>(({receiver}).clientX)",
|
|
1643
|
+
returnType: "double",
|
|
1644
|
+
receiverTypes: EVENT_RECEIVER_TYPES,
|
|
1645
|
+
},
|
|
1646
|
+
],
|
|
1647
|
+
clientY: [
|
|
1648
|
+
{
|
|
1649
|
+
emit: "static_cast<double>(({receiver}).clientY)",
|
|
1650
|
+
returnType: "double",
|
|
1651
|
+
receiverTypes: EVENT_RECEIVER_TYPES,
|
|
1652
|
+
},
|
|
1653
|
+
],
|
|
1654
|
+
pageX: [
|
|
1655
|
+
{
|
|
1656
|
+
emit: "static_cast<double>(({receiver}).pageX)",
|
|
1657
|
+
returnType: "double",
|
|
1658
|
+
receiverTypes: EVENT_RECEIVER_TYPES,
|
|
1659
|
+
},
|
|
1660
|
+
],
|
|
1661
|
+
pageY: [
|
|
1662
|
+
{
|
|
1663
|
+
emit: "static_cast<double>(({receiver}).pageY)",
|
|
1664
|
+
returnType: "double",
|
|
1665
|
+
receiverTypes: EVENT_RECEIVER_TYPES,
|
|
1666
|
+
},
|
|
1667
|
+
],
|
|
1668
|
+
screenX: [
|
|
1669
|
+
{
|
|
1670
|
+
emit: "static_cast<double>(({receiver}).screenX)",
|
|
1671
|
+
returnType: "double",
|
|
1672
|
+
receiverTypes: EVENT_RECEIVER_TYPES,
|
|
1673
|
+
},
|
|
1674
|
+
],
|
|
1675
|
+
screenY: [
|
|
1676
|
+
{
|
|
1677
|
+
emit: "static_cast<double>(({receiver}).screenY)",
|
|
1678
|
+
returnType: "double",
|
|
1679
|
+
receiverTypes: EVENT_RECEIVER_TYPES,
|
|
1680
|
+
},
|
|
1681
|
+
],
|
|
1682
|
+
// `RotaryEvent.delta` -- the engine's own field, written by
|
|
1683
|
+
// `dispatchDocumentRotary` (`engine/ui/tree_events.cpp`) as
|
|
1684
|
+
// `event.delta = delta`. Not `keyCode`: `PointerEvent` carries both, and
|
|
1685
|
+
// a rotary tick would have read the key code instead.
|
|
1686
|
+
delta: [
|
|
1687
|
+
{
|
|
1688
|
+
emit: "static_cast<double>(({receiver}).delta)",
|
|
1689
|
+
returnType: "double",
|
|
1690
|
+
receiverTypes: ["gea::framework::events::PointerEvent", "RotaryEvent"],
|
|
1691
|
+
},
|
|
1692
|
+
],
|
|
1693
|
+
// `<virtual-list>`'s scroll geometry, read off the engine's own
|
|
1694
|
+
// accessors rather than through the dynamic element-property table.
|
|
1695
|
+
// `scrollTop`/`scrollLeft` are the standard layout scroll offsets every
|
|
1696
|
+
// scrollable node has (`Tree::scrollTop`, tree_internal.h); `rowHeight`
|
|
1697
|
+
// is the measured height of the first slot child, which
|
|
1698
|
+
// `VirtualListRenderer` caches while computing the virtual content
|
|
1699
|
+
// height (internal.h) and which the app windows its recycled slots
|
|
1700
|
+
// from. Each is an engine `int`, widened here because the declared
|
|
1701
|
+
// property is a `number`.
|
|
1702
|
+
rowHeight: [
|
|
1703
|
+
{
|
|
1704
|
+
emit: geaVirtualListRowHeightEmit,
|
|
1705
|
+
returnType: "double",
|
|
1706
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
1707
|
+
},
|
|
1708
|
+
],
|
|
1709
|
+
scrollTop: [
|
|
1710
|
+
{
|
|
1711
|
+
emit: "static_cast<double>(gea::embedded::ui::Tree::instance().scrollTop(({receiver}).id()))",
|
|
1712
|
+
returnType: "double",
|
|
1713
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
1714
|
+
},
|
|
1715
|
+
],
|
|
1716
|
+
scrollLeft: [
|
|
1717
|
+
{
|
|
1718
|
+
emit: "static_cast<double>(gea::embedded::ui::Tree::instance().scrollLeft(({receiver}).id()))",
|
|
1719
|
+
returnType: "double",
|
|
1720
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
1721
|
+
},
|
|
1722
|
+
],
|
|
1723
|
+
classList: [
|
|
1724
|
+
{
|
|
1725
|
+
emit: "gea::runtime::host::domClassList({receiver})",
|
|
1726
|
+
returnType: "gea::embedded::ui::ClassList",
|
|
1727
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
1728
|
+
},
|
|
1729
|
+
],
|
|
1730
|
+
// `fetch(...)` returns a concrete `gea::host::FetchResponse` whose `ok` /
|
|
1731
|
+
// `status` / `statusText` are plain C++ data members (see
|
|
1732
|
+
// packages/core/include/host/fetch.h). Without a getter binding a typed
|
|
1733
|
+
// `if (!response.ok)` finds no native accessor and falls through to the
|
|
1734
|
+
// dynamic `record_get` path, which for a native struct SFINAEs out to
|
|
1735
|
+
// `gea_cpp_value::missing()` — a boxed value AND a correctness bug, since
|
|
1736
|
+
// `!missing()` is constant-true so the failure branch always runs. Read the
|
|
1737
|
+
// fields directly. The `.text()`/`.bytes()` methods are in nativeMemberMethods.
|
|
1738
|
+
ok: [
|
|
1739
|
+
{
|
|
1740
|
+
emit: "({receiver}).ok",
|
|
1741
|
+
returnType: "bool",
|
|
1742
|
+
receiverTypes: ["gea::host::FetchResponse"],
|
|
1743
|
+
},
|
|
1744
|
+
],
|
|
1745
|
+
status: [
|
|
1746
|
+
{
|
|
1747
|
+
emit: "({receiver}).status",
|
|
1748
|
+
returnType: "double",
|
|
1749
|
+
receiverTypes: ["gea::host::FetchResponse"],
|
|
1750
|
+
},
|
|
1751
|
+
],
|
|
1752
|
+
statusText: [
|
|
1753
|
+
{
|
|
1754
|
+
emit: "({receiver}).status_text",
|
|
1755
|
+
returnType: "std::string",
|
|
1756
|
+
receiverTypes: ["gea::host::FetchResponse"],
|
|
1757
|
+
},
|
|
1758
|
+
],
|
|
1759
|
+
// `loadImage(...)` / cached tiles flow as a concrete `gea::host::GeaEmbeddedImage`
|
|
1760
|
+
// (see packages/host/include/host/image.h): `width`/`height`/`frameCount` are
|
|
1761
|
+
// plain C++ `int` DATA MEMBERS and `isAnimated` a `bool` member, while
|
|
1762
|
+
// `play()`/`pause()`/`seek()`/`dispose()` are methods (handled by the default
|
|
1763
|
+
// native method-call path). Without these getter bindings a typed
|
|
1764
|
+
// `image.width` finds no native accessor and the property-read path falls
|
|
1765
|
+
// through to a getter-method-call form (`image.width()`), which fails to
|
|
1766
|
+
// compile because the field is not callable. Read the fields directly. The
|
|
1767
|
+
// type alias `LoadedImage = GeaEmbeddedImage` resolves to `GeaEmbeddedImage`,
|
|
1768
|
+
// so the unqualified name covers aliased receivers too.
|
|
1769
|
+
width: [
|
|
1770
|
+
{
|
|
1771
|
+
emit: "({receiver}).width",
|
|
1772
|
+
returnType: "double",
|
|
1773
|
+
receiverTypes: IMAGE_RECEIVER_TYPES,
|
|
1774
|
+
},
|
|
1775
|
+
],
|
|
1776
|
+
height: [
|
|
1777
|
+
{
|
|
1778
|
+
emit: "({receiver}).height",
|
|
1779
|
+
returnType: "double",
|
|
1780
|
+
receiverTypes: IMAGE_RECEIVER_TYPES,
|
|
1781
|
+
},
|
|
1782
|
+
],
|
|
1783
|
+
frameCount: [
|
|
1784
|
+
{
|
|
1785
|
+
emit: "({receiver}).frameCount",
|
|
1786
|
+
returnType: "double",
|
|
1787
|
+
receiverTypes: IMAGE_RECEIVER_TYPES,
|
|
1788
|
+
},
|
|
1789
|
+
],
|
|
1790
|
+
isAnimated: [
|
|
1791
|
+
{
|
|
1792
|
+
emit: "({receiver}).isAnimated",
|
|
1793
|
+
returnType: "bool",
|
|
1794
|
+
receiverTypes: IMAGE_RECEIVER_TYPES,
|
|
1795
|
+
},
|
|
1796
|
+
],
|
|
1797
|
+
// Flat `gea_ir::domStyle({receiver})` call, NOT the dot-call `({receiver}).style()`
|
|
1798
|
+
// this used to read: `solveHostNativeMemberPropertyRead`
|
|
1799
|
+
// (`property-access-plan-solver.ts`) only plans a property-GET whose emit
|
|
1800
|
+
// template is exactly `symbol({receiver})` — a dot-call has no template slot
|
|
1801
|
+
// at all (see that function's own doc comment, which used to name `.style`
|
|
1802
|
+
// as one of the two accessors "declined... nothing regresses, since neither
|
|
1803
|
+
// has a plan today either", alongside `.content`). Without a plan here
|
|
1804
|
+
// `const style = el.style` (gea's own `reactiveStyle`/`reactiveStyleProp`
|
|
1805
|
+
// runtime helpers, packages/gea/src/runtime/reactive-style.ts) failed
|
|
1806
|
+
// `missing-property-access-plan` before ever reaching `.setProperty`/
|
|
1807
|
+
// `.removeProperty`. `gea_ir::domStyle` (cpp-ir-dom-style.ts) is the flat
|
|
1808
|
+
// wrapper `node.style()` needed to make this producer's shape match.
|
|
1809
|
+
style: [
|
|
1810
|
+
{
|
|
1811
|
+
emit: "gea_ir::domStyle({receiver})",
|
|
1812
|
+
returnType: "gea::embedded::ui::Style",
|
|
1813
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
1814
|
+
},
|
|
1815
|
+
],
|
|
1816
|
+
nodeType: [
|
|
1817
|
+
{
|
|
1818
|
+
emit: "gea_ir::domNodeType({receiver})",
|
|
1819
|
+
returnType: "double",
|
|
1820
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
1821
|
+
},
|
|
1822
|
+
],
|
|
1823
|
+
parentNode: [
|
|
1824
|
+
{
|
|
1825
|
+
emit: "gea_ir::domParentNode({receiver})",
|
|
1826
|
+
returnType: "gea_cpp_value",
|
|
1827
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
1828
|
+
},
|
|
1829
|
+
],
|
|
1830
|
+
// `node.ownerDocument` -> the (singleton) document, boxed so the caller's
|
|
1831
|
+
// capability probe (record_get('createDocumentFragment')) resolves. Without
|
|
1832
|
+
// it delegate-click's `root.ownerDocument` hit `gea_cpp_value` with no such
|
|
1833
|
+
// member.
|
|
1834
|
+
ownerDocument: [
|
|
1835
|
+
{
|
|
1836
|
+
emit: "gea_ir::domOwnerDocument({receiver})",
|
|
1837
|
+
returnType: "gea_cpp_value",
|
|
1838
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
1839
|
+
},
|
|
1840
|
+
],
|
|
1841
|
+
// Embedded templates retain their parsed children directly on the template
|
|
1842
|
+
// node, so `template.content` IS the receiver: the same NodeHandle, not a
|
|
1843
|
+
// boxed copy of it. `DocumentFragment` lowers to NodeHandle, so boxing here
|
|
1844
|
+
// would hand a statically typed handle to the dynamic carrier for nothing.
|
|
1845
|
+
// Keep the row itself: without it geatsc falls back to a missing dynamic
|
|
1846
|
+
// property and lowers `template.content.firstChild` to
|
|
1847
|
+
// `domFirstChild(missing())`, which makes every multi-node JSX template
|
|
1848
|
+
// mount an invalid root.
|
|
1849
|
+
content: [
|
|
1850
|
+
{
|
|
1851
|
+
emit: "({receiver})",
|
|
1852
|
+
returnType: "gea::embedded::ui::NodeHandle",
|
|
1853
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
1854
|
+
},
|
|
1855
|
+
],
|
|
1856
|
+
firstChild: [
|
|
1857
|
+
{
|
|
1858
|
+
emit: "gea_ir::domFirstChild({receiver})",
|
|
1859
|
+
returnType: "gea_cpp_value",
|
|
1860
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
1861
|
+
},
|
|
1862
|
+
],
|
|
1863
|
+
// `node.nextSibling` -> a typed NodeHandle (not boxed): the compiled-component
|
|
1864
|
+
// keyed-list reconciler does `NodeHandle ref = entry.element.nextSibling` then
|
|
1865
|
+
// `container.insertBefore(ref, ...)`, so keeping it native avoids a box/unbox
|
|
1866
|
+
// round-trip on the reconcile hot path.
|
|
1867
|
+
nextSibling: [
|
|
1868
|
+
{
|
|
1869
|
+
emit: "gea_ir::domNextSibling({receiver})",
|
|
1870
|
+
returnType: "gea::embedded::ui::NodeHandle",
|
|
1871
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
1872
|
+
},
|
|
1873
|
+
],
|
|
1874
|
+
childNodes: [
|
|
1875
|
+
{
|
|
1876
|
+
emit: "gea_ir::domChildNodes({receiver})",
|
|
1877
|
+
returnType: "gea_cpp_value",
|
|
1878
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
1879
|
+
},
|
|
1880
|
+
],
|
|
1881
|
+
children: [
|
|
1882
|
+
{
|
|
1883
|
+
emit: "gea_ir::domChildren({receiver})",
|
|
1884
|
+
returnType: "std::vector<gea::embedded::ui::NodeHandle>",
|
|
1885
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
1886
|
+
},
|
|
1887
|
+
],
|
|
1888
|
+
id: [
|
|
1889
|
+
{
|
|
1890
|
+
emit: "({receiver}).id()",
|
|
1891
|
+
returnType: "std::string",
|
|
1892
|
+
receiverTypes: [
|
|
1893
|
+
"gea::host::MediaStream",
|
|
1894
|
+
"MediaStream",
|
|
1895
|
+
"gea::host::MediaStreamTrack",
|
|
1896
|
+
"MediaStreamTrack",
|
|
1897
|
+
],
|
|
1898
|
+
},
|
|
1899
|
+
],
|
|
1900
|
+
kind: [
|
|
1901
|
+
{
|
|
1902
|
+
emit: "({receiver}).kind()",
|
|
1903
|
+
returnType: "std::string",
|
|
1904
|
+
receiverTypes: ["gea::host::MediaStreamTrack", "MediaStreamTrack"],
|
|
1905
|
+
},
|
|
1906
|
+
],
|
|
1907
|
+
readyState: [
|
|
1908
|
+
{
|
|
1909
|
+
emit: "({receiver}).readyState()",
|
|
1910
|
+
returnType: "std::string",
|
|
1911
|
+
receiverTypes: ["gea::host::MediaStreamTrack", "MediaStreamTrack"],
|
|
1912
|
+
},
|
|
1913
|
+
],
|
|
1914
|
+
// `pc.connectionState` -- a TS PROPERTY (`readonly connectionState:
|
|
1915
|
+
// 'new' | 'connecting' | ...`) and a C++ ACCESSOR (`std::string
|
|
1916
|
+
// connectionState() const`, `host/rtc.h`), which is exactly why it is a
|
|
1917
|
+
// property-getter row whose template calls: the access itself is a
|
|
1918
|
+
// value, and the parentheses belong to the host's spelling of it rather
|
|
1919
|
+
// than to the program's syntax.
|
|
1920
|
+
//
|
|
1921
|
+
// Read-only on both sides, so no `nativeMemberPropertySetters` twin: the
|
|
1922
|
+
// engine publishes the state and `enqueue_connection_state_change` is
|
|
1923
|
+
// the only thing that writes it. A write is refused by name at the site.
|
|
1924
|
+
//
|
|
1925
|
+
// Every arm of the declared union is a string literal, so the carrier
|
|
1926
|
+
// collapses to `std::string` -- the same type the accessor returns, and
|
|
1927
|
+
// what makes `cs === 'connected'` an ordinary string comparison.
|
|
1928
|
+
connectionState: [
|
|
1929
|
+
{
|
|
1930
|
+
emit: "({receiver}).connectionState()",
|
|
1931
|
+
returnType: "std::string",
|
|
1932
|
+
receiverTypes: RTC_PEER_CONNECTION_RECEIVER_TYPES,
|
|
1933
|
+
},
|
|
1934
|
+
],
|
|
1935
|
+
enabled: [
|
|
1936
|
+
{
|
|
1937
|
+
emit: "({receiver}).enabled()",
|
|
1938
|
+
returnType: "bool",
|
|
1939
|
+
receiverTypes: ["gea::host::MediaStreamTrack", "MediaStreamTrack"],
|
|
1940
|
+
},
|
|
1941
|
+
],
|
|
1942
|
+
state: [
|
|
1943
|
+
{
|
|
1944
|
+
emit: "static_cast<std::string>(({receiver}).state)",
|
|
1945
|
+
returnType: "std::string",
|
|
1946
|
+
receiverTypes: ["gea::host::MediaRecorder", "MediaRecorder"],
|
|
1947
|
+
},
|
|
1948
|
+
],
|
|
1949
|
+
mimeType: [
|
|
1950
|
+
{
|
|
1951
|
+
emit: "({receiver}).mimeType()",
|
|
1952
|
+
returnType: "std::string",
|
|
1953
|
+
receiverTypes: ["gea::host::MediaRecorder", "MediaRecorder"],
|
|
1954
|
+
},
|
|
1955
|
+
],
|
|
1956
|
+
ondataavailable: [
|
|
1957
|
+
{
|
|
1958
|
+
emit: "({receiver}).ondataavailable",
|
|
1959
|
+
returnType: "std::function<void(gea::host::MediaRecorderDataEvent)>",
|
|
1960
|
+
receiverTypes: ["gea::host::MediaRecorder", "MediaRecorder"],
|
|
1961
|
+
},
|
|
1962
|
+
],
|
|
1963
|
+
onstop: [
|
|
1964
|
+
{
|
|
1965
|
+
emit: "({receiver}).onstop",
|
|
1966
|
+
returnType: "std::function<void()>",
|
|
1967
|
+
receiverTypes: ["gea::host::MediaRecorder", "MediaRecorder"],
|
|
1968
|
+
},
|
|
1969
|
+
],
|
|
1970
|
+
// What the `ondataavailable` handler is HANDED. The event and the blob
|
|
1971
|
+
// are both plain engine structs (`MediaRecorderDataEvent { GeaAudioBlob
|
|
1972
|
+
// data; }`, `GeaAudioBlob { std::string path; ... }` in `host/media.h`),
|
|
1973
|
+
// so each read is the data-member read itself -- no bridge, no boxed
|
|
1974
|
+
// record. `nativeTypes` above already gives both declarations a carrier;
|
|
1975
|
+
// without these two rows the carrier existed and the member spellings did
|
|
1976
|
+
// not, which is the same one-sided statement the recorder's own `stop`
|
|
1977
|
+
// and `ondataavailable` write were missing. Keyed by carrier, so the very
|
|
1978
|
+
// generic names `data` and `path` answer only for these two structs.
|
|
1979
|
+
data: [
|
|
1980
|
+
{
|
|
1981
|
+
emit: "({receiver}).data",
|
|
1982
|
+
returnType: "gea::host::GeaAudioBlob",
|
|
1983
|
+
receiverTypes: [
|
|
1984
|
+
"gea::host::MediaRecorderDataEvent",
|
|
1985
|
+
"MediaRecorderDataAvailableEvent",
|
|
1986
|
+
],
|
|
1987
|
+
},
|
|
1988
|
+
],
|
|
1989
|
+
path: [
|
|
1990
|
+
{
|
|
1991
|
+
emit: "({receiver}).path",
|
|
1992
|
+
returnType: "std::string",
|
|
1993
|
+
receiverTypes: ["gea::host::GeaAudioBlob", "GeaAudioBlob"],
|
|
1994
|
+
},
|
|
1995
|
+
],
|
|
1996
|
+
currentTime: [
|
|
1997
|
+
{
|
|
1998
|
+
emit: "static_cast<double>(({receiver}).currentTime)",
|
|
1999
|
+
returnType: "double",
|
|
2000
|
+
receiverTypes: ["gea::host::AudioContext", "AudioContext"],
|
|
2001
|
+
},
|
|
2002
|
+
],
|
|
2003
|
+
destination: [
|
|
2004
|
+
{
|
|
2005
|
+
emit: "static_cast<gea::host::AudioDestinationNode>(({receiver}).destination)",
|
|
2006
|
+
returnType: "gea::host::AudioDestinationNode",
|
|
2007
|
+
receiverTypes: ["gea::host::AudioContext", "AudioContext"],
|
|
2008
|
+
},
|
|
2009
|
+
],
|
|
2010
|
+
frequency: [
|
|
2011
|
+
{
|
|
2012
|
+
emit: "static_cast<gea::host::AudioParam>(({receiver}).frequency)",
|
|
2013
|
+
returnType: "gea::host::AudioParam",
|
|
2014
|
+
receiverTypes: ["gea::host::OscillatorNode", "OscillatorNode"],
|
|
2015
|
+
},
|
|
2016
|
+
],
|
|
2017
|
+
value: [
|
|
2018
|
+
{
|
|
2019
|
+
emit: "static_cast<double>(({receiver}).value)",
|
|
2020
|
+
returnType: "double",
|
|
2021
|
+
receiverTypes: ["gea::host::AudioParam", "AudioParam"],
|
|
2022
|
+
},
|
|
2023
|
+
// `InputEvent.currentTarget.value` -- the edited text. Not a data member
|
|
2024
|
+
// anywhere: the engine keeps an input's text in the node's `value`
|
|
2025
|
+
// ATTRIBUTE (the macOS text bridge writes it in `textDidChange:`, the
|
|
2026
|
+
// renderer reads it back to seed the field), and `EventTarget` publishes
|
|
2027
|
+
// exactly that accessor. `getAttribute` never answers `nullptr` (it
|
|
2028
|
+
// returns `""` for a missing attribute and for an invalid node), so the
|
|
2029
|
+
// `std::string` construction is total. This is byte-for-byte the
|
|
2030
|
+
// spelling v1 emitted for `event.currentTarget.value`.
|
|
2031
|
+
{
|
|
2032
|
+
emit: 'std::string(({receiver}).getAttribute("value"))',
|
|
2033
|
+
returnType: "std::string",
|
|
2034
|
+
receiverTypes: EVENT_TARGET_RECEIVER_TYPES,
|
|
2035
|
+
},
|
|
2036
|
+
// The same property on a NODE receiver, for `el.value` written against
|
|
2037
|
+
// a `Component`'s own element rather than off an event.
|
|
2038
|
+
{
|
|
2039
|
+
emit: 'std::string(gea::embedded::ui::Tree::instance().getAttribute(({receiver}).id(), "value"))',
|
|
2040
|
+
returnType: "std::string",
|
|
2041
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
2042
|
+
},
|
|
2043
|
+
],
|
|
2044
|
+
buffer: [
|
|
2045
|
+
{
|
|
2046
|
+
emit: "static_cast<gea::host::AudioBuffer>(({receiver}).buffer)",
|
|
2047
|
+
returnType: "gea::host::AudioBuffer",
|
|
2048
|
+
receiverTypes: [
|
|
2049
|
+
"gea::host::AudioBufferSourceNode",
|
|
2050
|
+
"AudioBufferSourceNode",
|
|
2051
|
+
],
|
|
2052
|
+
},
|
|
2053
|
+
],
|
|
2054
|
+
},
|
|
2055
|
+
nativeMemberPropertySetters: {
|
|
2056
|
+
// Installing an event handler on a WebSocket / RTCPeerConnection.
|
|
2057
|
+
//
|
|
2058
|
+
// `packages/host/include/host/websocket.h` and `.../rtc.h` already ship
|
|
2059
|
+
// the per-handle `CallbackTable`, the platform producers and
|
|
2060
|
+
// `runCallbacks()`. Their `on*Property::operator=` overloads, though,
|
|
2061
|
+
// take v1's `gea_cpp_value` and are compiled only
|
|
2062
|
+
// `#ifdef GEA_CPP_VALUE_AVAILABLE`, so on the unboxed backend
|
|
2063
|
+
// `ws.onopen = fn` resolved no overload at all and `examples/dialer`
|
|
2064
|
+
// could not compile -- a socket it opened could never call back.
|
|
2065
|
+
//
|
|
2066
|
+
// These rows route each assignment to the native adapter in the
|
|
2067
|
+
// compiler's own runtime (`gea::runtime::hostevent`), which builds the
|
|
2068
|
+
// declared event record field by field from the native callback's
|
|
2069
|
+
// arguments. The adapters live there rather than on the host classes
|
|
2070
|
+
// because they name `gea::Ref`/`gea::Optional`/`gea::CallableObject` --
|
|
2071
|
+
// runtime types `gea/embedded-host.h` exists to keep the host package
|
|
2072
|
+
// free of.
|
|
2073
|
+
onopen: [
|
|
2074
|
+
{
|
|
2075
|
+
emit: "gea::runtime::hostevent::setWebSocketOnOpen({receiver}, {value})",
|
|
2076
|
+
receiverTypes: WEB_SOCKET_RECEIVER_TYPES,
|
|
2077
|
+
returnType: "void",
|
|
2078
|
+
},
|
|
2079
|
+
],
|
|
2080
|
+
onmessage: [
|
|
2081
|
+
{
|
|
2082
|
+
emit: "gea::runtime::hostevent::setWebSocketOnMessage({receiver}, {value})",
|
|
2083
|
+
receiverTypes: WEB_SOCKET_RECEIVER_TYPES,
|
|
2084
|
+
returnType: "void",
|
|
2085
|
+
},
|
|
2086
|
+
],
|
|
2087
|
+
onclose: [
|
|
2088
|
+
{
|
|
2089
|
+
emit: "gea::runtime::hostevent::setWebSocketOnClose({receiver}, {value})",
|
|
2090
|
+
receiverTypes: WEB_SOCKET_RECEIVER_TYPES,
|
|
2091
|
+
returnType: "void",
|
|
2092
|
+
},
|
|
2093
|
+
],
|
|
2094
|
+
onerror: [
|
|
2095
|
+
{
|
|
2096
|
+
emit: "gea::runtime::hostevent::setWebSocketOnError({receiver}, {value})",
|
|
2097
|
+
receiverTypes: WEB_SOCKET_RECEIVER_TYPES,
|
|
2098
|
+
returnType: "void",
|
|
2099
|
+
},
|
|
2100
|
+
],
|
|
2101
|
+
onicecandidate: [
|
|
2102
|
+
{
|
|
2103
|
+
emit: "gea::runtime::hostevent::setRtcOnIceCandidate({receiver}, {value})",
|
|
2104
|
+
receiverTypes: RTC_PEER_CONNECTION_RECEIVER_TYPES,
|
|
2105
|
+
returnType: "void",
|
|
2106
|
+
},
|
|
2107
|
+
],
|
|
2108
|
+
onconnectionstatechange: [
|
|
2109
|
+
{
|
|
2110
|
+
emit: "gea::runtime::hostevent::setRtcOnConnectionStateChange({receiver}, {value})",
|
|
2111
|
+
receiverTypes: RTC_PEER_CONNECTION_RECEIVER_TYPES,
|
|
2112
|
+
returnType: "void",
|
|
2113
|
+
},
|
|
2114
|
+
],
|
|
2115
|
+
oniceconnectionstatechange: [
|
|
2116
|
+
{
|
|
2117
|
+
emit: "gea::runtime::hostevent::setRtcOnIceConnectionStateChange({receiver}, {value})",
|
|
2118
|
+
receiverTypes: RTC_PEER_CONNECTION_RECEIVER_TYPES,
|
|
2119
|
+
returnType: "void",
|
|
2120
|
+
},
|
|
2121
|
+
],
|
|
2122
|
+
// The write half of the two scroll offsets above. `setScrollTop` narrows
|
|
2123
|
+
// to the engine's `int`, exactly as the dynamic path already does before
|
|
2124
|
+
// calling the same setter.
|
|
2125
|
+
scrollTop: [
|
|
2126
|
+
{
|
|
2127
|
+
emit: "gea::embedded::ui::Tree::instance().setScrollTop(({receiver}).id(), static_cast<int>({value}))",
|
|
2128
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
2129
|
+
returnType: "void",
|
|
2130
|
+
},
|
|
2131
|
+
],
|
|
2132
|
+
scrollLeft: [
|
|
2133
|
+
{
|
|
2134
|
+
emit: "gea::embedded::ui::Tree::instance().setScrollLeft(({receiver}).id(), static_cast<int>({value}))",
|
|
2135
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
2136
|
+
returnType: "void",
|
|
2137
|
+
},
|
|
2138
|
+
],
|
|
2139
|
+
// Generated JSX template factories initialize retained DOM nodes through
|
|
2140
|
+
// these two standard properties. Keep the templates in geatsc's exact
|
|
2141
|
+
// flat-call setter shape so the sealed property plan can name one symbol
|
|
2142
|
+
// and the typed emitter can pass receiver/value without interpreting C++.
|
|
2143
|
+
innerHTML: [
|
|
2144
|
+
{
|
|
2145
|
+
emit: "gea_ir::domSetInnerHtml({receiver}, {value})",
|
|
2146
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
2147
|
+
returnType: "void",
|
|
2148
|
+
},
|
|
2149
|
+
],
|
|
2150
|
+
textContent: [
|
|
2151
|
+
{
|
|
2152
|
+
emit: "gea_ir::domSetTextContent({receiver}, {value})",
|
|
2153
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
2154
|
+
returnType: "void",
|
|
2155
|
+
},
|
|
2156
|
+
],
|
|
2157
|
+
nodeValue: [
|
|
2158
|
+
{
|
|
2159
|
+
emit: "gea_ir::domSetTextContent({receiver}, {value})",
|
|
2160
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
2161
|
+
returnType: "void",
|
|
2162
|
+
},
|
|
2163
|
+
],
|
|
2164
|
+
display: [
|
|
2165
|
+
{
|
|
2166
|
+
emit: "({receiver}).display(gea_ir::styleDisplayValue({value}))",
|
|
2167
|
+
receiverTypes: ["gea::embedded::ui::Style"],
|
|
2168
|
+
},
|
|
2169
|
+
],
|
|
2170
|
+
enabled: [
|
|
2171
|
+
{
|
|
2172
|
+
emit: "({receiver}).setEnabled({value})",
|
|
2173
|
+
receiverTypes: ["gea::host::MediaStreamTrack", "MediaStreamTrack"],
|
|
2174
|
+
},
|
|
2175
|
+
],
|
|
2176
|
+
buffer: [
|
|
2177
|
+
{
|
|
2178
|
+
emit: "({receiver}).buffer = {value}",
|
|
2179
|
+
receiverTypes: [
|
|
2180
|
+
"gea::host::AudioBufferSourceNode",
|
|
2181
|
+
"AudioBufferSourceNode",
|
|
2182
|
+
],
|
|
2183
|
+
},
|
|
2184
|
+
],
|
|
2185
|
+
type: [
|
|
2186
|
+
{
|
|
2187
|
+
emit: "({receiver}).type = {value}",
|
|
2188
|
+
receiverTypes: ["gea::host::OscillatorNode", "OscillatorNode"],
|
|
2189
|
+
},
|
|
2190
|
+
],
|
|
2191
|
+
value: [
|
|
2192
|
+
{
|
|
2193
|
+
emit: "({receiver}).value = {value}",
|
|
2194
|
+
receiverTypes: ["gea::host::AudioParam", "AudioParam"],
|
|
2195
|
+
},
|
|
2196
|
+
],
|
|
2197
|
+
// The recorder's two callbacks. `MediaRecorder.ondataavailable` and
|
|
2198
|
+
// `.onstop` are DECLARED settable (`core/index.d.ts`: `ondataavailable:
|
|
2199
|
+
// ((event) => void) | null`) and are plain public `std::function` data
|
|
2200
|
+
// members on the engine class (`host/media.h`), so the write is the
|
|
2201
|
+
// member assignment itself. The read half was already stated above and
|
|
2202
|
+
// the write was not, which is exactly the asymmetry that made
|
|
2203
|
+
// `recorder.ondataavailable = handler` refuse by name ("claimed by no
|
|
2204
|
+
// host member table as a settable property") while `recorder.onstop`
|
|
2205
|
+
// read fine -- one member, one direction stated.
|
|
2206
|
+
ondataavailable: [
|
|
2207
|
+
{
|
|
2208
|
+
emit: "({receiver}).ondataavailable = {value}",
|
|
2209
|
+
receiverTypes: ["gea::host::MediaRecorder", "MediaRecorder"],
|
|
2210
|
+
returnType: "void",
|
|
2211
|
+
},
|
|
2212
|
+
],
|
|
2213
|
+
onstop: [
|
|
2214
|
+
{
|
|
2215
|
+
emit: "({receiver}).onstop = {value}",
|
|
2216
|
+
receiverTypes: ["gea::host::MediaRecorder", "MediaRecorder"],
|
|
2217
|
+
returnType: "void",
|
|
2218
|
+
},
|
|
2219
|
+
],
|
|
2220
|
+
},
|
|
2221
|
+
canvasContextMethods: {
|
|
2222
|
+
clear: "gea_ir::canvasClear($receiver /*$args*/)",
|
|
2223
|
+
clearRect: "gea_ir::canvasClearRect($receiver, $args)",
|
|
2224
|
+
fillRect: "gea_ir::canvasFillRect($receiver, $args)",
|
|
2225
|
+
strokeRect: "gea_ir::canvasStrokeRect($receiver, $args)",
|
|
2226
|
+
fillCircle: "gea_ir::canvasFillCircle($receiver, $args)",
|
|
2227
|
+
strokeCircle: "gea_ir::canvasStrokeCircle($receiver, $args)",
|
|
2228
|
+
fillCircleRgb565: "gea_ir::canvasFillCircleRgb565($receiver, $args)",
|
|
2229
|
+
fillTriangleRgb565: "gea_ir::canvasFillTriangleRgb565($receiver, $args)",
|
|
2230
|
+
fillCirclesRgb565: "gea_ir::canvasFillCirclesRgb565($receiver, $args)",
|
|
2231
|
+
fillCirclesRgb565Uniform: "gea_ir::canvasFillCirclesRgb565Uniform($receiver, $args)",
|
|
2232
|
+
fillTrianglesRgb565Sorted: "gea_ir::canvasFillTrianglesRgb565Sorted($receiver, $args)",
|
|
2233
|
+
beginPath: "gea_ir::canvasBeginPath($receiver /*$args*/)",
|
|
2234
|
+
arc: "gea_ir::canvasArc($receiver, $args)",
|
|
2235
|
+
moveTo: "gea_ir::canvasMoveTo($receiver, $args)",
|
|
2236
|
+
lineTo: "gea_ir::canvasLineTo($receiver, $args)",
|
|
2237
|
+
closePath: "gea_ir::canvasClosePath($receiver /*$args*/)",
|
|
2238
|
+
fill: "gea_ir::canvasFill($receiver /*$args*/)",
|
|
2239
|
+
stroke: "gea_ir::canvasStroke($receiver /*$args*/)",
|
|
2240
|
+
fillText: "gea_ir::canvasFillText($receiver, $args)",
|
|
2241
|
+
drawImage: "gea_ir::canvasDrawImage($receiver, $args)",
|
|
2242
|
+
measureText: "gea_ir::canvasMeasureText($receiver, $args)",
|
|
2243
|
+
measureTextInkCenter: "gea_ir::canvasMeasureTextInkCenter($receiver, $args)",
|
|
2244
|
+
drawImageCircle: "gea_ir::canvasDrawImageCircle($receiver, $args)",
|
|
2245
|
+
drawImageRotated90CW: "gea_ir::canvasDrawImageRotated90CW($receiver, $args)",
|
|
2246
|
+
drawImageTiledX: "gea_ir::canvasDrawImageTiledX($receiver, $args)",
|
|
2247
|
+
flush: "gea_ir::canvasFlush($receiver /*$args*/)",
|
|
2248
|
+
beginBatch: "gea_ir::canvasBeginBatch($receiver /*$args*/)",
|
|
2249
|
+
endBatch: "gea_ir::canvasEndBatch($receiver /*$args*/)",
|
|
2250
|
+
},
|
|
2251
|
+
canvasContextNoThrowMethods: [
|
|
2252
|
+
"clear",
|
|
2253
|
+
"clearRect",
|
|
2254
|
+
"fillRect",
|
|
2255
|
+
"strokeRect",
|
|
2256
|
+
"strokeCircle",
|
|
2257
|
+
"fillCircleRgb565",
|
|
2258
|
+
"fillTriangleRgb565",
|
|
2259
|
+
"fillCirclesRgb565",
|
|
2260
|
+
"fillCirclesRgb565Uniform",
|
|
2261
|
+
"fillTrianglesRgb565Sorted",
|
|
2262
|
+
"beginPath",
|
|
2263
|
+
"arc",
|
|
2264
|
+
"moveTo",
|
|
2265
|
+
"lineTo",
|
|
2266
|
+
"closePath",
|
|
2267
|
+
"fill",
|
|
2268
|
+
"stroke",
|
|
2269
|
+
"flush",
|
|
2270
|
+
"beginBatch",
|
|
2271
|
+
"endBatch",
|
|
2272
|
+
],
|
|
2273
|
+
canvasContextPropertySetters: {
|
|
2274
|
+
fillStyle: "gea_ir::canvasSetFillStyle($receiver, $value)",
|
|
2275
|
+
strokeStyle: "gea_ir::canvasSetStrokeStyle($receiver, $value)",
|
|
2276
|
+
globalAlpha: "gea_ir::canvasSetGlobalAlpha($receiver, $value)",
|
|
2277
|
+
lineWidth: "gea_ir::canvasSetLineWidth($receiver, $value)",
|
|
2278
|
+
font: "gea_ir::canvasSetFont($receiver, $value)",
|
|
2279
|
+
textBaseline: "gea_ir::canvasSetTextBaseline($receiver, $value)",
|
|
2280
|
+
textAlign: "gea_ir::canvasSetTextAlign($receiver, $value)",
|
|
2281
|
+
},
|
|
2282
|
+
frameworkProtocols: [
|
|
2283
|
+
{
|
|
2284
|
+
kind: "runtime-record-layout-v1",
|
|
2285
|
+
semanticCategory: "framework-protocol",
|
|
2286
|
+
id: "gea.runtime-record-layout",
|
|
2287
|
+
version: 1,
|
|
2288
|
+
payload: {
|
|
2289
|
+
keyedEntry: {
|
|
2290
|
+
fields: {
|
|
2291
|
+
key: "key",
|
|
2292
|
+
item: "item",
|
|
2293
|
+
element: "element",
|
|
2294
|
+
disposer: "disposer",
|
|
2295
|
+
observer: "obs",
|
|
2296
|
+
},
|
|
2297
|
+
factory: "gea_ir::keyedEntryRecord",
|
|
2298
|
+
},
|
|
2299
|
+
change: {
|
|
2300
|
+
previousValueField: "previousValue",
|
|
2301
|
+
newValueField: "newValue",
|
|
2302
|
+
factory: "gea_ir::changeRecord",
|
|
2303
|
+
},
|
|
2304
|
+
arrayItemChange: {
|
|
2305
|
+
markerField: "aipu",
|
|
2306
|
+
markerValue: true,
|
|
2307
|
+
indexField: "arix",
|
|
2308
|
+
previousValueField: "previousValue",
|
|
2309
|
+
newValueField: "newValue",
|
|
2310
|
+
itemDirtyField: "itemDirty",
|
|
2311
|
+
factory: "gea_ir::arrayItemChange",
|
|
2312
|
+
},
|
|
2313
|
+
listChange: {
|
|
2314
|
+
typeField: "type",
|
|
2315
|
+
startField: "start",
|
|
2316
|
+
countField: "count",
|
|
2317
|
+
appendType: "append",
|
|
2318
|
+
removeType: "remove",
|
|
2319
|
+
reorderType: "reorder",
|
|
2320
|
+
updateType: "update",
|
|
2321
|
+
factory: "gea_ir::listChangeRecord",
|
|
2322
|
+
},
|
|
2323
|
+
},
|
|
2324
|
+
},
|
|
2325
|
+
...HOST_NATIVE_CALLABLE_SIDECARS,
|
|
2326
|
+
],
|
|
2327
|
+
// `subscribe.ts`'s local `Observable` interface (`observe(path, handler):
|
|
2328
|
+
// () => void`) is duck-typed (`isObservable`) with no `implements` link to
|
|
2329
|
+
// any class. `Store` is its one runtime implementer in gea today — this is
|
|
2330
|
+
// NOT re-derived or verified by the compiler; it is the same kind of
|
|
2331
|
+
// framework-author knowledge `frameworkProtocols` above already
|
|
2332
|
+
// declares. Framework and compiler ship together: if gea ever grows a
|
|
2333
|
+
// second `Observable` implementer, this fact goes stale and it is this
|
|
2334
|
+
// plugin's job to update it, not the compiler's job to catch the drift.
|
|
2335
|
+
declaredClosedWorldInterfaceDispatch: [
|
|
2336
|
+
{
|
|
2337
|
+
interfaceName: "Observable",
|
|
2338
|
+
implementingClasses: [
|
|
2339
|
+
{ moduleSpecifier: "/store.ts", exportName: "Store" },
|
|
2340
|
+
],
|
|
2341
|
+
},
|
|
2342
|
+
],
|
|
2343
|
+
nullishPropertyFallbackProtocols: [
|
|
2344
|
+
{
|
|
2345
|
+
propertyName: "id",
|
|
2346
|
+
helper: "gea_cpp_default_keyed_list_key",
|
|
2347
|
+
},
|
|
2348
|
+
],
|
|
2349
|
+
classFactoryHooks: [
|
|
2350
|
+
{
|
|
2351
|
+
baseClassName: "BLEServer",
|
|
2352
|
+
returnedValueStatements: ["bleServers.push_back({value});"],
|
|
2353
|
+
defaultValueStatements: ["bleServers.push_back({out});"],
|
|
2354
|
+
},
|
|
2355
|
+
],
|
|
2356
|
+
hostExternDeclarations: geaHostExternDeclarations,
|
|
2357
|
+
embeddedHostFunctions: {
|
|
2358
|
+
requestAnimationFrame: "gea::host::requestAnimationFrame",
|
|
2359
|
+
// The WHATWG timer globals, from the same engine header and the same
|
|
2360
|
+
// translation unit as `requestAnimationFrame` above
|
|
2361
|
+
// (`core/packages/host/include/host/timers.h`, implemented in
|
|
2362
|
+
// `host/timers.cpp`) -- so a program that links the engine at all
|
|
2363
|
+
// already links these.
|
|
2364
|
+
//
|
|
2365
|
+
// They belong in THIS table for the reason `requestAnimationFrame` does:
|
|
2366
|
+
// a host global is a PATH, not a value. Left unstated, `setTimeout` is
|
|
2367
|
+
// read as an object and emitted as `extern gea::CallableObject<...>
|
|
2368
|
+
// setTimeout;` -- a symbol nothing anywhere defines, which compiles
|
|
2369
|
+
// cleanly and fails at `ld` (`examples/weather`: "undefined symbol:
|
|
2370
|
+
// setTimeout"). Naming the spelling makes the call
|
|
2371
|
+
// `gea::host::setTimeout(cb, ms)`, which is the function the engine
|
|
2372
|
+
// actually exports.
|
|
2373
|
+
setTimeout: "gea::host::setTimeout",
|
|
2374
|
+
clearTimeout: "gea::host::clearTimeout",
|
|
2375
|
+
setInterval: "gea::host::setInterval",
|
|
2376
|
+
clearInterval: "gea::host::clearInterval",
|
|
2377
|
+
// Author a native pixel directly. Lowers to the constexpr
|
|
2378
|
+
// nativeColorValue(r,g,b), so literal args fold to a native pixel constant at
|
|
2379
|
+
// build time and the result is a NativeColor marker (see the Rgb565
|
|
2380
|
+
// nativeType) -- no 0xRRGGBBAA carrier, no per-draw repack.
|
|
2381
|
+
rgb565: "gea::framework::graphics::pixel::nativeColorValue",
|
|
2382
|
+
fetch: "gea::host::fetch",
|
|
2383
|
+
fetchAsync: "gea::host::fetchAsync",
|
|
2384
|
+
fetchUploadFileAsync: "gea::host::fetchUploadFileAsync",
|
|
2385
|
+
fetchDownloadFileAsync: "gea::host::fetchDownloadFileAsync",
|
|
2386
|
+
fetchUploadProgress: "gea::host::fetchUploadProgress",
|
|
2387
|
+
fetchUploadSent: "gea::host::fetchUploadSent",
|
|
2388
|
+
fetchUploadTotal: "gea::host::fetchUploadTotal",
|
|
2389
|
+
fetchReady: "gea::host::fetchReady",
|
|
2390
|
+
fetchResult: "gea::host::fetchResult",
|
|
2391
|
+
fetchRelease: "gea::host::fetchRelease",
|
|
2392
|
+
},
|
|
2393
|
+
embeddedHostNoThrowFunctions: [
|
|
2394
|
+
"requestAnimationFrame",
|
|
2395
|
+
// Same as `requestAnimationFrame`: registering or cancelling a timer
|
|
2396
|
+
// schedules work, it does not run the callback, so none of the four has
|
|
2397
|
+
// a throwing path of its own.
|
|
2398
|
+
"setTimeout",
|
|
2399
|
+
"clearTimeout",
|
|
2400
|
+
"setInterval",
|
|
2401
|
+
"clearInterval",
|
|
2402
|
+
"fetchUploadProgress",
|
|
2403
|
+
"fetchUploadSent",
|
|
2404
|
+
"fetchUploadTotal",
|
|
2405
|
+
"fetchReady",
|
|
2406
|
+
"fetchRelease",
|
|
2407
|
+
],
|
|
2408
|
+
// `fetch(...)` yields the concrete C++ struct so the result binds as
|
|
2409
|
+
// `gea::host::FetchResponse response = gea::host::fetch(...)` (typed members +
|
|
2410
|
+
// methods), not a boxed `gea_cpp_value` record. Pairs with the `FetchResponse`
|
|
2411
|
+
// entry in `nativeTypes` for explicit `FetchResponse` annotations.
|
|
2412
|
+
embeddedHostFunctionReturnTypes: {
|
|
2413
|
+
// Native-pixel marker. Registered so an inferred `const COLORS =
|
|
2414
|
+
// [rgb565(...), ...]` (no annotation) still lowers to a
|
|
2415
|
+
// `std::vector<NativeColor>`, and the value flows native through the canvas
|
|
2416
|
+
// APIs while staying distinct from authored uint32 colour arrays.
|
|
2417
|
+
rgb565: "gea::framework::graphics::pixel::NativeColor",
|
|
2418
|
+
fetch: "gea::host::FetchResponse",
|
|
2419
|
+
fetchAsync: "double",
|
|
2420
|
+
fetchUploadFileAsync: "double",
|
|
2421
|
+
fetchDownloadFileAsync: "double",
|
|
2422
|
+
fetchUploadProgress: "double",
|
|
2423
|
+
fetchUploadSent: "double",
|
|
2424
|
+
fetchUploadTotal: "double",
|
|
2425
|
+
fetchReady: "bool",
|
|
2426
|
+
fetchResult: "gea::host::FetchResponse",
|
|
2427
|
+
fetchRelease: "void",
|
|
2428
|
+
},
|
|
2429
|
+
// `image.make(id)` yields the native `GeaEmbeddedImage` handle. The return type
|
|
2430
|
+
// is registered here (not just an emit string) so `loadImage()`'s inferred
|
|
2431
|
+
// return — and therefore `await loadImage(...)` and any `GeaEmbeddedImage[]`
|
|
2432
|
+
// cache — stays the concrete struct, even though the bundle erased the
|
|
2433
|
+
// declared `make(id): GeaEmbeddedImage` type.
|
|
2434
|
+
nativeNamespaceMethods: {
|
|
2435
|
+
"navigator.mediaDevices": {
|
|
2436
|
+
getUserMedia: {
|
|
2437
|
+
emit: "gea::host::MediaStream(gea::host::media::get_user_media_audio({args}))",
|
|
2438
|
+
returnType: "gea::host::MediaStream",
|
|
2439
|
+
},
|
|
2440
|
+
},
|
|
2441
|
+
Geolocation: {
|
|
2442
|
+
currentPosition: {
|
|
2443
|
+
emit: "gea::host::navigator.geolocation.currentPosition({args})",
|
|
2444
|
+
returnType: "gea::host::GeolocationPosition",
|
|
2445
|
+
noThrow: true,
|
|
2446
|
+
},
|
|
2447
|
+
coords: {
|
|
2448
|
+
emit: "gea::host::navigator.geolocation.coords({args})",
|
|
2449
|
+
returnType: "gea::host::GeolocationCoordinates",
|
|
2450
|
+
noThrow: true,
|
|
2451
|
+
},
|
|
2452
|
+
},
|
|
2453
|
+
geolocation: {
|
|
2454
|
+
currentPosition: {
|
|
2455
|
+
emit: "gea::host::navigator.geolocation.currentPosition({args})",
|
|
2456
|
+
returnType: "gea::host::GeolocationPosition",
|
|
2457
|
+
noThrow: true,
|
|
2458
|
+
},
|
|
2459
|
+
coords: {
|
|
2460
|
+
emit: "gea::host::navigator.geolocation.coords({args})",
|
|
2461
|
+
returnType: "gea::host::GeolocationCoordinates",
|
|
2462
|
+
noThrow: true,
|
|
2463
|
+
},
|
|
2464
|
+
},
|
|
2465
|
+
Battery: {
|
|
2466
|
+
level: {
|
|
2467
|
+
emit: "gea::host::Battery.level({args})",
|
|
2468
|
+
returnType: "double",
|
|
2469
|
+
noThrow: true,
|
|
2470
|
+
},
|
|
2471
|
+
},
|
|
2472
|
+
__gea_Battery: {
|
|
2473
|
+
level: {
|
|
2474
|
+
emit: "gea::host::Battery.level({args})",
|
|
2475
|
+
returnType: "double",
|
|
2476
|
+
noThrow: true,
|
|
2477
|
+
},
|
|
2478
|
+
},
|
|
2479
|
+
Profiler: {
|
|
2480
|
+
nowUs: {
|
|
2481
|
+
emit: "gea::host::Profiler.nowUs({args})",
|
|
2482
|
+
returnType: "double",
|
|
2483
|
+
noThrow: true,
|
|
2484
|
+
},
|
|
2485
|
+
},
|
|
2486
|
+
__gea_Profiler: {
|
|
2487
|
+
nowUs: {
|
|
2488
|
+
emit: "gea::host::Profiler.nowUs({args})",
|
|
2489
|
+
returnType: "double",
|
|
2490
|
+
noThrow: true,
|
|
2491
|
+
},
|
|
2492
|
+
},
|
|
2493
|
+
__gea_audioContext: {
|
|
2494
|
+
createOscillator: {
|
|
2495
|
+
emit: "gea::host::audioContext.createOscillator({args})",
|
|
2496
|
+
returnType: "gea::host::OscillatorNode",
|
|
2497
|
+
},
|
|
2498
|
+
createBufferSource: {
|
|
2499
|
+
emit: "gea::host::audioContext.createBufferSource({args})",
|
|
2500
|
+
returnType: "gea::host::AudioBufferSourceNode",
|
|
2501
|
+
},
|
|
2502
|
+
decodeAudioData: {
|
|
2503
|
+
emit: "gea::host::audioContext.decodeAudioData({args})",
|
|
2504
|
+
returnType: "gea::host::AudioBuffer",
|
|
2505
|
+
},
|
|
2506
|
+
},
|
|
2507
|
+
audioContext: {
|
|
2508
|
+
createOscillator: {
|
|
2509
|
+
emit: "gea::host::audioContext.createOscillator({args})",
|
|
2510
|
+
returnType: "gea::host::OscillatorNode",
|
|
2511
|
+
},
|
|
2512
|
+
createBufferSource: {
|
|
2513
|
+
emit: "gea::host::audioContext.createBufferSource({args})",
|
|
2514
|
+
returnType: "gea::host::AudioBufferSourceNode",
|
|
2515
|
+
},
|
|
2516
|
+
decodeAudioData: {
|
|
2517
|
+
emit: "gea::host::audioContext.decodeAudioData({args})",
|
|
2518
|
+
returnType: "gea::host::AudioBuffer",
|
|
2519
|
+
},
|
|
2520
|
+
},
|
|
2521
|
+
image: {
|
|
2522
|
+
make: {
|
|
2523
|
+
emit: "gea::host::image.make({args})",
|
|
2524
|
+
returnType: "gea::host::GeaEmbeddedImage",
|
|
2525
|
+
},
|
|
2526
|
+
// `image.readFile(path)` returns the raw file bytes; register the return
|
|
2527
|
+
// type so the binding stores as std::vector<std::uint8_t> (not a boxed
|
|
2528
|
+
// per-byte gea_cpp_value record) — same reasoning as FetchResponse.bytes().
|
|
2529
|
+
readFile: {
|
|
2530
|
+
emit: "gea::host::image.readFile({args})",
|
|
2531
|
+
returnType: "std::vector<std::uint8_t>",
|
|
2532
|
+
},
|
|
2533
|
+
readMapArchive: {
|
|
2534
|
+
emit: "gea::host::image.readMapArchive({args})",
|
|
2535
|
+
returnType: "std::vector<std::uint8_t>",
|
|
2536
|
+
},
|
|
2537
|
+
readFileRange: {
|
|
2538
|
+
emit: "gea::host::image.readFileRange({args})",
|
|
2539
|
+
returnType: "std::vector<std::uint8_t>",
|
|
2540
|
+
},
|
|
2541
|
+
// `image.listFiles(dir)` returns the newline-joined regular-file names of
|
|
2542
|
+
// a directory (e.g. the EPUBs on a microSD).
|
|
2543
|
+
listFiles: {
|
|
2544
|
+
emit: "gea::host::image.listFiles({args})",
|
|
2545
|
+
returnType: "std::string",
|
|
2546
|
+
},
|
|
2547
|
+
fetchBytes: {
|
|
2548
|
+
emit: "gea::host::image.fetchBytes({args})",
|
|
2549
|
+
returnType: "std::vector<std::uint8_t>",
|
|
2550
|
+
},
|
|
2551
|
+
fetchText: {
|
|
2552
|
+
emit: "gea::host::image.fetchText({args})",
|
|
2553
|
+
returnType: "std::string",
|
|
2554
|
+
},
|
|
2555
|
+
},
|
|
2556
|
+
// `touch.read()` returns the native {touching,x,y} sample as a concrete
|
|
2557
|
+
// struct (not a boxed gea_cpp_value record) so device-touch polling reads
|
|
2558
|
+
// the real fields — on-screen buttons depend on it.
|
|
2559
|
+
touch: {
|
|
2560
|
+
read: {
|
|
2561
|
+
emit: "gea::host::touch.read({args})",
|
|
2562
|
+
returnType: "gea::host::TouchSample",
|
|
2563
|
+
},
|
|
2564
|
+
},
|
|
2565
|
+
// `http.createServer(handler)` yields the native HttpServer handle. The
|
|
2566
|
+
// handler arg is a boxed callable (dynamic boundary, like a WebSocket
|
|
2567
|
+
// callback); registering the return type keeps `const server = ...` a
|
|
2568
|
+
// concrete `gea::host::HttpServer` instead of a gea_cpp_value record.
|
|
2569
|
+
http: {
|
|
2570
|
+
// create_server returns the numeric handle; wrap it in the HttpServer
|
|
2571
|
+
// handle type (its ctors are explicit) so the binding stores native.
|
|
2572
|
+
createServer: {
|
|
2573
|
+
emit: "gea::host::HttpServer(gea::host::http::create_server({args}))",
|
|
2574
|
+
returnType: "gea::host::HttpServer",
|
|
2575
|
+
},
|
|
2576
|
+
close: {
|
|
2577
|
+
emit: "gea::host::http::close_server({args})",
|
|
2578
|
+
returnType: "void",
|
|
2579
|
+
},
|
|
2580
|
+
},
|
|
2581
|
+
},
|
|
2582
|
+
// Typed returns for methods on native struct receivers. The bundle erases the
|
|
2583
|
+
// TS signatures, so without these the storage type of `res.arrayBuffer()` is
|
|
2584
|
+
// unknown → `await` wraps it in gea_cpp_await_value and the binding stores as
|
|
2585
|
+
// gea_cpp_value — boxing the raw body bytes PER BYTE (a 25 KB tile becomes a
|
|
2586
|
+
// ~7 MB temporary; OOM-aborts on device). With the return type registered the
|
|
2587
|
+
// await elides and the bytes flow as std::vector<std::uint8_t> end to end.
|
|
2588
|
+
// returnType-only bindings (no `emit`) keep the normal direct method-call
|
|
2589
|
+
// emit; receiverTypes bound the match to FetchResponse.
|
|
2590
|
+
nativeMemberMethods: {
|
|
2591
|
+
// `Event.preventDefault()` / `.stopPropagation()` (index.d.ts:269-270),
|
|
2592
|
+
// which every event interface inherits. Both are real methods on the
|
|
2593
|
+
// engine's own event struct -- `PointerEvent::preventDefault` /
|
|
2594
|
+
// `::stopPropagation`, declared in `packages/core/include/events.h:86-87`
|
|
2595
|
+
// and used by the engine itself (`ui/virtual_keyboard.cpp:733`) -- so the
|
|
2596
|
+
// spelling is the method call, with no bridge and nothing boxed.
|
|
2597
|
+
//
|
|
2598
|
+
// The declaration was always there; the STATEMENT was not, so emission
|
|
2599
|
+
// refused `PointerEvent.preventDefault` by name ("claimed by no host
|
|
2600
|
+
// member table"). That is the fail-closed guard reporting this table as
|
|
2601
|
+
// the missing thing, exactly as it did for `TouchEvent.clientX` before
|
|
2602
|
+
// the getters below it were written.
|
|
2603
|
+
preventDefault: [
|
|
2604
|
+
{
|
|
2605
|
+
receiverTypes: EVENT_RECEIVER_TYPES,
|
|
2606
|
+
emit: "({receiver}).preventDefault()",
|
|
2607
|
+
returnType: "void",
|
|
2608
|
+
},
|
|
2609
|
+
],
|
|
2610
|
+
stopPropagation: [
|
|
2611
|
+
{
|
|
2612
|
+
receiverTypes: EVENT_RECEIVER_TYPES,
|
|
2613
|
+
emit: "({receiver}).stopPropagation()",
|
|
2614
|
+
returnType: "void",
|
|
2615
|
+
},
|
|
2616
|
+
],
|
|
2617
|
+
add: [
|
|
2618
|
+
{
|
|
2619
|
+
receiverTypes: ["gea::embedded::ui::ClassList"],
|
|
2620
|
+
emit: "gea::runtime::host::domClassListAdd({receiver}, {arg0})",
|
|
2621
|
+
returnType: "void",
|
|
2622
|
+
},
|
|
2623
|
+
],
|
|
2624
|
+
contains: [
|
|
2625
|
+
{
|
|
2626
|
+
receiverTypes: ["gea::embedded::ui::ClassList"],
|
|
2627
|
+
emit: "gea::runtime::host::domClassListContains({receiver}, {arg0})",
|
|
2628
|
+
returnType: "bool",
|
|
2629
|
+
},
|
|
2630
|
+
],
|
|
2631
|
+
toggle: [
|
|
2632
|
+
{
|
|
2633
|
+
receiverTypes: ["gea::embedded::ui::ClassList"],
|
|
2634
|
+
emit: "gea::runtime::host::domClassListToggle({receiver}, {arg0})",
|
|
2635
|
+
returnType: "bool",
|
|
2636
|
+
},
|
|
2637
|
+
{
|
|
2638
|
+
receiverTypes: ["gea::embedded::ui::ClassList"],
|
|
2639
|
+
emit: "gea::runtime::host::domClassListToggleForce({receiver}, {arg0}, {arg1})",
|
|
2640
|
+
returnType: "bool",
|
|
2641
|
+
},
|
|
2642
|
+
],
|
|
2643
|
+
// Document values are allowed to flow through aliases (`rt`,
|
|
2644
|
+
// `ownerDocument`, conditional selection). This is therefore a typed
|
|
2645
|
+
// host-runtime member operation, not a special case for the ambient
|
|
2646
|
+
// `document` identifier. The receiver carrier and operation role are
|
|
2647
|
+
// authenticated by host-runtime-v1 before this physical symbol is used.
|
|
2648
|
+
addEventListener: [
|
|
2649
|
+
{
|
|
2650
|
+
receiverTypes: ["gea::embedded::ui::Document"],
|
|
2651
|
+
emit: "gea::runtime::host::geaDocumentAddEventListener({receiver}, {arg0}, {arg1})",
|
|
2652
|
+
returnType: "gea_cpp_value",
|
|
2653
|
+
dynamicRecordSchemas: [
|
|
2654
|
+
{
|
|
2655
|
+
protocolId: "gea.pointer-event-record-v1",
|
|
2656
|
+
fields: [{ key: "target", value: "checker-carrier" }],
|
|
2657
|
+
},
|
|
2658
|
+
],
|
|
2659
|
+
argumentRoles: [
|
|
2660
|
+
"dynamic-value",
|
|
2661
|
+
{
|
|
2662
|
+
kind: "callback",
|
|
2663
|
+
parameters: [
|
|
2664
|
+
{
|
|
2665
|
+
kind: "dynamic-record",
|
|
2666
|
+
protocolId: "gea.pointer-event-record-v1",
|
|
2667
|
+
},
|
|
2668
|
+
],
|
|
2669
|
+
result: "void",
|
|
2670
|
+
lifetime: "retained",
|
|
2671
|
+
},
|
|
2672
|
+
],
|
|
2673
|
+
},
|
|
2674
|
+
// The same member on a NODE, which is a different receiver carrier and
|
|
2675
|
+
// therefore a different physical symbol -- `el.addEventListener('touchstart',
|
|
2676
|
+
// handler)` written imperatively on a `Component<GeaCanvasElement>`'s `this.el`,
|
|
2677
|
+
// the mirror of the `onClick={...}` a template states declaratively.
|
|
2678
|
+
//
|
|
2679
|
+
// Registration is the engine's own `NodeHandle::addEventListener`
|
|
2680
|
+
// (`packages/engine/ui/node.h`), reached through the compiler runtime's
|
|
2681
|
+
// adapter rather than named directly, because two facts about a node
|
|
2682
|
+
// listener are not in the call the program wrote:
|
|
2683
|
+
//
|
|
2684
|
+
// - the engine dispatches a pointer event to the node the hit test
|
|
2685
|
+
// named and does NOT walk ancestors, so a listener that must fire for
|
|
2686
|
+
// a descendant hit is registered on `body()` behind a
|
|
2687
|
+
// `Tree::containsNode` guard, with `currentTarget`/`eventPhase` set
|
|
2688
|
+
// for the handler's duration -- exactly what `cpp-mounted-lowering.ts`
|
|
2689
|
+
// emits for a mounted element listener (its `mount_*` output puts
|
|
2690
|
+
// every click listener on the body, none on a node);
|
|
2691
|
+
// - `addEventListener` takes `const char *` and a
|
|
2692
|
+
// `gea::framework::events::EventListener`, and the handler the
|
|
2693
|
+
// program passes is a compiler-side callable carrier.
|
|
2694
|
+
//
|
|
2695
|
+
// Both are properties of the compiler's own carriers, so the adapter is
|
|
2696
|
+
// where they belong; this table states WHICH adapter, which is the
|
|
2697
|
+
// question a shim table exists to answer. `void`, not the boxed
|
|
2698
|
+
// `gea_cpp_value` the `Document` row above returns: nothing about a node
|
|
2699
|
+
// listener registration is dynamic, and the declaration says `void`.
|
|
2700
|
+
{
|
|
2701
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
2702
|
+
emit: "gea::jsx::detail::addNodeListener({receiver}, {arg0}, {arg1})",
|
|
2703
|
+
returnType: "void",
|
|
2704
|
+
},
|
|
2705
|
+
],
|
|
2706
|
+
appendChild: [
|
|
2707
|
+
{
|
|
2708
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
2709
|
+
emit: "gea_ir::domAppendChild({receiver}, {arg0})",
|
|
2710
|
+
},
|
|
2711
|
+
],
|
|
2712
|
+
// `Node.insertBefore(newNode, referenceNode)` — argument order maps
|
|
2713
|
+
// straight onto `domInsertBefore(parent, child, reference)`
|
|
2714
|
+
// (`compiler/packages/geatsc/src/targets/cpp/runtime/host_document_gea.cpp`,
|
|
2715
|
+
// namespace `gea::runtime::host`, fully typed `NodeHandle` params, `void`
|
|
2716
|
+
// result — a perfect fit for a receiver-carrying flat symbol call). This
|
|
2717
|
+
// is geatsc's OWN runtime, not a `gea_ir`-generated overload: there is no
|
|
2718
|
+
// `gea_ir::domInsertBefore` (the doc comment at `cpp-ir.ts:1826-1827`
|
|
2719
|
+
// documents only `domNextSibling`'s role in feeding `container.
|
|
2720
|
+
// insertBefore(ref, ...)`'s reference argument, not a codegen'd
|
|
2721
|
+
// `insertBefore` binding itself), so this entry is qualified with the
|
|
2722
|
+
// runtime's real namespace instead of the plugin-generated one.
|
|
2723
|
+
insertBefore: [
|
|
2724
|
+
{
|
|
2725
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
2726
|
+
emit: "gea::runtime::host::domInsertBefore({receiver}, {arg0}, {arg1})",
|
|
2727
|
+
returnType: "void",
|
|
2728
|
+
},
|
|
2729
|
+
],
|
|
2730
|
+
// `parent.removeChild(child)`. The engine models removal on the CHILD
|
|
2731
|
+
// (`NodeHandle::remove()`), so the runtime helper validates the parent and
|
|
2732
|
+
// detaches the child; void, matching appendChild/insertBefore above.
|
|
2733
|
+
removeChild: [
|
|
2734
|
+
{
|
|
2735
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
2736
|
+
emit: "gea::runtime::host::domRemoveChild({receiver}, {arg0})",
|
|
2737
|
+
returnType: "void",
|
|
2738
|
+
},
|
|
2739
|
+
],
|
|
2740
|
+
// `parent.replaceChild(replacement, child)`. Keep both operands on the
|
|
2741
|
+
// exact NodeHandle ABI and discard the DOM return because this configured
|
|
2742
|
+
// role is consumed only for its tree mutation. The runtime helper
|
|
2743
|
+
// rechecks that `child` belongs to `parent` before replacement.
|
|
2744
|
+
replaceChild: [
|
|
2745
|
+
{
|
|
2746
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
2747
|
+
emit: "gea::runtime::host::domReplaceChild({receiver}, {arg0}, {arg1})",
|
|
2748
|
+
returnType: "void",
|
|
2749
|
+
},
|
|
2750
|
+
],
|
|
2751
|
+
// The DOM patch runtime calls `Element.removeAttribute(name)` through
|
|
2752
|
+
// arbitrary NodeHandle aliases. Model it as one authenticated DOM
|
|
2753
|
+
// protocol operation, rather than teaching the compiler about the
|
|
2754
|
+
// source method name or the statement that happens to invoke it.
|
|
2755
|
+
removeAttribute: [
|
|
2756
|
+
{
|
|
2757
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
2758
|
+
emit: "gea::runtime::host::domRemoveAttribute({receiver}, {arg0})",
|
|
2759
|
+
returnType: "void",
|
|
2760
|
+
},
|
|
2761
|
+
],
|
|
2762
|
+
hasAttribute: [
|
|
2763
|
+
{
|
|
2764
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
2765
|
+
emit: "gea::runtime::host::domHasAttribute({receiver}, {arg0})",
|
|
2766
|
+
returnType: "bool",
|
|
2767
|
+
},
|
|
2768
|
+
],
|
|
2769
|
+
remove: [
|
|
2770
|
+
{
|
|
2771
|
+
receiverTypes: ["gea::embedded::ui::ClassList"],
|
|
2772
|
+
emit: "gea::runtime::host::domClassListRemove({receiver}, {arg0})",
|
|
2773
|
+
returnType: "void",
|
|
2774
|
+
},
|
|
2775
|
+
],
|
|
2776
|
+
setAttribute: [
|
|
2777
|
+
{
|
|
2778
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
2779
|
+
emit: "gea::runtime::host::domSetAttribute({receiver}, {arg0}, {arg1})",
|
|
2780
|
+
returnType: "void",
|
|
2781
|
+
},
|
|
2782
|
+
],
|
|
2783
|
+
toggleAttribute: [
|
|
2784
|
+
{
|
|
2785
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
2786
|
+
emit: "gea::runtime::host::domToggleAttribute({receiver}, {arg0}, {arg1})",
|
|
2787
|
+
returnType: "void",
|
|
2788
|
+
},
|
|
2789
|
+
],
|
|
2790
|
+
scrollIntoView: [
|
|
2791
|
+
{
|
|
2792
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
2793
|
+
emit: "({receiver}).scrollIntoView()",
|
|
2794
|
+
returnType: "void",
|
|
2795
|
+
},
|
|
2796
|
+
],
|
|
2797
|
+
// The read half of the attribute pair, whose write half
|
|
2798
|
+
// (`setAttribute`/`removeAttribute`) has been stated here all along.
|
|
2799
|
+
// `NodeHandle::getAttribute` returns `const char *` and NEVER null -- an
|
|
2800
|
+
// absent attribute, an out-of-range node and a null name all answer `""`
|
|
2801
|
+
// (engine/ui/tree_events.cpp, `NodeAttributeStore::get` and
|
|
2802
|
+
// `Tree::getAttribute`) -- so wrapping it in `std::string` is total, not
|
|
2803
|
+
// a guess, and the declared TypeScript return is an ordinary `string`.
|
|
2804
|
+
getAttribute: [
|
|
2805
|
+
{
|
|
2806
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
2807
|
+
emit: "std::string(({receiver}).getAttribute({arg0}))",
|
|
2808
|
+
returnType: "std::string",
|
|
2809
|
+
},
|
|
2810
|
+
],
|
|
2811
|
+
// Text-input focus. `NodeHandle::focus()`/`blur()` (engine/ui/node.cpp)
|
|
2812
|
+
// set and clear `Tree`'s active input, which is what raises the virtual
|
|
2813
|
+
// keyboard and starts the caret blink. Without these rows the only way to
|
|
2814
|
+
// reach that state from an app was an untyped receiver, which is a boxed
|
|
2815
|
+
// dispatch for a call the engine has a direct method for.
|
|
2816
|
+
focus: [
|
|
2817
|
+
{
|
|
2818
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
2819
|
+
emit: "({receiver}).focus()",
|
|
2820
|
+
returnType: "void",
|
|
2821
|
+
},
|
|
2822
|
+
],
|
|
2823
|
+
blur: [
|
|
2824
|
+
{
|
|
2825
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
2826
|
+
emit: "({receiver}).blur()",
|
|
2827
|
+
returnType: "void",
|
|
2828
|
+
},
|
|
2829
|
+
],
|
|
2830
|
+
bytes: [
|
|
2831
|
+
{
|
|
2832
|
+
receiverTypes: ["gea::host::FetchResponse"],
|
|
2833
|
+
returnType: "std::vector<std::uint8_t>",
|
|
2834
|
+
},
|
|
2835
|
+
],
|
|
2836
|
+
listen: [
|
|
2837
|
+
{
|
|
2838
|
+
receiverTypes: ["gea::host::HttpServer"],
|
|
2839
|
+
emit: "({receiver}).listen({args})",
|
|
2840
|
+
returnType: "bool",
|
|
2841
|
+
},
|
|
2842
|
+
],
|
|
2843
|
+
close: [
|
|
2844
|
+
{
|
|
2845
|
+
receiverTypes: ["gea::host::HttpServer"],
|
|
2846
|
+
emit: "({receiver}).close({args})",
|
|
2847
|
+
returnType: "void",
|
|
2848
|
+
},
|
|
2849
|
+
// `ws.close()` / `ws.close(code)` / `ws.close(code, reason)`
|
|
2850
|
+
// (index.d.ts `WebSocketInstance.close(code?, reason?)`) against the
|
|
2851
|
+
// THREE C++ overloads `packages/host/include/host/websocket.h`
|
|
2852
|
+
// declares -- `close()`, `close(double)`, `close(double,
|
|
2853
|
+
// const std::string&)`. No fixed arity describes that, and no
|
|
2854
|
+
// per-overload row could pick between them: `{args}` passes however
|
|
2855
|
+
// many the call wrote and C++'s own overload resolution decides at the
|
|
2856
|
+
// call, exactly as `ctx.fillRect`/`ctx.drawImage` already do.
|
|
2857
|
+
//
|
|
2858
|
+
// The declaration and the class both existed; the STATEMENT did not,
|
|
2859
|
+
// so emission refused `WebSocketInstance.close` by name and
|
|
2860
|
+
// `examples/dialer` -- whose `hangup()` is nothing but this call and
|
|
2861
|
+
// the peer's -- emitted no C++ at all.
|
|
2862
|
+
{
|
|
2863
|
+
receiverTypes: WEB_SOCKET_RECEIVER_TYPES,
|
|
2864
|
+
emit: "({receiver}).close({args})",
|
|
2865
|
+
returnType: "void",
|
|
2866
|
+
},
|
|
2867
|
+
// `pc.close()` -- `void close() const` on the engine class
|
|
2868
|
+
// (`packages/host/include/host/rtc.h`). One overload, no arguments,
|
|
2869
|
+
// and the TS declaration takes none either.
|
|
2870
|
+
{
|
|
2871
|
+
receiverTypes: RTC_PEER_CONNECTION_RECEIVER_TYPES,
|
|
2872
|
+
emit: "({receiver}).close()",
|
|
2873
|
+
returnType: "void",
|
|
2874
|
+
},
|
|
2875
|
+
],
|
|
2876
|
+
// `ws.send(data)` -- `void send(const std::string &) const`
|
|
2877
|
+
// (`host/websocket.h`). The TS declaration is `send(data: string): void`,
|
|
2878
|
+
// so both sides agree on one string parameter and the spelling is the
|
|
2879
|
+
// method call itself.
|
|
2880
|
+
send: [
|
|
2881
|
+
{
|
|
2882
|
+
receiverTypes: WEB_SOCKET_RECEIVER_TYPES,
|
|
2883
|
+
emit: "({receiver}).send({arg0})",
|
|
2884
|
+
returnType: "void",
|
|
2885
|
+
},
|
|
2886
|
+
],
|
|
2887
|
+
// `pc.addTrack(track, stream)` -- `void addTrack(MediaStreamTrack,
|
|
2888
|
+
// MediaStream) const` (`host/rtc.h`). The declared parameters are the
|
|
2889
|
+
// two host carriers `nativeTypes` already maps (`gea::host::
|
|
2890
|
+
// MediaStreamTrack`, `gea::host::MediaStream`), so the arguments cross
|
|
2891
|
+
// as themselves and nothing is boxed or converted.
|
|
2892
|
+
addTrack: [
|
|
2893
|
+
{
|
|
2894
|
+
receiverTypes: RTC_PEER_CONNECTION_RECEIVER_TYPES,
|
|
2895
|
+
emit: "({receiver}).addTrack({arg0}, {arg1})",
|
|
2896
|
+
returnType: "void",
|
|
2897
|
+
},
|
|
2898
|
+
],
|
|
2899
|
+
// The four members where the DECLARED WebRTC API and the engine's own
|
|
2900
|
+
// signature genuinely disagree, routed through the typed adapters in the
|
|
2901
|
+
// compiler's runtime (`gea::runtime::hostrtc`, `gea_runtime.h`).
|
|
2902
|
+
//
|
|
2903
|
+
// The app is written against the standard WebRTC API -- an
|
|
2904
|
+
// `RTCSessionDescriptionInit` record in and out, a `Promise` around each
|
|
2905
|
+
// call -- and `host/rtc.h` implements a FLATTENED variant of the same
|
|
2906
|
+
// operations: `std::string createOffer()` (the SDP alone; the type is
|
|
2907
|
+
// implied by which method was called), `setLocalDescription(sdp_type,
|
|
2908
|
+
// sdp)`, `setRemoteDescription(sdp_type, sdp)`, `addIceCandidate(
|
|
2909
|
+
// candidate, sdp_mid, sdp_mline_index)`. Neither side is wrong: the host
|
|
2910
|
+
// deliberately keeps its boundary to strings and doubles, and the
|
|
2911
|
+
// program deliberately speaks the standard shape. What was missing is
|
|
2912
|
+
// the STATEMENT of the correspondence between them.
|
|
2913
|
+
//
|
|
2914
|
+
// This is the same joint -- and the same cure -- as the seven `on*`
|
|
2915
|
+
// handlers in `nativeMemberPropertySetters` above: the host ships flat
|
|
2916
|
+
// callback arguments (`on_ice_candidate(candidate, sdpMid, idx)`) and
|
|
2917
|
+
// the declaration names a record, so `gea::runtime::hostevent` builds
|
|
2918
|
+
// the record field by field. These are that adapter's argument-side
|
|
2919
|
+
// twins, and they live in the compiler's runtime for the identical
|
|
2920
|
+
// reason: they name the PROGRAM's own generated record type, which
|
|
2921
|
+
// neither the host package (which must not depend on runtime types) nor
|
|
2922
|
+
// a fixed `returnType` string here can spell.
|
|
2923
|
+
createOffer: [
|
|
2924
|
+
{
|
|
2925
|
+
receiverTypes: RTC_PEER_CONNECTION_RECEIVER_TYPES,
|
|
2926
|
+
emit: "gea::runtime::hostrtc::createOffer({receiver})",
|
|
2927
|
+
returnType: "gea::runtime::hostrtc::SessionDescription",
|
|
2928
|
+
},
|
|
2929
|
+
],
|
|
2930
|
+
createAnswer: [
|
|
2931
|
+
{
|
|
2932
|
+
receiverTypes: RTC_PEER_CONNECTION_RECEIVER_TYPES,
|
|
2933
|
+
emit: "gea::runtime::hostrtc::createAnswer({receiver})",
|
|
2934
|
+
returnType: "gea::runtime::hostrtc::SessionDescription",
|
|
2935
|
+
},
|
|
2936
|
+
],
|
|
2937
|
+
setLocalDescription: [
|
|
2938
|
+
{
|
|
2939
|
+
receiverTypes: RTC_PEER_CONNECTION_RECEIVER_TYPES,
|
|
2940
|
+
emit: "gea::runtime::hostrtc::setLocalDescription({receiver}, {arg0})",
|
|
2941
|
+
returnType: "gea::Promise<void>",
|
|
2942
|
+
},
|
|
2943
|
+
],
|
|
2944
|
+
setRemoteDescription: [
|
|
2945
|
+
{
|
|
2946
|
+
receiverTypes: RTC_PEER_CONNECTION_RECEIVER_TYPES,
|
|
2947
|
+
emit: "gea::runtime::hostrtc::setRemoteDescription({receiver}, {arg0})",
|
|
2948
|
+
returnType: "gea::Promise<void>",
|
|
2949
|
+
},
|
|
2950
|
+
],
|
|
2951
|
+
addIceCandidate: [
|
|
2952
|
+
{
|
|
2953
|
+
receiverTypes: RTC_PEER_CONNECTION_RECEIVER_TYPES,
|
|
2954
|
+
emit: "gea::runtime::hostrtc::addIceCandidate({receiver}, {arg0})",
|
|
2955
|
+
returnType: "gea::Promise<void>",
|
|
2956
|
+
},
|
|
2957
|
+
],
|
|
2958
|
+
id: [
|
|
2959
|
+
{
|
|
2960
|
+
receiverTypes: ["gea::host::HttpServer"],
|
|
2961
|
+
emit: "({receiver}).id({args})",
|
|
2962
|
+
returnType: "double",
|
|
2963
|
+
},
|
|
2964
|
+
],
|
|
2965
|
+
getAudioTracks: [
|
|
2966
|
+
{
|
|
2967
|
+
receiverTypes: ["gea::host::MediaStream", "MediaStream"],
|
|
2968
|
+
returnType: "std::vector<gea::host::MediaStreamTrack>",
|
|
2969
|
+
},
|
|
2970
|
+
],
|
|
2971
|
+
getTracks: [
|
|
2972
|
+
{
|
|
2973
|
+
receiverTypes: ["gea::host::MediaStream", "MediaStream"],
|
|
2974
|
+
returnType: "std::vector<gea::host::MediaStreamTrack>",
|
|
2975
|
+
},
|
|
2976
|
+
],
|
|
2977
|
+
play: [
|
|
2978
|
+
{
|
|
2979
|
+
// A receiver actually typed `HTMLAudioElement` already IS the real
|
|
2980
|
+
// `gea::host::HTMLAudioElement` object (an unboxed compiler holds it
|
|
2981
|
+
// by value/handle, never behind a raw NodeHandle id), so this row
|
|
2982
|
+
// calls straight on `{receiver}` -- the same direct-call convention
|
|
2983
|
+
// `AudioContext.createOscillator` etc. use lower in this same file.
|
|
2984
|
+
// This is distinct from the NODE_HANDLE_RECEIVER_TYPES row below,
|
|
2985
|
+
// which reconstructs the wrapper from a generic DOM node id and is
|
|
2986
|
+
// untouched.
|
|
2987
|
+
receiverTypes: ["gea::host::HTMLAudioElement", "HTMLAudioElement"],
|
|
2988
|
+
emit: "({receiver}).play()",
|
|
2989
|
+
returnType: "bool",
|
|
2990
|
+
},
|
|
2991
|
+
{
|
|
2992
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
2993
|
+
emit: "gea::host::HTMLAudioElement({receiver}).play()",
|
|
2994
|
+
returnType: "bool",
|
|
2995
|
+
},
|
|
2996
|
+
{
|
|
2997
|
+
receiverTypes: IMAGE_RECEIVER_TYPES,
|
|
2998
|
+
emit: "({receiver}).play()",
|
|
2999
|
+
returnType: "void",
|
|
3000
|
+
},
|
|
3001
|
+
],
|
|
3002
|
+
pause: [
|
|
3003
|
+
{
|
|
3004
|
+
// See `play` above: a statically HTMLAudioElement-typed receiver
|
|
3005
|
+
// calls directly, no reconstruction from a node id.
|
|
3006
|
+
receiverTypes: ["gea::host::HTMLAudioElement", "HTMLAudioElement"],
|
|
3007
|
+
emit: "({receiver}).pause()",
|
|
3008
|
+
returnType: "void",
|
|
3009
|
+
},
|
|
3010
|
+
{
|
|
3011
|
+
receiverTypes: NODE_HANDLE_RECEIVER_TYPES,
|
|
3012
|
+
emit: "gea::host::HTMLAudioElement({receiver}).pause()",
|
|
3013
|
+
returnType: "void",
|
|
3014
|
+
},
|
|
3015
|
+
{
|
|
3016
|
+
receiverTypes: IMAGE_RECEIVER_TYPES,
|
|
3017
|
+
emit: "({receiver}).pause()",
|
|
3018
|
+
returnType: "void",
|
|
3019
|
+
},
|
|
3020
|
+
],
|
|
3021
|
+
// `GeaEmbeddedImage`'s own four methods. The struct
|
|
3022
|
+
// (`core/packages/host/include/host/image.h:19-29`) is held by value --
|
|
3023
|
+
// `IMAGE_RECEIVER_TYPES` is what the property getters below already read
|
|
3024
|
+
// it through -- so each is a direct call on the receiver, exactly like
|
|
3025
|
+
// the statically-typed `HTMLAudioElement` rows above. `play`/`pause` are
|
|
3026
|
+
// stated as extra rows on the entries already here rather than as a
|
|
3027
|
+
// second entry of the same name, which is why they sit alongside rather
|
|
3028
|
+
// than below.
|
|
3029
|
+
//
|
|
3030
|
+
// Without `dispose` an e-reader that frees a decoded page refuses at
|
|
3031
|
+
// emission ("GeaEmbeddedImage.dispose is claimed by no host member
|
|
3032
|
+
// table"), which is correct of the compiler and a gap in this table: the
|
|
3033
|
+
// member exists in the header and in `index.d.ts`, and only the spelling
|
|
3034
|
+
// that joins them was missing.
|
|
3035
|
+
dispose: [
|
|
3036
|
+
{
|
|
3037
|
+
receiverTypes: IMAGE_RECEIVER_TYPES,
|
|
3038
|
+
emit: "({receiver}).dispose()",
|
|
3039
|
+
returnType: "void",
|
|
3040
|
+
},
|
|
3041
|
+
],
|
|
3042
|
+
seek: [
|
|
3043
|
+
{
|
|
3044
|
+
receiverTypes: IMAGE_RECEIVER_TYPES,
|
|
3045
|
+
emit: "({receiver}).seek({args})",
|
|
3046
|
+
returnType: "void",
|
|
3047
|
+
},
|
|
3048
|
+
],
|
|
3049
|
+
createOscillator: [
|
|
3050
|
+
{
|
|
3051
|
+
receiverTypes: ["gea::host::AudioContext", "AudioContext"],
|
|
3052
|
+
emit: "({receiver}).createOscillator({args})",
|
|
3053
|
+
returnType: "gea::host::OscillatorNode",
|
|
3054
|
+
},
|
|
3055
|
+
],
|
|
3056
|
+
createBufferSource: [
|
|
3057
|
+
{
|
|
3058
|
+
receiverTypes: ["gea::host::AudioContext", "AudioContext"],
|
|
3059
|
+
emit: "({receiver}).createBufferSource({args})",
|
|
3060
|
+
returnType: "gea::host::AudioBufferSourceNode",
|
|
3061
|
+
},
|
|
3062
|
+
],
|
|
3063
|
+
decodeAudioData: [
|
|
3064
|
+
{
|
|
3065
|
+
receiverTypes: ["gea::host::AudioContext", "AudioContext"],
|
|
3066
|
+
emit: "({receiver}).decodeAudioData({args})",
|
|
3067
|
+
returnType: "gea::host::AudioBuffer",
|
|
3068
|
+
},
|
|
3069
|
+
],
|
|
3070
|
+
connect: [
|
|
3071
|
+
{
|
|
3072
|
+
receiverTypes: [
|
|
3073
|
+
"gea::host::AudioBufferSourceNode",
|
|
3074
|
+
"AudioBufferSourceNode",
|
|
3075
|
+
],
|
|
3076
|
+
emit: "({receiver}).connect({args})",
|
|
3077
|
+
returnType: "gea::host::AudioDestinationNode",
|
|
3078
|
+
},
|
|
3079
|
+
{
|
|
3080
|
+
receiverTypes: ["gea::host::OscillatorNode", "OscillatorNode"],
|
|
3081
|
+
emit: "({receiver}).connect({args})",
|
|
3082
|
+
returnType: "void",
|
|
3083
|
+
},
|
|
3084
|
+
],
|
|
3085
|
+
start: [
|
|
3086
|
+
{
|
|
3087
|
+
receiverTypes: [
|
|
3088
|
+
"gea::host::AudioBufferSourceNode",
|
|
3089
|
+
"AudioBufferSourceNode",
|
|
3090
|
+
],
|
|
3091
|
+
emit: "({receiver}).start({args})",
|
|
3092
|
+
returnType: "void",
|
|
3093
|
+
},
|
|
3094
|
+
{
|
|
3095
|
+
receiverTypes: ["gea::host::OscillatorNode", "OscillatorNode"],
|
|
3096
|
+
emit: "({receiver}).start({args})",
|
|
3097
|
+
returnType: "void",
|
|
3098
|
+
},
|
|
3099
|
+
// `MediaRecorder.start(timeslice?)` -- `void start(double
|
|
3100
|
+
// timesliceMs = 0.0) const` on the engine class (`host/media.h`), the
|
|
3101
|
+
// optional argument carried by the C++ default rather than by an
|
|
3102
|
+
// overload, so `{args}` passes however many the call wrote.
|
|
3103
|
+
{
|
|
3104
|
+
receiverTypes: ["gea::host::MediaRecorder", "MediaRecorder"],
|
|
3105
|
+
emit: "({receiver}).start({args})",
|
|
3106
|
+
returnType: "void",
|
|
3107
|
+
},
|
|
3108
|
+
],
|
|
3109
|
+
stop: [
|
|
3110
|
+
// `MediaStreamTrack.stop()` (index.d.ts:1693) -- the engine's own method
|
|
3111
|
+
// on the handle (`packages/host/include/host/media.h:37`). The
|
|
3112
|
+
// declaration existed and the STATEMENT did not, so emission refused
|
|
3113
|
+
// `dialer` by name on `MediaStreamTrack.stop`. One member name, three
|
|
3114
|
+
// receivers: the rows are keyed by receiver carrier, which is what lets
|
|
3115
|
+
// the audio nodes below share the spelling without sharing a type.
|
|
3116
|
+
{
|
|
3117
|
+
receiverTypes: ["gea::host::MediaStreamTrack", "MediaStreamTrack"],
|
|
3118
|
+
emit: "({receiver}).stop()",
|
|
3119
|
+
returnType: "void",
|
|
3120
|
+
},
|
|
3121
|
+
{
|
|
3122
|
+
receiverTypes: [
|
|
3123
|
+
"gea::host::AudioBufferSourceNode",
|
|
3124
|
+
"AudioBufferSourceNode",
|
|
3125
|
+
],
|
|
3126
|
+
emit: "({receiver}).stop({args})",
|
|
3127
|
+
returnType: "void",
|
|
3128
|
+
},
|
|
3129
|
+
{
|
|
3130
|
+
receiverTypes: ["gea::host::OscillatorNode", "OscillatorNode"],
|
|
3131
|
+
emit: "({receiver}).stop({args})",
|
|
3132
|
+
returnType: "void",
|
|
3133
|
+
},
|
|
3134
|
+
// `MediaRecorder.stop()` -- `void stop() const` on the engine class
|
|
3135
|
+
// (`host/media.h`), the third receiver under this one member name.
|
|
3136
|
+
// The recorder's whole method half was missing while its property half
|
|
3137
|
+
// (`state`, `mimeType`, the two callbacks) was stated, so
|
|
3138
|
+
// `recorder.stop()` refused by name against a class the package
|
|
3139
|
+
// otherwise describes in full.
|
|
3140
|
+
{
|
|
3141
|
+
receiverTypes: ["gea::host::MediaRecorder", "MediaRecorder"],
|
|
3142
|
+
emit: "({receiver}).stop()",
|
|
3143
|
+
returnType: "void",
|
|
3144
|
+
},
|
|
3145
|
+
],
|
|
3146
|
+
setValueAtTime: [
|
|
3147
|
+
{
|
|
3148
|
+
receiverTypes: ["gea::host::AudioParam", "AudioParam"],
|
|
3149
|
+
emit: "({receiver}).setValueAtTime({args})",
|
|
3150
|
+
returnType: "void",
|
|
3151
|
+
},
|
|
3152
|
+
],
|
|
3153
|
+
arrayBuffer: [
|
|
3154
|
+
{
|
|
3155
|
+
receiverTypes: ["gea::host::FetchResponse"],
|
|
3156
|
+
returnType: "std::vector<std::uint8_t>",
|
|
3157
|
+
},
|
|
3158
|
+
{
|
|
3159
|
+
receiverTypes: ["gea::host::GeaAudioBlob", "GeaAudioBlob"],
|
|
3160
|
+
returnType: "std::vector<std::uint8_t>",
|
|
3161
|
+
},
|
|
3162
|
+
],
|
|
3163
|
+
text: [
|
|
3164
|
+
{
|
|
3165
|
+
receiverTypes: ["gea::host::FetchResponse"],
|
|
3166
|
+
returnType: "std::string",
|
|
3167
|
+
},
|
|
3168
|
+
{
|
|
3169
|
+
receiverTypes: ["gea::host::GeaAudioBlob", "GeaAudioBlob"],
|
|
3170
|
+
returnType: "std::string",
|
|
3171
|
+
},
|
|
3172
|
+
],
|
|
3173
|
+
...CSS_STYLE_DECLARATION_NATIVE_MEMBER_METHODS,
|
|
3174
|
+
},
|
|
3175
|
+
embeddedHostConstants: {
|
|
3176
|
+
audioContext: {
|
|
3177
|
+
emit: "gea::host::audioContext",
|
|
3178
|
+
type: "gea::host::AudioContext",
|
|
3179
|
+
},
|
|
3180
|
+
__gea_audioContext: {
|
|
3181
|
+
emit: "gea::host::audioContext",
|
|
3182
|
+
type: "gea::host::AudioContext",
|
|
3183
|
+
},
|
|
3184
|
+
},
|
|
3185
|
+
embeddedHostClasses: {
|
|
3186
|
+
AudioContext: {
|
|
3187
|
+
wrapper: "gea::host::AudioContext",
|
|
3188
|
+
construct: "gea::host::AudioContext({args})",
|
|
3189
|
+
allowConcrete: true,
|
|
3190
|
+
},
|
|
3191
|
+
Audio: {
|
|
3192
|
+
wrapper: "gea::host::HTMLAudioElement",
|
|
3193
|
+
construct: "gea::host::HTMLAudioElement({args})",
|
|
3194
|
+
allowConcrete: true,
|
|
3195
|
+
},
|
|
3196
|
+
MediaStream: {
|
|
3197
|
+
wrapper: "gea::host::MediaStream",
|
|
3198
|
+
construct: "gea::host::MediaStream({args})",
|
|
3199
|
+
allowConcrete: true,
|
|
3200
|
+
},
|
|
3201
|
+
MediaRecorder: {
|
|
3202
|
+
wrapper: "gea::host::MediaRecorder",
|
|
3203
|
+
construct: "gea::host::MediaRecorder({args})",
|
|
3204
|
+
allowConcrete: true,
|
|
3205
|
+
},
|
|
3206
|
+
WebSocket: {
|
|
3207
|
+
factory: "gea::host::websocket::create_handle",
|
|
3208
|
+
wrapper: "gea::host::WebSocket",
|
|
3209
|
+
},
|
|
3210
|
+
RTCPeerConnection: {
|
|
3211
|
+
factory: "gea::host::rtc::create_handle",
|
|
3212
|
+
wrapper: "gea::host::RTCPeerConnection",
|
|
3213
|
+
},
|
|
3214
|
+
},
|
|
3215
|
+
};
|
|
3216
|
+
}
|
|
3217
|
+
export const geaHostShims = createGeaHostShims();
|