logic-mesh 0.1.4 → 0.1.6
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 +26 -5
- package/logic_mesh_bg.js +134 -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,10 +64,11 @@ 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
|
+
* @param {string | undefined} [lib]
|
|
68
69
|
* @returns {Promise<string>}
|
|
69
70
|
*/
|
|
70
|
-
addBlock(block_name: string, block_uuid?: string): Promise<string>;
|
|
71
|
+
addBlock(block_name: string, block_uuid?: string, lib?: string): Promise<string>;
|
|
71
72
|
/**
|
|
72
73
|
* Removes a block instance from the engine
|
|
73
74
|
* to be immediately unscheduled for execution
|
|
@@ -161,11 +162,26 @@ export class EngineCommand {
|
|
|
161
162
|
*/
|
|
162
163
|
inspectBlock(block_uuid: string): Promise<any>;
|
|
163
164
|
/**
|
|
165
|
+
* Evaluates a block by name
|
|
166
|
+
* This will create a block instance and execute it.
|
|
167
|
+
*
|
|
168
|
+
* # Arguments
|
|
169
|
+
* * `block_name` - The name of the block to evaluate
|
|
170
|
+
* * `inputs` - The input values to the block
|
|
171
|
+
*
|
|
172
|
+
* # Returns
|
|
173
|
+
* A list of values representing the outputs of the block
|
|
174
|
+
* @param {string} block_name
|
|
175
|
+
* @param {any[]} inputs
|
|
176
|
+
* @returns {Promise<any>}
|
|
177
|
+
*/
|
|
178
|
+
evalBlock(block_name: string, inputs: any[]): Promise<any>;
|
|
179
|
+
/**
|
|
164
180
|
* Creates a watch on block changes
|
|
165
181
|
* @param {Function} callback
|
|
166
|
-
* @returns {Promise<
|
|
182
|
+
* @returns {Promise<void>}
|
|
167
183
|
*/
|
|
168
|
-
createWatch(callback: Function): Promise<
|
|
184
|
+
createWatch(callback: Function): Promise<void>;
|
|
169
185
|
/**
|
|
170
186
|
* Pauses the execution of the engine
|
|
171
187
|
* If the engine is already paused, this does nothing
|
|
@@ -183,4 +199,9 @@ export class EngineCommand {
|
|
|
183
199
|
* @returns {Promise<void>}
|
|
184
200
|
*/
|
|
185
201
|
resetEngine(): Promise<void>;
|
|
202
|
+
/**
|
|
203
|
+
* Stop the engine's execution
|
|
204
|
+
* @returns {Promise<void>}
|
|
205
|
+
*/
|
|
206
|
+
stopEngine(): Promise<void>;
|
|
186
207
|
}
|
package/logic_mesh_bg.js
CHANGED
|
@@ -234,6 +234,24 @@ function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
|
234
234
|
wasm.__wbindgen_export_3(arg0, arg1, addHeapObject(arg2));
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
+
let cachedUint32Memory0 = null;
|
|
238
|
+
|
|
239
|
+
function getUint32Memory0() {
|
|
240
|
+
if (cachedUint32Memory0 === null || cachedUint32Memory0.byteLength === 0) {
|
|
241
|
+
cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
|
|
242
|
+
}
|
|
243
|
+
return cachedUint32Memory0;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
function passArrayJsValueToWasm0(array, malloc) {
|
|
247
|
+
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
248
|
+
const mem = getUint32Memory0();
|
|
249
|
+
for (let i = 0; i < array.length; i++) {
|
|
250
|
+
mem[ptr / 4 + i] = addHeapObject(array[i]);
|
|
251
|
+
}
|
|
252
|
+
WASM_VECTOR_LEN = array.length;
|
|
253
|
+
return ptr;
|
|
254
|
+
}
|
|
237
255
|
/**
|
|
238
256
|
* @returns {BlocksEngine}
|
|
239
257
|
*/
|
|
@@ -261,7 +279,7 @@ function handleError(f, args) {
|
|
|
261
279
|
wasm.__wbindgen_export_5(addHeapObject(e));
|
|
262
280
|
}
|
|
263
281
|
}
|
|
264
|
-
function
|
|
282
|
+
function __wbg_adapter_155(arg0, arg1, arg2, arg3) {
|
|
265
283
|
wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
266
284
|
}
|
|
267
285
|
|
|
@@ -296,7 +314,8 @@ export class BlocksEngine {
|
|
|
296
314
|
*/
|
|
297
315
|
constructor() {
|
|
298
316
|
const ret = wasm.blocksengine_new();
|
|
299
|
-
|
|
317
|
+
this.__wbg_ptr = ret >>> 0;
|
|
318
|
+
return this;
|
|
300
319
|
}
|
|
301
320
|
/**
|
|
302
321
|
* Lists all available blocks
|
|
@@ -319,7 +338,7 @@ export class BlocksEngine {
|
|
|
319
338
|
* The name of the block
|
|
320
339
|
*
|
|
321
340
|
* @param {any} desc
|
|
322
|
-
* @param {Function | undefined} func
|
|
341
|
+
* @param {Function | undefined} [func]
|
|
323
342
|
* @returns {string}
|
|
324
343
|
*/
|
|
325
344
|
registerBlock(desc, func) {
|
|
@@ -392,15 +411,18 @@ export class EngineCommand {
|
|
|
392
411
|
* Adds a block instance to the engine
|
|
393
412
|
* to be immediately scheduled for execution
|
|
394
413
|
* @param {string} block_name
|
|
395
|
-
* @param {string | undefined} block_uuid
|
|
414
|
+
* @param {string | undefined} [block_uuid]
|
|
415
|
+
* @param {string | undefined} [lib]
|
|
396
416
|
* @returns {Promise<string>}
|
|
397
417
|
*/
|
|
398
|
-
addBlock(block_name, block_uuid) {
|
|
418
|
+
addBlock(block_name, block_uuid, lib) {
|
|
399
419
|
const ptr0 = passStringToWasm0(block_name, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
400
420
|
const len0 = WASM_VECTOR_LEN;
|
|
401
421
|
var ptr1 = isLikeNone(block_uuid) ? 0 : passStringToWasm0(block_uuid, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
402
422
|
var len1 = WASM_VECTOR_LEN;
|
|
403
|
-
|
|
423
|
+
var ptr2 = isLikeNone(lib) ? 0 : passStringToWasm0(lib, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
424
|
+
var len2 = WASM_VECTOR_LEN;
|
|
425
|
+
const ret = wasm.enginecommand_addBlock(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
404
426
|
return takeObject(ret);
|
|
405
427
|
}
|
|
406
428
|
/**
|
|
@@ -539,9 +561,31 @@ export class EngineCommand {
|
|
|
539
561
|
return takeObject(ret);
|
|
540
562
|
}
|
|
541
563
|
/**
|
|
564
|
+
* Evaluates a block by name
|
|
565
|
+
* This will create a block instance and execute it.
|
|
566
|
+
*
|
|
567
|
+
* # Arguments
|
|
568
|
+
* * `block_name` - The name of the block to evaluate
|
|
569
|
+
* * `inputs` - The input values to the block
|
|
570
|
+
*
|
|
571
|
+
* # Returns
|
|
572
|
+
* A list of values representing the outputs of the block
|
|
573
|
+
* @param {string} block_name
|
|
574
|
+
* @param {any[]} inputs
|
|
575
|
+
* @returns {Promise<any>}
|
|
576
|
+
*/
|
|
577
|
+
evalBlock(block_name, inputs) {
|
|
578
|
+
const ptr0 = passStringToWasm0(block_name, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
579
|
+
const len0 = WASM_VECTOR_LEN;
|
|
580
|
+
const ptr1 = passArrayJsValueToWasm0(inputs, wasm.__wbindgen_export_0);
|
|
581
|
+
const len1 = WASM_VECTOR_LEN;
|
|
582
|
+
const ret = wasm.enginecommand_evalBlock(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
583
|
+
return takeObject(ret);
|
|
584
|
+
}
|
|
585
|
+
/**
|
|
542
586
|
* Creates a watch on block changes
|
|
543
587
|
* @param {Function} callback
|
|
544
|
-
* @returns {Promise<
|
|
588
|
+
* @returns {Promise<void>}
|
|
545
589
|
*/
|
|
546
590
|
createWatch(callback) {
|
|
547
591
|
const ret = wasm.enginecommand_createWatch(this.__wbg_ptr, addHeapObject(callback));
|
|
@@ -573,6 +617,14 @@ export class EngineCommand {
|
|
|
573
617
|
const ret = wasm.enginecommand_resetEngine(this.__wbg_ptr);
|
|
574
618
|
return takeObject(ret);
|
|
575
619
|
}
|
|
620
|
+
/**
|
|
621
|
+
* Stop the engine's execution
|
|
622
|
+
* @returns {Promise<void>}
|
|
623
|
+
*/
|
|
624
|
+
stopEngine() {
|
|
625
|
+
const ret = wasm.enginecommand_stopEngine(this.__wbg_ptr);
|
|
626
|
+
return takeObject(ret);
|
|
627
|
+
}
|
|
576
628
|
}
|
|
577
629
|
|
|
578
630
|
export function __wbindgen_object_drop_ref(arg0) {
|
|
@@ -594,11 +646,6 @@ export function __wbindgen_error_new(arg0, arg1) {
|
|
|
594
646
|
return addHeapObject(ret);
|
|
595
647
|
};
|
|
596
648
|
|
|
597
|
-
export function __wbindgen_object_clone_ref(arg0) {
|
|
598
|
-
const ret = getObject(arg0);
|
|
599
|
-
return addHeapObject(ret);
|
|
600
|
-
};
|
|
601
|
-
|
|
602
649
|
export function __wbindgen_is_undefined(arg0) {
|
|
603
650
|
const ret = getObject(arg0) === undefined;
|
|
604
651
|
return ret;
|
|
@@ -657,12 +704,17 @@ export function __wbindgen_bigint_from_u64(arg0) {
|
|
|
657
704
|
return addHeapObject(ret);
|
|
658
705
|
};
|
|
659
706
|
|
|
707
|
+
export function __wbindgen_object_clone_ref(arg0) {
|
|
708
|
+
const ret = getObject(arg0);
|
|
709
|
+
return addHeapObject(ret);
|
|
710
|
+
};
|
|
711
|
+
|
|
660
712
|
export function __wbindgen_jsval_loose_eq(arg0, arg1) {
|
|
661
713
|
const ret = getObject(arg0) == getObject(arg1);
|
|
662
714
|
return ret;
|
|
663
715
|
};
|
|
664
716
|
|
|
665
|
-
export function
|
|
717
|
+
export function __wbg_String_389b54bd9d25375f(arg0, arg1) {
|
|
666
718
|
const ret = String(getObject(arg1));
|
|
667
719
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
668
720
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -675,12 +727,12 @@ export function __wbindgen_number_new(arg0) {
|
|
|
675
727
|
return addHeapObject(ret);
|
|
676
728
|
};
|
|
677
729
|
|
|
678
|
-
export function
|
|
730
|
+
export function __wbg_getwithrefkey_4a92a5eca60879b9(arg0, arg1) {
|
|
679
731
|
const ret = getObject(arg0)[getObject(arg1)];
|
|
680
732
|
return addHeapObject(ret);
|
|
681
733
|
};
|
|
682
734
|
|
|
683
|
-
export function
|
|
735
|
+
export function __wbg_set_9182712abebf82ef(arg0, arg1, arg2) {
|
|
684
736
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
685
737
|
};
|
|
686
738
|
|
|
@@ -706,6 +758,20 @@ export function __wbindgen_cb_drop(arg0) {
|
|
|
706
758
|
return ret;
|
|
707
759
|
};
|
|
708
760
|
|
|
761
|
+
export function __wbg_queueMicrotask_4d890031a6a5a50c(arg0) {
|
|
762
|
+
queueMicrotask(getObject(arg0));
|
|
763
|
+
};
|
|
764
|
+
|
|
765
|
+
export function __wbg_queueMicrotask_adae4bc085237231(arg0) {
|
|
766
|
+
const ret = getObject(arg0).queueMicrotask;
|
|
767
|
+
return addHeapObject(ret);
|
|
768
|
+
};
|
|
769
|
+
|
|
770
|
+
export function __wbindgen_is_function(arg0) {
|
|
771
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
|
772
|
+
return ret;
|
|
773
|
+
};
|
|
774
|
+
|
|
709
775
|
export function __wbg_new_abda76e883ba8a5f() {
|
|
710
776
|
const ret = new Error();
|
|
711
777
|
return addHeapObject(ret);
|
|
@@ -731,38 +797,38 @@ export function __wbg_error_f851667af71bcfc6(arg0, arg1) {
|
|
|
731
797
|
}
|
|
732
798
|
};
|
|
733
799
|
|
|
734
|
-
export function
|
|
800
|
+
export function __wbg_instanceof_Window_3e5cd1f48c152d01(arg0) {
|
|
735
801
|
let result;
|
|
736
802
|
try {
|
|
737
803
|
result = getObject(arg0) instanceof Window;
|
|
738
|
-
} catch {
|
|
804
|
+
} catch (_) {
|
|
739
805
|
result = false;
|
|
740
806
|
}
|
|
741
807
|
const ret = result;
|
|
742
808
|
return ret;
|
|
743
809
|
};
|
|
744
810
|
|
|
745
|
-
export function
|
|
811
|
+
export function __wbg_setTimeout_06458eba2b40711c() { return handleError(function (arg0, arg1, arg2) {
|
|
746
812
|
const ret = getObject(arg0).setTimeout(getObject(arg1), arg2);
|
|
747
813
|
return ret;
|
|
748
814
|
}, arguments) };
|
|
749
815
|
|
|
750
|
-
export function
|
|
816
|
+
export function __wbg_crypto_58f13aa23ffcb166(arg0) {
|
|
751
817
|
const ret = getObject(arg0).crypto;
|
|
752
818
|
return addHeapObject(ret);
|
|
753
819
|
};
|
|
754
820
|
|
|
755
|
-
export function
|
|
821
|
+
export function __wbg_process_5b786e71d465a513(arg0) {
|
|
756
822
|
const ret = getObject(arg0).process;
|
|
757
823
|
return addHeapObject(ret);
|
|
758
824
|
};
|
|
759
825
|
|
|
760
|
-
export function
|
|
826
|
+
export function __wbg_versions_c2ab80650590b6a2(arg0) {
|
|
761
827
|
const ret = getObject(arg0).versions;
|
|
762
828
|
return addHeapObject(ret);
|
|
763
829
|
};
|
|
764
830
|
|
|
765
|
-
export function
|
|
831
|
+
export function __wbg_node_523d7bd03ef69fba(arg0) {
|
|
766
832
|
const ret = getObject(arg0).node;
|
|
767
833
|
return addHeapObject(ret);
|
|
768
834
|
};
|
|
@@ -772,167 +838,162 @@ export function __wbindgen_is_string(arg0) {
|
|
|
772
838
|
return ret;
|
|
773
839
|
};
|
|
774
840
|
|
|
775
|
-
export function
|
|
841
|
+
export function __wbg_require_2784e593a4674877() { return handleError(function () {
|
|
776
842
|
const ret = module.require;
|
|
777
843
|
return addHeapObject(ret);
|
|
778
844
|
}, arguments) };
|
|
779
845
|
|
|
780
|
-
export function
|
|
846
|
+
export function __wbg_msCrypto_abcb1295e768d1f2(arg0) {
|
|
781
847
|
const ret = getObject(arg0).msCrypto;
|
|
782
848
|
return addHeapObject(ret);
|
|
783
849
|
};
|
|
784
850
|
|
|
785
|
-
export function
|
|
851
|
+
export function __wbg_randomFillSync_a0d98aa11c81fe89() { return handleError(function (arg0, arg1) {
|
|
786
852
|
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
787
853
|
}, arguments) };
|
|
788
854
|
|
|
789
|
-
export function
|
|
855
|
+
export function __wbg_getRandomValues_504510b5564925af() { return handleError(function (arg0, arg1) {
|
|
790
856
|
getObject(arg0).getRandomValues(getObject(arg1));
|
|
791
857
|
}, arguments) };
|
|
792
858
|
|
|
793
|
-
export function
|
|
859
|
+
export function __wbg_get_f01601b5a68d10e3(arg0, arg1) {
|
|
794
860
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
795
861
|
return addHeapObject(ret);
|
|
796
862
|
};
|
|
797
863
|
|
|
798
|
-
export function
|
|
864
|
+
export function __wbg_length_1009b1af0c481d7b(arg0) {
|
|
799
865
|
const ret = getObject(arg0).length;
|
|
800
866
|
return ret;
|
|
801
867
|
};
|
|
802
868
|
|
|
803
|
-
export function
|
|
869
|
+
export function __wbg_new_ffc6d4d085022169() {
|
|
804
870
|
const ret = new Array();
|
|
805
871
|
return addHeapObject(ret);
|
|
806
872
|
};
|
|
807
873
|
|
|
808
|
-
export function
|
|
809
|
-
const ret = typeof(getObject(arg0)) === 'function';
|
|
810
|
-
return ret;
|
|
811
|
-
};
|
|
812
|
-
|
|
813
|
-
export function __wbg_newnoargs_581967eacc0e2604(arg0, arg1) {
|
|
874
|
+
export function __wbg_newnoargs_c62ea9419c21fbac(arg0, arg1) {
|
|
814
875
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
815
876
|
return addHeapObject(ret);
|
|
816
877
|
};
|
|
817
878
|
|
|
818
|
-
export function
|
|
879
|
+
export function __wbg_new_bfd4534b584a9593() {
|
|
819
880
|
const ret = new Map();
|
|
820
881
|
return addHeapObject(ret);
|
|
821
882
|
};
|
|
822
883
|
|
|
823
|
-
export function
|
|
884
|
+
export function __wbg_next_9b877f231f476d01(arg0) {
|
|
824
885
|
const ret = getObject(arg0).next;
|
|
825
886
|
return addHeapObject(ret);
|
|
826
887
|
};
|
|
827
888
|
|
|
828
|
-
export function
|
|
889
|
+
export function __wbg_next_6529ee0cca8d57ed() { return handleError(function (arg0) {
|
|
829
890
|
const ret = getObject(arg0).next();
|
|
830
891
|
return addHeapObject(ret);
|
|
831
892
|
}, arguments) };
|
|
832
893
|
|
|
833
|
-
export function
|
|
894
|
+
export function __wbg_done_5fe336b092d60cf2(arg0) {
|
|
834
895
|
const ret = getObject(arg0).done;
|
|
835
896
|
return ret;
|
|
836
897
|
};
|
|
837
898
|
|
|
838
|
-
export function
|
|
899
|
+
export function __wbg_value_0c248a78fdc8e19f(arg0) {
|
|
839
900
|
const ret = getObject(arg0).value;
|
|
840
901
|
return addHeapObject(ret);
|
|
841
902
|
};
|
|
842
903
|
|
|
843
|
-
export function
|
|
904
|
+
export function __wbg_iterator_db7ca081358d4fb2() {
|
|
844
905
|
const ret = Symbol.iterator;
|
|
845
906
|
return addHeapObject(ret);
|
|
846
907
|
};
|
|
847
908
|
|
|
848
|
-
export function
|
|
909
|
+
export function __wbg_get_7b48513de5dc5ea4() { return handleError(function (arg0, arg1) {
|
|
849
910
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
850
911
|
return addHeapObject(ret);
|
|
851
912
|
}, arguments) };
|
|
852
913
|
|
|
853
|
-
export function
|
|
914
|
+
export function __wbg_call_90c26b09837aba1c() { return handleError(function (arg0, arg1) {
|
|
854
915
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
855
916
|
return addHeapObject(ret);
|
|
856
917
|
}, arguments) };
|
|
857
918
|
|
|
858
|
-
export function
|
|
919
|
+
export function __wbg_new_9fb8d994e1c0aaac() {
|
|
859
920
|
const ret = new Object();
|
|
860
921
|
return addHeapObject(ret);
|
|
861
922
|
};
|
|
862
923
|
|
|
863
|
-
export function
|
|
924
|
+
export function __wbg_self_f0e34d89f33b99fd() { return handleError(function () {
|
|
864
925
|
const ret = self.self;
|
|
865
926
|
return addHeapObject(ret);
|
|
866
927
|
}, arguments) };
|
|
867
928
|
|
|
868
|
-
export function
|
|
929
|
+
export function __wbg_window_d3b084224f4774d7() { return handleError(function () {
|
|
869
930
|
const ret = window.window;
|
|
870
931
|
return addHeapObject(ret);
|
|
871
932
|
}, arguments) };
|
|
872
933
|
|
|
873
|
-
export function
|
|
934
|
+
export function __wbg_globalThis_9caa27ff917c6860() { return handleError(function () {
|
|
874
935
|
const ret = globalThis.globalThis;
|
|
875
936
|
return addHeapObject(ret);
|
|
876
937
|
}, arguments) };
|
|
877
938
|
|
|
878
|
-
export function
|
|
939
|
+
export function __wbg_global_35dfdd59a4da3e74() { return handleError(function () {
|
|
879
940
|
const ret = global.global;
|
|
880
941
|
return addHeapObject(ret);
|
|
881
942
|
}, arguments) };
|
|
882
943
|
|
|
883
|
-
export function
|
|
944
|
+
export function __wbg_set_f2740edb12e318cd(arg0, arg1, arg2) {
|
|
884
945
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
885
946
|
};
|
|
886
947
|
|
|
887
|
-
export function
|
|
948
|
+
export function __wbg_isArray_74fb723e24f76012(arg0) {
|
|
888
949
|
const ret = Array.isArray(getObject(arg0));
|
|
889
950
|
return ret;
|
|
890
951
|
};
|
|
891
952
|
|
|
892
|
-
export function
|
|
953
|
+
export function __wbg_push_901f3914205d44de(arg0, arg1) {
|
|
893
954
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
894
955
|
return ret;
|
|
895
956
|
};
|
|
896
957
|
|
|
897
|
-
export function
|
|
958
|
+
export function __wbg_instanceof_ArrayBuffer_e7d53d51371448e2(arg0) {
|
|
898
959
|
let result;
|
|
899
960
|
try {
|
|
900
961
|
result = getObject(arg0) instanceof ArrayBuffer;
|
|
901
|
-
} catch {
|
|
962
|
+
} catch (_) {
|
|
902
963
|
result = false;
|
|
903
964
|
}
|
|
904
965
|
const ret = result;
|
|
905
966
|
return ret;
|
|
906
967
|
};
|
|
907
968
|
|
|
908
|
-
export function
|
|
969
|
+
export function __wbg_call_5da1969d7cd31ccd() { return handleError(function (arg0, arg1, arg2) {
|
|
909
970
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
910
971
|
return addHeapObject(ret);
|
|
911
972
|
}, arguments) };
|
|
912
973
|
|
|
913
|
-
export function
|
|
974
|
+
export function __wbg_set_d257c6f2da008627(arg0, arg1, arg2) {
|
|
914
975
|
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
915
976
|
return addHeapObject(ret);
|
|
916
977
|
};
|
|
917
978
|
|
|
918
|
-
export function
|
|
979
|
+
export function __wbg_isSafeInteger_f93fde0dca9820f8(arg0) {
|
|
919
980
|
const ret = Number.isSafeInteger(getObject(arg0));
|
|
920
981
|
return ret;
|
|
921
982
|
};
|
|
922
983
|
|
|
923
|
-
export function
|
|
984
|
+
export function __wbg_entries_9e2e2aa45aa5094a(arg0) {
|
|
924
985
|
const ret = Object.entries(getObject(arg0));
|
|
925
986
|
return addHeapObject(ret);
|
|
926
987
|
};
|
|
927
988
|
|
|
928
|
-
export function
|
|
989
|
+
export function __wbg_new_60f57089c7563e81(arg0, arg1) {
|
|
929
990
|
try {
|
|
930
991
|
var state0 = {a: arg0, b: arg1};
|
|
931
992
|
var cb0 = (arg0, arg1) => {
|
|
932
993
|
const a = state0.a;
|
|
933
994
|
state0.a = 0;
|
|
934
995
|
try {
|
|
935
|
-
return
|
|
996
|
+
return __wbg_adapter_155(a, state0.b, arg0, arg1);
|
|
936
997
|
} finally {
|
|
937
998
|
state0.a = a;
|
|
938
999
|
}
|
|
@@ -944,62 +1005,62 @@ export function __wbg_new_43f1b47c28813cbd(arg0, arg1) {
|
|
|
944
1005
|
}
|
|
945
1006
|
};
|
|
946
1007
|
|
|
947
|
-
export function
|
|
1008
|
+
export function __wbg_resolve_6e1c6553a82f85b7(arg0) {
|
|
948
1009
|
const ret = Promise.resolve(getObject(arg0));
|
|
949
1010
|
return addHeapObject(ret);
|
|
950
1011
|
};
|
|
951
1012
|
|
|
952
|
-
export function
|
|
1013
|
+
export function __wbg_then_3ab08cd4fbb91ae9(arg0, arg1) {
|
|
953
1014
|
const ret = getObject(arg0).then(getObject(arg1));
|
|
954
1015
|
return addHeapObject(ret);
|
|
955
1016
|
};
|
|
956
1017
|
|
|
957
|
-
export function
|
|
1018
|
+
export function __wbg_then_8371cc12cfedc5a2(arg0, arg1, arg2) {
|
|
958
1019
|
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
959
1020
|
return addHeapObject(ret);
|
|
960
1021
|
};
|
|
961
1022
|
|
|
962
|
-
export function
|
|
1023
|
+
export function __wbg_buffer_a448f833075b71ba(arg0) {
|
|
963
1024
|
const ret = getObject(arg0).buffer;
|
|
964
1025
|
return addHeapObject(ret);
|
|
965
1026
|
};
|
|
966
1027
|
|
|
967
|
-
export function
|
|
1028
|
+
export function __wbg_newwithbyteoffsetandlength_d0482f893617af71(arg0, arg1, arg2) {
|
|
968
1029
|
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
969
1030
|
return addHeapObject(ret);
|
|
970
1031
|
};
|
|
971
1032
|
|
|
972
|
-
export function
|
|
1033
|
+
export function __wbg_new_8f67e318f15d7254(arg0) {
|
|
973
1034
|
const ret = new Uint8Array(getObject(arg0));
|
|
974
1035
|
return addHeapObject(ret);
|
|
975
1036
|
};
|
|
976
1037
|
|
|
977
|
-
export function
|
|
1038
|
+
export function __wbg_set_2357bf09366ee480(arg0, arg1, arg2) {
|
|
978
1039
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
979
1040
|
};
|
|
980
1041
|
|
|
981
|
-
export function
|
|
1042
|
+
export function __wbg_length_1d25fa9e4ac21ce7(arg0) {
|
|
982
1043
|
const ret = getObject(arg0).length;
|
|
983
1044
|
return ret;
|
|
984
1045
|
};
|
|
985
1046
|
|
|
986
|
-
export function
|
|
1047
|
+
export function __wbg_instanceof_Uint8Array_bced6f43aed8c1aa(arg0) {
|
|
987
1048
|
let result;
|
|
988
1049
|
try {
|
|
989
1050
|
result = getObject(arg0) instanceof Uint8Array;
|
|
990
|
-
} catch {
|
|
1051
|
+
} catch (_) {
|
|
991
1052
|
result = false;
|
|
992
1053
|
}
|
|
993
1054
|
const ret = result;
|
|
994
1055
|
return ret;
|
|
995
1056
|
};
|
|
996
1057
|
|
|
997
|
-
export function
|
|
1058
|
+
export function __wbg_newwithlength_6c2df9e2f3028c43(arg0) {
|
|
998
1059
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
999
1060
|
return addHeapObject(ret);
|
|
1000
1061
|
};
|
|
1001
1062
|
|
|
1002
|
-
export function
|
|
1063
|
+
export function __wbg_subarray_2e940e41c0f5a1d9(arg0, arg1, arg2) {
|
|
1003
1064
|
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1004
1065
|
return addHeapObject(ret);
|
|
1005
1066
|
};
|
|
@@ -1028,8 +1089,8 @@ export function __wbindgen_memory() {
|
|
|
1028
1089
|
return addHeapObject(ret);
|
|
1029
1090
|
};
|
|
1030
1091
|
|
|
1031
|
-
export function
|
|
1032
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1092
|
+
export function __wbindgen_closure_wrapper3497(arg0, arg1, arg2) {
|
|
1093
|
+
const ret = makeMutClosure(arg0, arg1, 1193, __wbg_adapter_50);
|
|
1033
1094
|
return addHeapObject(ret);
|
|
1034
1095
|
};
|
|
1035
1096
|
|
package/logic_mesh_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED