@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wandelbots/wandelbots-js-react-components",
3
- "version": "1.46.2",
3
+ "version": "1.46.3",
4
4
  "description": "React UI toolkit for building applications on top of the Wandelbots platform",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -83,7 +83,10 @@ export const JoggingCartesianTab = observer(
83
83
  currentTcpPose: tcpPose,
84
84
  currentJoints: jointPosition,
85
85
  coordSystemId: store.activeCoordSystemId,
86
- velocityInRelevantUnits: store.velocityInCurrentUnits,
86
+ velocityInRelevantUnits:
87
+ store.selectedCartesianMotionType === "translate"
88
+ ? store.translationVelocityMmPerSec
89
+ : store.rotationVelocityRadsPerSec,
87
90
  axis: opts.axis,
88
91
  direction: opts.direction,
89
92
  motion:
@@ -340,19 +340,22 @@ export class JoggingStore {
340
340
  return (this.rotationVelocityDegPerSec * Math.PI) / 180
341
341
  }
342
342
 
343
- get velocityInCurrentUnits() {
343
+ /** Selected velocity in mm/sec or deg/sec */
344
+ get velocityInDisplayUnits() {
344
345
  return this.currentMotionType === "translate"
345
346
  ? this.translationVelocityMmPerSec
346
347
  : this.rotationVelocityDegPerSec
347
348
  }
348
349
 
349
- get minVelocityInCurrentUnits() {
350
+ /** Minimum selectable velocity in mm/sec or deg/sec */
351
+ get minVelocityInDisplayUnits() {
350
352
  return this.currentMotionType === "translate"
351
353
  ? this.minTranslationVelocityMmPerSec
352
354
  : this.minRotationVelocityDegPerSec
353
355
  }
354
356
 
355
- get maxVelocityInCurrentUnits() {
357
+ /** Maximum selectable velocity in mm/sec or deg/sec */
358
+ get maxVelocityInDisplayUnits() {
356
359
  return this.currentMotionType === "translate"
357
360
  ? this.maxTranslationVelocityMmPerSec
358
361
  : this.maxRotationVelocityDegPerSec
@@ -21,9 +21,9 @@ export const JoggingVelocitySlider = observer(
21
21
 
22
22
  return (
23
23
  <VelocitySlider
24
- velocity={store.velocityInCurrentUnits}
25
- min={store.minVelocityInCurrentUnits}
26
- max={store.maxVelocityInCurrentUnits}
24
+ velocity={store.velocityInDisplayUnits}
25
+ min={store.minVelocityInDisplayUnits}
26
+ max={store.maxVelocityInDisplayUnits}
27
27
  onVelocityChange={store.setVelocityFromSlider}
28
28
  disabled={store.isLocked}
29
29
  renderValue={(value) => (