@wandelbots/wandelbots-js-react-components 6.4.0-pr.revamp.667.6038f41 → 6.4.0-pr.revamp.667.96fdf15

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 (103) hide show
  1. package/dist/3d.cjs +1 -1
  2. package/dist/3d.d.ts +9 -1
  3. package/dist/3d.js +44 -30
  4. package/dist/CurrentPose/index.cjs +1 -1
  5. package/dist/CurrentPose/index.js +2 -2
  6. package/dist/CurrentPoseBar/index.cjs +1 -1
  7. package/dist/CurrentPoseBar/index.js +1 -1
  8. package/dist/JoggingButtons/index.cjs +1 -1
  9. package/dist/JoggingButtons/index.js +1 -1
  10. package/dist/JoggingGizmo/index.cjs +1 -1
  11. package/dist/JoggingGizmo/index.d.ts +1 -0
  12. package/dist/JoggingGizmo/index.js +2 -2
  13. package/dist/JoggingJointSlider/index.cjs +1 -1
  14. package/dist/JoggingJointSlider/index.js +1 -1
  15. package/dist/RobotControl/index.cjs +1 -1
  16. package/dist/RobotControl/index.js +2 -2
  17. package/dist/RobotControlPanel/index.cjs +1 -1
  18. package/dist/RobotControlPanel/index.js +1 -1
  19. package/dist/RobotHeader/index.cjs +1 -1
  20. package/dist/RobotHeader/index.js +2 -2
  21. package/dist/RobotScene/index.cjs +1 -0
  22. package/dist/RobotScene/index.d.ts +5 -0
  23. package/dist/RobotScene/index.js +11 -0
  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/{CurrentPose-UJbSKPRp.js → CurrentPose-DW2uqL-R.js} +13 -12
  30. package/dist/chunks/CurrentPose-dHc4WUET.cjs +1 -0
  31. package/dist/chunks/{CurrentPoseBar-ZUhFaVdM.cjs → CurrentPoseBar-BeSHwgig.cjs} +1 -1
  32. package/dist/chunks/{CurrentPoseBar-BmsPnLVP.js → CurrentPoseBar-CMgxSmIo.js} +1 -1
  33. package/dist/chunks/{JoggingButtons-I_Y70pg8.js → JoggingButtons-BJX63dBt.js} +1 -1
  34. package/dist/chunks/{JoggingButtons-9nBrKbUa.cjs → JoggingButtons-DYRL_wre.cjs} +1 -1
  35. package/dist/chunks/{JoggingGizmo-DBpDIbzl.js → JoggingGizmo-CDdItWpT.js} +301 -280
  36. package/dist/chunks/JoggingGizmo-DCrl2K-_.cjs +1 -0
  37. package/dist/chunks/{JoggingGizmoOrientation-DU97IUWq.js → JoggingGizmoOrientation-BeD7eJ9t.js} +1 -1
  38. package/dist/chunks/{JoggingGizmoOrientation-BwkW76fE.cjs → JoggingGizmoOrientation-DwGhxKo3.cjs} +1 -1
  39. package/dist/chunks/{JoggingJointSlider-DeMqm9Jh.js → JoggingJointSlider-BVFjEQjw.js} +1 -1
  40. package/dist/chunks/{JoggingJointSlider-DHBB7MwU.cjs → JoggingJointSlider-CDiha2Yt.cjs} +1 -1
  41. package/dist/chunks/PoseTransformer-dP4nzrPG.cjs +1 -0
  42. package/dist/chunks/PoseTransformer-tafab65c.js +454 -0
  43. package/dist/chunks/Robot-BCPv4zBP.js +428 -0
  44. package/dist/chunks/Robot-CA2P_Sgf.cjs +1 -0
  45. package/dist/chunks/RobotControl-BoDDKYfx.cjs +1 -0
  46. package/dist/chunks/{RobotControl-BDcNKq32.js → RobotControl-CaEwd0li.js} +19 -18
  47. package/dist/chunks/RobotControlPanel-Ci0S6gMq.cjs +1 -0
  48. package/dist/chunks/{RobotControlPanel-CzhYCBAm.js → RobotControlPanel-DFz_c0p9.js} +264 -262
  49. package/dist/chunks/RobotScene-BvFIq4fY.js +1230 -0
  50. package/dist/chunks/RobotScene-CfVWmw96.cjs +1 -0
  51. package/dist/chunks/RobotSessionProvider--AekyPqD.cjs +1 -0
  52. package/dist/chunks/RobotSessionProvider-TVaKGzqa.js +25 -0
  53. package/dist/chunks/RobotView-CDsmQESS.cjs +1 -0
  54. package/dist/chunks/RobotView-CoQ63Yli.js +158 -0
  55. package/dist/chunks/coordSystemLabel-BThpFG9n.cjs +1 -0
  56. package/dist/chunks/coordSystemLabel-Bfy9MUsV.js +6 -0
  57. package/dist/chunks/{externalizeComponent-CPAVvPKk.js → externalizeComponent-BiXWFiD7.js} +12 -4
  58. package/dist/chunks/externalizeComponent-DZTBO-WF.cjs +2 -0
  59. package/dist/chunks/{loadRobotSession-C1g2yivF.js → loadRobotSession-BVHaTArk.js} +975 -1210
  60. package/dist/chunks/loadRobotSession-qBnF6wdH.cjs +3 -0
  61. package/dist/chunks/{robotActivationOf-E1GLe_69.js → robotActivationOf-BA4cAhGx.js} +2 -2
  62. package/dist/chunks/{robotActivationOf-DXC0E2DS.cjs → robotActivationOf-BkIEg_Wq.cjs} +1 -1
  63. package/dist/chunks/{robotSafetyOf-P4RgO2LQ.js → robotSafetyOf-99L9ww63.js} +1 -1
  64. package/dist/chunks/{robotSafetyOf-CwfVV9__.cjs → robotSafetyOf-BJj1VuJI.cjs} +1 -1
  65. package/dist/chunks/useWebGLRenderer-BozrbZz-.js +45 -0
  66. package/dist/chunks/useWebGLRenderer-CtddVDDb.cjs +1 -0
  67. package/dist/components/jogging/gizmo/JoggingGizmo.d.ts +8 -1
  68. package/dist/components/robotControl/JogArea.d.ts +5 -2
  69. package/dist/components/robotScene/JoggingAxes.d.ts +38 -0
  70. package/dist/components/robotScene/RobotScene.d.ts +28 -0
  71. package/dist/components/robotScene/RobotSceneView.d.ts +53 -0
  72. package/dist/components/robotScene/useRobotSceneProps.d.ts +18 -0
  73. package/dist/components/robotView/RobotCanvas.d.ts +42 -0
  74. package/dist/components/robotView/RobotView.d.ts +23 -0
  75. package/dist/components/robotView/WebGLUnavailable.d.ts +5 -0
  76. package/dist/components/robots/DHRobot.d.ts +1 -1
  77. package/dist/components/robots/GenericRobot.d.ts +16 -1
  78. package/dist/components/robots/LinearAxisAnimator.d.ts +1 -1
  79. package/dist/components/robots/SupportedLinearAxis.d.ts +16 -3
  80. package/dist/components/robots/SupportedRobot.d.ts +21 -3
  81. package/dist/components/robots/ghostStyle.d.ts +21 -0
  82. package/dist/components/robots/modelRotation.d.ts +14 -0
  83. package/dist/components/robots/robotModelLogic.d.ts +138 -6
  84. package/dist/components/robots/robotModelSource.d.ts +14 -1
  85. package/dist/components/utils/useWebGLRenderer.d.ts +32 -0
  86. package/dist/components/utils/webglSupport.d.ts +11 -0
  87. package/dist/core.cjs +1 -1
  88. package/dist/core.js +38 -38
  89. package/dist/index.cjs +1 -1
  90. package/dist/index.js +117 -103
  91. package/package.json +1 -1
  92. package/dist/chunks/CurrentPose-BStpfgEJ.cjs +0 -1
  93. package/dist/chunks/JoggingGizmo-DtWw6KWg.cjs +0 -1
  94. package/dist/chunks/RobotControl-DXbcloVq.cjs +0 -1
  95. package/dist/chunks/RobotControlPanel-DHQga5uu.cjs +0 -1
  96. package/dist/chunks/coordSystemLabel-BJKeaGA3.cjs +0 -1
  97. package/dist/chunks/coordSystemLabel-C1jfhEh5.js +0 -29
  98. package/dist/chunks/externalizeComponent-CkWiNBu0.cjs +0 -2
  99. package/dist/chunks/loadRobotSession-68wS5Tn1.cjs +0 -3
  100. package/dist/chunks/robotModelSource-BCX1Jrrd.cjs +0 -1
  101. package/dist/chunks/robotModelSource-C57_9QYT.js +0 -1296
  102. package/dist/chunks/useSmoothedMotionState-COMJRcOt.js +0 -214
  103. package/dist/chunks/useSmoothedMotionState-Con0E5Bx.cjs +0 -1
