@wandelbots/wandelbots-js-react-components 2.26.0-pr.feature-update-to-react-19.361.49c57ce → 2.26.0-pr.feature-update-to-react-19.361.c3fd41e
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/dist/components/robots/RobotAnimator.d.ts.map +1 -1
- package/dist/components/utils/interpolation.d.ts +33 -34
- package/dist/components/utils/interpolation.d.ts.map +1 -1
- package/dist/index.cjs +12 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +242 -262
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/robots/RobotAnimator.tsx +8 -4
- package/src/components/utils/interpolation.test.ts +277 -47
- package/src/components/utils/interpolation.ts +113 -115
package/dist/index.js
CHANGED
|
@@ -5,10 +5,10 @@ import * as B from "react";
|
|
|
5
5
|
import Wr, { forwardRef as Re, useEffect as St, useState as Ht, useRef as yt, useCallback as Jl, Suspense as ql, lazy as qc } from "react";
|
|
6
6
|
import { Environment as Hc, Lightformer as kt, Line as Hl, useGLTF as Wc } from "@react-three/drei";
|
|
7
7
|
import { useThree as Qc, useFrame as Kc } from "@react-three/fiber";
|
|
8
|
-
import * as
|
|
8
|
+
import * as xe from "three";
|
|
9
9
|
import { Vector3 as Ha, Matrix4 as Er, Quaternion as Yc } from "three";
|
|
10
10
|
import { ConvexGeometry as Xc } from "three-stdlib";
|
|
11
|
-
import { useTheme as qe, IconButton as Wa, Typography as Ue, Slider as Zc, Stack as
|
|
11
|
+
import { useTheme as qe, IconButton as Wa, Typography as Ue, Slider as Zc, Stack as ye, CircularProgress as ed, capitalize as td, styled as jn, InputLabel as rd, Select as ad, FormControl as od, MenuItem as Mr, Box as Xn, ToggleButtonGroup as nd, Divider as br, ToggleButton as Zn, Tabs as sd, Tab as ld, Tooltip as id, Dialog as cd, DialogTitle as dd, DialogContent as pd, DialogActions as ud, Button as es, SvgIcon as hd, Popover as md, Fab as fd, createTheme as yd, rgbToHex as gd } from "@mui/material";
|
|
12
12
|
import { observer as Ie, useLocalObservable as so } from "mobx-react-lite";
|
|
13
13
|
import { I18nextProvider as bd, useTranslation as dt, Trans as st } from "react-i18next";
|
|
14
14
|
import Sd from "i18next";
|
|
@@ -205,24 +205,24 @@ function Md() {
|
|
|
205
205
|
}), Object.freeze && (Object.freeze($.props), Object.freeze($)), $;
|
|
206
206
|
}
|
|
207
207
|
function d($, Q, oe, we, He, Ee, $t, Ct) {
|
|
208
|
-
var
|
|
209
|
-
if (
|
|
208
|
+
var me = Q.children;
|
|
209
|
+
if (me !== void 0)
|
|
210
210
|
if (we)
|
|
211
|
-
if (J(
|
|
212
|
-
for (we = 0; we <
|
|
213
|
-
p(
|
|
214
|
-
Object.freeze && Object.freeze(
|
|
211
|
+
if (J(me)) {
|
|
212
|
+
for (we = 0; we < me.length; we++)
|
|
213
|
+
p(me[we]);
|
|
214
|
+
Object.freeze && Object.freeze(me);
|
|
215
215
|
} else
|
|
216
216
|
console.error(
|
|
217
217
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
218
218
|
);
|
|
219
|
-
else p(
|
|
219
|
+
else p(me);
|
|
220
220
|
if (L.call(Q, "key")) {
|
|
221
|
-
|
|
221
|
+
me = e($);
|
|
222
222
|
var Le = Object.keys(Q).filter(function(ut) {
|
|
223
223
|
return ut !== "key";
|
|
224
224
|
});
|
|
225
|
-
we = 0 < Le.length ? "{key: someKey, " + Le.join(": ..., ") + ": ...}" : "{key: someKey}",
|
|
225
|
+
we = 0 < Le.length ? "{key: someKey, " + Le.join(": ..., ") + ": ...}" : "{key: someKey}", ge[me + we] || (Le = 0 < Le.length ? "{" + Le.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
226
226
|
`A props object containing a "key" prop is being spread into JSX:
|
|
227
227
|
let props = %s;
|
|
228
228
|
<%s {...props} />
|
|
@@ -230,22 +230,22 @@ React keys must be passed directly to JSX without using spread:
|
|
|
230
230
|
let props = %s;
|
|
231
231
|
<%s key={someKey} {...props} />`,
|
|
232
232
|
we,
|
|
233
|
-
|
|
233
|
+
me,
|
|
234
234
|
Le,
|
|
235
|
-
|
|
236
|
-
),
|
|
235
|
+
me
|
|
236
|
+
), ge[me + we] = !0);
|
|
237
237
|
}
|
|
238
|
-
if (
|
|
238
|
+
if (me = null, oe !== void 0 && (r(oe), me = "" + oe), s(Q) && (r(Q.key), me = "" + Q.key), "key" in Q) {
|
|
239
239
|
oe = {};
|
|
240
240
|
for (var Xe in Q)
|
|
241
241
|
Xe !== "key" && (oe[Xe] = Q[Xe]);
|
|
242
242
|
} else oe = Q;
|
|
243
|
-
return
|
|
243
|
+
return me && l(
|
|
244
244
|
oe,
|
|
245
245
|
typeof $ == "function" ? $.displayName || $.name || "Unknown" : $
|
|
246
246
|
), c(
|
|
247
247
|
$,
|
|
248
|
-
|
|
248
|
+
me,
|
|
249
249
|
Ee,
|
|
250
250
|
He,
|
|
251
251
|
o(),
|
|
@@ -265,10 +265,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
265
265
|
return $();
|
|
266
266
|
}
|
|
267
267
|
};
|
|
268
|
-
var re, Z = {},
|
|
268
|
+
var re, Z = {}, ve = u["react-stack-bottom-frame"].bind(
|
|
269
269
|
u,
|
|
270
270
|
n
|
|
271
|
-
)(), K = q(a(n)),
|
|
271
|
+
)(), K = q(a(n)), ge = {};
|
|
272
272
|
$r.Fragment = m, $r.jsx = function($, Q, oe, we, He) {
|
|
273
273
|
var Ee = 1e4 > M.recentlyCreatedOwnerStacks++;
|
|
274
274
|
return d(
|
|
@@ -278,7 +278,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
278
278
|
!1,
|
|
279
279
|
we,
|
|
280
280
|
He,
|
|
281
|
-
Ee ? Error("react-stack-top-frame") :
|
|
281
|
+
Ee ? Error("react-stack-top-frame") : ve,
|
|
282
282
|
Ee ? q(a($)) : K
|
|
283
283
|
);
|
|
284
284
|
}, $r.jsxs = function($, Q, oe, we, He) {
|
|
@@ -290,7 +290,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
290
290
|
!0,
|
|
291
291
|
we,
|
|
292
292
|
He,
|
|
293
|
-
Ee ? Error("react-stack-top-frame") :
|
|
293
|
+
Ee ? Error("react-stack-top-frame") : ve,
|
|
294
294
|
Ee ? q(a($)) : K
|
|
295
295
|
);
|
|
296
296
|
};
|
|
@@ -378,9 +378,9 @@ function $d({ positions: e = [2, 0, 2, 0, 2, 0, 2, 0] }) {
|
|
|
378
378
|
function Ud(e) {
|
|
379
379
|
if (e.length < 3)
|
|
380
380
|
return console.log("Not enough vertices to define a plane"), { isCoplanar: !1 };
|
|
381
|
-
const t = new
|
|
381
|
+
const t = new xe.Vector3(e[0].x, e[0].y, e[0].z), r = new xe.Vector3(e[1].x, e[1].y, e[1].z), a = new xe.Vector3(e[2].x, e[2].y, e[2].z), o = new xe.Vector3().subVectors(r, t), n = new xe.Vector3().subVectors(a, t), s = new xe.Vector3().crossVectors(o, n).normalize();
|
|
382
382
|
for (let l = 3; l < e.length; l++) {
|
|
383
|
-
const i = new
|
|
383
|
+
const i = new xe.Vector3(e[l].x, e[l].y, e[l].z), c = new xe.Vector3().subVectors(i, t), d = s.dot(c);
|
|
384
384
|
if (Math.abs(d) > 1e-6)
|
|
385
385
|
return console.log("Vertices are not on the same plane"), { isCoplanar: !1 };
|
|
386
386
|
}
|
|
@@ -395,10 +395,10 @@ function kC({
|
|
|
395
395
|
return r.geometry && (r.geometry.compound ? o = r.geometry.compound.child_geometries : r.geometry.convex_hull && (o = [r.geometry])), o.map((n, s) => {
|
|
396
396
|
if (!n.convex_hull) return null;
|
|
397
397
|
const l = n.convex_hull.vertices.map(
|
|
398
|
-
(d) => new
|
|
398
|
+
(d) => new xe.Vector3(d.x / 1e3, d.y / 1e3, d.z / 1e3)
|
|
399
399
|
), i = Ud(l);
|
|
400
400
|
if (i.isCoplanar && i.normal) {
|
|
401
|
-
const p = new
|
|
401
|
+
const p = new xe.Vector3().addVectors(
|
|
402
402
|
l[0],
|
|
403
403
|
i.normal.multiplyScalar(1e-4)
|
|
404
404
|
);
|
|
@@ -432,7 +432,7 @@ function BC({
|
|
|
432
432
|
...t
|
|
433
433
|
}) {
|
|
434
434
|
var a;
|
|
435
|
-
const r = ((a = e.trajectory) == null ? void 0 : a.map((o) => o.tcp_pose ? new
|
|
435
|
+
const r = ((a = e.trajectory) == null ? void 0 : a.map((o) => o.tcp_pose ? new xe.Vector3(
|
|
436
436
|
o.tcp_pose.position.x / 1e3,
|
|
437
437
|
o.tcp_pose.position.z / 1e3,
|
|
438
438
|
-o.tcp_pose.position.y / 1e3
|
|
@@ -1140,16 +1140,16 @@ function Zl(e, t) {
|
|
|
1140
1140
|
const r = uo(e.theme);
|
|
1141
1141
|
return Object.keys(e).map((a) => pp(e, t, a, r)).reduce(Qr, {});
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1143
|
+
function be(e) {
|
|
1144
1144
|
return Zl(e, co);
|
|
1145
1145
|
}
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
function
|
|
1146
|
+
be.propTypes = process.env.NODE_ENV !== "production" ? co.reduce((e, t) => (e[t] = jt, e), {}) : {};
|
|
1147
|
+
be.filterProps = co;
|
|
1148
|
+
function Se(e) {
|
|
1149
1149
|
return Zl(e, po);
|
|
1150
1150
|
}
|
|
1151
|
-
|
|
1152
|
-
|
|
1151
|
+
Se.propTypes = process.env.NODE_ENV !== "production" ? po.reduce((e, t) => (e[t] = jt, e), {}) : {};
|
|
1152
|
+
Se.filterProps = po;
|
|
1153
1153
|
process.env.NODE_ENV !== "production" && cp.reduce((e, t) => (e[t] = jt, e), {});
|
|
1154
1154
|
function ei(e = 8, t = uo({
|
|
1155
1155
|
spacing: e
|
|
@@ -1384,124 +1384,124 @@ const ia = {
|
|
|
1384
1384
|
},
|
|
1385
1385
|
// spacing
|
|
1386
1386
|
p: {
|
|
1387
|
-
style:
|
|
1387
|
+
style: Se
|
|
1388
1388
|
},
|
|
1389
1389
|
pt: {
|
|
1390
|
-
style:
|
|
1390
|
+
style: Se
|
|
1391
1391
|
},
|
|
1392
1392
|
pr: {
|
|
1393
|
-
style:
|
|
1393
|
+
style: Se
|
|
1394
1394
|
},
|
|
1395
1395
|
pb: {
|
|
1396
|
-
style:
|
|
1396
|
+
style: Se
|
|
1397
1397
|
},
|
|
1398
1398
|
pl: {
|
|
1399
|
-
style:
|
|
1399
|
+
style: Se
|
|
1400
1400
|
},
|
|
1401
1401
|
px: {
|
|
1402
|
-
style:
|
|
1402
|
+
style: Se
|
|
1403
1403
|
},
|
|
1404
1404
|
py: {
|
|
1405
|
-
style:
|
|
1405
|
+
style: Se
|
|
1406
1406
|
},
|
|
1407
1407
|
padding: {
|
|
1408
|
-
style:
|
|
1408
|
+
style: Se
|
|
1409
1409
|
},
|
|
1410
1410
|
paddingTop: {
|
|
1411
|
-
style:
|
|
1411
|
+
style: Se
|
|
1412
1412
|
},
|
|
1413
1413
|
paddingRight: {
|
|
1414
|
-
style:
|
|
1414
|
+
style: Se
|
|
1415
1415
|
},
|
|
1416
1416
|
paddingBottom: {
|
|
1417
|
-
style:
|
|
1417
|
+
style: Se
|
|
1418
1418
|
},
|
|
1419
1419
|
paddingLeft: {
|
|
1420
|
-
style:
|
|
1420
|
+
style: Se
|
|
1421
1421
|
},
|
|
1422
1422
|
paddingX: {
|
|
1423
|
-
style:
|
|
1423
|
+
style: Se
|
|
1424
1424
|
},
|
|
1425
1425
|
paddingY: {
|
|
1426
|
-
style:
|
|
1426
|
+
style: Se
|
|
1427
1427
|
},
|
|
1428
1428
|
paddingInline: {
|
|
1429
|
-
style:
|
|
1429
|
+
style: Se
|
|
1430
1430
|
},
|
|
1431
1431
|
paddingInlineStart: {
|
|
1432
|
-
style:
|
|
1432
|
+
style: Se
|
|
1433
1433
|
},
|
|
1434
1434
|
paddingInlineEnd: {
|
|
1435
|
-
style:
|
|
1435
|
+
style: Se
|
|
1436
1436
|
},
|
|
1437
1437
|
paddingBlock: {
|
|
1438
|
-
style:
|
|
1438
|
+
style: Se
|
|
1439
1439
|
},
|
|
1440
1440
|
paddingBlockStart: {
|
|
1441
|
-
style:
|
|
1441
|
+
style: Se
|
|
1442
1442
|
},
|
|
1443
1443
|
paddingBlockEnd: {
|
|
1444
|
-
style:
|
|
1444
|
+
style: Se
|
|
1445
1445
|
},
|
|
1446
1446
|
m: {
|
|
1447
|
-
style:
|
|
1447
|
+
style: be
|
|
1448
1448
|
},
|
|
1449
1449
|
mt: {
|
|
1450
|
-
style:
|
|
1450
|
+
style: be
|
|
1451
1451
|
},
|
|
1452
1452
|
mr: {
|
|
1453
|
-
style:
|
|
1453
|
+
style: be
|
|
1454
1454
|
},
|
|
1455
1455
|
mb: {
|
|
1456
|
-
style:
|
|
1456
|
+
style: be
|
|
1457
1457
|
},
|
|
1458
1458
|
ml: {
|
|
1459
|
-
style:
|
|
1459
|
+
style: be
|
|
1460
1460
|
},
|
|
1461
1461
|
mx: {
|
|
1462
|
-
style:
|
|
1462
|
+
style: be
|
|
1463
1463
|
},
|
|
1464
1464
|
my: {
|
|
1465
|
-
style:
|
|
1465
|
+
style: be
|
|
1466
1466
|
},
|
|
1467
1467
|
margin: {
|
|
1468
|
-
style:
|
|
1468
|
+
style: be
|
|
1469
1469
|
},
|
|
1470
1470
|
marginTop: {
|
|
1471
|
-
style:
|
|
1471
|
+
style: be
|
|
1472
1472
|
},
|
|
1473
1473
|
marginRight: {
|
|
1474
|
-
style:
|
|
1474
|
+
style: be
|
|
1475
1475
|
},
|
|
1476
1476
|
marginBottom: {
|
|
1477
|
-
style:
|
|
1477
|
+
style: be
|
|
1478
1478
|
},
|
|
1479
1479
|
marginLeft: {
|
|
1480
|
-
style:
|
|
1480
|
+
style: be
|
|
1481
1481
|
},
|
|
1482
1482
|
marginX: {
|
|
1483
|
-
style:
|
|
1483
|
+
style: be
|
|
1484
1484
|
},
|
|
1485
1485
|
marginY: {
|
|
1486
|
-
style:
|
|
1486
|
+
style: be
|
|
1487
1487
|
},
|
|
1488
1488
|
marginInline: {
|
|
1489
|
-
style:
|
|
1489
|
+
style: be
|
|
1490
1490
|
},
|
|
1491
1491
|
marginInlineStart: {
|
|
1492
|
-
style:
|
|
1492
|
+
style: be
|
|
1493
1493
|
},
|
|
1494
1494
|
marginInlineEnd: {
|
|
1495
|
-
style:
|
|
1495
|
+
style: be
|
|
1496
1496
|
},
|
|
1497
1497
|
marginBlock: {
|
|
1498
|
-
style:
|
|
1498
|
+
style: be
|
|
1499
1499
|
},
|
|
1500
1500
|
marginBlockStart: {
|
|
1501
|
-
style:
|
|
1501
|
+
style: be
|
|
1502
1502
|
},
|
|
1503
1503
|
marginBlockEnd: {
|
|
1504
|
-
style:
|
|
1504
|
+
style: be
|
|
1505
1505
|
},
|
|
1506
1506
|
// display
|
|
1507
1507
|
displayPrint: {
|
|
@@ -1970,8 +1970,8 @@ function si(e = {}) {
|
|
|
1970
1970
|
}, N = (...z) => {
|
|
1971
1971
|
const H = [], j = z.map(F), U = [];
|
|
1972
1972
|
if (H.push(n), c && y && U.push(function(L) {
|
|
1973
|
-
var Z,
|
|
1974
|
-
const q = (
|
|
1973
|
+
var Z, ve;
|
|
1974
|
+
const q = (ve = (Z = L.theme.components) == null ? void 0 : Z[c]) == null ? void 0 : ve.styleOverrides;
|
|
1975
1975
|
if (!q)
|
|
1976
1976
|
return null;
|
|
1977
1977
|
const re = {};
|
|
@@ -2923,10 +2923,10 @@ function Gu(e, t) {
|
|
|
2923
2923
|
});
|
|
2924
2924
|
}
|
|
2925
2925
|
const Ju = 0.2, qu = 0.14, Hu = 0.12;
|
|
2926
|
-
function
|
|
2926
|
+
function fe(...e) {
|
|
2927
2927
|
return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Ju})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${qu})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Hu})`].join(",");
|
|
2928
2928
|
}
|
|
2929
|
-
const Wu = ["none",
|
|
2929
|
+
const Wu = ["none", fe(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), fe(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), fe(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), fe(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), fe(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), fe(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), fe(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), fe(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), fe(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), fe(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), fe(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), fe(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), fe(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), fe(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), fe(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), fe(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), fe(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), fe(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), fe(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), fe(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), fe(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), fe(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), fe(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), fe(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], Qu = {
|
|
2930
2930
|
// This is the most common easing curve.
|
|
2931
2931
|
easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
2932
2932
|
// Objects enter the screen at full velocity from off-screen and
|
|
@@ -4178,7 +4178,7 @@ const Zh = xr(
|
|
|
4178
4178
|
disabled: n,
|
|
4179
4179
|
...s
|
|
4180
4180
|
}) => {
|
|
4181
|
-
var F, N, z, H, j, U, k, f, M, L, J, q, re, Z,
|
|
4181
|
+
var F, N, z, H, j, U, k, f, M, L, J, q, re, Z, ve;
|
|
4182
4182
|
const { t: l } = dt(), [i, c] = Ht(), d = qe(), p = {
|
|
4183
4183
|
background: (F = d.palette.backgroundPaperElevation) == null ? void 0 : F[4],
|
|
4184
4184
|
color: (N = d.palette.backgroundPaperElevation) == null ? void 0 : N[11]
|
|
@@ -4206,12 +4206,12 @@ const Zh = xr(
|
|
|
4206
4206
|
function I(K) {
|
|
4207
4207
|
u.stopJogging();
|
|
4208
4208
|
}
|
|
4209
|
-
function D(K,
|
|
4209
|
+
function D(K, ge = 1) {
|
|
4210
4210
|
if (K === void 0 || isNaN(K)) return "";
|
|
4211
4211
|
const $ = l("General.degree.variable", {
|
|
4212
|
-
amount: K.toFixed(
|
|
4212
|
+
amount: K.toFixed(ge)
|
|
4213
4213
|
});
|
|
4214
|
-
return K > 0 &&
|
|
4214
|
+
return K > 0 && ge === 0 ? `+${$}` : $;
|
|
4215
4215
|
}
|
|
4216
4216
|
return /* @__PURE__ */ b.jsxs(
|
|
4217
4217
|
fr,
|
|
@@ -4359,7 +4359,7 @@ const Zh = xr(
|
|
|
4359
4359
|
{
|
|
4360
4360
|
sx: {
|
|
4361
4361
|
pointerEvents: "none",
|
|
4362
|
-
color: (
|
|
4362
|
+
color: (ve = (Z = (re = (q = d.componentsExt) == null ? void 0 : q.JoggingPanel) == null ? void 0 : re.JoggingJoint) == null ? void 0 : Z.Joint) == null ? void 0 : ve.arrowColor
|
|
4363
4363
|
}
|
|
4364
4364
|
}
|
|
4365
4365
|
)
|
|
@@ -4791,11 +4791,11 @@ var Zy = Xy, eg = 9007199254740991;
|
|
|
4791
4791
|
function tg(e) {
|
|
4792
4792
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= eg;
|
|
4793
4793
|
}
|
|
4794
|
-
var Ai = tg, rg = "[object Arguments]", ag = "[object Array]", og = "[object Boolean]", ng = "[object Date]", sg = "[object Error]", lg = "[object Function]", ig = "[object Map]", cg = "[object Number]", dg = "[object Object]", pg = "[object RegExp]", ug = "[object Set]", hg = "[object String]", mg = "[object WeakMap]", fg = "[object ArrayBuffer]", yg = "[object DataView]", gg = "[object Float32Array]", bg = "[object Float64Array]", Sg = "[object Int8Array]", vg = "[object Int16Array]", xg = "[object Int32Array]", Og = "[object Uint8Array]", wg = "[object Uint8ClampedArray]", Cg = "[object Uint16Array]", Vg = "[object Uint32Array]",
|
|
4795
|
-
|
|
4796
|
-
|
|
4794
|
+
var Ai = tg, rg = "[object Arguments]", ag = "[object Array]", og = "[object Boolean]", ng = "[object Date]", sg = "[object Error]", lg = "[object Function]", ig = "[object Map]", cg = "[object Number]", dg = "[object Object]", pg = "[object RegExp]", ug = "[object Set]", hg = "[object String]", mg = "[object WeakMap]", fg = "[object ArrayBuffer]", yg = "[object DataView]", gg = "[object Float32Array]", bg = "[object Float64Array]", Sg = "[object Int8Array]", vg = "[object Int16Array]", xg = "[object Int32Array]", Og = "[object Uint8Array]", wg = "[object Uint8ClampedArray]", Cg = "[object Uint16Array]", Vg = "[object Uint32Array]", de = {};
|
|
4795
|
+
de[gg] = de[bg] = de[Sg] = de[vg] = de[xg] = de[Og] = de[wg] = de[Cg] = de[Vg] = !0;
|
|
4796
|
+
de[rg] = de[ag] = de[fg] = de[og] = de[yg] = de[ng] = de[sg] = de[lg] = de[ig] = de[cg] = de[dg] = de[pg] = de[ug] = de[hg] = de[mg] = !1;
|
|
4797
4797
|
function Pg(e) {
|
|
4798
|
-
return aa(e) && Ai(e.length) && !!
|
|
4798
|
+
return aa(e) && Ai(e.length) && !!de[pa(e)];
|
|
4799
4799
|
}
|
|
4800
4800
|
var Rg = Pg;
|
|
4801
4801
|
function _g(e) {
|
|
@@ -5307,7 +5307,7 @@ var Pb = function() {
|
|
|
5307
5307
|
for (var r of Ks(t))
|
|
5308
5308
|
Mb.call(t, r) && Ys(e, r, t[r]);
|
|
5309
5309
|
return e;
|
|
5310
|
-
}, Sn = (e, t) => Tb(e, Ib(t)),
|
|
5310
|
+
}, Sn = (e, t) => Tb(e, Ib(t)), ue = (e, t, r) => new Promise((a, o) => {
|
|
5311
5311
|
var n = (i) => {
|
|
5312
5312
|
try {
|
|
5313
5313
|
l(r.next(i));
|
|
@@ -5359,7 +5359,7 @@ var Pb = function() {
|
|
|
5359
5359
|
* Returns a promise that resolves once the websocket
|
|
5360
5360
|
* is in the OPEN state. */
|
|
5361
5361
|
opened() {
|
|
5362
|
-
return
|
|
5362
|
+
return ue(this, null, function* () {
|
|
5363
5363
|
return new Promise((e, t) => {
|
|
5364
5364
|
this.readyState === WebSocket.OPEN ? e() : (this.addEventListener("open", () => e()), this.addEventListener("error", t));
|
|
5365
5365
|
});
|
|
@@ -5369,7 +5369,7 @@ var Pb = function() {
|
|
|
5369
5369
|
* Returns a promise that resolves once the websocket
|
|
5370
5370
|
* is in the CLOSED state. */
|
|
5371
5371
|
closed() {
|
|
5372
|
-
return
|
|
5372
|
+
return ue(this, null, function* () {
|
|
5373
5373
|
return new Promise((e, t) => {
|
|
5374
5374
|
this.readyState === WebSocket.CLOSED ? e() : (this.addEventListener("close", () => e()), this.addEventListener("error", t));
|
|
5375
5375
|
});
|
|
@@ -5381,7 +5381,7 @@ var Pb = function() {
|
|
|
5381
5381
|
* the first message has already been received.
|
|
5382
5382
|
*/
|
|
5383
5383
|
firstMessage() {
|
|
5384
|
-
return
|
|
5384
|
+
return ue(this, null, function* () {
|
|
5385
5385
|
return this.receivedFirstMessage ? this.receivedFirstMessage : new Promise((e, t) => {
|
|
5386
5386
|
const r = (o) => {
|
|
5387
5387
|
this.receivedFirstMessage = o, this.removeEventListener("message", r), this.removeEventListener("error", a), e(o);
|
|
@@ -5397,7 +5397,7 @@ var Pb = function() {
|
|
|
5397
5397
|
* is received from the websocket.
|
|
5398
5398
|
*/
|
|
5399
5399
|
nextMessage() {
|
|
5400
|
-
return
|
|
5400
|
+
return ue(this, null, function* () {
|
|
5401
5401
|
return new Promise((e, t) => {
|
|
5402
5402
|
const r = (o) => {
|
|
5403
5403
|
this.removeEventListener("message", r), this.removeEventListener("error", a), e(o);
|
|
@@ -5468,7 +5468,7 @@ var yr = "wandelbots.io", Xo = {
|
|
|
5468
5468
|
throw new Error(
|
|
5469
5469
|
"Unsupported instance URL. Cannot determine Auth0 configuration."
|
|
5470
5470
|
);
|
|
5471
|
-
}, Bb = (e) =>
|
|
5471
|
+
}, Bb = (e) => ue(void 0, null, function* () {
|
|
5472
5472
|
var t;
|
|
5473
5473
|
if (typeof window > "u")
|
|
5474
5474
|
throw new Error(
|
|
@@ -7189,7 +7189,7 @@ const {
|
|
|
7189
7189
|
getAdapter: ZC,
|
|
7190
7190
|
mergeConfig: eV
|
|
7191
7191
|
} = v, O = "/api/v1".replace(/\/+$/, "");
|
|
7192
|
-
class
|
|
7192
|
+
class he {
|
|
7193
7193
|
constructor(t, r = O, a = v) {
|
|
7194
7194
|
Ir(this, "basePath");
|
|
7195
7195
|
Ir(this, "axios");
|
|
@@ -7449,7 +7449,7 @@ const R = function(e, ...t) {
|
|
|
7449
7449
|
}
|
|
7450
7450
|
};
|
|
7451
7451
|
};
|
|
7452
|
-
class pl extends
|
|
7452
|
+
class pl extends he {
|
|
7453
7453
|
/**
|
|
7454
7454
|
* Install a basic, containerized web application to the cell to control robots with a customized frontend. Prerequisites: A Docker hub account or similar container registry account, with valid credentials. After adding the application to the cell, open the application on the Wandelbots NOVA home screen. Read [build your application](/docs/docs/development/) for more information. <!-- theme: none --> > #### Predefined Environment Variables > - `NOVA_API`: The endpoint where the API is reachable from the container serving the Application. > - `BASE_PATH`: The root path of the deployed Application. It will be reachable via: http://$host/$BASE_PATH > - `CELL_NAME`: The name of the cell where the application is deployed.
|
|
7455
7455
|
* @summary Add Application
|
|
@@ -7731,7 +7731,7 @@ const gS = function(e) {
|
|
|
7731
7731
|
}
|
|
7732
7732
|
};
|
|
7733
7733
|
};
|
|
7734
|
-
class bS extends
|
|
7734
|
+
class bS extends he {
|
|
7735
7735
|
/**
|
|
7736
7736
|
* Delete an entire cell.
|
|
7737
7737
|
* @summary Delete Cell
|
|
@@ -8298,7 +8298,7 @@ const SS = function(e) {
|
|
|
8298
8298
|
}
|
|
8299
8299
|
};
|
|
8300
8300
|
};
|
|
8301
|
-
class vS extends
|
|
8301
|
+
class vS extends he {
|
|
8302
8302
|
/**
|
|
8303
8303
|
* Add a robot controller to the cell. <!-- theme: warning --> > **WARNING** > > Using it in conjunction with the settings app may lead to unpredictable behavior.
|
|
8304
8304
|
* @summary Add Robot Controller
|
|
@@ -8670,7 +8670,7 @@ const xS = function(e) {
|
|
|
8670
8670
|
}
|
|
8671
8671
|
};
|
|
8672
8672
|
};
|
|
8673
|
-
class OS extends
|
|
8673
|
+
class OS extends he {
|
|
8674
8674
|
/**
|
|
8675
8675
|
* Lists the I/O descriptions of the robot controller. The I/O descriptions contain information such as the name of the I/O, the I/O type and the I/O unit. The set of available I/Os is defined by the robot controller. Each I/O has a unique identifier. If no identifiers are specified in the request, retrieve the full list of available I/Os in this endpoint.
|
|
8676
8676
|
* @summary List Descriptions
|
|
@@ -8923,7 +8923,7 @@ const wS = function(e) {
|
|
|
8923
8923
|
}
|
|
8924
8924
|
};
|
|
8925
8925
|
};
|
|
8926
|
-
class CS extends
|
|
8926
|
+
class CS extends he {
|
|
8927
8927
|
/**
|
|
8928
8928
|
* Add a user coordinate system to the list of coordinate systems but not on a robot controller. The coordinate system is defined by a name and an offset in another coordinate system referenced by the unique identifier of the reference coordinate system. Will return the specification of the added coordinate systems which includes the unique identifier of the added coordinate system. All available coordinate systems can be listed via the [listCoordinateSystems](listCoordinateSystems) endpoint.
|
|
8929
8929
|
* @summary Add
|
|
@@ -9171,7 +9171,7 @@ const VS = function(e) {
|
|
|
9171
9171
|
}
|
|
9172
9172
|
};
|
|
9173
9173
|
};
|
|
9174
|
-
class PS extends
|
|
9174
|
+
class PS extends he {
|
|
9175
9175
|
/**
|
|
9176
9176
|
* Deprecated endpoint. Deletes **all** devices from the cell
|
|
9177
9177
|
* @summary Delete Devices
|
|
@@ -9418,7 +9418,7 @@ const RS = function(e) {
|
|
|
9418
9418
|
}
|
|
9419
9419
|
};
|
|
9420
9420
|
};
|
|
9421
|
-
class _S extends
|
|
9421
|
+
class _S extends he {
|
|
9422
9422
|
/**
|
|
9423
9423
|
* <!-- theme: danger --> > **Experimental** Creates a new program. The corresponding metadata is created as well. ## Examples ``` move via p2p() to [0, 0, 0, 0, 0, 0] move frame(\"flange\") to [1, 2, 0] move via line() to [1, 1, 0] a := planned_pose() ``` ``` {% from \'schneider_conveyor_v1.j2\' import schneider_conveyor_library -%} {{ schneider_conveyor_library() }} def start_main(): conveyor_speed_percentage = {{ conveyor_speed_percentage | round(4) }} conveyer_speed = conveyor_speed_percentage*1500 schneider_conveyor_start(conveyer_speed) end ```
|
|
9424
9424
|
* @summary Create Program
|
|
@@ -9630,7 +9630,7 @@ const AS = function(e) {
|
|
|
9630
9630
|
}
|
|
9631
9631
|
};
|
|
9632
9632
|
};
|
|
9633
|
-
class TS extends
|
|
9633
|
+
class TS extends he {
|
|
9634
9634
|
/**
|
|
9635
9635
|
* <!-- theme: danger --> > **Experimental** Returns metadata of the corresponding program.
|
|
9636
9636
|
* @summary Get Program Metadata
|
|
@@ -9866,7 +9866,7 @@ const IS = function(e) {
|
|
|
9866
9866
|
}
|
|
9867
9867
|
};
|
|
9868
9868
|
};
|
|
9869
|
-
class ES extends
|
|
9869
|
+
class ES extends he {
|
|
9870
9870
|
/**
|
|
9871
9871
|
* <!-- theme: danger --> > **Experimental** Creates a new recipe. The corresponding metadata is created as well.
|
|
9872
9872
|
* @summary Create Recipe
|
|
@@ -10077,7 +10077,7 @@ const MS = function(e) {
|
|
|
10077
10077
|
}
|
|
10078
10078
|
};
|
|
10079
10079
|
};
|
|
10080
|
-
class jS extends
|
|
10080
|
+
class jS extends he {
|
|
10081
10081
|
/**
|
|
10082
10082
|
* <!-- theme: danger --> > **Experimental** Returns the metadata of the recipe.
|
|
10083
10083
|
* @summary Get Recipe Metadata
|
|
@@ -10758,7 +10758,7 @@ const $S = function(e) {
|
|
|
10758
10758
|
}
|
|
10759
10759
|
};
|
|
10760
10760
|
};
|
|
10761
|
-
class US extends
|
|
10761
|
+
class US extends he {
|
|
10762
10762
|
/**
|
|
10763
10763
|
* Delete all registered motions.
|
|
10764
10764
|
* @summary All Motions
|
|
@@ -11128,7 +11128,7 @@ const kS = function(e) {
|
|
|
11128
11128
|
}
|
|
11129
11129
|
};
|
|
11130
11130
|
};
|
|
11131
|
-
class BS extends
|
|
11131
|
+
class BS extends he {
|
|
11132
11132
|
/**
|
|
11133
11133
|
* Activate the motion group and keeps the motion group in an active status. To activate all motion groups of a robot controller, use this endpoint. It will return all activated motion groups of that controller. When activating motion groups, it is not possible to interact with the controller in any other way. To deactivate a motion group, use [deactivateMotionGroup](deactivateMotionGroup).
|
|
11134
11134
|
* @summary Activate All
|
|
@@ -11575,7 +11575,7 @@ const LS = function(e) {
|
|
|
11575
11575
|
}
|
|
11576
11576
|
};
|
|
11577
11577
|
};
|
|
11578
|
-
class FS extends
|
|
11578
|
+
class FS extends he {
|
|
11579
11579
|
/**
|
|
11580
11580
|
* Gets the currently selected payload of the motion group. The payload is defined as the sum of all weights attached to the flange/endpoint of the motion group, e.g. sum of the tools and workpiece weight that are currently attached.
|
|
11581
11581
|
* @summary Selected Payload
|
|
@@ -11861,7 +11861,7 @@ const NS = function(e) {
|
|
|
11861
11861
|
}
|
|
11862
11862
|
};
|
|
11863
11863
|
};
|
|
11864
|
-
class zS extends
|
|
11864
|
+
class zS extends he {
|
|
11865
11865
|
/**
|
|
11866
11866
|
* Move TCP along/around a specified direction vector with a specified velocity via a websocket. The purpose of a direction jogging motion is to move a device in exactly one direction with a specified maximum velocity. The sign of the velocity determines the direction of the movement: Positive [+] or Negative [-]. The velocity is given in [mm/s]. In contrast to a planned motion, a jogging motion can be changed dynamically while the motion group is in motion. Only one single client at a time can jog a particular motion group. If another client tries to jog the same motion group at the same time, the second call will fail. The movement of the motion group will start as soon as: * the motion group is not in motion * the websocket connection is established * the first request has been sent As long as the jogging motion is ongoing, responses will be sent continuously and contain the current state of the motion group. The responses will be sent with the specified rate according to the *response_rate* parameter of the initial websocket request. While in motion, the desired direction and velocity can be changed by sending a new request to the same websocket. The motion and sending of the replies will stop when: * a [stopJogging](stopJogging) request was received, processed, and the movement stopped The motion group state will be published in the original command stream until the motion group has stopped. * the client cancels the stream (not recommended, because final stopping position will not be returned from the stream) When a physical limit (e.g. workspace boundary) is reached, the motion group will stop moving in the desired direction. The stream, howewer, will continue to send the state until the client cancels the stream or sends the [stopJogging](stopJogging) request. Singularities are avoided during a jogging motion. This avoidance can result in deviations from the specified direction. The amount of deviation depends on the robot type and current velocity. These mechanisms can lead to a small deviation from the specified direction. The size of deviation is depending on robot type and current velocity. **Usage example:** 1. Open a websocket via python and start the jogging motion: ```bash > python -m websockets \"ws://<IP of Wandelbots NOVA API>/api/v1/cells/<your cell id>/motion-groups/move-tcp\" ``` 2. Send the following message to the server to move current TCP 2 parts up in z direction and one part in negative y direction with 0.2 mm/s along the specified direction vector: ```json { \"motion_group\": \"<your motion group id>\", \"position_direction\": { \"y\": -0.5, \"z\": 1 }, \"rotation_direction\": {}, \"position_velocity\": 0.2, \"response_rate\": 500 } ``` The NOVA API clients support jogging motions without the need to manually open a websocket. > **NOTE** > > If the jogging movement is stopped immediately, ensure that > > - A websocket connection is established. Websockets can be kept open until the robot\'s movement is done as opposed to a simple HTTP GET request. > > - The motion group is not in motion by another jogging movement or a planned movement. > **NOTE** > > If the robot does not move, ensure that > > - The joint velocity values are not zero, > > - The motion group is not in a state where it cannot move further (e.g. joint limit reached). > **NOTE** > > If the specified velocities are higher than the maximum allowed by the robot controller, the motion group will move with the maximum allowed velocities.
|
|
11867
11867
|
* @summary Stream Cartesian
|
|
@@ -12061,7 +12061,7 @@ const DS = function(e) {
|
|
|
12061
12061
|
}
|
|
12062
12062
|
};
|
|
12063
12063
|
};
|
|
12064
|
-
class GS extends
|
|
12064
|
+
class GS extends he {
|
|
12065
12065
|
/**
|
|
12066
12066
|
* Calculate the joint positions of a motion group in order to move its TCP to a specific pose (Inverse Kinematic Solutions). All solutions are within the configured joint limits of the robot and not in a singular position of the robot. Return all joint positions as list of distinct joint positions in [rad] with their respective inverse feedback. Will be empty when unreachable, e.g. outside joint position limits, singular. Does not include multiple solutions where the robot links are in the same postition. Those can occur when single joints are allowed to move in a range larger than 360 degrees.
|
|
12067
12067
|
* @summary All Joint Positions from TCP Pose
|
|
@@ -12392,7 +12392,7 @@ const JS = function(e) {
|
|
|
12392
12392
|
}
|
|
12393
12393
|
};
|
|
12394
12394
|
};
|
|
12395
|
-
class qS extends
|
|
12395
|
+
class qS extends he {
|
|
12396
12396
|
/**
|
|
12397
12397
|
* This endpoint accepts a program written in Wandelscript and if desired, initial arguments (in the form of a dict). It will then execute this Wandelscript asynchronously. It returns a program runner reference which can be used to query the state of the program runner. ## Parameters See the **Schema** tab for information about the request body. ## Returns A program runner reference which can be used to query the state of the program runner. ## Receiving state updates Receive state updates of the program runner via polling the `/programs/runners/{runner_id}/` ### Via polling You can receive updates about the state of the program runner by polling the `/programs/runners/{runner_id}/` endpoint. ```
|
|
12398
12398
|
* @summary Create Program Runner
|
|
@@ -12711,7 +12711,7 @@ const HS = function(e) {
|
|
|
12711
12711
|
}
|
|
12712
12712
|
};
|
|
12713
12713
|
};
|
|
12714
|
-
class WS extends
|
|
12714
|
+
class WS extends he {
|
|
12715
12715
|
/**
|
|
12716
12716
|
* Deprecated endpoint. Delete all values from the database.
|
|
12717
12717
|
* @summary Delete All Values
|
|
@@ -13240,7 +13240,7 @@ const QS = function(e) {
|
|
|
13240
13240
|
}
|
|
13241
13241
|
};
|
|
13242
13242
|
};
|
|
13243
|
-
class KS extends
|
|
13243
|
+
class KS extends he {
|
|
13244
13244
|
/**
|
|
13245
13245
|
* Deletes the stored collider. <!-- theme: danger --> > This will delete persistently stored data.
|
|
13246
13246
|
* @summary Delete Collider
|
|
@@ -13542,7 +13542,7 @@ const YS = function(e) {
|
|
|
13542
13542
|
}
|
|
13543
13543
|
};
|
|
13544
13544
|
};
|
|
13545
|
-
class XS extends
|
|
13545
|
+
class XS extends he {
|
|
13546
13546
|
/**
|
|
13547
13547
|
* Deletes the stored scene. <!-- theme: danger --> > This will delete persistently stored data.
|
|
13548
13548
|
* @summary Delete Scene
|
|
@@ -13804,7 +13804,7 @@ const ZS = function(e) {
|
|
|
13804
13804
|
}
|
|
13805
13805
|
};
|
|
13806
13806
|
};
|
|
13807
|
-
class e1 extends
|
|
13807
|
+
class e1 extends he {
|
|
13808
13808
|
/**
|
|
13809
13809
|
* Delete all objects. <!-- theme: danger --> > This will delete ALL your persistently stored data.
|
|
13810
13810
|
* @summary Clear all Objects
|
|
@@ -14037,7 +14037,7 @@ const t1 = function(e) {
|
|
|
14037
14037
|
}
|
|
14038
14038
|
};
|
|
14039
14039
|
};
|
|
14040
|
-
class r1 extends
|
|
14040
|
+
class r1 extends he {
|
|
14041
14041
|
/**
|
|
14042
14042
|
* Check if a more recent Wandelbots NOVA Version is available.
|
|
14043
14043
|
* @summary Check update
|
|
@@ -14319,7 +14319,7 @@ const a1 = function(e) {
|
|
|
14319
14319
|
}
|
|
14320
14320
|
};
|
|
14321
14321
|
};
|
|
14322
|
-
class o1 extends
|
|
14322
|
+
class o1 extends he {
|
|
14323
14323
|
/**
|
|
14324
14324
|
* Get the current motion group state which provides values for the joints\' position, velocity and acceleration.
|
|
14325
14325
|
* @summary Get Motion Group State
|
|
@@ -14519,7 +14519,7 @@ const n1 = function(e) {
|
|
|
14519
14519
|
}
|
|
14520
14520
|
};
|
|
14521
14521
|
};
|
|
14522
|
-
class s1 extends
|
|
14522
|
+
class s1 extends he {
|
|
14523
14523
|
/**
|
|
14524
14524
|
* This stream provides the commanded joint state and sets a motion groups joint configuration, e.g. to move a motion group. The concept is that an application is using the Motion Service to move a motion group. The Motion Service is commanding the desired joint configuration of a motion group. Physical motion groups move to this joint configuration. With physical motion groups, this takes some time and only works if possible. And you have the *actual* joint state - the current real motion group configuration. Again, this stream is providing *commanded* joint state! It is __not__ providing the *actual* joint state! (Please file a request - if you need a stream of the *actual* joint state) When the virtual controller receives joint commands the joint configuration is immediately adapted to match the incoming joint configurations. CAUTION: Incoming joint configurations are not visualized and their velocity limits are not checked. we don\'t even check limits! Possible use cases are: 1. Creating a robotic application that dynamically adapts to the configured joints on the robot controller, using this stream to feed new joint configurations back to the motion group. The stream only sends data to the robot controller if a motion is executed. If the robot controller\'s joint configuration differs too much from the incoming joint configuration, a following error occurs. Joint configurations that result in following errors are executed only for motions with a low velocity. 2. Mimic Freedrive motions. <!-- theme: danger --> > **DANGER** > > If the incoming joint configuration is set to maximum velocity, the movement to reach this incoming joint configuration will be executed with maximum speed regardless > of safety zones and mechanical limits.
|
|
14525
14525
|
* @summary Stream Joint Configuration
|
|
@@ -14775,7 +14775,7 @@ const l1 = function(e) {
|
|
|
14775
14775
|
}
|
|
14776
14776
|
};
|
|
14777
14777
|
};
|
|
14778
|
-
class i1 extends
|
|
14778
|
+
class i1 extends he {
|
|
14779
14779
|
/**
|
|
14780
14780
|
* Get the cycle time of controller communication in [ms].
|
|
14781
14781
|
* @summary Cycle Time
|
|
@@ -15152,7 +15152,7 @@ const c1 = function(e) {
|
|
|
15152
15152
|
}
|
|
15153
15153
|
};
|
|
15154
15154
|
};
|
|
15155
|
-
class d1 extends
|
|
15155
|
+
class d1 extends he {
|
|
15156
15156
|
/**
|
|
15157
15157
|
* Adds a coordinate system to the robot controller.
|
|
15158
15158
|
* @summary Add Coordinate Systems
|
|
@@ -16615,11 +16615,11 @@ function h1() {
|
|
|
16615
16615
|
});
|
|
16616
16616
|
continue;
|
|
16617
16617
|
}
|
|
16618
|
-
const
|
|
16619
|
-
if (
|
|
16618
|
+
const ve = f.tryConsume("WILDCARD");
|
|
16619
|
+
if (ve) {
|
|
16620
16620
|
q.push({
|
|
16621
16621
|
type: "wildcard",
|
|
16622
|
-
name:
|
|
16622
|
+
name: ve
|
|
16623
16623
|
});
|
|
16624
16624
|
continue;
|
|
16625
16625
|
}
|
|
@@ -16695,19 +16695,19 @@ function h1() {
|
|
|
16695
16695
|
const Z = M.exec(re);
|
|
16696
16696
|
if (!Z)
|
|
16697
16697
|
return !1;
|
|
16698
|
-
const
|
|
16699
|
-
for (let
|
|
16700
|
-
if (Z[
|
|
16698
|
+
const ve = Z[0], K = /* @__PURE__ */ Object.create(null);
|
|
16699
|
+
for (let ge = 1; ge < Z.length; ge++) {
|
|
16700
|
+
if (Z[ge] === void 0)
|
|
16701
16701
|
continue;
|
|
16702
|
-
const $ = L[
|
|
16703
|
-
K[$.name] = Q(Z[
|
|
16702
|
+
const $ = L[ge - 1], Q = J[ge - 1];
|
|
16703
|
+
K[$.name] = Q(Z[ge]);
|
|
16704
16704
|
}
|
|
16705
|
-
return { path:
|
|
16705
|
+
return { path: ve, params: K };
|
|
16706
16706
|
};
|
|
16707
16707
|
}
|
|
16708
16708
|
function x(j, U = {}) {
|
|
16709
|
-
const { delimiter: k = e, end: f = !0, sensitive: M = !1, trailing: L = !0 } = U, J = [], q = [], re = M ? "" : "i",
|
|
16710
|
-
for (const { tokens: $ } of
|
|
16709
|
+
const { delimiter: k = e, end: f = !0, sensitive: M = !1, trailing: L = !0 } = U, J = [], q = [], re = M ? "" : "i", ve = (Array.isArray(j) ? j : [j]).map(($) => $ instanceof d ? $ : p($, U));
|
|
16710
|
+
for (const { tokens: $ } of ve)
|
|
16711
16711
|
for (const Q of I($, 0, [])) {
|
|
16712
16712
|
const oe = D(Q, k, J);
|
|
16713
16713
|
q.push(oe);
|
|
@@ -16818,7 +16818,7 @@ var ml = 1e-4, f1 = class lc {
|
|
|
16818
16818
|
}), $n(this);
|
|
16819
16819
|
}
|
|
16820
16820
|
static connect(t, r, a) {
|
|
16821
|
-
return
|
|
16821
|
+
return ue(this, null, function* () {
|
|
16822
16822
|
var o, n;
|
|
16823
16823
|
const [s, l] = r.split("@"), i = a.find((H) => H.controller === l), c = i == null ? void 0 : i.physical_motion_groups.find(
|
|
16824
16824
|
(H) => H.motion_group === r
|
|
@@ -16841,7 +16841,7 @@ var ml = 1e-4, f1 = class lc {
|
|
|
16841
16841
|
);
|
|
16842
16842
|
const g = (yield t.api.controller.getRobotController(
|
|
16843
16843
|
i.controller
|
|
16844
|
-
)).configuration.kind === "VirtualController", m = yield
|
|
16844
|
+
)).configuration.kind === "VirtualController", m = yield ue(this, null, function* () {
|
|
16845
16845
|
try {
|
|
16846
16846
|
return yield t.api.motionGroupInfos.getMounting(
|
|
16847
16847
|
c.motion_group
|
|
@@ -16920,12 +16920,12 @@ var ml = 1e-4, f1 = class lc {
|
|
|
16920
16920
|
/** Gets the robot mounting position rotation in 3D viz coordinates */
|
|
16921
16921
|
get mountingQuaternion() {
|
|
16922
16922
|
var t, r, a, o, n, s;
|
|
16923
|
-
const l = new
|
|
16923
|
+
const l = new xe.Vector3(
|
|
16924
16924
|
((r = (t = this.mounting) == null ? void 0 : t.pose.orientation) == null ? void 0 : r.x) || 0,
|
|
16925
16925
|
((o = (a = this.mounting) == null ? void 0 : a.pose.orientation) == null ? void 0 : o.y) || 0,
|
|
16926
16926
|
((s = (n = this.mounting) == null ? void 0 : n.pose.orientation) == null ? void 0 : s.z) || 0
|
|
16927
16927
|
), i = l.length(), c = l.normalize();
|
|
16928
|
-
return new
|
|
16928
|
+
return new xe.Quaternion().setFromAxisAngle(c, i);
|
|
16929
16929
|
}
|
|
16930
16930
|
/**
|
|
16931
16931
|
* Whether the controller is currently in a safety state
|
|
@@ -16966,7 +16966,7 @@ var ml = 1e-4, f1 = class lc {
|
|
|
16966
16966
|
return this.isMoveableSafetyState && this.isMoveableOperationMode && this.activationState === "active";
|
|
16967
16967
|
}
|
|
16968
16968
|
deactivate() {
|
|
16969
|
-
return
|
|
16969
|
+
return ue(this, null, function* () {
|
|
16970
16970
|
if (this.activationState !== "active") {
|
|
16971
16971
|
console.error("Tried to deactivate while already deactivating");
|
|
16972
16972
|
return;
|
|
@@ -16989,7 +16989,7 @@ var ml = 1e-4, f1 = class lc {
|
|
|
16989
16989
|
});
|
|
16990
16990
|
}
|
|
16991
16991
|
activate() {
|
|
16992
|
-
return
|
|
16992
|
+
return ue(this, null, function* () {
|
|
16993
16993
|
if (this.activationState !== "inactive") {
|
|
16994
16994
|
console.error("Tried to activate while already activating");
|
|
16995
16995
|
return;
|
|
@@ -17025,7 +17025,7 @@ var ml = 1e-4, f1 = class lc {
|
|
|
17025
17025
|
this.motionStream = t, this.opts = r, this.cartesianWebsocket = null, this.jointWebsocket = null, this.cartesianJoggingOpts = {};
|
|
17026
17026
|
}
|
|
17027
17027
|
static open(t, r) {
|
|
17028
|
-
return
|
|
17028
|
+
return ue(this, arguments, function* (a, o, n = {}) {
|
|
17029
17029
|
const s = yield a.connectMotionStream(o);
|
|
17030
17030
|
return new ic(s, n);
|
|
17031
17031
|
});
|
|
@@ -17046,7 +17046,7 @@ var ml = 1e-4, f1 = class lc {
|
|
|
17046
17046
|
return this.cartesianWebsocket || this.jointWebsocket;
|
|
17047
17047
|
}
|
|
17048
17048
|
stop() {
|
|
17049
|
-
return
|
|
17049
|
+
return ue(this, null, function* () {
|
|
17050
17050
|
this.cartesianWebsocket && this.cartesianWebsocket.sendJson({
|
|
17051
17051
|
motion_group: this.motionGroupId,
|
|
17052
17052
|
position_direction: { x: 0, y: 0, z: 0 },
|
|
@@ -17092,7 +17092,7 @@ var ml = 1e-4, f1 = class lc {
|
|
|
17092
17092
|
* Start rotation of a single robot joint at the specified velocity
|
|
17093
17093
|
*/
|
|
17094
17094
|
startJointRotation(t) {
|
|
17095
|
-
return
|
|
17095
|
+
return ue(this, arguments, function* ({
|
|
17096
17096
|
joint: r,
|
|
17097
17097
|
direction: a,
|
|
17098
17098
|
velocityRadsPerSec: o
|
|
@@ -17112,7 +17112,7 @@ var ml = 1e-4, f1 = class lc {
|
|
|
17112
17112
|
* Start the TCP moving along a specified axis at a given velocity
|
|
17113
17113
|
*/
|
|
17114
17114
|
startTCPTranslation(t) {
|
|
17115
|
-
return
|
|
17115
|
+
return ue(this, arguments, function* ({
|
|
17116
17116
|
axis: r,
|
|
17117
17117
|
direction: a,
|
|
17118
17118
|
velocityMmPerSec: o
|
|
@@ -17137,7 +17137,7 @@ var ml = 1e-4, f1 = class lc {
|
|
|
17137
17137
|
* Start the TCP rotating around a specified axis at a given velocity
|
|
17138
17138
|
*/
|
|
17139
17139
|
startTCPRotation(t) {
|
|
17140
|
-
return
|
|
17140
|
+
return ue(this, arguments, function* ({
|
|
17141
17141
|
axis: r,
|
|
17142
17142
|
direction: a,
|
|
17143
17143
|
velocityRadsPerSec: o
|
|
@@ -17164,7 +17164,7 @@ var ml = 1e-4, f1 = class lc {
|
|
|
17164
17164
|
* Promise resolves only after the motion has completed.
|
|
17165
17165
|
*/
|
|
17166
17166
|
runIncrementalCartesianMotion(t) {
|
|
17167
|
-
return
|
|
17167
|
+
return ue(this, arguments, function* ({
|
|
17168
17168
|
currentTcpPose: r,
|
|
17169
17169
|
currentJoints: a,
|
|
17170
17170
|
coordSystemId: o,
|
|
@@ -17244,7 +17244,7 @@ var ml = 1e-4, f1 = class lc {
|
|
|
17244
17244
|
* Promise resolves only after the motion has completed.
|
|
17245
17245
|
*/
|
|
17246
17246
|
runIncrementalJointRotation(t) {
|
|
17247
|
-
return
|
|
17247
|
+
return ue(this, arguments, function* ({
|
|
17248
17248
|
joint: r,
|
|
17249
17249
|
currentJoints: a,
|
|
17250
17250
|
velocityRadsPerSec: o,
|
|
@@ -17340,7 +17340,7 @@ var b1 = class cc {
|
|
|
17340
17340
|
}), $n(this);
|
|
17341
17341
|
}
|
|
17342
17342
|
static open(t, r) {
|
|
17343
|
-
return
|
|
17343
|
+
return ue(this, null, function* () {
|
|
17344
17344
|
var a;
|
|
17345
17345
|
const { instances: o } = yield t.api.controller.listControllers(), [n, s] = r.split("@"), l = o.find((u) => u.controller === s), i = l == null ? void 0 : l.physical_motion_groups.find(
|
|
17346
17346
|
(u) => u.motion_group === r
|
|
@@ -17443,7 +17443,7 @@ var b1 = class cc {
|
|
|
17443
17443
|
this.connections = [];
|
|
17444
17444
|
}
|
|
17445
17445
|
handleAPIRequest(e) {
|
|
17446
|
-
return
|
|
17446
|
+
return ue(this, null, function* () {
|
|
17447
17447
|
var t, r, a;
|
|
17448
17448
|
const o = [
|
|
17449
17449
|
{
|
|
@@ -18716,11 +18716,11 @@ var b1 = class cc {
|
|
|
18716
18716
|
"User-Agent": "Wandelbots-Nova-JS-SDK"
|
|
18717
18717
|
}
|
|
18718
18718
|
});
|
|
18719
|
-
a.interceptors.request.use((o) =>
|
|
18719
|
+
a.interceptors.request.use((o) => ue(this, null, function* () {
|
|
18720
18720
|
return o.headers.Authorization || (this.accessToken ? o.headers.Authorization = `Bearer ${this.accessToken}` : this.config.username && this.config.password && (o.headers.Authorization = `Basic ${btoa(e.username + ":" + e.password)}`)), o;
|
|
18721
18721
|
})), typeof window < "u" && a.interceptors.response.use(
|
|
18722
18722
|
(o) => o,
|
|
18723
|
-
(o) =>
|
|
18723
|
+
(o) => ue(this, null, function* () {
|
|
18724
18724
|
var n, s;
|
|
18725
18725
|
if (mS(o))
|
|
18726
18726
|
if (((n = o.response) == null ? void 0 : n.status) === 401)
|
|
@@ -18743,7 +18743,7 @@ var b1 = class cc {
|
|
|
18743
18743
|
}));
|
|
18744
18744
|
}
|
|
18745
18745
|
renewAuthentication() {
|
|
18746
|
-
return
|
|
18746
|
+
return ue(this, null, function* () {
|
|
18747
18747
|
if (!this.authPromise) {
|
|
18748
18748
|
this.authPromise = Bb(this.config.instanceUrl);
|
|
18749
18749
|
try {
|
|
@@ -18778,7 +18778,7 @@ var b1 = class cc {
|
|
|
18778
18778
|
* Connect to the motion state websocket(s) for a given motion group
|
|
18779
18779
|
*/
|
|
18780
18780
|
connectMotionStream(e) {
|
|
18781
|
-
return
|
|
18781
|
+
return ue(this, null, function* () {
|
|
18782
18782
|
return yield b1.open(this, e);
|
|
18783
18783
|
});
|
|
18784
18784
|
}
|
|
@@ -18786,12 +18786,12 @@ var b1 = class cc {
|
|
|
18786
18786
|
* Connect to the jogging websocket(s) for a given motion group
|
|
18787
18787
|
*/
|
|
18788
18788
|
connectJogger(e) {
|
|
18789
|
-
return
|
|
18789
|
+
return ue(this, null, function* () {
|
|
18790
18790
|
return yield y1.open(this, e);
|
|
18791
18791
|
});
|
|
18792
18792
|
}
|
|
18793
18793
|
connectMotionGroups(e) {
|
|
18794
|
-
return
|
|
18794
|
+
return ue(this, null, function* () {
|
|
18795
18795
|
const { instances: t } = yield this.api.controller.listControllers();
|
|
18796
18796
|
return Promise.all(
|
|
18797
18797
|
e.map(
|
|
@@ -18801,7 +18801,7 @@ var b1 = class cc {
|
|
|
18801
18801
|
});
|
|
18802
18802
|
}
|
|
18803
18803
|
connectMotionGroup(e) {
|
|
18804
|
-
return
|
|
18804
|
+
return ue(this, null, function* () {
|
|
18805
18805
|
return (yield this.connectMotionGroups([e]))[0];
|
|
18806
18806
|
});
|
|
18807
18807
|
}
|
|
@@ -18828,7 +18828,7 @@ const dc = (e) => {
|
|
|
18828
18828
|
}, t);
|
|
18829
18829
|
return () => clearTimeout(n);
|
|
18830
18830
|
}), /* @__PURE__ */ b.jsx(
|
|
18831
|
-
|
|
18831
|
+
ye,
|
|
18832
18832
|
{
|
|
18833
18833
|
width: "100%",
|
|
18834
18834
|
height: "100%",
|
|
@@ -18845,7 +18845,7 @@ const dc = (e) => {
|
|
|
18845
18845
|
/* @__PURE__ */ b.jsx(ed, { sx: { marginBottom: "24px" } }),
|
|
18846
18846
|
!!e.message && /* @__PURE__ */ b.jsx("div", { children: e.message }),
|
|
18847
18847
|
/* @__PURE__ */ b.jsx(
|
|
18848
|
-
|
|
18848
|
+
ye,
|
|
18849
18849
|
{
|
|
18850
18850
|
sx: {
|
|
18851
18851
|
visibility: r ? "visible" : "hidden",
|
|
@@ -18861,7 +18861,7 @@ const dc = (e) => {
|
|
|
18861
18861
|
}, P1 = (e) => {
|
|
18862
18862
|
const t = V1(e.error), r = e.error instanceof Error ? e.error.stack : null, a = qe();
|
|
18863
18863
|
return /* @__PURE__ */ b.jsxs(
|
|
18864
|
-
|
|
18864
|
+
ye,
|
|
18865
18865
|
{
|
|
18866
18866
|
sx: {
|
|
18867
18867
|
maxHeight: "100%",
|
|
@@ -19256,11 +19256,11 @@ var ux = 9007199254740991;
|
|
|
19256
19256
|
function qn(e) {
|
|
19257
19257
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= ux;
|
|
19258
19258
|
}
|
|
19259
|
-
var hx = "[object Arguments]", mx = "[object Array]", fx = "[object Boolean]", yx = "[object Date]", gx = "[object Error]", bx = "[object Function]", Sx = "[object Map]", vx = "[object Number]", xx = "[object Object]", Ox = "[object RegExp]", wx = "[object Set]", Cx = "[object String]", Vx = "[object WeakMap]", Px = "[object ArrayBuffer]", Rx = "[object DataView]", _x = "[object Float32Array]", Ax = "[object Float64Array]", Tx = "[object Int8Array]", Ix = "[object Int16Array]", Ex = "[object Int32Array]", Mx = "[object Uint8Array]", jx = "[object Uint8ClampedArray]", $x = "[object Uint16Array]", Ux = "[object Uint32Array]",
|
|
19260
|
-
|
|
19261
|
-
|
|
19259
|
+
var hx = "[object Arguments]", mx = "[object Array]", fx = "[object Boolean]", yx = "[object Date]", gx = "[object Error]", bx = "[object Function]", Sx = "[object Map]", vx = "[object Number]", xx = "[object Object]", Ox = "[object RegExp]", wx = "[object Set]", Cx = "[object String]", Vx = "[object WeakMap]", Px = "[object ArrayBuffer]", Rx = "[object DataView]", _x = "[object Float32Array]", Ax = "[object Float64Array]", Tx = "[object Int8Array]", Ix = "[object Int16Array]", Ex = "[object Int32Array]", Mx = "[object Uint8Array]", jx = "[object Uint8ClampedArray]", $x = "[object Uint16Array]", Ux = "[object Uint32Array]", pe = {};
|
|
19260
|
+
pe[_x] = pe[Ax] = pe[Tx] = pe[Ix] = pe[Ex] = pe[Mx] = pe[jx] = pe[$x] = pe[Ux] = !0;
|
|
19261
|
+
pe[hx] = pe[mx] = pe[Px] = pe[fx] = pe[Rx] = pe[yx] = pe[gx] = pe[bx] = pe[Sx] = pe[vx] = pe[xx] = pe[Ox] = pe[wx] = pe[Cx] = pe[Vx] = !1;
|
|
19262
19262
|
function kx(e) {
|
|
19263
|
-
return Gt(e) && qn(e.length) && !!
|
|
19263
|
+
return Gt(e) && qn(e.length) && !!pe[Qt(e)];
|
|
19264
19264
|
}
|
|
19265
19265
|
function Bx(e) {
|
|
19266
19266
|
return function(t) {
|
|
@@ -20258,9 +20258,9 @@ function dw(e) {
|
|
|
20258
20258
|
}), re = Array.isArray(L);
|
|
20259
20259
|
let Z = re ? L.slice().sort(_c) : [L];
|
|
20260
20260
|
Z = Z.map((G) => G == null ? i : ur(G, i, l));
|
|
20261
|
-
const
|
|
20261
|
+
const ve = s === !0 && m !== null ? [...Array(Math.floor((l - i) / m) + 1)].map((G, W) => ({
|
|
20262
20262
|
value: i + m * W
|
|
20263
|
-
})) : s || [], K =
|
|
20263
|
+
})) : s || [], K = ve.map((G) => G.value), [ge, $] = B.useState(-1), Q = B.useRef(null), oe = gi(y, Q), we = (G) => (W) => {
|
|
20264
20264
|
var ae;
|
|
20265
20265
|
const Y = Number(W.currentTarget.getAttribute("data-index"));
|
|
20266
20266
|
Ll(W.target) && $(Y), j(Y), (ae = G == null ? void 0 : G.onFocus) == null || ae.call(G, W);
|
|
@@ -20270,7 +20270,7 @@ function dw(e) {
|
|
|
20270
20270
|
}, Ee = (G, W) => {
|
|
20271
20271
|
const Y = Number(G.currentTarget.getAttribute("data-index")), ae = Z[Y], le = K.indexOf(ae);
|
|
20272
20272
|
let X = W;
|
|
20273
|
-
if (
|
|
20273
|
+
if (ve && m == null) {
|
|
20274
20274
|
const Pe = K[K.length - 1];
|
|
20275
20275
|
X >= Pe ? X = Pe : X <= K[0] ? X = K[0] : X = X < ae ? K[le - 1] : K[le + 1];
|
|
20276
20276
|
}
|
|
@@ -20323,7 +20323,7 @@ function dw(e) {
|
|
|
20323
20323
|
X = l;
|
|
20324
20324
|
break;
|
|
20325
20325
|
}
|
|
20326
|
-
} else if (
|
|
20326
|
+
} else if (ve) {
|
|
20327
20327
|
const Pe = K[K.length - 1], $e = K.indexOf(le), Ve = [n ? "ArrowRight" : "ArrowLeft", "ArrowDown", "PageDown", "Home"], We = [n ? "ArrowLeft" : "ArrowRight", "ArrowUp", "PageUp", "End"];
|
|
20328
20328
|
Ve.includes(W.key) ? $e === 0 ? X = K[0] : X = K[$e - 1] : We.includes(W.key) && ($e === K.length - 1 ? X = Pe : X = K[$e + 1]);
|
|
20329
20329
|
}
|
|
@@ -20334,11 +20334,11 @@ function dw(e) {
|
|
|
20334
20334
|
ii(() => {
|
|
20335
20335
|
var G;
|
|
20336
20336
|
a && Q.current.contains(document.activeElement) && ((G = document.activeElement) == null || G.blur());
|
|
20337
|
-
}, [a]), a && N !== -1 && z(-1), a &&
|
|
20337
|
+
}, [a]), a && N !== -1 && z(-1), a && ge !== -1 && $(-1);
|
|
20338
20338
|
const Ct = (G) => (W) => {
|
|
20339
20339
|
var Y;
|
|
20340
20340
|
(Y = G.onChange) == null || Y.call(G, W), Ee(W, W.target.valueAsNumber);
|
|
20341
|
-
},
|
|
20341
|
+
}, me = B.useRef(void 0);
|
|
20342
20342
|
let Le = u;
|
|
20343
20343
|
n && u === "horizontal" && (Le += "-reverse");
|
|
20344
20344
|
const Xe = ({
|
|
@@ -20365,13 +20365,13 @@ function dw(e) {
|
|
|
20365
20365
|
Ve = ur(Ve, i, l);
|
|
20366
20366
|
let We = 0;
|
|
20367
20367
|
if (re) {
|
|
20368
|
-
W ? We =
|
|
20368
|
+
W ? We = me.current : We = Fl(Z, Ve), o && (Ve = ur(Ve, Z[We - 1] || -1 / 0, Z[We + 1] || 1 / 0));
|
|
20369
20369
|
const Tr = Ve;
|
|
20370
20370
|
Ve = Nl({
|
|
20371
20371
|
values: Z,
|
|
20372
20372
|
newValue: Ve,
|
|
20373
20373
|
index: We
|
|
20374
|
-
}), o && W || (We = Ve.indexOf(Tr),
|
|
20374
|
+
}), o && W || (We = Ve.indexOf(Tr), me.current = We);
|
|
20375
20375
|
}
|
|
20376
20376
|
return {
|
|
20377
20377
|
newValue: Ve,
|
|
@@ -20515,7 +20515,7 @@ function dw(e) {
|
|
|
20515
20515
|
axis: Le,
|
|
20516
20516
|
axisProps: iw,
|
|
20517
20517
|
dragging: U,
|
|
20518
|
-
focusedThumbIndex:
|
|
20518
|
+
focusedThumbIndex: ge,
|
|
20519
20519
|
getHiddenInputProps: (G = {}) => {
|
|
20520
20520
|
const W = Ja(G), Y = {
|
|
20521
20521
|
onChange: Ct(W || {}),
|
|
@@ -20552,7 +20552,7 @@ function dw(e) {
|
|
|
20552
20552
|
},
|
|
20553
20553
|
getRootProps: Ar,
|
|
20554
20554
|
getThumbProps: ga,
|
|
20555
|
-
marks:
|
|
20555
|
+
marks: ve,
|
|
20556
20556
|
open: H,
|
|
20557
20557
|
range: re,
|
|
20558
20558
|
rootRef: oe,
|
|
@@ -21178,9 +21178,9 @@ const vw = vt("span", {
|
|
|
21178
21178
|
slots: q,
|
|
21179
21179
|
tabIndex: re,
|
|
21180
21180
|
track: Z = "normal",
|
|
21181
|
-
value:
|
|
21181
|
+
value: ve,
|
|
21182
21182
|
valueLabelDisplay: K = "off",
|
|
21183
|
-
valueLabelFormat:
|
|
21183
|
+
valueLabelFormat: ge = Dl,
|
|
21184
21184
|
...$
|
|
21185
21185
|
} = a, Q = {
|
|
21186
21186
|
...a,
|
|
@@ -21199,7 +21199,7 @@ const vw = vt("span", {
|
|
|
21199
21199
|
scale: L,
|
|
21200
21200
|
track: Z,
|
|
21201
21201
|
valueLabelDisplay: K,
|
|
21202
|
-
valueLabelFormat:
|
|
21202
|
+
valueLabelFormat: ge
|
|
21203
21203
|
}, {
|
|
21204
21204
|
axisProps: oe,
|
|
21205
21205
|
getRootProps: we,
|
|
@@ -21207,7 +21207,7 @@ const vw = vt("span", {
|
|
|
21207
21207
|
getThumbProps: Ee,
|
|
21208
21208
|
open: $t,
|
|
21209
21209
|
active: Ct,
|
|
21210
|
-
axis:
|
|
21210
|
+
axis: me,
|
|
21211
21211
|
focusedThumbIndex: Le,
|
|
21212
21212
|
range: Xe,
|
|
21213
21213
|
dragging: ut,
|
|
@@ -21246,8 +21246,8 @@ const vw = vt("span", {
|
|
|
21246
21246
|
externalSlotProps: ae,
|
|
21247
21247
|
additionalProps: {
|
|
21248
21248
|
style: {
|
|
21249
|
-
...oe[
|
|
21250
|
-
...oe[
|
|
21249
|
+
...oe[me].offset(Ut),
|
|
21250
|
+
...oe[me].leap($o)
|
|
21251
21251
|
}
|
|
21252
21252
|
},
|
|
21253
21253
|
ownerState: {
|
|
@@ -21295,7 +21295,7 @@ const vw = vt("span", {
|
|
|
21295
21295
|
}), /* @__PURE__ */ b.jsx(ya, {
|
|
21296
21296
|
...Nc
|
|
21297
21297
|
}), rt.filter((Ce) => Ce.value >= N && Ce.value <= F).map((Ce, _e) => {
|
|
21298
|
-
const Lo = no(Ce.value, N, F), va = oe[
|
|
21298
|
+
const Lo = no(Ce.value, N, F), va = oe[me].offset(Lo);
|
|
21299
21299
|
let ht;
|
|
21300
21300
|
return Z === !1 ? ht = Me.includes(Ce.value) : ht = Z === "normal" && (Xe ? Ce.value >= Me[0] && Ce.value <= Me[Me.length - 1] : Ce.value <= Me[0]) || Z === "inverted" && (Xe ? Ce.value <= Me[0] || Ce.value >= Me[Me.length - 1] : Ce.value >= Me[0]), /* @__PURE__ */ b.jsxs(B.Fragment, {
|
|
21301
21301
|
children: [/* @__PURE__ */ b.jsx(Zt, {
|
|
@@ -21325,14 +21325,14 @@ const vw = vt("span", {
|
|
|
21325
21325
|
}) : null]
|
|
21326
21326
|
}, _e);
|
|
21327
21327
|
}), Me.map((Ce, _e) => {
|
|
21328
|
-
const Lo = no(Ce, N, F), va = oe[
|
|
21328
|
+
const Lo = no(Ce, N, F), va = oe[me].offset(Lo), ht = K === "off" ? ww : ba;
|
|
21329
21329
|
return (
|
|
21330
21330
|
/* TODO v6: Change component structure. It will help in avoiding the complicated React.cloneElement API added in SliderValueLabel component. Should be: Thumb -> Input, ValueLabel. Follow Joy UI's Slider structure. */
|
|
21331
21331
|
/* @__PURE__ */ b.jsx(ht, {
|
|
21332
21332
|
...!qa(ht) && {
|
|
21333
|
-
valueLabelFormat:
|
|
21333
|
+
valueLabelFormat: ge,
|
|
21334
21334
|
valueLabelDisplay: K,
|
|
21335
|
-
value: typeof
|
|
21335
|
+
value: typeof ge == "function" ? ge(L(Ce), _e) : ge,
|
|
21336
21336
|
index: _e,
|
|
21337
21337
|
open: $t === _e || Ct === _e || K === "on",
|
|
21338
21338
|
disabled: m
|
|
@@ -21637,7 +21637,7 @@ const Pw = Ie((e) => {
|
|
|
21637
21637
|
function o(i, c) {
|
|
21638
21638
|
c === e.velocity || !Vw(c) || e.onVelocityChange(c);
|
|
21639
21639
|
}
|
|
21640
|
-
return /* @__PURE__ */ b.jsxs(
|
|
21640
|
+
return /* @__PURE__ */ b.jsxs(ye, { direction: "row", gap: 2, alignItems: "center", children: [
|
|
21641
21641
|
r.showVelocityLegend && /* @__PURE__ */ b.jsx(
|
|
21642
21642
|
Ue,
|
|
21643
21643
|
{
|
|
@@ -21674,7 +21674,7 @@ function Ec({ value: e, sx: t }) {
|
|
|
21674
21674
|
var a;
|
|
21675
21675
|
const r = qe();
|
|
21676
21676
|
return /* @__PURE__ */ b.jsx(
|
|
21677
|
-
|
|
21677
|
+
ye,
|
|
21678
21678
|
{
|
|
21679
21679
|
direction: "row",
|
|
21680
21680
|
justifyContent: "center",
|
|
@@ -21831,14 +21831,14 @@ const Mc = Ie(
|
|
|
21831
21831
|
amount: La(u).toFixed(1)
|
|
21832
21832
|
});
|
|
21833
21833
|
}
|
|
21834
|
-
return /* @__PURE__ */ b.jsxs(
|
|
21835
|
-
/* @__PURE__ */ b.jsxs(
|
|
21834
|
+
return /* @__PURE__ */ b.jsxs(ye, { flexGrow: 1, gap: 2, sx: { padding: "18px 24px" }, children: [
|
|
21835
|
+
/* @__PURE__ */ b.jsxs(ye, { gap: 2, children: [
|
|
21836
21836
|
/* @__PURE__ */ b.jsx(KO, { store: e }),
|
|
21837
21837
|
/* @__PURE__ */ b.jsx(Mc, { store: e }),
|
|
21838
21838
|
/* @__PURE__ */ b.jsx(br, {})
|
|
21839
21839
|
] }),
|
|
21840
21840
|
/* @__PURE__ */ b.jsx(
|
|
21841
|
-
|
|
21841
|
+
ye,
|
|
21842
21842
|
{
|
|
21843
21843
|
marginLeft: "auto",
|
|
21844
21844
|
marginRight: "auto",
|
|
@@ -21846,7 +21846,7 @@ const Mc = Ie(
|
|
|
21846
21846
|
justifyContent: "center",
|
|
21847
21847
|
sx: { flexGrow: "1" },
|
|
21848
21848
|
children: /* @__PURE__ */ b.jsxs(
|
|
21849
|
-
|
|
21849
|
+
ye,
|
|
21850
21850
|
{
|
|
21851
21851
|
alignItems: "center",
|
|
21852
21852
|
justifyContent: "center",
|
|
@@ -21964,21 +21964,21 @@ const Mc = Ie(
|
|
|
21964
21964
|
async function o() {
|
|
21965
21965
|
await e.jogger.stop(), await e.deactivate();
|
|
21966
21966
|
}
|
|
21967
|
-
return /* @__PURE__ */ b.jsxs(
|
|
21967
|
+
return /* @__PURE__ */ b.jsxs(ye, { flexGrow: 1, gap: 2, sx: { padding: "18px 24px" }, children: [
|
|
21968
21968
|
/* @__PURE__ */ b.jsx(Mc, { store: e }),
|
|
21969
21969
|
/* @__PURE__ */ b.jsx(br, {}),
|
|
21970
21970
|
/* @__PURE__ */ b.jsx(
|
|
21971
|
-
|
|
21971
|
+
ye,
|
|
21972
21972
|
{
|
|
21973
21973
|
justifyContent: "center",
|
|
21974
21974
|
alignItems: "stretch",
|
|
21975
21975
|
sx: { flexGrow: "1" },
|
|
21976
21976
|
id: "JointControls",
|
|
21977
|
-
children: /* @__PURE__ */ b.jsx(
|
|
21977
|
+
children: /* @__PURE__ */ b.jsx(ye, { alignItems: "center", gap: "24px", children: e.jogger.motionStream.joints.map((n) => {
|
|
21978
21978
|
var c;
|
|
21979
21979
|
const s = (c = e.motionGroupSpec.mechanical_joint_limits) == null ? void 0 : c[n.index], l = (s == null ? void 0 : s.lower_limit) !== void 0 ? La(s.lower_limit) : void 0, i = (s == null ? void 0 : s.upper_limit) !== void 0 ? La(s.upper_limit) : void 0;
|
|
21980
21980
|
return /* @__PURE__ */ b.jsxs(
|
|
21981
|
-
|
|
21981
|
+
ye,
|
|
21982
21982
|
{
|
|
21983
21983
|
direction: "row",
|
|
21984
21984
|
alignItems: "center",
|
|
@@ -22052,7 +22052,7 @@ const Mc = Ie(
|
|
|
22052
22052
|
const o = r.joggingStore;
|
|
22053
22053
|
o && (e.locked ? o.lock("external") : o.unlock("external"));
|
|
22054
22054
|
}, [r.joggingStore, e.locked]), /* @__PURE__ */ b.jsx(
|
|
22055
|
-
|
|
22055
|
+
ye,
|
|
22056
22056
|
{
|
|
22057
22057
|
sx: {
|
|
22058
22058
|
maxWidth: "460px",
|
|
@@ -22082,7 +22082,7 @@ const Mc = Ie(
|
|
|
22082
22082
|
if (e.currentTab.id === "joint")
|
|
22083
22083
|
return /* @__PURE__ */ b.jsx(b.Fragment, { children: /* @__PURE__ */ b.jsx(_w, { store: e, children: t }) });
|
|
22084
22084
|
}
|
|
22085
|
-
return /* @__PURE__ */ b.jsxs(
|
|
22085
|
+
return /* @__PURE__ */ b.jsxs(ye, { flexGrow: 1, sx: { overflow: "hidden" }, children: [
|
|
22086
22086
|
/* @__PURE__ */ b.jsx(
|
|
22087
22087
|
sd,
|
|
22088
22088
|
{
|
|
@@ -22094,7 +22094,7 @@ const Mc = Ie(
|
|
|
22094
22094
|
return /* @__PURE__ */ b.jsx(
|
|
22095
22095
|
ld,
|
|
22096
22096
|
{
|
|
22097
|
-
label: e.showTabIcons ? /* @__PURE__ */ b.jsxs(
|
|
22097
|
+
label: e.showTabIcons ? /* @__PURE__ */ b.jsxs(ye, { direction: "row", alignItems: "center", children: [
|
|
22098
22098
|
s,
|
|
22099
22099
|
n
|
|
22100
22100
|
] }) : n,
|
|
@@ -22107,7 +22107,7 @@ const Mc = Ie(
|
|
|
22107
22107
|
}
|
|
22108
22108
|
),
|
|
22109
22109
|
/* @__PURE__ */ b.jsx(
|
|
22110
|
-
|
|
22110
|
+
ye,
|
|
22111
22111
|
{
|
|
22112
22112
|
flexGrow: 1,
|
|
22113
22113
|
position: "relative",
|
|
@@ -22144,7 +22144,7 @@ const Mc = Ie(
|
|
|
22144
22144
|
i && clearTimeout(i);
|
|
22145
22145
|
};
|
|
22146
22146
|
}, [o]), /* @__PURE__ */ b.jsx(id, { open: o, title: "Copied!", children: /* @__PURE__ */ b.jsx(
|
|
22147
|
-
|
|
22147
|
+
ye,
|
|
22148
22148
|
{
|
|
22149
22149
|
justifyContent: "center",
|
|
22150
22150
|
sx: {
|
|
@@ -22191,7 +22191,7 @@ const Mc = Ie(
|
|
|
22191
22191
|
const a = r();
|
|
22192
22192
|
t.current.textContent !== a && (t.current.textContent = a);
|
|
22193
22193
|
}), /* @__PURE__ */ b.jsx(
|
|
22194
|
-
|
|
22194
|
+
ye,
|
|
22195
22195
|
{
|
|
22196
22196
|
alignItems: "left",
|
|
22197
22197
|
spacing: 2,
|
|
@@ -22213,7 +22213,7 @@ const Mc = Ie(
|
|
|
22213
22213
|
const a = r();
|
|
22214
22214
|
t.current.textContent !== a && (t.current.textContent = a);
|
|
22215
22215
|
}), /* @__PURE__ */ b.jsx(
|
|
22216
|
-
|
|
22216
|
+
ye,
|
|
22217
22217
|
{
|
|
22218
22218
|
alignItems: "left",
|
|
22219
22219
|
spacing: 2,
|
|
@@ -22270,7 +22270,7 @@ function oV({
|
|
|
22270
22270
|
]
|
|
22271
22271
|
}
|
|
22272
22272
|
),
|
|
22273
|
-
/* @__PURE__ */ b.jsx(ud, { children: /* @__PURE__ */ b.jsxs(
|
|
22273
|
+
/* @__PURE__ */ b.jsx(ud, { children: /* @__PURE__ */ b.jsxs(ye, { width: "100%", maxWidth: "300px", margin: "auto", marginBottom: "2rem", children: [
|
|
22274
22274
|
/* @__PURE__ */ b.jsx(
|
|
22275
22275
|
es,
|
|
22276
22276
|
{
|
|
@@ -22305,56 +22305,48 @@ function oV({
|
|
|
22305
22305
|
const nV = Array(6).fill(2 * Math.PI);
|
|
22306
22306
|
class $c {
|
|
22307
22307
|
constructor(t = [], r = {}) {
|
|
22308
|
-
this.currentValues = [], this.targetValues = [], this.animationId = null, this.animate = () => {
|
|
22309
|
-
|
|
22310
|
-
for (let n = 0; n < this.currentValues.length; n++) {
|
|
22311
|
-
const s = this.currentValues[n], l = this.targetValues[n];
|
|
22312
|
-
if (Math.abs(l - s) > this.options.threshold) {
|
|
22313
|
-
o = !1;
|
|
22314
|
-
const c = this.applyEasing(s, l, this.options.alpha);
|
|
22315
|
-
this.currentValues[n] = c, a = !0;
|
|
22316
|
-
} else s !== l && (this.currentValues[n] = l, a = !0);
|
|
22317
|
-
}
|
|
22318
|
-
a && this.options.onChange(this.currentValues), o ? (this.animationId = null, this.options.onComplete(this.currentValues)) : this.animationId = requestAnimationFrame(this.animate);
|
|
22308
|
+
this.currentValues = [], this.targetValues = [], this.previousTargetValues = [], this.targetUpdateTime = 0, this.animationId = null, this.velocities = [], this.animate = () => {
|
|
22309
|
+
this.update(0.016666666666666666) ? this.animationId = null : this.animationId = requestAnimationFrame(this.animate);
|
|
22319
22310
|
}, this.options = {
|
|
22320
|
-
|
|
22311
|
+
tension: 120,
|
|
22312
|
+
friction: 20,
|
|
22321
22313
|
threshold: 1e-3,
|
|
22322
|
-
easing: "spring",
|
|
22323
22314
|
onChange: () => {
|
|
22324
22315
|
},
|
|
22325
22316
|
onComplete: () => {
|
|
22326
22317
|
},
|
|
22327
22318
|
...r
|
|
22328
|
-
}, this.currentValues = [...t], this.targetValues = [...t];
|
|
22319
|
+
}, this.currentValues = [...t], this.targetValues = [...t], this.previousTargetValues = [...t], this.velocities = new Array(t.length).fill(0), this.targetUpdateTime = performance.now();
|
|
22329
22320
|
}
|
|
22330
22321
|
/**
|
|
22331
|
-
* Update interpolation (call this in useFrame for frame-rate independence)
|
|
22322
|
+
* Update interpolation using spring physics (call this in useFrame for frame-rate independence)
|
|
22332
22323
|
* @param delta - Frame delta time for smooth animation
|
|
22333
22324
|
*/
|
|
22334
22325
|
update(t = 1 / 60) {
|
|
22335
22326
|
let r = !1, a = !0;
|
|
22336
|
-
|
|
22337
|
-
|
|
22338
|
-
|
|
22339
|
-
|
|
22340
|
-
const i = this.applyEasing(
|
|
22341
|
-
n,
|
|
22342
|
-
s,
|
|
22343
|
-
this.options.alpha,
|
|
22344
|
-
t
|
|
22345
|
-
);
|
|
22346
|
-
this.currentValues[o] = i, r = !0;
|
|
22347
|
-
} else n !== s && (this.currentValues[o] = s, r = !0);
|
|
22327
|
+
const o = Math.min(t, 1 / 15);
|
|
22328
|
+
for (let n = 0; n < this.currentValues.length; n++) {
|
|
22329
|
+
const s = this.currentValues[n], l = this.targetValues[n], i = this.velocities[n], c = l - s, d = c * this.options.tension, p = i * this.options.friction, u = d - p, y = i + u * o, g = s + y * o;
|
|
22330
|
+
Math.abs(c) < this.options.threshold && Math.abs(y) < this.options.threshold * 10 ? this.currentValues[n] !== l && (this.currentValues[n] = l, this.velocities[n] = 0, r = !0) : (a = !1, this.currentValues[n] = g, this.velocities[n] = y, r = !0);
|
|
22348
22331
|
}
|
|
22349
22332
|
return r && this.options.onChange(this.currentValues), a && this.options.onComplete(this.currentValues), a;
|
|
22350
22333
|
}
|
|
22351
22334
|
/**
|
|
22352
22335
|
* Set new target values to interpolate towards
|
|
22336
|
+
* Handles irregular target updates smoothly by considering update frequency
|
|
22353
22337
|
*/
|
|
22354
22338
|
setTarget(t) {
|
|
22355
|
-
|
|
22356
|
-
|
|
22357
|
-
|
|
22339
|
+
const r = performance.now(), a = r - this.targetUpdateTime;
|
|
22340
|
+
if (this.previousTargetValues = [...this.targetValues], this.targetValues = [...t], this.targetUpdateTime = r, a < 8 && a > 0 && this.previousTargetValues.length > 0) {
|
|
22341
|
+
const o = Math.min(a / 8, 1);
|
|
22342
|
+
for (let n = 0; n < this.targetValues.length; n++) {
|
|
22343
|
+
const s = this.previousTargetValues[n] || 0, l = t[n] || 0;
|
|
22344
|
+
Math.abs(l - s) > 0.1 && (this.targetValues[n] = s + (l - s) * o);
|
|
22345
|
+
}
|
|
22346
|
+
}
|
|
22347
|
+
for (; this.currentValues.length < t.length; )
|
|
22348
|
+
this.currentValues.push(t[this.currentValues.length]), this.velocities.push(0);
|
|
22349
|
+
this.currentValues.length > t.length && (this.currentValues = this.currentValues.slice(0, t.length), this.velocities = this.velocities.slice(0, t.length));
|
|
22358
22350
|
}
|
|
22359
22351
|
/**
|
|
22360
22352
|
* Get the current interpolated values
|
|
@@ -22384,7 +22376,7 @@ class $c {
|
|
|
22384
22376
|
* Instantly set values without interpolation
|
|
22385
22377
|
*/
|
|
22386
22378
|
setImmediate(t) {
|
|
22387
|
-
this.stop(), this.currentValues = [...t], this.targetValues = [...t], this.options.onChange(this.currentValues);
|
|
22379
|
+
this.stop(), this.currentValues = [...t], this.targetValues = [...t], this.previousTargetValues = [...t], this.velocities = new Array(t.length).fill(0), this.targetUpdateTime = performance.now(), this.options.onChange(this.currentValues);
|
|
22388
22380
|
}
|
|
22389
22381
|
/**
|
|
22390
22382
|
* Update interpolation options
|
|
@@ -22392,33 +22384,18 @@ class $c {
|
|
|
22392
22384
|
updateOptions(t) {
|
|
22393
22385
|
this.options = { ...this.options, ...t };
|
|
22394
22386
|
}
|
|
22387
|
+
/**
|
|
22388
|
+
* Start automatic interpolation (use when not calling update() manually)
|
|
22389
|
+
*/
|
|
22390
|
+
startAutoInterpolation() {
|
|
22391
|
+
this.startInterpolation();
|
|
22392
|
+
}
|
|
22395
22393
|
/**
|
|
22396
22394
|
* Destroy the interpolator and clean up resources
|
|
22397
22395
|
*/
|
|
22398
22396
|
destroy() {
|
|
22399
22397
|
this.stop();
|
|
22400
22398
|
}
|
|
22401
|
-
/**
|
|
22402
|
-
* Apply easing function to the interpolation with frame-rate independence
|
|
22403
|
-
*/
|
|
22404
|
-
applyEasing(t, r, a, o = 1) {
|
|
22405
|
-
const n = Math.min(a * (o * 60), 1);
|
|
22406
|
-
switch (this.options.easing) {
|
|
22407
|
-
case "linear":
|
|
22408
|
-
return de.MathUtils.lerp(t, r, n);
|
|
22409
|
-
case "spring":
|
|
22410
|
-
const s = Math.min(n * 1.5, 0.8);
|
|
22411
|
-
return de.MathUtils.lerp(t, r, s);
|
|
22412
|
-
case "easeOut":
|
|
22413
|
-
const l = Math.min(n * 2, 1), i = 1 - Math.pow(1 - l, 3);
|
|
22414
|
-
return de.MathUtils.lerp(t, r, i);
|
|
22415
|
-
case "easeInOut":
|
|
22416
|
-
const c = Math.min(n * 2, 1), d = c < 0.5 ? 4 * c * c * c : 1 - Math.pow(-2 * c + 2, 3) / 2;
|
|
22417
|
-
return de.MathUtils.lerp(t, r, d);
|
|
22418
|
-
default:
|
|
22419
|
-
return de.MathUtils.lerp(t, r, n);
|
|
22420
|
-
}
|
|
22421
|
-
}
|
|
22422
22399
|
startInterpolation() {
|
|
22423
22400
|
this.animationId === null && this.animate();
|
|
22424
22401
|
}
|
|
@@ -22480,17 +22457,20 @@ function Lc({
|
|
|
22480
22457
|
(u) => u !== void 0
|
|
22481
22458
|
);
|
|
22482
22459
|
return s.current = new $c(p, {
|
|
22483
|
-
|
|
22484
|
-
//
|
|
22485
|
-
|
|
22486
|
-
// Spring
|
|
22460
|
+
tension: 120,
|
|
22461
|
+
// Spring tension for smooth animation
|
|
22462
|
+
friction: 20,
|
|
22463
|
+
// Spring friction for natural settling
|
|
22487
22464
|
threshold: 1e-3
|
|
22488
22465
|
}), () => {
|
|
22489
22466
|
var u;
|
|
22490
22467
|
(u = s.current) == null || u.destroy();
|
|
22491
22468
|
};
|
|
22492
22469
|
}, []), Kc((p, u) => {
|
|
22493
|
-
|
|
22470
|
+
if (s.current) {
|
|
22471
|
+
const y = s.current.update(u);
|
|
22472
|
+
d(), y || l();
|
|
22473
|
+
}
|
|
22494
22474
|
});
|
|
22495
22475
|
function i(p) {
|
|
22496
22476
|
p && (n.current = Iw(p), d(), l());
|
|
@@ -22654,17 +22634,17 @@ function Lw({
|
|
|
22654
22634
|
}
|
|
22655
22635
|
const Fw = (e, t) => {
|
|
22656
22636
|
e.userData.isGhost || (e.traverse((r) => {
|
|
22657
|
-
if (r instanceof
|
|
22658
|
-
r.material instanceof
|
|
22637
|
+
if (r instanceof xe.Mesh) {
|
|
22638
|
+
r.material instanceof xe.Material && (r.material.colorWrite = !1);
|
|
22659
22639
|
const a = r.clone(), o = r.clone();
|
|
22660
|
-
a.material = new
|
|
22640
|
+
a.material = new xe.MeshStandardMaterial({
|
|
22661
22641
|
depthTest: !0,
|
|
22662
22642
|
depthWrite: !0,
|
|
22663
22643
|
colorWrite: !1,
|
|
22664
22644
|
polygonOffset: !0,
|
|
22665
22645
|
polygonOffsetFactor: -1,
|
|
22666
|
-
side:
|
|
22667
|
-
}), a.userData.isGhost = !0, o.material = new
|
|
22646
|
+
side: xe.DoubleSide
|
|
22647
|
+
}), a.userData.isGhost = !0, o.material = new xe.MeshStandardMaterial({
|
|
22668
22648
|
color: t,
|
|
22669
22649
|
opacity: 0.3,
|
|
22670
22650
|
depthTest: !0,
|
|
@@ -22672,7 +22652,7 @@ const Fw = (e, t) => {
|
|
|
22672
22652
|
transparent: !0,
|
|
22673
22653
|
polygonOffset: !0,
|
|
22674
22654
|
polygonOffsetFactor: -2,
|
|
22675
|
-
side:
|
|
22655
|
+
side: xe.DoubleSide
|
|
22676
22656
|
}), o.userData.isGhost = !0, r.parent && (r.parent.add(a), r.parent.add(o));
|
|
22677
22657
|
}
|
|
22678
22658
|
}), e.userData.isGhost = !0);
|
|
@@ -22681,7 +22661,7 @@ const Fw = (e, t) => {
|
|
|
22681
22661
|
const t = [];
|
|
22682
22662
|
e.traverse((r) => {
|
|
22683
22663
|
var a;
|
|
22684
|
-
r instanceof
|
|
22664
|
+
r instanceof xe.Mesh && ((a = r.userData) != null && a.isGhost ? t.push(r) : r.material instanceof xe.Material && (r.material.colorWrite = !0));
|
|
22685
22665
|
}), t.forEach((r) => {
|
|
22686
22666
|
r.parent && r.parent.remove(r);
|
|
22687
22667
|
}), e.userData.isGhost = !1;
|
|
@@ -22794,7 +22774,7 @@ const Dw = ({
|
|
|
22794
22774
|
}));
|
|
22795
22775
|
return /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
22796
22776
|
/* @__PURE__ */ b.jsx(
|
|
22797
|
-
|
|
22777
|
+
ye,
|
|
22798
22778
|
{
|
|
22799
22779
|
"aria-owns": c.isPopoverOpen ? e : void 0,
|
|
22800
22780
|
"aria-haspopup": "true",
|
|
@@ -22834,7 +22814,7 @@ const Dw = ({
|
|
|
22834
22814
|
onClose: c.closePopover,
|
|
22835
22815
|
disableRestoreFocus: !0,
|
|
22836
22816
|
children: /* @__PURE__ */ b.jsxs(
|
|
22837
|
-
|
|
22817
|
+
ye,
|
|
22838
22818
|
{
|
|
22839
22819
|
gap: "1rem",
|
|
22840
22820
|
padding: 2,
|
|
@@ -23111,7 +23091,7 @@ const Dw = ({
|
|
|
23111
23091
|
}
|
|
23112
23092
|
), iV = xr(
|
|
23113
23093
|
Ie((e) => /* @__PURE__ */ b.jsxs(
|
|
23114
|
-
|
|
23094
|
+
ye,
|
|
23115
23095
|
{
|
|
23116
23096
|
direction: "row",
|
|
23117
23097
|
gap: "8px",
|