@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/index.js CHANGED
@@ -9228,13 +9228,16 @@ class zi {
9228
9228
  get rotationVelocityRadsPerSec() {
9229
9229
  return this.rotationVelocityDegPerSec * Math.PI / 180;
9230
9230
  }
9231
- get velocityInCurrentUnits() {
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
- get minVelocityInCurrentUnits() {
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
- get maxVelocityInCurrentUnits() {
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.velocityInCurrentUnits,
10891
- min: e.minVelocityInCurrentUnits,
10892
- max: e.maxVelocityInCurrentUnits,
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.velocityInCurrentUnits,
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" ? {