package/dist/3d.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./chunks/robotModelSource-BCX1Jrrd.cjs"),n=require("./chunks/JoggingGizmo-DtWw6KWg.cjs"),i=require("./chunks/JoggingGizmoOrientation-BwkW76fE.cjs"),a=require("./chunks/RobotControlPanel-DHQga5uu.cjs"),t=require("./chunks/RobotControl-DXbcloVq.cjs"),r=require("./chunks/useSmoothedMotionState-Con0E5Bx.cjs"),e=require("./chunks/Pose3-Ch4xVeXV.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.robotModelOf=o.robotModelOf;exports.JoggingGizmo=n.JoggingGizmo;exports.JoggingGizmoOrientation=i.JoggingGizmoOrientation;exports.RobotControlPanel=a.RobotControlPanel;exports.RobotControl=t.RobotControl;exports.useRobotControlProps=t.useRobotControlProps;exports.ValueInterpolator=r.ValueInterpolator;exports.useSmoothedMotionState=r.useSmoothedMotionState;exports.Pose3=e.Pose3;exports.parseRotationToQuaternion=e.parseRotationToQuaternion;exports.quaternionToRotationVector=e.quaternionToRotationVector;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/Robot-CA2P_Sgf.cjs"),o=require("./chunks/RobotScene-CfVWmw96.cjs"),a=require("./chunks/JoggingGizmo-DCrl2K-_.cjs"),s=require("./chunks/JoggingGizmoOrientation-DwGhxKo3.cjs"),u=require("./chunks/RobotControlPanel-Ci0S6gMq.cjs"),r=require("./chunks/RobotControl-BoDDKYfx.cjs"),n=require("./chunks/RobotView-CDsmQESS.cjs"),i=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=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
@@ -10,10 +10,18 @@ export type { JogControlsProps } from "./components/jogging/useJogControls";
10
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";
11
11
  export { RobotControl, type RobotControlProps, } from "./components/robotControl/RobotControl";
