@wandelbots/wandelbots-js-react-components 6.4.0-pr.refactor-shared-hold-safety.654.1d3d9d8 → 6.4.0-pr.revamp.667.5d2eede

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.
Files changed (113) hide show
  1. package/README.md +68 -6
  2. package/dist/3d.cjs +1 -1
  3. package/dist/3d.d.ts +3 -0
  4. package/dist/3d.js +24 -17
  5. package/dist/CurrentPoseBar/index.cjs +1 -0
  6. package/dist/CurrentPoseBar/index.d.ts +2 -0
  7. package/dist/CurrentPoseBar/index.js +5 -0
  8. package/dist/JoggingButtons/index.cjs +1 -0
  9. package/dist/JoggingButtons/index.d.ts +3 -0
  10. package/dist/JoggingButtons/index.js +5 -0
  11. package/dist/JoggingGizmo/index.cjs +1 -0
  12. package/dist/JoggingGizmo/index.d.ts +4 -0
  13. package/dist/JoggingGizmo/index.js +7 -0
  14. package/dist/JoggingJointSlider/index.cjs +1 -0
  15. package/dist/JoggingJointSlider/index.d.ts +2 -0
  16. package/dist/JoggingJointSlider/index.js +5 -0
  17. package/dist/RobotControlPanel/index.cjs +1 -0
  18. package/dist/RobotControlPanel/index.d.ts +2 -0
  19. package/dist/RobotControlPanel/index.js +5 -0
  20. package/dist/RobotHeader/index.cjs +1 -0
  21. package/dist/RobotHeader/index.d.ts +4 -0
  22. package/dist/RobotHeader/index.js +5 -0
  23. package/dist/SafetyBar/index.cjs +1 -1
  24. package/dist/SafetyBar/index.js +1 -1
  25. package/dist/chunks/CurrentPoseBar-CyHUWmjM.cjs +1 -0
  26. package/dist/chunks/CurrentPoseBar-zTZi68tY.js +505 -0
  27. package/dist/chunks/JoggingButtons-CXaozFVz.js +108 -0
  28. package/dist/chunks/JoggingButtons-CbL-5LMK.cjs +1 -0
  29. package/dist/chunks/JoggingGizmo-DGbFLWgT.cjs +1 -0
  30. package/dist/chunks/JoggingGizmo-SuS9MmL7.js +810 -0
  31. package/dist/chunks/JoggingGizmoOrientation-dzned4f4.cjs +1 -0
  32. package/dist/chunks/JoggingGizmoOrientation-x_crT_64.js +14 -0
  33. package/dist/chunks/JoggingJointSlider-CZ-k6XCa.js +406 -0
  34. package/dist/chunks/JoggingJointSlider-R3_A9Ppj.cjs +1 -0
  35. package/dist/chunks/Pose3-DIyg-aZA.cjs +1 -0
  36. package/dist/chunks/Pose3-pocKPrHN.js +292 -0
  37. package/dist/chunks/Robot-B3vKEVXP.cjs +1 -0
  38. package/dist/chunks/Robot-DXhaz1tq.js +1272 -0
  39. package/dist/chunks/RobotControlPanel-BXtBHEe9.cjs +1 -0
  40. package/dist/chunks/RobotControlPanel-BiLexAWI.js +827 -0
  41. package/dist/chunks/RobotHeader-DDmDkUoV.js +244 -0
  42. package/dist/chunks/RobotHeader-Daft80jq.cjs +1 -0
  43. package/dist/chunks/SafetyBar-BVk-SH_0.cjs +1 -0
  44. package/dist/chunks/{SafetyBar-B9OQgerp.js → SafetyBar-RkN0I1Cb.js} +11 -10
  45. package/dist/chunks/SmallSelect-BdD9uLKK.js +52 -0
  46. package/dist/chunks/SmallSelect-Dcsd7_6_.cjs +1 -0
  47. package/dist/chunks/TrajectoryExecutionStore-CKfEoKo8.cjs +3 -0
  48. package/dist/chunks/TrajectoryExecutionStore-DYVukgCz.js +3613 -0
  49. package/dist/chunks/converters-BsXgcxCW.cjs +1 -0
  50. package/dist/chunks/converters-DAr6IQbG.js +47 -0
  51. package/dist/chunks/externalizeComponent-BdxGBLIv.cjs +2 -0
  52. package/dist/chunks/externalizeComponent-_w2d1_pz.js +283 -0
  53. package/dist/chunks/holdSafety-BtoZ5We3.cjs +1 -0
  54. package/dist/chunks/holdSafety-Di1GZAWg.js +37 -0
  55. package/dist/chunks/joggingColors-CuT5u0H8.js +135 -0
  56. package/dist/chunks/joggingColors-ZDc_2UCp.cjs +1 -0
  57. package/dist/chunks/useEveryFrame-G_-ma1nC.js +142 -0
  58. package/dist/chunks/useEveryFrame-dmPPTKtT.cjs +1 -0
  59. package/dist/components/currentPoseBar/CurrentPoseBar.d.ts +48 -0
  60. package/dist/components/currentPoseBar/OrientationFormatPopover.d.ts +19 -0
  61. package/dist/components/currentPoseBar/StreamStatus.d.ts +10 -0
  62. package/dist/components/currentPoseBar/orientation.d.ts +34 -0
  63. package/dist/components/currentPoseBar/poseValues.d.ts +15 -0
  64. package/dist/components/jogging/JoggingStore.d.ts +126 -20
  65. package/dist/components/jogging/jogError.d.ts +9 -0
  66. package/dist/components/jogging/joggingVelocity.d.ts +21 -0
  67. package/dist/components/robotControl/CartesianJogTab.d.ts +21 -0
  68. package/dist/components/robotControl/HoldToMoveButton.d.ts +25 -0
  69. package/dist/components/robotControl/JogArea.d.ts +22 -0
  70. package/dist/components/robotControl/JogModeToggle.d.ts +8 -0
  71. package/dist/components/robotControl/JointJogTab.d.ts +11 -0
  72. package/dist/components/robotControl/MoveToTab.d.ts +18 -0
  73. package/dist/components/robotControl/PanelSelect.d.ts +13 -0
  74. package/dist/components/robotControl/PoseField.d.ts +21 -0
  75. package/dist/components/robotControl/RobotControlPanel.d.ts +218 -0
  76. package/dist/components/robotControl/Section.d.ts +5 -0
  77. package/dist/components/robotControl/SmallSelect.d.ts +15 -0
  78. package/dist/components/robotControl/VelocityRow.d.ts +14 -0
  79. package/dist/components/robotControl/atPose.d.ts +8 -0
  80. package/dist/components/robotControl/poseText.d.ts +15 -0
  81. package/dist/components/robotControl/units.d.ts +16 -0
  82. package/dist/components/robotControl/useCopyText.d.ts +12 -0
  83. package/dist/components/robotControl/useEveryFrame.d.ts +6 -0
  84. package/dist/components/robotHeader/ActivationSwitch.d.ts +7 -0
  85. package/dist/components/robotHeader/AppNavigation.d.ts +15 -0
  86. package/dist/components/robotHeader/RobotHeader.d.ts +42 -0
  87. package/dist/core.cjs +1 -1
  88. package/dist/core.d.ts +10 -1
  89. package/dist/core.js +42 -25
  90. package/dist/index.cjs +1 -1
  91. package/dist/index.js +68 -44
  92. package/dist/lib/ControllerStateStream.d.ts +125 -0
  93. package/dist/lib/JoggerConnection.d.ts +108 -22
  94. package/dist/lib/MotionStreamConnection.d.ts +12 -1
  95. package/dist/lib/Pose3.d.ts +22 -0
  96. package/dist/lib/PoseTransformer.d.ts +44 -0
  97. package/dist/lib/TrajectoryExecutionStore.d.ts +129 -0
  98. package/dist/lib/connectionLogger.d.ts +9 -0
  99. package/dist/lib/controllerStateSource.d.ts +35 -0
  100. package/dist/lib/incrementalCartesianMotion.d.ts +40 -0
  101. package/dist/lib/motionStateUpdate.d.ts +27 -0
  102. package/dist/lib/planErrorTranslation.d.ts +8 -0
  103. package/dist/lib/rotation.d.ts +12 -0
  104. package/package.json +1 -1
  105. package/dist/chunks/ConnectedMotionGroup-BAlTfBxM.cjs +0 -4
  106. package/dist/chunks/ConnectedMotionGroup-DezR_n_l.js +0 -3107
  107. package/dist/chunks/Robot-BLqRmhXn.js +0 -2081
  108. package/dist/chunks/Robot-BqLfTxOF.cjs +0 -1
  109. package/dist/chunks/SafetyBar-D7QT6J0m.cjs +0 -1
  110. package/dist/chunks/externalizeComponent-CZu38L-d.js +0 -192
  111. package/dist/chunks/externalizeComponent-CdX5L_lW.cjs +0 -2
  112. package/dist/chunks/useSmoothedMotionState-DaudLphD.cjs +0 -1
  113. package/dist/chunks/useSmoothedMotionState-FMSF0dtk.js +0 -378
