ss-component-new 1.3.784 → 1.3.786

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 (34) hide show
  1. package/dist/{MTLLoader-BHdJHSkr.js → MTLLoader-BLW4rBj3.js} +28 -28
  2. package/dist/{URDFLoader-ohe7Kxa1.js → URDFLoader-CJ0eZ787.js} +156 -156
  3. package/dist/{animationData-DMr2qxXJ.js → animationData-WcAtIS9e.js} +1 -1
  4. package/dist/{array-B8CSTXzZ.js → array-CN4vkI8A.js} +2 -2
  5. package/dist/{iconfont-DKGYqhSm.js → iconfont-CDGUReXk.js} +1 -1
  6. package/dist/{index-Bop5WP-x.js → index-5tePQElb.js} +4 -4
  7. package/dist/{index-D-WZTRWN.js → index-91K8-FWl.js} +1 -1
  8. package/dist/{index-IV0z6s66.js → index-B4_YIoxl.js} +3 -3
  9. package/dist/{index-D8ry-Xrv.js → index-BAVVOXNT.js} +2 -2
  10. package/dist/{index-fruZr2Z0.js → index-CTtdbJun.js} +1 -1
  11. package/dist/{index-CJvdgOJ7.js → index-CW6AJvX3.js} +3 -3
  12. package/dist/{index-CKcwhpcZ.js → index-CaYAUx1Y.js} +2 -2
  13. package/dist/{index-CJdeZpNV.js → index-DKgaK1z9.js} +1 -1
  14. package/dist/{index-CzHdcI3D.js → index-DQi7rHI6.js} +1 -1
  15. package/dist/{index-CldUrEo8.js → index-DReZgbY8.js} +5236 -5221
  16. package/dist/{index-Ctzzbl6u.js → index-DTy5i8xl.js} +1 -1
  17. package/dist/{index-CZuQ4EXQ.js → index-DV2MkFPZ.js} +1 -1
  18. package/dist/{index-CEsP_vEV.js → index-DrOrOkl6.js} +1 -1
  19. package/dist/{index-D_GIxxBc.js → index-gmSfdwbk.js} +3 -3
  20. package/dist/{index-Bns6n6bL.js → index-x_-HjIg4.js} +13098 -13053
  21. package/dist/{index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-Cnzxqin3.js → index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-D22lZDxk.js} +58 -58
  22. package/dist/{main-DQ7uJJSW.js → main-Buth4R-1.js} +2 -2
  23. package/dist/ss-component.css +1 -1
  24. package/dist/ss-component.js +8 -8
  25. package/dist/ss-component2.js +8 -8
  26. package/dist/{threeModel-Bnch1MTL.js → threeModel-BdVEXYKw.js} +3 -3
  27. package/dist/{threePreview-Df1RqB58.js → threePreview-jzNjQlxy.js} +4 -4
  28. package/dist/{threeSceneView-Ck0fUe1m.js → threeSceneView-jcSfmgQw.js} +8 -8
  29. package/dist/{threeSceneViewForCPMPIP-B2JSfR10.js → threeSceneViewForCPMPIP-BWt8OBny.js} +7 -7
  30. package/dist/{threeTrackPathView-CLd1Lo8u.js → threeTrackPathView-DpDSwCX_.js} +3 -3
  31. package/dist/{threeViewerHost-BOb2eL-D.js → threeViewerHost-Dn4UiXLt.js} +2 -2
  32. package/dist/{urdfTree-d-LtZicb.js → urdfTree-BuDVQq17.js} +1 -1
  33. package/dist/{workpieceTreePanel-ChSYDPyx.js → workpieceTreePanel-_uSgHKC_.js} +12 -12
  34. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { R as X, U as Y, u as D, C as P, c as S, a1 as H, V as O, Y as k, s as ie, a2 as N, aG as Z, _ as T, k as ne, aK as K, $ as W, h as $, al as ae, a4 as oe, aD as le, aX as q, an as Q, bi as ce, au as he } from "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-Cnzxqin3.js";
