lebai_sdk 0.2.17 → 0.2.18

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/lebai_sdk.d.ts CHANGED
@@ -532,6 +532,10 @@ export class Robot {
532
532
  */
533
533
  estop(): Promise<void>;
534
534
  /**
535
+ * @returns {Promise<void>}
536
+ */
537
+ find_zero(): Promise<void>;
538
+ /**
535
539
  * @param {string} name
536
540
  * @param {string | undefined} [dir]
537
541
  * @returns {Promise<any>}
package/lebai_sdk_bg.js CHANGED
@@ -24,15 +24,6 @@ function takeObject(idx) {
24
24
  return ret;
25
25
  }
26
26
 
27
- function addHeapObject(obj) {
28
- if (heap_next === heap.length) heap.push(heap.length + 1);
29
- const idx = heap_next;
30
- heap_next = heap[idx];
31
-
32
- heap[idx] = obj;
33
- return idx;
34
- }
35
-
36
27
  let WASM_VECTOR_LEN = 0;
37
28
 
38
29
  let cachedUint8Memory0 = null;
@@ -113,6 +104,15 @@ function getInt32Memory0() {
113
104
  return cachedInt32Memory0;
114
105
  }
115
106
 
107
+ function addHeapObject(obj) {
108
+ if (heap_next === heap.length) heap.push(heap.length + 1);
109
+ const idx = heap_next;
110
+ heap_next = heap[idx];
111
+
112
+ heap[idx] = obj;
113
+ return idx;
114
+ }
115
+
116
116
  const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
117
117
 
118
118
  let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
@@ -237,20 +237,20 @@ function makeMutClosure(arg0, arg1, dtor, f) {
237
237
  CLOSURE_DTORS.register(real, state, state);
238
238
  return real;
239
239
  }
240
- function __wbg_adapter_50(arg0, arg1, arg2) {
241
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0acae28fae4ea96d(arg0, arg1, addHeapObject(arg2));
240
+ function __wbg_adapter_50(arg0, arg1) {
241
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h09682147e99e42fa(arg0, arg1);
242
242
  }
243
243
 
244
- function __wbg_adapter_53(arg0, arg1) {
245
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h17d8ba5655610ca3(arg0, arg1);
244
+ function __wbg_adapter_53(arg0, arg1, arg2) {
245
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc1560985abef3558(arg0, arg1, addHeapObject(arg2));
246
246
  }
247
247
 
248
248
  function __wbg_adapter_60(arg0, arg1, arg2) {
249
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h96d576336492a8f4(arg0, arg1, addHeapObject(arg2));
249
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha2a5ebf3ad001ede(arg0, arg1, addHeapObject(arg2));
250
250
  }
251
251
 
252
252
  function __wbg_adapter_63(arg0, arg1) {
253
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha776d7ed227c2188(arg0, arg1);
253
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hff3d5c3b99b9e466(arg0, arg1);
254
254
  }
255
255
 
256
256
  let cachedUint32Memory0 = null;
@@ -357,8 +357,8 @@ function getArrayU8FromWasm0(ptr, len) {
357
357
  ptr = ptr >>> 0;
358
358
  return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
359
359
  }
360
- function __wbg_adapter_259(arg0, arg1, arg2, arg3) {
361
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h6e41000e25534132(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
360
+ function __wbg_adapter_260(arg0, arg1, arg2, arg3) {
361
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__hafa916ef59b6854a(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
362
362
  }
363
363
 
364
364
  const RobotFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -1234,6 +1234,13 @@ export class Robot {
1234
1234
  return takeObject(ret);
1235
1235
  }
1236
1236
  /**
1237
+ * @returns {Promise<void>}
1238
+ */
1239
+ find_zero() {
1240
+ const ret = wasm.robot_find_zero(this.__wbg_ptr);
1241
+ return takeObject(ret);
1242
+ }
1243
+ /**
1237
1244
  * @param {string} name
1238
1245
  * @param {string | undefined} [dir]
1239
1246
  * @returns {Promise<any>}
@@ -1389,11 +1396,6 @@ export function __wbindgen_object_drop_ref(arg0) {
1389
1396
  takeObject(arg0);
1390
1397
  };
1391
1398
 
1392
- export function __wbindgen_number_new(arg0) {
1393
- const ret = arg0;
1394
- return addHeapObject(ret);
1395
- };
1396
-
1397
1399
  export function __wbindgen_string_get(arg0, arg1) {
1398
1400
  const obj = getObject(arg1);
1399
1401
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -1403,8 +1405,8 @@ export function __wbindgen_string_get(arg0, arg1) {
1403
1405
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
1404
1406
  };
1405
1407
 
1406
- export function __wbg_robot_new(arg0) {
1407
- const ret = Robot.__wrap(arg0);
1408
+ export function __wbindgen_number_new(arg0) {
1409
+ const ret = arg0;
1408
1410
  return addHeapObject(ret);
1409
1411
  };
1410
1412
 
@@ -1413,11 +1415,22 @@ export function __wbindgen_string_new(arg0, arg1) {
1413
1415
  return addHeapObject(ret);
1414
1416
  };
1415
1417
 
1418
+ export function __wbg_robot_new(arg0) {
1419
+ const ret = Robot.__wrap(arg0);
1420
+ return addHeapObject(ret);
1421
+ };
1422
+
1416
1423
  export function __wbg_robotsubscription_new(arg0) {
1417
1424
  const ret = RobotSubscription.__wrap(arg0);
1418
1425
  return addHeapObject(ret);
1419
1426
  };
1420
1427
 
1428
+ export function __wbindgen_boolean_get(arg0) {
1429
+ const v = getObject(arg0);
1430
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
1431
+ return ret;
1432
+ };
1433
+
1421
1434
  export function __wbindgen_number_get(arg0, arg1) {
1422
1435
  const obj = getObject(arg1);
1423
1436
  const ret = typeof(obj) === 'number' ? obj : undefined;
@@ -1425,14 +1438,13 @@ export function __wbindgen_number_get(arg0, arg1) {
1425
1438
  getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
1426
1439
  };
1427
1440
 
1428
- export function __wbindgen_boolean_get(arg0) {
1429
- const v = getObject(arg0);
1430
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
1441
+ export function __wbindgen_as_number(arg0) {
1442
+ const ret = +getObject(arg0);
1431
1443
  return ret;
1432
1444
  };
1433
1445
 
1434
- export function __wbindgen_error_new(arg0, arg1) {
1435
- const ret = new Error(getStringFromWasm0(arg0, arg1));
1446
+ export function __wbindgen_object_clone_ref(arg0) {
1447
+ const ret = getObject(arg0);
1436
1448
  return addHeapObject(ret);
1437
1449
  };
1438
1450
 
@@ -1446,29 +1458,29 @@ export function __wbindgen_cb_drop(arg0) {
1446
1458
  return ret;
1447
1459
  };
1448
1460
 
1449
- export function __wbindgen_as_number(arg0) {
1450
- const ret = +getObject(arg0);
1461
+ export function __wbindgen_is_object(arg0) {
1462
+ const val = getObject(arg0);
1463
+ const ret = typeof(val) === 'object' && val !== null;
1451
1464
  return ret;
1452
1465
  };
1453
1466
 
1454
- export function __wbindgen_object_clone_ref(arg0) {
1455
- const ret = getObject(arg0);
1467
+ export function __wbindgen_error_new(arg0, arg1) {
1468
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
1456
1469
  return addHeapObject(ret);
1457
1470
  };
1458
1471
 
1459
- export function __wbindgen_is_object(arg0) {
1460
- const val = getObject(arg0);
1461
- const ret = typeof(val) === 'object' && val !== null;
1472
+ export function __wbindgen_is_bigint(arg0) {
1473
+ const ret = typeof(getObject(arg0)) === 'bigint';
1462
1474
  return ret;
1463
1475
  };
1464
1476
 
1465
- export function __wbindgen_is_bigint(arg0) {
1466
- const ret = typeof(getObject(arg0)) === 'bigint';
1477
+ export function __wbindgen_in(arg0, arg1) {
1478
+ const ret = getObject(arg0) in getObject(arg1);
1467
1479
  return ret;
1468
1480
  };
1469
1481
 
1470
- export function __wbindgen_bigint_from_u64(arg0) {
1471
- const ret = BigInt.asUintN(64, arg0);
1482
+ export function __wbindgen_bigint_from_i64(arg0) {
1483
+ const ret = arg0;
1472
1484
  return addHeapObject(ret);
1473
1485
  };
1474
1486
 
@@ -1477,13 +1489,8 @@ export function __wbindgen_jsval_eq(arg0, arg1) {
1477
1489
  return ret;
1478
1490
  };
1479
1491
 
1480
- export function __wbindgen_in(arg0, arg1) {
1481
- const ret = getObject(arg0) in getObject(arg1);
1482
- return ret;
1483
- };
1484
-
1485
- export function __wbindgen_bigint_from_i64(arg0) {
1486
- const ret = arg0;
1492
+ export function __wbindgen_bigint_from_u64(arg0) {
1493
+ const ret = BigInt.asUintN(64, arg0);
1487
1494
  return addHeapObject(ret);
1488
1495
  };
1489
1496
 
@@ -1497,6 +1504,11 @@ export function __wbindgen_is_string(arg0) {
1497
1504
  return ret;
1498
1505
  };
1499
1506
 
1507
+ export function __wbg_data_bbdd2d77ab2f7e78(arg0) {
1508
+ const ret = getObject(arg0).data;
1509
+ return addHeapObject(ret);
1510
+ };
1511
+
1500
1512
  export function __wbg_wasClean_06aba8a282b21973(arg0) {
1501
1513
  const ret = getObject(arg0).wasClean;
1502
1514
  return ret;
@@ -1537,11 +1549,6 @@ export function __wbg_removeEventListener_acfc154b998d806b() { return handleErro
1537
1549
  getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
1538
1550
  }, arguments) };
1539
1551
 
1540
- export function __wbg_data_bbdd2d77ab2f7e78(arg0) {
1541
- const ret = getObject(arg0).data;
1542
- return addHeapObject(ret);
1543
- };
1544
-
1545
1552
  export function __wbg_readyState_2599ffe07703eeea(arg0) {
1546
1553
  const ret = getObject(arg0).readyState;
1547
1554
  return ret;
@@ -1765,7 +1772,7 @@ export function __wbg_new_70828a4353259d4b(arg0, arg1) {
1765
1772
  const a = state0.a;
1766
1773
  state0.a = 0;
1767
1774
  try {
1768
- return __wbg_adapter_259(a, state0.b, arg0, arg1);
1775
+ return __wbg_adapter_260(a, state0.b, arg0, arg1);
1769
1776
  } finally {
1770
1777
  state0.a = a;
1771
1778
  }
@@ -1846,33 +1853,33 @@ export function __wbindgen_memory() {
1846
1853
  return addHeapObject(ret);
1847
1854
  };
1848
1855
 
1849
- export function __wbindgen_closure_wrapper1869(arg0, arg1, arg2) {
1850
- const ret = makeMutClosure(arg0, arg1, 764, __wbg_adapter_50);
1856
+ export function __wbindgen_closure_wrapper1801(arg0, arg1, arg2) {
1857
+ const ret = makeMutClosure(arg0, arg1, 752, __wbg_adapter_50);
1851
1858
  return addHeapObject(ret);
1852
1859
  };
1853
1860
 
1854
- export function __wbindgen_closure_wrapper1871(arg0, arg1, arg2) {
1855
- const ret = makeMutClosure(arg0, arg1, 764, __wbg_adapter_53);
1861
+ export function __wbindgen_closure_wrapper1803(arg0, arg1, arg2) {
1862
+ const ret = makeMutClosure(arg0, arg1, 752, __wbg_adapter_53);
1856
1863
  return addHeapObject(ret);
1857
1864
  };
1858
1865
 
1859
- export function __wbindgen_closure_wrapper1873(arg0, arg1, arg2) {
1860
- const ret = makeMutClosure(arg0, arg1, 764, __wbg_adapter_50);
1866
+ export function __wbindgen_closure_wrapper1805(arg0, arg1, arg2) {
1867
+ const ret = makeMutClosure(arg0, arg1, 752, __wbg_adapter_53);
1861
1868
  return addHeapObject(ret);
1862
1869
  };
1863
1870
 
1864
- export function __wbindgen_closure_wrapper1875(arg0, arg1, arg2) {
1865
- const ret = makeMutClosure(arg0, arg1, 764, __wbg_adapter_50);
1871
+ export function __wbindgen_closure_wrapper1807(arg0, arg1, arg2) {
1872
+ const ret = makeMutClosure(arg0, arg1, 752, __wbg_adapter_53);
1866
1873
  return addHeapObject(ret);
1867
1874
  };
1868
1875
 
1869
- export function __wbindgen_closure_wrapper2525(arg0, arg1, arg2) {
1870
- const ret = makeMutClosure(arg0, arg1, 840, __wbg_adapter_60);
1876
+ export function __wbindgen_closure_wrapper2479(arg0, arg1, arg2) {
1877
+ const ret = makeMutClosure(arg0, arg1, 842, __wbg_adapter_60);
1871
1878
  return addHeapObject(ret);
1872
1879
  };
1873
1880
 
1874
- export function __wbindgen_closure_wrapper2566(arg0, arg1, arg2) {
1875
- const ret = makeMutClosure(arg0, arg1, 855, __wbg_adapter_63);
1881
+ export function __wbindgen_closure_wrapper2522(arg0, arg1, arg2) {
1882
+ const ret = makeMutClosure(arg0, arg1, 859, __wbg_adapter_63);
1876
1883
  return addHeapObject(ret);
1877
1884
  };
1878
1885
 
package/lebai_sdk_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "rise0chen<rise0chen@163.com>"
6
6
  ],
7
7
  "description": "lebai_sdk",
8
- "version": "0.2.17",
8
+ "version": "0.2.18",
9
9
  "license": "SEE LICENSE IN LICENSE",
10
10
  "repository": {
11
11
  "type": "git",