ms-toollib 1.5.12 → 1.5.13
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 +1 -1
- package/ms_toollib_bg.js +100 -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
|
@@ -5,5 +5,5 @@ import { __wbg_set_wasm } from "./ms_toollib_bg.js";
|
|
|
5
5
|
__wbg_set_wasm(wasm);
|
|
6
6
|
wasm.__wbindgen_start();
|
|
7
7
|
export {
|
|
8
|
-
AvfVideo, Board, BoardEvent, CursorPos, Event, EvfVideo, GameBoard, GameStateEvent, IndexEvent, KeyDynamicParams, MinesweeperBoard, MouseEvent, MvfVideo, RmvVideo, TimePeriod, VideoActionStateRecorder, cal_bbbv, cal_op, cal_probability_onboard, is_solvable, laymine, laymine_op, laymine_solvable, valid_time_period
|
|
8
|
+
AvfVideo, Board, BoardEvent, CursorPos, Event, EvfVideo, GameBoard, GameStateEvent, IndexEvent, KeyDynamicParams, MinesweeperBoard, MouseEvent, MvfVideo, RmvVideo, TimePeriod, VideoActionStateRecorder, cal_bbbv, cal_op, cal_probability_onboard, init, is_solvable, laymine, laymine_op, laymine_solvable, valid_time_period
|
|
9
9
|
} from "./ms_toollib_bg.js";
|
package/ms_toollib_bg.js
CHANGED
|
@@ -51,6 +51,7 @@ export class AvfVideo {
|
|
|
51
51
|
path: this.path,
|
|
52
52
|
pix_size: this.pix_size,
|
|
53
53
|
player_identifier: this.player_identifier,
|
|
54
|
+
pluck: this.pluck,
|
|
54
55
|
race_identifier: this.race_identifier,
|
|
55
56
|
raw_data: this.raw_data,
|
|
56
57
|
rce: this.rce,
|
|
@@ -87,6 +88,14 @@ export class AvfVideo {
|
|
|
87
88
|
analyse() {
|
|
88
89
|
wasm.avfvideo_analyse(this.__wbg_ptr);
|
|
89
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* @param {string[]} f
|
|
93
|
+
*/
|
|
94
|
+
analyse_for_features(f) {
|
|
95
|
+
const ptr0 = passArrayJsValueToWasm0(f, wasm.__wbindgen_malloc);
|
|
96
|
+
const len0 = WASM_VECTOR_LEN;
|
|
97
|
+
wasm.avfvideo_analyse_for_features(this.__wbg_ptr, ptr0, len0);
|
|
98
|
+
}
|
|
90
99
|
/**
|
|
91
100
|
* @returns {number}
|
|
92
101
|
*/
|
|
@@ -458,6 +467,13 @@ export class AvfVideo {
|
|
|
458
467
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
459
468
|
}
|
|
460
469
|
}
|
|
470
|
+
/**
|
|
471
|
+
* @returns {number}
|
|
472
|
+
*/
|
|
473
|
+
get pluck() {
|
|
474
|
+
const ret = wasm.avfvideo_get_pluck(this.__wbg_ptr);
|
|
475
|
+
return ret;
|
|
476
|
+
}
|
|
461
477
|
/**
|
|
462
478
|
* @returns {string}
|
|
463
479
|
*/
|
|
@@ -994,6 +1010,7 @@ export class EvfVideo {
|
|
|
994
1010
|
path: this.path,
|
|
995
1011
|
pix_size: this.pix_size,
|
|
996
1012
|
player_identifier: this.player_identifier,
|
|
1013
|
+
pluck: this.pluck,
|
|
997
1014
|
race_identifier: this.race_identifier,
|
|
998
1015
|
raw_data: this.raw_data,
|
|
999
1016
|
rce: this.rce,
|
|
@@ -1030,6 +1047,14 @@ export class EvfVideo {
|
|
|
1030
1047
|
analyse() {
|
|
1031
1048
|
wasm.evfvideo_analyse(this.__wbg_ptr);
|
|
1032
1049
|
}
|
|
1050
|
+
/**
|
|
1051
|
+
* @param {string[]} f
|
|
1052
|
+
*/
|
|
1053
|
+
analyse_for_features(f) {
|
|
1054
|
+
const ptr0 = passArrayJsValueToWasm0(f, wasm.__wbindgen_malloc);
|
|
1055
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1056
|
+
wasm.evfvideo_analyse_for_features(this.__wbg_ptr, ptr0, len0);
|
|
1057
|
+
}
|
|
1033
1058
|
/**
|
|
1034
1059
|
* @returns {number}
|
|
1035
1060
|
*/
|
|
@@ -1401,6 +1426,13 @@ export class EvfVideo {
|
|
|
1401
1426
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1402
1427
|
}
|
|
1403
1428
|
}
|
|
1429
|
+
/**
|
|
1430
|
+
* @returns {number}
|
|
1431
|
+
*/
|
|
1432
|
+
get pluck() {
|
|
1433
|
+
const ret = wasm.evfvideo_get_pluck(this.__wbg_ptr);
|
|
1434
|
+
return ret;
|
|
1435
|
+
}
|
|
1404
1436
|
/**
|
|
1405
1437
|
* @returns {string}
|
|
1406
1438
|
*/
|
|
@@ -2131,6 +2163,7 @@ export class MvfVideo {
|
|
|
2131
2163
|
path: this.path,
|
|
2132
2164
|
pix_size: this.pix_size,
|
|
2133
2165
|
player_identifier: this.player_identifier,
|
|
2166
|
+
pluck: this.pluck,
|
|
2134
2167
|
race_identifier: this.race_identifier,
|
|
2135
2168
|
raw_data: this.raw_data,
|
|
2136
2169
|
rce: this.rce,
|
|
@@ -2167,6 +2200,14 @@ export class MvfVideo {
|
|
|
2167
2200
|
analyse() {
|
|
2168
2201
|
wasm.mvfvideo_analyse(this.__wbg_ptr);
|
|
2169
2202
|
}
|
|
2203
|
+
/**
|
|
2204
|
+
* @param {string[]} f
|
|
2205
|
+
*/
|
|
2206
|
+
analyse_for_features(f) {
|
|
2207
|
+
const ptr0 = passArrayJsValueToWasm0(f, wasm.__wbindgen_malloc);
|
|
2208
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2209
|
+
wasm.mvfvideo_analyse_for_features(this.__wbg_ptr, ptr0, len0);
|
|
2210
|
+
}
|
|
2170
2211
|
/**
|
|
2171
2212
|
* @returns {number}
|
|
2172
2213
|
*/
|
|
@@ -2538,6 +2579,13 @@ export class MvfVideo {
|
|
|
2538
2579
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2539
2580
|
}
|
|
2540
2581
|
}
|
|
2582
|
+
/**
|
|
2583
|
+
* @returns {number}
|
|
2584
|
+
*/
|
|
2585
|
+
get pluck() {
|
|
2586
|
+
const ret = wasm.mvfvideo_get_pluck(this.__wbg_ptr);
|
|
2587
|
+
return ret;
|
|
2588
|
+
}
|
|
2541
2589
|
/**
|
|
2542
2590
|
* @returns {string}
|
|
2543
2591
|
*/
|
|
@@ -2783,6 +2831,7 @@ export class RmvVideo {
|
|
|
2783
2831
|
path: this.path,
|
|
2784
2832
|
pix_size: this.pix_size,
|
|
2785
2833
|
player_identifier: this.player_identifier,
|
|
2834
|
+
pluck: this.pluck,
|
|
2786
2835
|
race_identifier: this.race_identifier,
|
|
2787
2836
|
raw_data: this.raw_data,
|
|
2788
2837
|
rce: this.rce,
|
|
@@ -2819,6 +2868,14 @@ export class RmvVideo {
|
|
|
2819
2868
|
analyse() {
|
|
2820
2869
|
wasm.rmvvideo_analyse(this.__wbg_ptr);
|
|
2821
2870
|
}
|
|
2871
|
+
/**
|
|
2872
|
+
* @param {string[]} f
|
|
2873
|
+
*/
|
|
2874
|
+
analyse_for_features(f) {
|
|
2875
|
+
const ptr0 = passArrayJsValueToWasm0(f, wasm.__wbindgen_malloc);
|
|
2876
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2877
|
+
wasm.rmvvideo_analyse_for_features(this.__wbg_ptr, ptr0, len0);
|
|
2878
|
+
}
|
|
2822
2879
|
/**
|
|
2823
2880
|
* @returns {number}
|
|
2824
2881
|
*/
|
|
@@ -3190,6 +3247,13 @@ export class RmvVideo {
|
|
|
3190
3247
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
3191
3248
|
}
|
|
3192
3249
|
}
|
|
3250
|
+
/**
|
|
3251
|
+
* @returns {number}
|
|
3252
|
+
*/
|
|
3253
|
+
get pluck() {
|
|
3254
|
+
const ret = wasm.rmvvideo_get_pluck(this.__wbg_ptr);
|
|
3255
|
+
return ret;
|
|
3256
|
+
}
|
|
3193
3257
|
/**
|
|
3194
3258
|
* @returns {string}
|
|
3195
3259
|
*/
|
|
@@ -3567,6 +3631,10 @@ export function cal_probability_onboard(js_board, mine_num) {
|
|
|
3567
3631
|
return ret;
|
|
3568
3632
|
}
|
|
3569
3633
|
|
|
3634
|
+
export function init() {
|
|
3635
|
+
wasm.init();
|
|
3636
|
+
}
|
|
3637
|
+
|
|
3570
3638
|
/**
|
|
3571
3639
|
* @param {any} js_board
|
|
3572
3640
|
* @param {number} x0
|
|
@@ -3670,6 +3738,17 @@ export function __wbg_crypto_38df2bab126b63dc(arg0) {
|
|
|
3670
3738
|
const ret = arg0.crypto;
|
|
3671
3739
|
return ret;
|
|
3672
3740
|
}
|
|
3741
|
+
export function __wbg_error_a6fa202b58aa1cd3(arg0, arg1) {
|
|
3742
|
+
let deferred0_0;
|
|
3743
|
+
let deferred0_1;
|
|
3744
|
+
try {
|
|
3745
|
+
deferred0_0 = arg0;
|
|
3746
|
+
deferred0_1 = arg1;
|
|
3747
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
3748
|
+
} finally {
|
|
3749
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3750
|
+
}
|
|
3751
|
+
}
|
|
3673
3752
|
export function __wbg_from_13e323c65fc8f464(arg0) {
|
|
3674
3753
|
const ret = Array.from(arg0);
|
|
3675
3754
|
return ret;
|
|
@@ -3697,6 +3776,10 @@ export function __wbg_msCrypto_bd5a034af96bcba6(arg0) {
|
|
|
3697
3776
|
const ret = arg0.msCrypto;
|
|
3698
3777
|
return ret;
|
|
3699
3778
|
}
|
|
3779
|
+
export function __wbg_new_227d7c05414eb861() {
|
|
3780
|
+
const ret = new Error();
|
|
3781
|
+
return ret;
|
|
3782
|
+
}
|
|
3700
3783
|
export function __wbg_new_32b398fb48b6d94a() {
|
|
3701
3784
|
const ret = new Array();
|
|
3702
3785
|
return ret;
|
|
@@ -3734,6 +3817,13 @@ export function __wbg_require_b4edbdcf3e2a1ef0() { return handleError(function (
|
|
|
3734
3817
|
export function __wbg_set_8a16b38e4805b298(arg0, arg1, arg2) {
|
|
3735
3818
|
arg0[arg1 >>> 0] = arg2;
|
|
3736
3819
|
}
|
|
3820
|
+
export function __wbg_stack_3b0d974bbf31e44f(arg0, arg1) {
|
|
3821
|
+
const ret = arg1.stack;
|
|
3822
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3823
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3824
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3825
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3826
|
+
}
|
|
3737
3827
|
export function __wbg_static_accessor_GLOBAL_4ef717fb391d88b7() {
|
|
3738
3828
|
const ret = typeof global === 'undefined' ? null : global;
|
|
3739
3829
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
@@ -3886,6 +3976,16 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
3886
3976
|
return ptr;
|
|
3887
3977
|
}
|
|
3888
3978
|
|
|
3979
|
+
function passArrayJsValueToWasm0(array, malloc) {
|
|
3980
|
+
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
3981
|
+
for (let i = 0; i < array.length; i++) {
|
|
3982
|
+
const add = addToExternrefTable0(array[i]);
|
|
3983
|
+
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
3984
|
+
}
|
|
3985
|
+
WASM_VECTOR_LEN = array.length;
|
|
3986
|
+
return ptr;
|
|
3987
|
+
}
|
|
3988
|
+
|
|
3889
3989
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
3890
3990
|
if (realloc === undefined) {
|
|
3891
3991
|
const buf = cachedTextEncoder.encode(arg);
|
package/ms_toollib_bg.wasm
CHANGED
|
Binary file
|