lebai_sdk 0.2.14 → 0.2.16
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 +9 -3
- package/lebai_sdk_bg.js +85 -76
- package/lebai_sdk_bg.wasm +0 -0
- package/package.json +1 -1
package/lebai_sdk.d.ts
CHANGED
@@ -164,18 +164,24 @@ export class Robot {
|
|
164
164
|
/**
|
165
165
|
* @param {any} p
|
166
166
|
* @param {any} v
|
167
|
+
* @param {any} a
|
167
168
|
* @param {number} t
|
168
169
|
* @returns {Promise<void>}
|
169
170
|
*/
|
170
|
-
|
171
|
+
move_pvat(p: any, v: any, a: any, t: number): Promise<void>;
|
171
172
|
/**
|
172
173
|
* @param {any} p
|
173
174
|
* @param {any} v
|
174
|
-
* @param {any} a
|
175
175
|
* @param {number} t
|
176
176
|
* @returns {Promise<void>}
|
177
177
|
*/
|
178
|
-
|
178
|
+
move_pvt(p: any, v: any, t: number): Promise<void>;
|
179
|
+
/**
|
180
|
+
* @param {any} p
|
181
|
+
* @param {number} t
|
182
|
+
* @returns {Promise<void>}
|
183
|
+
*/
|
184
|
+
move_pt(p: any, t: number): Promise<void>;
|
179
185
|
/**
|
180
186
|
* @param {string} name
|
181
187
|
* @param {string | undefined} [dir]
|
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 });
|
@@ -238,19 +238,19 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
238
238
|
return real;
|
239
239
|
}
|
240
240
|
function __wbg_adapter_50(arg0, arg1, arg2) {
|
241
|
-
wasm.
|
241
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6121ef333731fb26(arg0, arg1, addHeapObject(arg2));
|
242
242
|
}
|
243
243
|
|
244
|
-
function
|
245
|
-
wasm.
|
244
|
+
function __wbg_adapter_57(arg0, arg1) {
|
245
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he0c0364d6d20296d(arg0, arg1);
|
246
246
|
}
|
247
247
|
|
248
248
|
function __wbg_adapter_60(arg0, arg1, arg2) {
|
249
|
-
wasm.
|
249
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hbc486438ec3cc4a1(arg0, arg1, addHeapObject(arg2));
|
250
250
|
}
|
251
251
|
|
252
252
|
function __wbg_adapter_63(arg0, arg1) {
|
253
|
-
wasm.
|
253
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h3e2b5989697e424d(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
|
361
|
-
wasm.
|
360
|
+
function __wbg_adapter_259(arg0, arg1, arg2, arg3) {
|
361
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h7d0b3c93ffe76285(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
362
362
|
}
|
363
363
|
|
364
364
|
const RobotFinalization = (typeof FinalizationRegistry === 'undefined')
|
@@ -609,6 +609,17 @@ export class Robot {
|
|
609
609
|
/**
|
610
610
|
* @param {any} p
|
611
611
|
* @param {any} v
|
612
|
+
* @param {any} a
|
613
|
+
* @param {number} t
|
614
|
+
* @returns {Promise<void>}
|
615
|
+
*/
|
616
|
+
move_pvat(p, v, a, t) {
|
617
|
+
const ret = wasm.robot_move_pvat(this.__wbg_ptr, addHeapObject(p), addHeapObject(v), addHeapObject(a), t);
|
618
|
+
return takeObject(ret);
|
619
|
+
}
|
620
|
+
/**
|
621
|
+
* @param {any} p
|
622
|
+
* @param {any} v
|
612
623
|
* @param {number} t
|
613
624
|
* @returns {Promise<void>}
|
614
625
|
*/
|
@@ -618,13 +629,11 @@ export class Robot {
|
|
618
629
|
}
|
619
630
|
/**
|
620
631
|
* @param {any} p
|
621
|
-
* @param {any} v
|
622
|
-
* @param {any} a
|
623
632
|
* @param {number} t
|
624
633
|
* @returns {Promise<void>}
|
625
634
|
*/
|
626
|
-
|
627
|
-
const ret = wasm.
|
635
|
+
move_pt(p, t) {
|
636
|
+
const ret = wasm.robot_move_pt(this.__wbg_ptr, addHeapObject(p), t);
|
628
637
|
return takeObject(ret);
|
629
638
|
}
|
630
639
|
/**
|
@@ -1379,11 +1388,6 @@ export function __wbindgen_object_drop_ref(arg0) {
|
|
1379
1388
|
takeObject(arg0);
|
1380
1389
|
};
|
1381
1390
|
|
1382
|
-
export function __wbindgen_number_new(arg0) {
|
1383
|
-
const ret = arg0;
|
1384
|
-
return addHeapObject(ret);
|
1385
|
-
};
|
1386
|
-
|
1387
1391
|
export function __wbindgen_string_get(arg0, arg1) {
|
1388
1392
|
const obj = getObject(arg1);
|
1389
1393
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
@@ -1393,29 +1397,42 @@ export function __wbindgen_string_get(arg0, arg1) {
|
|
1393
1397
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
1394
1398
|
};
|
1395
1399
|
|
1400
|
+
export function __wbindgen_number_new(arg0) {
|
1401
|
+
const ret = arg0;
|
1402
|
+
return addHeapObject(ret);
|
1403
|
+
};
|
1404
|
+
|
1396
1405
|
export function __wbindgen_string_new(arg0, arg1) {
|
1397
1406
|
const ret = getStringFromWasm0(arg0, arg1);
|
1398
1407
|
return addHeapObject(ret);
|
1399
1408
|
};
|
1400
1409
|
|
1410
|
+
export function __wbg_robotsubscription_new(arg0) {
|
1411
|
+
const ret = RobotSubscription.__wrap(arg0);
|
1412
|
+
return addHeapObject(ret);
|
1413
|
+
};
|
1414
|
+
|
1401
1415
|
export function __wbg_robot_new(arg0) {
|
1402
1416
|
const ret = Robot.__wrap(arg0);
|
1403
1417
|
return addHeapObject(ret);
|
1404
1418
|
};
|
1405
1419
|
|
1406
|
-
export function
|
1407
|
-
const ret =
|
1420
|
+
export function __wbindgen_error_new(arg0, arg1) {
|
1421
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
1408
1422
|
return addHeapObject(ret);
|
1409
1423
|
};
|
1410
1424
|
|
1411
|
-
export function
|
1412
|
-
const
|
1413
|
-
|
1425
|
+
export function __wbindgen_number_get(arg0, arg1) {
|
1426
|
+
const obj = getObject(arg1);
|
1427
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
1428
|
+
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
1429
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
1414
1430
|
};
|
1415
1431
|
|
1416
|
-
export function
|
1417
|
-
const
|
1418
|
-
|
1432
|
+
export function __wbindgen_boolean_get(arg0) {
|
1433
|
+
const v = getObject(arg0);
|
1434
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
1435
|
+
return ret;
|
1419
1436
|
};
|
1420
1437
|
|
1421
1438
|
export function __wbindgen_is_object(arg0) {
|
@@ -1434,29 +1451,13 @@ export function __wbindgen_cb_drop(arg0) {
|
|
1434
1451
|
return ret;
|
1435
1452
|
};
|
1436
1453
|
|
1437
|
-
export function __wbindgen_error_new(arg0, arg1) {
|
1438
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
1439
|
-
return addHeapObject(ret);
|
1440
|
-
};
|
1441
|
-
|
1442
1454
|
export function __wbindgen_is_bigint(arg0) {
|
1443
1455
|
const ret = typeof(getObject(arg0)) === 'bigint';
|
1444
1456
|
return ret;
|
1445
1457
|
};
|
1446
1458
|
|
1447
|
-
export function
|
1448
|
-
const ret =
|
1449
|
-
return addHeapObject(ret);
|
1450
|
-
};
|
1451
|
-
|
1452
|
-
export function __wbindgen_jsval_eq(arg0, arg1) {
|
1453
|
-
const ret = getObject(arg0) === getObject(arg1);
|
1454
|
-
return ret;
|
1455
|
-
};
|
1456
|
-
|
1457
|
-
export function __wbindgen_boolean_get(arg0) {
|
1458
|
-
const v = getObject(arg0);
|
1459
|
-
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
1459
|
+
export function __wbindgen_in(arg0, arg1) {
|
1460
|
+
const ret = getObject(arg0) in getObject(arg1);
|
1460
1461
|
return ret;
|
1461
1462
|
};
|
1462
1463
|
|
@@ -1465,16 +1466,14 @@ export function __wbindgen_bigint_from_i64(arg0) {
|
|
1465
1466
|
return addHeapObject(ret);
|
1466
1467
|
};
|
1467
1468
|
|
1468
|
-
export function
|
1469
|
-
const
|
1470
|
-
|
1471
|
-
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
1472
|
-
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
1469
|
+
export function __wbindgen_jsval_eq(arg0, arg1) {
|
1470
|
+
const ret = getObject(arg0) === getObject(arg1);
|
1471
|
+
return ret;
|
1473
1472
|
};
|
1474
1473
|
|
1475
|
-
export function
|
1476
|
-
const ret =
|
1477
|
-
return ret;
|
1474
|
+
export function __wbindgen_bigint_from_u64(arg0) {
|
1475
|
+
const ret = BigInt.asUintN(64, arg0);
|
1476
|
+
return addHeapObject(ret);
|
1478
1477
|
};
|
1479
1478
|
|
1480
1479
|
export function __wbindgen_is_undefined(arg0) {
|
@@ -1482,16 +1481,21 @@ export function __wbindgen_is_undefined(arg0) {
|
|
1482
1481
|
return ret;
|
1483
1482
|
};
|
1484
1483
|
|
1485
|
-
export function
|
1486
|
-
const ret =
|
1484
|
+
export function __wbindgen_as_number(arg0) {
|
1485
|
+
const ret = +getObject(arg0);
|
1487
1486
|
return ret;
|
1488
1487
|
};
|
1489
1488
|
|
1490
|
-
export function
|
1491
|
-
const ret = getObject(arg0)
|
1489
|
+
export function __wbindgen_object_clone_ref(arg0) {
|
1490
|
+
const ret = getObject(arg0);
|
1492
1491
|
return addHeapObject(ret);
|
1493
1492
|
};
|
1494
1493
|
|
1494
|
+
export function __wbindgen_is_string(arg0) {
|
1495
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
1496
|
+
return ret;
|
1497
|
+
};
|
1498
|
+
|
1495
1499
|
export function __wbg_wasClean_06aba8a282b21973(arg0) {
|
1496
1500
|
const ret = getObject(arg0).wasClean;
|
1497
1501
|
return ret;
|
@@ -1532,6 +1536,11 @@ export function __wbg_removeEventListener_acfc154b998d806b() { return handleErro
|
|
1532
1536
|
getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
1533
1537
|
}, arguments) };
|
1534
1538
|
|
1539
|
+
export function __wbg_data_bbdd2d77ab2f7e78(arg0) {
|
1540
|
+
const ret = getObject(arg0).data;
|
1541
|
+
return addHeapObject(ret);
|
1542
|
+
};
|
1543
|
+
|
1535
1544
|
export function __wbg_readyState_2599ffe07703eeea(arg0) {
|
1536
1545
|
const ret = getObject(arg0).readyState;
|
1537
1546
|
return ret;
|
@@ -1755,7 +1764,7 @@ export function __wbg_new_70828a4353259d4b(arg0, arg1) {
|
|
1755
1764
|
const a = state0.a;
|
1756
1765
|
state0.a = 0;
|
1757
1766
|
try {
|
1758
|
-
return
|
1767
|
+
return __wbg_adapter_259(a, state0.b, arg0, arg1);
|
1759
1768
|
} finally {
|
1760
1769
|
state0.a = a;
|
1761
1770
|
}
|
@@ -1836,33 +1845,33 @@ export function __wbindgen_memory() {
|
|
1836
1845
|
return addHeapObject(ret);
|
1837
1846
|
};
|
1838
1847
|
|
1839
|
-
export function
|
1840
|
-
const ret = makeMutClosure(arg0, arg1,
|
1848
|
+
export function __wbindgen_closure_wrapper1910(arg0, arg1, arg2) {
|
1849
|
+
const ret = makeMutClosure(arg0, arg1, 789, __wbg_adapter_50);
|
1841
1850
|
return addHeapObject(ret);
|
1842
1851
|
};
|
1843
1852
|
|
1844
|
-
export function
|
1845
|
-
const ret = makeMutClosure(arg0, arg1,
|
1853
|
+
export function __wbindgen_closure_wrapper1912(arg0, arg1, arg2) {
|
1854
|
+
const ret = makeMutClosure(arg0, arg1, 789, __wbg_adapter_50);
|
1846
1855
|
return addHeapObject(ret);
|
1847
1856
|
};
|
1848
1857
|
|
1849
|
-
export function
|
1850
|
-
const ret = makeMutClosure(arg0, arg1,
|
1858
|
+
export function __wbindgen_closure_wrapper1914(arg0, arg1, arg2) {
|
1859
|
+
const ret = makeMutClosure(arg0, arg1, 789, __wbg_adapter_50);
|
1851
1860
|
return addHeapObject(ret);
|
1852
1861
|
};
|
1853
1862
|
|
1854
|
-
export function
|
1855
|
-
const ret = makeMutClosure(arg0, arg1,
|
1863
|
+
export function __wbindgen_closure_wrapper1916(arg0, arg1, arg2) {
|
1864
|
+
const ret = makeMutClosure(arg0, arg1, 789, __wbg_adapter_57);
|
1856
1865
|
return addHeapObject(ret);
|
1857
1866
|
};
|
1858
1867
|
|
1859
|
-
export function
|
1860
|
-
const ret = makeMutClosure(arg0, arg1,
|
1868
|
+
export function __wbindgen_closure_wrapper2595(arg0, arg1, arg2) {
|
1869
|
+
const ret = makeMutClosure(arg0, arg1, 886, __wbg_adapter_60);
|
1861
1870
|
return addHeapObject(ret);
|
1862
1871
|
};
|
1863
1872
|
|
1864
|
-
export function
|
1865
|
-
const ret = makeMutClosure(arg0, arg1,
|
1873
|
+
export function __wbindgen_closure_wrapper2626(arg0, arg1, arg2) {
|
1874
|
+
const ret = makeMutClosure(arg0, arg1, 899, __wbg_adapter_63);
|
1866
1875
|
return addHeapObject(ret);
|
1867
1876
|
};
|
1868
1877
|
|
package/lebai_sdk_bg.wasm
CHANGED
Binary file
|