2
- class xe extends X {
1
+ import { R as Y, U as Z, u as D, C as P, c as S, a1 as H, V as O, Y as V, s as ie, a2 as W, aF as X, _ as T, k as ne, aJ as $, $ as N, h as K, ak as ae, a4 as oe, aC as le, aW as q, am as Q, bi as ce, at as he } from "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-D22lZDxk.js";
2
+ class xe extends Y {
3
3
  /**
4
4
  * Constructs a new STL loader.
5
5
  *
@@ -18,7 +18,7 @@ class xe extends X {
18
18
  * @param {onErrorCallback} onError - Executed when errors occur.
19
19
  */
20
20
  load(t, s, i, e) {
21
- const r = this, c = new Y(this.manager);
21
+ const r = this, c = new Z(this.manager);
22
22
  c.setPath(this.path), c.setResponseType("arraybuffer"), c.setRequestHeader(this.requestHeader), c.setWithCredentials(this.withCredentials), c.load(t, function(h) {
23
23
  try {
24
24
  s(r.parse(h));
@@ -53,27 +53,27 @@ class xe extends X {
53
53
  let u, d, m, p = !1, g, b, x, C, v;
54
54
  for (let y = 0; y < 70; y++)
55
55
  a.getUint32(y, !1) == 1129270351 && a.getUint8(y + 4) == 82 && a.getUint8(y + 5) == 61 && (p = !0, g = new Float32Array(o * 3 * 3), b = a.getUint8(y + 6) / 255, x = a.getUint8(y + 7) / 255, C = a.getUint8(y + 8) / 255, v = a.getUint8(y + 9) / 255);
56
- const j = 84, f = 12 * 4 + 2, w = new D(), M = new Float32Array(o * 3 * 3), V = new Float32Array(o * 3 * 3), A = new P();
56
+ const j = 84, f = 12 * 4 + 2, w = new D(), k = new Float32Array(o * 3 * 3), M = new Float32Array(o * 3 * 3), A = new P();
57
57
  for (let y = 0; y < o; y++) {
58
- const U = j + y * f, G = a.getFloat32(U, !0), z = a.getFloat32(U + 4, !0), R = a.getFloat32(U + 8, !0);
58
+ const U = j + y * f, E = a.getFloat32(U, !0), z = a.getFloat32(U + 4, !0), R = a.getFloat32(U + 8, !0);
59
59
  if (p) {
60
60
  const F = a.getUint16(U + 48, !0);
61
61
  (F & 32768) === 0 ? (u = (F & 31) / 31, d = (F >> 5 & 31) / 31, m = (F >> 10 & 31) / 31) : (u = b, d = x, m = C);
62
62
  }
63
63
  for (let F = 1; F <= 3; F++) {
64
- const E = U + F * 12, _ = y * 3 * 3 + (F - 1) * 3;
65
- M[_] = a.getFloat32(E, !0), M[_ + 1] = a.getFloat32(E + 4, !0), M[_ + 2] = a.getFloat32(E + 8, !0), V[_] = G, V[_ + 1] = z, V[_ + 2] = R, p && (A.setRGB(u, d, m, S), g[_] = A.r, g[_ + 1] = A.g, g[_ + 2] = A.b);
64
+ const G = U + F * 12, _ = y * 3 * 3 + (F - 1) * 3;
65
+ k[_] = a.getFloat32(G, !0), k[_ + 1] = a.getFloat32(G + 4, !0), k[_ + 2] = a.getFloat32(G + 8, !0), M[_] = E, M[_ + 1] = z, M[_ + 2] = R, p && (A.setRGB(u, d, m, S), g[_] = A.r, g[_ + 1] = A.g, g[_ + 2] = A.b);
66
66
  }
67
67
  }
68
- return w.setAttribute("position", new H(M, 3)), w.setAttribute("normal", new H(V, 3)), p && (w.setAttribute("color", new H(g, 3)), w.hasColors = !0, w.alpha = v), w;
68
+ return w.setAttribute("position", new H(k, 3)), w.setAttribute("normal", new H(M, 3)), p && (w.setAttribute("color", new H(g, 3)), w.hasColors = !0, w.alpha = v), w;
69
69
  }
70
70
  function r(n) {
71
71
  const a = new D(), o = /solid([\s\S]*?)endsolid/g, u = /facet([\s\S]*?)endfacet/g, d = /solid\s(.+)/;
72
72
  let m = 0;
73
73
  const p = /[\s]+([+-]?(?:\d*)(?:\.\d*)?(?:[eE][+-]?\d+)?)/.source, g = new RegExp("vertex" + p + p + p, "g"), b = new RegExp("normal" + p + p + p, "g"), x = [], C = [], v = [], j = new O();
74
- let f, w = 0, M = 0, V = 0;
74
+ let f, w = 0, k = 0, M = 0;
75
75
  for (; (f = o.exec(n)) !== null; ) {
76
- M = V;
76
+ k = M;
77
77
  const A = f[0], y = (f = d.exec(A)) !== null ? f[1] : "";
78
78
  for (v.push(y); (f = u.exec(A)) !== null; ) {
79
79
  let z = 0, R = 0;
@@ -81,13 +81,13 @@ class xe extends X {
81
81
  for (; (f = b.exec(F)) !== null; )
82
82
  j.x = parseFloat(f[1]), j.y = parseFloat(f[2]), j.z = parseFloat(f[3]), R++;
83
83
  for (; (f = g.exec(F)) !== null; )
84
- x.push(parseFloat(f[1]), parseFloat(f[2]), parseFloat(f[3])), C.push(j.x, j.y, j.z), z++, V++;
84
+ x.push(parseFloat(f[1]), parseFloat(f[2]), parseFloat(f[3])), C.push(j.x, j.y, j.z), z++, M++;
85
85
  R !== 1 && console.error("THREE.STLLoader: Something isn't right with the normal of face number " + m), z !== 3 && console.error("THREE.STLLoader: Something isn't right with the vertices of face number " + m), m++;
86
86
  }
87
- const U = M, G = V - M;
88
- a.userData.groupNames = v, a.addGroup(U, G, w), w++;
87
+ const U = k, E = M - k;
88
+ a.userData.groupNames = v, a.addGroup(U, E, w), w++;
89
89
  }
90
- return a.setAttribute("position", new k(x, 3)), a.setAttribute("normal", new k(C, 3)), a;
90
+ return a.setAttribute("position", new V(x, 3)), a.setAttribute("normal", new V(C, 3)), a;
91
91
  }
92
92
  function c(n) {
93
93
  return typeof n != "string" ? new TextDecoder().decode(n) : n;
@@ -266,7 +266,7 @@ function me() {
266
266
  };
267
267
  return I.startObject("", !1), I;
268
268
  }
269
- class we extends X {
269
+ class we extends Y {
270
270
  /**
271
271
  * Constructs a new OBJ loader.
272
272
  *
@@ -285,7 +285,7 @@ class we extends X {
285
285
  * @param {onErrorCallback} onError - Executed when errors occur.
286
286
  */
287
287
  load(t, s, i, e) {
288
- const r = this, c = new Y(this.manager);
288
+ const r = this, c = new Z(this.manager);
289
289
  c.setPath(this.path), c.setRequestHeader(this.requestHeader), c.setWithCredentials(this.withCredentials), c.load(t, function(h) {
290
290
  try {
291
291
  s(r.parse(h));
@@ -421,21 +421,21 @@ class we extends X {
421
421
  let m = !1;
422
422
  if (a.vertices.length === 0) continue;
423
423
  const p = new D();
424
- p.setAttribute("position", new k(a.vertices, 3)), a.normals.length > 0 && p.setAttribute("normal", new k(a.normals, 3)), a.colors.length > 0 && (m = !0, p.setAttribute("color", new k(a.colors, 3))), a.hasUVIndices === !0 && p.setAttribute("uv", new k(a.uvs, 2));
424
+ p.setAttribute("position", new V(a.vertices, 3)), a.normals.length > 0 && p.setAttribute("normal", new V(a.normals, 3)), a.colors.length > 0 && (m = !0, p.setAttribute("color", new V(a.colors, 3))), a.hasUVIndices === !0 && p.setAttribute("uv", new V(a.uvs, 2));
425
425
  const g = [];
426
426
  for (let x = 0, C = o.length; x < C; x++) {
427
427
  const v = o[x], j = v.name + "_" + v.smooth + "_" + m;
428
428
  let f = s.materials[j];
429
429
  if (this.materials !== null) {
430
- if (f = this.materials.create(v.name), u && f && !(f instanceof N)) {
431
- const w = new N();
432
- Z.prototype.copy.call(w, f), w.color.copy(f.color), f = w;
430
+ if (f = this.materials.create(v.name), u && f && !(f instanceof W)) {
431
+ const w = new W();
432
+ X.prototype.copy.call(w, f), w.color.copy(f.color), f = w;
433
433
  } else if (d && f && !(f instanceof T)) {
434
434
  const w = new T({ size: 10, sizeAttenuation: !1 });
435
- Z.prototype.copy.call(w, f), w.color.copy(f.color), w.map = f.map, f = w;
435
+ X.prototype.copy.call(w, f), w.color.copy(f.color), w.map = f.map, f = w;
436
436
  }
437
437
  }
438
- f === void 0 && (u ? f = new N() : d ? f = new T({ size: 1, sizeAttenuation: !1 }) : f = new ne(), f.name = v.name, f.flatShading = !v.smooth, f.vertexColors = m, s.materials[j] = f), g.push(f);
438
+ f === void 0 && (u ? f = new W() : d ? f = new T({ size: 1, sizeAttenuation: !1 }) : f = new ne(), f.name = v.name, f.flatShading = !v.smooth, f.vertexColors = m, s.materials[j] = f), g.push(f);
439
439
  }
440
440
  let b;
441
441
  if (g.length > 1) {
@@ -443,21 +443,21 @@ class we extends X {
443
443
  const v = o[x];
444
444
  p.addGroup(v.groupStart, v.groupCount, x);
445
445
  }
446
- u ? b = new K(p, g) : d ? b = new W(p, g) : b = new $(p, g);
446
+ u ? b = new $(p, g) : d ? b = new N(p, g) : b = new K(p, g);
447
447
  } else
448
- u ? b = new K(p, g[0]) : d ? b = new W(p, g[0]) : b = new $(p, g[0]);
448
+ u ? b = new $(p, g[0]) : d ? b = new N(p, g[0]) : b = new K(p, g[0]);
449
449
  b.name = n.name, r.add(b);
450
450
  }
451
451
  else if (s.vertices.length > 0) {
452
452
  const h = new T({ size: 1, sizeAttenuation: !1 }), l = new D();
453
- l.setAttribute("position", new k(s.vertices, 3)), s.colors.length > 0 && s.colors[0] !== void 0 && (l.setAttribute("color", new k(s.colors, 3)), h.vertexColors = !0);
454
- const n = new W(l, h);
453
+ l.setAttribute("position", new V(s.vertices, 3)), s.colors.length > 0 && s.colors[0] !== void 0 && (l.setAttribute("color", new V(s.colors, 3)), h.vertexColors = !0);
454
+ const n = new N(l, h);
455
455
  r.add(n);
456
456
  }
457
457
  return r;
458
458
  }
459
459
  }
460
- class ye extends X {
460
+ class ye extends Y {
461
461
  constructor(t) {
462
462
  super(t);
463
463
  }
@@ -471,7 +471,7 @@ class ye extends X {
471
471
  * @param {onErrorCallback} onError - Executed when errors occur.
472
472
  */
473
473
  load(t, s, i, e) {
474
- const r = this, c = this.path === "" ? ae.extractUrlBase(t) : this.path, h = new Y(this.manager);
474
+ const r = this, c = this.path === "" ? ae.extractUrlBase(t) : this.path, h = new Z(this.manager);
475
475
  h.setPath(this.path), h.setRequestHeader(this.requestHeader), h.setWithCredentials(this.withCredentials), h.load(t, function(l) {
476
476
  try {
477
477
  s(r.parse(l, c));