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