@wandelbots/wandelbots-js-react-components 2.5.1 → 2.6.0-pr.bugfix-remove-test-for-6-axis.223.8d0120f

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -11396,25 +11396,17 @@ function dl(e) {
11396
11396
  }
11397
11397
  function Fb(e, t) {
11398
11398
  let n;
11399
- const r = [];
11400
- function o(s) {
11401
- return s.length === 6;
11402
- }
11403
- function i(s) {
11404
- if (fl(s)) {
11399
+ function r(o) {
11400
+ if (fl(o)) {
11405
11401
  if (n)
11406
11402
  throw Error(
11407
- `Found multiple flange groups in robot model ${t}; first ${n.name} then ${s.name}. Only one _FLG group is allowed.`
11403
+ `Found multiple flange groups in robot model ${t}; first ${n.name} then ${o.name}. Only one _FLG group is allowed.`
11408
11404
  );
11409
- n = s;
11405
+ n = o;
11410
11406
  }
11411
- dl(s) && r.push(s), s.children.map(i);
11407
+ dl(o), o.children.map(r);
11412
11408
  }
11413
- if (i(e.scene), !o(r))
11414
- throw Error(
11415
- `Expected to find 6 joint groups in robot model ${t} with names _J01, _J02 etc, found ${r.length}. Only 6-joint robot models are currently supported.`
11416
- );
11417
- if (!n)
11409
+ if (r(e.scene), !n)
11418
11410
  throw Error(
11419
11411
  `No flange group found in robot model ${t}. Flange must be identified with a name ending in _FLG.`
11420
11412
  );