ss-component-new 1.3.813 → 1.3.815

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-Cw11TWAL.js → MTLLoader-DeqHL-AI.js} +39 -39
  2. package/dist/{URDFLoader-DUzCZjnV.js → URDFLoader-CiSgFgWK.js} +156 -156
  3. package/dist/{animationData-DwQetFQD.js → animationData-CVVm5rD_.js} +11 -11
  4. package/dist/{array-COidmpRY.js → array-8BOBukwZ.js} +178 -178
  5. package/dist/{iconfont-Ij2RVNFj.js → iconfont-CuxO25jz.js} +1 -1
  6. package/dist/{index-dh1Gi7jC.js → index-BGAhYPQI.js} +1 -1
  7. package/dist/{index-CcBUPD0v.js → index-BjbnnFmN.js} +3 -3
  8. package/dist/{index-CXY_sgN_.js → index-BrVAczXU.js} +4 -4
  9. package/dist/{index-Cv6rlCAH.js → index-Bz7cdL2l.js} +19463 -19316
  10. package/dist/{index-Cd11-eam.js → index-C4x5BF6v.js} +7191 -7184
  11. package/dist/{index-Dsce3BX1.js → index-CHKlT3mb.js} +3 -3
  12. package/dist/{index-CCZspl83.js → index-CKWkVjdr.js} +1 -1
  13. package/dist/{index-DQryAYzQ.js → index-DCFvBMG1.js} +1 -1
  14. package/dist/{index-DqizREJ2.js → index-DZe4W71_.js} +1 -1
  15. package/dist/{index-KEw10uzh.js → index-DmiiVNgM.js} +1 -1
  16. package/dist/{index-B7P0-Odj.js → index-DzNKmhm_.js} +2 -2
  17. package/dist/{index-B4kaaRbF.js → index-djF386bV.js} +1567 -1563
  18. package/dist/{index-D8-0gsl7.js → index-fLaMmGT7.js} +4 -4
  19. package/dist/{index-ZhT8hVC2.js → index-sDRXkpeY.js} +10 -10
  20. package/dist/{index-CaLfl7ix.js → index-vMStskjM.js} +1 -1
  21. package/dist/{index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-DFJL-r6K.js → index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-CZUHaA2-.js} +4419 -4411
  22. package/dist/{main-fNwMqnvv.js → main-CK-3ac4L.js} +2 -2
  23. package/dist/ss-component.css +2 -2
  24. package/dist/ss-component.js +8 -8
  25. package/dist/ss-component2.js +8 -8
  26. package/dist/{threeModel-BeCT-wuA.js → threeModel-5jLpnZxT.js} +49 -49
  27. package/dist/{threePreview-BnPPysvl.js → threePreview-E6bBnyEu.js} +1258 -1103
  28. package/dist/{threeSceneView-C_KAY9V1.js → threeSceneView-CIBq_Yjm.js} +71 -69
  29. package/dist/{threeSceneViewForCPMPIP-uac2fzAK.js → threeSceneViewForCPMPIP-BwD010zk.js} +7 -7
  30. package/dist/{threeTrackPathView-Ugj5_KnE.js → threeTrackPathView-B1FFx8pz.js} +31 -31
  31. package/dist/{threeViewerHost-Dv0JTTnu.js → threeViewerHost-RF4w3At4.js} +2 -2
  32. package/dist/{urdfTree-CLtWTrD6.js → urdfTree-B8y6pXfi.js} +1 -1
  33. package/dist/{workpieceTreePanel-Ch75Cqlr.js → workpieceTreePanel-v_yqJYFX.js} +35 -35
  34. package/package.json +1 -1
