shop-components 0.1.35 → 0.1.36
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/shop-components.mjs +57 -50
- package/dist/shop-components.umd.js +12 -12
- package/package.json +1 -1
package/dist/shop-components.mjs
CHANGED
|
@@ -146,7 +146,7 @@ function Zi(n, A) {
|
|
|
146
146
|
throw new Error("Invalid component type.");
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function Pe(n, A) {
|
|
150
150
|
switch (A.constructor) {
|
|
151
151
|
case Float32Array:
|
|
152
152
|
return n;
|
|
@@ -189,7 +189,7 @@ const za = {
|
|
|
189
189
|
ceilPowerOfTwo: oM,
|
|
190
190
|
floorPowerOfTwo: aM,
|
|
191
191
|
setQuaternionFromProperEuler: lM,
|
|
192
|
-
normalize:
|
|
192
|
+
normalize: Pe,
|
|
193
193
|
denormalize: Zi
|
|
194
194
|
};
|
|
195
195
|
class uA {
|
|
@@ -3449,44 +3449,44 @@ class he {
|
|
|
3449
3449
|
return this.normalized && (t = Zi(t, this.array)), t;
|
|
3450
3450
|
}
|
|
3451
3451
|
setComponent(A, e, t) {
|
|
3452
|
-
return this.normalized && (t =
|
|
3452
|
+
return this.normalized && (t = Pe(t, this.array)), this.array[A * this.itemSize + e] = t, this;
|
|
3453
3453
|
}
|
|
3454
3454
|
getX(A) {
|
|
3455
3455
|
let e = this.array[A * this.itemSize];
|
|
3456
3456
|
return this.normalized && (e = Zi(e, this.array)), e;
|
|
3457
3457
|
}
|
|
3458
3458
|
setX(A, e) {
|
|
3459
|
-
return this.normalized && (e =
|
|
3459
|
+
return this.normalized && (e = Pe(e, this.array)), this.array[A * this.itemSize] = e, this;
|
|
3460
3460
|
}
|
|
3461
3461
|
getY(A) {
|
|
3462
3462
|
let e = this.array[A * this.itemSize + 1];
|
|
3463
3463
|
return this.normalized && (e = Zi(e, this.array)), e;
|
|
3464
3464
|
}
|
|
3465
3465
|
setY(A, e) {
|
|
3466
|
-
return this.normalized && (e =
|
|
3466
|
+
return this.normalized && (e = Pe(e, this.array)), this.array[A * this.itemSize + 1] = e, this;
|
|
3467
3467
|
}
|
|
3468
3468
|
getZ(A) {
|
|
3469
3469
|
let e = this.array[A * this.itemSize + 2];
|
|
3470
3470
|
return this.normalized && (e = Zi(e, this.array)), e;
|
|
3471
3471
|
}
|
|
3472
3472
|
setZ(A, e) {
|
|
3473
|
-
return this.normalized && (e =
|
|
3473
|
+
return this.normalized && (e = Pe(e, this.array)), this.array[A * this.itemSize + 2] = e, this;
|
|
3474
3474
|
}
|
|
3475
3475
|
getW(A) {
|
|
3476
3476
|
let e = this.array[A * this.itemSize + 3];
|
|
3477
3477
|
return this.normalized && (e = Zi(e, this.array)), e;
|
|
3478
3478
|
}
|
|
3479
3479
|
setW(A, e) {
|
|
3480
|
-
return this.normalized && (e =
|
|
3480
|
+
return this.normalized && (e = Pe(e, this.array)), this.array[A * this.itemSize + 3] = e, this;
|
|
3481
3481
|
}
|
|
3482
3482
|
setXY(A, e, t) {
|
|
3483
|
-
return A *= this.itemSize, this.normalized && (e =
|
|
3483
|
+
return A *= this.itemSize, this.normalized && (e = Pe(e, this.array), t = Pe(t, this.array)), this.array[A + 0] = e, this.array[A + 1] = t, this;
|
|
3484
3484
|
}
|
|
3485
3485
|
setXYZ(A, e, t, i) {
|
|
3486
|
-
return A *= this.itemSize, this.normalized && (e =
|
|
3486
|
+
return A *= this.itemSize, this.normalized && (e = Pe(e, this.array), t = Pe(t, this.array), i = Pe(i, this.array)), this.array[A + 0] = e, this.array[A + 1] = t, this.array[A + 2] = i, this;
|
|
3487
3487
|
}
|
|
3488
3488
|
setXYZW(A, e, t, i, r) {
|
|
3489
|
-
return A *= this.itemSize, this.normalized && (e =
|
|
3489
|
+
return A *= this.itemSize, this.normalized && (e = Pe(e, this.array), t = Pe(t, this.array), i = Pe(i, this.array), r = Pe(r, this.array)), this.array[A + 0] = e, this.array[A + 1] = t, this.array[A + 2] = i, this.array[A + 3] = r, this;
|
|
3490
3490
|
}
|
|
3491
3491
|
onUpload(A) {
|
|
3492
3492
|
return this.onUploadCallback = A, this;
|
|
@@ -3833,7 +3833,7 @@ class Re extends Gs {
|
|
|
3833
3833
|
}
|
|
3834
3834
|
}
|
|
3835
3835
|
const cw = /* @__PURE__ */ new zA(), ns = /* @__PURE__ */ new Hs(), dh = /* @__PURE__ */ new ui(), hw = /* @__PURE__ */ new O(), uo = /* @__PURE__ */ new O(), fo = /* @__PURE__ */ new O(), po = /* @__PURE__ */ new O(), hp = /* @__PURE__ */ new O(), ph = /* @__PURE__ */ new O(), gh = /* @__PURE__ */ new uA(), mh = /* @__PURE__ */ new uA(), vh = /* @__PURE__ */ new uA(), uw = /* @__PURE__ */ new O(), fw = /* @__PURE__ */ new O(), dw = /* @__PURE__ */ new O(), yh = /* @__PURE__ */ new O(), wh = /* @__PURE__ */ new O();
|
|
3836
|
-
let
|
|
3836
|
+
let Me = class extends Ie {
|
|
3837
3837
|
constructor(A = new Re(), e = new si()) {
|
|
3838
3838
|
super(), this.isMesh = !0, this.type = "Mesh", this.geometry = A, this.material = e, this.updateMorphTargets();
|
|
3839
3839
|
}
|
|
@@ -4318,7 +4318,7 @@ class NM extends Xe {
|
|
|
4318
4318
|
blending: Et
|
|
4319
4319
|
});
|
|
4320
4320
|
r.uniforms.tEquirect.value = e;
|
|
4321
|
-
const s = new
|
|
4321
|
+
const s = new Me(i, r), o = e.minFilter;
|
|
4322
4322
|
return e.minFilter === Qi && (e.minFilter = we), new qM(1, 10, this).update(A, s), e.minFilter = o, s.geometry.dispose(), s.material.dispose(), this;
|
|
4323
4323
|
}
|
|
4324
4324
|
clear(A, e, t, i) {
|
|
@@ -8728,7 +8728,7 @@ function yP(n, A, e, t, i, r, s) {
|
|
|
8728
8728
|
}
|
|
8729
8729
|
function d(y, v) {
|
|
8730
8730
|
const w = p(v);
|
|
8731
|
-
w && (w.isCubeTexture || w.mapping === td) ? (u === void 0 && (u = new
|
|
8731
|
+
w && (w.isCubeTexture || w.mapping === td) ? (u === void 0 && (u = new Me(
|
|
8732
8732
|
new Ys(1, 1, 1),
|
|
8733
8733
|
new $e({
|
|
8734
8734
|
name: "BackgroundCubeMaterial",
|
|
@@ -8746,7 +8746,7 @@ function yP(n, A, e, t, i, r, s) {
|
|
|
8746
8746
|
get: function() {
|
|
8747
8747
|
return this.uniforms.envMap.value;
|
|
8748
8748
|
}
|
|
8749
|
-
}), i.update(u)), ss.copy(v.backgroundRotation), ss.x *= -1, ss.y *= -1, ss.z *= -1, w.isCubeTexture && w.isRenderTargetTexture === !1 && (ss.y *= -1, ss.z *= -1), u.material.uniforms.envMap.value = w, u.material.uniforms.flipEnvMap.value = w.isCubeTexture && w.isRenderTargetTexture === !1 ? -1 : 1, u.material.uniforms.backgroundBlurriness.value = v.backgroundBlurriness, u.material.uniforms.backgroundIntensity.value = v.backgroundIntensity, u.material.uniforms.backgroundRotation.value.setFromMatrix4(vP.makeRotationFromEuler(ss)), u.material.toneMapped = be.getTransfer(w.colorSpace) !== Ee, (c !== w || h !== w.version || f !== n.toneMapping) && (u.material.needsUpdate = !0, c = w, h = w.version, f = n.toneMapping), u.layers.enableAll(), y.unshift(u, u.geometry, u.material, 0, 0, null)) : w && w.isTexture && (l === void 0 && (l = new
|
|
8749
|
+
}), i.update(u)), ss.copy(v.backgroundRotation), ss.x *= -1, ss.y *= -1, ss.z *= -1, w.isCubeTexture && w.isRenderTargetTexture === !1 && (ss.y *= -1, ss.z *= -1), u.material.uniforms.envMap.value = w, u.material.uniforms.flipEnvMap.value = w.isCubeTexture && w.isRenderTargetTexture === !1 ? -1 : 1, u.material.uniforms.backgroundBlurriness.value = v.backgroundBlurriness, u.material.uniforms.backgroundIntensity.value = v.backgroundIntensity, u.material.uniforms.backgroundRotation.value.setFromMatrix4(vP.makeRotationFromEuler(ss)), u.material.toneMapped = be.getTransfer(w.colorSpace) !== Ee, (c !== w || h !== w.version || f !== n.toneMapping) && (u.material.needsUpdate = !0, c = w, h = w.version, f = n.toneMapping), u.layers.enableAll(), y.unshift(u, u.geometry, u.material, 0, 0, null)) : w && w.isTexture && (l === void 0 && (l = new Me(
|
|
8750
8750
|
new or(2, 2),
|
|
8751
8751
|
new $e({
|
|
8752
8752
|
name: "BackgroundMaterial",
|
|
@@ -9321,7 +9321,7 @@ class ww {
|
|
|
9321
9321
|
return i;
|
|
9322
9322
|
}
|
|
9323
9323
|
_compileMaterial(A) {
|
|
9324
|
-
const e = new
|
|
9324
|
+
const e = new Me(this._lodPlanes[0], A);
|
|
9325
9325
|
this._renderer.compile(e, fp);
|
|
9326
9326
|
}
|
|
9327
9327
|
_sceneToCubeUV(A, e, t, i) {
|
|
@@ -9332,7 +9332,7 @@ class ww {
|
|
|
9332
9332
|
side: Ct,
|
|
9333
9333
|
depthWrite: !1,
|
|
9334
9334
|
depthTest: !1
|
|
9335
|
-
}), p = new
|
|
9335
|
+
}), p = new Me(new Ys(), f);
|
|
9336
9336
|
let m = !1;
|
|
9337
9337
|
const d = A.background;
|
|
9338
9338
|
d ? d.isColor && (f.color.copy(d), A.background = null, m = !0) : (f.color.copy(vw), m = !0);
|
|
@@ -9347,7 +9347,7 @@ class ww {
|
|
|
9347
9347
|
_textureToCubeUV(A, e) {
|
|
9348
9348
|
const t = this._renderer, i = A.mapping === Ea || A.mapping === La;
|
|
9349
9349
|
i ? (this._cubemapMaterial === null && (this._cubemapMaterial = Iw()), this._cubemapMaterial.uniforms.flipEnvMap.value = A.isRenderTargetTexture === !1 ? -1 : 1) : this._equirectMaterial === null && (this._equirectMaterial = xw());
|
|
9350
|
-
const r = i ? this._cubemapMaterial : this._equirectMaterial, s = new
|
|
9350
|
+
const r = i ? this._cubemapMaterial : this._equirectMaterial, s = new Me(this._lodPlanes[0], r), o = r.uniforms;
|
|
9351
9351
|
o.envMap.value = A;
|
|
9352
9352
|
const a = this._cubeSize;
|
|
9353
9353
|
bh(e, 0, 0, 3 * a, 2 * a), t.setRenderTarget(e), t.render(s, fp);
|
|
@@ -9394,7 +9394,7 @@ class ww {
|
|
|
9394
9394
|
s !== "latitudinal" && s !== "longitudinal" && console.error(
|
|
9395
9395
|
"blur direction must be either latitudinal or longitudinal!"
|
|
9396
9396
|
);
|
|
9397
|
-
const u = 3, c = new
|
|
9397
|
+
const u = 3, c = new Me(this._lodPlanes[i], l), h = l.uniforms, f = this._sizeLods[t] - 1, p = isFinite(r) ? Math.PI / (2 * f) : 2 * Math.PI / (2 * _s - 1), m = r / p, d = isFinite(r) ? 1 + Math.floor(u * m) : _s;
|
|
9398
9398
|
d > _s && console.warn(`sigmaRadians, ${r}, is too large and will clip, as it requested ${d} samples when the maximum is set to ${_s}`);
|
|
9399
9399
|
const g = [];
|
|
9400
9400
|
let y = 0;
|
|
@@ -11694,7 +11694,7 @@ function rD(n, A, e) {
|
|
|
11694
11694
|
3
|
|
11695
11695
|
)
|
|
11696
11696
|
);
|
|
11697
|
-
const m = new
|
|
11697
|
+
const m = new Me(p, h), d = this;
|
|
11698
11698
|
this.enabled = !1, this.autoUpdate = !0, this.needsUpdate = !1, this.type = r2;
|
|
11699
11699
|
let g = this.type;
|
|
11700
11700
|
this.render = function(_, x, S) {
|
|
@@ -12946,7 +12946,7 @@ class fD {
|
|
|
12946
12946
|
depthHeight: { value: t.w }
|
|
12947
12947
|
}
|
|
12948
12948
|
});
|
|
12949
|
-
this.mesh = new
|
|
12949
|
+
this.mesh = new Me(new or(20, 20), i);
|
|
12950
12950
|
}
|
|
12951
12951
|
A.render(this.mesh, e);
|
|
12952
12952
|
}
|
|
@@ -13964,19 +13964,19 @@ class sv {
|
|
|
13964
13964
|
return this.normalized && (t = Zi(t, this.array)), t;
|
|
13965
13965
|
}
|
|
13966
13966
|
setComponent(A, e, t) {
|
|
13967
|
-
return this.normalized && (t =
|
|
13967
|
+
return this.normalized && (t = Pe(t, this.array)), this.data.array[A * this.data.stride + this.offset + e] = t, this;
|
|
13968
13968
|
}
|
|
13969
13969
|
setX(A, e) {
|
|
13970
|
-
return this.normalized && (e =
|
|
13970
|
+
return this.normalized && (e = Pe(e, this.array)), this.data.array[A * this.data.stride + this.offset] = e, this;
|
|
13971
13971
|
}
|
|
13972
13972
|
setY(A, e) {
|
|
13973
|
-
return this.normalized && (e =
|
|
13973
|
+
return this.normalized && (e = Pe(e, this.array)), this.data.array[A * this.data.stride + this.offset + 1] = e, this;
|
|
13974
13974
|
}
|
|
13975
13975
|
setZ(A, e) {
|
|
13976
|
-
return this.normalized && (e =
|
|
13976
|
+
return this.normalized && (e = Pe(e, this.array)), this.data.array[A * this.data.stride + this.offset + 2] = e, this;
|
|
13977
13977
|
}
|
|
13978
13978
|
setW(A, e) {
|
|
13979
|
-
return this.normalized && (e =
|
|
13979
|
+
return this.normalized && (e = Pe(e, this.array)), this.data.array[A * this.data.stride + this.offset + 3] = e, this;
|
|
13980
13980
|
}
|
|
13981
13981
|
getX(A) {
|
|
13982
13982
|
let e = this.data.array[A * this.data.stride + this.offset];
|
|
@@ -13995,13 +13995,13 @@ class sv {
|
|
|
13995
13995
|
return this.normalized && (e = Zi(e, this.array)), e;
|
|
13996
13996
|
}
|
|
13997
13997
|
setXY(A, e, t) {
|
|
13998
|
-
return A = A * this.data.stride + this.offset, this.normalized && (e =
|
|
13998
|
+
return A = A * this.data.stride + this.offset, this.normalized && (e = Pe(e, this.array), t = Pe(t, this.array)), this.data.array[A + 0] = e, this.data.array[A + 1] = t, this;
|
|
13999
13999
|
}
|
|
14000
14000
|
setXYZ(A, e, t, i) {
|
|
14001
|
-
return A = A * this.data.stride + this.offset, this.normalized && (e =
|
|
14001
|
+
return A = A * this.data.stride + this.offset, this.normalized && (e = Pe(e, this.array), t = Pe(t, this.array), i = Pe(i, this.array)), this.data.array[A + 0] = e, this.data.array[A + 1] = t, this.data.array[A + 2] = i, this;
|
|
14002
14002
|
}
|
|
14003
14003
|
setXYZW(A, e, t, i, r) {
|
|
14004
|
-
return A = A * this.data.stride + this.offset, this.normalized && (e =
|
|
14004
|
+
return A = A * this.data.stride + this.offset, this.normalized && (e = Pe(e, this.array), t = Pe(t, this.array), i = Pe(i, this.array), r = Pe(r, this.array)), this.data.array[A + 0] = e, this.data.array[A + 1] = t, this.data.array[A + 2] = i, this.data.array[A + 3] = r, this;
|
|
14005
14005
|
}
|
|
14006
14006
|
clone(A) {
|
|
14007
14007
|
if (A === void 0) {
|
|
@@ -14042,7 +14042,7 @@ class sv {
|
|
|
14042
14042
|
}
|
|
14043
14043
|
}
|
|
14044
14044
|
const kw = /* @__PURE__ */ new O(), jw = /* @__PURE__ */ new me(), Kw = /* @__PURE__ */ new me(), yD = /* @__PURE__ */ new O(), Fw = /* @__PURE__ */ new zA(), _h = /* @__PURE__ */ new O(), wp = /* @__PURE__ */ new ui(), Gw = /* @__PURE__ */ new zA(), Cp = /* @__PURE__ */ new Hs();
|
|
14045
|
-
class wD extends
|
|
14045
|
+
class wD extends Me {
|
|
14046
14046
|
constructor(A, e) {
|
|
14047
14047
|
super(A, e), this.isSkinnedMesh = !0, this.type = "SkinnedMesh", this.bindMode = yy, this.bindMatrix = new zA(), this.bindMatrixInverse = new zA(), this.boundingBox = null, this.boundingSphere = null;
|
|
14048
14048
|
}
|
|
@@ -14213,8 +14213,8 @@ class _f extends he {
|
|
|
14213
14213
|
return A.meshPerAttribute = this.meshPerAttribute, A.isInstancedBufferAttribute = !0, A;
|
|
14214
14214
|
}
|
|
14215
14215
|
}
|
|
14216
|
-
const yo = /* @__PURE__ */ new zA(), Yw = /* @__PURE__ */ new zA(), Sh = [], Uw = /* @__PURE__ */ new ve(), xD = /* @__PURE__ */ new zA(), wl = /* @__PURE__ */ new
|
|
14217
|
-
class ID extends
|
|
14216
|
+
const yo = /* @__PURE__ */ new zA(), Yw = /* @__PURE__ */ new zA(), Sh = [], Uw = /* @__PURE__ */ new ve(), xD = /* @__PURE__ */ new zA(), wl = /* @__PURE__ */ new Me(), Cl = /* @__PURE__ */ new ui();
|
|
14217
|
+
class ID extends Me {
|
|
14218
14218
|
constructor(A, e, t) {
|
|
14219
14219
|
super(A, e), this.isInstancedMesh = !0, this.instanceMatrix = new _f(new Float32Array(t * 16), 16), this.instanceColor = null, this.morphTexture = null, this.count = t, this.boundingBox = null, this.boundingSphere = null;
|
|
14220
14220
|
for (let i = 0; i < t; i++)
|
|
@@ -17408,7 +17408,7 @@ class RE extends Re {
|
|
|
17408
17408
|
const kE = new RE();
|
|
17409
17409
|
class tr {
|
|
17410
17410
|
constructor(A) {
|
|
17411
|
-
this._mesh = new
|
|
17411
|
+
this._mesh = new Me(kE, A);
|
|
17412
17412
|
}
|
|
17413
17413
|
dispose() {
|
|
17414
17414
|
this._mesh.geometry.dispose();
|
|
@@ -21040,7 +21040,7 @@ class d7 {
|
|
|
21040
21040
|
_getDummyMesh() {
|
|
21041
21041
|
if (!this._dummyMesh) {
|
|
21042
21042
|
const A = new si(), e = new Re();
|
|
21043
|
-
e.setAttribute("position", new he(new Float32Array(9), 3)), this._dummyMesh = new
|
|
21043
|
+
e.setAttribute("position", new he(new Float32Array(9), 3)), this._dummyMesh = new Me(e, A);
|
|
21044
21044
|
}
|
|
21045
21045
|
return this._dummyMesh;
|
|
21046
21046
|
}
|
|
@@ -53224,7 +53224,7 @@ const _n = (n) => {
|
|
|
53224
53224
|
var A, e;
|
|
53225
53225
|
for (; n.children.length > 0; )
|
|
53226
53226
|
_n(n.children[0]), (A = n.children[0]) == null || A.removeFromParent();
|
|
53227
|
-
if (n instanceof
|
|
53227
|
+
if (n instanceof Me)
|
|
53228
53228
|
try {
|
|
53229
53229
|
(e = n.geometry) == null || e.dispose();
|
|
53230
53230
|
} catch {
|
|
@@ -54604,7 +54604,7 @@ class lk {
|
|
|
54604
54604
|
let g;
|
|
54605
54605
|
const y = l[f];
|
|
54606
54606
|
if (d.mode === Ci.TRIANGLES || d.mode === Ci.TRIANGLE_STRIP || d.mode === Ci.TRIANGLE_FAN || d.mode === void 0)
|
|
54607
|
-
g = r.isSkinnedMesh === !0 ? new wD(m, y) : new
|
|
54607
|
+
g = r.isSkinnedMesh === !0 ? new wD(m, y) : new Me(m, y), g.isSkinnedMesh === !0 && g.normalizeSkinWeights(), d.mode === Ci.TRIANGLE_STRIP ? g.geometry = kx(g.geometry, g2) : d.mode === Ci.TRIANGLE_FAN && (g.geometry = kx(g.geometry, cm));
|
|
54608
54608
|
else if (d.mode === Ci.LINES)
|
|
54609
54609
|
g = new Fc(m, y);
|
|
54610
54610
|
else if (d.mode === Ci.LINE_STRIP)
|
|
@@ -55253,7 +55253,7 @@ function Ng(n, A = 1 / 0, e = null) {
|
|
|
55253
55253
|
gl_FragColor = texture2D( blitTexture, vUv);
|
|
55254
55254
|
#endif
|
|
55255
55255
|
}`
|
|
55256
|
-
})), ko.uniforms.blitTexture.value = n, ko.defines.IS_SRGB = n.colorSpace == ke, ko.needsUpdate = !0, Eu || (Eu = new
|
|
55256
|
+
})), ko.uniforms.blitTexture.value = n, ko.defines.IS_SRGB = n.colorSpace == ke, ko.needsUpdate = !0, Eu || (Eu = new Me(qg, ko), Eu.frustumCulled = !1);
|
|
55257
55257
|
const t = new yt(), i = new ka();
|
|
55258
55258
|
i.add(Eu), e === null && (e = Bl = new N2({ antialias: !1 }));
|
|
55259
55259
|
const r = Math.min(n.image.width, A), s = Math.min(n.image.height, A);
|
|
@@ -61719,13 +61719,13 @@ function bI(n) {
|
|
|
61719
61719
|
return Array.isArray(n) ? n[0] : n;
|
|
61720
61720
|
}
|
|
61721
61721
|
let DS = () => {
|
|
61722
|
-
const n = new
|
|
61722
|
+
const n = new Me(
|
|
61723
61723
|
new or(1, 1),
|
|
61724
61724
|
Xv
|
|
61725
61725
|
);
|
|
61726
61726
|
return DS = () => n, n;
|
|
61727
61727
|
}, ES = () => {
|
|
61728
|
-
const n = new
|
|
61728
|
+
const n = new Me(
|
|
61729
61729
|
new or(1, 1, 32, 1),
|
|
61730
61730
|
Xv
|
|
61731
61731
|
);
|
|
@@ -61759,7 +61759,7 @@ const tK = { type: "syncstart" }, iK = { type: "synccomplete" }, LS = [
|
|
|
61759
61759
|
"orientation",
|
|
61760
61760
|
"glyphGeometryDetail"
|
|
61761
61761
|
);
|
|
61762
|
-
class OS extends
|
|
61762
|
+
class OS extends Me {
|
|
61763
61763
|
constructor() {
|
|
61764
61764
|
const A = new Zj();
|
|
61765
61765
|
super(A, null), this.text = "", this.anchorX = 0, this.anchorY = 0, this.curveRadius = 0, this.direction = "auto", this.font = null, this.unicodeFontsURL = null, this.fontSize = 0.1, this.fontWeight = "normal", this.fontStyle = "normal", this.lang = null, this.letterSpacing = 0, this.lineHeight = "normal", this.maxWidth = 1 / 0, this.overflowWrap = "normal", this.textAlign = "left", this.textIndent = 0, this.whiteSpace = "normal", this.material = null, this.color = null, this.colorRanges = null, this.outlineWidth = 0, this.outlineColor = 0, this.outlineOpacity = 1, this.outlineBlur = 0, this.outlineOffsetX = 0, this.outlineOffsetY = 0, this.strokeWidth = 0, this.strokeColor = xI, this.strokeOpacity = 1, this.fillOpacity = 1, this.depthOffset = 0, this.clipRect = null, this.orientation = Yg, this.glyphGeometryDetail = 1, this.sdfGlyphSize = null, this.gpuAccelerateSDF = !0, this.debugSDF = !1;
|
|
@@ -62028,7 +62028,7 @@ class gf extends Ie {
|
|
|
62028
62028
|
}
|
|
62029
62029
|
class qS extends Ie {
|
|
62030
62030
|
constructor(A, e) {
|
|
62031
|
-
super(), this.radius = A, this._text = new rK(""), this._line = new gf(void 0, !1), this._box = new
|
|
62031
|
+
super(), this.radius = A, this._text = new rK(""), this._line = new gf(void 0, !1), this._box = new Me(), this._box.geometry = new Pf(A, A + 3e-3, 128), this._box.material = new si({
|
|
62032
62032
|
color: "#898989",
|
|
62033
62033
|
side: ot
|
|
62034
62034
|
}), this.position.y = e, this._box.rotateX(-Math.PI / 2), this.add(this._box), this.add(this._line), this.add(this._text);
|
|
@@ -62368,7 +62368,7 @@ class SI extends NS {
|
|
|
62368
62368
|
const i = new Ys(this._goodsSize.width, t, this._goodsSize.length);
|
|
62369
62369
|
i.translate(0, t / 2, 0);
|
|
62370
62370
|
const r = new F2(i);
|
|
62371
|
-
this._goods = new
|
|
62371
|
+
this._goods = new Me(i, new Gc({
|
|
62372
62372
|
color: "#22f",
|
|
62373
62373
|
opacity: 0.2,
|
|
62374
62374
|
transparent: !0
|
|
@@ -62443,7 +62443,7 @@ class MI extends Ie {
|
|
|
62443
62443
|
}
|
|
62444
62444
|
_generate(A, e, t) {
|
|
62445
62445
|
this.clearAll();
|
|
62446
|
-
const i = new
|
|
62446
|
+
const i = new Me(
|
|
62447
62447
|
new Ys(A, t, e),
|
|
62448
62448
|
new si({
|
|
62449
62449
|
color: new FA("#0f5fd5"),
|
|
@@ -62525,7 +62525,7 @@ class mK extends Ie {
|
|
|
62525
62525
|
init(A) {
|
|
62526
62526
|
this._app = A, this.sizeBox.init(A), this.addEventListener("shape-key-changed", (e, t) => {
|
|
62527
62527
|
this._slots.forEach((i) => i.shapeKeyChanged(e, t)), this.sizeBox.follow === e ? (this.sizeBox.generate(this._container, t), this.sizeBox.originOffset && (this._container.traverse((i) => {
|
|
62528
|
-
i instanceof
|
|
62528
|
+
i instanceof Me && !i.userData.isDevice && !i.userData.isBracket && i.geometry.translate(this.sizeBox.originOffset - this.sizeBox.translateCache, 0, 0), i instanceof E0 && i.parent && i.parent.position.add(new O(this.sizeBox.originOffset - this.sizeBox.translateCache, 0, 0));
|
|
62529
62529
|
}), this.sizeBox.translateCache = this.sizeBox.originOffset, this.sizeBox.generate(this._container))) : this.sizeBox.generate(this._container);
|
|
62530
62530
|
});
|
|
62531
62531
|
}
|
|
@@ -62561,7 +62561,7 @@ class mK extends Ie {
|
|
|
62561
62561
|
let i = e;
|
|
62562
62562
|
t.userData[`origin_${A}`] && (i -= t.userData[`origin_${A}`]);
|
|
62563
62563
|
const r = t.morphTargetDictionary[A];
|
|
62564
|
-
t.morphTargetInfluences && (t.morphTargetInfluences[r] = i), t instanceof
|
|
62564
|
+
t.morphTargetInfluences && (t.morphTargetInfluences[r] = i), t instanceof Me && t.geometry.translate(0, 0, 1e-5);
|
|
62565
62565
|
}), this._emitter.emit("shape-key-changed", A, e);
|
|
62566
62566
|
}
|
|
62567
62567
|
_generateAmr(A) {
|
|
@@ -62571,7 +62571,7 @@ class mK extends Ie {
|
|
|
62571
62571
|
e.userData[`origin_${t}`] && (i += e.userData[`origin_${t}`]), this._shapeKeys.has(t) || this._shapeKeys.set(t, i);
|
|
62572
62572
|
});
|
|
62573
62573
|
}), A.traverse((e) => {
|
|
62574
|
-
if (e instanceof
|
|
62574
|
+
if (e instanceof Me) {
|
|
62575
62575
|
if (e.material)
|
|
62576
62576
|
if (Array.isArray(e.material))
|
|
62577
62577
|
e.material.forEach((i) => {
|
|
@@ -65045,7 +65045,7 @@ class aH {
|
|
|
65045
65045
|
window.innerWidth / window.innerHeight,
|
|
65046
65046
|
0.1,
|
|
65047
65047
|
1e4
|
|
65048
|
-
), this._container = new Dt(), this._raycaster = new qE(), this._selected = [], this._pointerDownTimeout = 0, this.lines = new Ja(new uA(-108, 0)), this._dragging = !1, this.maxSample = 1024 * 2, this.sampleCount = 0, this._usePathTracing = !1, this._fpsCache = [], this._fpsCacheMax = 20, this._emitter = new Vr(), this.sound = new SR(), this._ground = new
|
|
65048
|
+
), this._container = new Dt(), this._raycaster = new qE(), this._selected = [], this._pointerDownTimeout = 0, this.lines = new Ja(new uA(-108, 0)), this._dragging = !1, this.maxSample = 1024 * 2, this.sampleCount = 0, this._usePathTracing = !1, this._fpsCache = [], this._fpsCacheMax = 20, this._emitter = new Vr(), this.sound = new SR(), this._ground = new Me(
|
|
65049
65049
|
new or(100, 100),
|
|
65050
65050
|
new Gc({
|
|
65051
65051
|
color: new FA("#aaa"),
|
|
@@ -65183,15 +65183,22 @@ class aH {
|
|
|
65183
65183
|
});
|
|
65184
65184
|
}
|
|
65185
65185
|
async addAMR(A) {
|
|
65186
|
-
this.amr.init(this), await this.amr.load(A), this.amr.addEventListener("shape-key-changed", () => {
|
|
65187
|
-
this.pathTracer.reset(), this.sampleCount = 0, this.pathTracer.setScene(this.scene, this.camera)
|
|
65186
|
+
this.amr.init(this), await this.amr.load(A), this.amr.addEventListener("shape-key-changed", (e, t) => {
|
|
65187
|
+
this.pathTracer.reset(), this.sampleCount = 0, this.pathTracer.setScene(this.scene, this.camera), this.overlayScene.traverse((i) => {
|
|
65188
|
+
if (!Object.keys(i.morphTargetDictionary || {}).includes(e))
|
|
65189
|
+
return;
|
|
65190
|
+
let r = t;
|
|
65191
|
+
i.userData[`origin_${e}`] && (r -= i.userData[`origin_${e}`]);
|
|
65192
|
+
const s = i.morphTargetDictionary[e];
|
|
65193
|
+
i.morphTargetInfluences && (i.morphTargetInfluences[s] = r), i instanceof Me && i.geometry.translate(0, 0, 1e-5);
|
|
65194
|
+
});
|
|
65188
65195
|
}), this.amr.logos.forEach((e) => {
|
|
65189
65196
|
this.overlayScene.add(e.target);
|
|
65190
65197
|
});
|
|
65191
65198
|
}
|
|
65192
65199
|
generateEdges() {
|
|
65193
65200
|
this._container.traverse((A) => {
|
|
65194
|
-
if (A instanceof
|
|
65201
|
+
if (A instanceof Me) {
|
|
65195
65202
|
const e = A.geometry.clone(), t = BF.generate(e);
|
|
65196
65203
|
let i = t.next();
|
|
65197
65204
|
for (; !i.done; )
|
|
@@ -65222,7 +65229,7 @@ class aH {
|
|
|
65222
65229
|
const A = this.renderer.domElement.parentElement;
|
|
65223
65230
|
A && ((t = this._resizeObserver) == null || t.unobserve(A)), this.controls.dispose(), this.renderer.dispose(), this._composer.dispose(), this.scene.traverse((i) => {
|
|
65224
65231
|
var r;
|
|
65225
|
-
i instanceof
|
|
65232
|
+
i instanceof Me ? (i.geometry.dispose(), Array.isArray(i.material) ? i.material.forEach((s) => s.dispose()) : i.material && i.material.dispose()) : i instanceof E0 ? i.dispose() : (r = i.dispose) == null || r.call(i), i.removeFromParent();
|
|
65226
65233
|
});
|
|
65227
65234
|
}
|
|
65228
65235
|
}
|