@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/package.json
CHANGED
|
@@ -83,7 +83,10 @@ export const JoggingCartesianTab = observer(
|
|
|
83
83
|
currentTcpPose: tcpPose,
|
|
84
84
|
currentJoints: jointPosition,
|
|
85
85
|
coordSystemId: store.activeCoordSystemId,
|
|
86
|
-
velocityInRelevantUnits:
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
25
|
-
min={store.
|
|
26
|
-
max={store.
|
|
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) => (
|