ss-component-new 1.3.683 → 1.3.684

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 (74) hide show
  1. package/dist/{MTLLoader-DPHzTMwa.js → MTLLoader-DzMo1SNe.js} +102 -102
  2. package/dist/{URDFLoader-M-UG5-pR.js → URDFLoader-BAROJ9ka.js} +591 -586
  3. package/dist/{animationData-DRuHGkTO.js → animationData-CTWTDXsQ.js} +7 -7
  4. package/dist/{array-DjjQ0-_X.js → array-CRYq9Jxn.js} +13 -14
  5. package/dist/{clone-nUXh221j.js → clone-sAhQxdz5.js} +1 -1
  6. package/dist/{eleIcon-DlIcb4df.js → eleIcon-6RTuwqdk.js} +2 -2
  7. package/dist/fileUtil-UOt_otFo.js +20 -0
  8. package/dist/{iconfont-BhJBoU2I.js → iconfont-TorEaqH3.js} +125 -125
  9. package/dist/{index-CG1vGzHt.js → index--N4l6N1w.js} +1 -1
  10. package/dist/{index-B6x7nsvL.js → index-2gwwCj6d.js} +5 -5
  11. package/dist/{index-ChfKhYMO.js → index-9UYMNDVY.js} +24355 -24391
  12. package/dist/{index-Cl2tex39.js → index-B0BoH4wm.js} +163 -172
  13. package/dist/{index-R2i3Xnfq.js → index-B30aeKGM.js} +4 -4
  14. package/dist/index-B4nNFQS-.js +11779 -0
  15. package/dist/{index-CIoBc8yl.js → index-B8_ZqXDA.js} +60 -62
  16. package/dist/{index-zdWtzZvH.js → index-BCmMcLum.js} +7 -7
  17. package/dist/{index-rlStojTL.js → index-BFqUz4pN.js} +1 -1
  18. package/dist/{index-DlFmNKos.js → index-BKMAFsRN.js} +7 -8
  19. package/dist/{index-Dx-bFdbp.js → index-BRQACLz0.js} +8 -8
  20. package/dist/{index-DyOGhRxL.js → index-BZg5q_rs.js} +4 -4
  21. package/dist/{index-gFBsqsq6.js → index-Bkg9CQm3.js} +3 -3
  22. package/dist/{index-CM6CVZ_d.js → index-Bywqjsvo.js} +21513 -15029
  23. package/dist/{index-CzgY9rV-.js → index-BzT9veMM.js} +57 -61
  24. package/dist/{index-QdkaQuAk.js → index-C06Ba2iF.js} +2 -2
  25. package/dist/{index-CYspf59Y.js → index-C8LpAkhu.js} +8 -8
  26. package/dist/{index-BNDaeOZD.js → index-C9_Pcose.js} +40 -43
  27. package/dist/index-CGzlH16h.js +331 -0
  28. package/dist/{index-DewO44mx.js → index-COBZQS9O.js} +2 -2
  29. package/dist/{index-DkFpug1v.js → index-COV5ar9Q.js} +18 -20
  30. package/dist/{index-CJySKIdc.js → index-CvOCu8lX.js} +1 -1
  31. package/dist/{index-CnmXW-Bj.js → index-D-YGtSgX.js} +36 -40
  32. package/dist/{index-CJbdXJRV.js → index-D-_Ie1fO.js} +3 -3
  33. package/dist/{index-CccqT4-H.js → index-D2g9hX2c.js} +6 -6
  34. package/dist/{index-11kpzK0A.js → index-DJrzqi4-.js} +17 -17
  35. package/dist/{index-CKB74hmA.js → index-DUPQ7Cfd.js} +482 -483
  36. package/dist/{index-CsqopIxB.js → index-D_f48W32.js} +1078 -1079
  37. package/dist/{index-8KwwXnRD.js → index-DyoKmN7k.js} +3 -3
  38. package/dist/index-G2ZhOQG1.js +2623 -0
  39. package/dist/{index-BLFiId9N.js → index-TpycHQ-H.js} +5 -5
  40. package/dist/{index-BHtNKL1L.js → index-dD-mKgue.js} +2 -2
  41. package/dist/{index-CBL2Pg06.js → index-dcW2d4Zs.js} +5 -5
  42. package/dist/{index-Cpv5443J.js → index-hGjbrq0G.js} +4 -4
  43. package/dist/{index-DTjEPXdC.js → index-tLigeTzl.js} +76 -81
  44. package/dist/{index.vue_vue_type_script_setup_true_lang-DRzriV-s.js → index.vue_vue_type_script_setup_true_lang-DwbHXtUp.js} +2 -2
  45. package/dist/{index.vue_vue_type_style_index_0_scoped_83e6d490_lang-BsOR2Ig8.js → index.vue_vue_type_style_index_0_scoped_83e6d490_lang-LGVq0cuS.js} +50343 -56267
  46. package/dist/isString-DzMmG8uL.js +8 -0
  47. package/dist/{localIcon-D5UoFBU5.js → localIcon-CoJHw5ss.js} +1 -1
  48. package/dist/{main-C7zjHnDD.js → main-B27LAY78.js} +9 -9
  49. package/dist/{menuIndex-BE8WKQ_M.js → menuIndex-C_G8igKy.js} +1 -1
  50. package/dist/{request-DolpfyNJ.js → request-CllqY4TP.js} +3482 -3063
  51. package/dist/ss-component.css +3 -3
  52. package/dist/ss-component.js +14 -14
  53. package/dist/ss-component2.js +13 -13
  54. package/dist/ss-component3.js +1 -1
  55. package/dist/{threeModel-DiiHNAHL.js → threeModel-vX7holAy.js} +174 -174
  56. package/dist/{threePreview-Bu2Spume.js → threePreview-0iSlhKYj.js} +12 -12
  57. package/dist/{threeSceneView-DxeVIhrp.js → threeSceneView-D1dS9xmL.js} +49 -50
  58. package/dist/{threeSceneViewForCPMPIP-DPYmtlbM.js → threeSceneViewForCPMPIP-DWvkVqSw.js} +16 -17
  59. package/dist/{threeTrackPathView-fb0Ye-HT.js → threeTrackPathView-BzrYvQKg.js} +36 -36
  60. package/dist/{threeViewerHost-DHRT4ihY.js → threeViewerHost-BA3W7FKF.js} +36 -36
  61. package/dist/{urdfTree-CFaALNOQ.js → urdfTree-CZeEnUnE.js} +9 -9
  62. package/dist/{workpieceTreePanel-BxNqg9o9.js → workpieceTreePanel-BLWHbILu.js} +76 -80
  63. package/package.json +2 -4
  64. package/dist/JSEncrypt-B36c1iN5.js +0 -1983
  65. package/dist/icons/svg/method.svg +0 -1
  66. package/dist/index-BBzJ8BLa.js +0 -572
  67. package/dist/index-Ba8phnvt.js +0 -342
  68. package/dist/index-CBPXalBI.js +0 -15007
  69. package/dist/isString-h0UV2hrP.js +0 -8
  70. package/dist/obj/model.mtl +0 -42
  71. package/dist/obj/model.obj +0 -26110
  72. package/public/icons/svg/method.svg +0 -1
  73. package/public/obj/model.mtl +0 -42
  74. package/public/obj/model.obj +0 -26110
