@wandelbots/wandelbots-js-react-components 1.44.3 → 1.44.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/JoggingStore.d.ts +2 -0
- 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 +10 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/jogging/JoggingPanel.tsx +3 -3
- package/src/components/jogging/JoggingStore.ts +10 -2
package/dist/index.js
CHANGED
|
@@ -9364,14 +9364,20 @@ class Wi {
|
|
|
9364
9364
|
setSelectedCartesianMotionType(t) {
|
|
9365
9365
|
this.selectedCartesianMotionType = t;
|
|
9366
9366
|
}
|
|
9367
|
+
lock(t) {
|
|
9368
|
+
this.locks.add(t);
|
|
9369
|
+
}
|
|
9370
|
+
unlock(t) {
|
|
9371
|
+
this.locks.delete(t);
|
|
9372
|
+
}
|
|
9367
9373
|
/** Lock the UI until the given async callback resolves */
|
|
9368
9374
|
async withMotionLock(t) {
|
|
9369
9375
|
const r = $1();
|
|
9370
|
-
this.
|
|
9376
|
+
this.lock(r);
|
|
9371
9377
|
try {
|
|
9372
9378
|
return await t();
|
|
9373
9379
|
} finally {
|
|
9374
|
-
this.
|
|
9380
|
+
this.unlock(r);
|
|
9375
9381
|
}
|
|
9376
9382
|
}
|
|
9377
9383
|
}
|
|
@@ -11279,8 +11285,8 @@ const xc = et(
|
|
|
11279
11285
|
(o = r.joggingStore) == null || o.dispose();
|
|
11280
11286
|
}), [e.store, e.nova, e.motionGroupId]), St(() => {
|
|
11281
11287
|
const o = r.joggingStore;
|
|
11282
|
-
o && (e.locked ? o.
|
|
11283
|
-
}, [e.locked]), /* @__PURE__ */ b.jsx(
|
|
11288
|
+
o && (e.locked ? o.lock("external") : o.unlock("external"));
|
|
11289
|
+
}, [r.joggingStore, e.locked]), /* @__PURE__ */ b.jsx(
|
|
11284
11290
|
ge,
|
|
11285
11291
|
{
|
|
11286
11292
|
sx: {
|