package/README.md CHANGED
@@ -69,6 +69,16 @@ 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
+ - **`/RobotControlPanel`** — The whole Robot control panel, `RobotControlPanel` (also as the default export). It shows the jog gizmo, so it requires in addition three and @react-three/fiber, as `/JoggingGizmo` does.
76
+
77
+ 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:
78
+
79
+ ```tsx
80
+ import JoggingJointSlider from "@wandelbots/wandelbots-js-react-components/JoggingJointSlider"
81
+ ```
72
82
 
73
83
  ### Peer dependencies
74
84
 
@@ -80,9 +90,9 @@ Browse the full icon set at https://wandelbotsgmbh.github.io/nova-design-system/
80
90
  | `@wandelbots/mui` | ^2 |
81
91
  | `mobx` | ^6.13.6 |
82
92
  | `mobx-react-lite` | ^4.1.0 |
83
- | `three` (only `/3d`) | >=0.182 |
93
+ | `three` (only `/3d`, `/JoggingGizmo`, `/RobotControlPanel`) | >=0.182 |
84
94
  | `three-stdlib` (only `/3d`) | >=2 |
85
- | `@react-three/fiber` (only `/3d`) | ^9 |
95
+ | `@react-three/fiber` (only `/3d`, `/JoggingGizmo`, `/RobotControlPanel`) | ^9 |
86
96
  | `@react-three/drei` (only `/3d`) | ^10 |
87
97
 
88
98
  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.
