logic-mesh 0.1.3 → 0.1.5
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/index.d.ts +16 -5
- package/logic_mesh.d.ts +12 -6
- package/logic_mesh_bg.js +94 -75
- package/logic_mesh_bg.wasm +0 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -33,11 +33,12 @@ export type JsBlock = {
|
|
|
33
33
|
desc: BlockDesc
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
37
|
-
* @
|
|
38
|
-
* @returns The block outputs that have to be set
|
|
36
|
+
* An optional block factory function that returns a function that is called when the block is executed.
|
|
37
|
+
* @returns The execute function that is called when the block is executed.
|
|
39
38
|
*/
|
|
40
|
-
|
|
39
|
+
executor?: () => (
|
|
40
|
+
inputs: (unknown | undefined)[]
|
|
41
|
+
) => Promise<(unknown | undefined)[]>
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
/**
|
|
@@ -118,6 +119,16 @@ export interface BlockDesc {
|
|
|
118
119
|
* The block outputs
|
|
119
120
|
*/
|
|
120
121
|
outputs: BlockPin[]
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* The block run condition.
|
|
125
|
+
*
|
|
126
|
+
* If not set, the block will be executed when any of its inputs change.
|
|
127
|
+
* Otherwise, the block will execute regularly according to the run condition.
|
|
128
|
+
*
|
|
129
|
+
* Default: 'change'
|
|
130
|
+
*/
|
|
131
|
+
runCondition?: 'change' | 'always'
|
|
121
132
|
}
|
|
122
133
|
|
|
123
134
|
/**
|
|
@@ -211,7 +222,7 @@ export interface Program {
|
|
|
211
222
|
}
|
|
212
223
|
|
|
213
224
|
outputs?: {
|
|
214
|
-
[pinName: string]: { value?: unknown }
|
|
225
|
+
[pinName: string]: { value?: unknown; isConnected?: boolean }
|
|
215
226
|
}
|
|
216
227
|
}
|
|
217
228
|
}
|
package/logic_mesh.d.ts
CHANGED
|
@@ -32,16 +32,17 @@ export class BlocksEngine {
|
|
|
32
32
|
*
|
|
33
33
|
* # Arguments
|
|
34
34
|
* * `desc` - The description of the block
|
|
35
|
-
* * `func` -
|
|
35
|
+
* * `func` - Optional function that implements the block
|
|
36
|
+
* logic. If not provided, the block would do nothing.
|
|
36
37
|
*
|
|
37
38
|
* # Returns
|
|
38
39
|
* The name of the block
|
|
39
40
|
*
|
|
40
41
|
* @param {any} desc
|
|
41
|
-
* @param {Function} func
|
|
42
|
+
* @param {Function | undefined} [func]
|
|
42
43
|
* @returns {string}
|
|
43
44
|
*/
|
|
44
|
-
registerBlock(desc: any, func
|
|
45
|
+
registerBlock(desc: any, func?: Function): string;
|
|
45
46
|
/**
|
|
46
47
|
* @returns {EngineCommand}
|
|
47
48
|
*/
|
|
@@ -63,7 +64,7 @@ export class EngineCommand {
|
|
|
63
64
|
* Adds a block instance to the engine
|
|
64
65
|
* to be immediately scheduled for execution
|
|
65
66
|
* @param {string} block_name
|
|
66
|
-
* @param {string | undefined} block_uuid
|
|
67
|
+
* @param {string | undefined} [block_uuid]
|
|
67
68
|
* @returns {Promise<string>}
|
|
68
69
|
*/
|
|
69
70
|
addBlock(block_name: string, block_uuid?: string): Promise<string>;
|
|
@@ -162,9 +163,9 @@ export class EngineCommand {
|
|
|
162
163
|
/**
|
|
163
164
|
* Creates a watch on block changes
|
|
164
165
|
* @param {Function} callback
|
|
165
|
-
* @returns {Promise<
|
|
166
|
+
* @returns {Promise<void>}
|
|
166
167
|
*/
|
|
167
|
-
createWatch(callback: Function): Promise<
|
|
168
|
+
createWatch(callback: Function): Promise<void>;
|
|
168
169
|
/**
|
|
169
170
|
* Pauses the execution of the engine
|
|
170
171
|
* If the engine is already paused, this does nothing
|
|
@@ -182,4 +183,9 @@ export class EngineCommand {
|
|
|
182
183
|
* @returns {Promise<void>}
|
|
183
184
|
*/
|
|
184
185
|
resetEngine(): Promise<void>;
|
|
186
|
+
/**
|
|
187
|
+
* Stop the engine's execution
|
|
188
|
+
* @returns {Promise<void>}
|
|
189
|
+
*/
|
|
190
|
+
stopEngine(): Promise<void>;
|
|
185
191
|
}
|
package/logic_mesh_bg.js
CHANGED
|
@@ -261,7 +261,7 @@ function handleError(f, args) {
|
|
|
261
261
|
wasm.__wbindgen_export_5(addHeapObject(e));
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function __wbg_adapter_154(arg0, arg1, arg2, arg3) {
|
|
265
265
|
wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
266
266
|
}
|
|
267
267
|
|
|
@@ -296,7 +296,8 @@ export class BlocksEngine {
|
|
|
296
296
|
*/
|
|
297
297
|
constructor() {
|
|
298
298
|
const ret = wasm.blocksengine_new();
|
|
299
|
-
|
|
299
|
+
this.__wbg_ptr = ret >>> 0;
|
|
300
|
+
return this;
|
|
300
301
|
}
|
|
301
302
|
/**
|
|
302
303
|
* Lists all available blocks
|
|
@@ -312,13 +313,14 @@ export class BlocksEngine {
|
|
|
312
313
|
*
|
|
313
314
|
* # Arguments
|
|
314
315
|
* * `desc` - The description of the block
|
|
315
|
-
* * `func` -
|
|
316
|
+
* * `func` - Optional function that implements the block
|
|
317
|
+
* logic. If not provided, the block would do nothing.
|
|
316
318
|
*
|
|
317
319
|
* # Returns
|
|
318
320
|
* The name of the block
|
|
319
321
|
*
|
|
320
322
|
* @param {any} desc
|
|
321
|
-
* @param {Function} func
|
|
323
|
+
* @param {Function | undefined} [func]
|
|
322
324
|
* @returns {string}
|
|
323
325
|
*/
|
|
324
326
|
registerBlock(desc, func) {
|
|
@@ -326,7 +328,7 @@ export class BlocksEngine {
|
|
|
326
328
|
let deferred2_1;
|
|
327
329
|
try {
|
|
328
330
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
329
|
-
wasm.blocksengine_registerBlock(retptr, this.__wbg_ptr, addHeapObject(desc), addHeapObject(func));
|
|
331
|
+
wasm.blocksengine_registerBlock(retptr, this.__wbg_ptr, addHeapObject(desc), isLikeNone(func) ? 0 : addHeapObject(func));
|
|
330
332
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
331
333
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
332
334
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -391,7 +393,7 @@ export class EngineCommand {
|
|
|
391
393
|
* Adds a block instance to the engine
|
|
392
394
|
* to be immediately scheduled for execution
|
|
393
395
|
* @param {string} block_name
|
|
394
|
-
* @param {string | undefined} block_uuid
|
|
396
|
+
* @param {string | undefined} [block_uuid]
|
|
395
397
|
* @returns {Promise<string>}
|
|
396
398
|
*/
|
|
397
399
|
addBlock(block_name, block_uuid) {
|
|
@@ -540,7 +542,7 @@ export class EngineCommand {
|
|
|
540
542
|
/**
|
|
541
543
|
* Creates a watch on block changes
|
|
542
544
|
* @param {Function} callback
|
|
543
|
-
* @returns {Promise<
|
|
545
|
+
* @returns {Promise<void>}
|
|
544
546
|
*/
|
|
545
547
|
createWatch(callback) {
|
|
546
548
|
const ret = wasm.enginecommand_createWatch(this.__wbg_ptr, addHeapObject(callback));
|
|
@@ -572,6 +574,14 @@ export class EngineCommand {
|
|
|
572
574
|
const ret = wasm.enginecommand_resetEngine(this.__wbg_ptr);
|
|
573
575
|
return takeObject(ret);
|
|
574
576
|
}
|
|
577
|
+
/**
|
|
578
|
+
* Stop the engine's execution
|
|
579
|
+
* @returns {Promise<void>}
|
|
580
|
+
*/
|
|
581
|
+
stopEngine() {
|
|
582
|
+
const ret = wasm.enginecommand_stopEngine(this.__wbg_ptr);
|
|
583
|
+
return takeObject(ret);
|
|
584
|
+
}
|
|
575
585
|
}
|
|
576
586
|
|
|
577
587
|
export function __wbindgen_object_drop_ref(arg0) {
|
|
@@ -583,18 +593,13 @@ export function __wbindgen_is_array(arg0) {
|
|
|
583
593
|
return ret;
|
|
584
594
|
};
|
|
585
595
|
|
|
586
|
-
export function __wbindgen_string_new(arg0, arg1) {
|
|
587
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
588
|
-
return addHeapObject(ret);
|
|
589
|
-
};
|
|
590
|
-
|
|
591
596
|
export function __wbindgen_error_new(arg0, arg1) {
|
|
592
597
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
593
598
|
return addHeapObject(ret);
|
|
594
599
|
};
|
|
595
600
|
|
|
596
|
-
export function
|
|
597
|
-
const ret =
|
|
601
|
+
export function __wbindgen_string_new(arg0, arg1) {
|
|
602
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
598
603
|
return addHeapObject(ret);
|
|
599
604
|
};
|
|
600
605
|
|
|
@@ -656,12 +661,17 @@ export function __wbindgen_bigint_from_u64(arg0) {
|
|
|
656
661
|
return addHeapObject(ret);
|
|
657
662
|
};
|
|
658
663
|
|
|
664
|
+
export function __wbindgen_object_clone_ref(arg0) {
|
|
665
|
+
const ret = getObject(arg0);
|
|
666
|
+
return addHeapObject(ret);
|
|
667
|
+
};
|
|
668
|
+
|
|
659
669
|
export function __wbindgen_jsval_loose_eq(arg0, arg1) {
|
|
660
670
|
const ret = getObject(arg0) == getObject(arg1);
|
|
661
671
|
return ret;
|
|
662
672
|
};
|
|
663
673
|
|
|
664
|
-
export function
|
|
674
|
+
export function __wbg_String_389b54bd9d25375f(arg0, arg1) {
|
|
665
675
|
const ret = String(getObject(arg1));
|
|
666
676
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
667
677
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -674,12 +684,12 @@ export function __wbindgen_number_new(arg0) {
|
|
|
674
684
|
return addHeapObject(ret);
|
|
675
685
|
};
|
|
676
686
|
|
|
677
|
-
export function
|
|
687
|
+
export function __wbg_getwithrefkey_4a92a5eca60879b9(arg0, arg1) {
|
|
678
688
|
const ret = getObject(arg0)[getObject(arg1)];
|
|
679
689
|
return addHeapObject(ret);
|
|
680
690
|
};
|
|
681
691
|
|
|
682
|
-
export function
|
|
692
|
+
export function __wbg_set_9182712abebf82ef(arg0, arg1, arg2) {
|
|
683
693
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
684
694
|
};
|
|
685
695
|
|
|
@@ -695,6 +705,16 @@ export function __wbg_warn_52c5b3e773c3a056(arg0, arg1) {
|
|
|
695
705
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
696
706
|
};
|
|
697
707
|
|
|
708
|
+
export function __wbg_queueMicrotask_adae4bc085237231(arg0) {
|
|
709
|
+
const ret = getObject(arg0).queueMicrotask;
|
|
710
|
+
return addHeapObject(ret);
|
|
711
|
+
};
|
|
712
|
+
|
|
713
|
+
export function __wbindgen_is_function(arg0) {
|
|
714
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
|
715
|
+
return ret;
|
|
716
|
+
};
|
|
717
|
+
|
|
698
718
|
export function __wbindgen_cb_drop(arg0) {
|
|
699
719
|
const obj = takeObject(arg0).original;
|
|
700
720
|
if (obj.cnt-- == 1) {
|
|
@@ -705,6 +725,10 @@ export function __wbindgen_cb_drop(arg0) {
|
|
|
705
725
|
return ret;
|
|
706
726
|
};
|
|
707
727
|
|
|
728
|
+
export function __wbg_queueMicrotask_4d890031a6a5a50c(arg0) {
|
|
729
|
+
queueMicrotask(getObject(arg0));
|
|
730
|
+
};
|
|
731
|
+
|
|
708
732
|
export function __wbg_new_abda76e883ba8a5f() {
|
|
709
733
|
const ret = new Error();
|
|
710
734
|
return addHeapObject(ret);
|
|
@@ -730,38 +754,38 @@ export function __wbg_error_f851667af71bcfc6(arg0, arg1) {
|
|
|
730
754
|
}
|
|
731
755
|
};
|
|
732
756
|
|
|
733
|
-
export function
|
|
757
|
+
export function __wbg_instanceof_Window_3e5cd1f48c152d01(arg0) {
|
|
734
758
|
let result;
|
|
735
759
|
try {
|
|
736
760
|
result = getObject(arg0) instanceof Window;
|
|
737
|
-
} catch {
|
|
761
|
+
} catch (_) {
|
|
738
762
|
result = false;
|
|
739
763
|
}
|
|
740
764
|
const ret = result;
|
|
741
765
|
return ret;
|
|
742
766
|
};
|
|
743
767
|
|
|
744
|
-
export function
|
|
768
|
+
export function __wbg_setTimeout_06458eba2b40711c() { return handleError(function (arg0, arg1, arg2) {
|
|
745
769
|
const ret = getObject(arg0).setTimeout(getObject(arg1), arg2);
|
|
746
770
|
return ret;
|
|
747
771
|
}, arguments) };
|
|
748
772
|
|
|
749
|
-
export function
|
|
773
|
+
export function __wbg_crypto_58f13aa23ffcb166(arg0) {
|
|
750
774
|
const ret = getObject(arg0).crypto;
|
|
751
775
|
return addHeapObject(ret);
|
|
752
776
|
};
|
|
753
777
|
|
|
754
|
-
export function
|
|
778
|
+
export function __wbg_process_5b786e71d465a513(arg0) {
|
|
755
779
|
const ret = getObject(arg0).process;
|
|
756
780
|
return addHeapObject(ret);
|
|
757
781
|
};
|
|
758
782
|
|
|
759
|
-
export function
|
|
783
|
+
export function __wbg_versions_c2ab80650590b6a2(arg0) {
|
|
760
784
|
const ret = getObject(arg0).versions;
|
|
761
785
|
return addHeapObject(ret);
|
|
762
786
|
};
|
|
763
787
|
|
|
764
|
-
export function
|
|
788
|
+
export function __wbg_node_523d7bd03ef69fba(arg0) {
|
|
765
789
|
const ret = getObject(arg0).node;
|
|
766
790
|
return addHeapObject(ret);
|
|
767
791
|
};
|
|
@@ -771,167 +795,162 @@ export function __wbindgen_is_string(arg0) {
|
|
|
771
795
|
return ret;
|
|
772
796
|
};
|
|
773
797
|
|
|
774
|
-
export function
|
|
798
|
+
export function __wbg_require_2784e593a4674877() { return handleError(function () {
|
|
775
799
|
const ret = module.require;
|
|
776
800
|
return addHeapObject(ret);
|
|
777
801
|
}, arguments) };
|
|
778
802
|
|
|
779
|
-
export function
|
|
803
|
+
export function __wbg_msCrypto_abcb1295e768d1f2(arg0) {
|
|
780
804
|
const ret = getObject(arg0).msCrypto;
|
|
781
805
|
return addHeapObject(ret);
|
|
782
806
|
};
|
|
783
807
|
|
|
784
|
-
export function
|
|
808
|
+
export function __wbg_randomFillSync_a0d98aa11c81fe89() { return handleError(function (arg0, arg1) {
|
|
785
809
|
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
786
810
|
}, arguments) };
|
|
787
811
|
|
|
788
|
-
export function
|
|
812
|
+
export function __wbg_getRandomValues_504510b5564925af() { return handleError(function (arg0, arg1) {
|
|
789
813
|
getObject(arg0).getRandomValues(getObject(arg1));
|
|
790
814
|
}, arguments) };
|
|
791
815
|
|
|
792
|
-
export function
|
|
816
|
+
export function __wbg_get_f01601b5a68d10e3(arg0, arg1) {
|
|
793
817
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
794
818
|
return addHeapObject(ret);
|
|
795
819
|
};
|
|
796
820
|
|
|
797
|
-
export function
|
|
821
|
+
export function __wbg_length_1009b1af0c481d7b(arg0) {
|
|
798
822
|
const ret = getObject(arg0).length;
|
|
799
823
|
return ret;
|
|
800
824
|
};
|
|
801
825
|
|
|
802
|
-
export function
|
|
826
|
+
export function __wbg_new_ffc6d4d085022169() {
|
|
803
827
|
const ret = new Array();
|
|
804
828
|
return addHeapObject(ret);
|
|
805
829
|
};
|
|
806
830
|
|
|
807
|
-
export function
|
|
808
|
-
const ret = typeof(getObject(arg0)) === 'function';
|
|
809
|
-
return ret;
|
|
810
|
-
};
|
|
811
|
-
|
|
812
|
-
export function __wbg_newnoargs_581967eacc0e2604(arg0, arg1) {
|
|
831
|
+
export function __wbg_newnoargs_c62ea9419c21fbac(arg0, arg1) {
|
|
813
832
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
814
833
|
return addHeapObject(ret);
|
|
815
834
|
};
|
|
816
835
|
|
|
817
|
-
export function
|
|
836
|
+
export function __wbg_new_bfd4534b584a9593() {
|
|
818
837
|
const ret = new Map();
|
|
819
838
|
return addHeapObject(ret);
|
|
820
839
|
};
|
|
821
840
|
|
|
822
|
-
export function
|
|
841
|
+
export function __wbg_next_9b877f231f476d01(arg0) {
|
|
823
842
|
const ret = getObject(arg0).next;
|
|
824
843
|
return addHeapObject(ret);
|
|
825
844
|
};
|
|
826
845
|
|
|
827
|
-
export function
|
|
846
|
+
export function __wbg_next_6529ee0cca8d57ed() { return handleError(function (arg0) {
|
|
828
847
|
const ret = getObject(arg0).next();
|
|
829
848
|
return addHeapObject(ret);
|
|
830
849
|
}, arguments) };
|
|
831
850
|
|
|
832
|
-
export function
|
|
851
|
+
export function __wbg_done_5fe336b092d60cf2(arg0) {
|
|
833
852
|
const ret = getObject(arg0).done;
|
|
834
853
|
return ret;
|
|
835
854
|
};
|
|
836
855
|
|
|
837
|
-
export function
|
|
856
|
+
export function __wbg_value_0c248a78fdc8e19f(arg0) {
|
|
838
857
|
const ret = getObject(arg0).value;
|
|
839
858
|
return addHeapObject(ret);
|
|
840
859
|
};
|
|
841
860
|
|
|
842
|
-
export function
|
|
861
|
+
export function __wbg_iterator_db7ca081358d4fb2() {
|
|
843
862
|
const ret = Symbol.iterator;
|
|
844
863
|
return addHeapObject(ret);
|
|
845
864
|
};
|
|
846
865
|
|
|
847
|
-
export function
|
|
866
|
+
export function __wbg_get_7b48513de5dc5ea4() { return handleError(function (arg0, arg1) {
|
|
848
867
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
849
868
|
return addHeapObject(ret);
|
|
850
869
|
}, arguments) };
|
|
851
870
|
|
|
852
|
-
export function
|
|
871
|
+
export function __wbg_call_90c26b09837aba1c() { return handleError(function (arg0, arg1) {
|
|
853
872
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
854
873
|
return addHeapObject(ret);
|
|
855
874
|
}, arguments) };
|
|
856
875
|
|
|
857
|
-
export function
|
|
876
|
+
export function __wbg_new_9fb8d994e1c0aaac() {
|
|
858
877
|
const ret = new Object();
|
|
859
878
|
return addHeapObject(ret);
|
|
860
879
|
};
|
|
861
880
|
|
|
862
|
-
export function
|
|
881
|
+
export function __wbg_self_f0e34d89f33b99fd() { return handleError(function () {
|
|
863
882
|
const ret = self.self;
|
|
864
883
|
return addHeapObject(ret);
|
|
865
884
|
}, arguments) };
|
|
866
885
|
|
|
867
|
-
export function
|
|
886
|
+
export function __wbg_window_d3b084224f4774d7() { return handleError(function () {
|
|
868
887
|
const ret = window.window;
|
|
869
888
|
return addHeapObject(ret);
|
|
870
889
|
}, arguments) };
|
|
871
890
|
|
|
872
|
-
export function
|
|
891
|
+
export function __wbg_globalThis_9caa27ff917c6860() { return handleError(function () {
|
|
873
892
|
const ret = globalThis.globalThis;
|
|
874
893
|
return addHeapObject(ret);
|
|
875
894
|
}, arguments) };
|
|
876
895
|
|
|
877
|
-
export function
|
|
896
|
+
export function __wbg_global_35dfdd59a4da3e74() { return handleError(function () {
|
|
878
897
|
const ret = global.global;
|
|
879
898
|
return addHeapObject(ret);
|
|
880
899
|
}, arguments) };
|
|
881
900
|
|
|
882
|
-
export function
|
|
901
|
+
export function __wbg_set_f2740edb12e318cd(arg0, arg1, arg2) {
|
|
883
902
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
884
903
|
};
|
|
885
904
|
|
|
886
|
-
export function
|
|
905
|
+
export function __wbg_isArray_74fb723e24f76012(arg0) {
|
|
887
906
|
const ret = Array.isArray(getObject(arg0));
|
|
888
907
|
return ret;
|
|
889
908
|
};
|
|
890
909
|
|
|
891
|
-
export function
|
|
910
|
+
export function __wbg_push_901f3914205d44de(arg0, arg1) {
|
|
892
911
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
893
912
|
return ret;
|
|
894
913
|
};
|
|
895
914
|
|
|
896
|
-
export function
|
|
915
|
+
export function __wbg_instanceof_ArrayBuffer_e7d53d51371448e2(arg0) {
|
|
897
916
|
let result;
|
|
898
917
|
try {
|
|
899
918
|
result = getObject(arg0) instanceof ArrayBuffer;
|
|
900
|
-
} catch {
|
|
919
|
+
} catch (_) {
|
|
901
920
|
result = false;
|
|
902
921
|
}
|
|
903
922
|
const ret = result;
|
|
904
923
|
return ret;
|
|
905
924
|
};
|
|
906
925
|
|
|
907
|
-
export function
|
|
926
|
+
export function __wbg_call_5da1969d7cd31ccd() { return handleError(function (arg0, arg1, arg2) {
|
|
908
927
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
909
928
|
return addHeapObject(ret);
|
|
910
929
|
}, arguments) };
|
|
911
930
|
|
|
912
|
-
export function
|
|
931
|
+
export function __wbg_set_d257c6f2da008627(arg0, arg1, arg2) {
|
|
913
932
|
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
914
933
|
return addHeapObject(ret);
|
|
915
934
|
};
|
|
916
935
|
|
|
917
|
-
export function
|
|
936
|
+
export function __wbg_isSafeInteger_f93fde0dca9820f8(arg0) {
|
|
918
937
|
const ret = Number.isSafeInteger(getObject(arg0));
|
|
919
938
|
return ret;
|
|
920
939
|
};
|
|
921
940
|
|
|
922
|
-
export function
|
|
941
|
+
export function __wbg_entries_9e2e2aa45aa5094a(arg0) {
|
|
923
942
|
const ret = Object.entries(getObject(arg0));
|
|
924
943
|
return addHeapObject(ret);
|
|
925
944
|
};
|
|
926
945
|
|
|
927
|
-
export function
|
|
946
|
+
export function __wbg_new_60f57089c7563e81(arg0, arg1) {
|
|
928
947
|
try {
|
|
929
948
|
var state0 = {a: arg0, b: arg1};
|
|
930
949
|
var cb0 = (arg0, arg1) => {
|
|
931
950
|
const a = state0.a;
|
|
932
951
|
state0.a = 0;
|
|
933
952
|
try {
|
|
934
|
-
return
|
|
953
|
+
return __wbg_adapter_154(a, state0.b, arg0, arg1);
|
|
935
954
|
} finally {
|
|
936
955
|
state0.a = a;
|
|
937
956
|
}
|
|
@@ -943,62 +962,62 @@ export function __wbg_new_43f1b47c28813cbd(arg0, arg1) {
|
|
|
943
962
|
}
|
|
944
963
|
};
|
|
945
964
|
|
|
946
|
-
export function
|
|
965
|
+
export function __wbg_resolve_6e1c6553a82f85b7(arg0) {
|
|
947
966
|
const ret = Promise.resolve(getObject(arg0));
|
|
948
967
|
return addHeapObject(ret);
|
|
949
968
|
};
|
|
950
969
|
|
|
951
|
-
export function
|
|
970
|
+
export function __wbg_then_3ab08cd4fbb91ae9(arg0, arg1) {
|
|
952
971
|
const ret = getObject(arg0).then(getObject(arg1));
|
|
953
972
|
return addHeapObject(ret);
|
|
954
973
|
};
|
|
955
974
|
|
|
956
|
-
export function
|
|
975
|
+
export function __wbg_then_8371cc12cfedc5a2(arg0, arg1, arg2) {
|
|
957
976
|
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
958
977
|
return addHeapObject(ret);
|
|
959
978
|
};
|
|
960
979
|
|
|
961
|
-
export function
|
|
980
|
+
export function __wbg_buffer_a448f833075b71ba(arg0) {
|
|
962
981
|
const ret = getObject(arg0).buffer;
|
|
963
982
|
return addHeapObject(ret);
|
|
964
983
|
};
|
|
965
984
|
|
|
966
|
-
export function
|
|
985
|
+
export function __wbg_newwithbyteoffsetandlength_d0482f893617af71(arg0, arg1, arg2) {
|
|
967
986
|
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
968
987
|
return addHeapObject(ret);
|
|
969
988
|
};
|
|
970
989
|
|
|
971
|
-
export function
|
|
990
|
+
export function __wbg_new_8f67e318f15d7254(arg0) {
|
|
972
991
|
const ret = new Uint8Array(getObject(arg0));
|
|
973
992
|
return addHeapObject(ret);
|
|
974
993
|
};
|
|
975
994
|
|
|
976
|
-
export function
|
|
995
|
+
export function __wbg_set_2357bf09366ee480(arg0, arg1, arg2) {
|
|
977
996
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
978
997
|
};
|
|
979
998
|
|
|
980
|
-
export function
|
|
999
|
+
export function __wbg_length_1d25fa9e4ac21ce7(arg0) {
|
|
981
1000
|
const ret = getObject(arg0).length;
|
|
982
1001
|
return ret;
|
|
983
1002
|
};
|
|
984
1003
|
|
|
985
|
-
export function
|
|
1004
|
+
export function __wbg_instanceof_Uint8Array_bced6f43aed8c1aa(arg0) {
|
|
986
1005
|
let result;
|
|
987
1006
|
try {
|
|
988
1007
|
result = getObject(arg0) instanceof Uint8Array;
|
|
989
|
-
} catch {
|
|
1008
|
+
} catch (_) {
|
|
990
1009
|
result = false;
|
|
991
1010
|
}
|
|
992
1011
|
const ret = result;
|
|
993
1012
|
return ret;
|
|
994
1013
|
};
|
|
995
1014
|
|
|
996
|
-
export function
|
|
1015
|
+
export function __wbg_newwithlength_6c2df9e2f3028c43(arg0) {
|
|
997
1016
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
998
1017
|
return addHeapObject(ret);
|
|
999
1018
|
};
|
|
1000
1019
|
|
|
1001
|
-
export function
|
|
1020
|
+
export function __wbg_subarray_2e940e41c0f5a1d9(arg0, arg1, arg2) {
|
|
1002
1021
|
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1003
1022
|
return addHeapObject(ret);
|
|
1004
1023
|
};
|
|
@@ -1027,8 +1046,8 @@ export function __wbindgen_memory() {
|
|
|
1027
1046
|
return addHeapObject(ret);
|
|
1028
1047
|
};
|
|
1029
1048
|
|
|
1030
|
-
export function
|
|
1031
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1049
|
+
export function __wbindgen_closure_wrapper2991(arg0, arg1, arg2) {
|
|
1050
|
+
const ret = makeMutClosure(arg0, arg1, 1111, __wbg_adapter_50);
|
|
1032
1051
|
return addHeapObject(ret);
|
|
1033
1052
|
};
|
|
1034
1053
|
|
package/logic_mesh_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED