@wandelbots/wandelbots-js-react-components 4.2.0 → 4.3.0

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 (42) hide show
  1. package/README.md +1 -1
  2. package/dist/3d.cjs.js +1 -1
  3. package/dist/3d.es.js +1 -1
  4. package/dist/{MotionGroupVisualizer-CrLamHYm.js → MotionGroupVisualizer-BgvrTXeT.js} +93 -93
  5. package/dist/{MotionGroupVisualizer-CrLamHYm.js.map → MotionGroupVisualizer-BgvrTXeT.js.map} +1 -1
  6. package/dist/{MotionGroupVisualizer-C3CB-L2z.cjs → MotionGroupVisualizer-C_fyiA-X.cjs} +2 -2
  7. package/dist/{MotionGroupVisualizer-C3CB-L2z.cjs.map → MotionGroupVisualizer-C_fyiA-X.cjs.map} +1 -1
  8. package/dist/components/jogging/JoggingJointTab.d.ts +1 -1
  9. package/dist/components/jogging/JoggingJointTab.d.ts.map +1 -1
  10. package/dist/components/jogging/JoggingJointValueControl.d.ts +16 -0
  11. package/dist/components/jogging/JoggingJointValueControl.d.ts.map +1 -0
  12. package/dist/components/jogging/JoggingStore.d.ts +17 -19
  13. package/dist/components/jogging/JoggingStore.d.ts.map +1 -1
  14. package/dist/core.cjs.js +1 -1
  15. package/dist/core.d.ts +1 -1
  16. package/dist/core.d.ts.map +1 -1
  17. package/dist/core.es.js +8 -8
  18. package/dist/index.cjs.js +1 -1
  19. package/dist/index.es.js +10 -10
  20. package/dist/{interpolation-Cs2pC1zE.js → interpolation-6ZZN4S_x.js} +2 -2
  21. package/dist/{interpolation-Cs2pC1zE.js.map → interpolation-6ZZN4S_x.js.map} +1 -1
  22. package/dist/{interpolation-C5OTEwAm.cjs → interpolation-CyO6DaVa.cjs} +2 -2
  23. package/dist/{interpolation-C5OTEwAm.cjs.map → interpolation-CyO6DaVa.cjs.map} +1 -1
  24. package/dist/lib/JoggerConnection.d.ts +4 -3
  25. package/dist/lib/JoggerConnection.d.ts.map +1 -1
  26. package/dist/{theming-Dk07SE2_.cjs → theming-Cqo-msxF.cjs} +36 -36
  27. package/dist/theming-Cqo-msxF.cjs.map +1 -0
  28. package/dist/{theming-C-zvh022.js → theming-gUgI75AD.js} +2915 -2891
  29. package/dist/theming-gUgI75AD.js.map +1 -0
  30. package/package.json +2 -2
  31. package/src/components/jogging/JoggingJointTab.tsx +18 -18
  32. package/src/components/jogging/{JoggingJointRotationControl.tsx → JoggingJointValueControl.tsx} +51 -28
  33. package/src/components/jogging/JoggingPanel.tsx +1 -1
  34. package/src/components/jogging/JoggingStore.ts +42 -12
  35. package/src/components/robots/MotionGroupVisualizer.tsx +4 -4
  36. package/src/core.ts +2 -1
  37. package/src/lib/JoggerConnection.test.ts +4 -2
  38. package/src/lib/JoggerConnection.ts +8 -4
  39. package/dist/components/jogging/JoggingJointRotationControl.d.ts +0 -15
  40. package/dist/components/jogging/JoggingJointRotationControl.d.ts.map +0 -1
  41. package/dist/theming-C-zvh022.js.map +0 -1
  42. package/dist/theming-Dk07SE2_.cjs.map +0 -1
package/README.md CHANGED
@@ -98,7 +98,7 @@ Manual robot control interfaces.
98
98
  **Individual Jogging Controls**
99
99
 
