@wandelbots/wandelbots-js-react-components 6.4.0-pr.revamp.667.d45cc87 → 6.4.0-pr.revamp.667.df588e4

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 (121) hide show
  1. package/README.md +23 -5
  2. package/dist/3d.cjs +1 -1
  3. package/dist/3d.d.ts +3 -0
  4. package/dist/3d.js +22 -19
  5. package/dist/CurrentPose/index.cjs +1 -1
  6. package/dist/CurrentPose/index.js +1 -1
  7. package/dist/CurrentPoseBar/index.cjs +1 -1
  8. package/dist/CurrentPoseBar/index.js +1 -1
  9. package/dist/JoggingButtons/index.cjs +1 -1
  10. package/dist/JoggingButtons/index.js +1 -1
  11. package/dist/JoggingGizmo/index.cjs +1 -1
  12. package/dist/JoggingGizmo/index.d.ts +1 -0
  13. package/dist/JoggingGizmo/index.js +2 -2
  14. package/dist/JoggingJointSlider/index.cjs +1 -1
  15. package/dist/JoggingJointSlider/index.js +1 -1
  16. package/dist/RobotControl/index.cjs +1 -1
  17. package/dist/RobotControl/index.js +1 -1
  18. package/dist/RobotControlPanel/index.cjs +1 -1
  19. package/dist/RobotControlPanel/index.js +1 -1
  20. package/dist/RobotHeader/index.cjs +1 -1
  21. package/dist/RobotHeader/index.js +2 -2
  22. package/dist/RobotScene/index.cjs +1 -1
  23. package/dist/RobotScene/index.js +1 -1
  24. package/dist/RobotView/index.cjs +1 -0
  25. package/dist/RobotView/index.d.ts +4 -0
  26. package/dist/RobotView/index.js +9 -0
  27. package/dist/SafetyBar/index.cjs +1 -1
  28. package/dist/SafetyBar/index.js +1 -1
  29. package/dist/chunks/ConnectedMotionGroup-BB2TrzPw.js +1824 -0
  30. package/dist/chunks/ConnectedMotionGroup-CJGbzAzI.cjs +3 -0
  31. package/dist/chunks/{CurrentPose-CFxf6D2n.cjs → CurrentPose-B2k1YoBx.cjs} +1 -1
  32. package/dist/chunks/{CurrentPose-e37CnT1C.js → CurrentPose-CMkPnaXN.js} +2 -2
  33. package/dist/chunks/CurrentPoseBar-C4wB482_.cjs +1 -0
  34. package/dist/chunks/{CurrentPoseBar-BmsPnLVP.js → CurrentPoseBar-GhVif6kH.js} +9 -8
  35. package/dist/chunks/{JoggingButtons-I_Y70pg8.js → JoggingButtons-D4S2oJGt.js} +1 -1
  36. package/dist/chunks/{JoggingButtons-9nBrKbUa.cjs → JoggingButtons-nXLqJLIr.cjs} +1 -1
  37. package/dist/chunks/{JoggingGizmo-DBpDIbzl.js → JoggingGizmo-9wEBSe1P.js} +301 -280
  38. package/dist/chunks/JoggingGizmo-BJ3wDpAJ.cjs +1 -0
  39. package/dist/chunks/{JoggingGizmoOrientation-BwkW76fE.cjs → JoggingGizmoOrientation-D9VS6nag.cjs} +1 -1
  40. package/dist/chunks/{JoggingGizmoOrientation-DU97IUWq.js → JoggingGizmoOrientation-DYeHwowd.js} +1 -1
  41. package/dist/chunks/{JoggingJointSlider-DHBB7MwU.cjs → JoggingJointSlider-D7AsxkrT.cjs} +1 -1
  42. package/dist/chunks/{JoggingJointSlider-DeMqm9Jh.js → JoggingJointSlider-DQneQhXH.js} +1 -1
  43. package/dist/chunks/JoggingRefusedError-2q4x_fDF.cjs +1 -0
  44. package/dist/chunks/JoggingRefusedError-M954yLQO.js +23 -0
  45. package/dist/chunks/PoseTransformer-C_EfofnJ.cjs +1 -0
  46. package/dist/chunks/PoseTransformer-MLAm4_Ad.js +364 -0
  47. package/dist/chunks/{Robot-DULi-BRh.js → Robot-B1j3VKwk.js} +1 -1
  48. package/dist/chunks/{Robot-DYSBpijG.cjs → Robot-v8trFpVT.cjs} +1 -1
  49. package/dist/chunks/RobotActivation-Bb0oNSBN.cjs +1 -0
  50. package/dist/chunks/RobotActivation-C0rrwpQZ.js +115 -0
  51. package/dist/chunks/RobotControl-4ma8Yxer.cjs +1 -0
  52. package/dist/chunks/RobotControl-pDmJH_ah.js +282 -0
  53. package/dist/chunks/{RobotControlPanel-CzhYCBAm.js → RobotControlPanel-BE-C6lYj.js} +252 -249
  54. package/dist/chunks/RobotControlPanel-CIaClXfc.cjs +1 -0
  55. package/dist/chunks/{RobotScene-BtgO_xot.js → RobotScene-CldpfxRT.js} +381 -356
  56. package/dist/chunks/RobotScene-ztJZ4EKT.cjs +1 -0
  57. package/dist/chunks/RobotView-BTL3FAIE.js +158 -0
  58. package/dist/chunks/RobotView-wketM8bf.cjs +1 -0
  59. package/dist/chunks/externalizeComponent-BW1UV6Gh.cjs +2 -0
  60. package/dist/chunks/{externalizeComponent-CPAVvPKk.js → externalizeComponent-TgclPxwg.js} +26 -10
  61. package/dist/chunks/json-3cqBD7UQ.js +18 -0
  62. package/dist/chunks/json-Bd6uGfgP.cjs +1 -0
  63. package/dist/chunks/loadRobotSession-Br55rLAm.cjs +1 -0
  64. package/dist/chunks/loadRobotSession-CbIAb7KE.js +2721 -0
  65. package/dist/chunks/poseText-BXUaQWnK.cjs +1 -0
  66. package/dist/chunks/poseText-pg4cxE8R.js +41 -0
  67. package/dist/chunks/robotActivationOf-BKoP11GA.js +368 -0
  68. package/dist/chunks/robotActivationOf-vhmAEc3e.cjs +1 -0
  69. package/dist/chunks/{robotSafetyOf-P4RgO2LQ.js → robotSafetyOf-BmZMcgc_.js} +2 -2
  70. package/dist/chunks/robotSafetyOf-CZBuhHgO.cjs +1 -0
  71. package/dist/chunks/useEveryFrame-D04ygIe7.js +116 -0
  72. package/dist/chunks/useEveryFrame-NeKiPXY-.cjs +1 -0
  73. package/dist/chunks/useSmoothedMotionState-B9WO73k0.cjs +1 -0
  74. package/dist/chunks/useSmoothedMotionState-BSSV8aZN.js +202 -0
  75. package/dist/chunks/useWebGLRenderer-BozrbZz-.js +45 -0
  76. package/dist/chunks/useWebGLRenderer-CtddVDDb.cjs +1 -0
  77. package/dist/components/jogging/JoggingRefusedError.d.ts +19 -0
  78. package/dist/components/jogging/JoggingStore.d.ts +98 -3
  79. package/dist/components/jogging/gizmo/JoggingGizmo.d.ts +8 -1
  80. package/dist/components/robotControl/JogArea.d.ts +5 -2
  81. package/dist/components/robotControl/useRobotControlProps.d.ts +6 -0
  82. package/dist/components/robotView/RobotCanvas.d.ts +42 -0
  83. package/dist/components/robotView/RobotView.d.ts +23 -0
  84. package/dist/components/robotView/WebGLUnavailable.d.ts +5 -0
  85. package/dist/components/utils/converters.d.ts +0 -2
  86. package/dist/components/utils/json.d.ts +4 -0
  87. package/dist/components/utils/useWebGLRenderer.d.ts +32 -0
  88. package/dist/components/utils/webglSupport.d.ts +11 -0
  89. package/dist/core.cjs +1 -1
  90. package/dist/core.d.ts +1 -0
  91. package/dist/core.js +78 -73
  92. package/dist/index.cjs +1 -1
  93. package/dist/index.js +104 -96
  94. package/dist/lib/incrementalCartesianMotion.d.ts +2 -2
  95. package/dist/lib/poseMath.d.ts +51 -0
  96. package/dist/lib/robotSession/RobotActivation.d.ts +13 -2
  97. package/dist/lib/robotSession/RobotSession.d.ts +19 -1
  98. package/dist/nats.cjs +1 -1
  99. package/dist/nats.js +1 -1
  100. package/dist/session.cjs +1 -0
  101. package/dist/session.d.ts +22 -0
  102. package/dist/session.js +44 -0
  103. package/package.json +6 -1
  104. package/dist/chunks/CurrentPoseBar-ZUhFaVdM.cjs +0 -1
  105. package/dist/chunks/JoggingGizmo-DtWw6KWg.cjs +0 -1
  106. package/dist/chunks/PoseTransformer-dP4nzrPG.cjs +0 -1
  107. package/dist/chunks/PoseTransformer-tafab65c.js +0 -454
  108. package/dist/chunks/RobotControl-CI99-2nW.js +0 -286
  109. package/dist/chunks/RobotControl-DDNDc-aE.cjs +0 -1
  110. package/dist/chunks/RobotControlPanel-DHQga5uu.cjs +0 -1
  111. package/dist/chunks/RobotScene-irOI2iEa.cjs +0 -1
  112. package/dist/chunks/converters-BsXgcxCW.cjs +0 -1
  113. package/dist/chunks/converters-D9KpJ2HD.js +0 -47
  114. package/dist/chunks/externalizeComponent-CkWiNBu0.cjs +0 -2
  115. package/dist/chunks/loadRobotSession-BEWsNORK.cjs +0 -3
  116. package/dist/chunks/loadRobotSession-CpOwI_86.js +0 -4389
  117. package/dist/chunks/robotActivationOf-DXC0E2DS.cjs +0 -1
  118. package/dist/chunks/robotActivationOf-E1GLe_69.js +0 -477
  119. package/dist/chunks/robotSafetyOf-CwfVV9__.cjs +0 -1
  120. package/dist/chunks/useEveryFrame-CHxg25f4.cjs +0 -1
  121. package/dist/chunks/useEveryFrame-DAuNawGP.js +0 -155
