@scalable-vector-audio/sva-wasm 0.7.2 → 0.7.4
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/package.json +1 -1
- package/sva_wasm.d.ts +32 -20
- package/sva_wasm.js +77 -61
- package/sva_wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/sva_wasm.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export class Composition {
|
|
|
9
9
|
constructor(name?: string | null);
|
|
10
10
|
/**
|
|
11
11
|
* Over the store in `dir`, an origin-private file system directory, or memory alone
|
|
12
|
-
* where there is none.
|
|
12
|
+
* where there is none or its store will not open.
|
|
13
13
|
*/
|
|
14
14
|
static open(name?: string | null, dir?: FileSystemDirectoryHandle | null): Promise<Composition>;
|
|
15
15
|
/**
|
|
@@ -32,7 +32,7 @@ export class Composition {
|
|
|
32
32
|
set_prune_policy(policy: string): void;
|
|
33
33
|
/**
|
|
34
34
|
* `target` block by block, through this store. `options`: `rate`, `bits`, `until`, `cache`,
|
|
35
|
-
* `live`.
|
|
35
|
+
* `live`.
|
|
36
36
|
*/
|
|
37
37
|
stream(target: string, block: number, options: any): Promise<Stream>;
|
|
38
38
|
/**
|
|
@@ -74,26 +74,32 @@ export class Rendering {
|
|
|
74
74
|
/**
|
|
75
75
|
* A target block by block, reading `@notes` as the sum of its terms, as `@hall(t, x=@notes)`.
|
|
76
76
|
* A key-up replaces a term with one whose release is a number. A term leaves with its handle
|
|
77
|
-
* once its
|
|
77
|
+
* once the stream passes its support, bar the last. An edit lands at the first block boundary
|
|
78
|
+
* after the store answered it; `next` and every getter answer meanwhile.
|
|
78
79
|
*/
|
|
79
80
|
export class Stream {
|
|
80
81
|
private constructor();
|
|
81
82
|
free(): void;
|
|
82
83
|
[Symbol.dispose](): void;
|
|
83
84
|
/**
|
|
84
|
-
* `term` summed into `@notes`.
|
|
85
|
+
* `term` summed into `@notes`. `options.at`: `"written"` (the stream's `t`) or
|
|
86
|
+
* `"landing"`, its sample 0 the sample it lands at.
|
|
85
87
|
*/
|
|
86
|
-
add(term: string): Promise<number>;
|
|
88
|
+
add(term: string, options?: any | null): Promise<number>;
|
|
87
89
|
/**
|
|
88
|
-
* `
|
|
90
|
+
* `late`: edits landed past where issued.
|
|
91
|
+
*/
|
|
92
|
+
counts(): any;
|
|
93
|
+
/**
|
|
94
|
+
* `expr` in place of the target. Each edit's promise rejects as a `conflict` where the
|
|
95
|
+
* page frees the stream first.
|
|
89
96
|
*/
|
|
90
97
|
edit(expr: string): Promise<void>;
|
|
91
98
|
/**
|
|
92
|
-
* Reads the stored samples the next second of blocks plays,
|
|
93
|
-
* meanwhile. A block reading stored samples not yet read computes them, or, live, starts
|
|
94
|
-
* the note silent where its live remainder is not ready.
|
|
99
|
+
* Reads the stored samples the next second of blocks plays, as the stream plays on.
|
|
95
100
|
*/
|
|
96
101
|
fetch(): Promise<void>;
|
|
102
|
+
landed(handle: number): number | undefined;
|
|
97
103
|
/**
|
|
98
104
|
* Writes the next block into `out`, component `c` from `c * block`, and returns the
|
|
99
105
|
* samples each component took: `block`, fewer where silence ends inside it, `0` after.
|
|
@@ -101,9 +107,13 @@ export class Stream {
|
|
|
101
107
|
next(out: Float32Array): number;
|
|
102
108
|
remove(handle: number): Promise<boolean>;
|
|
103
109
|
/**
|
|
104
|
-
* False where
|
|
110
|
+
* False where `handle` is gone. `"landing"`: where its add landed.
|
|
111
|
+
*/
|
|
112
|
+
replace(handle: number, term: string, options?: any | null): Promise<boolean>;
|
|
113
|
+
/**
|
|
114
|
+
* Each list the latest; its `pagination.count` counts all. `pruned`: the level a term under
|
|
115
|
+
* which for good leaves the sum, and each node cut, at the sample it is zero from.
|
|
105
116
|
*/
|
|
106
|
-
replace(handle: number, term: string): Promise<boolean>;
|
|
107
117
|
stats(): any;
|
|
108
118
|
/**
|
|
109
119
|
* `{ samples, priced_flops, waves }` since it opened.
|
|
@@ -160,23 +170,25 @@ export interface InitOutput {
|
|
|
160
170
|
readonly rendering_stats: (a: number) => [number, number, number];
|
|
161
171
|
readonly rendering_target: (a: number) => [number, number];
|
|
162
172
|
readonly rendering_work: (a: number) => [number, number, number];
|
|
163
|
-
readonly stream_add: (a: number, b: number, c: number) => any;
|
|
164
|
-
readonly stream_block: (a: number) =>
|
|
165
|
-
readonly stream_channels: (a: number) =>
|
|
173
|
+
readonly stream_add: (a: number, b: number, c: number, d: number) => any;
|
|
174
|
+
readonly stream_block: (a: number) => number;
|
|
175
|
+
readonly stream_channels: (a: number) => number;
|
|
176
|
+
readonly stream_counts: (a: number) => [number, number, number];
|
|
166
177
|
readonly stream_edit: (a: number, b: number, c: number) => any;
|
|
167
|
-
readonly stream_end: (a: number) => [number, number
|
|
178
|
+
readonly stream_end: (a: number) => [number, number];
|
|
168
179
|
readonly stream_fetch: (a: number) => any;
|
|
169
|
-
readonly stream_held_bytes: (a: number) =>
|
|
180
|
+
readonly stream_held_bytes: (a: number) => number;
|
|
181
|
+
readonly stream_landed: (a: number, b: number) => [number, number];
|
|
170
182
|
readonly stream_next: (a: number, b: number, c: number, d: any) => [number, number, number];
|
|
171
|
-
readonly stream_position: (a: number) =>
|
|
183
|
+
readonly stream_position: (a: number) => number;
|
|
172
184
|
readonly stream_remove: (a: number, b: number) => any;
|
|
173
|
-
readonly stream_replace: (a: number, b: number, c: number, d: number) => any;
|
|
174
|
-
readonly stream_sample_rate: (a: number) =>
|
|
185
|
+
readonly stream_replace: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
186
|
+
readonly stream_sample_rate: (a: number) => number;
|
|
175
187
|
readonly stream_stats: (a: number) => [number, number, number];
|
|
176
188
|
readonly stream_work: (a: number) => [number, number, number];
|
|
177
189
|
readonly wasm_bindgen__convert__closures_____invoke__h76bd71bceeca2b95: (a: number, b: number, c: any, d: any) => void;
|
|
178
190
|
readonly wasm_bindgen__convert__closures_____invoke__hd55bb211d6a08150: (a: number, b: number, c: any) => [number, number];
|
|
179
|
-
readonly
|
|
191
|
+
readonly wasm_bindgen__convert__closures_____invoke__h99c3d187ea7e66d3: (a: number, b: number) => any;
|
|
180
192
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
181
193
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
182
194
|
readonly __wbindgen_exn_store: (a: number) => void;
|
package/sva_wasm.js
CHANGED
|
@@ -87,7 +87,7 @@ export class Composition {
|
|
|
87
87
|
}
|
|
88
88
|
/**
|
|
89
89
|
* Over the store in `dir`, an origin-private file system directory, or memory alone
|
|
90
|
-
* where there is none.
|
|
90
|
+
* where there is none or its store will not open.
|
|
91
91
|
* @param {string | null} [name]
|
|
92
92
|
* @param {FileSystemDirectoryHandle | null} [dir]
|
|
93
93
|
* @returns {Promise<Composition>}
|
|
@@ -182,7 +182,7 @@ export class Composition {
|
|
|
182
182
|
}
|
|
183
183
|
/**
|
|
184
184
|
* `target` block by block, through this store. `options`: `rate`, `bits`, `until`, `cache`,
|
|
185
|
-
* `live`.
|
|
185
|
+
* `live`.
|
|
186
186
|
* @param {string} target
|
|
187
187
|
* @param {number} block
|
|
188
188
|
* @param {any} options
|
|
@@ -323,7 +323,8 @@ if (Symbol.dispose) Rendering.prototype[Symbol.dispose] = Rendering.prototype.fr
|
|
|
323
323
|
/**
|
|
324
324
|
* A target block by block, reading `@notes` as the sum of its terms, as `@hall(t, x=@notes)`.
|
|
325
325
|
* A key-up replaces a term with one whose release is a number. A term leaves with its handle
|
|
326
|
-
* once its
|
|
326
|
+
* once the stream passes its support, bar the last. An edit lands at the first block boundary
|
|
327
|
+
* after the store answered it; `next` and every getter answer meanwhile.
|
|
327
328
|
*/
|
|
328
329
|
export class Stream {
|
|
329
330
|
static __wrap(ptr) {
|
|
@@ -343,14 +344,16 @@ export class Stream {
|
|
|
343
344
|
wasm.__wbg_stream_free(ptr, 0);
|
|
344
345
|
}
|
|
345
346
|
/**
|
|
346
|
-
* `term` summed into `@notes`.
|
|
347
|
+
* `term` summed into `@notes`. `options.at`: `"written"` (the stream's `t`) or
|
|
348
|
+
* `"landing"`, its sample 0 the sample it lands at.
|
|
347
349
|
* @param {string} term
|
|
350
|
+
* @param {any | null} [options]
|
|
348
351
|
* @returns {Promise<number>}
|
|
349
352
|
*/
|
|
350
|
-
add(term) {
|
|
353
|
+
add(term, options) {
|
|
351
354
|
const ptr0 = passStringToWasm0(term, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
352
355
|
const len0 = WASM_VECTOR_LEN;
|
|
353
|
-
const ret = wasm.stream_add(this.__wbg_ptr, ptr0, len0);
|
|
356
|
+
const ret = wasm.stream_add(this.__wbg_ptr, ptr0, len0, isLikeNone(options) ? 0 : addToExternrefTable0(options));
|
|
354
357
|
return ret;
|
|
355
358
|
}
|
|
356
359
|
/**
|
|
@@ -358,23 +361,29 @@ export class Stream {
|
|
|
358
361
|
*/
|
|
359
362
|
get block() {
|
|
360
363
|
const ret = wasm.stream_block(this.__wbg_ptr);
|
|
361
|
-
|
|
362
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
363
|
-
}
|
|
364
|
-
return ret[0] >>> 0;
|
|
364
|
+
return ret >>> 0;
|
|
365
365
|
}
|
|
366
366
|
/**
|
|
367
367
|
* @returns {number}
|
|
368
368
|
*/
|
|
369
369
|
get channels() {
|
|
370
370
|
const ret = wasm.stream_channels(this.__wbg_ptr);
|
|
371
|
+
return ret >>> 0;
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* `late`: edits landed past where issued.
|
|
375
|
+
* @returns {any}
|
|
376
|
+
*/
|
|
377
|
+
counts() {
|
|
378
|
+
const ret = wasm.stream_counts(this.__wbg_ptr);
|
|
371
379
|
if (ret[2]) {
|
|
372
380
|
throw takeFromExternrefTable0(ret[1]);
|
|
373
381
|
}
|
|
374
|
-
return ret[0]
|
|
382
|
+
return takeFromExternrefTable0(ret[0]);
|
|
375
383
|
}
|
|
376
384
|
/**
|
|
377
|
-
* `expr` in place of the target.
|
|
385
|
+
* `expr` in place of the target. Each edit's promise rejects as a `conflict` where the
|
|
386
|
+
* page frees the stream first.
|
|
378
387
|
* @param {string} expr
|
|
379
388
|
* @returns {Promise<void>}
|
|
380
389
|
*/
|
|
@@ -389,15 +398,10 @@ export class Stream {
|
|
|
389
398
|
*/
|
|
390
399
|
get end() {
|
|
391
400
|
const ret = wasm.stream_end(this.__wbg_ptr);
|
|
392
|
-
if (ret[3]) {
|
|
393
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
394
|
-
}
|
|
395
401
|
return ret[0] === 0 ? undefined : ret[1];
|
|
396
402
|
}
|
|
397
403
|
/**
|
|
398
|
-
* Reads the stored samples the next second of blocks plays,
|
|
399
|
-
* meanwhile. A block reading stored samples not yet read computes them, or, live, starts
|
|
400
|
-
* the note silent where its live remainder is not ready.
|
|
404
|
+
* Reads the stored samples the next second of blocks plays, as the stream plays on.
|
|
401
405
|
* @returns {Promise<void>}
|
|
402
406
|
*/
|
|
403
407
|
fetch() {
|
|
@@ -409,10 +413,15 @@ export class Stream {
|
|
|
409
413
|
*/
|
|
410
414
|
get held_bytes() {
|
|
411
415
|
const ret = wasm.stream_held_bytes(this.__wbg_ptr);
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
+
return ret;
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* @param {number} handle
|
|
420
|
+
* @returns {number | undefined}
|
|
421
|
+
*/
|
|
422
|
+
landed(handle) {
|
|
423
|
+
const ret = wasm.stream_landed(this.__wbg_ptr, handle);
|
|
424
|
+
return ret[0] === 0 ? undefined : ret[1];
|
|
416
425
|
}
|
|
417
426
|
/**
|
|
418
427
|
* Writes the next block into `out`, component `c` from `c * block`, and returns the
|
|
@@ -434,10 +443,7 @@ export class Stream {
|
|
|
434
443
|
*/
|
|
435
444
|
get position() {
|
|
436
445
|
const ret = wasm.stream_position(this.__wbg_ptr);
|
|
437
|
-
|
|
438
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
439
|
-
}
|
|
440
|
-
return ret[0];
|
|
446
|
+
return ret;
|
|
441
447
|
}
|
|
442
448
|
/**
|
|
443
449
|
* @param {number} handle
|
|
@@ -448,15 +454,16 @@ export class Stream {
|
|
|
448
454
|
return ret;
|
|
449
455
|
}
|
|
450
456
|
/**
|
|
451
|
-
* False where
|
|
457
|
+
* False where `handle` is gone. `"landing"`: where its add landed.
|
|
452
458
|
* @param {number} handle
|
|
453
459
|
* @param {string} term
|
|
460
|
+
* @param {any | null} [options]
|
|
454
461
|
* @returns {Promise<boolean>}
|
|
455
462
|
*/
|
|
456
|
-
replace(handle, term) {
|
|
463
|
+
replace(handle, term, options) {
|
|
457
464
|
const ptr0 = passStringToWasm0(term, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
458
465
|
const len0 = WASM_VECTOR_LEN;
|
|
459
|
-
const ret = wasm.stream_replace(this.__wbg_ptr, handle, ptr0, len0);
|
|
466
|
+
const ret = wasm.stream_replace(this.__wbg_ptr, handle, ptr0, len0, isLikeNone(options) ? 0 : addToExternrefTable0(options));
|
|
460
467
|
return ret;
|
|
461
468
|
}
|
|
462
469
|
/**
|
|
@@ -464,12 +471,11 @@ export class Stream {
|
|
|
464
471
|
*/
|
|
465
472
|
get sample_rate() {
|
|
466
473
|
const ret = wasm.stream_sample_rate(this.__wbg_ptr);
|
|
467
|
-
|
|
468
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
469
|
-
}
|
|
470
|
-
return ret[0] >>> 0;
|
|
474
|
+
return ret >>> 0;
|
|
471
475
|
}
|
|
472
476
|
/**
|
|
477
|
+
* Each list the latest; its `pagination.count` counts all. `pruned`: the level a term under
|
|
478
|
+
* which for good leaves the sum, and each node cut, at the sample it is zero from.
|
|
473
479
|
* @returns {any}
|
|
474
480
|
*/
|
|
475
481
|
stats() {
|
|
@@ -572,7 +578,7 @@ function __wbg_get_imports() {
|
|
|
572
578
|
__wbg__wbg_cb_unref_997e73d32238e655: function(arg0) {
|
|
573
579
|
arg0._wbg_cb_unref();
|
|
574
580
|
},
|
|
575
|
-
|
|
581
|
+
__wbg_arrayBuffer_02aa4e2181f6c7ed: function(arg0) {
|
|
576
582
|
const ret = arg0.arrayBuffer();
|
|
577
583
|
return ret;
|
|
578
584
|
},
|
|
@@ -584,7 +590,7 @@ function __wbg_get_imports() {
|
|
|
584
590
|
const ret = arg0.call(arg1, arg2);
|
|
585
591
|
return ret;
|
|
586
592
|
}, arguments); },
|
|
587
|
-
|
|
593
|
+
__wbg_close_c9faf528adcf54fa: function(arg0) {
|
|
588
594
|
const ret = arg0.close();
|
|
589
595
|
return ret;
|
|
590
596
|
},
|
|
@@ -592,7 +598,7 @@ function __wbg_get_imports() {
|
|
|
592
598
|
const ret = Composition.__wrap(arg0);
|
|
593
599
|
return ret;
|
|
594
600
|
},
|
|
595
|
-
|
|
601
|
+
__wbg_createWritable_f0a5a98a99f1c04e: function(arg0) {
|
|
596
602
|
const ret = arg0.createWritable();
|
|
597
603
|
return ret;
|
|
598
604
|
},
|
|
@@ -604,15 +610,15 @@ function __wbg_get_imports() {
|
|
|
604
610
|
const ret = Array.from(arg0);
|
|
605
611
|
return ret;
|
|
606
612
|
},
|
|
607
|
-
|
|
613
|
+
__wbg_getDirectoryHandle_d305b95848ed1223: function(arg0, arg1, arg2, arg3) {
|
|
608
614
|
const ret = arg0.getDirectoryHandle(getStringFromWasm0(arg1, arg2), arg3);
|
|
609
615
|
return ret;
|
|
610
616
|
},
|
|
611
|
-
|
|
617
|
+
__wbg_getFileHandle_b5f945fc68734fc5: function(arg0, arg1, arg2, arg3) {
|
|
612
618
|
const ret = arg0.getFileHandle(getStringFromWasm0(arg1, arg2), arg3);
|
|
613
619
|
return ret;
|
|
614
620
|
},
|
|
615
|
-
|
|
621
|
+
__wbg_getFile_dabe5116756354b9: function(arg0) {
|
|
616
622
|
const ret = arg0.getFile();
|
|
617
623
|
return ret;
|
|
618
624
|
},
|
|
@@ -642,7 +648,7 @@ function __wbg_get_imports() {
|
|
|
642
648
|
const ret = Array.isArray(arg0);
|
|
643
649
|
return ret;
|
|
644
650
|
},
|
|
645
|
-
|
|
651
|
+
__wbg_keys_460b0697b08c92c0: function(arg0) {
|
|
646
652
|
const ret = arg0.keys();
|
|
647
653
|
return ret;
|
|
648
654
|
},
|
|
@@ -654,18 +660,21 @@ function __wbg_get_imports() {
|
|
|
654
660
|
const ret = arg0.length;
|
|
655
661
|
return ret;
|
|
656
662
|
},
|
|
657
|
-
|
|
663
|
+
__wbg_move_824e3de963dcb59e: function(arg0, arg1, arg2, arg3) {
|
|
658
664
|
const ret = arg0.move(arg1, getStringFromWasm0(arg2, arg3));
|
|
659
665
|
return ret;
|
|
660
666
|
},
|
|
667
|
+
__wbg_name_d25ff35a3709031f: function(arg0, arg1) {
|
|
668
|
+
const ret = arg1.name;
|
|
669
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
670
|
+
const len1 = WASM_VECTOR_LEN;
|
|
671
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
672
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
673
|
+
},
|
|
661
674
|
__wbg_new_1da3429bc3c4541c: function(arg0) {
|
|
662
675
|
const ret = new Uint8Array(arg0);
|
|
663
676
|
return ret;
|
|
664
677
|
},
|
|
665
|
-
__wbg_new_536d8ff546834a3d: function(arg0, arg1) {
|
|
666
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
667
|
-
return ret;
|
|
668
|
-
},
|
|
669
678
|
__wbg_new_8f72ed7c652bf5a2: function(arg0, arg1) {
|
|
670
679
|
try {
|
|
671
680
|
var state0 = {a: arg0, b: arg1};
|
|
@@ -688,6 +697,10 @@ function __wbg_get_imports() {
|
|
|
688
697
|
const ret = new Object();
|
|
689
698
|
return ret;
|
|
690
699
|
},
|
|
700
|
+
__wbg_new_de6ef68ed26ef76a: function(arg0, arg1) {
|
|
701
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
702
|
+
return ret;
|
|
703
|
+
},
|
|
691
704
|
__wbg_new_from_slice_4ee02165f9de919e: function(arg0, arg1) {
|
|
692
705
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
693
706
|
return ret;
|
|
@@ -710,18 +723,18 @@ function __wbg_get_imports() {
|
|
|
710
723
|
state0.a = 0;
|
|
711
724
|
}
|
|
712
725
|
},
|
|
713
|
-
|
|
726
|
+
__wbg_next_4ececa9fa46caff7: function(arg0) {
|
|
714
727
|
const ret = arg0.next();
|
|
715
728
|
return ret;
|
|
716
729
|
},
|
|
717
|
-
|
|
730
|
+
__wbg_parse_4282218725f51d78: function() { return handleError(function (arg0, arg1) {
|
|
718
731
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
719
732
|
return ret;
|
|
720
733
|
}, arguments); },
|
|
721
734
|
__wbg_prototypesetcall_ae9f5e7459250748: function(arg0, arg1, arg2) {
|
|
722
735
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
723
736
|
},
|
|
724
|
-
|
|
737
|
+
__wbg_query_2bab8ab6bd3c03ee: function(arg0) {
|
|
725
738
|
const ret = arg0.query();
|
|
726
739
|
return ret;
|
|
727
740
|
},
|
|
@@ -736,11 +749,11 @@ function __wbg_get_imports() {
|
|
|
736
749
|
const ret = Math.random();
|
|
737
750
|
return ret;
|
|
738
751
|
},
|
|
739
|
-
|
|
752
|
+
__wbg_removeEntry_7faa28015ba45f4d: function(arg0, arg1, arg2, arg3) {
|
|
740
753
|
const ret = arg0.removeEntry(getStringFromWasm0(arg1, arg2), arg3);
|
|
741
754
|
return ret;
|
|
742
755
|
},
|
|
743
|
-
|
|
756
|
+
__wbg_removeEntry_c243351d137728ef: function(arg0, arg1, arg2) {
|
|
744
757
|
const ret = arg0.removeEntry(getStringFromWasm0(arg1, arg2));
|
|
745
758
|
return ret;
|
|
746
759
|
},
|
|
@@ -748,7 +761,7 @@ function __wbg_get_imports() {
|
|
|
748
761
|
const ret = Rendering.__wrap(arg0);
|
|
749
762
|
return ret;
|
|
750
763
|
},
|
|
751
|
-
|
|
764
|
+
__wbg_request_e5098c5a6c3a0def: function(arg0, arg1, arg2, arg3) {
|
|
752
765
|
const ret = arg0.request(getStringFromWasm0(arg1, arg2), arg3);
|
|
753
766
|
return ret;
|
|
754
767
|
},
|
|
@@ -760,17 +773,17 @@ function __wbg_get_imports() {
|
|
|
760
773
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
761
774
|
return ret;
|
|
762
775
|
}, arguments); },
|
|
763
|
-
|
|
776
|
+
__wbg_set_name_0d2b021786d55b39: function(arg0, arg1, arg2) {
|
|
764
777
|
arg0.name = getStringFromWasm0(arg1, arg2);
|
|
765
778
|
},
|
|
766
|
-
|
|
779
|
+
__wbg_set_refusal_877c7b5dad993d0f: function(arg0, arg1) {
|
|
767
780
|
arg0.refusal = arg1;
|
|
768
781
|
},
|
|
769
|
-
|
|
782
|
+
__wbg_size_792e8a25bb0824cb: function(arg0) {
|
|
770
783
|
const ret = arg0.size;
|
|
771
784
|
return ret;
|
|
772
785
|
},
|
|
773
|
-
|
|
786
|
+
__wbg_slice_a4e27652a4c64ce3: function(arg0, arg1, arg2) {
|
|
774
787
|
const ret = arg0.slice(arg1, arg2);
|
|
775
788
|
return ret;
|
|
776
789
|
},
|
|
@@ -802,18 +815,21 @@ function __wbg_get_imports() {
|
|
|
802
815
|
const ret = arg0.then(arg1);
|
|
803
816
|
return ret;
|
|
804
817
|
},
|
|
805
|
-
|
|
818
|
+
__wbg_warn_9656c2adf297a87c: function(arg0, arg1) {
|
|
819
|
+
console.warn(getStringFromWasm0(arg0, arg1));
|
|
820
|
+
},
|
|
821
|
+
__wbg_write_f437168441a656ec: function(arg0, arg1) {
|
|
806
822
|
const ret = arg0.write(arg1);
|
|
807
823
|
return ret;
|
|
808
824
|
},
|
|
809
825
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
810
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
826
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 538, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
811
827
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hd55bb211d6a08150);
|
|
812
828
|
return ret;
|
|
813
829
|
},
|
|
814
830
|
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
815
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
816
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
831
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 91, ret: NamedExternref("Promise<any>"), inner_ret: Some(NamedExternref("Promise<any>")) }, mutable: true }) -> Externref`.
|
|
832
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h99c3d187ea7e66d3);
|
|
817
833
|
return ret;
|
|
818
834
|
},
|
|
819
835
|
__wbindgen_generic_0000000000000003: function(arg0) {
|
|
@@ -842,8 +858,8 @@ function __wbg_get_imports() {
|
|
|
842
858
|
};
|
|
843
859
|
}
|
|
844
860
|
|
|
845
|
-
function
|
|
846
|
-
const ret = wasm.
|
|
861
|
+
function wasm_bindgen__convert__closures_____invoke__h99c3d187ea7e66d3(arg0, arg1) {
|
|
862
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h99c3d187ea7e66d3(arg0, arg1);
|
|
847
863
|
return ret;
|
|
848
864
|
}
|
|
849
865
|
|
package/sva_wasm_bg.wasm
CHANGED
|
Binary file
|