12
12
  export { type RobotControlOptions, useRobotControlProps, } from "./components/robotControl/useRobotControlProps";
13
+ export { JoggingAxes, type JoggingAxesProps, } from "./components/robotScene/JoggingAxes";
14
+ export { RobotScene, type RobotSceneProps, } from "./components/robotScene/RobotScene";
15
+ export { RobotSceneView, type RobotSceneViewProps, } from "./components/robotScene/RobotSceneView";
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";
13
20
  export * from "./components/robots/LinearAxis";
14
21
  export * from "./components/robots/MotionGroupVisualizer";
15
22
  export * from "./components/robots/Robot";
16
- export { defaultGetModel } from "./components/robots/robotModelLogic";
23
+ export { MODEL_ROTATION } from "./components/robots/modelRotation";
24
+ export { defaultGetModel, FLANGE_NODE_SUFFIX, JOINT_NODE_NAME, JOINT_REST_SUFFIX, jointIndexOf, revokeAllModelUrls, } from "./components/robots/robotModelLogic";
17
25
  export { type RobotModelSource, robotModelOf, } from "./components/robots/robotModelSource";
18
26
  export * from "./components/robots/SupportedLinearAxis";
19
27
  export * from "./components/robots/SupportedRobot";
package/dist/3d.js CHANGED
@@ -1,34 +1,48 @@
1
- import { C as t, J as a, L as r, M as s, a as n, P as i, R as p, S as u, b as R, c as l, d as m, e as x, T as d, f, r as S } from "./chunks/robotModelSource-C57_9QYT.js";
2
- import { J as c } from "./chunks/JoggingGizmo-DBpDIbzl.js";
3
- import { J as G } from "./chunks/JoggingGizmoOrientation-DU97IUWq.js";
4
- import { R as M } from "./chunks/RobotControlPanel-CzhYCBAm.js";
5
- import { R as z, u as C } from "./chunks/RobotControl-BDcNKq32.js";
6
- import { V, a as E } from "./chunks/useSmoothedMotionState-COMJRcOt.js";
7
- import { P as A, p as q, 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-BCPv4zBP.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-BvFIq4fY.js";
3
+ import { J as N } from "./chunks/JoggingGizmo-CDdItWpT.js";
4
+ import { J as V } from "./chunks/JoggingGizmoOrientation-BeD7eJ9t.js";
5
+ import { R as C } from "./chunks/RobotControlPanel-DFz_c0p9.js";
6
+ import { R as z, u as j } from "./chunks/RobotControl-CaEwd0li.js";
7
+ import { R as D, a as U } from "./chunks/RobotView-CoQ63Yli.js";
8
+ import { V as k, a as q } from "./chunks/PoseTransformer-tafab65c.js";
9
+ import { P as y, p as X, q as Q } from "./chunks/Pose3-B_fLR-Wv.js";
8
10
  export {
9
- t as CollisionSceneRenderer,
10
- c as JoggingGizmo,
11
- G as JoggingGizmoOrientation,
12
- a as JointLimitGizmo,
11
+ a as CollisionSceneRenderer,
12
+ p as FLANGE_NODE_SUFFIX,
13
+ R as JOINT_NODE_NAME,
14
+ l as JOINT_REST_SUFFIX,
15
+ u as JoggingAxes,
16
+ N as JoggingGizmo,
17
+ V as JoggingGizmoOrientation,
18
+ t as JointLimitGizmo,
13
19
  r as LinearAxis,
14
- s as MotionGroupVisualizer,
15
- n as MotionGroupVisualizerExact,
16
- A as Pose3,
17
- i as PresetEnvironment,
18
- p as Robot,
20
+ x as MODEL_ROTATION,
21
+ m as MotionGroupVisualizer,
22
+ S as MotionGroupVisualizerExact,
23
+ y as Pose3,
24
+ d as PresetEnvironment,
25
+ s as Robot,
26
+ D as RobotCanvas,
19
27
  z as RobotControl,
20
- M as RobotControlPanel,
21
- u as SafetyZonesRenderer,
22
- R as SupportedLinearAxis,
23
- l as SupportedLinearAxisExact,
24
- m as SupportedRobot,
25
- x as SupportedRobotExact,
26
- d as TrajectoryRenderer,
27
- V as ValueInterpolator,
28
- f as defaultGetModel,
29
- q as parseRotationToQuaternion,
30
- y as quaternionToRotationVector,
31
- S as robotModelOf,
32
- C as useRobotControlProps,
33
- E as useSmoothedMotionState
28
+ C as RobotControlPanel,
29
+ f as RobotScene,
30
+ b as RobotSceneView,
31
+ U as RobotView,
32
+ c as SafetyZonesRenderer,
33
+ g as SupportedLinearAxis,
34
+ E as SupportedLinearAxisExact,
35
+ J as SupportedRobot,
36
+ O as SupportedRobotExact,
37
+ n as TrajectoryRenderer,
38
+ k as ValueInterpolator,
39
+ M as defaultGetModel,
40
+ T as jointIndexOf,
41
+ X as parseRotationToQuaternion,
42
+ Q as quaternionToRotationVector,
43
+ A as revokeAllModelUrls,
44
+ G as robotModelOf,
45
+ j as useRobotControlProps,
46
+ I as useRobotSceneProps,
47
+ q as useSmoothedMotionState
34
48
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/CurrentPose-BStpfgEJ.cjs"),o=require("../chunks/coordSystemLabel-BJKeaGA3.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-dHc4WUET.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,5 +1,5 @@
1
- import { C as e, C as r, u as t } from "../chunks/CurrentPose-UJbSKPRp.js";
2
- import { R as a, u as n } from "../chunks/coordSystemLabel-C1jfhEh5.js";
1
+ import { C as e, C as r, u as t } from "../chunks/CurrentPose-DW2uqL-R.js";
2
+ import { R as a, u as n } from "../chunks/RobotSessionProvider-TVaKGzqa.js";
3
3
  export {
4
4
  e as CurrentPose,
5
5
  a as RobotSessionProvider,
@@ -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-BeSHwgig.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-CMgxSmIo.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-DYRL_wre.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-BJX63dBt.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-DCrl2K-_.cjs"),o=require("../chunks/JoggingGizmoOrientation-DwGhxKo3.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-CDdItWpT.js";
2
+ import { J as t } from "../chunks/JoggingGizmoOrientation-BeD7eJ9t.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-CDiha2Yt.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-BVFjEQjw.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-DXbcloVq.cjs"),e=require("../chunks/coordSystemLabel-BJKeaGA3.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-BoDDKYfx.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,5 +1,5 @@
1
- import { R as r, R as t, u as e } from "../chunks/RobotControl-BDcNKq32.js";
2
- import { R as a, u } from "../chunks/coordSystemLabel-C1jfhEh5.js";
1
+ import { R as r, R as t, u as e } from "../chunks/RobotControl-CaEwd0li.js";
2
+ import { R as a, u } from "../chunks/RobotSessionProvider-TVaKGzqa.js";
3
3
  export {
4
4
  r as RobotControl,
5
5
  a as RobotSessionProvider,
@@ -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-Ci0S6gMq.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-DFz_c0p9.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-BkIEg_Wq.cjs"),t=require("../chunks/robotSafetyOf-BJj1VuJI.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, a as r, c as t, a as e, r as f } from "../chunks/robotActivationOf-BA4cAhGx.js";
2
+ import { r as s } from "../chunks/robotSafetyOf-99L9ww63.js";
3
3
  export {
4
4
  n as ConnectionWarning,
5
5
  r as RobotHeader,
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/RobotScene-CfVWmw96.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;
@@ -0,0 +1,5 @@
1
+ export { JoggingAxes, type JoggingAxesProps, } from "../components/robotScene/JoggingAxes";
2
+ export { RobotScene, RobotScene as default, type RobotSceneProps, } from "../components/robotScene/RobotScene";
3
+ export { RobotSceneView, type RobotSceneViewProps, } from "../components/robotScene/RobotSceneView";
4
+ export { useRobotSceneProps } from "../components/robotScene/useRobotSceneProps";
5
+ export { RobotSessionProvider, useRobotSession, } from "../components/robotSession/RobotSessionProvider";
@@ -0,0 +1,11 @@
1
+ import { b as s, R as a, e as t, R, u as r } from "../chunks/RobotScene-BvFIq4fY.js";
2
+ import { R as n, u as i } from "../chunks/RobotSessionProvider-TVaKGzqa.js";
3
+ export {
4
+ s as JoggingAxes,
5
+ a as RobotScene,
6
+ t as RobotSceneView,
7
+ n as RobotSessionProvider,
8
+ R as default,
9
+ r as useRobotSceneProps,
10
+ i as useRobotSession
11
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../chunks/RobotView-CDsmQESS.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-CoQ63Yli.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-BJj1VuJI.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-99L9ww63.js";
2
2
  export {
3
3
  r as SafetyBar,
4
4
  t as default,
@@ -1,13 +1,14 @@
1
1
  import { jsx as y } from "react/jsx-runtime";
2
2
  import { observer as I } from "mobx-react-lite";
3
- import { c as S, a as P } from "./coordSystemLabel-C1jfhEh5.js";
4
- import { C as b } from "./CurrentPoseBar-BmsPnLVP.js";
3
+ import { a as S } from "./RobotSessionProvider-TVaKGzqa.js";
4
+ import { C as P } from "./CurrentPoseBar-CMgxSmIo.js";
5
5
  import { useState as l } from "react";
6
- import { useTranslation as T } from "react-i18next";
7
- import { i as v } from "./externalizeComponent-CPAVvPKk.js";
6
+ import { useTranslation as b } from "react-i18next";
7
+ import { i as T } from "./externalizeComponent-BiXWFiD7.js";
8
+ import { c as v } from "./coordSystemLabel-Bfy9MUsV.js";
8
9
  function h(n) {
9
- var d, p, m;
10
- const o = n.jogging, { t: r } = T(void 0, { i18n: v }), [e, s] = l(o.selectedTcpId), [i, u] = l(o.selectedCoordSystemId), a = o.tcpsById[e] ? e : o.selectedTcpId, c = o.coordSystemsById[i] ? i : o.selectedCoordSystemId, f = (m = (p = (d = o.jogger.motionStream.rapidlyChangingMotionState.execute) == null ? void 0 : d.details) == null ? void 0 : p.state) == null ? void 0 : m.kind, g = o.lastJogErrorTranslationKey ? r(o.lastJogErrorTranslationKey) : o.lastJogError;
10
+ var d, m, p;
11
+ const o = n.jogging, { t: e } = b(void 0, { i18n: T }), [r, s] = l(o.selectedTcpId), [i, u] = l(o.selectedCoordSystemId), a = o.tcpsById[r] ? r : o.selectedTcpId, c = o.coordSystemsById[i] ? i : o.selectedCoordSystemId, f = (p = (m = (d = o.jogger.motionStream.rapidlyChangingMotionState.execute) == null ? void 0 : d.details) == null ? void 0 : m.state) == null ? void 0 : p.kind, g = o.lastJogErrorTranslationKey ? e(o.lastJogErrorTranslationKey) : o.lastJogError;
11
12
  function C() {
12
13
  const t = o.tcpPoseIn(a, c);
13
14
  return !(t != null && t.position) || !t.orientation ? null : {
@@ -29,7 +30,7 @@ function h(n) {
29
30
  frame: {
30
31
  options: o.coordSystems.map((t) => ({
31
32
  id: t.coordinate_system,
32
- label: S(o, t)
33
+ label: v(o, t)
33
34
  })),
34
35
  value: c,
35
36
  onChange: u
@@ -38,14 +39,14 @@ function h(n) {
38
39
  error: g
39
40
  };
40
41
  }
41
- const F = I(function({
42
+ const L = I(function({
42
43
  session: o,
43
- ...r
44
+ ...e
44
45
  }) {
45
- const e = P(o), s = h(e);
46
- return /* @__PURE__ */ y(b, { ...s, ...r });
46
+ const r = S(o), s = h(r);
47
+ return /* @__PURE__ */ y(P, { ...s, ...e });
47
48
  });
48
49
  export {
49
- F as C,
50
+ L as C,
50
51
  h as u
51
52
  };
@@ -0,0 +1 @@
1
+ "use strict";const P=require("react/jsx-runtime"),S=require("mobx-react-lite"),b=require("./RobotSessionProvider--AekyPqD.cjs"),f=require("./CurrentPoseBar-BeSHwgig.cjs"),p=require("react"),q=require("react-i18next"),v=require("./externalizeComponent-DZTBO-WF.cjs"),x=require("./coordSystemLabel-BThpFG9n.cjs");function m(n){var u,d,l;const e=n.jogging,{t:r}=q.useTranslation(void 0,{i18n:v.i18n}),[o,s]=p.useState(e.selectedTcpId),[i,g]=p.useState(e.selectedCoordSystemId),c=e.tcpsById[o]?o:e.selectedTcpId,a=e.coordSystemsById[i]?i:e.selectedCoordSystemId,C=(l=(d=(u=e.jogger.motionStream.rapidlyChangingMotionState.execute)==null?void 0:u.details)==null?void 0:d.state)==null?void 0:l.kind,y=e.lastJogErrorTranslationKey?r(e.lastJogErrorTranslationKey):e.lastJogError;function I(){const t=e.tcpPoseIn(c,a);return!(t!=null&&t.position)||!t.orientation?null:{position:t.position,orientation:t.orientation}}return{getCurrentPose:I,tcp:e.tcps.length>0?{options:e.tcps.map(t=>({id:t.id,label:t.id})),value:c,onChange:s}:void 0,frame:{options:e.coordSystems.map(t=>({id:t.coordinate_system,label:x.coordSystemLabel(e,t)})),value:a,onChange:g},state:C,error:y}}const T=S.observer(function({session:e,...r}){const o=b.useRobotSessionOf(e),s=m(o);return P.jsx(f.CurrentPoseBar,{...s,...r})});exports.CurrentPose=T;exports.useCurrentPoseProps=m;
@@ -1 +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-CkWiNBu0.cjs"),y=require("./useEveryFrame-CHxg25f4.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;
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-DZTBO-WF.cjs"),y=require("./useEveryFrame-CHxg25f4.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;
@@ -8,7 +8,7 @@ import { ContentCopyFilled as tn } from "@wandelbots/icons/ContentCopyFilled";
8
8
  import { Settings as on } from "@wandelbots/icons/Settings";
9
9
  import { memo as rn, useId as K, useRef as $, useState as j, useCallback as T } from "react";
10
10
  import { useTranslation as U } from "react-i18next";
11
- import { e as an } from "./externalizeComponent-CPAVvPKk.js";
11
+ import { e as an } from "./externalizeComponent-BiXWFiD7.js";
12
12
  import { P as B, c as sn, u as ln, b as cn } from "./useEveryFrame-DAuNawGP.js";
13
13
  import { S as un } from "./SmallSelect-BdD9uLKK.js";
14
14
  import pn from "@mui/material/ListSubheader";
@@ -6,7 +6,7 @@ import { alpha as d } from "@mui/material/styles";
6
6
  import I from "@mui/material/Typography";
7
7
  import { Rotation as j } from "@wandelbots/icons/Rotation";
8
8
  import { SecondaryButton as y } from "@wandelbots/mui";
9
- import { e as v } from "./externalizeComponent-CPAVvPKk.js";
9
+ import { e as v } from "./externalizeComponent-BiXWFiD7.js";
10
10
  import { u as J, J as S, a as k, j as u, b as R } from "./joggingColors-CuT5u0H8.js";
11
11
  function $({
12
12
  axis: o,
@@ -1 +1 @@
1
- "use strict";const o=require("react/jsx-runtime"),j=require("@mui/material/Box"),d=require("@mui/material/Button"),x=require("@mui/material/Stack"),l=require("@mui/material/styles"),m=require("@mui/material/Typography"),q=require("@wandelbots/icons/Rotation"),f=require("@wandelbots/mui"),I=require("./externalizeComponent-CkWiNBu0.cjs"),t=require("./joggingColors-ZDc_2UCp.cjs");function y({axis:e,motion:n,disabled:i}){const r=t.jogAxisColors[e];return o.jsx(j,{"aria-hidden":!0,sx:{opacity:i?.4:1,width:30,height:30,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:1,backgroundColor:l.alpha(r,.15),border:`1px solid ${l.alpha(r,.4)}`},children:o.jsx(m,{variant:"caption",sx:{color:r},children:n==="rotate"?`R${e}`:e.toUpperCase()})})}function R(e){return o.jsx(q.Rotation,{style:e.direction==="-"?{transform:"scaleX(-1)"}:void 0})}const v=I.externalizeComponent(e=>{const{motion:n="translate",disabled:i=!1}=e,{handlersFor:r,label:C,isPressed:b}=t.useJogControls(e);return o.jsx(x,{"data-testid":"jogging-buttons",sx:{gap:"16px",width:280,maxWidth:"100%"},children:t.JOG_AXES.map(a=>o.jsxs(x,{direction:"row",sx:{alignItems:"center",gap:"16px"},children:[o.jsx(y,{axis:a,motion:n,disabled:i}),t.JOG_DIRECTIONS.map(c=>{const s={axis:a,direction:c},u=b(s),g=n==="rotate"?R(s):void 0,h=t.jogAxisColors[a],p={backgroundColor:l.alpha(h,.25),borderColor:l.alpha(h,.4)};return o.jsx(f.SecondaryButton,{size:"large",disabled:i,"aria-label":C(s),"aria-pressed":u,startIcon:c==="-"?g:void 0,endIcon:c==="+"?g:void 0,...r(s),sx:{flex:1,touchAction:"none",userSelect:"none","& svg":{width:24,height:24},[`& .${d.buttonClasses.startIcon}`]:{marginLeft:"-6px"},[`& .${d.buttonClasses.endIcon}`]:{marginRight:"-6px"},...u&&{...p,[`&.${d.buttonClasses.disabled}`]:p}},children:t.jogHandleName(s,n)},c)})]},a))})});exports.JoggingButtons=v;
1
+ "use strict";const o=require("react/jsx-runtime"),j=require("@mui/material/Box"),d=require("@mui/material/Button"),x=require("@mui/material/Stack"),l=require("@mui/material/styles"),m=require("@mui/material/Typography"),q=require("@wandelbots/icons/Rotation"),f=require("@wandelbots/mui"),I=require("./externalizeComponent-DZTBO-WF.cjs"),t=require("./joggingColors-ZDc_2UCp.cjs");function y({axis:e,motion:n,disabled:i}){const r=t.jogAxisColors[e];return o.jsx(j,{"aria-hidden":!0,sx:{opacity:i?.4:1,width:30,height:30,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:1,backgroundColor:l.alpha(r,.15),border:`1px solid ${l.alpha(r,.4)}`},children:o.jsx(m,{variant:"caption",sx:{color:r},children:n==="rotate"?`R${e}`:e.toUpperCase()})})}function R(e){return o.jsx(q.Rotation,{style:e.direction==="-"?{transform:"scaleX(-1)"}:void 0})}const v=I.externalizeComponent(e=>{const{motion:n="translate",disabled:i=!1}=e,{handlersFor:r,label:C,isPressed:b}=t.useJogControls(e);return o.jsx(x,{"data-testid":"jogging-buttons",sx:{gap:"16px",width:280,maxWidth:"100%"},children:t.JOG_AXES.map(a=>o.jsxs(x,{direction:"row",sx:{alignItems:"center",gap:"16px"},children:[o.jsx(y,{axis:a,motion:n,disabled:i}),t.JOG_DIRECTIONS.map(c=>{const s={axis:a,direction:c},u=b(s),g=n==="rotate"?R(s):void 0,h=t.jogAxisColors[a],p={backgroundColor:l.alpha(h,.25),borderColor:l.alpha(h,.4)};return o.jsx(f.SecondaryButton,{size:"large",disabled:i,"aria-label":C(s),"aria-pressed":u,startIcon:c==="-"?g:void 0,endIcon:c==="+"?g:void 0,...r(s),sx:{flex:1,touchAction:"none",userSelect:"none","& svg":{width:24,height:24},[`& .${d.buttonClasses.startIcon}`]:{marginLeft:"-6px"},[`& .${d.buttonClasses.endIcon}`]:{marginRight:"-6px"},...u&&{...p,[`&.${d.buttonClasses.disabled}`]:p}},children:t.jogHandleName(s,n)},c)})]},a))})});exports.JoggingButtons=v;