@@ -165,7 +175,7 @@ Manual robot control interfaces.
165
175
  - **VelocitySlider** (and **VelocitySliderLabel**) - Speed adjustment interface
166
176
  - **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.
167
177
 
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
+ **JoggingGizmo** and **JoggingGizmoOrientation** (from `/3d` or `/JoggingGizmo`) - 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.
169
179
 
170
180
  - 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.
171
181
  - `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.
@@ -196,7 +206,7 @@ const orientation = useRef<Quaternion | null>(null)
196
206
  />
197
207
  ```
198
208
 
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
+ **JoggingButtons** (from `/core` or `/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`.
200
210
 
201
211
  ```tsx
202
212
  <JoggingButtons
@@ -210,7 +220,7 @@ const orientation = useRef<Quaternion | null>(null)
210
220
  />
211
221
  ```
212
222
 
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
+ **JoggingJointSlider** (from `/core` or `/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.
214
224
 
215
225
  - `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.
216
226
  - `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.
@@ -245,6 +255,58 @@ const [active, setActive] = useState<number | null>(null)
245
255
  ))}
246
256
  ```
247
257
 
258
+ **RobotControlPanel** (from `/3d` or `/RobotControlPanel`) - The Robot control panel of the design, built from the parts above: the tabs Translate and Rotate, with the TCP and the frame to jog along, Continuous or Increment, the velocity, the step size, and the gizmo or the buttons with a switch between them; the tab Joint, with a `JoggingJointSlider` per joint and the joint velocity; and the tab Move to, with a typed target pose (or the current one), the frame it is relative to, and a button to hold to move there. An app that wants the whole panel imports this; an app that wants one part imports that part.
259
+
260
+ - It moves nothing itself, as its parts: `onJogStart(motion, axis, direction)` and `onJogStop` for jogging while held, and `increments.onStep(motion, axis, direction, distance)` for one step per press. The app keeps the velocity and the selects in its own store; the panel keeps the tab, the mode, the step size and the view.
261
+ - Velocities and step sizes are in NOVA's units: mm and mm/s to translate, rad and rad/s to rotate. The panel shows mm/s and °/s.
262
+ - `tcp` and `jogFrame` show a select each, filled by the app. Without `increments`, there is no Continuous/Increment toggle. Without `gizmoOrientation` (from a `JoggingGizmoOrientation` in the app's 3D scene), it jogs with buttons only.
263
+ - `onJogStop` also comes when the tab, the mode or the view changes while a control is held: the jog of that press must not go on.
264
+ - `disabled` turns off every control: nothing may move. `jogDisabled` turns off only the jogging of Translate, Rotate and Joint, e.g. while a trajectory moves the robot; Move to stays usable, so a move of its own does not end when the app locks jogging during it.
265
+ - The panel keeps its tab, jog mode and step size itself. An app that keeps them in its own store (to remember them, or because its jogging depends on them) gives `tab`, `jogMode` and `increments.step`, and gets `onTabChange`, `onJogModeChange` and `increments.onStepChange`; each also works alone, to follow a choice without keeping it.
266
+ - `joints` gives the Joint tab: the joints' values and limits (rad, or mm with `linear`), their names, the joint velocity, and `onJogStart(index, direction)` and `onJogStop`. The panel jogs one joint at a time; the turn-around of a slider brings `onJogStop` and `onJogStart` in the same event, as described for `JoggingJointSlider`. Without `joints`, there is no Joint tab.
267
+ - `moveTo` gives the Move to tab. It works as RobotPad's pose field: the coordinates `(x, y, z, rx, ry, rz)` (mm, rotation vector in rad: the format RobotPad copies and pastes) show the TCP's current pose (`getCurrentPose`, read every animation frame), with Copy and Edit pose, and Move to, off until a pose is the target. Edit pose, or a click on the field, makes it editable; Save pose edit (Enter) makes the typed pose the target (`onTargetChange(pose)`): the app plans the move and loads it, and reports `state` (`"planning"`, `"planned"`, `"moving"`, `"stopping"` or `"idle"`, as RobotPad's trajectory) and an `error` (e.g. out of reach). Then Reset shows. Held for 200 ms while `"planned"`, Move to calls `onMoveStart(pose)`, the release `onMoveStop`: the app starts and pauses its trajectory; the button says Moving… and Stopping…. At the target (within 0.5 mm and 0.01 rad) it turns off; once the move no longer runs, the field shows the current pose again (`onTargetChange(null)`), as do Reset, another tab and another TCP or frame (a held move gets its `onMoveStop` first). While another pose is typed, Move to stays off. `frame` is the "Relative to" select. It moves with `velocity.translate`. Without `moveTo`, there is no Move to tab.
268
+
269
+ ```tsx
270
+ const orientation = useRef<Quaternion | null>(null)
271
+
272
+ <RobotControlPanel
273
+ gizmoOrientation={orientation}
274
+ tcp={{ options: tcps, value: tcp, onChange: setTcp }}
275
+ jogFrame={{ options: frames, value: frame, onChange: setFrame }}
276
+ velocity={{
277
+ translate: { value: mmPerSec, min: 1, max: 250 },
278
+ rotate: { value: radPerSec, min: 0.02, max: 1 },
279
+ }}
280
+ onVelocityChange={(motion, value) => setVelocity(motion, value)}
281
+ onJogStart={(motion, axis, direction) => startJogging(motion, axis, direction)}
282
+ onJogStop={() => stopJogging()}
283
+ increments={{
284
+ steps: { translate: [0.1, 1, 5, 10], rotate: [0.001, 0.01, 0.05] },
285
+ onStep: (motion, axis, direction, distance) =>
286
+ jogStep(motion, axis, direction, distance),
287
+ }}
288
+ joints={{
289
+ joints: jointValues.map((value, index) => ({
290
+ value,
291
+ min: limits[index].lower_limit,
292
+ max: limits[index].upper_limit,
293
+ })),
294
+ velocity: { value: jointRadPerSec, min: 0.02, max: 1 },
295
+ onVelocityChange: setJointVelocity,
296
+ onJogStart: (index, direction) => startJointJogging(index, direction),
297
+ onJogStop: () => stopJogging(),
298
+ }}
299
+ moveTo={{
300
+ getCurrentPose: () => currentTcpPose(),
301
+ onTargetChange: (pose) => planAndLoad(pose), // or drop the plan (null)
302
+ state: trajectoryState, // "planning" | "planned" | "moving" | "stopping" | "idle"
303
+ error,
304
+ onMoveStart: () => startTrajectory(),
305
+ onMoveStop: () => pauseTrajectory(),
306
+ }}
307
+ />
308
+ ```
309
+
248
310
  ### 3D Visualization & Robotics
249
311
 
250
312
  3D components for robot visualization. They render inside the `<Canvas>` of React Three Fiber.
@@ -359,7 +421,7 @@ pnpm playground:preview # serves playground/dist on http://localhost:4180
359
421
 
360
422
  Vite reads these values when it starts (see [A NOVA instance](#a-nova-instance)). `CELL_ID` in the environment selects the cell (default `cell`). The cell needs a robot: without a motion group, the playground shows `NoMotionGroupModal`.
361
423
 
362
- The pages are Jogging, Joint limits, Safety and collisions, Robot models and Building blocks. Each page combines parts that work together. The app menu of the `AppHeader` switches the pages, and the URL selects the page and the motion group, for example `?page=jogging&motionGroup=0@ur5e`. The dev server uses React StrictMode, so a part that leaves a connection open shows up.
424
+ The pages are Jogging, Joint limits, Safety and collisions, Robot models, Layouts and Building blocks. Each page combines parts that work together. Layouts puts `RobotControlPanel` and `CurrentPoseBar` over the robot's 3D view as the Figma design does; Building blocks shows the smaller parts alone. The app menu of the `AppHeader` switches the pages, and the URL selects the page and the motion group, for example `?page=jogging&motionGroup=0@ur5e`. The dev server uses React StrictMode, so a part that leaves a connection open shows up.
363
425
 
364
426
  The built playground contains the URL and the access token of the instance: never publish or upload `playground/dist`.
365
427
 
package/dist/3d.cjs CHANGED
@@ -1 +1 @@
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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./chunks/Robot-B3vKEVXP.cjs"),t=require("./chunks/JoggingGizmo-DGbFLWgT.cjs"),i=require("./chunks/JoggingGizmoOrientation-dzned4f4.cjs"),r=require("./chunks/RobotControlPanel-BXtBHEe9.cjs"),e=require("./chunks/Pose3-DIyg-aZA.cjs");exports.CollisionSceneRenderer=o.CollisionSceneRenderer;exports.JointLimitGizmo=o.JointLimitGizmo;exports.LinearAxis=o.LinearAxis;exports.MotionGroupVisualizer=o.MotionGroupVisualizer;exports.MotionGroupVisualizerExact=o.MotionGroupVisualizerExact;exports.PresetEnvironment=o.PresetEnvironment;exports.Robot=o.Robot;exports.SafetyZonesRenderer=o.SafetyZonesRenderer;exports.SupportedLinearAxis=o.SupportedLinearAxis;exports.SupportedLinearAxisExact=o.SupportedLinearAxisExact;exports.SupportedRobot=o.SupportedRobot;exports.SupportedRobotExact=o.SupportedRobotExact;exports.TrajectoryRenderer=o.TrajectoryRenderer;exports.defaultGetModel=o.defaultGetModel;exports.JoggingGizmo=t.JoggingGizmo;exports.JoggingGizmoOrientation=i.JoggingGizmoOrientation;exports.RobotControlPanel=r.RobotControlPanel;exports.Pose3=e.Pose3;exports.ValueInterpolator=e.ValueInterpolator;exports.parseRotationToQuaternion=e.parseRotationToQuaternion;exports.quaternionToRotationVector=e.quaternionToRotationVector;exports.useSmoothedMotionState=e.useSmoothedMotionState;
package/dist/3d.d.ts CHANGED
@@ -7,6 +7,7 @@ export { JoggingGizmo, type JoggingGizmoProps, } from "./components/jogging/gizm
7
7
  export { JoggingGizmoOrientation, type JoggingGizmoOrientationProps, } from "./components/jogging/gizmo/JoggingGizmoOrientation";
8
8
  export type { JogAxis, JogDirection, JogHandle, } from "./components/jogging/jogHandle";
9
9
  export type { JogControlsProps } from "./components/jogging/useJogControls";
10
+ export { type JogMotion, RobotControlPanel, type RobotControlIncrements, type RobotControlJogMode, type RobotControlJoint, type RobotControlJoints, type RobotControlMoveState, type RobotControlMoveTo, type RobotControlOption, type RobotControlPanelProps, type RobotControlPose, type RobotControlSelect, type RobotControlTab, type RobotControlVelocity, } from "./components/robotControl/RobotControlPanel";
10
11
  export * from "./components/robots/LinearAxis";
11
12
  export * from "./components/robots/MotionGroupVisualizer";
12
13
  export * from "./components/robots/Robot";
@@ -15,3 +16,5 @@ export * from "./components/robots/SupportedLinearAxis";
15
16
  export * from "./components/robots/SupportedRobot";
16
17
  export { ValueInterpolator, type InterpolationOptions, } from "./components/utils/interpolation";
17
18
  export * from "./components/utils/useSmoothedMotionState";
19
+ export { Pose3 } from "./lib/Pose3";
20
+ export { parseRotationToQuaternion, quaternionToRotationVector, } from "./lib/rotation";
package/dist/3d.js CHANGED
@@ -1,22 +1,29 @@
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";
1
+ import { C as a, J as t, L as r, M as s, a as i, P as n, R as p, S as u, b as d, c as m, d as x, e as R, T as l, f as S } from "./chunks/Robot-DXhaz1tq.js";
2
+ import { J as c } from "./chunks/JoggingGizmo-SuS9MmL7.js";
3
+ import { J as G } from "./chunks/JoggingGizmoOrientation-x_crT_64.js";
4
+ import { R as b } from "./chunks/RobotControlPanel-BiLexAWI.js";
5
+ import { P as L, V as M, p as P, q as V, a as E } from "./chunks/Pose3-pocKPrHN.js";
3
6
  export {
4
7
  a as CollisionSceneRenderer,
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,
8
+ c as JoggingGizmo,
9
+ G as JoggingGizmoOrientation,
10
+ t as JointLimitGizmo,
11
+ r as LinearAxis,
12
+ s as MotionGroupVisualizer,
13
+ i as MotionGroupVisualizerExact,
14
+ L as Pose3,
15
+ n as PresetEnvironment,
16
+ p as Robot,
17
+ b as RobotControlPanel,
18
+ u as SafetyZonesRenderer,
19
+ d as SupportedLinearAxis,
15
20
  m as SupportedLinearAxisExact,
16
21
  x as SupportedRobot,
17
- g as SupportedRobotExact,
18
- R as TrajectoryRenderer,
19
- f as ValueInterpolator,
20
- c as defaultGetModel,
21
- z as useSmoothedMotionState
22
+ R as SupportedRobotExact,
23
+ l as TrajectoryRenderer,
24
+ M as ValueInterpolator,
25
+ S as defaultGetModel,
26
+ P as parseRotationToQuaternion,
27
+ V as quaternionToRotationVector,
28
+ E as useSmoothedMotionState
22
29
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/CurrentPoseBar-CyHUWmjM.cjs");exports.CurrentPoseBar=e.CurrentPoseBar;exports.default=e.CurrentPoseBar;
@@ -0,0 +1,2 @@
1
+ export { CurrentPoseBar, CurrentPoseBar as default, type CurrentPoseBarProps, type CurrentPoseBarState, type EulerConvention, type OrientationFormat, } from "../components/currentPoseBar/CurrentPoseBar";
2
+ export type { RobotControlOption, RobotControlPose, RobotControlSelect, } from "../components/robotControl/RobotControlPanel";
@@ -0,0 +1,5 @@
1
+ import { C as e, C as o } from "../chunks/CurrentPoseBar-zTZi68tY.js";
2
+ export {
3
+ e as CurrentPoseBar,
4
+ o as default
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../chunks/JoggingButtons-CbL-5LMK.cjs");exports.JoggingButtons=t.JoggingButtons;exports.default=t.JoggingButtons;
@@ -0,0 +1,3 @@
1
+ export { JoggingButtons, JoggingButtons as default, type JoggingButtonsProps, } from "../components/jogging/JoggingButtons";
2
+ export type { JogAxis, JogDirection, JogHandle, } from "../components/jogging/jogHandle";
3
+ export type { JogControlsProps } from "../components/jogging/useJogControls";
@@ -0,0 +1,5 @@
1
+ import { J as a, J as g } from "../chunks/JoggingButtons-CXaozFVz.js";
2
+ export {
3
+ a as JoggingButtons,
4
+ g as default
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("../chunks/JoggingGizmo-DGbFLWgT.cjs"),o=require("../chunks/JoggingGizmoOrientation-dzned4f4.cjs");exports.JoggingGizmo=i.JoggingGizmo;exports.default=i.JoggingGizmo;exports.JoggingGizmoOrientation=o.JoggingGizmoOrientation;
@@ -0,0 +1,4 @@
1
+ export { JoggingGizmo, JoggingGizmo as default, type JoggingGizmoProps, } from "../components/jogging/gizmo/JoggingGizmo";
2
+ export { JoggingGizmoOrientation, type JoggingGizmoOrientationProps, } from "../components/jogging/gizmo/JoggingGizmoOrientation";
3
+ export type { JogAxis, JogDirection, JogHandle, } from "../components/jogging/jogHandle";
4
+ export type { JogControlsProps } from "../components/jogging/useJogControls";
@@ -0,0 +1,7 @@
1
+ import { J as i, J as a } from "../chunks/JoggingGizmo-SuS9MmL7.js";
2
+ import { J as t } from "../chunks/JoggingGizmoOrientation-x_crT_64.js";
3
+ export {
4
+ i as JoggingGizmo,
5
+ t as JoggingGizmoOrientation,
6
+ a as default
7
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/JoggingJointSlider-R3_A9Ppj.cjs");exports.JoggingJointSlider=e.JoggingJointSlider;exports.default=e.JoggingJointSlider;
@@ -0,0 +1,2 @@
1
+ export { JoggingJointSlider, JoggingJointSlider as default, type JoggingJointSliderProps, } from "../components/jogging/joint/JoggingJointSlider";
2
+ export type { JogDirection } from "../components/jogging/jogHandle";
@@ -0,0 +1,5 @@
1
+ import { J as a, J as e } from "../chunks/JoggingJointSlider-CZ-k6XCa.js";
2
+ export {
3
+ a as JoggingJointSlider,
4
+ e as default
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../chunks/RobotControlPanel-BXtBHEe9.cjs");exports.RobotControlPanel=o.RobotControlPanel;exports.default=o.RobotControlPanel;
@@ -0,0 +1,2 @@
1
+ export { type JogMotion, RobotControlPanel, RobotControlPanel as default, type RobotControlIncrements, type RobotControlJogMode, type RobotControlJoint, type RobotControlJoints, type RobotControlMoveState, type RobotControlMoveTo, type RobotControlOption, type RobotControlPanelProps, type RobotControlPose, type RobotControlSelect, type RobotControlTab, type RobotControlVelocity, } from "../components/robotControl/RobotControlPanel";
2
+ export type { JogAxis, JogDirection, JogHandle, } from "../components/jogging/jogHandle";
@@ -0,0 +1,5 @@
1
+ import { R as t, R as e } from "../chunks/RobotControlPanel-BiLexAWI.js";
2
+ export {
3
+ t as RobotControlPanel,
4
+ e as default
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/RobotHeader-Daft80jq.cjs");exports.RobotHeader=e.RobotHeader;exports.default=e.RobotHeader;
@@ -0,0 +1,4 @@
1
+ export type { AppItem } from "../components/AppHeader";
2
+ export type { RobotControlOption, RobotControlSelect, } from "../components/robotControl/RobotControlPanel";
3
+ export { RobotHeader, RobotHeader as default, type RobotHeaderActivation, type RobotHeaderActivationState, type RobotHeaderProps, } from "../components/robotHeader/RobotHeader";
4
+ export type { SafetyBarProps } from "../SafetyBar/SafetyBar";
@@ -0,0 +1,5 @@
1
+ import { R as o, R as r } from "../chunks/RobotHeader-DDmDkUoV.js";
2
+ export {
3
+ o as RobotHeader,
4
+ r as default
5
+ };
@@ -1 +1 @@
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;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/SafetyBar-BVk-SH_0.cjs");exports.SafetyBar=e.SafetyBar;exports.default=e.SafetyBar;
@@ -1,4 +1,4 @@
1
- import { S as f, S as r } from "../chunks/SafetyBar-B9OQgerp.js";
1
+ import { S as f, S as r } from "../chunks/SafetyBar-RkN0I1Cb.js";
2
2
  export {
3
3
  f as SafetyBar,
4
4
  r as default
@@ -0,0 +1 @@
1
+ "use strict";const t=require("react/jsx-runtime"),$=require("@mui/material/Divider"),Z=require("@mui/material/IconButton"),b=require("@mui/material/Stack"),G=require("@mui/material/Tooltip"),R=require("@mui/material/Typography"),J=require("@wandelbots/icons/ContentCopyFilled"),H=require("@wandelbots/icons/Settings"),d=require("react"),F=require("react-i18next"),K=require("./externalizeComponent-BdxGBLIv.cjs"),y=require("./useEveryFrame-dmPPTKtT.cjs"),ee=require("./SmallSelect-Dcsd7_6_.cjs"),ne=require("@mui/material/ListSubheader"),te=require("@mui/material/MenuItem"),re=require("@mui/material/Popover"),oe=require("@wandelbots/mui"),ie=require("@mui/material/Box"),D=["XYZ","XZY","YXZ","YZX","ZXY","ZYX","XYX","XZX","YXY","YZY","ZXZ","ZYZ"],ae=[...D.map(e=>`EULER_ANGLES_INTRINSIC_${e}`),...D.map(e=>`EULER_ANGLES_EXTRINSIC_${e}`)];function N(e){const n=e.slice(e.lastIndexOf("_")+1);return{intrinsic:e.includes("_INTRINSIC_"),axes:[...n]}}function z([e,n,r]){const o=Math.hypot(e,n,r);if(o<1e-12)return[0,0,0,1];const c=Math.sin(o/2)/o;return[e*c,n*c,r*c,Math.cos(o/2)]}const U={X:0,Y:1,Z:2};function se(e){return e>Math.PI?e-2*Math.PI:e<-Math.PI?e+2*Math.PI:e}function le(e,n){const{intrinsic:r,axes:o}=N(n),c=r?[...o].reverse():o,i=U[c[0]],s=U[c[1]],p=c[0]===c[2],a=p?3-i-s:U[c[2]],x=(i-s)*(s-a)*(a-i)/2,q=Math.hypot(...e)||1,[L,A,I,m]=e.map(V=>V/q),S=[L,A,I],j=S[i]??0,f=S[s]??0,v=(S[a]??0)*x,[T,g,O,_]=p?[m,j,f,v]:[m-f,j+v,f+m,v-j];let C=2*Math.atan2(Math.hypot(O,_),Math.hypot(T,g));const E=Math.atan2(g,T),P=Math.atan2(_,O);let l,u;const h=1e-7;return Math.abs(C)<=h?(l=2*E,u=0):Math.abs(C-Math.PI)<=h?(l=-2*P,u=0):(l=E-P,u=E+P),p||(u*=x,C-=Math.PI/2),(r?[u,C,l]:[l,C,u]).map(se)}function X({children:e}){return t.jsx(ne,{children:e})}X.muiSkipListHighlight=!0;function ce({value:e,onChange:n}){const{t:r}=F.useTranslation(),o=d.useId(),c=s=>{const{intrinsic:p,axes:a}=N(s);return r(p?"CurrentPose.EulerConvention.Intrinsic.lb":"CurrentPose.EulerConvention.Extrinsic.lb",{axes:a.join("")})},i=s=>ae.filter(p=>N(p).intrinsic===s).map(p=>t.jsx(te,{value:p,children:N(p).axes.join("")},p));return t.jsxs(oe.AdornedSelect,{label:r("CurrentPose.EulerConvention.lb"),labelId:o,value:e,renderValue:s=>c(s),onChange:s=>n(s.target.value),children:[t.jsx(X,{children:r("CurrentPose.EulerConvention.Intrinsic.hlb")}),i(!0),t.jsx(X,{children:r("CurrentPose.EulerConvention.Extrinsic.hlb")}),i(!1)]})}const ue=d.memo(pe,(e,n)=>e.anchor===n.anchor&&e.open===n.open&&e.onClose===n.onClose&&e.onChange===n.onChange&&e.format.type===n.format.type&&e.format.angleUnit===n.format.angleUnit&&e.format.eulerConvention===n.format.eulerConvention);function pe({anchor:e,open:n,onClose:r,format:o,onChange:c}){const{t:i}=F.useTranslation(),s=i("CurrentPose.OrientationFormat.ti"),p=a=>c({...o,...a});return t.jsxs(re,{open:n,anchorEl:e,onClose:r,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"},slotProps:{paper:{role:"dialog","aria-label":s,sx:a=>{var x;return{width:"264px",padding:"16px",display:"flex",flexDirection:"column",gap:"16px",borderRadius:"10px",border:`1px solid ${a.palette.divider}`,background:(x=a.palette.backgroundPaperElevation)==null?void 0:x[2],backgroundImage:"none",boxShadow:a.shadows[16]}}}},children:[t.jsx(R,{variant:"subtitle2",color:"text.primary",children:s}),t.jsx($,{}),t.jsxs(b,{sx:{gap:"8px"},children:[t.jsx(y.PanelSelect,{label:i("CurrentPose.Format.lb"),options:[{id:"rotationVector",label:i("CurrentPose.Format.RotationVector.lb")},{id:"eulerAngles",label:i("CurrentPose.Format.EulerAngles.lb")},{id:"quaternion",label:i("CurrentPose.Format.Quaternion.lb")}],value:o.type,onChange:a=>p({type:a}),disabled:!1}),o.type!=="quaternion"&&t.jsx(y.PanelSelect,{label:i("CurrentPose.AngleUnit.lb"),options:[{id:"rad",label:i("CurrentPose.AngleUnit.Radians.lb")},{id:"deg",label:i("CurrentPose.AngleUnit.Degrees.lb")}],value:o.angleUnit,onChange:a=>p({angleUnit:a}),disabled:!1}),o.type==="eulerAngles"&&t.jsx(ce,{value:o.eulerConvention,onChange:a=>p({eulerConvention:a})})]})]})}const de={type:"rotationVector",angleUnit:"rad",eulerConvention:"EULER_ANGLES_EXTRINSIC_XYZ"};function w(e,n){const r=e.toFixed(n);return Number(r)===0?0 .toFixed(n):r}function B(e,n){return n==="deg"?`${w(e*180/Math.PI,1)}°`:`${w(e,3)} rad`}function xe(e){switch(e.type){case"quaternion":return["Qx","Qy","Qz","Qw"];case"eulerAngles":return N(e.eulerConvention).axes.map(n=>`R${n.toLowerCase()}`);default:return["Rx","Ry","Rz"]}}function he(e,n){switch(n.type){case"quaternion":return z(e).map(r=>w(r,3));case"eulerAngles":return le(z(e),n.eulerConvention).map(r=>B(r,n.angleUnit));default:return e.map(r=>B(r,n.angleUnit))}}function ge(e,n){const r=["x","y","z"].map((i,s)=>({label:i.toUpperCase(),value:e?w(e.position[s]??0,1):"–",kind:i})),o=e?he(e.orientation,n):null,c=xe(n).map((i,s)=>({label:i,value:(o==null?void 0:o[s])??"–",kind:"orientation"}));return[...r,...c]}const Ce={KIND_UNKNOWN:"success.main",RUNNING:"info.main",PAUSED_NEAR_COLLISION:"warning.main",PAUSED_NEAR_JOINT_LIMIT:"warning.main",PAUSED_NEAR_SINGULARITY:"warning.main"};function be({state:e,error:n}){const{t:r}=F.useTranslation(),o=e??"KIND_UNKNOWN",c=n||r(`Jogging.StreamStateSection.${o}.lb`),i=n?"error.main":Ce[o]??"text.secondary";return t.jsx(G,{title:n?c:"",placement:"top-end",children:t.jsxs(b,{direction:"row","data-testid":n?"JOG_ERROR":o,sx:{gap:"5px",alignItems:"center",minWidth:0},children:[t.jsx(ie,{sx:{width:"6px",height:"6px",borderRadius:"50%",flexShrink:0,bgcolor:i}}),t.jsx(R,{variant:"caption",noWrap:!0,sx:{color:i,letterSpacing:"0.17px"},children:c})]})})}const k={letterSpacing:"0.17px"},me={x:"error.main",y:"success.main",z:"info.main",orientation:"grey.600"};function Q({children:e,id:n}){return t.jsx(R,{id:n,variant:"caption",color:"text.secondary",noWrap:!0,sx:k,children:e})}function W({label:e,...n}){const r=d.useId();return t.jsxs(b,{direction:"row",sx:{gap:"8px",alignItems:"center"},children:[t.jsx(Q,{id:r,children:e}),t.jsx(ee.SmallSelect,{labelId:r,width:"172px",...n})]})}const M=()=>t.jsx($,{orientation:"vertical",flexItem:!1,sx:{height:"16px"}}),ve=K.externalizeComponent(({getCurrentPose:e,tcp:n,frame:r,state:o,error:c,orientationFormat:i,onOrientationFormatChange:s,sx:p})=>{const{t:a}=F.useTranslation(),x=d.useRef(null),[q,L]=d.useState(de),A=i??q,[I,m]=d.useState(null),{copied:S,copy:j}=y.useCopyText(),f=y.useEveryFrame(()=>JSON.stringify(e()),!0),v=JSON.parse(f),T=ge(v,A),g=d.useRef({tcp:n,frame:r,onOrientationFormatChange:s});g.current={tcp:n,frame:r,onOrientationFormatChange:s};const O=d.useCallback(l=>{var u;return(u=g.current.tcp)==null?void 0:u.onChange(l)},[]),_=d.useCallback(l=>{var u;return(u=g.current.frame)==null?void 0:u.onChange(l)},[]),C=d.useCallback(l=>{var u,h;L(l),(h=(u=g.current).onOrientationFormatChange)==null||h.call(u,l)},[]),E=d.useCallback(()=>m(null),[]);function P(){const l=e();l&&j(y.poseToText(l))}return t.jsxs(b,{ref:x,direction:"row","data-testid":"current-pose-bar",sx:[l=>{var u;return{alignItems:"center",justifyContent:"space-between",gap:"12px",padding:"8px 16px",minHeight:"54px",boxSizing:"border-box",borderRadius:"10px",border:`1px solid ${l.palette.divider}`,background:(u=l.palette.backgroundPaperElevation)==null?void 0:u[2],boxShadow:l.shadows[16]}},...Array.isArray(p)?p:[p]],children:[t.jsxs(b,{direction:"row",sx:{gap:"12px",alignItems:"center",minWidth:0},children:[t.jsx(Q,{children:a("CurrentPose.Title.lb")}),t.jsx(Z,{"aria-label":a("CurrentPose.OrientationFormat.ti"),"aria-haspopup":"dialog","aria-expanded":I!==null,onClick:()=>m(x.current),sx:{padding:"3px",margin:"-3px",color:"text.secondary"},children:t.jsx(H.Settings,{})}),n&&t.jsxs(t.Fragment,{children:[t.jsx(M,{}),t.jsx(W,{label:a("RobotControl.Tcp.lb"),options:n.options,value:n.value,onChange:O})]}),r&&t.jsxs(t.Fragment,{children:[t.jsx(M,{}),t.jsx(W,{label:a("CurrentPose.RelativeTo.lb"),options:r.options,value:r.value,onChange:_})]}),t.jsx(M,{}),t.jsx(b,{direction:"row","data-testid":"current-pose-values",sx:{gap:"12px",alignItems:"center",minWidth:0,overflow:"hidden"},children:T.map(({label:l,value:u,kind:h},Y)=>t.jsxs(b,{direction:"row",sx:{gap:h==="orientation"?"1px":"2px"},children:[t.jsx(R,{variant:"caption",sx:{...k,color:me[h]},children:l}),t.jsx(R,{variant:"caption",noWrap:!0,sx:{...k,color:"text.secondary",fontVariantNumeric:"tabular-nums"},children:u})]},Y))}),t.jsx(G,{title:a("CurrentPose.Copied.lb"),open:S,disableHoverListener:!0,placement:"top",children:t.jsx("span",{children:t.jsx(Z,{"aria-label":a("CurrentPose.Copy.bt"),onClick:P,disabled:!v,sx:{width:"30px",height:"30px",padding:"5px",borderRadius:"10px",color:"text.secondary","& svg":{width:"20px",height:"20px"}},children:t.jsx(J.ContentCopyFilled,{})})})})]}),t.jsx(be,{state:o,error:c}),t.jsx(ue,{anchor:I,open:I!==null,onClose:E,format:A,onChange:C})]})});exports.CurrentPoseBar=ve;