ss-component-new 1.3.203 → 1.3.204
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/{MTLLoader-BM0twZae.js → MTLLoader-Cb5IK5VE.js} +111 -111
- package/dist/{OrbitControls-gbUDzffO.js → OrbitControls-DTgJGqkk.js} +1 -1
- package/dist/{URDFLoader-CCxjcCjA.js → URDFLoader-BqCeKEEZ.js} +2 -2
- package/dist/{animationData-d6gGbg-8.js → animationData-BkRU-_xk.js} +1 -1
- package/dist/{array-B7JMYqHw.js → array-CHK5dYBi.js} +2 -2
- package/dist/{array-Br8pRpez.cjs → array-DTqR9ghI.cjs} +1 -1
- package/dist/{iconfont-BRSBexIo.js → iconfont-DFN57G8f.js} +2 -2
- package/dist/index--yOvtbvp.cjs +25 -0
- package/dist/{index-B01usc9E.js → index-0satiHbc.js} +2 -2
- package/dist/{index-DBt2ZIwO.cjs → index-8z3YfpMJ.cjs} +1 -1
- package/dist/{index-B5FsSFkN.js → index-B1xMnI5V.js} +4 -4
- package/dist/{index-XYiv9TGi.cjs → index-BC7gFoso.cjs} +1 -1
- package/dist/{index-DOQcbapj.js → index-BCVWNZdF.js} +1 -1
- package/dist/{index-B6vBc21o.js → index-BFGTaqw7.js} +3 -3
- package/dist/{index-DXRVtYT0.js → index-BGrd_gnL.js} +1 -1
- package/dist/{index-Dhy1WYow.cjs → index-BfS8uE6B.cjs} +1 -1
- package/dist/index-BmlTW8ik.cjs +1 -0
- package/dist/{index-DPNS_yHe.js → index-Buwe6fuy.js} +1 -1
- package/dist/{index-BzJPgIXj.js → index-Bvx1MAjr.js} +2 -2
- package/dist/{index-C1vw0fQI.js → index-C1ckFl1S.js} +1 -1
- package/dist/{index-Do3dNlnu.js → index-CApdpGuS.js} +926 -902
- package/dist/{index-BPBWV42z.js → index-CD5TH29N.js} +2 -2
- package/dist/{index-BAguTwWo.cjs → index-CKhdbWgt.cjs} +1 -1
- package/dist/{index-CwMVCXV_.cjs → index-COUih4k4.cjs} +1 -1
- package/dist/{index-qr_fiajM.js → index-CQXv1QFN.js} +117 -113
- package/dist/{index-B7G1ifLq.js → index-CSLlTr3-.js} +6757 -6724
- package/dist/{index-DXkCaEdF.cjs → index-CSmdmHeE.cjs} +1 -1
- package/dist/{index-DaNVp7Uo.js → index-CcRGEK9X.js} +3 -3
- package/dist/{index-P8IuooeB.cjs → index-Cd2vU6VN.cjs} +1 -1
- package/dist/{index-7jgbQRRx.js → index-D7mUEuWl.js} +1 -1
- package/dist/{index-BgyijxrT.cjs → index-DCHYrBFp.cjs} +1 -1
- package/dist/{index-CHyucJdL.js → index-Ddz9Ttln.js} +1 -1
- package/dist/{index-gAYz8vGX.cjs → index-DrnH_JAy.cjs} +1 -1
- package/dist/{index-BFwyzcFw.js → index-FzLJzlIv.js} +1 -1
- package/dist/{index-5VmkRBzI.cjs → index-NdOib2gY.cjs} +1 -1
- package/dist/{index-CDp1MokC.cjs → index-YiQEQb2p.cjs} +1 -1
- package/dist/{index-CJ8pK6LR.js → index-noLH_uJx.js} +1 -1
- package/dist/{index-BwkWWQL1.cjs → index-qcOf74e3.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BtHvTPY3.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-B_Nx68hR.js} +15 -15
- package/dist/{main-DkQga4lm.js → main-BtBXN0rN.js} +3 -3
- package/dist/{main-BK4nLk1E.cjs → main-BuITFYDv.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +8 -8
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeModel-s5VKB0lw.cjs → threeModel-BX3c_cqE.cjs} +1 -1
- package/dist/{threeModel-iXTOBXQV.js → threeModel-O6raNQ9p.js} +3 -3
- package/dist/{threePreview-De_1xb4D.js → threePreview-DqMKkpXM.js} +3 -3
- package/dist/{threeSceneView-BV1fZG8I.js → threeSceneView-B76Pk_Sd.js} +9 -9
- package/dist/{threeSceneView-DRR-ghgw.cjs → threeSceneView-Ck2k2GbQ.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-DWkeWegd.js → threeSceneViewForCPMPIP-pQhNCnHP.js} +7 -7
- package/dist/{threeSceneViewForCPMPIP-gw8JHChi.cjs → threeSceneViewForCPMPIP-q6oAy3bp.cjs} +1 -1
- package/dist/{threeTrackPathView-BmgVx8-H.js → threeTrackPathView-BVwnNudU.js} +42 -42
- package/dist/{threeViewerHost-BQZauj-x.cjs → threeViewerHost-BtzmQlTR.cjs} +1 -1
- package/dist/{threeViewerHost-4oj54iDb.js → threeViewerHost-S1lyICFp.js} +2 -2
- package/dist/{urdfTree-DsxuXBSb.js → urdfTree-CFrXY4GY.js} +1 -1
- package/dist/{workpieceTreePanel-u4c_A6-A.js → workpieceTreePanel-CsxG4toL.js} +4 -4
- package/package.json +1 -1
- package/dist/index-C5HQOuB9.cjs +0 -1
- package/dist/index-WJ44RePd.cjs +0 -25
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ad as Z, ae as K, O as D, C as P, j as S, ak as H, V as O, af as V, K as ie, al as N, bj as X, ah as B, t as re, bn as Y, ai as W, p as Q, a_ as oe, an as ae, bg as le, bA as q, b0 as $, bM as ce, b7 as he } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-B_Nx68hR.js";
|
|
2
2
|
class xe extends Z {
|
|
3
3
|
/**
|
|
4
4
|
* Constructs a new STL loader.
|
|
@@ -18,12 +18,12 @@ class xe extends Z {
|
|
|
18
18
|
* @param {onErrorCallback} onError - Executed when errors occur.
|
|
19
19
|
*/
|
|
20
20
|
load(t, s, i, e) {
|
|
21
|
-
const
|
|
21
|
+
const n = this, c = new K(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
|
-
s(
|
|
24
|
+
s(n.parse(h));
|
|
25
25
|
} catch (l) {
|
|
26
|
-
e ? e(l) : console.error(l),
|
|
26
|
+
e ? e(l) : console.error(l), n.manager.itemError(t);
|
|
27
27
|
}
|
|
28
28
|
}, i, e);
|
|
29
29
|
}
|
|
@@ -34,8 +34,8 @@ class xe extends Z {
|
|
|
34
34
|
* @return {BufferGeometry} The parsed geometry.
|
|
35
35
|
*/
|
|
36
36
|
parse(t) {
|
|
37
|
-
function s(
|
|
38
|
-
const o = new DataView(
|
|
37
|
+
function s(r) {
|
|
38
|
+
const o = new DataView(r), a = 32 / 8 * 3 + 32 / 8 * 3 * 3 + 16 / 8, u = o.getUint32(80, !0);
|
|
39
39
|
if (80 + 32 / 8 + u * a === o.byteLength)
|
|
40
40
|
return !0;
|
|
41
41
|
const m = [115, 111, 108, 105, 100];
|
|
@@ -43,19 +43,19 @@ class xe extends Z {
|
|
|
43
43
|
if (i(m, o, p)) return !1;
|
|
44
44
|
return !0;
|
|
45
45
|
}
|
|
46
|
-
function i(
|
|
47
|
-
for (let u = 0, d =
|
|
48
|
-
if (
|
|
46
|
+
function i(r, o, a) {
|
|
47
|
+
for (let u = 0, d = r.length; u < d; u++)
|
|
48
|
+
if (r[u] !== o.getUint8(a + u)) return !1;
|
|
49
49
|
return !0;
|
|
50
50
|
}
|
|
51
|
-
function e(
|
|
52
|
-
const o = new DataView(
|
|
51
|
+
function e(r) {
|
|
52
|
+
const o = new DataView(r), 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
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
|
|
56
|
+
const j = 84, f = 12 * 4 + 2, w = new D(), _ = new Float32Array(a * 3 * 3), A = new Float32Array(a * 3 * 3), k = new P();
|
|
57
57
|
for (let y = 0; y < a; y++) {
|
|
58
|
-
const U =
|
|
58
|
+
const U = j + y * f, E = o.getFloat32(U, !0), z = o.getFloat32(U + 4, !0), T = o.getFloat32(U + 8, !0);
|
|
59
59
|
if (p) {
|
|
60
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);
|
|
@@ -67,21 +67,21 @@ class xe extends Z {
|
|
|
67
67
|
}
|
|
68
68
|
return w.setAttribute("position", new H(_, 3)), w.setAttribute("normal", new H(A, 3)), p && (w.setAttribute("color", new H(g, 3)), w.hasColors = !0, w.alpha = v), w;
|
|
69
69
|
}
|
|
70
|
-
function r
|
|
70
|
+
function n(r) {
|
|
71
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
|
-
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 = [],
|
|
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
74
|
let f, w = 0, _ = 0, A = 0;
|
|
75
|
-
for (; (f = a.exec(
|
|
75
|
+
for (; (f = a.exec(r)) !== null; ) {
|
|
76
76
|
_ = A;
|
|
77
77
|
const k = f[0], y = (f = d.exec(k)) !== null ? f[1] : "";
|
|
78
78
|
for (v.push(y); (f = u.exec(k)) !== null; ) {
|
|
79
79
|
let z = 0, T = 0;
|
|
80
80
|
const F = f[0];
|
|
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]), T++;
|
|
83
83
|
for (; (f = g.exec(F)) !== null; )
|
|
84
|
-
x.push(parseFloat(f[1]), parseFloat(f[2]), parseFloat(f[3])), C.push(
|
|
84
|
+
x.push(parseFloat(f[1]), parseFloat(f[2]), parseFloat(f[3])), C.push(j.x, j.y, j.z), z++, A++;
|
|
85
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
87
|
const U = _, E = A - _;
|
|
@@ -89,23 +89,23 @@ class xe extends Z {
|
|
|
89
89
|
}
|
|
90
90
|
return o.setAttribute("position", new V(x, 3)), o.setAttribute("normal", new V(C, 3)), o;
|
|
91
91
|
}
|
|
92
|
-
function c(
|
|
93
|
-
return typeof
|
|
92
|
+
function c(r) {
|
|
93
|
+
return typeof r != "string" ? new TextDecoder().decode(r) : r;
|
|
94
94
|
}
|
|
95
|
-
function h(
|
|
96
|
-
if (typeof
|
|
97
|
-
const o = new Uint8Array(
|
|
98
|
-
for (let a = 0; a <
|
|
99
|
-
o[a] =
|
|
95
|
+
function h(r) {
|
|
96
|
+
if (typeof r == "string") {
|
|
97
|
+
const o = new Uint8Array(r.length);
|
|
98
|
+
for (let a = 0; a < r.length; a++)
|
|
99
|
+
o[a] = r.charCodeAt(a) & 255;
|
|
100
100
|
return o.buffer || o;
|
|
101
101
|
} else
|
|
102
|
-
return
|
|
102
|
+
return r;
|
|
103
103
|
}
|
|
104
104
|
const l = h(t);
|
|
105
|
-
return s(l) ? e(l) :
|
|
105
|
+
return s(l) ? e(l) : n(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(),
|
|
108
|
+
const ue = /^[og]\s*(.+)?/, pe = /^mtllib /, fe = /^usemtl /, de = /^usemap /, ee = /\s+/, te = new O(), J = new O(), se = new O(), ne = new O(), L = new O(), R = new P();
|
|
109
109
|
function me() {
|
|
110
110
|
const I = {
|
|
111
111
|
objects: [],
|
|
@@ -134,20 +134,20 @@ function me() {
|
|
|
134
134
|
},
|
|
135
135
|
materials: [],
|
|
136
136
|
smooth: !0,
|
|
137
|
-
startMaterial: function(e,
|
|
137
|
+
startMaterial: function(e, n) {
|
|
138
138
|
const c = this._finalize(!1);
|
|
139
139
|
c && (c.inherited || c.groupCount <= 0) && this.materials.splice(c.index, 1);
|
|
140
140
|
const h = {
|
|
141
141
|
index: this.materials.length,
|
|
142
142
|
name: e || "",
|
|
143
|
-
mtllib: Array.isArray(
|
|
143
|
+
mtllib: Array.isArray(n) && n.length > 0 ? n[n.length - 1] : "",
|
|
144
144
|
smooth: c !== void 0 ? c.smooth : this.smooth,
|
|
145
145
|
groupStart: c !== void 0 ? c.groupEnd : 0,
|
|
146
146
|
groupEnd: -1,
|
|
147
147
|
groupCount: -1,
|
|
148
148
|
inherited: !1,
|
|
149
149
|
clone: function(l) {
|
|
150
|
-
const
|
|
150
|
+
const r = {
|
|
151
151
|
index: typeof l == "number" ? l : this.index,
|
|
152
152
|
name: this.name,
|
|
153
153
|
mtllib: this.mtllib,
|
|
@@ -157,7 +157,7 @@ function me() {
|
|
|
157
157
|
groupCount: -1,
|
|
158
158
|
inherited: !1
|
|
159
159
|
};
|
|
160
|
-
return
|
|
160
|
+
return r.clone = this.clone.bind(r), r;
|
|
161
161
|
}
|
|
162
162
|
};
|
|
163
163
|
return this.materials.push(h), h;
|
|
@@ -167,14 +167,14 @@ function me() {
|
|
|
167
167
|
return this.materials[this.materials.length - 1];
|
|
168
168
|
},
|
|
169
169
|
_finalize: function(e) {
|
|
170
|
-
const
|
|
171
|
-
if (
|
|
170
|
+
const n = this.currentMaterial();
|
|
171
|
+
if (n && n.groupEnd === -1 && (n.groupEnd = this.geometry.vertices.length / 3, n.groupCount = n.groupEnd - n.groupStart, n.inherited = !1), e && this.materials.length > 1)
|
|
172
172
|
for (let c = this.materials.length - 1; c >= 0; c--)
|
|
173
173
|
this.materials[c].groupCount <= 0 && this.materials.splice(c, 1);
|
|
174
174
|
return e && this.materials.length === 0 && this.materials.push({
|
|
175
175
|
name: "",
|
|
176
176
|
smooth: this.smooth
|
|
177
|
-
}),
|
|
177
|
+
}), n;
|
|
178
178
|
}
|
|
179
179
|
}, i && i.name && typeof i.clone == "function") {
|
|
180
180
|
const e = i.clone(0);
|
|
@@ -198,8 +198,8 @@ function me() {
|
|
|
198
198
|
return (i >= 0 ? i - 1 : i + s / 2) * 2;
|
|
199
199
|
},
|
|
200
200
|
addVertex: function(t, s, i) {
|
|
201
|
-
const e = this.vertices,
|
|
202
|
-
|
|
201
|
+
const e = this.vertices, n = this.object.geometry.vertices;
|
|
202
|
+
n.push(e[t + 0], e[t + 1], e[t + 2]), n.push(e[s + 0], e[s + 1], e[s + 2]), n.push(e[i + 0], e[i + 1], e[i + 2]);
|
|
203
203
|
},
|
|
204
204
|
addVertexPoint: function(t) {
|
|
205
205
|
const s = this.vertices;
|
|
@@ -210,20 +210,20 @@ function me() {
|
|
|
210
210
|
this.object.geometry.vertices.push(s[t + 0], s[t + 1], s[t + 2]);
|
|
211
211
|
},
|
|
212
212
|
addNormal: function(t, s, i) {
|
|
213
|
-
const e = this.normals,
|
|
214
|
-
|
|
213
|
+
const e = this.normals, n = this.object.geometry.normals;
|
|
214
|
+
n.push(e[t + 0], e[t + 1], e[t + 2]), n.push(e[s + 0], e[s + 1], e[s + 2]), n.push(e[i + 0], e[i + 1], e[i + 2]);
|
|
215
215
|
},
|
|
216
216
|
addFaceNormal: function(t, s, i) {
|
|
217
|
-
const e = this.vertices,
|
|
218
|
-
te.fromArray(e, t), J.fromArray(e, s), se.fromArray(e, i),
|
|
217
|
+
const e = this.vertices, n = this.object.geometry.normals;
|
|
218
|
+
te.fromArray(e, t), J.fromArray(e, s), se.fromArray(e, i), L.subVectors(se, J), ne.subVectors(te, J), L.cross(ne), L.normalize(), n.push(L.x, L.y, L.z), n.push(L.x, L.y, L.z), n.push(L.x, L.y, L.z);
|
|
219
219
|
},
|
|
220
220
|
addColor: function(t, s, i) {
|
|
221
|
-
const e = this.colors,
|
|
222
|
-
e[t] !== void 0 &&
|
|
221
|
+
const e = this.colors, n = this.object.geometry.colors;
|
|
222
|
+
e[t] !== void 0 && n.push(e[t + 0], e[t + 1], e[t + 2]), e[s] !== void 0 && n.push(e[s + 0], e[s + 1], e[s + 2]), e[i] !== void 0 && n.push(e[i + 0], e[i + 1], e[i + 2]);
|
|
223
223
|
},
|
|
224
224
|
addUV: function(t, s, i) {
|
|
225
|
-
const e = this.uvs,
|
|
226
|
-
|
|
225
|
+
const e = this.uvs, n = this.object.geometry.uvs;
|
|
226
|
+
n.push(e[t + 0], e[t + 1]), n.push(e[s + 0], e[s + 1]), n.push(e[i + 0], e[i + 1]);
|
|
227
227
|
},
|
|
228
228
|
addDefaultUV: function() {
|
|
229
229
|
const t = this.object.geometry.uvs;
|
|
@@ -233,17 +233,17 @@ function me() {
|
|
|
233
233
|
const s = this.uvs;
|
|
234
234
|
this.object.geometry.uvs.push(s[t + 0], s[t + 1]);
|
|
235
235
|
},
|
|
236
|
-
addFace: function(t, s, i, e,
|
|
236
|
+
addFace: function(t, s, i, e, n, c, h, l, r) {
|
|
237
237
|
const o = this.vertices.length;
|
|
238
238
|
let a = this.parseVertexIndex(t, o), u = this.parseVertexIndex(s, o), d = this.parseVertexIndex(i, o);
|
|
239
239
|
if (this.addVertex(a, u, d), this.addColor(a, u, d), h !== void 0 && h !== "") {
|
|
240
240
|
const m = this.normals.length;
|
|
241
|
-
a = this.parseNormalIndex(h, m), u = this.parseNormalIndex(l, m), d = this.parseNormalIndex(
|
|
241
|
+
a = this.parseNormalIndex(h, m), u = this.parseNormalIndex(l, m), d = this.parseNormalIndex(r, m), this.addNormal(a, u, d);
|
|
242
242
|
} else
|
|
243
243
|
this.addFaceNormal(a, u, d);
|
|
244
244
|
if (e !== void 0 && e !== "") {
|
|
245
245
|
const m = this.uvs.length;
|
|
246
|
-
a = this.parseUVIndex(e, m), u = this.parseUVIndex(
|
|
246
|
+
a = this.parseUVIndex(e, m), u = this.parseUVIndex(n, 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
|
},
|
|
@@ -251,17 +251,17 @@ function me() {
|
|
|
251
251
|
this.object.geometry.type = "Points";
|
|
252
252
|
const s = this.vertices.length;
|
|
253
253
|
for (let i = 0, e = t.length; i < e; i++) {
|
|
254
|
-
const
|
|
255
|
-
this.addVertexPoint(
|
|
254
|
+
const n = this.parseVertexIndex(t[i], s);
|
|
255
|
+
this.addVertexPoint(n), this.addColor(n);
|
|
256
256
|
}
|
|
257
257
|
},
|
|
258
258
|
addLineGeometry: function(t, s) {
|
|
259
259
|
this.object.geometry.type = "Line";
|
|
260
260
|
const i = this.vertices.length, e = this.uvs.length;
|
|
261
|
-
for (let
|
|
262
|
-
this.addVertexLine(this.parseVertexIndex(t[
|
|
263
|
-
for (let
|
|
264
|
-
this.addUVLine(this.parseUVIndex(s[
|
|
261
|
+
for (let n = 0, c = t.length; n < c; n++)
|
|
262
|
+
this.addVertexLine(this.parseVertexIndex(t[n], i));
|
|
263
|
+
for (let n = 0, c = s.length; n < c; n++)
|
|
264
|
+
this.addUVLine(this.parseUVIndex(s[n], e));
|
|
265
265
|
}
|
|
266
266
|
};
|
|
267
267
|
return I.startObject("", !1), I;
|
|
@@ -285,12 +285,12 @@ class we extends Z {
|
|
|
285
285
|
* @param {onErrorCallback} onError - Executed when errors occur.
|
|
286
286
|
*/
|
|
287
287
|
load(t, s, i, e) {
|
|
288
|
-
const
|
|
288
|
+
const n = this, c = new K(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
|
-
s(
|
|
291
|
+
s(n.parse(h));
|
|
292
292
|
} catch (l) {
|
|
293
|
-
e ? e(l) : console.error(l),
|
|
293
|
+
e ? e(l) : console.error(l), n.manager.itemError(t);
|
|
294
294
|
}
|
|
295
295
|
}, i, e);
|
|
296
296
|
}
|
|
@@ -319,12 +319,12 @@ class we extends Z {
|
|
|
319
319
|
`);
|
|
320
320
|
let e = [];
|
|
321
321
|
for (let h = 0, l = i.length; h < l; h++) {
|
|
322
|
-
const
|
|
323
|
-
if (
|
|
324
|
-
const o =
|
|
322
|
+
const r = i[h].trimStart();
|
|
323
|
+
if (r.length === 0) continue;
|
|
324
|
+
const o = r.charAt(0);
|
|
325
325
|
if (o !== "#")
|
|
326
326
|
if (o === "v") {
|
|
327
|
-
const a =
|
|
327
|
+
const a = r.split(ee);
|
|
328
328
|
switch (a[0]) {
|
|
329
329
|
case "v":
|
|
330
330
|
s.vertices.push(
|
|
@@ -353,7 +353,7 @@ class we extends Z {
|
|
|
353
353
|
break;
|
|
354
354
|
}
|
|
355
355
|
} else if (o === "f") {
|
|
356
|
-
const u =
|
|
356
|
+
const u = r.slice(1).trim().split(ee), d = [];
|
|
357
357
|
for (let p = 0, g = u.length; p < g; p++) {
|
|
358
358
|
const b = u[p];
|
|
359
359
|
if (b.length > 0) {
|
|
@@ -377,10 +377,10 @@ class we extends Z {
|
|
|
377
377
|
);
|
|
378
378
|
}
|
|
379
379
|
} else if (o === "l") {
|
|
380
|
-
const a =
|
|
380
|
+
const a = r.substring(1).trim().split(" ");
|
|
381
381
|
let u = [];
|
|
382
382
|
const d = [];
|
|
383
|
-
if (
|
|
383
|
+
if (r.indexOf("/") === -1)
|
|
384
384
|
u = a;
|
|
385
385
|
else
|
|
386
386
|
for (let m = 0, p = a.length; m < p; m++) {
|
|
@@ -389,19 +389,19 @@ class we extends Z {
|
|
|
389
389
|
}
|
|
390
390
|
s.addLineGeometry(u, d);
|
|
391
391
|
} else if (o === "p") {
|
|
392
|
-
const u =
|
|
392
|
+
const u = r.slice(1).trim().split(" ");
|
|
393
393
|
s.addPointGeometry(u);
|
|
394
|
-
} else if ((e = ue.exec(
|
|
394
|
+
} else if ((e = ue.exec(r)) !== null) {
|
|
395
395
|
const a = (" " + e[0].slice(1).trim()).slice(1);
|
|
396
396
|
s.startObject(a);
|
|
397
|
-
} else if (fe.test(
|
|
398
|
-
s.object.startMaterial(
|
|
399
|
-
else if (pe.test(
|
|
400
|
-
s.materialLibraries.push(
|
|
401
|
-
else if (de.test(
|
|
397
|
+
} else if (fe.test(r))
|
|
398
|
+
s.object.startMaterial(r.substring(7).trim(), s.materialLibraries);
|
|
399
|
+
else if (pe.test(r))
|
|
400
|
+
s.materialLibraries.push(r.substring(7).trim());
|
|
401
|
+
else if (de.test(r))
|
|
402
402
|
console.warn('THREE.OBJLoader: Rendering identifier "usemap" not supported. Textures must be defined in MTL files.');
|
|
403
403
|
else if (o === "s") {
|
|
404
|
-
if (e =
|
|
404
|
+
if (e = r.split(" "), e.length > 1) {
|
|
405
405
|
const u = e[1].trim().toLowerCase();
|
|
406
406
|
s.object.smooth = u !== "0" && u !== "off";
|
|
407
407
|
} else
|
|
@@ -409,23 +409,23 @@ class we extends Z {
|
|
|
409
409
|
const a = s.object.currentMaterial();
|
|
410
410
|
a && (a.smooth = s.object.smooth);
|
|
411
411
|
} else {
|
|
412
|
-
if (
|
|
413
|
-
console.warn('THREE.OBJLoader: Unexpected line: "' +
|
|
412
|
+
if (r === "\0") continue;
|
|
413
|
+
console.warn('THREE.OBJLoader: Unexpected line: "' + r + '"');
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
416
|
s.finalize();
|
|
417
|
-
const
|
|
418
|
-
if (
|
|
417
|
+
const n = new ie();
|
|
418
|
+
if (n.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
|
|
420
|
+
const r = s.objects[h], o = r.geometry, a = r.materials, u = o.type === "Line", d = o.type === "Points";
|
|
421
421
|
let m = !1;
|
|
422
422
|
if (o.vertices.length === 0) continue;
|
|
423
423
|
const p = new D();
|
|
424
424
|
p.setAttribute("position", new V(o.vertices, 3)), o.normals.length > 0 && p.setAttribute("normal", new V(o.normals, 3)), o.colors.length > 0 && (m = !0, p.setAttribute("color", new V(o.colors, 3))), o.hasUVIndices === !0 && p.setAttribute("uv", new V(o.uvs, 2));
|
|
425
425
|
const g = [];
|
|
426
426
|
for (let x = 0, C = a.length; x < C; x++) {
|
|
427
|
-
const v = a[x],
|
|
428
|
-
let f = s.materials[
|
|
427
|
+
const v = a[x], j = v.name + "_" + v.smooth + "_" + m;
|
|
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();
|
|
@@ -435,7 +435,7 @@ class we extends Z {
|
|
|
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
|
|
438
|
+
f === void 0 && (u ? f = new N() : d ? f = new B({ size: 1, sizeAttenuation: !1 }) : f = new re(), 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) {
|
|
@@ -446,15 +446,15 @@ class we extends Z {
|
|
|
446
446
|
u ? b = new Y(p, g) : d ? b = new W(p, g) : b = new Q(p, g);
|
|
447
447
|
} else
|
|
448
448
|
u ? b = new Y(p, g[0]) : d ? b = new W(p, g[0]) : b = new Q(p, g[0]);
|
|
449
|
-
b.name =
|
|
449
|
+
b.name = r.name, n.add(b);
|
|
450
450
|
}
|
|
451
451
|
else if (s.vertices.length > 0) {
|
|
452
452
|
const h = new B({ size: 1, sizeAttenuation: !1 }), l = new D();
|
|
453
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
|
|
455
|
-
|
|
454
|
+
const r = new W(l, h);
|
|
455
|
+
n.add(r);
|
|
456
456
|
}
|
|
457
|
-
return
|
|
457
|
+
return n;
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
460
|
class ye extends Z {
|
|
@@ -471,12 +471,12 @@ class ye extends Z {
|
|
|
471
471
|
* @param {onErrorCallback} onError - Executed when errors occur.
|
|
472
472
|
*/
|
|
473
473
|
load(t, s, i, e) {
|
|
474
|
-
const
|
|
474
|
+
const n = this, c = this.path === "" ? oe.extractUrlBase(t) : this.path, h = new K(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
|
-
s(
|
|
478
|
-
} catch (
|
|
479
|
-
e ? e(
|
|
477
|
+
s(n.parse(l, c));
|
|
478
|
+
} catch (r) {
|
|
479
|
+
e ? e(r) : console.error(r), n.manager.itemError(t);
|
|
480
480
|
}
|
|
481
481
|
}, i, e);
|
|
482
482
|
}
|
|
@@ -500,19 +500,19 @@ class ye extends Z {
|
|
|
500
500
|
const i = t.split(`
|
|
501
501
|
`);
|
|
502
502
|
let e = {};
|
|
503
|
-
const
|
|
503
|
+
const n = /\s+/, c = {};
|
|
504
504
|
for (let l = 0; l < i.length; l++) {
|
|
505
|
-
let
|
|
506
|
-
if (
|
|
505
|
+
let r = i[l];
|
|
506
|
+
if (r = r.trim(), r.length === 0 || r.charAt(0) === "#")
|
|
507
507
|
continue;
|
|
508
|
-
const o =
|
|
509
|
-
let a = o >= 0 ?
|
|
508
|
+
const o = r.indexOf(" ");
|
|
509
|
+
let a = o >= 0 ? r.substring(0, o) : r;
|
|
510
510
|
a = a.toLowerCase();
|
|
511
|
-
let u = o >= 0 ?
|
|
511
|
+
let u = o >= 0 ? r.substring(o + 1) : "";
|
|
512
512
|
if (u = u.trim(), a === "newmtl")
|
|
513
513
|
e = { name: u }, c[u] = e;
|
|
514
514
|
else if (a === "ka" || a === "kd" || a === "ks" || a === "ke") {
|
|
515
|
-
const d = u.split(
|
|
515
|
+
const d = u.split(n, 3);
|
|
516
516
|
e[a] = [parseFloat(d[0]), parseFloat(d[1]), parseFloat(d[2])];
|
|
517
517
|
} else
|
|
518
518
|
e[a] = u;
|
|
@@ -538,19 +538,19 @@ class ge {
|
|
|
538
538
|
if (!this.options) return t;
|
|
539
539
|
const s = {};
|
|
540
540
|
for (const i in t) {
|
|
541
|
-
const e = t[i],
|
|
542
|
-
s[i] =
|
|
541
|
+
const e = t[i], n = {};
|
|
542
|
+
s[i] = n;
|
|
543
543
|
for (const c in e) {
|
|
544
544
|
let h = !0, l = e[c];
|
|
545
|
-
const
|
|
546
|
-
switch (
|
|
545
|
+
const r = c.toLowerCase();
|
|
546
|
+
switch (r) {
|
|
547
547
|
case "kd":
|
|
548
548
|
case "ka":
|
|
549
549
|
case "ks":
|
|
550
550
|
this.options && this.options.normalizeRGB && (l = [l[0] / 255, l[1] / 255, l[2] / 255]), this.options && this.options.ignoreZeroRGBs && l[0] === 0 && l[1] === 0 && l[2] === 0 && (h = !1);
|
|
551
551
|
break;
|
|
552
552
|
}
|
|
553
|
-
h && (r
|
|
553
|
+
h && (n[r] = l);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
556
|
return s;
|
|
@@ -576,17 +576,17 @@ class ge {
|
|
|
576
576
|
name: t,
|
|
577
577
|
side: this.side
|
|
578
578
|
};
|
|
579
|
-
function
|
|
579
|
+
function n(h, l) {
|
|
580
580
|
return typeof l != "string" || l === "" ? "" : /^https?:\/\//i.test(l) ? l : h + l;
|
|
581
581
|
}
|
|
582
582
|
function c(h, l) {
|
|
583
583
|
if (e[h]) return;
|
|
584
|
-
const
|
|
585
|
-
o.repeat.copy(
|
|
584
|
+
const r = s.getTextureParams(l, e), o = s.loadTexture(n(s.baseUrl, r.url));
|
|
585
|
+
o.repeat.copy(r.scale), o.offset.copy(r.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];
|
|
589
|
-
let
|
|
589
|
+
let r;
|
|
590
590
|
if (l !== "")
|
|
591
591
|
switch (h.toLowerCase()) {
|
|
592
592
|
// Ns is material specular exponent
|
|
@@ -625,28 +625,28 @@ class ge {
|
|
|
625
625
|
e.shininess = parseFloat(l);
|
|
626
626
|
break;
|
|
627
627
|
case "d":
|
|
628
|
-
|
|
628
|
+
r = parseFloat(l), r < 1 && (e.opacity = r, e.transparent = !0);
|
|
629
629
|
break;
|
|
630
630
|
case "tr":
|
|
631
|
-
|
|
631
|
+
r = parseFloat(l), this.options && this.options.invertTrProperty && (r = 1 - r), r > 0 && (e.opacity = 1 - r, e.transparent = !0);
|
|
632
632
|
break;
|
|
633
633
|
}
|
|
634
634
|
}
|
|
635
|
-
return this.materials[t] = new
|
|
635
|
+
return this.materials[t] = new re(e), this.materials[t];
|
|
636
636
|
}
|
|
637
637
|
getTextureParams(t, s) {
|
|
638
638
|
const i = {
|
|
639
639
|
scale: new $(1, 1),
|
|
640
640
|
offset: new $(0, 0)
|
|
641
641
|
}, e = t.split(/\s+/);
|
|
642
|
-
let
|
|
643
|
-
return
|
|
642
|
+
let n;
|
|
643
|
+
return n = e.indexOf("-bm"), n >= 0 && (s.bumpScale = parseFloat(e[n + 1]), e.splice(n, 2)), n = e.indexOf("-mm"), n >= 0 && (s.displacementBias = parseFloat(e[n + 1]), s.displacementScale = parseFloat(e[n + 2]), e.splice(n, 3)), n = e.indexOf("-s"), n >= 0 && (i.scale.set(parseFloat(e[n + 1]), parseFloat(e[n + 2])), e.splice(n, 4)), n = e.indexOf("-o"), n >= 0 && (i.offset.set(parseFloat(e[n + 1]), parseFloat(e[n + 2])), e.splice(n, 4)), i.url = e.join(" ").trim(), i;
|
|
644
644
|
}
|
|
645
|
-
loadTexture(t, s, i, e,
|
|
645
|
+
loadTexture(t, s, i, e, n) {
|
|
646
646
|
const c = this.manager !== void 0 ? this.manager : ce;
|
|
647
647
|
let h = c.getHandler(t);
|
|
648
648
|
h === null && (h = new he(c)), h.setCrossOrigin && h.setCrossOrigin(this.crossOrigin);
|
|
649
|
-
const l = h.load(t, i, e,
|
|
649
|
+
const l = h.load(t, i, e, n);
|
|
650
650
|
return s !== void 0 && (l.mapping = s), l;
|
|
651
651
|
}
|
|
652
652
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bW as S, V as p, M as u, bX as _, b4 as E, bY as P, b0 as c, bZ as w, x as O, z as R } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-
|
|
1
|
+
import { bW as S, V as p, M as u, bX as _, b4 as E, bY as P, b0 as c, bZ as w, x as O, z as R } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-B_Nx68hR.js";
|
|
2
2
|
const D = { type: "change" }, b = { type: "start" }, M = { type: "end" }, f = new w(), T = new O(), j = Math.cos(70 * R.DEG2RAD), n = new p(), r = 2 * Math.PI, o = {
|
|
3
3
|
NONE: -1,
|
|
4
4
|
ROTATE: 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as Ln } from "./MTLLoader-
|
|
2
|
-
import { bK as vn, ba as Rn,
|
|
1
|
+
import { S as Ln } from "./MTLLoader-Cb5IK5VE.js";
|
|
2
|
+
import { bK as vn, ba as Rn, ad as lt, a_ as At, ae as In, V as pe, y as he, bk as dt, S as Mn, b7 as Tt, C as ut, z as Le, br as ft, bL as Sn, t as ve, bA as Se, j as me, b0 as On, w as Gn, an as qn, P as ht, bp as Pn, q as jn, b2 as Un, r as Fn, D as Hn, K as pt, b4 as Et, bx as mt, bz as Bn, O as zn, af as ye, bs as Dn, al as bt, bm as Vn, p as Ce, R as Jn, bn as Kn, bq as Wn, bg as Oe, bi as gt, bM as Yn, bN as Xn, bO as yt, bP as $n, bQ as Zn, bR as Qn, bS as ei, aj as ti, bT as ni, bU as ii, E as si } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-B_Nx68hR.js";
|
|
3
3
|
class wt extends vn {
|
|
4
4
|
/**
|
|
5
5
|
* Constructs a new TGA loader.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as J, _ as C, b as x, J as K, bJ as N } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-
|
|
1
|
+
import { g as J, _ as C, b as x, J as K, bJ as N } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-B_Nx68hR.js";
|
|
2
2
|
import { c as O } from "./index-arHBD8Ji.js";
|
|
3
3
|
const g = async (n) => {
|
|
4
4
|
const e = n.join("/"), c = sessionStorage.getItem("systemKey");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ref as k, computed as ae, resolveComponent as te, createElementBlock as M, openBlock as p, Fragment as ue, renderList as ce, createElementVNode as w, toDisplayString as re, createVNode as R, reactive as la, watch as be, createBlock as j, resolveDynamicComponent as le, unref as _, withCtx as L, isRef as Ye, createTextVNode as de, createCommentVNode as q, normalizeStyle as ta, withModifiers as ve, normalizeClass as qe, nextTick as na } from "vue";
|
|
2
|
-
import { U as Ie, g as aa, D as oa, E as sa, F as Je, c as ra } from "./index-
|
|
2
|
+
import { U as Ie, g as aa, D as oa, E as sa, F as Je, c as ra } from "./index-CSLlTr3-.js";
|
|
3
3
|
import { a as Ce, p as he, s as ie, c as K, u as ke, r as ua } from "./index-arHBD8Ji.js";
|
|
4
4
|
import { _ as we } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
import ca from "./index-rlStojTL.js";
|
|
6
|
-
import { d as ia, c as da, a as va } from "./index-
|
|
6
|
+
import { d as ia, c as da, a as va } from "./index-CcRGEK9X.js";
|
|
7
7
|
import { E as pa } from "./index-GFe4DzsX.js";
|
|
8
8
|
const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class: "group-items" }, ma = ["onDragstart"], ba = {
|
|
9
9
|
__name: "index",
|