@wandelbots/wandelbots-js-react-components 6.4.0-pr.feat-component-import-paths.653.b6ee948 → 6.4.0-pr.fix-joint-slider-dead-zone.655.3383bd2
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/README.md +5 -14
- package/dist/3d.cjs +1 -1
- package/dist/3d.js +17 -18
- package/dist/SafetyBar/index.cjs +1 -1
- package/dist/SafetyBar/index.js +1 -1
- package/dist/chunks/{ConnectedMotionGroup-abXb_4XK.js → ConnectedMotionGroup-CnZy8qvn.js} +1156 -665
- package/dist/chunks/ConnectedMotionGroup-DdbsNLZn.cjs +4 -0
- package/dist/chunks/Robot-BLqRmhXn.js +2081 -0
- package/dist/chunks/Robot-BqLfTxOF.cjs +1 -0
- package/dist/chunks/{SafetyBar-CnD99VSR.js → SafetyBar-B9OQgerp.js} +10 -11
- package/dist/chunks/SafetyBar-D7QT6J0m.cjs +1 -0
- package/dist/chunks/{externalizeComponent-ITlhrXC6.js → externalizeComponent-CZu38L-d.js} +55 -18
- package/dist/chunks/{externalizeComponent-Dsfd1iPK.cjs → externalizeComponent-CdX5L_lW.cjs} +2 -2
- package/dist/chunks/useSmoothedMotionState-DaudLphD.cjs +1 -0
- package/dist/chunks/useSmoothedMotionState-FMSF0dtk.js +378 -0
- package/dist/components/jogging/gizmo/gizmoShared.d.ts +2 -1
- package/dist/components/jogging/holdSafety.d.ts +44 -0
- package/dist/components/jogging/joint/useJointJogHold.d.ts +2 -1
- package/dist/components/jogging/useHold.d.ts +10 -11
- package/dist/components/jogging/useJogControls.d.ts +2 -1
- package/dist/core.cjs +1 -1
- package/dist/core.js +26 -28
- package/dist/index.cjs +1 -1
- package/dist/index.js +32 -35
- package/package.json +1 -1
- package/dist/JoggingButtons/index.cjs +0 -1
- package/dist/JoggingButtons/index.d.ts +0 -3
- package/dist/JoggingButtons/index.js +0 -5
- package/dist/JoggingGizmo/index.cjs +0 -1
- package/dist/JoggingGizmo/index.d.ts +0 -4
- package/dist/JoggingGizmo/index.js +0 -6
- package/dist/JoggingJointSlider/index.cjs +0 -1
- package/dist/JoggingJointSlider/index.d.ts +0 -2
- package/dist/JoggingJointSlider/index.js +0 -5
- package/dist/chunks/ConnectedMotionGroup-BcF5NZE1.cjs +0 -4
- package/dist/chunks/JoggingButtons-D3IM89nM.js +0 -108
- package/dist/chunks/JoggingButtons-RDi541ox.cjs +0 -1
- package/dist/chunks/JoggingGizmoOrientation-BepVXLeA.js +0 -818
- package/dist/chunks/JoggingGizmoOrientation-DKbTzGv-.cjs +0 -1
- package/dist/chunks/JoggingJointSlider-DW-I7QId.cjs +0 -1
- package/dist/chunks/JoggingJointSlider-fkmbMkJo.js +0 -416
- package/dist/chunks/Robot-BMhAW_mu.cjs +0 -1
- package/dist/chunks/Robot-Co5UAtdQ.js +0 -1272
- package/dist/chunks/SafetyBar-DEl7Z9dZ.cjs +0 -1
- package/dist/chunks/converters-C8I_A_tA.cjs +0 -1
- package/dist/chunks/converters-DpNB_WNQ.js +0 -39
- package/dist/chunks/joggingColors-Dl0ObkyL.js +0 -142
- package/dist/chunks/joggingColors-SV1oSsjx.cjs +0 -1
- package/dist/chunks/useSmoothedMotionState-COMJRcOt.js +0 -214
- package/dist/chunks/useSmoothedMotionState-Con0E5Bx.cjs +0 -1
package/README.md
CHANGED
|
@@ -69,15 +69,6 @@ Browse the full icon set at https://wandelbotsgmbh.github.io/nova-design-system/
|
|
|
69
69
|
- **`/core`** — The parts without 3D (jogging, `SafetyBar`, `AppHeader`, `LoadingCover`, `NoMotionGroupModal`), the NOVA connections and `JoggingStore`, the motion state helpers and `i18n`.
|
|
70
70
|
- **`/3d`** — The 3D parts (`Robot`, `MotionGroupVisualizer`, `SafetyZonesRenderer`, …). Requires in addition three, three-stdlib, @react-three/fiber and @react-three/drei.
|
|
71
71
|
- **`/SafetyBar`** — Only `SafetyBar` (also as the default export).
|
|
72
|
-
- **`/JoggingGizmo`** — Only `JoggingGizmo` (also as the default export) and `JoggingGizmoOrientation`. Requires in addition three and @react-three/fiber.
|
|
73
|
-
- **`/JoggingButtons`** — Only `JoggingButtons` (also as the default export). No 3D packages needed.
|
|
74
|
-
- **`/JoggingJointSlider`** — Only `JoggingJointSlider` (also as the default export). No 3D packages needed.
|
|
75
|
-
|
|
76
|
-
A component's own entry point brings only what that component needs, e.g. `/JoggingButtons` no three.js and no NOVA client, unlike `/core`. The entry points share their common code, so an app that imports a component from both `/core` and its own entry point gets one copy of it:
|
|
77
|
-
|
|
78
|
-
```tsx
|
|
79
|
-
import JoggingJointSlider from "@wandelbots/wandelbots-js-react-components/JoggingJointSlider"
|
|
80
|
-
```
|
|
81
72
|
|
|
82
73
|
### Peer dependencies
|
|
83
74
|
|
|
@@ -89,9 +80,9 @@ import JoggingJointSlider from "@wandelbots/wandelbots-js-react-components/Joggi
|
|
|
89
80
|
| `@wandelbots/mui` | ^2 |
|
|
90
81
|
| `mobx` | ^6.13.6 |
|
|
91
82
|
| `mobx-react-lite` | ^4.1.0 |
|
|
92
|
-
| `three` (only `/3d
|
|
83
|
+
| `three` (only `/3d`) | >=0.182 |
|
|
93
84
|
| `three-stdlib` (only `/3d`) | >=2 |
|
|
94
|
-
| `@react-three/fiber` (only `/3d
|
|
85
|
+
| `@react-three/fiber` (only `/3d`) | ^9 |
|
|
95
86
|
| `@react-three/drei` (only `/3d`) | ^10 |
|
|
96
87
|
|
|
97
88
|
These packages are peer dependencies because the app and the library must use the same copy: React, the MUI theme of the app, the MobX stores that the app reads with its own `observer`, and the `<Canvas>` of React Three Fiber.
|
|
@@ -174,7 +165,7 @@ Manual robot control interfaces.
|
|
|
174
165
|
- **VelocitySlider** (and **VelocitySliderLabel**) - Speed adjustment interface
|
|
175
166
|
- **JoggingStore** - The state of the jogging (velocity, coordinate system, the jogging connection). `JoggingPanel` gives it to `onSetup`, and `JoggingStore.loadFor` creates one for your own controls.
|
|
176
167
|
|
|
177
|
-
**JoggingGizmo** and **JoggingGizmoOrientation** (from `/3d`
|
|
168
|
+
**JoggingGizmo** and **JoggingGizmoOrientation** (from `/3d`) - Jogging by the axes of the jog frame as the camera of the 3D view sees them: orbit the view and the gizmo turns with it, so the arrow pointing right on screen moves the robot right on screen. Hold a handle to jog.
|
|
178
169
|
|
|
179
170
|
- The gizmo draws in its own small canvas, so it can sit in a panel next to the 3D view. `JoggingGizmoOrientation` goes inside the app's `<Canvas>` and passes the camera's view to the gizmo through a shared ref. Until it has, the gizmo stays disabled.
|
|
180
171
|
- `JoggingGizmoOrientation` goes anywhere in the scene. It follows the camera's up: in a scene that is Y up, like that of this library's robots, it translates NOVA's axes (Z up), so NOVA's Z is the scene's Y. In a scene that is Z up like NOVA's world, whose camera has Z up, it takes NOVA's axes as they are.
|
|
@@ -205,7 +196,7 @@ const orientation = useRef<Quaternion | null>(null)
|
|
|
205
196
|
/>
|
|
206
197
|
```
|
|
207
198
|
|
|
208
|
-
**JoggingButtons**
|
|
199
|
+
**JoggingButtons** - Jogging by buttons: a row per axis with a minus and a plus button, held to jog (X-, X+; or Rx-, Rx+ when `motion` is `"rotate"`). It takes the same props as `JoggingGizmo` (`JogControlsProps`: `motion`, `onJogStart`, `onJogStop`, `activeHandle`, `disabled`), so an app wires both the same way and can offer both. Unlike the gizmo, the buttons do not turn with the 3D view: X+ is X+ of the jog frame, wherever the camera looks from. They draw nothing in 3D, so they need no `<Canvas>` and no `JoggingGizmoOrientation`.
|
|
209
200
|
|
|
210
201
|
```tsx
|
|
211
202
|
<JoggingButtons
|
|
@@ -219,7 +210,7 @@ const orientation = useRef<Quaternion | null>(null)
|
|
|
219
210
|
/>
|
|
220
211
|
```
|
|
221
212
|
|
|
222
|
-
**JoggingJointSlider**
|
|
213
|
+
**JoggingJointSlider** - One joint as a slider across its limits, with the thumb at the joint's value and the limits below; an app shows one per joint. Hover the track to see the goal under the pointer, and press there to jog the joint toward it: it stops when it gets there or when the slider is let go. While held, the goal follows the pointer, and the joint turns around when the goal passes it. An arrow key held on the focused slider jogs toward that limit.
|
|
223
214
|
|
|
224
215
|
- `value`, `min` and `max` are in NOVA's units: radians, or mm with `linear`. A revolute joint with one limit spans one turn from it, and without limits the turn it stands in. A linear axis needs both limits to be jogged with the slider; without them it only shows its value. `angleUnit` shows degrees (default) or radians.
|
|
225
216
|
- `onJogStart(direction)` and `onJogStop` leave the jogging to the app, as for `JoggingGizmo` and `JoggingButtons`. One press can bring several starts and stops, always in turn: the joint stops at the goal, and starts again when the goal moves on. When the goal passes the joint, `onJogStop` and the `onJogStart` of the other way come in the same event: an app with asynchronous jog commands must apply them in that order, and must not tear down its jogging connection on that stop.
|
package/dist/3d.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/Robot-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/Robot-BqLfTxOF.cjs"),o=require("./chunks/useSmoothedMotionState-DaudLphD.cjs");exports.CollisionSceneRenderer=e.CollisionSceneRenderer;exports.JoggingGizmo=e.JoggingGizmo;exports.JoggingGizmoOrientation=e.JoggingGizmoOrientation;exports.JointLimitGizmo=e.JointLimitGizmo;exports.LinearAxis=e.LinearAxis;exports.MotionGroupVisualizer=e.MotionGroupVisualizer;exports.MotionGroupVisualizerExact=e.MotionGroupVisualizerExact;exports.PresetEnvironment=e.PresetEnvironment;exports.Robot=e.Robot;exports.SafetyZonesRenderer=e.SafetyZonesRenderer;exports.SupportedLinearAxis=e.SupportedLinearAxis;exports.SupportedLinearAxisExact=e.SupportedLinearAxisExact;exports.SupportedRobot=e.SupportedRobot;exports.SupportedRobotExact=e.SupportedRobotExact;exports.TrajectoryRenderer=e.TrajectoryRenderer;exports.defaultGetModel=e.defaultGetModel;exports.ValueInterpolator=o.ValueInterpolator;exports.useSmoothedMotionState=o.useSmoothedMotionState;
|
package/dist/3d.js
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import { C as a, J as t,
|
|
2
|
-
import {
|
|
3
|
-
import { V as z, a as J } from "./chunks/useSmoothedMotionState-COMJRcOt.js";
|
|
1
|
+
import { C as a, J as t, a as r, b as s, L as i, M as n, c as p, P as d, R as u, S, d as l, e as m, f as x, g, T as R, h as c } from "./chunks/Robot-BLqRmhXn.js";
|
|
2
|
+
import { V as f, a as z } from "./chunks/useSmoothedMotionState-FMSF0dtk.js";
|
|
4
3
|
export {
|
|
5
4
|
a as CollisionSceneRenderer,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
t as JoggingGizmo,
|
|
6
|
+
r as JoggingGizmoOrientation,
|
|
7
|
+
s as JointLimitGizmo,
|
|
8
|
+
i as LinearAxis,
|
|
9
|
+
n as MotionGroupVisualizer,
|
|
10
|
+
p as MotionGroupVisualizerExact,
|
|
11
|
+
d as PresetEnvironment,
|
|
12
|
+
u as Robot,
|
|
13
|
+
S as SafetyZonesRenderer,
|
|
14
|
+
l as SupportedLinearAxis,
|
|
16
15
|
m as SupportedLinearAxisExact,
|
|
17
16
|
x as SupportedRobot,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
g as SupportedRobotExact,
|
|
18
|
+
R as TrajectoryRenderer,
|
|
19
|
+
f as ValueInterpolator,
|
|
20
|
+
c as defaultGetModel,
|
|
21
|
+
z as useSmoothedMotionState
|
|
23
22
|
};
|
package/dist/SafetyBar/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/SafetyBar-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/SafetyBar-D7QT6J0m.cjs");exports.SafetyBar=e.SafetyBar;exports.default=e.SafetyBar;
|
package/dist/SafetyBar/index.js
CHANGED