ss-component-new 1.3.953 → 1.3.955

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 (57) hide show
  1. package/dist/{MTLLoader-66_Xzmzm.js → MTLLoader-DzjKB9PB.js} +29 -29
  2. package/dist/{URDFLoader-CICacK2L.js → URDFLoader-CDgPvYJq.js} +111 -111
  3. package/dist/{animationData-CZXvgRhD.js → animationData-CqN3Gv2x.js} +13 -13
  4. package/dist/{array-C5UNCKeh.js → array-6qmWF4NS.js} +73 -73
  5. package/dist/{clone-gv338csU.js → clone-enIUXrNB.js} +1 -1
  6. package/dist/{eleIcon-CiZgNqkZ.js → eleIcon-A3vRnI68.js} +1 -1
  7. package/dist/{iconfont-nqjz27pD.js → iconfont-DqZPh2Nk.js} +1 -1
  8. package/dist/{index-Ckw_qv2k.js → index-B9jL4eFd.js} +1670 -1665
  9. package/dist/{index-DZZfuqVr.js → index-BEjA9yzO.js} +4 -4
  10. package/dist/{index-BaS3Tt8P.js → index-BMQnBpAf.js} +26245 -25877
  11. package/dist/{index-Ctb274Mb.js → index-BOkn3Z8K.js} +2 -2
  12. package/dist/{index-BrU5J7vP.js → index-BPoFKGAP.js} +1 -1
  13. package/dist/{index-f4ghlvKR.js → index-BQ4FS8Ae.js} +5 -5
  14. package/dist/{index-D-bF5Vui.js → index-BS7CtTkc.js} +25 -25
  15. package/dist/{index-DHa9l__X.js → index-BVMz8fLK.js} +1 -1
  16. package/dist/{index-uewOOGsZ.js → index-BYMu-zGP.js} +4 -4
  17. package/dist/{index-CB58tBhI.js → index-BbBmVp08.js} +3 -3
  18. package/dist/{index-BF_5boEP.js → index-BwoteeRK.js} +2 -2
  19. package/dist/{index-CWwcSclP.js → index-BxFmR9zf.js} +2 -2
  20. package/dist/{index-BH0rKmGy.js → index-C6aL5MXr.js} +6 -6
  21. package/dist/index-CBr8WLVv.js +20932 -0
  22. package/dist/{index-WqdljUtR.js → index-CIoV7Xy_.js} +4 -4
  23. package/dist/{index-UvmliM7i.js → index-CWMtJogu.js} +5 -5
  24. package/dist/{index-CQp9tapP.js → index-CgpyMlDV.js} +5 -5
  25. package/dist/{index-BV8LIU_y.js → index-CmLqCTxw.js} +1 -1
  26. package/dist/{index-CzBdQkfi.js → index-CrVKKQt9.js} +2 -2
  27. package/dist/{index-XUGg--ya.js → index-CsiJCehR.js} +6 -6
  28. package/dist/{index-CqNbTyq1.js → index-CySupOYJ.js} +8 -8
  29. package/dist/{index-CgAhcNpG.js → index-DJhlDEBD.js} +2 -2
  30. package/dist/{index-DqIr3pMS.js → index-DZQ0hDNm.js} +10 -10
  31. package/dist/{index-BNapHgv7.js → index-Dt13Uodt.js} +2 -2
  32. package/dist/{index-Dr1LTkkf.js → index-EhemqvLS.js} +2 -2
  33. package/dist/{index-CSNsYiCg.js → index-IxT_CAl8.js} +1 -1
  34. package/dist/{index-BrLvsfsS.js → index-SWDLqNOA.js} +2 -2
  35. package/dist/{index-CNj09ldw.js → index-_x2xfv9V.js} +1 -1
  36. package/dist/{index-Cnwz5wTG.js → index-bZ1wlvY7.js} +3 -3
  37. package/dist/{index-DBD9kze_.js → index-t33PdUIK.js} +1 -1
  38. package/dist/{index-6x64U4xp.js → index-t8R7Md2C.js} +4 -4
  39. package/dist/{index-BWnuz9hP.js → index-trHoPS4v.js} +3 -3
  40. package/dist/{index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-D6QhBEr9.js → index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-BdssV-gt.js} +11868 -11965
  41. package/dist/{isString-DEcfgQpK.js → isString-BpvTDZyl.js} +1 -1
  42. package/dist/{main-Drnyu_mq.js → main-DIPrC0Ab.js} +4 -4
  43. package/dist/{menuIndex-BHhm9-De.js → menuIndex-CZQca6lG.js} +1 -1
  44. package/dist/{request-BQZTUjLG.js → request-DKhCGOo8.js} +86 -86
  45. package/dist/ss-component.css +2 -2
  46. package/dist/ss-component.js +12 -12
  47. package/dist/ss-component2.js +13 -13
  48. package/dist/{threeModel-DIUer2ff.js → threeModel-Ufe8fQJP.js} +5 -5
  49. package/dist/{threePreview-Br0jokOd.js → threePreview-CHES8Bh8.js} +6 -6
  50. package/dist/{threeSceneView-CNwIglEd.js → threeSceneView-4xchiw-K.js} +12 -12
  51. package/dist/{threeSceneViewForCPMPIP-7zWKTdsr.js → threeSceneViewForCPMPIP-W-6kPpDa.js} +9 -9
  52. package/dist/{threeTrackPathView-DL5zbm0Y.js → threeTrackPathView-B4Tk_gaW.js} +36 -36
  53. package/dist/{threeViewerHost-o_xofqEd.js → threeViewerHost-DTSFxOPF.js} +29 -29
  54. package/dist/{urdfTree-CamN_pvs.js → urdfTree-CujFs1QO.js} +1 -1
  55. package/dist/{workpieceTreePanel-_urnKrEm.js → workpieceTreePanel-BhfvrB43.js} +4 -4
  56. package/package.json +1 -1
  57. package/dist/index-DF6rQGsi.js +0 -21106
