ss-component-new 1.2.97 → 1.2.98
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-DnouUI-8.js → MTLLoader-CCS24gLm.js} +1 -1
- package/dist/{MTLLoader-zZDM0NQh.cjs → MTLLoader-DlcJK6vT.cjs} +1 -1
- package/dist/{OrbitControls-B85G8nPk.cjs → OrbitControls-BLs9AYBY.cjs} +1 -1
- package/dist/{OrbitControls-DFhYzlF3.js → OrbitControls-KkyEKP5M.js} +1 -1
- package/dist/{animationData-DfKVkFbz.js → animationData-Btgynl98.js} +1 -1
- package/dist/{animationData-DxBvEqB1.cjs → animationData-CCImpyvS.cjs} +1 -1
- package/dist/{iconfont-WOKNi2xx.js → iconfont-B8CQB3CO.js} +2 -2
- package/dist/{iconfont-C7kE-QbU.cjs → iconfont-BXzhYF5A.cjs} +1 -1
- package/dist/{index-DgZVeYqH.js → index--JyaPE1g.js} +1 -1
- package/dist/{index-DHZMd8iK.cjs → index-1TxthiQw.cjs} +1 -1
- package/dist/{index-CLOUp_4j.cjs → index-2wJBzGa-.cjs} +1 -1
- package/dist/{index-D0hovh9R.cjs → index-6sDAnob5.cjs} +1 -1
- package/dist/{index-_PP-dSm3.cjs → index-7ZZHuv4d.cjs} +1 -1
- package/dist/{index-Cr5if46q.js → index-B4YN6ElV.js} +1 -1
- package/dist/{index-Cnk_4Zz5.cjs → index-B8XDW6Ly.cjs} +1 -1
- package/dist/{index-BFzMf0GC.js → index-BCNDy7LZ.js} +1 -1
- package/dist/{index-DSPjcpWK.cjs → index-BMSOMrGq.cjs} +1 -1
- package/dist/{index-Cppt0AsF.cjs → index-B_WRw_3s.cjs} +1 -1
- package/dist/{index-D_igus4A.cjs → index-BaXxrBtb.cjs} +1 -1
- package/dist/{index-DeOwZgqL.js → index-Bk8CKDbz.js} +4 -4
- package/dist/{index-BXv3aZ7v.js → index-BkPXyAKD.js} +1 -1
- package/dist/{index-D_RGoDln.js → index-C9U9aO2Y.js} +3 -3
- package/dist/{index-BI7g3c_u.js → index-CAAOZFSQ.js} +13 -13
- package/dist/{index-hhS08X8b.js → index-CLddyFrz.js} +3 -3
- package/dist/{index-kLDMroPk.js → index-CUAM_spJ.js} +1 -1
- package/dist/{index-CZPnP0uy.cjs → index-CWJuJJYp.cjs} +1 -1
- package/dist/{index-BDxPlbe2.cjs → index-CYmbZuJq.cjs} +1 -1
- package/dist/{index-CQRJ3pLh.cjs → index-C_rjTaFu.cjs} +1 -1
- package/dist/{index-DHjtOySN.js → index-Cmlus98m.js} +2 -2
- package/dist/{index-331j518H.cjs → index-CnBVZu9x.cjs} +1 -1
- package/dist/{index-CqI3frdZ.js → index-Cz7uQ_eD.js} +6 -6
- package/dist/{index-D6u590uA.cjs → index-DMTBVsgY.cjs} +1 -1
- package/dist/{index-DrzK0O_g.cjs → index-DRjN9mko.cjs} +1 -1
- package/dist/{index-C-dlFxRJ.cjs → index-DThE5nRZ.cjs} +1 -1
- package/dist/{index-BYk9Fb6p.js → index-DXrBVvWh.js} +3 -3
- package/dist/{index-DRfVnLTN.js → index-DZf4BLpR.js} +6 -6
- package/dist/{index-DHBoRe9V.cjs → index-DcxUbnrO.cjs} +1 -1
- package/dist/{index-Bhha7SY3.js → index-DdQjdsrn.js} +1 -1
- package/dist/{index-BODyH6MD.js → index-Dggo7EaF.js} +1 -1
- package/dist/{index-DbDM-XfB.cjs → index-DvQRFx9T.cjs} +1 -1
- package/dist/{index-CPAXrzNY.cjs → index-FnJX1FLR.cjs} +1 -1
- package/dist/{index-iZ9BRKg5.js → index-JQ_SaJ0O.js} +1 -1
- package/dist/{index-B_zjoT4m.js → index-blVMOcaF.js} +2 -2
- package/dist/{index-DJ6qg2Mo.js → index-hbpC0O70.js} +3 -3
- package/dist/{index-S1LIIzCa.cjs → index-k579sq5M.cjs} +1 -1
- package/dist/{index-6sZXjGGz.cjs → index-nSLXu4eq.cjs} +1 -1
- package/dist/{index-B-AhHUV1.js → index-tUUpniUl.js} +1 -1
- package/dist/{index-CeGM8aBH.js → index-uWijQ8Cy.js} +2 -2
- package/dist/{index-iErxMZBi.cjs → index-yWC1EX2L.cjs} +1 -1
- package/dist/{index-BoTiP0aV.js → index-zsvDrZxo.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DSlAeFA3.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BKdUW522.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-ERjMISIK.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DPDuWtDv.js} +6 -6
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-3GcG1eTD.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CmofVWvn.js} +1642 -1647
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dzyqt2Z-.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Y4oIHCVM.cjs} +58 -58
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-mJB_yl_P.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-D0zznqn6.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-DODc2KPN.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-YB8ip9Xh.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-BRFs_L5R.cjs → index.vue_vue_type_style_index_1_lang-BB0IwRdP.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-BH0DRFVE.js → index.vue_vue_type_style_index_1_lang-CT8c_mLo.js} +3 -3
- package/dist/{main-B541MQH8.cjs → main-BOuiQUiL.cjs} +1 -1
- package/dist/{main-Z5UMyCj6.js → main-CbZLyXuF.js} +2 -2
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeModel-BcjGbIJZ.js → threeModel-BJ6MrCa-.js} +4 -4
- package/dist/{threeModel-tKq0hvaK.cjs → threeModel-i87HG3Ck.cjs} +1 -1
- package/dist/{threePreview-DD0br2ae.cjs → threePreview-B3v9SadK.cjs} +1 -1
- package/dist/{threePreview-BnPMGQ2H.js → threePreview-D3wObBZq.js} +309 -305
- package/dist/{threeSceneView-BUD002PP.js → threeSceneView-DDpjEIgl.js} +7 -7
- package/dist/{threeSceneView-DVUTlm6F.cjs → threeSceneView-DQpyKixe.cjs} +2 -2
- package/dist/{threeSceneViewForCPMPIP-D4RC4BAo.js → threeSceneViewForCPMPIP-DV_aOUU5.js} +202 -198
- package/dist/threeSceneViewForCPMPIP-iaIkud0j.cjs +5 -0
- package/dist/{threeTrackPathView-DDCEu3Gx.js → threeTrackPathView-D6aAG4g8.js} +375 -359
- package/dist/threeTrackPathView-nPb7Tgdd.cjs +370 -0
- package/dist/{threeViewerHost-Sda_AoRw.cjs → threeViewerHost-I50ZyvKF.cjs} +2 -2
- package/dist/{threeViewerHost-BVeUteVd.js → threeViewerHost-XR9tepbY.js} +2 -2
- package/dist/{urdfTree-Br9VYqKp.cjs → urdfTree-B19ebCHj.cjs} +1 -1
- package/dist/{urdfTree-DaWvX-6R.js → urdfTree-CjxhpnRl.js} +1 -1
- package/dist/{workpieceTreePanel-Z3aVdOWB.cjs → workpieceTreePanel-0L7tkycK.cjs} +1 -1
- package/dist/{workpieceTreePanel-BdRaFNRp.js → workpieceTreePanel-DAnMGvlX.js} +5 -5
- package/package.json +1 -1
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/dist/threeSceneViewForCPMPIP-BYYbyqD7.cjs +0 -5
- package/dist/threeTrackPathView-BvUihuyk.cjs +0 -370
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { u as
|
|
3
|
-
import { J as
|
|
4
|
-
import { E as
|
|
5
|
-
import { M as
|
|
6
|
-
import { T as
|
|
7
|
-
import { _ as
|
|
8
|
-
function
|
|
9
|
-
if (n ===
|
|
1
|
+
import { ref as V, shallowRef as Ve, defineComponent as ze, watch as ee, onMounted as Xe, nextTick as qe, onBeforeUnmount as We, resolveComponent as Ye, createElementBlock as ne, openBlock as te, createElementVNode as L, withDirectives as X, createCommentVNode as me, createVNode as U, unref as w, renderSlot as ge, toDisplayString as Te, withCtx as $e, isRef as J, vModelRadio as Q, vShow as Je } from "vue";
|
|
2
|
+
import { u as Qe, a as Ze, b as en } from "./iconfont-B8CQB3CO.js";
|
|
3
|
+
import { J as nn, K as le, N as Ne, O as tn, Q as Y, R as Ie, U as O, Y as Ce, C as j, Z as P, f as $, _ as sn, n as rn, D as on, r as Z, V as K, $ as an, a0 as Oe, a1 as cn, a2 as ve, a3 as ln, a4 as un, a5 as se, a6 as fn, a7 as ke, a8 as dn, a9 as hn, aa as pn, ab as ue, ac as Pe, ad as fe, ae as mn, af as gn, ag as Tn, ah as re, ai as xn, v as Fe, p as Rn, aj as W, ak as En, w as An, al as _n, k as De, am as Ln, y as Mn, an as wn, ao as yn, u as ie, P as bn, s as Sn, ap as Nn, aq as In, ar as Cn, as as On, at as vn, au as He, av as kn, aw as xe, ax as Re, ay as Ee, az as Ae, aA as _e, aB as Pn, aC as Fn, B as Ue, aD as Dn, o as Hn } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CmofVWvn.js";
|
|
4
|
+
import { E as Le } from "./index-BUYYl2Pc.js";
|
|
5
|
+
import { M as Un, O as Gn, S as jn } from "./MTLLoader-CCS24gLm.js";
|
|
6
|
+
import { T as B } from "./svgIcon-D-_fXUBL.js";
|
|
7
|
+
import { _ as Bn } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
+
function Me(f, n) {
|
|
9
|
+
if (n === nn)
|
|
10
10
|
return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."), f;
|
|
11
|
-
if (n ===
|
|
11
|
+
if (n === le || n === Ne) {
|
|
12
12
|
let e = f.getIndex();
|
|
13
13
|
if (e === null) {
|
|
14
14
|
const r = [], a = f.getAttribute("position");
|
|
@@ -20,7 +20,7 @@ function Le(f, n) {
|
|
|
20
20
|
return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."), f;
|
|
21
21
|
}
|
|
22
22
|
const i = e.count - 2, t = [];
|
|
23
|
-
if (n ===
|
|
23
|
+
if (n === le)
|
|
24
24
|
for (let r = 1; r <= i; r++)
|
|
25
25
|
t.push(e.getX(0)), t.push(e.getX(r)), t.push(e.getX(r + 1));
|
|
26
26
|
else
|
|
@@ -32,7 +32,7 @@ function Le(f, n) {
|
|
|
32
32
|
} else
|
|
33
33
|
return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:", n), f;
|
|
34
34
|
}
|
|
35
|
-
class
|
|
35
|
+
class Kn extends tn {
|
|
36
36
|
/**
|
|
37
37
|
* Constructs a new glTF loader.
|
|
38
38
|
*
|
|
@@ -40,39 +40,39 @@ class jn extends en {
|
|
|
40
40
|
*/
|
|
41
41
|
constructor(n) {
|
|
42
42
|
super(n), this.dracoLoader = null, this.ktx2Loader = null, this.meshoptDecoder = null, this.pluginCallbacks = [], this.register(function(e) {
|
|
43
|
-
return new
|
|
44
|
-
}), this.register(function(e) {
|
|
45
|
-
return new qn(e);
|
|
46
|
-
}), this.register(function(e) {
|
|
47
|
-
return new tt(e);
|
|
43
|
+
return new Wn(e);
|
|
48
44
|
}), this.register(function(e) {
|
|
49
|
-
return new
|
|
45
|
+
return new Yn(e);
|
|
50
46
|
}), this.register(function(e) {
|
|
51
47
|
return new rt(e);
|
|
52
48
|
}), this.register(function(e) {
|
|
53
|
-
return new
|
|
49
|
+
return new it(e);
|
|
54
50
|
}), this.register(function(e) {
|
|
55
|
-
return new
|
|
51
|
+
return new ot(e);
|
|
56
52
|
}), this.register(function(e) {
|
|
57
53
|
return new Jn(e);
|
|
58
54
|
}), this.register(function(e) {
|
|
59
55
|
return new Qn(e);
|
|
60
|
-
}), this.register(function(e) {
|
|
61
|
-
return new zn(e);
|
|
62
56
|
}), this.register(function(e) {
|
|
63
57
|
return new Zn(e);
|
|
64
58
|
}), this.register(function(e) {
|
|
65
|
-
return new
|
|
59
|
+
return new et(e);
|
|
60
|
+
}), this.register(function(e) {
|
|
61
|
+
return new qn(e);
|
|
66
62
|
}), this.register(function(e) {
|
|
67
63
|
return new nt(e);
|
|
68
64
|
}), this.register(function(e) {
|
|
69
|
-
return new
|
|
65
|
+
return new $n(e);
|
|
70
66
|
}), this.register(function(e) {
|
|
71
|
-
return new
|
|
67
|
+
return new st(e);
|
|
72
68
|
}), this.register(function(e) {
|
|
73
|
-
return new
|
|
69
|
+
return new tt(e);
|
|
74
70
|
}), this.register(function(e) {
|
|
75
|
-
return new
|
|
71
|
+
return new zn(e);
|
|
72
|
+
}), this.register(function(e) {
|
|
73
|
+
return new at(e);
|
|
74
|
+
}), this.register(function(e) {
|
|
75
|
+
return new ct(e);
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
@@ -90,14 +90,14 @@ class jn extends en {
|
|
|
90
90
|
if (this.resourcePath !== "")
|
|
91
91
|
r = this.resourcePath;
|
|
92
92
|
else if (this.path !== "") {
|
|
93
|
-
const c =
|
|
94
|
-
r =
|
|
93
|
+
const c = Y.extractUrlBase(n);
|
|
94
|
+
r = Y.resolveURL(c, this.path);
|
|
95
95
|
} else
|
|
96
|
-
r =
|
|
96
|
+
r = Y.extractUrlBase(n);
|
|
97
97
|
this.manager.itemStart(n);
|
|
98
98
|
const a = function(c) {
|
|
99
99
|
t ? t(c) : console.error(c), s.manager.itemError(n), s.manager.itemEnd(n);
|
|
100
|
-
}, o = new
|
|
100
|
+
}, o = new Ie(this.manager);
|
|
101
101
|
o.setPath(this.path), o.setResponseType("arraybuffer"), o.setRequestHeader(this.requestHeader), o.setWithCredentials(this.withCredentials), o.load(n, function(c) {
|
|
102
102
|
try {
|
|
103
103
|
s.parse(c, r, function(u) {
|
|
@@ -172,9 +172,9 @@ class jn extends en {
|
|
|
172
172
|
if (typeof n == "string")
|
|
173
173
|
s = JSON.parse(n);
|
|
174
174
|
else if (n instanceof ArrayBuffer)
|
|
175
|
-
if (o.decode(new Uint8Array(n, 0, 4)) ===
|
|
175
|
+
if (o.decode(new Uint8Array(n, 0, 4)) === Ge) {
|
|
176
176
|
try {
|
|
177
|
-
r[R.KHR_BINARY_GLTF] = new
|
|
177
|
+
r[R.KHR_BINARY_GLTF] = new lt(n);
|
|
178
178
|
} catch (l) {
|
|
179
179
|
t && t(l);
|
|
180
180
|
return;
|
|
@@ -188,7 +188,7 @@ class jn extends en {
|
|
|
188
188
|
t && t(new Error("THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported."));
|
|
189
189
|
return;
|
|
190
190
|
}
|
|
191
|
-
const c = new
|
|
191
|
+
const c = new _t(s, {
|
|
192
192
|
path: e || this.resourcePath || "",
|
|
193
193
|
crossOrigin: this.crossOrigin,
|
|
194
194
|
requestHeader: this.requestHeader,
|
|
@@ -206,16 +206,16 @@ class jn extends en {
|
|
|
206
206
|
const l = s.extensionsUsed[u], d = s.extensionsRequired || [];
|
|
207
207
|
switch (l) {
|
|
208
208
|
case R.KHR_MATERIALS_UNLIT:
|
|
209
|
-
r[l] = new
|
|
209
|
+
r[l] = new Xn();
|
|
210
210
|
break;
|
|
211
211
|
case R.KHR_DRACO_MESH_COMPRESSION:
|
|
212
|
-
r[l] = new
|
|
212
|
+
r[l] = new ut(s, this.dracoLoader);
|
|
213
213
|
break;
|
|
214
214
|
case R.KHR_TEXTURE_TRANSFORM:
|
|
215
|
-
r[l] = new
|
|
215
|
+
r[l] = new ft();
|
|
216
216
|
break;
|
|
217
217
|
case R.KHR_MESH_QUANTIZATION:
|
|
218
|
-
r[l] = new
|
|
218
|
+
r[l] = new dt();
|
|
219
219
|
break;
|
|
220
220
|
default:
|
|
221
221
|
d.indexOf(l) >= 0 && a[l] === void 0 && console.warn('THREE.GLTFLoader: Unknown extension "' + l + '".');
|
|
@@ -238,7 +238,7 @@ class jn extends en {
|
|
|
238
238
|
});
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function Vn() {
|
|
242
242
|
let f = {};
|
|
243
243
|
return {
|
|
244
244
|
get: function(n) {
|
|
@@ -279,7 +279,7 @@ const R = {
|
|
|
279
279
|
EXT_MESHOPT_COMPRESSION: "EXT_meshopt_compression",
|
|
280
280
|
EXT_MESH_GPU_INSTANCING: "EXT_mesh_gpu_instancing"
|
|
281
281
|
};
|
|
282
|
-
class
|
|
282
|
+
class zn {
|
|
283
283
|
constructor(n) {
|
|
284
284
|
this.parser = n, this.name = R.KHR_LIGHTS_PUNCTUAL, this.cache = { refs: {}, uses: {} };
|
|
285
285
|
}
|
|
@@ -296,18 +296,18 @@ class Kn {
|
|
|
296
296
|
if (t) return t;
|
|
297
297
|
const s = e.json, o = ((s.extensions && s.extensions[this.name] || {}).lights || [])[n];
|
|
298
298
|
let c;
|
|
299
|
-
const u = new
|
|
299
|
+
const u = new j(16777215);
|
|
300
300
|
o.color !== void 0 && u.setRGB(o.color[0], o.color[1], o.color[2], P);
|
|
301
301
|
const l = o.range !== void 0 ? o.range : 0;
|
|
302
302
|
switch (o.type) {
|
|
303
303
|
case "directional":
|
|
304
|
-
c = new
|
|
304
|
+
c = new on(u), c.target.position.set(0, 0, -1), c.add(c.target);
|
|
305
305
|
break;
|
|
306
306
|
case "point":
|
|
307
|
-
c = new
|
|
307
|
+
c = new rn(u), c.distance = l;
|
|
308
308
|
break;
|
|
309
309
|
case "spot":
|
|
310
|
-
c = new
|
|
310
|
+
c = new sn(u), c.distance = l, o.spot = o.spot || {}, o.spot.innerConeAngle = o.spot.innerConeAngle !== void 0 ? o.spot.innerConeAngle : 0, o.spot.outerConeAngle = o.spot.outerConeAngle !== void 0 ? o.spot.outerConeAngle : Math.PI / 4, c.angle = o.spot.outerConeAngle, c.penumbra = 1 - o.spot.innerConeAngle / o.spot.outerConeAngle, c.target.position.set(0, 0, -1), c.add(c.target);
|
|
311
311
|
break;
|
|
312
312
|
default:
|
|
313
313
|
throw new Error("THREE.GLTFLoader: Unexpected light type: " + o.type);
|
|
@@ -325,28 +325,28 @@ class Kn {
|
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
|
-
class
|
|
328
|
+
class Xn {
|
|
329
329
|
constructor() {
|
|
330
330
|
this.name = R.KHR_MATERIALS_UNLIT;
|
|
331
331
|
}
|
|
332
332
|
getMaterialType() {
|
|
333
|
-
return
|
|
333
|
+
return W;
|
|
334
334
|
}
|
|
335
335
|
extendParams(n, e, i) {
|
|
336
336
|
const t = [];
|
|
337
|
-
n.color = new
|
|
337
|
+
n.color = new j(1, 1, 1), n.opacity = 1;
|
|
338
338
|
const s = e.pbrMetallicRoughness;
|
|
339
339
|
if (s) {
|
|
340
340
|
if (Array.isArray(s.baseColorFactor)) {
|
|
341
341
|
const r = s.baseColorFactor;
|
|
342
342
|
n.color.setRGB(r[0], r[1], r[2], P), n.opacity = r[3];
|
|
343
343
|
}
|
|
344
|
-
s.baseColorTexture !== void 0 && t.push(i.assignTexture(n, "map", s.baseColorTexture,
|
|
344
|
+
s.baseColorTexture !== void 0 && t.push(i.assignTexture(n, "map", s.baseColorTexture, $));
|
|
345
345
|
}
|
|
346
346
|
return Promise.all(t);
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
|
-
class
|
|
349
|
+
class qn {
|
|
350
350
|
constructor(n) {
|
|
351
351
|
this.parser = n, this.name = R.KHR_MATERIALS_EMISSIVE_STRENGTH;
|
|
352
352
|
}
|
|
@@ -358,7 +358,7 @@ class zn {
|
|
|
358
358
|
return s !== void 0 && (e.emissiveIntensity = s), Promise.resolve();
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
class
|
|
361
|
+
class Wn {
|
|
362
362
|
constructor(n) {
|
|
363
363
|
this.parser = n, this.name = R.KHR_MATERIALS_CLEARCOAT;
|
|
364
364
|
}
|
|
@@ -373,12 +373,12 @@ class Xn {
|
|
|
373
373
|
const s = [], r = t.extensions[this.name];
|
|
374
374
|
if (r.clearcoatFactor !== void 0 && (e.clearcoat = r.clearcoatFactor), r.clearcoatTexture !== void 0 && s.push(i.assignTexture(e, "clearcoatMap", r.clearcoatTexture)), r.clearcoatRoughnessFactor !== void 0 && (e.clearcoatRoughness = r.clearcoatRoughnessFactor), r.clearcoatRoughnessTexture !== void 0 && s.push(i.assignTexture(e, "clearcoatRoughnessMap", r.clearcoatRoughnessTexture)), r.clearcoatNormalTexture !== void 0 && (s.push(i.assignTexture(e, "clearcoatNormalMap", r.clearcoatNormalTexture)), r.clearcoatNormalTexture.scale !== void 0)) {
|
|
375
375
|
const a = r.clearcoatNormalTexture.scale;
|
|
376
|
-
e.clearcoatNormalScale = new
|
|
376
|
+
e.clearcoatNormalScale = new Ce(a, a);
|
|
377
377
|
}
|
|
378
378
|
return Promise.all(s);
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
|
-
class
|
|
381
|
+
class Yn {
|
|
382
382
|
constructor(n) {
|
|
383
383
|
this.parser = n, this.name = R.KHR_MATERIALS_DISPERSION;
|
|
384
384
|
}
|
|
@@ -394,7 +394,7 @@ class qn {
|
|
|
394
394
|
return e.dispersion = s.dispersion !== void 0 ? s.dispersion : 0, Promise.resolve();
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
-
class
|
|
397
|
+
class $n {
|
|
398
398
|
constructor(n) {
|
|
399
399
|
this.parser = n, this.name = R.KHR_MATERIALS_IRIDESCENCE;
|
|
400
400
|
}
|
|
@@ -410,7 +410,7 @@ class Wn {
|
|
|
410
410
|
return r.iridescenceFactor !== void 0 && (e.iridescence = r.iridescenceFactor), r.iridescenceTexture !== void 0 && s.push(i.assignTexture(e, "iridescenceMap", r.iridescenceTexture)), r.iridescenceIor !== void 0 && (e.iridescenceIOR = r.iridescenceIor), e.iridescenceThicknessRange === void 0 && (e.iridescenceThicknessRange = [100, 400]), r.iridescenceThicknessMinimum !== void 0 && (e.iridescenceThicknessRange[0] = r.iridescenceThicknessMinimum), r.iridescenceThicknessMaximum !== void 0 && (e.iridescenceThicknessRange[1] = r.iridescenceThicknessMaximum), r.iridescenceThicknessTexture !== void 0 && s.push(i.assignTexture(e, "iridescenceThicknessMap", r.iridescenceThicknessTexture)), Promise.all(s);
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
|
-
class
|
|
413
|
+
class Jn {
|
|
414
414
|
constructor(n) {
|
|
415
415
|
this.parser = n, this.name = R.KHR_MATERIALS_SHEEN;
|
|
416
416
|
}
|
|
@@ -423,16 +423,16 @@ class Yn {
|
|
|
423
423
|
if (!t.extensions || !t.extensions[this.name])
|
|
424
424
|
return Promise.resolve();
|
|
425
425
|
const s = [];
|
|
426
|
-
e.sheenColor = new
|
|
426
|
+
e.sheenColor = new j(0, 0, 0), e.sheenRoughness = 0, e.sheen = 1;
|
|
427
427
|
const r = t.extensions[this.name];
|
|
428
428
|
if (r.sheenColorFactor !== void 0) {
|
|
429
429
|
const a = r.sheenColorFactor;
|
|
430
430
|
e.sheenColor.setRGB(a[0], a[1], a[2], P);
|
|
431
431
|
}
|
|
432
|
-
return r.sheenRoughnessFactor !== void 0 && (e.sheenRoughness = r.sheenRoughnessFactor), r.sheenColorTexture !== void 0 && s.push(i.assignTexture(e, "sheenColorMap", r.sheenColorTexture,
|
|
432
|
+
return r.sheenRoughnessFactor !== void 0 && (e.sheenRoughness = r.sheenRoughnessFactor), r.sheenColorTexture !== void 0 && s.push(i.assignTexture(e, "sheenColorMap", r.sheenColorTexture, $)), r.sheenRoughnessTexture !== void 0 && s.push(i.assignTexture(e, "sheenRoughnessMap", r.sheenRoughnessTexture)), Promise.all(s);
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
|
-
class
|
|
435
|
+
class Qn {
|
|
436
436
|
constructor(n) {
|
|
437
437
|
this.parser = n, this.name = R.KHR_MATERIALS_TRANSMISSION;
|
|
438
438
|
}
|
|
@@ -448,7 +448,7 @@ class $n {
|
|
|
448
448
|
return r.transmissionFactor !== void 0 && (e.transmission = r.transmissionFactor), r.transmissionTexture !== void 0 && s.push(i.assignTexture(e, "transmissionMap", r.transmissionTexture)), Promise.all(s);
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
|
-
class
|
|
451
|
+
class Zn {
|
|
452
452
|
constructor(n) {
|
|
453
453
|
this.parser = n, this.name = R.KHR_MATERIALS_VOLUME;
|
|
454
454
|
}
|
|
@@ -463,10 +463,10 @@ class Jn {
|
|
|
463
463
|
const s = [], r = t.extensions[this.name];
|
|
464
464
|
e.thickness = r.thicknessFactor !== void 0 ? r.thicknessFactor : 0, r.thicknessTexture !== void 0 && s.push(i.assignTexture(e, "thicknessMap", r.thicknessTexture)), e.attenuationDistance = r.attenuationDistance || 1 / 0;
|
|
465
465
|
const a = r.attenuationColor || [1, 1, 1];
|
|
466
|
-
return e.attenuationColor = new
|
|
466
|
+
return e.attenuationColor = new j().setRGB(a[0], a[1], a[2], P), Promise.all(s);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
class
|
|
469
|
+
class et {
|
|
470
470
|
constructor(n) {
|
|
471
471
|
this.parser = n, this.name = R.KHR_MATERIALS_IOR;
|
|
472
472
|
}
|
|
@@ -482,7 +482,7 @@ class Qn {
|
|
|
482
482
|
return e.ior = s.ior !== void 0 ? s.ior : 1.5, Promise.resolve();
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
|
-
class
|
|
485
|
+
class nt {
|
|
486
486
|
constructor(n) {
|
|
487
487
|
this.parser = n, this.name = R.KHR_MATERIALS_SPECULAR;
|
|
488
488
|
}
|
|
@@ -497,10 +497,10 @@ class Zn {
|
|
|
497
497
|
const s = [], r = t.extensions[this.name];
|
|
498
498
|
e.specularIntensity = r.specularFactor !== void 0 ? r.specularFactor : 1, r.specularTexture !== void 0 && s.push(i.assignTexture(e, "specularIntensityMap", r.specularTexture));
|
|
499
499
|
const a = r.specularColorFactor || [1, 1, 1];
|
|
500
|
-
return e.specularColor = new
|
|
500
|
+
return e.specularColor = new j().setRGB(a[0], a[1], a[2], P), r.specularColorTexture !== void 0 && s.push(i.assignTexture(e, "specularColorMap", r.specularColorTexture, $)), Promise.all(s);
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
|
-
class
|
|
503
|
+
class tt {
|
|
504
504
|
constructor(n) {
|
|
505
505
|
this.parser = n, this.name = R.EXT_MATERIALS_BUMP;
|
|
506
506
|
}
|
|
@@ -516,7 +516,7 @@ class et {
|
|
|
516
516
|
return e.bumpScale = r.bumpFactor !== void 0 ? r.bumpFactor : 1, r.bumpTexture !== void 0 && s.push(i.assignTexture(e, "bumpMap", r.bumpTexture)), Promise.all(s);
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
|
-
class
|
|
519
|
+
class st {
|
|
520
520
|
constructor(n) {
|
|
521
521
|
this.parser = n, this.name = R.KHR_MATERIALS_ANISOTROPY;
|
|
522
522
|
}
|
|
@@ -532,7 +532,7 @@ class nt {
|
|
|
532
532
|
return r.anisotropyStrength !== void 0 && (e.anisotropy = r.anisotropyStrength), r.anisotropyRotation !== void 0 && (e.anisotropyRotation = r.anisotropyRotation), r.anisotropyTexture !== void 0 && s.push(i.assignTexture(e, "anisotropyMap", r.anisotropyTexture)), Promise.all(s);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
|
-
class
|
|
535
|
+
class rt {
|
|
536
536
|
constructor(n) {
|
|
537
537
|
this.parser = n, this.name = R.KHR_TEXTURE_BASISU;
|
|
538
538
|
}
|
|
@@ -549,7 +549,7 @@ class tt {
|
|
|
549
549
|
return e.loadTextureImage(n, s.source, r);
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
|
-
class
|
|
552
|
+
class it {
|
|
553
553
|
constructor(n) {
|
|
554
554
|
this.parser = n, this.name = R.EXT_TEXTURE_WEBP;
|
|
555
555
|
}
|
|
@@ -566,7 +566,7 @@ class st {
|
|
|
566
566
|
return i.loadTextureImage(n, r.source, o);
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
class
|
|
569
|
+
class ot {
|
|
570
570
|
constructor(n) {
|
|
571
571
|
this.parser = n, this.name = R.EXT_TEXTURE_AVIF;
|
|
572
572
|
}
|
|
@@ -583,7 +583,7 @@ class rt {
|
|
|
583
583
|
return i.loadTextureImage(n, r.source, o);
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
|
-
class
|
|
586
|
+
class at {
|
|
587
587
|
constructor(n) {
|
|
588
588
|
this.name = R.EXT_MESHOPT_COMPRESSION, this.parser = n;
|
|
589
589
|
}
|
|
@@ -609,7 +609,7 @@ class it {
|
|
|
609
609
|
return null;
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
|
-
class
|
|
612
|
+
class ct {
|
|
613
613
|
constructor(n) {
|
|
614
614
|
this.name = R.EXT_MESH_GPU_INSTANCING, this.parser = n;
|
|
615
615
|
}
|
|
@@ -627,44 +627,44 @@ class ot {
|
|
|
627
627
|
return a.length < 1 ? null : (a.push(this.parser.createNodeMesh(n)), Promise.all(a).then((c) => {
|
|
628
628
|
const u = c.pop(), l = u.isGroup ? u.children : [u], d = c[0].count, h = [];
|
|
629
629
|
for (const p of l) {
|
|
630
|
-
const x = new
|
|
630
|
+
const x = new Z(), m = new K(), g = new Oe(), E = new K(1, 1, 1), M = new an(p.geometry, p.material, d);
|
|
631
631
|
for (let T = 0; T < d; T++)
|
|
632
632
|
o.TRANSLATION && m.fromBufferAttribute(o.TRANSLATION, T), o.ROTATION && g.fromBufferAttribute(o.ROTATION, T), o.SCALE && E.fromBufferAttribute(o.SCALE, T), M.setMatrixAt(T, x.compose(m, g, E));
|
|
633
633
|
for (const T in o)
|
|
634
634
|
if (T === "_COLOR_0") {
|
|
635
|
-
const
|
|
636
|
-
M.instanceColor = new
|
|
635
|
+
const b = o[T];
|
|
636
|
+
M.instanceColor = new cn(b.array, b.itemSize, b.normalized);
|
|
637
637
|
} else T !== "TRANSLATION" && T !== "ROTATION" && T !== "SCALE" && p.geometry.setAttribute(T, o[T]);
|
|
638
|
-
|
|
638
|
+
ve.prototype.copy.call(M, p), this.parser.assignFinalMaterial(M), h.push(M);
|
|
639
639
|
}
|
|
640
640
|
return u.isGroup ? (u.clear(), u.add(...h), u) : h[0];
|
|
641
641
|
}));
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
|
-
const
|
|
645
|
-
class
|
|
644
|
+
const Ge = "glTF", q = 12, we = { JSON: 1313821514, BIN: 5130562 };
|
|
645
|
+
class lt {
|
|
646
646
|
constructor(n) {
|
|
647
647
|
this.name = R.KHR_BINARY_GLTF, this.content = null, this.body = null;
|
|
648
|
-
const e = new DataView(n, 0,
|
|
648
|
+
const e = new DataView(n, 0, q), i = new TextDecoder();
|
|
649
649
|
if (this.header = {
|
|
650
650
|
magic: i.decode(new Uint8Array(n.slice(0, 4))),
|
|
651
651
|
version: e.getUint32(4, !0),
|
|
652
652
|
length: e.getUint32(8, !0)
|
|
653
|
-
}, this.header.magic !==
|
|
653
|
+
}, this.header.magic !== Ge)
|
|
654
654
|
throw new Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");
|
|
655
655
|
if (this.header.version < 2)
|
|
656
656
|
throw new Error("THREE.GLTFLoader: Legacy binary file detected.");
|
|
657
|
-
const t = this.header.length -
|
|
657
|
+
const t = this.header.length - q, s = new DataView(n, q);
|
|
658
658
|
let r = 0;
|
|
659
659
|
for (; r < t; ) {
|
|
660
660
|
const a = s.getUint32(r, !0);
|
|
661
661
|
r += 4;
|
|
662
662
|
const o = s.getUint32(r, !0);
|
|
663
|
-
if (r += 4, o ===
|
|
664
|
-
const c = new Uint8Array(n,
|
|
663
|
+
if (r += 4, o === we.JSON) {
|
|
664
|
+
const c = new Uint8Array(n, q + r, a);
|
|
665
665
|
this.content = i.decode(c);
|
|
666
|
-
} else if (o ===
|
|
667
|
-
const c =
|
|
666
|
+
} else if (o === we.BIN) {
|
|
667
|
+
const c = q + r;
|
|
668
668
|
this.body = n.slice(c, c + a);
|
|
669
669
|
}
|
|
670
670
|
r += a;
|
|
@@ -673,7 +673,7 @@ class at {
|
|
|
673
673
|
throw new Error("THREE.GLTFLoader: JSON content not found.");
|
|
674
674
|
}
|
|
675
675
|
}
|
|
676
|
-
class
|
|
676
|
+
class ut {
|
|
677
677
|
constructor(n, e) {
|
|
678
678
|
if (!e)
|
|
679
679
|
throw new Error("THREE.GLTFLoader: No DRACOLoader instance provided.");
|
|
@@ -682,13 +682,13 @@ class ct {
|
|
|
682
682
|
decodePrimitive(n, e) {
|
|
683
683
|
const i = this.json, t = this.dracoLoader, s = n.extensions[this.name].bufferView, r = n.extensions[this.name].attributes, a = {}, o = {}, c = {};
|
|
684
684
|
for (const u in r) {
|
|
685
|
-
const l =
|
|
685
|
+
const l = de[u] || u.toLowerCase();
|
|
686
686
|
a[l] = r[u];
|
|
687
687
|
}
|
|
688
688
|
for (const u in n.attributes) {
|
|
689
|
-
const l =
|
|
689
|
+
const l = de[u] || u.toLowerCase();
|
|
690
690
|
if (r[u] !== void 0) {
|
|
691
|
-
const d = i.accessors[n.attributes[u]], h =
|
|
691
|
+
const d = i.accessors[n.attributes[u]], h = z[d.componentType];
|
|
692
692
|
c[l] = h.name, o[l] = d.normalized === !0;
|
|
693
693
|
}
|
|
694
694
|
}
|
|
@@ -705,7 +705,7 @@ class ct {
|
|
|
705
705
|
});
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
|
-
class
|
|
708
|
+
class ft {
|
|
709
709
|
constructor() {
|
|
710
710
|
this.name = R.KHR_TEXTURE_TRANSFORM;
|
|
711
711
|
}
|
|
@@ -713,12 +713,12 @@ class lt {
|
|
|
713
713
|
return (e.texCoord === void 0 || e.texCoord === n.channel) && e.offset === void 0 && e.rotation === void 0 && e.scale === void 0 || (n = n.clone(), e.texCoord !== void 0 && (n.channel = e.texCoord), e.offset !== void 0 && n.offset.fromArray(e.offset), e.rotation !== void 0 && (n.rotation = e.rotation), e.scale !== void 0 && n.repeat.fromArray(e.scale), n.needsUpdate = !0), n;
|
|
714
714
|
}
|
|
715
715
|
}
|
|
716
|
-
class
|
|
716
|
+
class dt {
|
|
717
717
|
constructor() {
|
|
718
718
|
this.name = R.KHR_MESH_QUANTIZATION;
|
|
719
719
|
}
|
|
720
720
|
}
|
|
721
|
-
class
|
|
721
|
+
class je extends Fn {
|
|
722
722
|
constructor(n, e, i, t) {
|
|
723
723
|
super(n, e, i, t);
|
|
724
724
|
}
|
|
@@ -731,17 +731,17 @@ class Ge extends kn {
|
|
|
731
731
|
interpolate_(n, e, i, t) {
|
|
732
732
|
const s = this.resultBuffer, r = this.sampleValues, a = this.valueSize, o = a * 2, c = a * 3, u = t - e, l = (i - e) / u, d = l * l, h = d * l, p = n * c, x = p - c, m = -2 * h + 3 * d, g = h - d, E = 1 - m, M = g - d + l;
|
|
733
733
|
for (let T = 0; T !== a; T++) {
|
|
734
|
-
const
|
|
735
|
-
s[T] = E *
|
|
734
|
+
const b = r[x + T + a], I = r[x + T + o] * u, N = r[p + T + a], v = r[p + T] * u;
|
|
735
|
+
s[T] = E * b + M * I + m * N + g * v;
|
|
736
736
|
}
|
|
737
737
|
return s;
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
|
-
const
|
|
741
|
-
class
|
|
740
|
+
const ht = new Oe();
|
|
741
|
+
class pt extends je {
|
|
742
742
|
interpolate_(n, e, i, t) {
|
|
743
743
|
const s = super.interpolate_(n, e, i, t);
|
|
744
|
-
return
|
|
744
|
+
return ht.fromArray(s).normalize().toArray(s), s;
|
|
745
745
|
}
|
|
746
746
|
}
|
|
747
747
|
const C = {
|
|
@@ -752,25 +752,25 @@ const C = {
|
|
|
752
752
|
TRIANGLES: 4,
|
|
753
753
|
TRIANGLE_STRIP: 5,
|
|
754
754
|
TRIANGLE_FAN: 6
|
|
755
|
-
},
|
|
755
|
+
}, z = {
|
|
756
756
|
5120: Int8Array,
|
|
757
757
|
5121: Uint8Array,
|
|
758
758
|
5122: Int16Array,
|
|
759
759
|
5123: Uint16Array,
|
|
760
760
|
5125: Uint32Array,
|
|
761
761
|
5126: Float32Array
|
|
762
|
-
}, we = {
|
|
763
|
-
9728: ke,
|
|
764
|
-
9729: le,
|
|
765
|
-
9984: dn,
|
|
766
|
-
9985: fn,
|
|
767
|
-
9986: un,
|
|
768
|
-
9987: ve
|
|
769
762
|
}, ye = {
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
763
|
+
9728: Pe,
|
|
764
|
+
9729: ue,
|
|
765
|
+
9984: pn,
|
|
766
|
+
9985: hn,
|
|
767
|
+
9986: dn,
|
|
768
|
+
9987: ke
|
|
769
|
+
}, be = {
|
|
770
|
+
33071: gn,
|
|
771
|
+
33648: mn,
|
|
772
|
+
10497: fe
|
|
773
|
+
}, oe = {
|
|
774
774
|
SCALAR: 1,
|
|
775
775
|
VEC2: 2,
|
|
776
776
|
VEC3: 3,
|
|
@@ -778,7 +778,7 @@ const C = {
|
|
|
778
778
|
MAT2: 4,
|
|
779
779
|
MAT3: 9,
|
|
780
780
|
MAT4: 16
|
|
781
|
-
},
|
|
781
|
+
}, de = {
|
|
782
782
|
POSITION: "position",
|
|
783
783
|
NORMAL: "normal",
|
|
784
784
|
TANGENT: "tangent",
|
|
@@ -789,41 +789,41 @@ const C = {
|
|
|
789
789
|
COLOR_0: "color",
|
|
790
790
|
WEIGHTS_0: "skinWeight",
|
|
791
791
|
JOINTS_0: "skinIndex"
|
|
792
|
-
},
|
|
792
|
+
}, H = {
|
|
793
793
|
scale: "scale",
|
|
794
794
|
translation: "position",
|
|
795
795
|
rotation: "quaternion",
|
|
796
796
|
weights: "morphTargetInfluences"
|
|
797
|
-
},
|
|
797
|
+
}, mt = {
|
|
798
798
|
CUBICSPLINE: void 0,
|
|
799
799
|
// We use a custom interpolant (GLTFCubicSplineInterpolation) for CUBICSPLINE tracks. Each
|
|
800
800
|
// keyframe track will be initialized with a default interpolation type, then modified.
|
|
801
|
-
LINEAR:
|
|
802
|
-
STEP:
|
|
803
|
-
},
|
|
801
|
+
LINEAR: He,
|
|
802
|
+
STEP: vn
|
|
803
|
+
}, ae = {
|
|
804
804
|
OPAQUE: "OPAQUE",
|
|
805
805
|
MASK: "MASK",
|
|
806
806
|
BLEND: "BLEND"
|
|
807
807
|
};
|
|
808
|
-
function
|
|
809
|
-
return f.DefaultMaterial === void 0 && (f.DefaultMaterial = new
|
|
808
|
+
function gt(f) {
|
|
809
|
+
return f.DefaultMaterial === void 0 && (f.DefaultMaterial = new Fe({
|
|
810
810
|
color: 16777215,
|
|
811
811
|
emissive: 0,
|
|
812
812
|
metalness: 1,
|
|
813
813
|
roughness: 1,
|
|
814
814
|
transparent: !1,
|
|
815
815
|
depthTest: !0,
|
|
816
|
-
side:
|
|
816
|
+
side: Pn
|
|
817
817
|
})), f.DefaultMaterial;
|
|
818
818
|
}
|
|
819
|
-
function
|
|
819
|
+
function G(f, n, e) {
|
|
820
820
|
for (const i in e.extensions)
|
|
821
821
|
f[i] === void 0 && (n.userData.gltfExtensions = n.userData.gltfExtensions || {}, n.userData.gltfExtensions[i] = e.extensions[i]);
|
|
822
822
|
}
|
|
823
823
|
function k(f, n) {
|
|
824
824
|
n.extras !== void 0 && (typeof n.extras == "object" ? Object.assign(f.userData, n.extras) : console.warn("THREE.GLTFLoader: Ignoring primitive type .extras, " + n.extras));
|
|
825
825
|
}
|
|
826
|
-
function
|
|
826
|
+
function Tt(f, n, e) {
|
|
827
827
|
let i = !1, t = !1, s = !1;
|
|
828
828
|
for (let c = 0, u = n.length; c < u; c++) {
|
|
829
829
|
const l = n[c];
|
|
@@ -855,7 +855,7 @@ function mt(f, n, e) {
|
|
|
855
855
|
return i && (f.morphAttributes.position = u), t && (f.morphAttributes.normal = l), s && (f.morphAttributes.color = d), f.morphTargetsRelative = !0, f;
|
|
856
856
|
});
|
|
857
857
|
}
|
|
858
|
-
function
|
|
858
|
+
function xt(f, n) {
|
|
859
859
|
if (f.updateMorphTargets(), n.weights !== void 0)
|
|
860
860
|
for (let e = 0, i = n.weights.length; e < i; e++)
|
|
861
861
|
f.morphTargetInfluences[e] = n.weights[e];
|
|
@@ -869,22 +869,22 @@ function gt(f, n) {
|
|
|
869
869
|
console.warn("THREE.GLTFLoader: Invalid extras.targetNames length. Ignoring names.");
|
|
870
870
|
}
|
|
871
871
|
}
|
|
872
|
-
function
|
|
872
|
+
function Rt(f) {
|
|
873
873
|
let n;
|
|
874
874
|
const e = f.extensions && f.extensions[R.KHR_DRACO_MESH_COMPRESSION];
|
|
875
|
-
if (e ? n = "draco:" + e.bufferView + ":" + e.indices + ":" +
|
|
875
|
+
if (e ? n = "draco:" + e.bufferView + ":" + e.indices + ":" + ce(e.attributes) : n = f.indices + ":" + ce(f.attributes) + ":" + f.mode, f.targets !== void 0)
|
|
876
876
|
for (let i = 0, t = f.targets.length; i < t; i++)
|
|
877
|
-
n += ":" +
|
|
877
|
+
n += ":" + ce(f.targets[i]);
|
|
878
878
|
return n;
|
|
879
879
|
}
|
|
880
|
-
function
|
|
880
|
+
function ce(f) {
|
|
881
881
|
let n = "";
|
|
882
882
|
const e = Object.keys(f).sort();
|
|
883
883
|
for (let i = 0, t = e.length; i < t; i++)
|
|
884
884
|
n += e[i] + ":" + f[e[i]] + ";";
|
|
885
885
|
return n;
|
|
886
886
|
}
|
|
887
|
-
function
|
|
887
|
+
function he(f) {
|
|
888
888
|
switch (f) {
|
|
889
889
|
case Int8Array:
|
|
890
890
|
return 1 / 127;
|
|
@@ -898,13 +898,13 @@ function de(f) {
|
|
|
898
898
|
throw new Error("THREE.GLTFLoader: Unsupported normalized accessor component type.");
|
|
899
899
|
}
|
|
900
900
|
}
|
|
901
|
-
function
|
|
901
|
+
function Et(f) {
|
|
902
902
|
return f.search(/\.jpe?g($|\?)/i) > 0 || f.search(/^data\:image\/jpeg/) === 0 ? "image/jpeg" : f.search(/\.webp($|\?)/i) > 0 || f.search(/^data\:image\/webp/) === 0 ? "image/webp" : f.search(/\.ktx2($|\?)/i) > 0 || f.search(/^data\:image\/ktx2/) === 0 ? "image/ktx2" : "image/png";
|
|
903
903
|
}
|
|
904
|
-
const
|
|
905
|
-
class
|
|
904
|
+
const At = new Z();
|
|
905
|
+
class _t {
|
|
906
906
|
constructor(n = {}, e = {}) {
|
|
907
|
-
this.json = n, this.extensions = {}, this.plugins = {}, this.options = e, this.cache = new
|
|
907
|
+
this.json = n, this.extensions = {}, this.plugins = {}, this.options = e, this.cache = new Vn(), this.associations = /* @__PURE__ */ new Map(), this.primitiveCache = {}, this.nodeCache = {}, this.meshCache = { refs: {}, uses: {} }, this.cameraCache = { refs: {}, uses: {} }, this.lightCache = { refs: {}, uses: {} }, this.sourceCache = {}, this.textureCache = {}, this.nodeNamesUsed = {};
|
|
908
908
|
let i = !1, t = -1, s = !1, r = -1;
|
|
909
909
|
if (typeof navigator < "u") {
|
|
910
910
|
const a = navigator.userAgent;
|
|
@@ -912,7 +912,7 @@ class Et {
|
|
|
912
912
|
const o = a.match(/Version\/(\d+)/);
|
|
913
913
|
t = i && o ? parseInt(o[1], 10) : -1, s = a.indexOf("Firefox") > -1, r = s ? a.match(/Firefox\/([0-9]+)\./)[1] : -1;
|
|
914
914
|
}
|
|
915
|
-
typeof createImageBitmap > "u" || i && t < 17 || s && r < 98 ? this.textureLoader = new
|
|
915
|
+
typeof createImageBitmap > "u" || i && t < 17 || s && r < 98 ? this.textureLoader = new ln(this.options.manager) : this.textureLoader = new un(this.options.manager), this.textureLoader.setCrossOrigin(this.options.crossOrigin), this.textureLoader.setRequestHeader(this.options.requestHeader), this.fileLoader = new Ie(this.options.manager), this.fileLoader.setResponseType("arraybuffer"), this.options.crossOrigin === "use-credentials" && this.fileLoader.setWithCredentials(!0);
|
|
916
916
|
}
|
|
917
917
|
setExtensions(n) {
|
|
918
918
|
this.extensions = n;
|
|
@@ -942,7 +942,7 @@ class Et {
|
|
|
942
942
|
parser: i,
|
|
943
943
|
userData: {}
|
|
944
944
|
};
|
|
945
|
-
return
|
|
945
|
+
return G(s, a, t), k(a, t), Promise.all(i._invokeAll(function(o) {
|
|
946
946
|
return o.afterRoot && o.afterRoot(a);
|
|
947
947
|
})).then(function() {
|
|
948
948
|
for (const o of a.scenes)
|
|
@@ -1123,7 +1123,7 @@ class Et {
|
|
|
1123
1123
|
return Promise.resolve(this.extensions[R.KHR_BINARY_GLTF].body);
|
|
1124
1124
|
const t = this.options;
|
|
1125
1125
|
return new Promise(function(s, r) {
|
|
1126
|
-
i.load(
|
|
1126
|
+
i.load(Y.resolveURL(e.uri, t.path), s, void 0, function() {
|
|
1127
1127
|
r(new Error('THREE.GLTFLoader: Failed to load buffer "' + e.uri + '".'));
|
|
1128
1128
|
});
|
|
1129
1129
|
});
|
|
@@ -1152,25 +1152,25 @@ class Et {
|
|
|
1152
1152
|
loadAccessor(n) {
|
|
1153
1153
|
const e = this, i = this.json, t = this.json.accessors[n];
|
|
1154
1154
|
if (t.bufferView === void 0 && t.sparse === void 0) {
|
|
1155
|
-
const r =
|
|
1156
|
-
return Promise.resolve(new
|
|
1155
|
+
const r = oe[t.type], a = z[t.componentType], o = t.normalized === !0, c = new a(t.count * r);
|
|
1156
|
+
return Promise.resolve(new se(c, r, o));
|
|
1157
1157
|
}
|
|
1158
1158
|
const s = [];
|
|
1159
1159
|
return t.bufferView !== void 0 ? s.push(this.getDependency("bufferView", t.bufferView)) : s.push(null), t.sparse !== void 0 && (s.push(this.getDependency("bufferView", t.sparse.indices.bufferView)), s.push(this.getDependency("bufferView", t.sparse.values.bufferView))), Promise.all(s).then(function(r) {
|
|
1160
|
-
const a = r[0], o =
|
|
1160
|
+
const a = r[0], o = oe[t.type], c = z[t.componentType], u = c.BYTES_PER_ELEMENT, l = u * o, d = t.byteOffset || 0, h = t.bufferView !== void 0 ? i.bufferViews[t.bufferView].byteStride : void 0, p = t.normalized === !0;
|
|
1161
1161
|
let x, m;
|
|
1162
1162
|
if (h && h !== l) {
|
|
1163
1163
|
const g = Math.floor(d / h), E = "InterleavedBuffer:" + t.bufferView + ":" + t.componentType + ":" + g + ":" + t.count;
|
|
1164
1164
|
let M = e.cache.get(E);
|
|
1165
|
-
M || (x = new c(a, g * h, t.count * h / u), M = new
|
|
1165
|
+
M || (x = new c(a, g * h, t.count * h / u), M = new fn(x, h / u), e.cache.add(E, M)), m = new kn(M, o, d % h / u, p);
|
|
1166
1166
|
} else
|
|
1167
|
-
a === null ? x = new c(t.count * o) : x = new c(a, d, t.count * o), m = new
|
|
1167
|
+
a === null ? x = new c(t.count * o) : x = new c(a, d, t.count * o), m = new se(x, o, p);
|
|
1168
1168
|
if (t.sparse !== void 0) {
|
|
1169
|
-
const g =
|
|
1170
|
-
a !== null && (m = new
|
|
1171
|
-
for (let
|
|
1172
|
-
const
|
|
1173
|
-
if (m.setX(
|
|
1169
|
+
const g = oe.SCALAR, E = z[t.sparse.indices.componentType], M = t.sparse.indices.byteOffset || 0, T = t.sparse.values.byteOffset || 0, b = new E(r[1], M, t.sparse.count * g), I = new c(r[2], T, t.sparse.count * o);
|
|
1170
|
+
a !== null && (m = new se(m.array.slice(), m.itemSize, m.normalized)), m.normalized = !1;
|
|
1171
|
+
for (let N = 0, v = b.length; N < v; N++) {
|
|
1172
|
+
const _ = b[N];
|
|
1173
|
+
if (m.setX(_, I[N * o]), o >= 2 && m.setY(_, I[N * o + 1]), o >= 3 && m.setZ(_, I[N * o + 2]), o >= 4 && m.setW(_, I[N * o + 3]), o >= 5) throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.");
|
|
1174
1174
|
}
|
|
1175
1175
|
m.normalized = p;
|
|
1176
1176
|
}
|
|
@@ -1200,7 +1200,7 @@ class Et {
|
|
|
1200
1200
|
const c = this.loadImageSource(e, i).then(function(u) {
|
|
1201
1201
|
u.flipY = !1, u.name = r.name || a.name || "", u.name === "" && typeof a.uri == "string" && a.uri.startsWith("data:image/") === !1 && (u.name = a.uri);
|
|
1202
1202
|
const d = (s.samplers || {})[r.sampler] || {};
|
|
1203
|
-
return u.magFilter =
|
|
1203
|
+
return u.magFilter = ye[d.magFilter] || ue, u.minFilter = ye[d.minFilter] || ke, u.wrapS = be[d.wrapS] || fe, u.wrapT = be[d.wrapT] || fe, u.generateMipmaps = !u.isCompressedTexture && u.minFilter !== Pe && u.minFilter !== ue, t.associations.set(u, { textures: n }), u;
|
|
1204
1204
|
}).catch(function() {
|
|
1205
1205
|
return null;
|
|
1206
1206
|
});
|
|
@@ -1224,12 +1224,12 @@ class Et {
|
|
|
1224
1224
|
return new Promise(function(d, h) {
|
|
1225
1225
|
let p = d;
|
|
1226
1226
|
e.isImageBitmapLoader === !0 && (p = function(x) {
|
|
1227
|
-
const m = new
|
|
1227
|
+
const m = new xe(x);
|
|
1228
1228
|
m.needsUpdate = !0, d(m);
|
|
1229
|
-
}), e.load(
|
|
1229
|
+
}), e.load(Y.resolveURL(l, s.path), p, void 0, h);
|
|
1230
1230
|
});
|
|
1231
1231
|
}).then(function(l) {
|
|
1232
|
-
return c === !0 && a.revokeObjectURL(o), k(l, r), l.userData.mimeType = r.mimeType ||
|
|
1232
|
+
return c === !0 && a.revokeObjectURL(o), k(l, r), l.userData.mimeType = r.mimeType || Et(r.uri), l;
|
|
1233
1233
|
}).catch(function(l) {
|
|
1234
1234
|
throw console.error("THREE.GLTFLoader: Couldn't load texture", o), l;
|
|
1235
1235
|
});
|
|
@@ -1276,11 +1276,11 @@ class Et {
|
|
|
1276
1276
|
if (n.isPoints) {
|
|
1277
1277
|
const a = "PointsMaterial:" + i.uuid;
|
|
1278
1278
|
let o = this.cache.get(a);
|
|
1279
|
-
o || (o = new
|
|
1279
|
+
o || (o = new Tn(), re.prototype.copy.call(o, i), o.color.copy(i.color), o.map = i.map, o.sizeAttenuation = !1, this.cache.add(a, o)), i = o;
|
|
1280
1280
|
} else if (n.isLine) {
|
|
1281
1281
|
const a = "LineBasicMaterial:" + i.uuid;
|
|
1282
1282
|
let o = this.cache.get(a);
|
|
1283
|
-
o || (o = new
|
|
1283
|
+
o || (o = new xn(), re.prototype.copy.call(o, i), o.color.copy(i.color), o.map = i.map, this.cache.add(a, o)), i = o;
|
|
1284
1284
|
}
|
|
1285
1285
|
if (t || s || r) {
|
|
1286
1286
|
let a = "ClonedMaterial:" + i.uuid + ":";
|
|
@@ -1291,7 +1291,7 @@ class Et {
|
|
|
1291
1291
|
n.material = i;
|
|
1292
1292
|
}
|
|
1293
1293
|
getMaterialType() {
|
|
1294
|
-
return
|
|
1294
|
+
return Fe;
|
|
1295
1295
|
}
|
|
1296
1296
|
/**
|
|
1297
1297
|
* Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#materials
|
|
@@ -1309,29 +1309,29 @@ class Et {
|
|
|
1309
1309
|
r = l.getMaterialType(), c.push(l.extendParams(a, s, e));
|
|
1310
1310
|
} else {
|
|
1311
1311
|
const l = s.pbrMetallicRoughness || {};
|
|
1312
|
-
if (a.color = new
|
|
1312
|
+
if (a.color = new j(1, 1, 1), a.opacity = 1, Array.isArray(l.baseColorFactor)) {
|
|
1313
1313
|
const d = l.baseColorFactor;
|
|
1314
1314
|
a.color.setRGB(d[0], d[1], d[2], P), a.opacity = d[3];
|
|
1315
1315
|
}
|
|
1316
|
-
l.baseColorTexture !== void 0 && c.push(e.assignTexture(a, "map", l.baseColorTexture,
|
|
1316
|
+
l.baseColorTexture !== void 0 && c.push(e.assignTexture(a, "map", l.baseColorTexture, $)), a.metalness = l.metallicFactor !== void 0 ? l.metallicFactor : 1, a.roughness = l.roughnessFactor !== void 0 ? l.roughnessFactor : 1, l.metallicRoughnessTexture !== void 0 && (c.push(e.assignTexture(a, "metalnessMap", l.metallicRoughnessTexture)), c.push(e.assignTexture(a, "roughnessMap", l.metallicRoughnessTexture))), r = this._invokeOne(function(d) {
|
|
1317
1317
|
return d.getMaterialType && d.getMaterialType(n);
|
|
1318
1318
|
}), c.push(Promise.all(this._invokeAll(function(d) {
|
|
1319
1319
|
return d.extendMaterialParams && d.extendMaterialParams(n, a);
|
|
1320
1320
|
})));
|
|
1321
1321
|
}
|
|
1322
|
-
s.doubleSided === !0 && (a.side =
|
|
1323
|
-
const u = s.alphaMode ||
|
|
1324
|
-
if (u ===
|
|
1322
|
+
s.doubleSided === !0 && (a.side = Rn);
|
|
1323
|
+
const u = s.alphaMode || ae.OPAQUE;
|
|
1324
|
+
if (u === ae.BLEND ? (a.transparent = !0, a.depthWrite = !1) : (a.transparent = !1, u === ae.MASK && (a.alphaTest = s.alphaCutoff !== void 0 ? s.alphaCutoff : 0.5)), s.normalTexture !== void 0 && r !== W && (c.push(e.assignTexture(a, "normalMap", s.normalTexture)), a.normalScale = new Ce(1, 1), s.normalTexture.scale !== void 0)) {
|
|
1325
1325
|
const l = s.normalTexture.scale;
|
|
1326
1326
|
a.normalScale.set(l, l);
|
|
1327
1327
|
}
|
|
1328
|
-
if (s.occlusionTexture !== void 0 && r !==
|
|
1328
|
+
if (s.occlusionTexture !== void 0 && r !== W && (c.push(e.assignTexture(a, "aoMap", s.occlusionTexture)), s.occlusionTexture.strength !== void 0 && (a.aoMapIntensity = s.occlusionTexture.strength)), s.emissiveFactor !== void 0 && r !== W) {
|
|
1329
1329
|
const l = s.emissiveFactor;
|
|
1330
|
-
a.emissive = new
|
|
1330
|
+
a.emissive = new j().setRGB(l[0], l[1], l[2], P);
|
|
1331
1331
|
}
|
|
1332
|
-
return s.emissiveTexture !== void 0 && r !==
|
|
1332
|
+
return s.emissiveTexture !== void 0 && r !== W && c.push(e.assignTexture(a, "emissiveMap", s.emissiveTexture, $)), Promise.all(c).then(function() {
|
|
1333
1333
|
const l = new r(a);
|
|
1334
|
-
return s.name && (l.name = s.name), k(l, s), e.associations.set(l, { materials: n }), s.extensions &&
|
|
1334
|
+
return s.name && (l.name = s.name), k(l, s), e.associations.set(l, { materials: n }), s.extensions && G(t, l, s), l;
|
|
1335
1335
|
});
|
|
1336
1336
|
}
|
|
1337
1337
|
/**
|
|
@@ -1342,7 +1342,7 @@ class Et {
|
|
|
1342
1342
|
* @return {string}
|
|
1343
1343
|
*/
|
|
1344
1344
|
createUniqueName(n) {
|
|
1345
|
-
const e =
|
|
1345
|
+
const e = En.sanitizeNodeName(n || "");
|
|
1346
1346
|
return e in this.nodeNamesUsed ? e + "_" + ++this.nodeNamesUsed[e] : (this.nodeNamesUsed[e] = 0, e);
|
|
1347
1347
|
}
|
|
1348
1348
|
/**
|
|
@@ -1358,17 +1358,17 @@ class Et {
|
|
|
1358
1358
|
const e = this, i = this.extensions, t = this.primitiveCache;
|
|
1359
1359
|
function s(a) {
|
|
1360
1360
|
return i[R.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(a, e).then(function(o) {
|
|
1361
|
-
return
|
|
1361
|
+
return Se(o, a, e);
|
|
1362
1362
|
});
|
|
1363
1363
|
}
|
|
1364
1364
|
const r = [];
|
|
1365
1365
|
for (let a = 0, o = n.length; a < o; a++) {
|
|
1366
|
-
const c = n[a], u =
|
|
1366
|
+
const c = n[a], u = Rt(c), l = t[u];
|
|
1367
1367
|
if (l)
|
|
1368
1368
|
r.push(l.promise);
|
|
1369
1369
|
else {
|
|
1370
1370
|
let d;
|
|
1371
|
-
c.extensions && c.extensions[R.KHR_DRACO_MESH_COMPRESSION] ? d = s(c) : d =
|
|
1371
|
+
c.extensions && c.extensions[R.KHR_DRACO_MESH_COMPRESSION] ? d = s(c) : d = Se(new An(), c, e), t[u] = { primitive: c, promise: d }, r.push(d);
|
|
1372
1372
|
}
|
|
1373
1373
|
}
|
|
1374
1374
|
return Promise.all(r);
|
|
@@ -1383,7 +1383,7 @@ class Et {
|
|
|
1383
1383
|
loadMesh(n) {
|
|
1384
1384
|
const e = this, i = this.json, t = this.extensions, s = i.meshes[n], r = s.primitives, a = [];
|
|
1385
1385
|
for (let o = 0, c = r.length; o < c; o++) {
|
|
1386
|
-
const u = r[o].material === void 0 ?
|
|
1386
|
+
const u = r[o].material === void 0 ? gt(this.cache) : this.getDependency("material", r[o].material);
|
|
1387
1387
|
a.push(u);
|
|
1388
1388
|
}
|
|
1389
1389
|
return a.push(e.loadGeometries(r)), Promise.all(a).then(function(o) {
|
|
@@ -1393,18 +1393,18 @@ class Et {
|
|
|
1393
1393
|
let g;
|
|
1394
1394
|
const E = c[h];
|
|
1395
1395
|
if (m.mode === C.TRIANGLES || m.mode === C.TRIANGLE_STRIP || m.mode === C.TRIANGLE_FAN || m.mode === void 0)
|
|
1396
|
-
g = s.isSkinnedMesh === !0 ? new
|
|
1396
|
+
g = s.isSkinnedMesh === !0 ? new _n(x, E) : new De(x, E), g.isSkinnedMesh === !0 && g.normalizeSkinWeights(), m.mode === C.TRIANGLE_STRIP ? g.geometry = Me(g.geometry, Ne) : m.mode === C.TRIANGLE_FAN && (g.geometry = Me(g.geometry, le));
|
|
1397
1397
|
else if (m.mode === C.LINES)
|
|
1398
|
-
g = new
|
|
1398
|
+
g = new Ln(x, E);
|
|
1399
1399
|
else if (m.mode === C.LINE_STRIP)
|
|
1400
|
-
g = new
|
|
1400
|
+
g = new Mn(x, E);
|
|
1401
1401
|
else if (m.mode === C.LINE_LOOP)
|
|
1402
|
-
g = new
|
|
1402
|
+
g = new wn(x, E);
|
|
1403
1403
|
else if (m.mode === C.POINTS)
|
|
1404
|
-
g = new
|
|
1404
|
+
g = new yn(x, E);
|
|
1405
1405
|
else
|
|
1406
1406
|
throw new Error("THREE.GLTFLoader: Primitive mode unsupported: " + m.mode);
|
|
1407
|
-
Object.keys(g.geometry.morphAttributes).length > 0 &&
|
|
1407
|
+
Object.keys(g.geometry.morphAttributes).length > 0 && xt(g, s), g.name = e.createUniqueName(s.name || "mesh_" + n), k(g, s), m.extensions && G(t, g, m), e.assignFinalMaterial(g), l.push(g);
|
|
1408
1408
|
}
|
|
1409
1409
|
for (let h = 0, p = l.length; h < p; h++)
|
|
1410
1410
|
e.associations.set(l[h], {
|
|
@@ -1412,9 +1412,9 @@ class Et {
|
|
|
1412
1412
|
primitives: h
|
|
1413
1413
|
});
|
|
1414
1414
|
if (l.length === 1)
|
|
1415
|
-
return s.extensions &&
|
|
1416
|
-
const d = new
|
|
1417
|
-
s.extensions &&
|
|
1415
|
+
return s.extensions && G(t, l[0], s), l[0];
|
|
1416
|
+
const d = new ie();
|
|
1417
|
+
s.extensions && G(t, d, s), e.associations.set(d, { meshes: n });
|
|
1418
1418
|
for (let h = 0, p = l.length; h < p; h++)
|
|
1419
1419
|
d.add(l[h]);
|
|
1420
1420
|
return d;
|
|
@@ -1434,7 +1434,7 @@ class Et {
|
|
|
1434
1434
|
console.warn("THREE.GLTFLoader: Missing camera parameters.");
|
|
1435
1435
|
return;
|
|
1436
1436
|
}
|
|
1437
|
-
return i.type === "perspective" ? e = new
|
|
1437
|
+
return i.type === "perspective" ? e = new bn(Sn.radToDeg(t.yfov), t.aspectRatio || 1, t.znear || 1, t.zfar || 2e6) : i.type === "orthographic" && (e = new Nn(-t.xmag, t.xmag, t.ymag, -t.ymag, t.znear, t.zfar)), i.name && (e.name = this.createUniqueName(i.name)), k(e, i), Promise.resolve(e);
|
|
1438
1438
|
}
|
|
1439
1439
|
/**
|
|
1440
1440
|
* Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#skins
|
|
@@ -1453,12 +1453,12 @@ class Et {
|
|
|
1453
1453
|
const l = r[c];
|
|
1454
1454
|
if (l) {
|
|
1455
1455
|
a.push(l);
|
|
1456
|
-
const d = new
|
|
1456
|
+
const d = new Z();
|
|
1457
1457
|
s !== null && d.fromArray(s.array, c * 16), o.push(d);
|
|
1458
1458
|
} else
|
|
1459
1459
|
console.warn('THREE.GLTFLoader: Joint "%s" could not be found.', e.joints[c]);
|
|
1460
1460
|
}
|
|
1461
|
-
return new
|
|
1461
|
+
return new In(a, o);
|
|
1462
1462
|
});
|
|
1463
1463
|
}
|
|
1464
1464
|
/**
|
|
@@ -1483,15 +1483,15 @@ class Et {
|
|
|
1483
1483
|
]).then(function(l) {
|
|
1484
1484
|
const d = l[0], h = l[1], p = l[2], x = l[3], m = l[4], g = [];
|
|
1485
1485
|
for (let E = 0, M = d.length; E < M; E++) {
|
|
1486
|
-
const T = d[E],
|
|
1486
|
+
const T = d[E], b = h[E], I = p[E], N = x[E], v = m[E];
|
|
1487
1487
|
if (T === void 0) continue;
|
|
1488
1488
|
T.updateMatrix && T.updateMatrix();
|
|
1489
|
-
const
|
|
1490
|
-
if (
|
|
1491
|
-
for (let F = 0; F <
|
|
1492
|
-
g.push(
|
|
1489
|
+
const _ = i._createAnimationTracks(T, b, I, N, v);
|
|
1490
|
+
if (_)
|
|
1491
|
+
for (let F = 0; F < _.length; F++)
|
|
1492
|
+
g.push(_[F]);
|
|
1493
1493
|
}
|
|
1494
|
-
return new
|
|
1494
|
+
return new Cn(s, void 0, g);
|
|
1495
1495
|
});
|
|
1496
1496
|
}
|
|
1497
1497
|
createNodeMesh(n) {
|
|
@@ -1524,7 +1524,7 @@ class Et {
|
|
|
1524
1524
|
]).then(function(c) {
|
|
1525
1525
|
const u = c[0], l = c[1], d = c[2];
|
|
1526
1526
|
d !== null && u.traverse(function(h) {
|
|
1527
|
-
h.isSkinnedMesh && h.bind(d,
|
|
1527
|
+
h.isSkinnedMesh && h.bind(d, At);
|
|
1528
1528
|
});
|
|
1529
1529
|
for (let h = 0, p = l.length; h < p; h++)
|
|
1530
1530
|
u.add(l[h]);
|
|
@@ -1548,11 +1548,11 @@ class Et {
|
|
|
1548
1548
|
a.push(c);
|
|
1549
1549
|
}), this.nodeCache[n] = Promise.all(a).then(function(c) {
|
|
1550
1550
|
let u;
|
|
1551
|
-
if (s.isBone === !0 ? u = new
|
|
1551
|
+
if (s.isBone === !0 ? u = new On() : c.length > 1 ? u = new ie() : c.length === 1 ? u = c[0] : u = new ve(), u !== c[0])
|
|
1552
1552
|
for (let l = 0, d = c.length; l < d; l++)
|
|
1553
1553
|
u.add(c[l]);
|
|
1554
|
-
if (s.name && (u.userData.name = s.name, u.name = r), k(u, s), s.extensions &&
|
|
1555
|
-
const l = new
|
|
1554
|
+
if (s.name && (u.userData.name = s.name, u.name = r), k(u, s), s.extensions && G(i, u, s), s.matrix !== void 0) {
|
|
1555
|
+
const l = new Z();
|
|
1556
1556
|
l.fromArray(s.matrix), u.applyMatrix4(l);
|
|
1557
1557
|
} else
|
|
1558
1558
|
s.translation !== void 0 && u.position.fromArray(s.translation), s.rotation !== void 0 && u.quaternion.fromArray(s.rotation), s.scale !== void 0 && u.scale.fromArray(s.scale);
|
|
@@ -1573,8 +1573,8 @@ class Et {
|
|
|
1573
1573
|
* @return {Promise<Group>}
|
|
1574
1574
|
*/
|
|
1575
1575
|
loadScene(n) {
|
|
1576
|
-
const e = this.extensions, i = this.json.scenes[n], t = this, s = new
|
|
1577
|
-
i.name && (s.name = t.createUniqueName(i.name)), k(s, i), i.extensions &&
|
|
1576
|
+
const e = this.extensions, i = this.json.scenes[n], t = this, s = new ie();
|
|
1577
|
+
i.name && (s.name = t.createUniqueName(i.name)), k(s, i), i.extensions && G(e, s, i);
|
|
1578
1578
|
const r = i.nodes || [], a = [];
|
|
1579
1579
|
for (let o = 0, c = r.length; o < c; o++)
|
|
1580
1580
|
a.push(t.getDependency("node", r[o]));
|
|
@@ -1584,7 +1584,7 @@ class Et {
|
|
|
1584
1584
|
const c = (u) => {
|
|
1585
1585
|
const l = /* @__PURE__ */ new Map();
|
|
1586
1586
|
for (const [d, h] of t.associations)
|
|
1587
|
-
(d instanceof
|
|
1587
|
+
(d instanceof re || d instanceof xe) && l.set(d, h);
|
|
1588
1588
|
return u.traverse((d) => {
|
|
1589
1589
|
const h = t.associations.get(d);
|
|
1590
1590
|
h != null && l.set(d, h);
|
|
@@ -1595,38 +1595,38 @@ class Et {
|
|
|
1595
1595
|
}
|
|
1596
1596
|
_createAnimationTracks(n, e, i, t, s) {
|
|
1597
1597
|
const r = [], a = n.name ? n.name : n.uuid, o = [];
|
|
1598
|
-
|
|
1598
|
+
H[s.path] === H.weights ? n.traverse(function(d) {
|
|
1599
1599
|
d.morphTargetInfluences && o.push(d.name ? d.name : d.uuid);
|
|
1600
1600
|
}) : o.push(a);
|
|
1601
1601
|
let c;
|
|
1602
|
-
switch (
|
|
1603
|
-
case
|
|
1604
|
-
c = Re;
|
|
1605
|
-
break;
|
|
1606
|
-
case D.rotation:
|
|
1602
|
+
switch (H[s.path]) {
|
|
1603
|
+
case H.weights:
|
|
1607
1604
|
c = Ee;
|
|
1608
1605
|
break;
|
|
1609
|
-
case
|
|
1610
|
-
|
|
1611
|
-
|
|
1606
|
+
case H.rotation:
|
|
1607
|
+
c = Ae;
|
|
1608
|
+
break;
|
|
1609
|
+
case H.translation:
|
|
1610
|
+
case H.scale:
|
|
1611
|
+
c = Re;
|
|
1612
1612
|
break;
|
|
1613
1613
|
default:
|
|
1614
1614
|
switch (i.itemSize) {
|
|
1615
1615
|
case 1:
|
|
1616
|
-
c =
|
|
1616
|
+
c = Ee;
|
|
1617
1617
|
break;
|
|
1618
1618
|
case 2:
|
|
1619
1619
|
case 3:
|
|
1620
1620
|
default:
|
|
1621
|
-
c =
|
|
1621
|
+
c = Re;
|
|
1622
1622
|
break;
|
|
1623
1623
|
}
|
|
1624
1624
|
break;
|
|
1625
1625
|
}
|
|
1626
|
-
const u = t.interpolation !== void 0 ?
|
|
1626
|
+
const u = t.interpolation !== void 0 ? mt[t.interpolation] : He, l = this._getArrayFromAccessor(i);
|
|
1627
1627
|
for (let d = 0, h = o.length; d < h; d++) {
|
|
1628
1628
|
const p = new c(
|
|
1629
|
-
o[d] + "." +
|
|
1629
|
+
o[d] + "." + H[s.path],
|
|
1630
1630
|
e.array,
|
|
1631
1631
|
l,
|
|
1632
1632
|
u
|
|
@@ -1638,7 +1638,7 @@ class Et {
|
|
|
1638
1638
|
_getArrayFromAccessor(n) {
|
|
1639
1639
|
let e = n.array;
|
|
1640
1640
|
if (n.normalized) {
|
|
1641
|
-
const i =
|
|
1641
|
+
const i = he(e.constructor), t = new Float32Array(e.length);
|
|
1642
1642
|
for (let s = 0, r = e.length; s < r; s++)
|
|
1643
1643
|
t[s] = e[s] * i;
|
|
1644
1644
|
e = t;
|
|
@@ -1647,21 +1647,21 @@ class Et {
|
|
|
1647
1647
|
}
|
|
1648
1648
|
_createCubicSplineTrackInterpolant(n) {
|
|
1649
1649
|
n.createInterpolant = function(i) {
|
|
1650
|
-
const t = this instanceof
|
|
1650
|
+
const t = this instanceof Ae ? pt : je;
|
|
1651
1651
|
return new t(this.times, this.values, this.getValueSize() / 3, i);
|
|
1652
1652
|
}, n.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline = !0;
|
|
1653
1653
|
}
|
|
1654
1654
|
}
|
|
1655
|
-
function
|
|
1656
|
-
const i = n.attributes, t = new
|
|
1655
|
+
function Lt(f, n, e) {
|
|
1656
|
+
const i = n.attributes, t = new Ue();
|
|
1657
1657
|
if (i.POSITION !== void 0) {
|
|
1658
1658
|
const a = e.json.accessors[i.POSITION], o = a.min, c = a.max;
|
|
1659
1659
|
if (o !== void 0 && c !== void 0) {
|
|
1660
1660
|
if (t.set(
|
|
1661
|
-
new
|
|
1662
|
-
new
|
|
1661
|
+
new K(o[0], o[1], o[2]),
|
|
1662
|
+
new K(c[0], c[1], c[2])
|
|
1663
1663
|
), a.normalized) {
|
|
1664
|
-
const u =
|
|
1664
|
+
const u = he(z[a.componentType]);
|
|
1665
1665
|
t.min.multiplyScalar(u), t.max.multiplyScalar(u);
|
|
1666
1666
|
}
|
|
1667
1667
|
} else {
|
|
@@ -1672,14 +1672,14 @@ function At(f, n, e) {
|
|
|
1672
1672
|
return;
|
|
1673
1673
|
const s = n.targets;
|
|
1674
1674
|
if (s !== void 0) {
|
|
1675
|
-
const a = new
|
|
1675
|
+
const a = new K(), o = new K();
|
|
1676
1676
|
for (let c = 0, u = s.length; c < u; c++) {
|
|
1677
1677
|
const l = s[c];
|
|
1678
1678
|
if (l.POSITION !== void 0) {
|
|
1679
1679
|
const d = e.json.accessors[l.POSITION], h = d.min, p = d.max;
|
|
1680
1680
|
if (h !== void 0 && p !== void 0) {
|
|
1681
1681
|
if (o.setX(Math.max(Math.abs(h[0]), Math.abs(p[0]))), o.setY(Math.max(Math.abs(h[1]), Math.abs(p[1]))), o.setZ(Math.max(Math.abs(h[2]), Math.abs(p[2]))), d.normalized) {
|
|
1682
|
-
const x =
|
|
1682
|
+
const x = he(z[d.componentType]);
|
|
1683
1683
|
o.multiplyScalar(x);
|
|
1684
1684
|
}
|
|
1685
1685
|
a.max(o);
|
|
@@ -1690,10 +1690,10 @@ function At(f, n, e) {
|
|
|
1690
1690
|
t.expandByVector(a);
|
|
1691
1691
|
}
|
|
1692
1692
|
f.boundingBox = t;
|
|
1693
|
-
const r = new
|
|
1693
|
+
const r = new Dn();
|
|
1694
1694
|
t.getCenter(r.center), r.radius = t.min.distanceTo(t.max) / 2, f.boundingSphere = r;
|
|
1695
1695
|
}
|
|
1696
|
-
function
|
|
1696
|
+
function Se(f, n, e) {
|
|
1697
1697
|
const i = n.attributes, t = [];
|
|
1698
1698
|
function s(r, a) {
|
|
1699
1699
|
return e.getDependency("accessor", r).then(function(o) {
|
|
@@ -1701,7 +1701,7 @@ function be(f, n, e) {
|
|
|
1701
1701
|
});
|
|
1702
1702
|
}
|
|
1703
1703
|
for (const r in i) {
|
|
1704
|
-
const a =
|
|
1704
|
+
const a = de[r] || r.toLowerCase();
|
|
1705
1705
|
a in f.attributes || t.push(s(i[r], a));
|
|
1706
1706
|
}
|
|
1707
1707
|
if (n.indices !== void 0 && !f.index) {
|
|
@@ -1710,12 +1710,12 @@ function be(f, n, e) {
|
|
|
1710
1710
|
});
|
|
1711
1711
|
t.push(r);
|
|
1712
1712
|
}
|
|
1713
|
-
return
|
|
1714
|
-
return n.targets !== void 0 ?
|
|
1713
|
+
return _e.workingColorSpace !== P && "COLOR_0" in i && console.warn(`THREE.GLTFLoader: Converting vertex colors from "srgb-linear" to "${_e.workingColorSpace}" not supported.`), k(f, n), Lt(f, n, e), Promise.all(t).then(function() {
|
|
1714
|
+
return n.targets !== void 0 ? Tt(f, n.targets, e) : f;
|
|
1715
1715
|
});
|
|
1716
1716
|
}
|
|
1717
|
-
function
|
|
1718
|
-
const f =
|
|
1717
|
+
function Mt() {
|
|
1718
|
+
const f = V(!1), n = V(""), e = Ve([]), i = V(null), t = new Un(), s = new Gn(), r = new jn(), a = new Kn();
|
|
1719
1719
|
return {
|
|
1720
1720
|
isLoading: f,
|
|
1721
1721
|
loadingProgress: n,
|
|
@@ -1741,24 +1741,24 @@ function _t() {
|
|
|
1741
1741
|
l.push(g);
|
|
1742
1742
|
let E = null;
|
|
1743
1743
|
const M = (T) => {
|
|
1744
|
-
const
|
|
1745
|
-
n.value = `正在加载 ${x}... ${Math.round(
|
|
1744
|
+
const b = T.lengthComputable ? T.loaded / T.total * 100 : 0;
|
|
1745
|
+
n.value = `正在加载 ${x}... ${Math.round(b)}%`;
|
|
1746
1746
|
};
|
|
1747
1747
|
switch (n.value = `正在加载 ${x}... 0%`, m) {
|
|
1748
1748
|
case "obj":
|
|
1749
1749
|
const T = x.replace(/\.obj$/i, ".mtl").toLowerCase();
|
|
1750
1750
|
if (u.has(T)) {
|
|
1751
|
-
const v = u.get(T),
|
|
1752
|
-
l.push(
|
|
1753
|
-
const F = await t.loadAsync(
|
|
1751
|
+
const v = u.get(T), _ = URL.createObjectURL(v);
|
|
1752
|
+
l.push(_);
|
|
1753
|
+
const F = await t.loadAsync(_);
|
|
1754
1754
|
F.preload(), s.setMaterials(F);
|
|
1755
1755
|
} else
|
|
1756
1756
|
s.setMaterials(null);
|
|
1757
1757
|
E = await s.loadAsync(g, M);
|
|
1758
1758
|
break;
|
|
1759
1759
|
case "stl":
|
|
1760
|
-
const
|
|
1761
|
-
E = new
|
|
1760
|
+
const b = await r.loadAsync(g, M), I = new Hn({ color: 11184810, specular: 1118481, shininess: 200 });
|
|
1761
|
+
E = new De(b, I);
|
|
1762
1762
|
break;
|
|
1763
1763
|
case "gltf":
|
|
1764
1764
|
case "glb":
|
|
@@ -1768,7 +1768,7 @@ function _t() {
|
|
|
1768
1768
|
console.warn(`不支持的文件类型: .${m}`), n.value = `不支持的文件类型: ${x}`;
|
|
1769
1769
|
continue;
|
|
1770
1770
|
}
|
|
1771
|
-
E && (E.userData.boundingBox = new
|
|
1771
|
+
E && (E.userData.boundingBox = new Ue().setFromObject(E), d.push(E));
|
|
1772
1772
|
}
|
|
1773
1773
|
e.value = d, n.value = "加载完成!";
|
|
1774
1774
|
} catch (p) {
|
|
@@ -1779,19 +1779,19 @@ function _t() {
|
|
|
1779
1779
|
}
|
|
1780
1780
|
};
|
|
1781
1781
|
}
|
|
1782
|
-
const
|
|
1782
|
+
const wt = { class: "obj-viewer-container" }, yt = { class: "buttonGroup-topLeft" }, bt = { class: "buttonGroup-left" }, St = { class: "buttonGroup-right" }, Nt = { class: "left-panel" }, It = { class: "panel-header" }, Ct = {
|
|
1783
1783
|
key: 0,
|
|
1784
1784
|
class: "clipping-content"
|
|
1785
|
-
},
|
|
1785
|
+
}, Ot = { class: "radio-group" }, vt = { class: "radio-label" }, kt = { class: "radio-label" }, Pt = { class: "radio-label" }, Ft = { class: "radio-label" }, Dt = {
|
|
1786
1786
|
key: 0,
|
|
1787
1787
|
class: "loading-overlay"
|
|
1788
|
-
},
|
|
1788
|
+
}, Ht = /* @__PURE__ */ ze({
|
|
1789
1789
|
__name: "threePreview",
|
|
1790
1790
|
props: {
|
|
1791
1791
|
fileBlobs: { default: () => [] }
|
|
1792
1792
|
},
|
|
1793
1793
|
setup(f) {
|
|
1794
|
-
const n = f, e =
|
|
1794
|
+
const n = f, e = V(null), i = V(!1), t = V(""), {
|
|
1795
1795
|
currentModels: s,
|
|
1796
1796
|
resetView: r,
|
|
1797
1797
|
initThreeJS: a,
|
|
@@ -1800,176 +1800,180 @@ const Lt = { class: "obj-viewer-container" }, Mt = { class: "buttonGroup-topLeft
|
|
|
1800
1800
|
cleanup: u,
|
|
1801
1801
|
setModels: l,
|
|
1802
1802
|
axesHelperVisible: d,
|
|
1803
|
-
toggleAxesVisibility: h
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1803
|
+
toggleAxesVisibility: h,
|
|
1804
|
+
zoomIn: p,
|
|
1805
|
+
zoomOut: x
|
|
1806
|
+
} = Qe(e), {
|
|
1807
|
+
isLoading: m,
|
|
1808
|
+
loadingProgress: g,
|
|
1809
|
+
loadedModels: E,
|
|
1810
|
+
error: M,
|
|
1811
|
+
loadModelsFromBlobs: T
|
|
1812
|
+
} = Mt(), { isAnimating: b, toggleAnimation: I, stopAnimation: N } = Ze(c, s), { isClipping: v, activeClippingAxis: _, toggleClipping: F, updateClippingPlanes: D } = en(
|
|
1811
1813
|
c,
|
|
1812
1814
|
s
|
|
1813
|
-
),
|
|
1815
|
+
), Be = () => {
|
|
1814
1816
|
h();
|
|
1815
1817
|
};
|
|
1816
|
-
|
|
1817
|
-
y && y.length > 0 &&
|
|
1818
|
+
ee(() => n.fileBlobs, (y) => {
|
|
1819
|
+
y && y.length > 0 && T(y).catch((A) => {
|
|
1818
1820
|
console.error("加载错误:", A);
|
|
1819
1821
|
});
|
|
1820
1822
|
}, {
|
|
1821
1823
|
immediate: !0,
|
|
1822
1824
|
deep: !0
|
|
1823
|
-
}),
|
|
1825
|
+
}), ee(E, (y) => {
|
|
1824
1826
|
y && y.length > 0 && l(y);
|
|
1825
|
-
}),
|
|
1826
|
-
y &&
|
|
1827
|
+
}), ee(M, (y) => {
|
|
1828
|
+
y && Le.error(`模型加载失败: ${y}`);
|
|
1827
1829
|
});
|
|
1828
|
-
const
|
|
1829
|
-
i.value = !0, t.value = y, y === "剖面视图" && !
|
|
1830
|
+
const pe = (y) => {
|
|
1831
|
+
i.value = !0, t.value = y, y === "剖面视图" && !v.value && F();
|
|
1830
1832
|
};
|
|
1831
|
-
return
|
|
1832
|
-
await
|
|
1833
|
+
return Xe(async () => {
|
|
1834
|
+
await qe();
|
|
1833
1835
|
try {
|
|
1834
1836
|
a(), window.addEventListener("resize", o);
|
|
1835
1837
|
} catch (y) {
|
|
1836
|
-
console.error("Three.js 初始化失败:", y),
|
|
1838
|
+
console.error("Three.js 初始化失败:", y), Le.error("渲染引擎初始化失败!");
|
|
1837
1839
|
}
|
|
1838
|
-
}),
|
|
1839
|
-
t.value = "", window.removeEventListener("resize", o),
|
|
1840
|
+
}), We(() => {
|
|
1841
|
+
t.value = "", window.removeEventListener("resize", o), b.value && N(), u();
|
|
1840
1842
|
}), (y, A) => {
|
|
1841
|
-
const
|
|
1842
|
-
return
|
|
1843
|
+
const Ke = Ye("el-scrollbar");
|
|
1844
|
+
return te(), ne("div", wt, [
|
|
1843
1845
|
L("div", {
|
|
1844
1846
|
ref_key: "threejsContainer",
|
|
1845
1847
|
ref: e,
|
|
1846
1848
|
class: "threejs-container"
|
|
1847
1849
|
}, null, 512),
|
|
1848
|
-
L("div",
|
|
1849
|
-
|
|
1850
|
+
L("div", yt, [
|
|
1851
|
+
U(B, {
|
|
1850
1852
|
name: "viewReset",
|
|
1851
1853
|
size: "24",
|
|
1852
|
-
onClick:
|
|
1854
|
+
onClick: w(r),
|
|
1853
1855
|
title: "重置"
|
|
1854
1856
|
}, null, 8, ["onClick"]),
|
|
1855
|
-
|
|
1857
|
+
U(B, {
|
|
1856
1858
|
name: "fangda",
|
|
1857
1859
|
size: "24",
|
|
1858
|
-
title: "放大"
|
|
1859
|
-
|
|
1860
|
-
|
|
1860
|
+
title: "放大",
|
|
1861
|
+
onClick: w(p)
|
|
1862
|
+
}, null, 8, ["onClick"]),
|
|
1863
|
+
U(B, {
|
|
1861
1864
|
name: "suoxiao",
|
|
1862
1865
|
size: "24",
|
|
1863
|
-
title: "缩小"
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
+
title: "缩小",
|
|
1867
|
+
onClick: w(x)
|
|
1868
|
+
}, null, 8, ["onClick"]),
|
|
1869
|
+
U(B, {
|
|
1866
1870
|
name: "lookAround",
|
|
1867
1871
|
size: "24",
|
|
1868
|
-
onClick:
|
|
1869
|
-
title: b
|
|
1872
|
+
onClick: w(I),
|
|
1873
|
+
title: w(b) ? "停止动画" : "动画视图"
|
|
1870
1874
|
}, null, 8, ["onClick", "title"]),
|
|
1871
|
-
|
|
1875
|
+
U(B, {
|
|
1872
1876
|
name: "zuobiaoxi",
|
|
1873
1877
|
size: "24",
|
|
1874
|
-
active:
|
|
1875
|
-
onClick:
|
|
1878
|
+
active: w(d),
|
|
1879
|
+
onClick: Be,
|
|
1876
1880
|
title: "显隐坐标轴"
|
|
1877
1881
|
}, null, 8, ["active"])
|
|
1878
1882
|
]),
|
|
1879
|
-
L("div",
|
|
1880
|
-
|
|
1881
|
-
|
|
1883
|
+
L("div", bt, [
|
|
1884
|
+
ge(y.$slots, "button-left", { switchRightPanel: pe }, void 0, !0),
|
|
1885
|
+
U(B, {
|
|
1882
1886
|
name: "clipping",
|
|
1883
1887
|
size: "24",
|
|
1884
|
-
onClick: A[0] || (A[0] = (S) =>
|
|
1888
|
+
onClick: A[0] || (A[0] = (S) => pe("剖面视图")),
|
|
1885
1889
|
active: i.value && t.value === "剖面视图",
|
|
1886
1890
|
title: "剖面视图"
|
|
1887
1891
|
}, null, 8, ["active"])
|
|
1888
1892
|
]),
|
|
1889
|
-
L("div",
|
|
1890
|
-
|
|
1893
|
+
L("div", St, [
|
|
1894
|
+
ge(y.$slots, "button-right", {}, void 0, !0)
|
|
1891
1895
|
]),
|
|
1892
1896
|
A[15] || (A[15] = L("div", { class: "buttonGroup-bottom" }, null, -1)),
|
|
1893
|
-
|
|
1894
|
-
L("div",
|
|
1895
|
-
L("span", null,
|
|
1897
|
+
X(L("div", Nt, [
|
|
1898
|
+
L("div", It, [
|
|
1899
|
+
L("span", null, Te(t.value), 1),
|
|
1896
1900
|
L("span", {
|
|
1897
1901
|
class: "close",
|
|
1898
1902
|
onClick: A[1] || (A[1] = (S) => i.value = !1)
|
|
1899
1903
|
}, " X ")
|
|
1900
1904
|
]),
|
|
1901
|
-
|
|
1902
|
-
default:
|
|
1903
|
-
t.value === "剖面视图" ? (
|
|
1904
|
-
L("div",
|
|
1905
|
-
L("label",
|
|
1906
|
-
|
|
1905
|
+
U(Ke, { "max-height": "650px" }, {
|
|
1906
|
+
default: $e(() => [
|
|
1907
|
+
t.value === "剖面视图" ? (te(), ne("div", Ct, [
|
|
1908
|
+
L("div", Ot, [
|
|
1909
|
+
L("label", vt, [
|
|
1910
|
+
X(L("input", {
|
|
1907
1911
|
type: "radio",
|
|
1908
1912
|
name: "clipping-axis",
|
|
1909
1913
|
value: "none",
|
|
1910
|
-
"onUpdate:modelValue": A[2] || (A[2] = (S) =>
|
|
1914
|
+
"onUpdate:modelValue": A[2] || (A[2] = (S) => J(_) ? _.value = S : null),
|
|
1911
1915
|
onChange: A[3] || (A[3] = //@ts-ignore
|
|
1912
|
-
(...S) =>
|
|
1916
|
+
(...S) => w(D) && w(D)(...S))
|
|
1913
1917
|
}, null, 544), [
|
|
1914
|
-
[
|
|
1918
|
+
[Q, w(_)]
|
|
1915
1919
|
]),
|
|
1916
1920
|
A[10] || (A[10] = L("span", { class: "radio-text" }, "无切割", -1))
|
|
1917
1921
|
]),
|
|
1918
|
-
L("label",
|
|
1919
|
-
|
|
1922
|
+
L("label", kt, [
|
|
1923
|
+
X(L("input", {
|
|
1920
1924
|
type: "radio",
|
|
1921
1925
|
name: "clipping-axis",
|
|
1922
1926
|
value: "x",
|
|
1923
|
-
"onUpdate:modelValue": A[4] || (A[4] = (S) =>
|
|
1927
|
+
"onUpdate:modelValue": A[4] || (A[4] = (S) => J(_) ? _.value = S : null),
|
|
1924
1928
|
onChange: A[5] || (A[5] = //@ts-ignore
|
|
1925
|
-
(...S) =>
|
|
1929
|
+
(...S) => w(D) && w(D)(...S))
|
|
1926
1930
|
}, null, 544), [
|
|
1927
|
-
[
|
|
1931
|
+
[Q, w(_)]
|
|
1928
1932
|
]),
|
|
1929
1933
|
A[11] || (A[11] = L("span", { class: "radio-text" }, "X轴切割", -1))
|
|
1930
1934
|
]),
|
|
1931
|
-
L("label",
|
|
1932
|
-
|
|
1935
|
+
L("label", Pt, [
|
|
1936
|
+
X(L("input", {
|
|
1933
1937
|
type: "radio",
|
|
1934
1938
|
name: "clipping-axis",
|
|
1935
1939
|
value: "y",
|
|
1936
|
-
"onUpdate:modelValue": A[6] || (A[6] = (S) =>
|
|
1940
|
+
"onUpdate:modelValue": A[6] || (A[6] = (S) => J(_) ? _.value = S : null),
|
|
1937
1941
|
onChange: A[7] || (A[7] = //@ts-ignore
|
|
1938
|
-
(...S) =>
|
|
1942
|
+
(...S) => w(D) && w(D)(...S))
|
|
1939
1943
|
}, null, 544), [
|
|
1940
|
-
[
|
|
1944
|
+
[Q, w(_)]
|
|
1941
1945
|
]),
|
|
1942
1946
|
A[12] || (A[12] = L("span", { class: "radio-text" }, "Y轴切割", -1))
|
|
1943
1947
|
]),
|
|
1944
|
-
L("label",
|
|
1945
|
-
|
|
1948
|
+
L("label", Ft, [
|
|
1949
|
+
X(L("input", {
|
|
1946
1950
|
type: "radio",
|
|
1947
1951
|
name: "clipping-axis",
|
|
1948
1952
|
value: "z",
|
|
1949
|
-
"onUpdate:modelValue": A[8] || (A[8] = (S) =>
|
|
1953
|
+
"onUpdate:modelValue": A[8] || (A[8] = (S) => J(_) ? _.value = S : null),
|
|
1950
1954
|
onChange: A[9] || (A[9] = //@ts-ignore
|
|
1951
|
-
(...S) =>
|
|
1955
|
+
(...S) => w(D) && w(D)(...S))
|
|
1952
1956
|
}, null, 544), [
|
|
1953
|
-
[
|
|
1957
|
+
[Q, w(_)]
|
|
1954
1958
|
]),
|
|
1955
1959
|
A[13] || (A[13] = L("span", { class: "radio-text" }, "Z轴切割", -1))
|
|
1956
1960
|
])
|
|
1957
1961
|
])
|
|
1958
|
-
])) :
|
|
1962
|
+
])) : me("", !0)
|
|
1959
1963
|
]),
|
|
1960
1964
|
_: 1
|
|
1961
1965
|
})
|
|
1962
1966
|
], 512), [
|
|
1963
|
-
[
|
|
1967
|
+
[Je, i.value]
|
|
1964
1968
|
]),
|
|
1965
|
-
|
|
1969
|
+
w(m) ? (te(), ne("div", Dt, [
|
|
1966
1970
|
A[14] || (A[14] = L("div", { class: "loading-spinner" }, null, -1)),
|
|
1967
|
-
L("p", null,
|
|
1968
|
-
])) :
|
|
1971
|
+
L("p", null, Te(w(g)), 1)
|
|
1972
|
+
])) : me("", !0)
|
|
1969
1973
|
]);
|
|
1970
1974
|
};
|
|
1971
1975
|
}
|
|
1972
|
-
}),
|
|
1976
|
+
}), Xt = /* @__PURE__ */ Bn(Ht, [["__scopeId", "data-v-98467d5e"]]);
|
|
1973
1977
|
export {
|
|
1974
|
-
|
|
1978
|
+
Xt as default
|
|
1975
1979
|
};
|