100
100
  - **[JoggingCartesianAxisControl](https://wandelbotsgmbh.github.io/wandelbots-js-react-components/?path=/docs/jogging-joggingcartesianaxiscontrol--docs)** - Single-axis cartesian movement
101
- - **[JoggingJointRotationControl](https://wandelbotsgmbh.github.io/wandelbots-js-react-components/?path=/docs/jogging-joggingjointrotationcontrol--docs)** - Individual joint controls
101
+ - **[JoggingJointValueControl](https://wandelbotsgmbh.github.io/wandelbots-js-react-components/?path=/docs/jogging-JoggingJointValueControl--docs)** - Individual joint controls
102
102
  - **[VelocitySlider](https://wandelbotsgmbh.github.io/wandelbots-js-react-components/?path=/docs/jogging-velocityslider--docs)** - Speed adjustment interface
103
103
 
104
104
  ### Program Execution
package/dist/3d.cjs.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./MotionGroupVisualizer-C3CB-L2z.cjs");exports.CollisionSceneRenderer=e.CollisionSceneRenderer;exports.LinearAxis=e.LinearAxis;exports.MANUFACTURER_HOME_CONFIGS=e.MANUFACTURER_HOME_CONFIGS;exports.MotionGroupVisualizer=e.MotionGroupVisualizer;exports.PresetEnvironment=e.PresetEnvironment;exports.Robot=e.Robot;exports.RobotCard=e.RobotCard;exports.SafetyZonesRenderer=e.SafetyZonesRenderer;exports.SupportedLinearAxis=e.SupportedLinearAxis;exports.SupportedRobot=e.SupportedRobot;exports.TrajectoryRenderer=e.TrajectoryRenderer;exports.defaultAxisConfig=e.defaultAxisConfig;exports.defaultGetModel=e.defaultGetModel;exports.extractManufacturer=e.extractManufacturer;exports.getDefaultHomeConfig=e.getDefaultHomeConfig;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./MotionGroupVisualizer-C_fyiA-X.cjs");exports.CollisionSceneRenderer=e.CollisionSceneRenderer;exports.LinearAxis=e.LinearAxis;exports.MANUFACTURER_HOME_CONFIGS=e.MANUFACTURER_HOME_CONFIGS;exports.MotionGroupVisualizer=e.MotionGroupVisualizer;exports.PresetEnvironment=e.PresetEnvironment;exports.Robot=e.Robot;exports.RobotCard=e.RobotCard;exports.SafetyZonesRenderer=e.SafetyZonesRenderer;exports.SupportedLinearAxis=e.SupportedLinearAxis;exports.SupportedRobot=e.SupportedRobot;exports.TrajectoryRenderer=e.TrajectoryRenderer;exports.defaultAxisConfig=e.defaultAxisConfig;exports.defaultGetModel=e.defaultGetModel;exports.extractManufacturer=e.extractManufacturer;exports.getDefaultHomeConfig=e.getDefaultHomeConfig;
2
2
  //# sourceMappingURL=3d.cjs.js.map
package/dist/3d.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as o, L as r, M as s, a as t, P as n, R as i, b as d, S as f, c as u, d as R, T as l, e as C, f as p, g as M, h as S } from "./MotionGroupVisualizer-CrLamHYm.js";
1
+ import { C as o, L as r, M as s, a as t, P as n, R as i, b as d, S as f, c as u, d as R, T as l, e as C, f as p, g as M, h as S } from "./MotionGroupVisualizer-BgvrTXeT.js";
2
2
  export {
3
3
  o as CollisionSceneRenderer,
4
4
  r as LinearAxis,
@@ -1,16 +1,16 @@
1
1
  import { j as t, e as I } from "./externalizeComponent-Dc3fViZA.js";
2
2
  import * as x from "three";
3
- import { Matrix4 as w, Vector3 as F, Quaternion as z } from "three";
3
+ import { Matrix4 as w, Vector3 as L, Quaternion as z } from "three";
4
4
  import { ConvexGeometry as te } from "three-stdlib";
5
5
  import { useThree as ne, useFrame as re, Canvas as N } from "@react-three/fiber";
6
- import { Environment as ve, Lightformer as G, Line as O, useGLTF as Me, Bounds as H } from "@react-three/drei";
7
- import { useTheme as _e, Card as Ae, Box as b, Typography as Y, Divider as q, Button as X } from "@mui/material";
8
- import { observer as Te } from "mobx-react-lite";
9
- import Fe, { useRef as R, useEffect as _, useCallback as M, useState as T, Suspense as oe, useMemo as Ge } from "react";
10
- import { useTranslation as Se } from "react-i18next";
11
- import { N as se, V as ie, c as ae, b as Z, M as v } from "./interpolation-Cs2pC1zE.js";
6
+ import { Environment as ve, Lightformer as F, Line as O, useGLTF as Me, Bounds as H } from "@react-three/drei";
7
+ import { useTheme as _e, Card as Te, Box as b, Typography as Y, Divider as q, Button as X } from "@mui/material";
8
+ import { observer as ke } from "mobx-react-lite";
9
+ import Le, { useRef as R, useEffect as _, useCallback as M, useState as k, Suspense as oe, useMemo as Fe } from "react";
10
+ import { useTranslation as Ge } from "react-i18next";
11
+ import { N as se, V as ie, c as ae, b as Z, M as v } from "./interpolation-6ZZN4S_x.js";
12
12
  import { ErrorBoundary as le } from "react-error-boundary";
13
- function ke(e) {
13
+ function Ve(e) {
14
14
  switch (e.shape_type) {
15
15
  case "convex_hull":
16
16
  return new te(
@@ -47,7 +47,7 @@ function ke(e) {
47
47
  return console.warn(`${e.shape_type} is not supported`), new x.BufferGeometry();
48
48
  }
49
49
  }
50
- function Le({
50
+ function Pe({
51
51
  name: e,
52
52
  collider: r,
53
53
  children: n
@@ -64,19 +64,19 @@ function Le({
64
64
  i[2]
65
65
  ).divideScalar(1e3),
66
66
  rotation: new x.Euler(o[0], o[1], o[2], "XYZ"),
67
- geometry: ke(r.shape),
67
+ geometry: Ve(r.shape),
68
68
  children: n
69
69
  }
70
70
  );
71
71
  }
72
- function Ve({
72
+ function Se({
73
73
  name: e,
74
74
  colliders: r,
75
75
  meshChildrenProvider: n,
76
76
  ...i
77
77
  }) {
78
78
  return /* @__PURE__ */ t.jsx("group", { name: e, ...i, children: Object.entries(r).map(([o, u]) => /* @__PURE__ */ t.jsx(
79
- Le,
79
+ Pe,
80
80
  {
81
81
  name: o,
82
82
  collider: u,
@@ -91,7 +91,7 @@ function rt({
91
91
  }) {
92
92
  const n = e.colliders;
93
93
  return /* @__PURE__ */ t.jsx("group", { children: n && /* @__PURE__ */ t.jsx(
94
- Ve,
94
+ Se,
95
95
  {
96
96
  meshChildrenProvider: r,
97
97
  colliders: n
@@ -99,12 +99,12 @@ function rt({
99
99
  ) });
100
100
  }
101
101
  function Q() {
102
- return /* @__PURE__ */ t.jsx(ve, { children: /* @__PURE__ */ t.jsx(Pe, {}) });
102
+ return /* @__PURE__ */ t.jsx(ve, { children: /* @__PURE__ */ t.jsx(Ae, {}) });
103
103
  }
104
- function Pe({ positions: e = [2, 0, 2, 0, 2, 0, 2, 0] }) {
104
+ function Ae({ positions: e = [2, 0, 2, 0, 2, 0, 2, 0] }) {
105
105
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
106
106
  /* @__PURE__ */ t.jsx(
107
- G,
107
+ F,
108
108
  {
109
109
  intensity: 5,
110
110
  "rotation-x": Math.PI / 2,
@@ -113,7 +113,7 @@ function Pe({ positions: e = [2, 0, 2, 0, 2, 0, 2, 0] }) {
113
113
  }
114
114
  ),
115
115
  /* @__PURE__ */ t.jsx("group", { rotation: [0, 0.5, 0], children: /* @__PURE__ */ t.jsx("group", { children: e.map((r, n) => /* @__PURE__ */ t.jsx(
116
- G,
116
+ F,
117
117
  {
118
118
  form: "circle",
119
119
  intensity: 5,
@@ -124,7 +124,7 @@ function Pe({ positions: e = [2, 0, 2, 0, 2, 0, 2, 0] }) {
124
124
  n
125
125
  )) }) }),
126
126
  /* @__PURE__ */ t.jsx(
127
- G,
127
+ F,
128
128
  {
129
129
  intensity: 40,
130
130
  "rotation-y": Math.PI / 2,
@@ -133,7 +133,7 @@ function Pe({ positions: e = [2, 0, 2, 0, 2, 0, 2, 0] }) {
133
133
  }
134
134
  ),
135
135
  /* @__PURE__ */ t.jsx(
136
- G,
136
+ F,
137
137
  {
138
138
  intensity: 20,
139
139
  "rotation-y": -Math.PI,
@@ -142,7 +142,7 @@ function Pe({ positions: e = [2, 0, 2, 0, 2, 0, 2, 0] }) {
142
142
  }
143
143
  ),
144
144
  /* @__PURE__ */ t.jsx(
145
- G,
145
+ F,
146
146
  {
147
147
  "rotation-y": Math.PI / 2,
148
148
  position: [-5, -1, -1],
@@ -151,7 +151,7 @@ function Pe({ positions: e = [2, 0, 2, 0, 2, 0, 2, 0] }) {
151
151
  }
152
152
  ),
153
153
  /* @__PURE__ */ t.jsx(
154
- G,
154
+ F,
155
155
  {
156
156
  "rotation-y": -Math.PI / 2,
157
157
  position: [10, 1, 0],
@@ -160,7 +160,7 @@ function Pe({ positions: e = [2, 0, 2, 0, 2, 0, 2, 0] }) {
160
160
  }
161
161
  ),
162
162
  /* @__PURE__ */ t.jsx(
163
- G,
163
+ F,
164
164
  {
165
165
  form: "ring",
166
166
  color: "white",
@@ -245,10 +245,10 @@ function st({
245
245
  }
246
246
  ) });
247
247
  }
248
- const C = /* @__PURE__ */ new Map();
249
- async function U(e, r) {
250
- if (C.has(e))
251
- return C.get(e);
248
+ const D = /* @__PURE__ */ new Map();
249
+ async function C(e, r) {
250
+ if (D.has(e))
251
+ return D.get(e);
252
252
  const n = (async () => {
253
253
  var a;
254
254
  const i = r || "", o = new se({ instanceUrl: i }), u = o.api.motionGroupModels;
@@ -263,7 +263,7 @@ async function U(e, r) {
263
263
  throw console.error("Failed to fetch model:", f), f;
264
264
  }
265
265
  })();
266
- return C.set(e, n), n;
266
+ return D.set(e, n), n;
267
267
  }
268
268
  function ce(e) {
269
269
  function r(n) {
@@ -277,7 +277,7 @@ function ue(e) {
277
277
  function fe(e) {
278
278
  return /_J[0-9]+$/.test(e.name);
279
279
  }
280
- function Ue(e, r) {
280
+ function Ce(e, r) {
281
281
  let n;
282
282
  function i(o) {
283
283
  if (ue(o)) {
@@ -351,18 +351,18 @@ function de({
351
351
  m();
352
352
  }), /* @__PURE__ */ t.jsx("group", { ref: l, children: i });
353
353
  }
354
- const De = "line", Ce = "mesh";
354
+ const Ue = "line", De = "mesh";
355
355
  function ze({
356
356
  rapidlyChangingMotionState: e,
357
357
  dhParameters: r,
358
358
  ...n
359
359
  }) {
360
360
  const i = new w(), o = R([]), u = R([]);
361
- Fe.useEffect(() => {
361
+ Le.useEffect(() => {
362
362
  o.current = new Array(r.length).fill(null), u.current = new Array(r.length).fill(null);
363
363
  }, [r.length]);
364
364
  function a(d, m) {
365
- const s = new F(), c = new z(), h = new F();
365
+ const s = new L(), c = new z(), h = new L();
366
366
  i.decompose(s, c, h);
367
367
  const g = s.clone(), p = new w().makeRotationY(
368
368
  d.theta + m * (d.reverse_rotation_direction ? -1 : 1)
@@ -408,7 +408,7 @@ function ze({
408
408
  ref: (g) => {
409
409
  o.current[m] = g;
410
410
  },
411
- name: De,
411
+ name: Ue,
412
412
  points: [s, c],
413
413
  color: "white",
414
414
  lineWidth: 5
@@ -420,7 +420,7 @@ function ze({
420
420
  ref: (g) => {
421
421
  u.current[m] = g;
422
422
  },
423
- name: Ce,
423
+ name: De,
424
424
  position: c,
425
425
  children: [
426
426
  /* @__PURE__ */ t.jsx("sphereGeometry", { args: [0.01, 32, 32] }),
@@ -455,7 +455,7 @@ function Be({
455
455
  const o = Me(e);
456
456
  let u;
457
457
  try {
458
- u = Ue(o, "robot.glb").gltf;
458
+ u = Ce(o, "robot.glb").gltf;
459
459
  } catch (l) {
460
460
  throw l;
461
461
  }
@@ -500,7 +500,7 @@ function he({
500
500
  postModelRender: n,
501
501
  ...i
502
502
  }) {
503
- const [o, u] = T(null);
503
+ const [o, u] = k(null);
504
504
  return _(() => {
505
505
  (async () => {
506
506
  try {
@@ -562,14 +562,14 @@ const pe = (e, r) => {
562
562
  rapidlyChangingMotionState: e,
563
563
  modelFromController: r,
564
564
  dhParameters: n,
565
- getModel: i = U,
565
+ getModel: i = C,
566
566
  flangeRef: o,
567
567
  postModelRender: u,
568
568
  transparentColor: a,
569
569
  instanceUrl: f,
570
570
  ...l
571
571
  }) => {
572
- const [d, m] = T(null), s = M((h) => {
572
+ const [d, m] = k(null), s = M((h) => {
573
573
  m(h);
574
574
  }, []);
575
575
  _(() => {
@@ -622,7 +622,7 @@ const pe = (e, r) => {
622
622
  );
623
623
  function We({
624
624
  connectedMotionGroup: e,
625
- getModel: r = U,
625
+ getModel: r = C,
626
626
  flangeRef: n,
627
627
  transparentColor: i,
628
628
  postModelRender: o,
@@ -643,7 +643,7 @@ function We({
643
643
  ) : null;
644
644
  }
645
645
  const it = I(
646
- Te(
646
+ ke(
647
647
  ({
648
648
  robotName: e,
649
649
  programState: r,
@@ -658,31 +658,31 @@ const it = I(
658
658
  className: m
659
659
  }) => {
660
660
  var W;
661
- const s = _e(), { t: c } = Se(), [h, g] = T(!1), p = R(null), j = R(null), [y, D] = T(!1), [S, be] = T({ width: 400, height: 600 }), [$e, Re] = T(0);
661
+ const s = _e(), { t: c } = Ge(), [h, g] = k(!1), p = R(null), j = R(null), [y, U] = k(!1), [G, be] = k({ width: 400, height: 600 }), [Je, Re] = k(0);
662
662
  _(() => {
663
- const P = () => {
663
+ const A = () => {
664
664
  if (j.current) {
665
- const { offsetWidth: $, offsetHeight: J } = j.current;
666
- D($ > J), be({ width: $, height: J });
665
+ const { offsetWidth: J, offsetHeight: K } = j.current;
666
+ U(J > K), be({ width: J, height: K });
667
667
  }
668
668
  };
669
- P();
670
- const K = new ResizeObserver(P);
671
- return j.current && K.observe(j.current), () => {
672
- K.disconnect();
669
+ A();
670
+ const $ = new ResizeObserver(A);
671
+ return j.current && $.observe(j.current), () => {
672
+ $.disconnect();
673
673
  };
674
674
  }, []);
675
675
  const E = M(() => {
676
- Re((P) => P + 1);
677
- }, []), k = M(() => {
676
+ Re((A) => A + 1);
677
+ }, []), V = M(() => {
678
678
  !o || !u || (g(!0), u());
679
- }, [o, u]), L = M(() => {
679
+ }, [o, u]), P = M(() => {
680
680
  !o || !a || (g(!1), a());
681
681
  }, [o, a]), B = M(() => {
682
682
  h && a && (g(!1), a());
683
- }, [h, a]), A = y ? S.width < 350 : S.height < 200, V = y ? S.height < 310 : S.height < 450;
683
+ }, [h, a]), T = y ? G.width < 350 : G.height < 200, S = y ? G.height < 310 : G.height < 450;
684
684
  return /* @__PURE__ */ t.jsx(
685
- Ae,
685
+ Te,
686
686
  {
687
687
  ref: j,
688
688
  className: m,
@@ -718,9 +718,9 @@ const it = I(
718
718
  mr: { xs: 0.75, sm: 1, md: 1.5 },
719
719
  overflow: "hidden",
720
720
  // Prevent content from affecting container size
721
- display: A ? "none" : "block"
721
+ display: T ? "none" : "block"
722
722
  },
723
- children: !A && /* @__PURE__ */ t.jsxs(
723
+ children: !T && /* @__PURE__ */ t.jsxs(
724
724
  N,
725
725
  {
726
726
  orthographic: !0,
@@ -763,7 +763,7 @@ const it = I(
763
763
  display: "flex",
764
764
  flexDirection: "column",
765
765
  justifyContent: "flex-start",
766
- width: A ? "100%" : "50%"
766
+ width: T ? "100%" : "50%"
767
767
  },
768
768
  children: [
769
769
  /* @__PURE__ */ t.jsxs(
@@ -799,7 +799,7 @@ const it = I(
799
799
  justifyContent: "space-between"
800
800
  },
801
801
  children: [
802
- !V && d && /* @__PURE__ */ t.jsxs(b, { children: [
802
+ !S && d && /* @__PURE__ */ t.jsxs(b, { children: [
803
803
  /* @__PURE__ */ t.jsx(d, {}),
804
804
  /* @__PURE__ */ t.jsx(
805
805
  q,
@@ -817,7 +817,7 @@ const it = I(
817
817
  b,
818
818
  {
819
819
  sx: {
820
- mt: !V && d ? "auto" : 0
820
+ mt: !S && d ? "auto" : 0
821
821
  },
822
822
  children: /* @__PURE__ */ t.jsx(
823
823
  b,
@@ -836,11 +836,11 @@ const it = I(
836
836
  color: "secondary",
837
837
  size: "small",
838
838
  disabled: !o,
839
- onMouseDown: k,
840
- onMouseUp: L,
839
+ onMouseDown: V,
840
+ onMouseUp: P,
841
841
  onMouseLeave: B,
842
- onTouchStart: k,
843
- onTouchEnd: L,
842
+ onTouchStart: V,
843
+ onTouchEnd: P,
844
844
  sx: {
845
845
  textTransform: "none",
846
846
  px: 1.5,
@@ -884,15 +884,15 @@ const it = I(
884
884
  b,
885
885
  {
886
886
  sx: {
887
- flex: A ? 0 : 1,
887
+ flex: T ? 0 : 1,
888
888
  position: "relative",
889
- minHeight: A ? 0 : { xs: 120, sm: 150, md: 200 },
890
- height: A ? 0 : "auto",
889
+ minHeight: T ? 0 : { xs: 120, sm: 150, md: 200 },
890
+ height: T ? 0 : "auto",
891
891
  borderRadius: 1,
892
892
  overflow: "hidden",
893
- display: A ? "none" : "block"
893
+ display: T ? "none" : "block"
894
894
  },
895
- children: !A && /* @__PURE__ */ t.jsxs(
895
+ children: !T && /* @__PURE__ */ t.jsxs(
896
896
  N,
897
897
  {
898
898
  orthographic: !0,
@@ -926,7 +926,7 @@ const it = I(
926
926
  }
927
927
  ),
928
928
  /* @__PURE__ */ t.jsxs(b, { children: [
929
- !V && d && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
929
+ !S && d && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
930
930
  /* @__PURE__ */ t.jsx(d, {}),
931
931
  /* @__PURE__ */ t.jsx(
932
932
  q,
@@ -946,7 +946,7 @@ const it = I(
946
946
  sx: {
947
947
  display: "flex",
948
948
  justifyContent: "flex-start",
949
- mt: !V && d ? { xs: 1, sm: 2, md: 5 } : { xs: 0.5, sm: 1, md: 2 },
949
+ mt: !S && d ? { xs: 1, sm: 2, md: 5 } : { xs: 0.5, sm: 1, md: 2 },
950
950
  mb: { xs: 0.5, sm: 0.75, md: 1 }
951
951
  },
952
952
  children: /* @__PURE__ */ t.jsx(
@@ -957,11 +957,11 @@ const it = I(
957
957
  color: "secondary",
958
958
  size: "small",
959
959
  disabled: !o,
960
- onMouseDown: k,
961
- onMouseUp: L,
960
+ onMouseDown: V,
961
+ onMouseUp: P,
962
962
  onMouseLeave: B,
963
- onTouchStart: k,
964
- onTouchEnd: L,
963
+ onTouchStart: V,
964
+ onTouchEnd: P,
965
965
  sx: {
966
966
  textTransform: "none",
967
967
  px: 1.5,
@@ -1055,24 +1055,24 @@ function je({
1055
1055
  ).multiply(new w().makeRotationX(p.alpha));
1056
1056
  m.multiply(y);
1057
1057
  }
1058
- const s = new F(), c = new z(), h = new F();
1058
+ const s = new L(), c = new z(), h = new L();
1059
1059
  return m.decompose(s, c, h), s;
1060
1060
  }
1061
1061
  const f = a(e.joint_position);
1062
1062
  function l(d, m) {
1063
1063
  i.identity();
1064
- let s = new F();
1064
+ let s = new L();
1065
1065
  for (let p = 0; p < r.length; p++) {
1066
- const j = m[p] ?? 0, y = r[p], D = new w().makeRotationY(y.theta).multiply(
1066
+ const j = m[p] ?? 0, y = r[p], U = new w().makeRotationY(y.theta).multiply(
1067
1067
  new w().makeTranslation(
1068
1068
  y.a / 1e3,
1069
1069
  (y.d + j * (y.reverse_rotation_direction ? -1 : 1)) / 1e3,
1070
1070
  0
1071
1071
  )
1072
1072
  ).multiply(new w().makeRotationX(y.alpha));
1073
- i.multiply(D);
1073
+ i.multiply(U);
1074
1074
  }
1075
- const c = new F(), h = new z(), g = new F();
1075
+ const c = new L(), h = new z(), g = new L();
1076
1076
  if (i.decompose(c, h, g), s = c, o.current && o.current.position.set(s.x, s.y, s.z), u.current) {
1077
1077
  const p = u.current.geometry;
1078
1078
  p && p.setPositions && p.setPositions([0, 0, 0, s.x, s.y, s.z]);
@@ -1093,7 +1093,7 @@ function je({
1093
1093
  O,
1094
1094
  {
1095
1095
  ref: u,
1096
- points: [new F(0, 0, 0), f],
1096
+ points: [new L(0, 0, 0), f],
1097
1097
  color: "White",
1098
1098
  lineWidth: 5
1099
1099
  }
@@ -1111,14 +1111,14 @@ const we = I(
1111
1111
  rapidlyChangingMotionState: e,
1112
1112
  modelFromController: r,
1113
1113
  dhParameters: n,
1114
- getModel: i = U,
1114
+ getModel: i = C,
1115
1115
  flangeRef: o,
1116
1116
  postModelRender: u,
1117
1117
  transparentColor: a,
1118
1118
  instanceUrl: f,
1119
1119
  ...l
1120
1120
  }) => {
1121
- const [d, m] = T(null), s = M((h) => {
1121
+ const [d, m] = k(null), s = M((h) => {
1122
1122
  m(h);
1123
1123
  }, []);
1124
1124
  _(() => {
@@ -1171,7 +1171,7 @@ const we = I(
1171
1171
  );
1172
1172
  function lt({
1173
1173
  connectedMotionGroup: e,
1174
- getModel: r = U,
1174
+ getModel: r = C,
1175
1175
  flangeRef: n,
1176
1176
  transparentColor: i,
1177
1177
  postModelRender: o,
@@ -1224,7 +1224,7 @@ const ee = {
1224
1224
  0
1225
1225
  ]
1226
1226
  };
1227
- function Ke(e) {
1227
+ function $e(e) {
1228
1228
  const [r] = e.split("_");
1229
1229
  switch (r) {
1230
1230
  case "ABB":
@@ -1242,7 +1242,7 @@ function Ke(e) {
1242
1242
  }
1243
1243
  }
1244
1244
  function ct(e, r) {
1245
- const n = Ke(e);
1245
+ const n = $e(e);
1246
1246
  return n && n in ee ? ee[n] : r || null;
1247
1247
  }
1248
1248
  const ut = I((e) => {
@@ -1251,9 +1251,9 @@ const ut = I((e) => {
1251
1251
  inverseSolver: n,
1252
1252
  modelFromController: i,
1253
1253
  ...o
1254
- } = e, [u, a] = T(
1254
+ } = e, [u, a] = k(
1255
1255
  n
1256
- ), [, f] = T(!1), l = M(async () => {
1256
+ ), [, f] = k(!1), l = M(async () => {
1257
1257
  const m = new se({ instanceUrl: r });
1258
1258
  try {
1259
1259
  const s = await m.api.motionGroupModels.getMotionGroupKinematicModel(
@@ -1271,13 +1271,13 @@ const ut = I((e) => {
1271
1271
  _(() => {
1272
1272
  n === void 0 && !!i && !!r && l();
1273
1273
  }, [n, i, l, r]);
1274
- const d = Ge(() => [
1274
+ const d = Fe(() => [
1275
1275
  "KUKA_DKP250",
1276
1276
  "KUKA_DKP500_2",
1277
- "YASKAWA_TURN1",
1278
- "YASKAWA_TURN2",
1279
- "YASKAWA_TURN3"
1280
- ].includes(i), [i]);
1277
+ "Yaskawa_TURN1",
1278
+ "Yaskawa_TURN2",
1279
+ "Yaskawa_TURN3"
1280
+ ].some((m) => m.toLowerCase() === i.toLowerCase()), [i]);
1281
1281
  return u || d ? /* @__PURE__ */ t.jsx(
1282
1282
  ge,
1283
1283
  {
@@ -1307,8 +1307,8 @@ export {
1307
1307
  we as c,
1308
1308
  ge as d,
1309
1309
  at as e,
1310
- U as f,
1311
- Ke as g,
1310
+ C as f,
1311
+ $e as g,
1312
1312
  ct as h
1313
1313
  };
1314
- //# sourceMappingURL=MotionGroupVisualizer-CrLamHYm.js.map
1314
+ //# sourceMappingURL=MotionGroupVisualizer-BgvrTXeT.js.map