@@ -1,5 +1,5 @@
1
- import { Y as Z, Z as Y, w as D, C as P, e as S, a3 as H, V as O, _ as A, u as ie, a4 as N, aL as X, a0 as B, l as ne, aP as K, a1 as W, i as Q, aq as ae, a6 as oe, aI as le, b0 as q, as as $, bc as ce, az as he } from "./index.vue_vue_type_style_index_0_scoped_83e6d490_lang-BsOR2Ig8.js";
2
- class xe extends Z {
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 k, s as ie, a2 as N, aR as X, _ as T, k as ne, aV as $, $ as W, h as K, aw as oe, a4 as ae, aO as le, b6 as q, ay as Q, bi as ce, aF as he } from "./index.vue_vue_type_style_index_0_scoped_83e6d490_lang-LGVq0cuS.js";
2
+ class xe extends Y {
3
3
  /**
4
4
  * Constructs a new STL loader.
5
5
  *
@@ -18,7 +18,7 @@ class xe extends Z {
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));
@@ -35,69 +35,69 @@ class xe extends Z {
35
35
  */
36
36
  parse(t) {
37
37
  function s(n) {
38
- const a = new DataView(n), o = 32 / 8 * 3 + 32 / 8 * 3 * 3 + 16 / 8, u = a.getUint32(80, !0);
39
- if (80 + 32 / 8 + u * o === a.byteLength)
38
+ const o = new DataView(n), a = 32 / 8 * 3 + 32 / 8 * 3 * 3 + 16 / 8, u = o.getUint32(80, !0);
39
+ if (80 + 32 / 8 + u * a === o.byteLength)
40
40
  return !0;
41
41
  const m = [115, 111, 108, 105, 100];
42
42
  for (let p = 0; p < 5; p++)
43
- if (i(m, a, p)) return !1;
43
+ if (i(m, o, p)) return !1;
44
44
  return !0;
45
45
  }
46
- function i(n, a, o) {
46
+ function i(n, o, a) {
47
47
  for (let u = 0, d = n.length; u < d; u++)
48
- if (n[u] !== a.getUint8(o + u)) return !1;
48
+ if (n[u] !== o.getUint8(a + u)) return !1;
49
49
  return !0;
50
50
  }
51
51
  function e(n) {
52
- const a = new DataView(n), o = a.getUint32(80, !0);
52
+ const o = new DataView(n), a = o.getUint32(80, !0);
53
53
  let u, d, m, p = !1, g, b, x, C, v;
54
54
  for (let y = 0; y < 70; y++)
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), k = new P();
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);
55
+ o.getUint32(y, !1) == 1129270351 && o.getUint8(y + 4) == 82 && o.getUint8(y + 5) == 61 && (p = !0, g = new Float32Array(a * 3 * 3), b = o.getUint8(y + 6) / 255, x = o.getUint8(y + 7) / 255, C = o.getUint8(y + 8) / 255, v = o.getUint8(y + 9) / 255);
56
+ const j = 84, f = 50, w = new D(), _ = new Float32Array(a * 3 * 3), M = new Float32Array(a * 3 * 3), A = new P();
57
+ for (let y = 0; y < a; y++) {
58
+ const U = j + y * f, E = o.getFloat32(U, !0), z = o.getFloat32(U + 4, !0), R = o.getFloat32(U + 8, !0);
59
59
  if (p) {
60
- const F = a.getUint16(U + 48, !0);
60
+ const F = o.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
- 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] = T, p && (k.setRGB(u, d, m, S), g[_] = k.r, g[_ + 1] = k.g, g[_ + 2] = k.b);
64
+ const G = U + F * 12, V = y * 3 * 3 + (F - 1) * 3;
65
+ _[V] = o.getFloat32(G, !0), _[V + 1] = o.getFloat32(G + 4, !0), _[V + 2] = o.getFloat32(G + 8, !0), M[V] = E, M[V + 1] = z, M[V + 2] = R, p && (A.setRGB(u, d, m, S), g[V] = A.r, g[V + 1] = A.g, g[V + 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(_, 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
- const a = new D(), o = /solid([\s\S]*?)endsolid/g, u = /facet([\s\S]*?)endfacet/g, d = /solid\s(.+)/;
71
+ const o = new D(), a = /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;
75
- for (; (f = o.exec(n)) !== null; ) {
76
- M = V;
77
- const k = f[0], y = (f = d.exec(k)) !== null ? f[1] : "";
78
- for (v.push(y); (f = u.exec(k)) !== null; ) {
79
- let z = 0, T = 0;
74
+ let f, w = 0, _ = 0, M = 0;
75
+ for (; (f = a.exec(n)) !== null; ) {
76
+ _ = M;
77
+ const A = f[0], y = (f = d.exec(A)) !== null ? f[1] : "";
78
+ for (v.push(y); (f = u.exec(A)) !== null; ) {
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++, 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++;
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++;
86
86
  }
87
- const U = M, E = V - M;
88
- a.userData.groupNames = v, a.addGroup(U, E, w), w++;
87
+ const U = _, E = M - _;
88
+ o.userData.groupNames = v, o.addGroup(U, E, w), w++;
89
89
  }
90
- return a.setAttribute("position", new A(x, 3)), a.setAttribute("normal", new A(C, 3)), a;
90
+ return o.setAttribute("position", new k(x, 3)), o.setAttribute("normal", new k(C, 3)), o;
91
91
  }
92
92
  function c(n) {
93
93
  return typeof n != "string" ? new TextDecoder().decode(n) : n;
94
94
  }
95
95
  function h(n) {
96
96
  if (typeof n == "string") {
97
- const a = new Uint8Array(n.length);
98
- for (let o = 0; o < n.length; o++)
99
- a[o] = n.charCodeAt(o) & 255;
100
- return a.buffer || a;
97
+ const o = new Uint8Array(n.length);
98
+ for (let a = 0; a < n.length; a++)
99
+ o[a] = n.charCodeAt(a) & 255;
100
+ return o.buffer || o;
101
101
  } else
102
102
  return n;
103
103
  }
@@ -105,7 +105,7 @@ class xe extends Z {
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: [],
@@ -234,16 +234,16 @@ function me() {
234
234
  this.object.geometry.uvs.push(s[t + 0], s[t + 1]);
235
235
  },
236
236
  addFace: function(t, s, i, e, r, c, h, l, n) {
237
- const a = this.vertices.length;
238
- let o = this.parseVertexIndex(t, a), u = this.parseVertexIndex(s, a), d = this.parseVertexIndex(i, a);
239
- if (this.addVertex(o, u, d), this.addColor(o, u, d), h !== void 0 && h !== "") {
237
+ const o = this.vertices.length;
238
+ let a = this.parseVertexIndex(t, o), u = this.parseVertexIndex(s, o), d = this.parseVertexIndex(i, o);
239
+ if (this.addVertex(a, u, d), this.addColor(a, u, d), h !== void 0 && h !== "") {
240
240
  const m = this.normals.length;
241
- o = this.parseNormalIndex(h, m), u = this.parseNormalIndex(l, m), d = this.parseNormalIndex(n, m), this.addNormal(o, u, d);
241
+ a = this.parseNormalIndex(h, m), u = this.parseNormalIndex(l, m), d = this.parseNormalIndex(n, m), this.addNormal(a, u, d);
242
242
  } else
243
- this.addFaceNormal(o, u, d);
243
+ this.addFaceNormal(a, u, d);
244
244
  if (e !== void 0 && e !== "") {
245
245
  const m = this.uvs.length;
246
- o = this.parseUVIndex(e, m), u = this.parseUVIndex(r, m), d = this.parseUVIndex(c, m), this.addUV(o, u, d), this.object.geometry.hasUVIndices = !0;
246
+ a = this.parseUVIndex(e, m), u = this.parseUVIndex(r, m), d = this.parseUVIndex(c, m), this.addUV(a, u, d), this.object.geometry.hasUVIndices = !0;
247
247
  } else
248
248
  this.addDefaultUV();
249
249
  },
@@ -266,7 +266,7 @@ function me() {
266
266
  };
267
267
  return I.startObject("", !1), I;
268
268
  }
269
- class we extends Z {
269
+ class we extends Y {
270
270
  /**
271
271
  * Constructs a new OBJ loader.
272
272
  *
@@ -285,7 +285,7 @@ class we extends Z {
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));
@@ -321,38 +321,38 @@ class we extends Z {
321
321
  for (let h = 0, l = i.length; h < l; h++) {
322
322
  const n = i[h].trimStart();
323
323
  if (n.length === 0) continue;
324
- const a = n.charAt(0);
325
- if (a !== "#")
326
- if (a === "v") {
327
- const o = n.split(ee);
328
- switch (o[0]) {
324
+ const o = n.charAt(0);
325
+ if (o !== "#")
326
+ if (o === "v") {
327
+ const a = n.split(ee);
328
+ switch (a[0]) {
329
329
  case "v":
330
330
  s.vertices.push(
331
- parseFloat(o[1]),
332
- parseFloat(o[2]),
333
- parseFloat(o[3])
334
- ), o.length >= 7 ? (R.setRGB(
335
- parseFloat(o[4]),
336
- parseFloat(o[5]),
337
- parseFloat(o[6]),
331
+ parseFloat(a[1]),
332
+ parseFloat(a[2]),
333
+ parseFloat(a[3])
334
+ ), a.length >= 7 ? (B.setRGB(
335
+ parseFloat(a[4]),
336
+ parseFloat(a[5]),
337
+ parseFloat(a[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(
343
- parseFloat(o[1]),
344
- parseFloat(o[2]),
345
- parseFloat(o[3])
343
+ parseFloat(a[1]),
344
+ parseFloat(a[2]),
345
+ parseFloat(a[3])
346
346
  );
347
347
  break;
348
348
  case "vt":
349
349
  s.uvs.push(
350
- parseFloat(o[1]),
351
- parseFloat(o[2])
350
+ parseFloat(a[1]),
351
+ parseFloat(a[2])
352
352
  );
353
353
  break;
354
354
  }
355
- } else if (a === "f") {
355
+ } else if (o === "f") {
356
356
  const u = n.slice(1).trim().split(ee), d = [];
357
357
  for (let p = 0, g = u.length; p < g; p++) {
358
358
  const b = u[p];
@@ -376,38 +376,38 @@ class we extends Z {
376
376
  x[2]
377
377
  );
378
378
  }
379
- } else if (a === "l") {
380
- const o = n.substring(1).trim().split(" ");
379
+ } else if (o === "l") {
380
+ const a = n.substring(1).trim().split(" ");
381
381
  let u = [];
382
382
  const d = [];
383
383
  if (n.indexOf("/") === -1)
384
- u = o;
384
+ u = a;
385
385
  else
386
- for (let m = 0, p = o.length; m < p; m++) {
387
- const g = o[m].split("/");
386
+ for (let m = 0, p = a.length; m < p; m++) {
387
+ const g = a[m].split("/");
388
388
  g[0] !== "" && u.push(g[0]), g[1] !== "" && d.push(g[1]);
389
389
  }
390
390
  s.addLineGeometry(u, d);
391
- } else if (a === "p") {
391
+ } else if (o === "p") {
392
392
  const u = n.slice(1).trim().split(" ");
393
393
  s.addPointGeometry(u);
394
394
  } else if ((e = ue.exec(n)) !== null) {
395
- const o = (" " + e[0].slice(1).trim()).slice(1);
396
- s.startObject(o);
395
+ const a = (" " + e[0].slice(1).trim()).slice(1);
396
+ s.startObject(a);
397
397
  } else if (fe.test(n))
398
398
  s.object.startMaterial(n.substring(7).trim(), s.materialLibraries);
399
399
  else if (pe.test(n))
400
400
  s.materialLibraries.push(n.substring(7).trim());
401
401
  else if (de.test(n))
402
402
  console.warn('THREE.OBJLoader: Rendering identifier "usemap" not supported. Textures must be defined in MTL files.');
403
- else if (a === "s") {
403
+ else if (o === "s") {
404
404
  if (e = n.split(" "), e.length > 1) {
405
405
  const u = e[1].trim().toLowerCase();
406
406
  s.object.smooth = u !== "0" && u !== "off";
407
407
  } else
408
408
  s.object.smooth = !0;
409
- const o = s.object.currentMaterial();
410
- o && (o.smooth = s.object.smooth);
409
+ const a = s.object.currentMaterial();
410
+ a && (a.smooth = s.object.smooth);
411
411
  } else {
412
412
  if (n === "\0") continue;
413
413
  console.warn('THREE.OBJLoader: Unexpected line: "' + n + '"');
@@ -417,47 +417,47 @@ class we extends Z {
417
417
  const r = new ie();
418
418
  if (r.materialLibraries = [].concat(s.materialLibraries), !(s.objects.length === 1 && s.objects[0].geometry.vertices.length === 0) === !0)
419
419
  for (let h = 0, l = s.objects.length; h < l; h++) {
420
- const n = s.objects[h], a = n.geometry, o = n.materials, u = a.type === "Line", d = a.type === "Points";
420
+ const n = s.objects[h], o = n.geometry, a = n.materials, u = o.type === "Line", d = o.type === "Points";
421
421
  let m = !1;
422
- if (a.vertices.length === 0) continue;
422
+ if (o.vertices.length === 0) continue;
423
423
  const p = new D();
424
- p.setAttribute("position", new A(a.vertices, 3)), a.normals.length > 0 && p.setAttribute("normal", new A(a.normals, 3)), a.colors.length > 0 && (m = !0, p.setAttribute("color", new A(a.colors, 3))), a.hasUVIndices === !0 && p.setAttribute("uv", new A(a.uvs, 2));
424
+ p.setAttribute("position", new k(o.vertices, 3)), o.normals.length > 0 && p.setAttribute("normal", new k(o.normals, 3)), o.colors.length > 0 && (m = !0, p.setAttribute("color", new k(o.colors, 3))), o.hasUVIndices === !0 && p.setAttribute("uv", new k(o.uvs, 2));
425
425
  const g = [];
426
- for (let x = 0, C = o.length; x < C; x++) {
427
- const v = o[x], j = v.name + "_" + v.smooth + "_" + m;
426
+ for (let x = 0, C = a.length; x < C; x++) {
427
+ const v = a[x], j = v.name + "_" + v.smooth + "_" + m;
428
428
  let f = s.materials[j];
429
429
  if (this.materials !== null) {
430
430
  if (f = this.materials.create(v.name), u && f && !(f instanceof N)) {
431
431
  const w = new N();
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 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);
439
439
  }
440
440
  let b;
441
441
  if (g.length > 1) {
442
- for (let x = 0, C = o.length; x < C; x++) {
443
- const v = o[x];
442
+ for (let x = 0, C = a.length; x < C; x++) {
443
+ const v = a[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 W(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 W(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 A(s.vertices, 3)), s.colors.length > 0 && s.colors[0] !== void 0 && (l.setAttribute("color", new A(s.colors, 3)), h.vertexColors = !0);
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
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 Z {
460
+ class ye extends Y {
461
461
  constructor(t) {
462
462
  super(t);
463
463
  }
@@ -471,7 +471,7 @@ class ye extends Z {
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 === "" ? oe.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));
@@ -505,17 +505,17 @@ class ye extends Z {
505
505
  let n = i[l];
506
506
  if (n = n.trim(), n.length === 0 || n.charAt(0) === "#")
507
507
  continue;
508
- const a = n.indexOf(" ");
509
- let o = a >= 0 ? n.substring(0, a) : n;
510
- o = o.toLowerCase();
511
- let u = a >= 0 ? n.substring(a + 1) : "";
512
- if (u = u.trim(), o === "newmtl")
508
+ const o = n.indexOf(" ");
509
+ let a = o >= 0 ? n.substring(0, o) : n;
510
+ a = a.toLowerCase();
511
+ let u = o >= 0 ? n.substring(o + 1) : "";
512
+ if (u = u.trim(), a === "newmtl")
513
513
  e = { name: u }, c[u] = e;
514
- else if (o === "ka" || o === "kd" || o === "ks" || o === "ke") {
514
+ else if (a === "ka" || a === "kd" || a === "ks" || a === "ke") {
515
515
  const d = u.split(r, 3);
516
- e[o] = [parseFloat(d[0]), parseFloat(d[1]), parseFloat(d[2])];
516
+ e[a] = [parseFloat(d[0]), parseFloat(d[1]), parseFloat(d[2])];
517
517
  } else
518
- e[o] = u;
518
+ e[a] = u;
519
519
  }
520
520
  const h = new ge(this.resourcePath || s, this.materialOptions);
521
521
  return h.setCrossOrigin(this.crossOrigin), h.setManager(this.manager), h.setMaterials(c), h;
@@ -523,7 +523,7 @@ class ye extends Z {
523
523
  }
524
524
  class ge {
525
525
  constructor(t = "", s = {}) {
526
- this.baseUrl = t, this.options = s, this.materialsInfo = {}, this.materials = {}, this.materialsArray = [], this.nameLookup = {}, this.crossOrigin = "anonymous", this.side = this.options.side !== void 0 ? this.options.side : oe, this.wrap = this.options.wrap !== void 0 ? this.options.wrap : le;
526
+ this.baseUrl = t, this.options = s, this.materialsInfo = {}, this.materials = {}, this.materialsArray = [], this.nameLookup = {}, this.crossOrigin = "anonymous", this.side = this.options.side !== void 0 ? this.options.side : ae, this.wrap = this.options.wrap !== void 0 ? this.options.wrap : le;
527
527
  }
528
528
  setCrossOrigin(t) {
529
529
  return this.crossOrigin = t, this;
@@ -581,8 +581,8 @@ class ge {
581
581
  }
582
582
  function c(h, l) {
583
583
  if (e[h]) return;
584
- const n = s.getTextureParams(l, e), a = s.loadTexture(r(s.baseUrl, n.url));
585
- a.repeat.copy(n.scale), a.offset.copy(n.offset), a.wrapS = s.wrap, a.wrapT = s.wrap, (h === "map" || h === "emissiveMap") && (a.colorSpace = S), e[h] = a;
584
+ const n = s.getTextureParams(l, e), o = s.loadTexture(r(s.baseUrl, n.url));
585
+ o.repeat.copy(n.scale), o.offset.copy(n.offset), o.wrapS = s.wrap, o.wrapT = s.wrap, (h === "map" || h === "emissiveMap") && (o.colorSpace = S), e[h] = o;
586
586
  }
587
587
  for (const h in i) {
588
588
  const l = i[h];
@@ -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;