@wandelbots/wandelbots-js-react-components 1.13.3 → 1.13.4
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/jogging/JoggingOptions.d.ts.map +1 -1
- package/dist/components/jogging/JoggingStore.d.ts +1 -1
- package/dist/components/jogging/JoggingStore.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +21 -22
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/jogging/JoggingCartesianTab.tsx +4 -4
- package/src/components/jogging/JoggingOptions.tsx +10 -8
- package/src/components/jogging/JoggingPanel.tsx +3 -3
- package/src/components/jogging/JoggingStore.tsx +4 -4
package/dist/index.js
CHANGED
|
@@ -13394,9 +13394,10 @@ const pg = tn(
|
|
|
13394
13394
|
titleId: t,
|
|
13395
13395
|
...r
|
|
13396
13396
|
}, n) => /* @__PURE__ */ $.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 15, height: 17, fill: "none", ref: n, "aria-labelledby": t, ...r }, e ? /* @__PURE__ */ $.createElement("title", { id: t }, e) : null, /* @__PURE__ */ $.createElement("path", { fill: "currentColor", d: "M12.9 7.667c-.133-.534-.533-1-1-1.134L10.367 6l-.4 1.267L11.5 7.8c.067 0 .133.067.133.2l1.067 4.867a.32.32 0 0 1-.133.4l-2.267 1.8c-.267.2-.333.666-.133.933s.666.333.933.133l2.267-1.8c.533-.4.733-1.133.6-1.733zM12.5 0H1.833A1.65 1.65 0 0 0 .167 1.667v1.4c0 .866.733 1.6 1.666 1.6h10.734c.866 0 1.6-.734 1.6-1.667V1.667A1.65 1.65 0 0 0 12.5 0M1.633 12.8 2.7 8c0-.067.067-.133.133-.2l1.534-.533-.4-1.2-1.534.466c-.533.2-.933.6-1 1.134L.367 12.533c-.134.667.066 1.334.6 1.734l2.266 1.8c.267.266.734.2.934-.067s.2-.733-.134-.933l-2.266-1.8c-.134-.134-.2-.267-.134-.467" })), Ag = Zt(Cg), Pg = yt(({ store: e }) => {
|
|
13397
|
+
var n;
|
|
13397
13398
|
const { t } = xr();
|
|
13398
|
-
function r(
|
|
13399
|
-
(
|
|
13399
|
+
function r(o, a) {
|
|
13400
|
+
(a === "coordsys" || a === "tool") && e.setSelectedOrientation(a);
|
|
13400
13401
|
}
|
|
13401
13402
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
13402
13403
|
/* @__PURE__ */ s.jsxs(
|
|
@@ -13422,11 +13423,11 @@ const pg = tn(
|
|
|
13422
13423
|
labelId: "jogging-coord-select",
|
|
13423
13424
|
value: e.selectedCoordSystemId,
|
|
13424
13425
|
displayEmpty: !0,
|
|
13425
|
-
onChange: (
|
|
13426
|
-
e.setSelectedCoordSystemId(
|
|
13426
|
+
onChange: (o) => {
|
|
13427
|
+
e.setSelectedCoordSystemId(o.target.value);
|
|
13427
13428
|
},
|
|
13428
13429
|
disabled: e.isLocked,
|
|
13429
|
-
children: e.coordSystems.map((
|
|
13430
|
+
children: e.coordSystems.map((o) => /* @__PURE__ */ s.jsx(gn, { value: o.coordinate_system, children: o.name || o.coordinate_system }, o.coordinate_system))
|
|
13430
13431
|
}
|
|
13431
13432
|
)
|
|
13432
13433
|
] }),
|
|
@@ -13437,11 +13438,11 @@ const pg = tn(
|
|
|
13437
13438
|
{
|
|
13438
13439
|
labelId: "jogging-tcp-select",
|
|
13439
13440
|
value: e.selectedTcpId,
|
|
13440
|
-
onChange: (
|
|
13441
|
-
e.setSelectedTcpId(
|
|
13441
|
+
onChange: (o) => {
|
|
13442
|
+
e.setSelectedTcpId(o.target.value);
|
|
13442
13443
|
},
|
|
13443
13444
|
disabled: e.isLocked,
|
|
13444
|
-
children: e.tcps.map((
|
|
13445
|
+
children: e.tcps.map((o) => /* @__PURE__ */ s.jsx(gn, { value: o.id, children: o.id }, o.id))
|
|
13445
13446
|
}
|
|
13446
13447
|
)
|
|
13447
13448
|
] })
|
|
@@ -13486,16 +13487,16 @@ const pg = tn(
|
|
|
13486
13487
|
To,
|
|
13487
13488
|
{
|
|
13488
13489
|
labelId: "jogging-increment-select",
|
|
13489
|
-
value: e.
|
|
13490
|
-
onChange: (
|
|
13490
|
+
value: ((n = e.activeDiscreteIncrement) == null ? void 0 : n.id) || "continuous",
|
|
13491
|
+
onChange: (o) => {
|
|
13491
13492
|
e.setSelectedIncrementId(
|
|
13492
|
-
|
|
13493
|
+
o.target.value
|
|
13493
13494
|
);
|
|
13494
13495
|
},
|
|
13495
13496
|
disabled: e.isLocked,
|
|
13496
13497
|
children: [
|
|
13497
13498
|
/* @__PURE__ */ s.jsx(gn, { value: "continuous", children: t("Jogging.Increment.Continuous.dd") }, "continuous"),
|
|
13498
|
-
e.discreteIncrementOptions.map((
|
|
13499
|
+
e.selectedOrientation === "tool" ? null : e.discreteIncrementOptions.map((o) => /* @__PURE__ */ s.jsx(gn, { value: o.id, children: e.currentMotionType === "translate" ? `${o.mm}mm` : `${o.degrees}°` }, o.id))
|
|
13499
13500
|
]
|
|
13500
13501
|
}
|
|
13501
13502
|
)
|
|
@@ -15571,7 +15572,7 @@ const O_ = ({
|
|
|
15571
15572
|
}), []);
|
|
15572
15573
|
async function n() {
|
|
15573
15574
|
e.jogger.setJoggingMode(
|
|
15574
|
-
e.
|
|
15575
|
+
e.activeDiscreteIncrement ? "increment" : "cartesian",
|
|
15575
15576
|
{
|
|
15576
15577
|
tcpId: e.selectedTcpId,
|
|
15577
15578
|
coordSystemId: e.activeCoordSystemId
|
|
@@ -15603,8 +15604,8 @@ const O_ = ({
|
|
|
15603
15604
|
}
|
|
15604
15605
|
async function i(h) {
|
|
15605
15606
|
if (!e.isLocked) {
|
|
15606
|
-
if (n(), e.
|
|
15607
|
-
return a(h, e.
|
|
15607
|
+
if (n(), e.activeDiscreteIncrement)
|
|
15608
|
+
return a(h, e.activeDiscreteIncrement);
|
|
15608
15609
|
h.motionType === "translate" ? await e.jogger.startTCPTranslation({
|
|
15609
15610
|
axis: h.axis,
|
|
15610
15611
|
direction: h.direction,
|
|
@@ -15617,7 +15618,7 @@ const O_ = ({
|
|
|
15617
15618
|
}
|
|
15618
15619
|
}
|
|
15619
15620
|
async function l() {
|
|
15620
|
-
e.isLocked || e.
|
|
15621
|
+
e.isLocked || e.activeDiscreteIncrement || await e.jogger.stop();
|
|
15621
15622
|
}
|
|
15622
15623
|
const c = [
|
|
15623
15624
|
{
|
|
@@ -16191,10 +16192,8 @@ class Ka {
|
|
|
16191
16192
|
get tcpsById() {
|
|
16192
16193
|
return Cn(this.tcps, (t) => t.id);
|
|
16193
16194
|
}
|
|
16194
|
-
get
|
|
16195
|
-
return xa.find(
|
|
16196
|
-
(t) => t.id === this.selectedIncrementId
|
|
16197
|
-
);
|
|
16195
|
+
get activeDiscreteIncrement() {
|
|
16196
|
+
return this.selectedOrientation === "tool" ? void 0 : xa.find((t) => t.id === this.selectedIncrementId);
|
|
16198
16197
|
}
|
|
16199
16198
|
/** The selected rotation velocity converted to radians per second */
|
|
16200
16199
|
get rotationVelocityRadsPerSec() {
|
|
@@ -16281,7 +16280,7 @@ const sx = tn(
|
|
|
16281
16280
|
currentTab: u,
|
|
16282
16281
|
selectedTcpId: d,
|
|
16283
16282
|
activeCoordSystemId: h,
|
|
16284
|
-
|
|
16283
|
+
activeDiscreteIncrement: f
|
|
16285
16284
|
} = r.joggingStore;
|
|
16286
16285
|
if (u.id !== "cartesian" && u.id !== "joint") return;
|
|
16287
16286
|
const b = {
|
|
@@ -16299,7 +16298,7 @@ const sx = tn(
|
|
|
16299
16298
|
(a = r.joggingStore) == null ? void 0 : a.currentTab,
|
|
16300
16299
|
(i = r.joggingStore) == null ? void 0 : i.selectedTcpId,
|
|
16301
16300
|
(l = r.joggingStore) == null ? void 0 : l.activeCoordSystemId,
|
|
16302
|
-
(c = r.joggingStore) == null ? void 0 : c.
|
|
16301
|
+
(c = r.joggingStore) == null ? void 0 : c.activeDiscreteIncrement
|
|
16303
16302
|
]), !r.joggingStore || r.loadingError)
|
|
16304
16303
|
return /* @__PURE__ */ s.jsx(Ei, { children: /* @__PURE__ */ s.jsx(hl, { message: "Loading jogging", error: r.loadingError }) });
|
|
16305
16304
|
const { joggingStore: o } = r;
|