package/README.md CHANGED
@@ -17,7 +17,7 @@ pnpm add @wandelbots/wandelbots-js-react-components \
17
17
  @wandelbots/mui mobx mobx-react-lite
18
18
  ```
19
19
 
20
- The 3D parts need three.js and React Three Fiber in addition. If you don't need 3D rendering in your application, always import from `/core`.
20
+ The 3D parts need three.js and React Three Fiber in addition. `/core` has the parts without 3D:
21
21
 
22
22
  ```typescript
23
23
  import {
@@ -41,6 +41,8 @@ pnpm add three three-stdlib @react-three/fiber @react-three/drei
41
41
 
42
42
  You can also import from the top-level package, but then you'll need to provide all optional dependencies.
43
43
 
44
+ An app that installs no three.js imports from `/session` and from the entry points of single components instead of `/core`, see [Without three.js or without React](#without-threejs-or-without-react).
45
+
44
46
  The parts use the theme of your app. Create it with `createNovaMuiTheme` of `@wandelbots/mui`:
45
47
 
46
48
  ```tsx
@@ -66,7 +68,8 @@ Browse the full icon set at https://wandelbotsgmbh.github.io/nova-design-system/
66
68
  **Available Entry Points:**
67
69
 
68
70
  - **`.`** (Main) — All components. Requires the peer dependencies of `/core` and `/3d`.
69
- - **`/core`** — The parts without 3D (jogging, `SafetyBar`, `AppHeader`, `LoadingCover`, `NoMotionGroupModal`), the NOVA connections and `JoggingStore`, the motion state helpers and `i18n`.
71
+ - **`/core`** — The parts without 3D (jogging, `SafetyBar`, `AppHeader`, `LoadingCover`, `NoMotionGroupModal`), the NOVA connections and `JoggingStore`, the motion state helpers and `i18n`. Draws nothing in 3D, but still needs three.js installed (see [Without three.js or without React](#without-threejs-or-without-react)).
72
+ - **`/session`** — The library without React: a robot of a NOVA cell, loaded and connected (`loadRobotSession`, `RobotSession` with its description, live state, safety, activation, jogging and Move to), `JoggingStore`, `TrajectoryExecutionStore`, the NOVA connections (`ControllerStateStream`, `JoggerConnection`, `MotionStreamConnection`), the pose math and the motion state helpers. Loads no React, no MUI and no three.js. `/core` exports all of it as well.
70
73
  - **`/3d`** — The 3D parts (`Robot`, `MotionGroupVisualizer`, `SafetyZonesRenderer`, …). Requires in addition three, three-stdlib, @react-three/fiber and @react-three/drei.
71
74
  - **`/nats`** — A robot's live controller state over NOVA's NATS server (`natsControllerStateSource`, `natsUrlOf`), a source for `ControllerStateStream` of `/core` instead of its websocket (`controllerStateWebsocket`). Requires in addition nats.ws; no other entry point loads it.
72
75
  - **`/SafetyBar`** — Only `SafetyBar` (also as the default export).
@@ -81,6 +84,21 @@ A component's own entry point brings only what that component needs, e.g. `/Jogg
81
84
  import JoggingJointSlider from "@wandelbots/wandelbots-js-react-components/JoggingJointSlider"
82
85
  ```
83
86
 
87
+ ### Without three.js or without React
88
+
89
+ - **An app without a 3D view** needs no three.js. It takes the robot from `/session` and its parts from the component entry points that draw nothing in 3D: `/RobotHeader`, `/CurrentPose`, `/CurrentPoseBar`, `/SafetyBar`, `/JoggingButtons` and `/JoggingJointSlider`.
90
+ - **`/core` needs three.js installed**, although it draws nothing in 3D: the deprecated `ConnectedMotionGroup` that it exports gives a three.js quaternion (`mountingQuaternion`). That ends when `ConnectedMotionGroup` is removed.
91
+ - **An app without React**, or with a UI of its own, uses `/session` alone (and `/nats`). Of the peer dependencies it loads only `mobx`:
92
+
93
+ ```typescript
94
+ import { loadRobotSession } from "@wandelbots/wandelbots-js-react-components/session"
95
+
96
+ const load = loadRobotSession("https://my-instance.wandelbots.io", "0@ur5e")
97
+ const session = await load.ready
98
+ console.log(session.state.displayedTcpPose)
99
+ load.dispose()
100
+ ```
101
+
84
102
  ### Peer dependencies
85
103
 
86
104
  | Package | Version |
@@ -91,7 +109,7 @@ import JoggingJointSlider from "@wandelbots/wandelbots-js-react-components/Joggi
91
109
  | `@wandelbots/mui` | ^2 |
92
110
  | `mobx` | ^6.13.6 |
93
111
  | `mobx-react-lite` | ^4.1.0 |
94
- | `three` (only `/3d`, `/JoggingGizmo`, `/RobotControlPanel`) | >=0.182 |
112
+ | `three` (only `/3d`, `/JoggingGizmo`, `/RobotControlPanel`, and `/core` until `ConnectedMotionGroup` is removed) | >=0.182 |
95
113
  | `three-stdlib` (only `/3d`) | >=2 |
96
114
  | `@react-three/fiber` (only `/3d`, `/JoggingGizmo`, `/RobotControlPanel`) | ^9 |
97
115
  | `@react-three/drei` (only `/3d`) | ^10 |
@@ -152,7 +170,7 @@ load.dispose()
152
170
  What changes besides the names:
153
171
 
154
172
  - **Loading:** `loadRobotSession` returns at once. `load.state` ("loading", "ready", "failed") and `load.progress` tell how far it is, `load.retry()` loads again after a failure, `await load.ready` gives the session. A failed step is retried on its own, after 1 and 2 seconds unless `retryDelaysMs` says otherwise.
155
- - **Jogging comes with it:** `session.jogging` is the robot's `JoggingStore`. An app no longer opens it with `JoggerConnection.open` and `JoggingStore.loadFor`.
173
+ - **Jogging comes with it:** `session.jogging` is the robot's `JoggingStore`. An app no longer opens it with `JoggerConnection.open` and `JoggingStore.loadFor`. It starts no jog while the robot may not move (`safety.canBeMoved` is false, so also while the robot is activating): the start rejects with a `JoggingRefusedError`.
156
174
  - **Nothing happens unasked:** without `storage` the jogging settings are not kept (pass `localStorage` to keep them), and a virtual robot is activated only with `autoActivateVirtual: true`.
157
175
  - **Errors:** what the app calls rejects (`session.activation.activate()` with a `RobotModeChangeError`); what fails in the background (a jog, a message of the live state) goes to `onError`.
158
176
  - **Several robots:** load one session per robot instead of `ConnectedMotionGroup.connectMultiple`.
@@ -222,7 +240,7 @@ Manual robot control interfaces.
222
240
  - **JoggingCartesianAxisControl** - Single-axis cartesian movement
223
241
  - **JoggingJointValueControl** - Individual joint controls
224
242
  - **VelocitySlider** (and **VelocitySliderLabel**) - Speed adjustment interface
225
- - **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.
243
+ - **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. It also jogs for them: `startCartesianJogging(motion, axis, direction)` or `startJointJogging(joint, direction)` when a control is pressed and `stopJogging()` when it is let go, and `runIncrementalCartesianJog(motion, axis, direction, increment)` for one step. The store keeps the order that hold-to-jog needs: a press that ends before the jogging connection is ready moves nothing, and one step runs at a time. While the store is locked, or its owner says that the robot may not move (the option `notMoveableReason`, which a `RobotSession` gives its store), it starts no jog: the start rejects with a `JoggingRefusedError`, whose `reason.code` says why.
226
244
 
227
245
  **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.
228
246
 
package/dist/3d.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/Robot-DYSBpijG.cjs"),o=require("./chunks/RobotScene-irOI2iEa.cjs"),i=require("./chunks/JoggingGizmo-DtWw6KWg.cjs"),a=require("./chunks/JoggingGizmoOrientation-BwkW76fE.cjs"),s=require("./chunks/RobotControlPanel-DHQga5uu.cjs"),r=require("./chunks/RobotControl-DDNDc-aE.cjs"),n=require("./chunks/PoseTransformer-dP4nzrPG.cjs"),t=require("./chunks/Pose3-Ch4xVeXV.cjs");exports.CollisionSceneRenderer=e.CollisionSceneRenderer;exports.JointLimitGizmo=e.JointLimitGizmo;exports.LinearAxis=e.LinearAxis;exports.Robot=e.Robot;exports.TrajectoryRenderer=e.TrajectoryRenderer;exports.FLANGE_NODE_SUFFIX=o.FLANGE_NODE_SUFFIX;exports.JOINT_NODE_NAME=o.JOINT_NODE_NAME;exports.JOINT_REST_SUFFIX=o.JOINT_REST_SUFFIX;exports.JoggingAxes=o.JoggingAxes;exports.MODEL_ROTATION=o.MODEL_ROTATION;exports.MotionGroupVisualizer=o.MotionGroupVisualizer;exports.MotionGroupVisualizerExact=o.MotionGroupVisualizerExact;exports.PresetEnvironment=o.PresetEnvironment;exports.RobotScene=o.RobotScene;exports.RobotSceneView=o.RobotSceneView;exports.SafetyZonesRenderer=o.SafetyZonesRenderer;exports.SupportedLinearAxis=o.SupportedLinearAxis;exports.SupportedLinearAxisExact=o.SupportedLinearAxisExact;exports.SupportedRobot=o.SupportedRobot;exports.SupportedRobotExact=o.SupportedRobotExact;exports.defaultGetModel=o.defaultGetModel;exports.jointIndexOf=o.jointIndexOf;exports.revokeAllModelUrls=o.revokeAllModelUrls;exports.robotModelOf=o.robotModelOf;exports.useRobotSceneProps=o.useRobotSceneProps;exports.JoggingGizmo=i.JoggingGizmo;exports.JoggingGizmoOrientation=a.JoggingGizmoOrientation;exports.RobotControlPanel=s.RobotControlPanel;exports.RobotControl=r.RobotControl;exports.useRobotControlProps=r.useRobotControlProps;exports.ValueInterpolator=n.ValueInterpolator;exports.useSmoothedMotionState=n.useSmoothedMotionState;exports.Pose3=t.Pose3;exports.parseRotationToQuaternion=t.parseRotationToQuaternion;exports.quaternionToRotationVector=t.quaternionToRotationVector;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/Robot-v8trFpVT.cjs"),o=require("./chunks/RobotScene-ztJZ4EKT.cjs"),a=require("./chunks/JoggingGizmo-BJ3wDpAJ.cjs"),s=require("./chunks/JoggingGizmoOrientation-D9VS6nag.cjs"),u=require("./chunks/RobotControlPanel-CIaClXfc.cjs"),r=require("./chunks/RobotControl-4ma8Yxer.cjs"),n=require("./chunks/RobotView-wketM8bf.cjs"),i=require("./chunks/useSmoothedMotionState-B9WO73k0.cjs"),t=require("./chunks/Pose3-Ch4xVeXV.cjs");exports.CollisionSceneRenderer=e.CollisionSceneRenderer;exports.JointLimitGizmo=e.JointLimitGizmo;exports.LinearAxis=e.LinearAxis;exports.Robot=e.Robot;exports.TrajectoryRenderer=e.TrajectoryRenderer;exports.FLANGE_NODE_SUFFIX=o.FLANGE_NODE_SUFFIX;exports.JOINT_NODE_NAME=o.JOINT_NODE_NAME;exports.JOINT_REST_SUFFIX=o.JOINT_REST_SUFFIX;exports.JoggingAxes=o.JoggingAxes;exports.MODEL_ROTATION=o.MODEL_ROTATION;exports.MotionGroupVisualizer=o.MotionGroupVisualizer;exports.MotionGroupVisualizerExact=o.MotionGroupVisualizerExact;exports.PresetEnvironment=o.PresetEnvironment;exports.RobotScene=o.RobotScene;exports.RobotSceneView=o.RobotSceneView;exports.SafetyZonesRenderer=o.SafetyZonesRenderer;exports.SupportedLinearAxis=o.SupportedLinearAxis;exports.SupportedLinearAxisExact=o.SupportedLinearAxisExact;exports.SupportedRobot=o.SupportedRobot;exports.SupportedRobotExact=o.SupportedRobotExact;exports.defaultGetModel=o.defaultGetModel;exports.jointIndexOf=o.jointIndexOf;exports.revokeAllModelUrls=o.revokeAllModelUrls;exports.robotModelOf=o.robotModelOf;exports.useRobotSceneProps=o.useRobotSceneProps;exports.JoggingGizmo=a.JoggingGizmo;exports.JoggingGizmoOrientation=s.JoggingGizmoOrientation;exports.RobotControlPanel=u.RobotControlPanel;exports.RobotControl=r.RobotControl;exports.useRobotControlProps=r.useRobotControlProps;exports.RobotCanvas=n.RobotCanvas;exports.RobotView=n.RobotView;exports.ValueInterpolator=i.ValueInterpolator;exports.useSmoothedMotionState=i.useSmoothedMotionState;exports.Pose3=t.Pose3;exports.parseRotationToQuaternion=t.parseRotationToQuaternion;exports.quaternionToRotationVector=t.quaternionToRotationVector;
package/dist/3d.d.ts CHANGED
@@ -14,6 +14,9 @@ export { JoggingAxes, type JoggingAxesProps, } from "./components/robotScene/Jog
14
14
  export { RobotScene, type RobotSceneProps, } from "./components/robotScene/RobotScene";
15
15
  export { RobotSceneView, type RobotSceneViewProps, } from "./components/robotScene/RobotSceneView";
16
16
  export { useRobotSceneProps } from "./components/robotScene/useRobotSceneProps";
17
+ export { RobotCanvas, type RobotCanvasProps, } from "./components/robotView/RobotCanvas";
18
+ export { RobotView, type RobotViewProps, } from "./components/robotView/RobotView";
19
+ export type { WebGLUnavailableContext } from "./components/utils/useWebGLRenderer";
17
20
  export * from "./components/robots/LinearAxis";
18
21
  export * from "./components/robots/MotionGroupVisualizer";
19
22
  export * from "./components/robots/Robot";
package/dist/3d.js CHANGED
@@ -1,11 +1,12 @@
1
- import { C as a, J as t, L as r, R as s, T as n } from "./chunks/Robot-DULi-BRh.js";
2
- import { F as p, J as R, a as l, b as u, M as x, c as S, d, P as m, R as f, e as b, S as c, f as g, g as E, h as J, i as O, j as M, k as T, r as A, l as G, u as I } from "./chunks/RobotScene-BtgO_xot.js";
3
- import { J as N } from "./chunks/JoggingGizmo-DBpDIbzl.js";
4
- import { J as _ } from "./chunks/JoggingGizmoOrientation-DU97IUWq.js";
5
- import { R as V } from "./chunks/RobotControlPanel-CzhYCBAm.js";
6
- import { R as C, u as j } from "./chunks/RobotControl-CI99-2nW.js";
7
- import { V as U, a as h } from "./chunks/PoseTransformer-tafab65c.js";
8
- import { P as q, p as v, q as y } from "./chunks/Pose3-B_fLR-Wv.js";
1
+ import { C as a, J as t, L as r, R as s, T as n } from "./chunks/Robot-B1j3VKwk.js";
2
+ import { F as p, J as R, a as l, b as u, M as x, c as m, d as S, P as d, R as f, e as b, S as c, f as g, g as E, h as J, i as O, j as M, k as T, r as A, l as G, u as I } from "./chunks/RobotScene-CldpfxRT.js";
3
+ import { J as N } from "./chunks/JoggingGizmo-9wEBSe1P.js";
4
+ import { J as V } from "./chunks/JoggingGizmoOrientation-DYeHwowd.js";
5
+ import { R as C } from "./chunks/RobotControlPanel-BE-C6lYj.js";
6
+ import { R as z, u as j } from "./chunks/RobotControl-pDmJH_ah.js";
7
+ import { R as D, a as U } from "./chunks/RobotView-BTL3FAIE.js";
8
+ import { V as k, a as q } from "./chunks/useSmoothedMotionState-BSSV8aZN.js";
9
+ import { P as y, p as X, q as Q } from "./chunks/Pose3-B_fLR-Wv.js";
9
10
  export {
10
11
  a as CollisionSceneRenderer,
11
12
  p as FLANGE_NODE_SUFFIX,
@@ -13,33 +14,35 @@ export {
13
14
  l as JOINT_REST_SUFFIX,
14
15
  u as JoggingAxes,
15
16
  N as JoggingGizmo,
16
- _ as JoggingGizmoOrientation,
17
+ V as JoggingGizmoOrientation,
17
18
  t as JointLimitGizmo,
18
19
  r as LinearAxis,
19
20
  x as MODEL_ROTATION,
20
- S as MotionGroupVisualizer,
21
- d as MotionGroupVisualizerExact,
22
- q as Pose3,
23
- m as PresetEnvironment,
21
+ m as MotionGroupVisualizer,
22
+ S as MotionGroupVisualizerExact,
23
+ y as Pose3,
24
+ d as PresetEnvironment,
24
25
  s as Robot,
25
- C as RobotControl,
26
- V as RobotControlPanel,
26
+ D as RobotCanvas,
27
+ z as RobotControl,
28
+ C as RobotControlPanel,
27
29
  f as RobotScene,
28
30
  b as RobotSceneView,
31
+ U as RobotView,
29
32
  c as SafetyZonesRenderer,
30
33
  g as SupportedLinearAxis,
31
34
  E as SupportedLinearAxisExact,
32
35
  J as SupportedRobot,
33
36
  O as SupportedRobotExact,
34
37
  n as TrajectoryRenderer,
35
- U as ValueInterpolator,
38
+ k as ValueInterpolator,
36
39
  M as defaultGetModel,
37
40
  T as jointIndexOf,
38
- v as parseRotationToQuaternion,
39
- y as quaternionToRotationVector,
41
+ X as parseRotationToQuaternion,
42
+ Q as quaternionToRotationVector,
40
43
  A as revokeAllModelUrls,
41
44
  G as robotModelOf,
42
45
  j as useRobotControlProps,
43
46
  I as useRobotSceneProps,
44
- h as useSmoothedMotionState
47
+ q as useSmoothedMotionState
45
48
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/CurrentPose-CFxf6D2n.cjs"),o=require("../chunks/RobotSessionProvider--AekyPqD.cjs");exports.CurrentPose=e.CurrentPose;exports.default=e.CurrentPose;exports.useCurrentPoseProps=e.useCurrentPoseProps;exports.RobotSessionProvider=o.RobotSessionProvider;exports.useRobotSession=o.useRobotSession;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/CurrentPose-B2k1YoBx.cjs"),o=require("../chunks/RobotSessionProvider--AekyPqD.cjs");exports.CurrentPose=e.CurrentPose;exports.default=e.CurrentPose;exports.useCurrentPoseProps=e.useCurrentPoseProps;exports.RobotSessionProvider=o.RobotSessionProvider;exports.useRobotSession=o.useRobotSession;
@@ -1,4 +1,4 @@
1
- import { C as e, C as r, u as t } from "../chunks/CurrentPose-e37CnT1C.js";
1
+ import { C as e, C as r, u as t } from "../chunks/CurrentPose-CMkPnaXN.js";
2
2
  import { R as a, u as n } from "../chunks/RobotSessionProvider-TVaKGzqa.js";
3
3
  export {
4
4
  e as CurrentPose,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/CurrentPoseBar-ZUhFaVdM.cjs");exports.CurrentPoseBar=e.CurrentPoseBar;exports.default=e.CurrentPoseBar;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/CurrentPoseBar-C4wB482_.cjs");exports.CurrentPoseBar=e.CurrentPoseBar;exports.default=e.CurrentPoseBar;
@@ -1,4 +1,4 @@
1
- import { C as e, C as o } from "../chunks/CurrentPoseBar-BmsPnLVP.js";
1
+ import { C as e, C as o } from "../chunks/CurrentPoseBar-GhVif6kH.js";
2
2
  export {
3
3
  e as CurrentPoseBar,
4
4
  o as default
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../chunks/JoggingButtons-9nBrKbUa.cjs");exports.JoggingButtons=t.JoggingButtons;exports.default=t.JoggingButtons;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../chunks/JoggingButtons-nXLqJLIr.cjs");exports.JoggingButtons=t.JoggingButtons;exports.default=t.JoggingButtons;
@@ -1,4 +1,4 @@
1
- import { J as a, J as g } from "../chunks/JoggingButtons-I_Y70pg8.js";
1
+ import { J as a, J as g } from "../chunks/JoggingButtons-D4S2oJGt.js";
2
2
  export {
3
3
  a as JoggingButtons,
4
4
  g as default
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("../chunks/JoggingGizmo-DtWw6KWg.cjs"),o=require("../chunks/JoggingGizmoOrientation-BwkW76fE.cjs");exports.JoggingGizmo=i.JoggingGizmo;exports.default=i.JoggingGizmo;exports.JoggingGizmoOrientation=o.JoggingGizmoOrientation;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("../chunks/JoggingGizmo-BJ3wDpAJ.cjs"),o=require("../chunks/JoggingGizmoOrientation-D9VS6nag.cjs");exports.JoggingGizmo=i.JoggingGizmo;exports.default=i.JoggingGizmo;exports.JoggingGizmoOrientation=o.JoggingGizmoOrientation;
@@ -2,3 +2,4 @@ export { JoggingGizmo, JoggingGizmo as default, type JoggingGizmoProps, } from "
2
2
  export { JoggingGizmoOrientation, type JoggingGizmoOrientationProps, } from "../components/jogging/gizmo/JoggingGizmoOrientation";
3
3
  export type { JogAxis, JogDirection, JogHandle, } from "../components/jogging/jogHandle";
4
4
  export type { JogControlsProps } from "../components/jogging/useJogControls";
5
+ export type { WebGLUnavailableContext } from "../components/utils/useWebGLRenderer";
@@ -1,5 +1,5 @@
1
- import { J as i, J as a } from "../chunks/JoggingGizmo-DBpDIbzl.js";
2
- import { J as t } from "../chunks/JoggingGizmoOrientation-DU97IUWq.js";
1
+ import { J as i, J as a } from "../chunks/JoggingGizmo-9wEBSe1P.js";
2
+ import { J as t } from "../chunks/JoggingGizmoOrientation-DYeHwowd.js";
3
3
  export {
4
4
  i as JoggingGizmo,
5
5
  t as JoggingGizmoOrientation,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/JoggingJointSlider-DHBB7MwU.cjs");exports.JoggingJointSlider=e.JoggingJointSlider;exports.default=e.JoggingJointSlider;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/JoggingJointSlider-D7AsxkrT.cjs");exports.JoggingJointSlider=e.JoggingJointSlider;exports.default=e.JoggingJointSlider;
@@ -1,4 +1,4 @@
1
- import { J as a, J as e } from "../chunks/JoggingJointSlider-DeMqm9Jh.js";
1
+ import { J as a, J as e } from "../chunks/JoggingJointSlider-DQneQhXH.js";
2
2
  export {
3
3
  a as JoggingJointSlider,
4
4
  e as default
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../chunks/RobotControl-DDNDc-aE.cjs"),e=require("../chunks/RobotSessionProvider--AekyPqD.cjs");exports.RobotControl=o.RobotControl;exports.default=o.RobotControl;exports.useRobotControlProps=o.useRobotControlProps;exports.RobotSessionProvider=e.RobotSessionProvider;exports.useRobotSession=e.useRobotSession;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../chunks/RobotControl-4ma8Yxer.cjs"),e=require("../chunks/RobotSessionProvider--AekyPqD.cjs");exports.RobotControl=o.RobotControl;exports.default=o.RobotControl;exports.useRobotControlProps=o.useRobotControlProps;exports.RobotSessionProvider=e.RobotSessionProvider;exports.useRobotSession=e.useRobotSession;
@@ -1,4 +1,4 @@
1
- import { R as r, R as t, u as e } from "../chunks/RobotControl-CI99-2nW.js";
1
+ import { R as r, R as t, u as e } from "../chunks/RobotControl-pDmJH_ah.js";
2
2
  import { R as a, u } from "../chunks/RobotSessionProvider-TVaKGzqa.js";
3
3
  export {
4
4
  r as RobotControl,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../chunks/RobotControlPanel-DHQga5uu.cjs");exports.RobotControlPanel=o.RobotControlPanel;exports.default=o.RobotControlPanel;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../chunks/RobotControlPanel-CIaClXfc.cjs");exports.RobotControlPanel=o.RobotControlPanel;exports.default=o.RobotControlPanel;
@@ -1,4 +1,4 @@
1
- import { R as t, R as e } from "../chunks/RobotControlPanel-CzhYCBAm.js";
1
+ import { R as t, R as e } from "../chunks/RobotControlPanel-BE-C6lYj.js";
2
2
  export {
3
3
  t as RobotControlPanel,
4
4
  e as default
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../chunks/robotActivationOf-DXC0E2DS.cjs"),t=require("../chunks/robotSafetyOf-CwfVV9__.cjs");exports.ConnectionWarning=o.ConnectionWarning;exports.RobotHeader=o.RobotHeader;exports.connectionWarningOf=o.connectionWarningOf;exports.default=o.RobotHeader;exports.robotActivationOf=o.robotActivationOf;exports.robotSafetyOf=t.robotSafetyOf;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../chunks/robotActivationOf-vhmAEc3e.cjs"),t=require("../chunks/robotSafetyOf-CZBuhHgO.cjs");exports.ConnectionWarning=o.ConnectionWarning;exports.RobotHeader=o.RobotHeader;exports.connectionWarningOf=o.connectionWarningOf;exports.default=o.RobotHeader;exports.robotActivationOf=o.robotActivationOf;exports.robotSafetyOf=t.robotSafetyOf;
@@ -1,5 +1,5 @@
1
- import { C as n, a as r, c as t, a as e, r as f } from "../chunks/robotActivationOf-E1GLe_69.js";
2
- import { r as s } from "../chunks/robotSafetyOf-P4RgO2LQ.js";
1
+ import { C as n, R as r, c as t, R as e, r as f } from "../chunks/robotActivationOf-BKoP11GA.js";
2
+ import { r as s } from "../chunks/robotSafetyOf-BmZMcgc_.js";
3
3
  export {
4
4
  n as ConnectionWarning,
5
5
  r as RobotHeader,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/RobotScene-irOI2iEa.cjs"),o=require("../chunks/RobotSessionProvider--AekyPqD.cjs");exports.JoggingAxes=e.JoggingAxes;exports.RobotScene=e.RobotScene;exports.RobotSceneView=e.RobotSceneView;exports.default=e.RobotScene;exports.useRobotSceneProps=e.useRobotSceneProps;exports.RobotSessionProvider=o.RobotSessionProvider;exports.useRobotSession=o.useRobotSession;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/RobotScene-ztJZ4EKT.cjs"),o=require("../chunks/RobotSessionProvider--AekyPqD.cjs");exports.JoggingAxes=e.JoggingAxes;exports.RobotScene=e.RobotScene;exports.RobotSceneView=e.RobotSceneView;exports.default=e.RobotScene;exports.useRobotSceneProps=e.useRobotSceneProps;exports.RobotSessionProvider=o.RobotSessionProvider;exports.useRobotSession=o.useRobotSession;
@@ -1,4 +1,4 @@
1
- import { b as s, R as a, e as t, R, u as r } from "../chunks/RobotScene-BtgO_xot.js";
1
+ import { b as s, R as a, e as t, R, u as r } from "../chunks/RobotScene-CldpfxRT.js";
2
2
  import { R as n, u as i } from "../chunks/RobotSessionProvider-TVaKGzqa.js";
3
3
  export {
4
4
  s as JoggingAxes,
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../chunks/RobotView-wketM8bf.cjs"),e=require("../chunks/RobotSessionProvider--AekyPqD.cjs");exports.RobotCanvas=o.RobotCanvas;exports.RobotView=o.RobotView;exports.default=o.RobotView;exports.RobotSessionProvider=e.RobotSessionProvider;exports.useRobotSession=e.useRobotSession;
@@ -0,0 +1,4 @@
1
+ export { RobotCanvas, type RobotCanvasProps, } from "../components/robotView/RobotCanvas";
2
+ export { RobotView, RobotView as default, type RobotViewProps, } from "../components/robotView/RobotView";
3
+ export type { WebGLUnavailableContext } from "../components/utils/useWebGLRenderer";
4
+ export { RobotSessionProvider, useRobotSession, } from "../components/robotSession/RobotSessionProvider";
@@ -0,0 +1,9 @@
1
+ import { R as a, a as e, a as t } from "../chunks/RobotView-BTL3FAIE.js";
2
+ import { R, u as b } from "../chunks/RobotSessionProvider-TVaKGzqa.js";
3
+ export {
4
+ a as RobotCanvas,
5
+ R as RobotSessionProvider,
6
+ e as RobotView,
7
+ t as default,
8
+ b as useRobotSession
9
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/robotSafetyOf-CwfVV9__.cjs");exports.SafetyBar=e.SafetyBar;exports.default=e.SafetyBar;exports.robotSafetyOf=e.robotSafetyOf;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/robotSafetyOf-CZBuhHgO.cjs");exports.SafetyBar=e.SafetyBar;exports.default=e.SafetyBar;exports.robotSafetyOf=e.robotSafetyOf;
@@ -1,4 +1,4 @@
1
- import { S as r, S as t, r as e } from "../chunks/robotSafetyOf-P4RgO2LQ.js";
1
+ import { S as r, S as t, r as e } from "../chunks/robotSafetyOf-BmZMcgc_.js";
2
2
  export {
3
3
  r as SafetyBar,
4
4
  t as default,