@wandelbots/wandelbots-js-react-components 1.46.2 → 1.46.3
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/JoggingCartesianTab.d.ts.map +1 -1
- package/dist/components/jogging/JoggingStore.d.ts +6 -3
- 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 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/jogging/JoggingCartesianTab.tsx +4 -1
- package/src/components/jogging/JoggingStore.ts +6 -3
- package/src/components/jogging/JoggingVelocitySlider.tsx +3 -3
package/dist/index.js
CHANGED
|
@@ -9228,13 +9228,16 @@ class zi {
|
|
|
9228
9228
|
get rotationVelocityRadsPerSec() {
|
|
9229
9229
|
return this.rotationVelocityDegPerSec * Math.PI / 180;
|
|
9230
9230
|
}
|
|
9231
|
-
|
|
9231
|
+
/** Selected velocity in mm/sec or deg/sec */
|
|
9232
|
+
get velocityInDisplayUnits() {
|
|
9232
9233
|
return this.currentMotionType === "translate" ? this.translationVelocityMmPerSec : this.rotationVelocityDegPerSec;
|
|
9233
9234
|
}
|
|
9234
|
-
|
|
9235
|
+
/** Minimum selectable velocity in mm/sec or deg/sec */
|
|
9236
|
+
get minVelocityInDisplayUnits() {
|
|
9235
9237
|
return this.currentMotionType === "translate" ? this.minTranslationVelocityMmPerSec : this.minRotationVelocityDegPerSec;
|
|
9236
9238
|
}
|
|
9237
|
-
|
|
9239
|
+
/** Maximum selectable velocity in mm/sec or deg/sec */
|
|
9240
|
+
get maxVelocityInDisplayUnits() {
|
|
9238
9241
|
return this.currentMotionType === "translate" ? this.maxTranslationVelocityMmPerSec : this.maxRotationVelocityDegPerSec;
|
|
9239
9242
|
}
|
|
9240
9243
|
/**
|
|
@@ -10887,9 +10890,9 @@ const yc = ot(
|
|
|
10887
10890
|
return /* @__PURE__ */ b.jsx(
|
|
10888
10891
|
tv,
|
|
10889
10892
|
{
|
|
10890
|
-
velocity: e.
|
|
10891
|
-
min: e.
|
|
10892
|
-
max: e.
|
|
10893
|
+
velocity: e.velocityInDisplayUnits,
|
|
10894
|
+
min: e.minVelocityInDisplayUnits,
|
|
10895
|
+
max: e.maxVelocityInDisplayUnits,
|
|
10893
10896
|
onVelocityChange: e.setVelocityFromSlider,
|
|
10894
10897
|
disabled: e.isLocked,
|
|
10895
10898
|
renderValue: (n) => /* @__PURE__ */ b.jsx(
|
|
@@ -10939,7 +10942,7 @@ const yc = ot(
|
|
|
10939
10942
|
currentTcpPose: R,
|
|
10940
10943
|
currentJoints: V,
|
|
10941
10944
|
coordSystemId: e.activeCoordSystemId,
|
|
10942
|
-
velocityInRelevantUnits: e.
|
|
10945
|
+
velocityInRelevantUnits: e.selectedCartesianMotionType === "translate" ? e.translationVelocityMmPerSec : e.rotationVelocityRadsPerSec,
|
|
10943
10946
|
axis: O.axis,
|
|
10944
10947
|
direction: O.direction,
|
|
10945
10948
|
motion: e.selectedCartesianMotionType === "translate" ? {
|