@@ -1,5 +1,5 @@
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-DFJL-r6K.js";
2
- class xe extends Y {
1
+ import { U as Z, Y as X, u as R, C as P, c as S, a2 as H, V as O, Z as _, s as ie, a3 as N, aG as Y, $ as B, k as ne, aK as K, a0 as W, h as $, al as ae, a5 as oe, aD as le, aX as q, an as Q, bk as ce, au as he } from "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-CZUHaA2-.js";
2
+ class xe extends Z {
3
3
  /**
4
4
  * Constructs a new STL loader.
5
5
  *
@@ -18,7 +18,7 @@ class xe extends Y {
18
18
  * @param {onErrorCallback} onError - Executed when errors occur.
19
19
  */
20
20
  load(t, s, i, e) {
21
- const r = this, c = new Z(this.manager);
21
+ const r = this, c = new X(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,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 R(), 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), R = a.getFloat32(U + 8, !0);
58
+ const U = j + y * f, G = a.getFloat32(U, !0), z = a.getFloat32(U + 4, !0), T = 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 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);
64
+ const E = U + F * 12, k = y * 3 * 3 + (F - 1) * 3;
65
+ M[k] = a.getFloat32(E, !0), M[k + 1] = a.getFloat32(E + 4, !0), M[k + 2] = a.getFloat32(E + 8, !0), V[k] = G, V[k + 1] = z, V[k + 2] = T, p && (A.setRGB(u, d, m, S), g[k] = A.r, g[k + 1] = A.g, g[k + 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
- const a = new D(), o = /solid([\s\S]*?)endsolid/g, u = /facet([\s\S]*?)endfacet/g, d = /solid\s(.+)/;
71
+ const a = new R(), 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, R = 0;
79
+ let z = 0, T = 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]), R++;
82
+ j.x = parseFloat(f[1]), j.y = parseFloat(f[2]), j.z = parseFloat(f[3]), T++;
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
- 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++;
84
+ x.push(parseFloat(f[1]), parseFloat(f[2]), parseFloat(f[3])), C.push(j.x, j.y, j.z), z++, V++;
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++;
86
86
  }
87
- const U = k, E = M - k;
88
- a.userData.groupNames = v, a.addGroup(U, E, w), w++;
87
+ const U = M, G = V - M;
88
+ a.userData.groupNames = v, a.addGroup(U, G, 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 _(x, 3)), a.setAttribute("normal", new _(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(), B = 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(), D = new P();
109
109
  function me() {
110
110
  const I = {
111
111
  objects: [],
@@ -266,7 +266,7 @@ function me() {
266
266
  };
267
267
  return I.startObject("", !1), I;
268
268
  }
269
- class we extends Y {
269
+ class we extends Z {
270
270
  /**
271
271
  * Constructs a new OBJ loader.
272
272
  *
@@ -285,7 +285,7 @@ class we extends Y {
285
285
  * @param {onErrorCallback} onError - Executed when errors occur.
286
286
  */
287
287
  load(t, s, i, e) {
288
- const r = this, c = new Z(this.manager);
288
+ const r = this, c = new X(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));
@@ -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 ? (B.setRGB(
334
+ ), o.length >= 7 ? (D.setRGB(
335
335
  parseFloat(o[4]),
336
336
  parseFloat(o[5]),
337
337
  parseFloat(o[6]),
338
338
  S
339
- ), s.colors.push(B.r, B.g, B.b)) : s.colors.push(void 0, void 0, void 0);
339
+ ), s.colors.push(D.r, D.g, D.b)) : s.colors.push(void 0, void 0, void 0);
340
340
  break;
341
341
  case "vn":
342
342
  s.normals.push(
@@ -420,22 +420,22 @@ class we extends Y {
420
420
  const n = s.objects[h], a = n.geometry, o = n.materials, u = a.type === "Line", d = a.type === "Points";
421
421
  let m = !1;
422
422
  if (a.vertices.length === 0) continue;
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));
423
+ const p = new R();
424
+ p.setAttribute("position", new _(a.vertices, 3)), a.normals.length > 0 && p.setAttribute("normal", new _(a.normals, 3)), a.colors.length > 0 && (m = !0, p.setAttribute("color", new _(a.colors, 3))), a.hasUVIndices === !0 && p.setAttribute("uv", new _(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 W)) {
431
- const w = new W();
432
- X.prototype.copy.call(w, f), w.color.copy(f.color), f = w;
433
- } else if (d && f && !(f instanceof T)) {
434
- const w = new T({ size: 10, sizeAttenuation: !1 });
435
- X.prototype.copy.call(w, f), w.color.copy(f.color), w.map = f.map, f = w;
430
+ if (f = this.materials.create(v.name), u && f && !(f instanceof N)) {
431
+ const w = new N();
432
+ Y.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 });
435
+ Y.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 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);
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);
439
439
  }
440
440
  let b;
441
441
  if (g.length > 1) {
@@ -443,21 +443,21 @@ 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 $(p, g) : d ? b = new N(p, g) : b = new K(p, g);
446
+ u ? b = new K(p, g) : d ? b = new W(p, g) : b = new $(p, g);
447
447
  } else
448
- u ? b = new $(p, g[0]) : d ? b = new N(p, g[0]) : b = new K(p, g[0]);
448
+ u ? b = new K(p, g[0]) : d ? b = new W(p, g[0]) : b = new $(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 T({ 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 N(l, h);
452
+ const h = new B({ size: 1, sizeAttenuation: !1 }), l = new R();
453
+ l.setAttribute("position", new _(s.vertices, 3)), s.colors.length > 0 && s.colors[0] !== void 0 && (l.setAttribute("color", new _(s.colors, 3)), h.vertexColors = !0);
454
+ const n = new W(l, h);
455
455
  r.add(n);
456
456
  }
457
457
  return r;
458
458
  }
459
459
  }
460
- class ye extends Y {
460
+ class ye extends Z {
461
461
  constructor(t) {
462
462
  super(t);
463
463
  }
@@ -471,7 +471,7 @@ class ye extends Y {
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 Z(this.manager);
474
+ const r = this, c = this.path === "" ? ae.extractUrlBase(t) : this.path, h = new X(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));