@@ -1,4 +1,4 @@
1
- import { Y, Z, u as D, C as P, c as S, a3 as H, V as O, _ as V, s as ie, a4 as N, aH as X, a0 as B, k as ne, aL as K, a1 as W, h as Q, am as ae, a6 as oe, aE as le, aY as q, ao as $, bk as ce, av as he } from "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-D6QhBEr9.js";
1
+ import { R as Y, U as Z, t as D, C as P, c as S, a1 as H, V as O, Y as k, r as ie, a2 as W, aF as X, _ as T, j as ne, aJ as $, $ as N, f 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-BdssV-gt.js";
2
2
  class xe extends Y {
3
3
  /**
4
4
  * Constructs a new STL loader.
@@ -53,41 +53,41 @@ class xe extends Y {
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(), k = new Float32Array(o * 3 * 3), M = new Float32Array(o * 3 * 3), A = new P();
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();
57
57
  for (let y = 0; y < o; y++) {
58
- const U = j + y * f, E = a.getFloat32(U, !0), z = a.getFloat32(U + 4, !0), T = 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
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] = T, p && (A.setRGB(u, d, m, S), g[_] = A.r, g[_ + 1] = A.g, g[_ + 2] = A.b);
65
+ M[_] = a.getFloat32(G, !0), M[_ + 1] = a.getFloat32(G + 4, !0), M[_ + 2] = a.getFloat32(G + 8, !0), V[_] = E, V[_ + 1] = z, V[_ + 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(k, 3)), w.setAttribute("normal", new H(M, 3)), p && (w.setAttribute("color", new H(g, 3)), w.hasColors = !0, w.alpha = v), w;
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;
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, k = 0, M = 0;
74
+ let f, w = 0, M = 0, V = 0;
75
75
  for (; (f = o.exec(n)) !== null; ) {
76
- k = M;
76
+ M = V;
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
- let z = 0, T = 0;
79
+ let z = 0, R = 0;
80
80
  const F = f[0];
81
81
  for (; (f = b.exec(F)) !== null; )
82
- j.x = parseFloat(f[1]), j.y = parseFloat(f[2]), j.z = parseFloat(f[3]), T++;
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++, M++;
85
- T !== 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++;
84
+ x.push(parseFloat(f[1]), parseFloat(f[2]), parseFloat(f[3])), C.push(j.x, j.y, j.z), z++, V++;
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 = k, E = M - k;
87
+ const U = M, E = V - M;
88
88
  a.userData.groupNames = v, a.addGroup(U, E, w), w++;
89
89
  }
90
- return a.setAttribute("position", new V(x, 3)), a.setAttribute("normal", new V(C, 3)), a;
90
+ return a.setAttribute("position", new k(x, 3)), a.setAttribute("normal", new k(C, 3)), a;
91
91
  }
92
92
  function c(n) {
93
93
  return typeof n != "string" ? new TextDecoder().decode(n) : n;
@@ -105,7 +105,7 @@ class xe extends Y {
105
105
  return s(l) ? e(l) : r(c(t));
106
106
  }
107
107
  }
108
- const ue = /^[og]\s*(.+)?/, pe = /^mtllib /, fe = /^usemtl /, de = /^usemap /, ee = /\s+/, te = new O(), J = new O(), se = new O(), re = new O(), L = new O(), R = new P();
108
+ const ue = /^[og]\s*(.+)?/, pe = /^mtllib /, fe = /^usemtl /, de = /^usemap /, ee = /\s+/, te = new O(), J = new O(), se = new O(), re = new O(), L = new O(), B = new P();
109
109
  function me() {
110
110
  const I = {
111
111
  objects: [],
@@ -331,12 +331,12 @@ class we extends Y {
331
331
  parseFloat(o[1]),
332
332
  parseFloat(o[2]),
333
333
  parseFloat(o[3])
334
- ), o.length >= 7 ? (R.setRGB(
334
+ ), o.length >= 7 ? (B.setRGB(
335
335
  parseFloat(o[4]),
336
336
  parseFloat(o[5]),
337
337
  parseFloat(o[6]),
338
338
  S
339
- ), s.colors.push(R.r, R.g, R.b)) : s.colors.push(void 0, void 0, void 0);
339
+ ), s.colors.push(B.r, B.g, B.b)) : s.colors.push(void 0, void 0, void 0);
340
340
  break;
341
341
  case "vn":
342
342
  s.normals.push(
@@ -421,21 +421,21 @@ class we extends Y {
421
421
  let m = !1;
422
422
  if (a.vertices.length === 0) continue;
423
423
  const p = new D();
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));
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));
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();
430
+ if (f = this.materials.create(v.name), u && f && !(f instanceof W)) {
431
+ const w = new W();
432
432
  X.prototype.copy.call(w, f), w.color.copy(f.color), f = w;
433
- } else if (d && f && !(f instanceof B)) {
434
- const w = new B({ size: 10, sizeAttenuation: !1 });
433
+ } else if (d && f && !(f instanceof T)) {
434
+ const w = new T({ size: 10, sizeAttenuation: !1 });
435
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 B({ 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,15 +443,15 @@ class we extends Y {
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 Q(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 Q(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
- const h = new B({ size: 1, sizeAttenuation: !1 }), l = new D();
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 W(l, h);
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 N(l, h);
455
455
  r.add(n);
456
456
  }
457
457
  return r;
@@ -636,8 +636,8 @@ class ge {
636
636
  }
637
637
  getTextureParams(t, s) {
638
638
  const i = {
639
- scale: new $(1, 1),
640
- offset: new $(0, 0)
639
+ scale: new Q(1, 1),
640
+ offset: new Q(0, 0)
641
641
  }, e = t.split(/\s+/);
642
642
  let r;
643
643
  return r = e.indexOf("-bm"), r >= 0 && (s.bumpScale = parseFloat(e[r + 1]), e.splice(r, 2)), r = e.indexOf("-mm"), r >= 0 && (s.displacementBias = parseFloat(e[r + 1]), s.displacementScale = parseFloat(e[r + 2]), e.splice(r, 3)), r = e.indexOf("-s"), r >= 0 && (i.scale.set(parseFloat(e[r + 1]), parseFloat(e[r + 2])), e.splice(r, 4)), r = e.indexOf("-o"), r >= 0 && (i.offset.set(parseFloat(e[r + 1]), parseFloat(e[r + 2])), e.splice(r, 4)), i.url = e.join(" ").trim(), i;