ms-toollib 1.3.0 → 1.3.8

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 CHANGED
@@ -4,7 +4,7 @@
4
4
  * @param {string} board_json
5
5
  * @returns {number}
6
6
  */
7
- export function cal3BV(board_json: string): number;
7
+ export function cal_bbbv(board_json: string): number;
8
8
  /**
9
9
  * @param {string} board_json
10
10
  * @returns {number}
@@ -59,8 +59,9 @@ export class AvfVideo {
59
59
  /**
60
60
  * @param {Uint8Array} data
61
61
  * @param {string} file_name
62
+ * @returns {AvfVideo}
62
63
  */
63
- constructor(data: Uint8Array, file_name: string);
64
+ static new(data: Uint8Array, file_name: string): AvfVideo;
64
65
  /**
65
66
  */
66
67
  parse_video(): void;
@@ -279,9 +280,6 @@ export class AvfVideo {
279
280
  */
280
281
  readonly get_thrp: number;
281
282
  /**
282
- */
283
- readonly get_time: number;
284
- /**
285
283
  */
286
284
  readonly get_uniqueness_designator: Uint8Array;
287
285
  /**
package/ms_toollib_bg.js CHANGED
@@ -134,10 +134,10 @@ function getArrayU8FromWasm0(ptr, len) {
134
134
  * @param {string} board_json
135
135
  * @returns {number}
136
136
  */
137
- export function cal3BV(board_json) {
137
+ export function cal_bbbv(board_json) {
138
138
  const ptr0 = passStringToWasm0(board_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
139
139
  const len0 = WASM_VECTOR_LEN;
140
- const ret = wasm.cal3BV(ptr0, len0);
140
+ const ret = wasm.cal_bbbv(ptr0, len0);
141
141
  return ret;
142
142
  }
143
143
 
@@ -274,7 +274,6 @@ export class AvfVideo {
274
274
  toJSON() {
275
275
  return {
276
276
  get_raw_data: this.get_raw_data,
277
- get_time: this.get_time,
278
277
  get_software: this.get_software,
279
278
  get_row: this.get_row,
280
279
  get_column: this.get_column,
@@ -356,8 +355,9 @@ export class AvfVideo {
356
355
  /**
357
356
  * @param {Uint8Array} data
358
357
  * @param {string} file_name
358
+ * @returns {AvfVideo}
359
359
  */
360
- constructor(data, file_name) {
360
+ static new(data, file_name) {
361
361
  const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
362
362
  const len0 = WASM_VECTOR_LEN;
363
363
  const ptr1 = passStringToWasm0(file_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -392,13 +392,6 @@ export class AvfVideo {
392
392
  }
393
393
  }
394
394
  /**
395
- * @returns {number}
396
- */
397
- get get_time() {
398
- const ret = wasm.avfvideo_get_time(this.__wbg_ptr);
399
- return ret;
400
- }
401
- /**
402
395
  * @returns {Uint8Array}
403
396
  */
404
397
  get get_software() {
@@ -433,7 +426,7 @@ export class AvfVideo {
433
426
  */
434
427
  get get_level() {
435
428
  const ret = wasm.avfvideo_get_level(this.__wbg_ptr);
436
- return ret >>> 0;
429
+ return ret;
437
430
  }
438
431
  /**
439
432
  * @returns {number}
@@ -866,7 +859,7 @@ export class AvfVideo {
866
859
  */
867
860
  events_x(index) {
868
861
  const ret = wasm.avfvideo_events_x(this.__wbg_ptr, index);
869
- return ret >>> 0;
862
+ return ret;
870
863
  }
871
864
  /**
872
865
  * @param {number} index
@@ -874,7 +867,7 @@ export class AvfVideo {
874
867
  */
875
868
  events_y(index) {
876
869
  const ret = wasm.avfvideo_events_y(this.__wbg_ptr, index);
877
- return ret >>> 0;
870
+ return ret;
878
871
  }
879
872
  /**
880
873
  * @param {number} index
@@ -882,7 +875,7 @@ export class AvfVideo {
882
875
  */
883
876
  events_useful_level(index) {
884
877
  const ret = wasm.avfvideo_events_useful_level(this.__wbg_ptr, index);
885
- return ret >>> 0;
878
+ return ret;
886
879
  }
887
880
  /**
888
881
  * @param {number} index
@@ -1237,6 +1230,35 @@ export class MinesweeperBoard {
1237
1230
  }
1238
1231
  }
1239
1232
 
1233
+ export function __wbg_new_abda76e883ba8a5f() {
1234
+ const ret = new Error();
1235
+ return addHeapObject(ret);
1236
+ };
1237
+
1238
+ export function __wbg_stack_658279fe44541cf6(arg0, arg1) {
1239
+ const ret = getObject(arg1).stack;
1240
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1241
+ const len1 = WASM_VECTOR_LEN;
1242
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
1243
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
1244
+ };
1245
+
1246
+ export function __wbg_error_f851667af71bcfc6(arg0, arg1) {
1247
+ let deferred0_0;
1248
+ let deferred0_1;
1249
+ try {
1250
+ deferred0_0 = arg0;
1251
+ deferred0_1 = arg1;
1252
+ console.error(getStringFromWasm0(arg0, arg1));
1253
+ } finally {
1254
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1255
+ }
1256
+ };
1257
+
1258
+ export function __wbindgen_object_drop_ref(arg0) {
1259
+ takeObject(arg0);
1260
+ };
1261
+
1240
1262
  export function __wbg_crypto_c48a774b022d20ac(arg0) {
1241
1263
  const ret = getObject(arg0).crypto;
1242
1264
  return addHeapObject(ret);
@@ -1258,10 +1280,6 @@ export function __wbg_versions_e2e78e134e3e5d01(arg0) {
1258
1280
  return addHeapObject(ret);
1259
1281
  };
1260
1282
 
1261
- export function __wbindgen_object_drop_ref(arg0) {
1262
- takeObject(arg0);
1263
- };
1264
-
1265
1283
  export function __wbg_node_1cd7a5d853dbea79(arg0) {
1266
1284
  const ret = getObject(arg0).node;
1267
1285
  return addHeapObject(ret);
Binary file
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "collaborators": [
4
4
  "eee555 <50390200+eee555@users.noreply.github.com>"
5
5
  ],
6
- "version": "1.3.0",
6
+ "version": "1.3.8",
7
7
  "files": [
8
8
  "ms_toollib_bg.wasm",
9
9
  "ms_toollib.js",