ms-toollib 1.5.12-alpha → 1.5.13-alpha
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/ms_toollib.d.ts +10 -0
- package/ms_toollib.js +101 -0
- package/ms_toollib_bg.wasm +0 -0
- package/package.json +1 -1
package/ms_toollib.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export class AvfVideo {
|
|
|
13
13
|
free(): void;
|
|
14
14
|
[Symbol.dispose](): void;
|
|
15
15
|
analyse(): void;
|
|
16
|
+
analyse_for_features(f: string[]): void;
|
|
16
17
|
is_valid(): number;
|
|
17
18
|
constructor(data: Uint8Array, file_name: string);
|
|
18
19
|
parse(): void;
|
|
@@ -69,6 +70,7 @@ export class AvfVideo {
|
|
|
69
70
|
readonly path: number;
|
|
70
71
|
readonly pix_size: number;
|
|
71
72
|
readonly player_identifier: string;
|
|
73
|
+
readonly pluck: number;
|
|
72
74
|
readonly race_identifier: string;
|
|
73
75
|
readonly raw_data: Uint8Array;
|
|
74
76
|
readonly rce: number;
|
|
@@ -154,6 +156,7 @@ export class EvfVideo {
|
|
|
154
156
|
free(): void;
|
|
155
157
|
[Symbol.dispose](): void;
|
|
156
158
|
analyse(): void;
|
|
159
|
+
analyse_for_features(f: string[]): void;
|
|
157
160
|
is_valid(): number;
|
|
158
161
|
constructor(data: Uint8Array, file_name: string);
|
|
159
162
|
parse(): void;
|
|
@@ -210,6 +213,7 @@ export class EvfVideo {
|
|
|
210
213
|
readonly path: number;
|
|
211
214
|
readonly pix_size: number;
|
|
212
215
|
readonly player_identifier: string;
|
|
216
|
+
readonly pluck: number;
|
|
213
217
|
readonly race_identifier: string;
|
|
214
218
|
readonly raw_data: Uint8Array;
|
|
215
219
|
readonly rce: number;
|
|
@@ -321,6 +325,7 @@ export class MvfVideo {
|
|
|
321
325
|
free(): void;
|
|
322
326
|
[Symbol.dispose](): void;
|
|
323
327
|
analyse(): void;
|
|
328
|
+
analyse_for_features(f: string[]): void;
|
|
324
329
|
is_valid(): number;
|
|
325
330
|
constructor(data: Uint8Array, file_name: string);
|
|
326
331
|
parse(): void;
|
|
@@ -377,6 +382,7 @@ export class MvfVideo {
|
|
|
377
382
|
readonly path: number;
|
|
378
383
|
readonly pix_size: number;
|
|
379
384
|
readonly player_identifier: string;
|
|
385
|
+
readonly pluck: number;
|
|
380
386
|
readonly race_identifier: string;
|
|
381
387
|
readonly raw_data: Uint8Array;
|
|
382
388
|
readonly rce: number;
|
|
@@ -413,6 +419,7 @@ export class RmvVideo {
|
|
|
413
419
|
free(): void;
|
|
414
420
|
[Symbol.dispose](): void;
|
|
415
421
|
analyse(): void;
|
|
422
|
+
analyse_for_features(f: string[]): void;
|
|
416
423
|
is_valid(): number;
|
|
417
424
|
constructor(data: Uint8Array, file_name: string);
|
|
418
425
|
parse(): void;
|
|
@@ -469,6 +476,7 @@ export class RmvVideo {
|
|
|
469
476
|
readonly path: number;
|
|
470
477
|
readonly pix_size: number;
|
|
471
478
|
readonly player_identifier: string;
|
|
479
|
+
readonly pluck: number;
|
|
472
480
|
readonly race_identifier: string;
|
|
473
481
|
readonly raw_data: Uint8Array;
|
|
474
482
|
readonly rce: number;
|
|
@@ -522,6 +530,8 @@ export function cal_op(js_board: any): number;
|
|
|
522
530
|
|
|
523
531
|
export function cal_probability_onboard(js_board: any, mine_num: number): any;
|
|
524
532
|
|
|
533
|
+
export function init(): void;
|
|
534
|
+
|
|
525
535
|
export function is_solvable(js_board: any, x0: number, y0: number): boolean;
|
|
526
536
|
|
|
527
537
|
export function laymine(row: number, column: number, mine_num: number, x0: number, y0: number): any;
|
package/ms_toollib.js
CHANGED
|
@@ -54,6 +54,7 @@ class AvfVideo {
|
|
|
54
54
|
path: this.path,
|
|
55
55
|
pix_size: this.pix_size,
|
|
56
56
|
player_identifier: this.player_identifier,
|
|
57
|
+
pluck: this.pluck,
|
|
57
58
|
race_identifier: this.race_identifier,
|
|
58
59
|
raw_data: this.raw_data,
|
|
59
60
|
rce: this.rce,
|
|
@@ -93,6 +94,14 @@ class AvfVideo {
|
|
|
93
94
|
analyse() {
|
|
94
95
|
wasm.avfvideo_analyse(this.__wbg_ptr);
|
|
95
96
|
}
|
|
97
|
+
/**
|
|
98
|
+
* @param {string[]} f
|
|
99
|
+
*/
|
|
100
|
+
analyse_for_features(f) {
|
|
101
|
+
const ptr0 = passArrayJsValueToWasm0(f, wasm.__wbindgen_malloc);
|
|
102
|
+
const len0 = WASM_VECTOR_LEN;
|
|
103
|
+
wasm.avfvideo_analyse_for_features(this.__wbg_ptr, ptr0, len0);
|
|
104
|
+
}
|
|
96
105
|
/**
|
|
97
106
|
* @returns {number}
|
|
98
107
|
*/
|
|
@@ -464,6 +473,13 @@ class AvfVideo {
|
|
|
464
473
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
465
474
|
}
|
|
466
475
|
}
|
|
476
|
+
/**
|
|
477
|
+
* @returns {number}
|
|
478
|
+
*/
|
|
479
|
+
get pluck() {
|
|
480
|
+
const ret = wasm.avfvideo_get_pluck(this.__wbg_ptr);
|
|
481
|
+
return ret;
|
|
482
|
+
}
|
|
467
483
|
/**
|
|
468
484
|
* @returns {string}
|
|
469
485
|
*/
|
|
@@ -1005,6 +1021,7 @@ class EvfVideo {
|
|
|
1005
1021
|
path: this.path,
|
|
1006
1022
|
pix_size: this.pix_size,
|
|
1007
1023
|
player_identifier: this.player_identifier,
|
|
1024
|
+
pluck: this.pluck,
|
|
1008
1025
|
race_identifier: this.race_identifier,
|
|
1009
1026
|
raw_data: this.raw_data,
|
|
1010
1027
|
rce: this.rce,
|
|
@@ -1044,6 +1061,14 @@ class EvfVideo {
|
|
|
1044
1061
|
analyse() {
|
|
1045
1062
|
wasm.evfvideo_analyse(this.__wbg_ptr);
|
|
1046
1063
|
}
|
|
1064
|
+
/**
|
|
1065
|
+
* @param {string[]} f
|
|
1066
|
+
*/
|
|
1067
|
+
analyse_for_features(f) {
|
|
1068
|
+
const ptr0 = passArrayJsValueToWasm0(f, wasm.__wbindgen_malloc);
|
|
1069
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1070
|
+
wasm.evfvideo_analyse_for_features(this.__wbg_ptr, ptr0, len0);
|
|
1071
|
+
}
|
|
1047
1072
|
/**
|
|
1048
1073
|
* @returns {number}
|
|
1049
1074
|
*/
|
|
@@ -1415,6 +1440,13 @@ class EvfVideo {
|
|
|
1415
1440
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1416
1441
|
}
|
|
1417
1442
|
}
|
|
1443
|
+
/**
|
|
1444
|
+
* @returns {number}
|
|
1445
|
+
*/
|
|
1446
|
+
get pluck() {
|
|
1447
|
+
const ret = wasm.evfvideo_get_pluck(this.__wbg_ptr);
|
|
1448
|
+
return ret;
|
|
1449
|
+
}
|
|
1418
1450
|
/**
|
|
1419
1451
|
* @returns {string}
|
|
1420
1452
|
*/
|
|
@@ -2152,6 +2184,7 @@ class MvfVideo {
|
|
|
2152
2184
|
path: this.path,
|
|
2153
2185
|
pix_size: this.pix_size,
|
|
2154
2186
|
player_identifier: this.player_identifier,
|
|
2187
|
+
pluck: this.pluck,
|
|
2155
2188
|
race_identifier: this.race_identifier,
|
|
2156
2189
|
raw_data: this.raw_data,
|
|
2157
2190
|
rce: this.rce,
|
|
@@ -2191,6 +2224,14 @@ class MvfVideo {
|
|
|
2191
2224
|
analyse() {
|
|
2192
2225
|
wasm.mvfvideo_analyse(this.__wbg_ptr);
|
|
2193
2226
|
}
|
|
2227
|
+
/**
|
|
2228
|
+
* @param {string[]} f
|
|
2229
|
+
*/
|
|
2230
|
+
analyse_for_features(f) {
|
|
2231
|
+
const ptr0 = passArrayJsValueToWasm0(f, wasm.__wbindgen_malloc);
|
|
2232
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2233
|
+
wasm.mvfvideo_analyse_for_features(this.__wbg_ptr, ptr0, len0);
|
|
2234
|
+
}
|
|
2194
2235
|
/**
|
|
2195
2236
|
* @returns {number}
|
|
2196
2237
|
*/
|
|
@@ -2562,6 +2603,13 @@ class MvfVideo {
|
|
|
2562
2603
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2563
2604
|
}
|
|
2564
2605
|
}
|
|
2606
|
+
/**
|
|
2607
|
+
* @returns {number}
|
|
2608
|
+
*/
|
|
2609
|
+
get pluck() {
|
|
2610
|
+
const ret = wasm.mvfvideo_get_pluck(this.__wbg_ptr);
|
|
2611
|
+
return ret;
|
|
2612
|
+
}
|
|
2565
2613
|
/**
|
|
2566
2614
|
* @returns {string}
|
|
2567
2615
|
*/
|
|
@@ -2808,6 +2856,7 @@ class RmvVideo {
|
|
|
2808
2856
|
path: this.path,
|
|
2809
2857
|
pix_size: this.pix_size,
|
|
2810
2858
|
player_identifier: this.player_identifier,
|
|
2859
|
+
pluck: this.pluck,
|
|
2811
2860
|
race_identifier: this.race_identifier,
|
|
2812
2861
|
raw_data: this.raw_data,
|
|
2813
2862
|
rce: this.rce,
|
|
@@ -2847,6 +2896,14 @@ class RmvVideo {
|
|
|
2847
2896
|
analyse() {
|
|
2848
2897
|
wasm.rmvvideo_analyse(this.__wbg_ptr);
|
|
2849
2898
|
}
|
|
2899
|
+
/**
|
|
2900
|
+
* @param {string[]} f
|
|
2901
|
+
*/
|
|
2902
|
+
analyse_for_features(f) {
|
|
2903
|
+
const ptr0 = passArrayJsValueToWasm0(f, wasm.__wbindgen_malloc);
|
|
2904
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2905
|
+
wasm.rmvvideo_analyse_for_features(this.__wbg_ptr, ptr0, len0);
|
|
2906
|
+
}
|
|
2850
2907
|
/**
|
|
2851
2908
|
* @returns {number}
|
|
2852
2909
|
*/
|
|
@@ -3218,6 +3275,13 @@ class RmvVideo {
|
|
|
3218
3275
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
3219
3276
|
}
|
|
3220
3277
|
}
|
|
3278
|
+
/**
|
|
3279
|
+
* @returns {number}
|
|
3280
|
+
*/
|
|
3281
|
+
get pluck() {
|
|
3282
|
+
const ret = wasm.rmvvideo_get_pluck(this.__wbg_ptr);
|
|
3283
|
+
return ret;
|
|
3284
|
+
}
|
|
3221
3285
|
/**
|
|
3222
3286
|
* @returns {string}
|
|
3223
3287
|
*/
|
|
@@ -3601,6 +3665,11 @@ function cal_probability_onboard(js_board, mine_num) {
|
|
|
3601
3665
|
}
|
|
3602
3666
|
exports.cal_probability_onboard = cal_probability_onboard;
|
|
3603
3667
|
|
|
3668
|
+
function init() {
|
|
3669
|
+
wasm.init();
|
|
3670
|
+
}
|
|
3671
|
+
exports.init = init;
|
|
3672
|
+
|
|
3604
3673
|
/**
|
|
3605
3674
|
* @param {any} js_board
|
|
3606
3675
|
* @param {number} x0
|
|
@@ -3712,6 +3781,17 @@ function __wbg_get_imports() {
|
|
|
3712
3781
|
const ret = arg0.crypto;
|
|
3713
3782
|
return ret;
|
|
3714
3783
|
},
|
|
3784
|
+
__wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
|
|
3785
|
+
let deferred0_0;
|
|
3786
|
+
let deferred0_1;
|
|
3787
|
+
try {
|
|
3788
|
+
deferred0_0 = arg0;
|
|
3789
|
+
deferred0_1 = arg1;
|
|
3790
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
3791
|
+
} finally {
|
|
3792
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3793
|
+
}
|
|
3794
|
+
},
|
|
3715
3795
|
__wbg_from_13e323c65fc8f464: function(arg0) {
|
|
3716
3796
|
const ret = Array.from(arg0);
|
|
3717
3797
|
return ret;
|
|
@@ -3739,6 +3819,10 @@ function __wbg_get_imports() {
|
|
|
3739
3819
|
const ret = arg0.msCrypto;
|
|
3740
3820
|
return ret;
|
|
3741
3821
|
},
|
|
3822
|
+
__wbg_new_227d7c05414eb861: function() {
|
|
3823
|
+
const ret = new Error();
|
|
3824
|
+
return ret;
|
|
3825
|
+
},
|
|
3742
3826
|
__wbg_new_32b398fb48b6d94a: function() {
|
|
3743
3827
|
const ret = new Array();
|
|
3744
3828
|
return ret;
|
|
@@ -3776,6 +3860,13 @@ function __wbg_get_imports() {
|
|
|
3776
3860
|
__wbg_set_8a16b38e4805b298: function(arg0, arg1, arg2) {
|
|
3777
3861
|
arg0[arg1 >>> 0] = arg2;
|
|
3778
3862
|
},
|
|
3863
|
+
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
3864
|
+
const ret = arg1.stack;
|
|
3865
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3866
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3867
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3868
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3869
|
+
},
|
|
3779
3870
|
__wbg_static_accessor_GLOBAL_4ef717fb391d88b7: function() {
|
|
3780
3871
|
const ret = typeof global === 'undefined' ? null : global;
|
|
3781
3872
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
@@ -3935,6 +4026,16 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
3935
4026
|
return ptr;
|
|
3936
4027
|
}
|
|
3937
4028
|
|
|
4029
|
+
function passArrayJsValueToWasm0(array, malloc) {
|
|
4030
|
+
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
4031
|
+
for (let i = 0; i < array.length; i++) {
|
|
4032
|
+
const add = addToExternrefTable0(array[i]);
|
|
4033
|
+
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
4034
|
+
}
|
|
4035
|
+
WASM_VECTOR_LEN = array.length;
|
|
4036
|
+
return ptr;
|
|
4037
|
+
}
|
|
4038
|
+
|
|
3938
4039
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
3939
4040
|
if (realloc === undefined) {
|
|
3940
4041
|
const buf = cachedTextEncoder.encode(arg);
|
package/ms_toollib_bg.wasm
CHANGED
|
Binary file
|