@cosmol-studio/cosmol-viewer 0.5.0-rc.2
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/cosmol_viewer_wasm.d.ts +246 -0
- package/cosmol_viewer_wasm.js +2467 -0
- package/cosmol_viewer_wasm_bg.wasm +0 -0
- package/package.json +21 -0
|
@@ -0,0 +1,2467 @@
|
|
|
1
|
+
/* @ts-self-types="./cosmol_viewer_wasm.d.ts" */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Reusable animation state. Added frames are scene snapshots, matching core behavior.
|
|
5
|
+
*/
|
|
6
|
+
export class Animation {
|
|
7
|
+
static __wrap(ptr) {
|
|
8
|
+
const obj = Object.create(Animation.prototype);
|
|
9
|
+
obj.__wbg_ptr = ptr;
|
|
10
|
+
AnimationFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
11
|
+
return obj;
|
|
12
|
+
}
|
|
13
|
+
__destroy_into_raw() {
|
|
14
|
+
const ptr = this.__wbg_ptr;
|
|
15
|
+
this.__wbg_ptr = 0;
|
|
16
|
+
AnimationFinalization.unregister(this);
|
|
17
|
+
return ptr;
|
|
18
|
+
}
|
|
19
|
+
free() {
|
|
20
|
+
const ptr = this.__destroy_into_raw();
|
|
21
|
+
wasm.__wbg_animation_free(ptr, 0);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @param {Scene} scene
|
|
25
|
+
*/
|
|
26
|
+
addFrame(scene) {
|
|
27
|
+
_assertClass(scene, Scene);
|
|
28
|
+
wasm.animation_addFrame(this.__wbg_ptr, scene.__wbg_ptr);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Return an independent handle for an ownership-taking API.
|
|
32
|
+
*
|
|
33
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
34
|
+
* handle must remain usable.
|
|
35
|
+
* @returns {Animation}
|
|
36
|
+
*/
|
|
37
|
+
copyForTransfer() {
|
|
38
|
+
const ret = wasm.animation_copyForTransfer(this.__wbg_ptr);
|
|
39
|
+
return Animation.__wrap(ret);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* @returns {number}
|
|
43
|
+
*/
|
|
44
|
+
frameCount() {
|
|
45
|
+
const ret = wasm.animation_frameCount(this.__wbg_ptr);
|
|
46
|
+
return ret >>> 0;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* @param {number} interval
|
|
50
|
+
* @param {bigint} loops
|
|
51
|
+
* @param {boolean} interpolate
|
|
52
|
+
* @returns {Animation}
|
|
53
|
+
*/
|
|
54
|
+
static new(interval, loops, interpolate) {
|
|
55
|
+
const ret = wasm.animation_new(interval, loops, interpolate);
|
|
56
|
+
return Animation.__wrap(ret);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @param {boolean} interpolate
|
|
60
|
+
*/
|
|
61
|
+
setInterpolate(interpolate) {
|
|
62
|
+
wasm.animation_setInterpolate(this.__wbg_ptr, interpolate);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* @param {number} interval
|
|
66
|
+
*/
|
|
67
|
+
setInterval(interval) {
|
|
68
|
+
wasm.animation_setInterval(this.__wbg_ptr, interval);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* @param {bigint} loops
|
|
72
|
+
*/
|
|
73
|
+
setLoops(loops) {
|
|
74
|
+
wasm.animation_setLoops(this.__wbg_ptr, loops);
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* @param {Scene} scene
|
|
78
|
+
*/
|
|
79
|
+
setStaticScene(scene) {
|
|
80
|
+
_assertClass(scene, Scene);
|
|
81
|
+
wasm.animation_setStaticScene(this.__wbg_ptr, scene.__wbg_ptr);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* @returns {string}
|
|
85
|
+
*/
|
|
86
|
+
toJson() {
|
|
87
|
+
let deferred2_0;
|
|
88
|
+
let deferred2_1;
|
|
89
|
+
try {
|
|
90
|
+
const ret = wasm.animation_toJson(this.__wbg_ptr);
|
|
91
|
+
var ptr1 = ret[0];
|
|
92
|
+
var len1 = ret[1];
|
|
93
|
+
if (ret[3]) {
|
|
94
|
+
ptr1 = 0; len1 = 0;
|
|
95
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
96
|
+
}
|
|
97
|
+
deferred2_0 = ptr1;
|
|
98
|
+
deferred2_1 = len1;
|
|
99
|
+
return getStringFromWasm0(ptr1, len1);
|
|
100
|
+
} finally {
|
|
101
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
if (Symbol.dispose) Animation.prototype[Symbol.dispose] = Animation.prototype.free;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Reusable scene state. Cloned binding handles refer to the same scene.
|
|
109
|
+
*/
|
|
110
|
+
export class Scene {
|
|
111
|
+
static __wrap(ptr) {
|
|
112
|
+
const obj = Object.create(Scene.prototype);
|
|
113
|
+
obj.__wbg_ptr = ptr;
|
|
114
|
+
SceneFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
115
|
+
return obj;
|
|
116
|
+
}
|
|
117
|
+
__destroy_into_raw() {
|
|
118
|
+
const ptr = this.__wbg_ptr;
|
|
119
|
+
this.__wbg_ptr = 0;
|
|
120
|
+
SceneFinalization.unregister(this);
|
|
121
|
+
return ptr;
|
|
122
|
+
}
|
|
123
|
+
free() {
|
|
124
|
+
const ptr = this.__destroy_into_raw();
|
|
125
|
+
wasm.__wbg_scene_free(ptr, 0);
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Add or replace a named sphere directly in this scene.
|
|
129
|
+
* @param {string} id
|
|
130
|
+
* @param {Float32Array} center
|
|
131
|
+
* @param {number} radius
|
|
132
|
+
*/
|
|
133
|
+
addSphere(id, center, radius) {
|
|
134
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
135
|
+
const len0 = WASM_VECTOR_LEN;
|
|
136
|
+
const ptr1 = passArrayF32ToWasm0(center, wasm.__wbindgen_malloc);
|
|
137
|
+
const len1 = WASM_VECTOR_LEN;
|
|
138
|
+
const ret = wasm.scene_addSphere(this.__wbg_ptr, ptr0, len0, ptr1, len1, radius);
|
|
139
|
+
if (ret[1]) {
|
|
140
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* @param {string} id
|
|
145
|
+
* @param {Float32Array} start
|
|
146
|
+
* @param {Float32Array} end
|
|
147
|
+
* @param {number} radius
|
|
148
|
+
*/
|
|
149
|
+
addStick(id, start, end, radius) {
|
|
150
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
151
|
+
const len0 = WASM_VECTOR_LEN;
|
|
152
|
+
const ptr1 = passArrayF32ToWasm0(start, wasm.__wbindgen_malloc);
|
|
153
|
+
const len1 = WASM_VECTOR_LEN;
|
|
154
|
+
const ptr2 = passArrayF32ToWasm0(end, wasm.__wbindgen_malloc);
|
|
155
|
+
const len2 = WASM_VECTOR_LEN;
|
|
156
|
+
const ret = wasm.scene_addStick(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, radius);
|
|
157
|
+
if (ret[1]) {
|
|
158
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Explicitly copy scene display state into an independent scene.
|
|
163
|
+
* @returns {Scene}
|
|
164
|
+
*/
|
|
165
|
+
cloneScene() {
|
|
166
|
+
const ret = wasm.scene_cloneScene(this.__wbg_ptr);
|
|
167
|
+
return Scene.__wrap(ret);
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Return an independent handle for an ownership-taking API.
|
|
171
|
+
*
|
|
172
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
173
|
+
* handle must remain usable.
|
|
174
|
+
* @returns {Scene}
|
|
175
|
+
*/
|
|
176
|
+
copyForTransfer() {
|
|
177
|
+
const ret = wasm.scene_copyForTransfer(this.__wbg_ptr);
|
|
178
|
+
return Scene.__wrap(ret);
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* @param {Scene} other
|
|
182
|
+
*/
|
|
183
|
+
mergeShapes(other) {
|
|
184
|
+
_assertClass(other, Scene);
|
|
185
|
+
wasm.scene_mergeShapes(this.__wbg_ptr, other.__wbg_ptr);
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* @returns {Scene}
|
|
189
|
+
*/
|
|
190
|
+
static new() {
|
|
191
|
+
const ret = wasm.scene_new();
|
|
192
|
+
return Scene.__wrap(ret);
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* @param {Float32Array} center
|
|
196
|
+
*/
|
|
197
|
+
recenter(center) {
|
|
198
|
+
const ptr0 = passArrayF32ToWasm0(center, wasm.__wbindgen_malloc);
|
|
199
|
+
const len0 = WASM_VECTOR_LEN;
|
|
200
|
+
const ret = wasm.scene_recenter(this.__wbg_ptr, ptr0, len0);
|
|
201
|
+
if (ret[1]) {
|
|
202
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* @param {string} id
|
|
207
|
+
*/
|
|
208
|
+
removeShape(id) {
|
|
209
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
210
|
+
const len0 = WASM_VECTOR_LEN;
|
|
211
|
+
const ret = wasm.scene_removeShape(this.__wbg_ptr, ptr0, len0);
|
|
212
|
+
if (ret[1]) {
|
|
213
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* @param {number} azimuth_delta
|
|
218
|
+
* @param {number} elevation_delta
|
|
219
|
+
* @param {number} roll_delta
|
|
220
|
+
*/
|
|
221
|
+
rotateCamera(azimuth_delta, elevation_delta, roll_delta) {
|
|
222
|
+
wasm.scene_rotateCamera(this.__wbg_ptr, azimuth_delta, elevation_delta, roll_delta);
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* @param {number} intensity
|
|
226
|
+
*/
|
|
227
|
+
setAmbientLight(intensity) {
|
|
228
|
+
wasm.scene_setAmbientLight(this.__wbg_ptr, intensity);
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* @param {boolean} enabled
|
|
232
|
+
* @param {number} speed
|
|
233
|
+
*/
|
|
234
|
+
setAutoRotate(enabled, speed) {
|
|
235
|
+
wasm.scene_setAutoRotate(this.__wbg_ptr, enabled, speed);
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* RGB components are bytes in the range 0..255.
|
|
239
|
+
* @param {Uint8Array} color
|
|
240
|
+
*/
|
|
241
|
+
setBackgroundColor(color) {
|
|
242
|
+
const ptr0 = passArray8ToWasm0(color, wasm.__wbindgen_malloc);
|
|
243
|
+
const len0 = WASM_VECTOR_LEN;
|
|
244
|
+
const ret = wasm.scene_setBackgroundColor(this.__wbg_ptr, ptr0, len0);
|
|
245
|
+
if (ret[1]) {
|
|
246
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* @param {number} distance
|
|
251
|
+
*/
|
|
252
|
+
setCameraDistance(distance) {
|
|
253
|
+
wasm.scene_setCameraDistance(this.__wbg_ptr, distance);
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* @param {number} fov
|
|
257
|
+
*/
|
|
258
|
+
setCameraFov(fov) {
|
|
259
|
+
wasm.scene_setCameraFov(this.__wbg_ptr, fov);
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* @param {Float32Array} target
|
|
263
|
+
*/
|
|
264
|
+
setCameraTarget(target) {
|
|
265
|
+
const ptr0 = passArrayF32ToWasm0(target, wasm.__wbindgen_malloc);
|
|
266
|
+
const len0 = WASM_VECTOR_LEN;
|
|
267
|
+
const ret = wasm.scene_setCameraTarget(this.__wbg_ptr, ptr0, len0);
|
|
268
|
+
if (ret[1]) {
|
|
269
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* @param {number} azimuth
|
|
274
|
+
* @param {number} elevation
|
|
275
|
+
* @param {number} roll
|
|
276
|
+
* @param {number} distance
|
|
277
|
+
* @param {Float32Array} target
|
|
278
|
+
* @param {number} fov
|
|
279
|
+
*/
|
|
280
|
+
setCameraView(azimuth, elevation, roll, distance, target, fov) {
|
|
281
|
+
const ptr0 = passArrayF32ToWasm0(target, wasm.__wbindgen_malloc);
|
|
282
|
+
const len0 = WASM_VECTOR_LEN;
|
|
283
|
+
const ret = wasm.scene_setCameraView(this.__wbg_ptr, azimuth, elevation, roll, distance, ptr0, len0, fov);
|
|
284
|
+
if (ret[1]) {
|
|
285
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* @param {Uint8Array} color
|
|
290
|
+
*/
|
|
291
|
+
setDepthCueColor(color) {
|
|
292
|
+
const ptr0 = passArray8ToWasm0(color, wasm.__wbindgen_malloc);
|
|
293
|
+
const len0 = WASM_VECTOR_LEN;
|
|
294
|
+
const ret = wasm.scene_setDepthCueColor(this.__wbg_ptr, ptr0, len0);
|
|
295
|
+
if (ret[1]) {
|
|
296
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* @param {number} start
|
|
301
|
+
* @param {number} end
|
|
302
|
+
*/
|
|
303
|
+
setDepthCueRange(start, end) {
|
|
304
|
+
const ret = wasm.scene_setDepthCueRange(this.__wbg_ptr, start, end);
|
|
305
|
+
if (ret[1]) {
|
|
306
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* @param {boolean} enabled
|
|
311
|
+
*/
|
|
312
|
+
setDepthCue(enabled) {
|
|
313
|
+
wasm.scene_setDepthCue(this.__wbg_ptr, enabled);
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* @param {Uint8Array} color
|
|
317
|
+
*/
|
|
318
|
+
setLightColor(color) {
|
|
319
|
+
const ptr0 = passArray8ToWasm0(color, wasm.__wbindgen_malloc);
|
|
320
|
+
const len0 = WASM_VECTOR_LEN;
|
|
321
|
+
const ret = wasm.scene_setLightColor(this.__wbg_ptr, ptr0, len0);
|
|
322
|
+
if (ret[1]) {
|
|
323
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* @param {number} intensity
|
|
328
|
+
*/
|
|
329
|
+
setLightIntensity(intensity) {
|
|
330
|
+
wasm.scene_setLightIntensity(this.__wbg_ptr, intensity);
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* @param {number} ambient
|
|
334
|
+
* @param {number} diffuse
|
|
335
|
+
* @param {number} specular
|
|
336
|
+
* @param {number} intensity
|
|
337
|
+
* @param {Uint8Array} color
|
|
338
|
+
*/
|
|
339
|
+
setLighting(ambient, diffuse, specular, intensity, color) {
|
|
340
|
+
const ptr0 = passArray8ToWasm0(color, wasm.__wbindgen_malloc);
|
|
341
|
+
const len0 = WASM_VECTOR_LEN;
|
|
342
|
+
const ret = wasm.scene_setLighting(this.__wbg_ptr, ambient, diffuse, specular, intensity, ptr0, len0);
|
|
343
|
+
if (ret[1]) {
|
|
344
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* @param {number} scale
|
|
349
|
+
*/
|
|
350
|
+
setScale(scale) {
|
|
351
|
+
const ret = wasm.scene_setScale(this.__wbg_ptr, scale);
|
|
352
|
+
if (ret[1]) {
|
|
353
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* @param {boolean} enabled
|
|
358
|
+
*/
|
|
359
|
+
setTransparentBackground(enabled) {
|
|
360
|
+
wasm.scene_setTransparentBackground(this.__wbg_ptr, enabled);
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* @param {boolean} disabled
|
|
364
|
+
*/
|
|
365
|
+
setZoomDisabled(disabled) {
|
|
366
|
+
wasm.scene_setZoomDisabled(this.__wbg_ptr, disabled);
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* @returns {number}
|
|
370
|
+
*/
|
|
371
|
+
shapeCount() {
|
|
372
|
+
const ret = wasm.scene_shapeCount(this.__wbg_ptr);
|
|
373
|
+
return ret >>> 0;
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* Inspect display state; this serialization is not needed for render/update.
|
|
377
|
+
* @returns {string}
|
|
378
|
+
*/
|
|
379
|
+
toJson() {
|
|
380
|
+
let deferred2_0;
|
|
381
|
+
let deferred2_1;
|
|
382
|
+
try {
|
|
383
|
+
const ret = wasm.scene_toJson(this.__wbg_ptr);
|
|
384
|
+
var ptr1 = ret[0];
|
|
385
|
+
var len1 = ret[1];
|
|
386
|
+
if (ret[3]) {
|
|
387
|
+
ptr1 = 0; len1 = 0;
|
|
388
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
389
|
+
}
|
|
390
|
+
deferred2_0 = ptr1;
|
|
391
|
+
deferred2_1 = len1;
|
|
392
|
+
return getStringFromWasm0(ptr1, len1);
|
|
393
|
+
} finally {
|
|
394
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
useBlackBackground() {
|
|
398
|
+
wasm.scene_useBlackBackground(this.__wbg_ptr);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
if (Symbol.dispose) Scene.prototype[Symbol.dispose] = Scene.prototype.free;
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* A browser renderer. Scene and animation arguments are typed, reusable handles.
|
|
405
|
+
*/
|
|
406
|
+
export class Viewer {
|
|
407
|
+
static __wrap(ptr) {
|
|
408
|
+
const obj = Object.create(Viewer.prototype);
|
|
409
|
+
obj.__wbg_ptr = ptr;
|
|
410
|
+
ViewerFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
411
|
+
return obj;
|
|
412
|
+
}
|
|
413
|
+
__destroy_into_raw() {
|
|
414
|
+
const ptr = this.__wbg_ptr;
|
|
415
|
+
this.__wbg_ptr = 0;
|
|
416
|
+
ViewerFinalization.unregister(this);
|
|
417
|
+
return ptr;
|
|
418
|
+
}
|
|
419
|
+
free() {
|
|
420
|
+
const ptr = this.__destroy_into_raw();
|
|
421
|
+
wasm.__wbg_viewer_free(ptr, 0);
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* Stop rendering. Auto-created canvases are removed; caller-owned canvases remain.
|
|
425
|
+
*/
|
|
426
|
+
close() {
|
|
427
|
+
wasm.viewer_close(this.__wbg_ptr);
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* Return an independent handle for an ownership-taking API.
|
|
431
|
+
*
|
|
432
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
433
|
+
* handle must remain usable.
|
|
434
|
+
* @returns {Viewer}
|
|
435
|
+
*/
|
|
436
|
+
copyForTransfer() {
|
|
437
|
+
const ret = wasm.viewer_copyForTransfer(this.__wbg_ptr);
|
|
438
|
+
return Viewer.__wrap(ret);
|
|
439
|
+
}
|
|
440
|
+
/**
|
|
441
|
+
* Internal one-way notebook command ingress. Ordinary JS callers use update directly.
|
|
442
|
+
* @param {string} payload
|
|
443
|
+
*/
|
|
444
|
+
dispatch(payload) {
|
|
445
|
+
const ptr0 = passStringToWasm0(payload, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
446
|
+
const len0 = WASM_VECTOR_LEN;
|
|
447
|
+
const ret = wasm.viewer_dispatch(this.__wbg_ptr, ptr0, len0);
|
|
448
|
+
if (ret[1]) {
|
|
449
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
/**
|
|
453
|
+
* Create an uninitialized viewer. Prefer render or play for normal use.
|
|
454
|
+
* @returns {Viewer}
|
|
455
|
+
*/
|
|
456
|
+
static new() {
|
|
457
|
+
const ret = wasm.viewer_new();
|
|
458
|
+
return Viewer.__wrap(ret);
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* Play a typed animation in an existing canvas without consuming it.
|
|
462
|
+
* @param {string} canvas_id
|
|
463
|
+
* @param {Animation} animation
|
|
464
|
+
* @returns {Promise<Viewer>}
|
|
465
|
+
*/
|
|
466
|
+
static playInto(canvas_id, animation) {
|
|
467
|
+
const ptr0 = passStringToWasm0(canvas_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
468
|
+
const len0 = WASM_VECTOR_LEN;
|
|
469
|
+
_assertClass(animation, Animation);
|
|
470
|
+
const ret = wasm.viewer_playInto(ptr0, len0, animation.__wbg_ptr);
|
|
471
|
+
return ret;
|
|
472
|
+
}
|
|
473
|
+
/**
|
|
474
|
+
* Internal notebook animation startup, accepting the versioned transport envelope.
|
|
475
|
+
* @param {string} canvas_id
|
|
476
|
+
* @param {string} payload
|
|
477
|
+
* @returns {Promise<Viewer>}
|
|
478
|
+
*/
|
|
479
|
+
static playNotebook(canvas_id, payload) {
|
|
480
|
+
const ptr0 = passStringToWasm0(canvas_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
481
|
+
const len0 = WASM_VECTOR_LEN;
|
|
482
|
+
const ptr1 = passStringToWasm0(payload, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
483
|
+
const len1 = WASM_VECTOR_LEN;
|
|
484
|
+
const ret = wasm.viewer_playNotebook(ptr0, len0, ptr1, len1);
|
|
485
|
+
return ret;
|
|
486
|
+
}
|
|
487
|
+
/**
|
|
488
|
+
* Create a canvas in document.body and play a typed animation.
|
|
489
|
+
* @param {Animation} animation
|
|
490
|
+
* @param {number} width
|
|
491
|
+
* @param {number} height
|
|
492
|
+
* @returns {Promise<Viewer>}
|
|
493
|
+
*/
|
|
494
|
+
static play(animation, width, height) {
|
|
495
|
+
_assertClass(animation, Animation);
|
|
496
|
+
const ret = wasm.viewer_play(animation.__wbg_ptr, width, height);
|
|
497
|
+
return ret;
|
|
498
|
+
}
|
|
499
|
+
/**
|
|
500
|
+
* Render into an existing canvas. The caller owns canvas sizing and mounting.
|
|
501
|
+
* @param {string} canvas_id
|
|
502
|
+
* @param {Scene} scene
|
|
503
|
+
* @returns {Promise<Viewer>}
|
|
504
|
+
*/
|
|
505
|
+
static renderInto(canvas_id, scene) {
|
|
506
|
+
const ptr0 = passStringToWasm0(canvas_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
507
|
+
const len0 = WASM_VECTOR_LEN;
|
|
508
|
+
_assertClass(scene, Scene);
|
|
509
|
+
const ret = wasm.viewer_renderInto(ptr0, len0, scene.__wbg_ptr);
|
|
510
|
+
return ret;
|
|
511
|
+
}
|
|
512
|
+
/**
|
|
513
|
+
* Internal notebook startup: payload is not the public JS scene API.
|
|
514
|
+
* @param {string} canvas_id
|
|
515
|
+
* @param {string} payload
|
|
516
|
+
* @returns {Promise<Viewer>}
|
|
517
|
+
*/
|
|
518
|
+
static renderNotebook(canvas_id, payload) {
|
|
519
|
+
const ptr0 = passStringToWasm0(canvas_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
520
|
+
const len0 = WASM_VECTOR_LEN;
|
|
521
|
+
const ptr1 = passStringToWasm0(payload, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
522
|
+
const len1 = WASM_VECTOR_LEN;
|
|
523
|
+
const ret = wasm.viewer_renderNotebook(ptr0, len0, ptr1, len1);
|
|
524
|
+
return ret;
|
|
525
|
+
}
|
|
526
|
+
/**
|
|
527
|
+
* Create a canvas in document.body and render a typed scene into it.
|
|
528
|
+
* @param {Scene} scene
|
|
529
|
+
* @param {number} width
|
|
530
|
+
* @param {number} height
|
|
531
|
+
* @returns {Promise<Viewer>}
|
|
532
|
+
*/
|
|
533
|
+
static render(scene, width, height) {
|
|
534
|
+
_assertClass(scene, Scene);
|
|
535
|
+
const ret = wasm.viewer_render(scene.__wbg_ptr, width, height);
|
|
536
|
+
return ret;
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* @param {boolean} enabled
|
|
540
|
+
*/
|
|
541
|
+
setCameraParameterLogging(enabled) {
|
|
542
|
+
const ret = wasm.viewer_setCameraParameterLogging(this.__wbg_ptr, enabled);
|
|
543
|
+
if (ret[1]) {
|
|
544
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* Internal notebook screenshot envelope. Ordinary JS callers receive PNG bytes.
|
|
549
|
+
* @returns {Promise<string>}
|
|
550
|
+
*/
|
|
551
|
+
takeScreenshotNotebook() {
|
|
552
|
+
const ret = wasm.viewer_takeScreenshotNotebook(this.__wbg_ptr);
|
|
553
|
+
return ret;
|
|
554
|
+
}
|
|
555
|
+
/**
|
|
556
|
+
* Return PNG bytes, not a notebook transport envelope.
|
|
557
|
+
* @returns {Promise<Uint8Array>}
|
|
558
|
+
*/
|
|
559
|
+
takeScreenshot() {
|
|
560
|
+
const ret = wasm.viewer_takeScreenshot(this.__wbg_ptr);
|
|
561
|
+
return ret;
|
|
562
|
+
}
|
|
563
|
+
/**
|
|
564
|
+
* Update the renderer directly from a typed scene; no transport payload is involved.
|
|
565
|
+
* @param {Scene} scene
|
|
566
|
+
*/
|
|
567
|
+
update(scene) {
|
|
568
|
+
_assertClass(scene, Scene);
|
|
569
|
+
const ret = wasm.viewer_update(this.__wbg_ptr, scene.__wbg_ptr);
|
|
570
|
+
if (ret[1]) {
|
|
571
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
if (Symbol.dispose) Viewer.prototype[Symbol.dispose] = Viewer.prototype.free;
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* @returns {string}
|
|
579
|
+
*/
|
|
580
|
+
export function bindingContractJson() {
|
|
581
|
+
let deferred1_0;
|
|
582
|
+
let deferred1_1;
|
|
583
|
+
try {
|
|
584
|
+
const ret = wasm.bindingContractJson();
|
|
585
|
+
deferred1_0 = ret[0];
|
|
586
|
+
deferred1_1 = ret[1];
|
|
587
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
588
|
+
} finally {
|
|
589
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
function __wbg_get_imports() {
|
|
593
|
+
const import0 = {
|
|
594
|
+
__proto__: null,
|
|
595
|
+
__wbg___wbindgen_boolean_get_5b446f51afd21013: function(arg0) {
|
|
596
|
+
const v = arg0;
|
|
597
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
598
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
599
|
+
},
|
|
600
|
+
__wbg___wbindgen_debug_string_4687d8d8c2017d52: function(arg0, arg1) {
|
|
601
|
+
const ret = debugString(arg1);
|
|
602
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
603
|
+
const len1 = WASM_VECTOR_LEN;
|
|
604
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
605
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
606
|
+
},
|
|
607
|
+
__wbg___wbindgen_in_92f62ee1427d9e49: function(arg0, arg1) {
|
|
608
|
+
const ret = arg0 in arg1;
|
|
609
|
+
return ret;
|
|
610
|
+
},
|
|
611
|
+
__wbg___wbindgen_is_function_1f9d30630b8b1d3d: function(arg0) {
|
|
612
|
+
const ret = typeof(arg0) === 'function';
|
|
613
|
+
return ret;
|
|
614
|
+
},
|
|
615
|
+
__wbg___wbindgen_is_undefined_8865fb403f8fe9d8: function(arg0) {
|
|
616
|
+
const ret = arg0 === undefined;
|
|
617
|
+
return ret;
|
|
618
|
+
},
|
|
619
|
+
__wbg___wbindgen_number_get_2e0e7dee9f701a71: function(arg0, arg1) {
|
|
620
|
+
const obj = arg1;
|
|
621
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
622
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
623
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
624
|
+
},
|
|
625
|
+
__wbg___wbindgen_string_get_0380ccaa2f57f0d9: function(arg0, arg1) {
|
|
626
|
+
const obj = arg1;
|
|
627
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
628
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
629
|
+
var len1 = WASM_VECTOR_LEN;
|
|
630
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
631
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
632
|
+
},
|
|
633
|
+
__wbg___wbindgen_throw_41e9ee4f547fc59a: function(arg0, arg1) {
|
|
634
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
635
|
+
},
|
|
636
|
+
__wbg__wbg_cb_unref_dcc1a90847f04c41: function(arg0) {
|
|
637
|
+
arg0._wbg_cb_unref();
|
|
638
|
+
},
|
|
639
|
+
__wbg_activeElement_1e45e0df6b6ac829: function(arg0) {
|
|
640
|
+
const ret = arg0.activeElement;
|
|
641
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
642
|
+
},
|
|
643
|
+
__wbg_activeElement_69b55e3697f14d9b: function(arg0) {
|
|
644
|
+
const ret = arg0.activeElement;
|
|
645
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
646
|
+
},
|
|
647
|
+
__wbg_activeTexture_11079673eac5c921: function(arg0, arg1) {
|
|
648
|
+
arg0.activeTexture(arg1 >>> 0);
|
|
649
|
+
},
|
|
650
|
+
__wbg_activeTexture_2fad46c01cafe6b1: function(arg0, arg1) {
|
|
651
|
+
arg0.activeTexture(arg1 >>> 0);
|
|
652
|
+
},
|
|
653
|
+
__wbg_addEventListener_8d3235978b9c69a8: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
654
|
+
arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3, arg4);
|
|
655
|
+
}, arguments); },
|
|
656
|
+
__wbg_alert_e913f93d6718c2f3: function() { return handleError(function (arg0, arg1, arg2) {
|
|
657
|
+
arg0.alert(getStringFromWasm0(arg1, arg2));
|
|
658
|
+
}, arguments); },
|
|
659
|
+
__wbg_altKey_1e5fe17a42050103: function(arg0) {
|
|
660
|
+
const ret = arg0.altKey;
|
|
661
|
+
return ret;
|
|
662
|
+
},
|
|
663
|
+
__wbg_altKey_cfb4c4fab9a7d0d0: function(arg0) {
|
|
664
|
+
const ret = arg0.altKey;
|
|
665
|
+
return ret;
|
|
666
|
+
},
|
|
667
|
+
__wbg_appendChild_fb8c52e7dd8484ea: function() { return handleError(function (arg0, arg1) {
|
|
668
|
+
const ret = arg0.appendChild(arg1);
|
|
669
|
+
return ret;
|
|
670
|
+
}, arguments); },
|
|
671
|
+
__wbg_arrayBuffer_0fe6e1300abcf908: function(arg0) {
|
|
672
|
+
const ret = arg0.arrayBuffer();
|
|
673
|
+
return ret;
|
|
674
|
+
},
|
|
675
|
+
__wbg_at_31a66e62eefd72ad: function(arg0, arg1) {
|
|
676
|
+
const ret = arg0.at(arg1);
|
|
677
|
+
return ret;
|
|
678
|
+
},
|
|
679
|
+
__wbg_attachShader_8920a5beea54aba7: function(arg0, arg1, arg2) {
|
|
680
|
+
arg0.attachShader(arg1, arg2);
|
|
681
|
+
},
|
|
682
|
+
__wbg_attachShader_9567ae57af6746d5: function(arg0, arg1, arg2) {
|
|
683
|
+
arg0.attachShader(arg1, arg2);
|
|
684
|
+
},
|
|
685
|
+
__wbg_bindBuffer_0324f62b876c4403: function(arg0, arg1, arg2) {
|
|
686
|
+
arg0.bindBuffer(arg1 >>> 0, arg2);
|
|
687
|
+
},
|
|
688
|
+
__wbg_bindBuffer_2195e89b585ce0c3: function(arg0, arg1, arg2) {
|
|
689
|
+
arg0.bindBuffer(arg1 >>> 0, arg2);
|
|
690
|
+
},
|
|
691
|
+
__wbg_bindTexture_3cf008f256f3ed99: function(arg0, arg1, arg2) {
|
|
692
|
+
arg0.bindTexture(arg1 >>> 0, arg2);
|
|
693
|
+
},
|
|
694
|
+
__wbg_bindTexture_613a47b8917a0ccd: function(arg0, arg1, arg2) {
|
|
695
|
+
arg0.bindTexture(arg1 >>> 0, arg2);
|
|
696
|
+
},
|
|
697
|
+
__wbg_bindVertexArrayOES_3141815cb8234a6e: function(arg0, arg1) {
|
|
698
|
+
arg0.bindVertexArrayOES(arg1);
|
|
699
|
+
},
|
|
700
|
+
__wbg_bindVertexArray_f58af0a346185ec5: function(arg0, arg1) {
|
|
701
|
+
arg0.bindVertexArray(arg1);
|
|
702
|
+
},
|
|
703
|
+
__wbg_blendEquationSeparate_0a17fa4ea863d445: function(arg0, arg1, arg2) {
|
|
704
|
+
arg0.blendEquationSeparate(arg1 >>> 0, arg2 >>> 0);
|
|
705
|
+
},
|
|
706
|
+
__wbg_blendEquationSeparate_fa2d4e5dde5ad8b3: function(arg0, arg1, arg2) {
|
|
707
|
+
arg0.blendEquationSeparate(arg1 >>> 0, arg2 >>> 0);
|
|
708
|
+
},
|
|
709
|
+
__wbg_blendFuncSeparate_28abe082febb1a26: function(arg0, arg1, arg2, arg3, arg4) {
|
|
710
|
+
arg0.blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
711
|
+
},
|
|
712
|
+
__wbg_blendFuncSeparate_2af9d47f7efc0452: function(arg0, arg1, arg2, arg3, arg4) {
|
|
713
|
+
arg0.blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
714
|
+
},
|
|
715
|
+
__wbg_blockSize_1e07d486d3f2411b: function(arg0) {
|
|
716
|
+
const ret = arg0.blockSize;
|
|
717
|
+
return ret;
|
|
718
|
+
},
|
|
719
|
+
__wbg_blur_cb8bd1ead8743f99: function() { return handleError(function (arg0) {
|
|
720
|
+
arg0.blur();
|
|
721
|
+
}, arguments); },
|
|
722
|
+
__wbg_body_e549239eaff082e1: function(arg0) {
|
|
723
|
+
const ret = arg0.body;
|
|
724
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
725
|
+
},
|
|
726
|
+
__wbg_bottom_29cd36a415d12885: function(arg0) {
|
|
727
|
+
const ret = arg0.bottom;
|
|
728
|
+
return ret;
|
|
729
|
+
},
|
|
730
|
+
__wbg_bufferData_53e0f7a06b58fe81: function(arg0, arg1, arg2, arg3) {
|
|
731
|
+
arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
|
|
732
|
+
},
|
|
733
|
+
__wbg_bufferData_5fa44d94fe7a3878: function(arg0, arg1, arg2, arg3) {
|
|
734
|
+
arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
|
|
735
|
+
},
|
|
736
|
+
__wbg_button_1aa380c7ca420cd1: function(arg0) {
|
|
737
|
+
const ret = arg0.button;
|
|
738
|
+
return ret;
|
|
739
|
+
},
|
|
740
|
+
__wbg_call_187d372bd5fdd4aa: function() { return handleError(function (arg0, arg1, arg2) {
|
|
741
|
+
const ret = arg0.call(arg1, arg2);
|
|
742
|
+
return ret;
|
|
743
|
+
}, arguments); },
|
|
744
|
+
__wbg_cancelAnimationFrame_6d30ac112c49342a: function() { return handleError(function (arg0, arg1) {
|
|
745
|
+
arg0.cancelAnimationFrame(arg1);
|
|
746
|
+
}, arguments); },
|
|
747
|
+
__wbg_changedTouches_df984754af5ef0fa: function(arg0) {
|
|
748
|
+
const ret = arg0.changedTouches;
|
|
749
|
+
return ret;
|
|
750
|
+
},
|
|
751
|
+
__wbg_clearColor_3f6aa096dc12e8b7: function(arg0, arg1, arg2, arg3, arg4) {
|
|
752
|
+
arg0.clearColor(arg1, arg2, arg3, arg4);
|
|
753
|
+
},
|
|
754
|
+
__wbg_clearColor_796427e8ac60fe14: function(arg0, arg1, arg2, arg3, arg4) {
|
|
755
|
+
arg0.clearColor(arg1, arg2, arg3, arg4);
|
|
756
|
+
},
|
|
757
|
+
__wbg_clearInterval_f1a050672da2658c: function(arg0, arg1) {
|
|
758
|
+
arg0.clearInterval(arg1);
|
|
759
|
+
},
|
|
760
|
+
__wbg_clearTimeout_3629d6209dfcc46e: function(arg0) {
|
|
761
|
+
const ret = clearTimeout(arg0);
|
|
762
|
+
return ret;
|
|
763
|
+
},
|
|
764
|
+
__wbg_clearTimeout_c7bc4c3c7a7774af: function(arg0, arg1) {
|
|
765
|
+
arg0.clearTimeout(arg1);
|
|
766
|
+
},
|
|
767
|
+
__wbg_clear_175cf3cb6d98d72b: function(arg0, arg1) {
|
|
768
|
+
arg0.clear(arg1 >>> 0);
|
|
769
|
+
},
|
|
770
|
+
__wbg_clear_cb96796cc568b7c8: function(arg0, arg1) {
|
|
771
|
+
arg0.clear(arg1 >>> 0);
|
|
772
|
+
},
|
|
773
|
+
__wbg_clientX_5075231ed45e8ef5: function(arg0) {
|
|
774
|
+
const ret = arg0.clientX;
|
|
775
|
+
return ret;
|
|
776
|
+
},
|
|
777
|
+
__wbg_clientX_80fda6c64299fd4d: function(arg0) {
|
|
778
|
+
const ret = arg0.clientX;
|
|
779
|
+
return ret;
|
|
780
|
+
},
|
|
781
|
+
__wbg_clientY_0206292d4e8f94cb: function(arg0) {
|
|
782
|
+
const ret = arg0.clientY;
|
|
783
|
+
return ret;
|
|
784
|
+
},
|
|
785
|
+
__wbg_clientY_846c39814ce02ab2: function(arg0) {
|
|
786
|
+
const ret = arg0.clientY;
|
|
787
|
+
return ret;
|
|
788
|
+
},
|
|
789
|
+
__wbg_clipboardData_0048090643ed57a2: function(arg0) {
|
|
790
|
+
const ret = arg0.clipboardData;
|
|
791
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
792
|
+
},
|
|
793
|
+
__wbg_clipboard_9bf6a11ffd0b00a8: function(arg0) {
|
|
794
|
+
const ret = arg0.clipboard;
|
|
795
|
+
return ret;
|
|
796
|
+
},
|
|
797
|
+
__wbg_colorMask_4d6afbbbc3022fbe: function(arg0, arg1, arg2, arg3, arg4) {
|
|
798
|
+
arg0.colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0);
|
|
799
|
+
},
|
|
800
|
+
__wbg_colorMask_8c903995f6f873be: function(arg0, arg1, arg2, arg3, arg4) {
|
|
801
|
+
arg0.colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0);
|
|
802
|
+
},
|
|
803
|
+
__wbg_compileShader_073a75409aaf96d2: function(arg0, arg1) {
|
|
804
|
+
arg0.compileShader(arg1);
|
|
805
|
+
},
|
|
806
|
+
__wbg_compileShader_c2b53ff3a8851f60: function(arg0, arg1) {
|
|
807
|
+
arg0.compileShader(arg1);
|
|
808
|
+
},
|
|
809
|
+
__wbg_contentBoxSize_1c91213ed1ddb06d: function(arg0) {
|
|
810
|
+
const ret = arg0.contentBoxSize;
|
|
811
|
+
return ret;
|
|
812
|
+
},
|
|
813
|
+
__wbg_contentRect_65cd41b1e711b4e1: function(arg0) {
|
|
814
|
+
const ret = arg0.contentRect;
|
|
815
|
+
return ret;
|
|
816
|
+
},
|
|
817
|
+
__wbg_createBuffer_d1dd23bf8704564c: function(arg0) {
|
|
818
|
+
const ret = arg0.createBuffer();
|
|
819
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
820
|
+
},
|
|
821
|
+
__wbg_createBuffer_ffe613371d42cfd3: function(arg0) {
|
|
822
|
+
const ret = arg0.createBuffer();
|
|
823
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
824
|
+
},
|
|
825
|
+
__wbg_createElement_74049073a11f9c31: function() { return handleError(function (arg0, arg1, arg2) {
|
|
826
|
+
const ret = arg0.createElement(getStringFromWasm0(arg1, arg2));
|
|
827
|
+
return ret;
|
|
828
|
+
}, arguments); },
|
|
829
|
+
__wbg_createProgram_cbf448e6f18a9402: function(arg0) {
|
|
830
|
+
const ret = arg0.createProgram();
|
|
831
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
832
|
+
},
|
|
833
|
+
__wbg_createProgram_e0c81b0d2b8d0fd0: function(arg0) {
|
|
834
|
+
const ret = arg0.createProgram();
|
|
835
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
836
|
+
},
|
|
837
|
+
__wbg_createShader_6c1a2295587878a5: function(arg0, arg1) {
|
|
838
|
+
const ret = arg0.createShader(arg1 >>> 0);
|
|
839
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
840
|
+
},
|
|
841
|
+
__wbg_createShader_7c9d99a21ecb08c0: function(arg0, arg1) {
|
|
842
|
+
const ret = arg0.createShader(arg1 >>> 0);
|
|
843
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
844
|
+
},
|
|
845
|
+
__wbg_createTexture_01e8e591b64237de: function(arg0) {
|
|
846
|
+
const ret = arg0.createTexture();
|
|
847
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
848
|
+
},
|
|
849
|
+
__wbg_createTexture_5f2583508ebe379b: function(arg0) {
|
|
850
|
+
const ret = arg0.createTexture();
|
|
851
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
852
|
+
},
|
|
853
|
+
__wbg_createVertexArrayOES_a8dc8498b56df937: function(arg0) {
|
|
854
|
+
const ret = arg0.createVertexArrayOES();
|
|
855
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
856
|
+
},
|
|
857
|
+
__wbg_createVertexArray_b223ea69dd08fcab: function(arg0) {
|
|
858
|
+
const ret = arg0.createVertexArray();
|
|
859
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
860
|
+
},
|
|
861
|
+
__wbg_ctrlKey_282349f48e6cb157: function(arg0) {
|
|
862
|
+
const ret = arg0.ctrlKey;
|
|
863
|
+
return ret;
|
|
864
|
+
},
|
|
865
|
+
__wbg_ctrlKey_8b5101745e8782fa: function(arg0) {
|
|
866
|
+
const ret = arg0.ctrlKey;
|
|
867
|
+
return ret;
|
|
868
|
+
},
|
|
869
|
+
__wbg_cullFace_12123c1c97f1ba2c: function(arg0, arg1) {
|
|
870
|
+
arg0.cullFace(arg1 >>> 0);
|
|
871
|
+
},
|
|
872
|
+
__wbg_cullFace_1a01f0b6d5aeb687: function(arg0, arg1) {
|
|
873
|
+
arg0.cullFace(arg1 >>> 0);
|
|
874
|
+
},
|
|
875
|
+
__wbg_dataTransfer_afa27477f2f9e0e6: function(arg0) {
|
|
876
|
+
const ret = arg0.dataTransfer;
|
|
877
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
878
|
+
},
|
|
879
|
+
__wbg_data_64004cd467093bab: function(arg0, arg1) {
|
|
880
|
+
const ret = arg1.data;
|
|
881
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
882
|
+
var len1 = WASM_VECTOR_LEN;
|
|
883
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
884
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
885
|
+
},
|
|
886
|
+
__wbg_data_7fb5381a4f605ae4: function(arg0, arg1) {
|
|
887
|
+
const ret = arg1.data;
|
|
888
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
889
|
+
var len1 = WASM_VECTOR_LEN;
|
|
890
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
891
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
892
|
+
},
|
|
893
|
+
__wbg_debug_2171f116875ea377: function(arg0, arg1) {
|
|
894
|
+
console.debug(getStringFromWasm0(arg0, arg1));
|
|
895
|
+
},
|
|
896
|
+
__wbg_deleteBuffer_070e58aaaf2a7a8b: function(arg0, arg1) {
|
|
897
|
+
arg0.deleteBuffer(arg1);
|
|
898
|
+
},
|
|
899
|
+
__wbg_deleteBuffer_7775ee9e248c8468: function(arg0, arg1) {
|
|
900
|
+
arg0.deleteBuffer(arg1);
|
|
901
|
+
},
|
|
902
|
+
__wbg_deleteProgram_822906f0368175d0: function(arg0, arg1) {
|
|
903
|
+
arg0.deleteProgram(arg1);
|
|
904
|
+
},
|
|
905
|
+
__wbg_deleteProgram_b524b30ad176cdb4: function(arg0, arg1) {
|
|
906
|
+
arg0.deleteProgram(arg1);
|
|
907
|
+
},
|
|
908
|
+
__wbg_deleteShader_a70f6cc1918d67eb: function(arg0, arg1) {
|
|
909
|
+
arg0.deleteShader(arg1);
|
|
910
|
+
},
|
|
911
|
+
__wbg_deleteShader_da18a294158c2d15: function(arg0, arg1) {
|
|
912
|
+
arg0.deleteShader(arg1);
|
|
913
|
+
},
|
|
914
|
+
__wbg_deleteTexture_78c170241204a466: function(arg0, arg1) {
|
|
915
|
+
arg0.deleteTexture(arg1);
|
|
916
|
+
},
|
|
917
|
+
__wbg_deleteTexture_9f42750adb092e4f: function(arg0, arg1) {
|
|
918
|
+
arg0.deleteTexture(arg1);
|
|
919
|
+
},
|
|
920
|
+
__wbg_deltaMode_6280d8266d5520f5: function(arg0) {
|
|
921
|
+
const ret = arg0.deltaMode;
|
|
922
|
+
return ret;
|
|
923
|
+
},
|
|
924
|
+
__wbg_deltaX_d330516e89f03877: function(arg0) {
|
|
925
|
+
const ret = arg0.deltaX;
|
|
926
|
+
return ret;
|
|
927
|
+
},
|
|
928
|
+
__wbg_deltaY_7abc8fc9878d0002: function(arg0) {
|
|
929
|
+
const ret = arg0.deltaY;
|
|
930
|
+
return ret;
|
|
931
|
+
},
|
|
932
|
+
__wbg_depthFunc_92e96d8f46a23300: function(arg0, arg1) {
|
|
933
|
+
arg0.depthFunc(arg1 >>> 0);
|
|
934
|
+
},
|
|
935
|
+
__wbg_depthFunc_a41fb5adacb22e09: function(arg0, arg1) {
|
|
936
|
+
arg0.depthFunc(arg1 >>> 0);
|
|
937
|
+
},
|
|
938
|
+
__wbg_depthMask_06ecff4d4514c38f: function(arg0, arg1) {
|
|
939
|
+
arg0.depthMask(arg1 !== 0);
|
|
940
|
+
},
|
|
941
|
+
__wbg_depthMask_0d7c3dec3b8405ee: function(arg0, arg1) {
|
|
942
|
+
arg0.depthMask(arg1 !== 0);
|
|
943
|
+
},
|
|
944
|
+
__wbg_detachShader_1ed15fc2d289cf15: function(arg0, arg1, arg2) {
|
|
945
|
+
arg0.detachShader(arg1, arg2);
|
|
946
|
+
},
|
|
947
|
+
__wbg_detachShader_67dabaaad80a795e: function(arg0, arg1, arg2) {
|
|
948
|
+
arg0.detachShader(arg1, arg2);
|
|
949
|
+
},
|
|
950
|
+
__wbg_devicePixelContentBoxSize_83d4c55aa7829e7a: function(arg0) {
|
|
951
|
+
const ret = arg0.devicePixelContentBoxSize;
|
|
952
|
+
return ret;
|
|
953
|
+
},
|
|
954
|
+
__wbg_devicePixelRatio_7d39e9af5448d3d4: function(arg0) {
|
|
955
|
+
const ret = arg0.devicePixelRatio;
|
|
956
|
+
return ret;
|
|
957
|
+
},
|
|
958
|
+
__wbg_disableVertexAttribArray_11c9f11bee30c9d8: function(arg0, arg1) {
|
|
959
|
+
arg0.disableVertexAttribArray(arg1 >>> 0);
|
|
960
|
+
},
|
|
961
|
+
__wbg_disableVertexAttribArray_c4c8af1f9e4120d4: function(arg0, arg1) {
|
|
962
|
+
arg0.disableVertexAttribArray(arg1 >>> 0);
|
|
963
|
+
},
|
|
964
|
+
__wbg_disable_19fe787eccdf0272: function(arg0, arg1) {
|
|
965
|
+
arg0.disable(arg1 >>> 0);
|
|
966
|
+
},
|
|
967
|
+
__wbg_disable_81b2cb5f8cea15ae: function(arg0, arg1) {
|
|
968
|
+
arg0.disable(arg1 >>> 0);
|
|
969
|
+
},
|
|
970
|
+
__wbg_disconnect_1eac4c705724307d: function(arg0) {
|
|
971
|
+
arg0.disconnect();
|
|
972
|
+
},
|
|
973
|
+
__wbg_document_9854e03c05fc8834: function(arg0) {
|
|
974
|
+
const ret = arg0.document;
|
|
975
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
976
|
+
},
|
|
977
|
+
__wbg_drawArraysInstancedANGLE_b76512b5abba6668: function(arg0, arg1, arg2, arg3, arg4) {
|
|
978
|
+
arg0.drawArraysInstancedANGLE(arg1 >>> 0, arg2, arg3, arg4);
|
|
979
|
+
},
|
|
980
|
+
__wbg_drawArraysInstanced_9b44aa78a087154d: function(arg0, arg1, arg2, arg3, arg4) {
|
|
981
|
+
arg0.drawArraysInstanced(arg1 >>> 0, arg2, arg3, arg4);
|
|
982
|
+
},
|
|
983
|
+
__wbg_drawArrays_08872e02fb57b847: function(arg0, arg1, arg2, arg3) {
|
|
984
|
+
arg0.drawArrays(arg1 >>> 0, arg2, arg3);
|
|
985
|
+
},
|
|
986
|
+
__wbg_drawArrays_741af5c3f8db636f: function(arg0, arg1, arg2, arg3) {
|
|
987
|
+
arg0.drawArrays(arg1 >>> 0, arg2, arg3);
|
|
988
|
+
},
|
|
989
|
+
__wbg_drawElementsInstancedANGLE_c3fc0cfa9e29a1bc: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
990
|
+
arg0.drawElementsInstancedANGLE(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
|
|
991
|
+
},
|
|
992
|
+
__wbg_drawElementsInstanced_d7c396aa034159b6: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
993
|
+
arg0.drawElementsInstanced(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
|
|
994
|
+
},
|
|
995
|
+
__wbg_drawElements_c8988ba71de1101a: function(arg0, arg1, arg2, arg3, arg4) {
|
|
996
|
+
arg0.drawElements(arg1 >>> 0, arg2, arg3 >>> 0, arg4);
|
|
997
|
+
},
|
|
998
|
+
__wbg_drawElements_cc1e6c631e89eddf: function(arg0, arg1, arg2, arg3, arg4) {
|
|
999
|
+
arg0.drawElements(arg1 >>> 0, arg2, arg3 >>> 0, arg4);
|
|
1000
|
+
},
|
|
1001
|
+
__wbg_elementFromPoint_8f6f88cd3ac4b9e8: function(arg0, arg1, arg2) {
|
|
1002
|
+
const ret = arg0.elementFromPoint(arg1, arg2);
|
|
1003
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1004
|
+
},
|
|
1005
|
+
__wbg_elementFromPoint_fb48b4624ec3dd6a: function(arg0, arg1, arg2) {
|
|
1006
|
+
const ret = arg0.elementFromPoint(arg1, arg2);
|
|
1007
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1008
|
+
},
|
|
1009
|
+
__wbg_enableVertexAttribArray_1496b78a8dbab9fd: function(arg0, arg1) {
|
|
1010
|
+
arg0.enableVertexAttribArray(arg1 >>> 0);
|
|
1011
|
+
},
|
|
1012
|
+
__wbg_enableVertexAttribArray_d52693866bc8b8dd: function(arg0, arg1) {
|
|
1013
|
+
arg0.enableVertexAttribArray(arg1 >>> 0);
|
|
1014
|
+
},
|
|
1015
|
+
__wbg_enable_6eeb9c0e9b483cee: function(arg0, arg1) {
|
|
1016
|
+
arg0.enable(arg1 >>> 0);
|
|
1017
|
+
},
|
|
1018
|
+
__wbg_enable_cb4fc19b51148c37: function(arg0, arg1) {
|
|
1019
|
+
arg0.enable(arg1 >>> 0);
|
|
1020
|
+
},
|
|
1021
|
+
__wbg_error_26c06b769da3d042: function(arg0, arg1) {
|
|
1022
|
+
let deferred0_0;
|
|
1023
|
+
let deferred0_1;
|
|
1024
|
+
try {
|
|
1025
|
+
deferred0_0 = arg0;
|
|
1026
|
+
deferred0_1 = arg1;
|
|
1027
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
1028
|
+
} finally {
|
|
1029
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1030
|
+
}
|
|
1031
|
+
},
|
|
1032
|
+
__wbg_error_c9cf3fc2064683a9: function(arg0) {
|
|
1033
|
+
console.error(arg0);
|
|
1034
|
+
},
|
|
1035
|
+
__wbg_files_fe03006f0ba1a5f0: function(arg0) {
|
|
1036
|
+
const ret = arg0.files;
|
|
1037
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1038
|
+
},
|
|
1039
|
+
__wbg_focus_f740d61348f422e7: function() { return handleError(function (arg0) {
|
|
1040
|
+
arg0.focus();
|
|
1041
|
+
}, arguments); },
|
|
1042
|
+
__wbg_force_7632bf44933b4388: function(arg0) {
|
|
1043
|
+
const ret = arg0.force;
|
|
1044
|
+
return ret;
|
|
1045
|
+
},
|
|
1046
|
+
__wbg_frontFace_6751b4b97f997aeb: function(arg0, arg1) {
|
|
1047
|
+
arg0.frontFace(arg1 >>> 0);
|
|
1048
|
+
},
|
|
1049
|
+
__wbg_frontFace_b064adb15b6f3772: function(arg0, arg1) {
|
|
1050
|
+
arg0.frontFace(arg1 >>> 0);
|
|
1051
|
+
},
|
|
1052
|
+
__wbg_generateMipmap_c63604006bfa52d5: function(arg0, arg1) {
|
|
1053
|
+
arg0.generateMipmap(arg1 >>> 0);
|
|
1054
|
+
},
|
|
1055
|
+
__wbg_generateMipmap_cd49f6eec9558721: function(arg0, arg1) {
|
|
1056
|
+
arg0.generateMipmap(arg1 >>> 0);
|
|
1057
|
+
},
|
|
1058
|
+
__wbg_getAttribLocation_5071f5fc51f90b1a: function(arg0, arg1, arg2, arg3) {
|
|
1059
|
+
const ret = arg0.getAttribLocation(arg1, getStringFromWasm0(arg2, arg3));
|
|
1060
|
+
return ret;
|
|
1061
|
+
},
|
|
1062
|
+
__wbg_getAttribLocation_ee9dfb2293fb9f7f: function(arg0, arg1, arg2, arg3) {
|
|
1063
|
+
const ret = arg0.getAttribLocation(arg1, getStringFromWasm0(arg2, arg3));
|
|
1064
|
+
return ret;
|
|
1065
|
+
},
|
|
1066
|
+
__wbg_getBoundingClientRect_57152b1a20f3de34: function(arg0) {
|
|
1067
|
+
const ret = arg0.getBoundingClientRect();
|
|
1068
|
+
return ret;
|
|
1069
|
+
},
|
|
1070
|
+
__wbg_getComputedStyle_dd0f456804795fd6: function() { return handleError(function (arg0, arg1) {
|
|
1071
|
+
const ret = arg0.getComputedStyle(arg1);
|
|
1072
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1073
|
+
}, arguments); },
|
|
1074
|
+
__wbg_getContext_635e36719cad2623: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1075
|
+
const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
|
|
1076
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1077
|
+
}, arguments); },
|
|
1078
|
+
__wbg_getData_bc58070c107b7d8a: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1079
|
+
const ret = arg1.getData(getStringFromWasm0(arg2, arg3));
|
|
1080
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1081
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1082
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1083
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1084
|
+
}, arguments); },
|
|
1085
|
+
__wbg_getElementById_cc94972b404e4eaa: function(arg0, arg1, arg2) {
|
|
1086
|
+
const ret = arg0.getElementById(getStringFromWasm0(arg1, arg2));
|
|
1087
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1088
|
+
},
|
|
1089
|
+
__wbg_getError_d626fee76ccfa3d2: function(arg0) {
|
|
1090
|
+
const ret = arg0.getError();
|
|
1091
|
+
return ret;
|
|
1092
|
+
},
|
|
1093
|
+
__wbg_getError_dd9903fdd93a6802: function(arg0) {
|
|
1094
|
+
const ret = arg0.getError();
|
|
1095
|
+
return ret;
|
|
1096
|
+
},
|
|
1097
|
+
__wbg_getExtension_1d23846cc4d1b9ed: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1098
|
+
const ret = arg0.getExtension(getStringFromWasm0(arg1, arg2));
|
|
1099
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1100
|
+
}, arguments); },
|
|
1101
|
+
__wbg_getExtension_abfda2c5db286b07: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1102
|
+
const ret = arg0.getExtension(getStringFromWasm0(arg1, arg2));
|
|
1103
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1104
|
+
}, arguments); },
|
|
1105
|
+
__wbg_getItem_4c80b7663197c7ff: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1106
|
+
const ret = arg1.getItem(getStringFromWasm0(arg2, arg3));
|
|
1107
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1108
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1109
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1110
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1111
|
+
}, arguments); },
|
|
1112
|
+
__wbg_getParameter_974595a6624c6c10: function() { return handleError(function (arg0, arg1) {
|
|
1113
|
+
const ret = arg0.getParameter(arg1 >>> 0);
|
|
1114
|
+
return ret;
|
|
1115
|
+
}, arguments); },
|
|
1116
|
+
__wbg_getParameter_a97f491753b05668: function() { return handleError(function (arg0, arg1) {
|
|
1117
|
+
const ret = arg0.getParameter(arg1 >>> 0);
|
|
1118
|
+
return ret;
|
|
1119
|
+
}, arguments); },
|
|
1120
|
+
__wbg_getProgramInfoLog_208fb1ff31006495: function(arg0, arg1, arg2) {
|
|
1121
|
+
const ret = arg1.getProgramInfoLog(arg2);
|
|
1122
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1123
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1124
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1125
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1126
|
+
},
|
|
1127
|
+
__wbg_getProgramInfoLog_3276b294d6d42fe2: function(arg0, arg1, arg2) {
|
|
1128
|
+
const ret = arg1.getProgramInfoLog(arg2);
|
|
1129
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1130
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1131
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1132
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1133
|
+
},
|
|
1134
|
+
__wbg_getProgramParameter_50bafab01cf88652: function(arg0, arg1, arg2) {
|
|
1135
|
+
const ret = arg0.getProgramParameter(arg1, arg2 >>> 0);
|
|
1136
|
+
return ret;
|
|
1137
|
+
},
|
|
1138
|
+
__wbg_getProgramParameter_fc7124bb9fb7c675: function(arg0, arg1, arg2) {
|
|
1139
|
+
const ret = arg0.getProgramParameter(arg1, arg2 >>> 0);
|
|
1140
|
+
return ret;
|
|
1141
|
+
},
|
|
1142
|
+
__wbg_getPropertyValue_e90a3628c2de4fb6: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1143
|
+
const ret = arg1.getPropertyValue(getStringFromWasm0(arg2, arg3));
|
|
1144
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1145
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1146
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1147
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1148
|
+
}, arguments); },
|
|
1149
|
+
__wbg_getRootNode_76c323f0bf80bdcd: function(arg0) {
|
|
1150
|
+
const ret = arg0.getRootNode();
|
|
1151
|
+
return ret;
|
|
1152
|
+
},
|
|
1153
|
+
__wbg_getShaderInfoLog_7e0cbba353ca95da: function(arg0, arg1, arg2) {
|
|
1154
|
+
const ret = arg1.getShaderInfoLog(arg2);
|
|
1155
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1156
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1157
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1158
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1159
|
+
},
|
|
1160
|
+
__wbg_getShaderInfoLog_bb64c5a52df0b7a3: function(arg0, arg1, arg2) {
|
|
1161
|
+
const ret = arg1.getShaderInfoLog(arg2);
|
|
1162
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1163
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1164
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1165
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1166
|
+
},
|
|
1167
|
+
__wbg_getShaderParameter_745acf10b8e45e31: function(arg0, arg1, arg2) {
|
|
1168
|
+
const ret = arg0.getShaderParameter(arg1, arg2 >>> 0);
|
|
1169
|
+
return ret;
|
|
1170
|
+
},
|
|
1171
|
+
__wbg_getShaderParameter_e55ea9c456df5484: function(arg0, arg1, arg2) {
|
|
1172
|
+
const ret = arg0.getShaderParameter(arg1, arg2 >>> 0);
|
|
1173
|
+
return ret;
|
|
1174
|
+
},
|
|
1175
|
+
__wbg_getSupportedExtensions_1459bad37860c0c3: function(arg0) {
|
|
1176
|
+
const ret = arg0.getSupportedExtensions();
|
|
1177
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1178
|
+
},
|
|
1179
|
+
__wbg_getSupportedExtensions_5ff7ed28c30a8baa: function(arg0) {
|
|
1180
|
+
const ret = arg0.getSupportedExtensions();
|
|
1181
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1182
|
+
},
|
|
1183
|
+
__wbg_getUniformLocation_50ba45dade572703: function(arg0, arg1, arg2, arg3) {
|
|
1184
|
+
const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3));
|
|
1185
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1186
|
+
},
|
|
1187
|
+
__wbg_getUniformLocation_cb4e3e121235f91a: function(arg0, arg1, arg2, arg3) {
|
|
1188
|
+
const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3));
|
|
1189
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1190
|
+
},
|
|
1191
|
+
__wbg_get_31af05bd4842a84f: function() { return handleError(function (arg0, arg1) {
|
|
1192
|
+
const ret = Reflect.get(arg0, arg1);
|
|
1193
|
+
return ret;
|
|
1194
|
+
}, arguments); },
|
|
1195
|
+
__wbg_get_5dde8a29f073d908: function(arg0, arg1) {
|
|
1196
|
+
const ret = arg0[arg1 >>> 0];
|
|
1197
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1198
|
+
},
|
|
1199
|
+
__wbg_get_9356b22e2a46465d: function(arg0, arg1) {
|
|
1200
|
+
const ret = arg0[arg1 >>> 0];
|
|
1201
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1202
|
+
},
|
|
1203
|
+
__wbg_get_b64ce72bb2abf052: function(arg0, arg1) {
|
|
1204
|
+
const ret = arg0[arg1 >>> 0];
|
|
1205
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1206
|
+
},
|
|
1207
|
+
__wbg_get_unchecked_288889d017702237: function(arg0, arg1) {
|
|
1208
|
+
const ret = arg0[arg1 >>> 0];
|
|
1209
|
+
return ret;
|
|
1210
|
+
},
|
|
1211
|
+
__wbg_hash_c4083658cccb641b: function() { return handleError(function (arg0, arg1) {
|
|
1212
|
+
const ret = arg1.hash;
|
|
1213
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1214
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1215
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1216
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1217
|
+
}, arguments); },
|
|
1218
|
+
__wbg_height_c9feb8f4a9a61abc: function(arg0) {
|
|
1219
|
+
const ret = arg0.height;
|
|
1220
|
+
return ret;
|
|
1221
|
+
},
|
|
1222
|
+
__wbg_height_fc97e1a0c2e7331f: function(arg0) {
|
|
1223
|
+
const ret = arg0.height;
|
|
1224
|
+
return ret;
|
|
1225
|
+
},
|
|
1226
|
+
__wbg_hidden_2ba371ecafe013fa: function(arg0) {
|
|
1227
|
+
const ret = arg0.hidden;
|
|
1228
|
+
return ret;
|
|
1229
|
+
},
|
|
1230
|
+
__wbg_host_75aa3342c78db1a2: function() { return handleError(function (arg0, arg1) {
|
|
1231
|
+
const ret = arg1.host;
|
|
1232
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1233
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1234
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1235
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1236
|
+
}, arguments); },
|
|
1237
|
+
__wbg_hostname_b9a71dd3c2da0eef: function() { return handleError(function (arg0, arg1) {
|
|
1238
|
+
const ret = arg1.hostname;
|
|
1239
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1240
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1241
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1242
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1243
|
+
}, arguments); },
|
|
1244
|
+
__wbg_href_abc902beb29d526e: function() { return handleError(function (arg0, arg1) {
|
|
1245
|
+
const ret = arg1.href;
|
|
1246
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1247
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1248
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1249
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1250
|
+
}, arguments); },
|
|
1251
|
+
__wbg_id_957842593c7d0e05: function(arg0, arg1) {
|
|
1252
|
+
const ret = arg1.id;
|
|
1253
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1254
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1255
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1256
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1257
|
+
},
|
|
1258
|
+
__wbg_identifier_24ee7ee6118f12a7: function(arg0) {
|
|
1259
|
+
const ret = arg0.identifier;
|
|
1260
|
+
return ret;
|
|
1261
|
+
},
|
|
1262
|
+
__wbg_info_0908a023ebb06a24: function(arg0, arg1) {
|
|
1263
|
+
console.info(getStringFromWasm0(arg0, arg1));
|
|
1264
|
+
},
|
|
1265
|
+
__wbg_inlineSize_edbf0c52598aa763: function(arg0) {
|
|
1266
|
+
const ret = arg0.inlineSize;
|
|
1267
|
+
return ret;
|
|
1268
|
+
},
|
|
1269
|
+
__wbg_instanceof_Document_b2a06e9deaeb61d1: function(arg0) {
|
|
1270
|
+
let result;
|
|
1271
|
+
try {
|
|
1272
|
+
result = arg0 instanceof Document;
|
|
1273
|
+
} catch (_) {
|
|
1274
|
+
result = false;
|
|
1275
|
+
}
|
|
1276
|
+
const ret = result;
|
|
1277
|
+
return ret;
|
|
1278
|
+
},
|
|
1279
|
+
__wbg_instanceof_Element_818e11074cdb63b5: function(arg0) {
|
|
1280
|
+
let result;
|
|
1281
|
+
try {
|
|
1282
|
+
result = arg0 instanceof Element;
|
|
1283
|
+
} catch (_) {
|
|
1284
|
+
result = false;
|
|
1285
|
+
}
|
|
1286
|
+
const ret = result;
|
|
1287
|
+
return ret;
|
|
1288
|
+
},
|
|
1289
|
+
__wbg_instanceof_HtmlCanvasElement_0a30c11fbbf41841: function(arg0) {
|
|
1290
|
+
let result;
|
|
1291
|
+
try {
|
|
1292
|
+
result = arg0 instanceof HTMLCanvasElement;
|
|
1293
|
+
} catch (_) {
|
|
1294
|
+
result = false;
|
|
1295
|
+
}
|
|
1296
|
+
const ret = result;
|
|
1297
|
+
return ret;
|
|
1298
|
+
},
|
|
1299
|
+
__wbg_instanceof_HtmlElement_32fb153a5a0e2349: function(arg0) {
|
|
1300
|
+
let result;
|
|
1301
|
+
try {
|
|
1302
|
+
result = arg0 instanceof HTMLElement;
|
|
1303
|
+
} catch (_) {
|
|
1304
|
+
result = false;
|
|
1305
|
+
}
|
|
1306
|
+
const ret = result;
|
|
1307
|
+
return ret;
|
|
1308
|
+
},
|
|
1309
|
+
__wbg_instanceof_HtmlInputElement_5c33d1de59c09c49: function(arg0) {
|
|
1310
|
+
let result;
|
|
1311
|
+
try {
|
|
1312
|
+
result = arg0 instanceof HTMLInputElement;
|
|
1313
|
+
} catch (_) {
|
|
1314
|
+
result = false;
|
|
1315
|
+
}
|
|
1316
|
+
const ret = result;
|
|
1317
|
+
return ret;
|
|
1318
|
+
},
|
|
1319
|
+
__wbg_instanceof_ResizeObserverEntry_159abe6614a8e952: function(arg0) {
|
|
1320
|
+
let result;
|
|
1321
|
+
try {
|
|
1322
|
+
result = arg0 instanceof ResizeObserverEntry;
|
|
1323
|
+
} catch (_) {
|
|
1324
|
+
result = false;
|
|
1325
|
+
}
|
|
1326
|
+
const ret = result;
|
|
1327
|
+
return ret;
|
|
1328
|
+
},
|
|
1329
|
+
__wbg_instanceof_ResizeObserverSize_f9d47e3f8cfd50db: function(arg0) {
|
|
1330
|
+
let result;
|
|
1331
|
+
try {
|
|
1332
|
+
result = arg0 instanceof ResizeObserverSize;
|
|
1333
|
+
} catch (_) {
|
|
1334
|
+
result = false;
|
|
1335
|
+
}
|
|
1336
|
+
const ret = result;
|
|
1337
|
+
return ret;
|
|
1338
|
+
},
|
|
1339
|
+
__wbg_instanceof_ShadowRoot_0ef114d846d9fd90: function(arg0) {
|
|
1340
|
+
let result;
|
|
1341
|
+
try {
|
|
1342
|
+
result = arg0 instanceof ShadowRoot;
|
|
1343
|
+
} catch (_) {
|
|
1344
|
+
result = false;
|
|
1345
|
+
}
|
|
1346
|
+
const ret = result;
|
|
1347
|
+
return ret;
|
|
1348
|
+
},
|
|
1349
|
+
__wbg_instanceof_WebGl2RenderingContext_64c994c14c0790fb: function(arg0) {
|
|
1350
|
+
let result;
|
|
1351
|
+
try {
|
|
1352
|
+
result = arg0 instanceof WebGL2RenderingContext;
|
|
1353
|
+
} catch (_) {
|
|
1354
|
+
result = false;
|
|
1355
|
+
}
|
|
1356
|
+
const ret = result;
|
|
1357
|
+
return ret;
|
|
1358
|
+
},
|
|
1359
|
+
__wbg_instanceof_WebGlRenderingContext_5e5e16df2e7a4904: function(arg0) {
|
|
1360
|
+
let result;
|
|
1361
|
+
try {
|
|
1362
|
+
result = arg0 instanceof WebGLRenderingContext;
|
|
1363
|
+
} catch (_) {
|
|
1364
|
+
result = false;
|
|
1365
|
+
}
|
|
1366
|
+
const ret = result;
|
|
1367
|
+
return ret;
|
|
1368
|
+
},
|
|
1369
|
+
__wbg_instanceof_Window_82d71df4eddf88bc: function(arg0) {
|
|
1370
|
+
let result;
|
|
1371
|
+
try {
|
|
1372
|
+
result = arg0 instanceof Window;
|
|
1373
|
+
} catch (_) {
|
|
1374
|
+
result = false;
|
|
1375
|
+
}
|
|
1376
|
+
const ret = result;
|
|
1377
|
+
return ret;
|
|
1378
|
+
},
|
|
1379
|
+
__wbg_isComposing_600c9236938f8e5a: function(arg0) {
|
|
1380
|
+
const ret = arg0.isComposing;
|
|
1381
|
+
return ret;
|
|
1382
|
+
},
|
|
1383
|
+
__wbg_isComposing_d03a4fd2d6155b14: function(arg0) {
|
|
1384
|
+
const ret = arg0.isComposing;
|
|
1385
|
+
return ret;
|
|
1386
|
+
},
|
|
1387
|
+
__wbg_isSecureContext_e61363f740acf8de: function(arg0) {
|
|
1388
|
+
const ret = arg0.isSecureContext;
|
|
1389
|
+
return ret;
|
|
1390
|
+
},
|
|
1391
|
+
__wbg_is_4b278c0bd3caba97: function(arg0, arg1) {
|
|
1392
|
+
const ret = Object.is(arg0, arg1);
|
|
1393
|
+
return ret;
|
|
1394
|
+
},
|
|
1395
|
+
__wbg_item_0c8f652c0830e437: function(arg0, arg1) {
|
|
1396
|
+
const ret = arg0.item(arg1 >>> 0);
|
|
1397
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1398
|
+
},
|
|
1399
|
+
__wbg_items_25f8ccc11891dbeb: function(arg0) {
|
|
1400
|
+
const ret = arg0.items;
|
|
1401
|
+
return ret;
|
|
1402
|
+
},
|
|
1403
|
+
__wbg_keyCode_fbee6c8fd374ff5e: function(arg0) {
|
|
1404
|
+
const ret = arg0.keyCode;
|
|
1405
|
+
return ret;
|
|
1406
|
+
},
|
|
1407
|
+
__wbg_key_1193871533b99ae5: function(arg0, arg1) {
|
|
1408
|
+
const ret = arg1.key;
|
|
1409
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1410
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1411
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1412
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1413
|
+
},
|
|
1414
|
+
__wbg_lastModified_6c50da7084f8ec7e: function(arg0) {
|
|
1415
|
+
const ret = arg0.lastModified;
|
|
1416
|
+
return ret;
|
|
1417
|
+
},
|
|
1418
|
+
__wbg_left_e0a244490fe2f293: function(arg0) {
|
|
1419
|
+
const ret = arg0.left;
|
|
1420
|
+
return ret;
|
|
1421
|
+
},
|
|
1422
|
+
__wbg_length_06ca2697fe194eac: function(arg0) {
|
|
1423
|
+
const ret = arg0.length;
|
|
1424
|
+
return ret;
|
|
1425
|
+
},
|
|
1426
|
+
__wbg_length_357ad61f15f550be: function(arg0) {
|
|
1427
|
+
const ret = arg0.length;
|
|
1428
|
+
return ret;
|
|
1429
|
+
},
|
|
1430
|
+
__wbg_length_7f3c00c40364105e: function(arg0) {
|
|
1431
|
+
const ret = arg0.length;
|
|
1432
|
+
return ret;
|
|
1433
|
+
},
|
|
1434
|
+
__wbg_length_d4bdea10311bd9cf: function(arg0) {
|
|
1435
|
+
const ret = arg0.length;
|
|
1436
|
+
return ret;
|
|
1437
|
+
},
|
|
1438
|
+
__wbg_length_ff6b2e0dd257ad9a: function(arg0) {
|
|
1439
|
+
const ret = arg0.length;
|
|
1440
|
+
return ret;
|
|
1441
|
+
},
|
|
1442
|
+
__wbg_linkProgram_571a9ea00d38ff83: function(arg0, arg1) {
|
|
1443
|
+
arg0.linkProgram(arg1);
|
|
1444
|
+
},
|
|
1445
|
+
__wbg_linkProgram_acdc299c43d734a0: function(arg0, arg1) {
|
|
1446
|
+
arg0.linkProgram(arg1);
|
|
1447
|
+
},
|
|
1448
|
+
__wbg_localStorage_567c24950edbc178: function() { return handleError(function (arg0) {
|
|
1449
|
+
const ret = arg0.localStorage;
|
|
1450
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1451
|
+
}, arguments); },
|
|
1452
|
+
__wbg_location_9c46e8ada95d3174: function(arg0) {
|
|
1453
|
+
const ret = arg0.location;
|
|
1454
|
+
return ret;
|
|
1455
|
+
},
|
|
1456
|
+
__wbg_log_17c30ef363c61cf4: function(arg0) {
|
|
1457
|
+
console.log(arg0);
|
|
1458
|
+
},
|
|
1459
|
+
__wbg_matchMedia_8a4857f947f11f82: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1460
|
+
const ret = arg0.matchMedia(getStringFromWasm0(arg1, arg2));
|
|
1461
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1462
|
+
}, arguments); },
|
|
1463
|
+
__wbg_matches_778d0873b064b1bf: function(arg0) {
|
|
1464
|
+
const ret = arg0.matches;
|
|
1465
|
+
return ret;
|
|
1466
|
+
},
|
|
1467
|
+
__wbg_metaKey_9c3be2ab835b0148: function(arg0) {
|
|
1468
|
+
const ret = arg0.metaKey;
|
|
1469
|
+
return ret;
|
|
1470
|
+
},
|
|
1471
|
+
__wbg_metaKey_fb78da4d237d5bbb: function(arg0) {
|
|
1472
|
+
const ret = arg0.metaKey;
|
|
1473
|
+
return ret;
|
|
1474
|
+
},
|
|
1475
|
+
__wbg_name_06fefa2542c6ce51: function(arg0, arg1) {
|
|
1476
|
+
const ret = arg1.name;
|
|
1477
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1478
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1479
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1480
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1481
|
+
},
|
|
1482
|
+
__wbg_navigator_2156486643462a87: function(arg0) {
|
|
1483
|
+
const ret = arg0.navigator;
|
|
1484
|
+
return ret;
|
|
1485
|
+
},
|
|
1486
|
+
__wbg_new_1a8d2827bd9e1a2e: function() { return handleError(function (arg0) {
|
|
1487
|
+
const ret = new ResizeObserver(arg0);
|
|
1488
|
+
return ret;
|
|
1489
|
+
}, arguments); },
|
|
1490
|
+
__wbg_new_1dbf7428bba60a42: function(arg0) {
|
|
1491
|
+
const ret = new Uint8Array(arg0);
|
|
1492
|
+
return ret;
|
|
1493
|
+
},
|
|
1494
|
+
__wbg_new_5279b10692d16d29: function() {
|
|
1495
|
+
const ret = new Error();
|
|
1496
|
+
return ret;
|
|
1497
|
+
},
|
|
1498
|
+
__wbg_new_617a8cdb8bb1130e: function() {
|
|
1499
|
+
const ret = new Object();
|
|
1500
|
+
return ret;
|
|
1501
|
+
},
|
|
1502
|
+
__wbg_new_ee2291f50781bf1d: function() {
|
|
1503
|
+
const ret = new Array();
|
|
1504
|
+
return ret;
|
|
1505
|
+
},
|
|
1506
|
+
__wbg_new_from_slice_9a868026ffa4208a: function(arg0, arg1) {
|
|
1507
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1508
|
+
return ret;
|
|
1509
|
+
},
|
|
1510
|
+
__wbg_new_typed_b01cb72a8af741a3: function(arg0, arg1) {
|
|
1511
|
+
try {
|
|
1512
|
+
var state0 = {a: arg0, b: arg1};
|
|
1513
|
+
var cb0 = (arg0, arg1) => {
|
|
1514
|
+
const a = state0.a;
|
|
1515
|
+
state0.a = 0;
|
|
1516
|
+
try {
|
|
1517
|
+
return wasm_bindgen_85532749d4206ea2___convert__closures_____invoke___js_sys_6dbc9205f0bac9ac___Function_fn_wasm_bindgen_85532749d4206ea2___JsValue_____wasm_bindgen_85532749d4206ea2___sys__Undefined___js_sys_6dbc9205f0bac9ac___Function_fn_wasm_bindgen_85532749d4206ea2___JsValue_____wasm_bindgen_85532749d4206ea2___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
1518
|
+
} finally {
|
|
1519
|
+
state0.a = a;
|
|
1520
|
+
}
|
|
1521
|
+
};
|
|
1522
|
+
const ret = new Promise(cb0);
|
|
1523
|
+
return ret;
|
|
1524
|
+
} finally {
|
|
1525
|
+
state0.a = 0;
|
|
1526
|
+
}
|
|
1527
|
+
},
|
|
1528
|
+
__wbg_new_with_record_from_str_to_blob_promise_d8b08e210be436ad: function() { return handleError(function (arg0) {
|
|
1529
|
+
const ret = new ClipboardItem(arg0);
|
|
1530
|
+
return ret;
|
|
1531
|
+
}, arguments); },
|
|
1532
|
+
__wbg_new_with_u8_array_sequence_and_options_fccc08fe93f4b8fd: function() { return handleError(function (arg0, arg1) {
|
|
1533
|
+
const ret = new Blob(arg0, arg1);
|
|
1534
|
+
return ret;
|
|
1535
|
+
}, arguments); },
|
|
1536
|
+
__wbg_now_d0b7f4bea9f38490: function(arg0) {
|
|
1537
|
+
const ret = arg0.now();
|
|
1538
|
+
return ret;
|
|
1539
|
+
},
|
|
1540
|
+
__wbg_now_e7c6795a7f81e10f: function(arg0) {
|
|
1541
|
+
const ret = arg0.now();
|
|
1542
|
+
return ret;
|
|
1543
|
+
},
|
|
1544
|
+
__wbg_observe_d2d34ca6fcb958b1: function(arg0, arg1, arg2) {
|
|
1545
|
+
arg0.observe(arg1, arg2);
|
|
1546
|
+
},
|
|
1547
|
+
__wbg_of_d5dbecdc59e02e34: function(arg0) {
|
|
1548
|
+
const ret = Array.of(arg0);
|
|
1549
|
+
return ret;
|
|
1550
|
+
},
|
|
1551
|
+
__wbg_offsetTop_c36b688834dcdce3: function(arg0) {
|
|
1552
|
+
const ret = arg0.offsetTop;
|
|
1553
|
+
return ret;
|
|
1554
|
+
},
|
|
1555
|
+
__wbg_open_d426932d10a5f130: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1556
|
+
const ret = arg0.open(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1557
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1558
|
+
}, arguments); },
|
|
1559
|
+
__wbg_origin_96d72883773c6d82: function() { return handleError(function (arg0, arg1) {
|
|
1560
|
+
const ret = arg1.origin;
|
|
1561
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1562
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1563
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1564
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1565
|
+
}, arguments); },
|
|
1566
|
+
__wbg_performance_3fcf6e32a7e1ed0a: function(arg0) {
|
|
1567
|
+
const ret = arg0.performance;
|
|
1568
|
+
return ret;
|
|
1569
|
+
},
|
|
1570
|
+
__wbg_performance_d0d7b03fc649b694: function(arg0) {
|
|
1571
|
+
const ret = arg0.performance;
|
|
1572
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1573
|
+
},
|
|
1574
|
+
__wbg_pixelStorei_af18e636b3e7b725: function(arg0, arg1, arg2) {
|
|
1575
|
+
arg0.pixelStorei(arg1 >>> 0, arg2);
|
|
1576
|
+
},
|
|
1577
|
+
__wbg_pixelStorei_cb4e43466f5b8703: function(arg0, arg1, arg2) {
|
|
1578
|
+
arg0.pixelStorei(arg1 >>> 0, arg2);
|
|
1579
|
+
},
|
|
1580
|
+
__wbg_port_73ba89eedf847423: function() { return handleError(function (arg0, arg1) {
|
|
1581
|
+
const ret = arg1.port;
|
|
1582
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1583
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1584
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1585
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1586
|
+
}, arguments); },
|
|
1587
|
+
__wbg_preventDefault_af59afb0f0a02e20: function(arg0) {
|
|
1588
|
+
arg0.preventDefault();
|
|
1589
|
+
},
|
|
1590
|
+
__wbg_protocol_c29b929bd710072b: function() { return handleError(function (arg0, arg1) {
|
|
1591
|
+
const ret = arg1.protocol;
|
|
1592
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1593
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1594
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1595
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1596
|
+
}, arguments); },
|
|
1597
|
+
__wbg_prototypesetcall_bc27214492979395: function(arg0, arg1, arg2) {
|
|
1598
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1599
|
+
},
|
|
1600
|
+
__wbg_push_2baf45db356cf468: function(arg0, arg1) {
|
|
1601
|
+
const ret = arg0.push(arg1);
|
|
1602
|
+
return ret;
|
|
1603
|
+
},
|
|
1604
|
+
__wbg_queueMicrotask_9833f9a49df95a49: function(arg0) {
|
|
1605
|
+
const ret = arg0.queueMicrotask;
|
|
1606
|
+
return ret;
|
|
1607
|
+
},
|
|
1608
|
+
__wbg_queueMicrotask_a72f977e97f23c5f: function(arg0) {
|
|
1609
|
+
queueMicrotask(arg0);
|
|
1610
|
+
},
|
|
1611
|
+
__wbg_readPixels_31e44e70558ac590: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
1612
|
+
arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
|
|
1613
|
+
}, arguments); },
|
|
1614
|
+
__wbg_readPixels_3321086a7818a739: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
1615
|
+
arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
|
|
1616
|
+
}, arguments); },
|
|
1617
|
+
__wbg_readPixels_eb030cd9976eeca5: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
1618
|
+
arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
|
|
1619
|
+
}, arguments); },
|
|
1620
|
+
__wbg_removeEventListener_6e68185345978771: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1621
|
+
arg0.removeEventListener(getStringFromWasm0(arg1, arg2), arg3);
|
|
1622
|
+
}, arguments); },
|
|
1623
|
+
__wbg_removeItem_f7b602722ed566dd: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1624
|
+
arg0.removeItem(getStringFromWasm0(arg1, arg2));
|
|
1625
|
+
}, arguments); },
|
|
1626
|
+
__wbg_remove_9a5288388316028c: function(arg0) {
|
|
1627
|
+
arg0.remove();
|
|
1628
|
+
},
|
|
1629
|
+
__wbg_requestAnimationFrame_7b526ab7aa550c74: function() { return handleError(function (arg0, arg1) {
|
|
1630
|
+
const ret = arg0.requestAnimationFrame(arg1);
|
|
1631
|
+
return ret;
|
|
1632
|
+
}, arguments); },
|
|
1633
|
+
__wbg_resolve_0076e10020304ede: function(arg0) {
|
|
1634
|
+
const ret = Promise.resolve(arg0);
|
|
1635
|
+
return ret;
|
|
1636
|
+
},
|
|
1637
|
+
__wbg_right_1dca6be6342de981: function(arg0) {
|
|
1638
|
+
const ret = arg0.right;
|
|
1639
|
+
return ret;
|
|
1640
|
+
},
|
|
1641
|
+
__wbg_scissor_12ddc324094acd50: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1642
|
+
arg0.scissor(arg1, arg2, arg3, arg4);
|
|
1643
|
+
},
|
|
1644
|
+
__wbg_scissor_a9468482697c2bdb: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1645
|
+
arg0.scissor(arg1, arg2, arg3, arg4);
|
|
1646
|
+
},
|
|
1647
|
+
__wbg_search_31c06ba77ebf51f4: function() { return handleError(function (arg0, arg1) {
|
|
1648
|
+
const ret = arg1.search;
|
|
1649
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1650
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1651
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1652
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1653
|
+
}, arguments); },
|
|
1654
|
+
__wbg_selectionEnd_582c88abcc45a9f3: function() { return handleError(function (arg0) {
|
|
1655
|
+
const ret = arg0.selectionEnd;
|
|
1656
|
+
return isLikeNone(ret) ? Number.MAX_SAFE_INTEGER : (ret) >>> 0;
|
|
1657
|
+
}, arguments); },
|
|
1658
|
+
__wbg_selectionStart_b1db69e8858218c6: function() { return handleError(function (arg0) {
|
|
1659
|
+
const ret = arg0.selectionStart;
|
|
1660
|
+
return isLikeNone(ret) ? Number.MAX_SAFE_INTEGER : (ret) >>> 0;
|
|
1661
|
+
}, arguments); },
|
|
1662
|
+
__wbg_setAttribute_9e7d603908f63705: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1663
|
+
arg0.setAttribute(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1664
|
+
}, arguments); },
|
|
1665
|
+
__wbg_setItem_c5fb0966b484ecd3: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1666
|
+
arg0.setItem(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1667
|
+
}, arguments); },
|
|
1668
|
+
__wbg_setProperty_097bc3d55ce44513: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1669
|
+
arg0.setProperty(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1670
|
+
}, arguments); },
|
|
1671
|
+
__wbg_setTimeout_56bcdccbad22fd44: function() { return handleError(function (arg0, arg1) {
|
|
1672
|
+
const ret = setTimeout(arg0, arg1);
|
|
1673
|
+
return ret;
|
|
1674
|
+
}, arguments); },
|
|
1675
|
+
__wbg_setTimeout_db7bbc18a17e152a: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1676
|
+
const ret = arg0.setTimeout(arg1, arg2);
|
|
1677
|
+
return ret;
|
|
1678
|
+
}, arguments); },
|
|
1679
|
+
__wbg_set_145a351398b48c65: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1680
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1681
|
+
return ret;
|
|
1682
|
+
}, arguments); },
|
|
1683
|
+
__wbg_set_autofocus_d18c73b8967571a7: function() { return handleError(function (arg0, arg1) {
|
|
1684
|
+
arg0.autofocus = arg1 !== 0;
|
|
1685
|
+
}, arguments); },
|
|
1686
|
+
__wbg_set_box_921bf38648f10dfe: function(arg0, arg1) {
|
|
1687
|
+
arg0.box = __wbindgen_enum_ResizeObserverBoxOptions[arg1];
|
|
1688
|
+
},
|
|
1689
|
+
__wbg_set_height_c9789c1c77eaedff: function(arg0, arg1) {
|
|
1690
|
+
arg0.height = arg1 >>> 0;
|
|
1691
|
+
},
|
|
1692
|
+
__wbg_set_id_60955e6018d03b26: function(arg0, arg1, arg2) {
|
|
1693
|
+
arg0.id = getStringFromWasm0(arg1, arg2);
|
|
1694
|
+
},
|
|
1695
|
+
__wbg_set_once_8c45bbbfb71d1b34: function(arg0, arg1) {
|
|
1696
|
+
arg0.once = arg1 !== 0;
|
|
1697
|
+
},
|
|
1698
|
+
__wbg_set_tabIndex_6999832ea5d5197e: function(arg0, arg1) {
|
|
1699
|
+
arg0.tabIndex = arg1;
|
|
1700
|
+
},
|
|
1701
|
+
__wbg_set_type_19b6e3a56c3fa1f1: function(arg0, arg1, arg2) {
|
|
1702
|
+
arg0.type = getStringFromWasm0(arg1, arg2);
|
|
1703
|
+
},
|
|
1704
|
+
__wbg_set_type_dcf75b2afa60c694: function(arg0, arg1, arg2) {
|
|
1705
|
+
arg0.type = getStringFromWasm0(arg1, arg2);
|
|
1706
|
+
},
|
|
1707
|
+
__wbg_set_value_fbd659f94bfb9181: function(arg0, arg1, arg2) {
|
|
1708
|
+
arg0.value = getStringFromWasm0(arg1, arg2);
|
|
1709
|
+
},
|
|
1710
|
+
__wbg_set_width_b0e1267db4b196b5: function(arg0, arg1) {
|
|
1711
|
+
arg0.width = arg1 >>> 0;
|
|
1712
|
+
},
|
|
1713
|
+
__wbg_shaderSource_06379dac249994dd: function(arg0, arg1, arg2, arg3) {
|
|
1714
|
+
arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3));
|
|
1715
|
+
},
|
|
1716
|
+
__wbg_shaderSource_c8812639b47d87b9: function(arg0, arg1, arg2, arg3) {
|
|
1717
|
+
arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3));
|
|
1718
|
+
},
|
|
1719
|
+
__wbg_shiftKey_be6d5295ee392b33: function(arg0) {
|
|
1720
|
+
const ret = arg0.shiftKey;
|
|
1721
|
+
return ret;
|
|
1722
|
+
},
|
|
1723
|
+
__wbg_shiftKey_ecdc496db72e8a50: function(arg0) {
|
|
1724
|
+
const ret = arg0.shiftKey;
|
|
1725
|
+
return ret;
|
|
1726
|
+
},
|
|
1727
|
+
__wbg_size_8f1c0b1a1fbb3810: function(arg0) {
|
|
1728
|
+
const ret = arg0.size;
|
|
1729
|
+
return ret;
|
|
1730
|
+
},
|
|
1731
|
+
__wbg_stack_6476d1d46b80665a: function(arg0, arg1) {
|
|
1732
|
+
const ret = arg1.stack;
|
|
1733
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1734
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1735
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1736
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1737
|
+
},
|
|
1738
|
+
__wbg_static_accessor_GLOBAL_266715b9d96ba635: function() {
|
|
1739
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
1740
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1741
|
+
},
|
|
1742
|
+
__wbg_static_accessor_GLOBAL_THIS_10fb7dc1ae063179: function() {
|
|
1743
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1744
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1745
|
+
},
|
|
1746
|
+
__wbg_static_accessor_SELF_0b583911f537483a: function() {
|
|
1747
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
1748
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1749
|
+
},
|
|
1750
|
+
__wbg_static_accessor_WINDOW_d7f903d1508cbdc4: function() {
|
|
1751
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
1752
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1753
|
+
},
|
|
1754
|
+
__wbg_stopPropagation_effafbc3bc773f1c: function(arg0) {
|
|
1755
|
+
arg0.stopPropagation();
|
|
1756
|
+
},
|
|
1757
|
+
__wbg_style_4bce24230e493a7c: function(arg0) {
|
|
1758
|
+
const ret = arg0.style;
|
|
1759
|
+
return ret;
|
|
1760
|
+
},
|
|
1761
|
+
__wbg_texImage2D_82bf2b4c8aa9a1db: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
1762
|
+
arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
1763
|
+
}, arguments); },
|
|
1764
|
+
__wbg_texImage2D_a856af552acdc9d9: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
1765
|
+
arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
1766
|
+
}, arguments); },
|
|
1767
|
+
__wbg_texImage2D_ca3d0fe24620ec85: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
1768
|
+
arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
1769
|
+
}, arguments); },
|
|
1770
|
+
__wbg_texParameteri_647fdb1426809cb5: function(arg0, arg1, arg2, arg3) {
|
|
1771
|
+
arg0.texParameteri(arg1 >>> 0, arg2 >>> 0, arg3);
|
|
1772
|
+
},
|
|
1773
|
+
__wbg_texParameteri_7864076abcdb03e0: function(arg0, arg1, arg2, arg3) {
|
|
1774
|
+
arg0.texParameteri(arg1 >>> 0, arg2 >>> 0, arg3);
|
|
1775
|
+
},
|
|
1776
|
+
__wbg_texSubImage2D_31a0c2797aa04f32: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
1777
|
+
arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
1778
|
+
}, arguments); },
|
|
1779
|
+
__wbg_texSubImage2D_5e90c7a719d40256: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
1780
|
+
arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
1781
|
+
}, arguments); },
|
|
1782
|
+
__wbg_texSubImage2D_bb322aae90f7657f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
1783
|
+
arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
1784
|
+
}, arguments); },
|
|
1785
|
+
__wbg_then_c949d5a25a4e78f8: function(arg0, arg1, arg2) {
|
|
1786
|
+
const ret = arg0.then(arg1, arg2);
|
|
1787
|
+
return ret;
|
|
1788
|
+
},
|
|
1789
|
+
__wbg_then_e71170d78fcf8954: function(arg0, arg1) {
|
|
1790
|
+
const ret = arg0.then(arg1);
|
|
1791
|
+
return ret;
|
|
1792
|
+
},
|
|
1793
|
+
__wbg_top_ff4627294d2cdeb8: function(arg0) {
|
|
1794
|
+
const ret = arg0.top;
|
|
1795
|
+
return ret;
|
|
1796
|
+
},
|
|
1797
|
+
__wbg_touches_7b36d35cdb1673fa: function(arg0) {
|
|
1798
|
+
const ret = arg0.touches;
|
|
1799
|
+
return ret;
|
|
1800
|
+
},
|
|
1801
|
+
__wbg_type_85d2ff75f5f5adb0: function(arg0, arg1) {
|
|
1802
|
+
const ret = arg1.type;
|
|
1803
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1804
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1805
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1806
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1807
|
+
},
|
|
1808
|
+
__wbg_type_d44713a24aa37493: function(arg0, arg1) {
|
|
1809
|
+
const ret = arg1.type;
|
|
1810
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1811
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1812
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1813
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1814
|
+
},
|
|
1815
|
+
__wbg_uniform1f_9cfecfaeb8cf43c1: function(arg0, arg1, arg2) {
|
|
1816
|
+
arg0.uniform1f(arg1, arg2);
|
|
1817
|
+
},
|
|
1818
|
+
__wbg_uniform1f_b5856e35a43b65a1: function(arg0, arg1, arg2) {
|
|
1819
|
+
arg0.uniform1f(arg1, arg2);
|
|
1820
|
+
},
|
|
1821
|
+
__wbg_uniform1i_531b98c4a7177366: function(arg0, arg1, arg2) {
|
|
1822
|
+
arg0.uniform1i(arg1, arg2);
|
|
1823
|
+
},
|
|
1824
|
+
__wbg_uniform1i_fc2dc8cadc49d8ec: function(arg0, arg1, arg2) {
|
|
1825
|
+
arg0.uniform1i(arg1, arg2);
|
|
1826
|
+
},
|
|
1827
|
+
__wbg_uniform2f_131da2d4bf17e4b9: function(arg0, arg1, arg2, arg3) {
|
|
1828
|
+
arg0.uniform2f(arg1, arg2, arg3);
|
|
1829
|
+
},
|
|
1830
|
+
__wbg_uniform2f_a92b5bb95dc5b4d9: function(arg0, arg1, arg2, arg3) {
|
|
1831
|
+
arg0.uniform2f(arg1, arg2, arg3);
|
|
1832
|
+
},
|
|
1833
|
+
__wbg_uniform2fv_319c49f0ce340f26: function(arg0, arg1, arg2, arg3) {
|
|
1834
|
+
arg0.uniform2fv(arg1, getArrayF32FromWasm0(arg2, arg3));
|
|
1835
|
+
},
|
|
1836
|
+
__wbg_uniform2fv_a7d3c1830d18c1b2: function(arg0, arg1, arg2, arg3) {
|
|
1837
|
+
arg0.uniform2fv(arg1, getArrayF32FromWasm0(arg2, arg3));
|
|
1838
|
+
},
|
|
1839
|
+
__wbg_uniform3fv_055ea5ac38af4fce: function(arg0, arg1, arg2, arg3) {
|
|
1840
|
+
arg0.uniform3fv(arg1, getArrayF32FromWasm0(arg2, arg3));
|
|
1841
|
+
},
|
|
1842
|
+
__wbg_uniform3fv_58520ffe22a6e27c: function(arg0, arg1, arg2, arg3) {
|
|
1843
|
+
arg0.uniform3fv(arg1, getArrayF32FromWasm0(arg2, arg3));
|
|
1844
|
+
},
|
|
1845
|
+
__wbg_uniform4fv_3ef2f5121fcb78ae: function(arg0, arg1, arg2, arg3) {
|
|
1846
|
+
arg0.uniform4fv(arg1, getArrayF32FromWasm0(arg2, arg3));
|
|
1847
|
+
},
|
|
1848
|
+
__wbg_uniform4fv_cf8ff646c36232c8: function(arg0, arg1, arg2, arg3) {
|
|
1849
|
+
arg0.uniform4fv(arg1, getArrayF32FromWasm0(arg2, arg3));
|
|
1850
|
+
},
|
|
1851
|
+
__wbg_uniformMatrix3fv_472e7824735acce1: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1852
|
+
arg0.uniformMatrix3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
1853
|
+
},
|
|
1854
|
+
__wbg_uniformMatrix3fv_83fdc9c3c0d43204: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1855
|
+
arg0.uniformMatrix3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
1856
|
+
},
|
|
1857
|
+
__wbg_uniformMatrix4fv_dff9738d995fd0b1: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1858
|
+
arg0.uniformMatrix4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
1859
|
+
},
|
|
1860
|
+
__wbg_uniformMatrix4fv_e691d7f14d3609f7: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1861
|
+
arg0.uniformMatrix4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
1862
|
+
},
|
|
1863
|
+
__wbg_useProgram_5bdae58fd9f9826f: function(arg0, arg1) {
|
|
1864
|
+
arg0.useProgram(arg1);
|
|
1865
|
+
},
|
|
1866
|
+
__wbg_useProgram_e075c2902e420761: function(arg0, arg1) {
|
|
1867
|
+
arg0.useProgram(arg1);
|
|
1868
|
+
},
|
|
1869
|
+
__wbg_userAgent_cde4c65cc98db425: function() { return handleError(function (arg0, arg1) {
|
|
1870
|
+
const ret = arg1.userAgent;
|
|
1871
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1872
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1873
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1874
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1875
|
+
}, arguments); },
|
|
1876
|
+
__wbg_value_05305a761dfa3e0e: function(arg0, arg1) {
|
|
1877
|
+
const ret = arg1.value;
|
|
1878
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1879
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1880
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1881
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1882
|
+
},
|
|
1883
|
+
__wbg_vertexAttribDivisorANGLE_659fb027198a47c3: function(arg0, arg1, arg2) {
|
|
1884
|
+
arg0.vertexAttribDivisorANGLE(arg1 >>> 0, arg2 >>> 0);
|
|
1885
|
+
},
|
|
1886
|
+
__wbg_vertexAttribDivisor_7575d382215322f7: function(arg0, arg1, arg2) {
|
|
1887
|
+
arg0.vertexAttribDivisor(arg1 >>> 0, arg2 >>> 0);
|
|
1888
|
+
},
|
|
1889
|
+
__wbg_vertexAttribPointer_24b495e18df325dc: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1890
|
+
arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
|
|
1891
|
+
},
|
|
1892
|
+
__wbg_vertexAttribPointer_54d56b18f71a946d: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1893
|
+
arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
|
|
1894
|
+
},
|
|
1895
|
+
__wbg_viewer_new: function(arg0) {
|
|
1896
|
+
const ret = Viewer.__wrap(arg0);
|
|
1897
|
+
return ret;
|
|
1898
|
+
},
|
|
1899
|
+
__wbg_viewport_16936692526e2ce6: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1900
|
+
arg0.viewport(arg1, arg2, arg3, arg4);
|
|
1901
|
+
},
|
|
1902
|
+
__wbg_viewport_e35d16c542d2ce70: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1903
|
+
arg0.viewport(arg1, arg2, arg3, arg4);
|
|
1904
|
+
},
|
|
1905
|
+
__wbg_warn_bc3ecc257d0f3fed: function(arg0, arg1) {
|
|
1906
|
+
console.warn(getStringFromWasm0(arg0, arg1));
|
|
1907
|
+
},
|
|
1908
|
+
__wbg_width_3d0dce3d9892e35e: function(arg0) {
|
|
1909
|
+
const ret = arg0.width;
|
|
1910
|
+
return ret;
|
|
1911
|
+
},
|
|
1912
|
+
__wbg_width_bf3733dbc880874d: function(arg0) {
|
|
1913
|
+
const ret = arg0.width;
|
|
1914
|
+
return ret;
|
|
1915
|
+
},
|
|
1916
|
+
__wbg_writeText_79a2b37e525e9424: function(arg0, arg1, arg2) {
|
|
1917
|
+
const ret = arg0.writeText(getStringFromWasm0(arg1, arg2));
|
|
1918
|
+
return ret;
|
|
1919
|
+
},
|
|
1920
|
+
__wbg_write_f88c29d142d623bd: function(arg0, arg1) {
|
|
1921
|
+
const ret = arg0.write(arg1);
|
|
1922
|
+
return ret;
|
|
1923
|
+
},
|
|
1924
|
+
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
1925
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1201, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1926
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_85532749d4206ea2___convert__closures_____invoke___wasm_bindgen_85532749d4206ea2___JsValue__core_608f92abc48d28da___result__Result_____wasm_bindgen_85532749d4206ea2___JsError___true_);
|
|
1927
|
+
return ret;
|
|
1928
|
+
},
|
|
1929
|
+
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
1930
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 727, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1931
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_85532749d4206ea2___convert__closures_____invoke___js_sys_6dbc9205f0bac9ac___Array______true_);
|
|
1932
|
+
return ret;
|
|
1933
|
+
},
|
|
1934
|
+
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
1935
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 727, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1936
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_85532749d4206ea2___convert__closures_____invoke___js_sys_6dbc9205f0bac9ac___Array______true__55);
|
|
1937
|
+
return ret;
|
|
1938
|
+
},
|
|
1939
|
+
__wbindgen_generic_0000000000000004: function(arg0, arg1) {
|
|
1940
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 272, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1941
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_85532749d4206ea2___convert__closures_____invoke_______true_);
|
|
1942
|
+
return ret;
|
|
1943
|
+
},
|
|
1944
|
+
__wbindgen_generic_0000000000000005: function(arg0, arg1) {
|
|
1945
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 730, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1946
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_85532749d4206ea2___convert__closures_____invoke___core_608f92abc48d28da___result__Result_____wasm_bindgen_85532749d4206ea2___JsValue___true_);
|
|
1947
|
+
return ret;
|
|
1948
|
+
},
|
|
1949
|
+
__wbindgen_generic_0000000000000006: function(arg0, arg1) {
|
|
1950
|
+
// Cast intrinsic for `Ref(Slice(F32)) -> NamedExternref("Float32Array")`.
|
|
1951
|
+
const ret = getArrayF32FromWasm0(arg0, arg1);
|
|
1952
|
+
return ret;
|
|
1953
|
+
},
|
|
1954
|
+
__wbindgen_generic_0000000000000007: function(arg0, arg1) {
|
|
1955
|
+
// Cast intrinsic for `Ref(Slice(I16)) -> NamedExternref("Int16Array")`.
|
|
1956
|
+
const ret = getArrayI16FromWasm0(arg0, arg1);
|
|
1957
|
+
return ret;
|
|
1958
|
+
},
|
|
1959
|
+
__wbindgen_generic_0000000000000008: function(arg0, arg1) {
|
|
1960
|
+
// Cast intrinsic for `Ref(Slice(I32)) -> NamedExternref("Int32Array")`.
|
|
1961
|
+
const ret = getArrayI32FromWasm0(arg0, arg1);
|
|
1962
|
+
return ret;
|
|
1963
|
+
},
|
|
1964
|
+
__wbindgen_generic_0000000000000009: function(arg0, arg1) {
|
|
1965
|
+
// Cast intrinsic for `Ref(Slice(I8)) -> NamedExternref("Int8Array")`.
|
|
1966
|
+
const ret = getArrayI8FromWasm0(arg0, arg1);
|
|
1967
|
+
return ret;
|
|
1968
|
+
},
|
|
1969
|
+
__wbindgen_generic_000000000000000a: function(arg0, arg1) {
|
|
1970
|
+
// Cast intrinsic for `Ref(Slice(U16)) -> NamedExternref("Uint16Array")`.
|
|
1971
|
+
const ret = getArrayU16FromWasm0(arg0, arg1);
|
|
1972
|
+
return ret;
|
|
1973
|
+
},
|
|
1974
|
+
__wbindgen_generic_000000000000000b: function(arg0, arg1) {
|
|
1975
|
+
// Cast intrinsic for `Ref(Slice(U32)) -> NamedExternref("Uint32Array")`.
|
|
1976
|
+
const ret = getArrayU32FromWasm0(arg0, arg1);
|
|
1977
|
+
return ret;
|
|
1978
|
+
},
|
|
1979
|
+
__wbindgen_generic_000000000000000c: function(arg0, arg1) {
|
|
1980
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
1981
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
1982
|
+
return ret;
|
|
1983
|
+
},
|
|
1984
|
+
__wbindgen_generic_000000000000000d: function(arg0, arg1) {
|
|
1985
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1986
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1987
|
+
return ret;
|
|
1988
|
+
},
|
|
1989
|
+
__wbindgen_generic_000000000000000e: function(arg0, arg1) {
|
|
1990
|
+
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
1991
|
+
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
1992
|
+
// Cast intrinsic for `Vector(U8) -> Externref`.
|
|
1993
|
+
const ret = v0;
|
|
1994
|
+
return ret;
|
|
1995
|
+
},
|
|
1996
|
+
__wbindgen_init_externref_table: function() {
|
|
1997
|
+
const table = wasm.__wbindgen_externrefs;
|
|
1998
|
+
const offset = table.grow(4);
|
|
1999
|
+
table.set(0, undefined);
|
|
2000
|
+
table.set(offset + 0, undefined);
|
|
2001
|
+
table.set(offset + 1, null);
|
|
2002
|
+
table.set(offset + 2, true);
|
|
2003
|
+
table.set(offset + 3, false);
|
|
2004
|
+
},
|
|
2005
|
+
};
|
|
2006
|
+
return {
|
|
2007
|
+
__proto__: null,
|
|
2008
|
+
"./cosmol_viewer_wasm_bg.js": import0,
|
|
2009
|
+
};
|
|
2010
|
+
}
|
|
2011
|
+
|
|
2012
|
+
function wasm_bindgen_85532749d4206ea2___convert__closures_____invoke_______true_(arg0, arg1) {
|
|
2013
|
+
wasm.wasm_bindgen_85532749d4206ea2___convert__closures_____invoke_______true_(arg0, arg1);
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
function wasm_bindgen_85532749d4206ea2___convert__closures_____invoke___core_608f92abc48d28da___result__Result_____wasm_bindgen_85532749d4206ea2___JsValue___true_(arg0, arg1) {
|
|
2017
|
+
const ret = wasm.wasm_bindgen_85532749d4206ea2___convert__closures_____invoke___core_608f92abc48d28da___result__Result_____wasm_bindgen_85532749d4206ea2___JsValue___true_(arg0, arg1);
|
|
2018
|
+
if (ret[1]) {
|
|
2019
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
2020
|
+
}
|
|
2021
|
+
}
|
|
2022
|
+
|
|
2023
|
+
function wasm_bindgen_85532749d4206ea2___convert__closures_____invoke___js_sys_6dbc9205f0bac9ac___Array______true_(arg0, arg1, arg2) {
|
|
2024
|
+
wasm.wasm_bindgen_85532749d4206ea2___convert__closures_____invoke___js_sys_6dbc9205f0bac9ac___Array______true_(arg0, arg1, arg2);
|
|
2025
|
+
}
|
|
2026
|
+
|
|
2027
|
+
function wasm_bindgen_85532749d4206ea2___convert__closures_____invoke___js_sys_6dbc9205f0bac9ac___Array______true__55(arg0, arg1, arg2) {
|
|
2028
|
+
wasm.wasm_bindgen_85532749d4206ea2___convert__closures_____invoke___js_sys_6dbc9205f0bac9ac___Array______true__55(arg0, arg1, arg2);
|
|
2029
|
+
}
|
|
2030
|
+
|
|
2031
|
+
function wasm_bindgen_85532749d4206ea2___convert__closures_____invoke___wasm_bindgen_85532749d4206ea2___JsValue__core_608f92abc48d28da___result__Result_____wasm_bindgen_85532749d4206ea2___JsError___true_(arg0, arg1, arg2) {
|
|
2032
|
+
const ret = wasm.wasm_bindgen_85532749d4206ea2___convert__closures_____invoke___wasm_bindgen_85532749d4206ea2___JsValue__core_608f92abc48d28da___result__Result_____wasm_bindgen_85532749d4206ea2___JsError___true_(arg0, arg1, arg2);
|
|
2033
|
+
if (ret[1]) {
|
|
2034
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
2035
|
+
}
|
|
2036
|
+
}
|
|
2037
|
+
|
|
2038
|
+
function wasm_bindgen_85532749d4206ea2___convert__closures_____invoke___js_sys_6dbc9205f0bac9ac___Function_fn_wasm_bindgen_85532749d4206ea2___JsValue_____wasm_bindgen_85532749d4206ea2___sys__Undefined___js_sys_6dbc9205f0bac9ac___Function_fn_wasm_bindgen_85532749d4206ea2___JsValue_____wasm_bindgen_85532749d4206ea2___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
|
|
2039
|
+
wasm.wasm_bindgen_85532749d4206ea2___convert__closures_____invoke___js_sys_6dbc9205f0bac9ac___Function_fn_wasm_bindgen_85532749d4206ea2___JsValue_____wasm_bindgen_85532749d4206ea2___sys__Undefined___js_sys_6dbc9205f0bac9ac___Function_fn_wasm_bindgen_85532749d4206ea2___JsValue_____wasm_bindgen_85532749d4206ea2___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
|
|
2040
|
+
}
|
|
2041
|
+
|
|
2042
|
+
|
|
2043
|
+
const __wbindgen_enum_ResizeObserverBoxOptions = ["border-box", "content-box", "device-pixel-content-box"];
|
|
2044
|
+
const AnimationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2045
|
+
? { register: () => {}, unregister: () => {} }
|
|
2046
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_animation_free(ptr, 1));
|
|
2047
|
+
const SceneFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2048
|
+
? { register: () => {}, unregister: () => {} }
|
|
2049
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_scene_free(ptr, 1));
|
|
2050
|
+
const ViewerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2051
|
+
? { register: () => {}, unregister: () => {} }
|
|
2052
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_viewer_free(ptr, 1));
|
|
2053
|
+
|
|
2054
|
+
function addToExternrefTable0(obj) {
|
|
2055
|
+
const idx = wasm.__externref_table_alloc();
|
|
2056
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
2057
|
+
return idx;
|
|
2058
|
+
}
|
|
2059
|
+
|
|
2060
|
+
function _assertClass(instance, klass) {
|
|
2061
|
+
if (!(instance instanceof klass)) {
|
|
2062
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
2063
|
+
}
|
|
2064
|
+
}
|
|
2065
|
+
|
|
2066
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
2067
|
+
? { register: () => {}, unregister: () => {} }
|
|
2068
|
+
: new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
|
|
2069
|
+
|
|
2070
|
+
function debugString(val) {
|
|
2071
|
+
// primitive types
|
|
2072
|
+
const type = typeof val;
|
|
2073
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
2074
|
+
return `${val}`;
|
|
2075
|
+
}
|
|
2076
|
+
if (type == 'string') {
|
|
2077
|
+
return `"${val}"`;
|
|
2078
|
+
}
|
|
2079
|
+
if (type == 'symbol') {
|
|
2080
|
+
const description = val.description;
|
|
2081
|
+
if (description == null) {
|
|
2082
|
+
return 'Symbol';
|
|
2083
|
+
} else {
|
|
2084
|
+
return `Symbol(${description})`;
|
|
2085
|
+
}
|
|
2086
|
+
}
|
|
2087
|
+
if (type == 'function') {
|
|
2088
|
+
const name = val.name;
|
|
2089
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
2090
|
+
return `Function(${name})`;
|
|
2091
|
+
} else {
|
|
2092
|
+
return 'Function';
|
|
2093
|
+
}
|
|
2094
|
+
}
|
|
2095
|
+
// objects
|
|
2096
|
+
if (Array.isArray(val)) {
|
|
2097
|
+
const length = val.length;
|
|
2098
|
+
let debug = '[';
|
|
2099
|
+
if (length > 0) {
|
|
2100
|
+
debug += debugString(val[0]);
|
|
2101
|
+
}
|
|
2102
|
+
for(let i = 1; i < length; i++) {
|
|
2103
|
+
debug += ', ' + debugString(val[i]);
|
|
2104
|
+
}
|
|
2105
|
+
debug += ']';
|
|
2106
|
+
return debug;
|
|
2107
|
+
}
|
|
2108
|
+
// Test for built-in
|
|
2109
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
2110
|
+
let className;
|
|
2111
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
2112
|
+
className = builtInMatches[1];
|
|
2113
|
+
} else {
|
|
2114
|
+
// Failed to match the standard '[object ClassName]'
|
|
2115
|
+
return toString.call(val);
|
|
2116
|
+
}
|
|
2117
|
+
if (className == 'Object') {
|
|
2118
|
+
// we're a user defined class or Object
|
|
2119
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
2120
|
+
// easier than looping through ownProperties of `val`.
|
|
2121
|
+
try {
|
|
2122
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
2123
|
+
} catch (_) {
|
|
2124
|
+
return 'Object';
|
|
2125
|
+
}
|
|
2126
|
+
}
|
|
2127
|
+
// errors
|
|
2128
|
+
if (val instanceof Error) {
|
|
2129
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
2130
|
+
}
|
|
2131
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
2132
|
+
return className;
|
|
2133
|
+
}
|
|
2134
|
+
|
|
2135
|
+
function getArrayF32FromWasm0(ptr, len) {
|
|
2136
|
+
ptr = ptr >>> 0;
|
|
2137
|
+
return getFloat32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
2138
|
+
}
|
|
2139
|
+
|
|
2140
|
+
function getArrayI16FromWasm0(ptr, len) {
|
|
2141
|
+
ptr = ptr >>> 0;
|
|
2142
|
+
return getInt16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
|
|
2143
|
+
}
|
|
2144
|
+
|
|
2145
|
+
function getArrayI32FromWasm0(ptr, len) {
|
|
2146
|
+
ptr = ptr >>> 0;
|
|
2147
|
+
return getInt32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
2148
|
+
}
|
|
2149
|
+
|
|
2150
|
+
function getArrayI8FromWasm0(ptr, len) {
|
|
2151
|
+
ptr = ptr >>> 0;
|
|
2152
|
+
return getInt8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
2153
|
+
}
|
|
2154
|
+
|
|
2155
|
+
function getArrayU16FromWasm0(ptr, len) {
|
|
2156
|
+
ptr = ptr >>> 0;
|
|
2157
|
+
return getUint16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
|
|
2158
|
+
}
|
|
2159
|
+
|
|
2160
|
+
function getArrayU32FromWasm0(ptr, len) {
|
|
2161
|
+
ptr = ptr >>> 0;
|
|
2162
|
+
return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
2163
|
+
}
|
|
2164
|
+
|
|
2165
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
2166
|
+
ptr = ptr >>> 0;
|
|
2167
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
2168
|
+
}
|
|
2169
|
+
|
|
2170
|
+
let cachedDataViewMemory0 = null;
|
|
2171
|
+
function getDataViewMemory0() {
|
|
2172
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
2173
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
2174
|
+
}
|
|
2175
|
+
return cachedDataViewMemory0;
|
|
2176
|
+
}
|
|
2177
|
+
|
|
2178
|
+
let cachedFloat32ArrayMemory0 = null;
|
|
2179
|
+
function getFloat32ArrayMemory0() {
|
|
2180
|
+
if (cachedFloat32ArrayMemory0 === null || cachedFloat32ArrayMemory0.byteLength === 0) {
|
|
2181
|
+
cachedFloat32ArrayMemory0 = new Float32Array(wasm.memory.buffer);
|
|
2182
|
+
}
|
|
2183
|
+
return cachedFloat32ArrayMemory0;
|
|
2184
|
+
}
|
|
2185
|
+
|
|
2186
|
+
let cachedInt16ArrayMemory0 = null;
|
|
2187
|
+
function getInt16ArrayMemory0() {
|
|
2188
|
+
if (cachedInt16ArrayMemory0 === null || cachedInt16ArrayMemory0.byteLength === 0) {
|
|
2189
|
+
cachedInt16ArrayMemory0 = new Int16Array(wasm.memory.buffer);
|
|
2190
|
+
}
|
|
2191
|
+
return cachedInt16ArrayMemory0;
|
|
2192
|
+
}
|
|
2193
|
+
|
|
2194
|
+
let cachedInt32ArrayMemory0 = null;
|
|
2195
|
+
function getInt32ArrayMemory0() {
|
|
2196
|
+
if (cachedInt32ArrayMemory0 === null || cachedInt32ArrayMemory0.byteLength === 0) {
|
|
2197
|
+
cachedInt32ArrayMemory0 = new Int32Array(wasm.memory.buffer);
|
|
2198
|
+
}
|
|
2199
|
+
return cachedInt32ArrayMemory0;
|
|
2200
|
+
}
|
|
2201
|
+
|
|
2202
|
+
let cachedInt8ArrayMemory0 = null;
|
|
2203
|
+
function getInt8ArrayMemory0() {
|
|
2204
|
+
if (cachedInt8ArrayMemory0 === null || cachedInt8ArrayMemory0.byteLength === 0) {
|
|
2205
|
+
cachedInt8ArrayMemory0 = new Int8Array(wasm.memory.buffer);
|
|
2206
|
+
}
|
|
2207
|
+
return cachedInt8ArrayMemory0;
|
|
2208
|
+
}
|
|
2209
|
+
|
|
2210
|
+
function getStringFromWasm0(ptr, len) {
|
|
2211
|
+
return decodeText(ptr >>> 0, len);
|
|
2212
|
+
}
|
|
2213
|
+
|
|
2214
|
+
let cachedUint16ArrayMemory0 = null;
|
|
2215
|
+
function getUint16ArrayMemory0() {
|
|
2216
|
+
if (cachedUint16ArrayMemory0 === null || cachedUint16ArrayMemory0.byteLength === 0) {
|
|
2217
|
+
cachedUint16ArrayMemory0 = new Uint16Array(wasm.memory.buffer);
|
|
2218
|
+
}
|
|
2219
|
+
return cachedUint16ArrayMemory0;
|
|
2220
|
+
}
|
|
2221
|
+
|
|
2222
|
+
let cachedUint32ArrayMemory0 = null;
|
|
2223
|
+
function getUint32ArrayMemory0() {
|
|
2224
|
+
if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
|
|
2225
|
+
cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
|
|
2226
|
+
}
|
|
2227
|
+
return cachedUint32ArrayMemory0;
|
|
2228
|
+
}
|
|
2229
|
+
|
|
2230
|
+
let cachedUint8ArrayMemory0 = null;
|
|
2231
|
+
function getUint8ArrayMemory0() {
|
|
2232
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
2233
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
2234
|
+
}
|
|
2235
|
+
return cachedUint8ArrayMemory0;
|
|
2236
|
+
}
|
|
2237
|
+
|
|
2238
|
+
function handleError(f, args) {
|
|
2239
|
+
try {
|
|
2240
|
+
return f.apply(this, args);
|
|
2241
|
+
} catch (e) {
|
|
2242
|
+
const idx = addToExternrefTable0(e);
|
|
2243
|
+
wasm.__wbindgen_exn_store(idx);
|
|
2244
|
+
}
|
|
2245
|
+
}
|
|
2246
|
+
|
|
2247
|
+
function isLikeNone(x) {
|
|
2248
|
+
return x === undefined || x === null;
|
|
2249
|
+
}
|
|
2250
|
+
|
|
2251
|
+
function makeMutClosure(arg0, arg1, f) {
|
|
2252
|
+
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
2253
|
+
const real = (...args) => {
|
|
2254
|
+
|
|
2255
|
+
// First up with a closure we increment the internal reference
|
|
2256
|
+
// count. This ensures that the Rust closure environment won't
|
|
2257
|
+
// be deallocated while we're invoking it.
|
|
2258
|
+
state.cnt++;
|
|
2259
|
+
const a = state.a;
|
|
2260
|
+
state.a = 0;
|
|
2261
|
+
try {
|
|
2262
|
+
return f(a, state.b, ...args);
|
|
2263
|
+
} finally {
|
|
2264
|
+
state.a = a;
|
|
2265
|
+
real._wbg_cb_unref();
|
|
2266
|
+
}
|
|
2267
|
+
};
|
|
2268
|
+
real._wbg_cb_unref = () => {
|
|
2269
|
+
if (--state.cnt === 0) {
|
|
2270
|
+
wasm.__wbindgen_destroy_closure(state.a, state.b);
|
|
2271
|
+
state.a = 0;
|
|
2272
|
+
CLOSURE_DTORS.unregister(state);
|
|
2273
|
+
}
|
|
2274
|
+
};
|
|
2275
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
2276
|
+
return real;
|
|
2277
|
+
}
|
|
2278
|
+
|
|
2279
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
2280
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
2281
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
2282
|
+
WASM_VECTOR_LEN = arg.length;
|
|
2283
|
+
return ptr;
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2286
|
+
function passArrayF32ToWasm0(arg, malloc) {
|
|
2287
|
+
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
2288
|
+
getFloat32ArrayMemory0().set(arg, ptr / 4);
|
|
2289
|
+
WASM_VECTOR_LEN = arg.length;
|
|
2290
|
+
return ptr;
|
|
2291
|
+
}
|
|
2292
|
+
|
|
2293
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
2294
|
+
if (realloc === undefined) {
|
|
2295
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
2296
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
2297
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
2298
|
+
WASM_VECTOR_LEN = buf.length;
|
|
2299
|
+
return ptr;
|
|
2300
|
+
}
|
|
2301
|
+
|
|
2302
|
+
let len = arg.length;
|
|
2303
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
2304
|
+
|
|
2305
|
+
const mem = getUint8ArrayMemory0();
|
|
2306
|
+
|
|
2307
|
+
let offset = 0;
|
|
2308
|
+
|
|
2309
|
+
for (; offset < len; offset++) {
|
|
2310
|
+
const code = arg.charCodeAt(offset);
|
|
2311
|
+
if (code > 0x7F) break;
|
|
2312
|
+
mem[ptr + offset] = code;
|
|
2313
|
+
}
|
|
2314
|
+
if (offset !== len) {
|
|
2315
|
+
if (offset !== 0) {
|
|
2316
|
+
arg = arg.slice(offset);
|
|
2317
|
+
}
|
|
2318
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
2319
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
2320
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
2321
|
+
|
|
2322
|
+
offset += ret.written;
|
|
2323
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
2324
|
+
}
|
|
2325
|
+
|
|
2326
|
+
WASM_VECTOR_LEN = offset;
|
|
2327
|
+
return ptr;
|
|
2328
|
+
}
|
|
2329
|
+
|
|
2330
|
+
function takeFromExternrefTable0(idx) {
|
|
2331
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
2332
|
+
wasm.__externref_table_dealloc(idx);
|
|
2333
|
+
return value;
|
|
2334
|
+
}
|
|
2335
|
+
|
|
2336
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
2337
|
+
cachedTextDecoder.decode();
|
|
2338
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
2339
|
+
let numBytesDecoded = 0;
|
|
2340
|
+
function decodeText(ptr, len) {
|
|
2341
|
+
numBytesDecoded += len;
|
|
2342
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
2343
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
2344
|
+
cachedTextDecoder.decode();
|
|
2345
|
+
numBytesDecoded = len;
|
|
2346
|
+
}
|
|
2347
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
2348
|
+
}
|
|
2349
|
+
|
|
2350
|
+
const cachedTextEncoder = new TextEncoder();
|
|
2351
|
+
|
|
2352
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
2353
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
2354
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
2355
|
+
view.set(buf);
|
|
2356
|
+
return {
|
|
2357
|
+
read: arg.length,
|
|
2358
|
+
written: buf.length
|
|
2359
|
+
};
|
|
2360
|
+
};
|
|
2361
|
+
}
|
|
2362
|
+
|
|
2363
|
+
let WASM_VECTOR_LEN = 0;
|
|
2364
|
+
|
|
2365
|
+
let wasmModule, wasmInstance, wasm;
|
|
2366
|
+
function __wbg_finalize_init(instance, module) {
|
|
2367
|
+
wasmInstance = instance;
|
|
2368
|
+
wasm = instance.exports;
|
|
2369
|
+
wasmModule = module;
|
|
2370
|
+
cachedDataViewMemory0 = null;
|
|
2371
|
+
cachedFloat32ArrayMemory0 = null;
|
|
2372
|
+
cachedInt16ArrayMemory0 = null;
|
|
2373
|
+
cachedInt32ArrayMemory0 = null;
|
|
2374
|
+
cachedInt8ArrayMemory0 = null;
|
|
2375
|
+
cachedUint16ArrayMemory0 = null;
|
|
2376
|
+
cachedUint32ArrayMemory0 = null;
|
|
2377
|
+
cachedUint8ArrayMemory0 = null;
|
|
2378
|
+
wasm.__wbindgen_start();
|
|
2379
|
+
return wasm;
|
|
2380
|
+
}
|
|
2381
|
+
|
|
2382
|
+
async function __wbg_load(module, imports) {
|
|
2383
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
2384
|
+
if (!module.ok) {
|
|
2385
|
+
throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
|
|
2386
|
+
}
|
|
2387
|
+
|
|
2388
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
2389
|
+
try {
|
|
2390
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
2391
|
+
} catch (e) {
|
|
2392
|
+
const validResponse = expectedResponseType(module.type);
|
|
2393
|
+
|
|
2394
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
2395
|
+
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);
|
|
2396
|
+
|
|
2397
|
+
} else { throw e; }
|
|
2398
|
+
}
|
|
2399
|
+
}
|
|
2400
|
+
|
|
2401
|
+
const bytes = await module.arrayBuffer();
|
|
2402
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
2403
|
+
} else {
|
|
2404
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
2405
|
+
|
|
2406
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
2407
|
+
return { instance, module };
|
|
2408
|
+
} else {
|
|
2409
|
+
return instance;
|
|
2410
|
+
}
|
|
2411
|
+
}
|
|
2412
|
+
|
|
2413
|
+
function expectedResponseType(type) {
|
|
2414
|
+
switch (type) {
|
|
2415
|
+
case 'basic': case 'cors': case 'default': return true;
|
|
2416
|
+
}
|
|
2417
|
+
return false;
|
|
2418
|
+
}
|
|
2419
|
+
}
|
|
2420
|
+
|
|
2421
|
+
function initSync(module) {
|
|
2422
|
+
if (wasm !== undefined) return wasm;
|
|
2423
|
+
|
|
2424
|
+
|
|
2425
|
+
if (module !== undefined) {
|
|
2426
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
2427
|
+
({module} = module)
|
|
2428
|
+
} else {
|
|
2429
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
2430
|
+
}
|
|
2431
|
+
}
|
|
2432
|
+
|
|
2433
|
+
const imports = __wbg_get_imports();
|
|
2434
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
2435
|
+
module = new WebAssembly.Module(module);
|
|
2436
|
+
}
|
|
2437
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
2438
|
+
return __wbg_finalize_init(instance, module);
|
|
2439
|
+
}
|
|
2440
|
+
|
|
2441
|
+
async function __wbg_init(module_or_path) {
|
|
2442
|
+
if (wasm !== undefined) return wasm;
|
|
2443
|
+
|
|
2444
|
+
|
|
2445
|
+
if (module_or_path !== undefined) {
|
|
2446
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
2447
|
+
({module_or_path} = module_or_path)
|
|
2448
|
+
} else {
|
|
2449
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
2450
|
+
}
|
|
2451
|
+
}
|
|
2452
|
+
|
|
2453
|
+
if (module_or_path === undefined) {
|
|
2454
|
+
module_or_path = new URL('cosmol_viewer_wasm_bg.wasm', import.meta.url);
|
|
2455
|
+
}
|
|
2456
|
+
const imports = __wbg_get_imports();
|
|
2457
|
+
|
|
2458
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
2459
|
+
module_or_path = fetch(module_or_path);
|
|
2460
|
+
}
|
|
2461
|
+
|
|
2462
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
2463
|
+
|
|
2464
|
+
return __wbg_finalize_init(instance, module);
|
|
2465
|
+
}
|
|
2466
|
+
|
|
2467
|
+
export { initSync, __wbg_init as default };
|