egui-workbench 0.0.0-stage → 0.17.0
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/README.md +5 -2
- package/js/index.js +112 -0
- package/package.json +26 -4
- package/pkg/egui_workbench_wasm.d.ts +103 -0
- package/pkg/egui_workbench_wasm.js +1947 -0
- package/pkg/egui_workbench_wasm_bg.wasm +0 -0
- package/pkg/egui_workbench_wasm_bg.wasm.d.ts +28 -0
- package/types/index.d.ts +42 -0
- package/types/schema.d.ts +226 -0
|
@@ -0,0 +1,1947 @@
|
|
|
1
|
+
/* @ts-self-types="./egui_workbench_wasm.d.ts" */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A native spec rendered in a browser canvas.
|
|
5
|
+
*/
|
|
6
|
+
export class WebWorkbench {
|
|
7
|
+
__destroy_into_raw() {
|
|
8
|
+
const ptr = this.__wbg_ptr;
|
|
9
|
+
this.__wbg_ptr = 0;
|
|
10
|
+
WebWorkbenchFinalization.unregister(this);
|
|
11
|
+
return ptr;
|
|
12
|
+
}
|
|
13
|
+
free() {
|
|
14
|
+
const ptr = this.__destroy_into_raw();
|
|
15
|
+
wasm.__wbg_webworkbench_free(ptr, 0);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Apply a JSON-pointer patch to the spec.
|
|
19
|
+
* @param {string} patch_json
|
|
20
|
+
*/
|
|
21
|
+
apply_patch(patch_json) {
|
|
22
|
+
const ptr0 = passStringToWasm0(patch_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
23
|
+
const len0 = WASM_VECTOR_LEN;
|
|
24
|
+
const ret = wasm.webworkbench_apply_patch(this.__wbg_ptr, ptr0, len0);
|
|
25
|
+
if (ret[1]) {
|
|
26
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Stop eframe and release its listeners.
|
|
31
|
+
*/
|
|
32
|
+
destroy() {
|
|
33
|
+
wasm.webworkbench_destroy(this.__wbg_ptr);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Create a workbench from a versioned `HostSpec` JSON document.
|
|
37
|
+
* @param {string} spec_json
|
|
38
|
+
*/
|
|
39
|
+
constructor(spec_json) {
|
|
40
|
+
const ptr0 = passStringToWasm0(spec_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
41
|
+
const len0 = WASM_VECTOR_LEN;
|
|
42
|
+
const ret = wasm.webworkbench_new(ptr0, len0);
|
|
43
|
+
if (ret[2]) {
|
|
44
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
45
|
+
}
|
|
46
|
+
this.__wbg_ptr = ret[0];
|
|
47
|
+
WebWorkbenchFinalization.register(this, this.__wbg_ptr, this);
|
|
48
|
+
return this;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Drain host events as a JSON array.
|
|
52
|
+
* @returns {string}
|
|
53
|
+
*/
|
|
54
|
+
poll_events_json() {
|
|
55
|
+
let deferred1_0;
|
|
56
|
+
let deferred1_1;
|
|
57
|
+
try {
|
|
58
|
+
const ret = wasm.webworkbench_poll_events_json(this.__wbg_ptr);
|
|
59
|
+
deferred1_0 = ret[0];
|
|
60
|
+
deferred1_1 = ret[1];
|
|
61
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
62
|
+
} finally {
|
|
63
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* The `HostSpec` JSON Schema.
|
|
68
|
+
* @returns {string}
|
|
69
|
+
*/
|
|
70
|
+
static schema() {
|
|
71
|
+
let deferred1_0;
|
|
72
|
+
let deferred1_1;
|
|
73
|
+
try {
|
|
74
|
+
const ret = wasm.webworkbench_schema();
|
|
75
|
+
deferred1_0 = ret[0];
|
|
76
|
+
deferred1_1 = ret[1];
|
|
77
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
78
|
+
} finally {
|
|
79
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Replace the spec.
|
|
84
|
+
* @param {string} spec_json
|
|
85
|
+
*/
|
|
86
|
+
set_spec(spec_json) {
|
|
87
|
+
const ptr0 = passStringToWasm0(spec_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
88
|
+
const len0 = WASM_VECTOR_LEN;
|
|
89
|
+
const ret = wasm.webworkbench_set_spec(this.__wbg_ptr, ptr0, len0);
|
|
90
|
+
if (ret[1]) {
|
|
91
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Change the theme id without rebuilding the window.
|
|
96
|
+
* @param {string} id
|
|
97
|
+
*/
|
|
98
|
+
set_theme(id) {
|
|
99
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
100
|
+
const len0 = WASM_VECTOR_LEN;
|
|
101
|
+
wasm.webworkbench_set_theme(this.__wbg_ptr, ptr0, len0);
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* The current spec as JSON, including queued actions that were applied.
|
|
105
|
+
* @returns {string}
|
|
106
|
+
*/
|
|
107
|
+
spec_json() {
|
|
108
|
+
let deferred1_0;
|
|
109
|
+
let deferred1_1;
|
|
110
|
+
try {
|
|
111
|
+
const ret = wasm.webworkbench_spec_json(this.__wbg_ptr);
|
|
112
|
+
deferred1_0 = ret[0];
|
|
113
|
+
deferred1_1 = ret[1];
|
|
114
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
115
|
+
} finally {
|
|
116
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Mount the workbench on a canvas. Call once.
|
|
121
|
+
* @param {HTMLCanvasElement} canvas
|
|
122
|
+
* @returns {Promise<void>}
|
|
123
|
+
*/
|
|
124
|
+
start(canvas) {
|
|
125
|
+
const ret = wasm.webworkbench_start(this.__wbg_ptr, canvas);
|
|
126
|
+
return ret;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* The host crate version.
|
|
130
|
+
* @returns {string}
|
|
131
|
+
*/
|
|
132
|
+
static version() {
|
|
133
|
+
let deferred1_0;
|
|
134
|
+
let deferred1_1;
|
|
135
|
+
try {
|
|
136
|
+
const ret = wasm.webworkbench_version();
|
|
137
|
+
deferred1_0 = ret[0];
|
|
138
|
+
deferred1_1 = ret[1];
|
|
139
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
140
|
+
} finally {
|
|
141
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
if (Symbol.dispose) WebWorkbench.prototype[Symbol.dispose] = WebWorkbench.prototype.free;
|
|
146
|
+
function __wbg_get_imports() {
|
|
147
|
+
const import0 = {
|
|
148
|
+
__proto__: null,
|
|
149
|
+
__wbg_Error_208446807d0d1e30: function(arg0, arg1) {
|
|
150
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
151
|
+
return ret;
|
|
152
|
+
},
|
|
153
|
+
__wbg___wbindgen_boolean_get_4f1baf9a00be3c74: function(arg0) {
|
|
154
|
+
const v = arg0;
|
|
155
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
156
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
157
|
+
},
|
|
158
|
+
__wbg___wbindgen_debug_string_f249a2a76caa9a55: function(arg0, arg1) {
|
|
159
|
+
const ret = debugString(arg1);
|
|
160
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
161
|
+
const len1 = WASM_VECTOR_LEN;
|
|
162
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
163
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
164
|
+
},
|
|
165
|
+
__wbg___wbindgen_in_3f58a9d3b3a7eed2: function(arg0, arg1) {
|
|
166
|
+
const ret = arg0 in arg1;
|
|
167
|
+
return ret;
|
|
168
|
+
},
|
|
169
|
+
__wbg___wbindgen_is_function_741ff2bb612836f5: function(arg0) {
|
|
170
|
+
const ret = typeof(arg0) === 'function';
|
|
171
|
+
return ret;
|
|
172
|
+
},
|
|
173
|
+
__wbg___wbindgen_is_undefined_be5b34249ff1fc15: function(arg0) {
|
|
174
|
+
const ret = arg0 === undefined;
|
|
175
|
+
return ret;
|
|
176
|
+
},
|
|
177
|
+
__wbg___wbindgen_number_get_934b640d0889af78: function(arg0, arg1) {
|
|
178
|
+
const obj = arg1;
|
|
179
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
180
|
+
getDataViewMemory0().setFloat64((arg0 >>> 0) + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
181
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, !isLikeNone(ret), true);
|
|
182
|
+
},
|
|
183
|
+
__wbg___wbindgen_string_get_7ce8eee7fd327545: function(arg0, arg1) {
|
|
184
|
+
const obj = arg1;
|
|
185
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
186
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
187
|
+
var len1 = WASM_VECTOR_LEN;
|
|
188
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
189
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
190
|
+
},
|
|
191
|
+
__wbg___wbindgen_throw_4c88d8bf264fd984: function(arg0, arg1) {
|
|
192
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
193
|
+
},
|
|
194
|
+
__wbg__wbg_cb_unref_09736879a3f67559: function(arg0) {
|
|
195
|
+
arg0._wbg_cb_unref();
|
|
196
|
+
},
|
|
197
|
+
__wbg_activeElement_6c30fe7fda33ef51: function(arg0) {
|
|
198
|
+
const ret = arg0.activeElement;
|
|
199
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
200
|
+
},
|
|
201
|
+
__wbg_activeElement_f9fa238dd2650f32: function(arg0) {
|
|
202
|
+
const ret = arg0.activeElement;
|
|
203
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
204
|
+
},
|
|
205
|
+
__wbg_activeTexture_45b425a49df733ce: function(arg0, arg1) {
|
|
206
|
+
arg0.activeTexture(arg1 >>> 0);
|
|
207
|
+
},
|
|
208
|
+
__wbg_activeTexture_89cef8c297ad0698: function(arg0, arg1) {
|
|
209
|
+
arg0.activeTexture(arg1 >>> 0);
|
|
210
|
+
},
|
|
211
|
+
__wbg_actualBoundingBoxAscent_912cb885174c5be4: function(arg0) {
|
|
212
|
+
const ret = arg0.actualBoundingBoxAscent;
|
|
213
|
+
return ret;
|
|
214
|
+
},
|
|
215
|
+
__wbg_actualBoundingBoxDescent_150b2f20afdb7deb: function(arg0) {
|
|
216
|
+
const ret = arg0.actualBoundingBoxDescent;
|
|
217
|
+
return ret;
|
|
218
|
+
},
|
|
219
|
+
__wbg_actualBoundingBoxLeft_5b7399df025870ae: function(arg0) {
|
|
220
|
+
const ret = arg0.actualBoundingBoxLeft;
|
|
221
|
+
return ret;
|
|
222
|
+
},
|
|
223
|
+
__wbg_actualBoundingBoxRight_4efd3051aac85474: function(arg0) {
|
|
224
|
+
const ret = arg0.actualBoundingBoxRight;
|
|
225
|
+
return ret;
|
|
226
|
+
},
|
|
227
|
+
__wbg_addEventListener_f2d27251d333a631: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
228
|
+
arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3, arg4);
|
|
229
|
+
}, arguments); },
|
|
230
|
+
__wbg_altKey_423da1d67b588078: function(arg0) {
|
|
231
|
+
const ret = arg0.altKey;
|
|
232
|
+
return ret;
|
|
233
|
+
},
|
|
234
|
+
__wbg_altKey_f158b37d4bccf5ff: function(arg0) {
|
|
235
|
+
const ret = arg0.altKey;
|
|
236
|
+
return ret;
|
|
237
|
+
},
|
|
238
|
+
__wbg_appendChild_dbf7ad2f48413560: function() { return handleError(function (arg0, arg1) {
|
|
239
|
+
const ret = arg0.appendChild(arg1);
|
|
240
|
+
return ret;
|
|
241
|
+
}, arguments); },
|
|
242
|
+
__wbg_arrayBuffer_5abbcb61bd48f427: function(arg0) {
|
|
243
|
+
const ret = arg0.arrayBuffer();
|
|
244
|
+
return ret;
|
|
245
|
+
},
|
|
246
|
+
__wbg_at_3e5065dbded96e2e: function(arg0, arg1) {
|
|
247
|
+
const ret = arg0.at(arg1);
|
|
248
|
+
return ret;
|
|
249
|
+
},
|
|
250
|
+
__wbg_attachShader_3ed301cc92db59f6: function(arg0, arg1, arg2) {
|
|
251
|
+
arg0.attachShader(arg1, arg2);
|
|
252
|
+
},
|
|
253
|
+
__wbg_attachShader_817dcec9e79fd18f: function(arg0, arg1, arg2) {
|
|
254
|
+
arg0.attachShader(arg1, arg2);
|
|
255
|
+
},
|
|
256
|
+
__wbg_bindBuffer_b3bb001fdbee089a: function(arg0, arg1, arg2) {
|
|
257
|
+
arg0.bindBuffer(arg1 >>> 0, arg2);
|
|
258
|
+
},
|
|
259
|
+
__wbg_bindBuffer_cbc9075f76fffa51: function(arg0, arg1, arg2) {
|
|
260
|
+
arg0.bindBuffer(arg1 >>> 0, arg2);
|
|
261
|
+
},
|
|
262
|
+
__wbg_bindTexture_6f822943b2790466: function(arg0, arg1, arg2) {
|
|
263
|
+
arg0.bindTexture(arg1 >>> 0, arg2);
|
|
264
|
+
},
|
|
265
|
+
__wbg_bindTexture_a23350e1b573ddfd: function(arg0, arg1, arg2) {
|
|
266
|
+
arg0.bindTexture(arg1 >>> 0, arg2);
|
|
267
|
+
},
|
|
268
|
+
__wbg_bindVertexArrayOES_5161c1f5b1fea3f9: function(arg0, arg1) {
|
|
269
|
+
arg0.bindVertexArrayOES(arg1);
|
|
270
|
+
},
|
|
271
|
+
__wbg_bindVertexArray_cc64c48bf67ab8d4: function(arg0, arg1) {
|
|
272
|
+
arg0.bindVertexArray(arg1);
|
|
273
|
+
},
|
|
274
|
+
__wbg_blendEquationSeparate_0dceb23863585a87: function(arg0, arg1, arg2) {
|
|
275
|
+
arg0.blendEquationSeparate(arg1 >>> 0, arg2 >>> 0);
|
|
276
|
+
},
|
|
277
|
+
__wbg_blendEquationSeparate_156fe040a9aebfd6: function(arg0, arg1, arg2) {
|
|
278
|
+
arg0.blendEquationSeparate(arg1 >>> 0, arg2 >>> 0);
|
|
279
|
+
},
|
|
280
|
+
__wbg_blendFuncSeparate_6db2212299fd7f1e: function(arg0, arg1, arg2, arg3, arg4) {
|
|
281
|
+
arg0.blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
282
|
+
},
|
|
283
|
+
__wbg_blendFuncSeparate_eb9098d760f4a25c: function(arg0, arg1, arg2, arg3, arg4) {
|
|
284
|
+
arg0.blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
285
|
+
},
|
|
286
|
+
__wbg_blockSize_4a396ef99671a8a3: function(arg0) {
|
|
287
|
+
const ret = arg0.blockSize;
|
|
288
|
+
return ret;
|
|
289
|
+
},
|
|
290
|
+
__wbg_blur_c2856e0bcfec2cc0: function() { return handleError(function (arg0) {
|
|
291
|
+
arg0.blur();
|
|
292
|
+
}, arguments); },
|
|
293
|
+
__wbg_body_5f971cbc6950ca4f: function(arg0) {
|
|
294
|
+
const ret = arg0.body;
|
|
295
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
296
|
+
},
|
|
297
|
+
__wbg_bottom_fd840749aac1de6e: function(arg0) {
|
|
298
|
+
const ret = arg0.bottom;
|
|
299
|
+
return ret;
|
|
300
|
+
},
|
|
301
|
+
__wbg_bufferData_2fb8740d60478bf0: function(arg0, arg1, arg2, arg3) {
|
|
302
|
+
arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
|
|
303
|
+
},
|
|
304
|
+
__wbg_bufferData_9eb9c4c5053ac480: function(arg0, arg1, arg2, arg3) {
|
|
305
|
+
arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
|
|
306
|
+
},
|
|
307
|
+
__wbg_button_653210370515dd71: function(arg0) {
|
|
308
|
+
const ret = arg0.button;
|
|
309
|
+
return ret;
|
|
310
|
+
},
|
|
311
|
+
__wbg_call_a410eb4b59ed5965: function() { return handleError(function (arg0, arg1, arg2) {
|
|
312
|
+
const ret = arg0.call(arg1, arg2);
|
|
313
|
+
return ret;
|
|
314
|
+
}, arguments); },
|
|
315
|
+
__wbg_cancelAnimationFrame_c0d19c5f7cfd7aae: function() { return handleError(function (arg0, arg1) {
|
|
316
|
+
arg0.cancelAnimationFrame(arg1);
|
|
317
|
+
}, arguments); },
|
|
318
|
+
__wbg_changedTouches_133917dec6f0866e: function(arg0) {
|
|
319
|
+
const ret = arg0.changedTouches;
|
|
320
|
+
return ret;
|
|
321
|
+
},
|
|
322
|
+
__wbg_clearColor_0a9b08857907c212: function(arg0, arg1, arg2, arg3, arg4) {
|
|
323
|
+
arg0.clearColor(arg1, arg2, arg3, arg4);
|
|
324
|
+
},
|
|
325
|
+
__wbg_clearColor_195b5a731bca5836: function(arg0, arg1, arg2, arg3, arg4) {
|
|
326
|
+
arg0.clearColor(arg1, arg2, arg3, arg4);
|
|
327
|
+
},
|
|
328
|
+
__wbg_clearInterval_75e54e39df78e754: function(arg0, arg1) {
|
|
329
|
+
arg0.clearInterval(arg1);
|
|
330
|
+
},
|
|
331
|
+
__wbg_clearRect_428f96a6ba73b2f4: function(arg0, arg1, arg2, arg3, arg4) {
|
|
332
|
+
arg0.clearRect(arg1, arg2, arg3, arg4);
|
|
333
|
+
},
|
|
334
|
+
__wbg_clearTimeout_fd2c5dfcf4c67f84: function(arg0, arg1) {
|
|
335
|
+
arg0.clearTimeout(arg1);
|
|
336
|
+
},
|
|
337
|
+
__wbg_clear_3ffa1ed794f92a04: function(arg0, arg1) {
|
|
338
|
+
arg0.clear(arg1 >>> 0);
|
|
339
|
+
},
|
|
340
|
+
__wbg_clear_ccb3d618da90fea3: function(arg0, arg1) {
|
|
341
|
+
arg0.clear(arg1 >>> 0);
|
|
342
|
+
},
|
|
343
|
+
__wbg_clientX_7207eed549b03753: function(arg0) {
|
|
344
|
+
const ret = arg0.clientX;
|
|
345
|
+
return ret;
|
|
346
|
+
},
|
|
347
|
+
__wbg_clientX_8c315b448e031608: function(arg0) {
|
|
348
|
+
const ret = arg0.clientX;
|
|
349
|
+
return ret;
|
|
350
|
+
},
|
|
351
|
+
__wbg_clientY_3371139730cd6f74: function(arg0) {
|
|
352
|
+
const ret = arg0.clientY;
|
|
353
|
+
return ret;
|
|
354
|
+
},
|
|
355
|
+
__wbg_clientY_864eb3eff334b02a: function(arg0) {
|
|
356
|
+
const ret = arg0.clientY;
|
|
357
|
+
return ret;
|
|
358
|
+
},
|
|
359
|
+
__wbg_clipboardData_40289949920202d6: function(arg0) {
|
|
360
|
+
const ret = arg0.clipboardData;
|
|
361
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
362
|
+
},
|
|
363
|
+
__wbg_clipboard_047ad3d952a13066: function(arg0) {
|
|
364
|
+
const ret = arg0.clipboard;
|
|
365
|
+
return ret;
|
|
366
|
+
},
|
|
367
|
+
__wbg_code_f0359f3273037430: function(arg0, arg1) {
|
|
368
|
+
const ret = arg1.code;
|
|
369
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
370
|
+
const len1 = WASM_VECTOR_LEN;
|
|
371
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
372
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
373
|
+
},
|
|
374
|
+
__wbg_colorMask_24c1b6c3ec53f8c8: function(arg0, arg1, arg2, arg3, arg4) {
|
|
375
|
+
arg0.colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0);
|
|
376
|
+
},
|
|
377
|
+
__wbg_colorMask_cfc2d619716d01ed: function(arg0, arg1, arg2, arg3, arg4) {
|
|
378
|
+
arg0.colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0);
|
|
379
|
+
},
|
|
380
|
+
__wbg_compileShader_11eb6754e9b15970: function(arg0, arg1) {
|
|
381
|
+
arg0.compileShader(arg1);
|
|
382
|
+
},
|
|
383
|
+
__wbg_compileShader_54c3771819e6caba: function(arg0, arg1) {
|
|
384
|
+
arg0.compileShader(arg1);
|
|
385
|
+
},
|
|
386
|
+
__wbg_contentBoxSize_d394eb8fa40e0155: function(arg0) {
|
|
387
|
+
const ret = arg0.contentBoxSize;
|
|
388
|
+
return ret;
|
|
389
|
+
},
|
|
390
|
+
__wbg_contentRect_efd2ab04babd2afb: function(arg0) {
|
|
391
|
+
const ret = arg0.contentRect;
|
|
392
|
+
return ret;
|
|
393
|
+
},
|
|
394
|
+
__wbg_createBuffer_2c27ad5f899d418d: function(arg0) {
|
|
395
|
+
const ret = arg0.createBuffer();
|
|
396
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
397
|
+
},
|
|
398
|
+
__wbg_createBuffer_ca6ca40e9fb13678: function(arg0) {
|
|
399
|
+
const ret = arg0.createBuffer();
|
|
400
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
401
|
+
},
|
|
402
|
+
__wbg_createElement_de4a31ed2fb252be: function() { return handleError(function (arg0, arg1, arg2) {
|
|
403
|
+
const ret = arg0.createElement(getStringFromWasm0(arg1, arg2));
|
|
404
|
+
return ret;
|
|
405
|
+
}, arguments); },
|
|
406
|
+
__wbg_createProgram_de0881c688a8e43b: function(arg0) {
|
|
407
|
+
const ret = arg0.createProgram();
|
|
408
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
409
|
+
},
|
|
410
|
+
__wbg_createProgram_ea784724f6f0074f: function(arg0) {
|
|
411
|
+
const ret = arg0.createProgram();
|
|
412
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
413
|
+
},
|
|
414
|
+
__wbg_createShader_9754a1e4ef374e84: function(arg0, arg1) {
|
|
415
|
+
const ret = arg0.createShader(arg1 >>> 0);
|
|
416
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
417
|
+
},
|
|
418
|
+
__wbg_createShader_d2d90020273cef2b: function(arg0, arg1) {
|
|
419
|
+
const ret = arg0.createShader(arg1 >>> 0);
|
|
420
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
421
|
+
},
|
|
422
|
+
__wbg_createTexture_3287f26407473071: function(arg0) {
|
|
423
|
+
const ret = arg0.createTexture();
|
|
424
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
425
|
+
},
|
|
426
|
+
__wbg_createTexture_eec9a1994aabeca7: function(arg0) {
|
|
427
|
+
const ret = arg0.createTexture();
|
|
428
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
429
|
+
},
|
|
430
|
+
__wbg_createVertexArrayOES_3eaf087ef22da1cb: function(arg0) {
|
|
431
|
+
const ret = arg0.createVertexArrayOES();
|
|
432
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
433
|
+
},
|
|
434
|
+
__wbg_createVertexArray_1293d2ffa8346be2: function(arg0) {
|
|
435
|
+
const ret = arg0.createVertexArray();
|
|
436
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
437
|
+
},
|
|
438
|
+
__wbg_ctrlKey_97b77227d0599549: function(arg0) {
|
|
439
|
+
const ret = arg0.ctrlKey;
|
|
440
|
+
return ret;
|
|
441
|
+
},
|
|
442
|
+
__wbg_ctrlKey_b7978e4cf78dc62b: function(arg0) {
|
|
443
|
+
const ret = arg0.ctrlKey;
|
|
444
|
+
return ret;
|
|
445
|
+
},
|
|
446
|
+
__wbg_dataTransfer_3f478a3e477952f6: function(arg0) {
|
|
447
|
+
const ret = arg0.dataTransfer;
|
|
448
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
449
|
+
},
|
|
450
|
+
__wbg_data_bf4b5c8a5fc46441: function(arg0, arg1) {
|
|
451
|
+
const ret = arg1.data;
|
|
452
|
+
const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
|
|
453
|
+
const len1 = WASM_VECTOR_LEN;
|
|
454
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
455
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
456
|
+
},
|
|
457
|
+
__wbg_deleteBuffer_673584ba5a55669d: function(arg0, arg1) {
|
|
458
|
+
arg0.deleteBuffer(arg1);
|
|
459
|
+
},
|
|
460
|
+
__wbg_deleteBuffer_ffa760fd3b0b5ef1: function(arg0, arg1) {
|
|
461
|
+
arg0.deleteBuffer(arg1);
|
|
462
|
+
},
|
|
463
|
+
__wbg_deleteProgram_8c38fff0f4a88dea: function(arg0, arg1) {
|
|
464
|
+
arg0.deleteProgram(arg1);
|
|
465
|
+
},
|
|
466
|
+
__wbg_deleteProgram_c07d952a1b0c1cb6: function(arg0, arg1) {
|
|
467
|
+
arg0.deleteProgram(arg1);
|
|
468
|
+
},
|
|
469
|
+
__wbg_deleteShader_320530dd636bc187: function(arg0, arg1) {
|
|
470
|
+
arg0.deleteShader(arg1);
|
|
471
|
+
},
|
|
472
|
+
__wbg_deleteShader_ac74568b64a1c3c7: function(arg0, arg1) {
|
|
473
|
+
arg0.deleteShader(arg1);
|
|
474
|
+
},
|
|
475
|
+
__wbg_deleteTexture_1653a9994a44215e: function(arg0, arg1) {
|
|
476
|
+
arg0.deleteTexture(arg1);
|
|
477
|
+
},
|
|
478
|
+
__wbg_deleteTexture_89bd1d49ae4fb309: function(arg0, arg1) {
|
|
479
|
+
arg0.deleteTexture(arg1);
|
|
480
|
+
},
|
|
481
|
+
__wbg_deltaMode_d2ba7673c0228446: function(arg0) {
|
|
482
|
+
const ret = arg0.deltaMode;
|
|
483
|
+
return ret;
|
|
484
|
+
},
|
|
485
|
+
__wbg_deltaX_6ad2483f3f4c0349: function(arg0) {
|
|
486
|
+
const ret = arg0.deltaX;
|
|
487
|
+
return ret;
|
|
488
|
+
},
|
|
489
|
+
__wbg_deltaY_37dc0a54748a91f4: function(arg0) {
|
|
490
|
+
const ret = arg0.deltaY;
|
|
491
|
+
return ret;
|
|
492
|
+
},
|
|
493
|
+
__wbg_detachShader_c85365fd7844e9b3: function(arg0, arg1, arg2) {
|
|
494
|
+
arg0.detachShader(arg1, arg2);
|
|
495
|
+
},
|
|
496
|
+
__wbg_detachShader_f1bbf36cb414e038: function(arg0, arg1, arg2) {
|
|
497
|
+
arg0.detachShader(arg1, arg2);
|
|
498
|
+
},
|
|
499
|
+
__wbg_devicePixelContentBoxSize_762c920a20c8b97f: function(arg0) {
|
|
500
|
+
const ret = arg0.devicePixelContentBoxSize;
|
|
501
|
+
return ret;
|
|
502
|
+
},
|
|
503
|
+
__wbg_devicePixelRatio_90ee4024cee5d5f4: function(arg0) {
|
|
504
|
+
const ret = arg0.devicePixelRatio;
|
|
505
|
+
return ret;
|
|
506
|
+
},
|
|
507
|
+
__wbg_disableVertexAttribArray_011898581287ef1e: function(arg0, arg1) {
|
|
508
|
+
arg0.disableVertexAttribArray(arg1 >>> 0);
|
|
509
|
+
},
|
|
510
|
+
__wbg_disableVertexAttribArray_5c66375eba552ee7: function(arg0, arg1) {
|
|
511
|
+
arg0.disableVertexAttribArray(arg1 >>> 0);
|
|
512
|
+
},
|
|
513
|
+
__wbg_disable_2ead6c11cefd0322: function(arg0, arg1) {
|
|
514
|
+
arg0.disable(arg1 >>> 0);
|
|
515
|
+
},
|
|
516
|
+
__wbg_disable_8a9e81e6d64d046b: function(arg0, arg1) {
|
|
517
|
+
arg0.disable(arg1 >>> 0);
|
|
518
|
+
},
|
|
519
|
+
__wbg_disconnect_cfb0d06aca1c1b50: function(arg0) {
|
|
520
|
+
arg0.disconnect();
|
|
521
|
+
},
|
|
522
|
+
__wbg_document_3b5c3071b43e97ee: function(arg0) {
|
|
523
|
+
const ret = arg0.document;
|
|
524
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
525
|
+
},
|
|
526
|
+
__wbg_drawElements_c70e0887282fa70e: function(arg0, arg1, arg2, arg3, arg4) {
|
|
527
|
+
arg0.drawElements(arg1 >>> 0, arg2, arg3 >>> 0, arg4);
|
|
528
|
+
},
|
|
529
|
+
__wbg_drawElements_d76df94ac144b73b: function(arg0, arg1, arg2, arg3, arg4) {
|
|
530
|
+
arg0.drawElements(arg1 >>> 0, arg2, arg3 >>> 0, arg4);
|
|
531
|
+
},
|
|
532
|
+
__wbg_elementFromPoint_980d6f496a4e8662: function(arg0, arg1, arg2) {
|
|
533
|
+
const ret = arg0.elementFromPoint(arg1, arg2);
|
|
534
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
535
|
+
},
|
|
536
|
+
__wbg_elementFromPoint_d54699de5ca534da: function(arg0, arg1, arg2) {
|
|
537
|
+
const ret = arg0.elementFromPoint(arg1, arg2);
|
|
538
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
539
|
+
},
|
|
540
|
+
__wbg_enableVertexAttribArray_d485706ade6bebf8: function(arg0, arg1) {
|
|
541
|
+
arg0.enableVertexAttribArray(arg1 >>> 0);
|
|
542
|
+
},
|
|
543
|
+
__wbg_enableVertexAttribArray_eeecc6185af24227: function(arg0, arg1) {
|
|
544
|
+
arg0.enableVertexAttribArray(arg1 >>> 0);
|
|
545
|
+
},
|
|
546
|
+
__wbg_enable_c3c00565c89d3175: function(arg0, arg1) {
|
|
547
|
+
arg0.enable(arg1 >>> 0);
|
|
548
|
+
},
|
|
549
|
+
__wbg_enable_e955d456ef6b93f7: function(arg0, arg1) {
|
|
550
|
+
arg0.enable(arg1 >>> 0);
|
|
551
|
+
},
|
|
552
|
+
__wbg_error_757e9472f8410341: function(arg0, arg1) {
|
|
553
|
+
let deferred0_0;
|
|
554
|
+
let deferred0_1;
|
|
555
|
+
try {
|
|
556
|
+
deferred0_0 = arg0;
|
|
557
|
+
deferred0_1 = arg1;
|
|
558
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
559
|
+
} finally {
|
|
560
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
561
|
+
}
|
|
562
|
+
},
|
|
563
|
+
__wbg_error_8f639d3fdf91a023: function(arg0, arg1) {
|
|
564
|
+
let deferred0_0;
|
|
565
|
+
let deferred0_1;
|
|
566
|
+
try {
|
|
567
|
+
deferred0_0 = arg0;
|
|
568
|
+
deferred0_1 = arg1;
|
|
569
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
570
|
+
} finally {
|
|
571
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
572
|
+
}
|
|
573
|
+
},
|
|
574
|
+
__wbg_files_2d8b9138ca028e2c: function(arg0) {
|
|
575
|
+
const ret = arg0.files;
|
|
576
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
577
|
+
},
|
|
578
|
+
__wbg_fillText_89d353a9ad9f4a1a: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
579
|
+
arg0.fillText(getStringFromWasm0(arg1, arg2), arg3, arg4);
|
|
580
|
+
}, arguments); },
|
|
581
|
+
__wbg_focus_0a8d513ea5d8338e: function() { return handleError(function (arg0, arg1) {
|
|
582
|
+
arg0.focus(arg1);
|
|
583
|
+
}, arguments); },
|
|
584
|
+
__wbg_force_f08aaeb22f5ab738: function(arg0) {
|
|
585
|
+
const ret = arg0.force;
|
|
586
|
+
return ret;
|
|
587
|
+
},
|
|
588
|
+
__wbg_generateMipmap_41bc066b35a6cd3d: function(arg0, arg1) {
|
|
589
|
+
arg0.generateMipmap(arg1 >>> 0);
|
|
590
|
+
},
|
|
591
|
+
__wbg_generateMipmap_e1a3b00736bb27bf: function(arg0, arg1) {
|
|
592
|
+
arg0.generateMipmap(arg1 >>> 0);
|
|
593
|
+
},
|
|
594
|
+
__wbg_getAttribLocation_239fdc3b9bf96547: function(arg0, arg1, arg2, arg3) {
|
|
595
|
+
const ret = arg0.getAttribLocation(arg1, getStringFromWasm0(arg2, arg3));
|
|
596
|
+
return ret;
|
|
597
|
+
},
|
|
598
|
+
__wbg_getAttribLocation_8e502cd753de95f7: function(arg0, arg1, arg2, arg3) {
|
|
599
|
+
const ret = arg0.getAttribLocation(arg1, getStringFromWasm0(arg2, arg3));
|
|
600
|
+
return ret;
|
|
601
|
+
},
|
|
602
|
+
__wbg_getBoundingClientRect_329ca748ec918b0c: function(arg0) {
|
|
603
|
+
const ret = arg0.getBoundingClientRect();
|
|
604
|
+
return ret;
|
|
605
|
+
},
|
|
606
|
+
__wbg_getComputedStyle_3be93eadae0000a9: function() { return handleError(function (arg0, arg1) {
|
|
607
|
+
const ret = arg0.getComputedStyle(arg1);
|
|
608
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
609
|
+
}, arguments); },
|
|
610
|
+
__wbg_getContext_d93f904b714852ae: function() { return handleError(function (arg0, arg1, arg2) {
|
|
611
|
+
const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
|
|
612
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
613
|
+
}, arguments); },
|
|
614
|
+
__wbg_getData_a7ee5645c60062ce: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
615
|
+
const ret = arg1.getData(getStringFromWasm0(arg2, arg3));
|
|
616
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
617
|
+
const len1 = WASM_VECTOR_LEN;
|
|
618
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
619
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
620
|
+
}, arguments); },
|
|
621
|
+
__wbg_getError_8687e93ec4a1d62e: function(arg0) {
|
|
622
|
+
const ret = arg0.getError();
|
|
623
|
+
return ret;
|
|
624
|
+
},
|
|
625
|
+
__wbg_getError_bb38cafe57b0913f: function(arg0) {
|
|
626
|
+
const ret = arg0.getError();
|
|
627
|
+
return ret;
|
|
628
|
+
},
|
|
629
|
+
__wbg_getExtension_30c10f49f67eb05d: function() { return handleError(function (arg0, arg1, arg2) {
|
|
630
|
+
const ret = arg0.getExtension(getStringFromWasm0(arg1, arg2));
|
|
631
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
632
|
+
}, arguments); },
|
|
633
|
+
__wbg_getExtension_6b9dbc54fff39405: function() { return handleError(function (arg0, arg1, arg2) {
|
|
634
|
+
const ret = arg0.getExtension(getStringFromWasm0(arg1, arg2));
|
|
635
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
636
|
+
}, arguments); },
|
|
637
|
+
__wbg_getImageData_284584d5017b9f60: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
638
|
+
const ret = arg0.getImageData(arg1, arg2, arg3, arg4);
|
|
639
|
+
return ret;
|
|
640
|
+
}, arguments); },
|
|
641
|
+
__wbg_getItem_49556a3e59cfb688: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
642
|
+
const ret = arg1.getItem(getStringFromWasm0(arg2, arg3));
|
|
643
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
644
|
+
var len1 = WASM_VECTOR_LEN;
|
|
645
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
646
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
647
|
+
}, arguments); },
|
|
648
|
+
__wbg_getParameter_4c67158a3cef7a34: function() { return handleError(function (arg0, arg1) {
|
|
649
|
+
const ret = arg0.getParameter(arg1 >>> 0);
|
|
650
|
+
return ret;
|
|
651
|
+
}, arguments); },
|
|
652
|
+
__wbg_getParameter_7fbe79a0114e119f: function() { return handleError(function (arg0, arg1) {
|
|
653
|
+
const ret = arg0.getParameter(arg1 >>> 0);
|
|
654
|
+
return ret;
|
|
655
|
+
}, arguments); },
|
|
656
|
+
__wbg_getProgramInfoLog_01799fd7b07b7f3c: function(arg0, arg1, arg2) {
|
|
657
|
+
const ret = arg1.getProgramInfoLog(arg2);
|
|
658
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
659
|
+
var len1 = WASM_VECTOR_LEN;
|
|
660
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
661
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
662
|
+
},
|
|
663
|
+
__wbg_getProgramInfoLog_92d61551e1ab39ea: function(arg0, arg1, arg2) {
|
|
664
|
+
const ret = arg1.getProgramInfoLog(arg2);
|
|
665
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
666
|
+
var len1 = WASM_VECTOR_LEN;
|
|
667
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
668
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
669
|
+
},
|
|
670
|
+
__wbg_getProgramParameter_1e7562e7d66170c3: function(arg0, arg1, arg2) {
|
|
671
|
+
const ret = arg0.getProgramParameter(arg1, arg2 >>> 0);
|
|
672
|
+
return ret;
|
|
673
|
+
},
|
|
674
|
+
__wbg_getProgramParameter_3edd526f9e5f6c10: function(arg0, arg1, arg2) {
|
|
675
|
+
const ret = arg0.getProgramParameter(arg1, arg2 >>> 0);
|
|
676
|
+
return ret;
|
|
677
|
+
},
|
|
678
|
+
__wbg_getPropertyValue_c0aae8b8341401f1: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
679
|
+
const ret = arg1.getPropertyValue(getStringFromWasm0(arg2, arg3));
|
|
680
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
681
|
+
const len1 = WASM_VECTOR_LEN;
|
|
682
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
683
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
684
|
+
}, arguments); },
|
|
685
|
+
__wbg_getRootNode_6de097189559981d: function(arg0) {
|
|
686
|
+
const ret = arg0.getRootNode();
|
|
687
|
+
return ret;
|
|
688
|
+
},
|
|
689
|
+
__wbg_getShaderInfoLog_3cfe5b3e097d0f2d: function(arg0, arg1, arg2) {
|
|
690
|
+
const ret = arg1.getShaderInfoLog(arg2);
|
|
691
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
692
|
+
var len1 = WASM_VECTOR_LEN;
|
|
693
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
694
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
695
|
+
},
|
|
696
|
+
__wbg_getShaderInfoLog_8758e8aea7960121: function(arg0, arg1, arg2) {
|
|
697
|
+
const ret = arg1.getShaderInfoLog(arg2);
|
|
698
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
699
|
+
var len1 = WASM_VECTOR_LEN;
|
|
700
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
701
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
702
|
+
},
|
|
703
|
+
__wbg_getShaderParameter_a346f74d5ba41c4b: function(arg0, arg1, arg2) {
|
|
704
|
+
const ret = arg0.getShaderParameter(arg1, arg2 >>> 0);
|
|
705
|
+
return ret;
|
|
706
|
+
},
|
|
707
|
+
__wbg_getShaderParameter_fc64069fbc010d19: function(arg0, arg1, arg2) {
|
|
708
|
+
const ret = arg0.getShaderParameter(arg1, arg2 >>> 0);
|
|
709
|
+
return ret;
|
|
710
|
+
},
|
|
711
|
+
__wbg_getSupportedExtensions_3cf028ec80655a75: function(arg0) {
|
|
712
|
+
const ret = arg0.getSupportedExtensions();
|
|
713
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
714
|
+
},
|
|
715
|
+
__wbg_getSupportedExtensions_f48b337512e8f8ce: function(arg0) {
|
|
716
|
+
const ret = arg0.getSupportedExtensions();
|
|
717
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
718
|
+
},
|
|
719
|
+
__wbg_getUniformLocation_6352e0669c8f5393: function(arg0, arg1, arg2, arg3) {
|
|
720
|
+
const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3));
|
|
721
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
722
|
+
},
|
|
723
|
+
__wbg_getUniformLocation_e0d11c86376cdd26: function(arg0, arg1, arg2, arg3) {
|
|
724
|
+
const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3));
|
|
725
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
726
|
+
},
|
|
727
|
+
__wbg_get_2080c49015e35254: function() { return handleError(function (arg0, arg1) {
|
|
728
|
+
const ret = Reflect.get(arg0, arg1);
|
|
729
|
+
return ret;
|
|
730
|
+
}, arguments); },
|
|
731
|
+
__wbg_get_955bde2b2fe2defa: function(arg0, arg1) {
|
|
732
|
+
const ret = arg0[arg1 >>> 0];
|
|
733
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
734
|
+
},
|
|
735
|
+
__wbg_get_a1361571ec6a08ad: function(arg0, arg1) {
|
|
736
|
+
const ret = arg0[arg1 >>> 0];
|
|
737
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
738
|
+
},
|
|
739
|
+
__wbg_get_c69af7448e1ad5c0: function(arg0, arg1) {
|
|
740
|
+
const ret = arg0[arg1 >>> 0];
|
|
741
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
742
|
+
},
|
|
743
|
+
__wbg_get_unchecked_e6325ad374eff861: function(arg0, arg1) {
|
|
744
|
+
const ret = arg0[arg1 >>> 0];
|
|
745
|
+
return ret;
|
|
746
|
+
},
|
|
747
|
+
__wbg_hash_20c2dd23244d8e75: function() { return handleError(function (arg0, arg1) {
|
|
748
|
+
const ret = arg1.hash;
|
|
749
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
750
|
+
const len1 = WASM_VECTOR_LEN;
|
|
751
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
752
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
753
|
+
}, arguments); },
|
|
754
|
+
__wbg_height_4e985809fcad22ec: function(arg0) {
|
|
755
|
+
const ret = arg0.height;
|
|
756
|
+
return ret;
|
|
757
|
+
},
|
|
758
|
+
__wbg_height_ac6f1c3f49c13fe2: function(arg0) {
|
|
759
|
+
const ret = arg0.height;
|
|
760
|
+
return ret;
|
|
761
|
+
},
|
|
762
|
+
__wbg_hidden_34dfd3711ef53b31: function(arg0) {
|
|
763
|
+
const ret = arg0.hidden;
|
|
764
|
+
return ret;
|
|
765
|
+
},
|
|
766
|
+
__wbg_host_0832e2670dc79e53: function() { return handleError(function (arg0, arg1) {
|
|
767
|
+
const ret = arg1.host;
|
|
768
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
769
|
+
const len1 = WASM_VECTOR_LEN;
|
|
770
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
771
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
772
|
+
}, arguments); },
|
|
773
|
+
__wbg_hostname_e42e6cb425d7924e: function() { return handleError(function (arg0, arg1) {
|
|
774
|
+
const ret = arg1.hostname;
|
|
775
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
776
|
+
const len1 = WASM_VECTOR_LEN;
|
|
777
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
778
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
779
|
+
}, arguments); },
|
|
780
|
+
__wbg_href_a0128fb7c568d8e5: function() { return handleError(function (arg0, arg1) {
|
|
781
|
+
const ret = arg1.href;
|
|
782
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
783
|
+
const len1 = WASM_VECTOR_LEN;
|
|
784
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
785
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
786
|
+
}, arguments); },
|
|
787
|
+
__wbg_id_2aec05cae0b5abeb: function(arg0, arg1) {
|
|
788
|
+
const ret = arg1.id;
|
|
789
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
790
|
+
const len1 = WASM_VECTOR_LEN;
|
|
791
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
792
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
793
|
+
},
|
|
794
|
+
__wbg_identifier_a3f04561174d66d3: function(arg0) {
|
|
795
|
+
const ret = arg0.identifier;
|
|
796
|
+
return ret;
|
|
797
|
+
},
|
|
798
|
+
__wbg_inlineSize_0be24bd91656e021: function(arg0) {
|
|
799
|
+
const ret = arg0.inlineSize;
|
|
800
|
+
return ret;
|
|
801
|
+
},
|
|
802
|
+
__wbg_inputType_871ec3c14b5b9f6a: function(arg0, arg1) {
|
|
803
|
+
const ret = arg1.inputType;
|
|
804
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
805
|
+
const len1 = WASM_VECTOR_LEN;
|
|
806
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
807
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
808
|
+
},
|
|
809
|
+
__wbg_insertBefore_10ab0c19b463c12b: function() { return handleError(function (arg0, arg1, arg2) {
|
|
810
|
+
const ret = arg0.insertBefore(arg1, arg2);
|
|
811
|
+
return ret;
|
|
812
|
+
}, arguments); },
|
|
813
|
+
__wbg_instanceof_CanvasRenderingContext2d_72a60be8aaadecab: function(arg0) {
|
|
814
|
+
let result;
|
|
815
|
+
try {
|
|
816
|
+
result = arg0 instanceof CanvasRenderingContext2D;
|
|
817
|
+
} catch (_) {
|
|
818
|
+
result = false;
|
|
819
|
+
}
|
|
820
|
+
const ret = result;
|
|
821
|
+
return ret;
|
|
822
|
+
},
|
|
823
|
+
__wbg_instanceof_Document_b3d3a5e7905b4a2f: function(arg0) {
|
|
824
|
+
let result;
|
|
825
|
+
try {
|
|
826
|
+
result = arg0 instanceof Document;
|
|
827
|
+
} catch (_) {
|
|
828
|
+
result = false;
|
|
829
|
+
}
|
|
830
|
+
const ret = result;
|
|
831
|
+
return ret;
|
|
832
|
+
},
|
|
833
|
+
__wbg_instanceof_Element_05dbb22ded594343: function(arg0) {
|
|
834
|
+
let result;
|
|
835
|
+
try {
|
|
836
|
+
result = arg0 instanceof Element;
|
|
837
|
+
} catch (_) {
|
|
838
|
+
result = false;
|
|
839
|
+
}
|
|
840
|
+
const ret = result;
|
|
841
|
+
return ret;
|
|
842
|
+
},
|
|
843
|
+
__wbg_instanceof_HtmlCanvasElement_89f280683e987b9e: function(arg0) {
|
|
844
|
+
let result;
|
|
845
|
+
try {
|
|
846
|
+
result = arg0 instanceof HTMLCanvasElement;
|
|
847
|
+
} catch (_) {
|
|
848
|
+
result = false;
|
|
849
|
+
}
|
|
850
|
+
const ret = result;
|
|
851
|
+
return ret;
|
|
852
|
+
},
|
|
853
|
+
__wbg_instanceof_HtmlInputElement_28751c98d77a5a65: function(arg0) {
|
|
854
|
+
let result;
|
|
855
|
+
try {
|
|
856
|
+
result = arg0 instanceof HTMLInputElement;
|
|
857
|
+
} catch (_) {
|
|
858
|
+
result = false;
|
|
859
|
+
}
|
|
860
|
+
const ret = result;
|
|
861
|
+
return ret;
|
|
862
|
+
},
|
|
863
|
+
__wbg_instanceof_ResizeObserverEntry_a0c6243afc3437cc: function(arg0) {
|
|
864
|
+
let result;
|
|
865
|
+
try {
|
|
866
|
+
result = arg0 instanceof ResizeObserverEntry;
|
|
867
|
+
} catch (_) {
|
|
868
|
+
result = false;
|
|
869
|
+
}
|
|
870
|
+
const ret = result;
|
|
871
|
+
return ret;
|
|
872
|
+
},
|
|
873
|
+
__wbg_instanceof_ResizeObserverSize_f8702ac4737486d8: function(arg0) {
|
|
874
|
+
let result;
|
|
875
|
+
try {
|
|
876
|
+
result = arg0 instanceof ResizeObserverSize;
|
|
877
|
+
} catch (_) {
|
|
878
|
+
result = false;
|
|
879
|
+
}
|
|
880
|
+
const ret = result;
|
|
881
|
+
return ret;
|
|
882
|
+
},
|
|
883
|
+
__wbg_instanceof_ShadowRoot_cd78159e03fed884: function(arg0) {
|
|
884
|
+
let result;
|
|
885
|
+
try {
|
|
886
|
+
result = arg0 instanceof ShadowRoot;
|
|
887
|
+
} catch (_) {
|
|
888
|
+
result = false;
|
|
889
|
+
}
|
|
890
|
+
const ret = result;
|
|
891
|
+
return ret;
|
|
892
|
+
},
|
|
893
|
+
__wbg_instanceof_WebGl2RenderingContext_de6feb460369d6c6: function(arg0) {
|
|
894
|
+
let result;
|
|
895
|
+
try {
|
|
896
|
+
result = arg0 instanceof WebGL2RenderingContext;
|
|
897
|
+
} catch (_) {
|
|
898
|
+
result = false;
|
|
899
|
+
}
|
|
900
|
+
const ret = result;
|
|
901
|
+
return ret;
|
|
902
|
+
},
|
|
903
|
+
__wbg_instanceof_WebGlRenderingContext_6e70e224f022d27a: function(arg0) {
|
|
904
|
+
let result;
|
|
905
|
+
try {
|
|
906
|
+
result = arg0 instanceof WebGLRenderingContext;
|
|
907
|
+
} catch (_) {
|
|
908
|
+
result = false;
|
|
909
|
+
}
|
|
910
|
+
const ret = result;
|
|
911
|
+
return ret;
|
|
912
|
+
},
|
|
913
|
+
__wbg_instanceof_Window_5cf453f5639aa1a2: function(arg0) {
|
|
914
|
+
let result;
|
|
915
|
+
try {
|
|
916
|
+
result = arg0 instanceof Window;
|
|
917
|
+
} catch (_) {
|
|
918
|
+
result = false;
|
|
919
|
+
}
|
|
920
|
+
const ret = result;
|
|
921
|
+
return ret;
|
|
922
|
+
},
|
|
923
|
+
__wbg_isComposing_4b9450ae90c4e806: function(arg0) {
|
|
924
|
+
const ret = arg0.isComposing;
|
|
925
|
+
return ret;
|
|
926
|
+
},
|
|
927
|
+
__wbg_isComposing_b1e74068b6ff27e2: function(arg0) {
|
|
928
|
+
const ret = arg0.isComposing;
|
|
929
|
+
return ret;
|
|
930
|
+
},
|
|
931
|
+
__wbg_isSecureContext_6b3c96e6b1051931: function(arg0) {
|
|
932
|
+
const ret = arg0.isSecureContext;
|
|
933
|
+
return ret;
|
|
934
|
+
},
|
|
935
|
+
__wbg_is_2248ff2b575d60c7: function(arg0, arg1) {
|
|
936
|
+
const ret = Object.is(arg0, arg1);
|
|
937
|
+
return ret;
|
|
938
|
+
},
|
|
939
|
+
__wbg_item_18c413e928250a06: function(arg0, arg1) {
|
|
940
|
+
const ret = arg0.item(arg1 >>> 0);
|
|
941
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
942
|
+
},
|
|
943
|
+
__wbg_items_37c99e94f307e5a6: function(arg0) {
|
|
944
|
+
const ret = arg0.items;
|
|
945
|
+
return ret;
|
|
946
|
+
},
|
|
947
|
+
__wbg_keyCode_8de649c9821071f4: function(arg0) {
|
|
948
|
+
const ret = arg0.keyCode;
|
|
949
|
+
return ret;
|
|
950
|
+
},
|
|
951
|
+
__wbg_key_76125a528069feff: function(arg0, arg1) {
|
|
952
|
+
const ret = arg1.key;
|
|
953
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
954
|
+
const len1 = WASM_VECTOR_LEN;
|
|
955
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
956
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
957
|
+
},
|
|
958
|
+
__wbg_left_9df47701ff317a35: function(arg0) {
|
|
959
|
+
const ret = arg0.left;
|
|
960
|
+
return ret;
|
|
961
|
+
},
|
|
962
|
+
__wbg_length_186163212ffe79c3: function(arg0) {
|
|
963
|
+
const ret = arg0.length;
|
|
964
|
+
return ret;
|
|
965
|
+
},
|
|
966
|
+
__wbg_length_5031527eccbd59fd: function(arg0) {
|
|
967
|
+
const ret = arg0.length;
|
|
968
|
+
return ret;
|
|
969
|
+
},
|
|
970
|
+
__wbg_length_694310723930d77e: function(arg0) {
|
|
971
|
+
const ret = arg0.length;
|
|
972
|
+
return ret;
|
|
973
|
+
},
|
|
974
|
+
__wbg_length_b03a0fabb109b1e9: function(arg0) {
|
|
975
|
+
const ret = arg0.length;
|
|
976
|
+
return ret;
|
|
977
|
+
},
|
|
978
|
+
__wbg_length_ee846b4d1e8404a8: function(arg0) {
|
|
979
|
+
const ret = arg0.length;
|
|
980
|
+
return ret;
|
|
981
|
+
},
|
|
982
|
+
__wbg_linkProgram_99848b73f1ebab5f: function(arg0, arg1) {
|
|
983
|
+
arg0.linkProgram(arg1);
|
|
984
|
+
},
|
|
985
|
+
__wbg_linkProgram_dee7cda98bacb12f: function(arg0, arg1) {
|
|
986
|
+
arg0.linkProgram(arg1);
|
|
987
|
+
},
|
|
988
|
+
__wbg_localStorage_6827cfe6db14a9f6: function() { return handleError(function (arg0) {
|
|
989
|
+
const ret = arg0.localStorage;
|
|
990
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
991
|
+
}, arguments); },
|
|
992
|
+
__wbg_location_7320782274fc691b: function(arg0) {
|
|
993
|
+
const ret = arg0.location;
|
|
994
|
+
return ret;
|
|
995
|
+
},
|
|
996
|
+
__wbg_matchMedia_b53687d22ec43649: function() { return handleError(function (arg0, arg1, arg2) {
|
|
997
|
+
const ret = arg0.matchMedia(getStringFromWasm0(arg1, arg2));
|
|
998
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
999
|
+
}, arguments); },
|
|
1000
|
+
__wbg_matches_a47c420646498c64: function(arg0) {
|
|
1001
|
+
const ret = arg0.matches;
|
|
1002
|
+
return ret;
|
|
1003
|
+
},
|
|
1004
|
+
__wbg_measureText_d831259b682a3f7d: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1005
|
+
const ret = arg0.measureText(getStringFromWasm0(arg1, arg2));
|
|
1006
|
+
return ret;
|
|
1007
|
+
}, arguments); },
|
|
1008
|
+
__wbg_metaKey_33c588e07fd74724: function(arg0) {
|
|
1009
|
+
const ret = arg0.metaKey;
|
|
1010
|
+
return ret;
|
|
1011
|
+
},
|
|
1012
|
+
__wbg_metaKey_34b378e7ba352fd6: function(arg0) {
|
|
1013
|
+
const ret = arg0.metaKey;
|
|
1014
|
+
return ret;
|
|
1015
|
+
},
|
|
1016
|
+
__wbg_name_f721590be23206c9: function(arg0, arg1) {
|
|
1017
|
+
const ret = arg1.name;
|
|
1018
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1019
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1020
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
1021
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
1022
|
+
},
|
|
1023
|
+
__wbg_navigator_c17f443a6fe5d38d: function(arg0) {
|
|
1024
|
+
const ret = arg0.navigator;
|
|
1025
|
+
return ret;
|
|
1026
|
+
},
|
|
1027
|
+
__wbg_new_13de428334042d26: function(arg0) {
|
|
1028
|
+
const ret = new Uint8Array(arg0);
|
|
1029
|
+
return ret;
|
|
1030
|
+
},
|
|
1031
|
+
__wbg_new_37eb45aaf5eeb820: function() {
|
|
1032
|
+
const ret = new Array();
|
|
1033
|
+
return ret;
|
|
1034
|
+
},
|
|
1035
|
+
__wbg_new_bb74001155cb8ca8: function() {
|
|
1036
|
+
const ret = new Error();
|
|
1037
|
+
return ret;
|
|
1038
|
+
},
|
|
1039
|
+
__wbg_new_bdf613c6b0b3d702: function() { return handleError(function (arg0) {
|
|
1040
|
+
const ret = new ResizeObserver(arg0);
|
|
1041
|
+
return ret;
|
|
1042
|
+
}, arguments); },
|
|
1043
|
+
__wbg_new_be767ce9dca9f423: function() {
|
|
1044
|
+
const ret = new Error();
|
|
1045
|
+
return ret;
|
|
1046
|
+
},
|
|
1047
|
+
__wbg_new_cd4348290afae586: function() {
|
|
1048
|
+
const ret = new Object();
|
|
1049
|
+
return ret;
|
|
1050
|
+
},
|
|
1051
|
+
__wbg_new_from_slice_b8daf545a41c6aa0: function(arg0, arg1) {
|
|
1052
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1053
|
+
return ret;
|
|
1054
|
+
},
|
|
1055
|
+
__wbg_new_typed_e09da9dae6ee5935: function(arg0, arg1) {
|
|
1056
|
+
try {
|
|
1057
|
+
var state0 = {a: arg0, b: arg1};
|
|
1058
|
+
var cb0 = (arg0, arg1) => {
|
|
1059
|
+
const a = state0.a;
|
|
1060
|
+
state0.a = 0;
|
|
1061
|
+
try {
|
|
1062
|
+
return wasm_bindgen_e8fadb86c21d1ac6___convert__closures_____invoke___js_sys_4d64f92870bcf95f___Function_fn_wasm_bindgen_e8fadb86c21d1ac6___JsValue_____wasm_bindgen_e8fadb86c21d1ac6___sys__Undefined___js_sys_4d64f92870bcf95f___Function_fn_wasm_bindgen_e8fadb86c21d1ac6___JsValue_____wasm_bindgen_e8fadb86c21d1ac6___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
1063
|
+
} finally {
|
|
1064
|
+
state0.a = a;
|
|
1065
|
+
}
|
|
1066
|
+
};
|
|
1067
|
+
const ret = new Promise(cb0);
|
|
1068
|
+
return ret;
|
|
1069
|
+
} finally {
|
|
1070
|
+
state0.a = 0;
|
|
1071
|
+
}
|
|
1072
|
+
},
|
|
1073
|
+
__wbg_new_with_record_from_str_to_blob_promise_ecd5efb169d8daf2: function() { return handleError(function (arg0) {
|
|
1074
|
+
const ret = new ClipboardItem(arg0);
|
|
1075
|
+
return ret;
|
|
1076
|
+
}, arguments); },
|
|
1077
|
+
__wbg_new_with_u8_array_sequence_and_options_ca80bf9b8bbc67cf: function() { return handleError(function (arg0, arg1) {
|
|
1078
|
+
const ret = new Blob(arg0, arg1);
|
|
1079
|
+
return ret;
|
|
1080
|
+
}, arguments); },
|
|
1081
|
+
__wbg_nextSibling_91136dc7a8ec9b09: function(arg0) {
|
|
1082
|
+
const ret = arg0.nextSibling;
|
|
1083
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1084
|
+
},
|
|
1085
|
+
__wbg_now_043d245551b22f9c: function(arg0) {
|
|
1086
|
+
const ret = arg0.now();
|
|
1087
|
+
return ret;
|
|
1088
|
+
},
|
|
1089
|
+
__wbg_now_e7c6795a7f81e10f: function(arg0) {
|
|
1090
|
+
const ret = arg0.now();
|
|
1091
|
+
return ret;
|
|
1092
|
+
},
|
|
1093
|
+
__wbg_observe_2ffc8a70dc1147d1: function(arg0, arg1, arg2) {
|
|
1094
|
+
arg0.observe(arg1, arg2);
|
|
1095
|
+
},
|
|
1096
|
+
__wbg_of_027eb15371aac932: function(arg0) {
|
|
1097
|
+
const ret = Array.of(arg0);
|
|
1098
|
+
return ret;
|
|
1099
|
+
},
|
|
1100
|
+
__wbg_offsetLeft_92a24794573f070b: function(arg0) {
|
|
1101
|
+
const ret = arg0.offsetLeft;
|
|
1102
|
+
return ret;
|
|
1103
|
+
},
|
|
1104
|
+
__wbg_offsetTop_18b5450f7d71de7f: function(arg0) {
|
|
1105
|
+
const ret = arg0.offsetTop;
|
|
1106
|
+
return ret;
|
|
1107
|
+
},
|
|
1108
|
+
__wbg_open_25109992994e4492: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1109
|
+
const ret = arg0.open(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1110
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1111
|
+
}, arguments); },
|
|
1112
|
+
__wbg_origin_dafa41a3ee9236b1: function() { return handleError(function (arg0, arg1) {
|
|
1113
|
+
const ret = arg1.origin;
|
|
1114
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1115
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1116
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
1117
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
1118
|
+
}, arguments); },
|
|
1119
|
+
__wbg_parentNode_fe15bcc26df42856: function(arg0) {
|
|
1120
|
+
const ret = arg0.parentNode;
|
|
1121
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1122
|
+
},
|
|
1123
|
+
__wbg_performance_50e6a3f8dc80bbca: function(arg0) {
|
|
1124
|
+
const ret = arg0.performance;
|
|
1125
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1126
|
+
},
|
|
1127
|
+
__wbg_performance_7e4e4494fdc9d07a: function(arg0) {
|
|
1128
|
+
const ret = arg0.performance;
|
|
1129
|
+
return ret;
|
|
1130
|
+
},
|
|
1131
|
+
__wbg_pixelStorei_43dc7945a0d4d49c: function(arg0, arg1, arg2) {
|
|
1132
|
+
arg0.pixelStorei(arg1 >>> 0, arg2);
|
|
1133
|
+
},
|
|
1134
|
+
__wbg_pixelStorei_6dd56b4da047c480: function(arg0, arg1, arg2) {
|
|
1135
|
+
arg0.pixelStorei(arg1 >>> 0, arg2);
|
|
1136
|
+
},
|
|
1137
|
+
__wbg_port_114bc900ca0e4c6d: function() { return handleError(function (arg0, arg1) {
|
|
1138
|
+
const ret = arg1.port;
|
|
1139
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1140
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1141
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
1142
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
1143
|
+
}, arguments); },
|
|
1144
|
+
__wbg_preventDefault_cfb06b02e7406899: function(arg0) {
|
|
1145
|
+
arg0.preventDefault();
|
|
1146
|
+
},
|
|
1147
|
+
__wbg_protocol_c60aedf8a6fa9fca: function() { return handleError(function (arg0, arg1) {
|
|
1148
|
+
const ret = arg1.protocol;
|
|
1149
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1150
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1151
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
1152
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
1153
|
+
}, arguments); },
|
|
1154
|
+
__wbg_prototypesetcall_13162965d1fe7aa3: function(arg0, arg1, arg2) {
|
|
1155
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1156
|
+
},
|
|
1157
|
+
__wbg_push_c9f4893fc209f768: function(arg0, arg1) {
|
|
1158
|
+
const ret = arg0.push(arg1);
|
|
1159
|
+
return ret;
|
|
1160
|
+
},
|
|
1161
|
+
__wbg_queueMicrotask_1e8503a8a690f0a3: function(arg0) {
|
|
1162
|
+
const ret = arg0.queueMicrotask;
|
|
1163
|
+
return ret;
|
|
1164
|
+
},
|
|
1165
|
+
__wbg_queueMicrotask_4a1a4d8dd332373b: function(arg0) {
|
|
1166
|
+
queueMicrotask(arg0);
|
|
1167
|
+
},
|
|
1168
|
+
__wbg_readPixels_22316d250d820aff: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
1169
|
+
arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
|
|
1170
|
+
}, arguments); },
|
|
1171
|
+
__wbg_readPixels_56a96c4d106afcbc: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
1172
|
+
arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
|
|
1173
|
+
}, arguments); },
|
|
1174
|
+
__wbg_readPixels_7c7b54a733248182: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
1175
|
+
arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
|
|
1176
|
+
}, arguments); },
|
|
1177
|
+
__wbg_removeEventListener_4e20bd5fac3de092: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1178
|
+
arg0.removeEventListener(getStringFromWasm0(arg1, arg2), arg3);
|
|
1179
|
+
}, arguments); },
|
|
1180
|
+
__wbg_removeItem_6db621e167d16a1c: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1181
|
+
arg0.removeItem(getStringFromWasm0(arg1, arg2));
|
|
1182
|
+
}, arguments); },
|
|
1183
|
+
__wbg_remove_8228e91d7ddbc755: function(arg0) {
|
|
1184
|
+
arg0.remove();
|
|
1185
|
+
},
|
|
1186
|
+
__wbg_requestAnimationFrame_9ba49d36a19ca83c: function() { return handleError(function (arg0, arg1) {
|
|
1187
|
+
const ret = arg0.requestAnimationFrame(arg1);
|
|
1188
|
+
return ret;
|
|
1189
|
+
}, arguments); },
|
|
1190
|
+
__wbg_resolve_dbf78ab4942478b0: function(arg0) {
|
|
1191
|
+
const ret = Promise.resolve(arg0);
|
|
1192
|
+
return ret;
|
|
1193
|
+
},
|
|
1194
|
+
__wbg_right_87f14139bda7986d: function(arg0) {
|
|
1195
|
+
const ret = arg0.right;
|
|
1196
|
+
return ret;
|
|
1197
|
+
},
|
|
1198
|
+
__wbg_scissor_17956d9d23dfe025: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1199
|
+
arg0.scissor(arg1, arg2, arg3, arg4);
|
|
1200
|
+
},
|
|
1201
|
+
__wbg_scissor_bb7201f050f220ac: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1202
|
+
arg0.scissor(arg1, arg2, arg3, arg4);
|
|
1203
|
+
},
|
|
1204
|
+
__wbg_search_b8ba44c19bb02b19: function() { return handleError(function (arg0, arg1) {
|
|
1205
|
+
const ret = arg1.search;
|
|
1206
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1207
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1208
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
1209
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
1210
|
+
}, arguments); },
|
|
1211
|
+
__wbg_selectionEnd_785eea54e3259c55: function() { return handleError(function (arg0) {
|
|
1212
|
+
const ret = arg0.selectionEnd;
|
|
1213
|
+
return isLikeNone(ret) ? Number.MAX_SAFE_INTEGER : (ret) >>> 0;
|
|
1214
|
+
}, arguments); },
|
|
1215
|
+
__wbg_selectionStart_e1929323816eb3da: function() { return handleError(function (arg0) {
|
|
1216
|
+
const ret = arg0.selectionStart;
|
|
1217
|
+
return isLikeNone(ret) ? Number.MAX_SAFE_INTEGER : (ret) >>> 0;
|
|
1218
|
+
}, arguments); },
|
|
1219
|
+
__wbg_setAttribute_f75317b2b5cabfb4: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1220
|
+
arg0.setAttribute(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1221
|
+
}, arguments); },
|
|
1222
|
+
__wbg_setItem_cfa3cb31f271776a: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1223
|
+
arg0.setItem(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1224
|
+
}, arguments); },
|
|
1225
|
+
__wbg_setProperty_3fe74e09d53acb0b: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1226
|
+
arg0.setProperty(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1227
|
+
}, arguments); },
|
|
1228
|
+
__wbg_setTimeout_9ef22b48643bd7de: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1229
|
+
const ret = arg0.setTimeout(arg1, arg2);
|
|
1230
|
+
return ret;
|
|
1231
|
+
}, arguments); },
|
|
1232
|
+
__wbg_set_2793479888329cb6: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1233
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1234
|
+
return ret;
|
|
1235
|
+
}, arguments); },
|
|
1236
|
+
__wbg_set_box_fc386a28d2eedbf8: function(arg0, arg1) {
|
|
1237
|
+
arg0.box = __wbindgen_enum_ResizeObserverBoxOptions[arg1];
|
|
1238
|
+
},
|
|
1239
|
+
__wbg_set_fillStyle_95fde67582a9c695: function(arg0, arg1, arg2) {
|
|
1240
|
+
arg0.fillStyle = getStringFromWasm0(arg1, arg2);
|
|
1241
|
+
},
|
|
1242
|
+
__wbg_set_font_aa0c0c514c73a5fa: function(arg0, arg1, arg2) {
|
|
1243
|
+
arg0.font = getStringFromWasm0(arg1, arg2);
|
|
1244
|
+
},
|
|
1245
|
+
__wbg_set_height_ae0610d318c3428c: function(arg0, arg1) {
|
|
1246
|
+
arg0.height = arg1 >>> 0;
|
|
1247
|
+
},
|
|
1248
|
+
__wbg_set_once_ee3e8ed5823add1f: function(arg0, arg1) {
|
|
1249
|
+
arg0.once = arg1 !== 0;
|
|
1250
|
+
},
|
|
1251
|
+
__wbg_set_prevent_scroll_1d8392770c4be456: function(arg0, arg1) {
|
|
1252
|
+
arg0.preventScroll = arg1 !== 0;
|
|
1253
|
+
},
|
|
1254
|
+
__wbg_set_tabIndex_38e2c0c2e76c66c5: function(arg0, arg1) {
|
|
1255
|
+
arg0.tabIndex = arg1;
|
|
1256
|
+
},
|
|
1257
|
+
__wbg_set_textBaseline_ff2e3c5c84684b23: function(arg0, arg1, arg2) {
|
|
1258
|
+
arg0.textBaseline = getStringFromWasm0(arg1, arg2);
|
|
1259
|
+
},
|
|
1260
|
+
__wbg_set_type_609b0cea6429d7bb: function(arg0, arg1, arg2) {
|
|
1261
|
+
arg0.type = getStringFromWasm0(arg1, arg2);
|
|
1262
|
+
},
|
|
1263
|
+
__wbg_set_type_9f32b0fcce9b6bbd: function(arg0, arg1, arg2) {
|
|
1264
|
+
arg0.type = getStringFromWasm0(arg1, arg2);
|
|
1265
|
+
},
|
|
1266
|
+
__wbg_set_value_cb7e77c93a95e491: function(arg0, arg1, arg2) {
|
|
1267
|
+
arg0.value = getStringFromWasm0(arg1, arg2);
|
|
1268
|
+
},
|
|
1269
|
+
__wbg_set_width_5f89a551b5472887: function(arg0, arg1) {
|
|
1270
|
+
arg0.width = arg1 >>> 0;
|
|
1271
|
+
},
|
|
1272
|
+
__wbg_shaderSource_519d0f56b613b2f9: function(arg0, arg1, arg2, arg3) {
|
|
1273
|
+
arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3));
|
|
1274
|
+
},
|
|
1275
|
+
__wbg_shaderSource_c4c06a3cbc2e7bf3: function(arg0, arg1, arg2, arg3) {
|
|
1276
|
+
arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3));
|
|
1277
|
+
},
|
|
1278
|
+
__wbg_shiftKey_6a84be2563ae8a55: function(arg0) {
|
|
1279
|
+
const ret = arg0.shiftKey;
|
|
1280
|
+
return ret;
|
|
1281
|
+
},
|
|
1282
|
+
__wbg_shiftKey_a6ce93ef743d5834: function(arg0) {
|
|
1283
|
+
const ret = arg0.shiftKey;
|
|
1284
|
+
return ret;
|
|
1285
|
+
},
|
|
1286
|
+
__wbg_size_9d1084e29743663c: function(arg0) {
|
|
1287
|
+
const ret = arg0.size;
|
|
1288
|
+
return ret;
|
|
1289
|
+
},
|
|
1290
|
+
__wbg_stack_092f03445bd38006: function(arg0, arg1) {
|
|
1291
|
+
const ret = arg1.stack;
|
|
1292
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1293
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1294
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
1295
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
1296
|
+
},
|
|
1297
|
+
__wbg_stack_575c4e0918581b9c: function(arg0, arg1) {
|
|
1298
|
+
const ret = arg1.stack;
|
|
1299
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1300
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1301
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
1302
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
1303
|
+
},
|
|
1304
|
+
__wbg_static_accessor_GLOBAL_THIS_003ee833af9699fc: function() {
|
|
1305
|
+
const ret = typeof globalThis === 'undefined' ? undefined : globalThis;
|
|
1306
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1307
|
+
},
|
|
1308
|
+
__wbg_static_accessor_GLOBAL_e4293fb22cbe77da: function() {
|
|
1309
|
+
const ret = typeof global === 'undefined' ? undefined : global;
|
|
1310
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1311
|
+
},
|
|
1312
|
+
__wbg_static_accessor_SELF_53bb20457401453d: function() {
|
|
1313
|
+
const ret = typeof self === 'undefined' ? undefined : self;
|
|
1314
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1315
|
+
},
|
|
1316
|
+
__wbg_static_accessor_WINDOW_b5e0810bfecb7feb: function() {
|
|
1317
|
+
const ret = typeof window === 'undefined' ? undefined : window;
|
|
1318
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1319
|
+
},
|
|
1320
|
+
__wbg_stopPropagation_e4181c041abda4c3: function(arg0) {
|
|
1321
|
+
arg0.stopPropagation();
|
|
1322
|
+
},
|
|
1323
|
+
__wbg_style_f499e599ac70277f: function(arg0) {
|
|
1324
|
+
const ret = arg0.style;
|
|
1325
|
+
return ret;
|
|
1326
|
+
},
|
|
1327
|
+
__wbg_texImage2D_20b5002326193fe6: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
1328
|
+
arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
1329
|
+
}, arguments); },
|
|
1330
|
+
__wbg_texImage2D_5048d2cd8540da16: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
1331
|
+
arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
1332
|
+
}, arguments); },
|
|
1333
|
+
__wbg_texImage2D_84bdef619a1ea935: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
1334
|
+
arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
1335
|
+
}, arguments); },
|
|
1336
|
+
__wbg_texParameteri_0afc5d515132fed2: function(arg0, arg1, arg2, arg3) {
|
|
1337
|
+
arg0.texParameteri(arg1 >>> 0, arg2 >>> 0, arg3);
|
|
1338
|
+
},
|
|
1339
|
+
__wbg_texParameteri_e24e4fdc17153838: function(arg0, arg1, arg2, arg3) {
|
|
1340
|
+
arg0.texParameteri(arg1 >>> 0, arg2 >>> 0, arg3);
|
|
1341
|
+
},
|
|
1342
|
+
__wbg_texSubImage2D_4343af4633b8b8f8: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
1343
|
+
arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
1344
|
+
}, arguments); },
|
|
1345
|
+
__wbg_texSubImage2D_4aef07460a86c81e: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
1346
|
+
arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
1347
|
+
}, arguments); },
|
|
1348
|
+
__wbg_texSubImage2D_a26a8700e734449a: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
1349
|
+
arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
1350
|
+
}, arguments); },
|
|
1351
|
+
__wbg_then_656f253a5dd7d8ea: function(arg0, arg1, arg2) {
|
|
1352
|
+
const ret = arg0.then(arg1, arg2);
|
|
1353
|
+
return ret;
|
|
1354
|
+
},
|
|
1355
|
+
__wbg_then_e3f7f2d365708be8: function(arg0, arg1) {
|
|
1356
|
+
const ret = arg0.then(arg1);
|
|
1357
|
+
return ret;
|
|
1358
|
+
},
|
|
1359
|
+
__wbg_top_2d45cda4e060d8bf: function(arg0) {
|
|
1360
|
+
const ret = arg0.top;
|
|
1361
|
+
return ret;
|
|
1362
|
+
},
|
|
1363
|
+
__wbg_touches_3e4459518c751cbf: function(arg0) {
|
|
1364
|
+
const ret = arg0.touches;
|
|
1365
|
+
return ret;
|
|
1366
|
+
},
|
|
1367
|
+
__wbg_type_7fa681d1ded98131: function(arg0, arg1) {
|
|
1368
|
+
const ret = arg1.type;
|
|
1369
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1370
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1371
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
1372
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
1373
|
+
},
|
|
1374
|
+
__wbg_uniform1i_385ebc488d4d763f: function(arg0, arg1, arg2) {
|
|
1375
|
+
arg0.uniform1i(arg1, arg2);
|
|
1376
|
+
},
|
|
1377
|
+
__wbg_uniform1i_778a02a48ecdceed: function(arg0, arg1, arg2) {
|
|
1378
|
+
arg0.uniform1i(arg1, arg2);
|
|
1379
|
+
},
|
|
1380
|
+
__wbg_uniform2f_6bd82d6e7f81060b: function(arg0, arg1, arg2, arg3) {
|
|
1381
|
+
arg0.uniform2f(arg1, arg2, arg3);
|
|
1382
|
+
},
|
|
1383
|
+
__wbg_uniform2f_7e4c627c4106dd3f: function(arg0, arg1, arg2, arg3) {
|
|
1384
|
+
arg0.uniform2f(arg1, arg2, arg3);
|
|
1385
|
+
},
|
|
1386
|
+
__wbg_useProgram_d9c24a7d8632c4c1: function(arg0, arg1) {
|
|
1387
|
+
arg0.useProgram(arg1);
|
|
1388
|
+
},
|
|
1389
|
+
__wbg_useProgram_f6341ea2eeea1e5a: function(arg0, arg1) {
|
|
1390
|
+
arg0.useProgram(arg1);
|
|
1391
|
+
},
|
|
1392
|
+
__wbg_userAgent_a20b4771d027eeaa: function() { return handleError(function (arg0, arg1) {
|
|
1393
|
+
const ret = arg1.userAgent;
|
|
1394
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1395
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1396
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
1397
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
1398
|
+
}, arguments); },
|
|
1399
|
+
__wbg_value_df0a0e29a4d182fe: function(arg0, arg1) {
|
|
1400
|
+
const ret = arg1.value;
|
|
1401
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1402
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1403
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
1404
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
1405
|
+
},
|
|
1406
|
+
__wbg_vertexAttribPointer_39b706eb26c50057: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1407
|
+
arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
|
|
1408
|
+
},
|
|
1409
|
+
__wbg_vertexAttribPointer_9e0e4517b8d274bd: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1410
|
+
arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
|
|
1411
|
+
},
|
|
1412
|
+
__wbg_viewport_aaac6dd8cff1831a: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1413
|
+
arg0.viewport(arg1, arg2, arg3, arg4);
|
|
1414
|
+
},
|
|
1415
|
+
__wbg_viewport_cdae9e8b2f33343d: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1416
|
+
arg0.viewport(arg1, arg2, arg3, arg4);
|
|
1417
|
+
},
|
|
1418
|
+
__wbg_width_28f5533f1b3b5abc: function(arg0) {
|
|
1419
|
+
const ret = arg0.width;
|
|
1420
|
+
return ret;
|
|
1421
|
+
},
|
|
1422
|
+
__wbg_width_b81b030bc60498d5: function(arg0) {
|
|
1423
|
+
const ret = arg0.width;
|
|
1424
|
+
return ret;
|
|
1425
|
+
},
|
|
1426
|
+
__wbg_width_babc5dc7654771b1: function(arg0) {
|
|
1427
|
+
const ret = arg0.width;
|
|
1428
|
+
return ret;
|
|
1429
|
+
},
|
|
1430
|
+
__wbg_writeText_6b6a85b68a7dd3eb: function(arg0, arg1, arg2) {
|
|
1431
|
+
const ret = arg0.writeText(getStringFromWasm0(arg1, arg2));
|
|
1432
|
+
return ret;
|
|
1433
|
+
},
|
|
1434
|
+
__wbg_write_e913e5c019572491: function(arg0, arg1) {
|
|
1435
|
+
const ret = arg0.write(arg1);
|
|
1436
|
+
return ret;
|
|
1437
|
+
},
|
|
1438
|
+
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
1439
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1246, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1440
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_e8fadb86c21d1ac6___convert__closures_____invoke___wasm_bindgen_e8fadb86c21d1ac6___JsValue__core_9b3796e30d99ddb7___result__Result_____wasm_bindgen_e8fadb86c21d1ac6___JsError___true_);
|
|
1441
|
+
return ret;
|
|
1442
|
+
},
|
|
1443
|
+
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
1444
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 429, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1445
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_e8fadb86c21d1ac6___convert__closures_____invoke___js_sys_4d64f92870bcf95f___Array______true_);
|
|
1446
|
+
return ret;
|
|
1447
|
+
},
|
|
1448
|
+
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
1449
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 429, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1450
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_e8fadb86c21d1ac6___convert__closures_____invoke___js_sys_4d64f92870bcf95f___Array______true__13);
|
|
1451
|
+
return ret;
|
|
1452
|
+
},
|
|
1453
|
+
__wbindgen_generic_0000000000000004: function(arg0, arg1) {
|
|
1454
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 428, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1455
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_e8fadb86c21d1ac6___convert__closures_____invoke___core_9b3796e30d99ddb7___result__Result_____wasm_bindgen_e8fadb86c21d1ac6___JsValue___true_);
|
|
1456
|
+
return ret;
|
|
1457
|
+
},
|
|
1458
|
+
__wbindgen_generic_0000000000000005: function(arg0, arg1) {
|
|
1459
|
+
// Cast intrinsic for `Ref(Slice(F32)) -> NamedExternref("Float32Array")`.
|
|
1460
|
+
const ret = getArrayF32FromWasm0(arg0, arg1);
|
|
1461
|
+
return ret;
|
|
1462
|
+
},
|
|
1463
|
+
__wbindgen_generic_0000000000000006: function(arg0, arg1) {
|
|
1464
|
+
// Cast intrinsic for `Ref(Slice(I16)) -> NamedExternref("Int16Array")`.
|
|
1465
|
+
const ret = getArrayI16FromWasm0(arg0, arg1);
|
|
1466
|
+
return ret;
|
|
1467
|
+
},
|
|
1468
|
+
__wbindgen_generic_0000000000000007: function(arg0, arg1) {
|
|
1469
|
+
// Cast intrinsic for `Ref(Slice(I32)) -> NamedExternref("Int32Array")`.
|
|
1470
|
+
const ret = getArrayI32FromWasm0(arg0, arg1);
|
|
1471
|
+
return ret;
|
|
1472
|
+
},
|
|
1473
|
+
__wbindgen_generic_0000000000000008: function(arg0, arg1) {
|
|
1474
|
+
// Cast intrinsic for `Ref(Slice(I8)) -> NamedExternref("Int8Array")`.
|
|
1475
|
+
const ret = getArrayI8FromWasm0(arg0, arg1);
|
|
1476
|
+
return ret;
|
|
1477
|
+
},
|
|
1478
|
+
__wbindgen_generic_0000000000000009: function(arg0, arg1) {
|
|
1479
|
+
// Cast intrinsic for `Ref(Slice(U16)) -> NamedExternref("Uint16Array")`.
|
|
1480
|
+
const ret = getArrayU16FromWasm0(arg0, arg1);
|
|
1481
|
+
return ret;
|
|
1482
|
+
},
|
|
1483
|
+
__wbindgen_generic_000000000000000a: function(arg0, arg1) {
|
|
1484
|
+
// Cast intrinsic for `Ref(Slice(U32)) -> NamedExternref("Uint32Array")`.
|
|
1485
|
+
const ret = getArrayU32FromWasm0(arg0, arg1);
|
|
1486
|
+
return ret;
|
|
1487
|
+
},
|
|
1488
|
+
__wbindgen_generic_000000000000000b: function(arg0, arg1) {
|
|
1489
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
1490
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
1491
|
+
return ret;
|
|
1492
|
+
},
|
|
1493
|
+
__wbindgen_generic_000000000000000c: function(arg0, arg1) {
|
|
1494
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1495
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1496
|
+
return ret;
|
|
1497
|
+
},
|
|
1498
|
+
__wbindgen_init_externref_table: function() {
|
|
1499
|
+
const table = wasm.__wbindgen_externrefs;
|
|
1500
|
+
table.set(0, undefined);
|
|
1501
|
+
table.set(1024, undefined);
|
|
1502
|
+
table.set(1025, null);
|
|
1503
|
+
table.set(1026, true);
|
|
1504
|
+
table.set(1027, false);
|
|
1505
|
+
},
|
|
1506
|
+
};
|
|
1507
|
+
return {
|
|
1508
|
+
__proto__: null,
|
|
1509
|
+
"./egui_workbench_wasm_bg.js": import0,
|
|
1510
|
+
};
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
function wasm_bindgen_e8fadb86c21d1ac6___convert__closures_____invoke___core_9b3796e30d99ddb7___result__Result_____wasm_bindgen_e8fadb86c21d1ac6___JsValue___true_(arg0, arg1) {
|
|
1514
|
+
const ret = wasm.wasm_bindgen_e8fadb86c21d1ac6___convert__closures_____invoke___core_9b3796e30d99ddb7___result__Result_____wasm_bindgen_e8fadb86c21d1ac6___JsValue___true_(arg0, arg1);
|
|
1515
|
+
if (ret[1]) {
|
|
1516
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1517
|
+
}
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
function wasm_bindgen_e8fadb86c21d1ac6___convert__closures_____invoke___js_sys_4d64f92870bcf95f___Array______true_(arg0, arg1, arg2) {
|
|
1521
|
+
wasm.wasm_bindgen_e8fadb86c21d1ac6___convert__closures_____invoke___js_sys_4d64f92870bcf95f___Array______true_(arg0, arg1, arg2);
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
function wasm_bindgen_e8fadb86c21d1ac6___convert__closures_____invoke___js_sys_4d64f92870bcf95f___Array______true__13(arg0, arg1, arg2) {
|
|
1525
|
+
wasm.wasm_bindgen_e8fadb86c21d1ac6___convert__closures_____invoke___js_sys_4d64f92870bcf95f___Array______true__13(arg0, arg1, arg2);
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
function wasm_bindgen_e8fadb86c21d1ac6___convert__closures_____invoke___wasm_bindgen_e8fadb86c21d1ac6___JsValue__core_9b3796e30d99ddb7___result__Result_____wasm_bindgen_e8fadb86c21d1ac6___JsError___true_(arg0, arg1, arg2) {
|
|
1529
|
+
const ret = wasm.wasm_bindgen_e8fadb86c21d1ac6___convert__closures_____invoke___wasm_bindgen_e8fadb86c21d1ac6___JsValue__core_9b3796e30d99ddb7___result__Result_____wasm_bindgen_e8fadb86c21d1ac6___JsError___true_(arg0, arg1, arg2);
|
|
1530
|
+
if (ret[1]) {
|
|
1531
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1532
|
+
}
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
function wasm_bindgen_e8fadb86c21d1ac6___convert__closures_____invoke___js_sys_4d64f92870bcf95f___Function_fn_wasm_bindgen_e8fadb86c21d1ac6___JsValue_____wasm_bindgen_e8fadb86c21d1ac6___sys__Undefined___js_sys_4d64f92870bcf95f___Function_fn_wasm_bindgen_e8fadb86c21d1ac6___JsValue_____wasm_bindgen_e8fadb86c21d1ac6___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
|
|
1536
|
+
wasm.wasm_bindgen_e8fadb86c21d1ac6___convert__closures_____invoke___js_sys_4d64f92870bcf95f___Function_fn_wasm_bindgen_e8fadb86c21d1ac6___JsValue_____wasm_bindgen_e8fadb86c21d1ac6___sys__Undefined___js_sys_4d64f92870bcf95f___Function_fn_wasm_bindgen_e8fadb86c21d1ac6___JsValue_____wasm_bindgen_e8fadb86c21d1ac6___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
|
|
1540
|
+
const __wbindgen_enum_ResizeObserverBoxOptions = ["border-box", "content-box", "device-pixel-content-box"];
|
|
1541
|
+
const WebWorkbenchFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1542
|
+
? { register: () => {}, unregister: () => {} }
|
|
1543
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_webworkbench_free(ptr, 1));
|
|
1544
|
+
|
|
1545
|
+
function addToExternrefTable0(obj) {
|
|
1546
|
+
const idx = wasm.__externref_table_alloc();
|
|
1547
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
1548
|
+
return idx;
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
1552
|
+
? { register: () => {}, unregister: () => {} }
|
|
1553
|
+
: new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
|
|
1554
|
+
|
|
1555
|
+
function debugString(val) {
|
|
1556
|
+
switch (typeof val) {
|
|
1557
|
+
// primitive types
|
|
1558
|
+
case 'number':
|
|
1559
|
+
case 'boolean':
|
|
1560
|
+
case 'undefined':
|
|
1561
|
+
return `${val}`;
|
|
1562
|
+
case 'string':
|
|
1563
|
+
return JSON.stringify(val);
|
|
1564
|
+
case 'bigint':
|
|
1565
|
+
return `${val}n`;
|
|
1566
|
+
case 'symbol':
|
|
1567
|
+
return val.description !== undefined
|
|
1568
|
+
? `Symbol(${val.description})`
|
|
1569
|
+
: 'Symbol';
|
|
1570
|
+
case 'function':
|
|
1571
|
+
return typeof val.name === 'string' && val.name !== ''
|
|
1572
|
+
? `Function(${val.name})`
|
|
1573
|
+
: 'Function';
|
|
1574
|
+
case 'object': {
|
|
1575
|
+
if (val === null) {
|
|
1576
|
+
return 'null';
|
|
1577
|
+
}
|
|
1578
|
+
// objects
|
|
1579
|
+
if (Array.isArray(val)) {
|
|
1580
|
+
return '[' + Array.from(val, debugString).join(', ') + ']';
|
|
1581
|
+
}
|
|
1582
|
+
// errors
|
|
1583
|
+
if (val instanceof Error) {
|
|
1584
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
const toStringOutput = toString.call(val);
|
|
1588
|
+
// Test for built-in
|
|
1589
|
+
const className = /\[object ([^\]]+)\]/.exec(toStringOutput)?.[1];
|
|
1590
|
+
|
|
1591
|
+
// Failed to match the standard '[object ClassName]'
|
|
1592
|
+
if (className === undefined) {
|
|
1593
|
+
return toStringOutput;
|
|
1594
|
+
}
|
|
1595
|
+
if (className === 'Object') {
|
|
1596
|
+
// we're a user defined class or Object
|
|
1597
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
1598
|
+
// easier than looping through ownProperties of `val`.
|
|
1599
|
+
try {
|
|
1600
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
1601
|
+
} catch (_) {
|
|
1602
|
+
return 'Object';
|
|
1603
|
+
}
|
|
1604
|
+
}
|
|
1605
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
1606
|
+
return className;
|
|
1607
|
+
}
|
|
1608
|
+
// Per MDN: 'This list of values is exhaustive.'
|
|
1609
|
+
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof#description
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
function getArrayF32FromWasm0(ptr, len) {
|
|
1614
|
+
ptr = ptr >>> 0;
|
|
1615
|
+
return getFloat32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
function getArrayI16FromWasm0(ptr, len) {
|
|
1619
|
+
ptr = ptr >>> 0;
|
|
1620
|
+
return getInt16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
function getArrayI32FromWasm0(ptr, len) {
|
|
1624
|
+
ptr = ptr >>> 0;
|
|
1625
|
+
return getInt32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
1626
|
+
}
|
|
1627
|
+
|
|
1628
|
+
function getArrayI8FromWasm0(ptr, len) {
|
|
1629
|
+
ptr = ptr >>> 0;
|
|
1630
|
+
return getInt8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
function getArrayU16FromWasm0(ptr, len) {
|
|
1634
|
+
ptr = ptr >>> 0;
|
|
1635
|
+
return getUint16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
function getArrayU32FromWasm0(ptr, len) {
|
|
1639
|
+
ptr = ptr >>> 0;
|
|
1640
|
+
return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
1641
|
+
}
|
|
1642
|
+
|
|
1643
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
1644
|
+
ptr = ptr >>> 0;
|
|
1645
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
let cachedDataViewMemory0 = null;
|
|
1649
|
+
function getDataViewMemory0() {
|
|
1650
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
1651
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
1652
|
+
}
|
|
1653
|
+
return cachedDataViewMemory0;
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1656
|
+
let cachedFloat32ArrayMemory0 = null;
|
|
1657
|
+
function getFloat32ArrayMemory0() {
|
|
1658
|
+
if (cachedFloat32ArrayMemory0 === null || cachedFloat32ArrayMemory0.byteLength === 0) {
|
|
1659
|
+
cachedFloat32ArrayMemory0 = new Float32Array(wasm.memory.buffer);
|
|
1660
|
+
}
|
|
1661
|
+
return cachedFloat32ArrayMemory0;
|
|
1662
|
+
}
|
|
1663
|
+
|
|
1664
|
+
let cachedInt16ArrayMemory0 = null;
|
|
1665
|
+
function getInt16ArrayMemory0() {
|
|
1666
|
+
if (cachedInt16ArrayMemory0 === null || cachedInt16ArrayMemory0.byteLength === 0) {
|
|
1667
|
+
cachedInt16ArrayMemory0 = new Int16Array(wasm.memory.buffer);
|
|
1668
|
+
}
|
|
1669
|
+
return cachedInt16ArrayMemory0;
|
|
1670
|
+
}
|
|
1671
|
+
|
|
1672
|
+
let cachedInt32ArrayMemory0 = null;
|
|
1673
|
+
function getInt32ArrayMemory0() {
|
|
1674
|
+
if (cachedInt32ArrayMemory0 === null || cachedInt32ArrayMemory0.byteLength === 0) {
|
|
1675
|
+
cachedInt32ArrayMemory0 = new Int32Array(wasm.memory.buffer);
|
|
1676
|
+
}
|
|
1677
|
+
return cachedInt32ArrayMemory0;
|
|
1678
|
+
}
|
|
1679
|
+
|
|
1680
|
+
let cachedInt8ArrayMemory0 = null;
|
|
1681
|
+
function getInt8ArrayMemory0() {
|
|
1682
|
+
if (cachedInt8ArrayMemory0 === null || cachedInt8ArrayMemory0.byteLength === 0) {
|
|
1683
|
+
cachedInt8ArrayMemory0 = new Int8Array(wasm.memory.buffer);
|
|
1684
|
+
}
|
|
1685
|
+
return cachedInt8ArrayMemory0;
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
function getStringFromWasm0(ptr, len) {
|
|
1689
|
+
ptr = ptr >>> 0;
|
|
1690
|
+
return decodeText(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
let cachedUint16ArrayMemory0 = null;
|
|
1694
|
+
function getUint16ArrayMemory0() {
|
|
1695
|
+
if (cachedUint16ArrayMemory0 === null || cachedUint16ArrayMemory0.byteLength === 0) {
|
|
1696
|
+
cachedUint16ArrayMemory0 = new Uint16Array(wasm.memory.buffer);
|
|
1697
|
+
}
|
|
1698
|
+
return cachedUint16ArrayMemory0;
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
let cachedUint32ArrayMemory0 = null;
|
|
1702
|
+
function getUint32ArrayMemory0() {
|
|
1703
|
+
if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
|
|
1704
|
+
cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
|
|
1705
|
+
}
|
|
1706
|
+
return cachedUint32ArrayMemory0;
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
let cachedUint8ArrayMemory0 = null;
|
|
1710
|
+
function getUint8ArrayMemory0() {
|
|
1711
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
1712
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
1713
|
+
}
|
|
1714
|
+
return cachedUint8ArrayMemory0;
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
function handleError(f, args) {
|
|
1718
|
+
try {
|
|
1719
|
+
return f.apply(this, args);
|
|
1720
|
+
} catch (e) {
|
|
1721
|
+
const idx = addToExternrefTable0(e);
|
|
1722
|
+
wasm.__wbindgen_exn_store(idx);
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1725
|
+
|
|
1726
|
+
function isLikeNone(x) {
|
|
1727
|
+
return x === undefined || x === null;
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
function makeMutClosure(arg0, arg1, f) {
|
|
1731
|
+
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
1732
|
+
const real = (...args) => {
|
|
1733
|
+
|
|
1734
|
+
// First up with a closure we increment the internal reference
|
|
1735
|
+
// count. This ensures that the Rust closure environment won't
|
|
1736
|
+
// be deallocated while we're invoking it.
|
|
1737
|
+
state.cnt++;
|
|
1738
|
+
const a = state.a;
|
|
1739
|
+
state.a = 0;
|
|
1740
|
+
try {
|
|
1741
|
+
return f(a, state.b, ...args);
|
|
1742
|
+
} finally {
|
|
1743
|
+
state.a = a;
|
|
1744
|
+
real._wbg_cb_unref();
|
|
1745
|
+
}
|
|
1746
|
+
};
|
|
1747
|
+
real._wbg_cb_unref = () => {
|
|
1748
|
+
if (--state.cnt === 0) {
|
|
1749
|
+
wasm.__wbindgen_destroy_closure(state.a, state.b);
|
|
1750
|
+
state.a = 0;
|
|
1751
|
+
CLOSURE_DTORS.unregister(state);
|
|
1752
|
+
}
|
|
1753
|
+
};
|
|
1754
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
1755
|
+
return real;
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1758
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
1759
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
1760
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
1761
|
+
WASM_VECTOR_LEN = arg.length;
|
|
1762
|
+
return ptr;
|
|
1763
|
+
}
|
|
1764
|
+
|
|
1765
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
1766
|
+
if (realloc === undefined) {
|
|
1767
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
1768
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
1769
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
1770
|
+
WASM_VECTOR_LEN = buf.length;
|
|
1771
|
+
return ptr;
|
|
1772
|
+
}
|
|
1773
|
+
|
|
1774
|
+
let len = arg.length;
|
|
1775
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
1776
|
+
|
|
1777
|
+
const mem = getUint8ArrayMemory0();
|
|
1778
|
+
|
|
1779
|
+
let offset = 0;
|
|
1780
|
+
|
|
1781
|
+
for (; offset < len; offset++) {
|
|
1782
|
+
const code = arg.charCodeAt(offset);
|
|
1783
|
+
if (code > 0x7F) break;
|
|
1784
|
+
mem[ptr + offset] = code;
|
|
1785
|
+
}
|
|
1786
|
+
if (offset !== len) {
|
|
1787
|
+
if (offset !== 0) {
|
|
1788
|
+
arg = arg.slice(offset);
|
|
1789
|
+
}
|
|
1790
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
1791
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
1792
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
1793
|
+
|
|
1794
|
+
offset += ret.written;
|
|
1795
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1798
|
+
WASM_VECTOR_LEN = offset;
|
|
1799
|
+
return ptr;
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
function takeFromExternrefTable0(idx) {
|
|
1803
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
1804
|
+
wasm.__externref_table_dealloc(idx);
|
|
1805
|
+
return value;
|
|
1806
|
+
}
|
|
1807
|
+
|
|
1808
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
|
|
1809
|
+
cachedTextDecoder.decode();
|
|
1810
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
1811
|
+
let numBytesDecoded = 0;
|
|
1812
|
+
function decodeText(bytes) {
|
|
1813
|
+
numBytesDecoded += bytes.length;
|
|
1814
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
1815
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
|
|
1816
|
+
cachedTextDecoder.decode();
|
|
1817
|
+
numBytesDecoded = bytes.length;
|
|
1818
|
+
}
|
|
1819
|
+
return cachedTextDecoder.decode(bytes);
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
const cachedTextEncoder = new TextEncoder();
|
|
1823
|
+
|
|
1824
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
1825
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
1826
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
1827
|
+
view.set(buf);
|
|
1828
|
+
return {
|
|
1829
|
+
read: arg.length,
|
|
1830
|
+
written: buf.length
|
|
1831
|
+
};
|
|
1832
|
+
};
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1835
|
+
let WASM_VECTOR_LEN = 0;
|
|
1836
|
+
|
|
1837
|
+
let wasmModule, wasmInstance, wasm;
|
|
1838
|
+
function __wbg_finalize_init(instance, module) {
|
|
1839
|
+
wasmInstance = instance;
|
|
1840
|
+
wasm = instance.exports;
|
|
1841
|
+
wasmModule = module;
|
|
1842
|
+
cachedDataViewMemory0 = null;
|
|
1843
|
+
cachedFloat32ArrayMemory0 = null;
|
|
1844
|
+
cachedInt16ArrayMemory0 = null;
|
|
1845
|
+
cachedInt32ArrayMemory0 = null;
|
|
1846
|
+
cachedInt8ArrayMemory0 = null;
|
|
1847
|
+
cachedUint16ArrayMemory0 = null;
|
|
1848
|
+
cachedUint32ArrayMemory0 = null;
|
|
1849
|
+
cachedUint8ArrayMemory0 = null;
|
|
1850
|
+
wasm.__wbindgen_start();
|
|
1851
|
+
return wasm;
|
|
1852
|
+
}
|
|
1853
|
+
|
|
1854
|
+
async function __wbg_load(module, imports) {
|
|
1855
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
1856
|
+
if (!module.ok) {
|
|
1857
|
+
throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1860
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
1861
|
+
try {
|
|
1862
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
1863
|
+
} catch (e) {
|
|
1864
|
+
const validResponse = expectedResponseType(module.type);
|
|
1865
|
+
|
|
1866
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
1867
|
+
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
1868
|
+
|
|
1869
|
+
} else { throw e; }
|
|
1870
|
+
}
|
|
1871
|
+
}
|
|
1872
|
+
|
|
1873
|
+
const bytes = await module.arrayBuffer();
|
|
1874
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
1875
|
+
} else {
|
|
1876
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
1877
|
+
|
|
1878
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
1879
|
+
return { instance, module };
|
|
1880
|
+
} else {
|
|
1881
|
+
return instance;
|
|
1882
|
+
}
|
|
1883
|
+
}
|
|
1884
|
+
|
|
1885
|
+
function expectedResponseType(type) {
|
|
1886
|
+
switch (type) {
|
|
1887
|
+
case 'basic': case 'cors': case 'default': return true;
|
|
1888
|
+
}
|
|
1889
|
+
return false;
|
|
1890
|
+
}
|
|
1891
|
+
}
|
|
1892
|
+
|
|
1893
|
+
function initSync(module) {
|
|
1894
|
+
if (wasm !== undefined) return wasm;
|
|
1895
|
+
|
|
1896
|
+
|
|
1897
|
+
if (module !== undefined) {
|
|
1898
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
1899
|
+
({module} = module)
|
|
1900
|
+
} else {
|
|
1901
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
1902
|
+
}
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
const imports = __wbg_get_imports();
|
|
1906
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
1907
|
+
module = new WebAssembly.Module(module);
|
|
1908
|
+
}
|
|
1909
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
1910
|
+
return __wbg_finalize_init(instance, module);
|
|
1911
|
+
}
|
|
1912
|
+
|
|
1913
|
+
let __wbg_init_promise;
|
|
1914
|
+
async function __wbg_init(module_or_path) {
|
|
1915
|
+
if (wasm !== undefined) return wasm;
|
|
1916
|
+
if (__wbg_init_promise === undefined) {
|
|
1917
|
+
__wbg_init_promise = __wbg_init_once(module_or_path);
|
|
1918
|
+
__wbg_init_promise.catch(() => { __wbg_init_promise = undefined; });
|
|
1919
|
+
}
|
|
1920
|
+
return __wbg_init_promise;
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1923
|
+
async function __wbg_init_once(module_or_path) {
|
|
1924
|
+
|
|
1925
|
+
if (module_or_path !== undefined) {
|
|
1926
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
1927
|
+
({module_or_path} = module_or_path)
|
|
1928
|
+
} else {
|
|
1929
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
1930
|
+
}
|
|
1931
|
+
}
|
|
1932
|
+
|
|
1933
|
+
if (module_or_path === undefined) {
|
|
1934
|
+
module_or_path = new URL('egui_workbench_wasm_bg.wasm', import.meta.url);
|
|
1935
|
+
}
|
|
1936
|
+
const imports = __wbg_get_imports();
|
|
1937
|
+
|
|
1938
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
1939
|
+
module_or_path = fetch(module_or_path);
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1942
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
1943
|
+
|
|
1944
|
+
return __wbg_finalize_init(instance, module);
|
|
1945
|
+
}
|
|
1946
|
+
|
|
1947
|
+
export { initSync, __wbg_init as default };
|