hephaestus-wasm 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hephaestus_wasm.d.ts +13 -8
- package/hephaestus_wasm.js +370 -372
- package/hephaestus_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/hephaestus_wasm.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export class PlotHandle {
|
|
|
24
24
|
* stays off unless [`Self::pick_at`] is going to be called. Nothing is
|
|
25
25
|
* read back from the GPU either way.
|
|
26
26
|
*/
|
|
27
|
-
static create(canvas: HTMLCanvasElement, doc: Uint8Array, picking: boolean): Promise<PlotHandle>;
|
|
27
|
+
static create(canvas: HTMLCanvasElement, doc: Uint8Array | number[], picking: boolean): Promise<PlotHandle>;
|
|
28
28
|
/**
|
|
29
29
|
* Dots per inch the document's writer rendered at, if it recorded one.
|
|
30
30
|
*/
|
|
@@ -139,7 +139,7 @@ export function isSupported(): boolean;
|
|
|
139
139
|
* list, since registering nothing silently would render a textless plot
|
|
140
140
|
* with no indication why.
|
|
141
141
|
*/
|
|
142
|
-
export function registerFont(bytes: Uint8Array): string[];
|
|
142
|
+
export function registerFont(bytes: Uint8Array | number[]): string[];
|
|
143
143
|
|
|
144
144
|
/**
|
|
145
145
|
* Point a generic family at concrete families already registered.
|
|
@@ -161,7 +161,7 @@ export interface InitOutput {
|
|
|
161
161
|
readonly documentFormatVersion: () => number;
|
|
162
162
|
readonly hasFonts: () => number;
|
|
163
163
|
readonly isSupported: () => number;
|
|
164
|
-
readonly plothandle_create: (a:
|
|
164
|
+
readonly plothandle_create: (a: any, b: number, c: number, d: number) => any;
|
|
165
165
|
readonly plothandle_hintDpi: (a: number, b: number) => void;
|
|
166
166
|
readonly plothandle_hintHeight: (a: number, b: number) => void;
|
|
167
167
|
readonly plothandle_hintWidth: (a: number, b: number) => void;
|
|
@@ -172,14 +172,19 @@ export interface InitOutput {
|
|
|
172
172
|
readonly plothandle_setDark: (a: number, b: number) => void;
|
|
173
173
|
readonly registerFont: (a: number, b: number, c: number) => void;
|
|
174
174
|
readonly setGenericFamily: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
175
|
-
readonly
|
|
176
|
-
readonly
|
|
175
|
+
readonly __wasm_bindgen_func_elem_4747: (a: number, b: number, c: number, d: any) => void;
|
|
176
|
+
readonly __wasm_bindgen_func_elem_4811: (a: number, b: number, c: any, d: any) => void;
|
|
177
177
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
178
178
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
179
|
-
readonly __wbindgen_export3: (a: number) => void;
|
|
180
|
-
readonly __wbindgen_export4: (a: number
|
|
179
|
+
readonly __wbindgen_export3: (a: number, b: number, c: number) => void;
|
|
180
|
+
readonly __wbindgen_export4: (a: number) => void;
|
|
181
|
+
readonly __wbindgen_export5: () => number;
|
|
182
|
+
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
183
|
+
readonly __wbindgen_export6: (a: number, b: number) => void;
|
|
181
184
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
182
|
-
readonly
|
|
185
|
+
readonly __wbindgen_export7: (a: number) => void;
|
|
186
|
+
readonly __wbindgen_export8: (a: number, b: number) => void;
|
|
187
|
+
readonly __wbindgen_start: () => void;
|
|
183
188
|
}
|
|
184
189
|
|
|
185
190
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
package/hephaestus_wasm.js
CHANGED
|
@@ -36,15 +36,16 @@ export class PlotHandle {
|
|
|
36
36
|
* stays off unless [`Self::pick_at`] is going to be called. Nothing is
|
|
37
37
|
* read back from the GPU either way.
|
|
38
38
|
* @param {HTMLCanvasElement} canvas
|
|
39
|
-
* @param {Uint8Array} doc
|
|
39
|
+
* @param {Uint8Array | number[]} doc
|
|
40
40
|
* @param {boolean} picking
|
|
41
41
|
* @returns {Promise<PlotHandle>}
|
|
42
42
|
*/
|
|
43
43
|
static create(canvas, doc, picking) {
|
|
44
|
+
const val2 = +picking;
|
|
44
45
|
const ptr0 = passArray8ToWasm0(doc, wasm.__wbindgen_export);
|
|
45
46
|
const len0 = WASM_VECTOR_LEN;
|
|
46
|
-
const ret = wasm.plothandle_create(
|
|
47
|
-
return
|
|
47
|
+
const ret = wasm.plothandle_create(canvas, ptr0, len0, val2);
|
|
48
|
+
return ret;
|
|
48
49
|
}
|
|
49
50
|
/**
|
|
50
51
|
* Dots per inch the document's writer rendered at, if it recorded one.
|
|
@@ -52,7 +53,7 @@ export class PlotHandle {
|
|
|
52
53
|
*/
|
|
53
54
|
hintDpi() {
|
|
54
55
|
try {
|
|
55
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
56
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
56
57
|
wasm.plothandle_hintDpi(retptr, this.__wbg_ptr);
|
|
57
58
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
58
59
|
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
@@ -67,7 +68,7 @@ export class PlotHandle {
|
|
|
67
68
|
*/
|
|
68
69
|
hintHeight() {
|
|
69
70
|
try {
|
|
70
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
71
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
71
72
|
wasm.plothandle_hintHeight(retptr, this.__wbg_ptr);
|
|
72
73
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
73
74
|
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
@@ -85,7 +86,7 @@ export class PlotHandle {
|
|
|
85
86
|
*/
|
|
86
87
|
hintWidth() {
|
|
87
88
|
try {
|
|
88
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
89
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
89
90
|
wasm.plothandle_hintWidth(retptr, this.__wbg_ptr);
|
|
90
91
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
91
92
|
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
@@ -124,12 +125,12 @@ export class PlotHandle {
|
|
|
124
125
|
*/
|
|
125
126
|
render() {
|
|
126
127
|
try {
|
|
127
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
128
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
128
129
|
wasm.plothandle_render(retptr, this.__wbg_ptr);
|
|
129
130
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
130
131
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
131
132
|
if (r1) {
|
|
132
|
-
throw
|
|
133
|
+
throw takeFromExternrefTable0(r0);
|
|
133
134
|
}
|
|
134
135
|
} finally {
|
|
135
136
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
@@ -235,12 +236,12 @@ export function isSupported() {
|
|
|
235
236
|
* A blob holding no recognisable face is an error rather than an empty
|
|
236
237
|
* list, since registering nothing silently would render a textless plot
|
|
237
238
|
* with no indication why.
|
|
238
|
-
* @param {Uint8Array} bytes
|
|
239
|
+
* @param {Uint8Array | number[]} bytes
|
|
239
240
|
* @returns {string[]}
|
|
240
241
|
*/
|
|
241
242
|
export function registerFont(bytes) {
|
|
242
243
|
try {
|
|
243
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
244
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
244
245
|
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export);
|
|
245
246
|
const len0 = WASM_VECTOR_LEN;
|
|
246
247
|
wasm.registerFont(retptr, ptr0, len0);
|
|
@@ -249,10 +250,10 @@ export function registerFont(bytes) {
|
|
|
249
250
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
250
251
|
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
251
252
|
if (r3) {
|
|
252
|
-
throw
|
|
253
|
+
throw takeFromExternrefTable0(r2);
|
|
253
254
|
}
|
|
254
255
|
var v2 = getArrayJsValueFromWasm0(r0, r1);
|
|
255
|
-
wasm.
|
|
256
|
+
wasm.__wbindgen_export3(r0, r1 * 4, 4);
|
|
256
257
|
return v2;
|
|
257
258
|
} finally {
|
|
258
259
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
@@ -273,16 +274,23 @@ export function registerFont(bytes) {
|
|
|
273
274
|
*/
|
|
274
275
|
export function setGenericFamily(kind, families) {
|
|
275
276
|
try {
|
|
276
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
277
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
278
|
+
let ptr0, len0, ptr1, len1;
|
|
279
|
+
try {
|
|
280
|
+
ptr0 = passStringToWasm0(kind, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
281
|
+
len0 = WASM_VECTOR_LEN;
|
|
282
|
+
ptr1 = passArrayJsValueToWasm0(families, wasm.__wbindgen_export);
|
|
283
|
+
len1 = WASM_VECTOR_LEN;
|
|
284
|
+
} catch (e) {
|
|
285
|
+
if (ptr1) { wasm.__wbindgen_export8(ptr1, len1); wasm.__wbindgen_export3(ptr1, len1 * 4, 4); }
|
|
286
|
+
if (ptr0) { wasm.__wbindgen_export3(ptr0, len0 * 1, 1); }
|
|
287
|
+
throw e;
|
|
288
|
+
}
|
|
281
289
|
wasm.setGenericFamily(retptr, ptr0, len0, ptr1, len1);
|
|
282
290
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
283
291
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
284
292
|
if (r1) {
|
|
285
|
-
throw
|
|
293
|
+
throw takeFromExternrefTable0(r0);
|
|
286
294
|
}
|
|
287
295
|
} finally {
|
|
288
296
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
@@ -291,456 +299,457 @@ export function setGenericFamily(kind, families) {
|
|
|
291
299
|
function __wbg_get_imports() {
|
|
292
300
|
const import0 = {
|
|
293
301
|
__proto__: null,
|
|
294
|
-
|
|
302
|
+
__wbg_Error_208446807d0d1e30: function(arg0, arg1) {
|
|
295
303
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
296
|
-
return
|
|
304
|
+
return ret;
|
|
297
305
|
},
|
|
298
|
-
|
|
299
|
-
const v =
|
|
306
|
+
__wbg___wbindgen_boolean_get_4f1baf9a00be3c74: function(arg0) {
|
|
307
|
+
const v = arg0;
|
|
300
308
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
301
309
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
302
310
|
},
|
|
303
|
-
|
|
304
|
-
const ret = debugString(
|
|
311
|
+
__wbg___wbindgen_debug_string_f249a2a76caa9a55: function(arg0, arg1) {
|
|
312
|
+
const ret = debugString(arg1);
|
|
305
313
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
306
314
|
const len1 = WASM_VECTOR_LEN;
|
|
307
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
308
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
315
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
316
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
309
317
|
},
|
|
310
|
-
|
|
311
|
-
const ret = typeof(
|
|
318
|
+
__wbg___wbindgen_is_function_741ff2bb612836f5: function(arg0) {
|
|
319
|
+
const ret = typeof(arg0) === 'function';
|
|
312
320
|
return ret;
|
|
313
321
|
},
|
|
314
|
-
|
|
315
|
-
const ret =
|
|
322
|
+
__wbg___wbindgen_is_undefined_be5b34249ff1fc15: function(arg0) {
|
|
323
|
+
const ret = arg0 === undefined;
|
|
316
324
|
return ret;
|
|
317
325
|
},
|
|
318
|
-
|
|
319
|
-
const obj =
|
|
326
|
+
__wbg___wbindgen_number_get_934b640d0889af78: function(arg0, arg1) {
|
|
327
|
+
const obj = arg1;
|
|
320
328
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
321
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
322
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
329
|
+
getDataViewMemory0().setFloat64((arg0 >>> 0) + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
330
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, !isLikeNone(ret), true);
|
|
323
331
|
},
|
|
324
|
-
|
|
325
|
-
const obj =
|
|
332
|
+
__wbg___wbindgen_string_get_7ce8eee7fd327545: function(arg0, arg1) {
|
|
333
|
+
const obj = arg1;
|
|
326
334
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
327
335
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
328
336
|
var len1 = WASM_VECTOR_LEN;
|
|
329
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
330
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
337
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
338
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
331
339
|
},
|
|
332
|
-
|
|
340
|
+
__wbg___wbindgen_throw_4c88d8bf264fd984: function(arg0, arg1) {
|
|
333
341
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
334
342
|
},
|
|
335
|
-
|
|
336
|
-
|
|
343
|
+
__wbg__wbg_cb_unref_09736879a3f67559: function(arg0) {
|
|
344
|
+
arg0._wbg_cb_unref();
|
|
337
345
|
},
|
|
338
|
-
|
|
339
|
-
|
|
346
|
+
__wbg_activeTexture_89cef8c297ad0698: function(arg0, arg1) {
|
|
347
|
+
arg0.activeTexture(arg1 >>> 0);
|
|
340
348
|
},
|
|
341
|
-
|
|
342
|
-
|
|
349
|
+
__wbg_attachShader_3ed301cc92db59f6: function(arg0, arg1, arg2) {
|
|
350
|
+
arg0.attachShader(arg1, arg2);
|
|
343
351
|
},
|
|
344
|
-
|
|
345
|
-
|
|
352
|
+
__wbg_bindBufferBase_6860496c67f7dd5a: function(arg0, arg1, arg2, arg3) {
|
|
353
|
+
arg0.bindBufferBase(arg1 >>> 0, arg2 >>> 0, arg3);
|
|
346
354
|
},
|
|
347
|
-
|
|
348
|
-
|
|
355
|
+
__wbg_bindBuffer_cbc9075f76fffa51: function(arg0, arg1, arg2) {
|
|
356
|
+
arg0.bindBuffer(arg1 >>> 0, arg2);
|
|
349
357
|
},
|
|
350
|
-
|
|
351
|
-
|
|
358
|
+
__wbg_bindFramebuffer_79534f24b57b7b95: function(arg0, arg1, arg2) {
|
|
359
|
+
arg0.bindFramebuffer(arg1 >>> 0, arg2);
|
|
352
360
|
},
|
|
353
|
-
|
|
354
|
-
|
|
361
|
+
__wbg_bindTexture_a23350e1b573ddfd: function(arg0, arg1, arg2) {
|
|
362
|
+
arg0.bindTexture(arg1 >>> 0, arg2);
|
|
355
363
|
},
|
|
356
|
-
|
|
357
|
-
|
|
364
|
+
__wbg_bindVertexArray_cc64c48bf67ab8d4: function(arg0, arg1) {
|
|
365
|
+
arg0.bindVertexArray(arg1);
|
|
358
366
|
},
|
|
359
|
-
|
|
360
|
-
|
|
367
|
+
__wbg_blendFunc_378a3be8ab6cb7d0: function(arg0, arg1, arg2) {
|
|
368
|
+
arg0.blendFunc(arg1 >>> 0, arg2 >>> 0);
|
|
361
369
|
},
|
|
362
|
-
|
|
363
|
-
|
|
370
|
+
__wbg_bufferData_41b591a9f2d502ad: function(arg0, arg1, arg2, arg3) {
|
|
371
|
+
arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
|
|
364
372
|
},
|
|
365
|
-
|
|
366
|
-
|
|
373
|
+
__wbg_bufferData_bab7dfe2951e9eab: function(arg0, arg1, arg2, arg3, arg4) {
|
|
374
|
+
arg0.bufferData(arg1 >>> 0, getArrayU8FromWasm0(arg2, arg3), arg4 >>> 0);
|
|
367
375
|
},
|
|
368
|
-
|
|
369
|
-
|
|
376
|
+
__wbg_bufferSubData_6dcda1ba2321d376: function(arg0, arg1, arg2, arg3, arg4) {
|
|
377
|
+
arg0.bufferSubData(arg1 >>> 0, arg2, getArrayU8FromWasm0(arg3, arg4));
|
|
370
378
|
},
|
|
371
|
-
|
|
372
|
-
const ret =
|
|
373
|
-
return
|
|
379
|
+
__wbg_call_a410eb4b59ed5965: function() { return handleError(function (arg0, arg1, arg2) {
|
|
380
|
+
const ret = arg0.call(arg1, arg2);
|
|
381
|
+
return ret;
|
|
374
382
|
}, arguments); },
|
|
375
|
-
|
|
376
|
-
|
|
383
|
+
__wbg_clearColor_195b5a731bca5836: function(arg0, arg1, arg2, arg3, arg4) {
|
|
384
|
+
arg0.clearColor(arg1, arg2, arg3, arg4);
|
|
377
385
|
},
|
|
378
|
-
|
|
379
|
-
|
|
386
|
+
__wbg_clearDepth_3dc1f52f96f29526: function(arg0, arg1) {
|
|
387
|
+
arg0.clearDepth(arg1);
|
|
380
388
|
},
|
|
381
|
-
|
|
382
|
-
|
|
389
|
+
__wbg_clear_ccb3d618da90fea3: function(arg0, arg1) {
|
|
390
|
+
arg0.clear(arg1 >>> 0);
|
|
383
391
|
},
|
|
384
|
-
|
|
385
|
-
|
|
392
|
+
__wbg_compileShader_11eb6754e9b15970: function(arg0, arg1) {
|
|
393
|
+
arg0.compileShader(arg1);
|
|
386
394
|
},
|
|
387
|
-
|
|
388
|
-
|
|
395
|
+
__wbg_copyTexSubImage3D_e35f615c7c8244ba: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
396
|
+
arg0.copyTexSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
|
|
389
397
|
},
|
|
390
|
-
|
|
391
|
-
const ret =
|
|
392
|
-
return isLikeNone(ret) ? 0 :
|
|
398
|
+
__wbg_createBuffer_2c27ad5f899d418d: function(arg0) {
|
|
399
|
+
const ret = arg0.createBuffer();
|
|
400
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
393
401
|
},
|
|
394
|
-
|
|
395
|
-
const ret =
|
|
396
|
-
return
|
|
402
|
+
__wbg_createElement_de4a31ed2fb252be: function() { return handleError(function (arg0, arg1, arg2) {
|
|
403
|
+
const ret = arg0.createElement(getStringFromWasm0(arg1, arg2));
|
|
404
|
+
return ret;
|
|
397
405
|
}, arguments); },
|
|
398
|
-
|
|
399
|
-
const ret =
|
|
400
|
-
return isLikeNone(ret) ? 0 :
|
|
406
|
+
__wbg_createFramebuffer_cdf686778c61014d: function(arg0) {
|
|
407
|
+
const ret = arg0.createFramebuffer();
|
|
408
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
401
409
|
},
|
|
402
|
-
|
|
403
|
-
const ret =
|
|
404
|
-
return isLikeNone(ret) ? 0 :
|
|
410
|
+
__wbg_createProgram_ea784724f6f0074f: function(arg0) {
|
|
411
|
+
const ret = arg0.createProgram();
|
|
412
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
405
413
|
},
|
|
406
|
-
|
|
407
|
-
const ret =
|
|
408
|
-
return isLikeNone(ret) ? 0 :
|
|
414
|
+
__wbg_createShader_9754a1e4ef374e84: function(arg0, arg1) {
|
|
415
|
+
const ret = arg0.createShader(arg1 >>> 0);
|
|
416
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
409
417
|
},
|
|
410
|
-
|
|
411
|
-
const ret =
|
|
412
|
-
return isLikeNone(ret) ? 0 :
|
|
418
|
+
__wbg_createTexture_3287f26407473071: function(arg0) {
|
|
419
|
+
const ret = arg0.createTexture();
|
|
420
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
413
421
|
},
|
|
414
|
-
|
|
415
|
-
const ret =
|
|
416
|
-
return isLikeNone(ret) ? 0 :
|
|
422
|
+
__wbg_createVertexArray_1293d2ffa8346be2: function(arg0) {
|
|
423
|
+
const ret = arg0.createVertexArray();
|
|
424
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
417
425
|
},
|
|
418
|
-
|
|
419
|
-
|
|
426
|
+
__wbg_deleteBuffer_673584ba5a55669d: function(arg0, arg1) {
|
|
427
|
+
arg0.deleteBuffer(arg1);
|
|
420
428
|
},
|
|
421
|
-
|
|
422
|
-
|
|
429
|
+
__wbg_deleteFramebuffer_ffdb1bee4c92ae4c: function(arg0, arg1) {
|
|
430
|
+
arg0.deleteFramebuffer(arg1);
|
|
423
431
|
},
|
|
424
|
-
|
|
425
|
-
|
|
432
|
+
__wbg_deleteProgram_c07d952a1b0c1cb6: function(arg0, arg1) {
|
|
433
|
+
arg0.deleteProgram(arg1);
|
|
426
434
|
},
|
|
427
|
-
|
|
428
|
-
|
|
435
|
+
__wbg_deleteShader_ac74568b64a1c3c7: function(arg0, arg1) {
|
|
436
|
+
arg0.deleteShader(arg1);
|
|
429
437
|
},
|
|
430
|
-
|
|
431
|
-
|
|
438
|
+
__wbg_deleteTexture_1653a9994a44215e: function(arg0, arg1) {
|
|
439
|
+
arg0.deleteTexture(arg1);
|
|
432
440
|
},
|
|
433
|
-
|
|
434
|
-
|
|
441
|
+
__wbg_deleteVertexArray_2589b74b67ba20c8: function(arg0, arg1) {
|
|
442
|
+
arg0.deleteVertexArray(arg1);
|
|
435
443
|
},
|
|
436
|
-
|
|
437
|
-
|
|
444
|
+
__wbg_depthFunc_04abd9f6ff980ba9: function(arg0, arg1) {
|
|
445
|
+
arg0.depthFunc(arg1 >>> 0);
|
|
438
446
|
},
|
|
439
|
-
|
|
440
|
-
|
|
447
|
+
__wbg_depthMask_2ba7e83178c3cec3: function(arg0, arg1) {
|
|
448
|
+
arg0.depthMask(arg1 !== 0);
|
|
441
449
|
},
|
|
442
|
-
|
|
443
|
-
|
|
450
|
+
__wbg_disable_8a9e81e6d64d046b: function(arg0, arg1) {
|
|
451
|
+
arg0.disable(arg1 >>> 0);
|
|
444
452
|
},
|
|
445
|
-
|
|
446
|
-
const ret =
|
|
447
|
-
return isLikeNone(ret) ? 0 :
|
|
453
|
+
__wbg_document_3b5c3071b43e97ee: function(arg0) {
|
|
454
|
+
const ret = arg0.document;
|
|
455
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
448
456
|
},
|
|
449
|
-
|
|
450
|
-
|
|
457
|
+
__wbg_drawArraysInstanced_762b36f2147c7a85: function(arg0, arg1, arg2, arg3, arg4) {
|
|
458
|
+
arg0.drawArraysInstanced(arg1 >>> 0, arg2, arg3, arg4);
|
|
451
459
|
},
|
|
452
|
-
|
|
453
|
-
|
|
460
|
+
__wbg_enableVertexAttribArray_eeecc6185af24227: function(arg0, arg1) {
|
|
461
|
+
arg0.enableVertexAttribArray(arg1 >>> 0);
|
|
454
462
|
},
|
|
455
|
-
|
|
456
|
-
|
|
463
|
+
__wbg_enable_e955d456ef6b93f7: function(arg0, arg1) {
|
|
464
|
+
arg0.enable(arg1 >>> 0);
|
|
457
465
|
},
|
|
458
|
-
|
|
459
|
-
|
|
466
|
+
__wbg_flush_a9981e0bd1a44897: function(arg0) {
|
|
467
|
+
arg0.flush();
|
|
460
468
|
},
|
|
461
|
-
|
|
462
|
-
|
|
469
|
+
__wbg_framebufferTexture2D_b6250a0c37eb48c2: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
470
|
+
arg0.framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5);
|
|
463
471
|
},
|
|
464
|
-
|
|
465
|
-
|
|
472
|
+
__wbg_framebufferTextureLayer_2f6e24e2dbf9b214: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
473
|
+
arg0.framebufferTextureLayer(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5);
|
|
466
474
|
},
|
|
467
|
-
|
|
468
|
-
const ret =
|
|
469
|
-
return isLikeNone(ret) ? 0 :
|
|
475
|
+
__wbg_getContext_9d32151c28a36ed6: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
476
|
+
const ret = arg0.getContext(getStringFromWasm0(arg1, arg2), arg3);
|
|
477
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
470
478
|
}, arguments); },
|
|
471
|
-
|
|
472
|
-
const ret =
|
|
473
|
-
return isLikeNone(ret) ? 0 :
|
|
479
|
+
__wbg_getContext_d93f904b714852ae: function() { return handleError(function (arg0, arg1, arg2) {
|
|
480
|
+
const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
|
|
481
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
474
482
|
}, arguments); },
|
|
475
|
-
|
|
476
|
-
const ret =
|
|
477
|
-
return
|
|
483
|
+
__wbg_getParameter_4c67158a3cef7a34: function() { return handleError(function (arg0, arg1) {
|
|
484
|
+
const ret = arg0.getParameter(arg1 >>> 0);
|
|
485
|
+
return ret;
|
|
478
486
|
}, arguments); },
|
|
479
|
-
|
|
480
|
-
const ret =
|
|
487
|
+
__wbg_getProgramInfoLog_01799fd7b07b7f3c: function(arg0, arg1, arg2) {
|
|
488
|
+
const ret = arg1.getProgramInfoLog(arg2);
|
|
481
489
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
482
490
|
var len1 = WASM_VECTOR_LEN;
|
|
483
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
484
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
491
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
492
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
485
493
|
},
|
|
486
|
-
|
|
487
|
-
const ret =
|
|
488
|
-
return
|
|
494
|
+
__wbg_getProgramParameter_1e7562e7d66170c3: function(arg0, arg1, arg2) {
|
|
495
|
+
const ret = arg0.getProgramParameter(arg1, arg2 >>> 0);
|
|
496
|
+
return ret;
|
|
489
497
|
},
|
|
490
|
-
|
|
491
|
-
const ret =
|
|
498
|
+
__wbg_getShaderInfoLog_3cfe5b3e097d0f2d: function(arg0, arg1, arg2) {
|
|
499
|
+
const ret = arg1.getShaderInfoLog(arg2);
|
|
492
500
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
493
501
|
var len1 = WASM_VECTOR_LEN;
|
|
494
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
495
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
502
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
503
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
496
504
|
},
|
|
497
|
-
|
|
498
|
-
const ret =
|
|
499
|
-
return
|
|
505
|
+
__wbg_getShaderParameter_fc64069fbc010d19: function(arg0, arg1, arg2) {
|
|
506
|
+
const ret = arg0.getShaderParameter(arg1, arg2 >>> 0);
|
|
507
|
+
return ret;
|
|
500
508
|
},
|
|
501
|
-
|
|
502
|
-
const ret =
|
|
509
|
+
__wbg_getUniformBlockIndex_0742ae35f926850a: function(arg0, arg1, arg2, arg3) {
|
|
510
|
+
const ret = arg0.getUniformBlockIndex(arg1, getStringFromWasm0(arg2, arg3));
|
|
503
511
|
return ret;
|
|
504
512
|
},
|
|
505
|
-
|
|
506
|
-
const ret =
|
|
507
|
-
return isLikeNone(ret) ? 0 :
|
|
513
|
+
__wbg_getUniformLocation_6352e0669c8f5393: function(arg0, arg1, arg2, arg3) {
|
|
514
|
+
const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3));
|
|
515
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
508
516
|
},
|
|
509
|
-
|
|
510
|
-
const ret =
|
|
517
|
+
__wbg_height_ac6f1c3f49c13fe2: function(arg0) {
|
|
518
|
+
const ret = arg0.height;
|
|
511
519
|
return ret;
|
|
512
520
|
},
|
|
513
|
-
|
|
521
|
+
__wbg_instanceof_HtmlCanvasElement_89f280683e987b9e: function(arg0) {
|
|
514
522
|
let result;
|
|
515
523
|
try {
|
|
516
|
-
result =
|
|
524
|
+
result = arg0 instanceof HTMLCanvasElement;
|
|
517
525
|
} catch (_) {
|
|
518
526
|
result = false;
|
|
519
527
|
}
|
|
520
528
|
const ret = result;
|
|
521
529
|
return ret;
|
|
522
530
|
},
|
|
523
|
-
|
|
531
|
+
__wbg_instanceof_Int32Array_6d09616361bcf0c6: function(arg0) {
|
|
524
532
|
let result;
|
|
525
533
|
try {
|
|
526
|
-
result =
|
|
534
|
+
result = arg0 instanceof Int32Array;
|
|
527
535
|
} catch (_) {
|
|
528
536
|
result = false;
|
|
529
537
|
}
|
|
530
538
|
const ret = result;
|
|
531
539
|
return ret;
|
|
532
540
|
},
|
|
533
|
-
|
|
541
|
+
__wbg_instanceof_WebGl2RenderingContext_de6feb460369d6c6: function(arg0) {
|
|
534
542
|
let result;
|
|
535
543
|
try {
|
|
536
|
-
result =
|
|
544
|
+
result = arg0 instanceof WebGL2RenderingContext;
|
|
537
545
|
} catch (_) {
|
|
538
546
|
result = false;
|
|
539
547
|
}
|
|
540
548
|
const ret = result;
|
|
541
549
|
return ret;
|
|
542
550
|
},
|
|
543
|
-
|
|
551
|
+
__wbg_instanceof_WebGlBuffer_04a3c84913df0f7c: function(arg0) {
|
|
544
552
|
let result;
|
|
545
553
|
try {
|
|
546
|
-
result =
|
|
554
|
+
result = arg0 instanceof WebGLBuffer;
|
|
547
555
|
} catch (_) {
|
|
548
556
|
result = false;
|
|
549
557
|
}
|
|
550
558
|
const ret = result;
|
|
551
559
|
return ret;
|
|
552
560
|
},
|
|
553
|
-
|
|
561
|
+
__wbg_instanceof_WebGlFramebuffer_65301cc37e9738f1: function(arg0) {
|
|
554
562
|
let result;
|
|
555
563
|
try {
|
|
556
|
-
result =
|
|
564
|
+
result = arg0 instanceof WebGLFramebuffer;
|
|
557
565
|
} catch (_) {
|
|
558
566
|
result = false;
|
|
559
567
|
}
|
|
560
568
|
const ret = result;
|
|
561
569
|
return ret;
|
|
562
570
|
},
|
|
563
|
-
|
|
571
|
+
__wbg_instanceof_WebGlTexture_78228014a0d9a90f: function(arg0) {
|
|
564
572
|
let result;
|
|
565
573
|
try {
|
|
566
|
-
result =
|
|
574
|
+
result = arg0 instanceof WebGLTexture;
|
|
567
575
|
} catch (_) {
|
|
568
576
|
result = false;
|
|
569
577
|
}
|
|
570
578
|
const ret = result;
|
|
571
579
|
return ret;
|
|
572
580
|
},
|
|
573
|
-
|
|
581
|
+
__wbg_instanceof_Window_5cf453f5639aa1a2: function(arg0) {
|
|
574
582
|
let result;
|
|
575
583
|
try {
|
|
576
|
-
result =
|
|
584
|
+
result = arg0 instanceof Window;
|
|
577
585
|
} catch (_) {
|
|
578
586
|
result = false;
|
|
579
587
|
}
|
|
580
588
|
const ret = result;
|
|
581
589
|
return ret;
|
|
582
590
|
},
|
|
583
|
-
|
|
584
|
-
|
|
591
|
+
__wbg_invalidateFramebuffer_33206c632642a1bd: function() { return handleError(function (arg0, arg1, arg2) {
|
|
592
|
+
arg0.invalidateFramebuffer(arg1 >>> 0, arg2);
|
|
585
593
|
}, arguments); },
|
|
586
|
-
|
|
587
|
-
const ret =
|
|
594
|
+
__wbg_isEnabled_7f602de983956b41: function(arg0, arg1) {
|
|
595
|
+
const ret = arg0.isEnabled(arg1 >>> 0);
|
|
588
596
|
return ret;
|
|
589
597
|
},
|
|
590
|
-
|
|
591
|
-
const ret =
|
|
598
|
+
__wbg_length_03a2b32a9178fe11: function(arg0) {
|
|
599
|
+
const ret = arg0.length;
|
|
592
600
|
return ret;
|
|
593
601
|
},
|
|
594
|
-
|
|
595
|
-
|
|
602
|
+
__wbg_linkProgram_99848b73f1ebab5f: function(arg0, arg1) {
|
|
603
|
+
arg0.linkProgram(arg1);
|
|
596
604
|
},
|
|
597
|
-
|
|
605
|
+
__wbg_new_cd4348290afae586: function() {
|
|
598
606
|
const ret = new Object();
|
|
599
|
-
return
|
|
607
|
+
return ret;
|
|
600
608
|
},
|
|
601
|
-
|
|
609
|
+
__wbg_new_from_slice_3512352010266e02: function(arg0, arg1) {
|
|
602
610
|
const ret = new Uint32Array(getArrayU32FromWasm0(arg0, arg1));
|
|
603
|
-
return
|
|
611
|
+
return ret;
|
|
604
612
|
},
|
|
605
|
-
|
|
613
|
+
__wbg_new_typed_e09da9dae6ee5935: function(arg0, arg1) {
|
|
606
614
|
try {
|
|
607
615
|
var state0 = {a: arg0, b: arg1};
|
|
608
616
|
var cb0 = (arg0, arg1) => {
|
|
609
617
|
const a = state0.a;
|
|
610
618
|
state0.a = 0;
|
|
611
619
|
try {
|
|
612
|
-
return
|
|
620
|
+
return __wasm_bindgen_func_elem_4811(a, state0.b, arg0, arg1);
|
|
613
621
|
} finally {
|
|
614
622
|
state0.a = a;
|
|
615
623
|
}
|
|
616
624
|
};
|
|
617
625
|
const ret = new Promise(cb0);
|
|
618
|
-
return
|
|
626
|
+
return ret;
|
|
619
627
|
} finally {
|
|
620
628
|
state0.a = 0;
|
|
621
629
|
}
|
|
622
630
|
},
|
|
623
|
-
|
|
624
|
-
const ret = Array.of(
|
|
625
|
-
return
|
|
631
|
+
__wbg_of_027eb15371aac932: function(arg0) {
|
|
632
|
+
const ret = Array.of(arg0);
|
|
633
|
+
return ret;
|
|
626
634
|
},
|
|
627
635
|
__wbg_plothandle_new: function(arg0) {
|
|
628
636
|
const ret = PlotHandle.__wrap(arg0);
|
|
629
|
-
return
|
|
637
|
+
return ret;
|
|
630
638
|
},
|
|
631
|
-
|
|
632
|
-
Int32Array.prototype.set.call(getArrayI32FromWasm0(arg0, arg1),
|
|
639
|
+
__wbg_prototypesetcall_153eecd0d28a42a5: function(arg0, arg1, arg2) {
|
|
640
|
+
Int32Array.prototype.set.call(getArrayI32FromWasm0(arg0, arg1), arg2);
|
|
633
641
|
},
|
|
634
|
-
|
|
635
|
-
queueMicrotask
|
|
642
|
+
__wbg_queueMicrotask_1e8503a8a690f0a3: function(arg0) {
|
|
643
|
+
const ret = arg0.queueMicrotask;
|
|
644
|
+
return ret;
|
|
636
645
|
},
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
return addHeapObject(ret);
|
|
646
|
+
__wbg_queueMicrotask_4a1a4d8dd332373b: function(arg0) {
|
|
647
|
+
queueMicrotask(arg0);
|
|
640
648
|
},
|
|
641
|
-
|
|
642
|
-
const ret = Promise.resolve(
|
|
643
|
-
return
|
|
649
|
+
__wbg_resolve_dbf78ab4942478b0: function(arg0) {
|
|
650
|
+
const ret = Promise.resolve(arg0);
|
|
651
|
+
return ret;
|
|
644
652
|
},
|
|
645
|
-
|
|
646
|
-
|
|
653
|
+
__wbg_scissor_17956d9d23dfe025: function(arg0, arg1, arg2, arg3, arg4) {
|
|
654
|
+
arg0.scissor(arg1, arg2, arg3, arg4);
|
|
647
655
|
},
|
|
648
|
-
|
|
649
|
-
const ret = Reflect.set(
|
|
656
|
+
__wbg_set_2793479888329cb6: function() { return handleError(function (arg0, arg1, arg2) {
|
|
657
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
650
658
|
return ret;
|
|
651
659
|
}, arguments); },
|
|
652
|
-
|
|
653
|
-
|
|
660
|
+
__wbg_set_height_ae0610d318c3428c: function(arg0, arg1) {
|
|
661
|
+
arg0.height = arg1 >>> 0;
|
|
654
662
|
},
|
|
655
|
-
|
|
656
|
-
|
|
663
|
+
__wbg_set_width_5f89a551b5472887: function(arg0, arg1) {
|
|
664
|
+
arg0.width = arg1 >>> 0;
|
|
657
665
|
},
|
|
658
|
-
|
|
659
|
-
|
|
666
|
+
__wbg_shaderSource_519d0f56b613b2f9: function(arg0, arg1, arg2, arg3) {
|
|
667
|
+
arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3));
|
|
660
668
|
},
|
|
661
|
-
|
|
662
|
-
const ret = typeof globalThis === 'undefined' ?
|
|
663
|
-
return isLikeNone(ret) ? 0 :
|
|
669
|
+
__wbg_static_accessor_GLOBAL_THIS_003ee833af9699fc: function() {
|
|
670
|
+
const ret = typeof globalThis === 'undefined' ? undefined : globalThis;
|
|
671
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
664
672
|
},
|
|
665
|
-
|
|
666
|
-
const ret = typeof global === 'undefined' ?
|
|
667
|
-
return isLikeNone(ret) ? 0 :
|
|
673
|
+
__wbg_static_accessor_GLOBAL_e4293fb22cbe77da: function() {
|
|
674
|
+
const ret = typeof global === 'undefined' ? undefined : global;
|
|
675
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
668
676
|
},
|
|
669
|
-
|
|
670
|
-
const ret = typeof self === 'undefined' ?
|
|
671
|
-
return isLikeNone(ret) ? 0 :
|
|
677
|
+
__wbg_static_accessor_SELF_53bb20457401453d: function() {
|
|
678
|
+
const ret = typeof self === 'undefined' ? undefined : self;
|
|
679
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
672
680
|
},
|
|
673
|
-
|
|
674
|
-
const ret = typeof window === 'undefined' ?
|
|
675
|
-
return isLikeNone(ret) ? 0 :
|
|
681
|
+
__wbg_static_accessor_WINDOW_b5e0810bfecb7feb: function() {
|
|
682
|
+
const ret = typeof window === 'undefined' ? undefined : window;
|
|
683
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
676
684
|
},
|
|
677
|
-
|
|
678
|
-
|
|
685
|
+
__wbg_texImage2D_170b4cef4a56a388: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
|
|
686
|
+
arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9 === 0 ? undefined : getArrayU8FromWasm0(arg9, arg10));
|
|
679
687
|
}, arguments); },
|
|
680
|
-
|
|
681
|
-
|
|
688
|
+
__wbg_texImage2D_5048d2cd8540da16: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
689
|
+
arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
682
690
|
}, arguments); },
|
|
683
|
-
|
|
684
|
-
|
|
691
|
+
__wbg_texImage3D_3fbc99788d0cb723: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
|
|
692
|
+
arg0.texImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8 >>> 0, arg9 >>> 0, arg10 === 0 ? undefined : getArrayU8FromWasm0(arg10, arg11));
|
|
685
693
|
}, arguments); },
|
|
686
|
-
|
|
687
|
-
|
|
694
|
+
__wbg_texParameteri_e24e4fdc17153838: function(arg0, arg1, arg2, arg3) {
|
|
695
|
+
arg0.texParameteri(arg1 >>> 0, arg2 >>> 0, arg3);
|
|
688
696
|
},
|
|
689
|
-
|
|
690
|
-
|
|
697
|
+
__wbg_texSubImage3D_be290bbe354d2ca0: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12) {
|
|
698
|
+
arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11 === 0 ? undefined : getArrayU8FromWasm0(arg11, arg12));
|
|
691
699
|
}, arguments); },
|
|
692
|
-
|
|
693
|
-
const ret =
|
|
694
|
-
return
|
|
700
|
+
__wbg_then_e3f7f2d365708be8: function(arg0, arg1) {
|
|
701
|
+
const ret = arg0.then(arg1);
|
|
702
|
+
return ret;
|
|
695
703
|
},
|
|
696
|
-
|
|
697
|
-
|
|
704
|
+
__wbg_uniform1i_778a02a48ecdceed: function(arg0, arg1, arg2) {
|
|
705
|
+
arg0.uniform1i(arg1, arg2);
|
|
698
706
|
},
|
|
699
|
-
|
|
700
|
-
|
|
707
|
+
__wbg_uniformBlockBinding_61c5a97721e0f36b: function(arg0, arg1, arg2, arg3) {
|
|
708
|
+
arg0.uniformBlockBinding(arg1, arg2 >>> 0, arg3 >>> 0);
|
|
701
709
|
},
|
|
702
|
-
|
|
703
|
-
|
|
710
|
+
__wbg_useProgram_d9c24a7d8632c4c1: function(arg0, arg1) {
|
|
711
|
+
arg0.useProgram(arg1);
|
|
704
712
|
},
|
|
705
|
-
|
|
706
|
-
|
|
713
|
+
__wbg_vertexAttribDivisor_5b64fc697c0496e1: function(arg0, arg1, arg2) {
|
|
714
|
+
arg0.vertexAttribDivisor(arg1 >>> 0, arg2 >>> 0);
|
|
707
715
|
},
|
|
708
|
-
|
|
709
|
-
|
|
716
|
+
__wbg_vertexAttribIPointer_a6240b64263fb63b: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
717
|
+
arg0.vertexAttribIPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
|
|
710
718
|
},
|
|
711
|
-
|
|
712
|
-
|
|
719
|
+
__wbg_viewport_cdae9e8b2f33343d: function(arg0, arg1, arg2, arg3, arg4) {
|
|
720
|
+
arg0.viewport(arg1, arg2, arg3, arg4);
|
|
713
721
|
},
|
|
714
|
-
|
|
715
|
-
const ret =
|
|
722
|
+
__wbg_width_babc5dc7654771b1: function(arg0) {
|
|
723
|
+
const ret = arg0.width;
|
|
716
724
|
return ret;
|
|
717
725
|
},
|
|
718
|
-
|
|
719
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
720
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
721
|
-
return
|
|
726
|
+
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
727
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 321, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
728
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_4747);
|
|
729
|
+
return ret;
|
|
722
730
|
},
|
|
723
|
-
|
|
731
|
+
__wbindgen_generic_0000000000000002: function(arg0) {
|
|
724
732
|
// Cast intrinsic for `F64 -> Externref`.
|
|
725
733
|
const ret = arg0;
|
|
726
|
-
return
|
|
734
|
+
return ret;
|
|
727
735
|
},
|
|
728
|
-
|
|
736
|
+
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
729
737
|
// Cast intrinsic for `Ref(Slice(U32)) -> NamedExternref("Uint32Array")`.
|
|
730
738
|
const ret = getArrayU32FromWasm0(arg0, arg1);
|
|
731
|
-
return
|
|
739
|
+
return ret;
|
|
732
740
|
},
|
|
733
|
-
|
|
741
|
+
__wbindgen_generic_0000000000000004: function(arg0, arg1) {
|
|
734
742
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
735
743
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
736
|
-
return
|
|
737
|
-
},
|
|
738
|
-
__wbindgen_object_clone_ref: function(arg0) {
|
|
739
|
-
const ret = getObject(arg0);
|
|
740
|
-
return addHeapObject(ret);
|
|
744
|
+
return ret;
|
|
741
745
|
},
|
|
742
|
-
|
|
743
|
-
|
|
746
|
+
__wbindgen_init_externref_table: function() {
|
|
747
|
+
const table = wasm.__wbindgen_externrefs;
|
|
748
|
+
table.set(0, undefined);
|
|
749
|
+
table.set(1024, undefined);
|
|
750
|
+
table.set(1025, null);
|
|
751
|
+
table.set(1026, true);
|
|
752
|
+
table.set(1027, false);
|
|
744
753
|
},
|
|
745
754
|
};
|
|
746
755
|
return {
|
|
@@ -749,110 +758,94 @@ function __wbg_get_imports() {
|
|
|
749
758
|
};
|
|
750
759
|
}
|
|
751
760
|
|
|
752
|
-
function
|
|
761
|
+
function __wasm_bindgen_func_elem_4811(arg0, arg1, arg2, arg3) {
|
|
762
|
+
wasm.__wasm_bindgen_func_elem_4811(arg0, arg1, arg2, arg3);
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
function __wasm_bindgen_func_elem_4747(arg0, arg1, arg2) {
|
|
753
766
|
try {
|
|
754
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
755
|
-
wasm.
|
|
767
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
768
|
+
wasm.__wasm_bindgen_func_elem_4747(retptr, arg0, arg1, arg2);
|
|
756
769
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
757
770
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
758
771
|
if (r1) {
|
|
759
|
-
throw
|
|
772
|
+
throw takeFromExternrefTable0(r0);
|
|
760
773
|
}
|
|
761
774
|
} finally {
|
|
762
775
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
763
776
|
}
|
|
764
777
|
}
|
|
765
778
|
|
|
766
|
-
function __wasm_bindgen_func_elem_4630(arg0, arg1, arg2, arg3) {
|
|
767
|
-
wasm.__wasm_bindgen_func_elem_4630(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
768
|
-
}
|
|
769
|
-
|
|
770
779
|
const PlotHandleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
771
780
|
? { register: () => {}, unregister: () => {} }
|
|
772
781
|
: new FinalizationRegistry(ptr => wasm.__wbg_plothandle_free(ptr, 1));
|
|
773
782
|
|
|
774
|
-
function
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
heap_next = heap[idx];
|
|
778
|
-
|
|
779
|
-
heap[idx] = obj;
|
|
783
|
+
function addToExternrefTable0(obj) {
|
|
784
|
+
const idx = wasm.__wbindgen_export5();
|
|
785
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
780
786
|
return idx;
|
|
781
787
|
}
|
|
782
788
|
|
|
783
789
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
784
790
|
? { register: () => {}, unregister: () => {} }
|
|
785
|
-
: new FinalizationRegistry(state => wasm.
|
|
791
|
+
: new FinalizationRegistry(state => wasm.__wbindgen_export6(state.a, state.b));
|
|
786
792
|
|
|
787
793
|
function debugString(val) {
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
return 'Object(' + JSON.stringify(val) + ')';
|
|
840
|
-
} catch (_) {
|
|
841
|
-
return 'Object';
|
|
794
|
+
switch (typeof val) {
|
|
795
|
+
// primitive types
|
|
796
|
+
case 'number':
|
|
797
|
+
case 'boolean':
|
|
798
|
+
case 'undefined':
|
|
799
|
+
return `${val}`;
|
|
800
|
+
case 'string':
|
|
801
|
+
return JSON.stringify(val);
|
|
802
|
+
case 'bigint':
|
|
803
|
+
return `${val}n`;
|
|
804
|
+
case 'symbol':
|
|
805
|
+
return val.description !== undefined
|
|
806
|
+
? `Symbol(${val.description})`
|
|
807
|
+
: 'Symbol';
|
|
808
|
+
case 'function':
|
|
809
|
+
return typeof val.name === 'string' && val.name !== ''
|
|
810
|
+
? `Function(${val.name})`
|
|
811
|
+
: 'Function';
|
|
812
|
+
case 'object': {
|
|
813
|
+
if (val === null) {
|
|
814
|
+
return 'null';
|
|
815
|
+
}
|
|
816
|
+
// objects
|
|
817
|
+
if (Array.isArray(val)) {
|
|
818
|
+
return '[' + Array.from(val, debugString).join(', ') + ']';
|
|
819
|
+
}
|
|
820
|
+
// errors
|
|
821
|
+
if (val instanceof Error) {
|
|
822
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
const toStringOutput = toString.call(val);
|
|
826
|
+
// Test for built-in
|
|
827
|
+
const className = /\[object ([^\]]+)\]/.exec(toStringOutput)?.[1];
|
|
828
|
+
|
|
829
|
+
// Failed to match the standard '[object ClassName]'
|
|
830
|
+
if (className === undefined) {
|
|
831
|
+
return toStringOutput;
|
|
832
|
+
}
|
|
833
|
+
if (className === 'Object') {
|
|
834
|
+
// we're a user defined class or Object
|
|
835
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
836
|
+
// easier than looping through ownProperties of `val`.
|
|
837
|
+
try {
|
|
838
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
839
|
+
} catch (_) {
|
|
840
|
+
return 'Object';
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
844
|
+
return className;
|
|
842
845
|
}
|
|
846
|
+
// Per MDN: 'This list of values is exhaustive.'
|
|
847
|
+
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof#description
|
|
843
848
|
}
|
|
844
|
-
// errors
|
|
845
|
-
if (val instanceof Error) {
|
|
846
|
-
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
847
|
-
}
|
|
848
|
-
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
849
|
-
return className;
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
function dropObject(idx) {
|
|
853
|
-
if (idx < 1028) return;
|
|
854
|
-
heap[idx] = heap_next;
|
|
855
|
-
heap_next = idx;
|
|
856
849
|
}
|
|
857
850
|
|
|
858
851
|
function getArrayI32FromWasm0(ptr, len) {
|
|
@@ -865,8 +858,9 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
865
858
|
const mem = getDataViewMemory0();
|
|
866
859
|
const result = [];
|
|
867
860
|
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
868
|
-
result.push(
|
|
861
|
+
result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
|
|
869
862
|
}
|
|
863
|
+
wasm.__wbindgen_export8(ptr, len);
|
|
870
864
|
return result;
|
|
871
865
|
}
|
|
872
866
|
|
|
@@ -897,7 +891,8 @@ function getInt32ArrayMemory0() {
|
|
|
897
891
|
}
|
|
898
892
|
|
|
899
893
|
function getStringFromWasm0(ptr, len) {
|
|
900
|
-
|
|
894
|
+
ptr = ptr >>> 0;
|
|
895
|
+
return decodeText(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
901
896
|
}
|
|
902
897
|
|
|
903
898
|
let cachedUint32ArrayMemory0 = null;
|
|
@@ -916,21 +911,15 @@ function getUint8ArrayMemory0() {
|
|
|
916
911
|
return cachedUint8ArrayMemory0;
|
|
917
912
|
}
|
|
918
913
|
|
|
919
|
-
function getObject(idx) { return heap[idx]; }
|
|
920
|
-
|
|
921
914
|
function handleError(f, args) {
|
|
922
915
|
try {
|
|
923
916
|
return f.apply(this, args);
|
|
924
917
|
} catch (e) {
|
|
925
|
-
|
|
918
|
+
const idx = addToExternrefTable0(e);
|
|
919
|
+
wasm.__wbindgen_export4(idx);
|
|
926
920
|
}
|
|
927
921
|
}
|
|
928
922
|
|
|
929
|
-
let heap = new Array(1024).fill(undefined);
|
|
930
|
-
heap.push(undefined, null, true, false);
|
|
931
|
-
|
|
932
|
-
let heap_next = heap.length;
|
|
933
|
-
|
|
934
923
|
function isLikeNone(x) {
|
|
935
924
|
return x === undefined || x === null;
|
|
936
925
|
}
|
|
@@ -954,7 +943,7 @@ function makeMutClosure(arg0, arg1, f) {
|
|
|
954
943
|
};
|
|
955
944
|
real._wbg_cb_unref = () => {
|
|
956
945
|
if (--state.cnt === 0) {
|
|
957
|
-
wasm.
|
|
946
|
+
wasm.__wbindgen_export6(state.a, state.b);
|
|
958
947
|
state.a = 0;
|
|
959
948
|
CLOSURE_DTORS.unregister(state);
|
|
960
949
|
}
|
|
@@ -972,9 +961,9 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
972
961
|
|
|
973
962
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
974
963
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
975
|
-
const mem = getDataViewMemory0();
|
|
976
964
|
for (let i = 0; i < array.length; i++) {
|
|
977
|
-
|
|
965
|
+
const add = addToExternrefTable0(array[i]);
|
|
966
|
+
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
978
967
|
}
|
|
979
968
|
WASM_VECTOR_LEN = array.length;
|
|
980
969
|
return ptr;
|
|
@@ -1017,24 +1006,24 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
1017
1006
|
return ptr;
|
|
1018
1007
|
}
|
|
1019
1008
|
|
|
1020
|
-
function
|
|
1021
|
-
const
|
|
1022
|
-
|
|
1023
|
-
return
|
|
1009
|
+
function takeFromExternrefTable0(idx) {
|
|
1010
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
1011
|
+
wasm.__wbindgen_export7(idx);
|
|
1012
|
+
return value;
|
|
1024
1013
|
}
|
|
1025
1014
|
|
|
1026
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true
|
|
1015
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
|
|
1027
1016
|
cachedTextDecoder.decode();
|
|
1028
1017
|
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
1029
1018
|
let numBytesDecoded = 0;
|
|
1030
|
-
function decodeText(
|
|
1031
|
-
numBytesDecoded +=
|
|
1019
|
+
function decodeText(bytes) {
|
|
1020
|
+
numBytesDecoded += bytes.length;
|
|
1032
1021
|
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
1033
|
-
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true
|
|
1022
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
|
|
1034
1023
|
cachedTextDecoder.decode();
|
|
1035
|
-
numBytesDecoded =
|
|
1024
|
+
numBytesDecoded = bytes.length;
|
|
1036
1025
|
}
|
|
1037
|
-
return cachedTextDecoder.decode(
|
|
1026
|
+
return cachedTextDecoder.decode(bytes);
|
|
1038
1027
|
}
|
|
1039
1028
|
|
|
1040
1029
|
const cachedTextEncoder = new TextEncoder();
|
|
@@ -1061,6 +1050,7 @@ function __wbg_finalize_init(instance, module) {
|
|
|
1061
1050
|
cachedInt32ArrayMemory0 = null;
|
|
1062
1051
|
cachedUint32ArrayMemory0 = null;
|
|
1063
1052
|
cachedUint8ArrayMemory0 = null;
|
|
1053
|
+
wasm.__wbindgen_start();
|
|
1064
1054
|
return wasm;
|
|
1065
1055
|
}
|
|
1066
1056
|
|
|
@@ -1123,9 +1113,17 @@ function initSync(module) {
|
|
|
1123
1113
|
return __wbg_finalize_init(instance, module);
|
|
1124
1114
|
}
|
|
1125
1115
|
|
|
1116
|
+
let __wbg_init_promise;
|
|
1126
1117
|
async function __wbg_init(module_or_path) {
|
|
1127
1118
|
if (wasm !== undefined) return wasm;
|
|
1119
|
+
if (__wbg_init_promise === undefined) {
|
|
1120
|
+
__wbg_init_promise = __wbg_init_once(module_or_path);
|
|
1121
|
+
__wbg_init_promise.catch(() => { __wbg_init_promise = undefined; });
|
|
1122
|
+
}
|
|
1123
|
+
return __wbg_init_promise;
|
|
1124
|
+
}
|
|
1128
1125
|
|
|
1126
|
+
async function __wbg_init_once(module_or_path) {
|
|
1129
1127
|
|
|
1130
1128
|
if (module_or_path !== undefined) {
|
|
1131
1129
|
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
package/hephaestus_wasm_bg.wasm
CHANGED
|
Binary file
|