@realsee/dnalogel 3.72.5-alpha.2 → 3.72.5-alpha.3
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/PanoTagPlugin/controller/Tag/PointTag.d.ts +1 -0
- package/dist/index.cjs.js +31 -31
- package/dist/index.js +877 -871
- package/dist/index.umd.js +31 -31
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +39 -39
- package/libs/PanoTagPlugin/controller/Tag/PointTag.d.ts +1 -0
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +58 -52
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -43,7 +43,7 @@ import { LineGeometry as yb, LineMaterial as wb, THREE_Line2 as Pb, Line as I0 }
|
|
|
43
43
|
import { GLTFLoader as Cb } from "@realsee/five/gltf-loader";
|
|
44
44
|
function Ib() {
|
|
45
45
|
console.debug(
|
|
46
|
-
"%c %c@realsee/dnalogel %cv3.72.5-alpha.
|
|
46
|
+
"%c %c@realsee/dnalogel %cv3.72.5-alpha.3",
|
|
47
47
|
[
|
|
48
48
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
49
49
|
"background-repeat: no-repeat",
|
|
@@ -970,10 +970,10 @@ let Vb = class extends _b {
|
|
|
970
970
|
if (!p.find((E) => E === A)) {
|
|
971
971
|
if (p.push(A), g.push(lc(l[A], m.clientWidth, m.clientHeight)), g.length < 3)
|
|
972
972
|
return;
|
|
973
|
-
const { control: E, end:
|
|
974
|
-
if (!E || !
|
|
973
|
+
const { control: E, end: I } = Sa(g);
|
|
974
|
+
if (!E || !I)
|
|
975
975
|
return;
|
|
976
|
-
a.quadraticCurveTo(E.x, E.y,
|
|
976
|
+
a.quadraticCurveTo(E.x, E.y, I.x, I.y), a.stroke();
|
|
977
977
|
}
|
|
978
978
|
}).onComplete((v) => {
|
|
979
979
|
m.tween = void 0, m.tweening = !1, p = [], g = [], o && o(), r();
|
|
@@ -1699,7 +1699,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1699
1699
|
return V.apply(U, arguments);
|
|
1700
1700
|
};
|
|
1701
1701
|
}
|
|
1702
|
-
function
|
|
1702
|
+
function I(V, U) {
|
|
1703
1703
|
return typeof V == a ? V.apply(U && U[0] || s, U) : V;
|
|
1704
1704
|
}
|
|
1705
1705
|
function z(V, U) {
|
|
@@ -1729,7 +1729,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1729
1729
|
function b(V) {
|
|
1730
1730
|
return V.trim().split(/\s+/g);
|
|
1731
1731
|
}
|
|
1732
|
-
function
|
|
1732
|
+
function C(V, U, q) {
|
|
1733
1733
|
if (V.indexOf && !q)
|
|
1734
1734
|
return V.indexOf(U);
|
|
1735
1735
|
for (var ne = 0; ne < V.length; ) {
|
|
@@ -1745,7 +1745,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1745
1745
|
function k(V, U, q) {
|
|
1746
1746
|
for (var ne = [], be = [], ze = 0; ze < V.length; ) {
|
|
1747
1747
|
var Qe = U ? V[ze][U] : V[ze];
|
|
1748
|
-
|
|
1748
|
+
C(be, Qe) < 0 && ne.push(V[ze]), be[ze] = Qe, ze++;
|
|
1749
1749
|
}
|
|
1750
1750
|
return q && (U ? ne = ne.sort(function(Et, Ot) {
|
|
1751
1751
|
return Et[U] > Ot[U];
|
|
@@ -1771,7 +1771,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1771
1771
|
function Je(V, U) {
|
|
1772
1772
|
var q = this;
|
|
1773
1773
|
this.manager = V, this.callback = U, this.element = V.element, this.target = V.options.inputTarget, this.domHandler = function(ne) {
|
|
1774
|
-
|
|
1774
|
+
I(V.options.enable, [V]) && q.handler(ne);
|
|
1775
1775
|
}, this.init();
|
|
1776
1776
|
}
|
|
1777
1777
|
Je.prototype = {
|
|
@@ -1930,7 +1930,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1930
1930
|
* @param {Object} ev
|
|
1931
1931
|
*/
|
|
1932
1932
|
handler: function(U) {
|
|
1933
|
-
var q = this.store, ne = !1, be = U.type.toLowerCase().replace("ms", ""), ze = yi[be], Qe = Vn[U.pointerType] || U.pointerType, Pt = Qe == $, Et =
|
|
1933
|
+
var q = this.store, ne = !1, be = U.type.toLowerCase().replace("ms", ""), ze = yi[be], Qe = Vn[U.pointerType] || U.pointerType, Pt = Qe == $, Et = C(q, U.pointerId, "pointerId");
|
|
1934
1934
|
ze & de && (U.button === 0 || Pt) ? Et < 0 && (q.push(U), Et = q.length - 1) : ze & (Se | ee) && (ne = !0), !(Et < 0) && (q[Et] = U, this.callback(this.manager, ze, {
|
|
1935
1935
|
pointers: q,
|
|
1936
1936
|
changedPointers: [U],
|
|
@@ -2083,7 +2083,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2083
2083
|
compute: function() {
|
|
2084
2084
|
var V = [];
|
|
2085
2085
|
return g(this.manager.recognizers, function(U) {
|
|
2086
|
-
|
|
2086
|
+
I(U.options.enable, [U]) && (V = V.concat(U.getTouchAction()));
|
|
2087
2087
|
}), ur(V.join(" "));
|
|
2088
2088
|
},
|
|
2089
2089
|
/**
|
|
@@ -2173,7 +2173,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2173
2173
|
if (u(V, "requireFailure", this))
|
|
2174
2174
|
return this;
|
|
2175
2175
|
var U = this.requireFail;
|
|
2176
|
-
return V = Un(V, this),
|
|
2176
|
+
return V = Un(V, this), C(U, V) === -1 && (U.push(V), V.requireFailure(this)), this;
|
|
2177
2177
|
},
|
|
2178
2178
|
/**
|
|
2179
2179
|
* drop the requireFailure link. it does not remove the link on the other recognizer.
|
|
@@ -2184,7 +2184,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2184
2184
|
if (u(V, "dropRequireFailure", this))
|
|
2185
2185
|
return this;
|
|
2186
2186
|
V = Un(V, this);
|
|
2187
|
-
var U =
|
|
2187
|
+
var U = C(this.requireFail, V);
|
|
2188
2188
|
return U > -1 && this.requireFail.splice(U, 1), this;
|
|
2189
2189
|
},
|
|
2190
2190
|
/**
|
|
@@ -2243,7 +2243,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2243
2243
|
*/
|
|
2244
2244
|
recognize: function(V) {
|
|
2245
2245
|
var U = m({}, V);
|
|
2246
|
-
if (!
|
|
2246
|
+
if (!I(this.options.enable, [this, U])) {
|
|
2247
2247
|
this.reset(), this.state = It;
|
|
2248
2248
|
return;
|
|
2249
2249
|
}
|
|
@@ -2692,7 +2692,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2692
2692
|
if (u(V, "remove", this))
|
|
2693
2693
|
return this;
|
|
2694
2694
|
if (V = this.get(V), V) {
|
|
2695
|
-
var U = this.recognizers, q =
|
|
2695
|
+
var U = this.recognizers, q = C(U, V);
|
|
2696
2696
|
q !== -1 && (U.splice(q, 1), this.touchAction.update());
|
|
2697
2697
|
}
|
|
2698
2698
|
return this;
|
|
@@ -2721,7 +2721,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2721
2721
|
if (V !== s) {
|
|
2722
2722
|
var q = this.handlers;
|
|
2723
2723
|
return g(b(V), function(ne) {
|
|
2724
|
-
U ? q[ne] && q[ne].splice(
|
|
2724
|
+
U ? q[ne] && q[ne].splice(C(q[ne], U), 1) : delete q[ne];
|
|
2725
2725
|
}), this;
|
|
2726
2726
|
}
|
|
2727
2727
|
},
|
|
@@ -3107,13 +3107,13 @@ let Kb = function(n) {
|
|
|
3107
3107
|
g(m.children[A]);
|
|
3108
3108
|
}
|
|
3109
3109
|
function p(m, v, A, P, E) {
|
|
3110
|
-
var
|
|
3110
|
+
var I;
|
|
3111
3111
|
if (m.visible === !1) {
|
|
3112
3112
|
g(m);
|
|
3113
3113
|
return;
|
|
3114
3114
|
}
|
|
3115
3115
|
if (m.isCSS3DObject) {
|
|
3116
|
-
const z = (
|
|
3116
|
+
const z = (I = m.mode) != null ? I : "front";
|
|
3117
3117
|
if (n && z !== n)
|
|
3118
3118
|
return;
|
|
3119
3119
|
m.flag = E;
|
|
@@ -3138,21 +3138,21 @@ let Kb = function(n) {
|
|
|
3138
3138
|
let A = v.projectionMatrix.elements[5] * o;
|
|
3139
3139
|
if (a.camera.fov !== A && (v.isPerspectiveCamera ? (l.style.WebkitPerspective = A + "px", l.style.perspective = A + "px") : (l.style.WebkitPerspective = "", l.style.perspective = ""), a.camera.fov = A), m.autoUpdate === !0 && m.updateMatrixWorld(), v.parent === null && v.updateMatrixWorld(), v.isOrthographicCamera)
|
|
3140
3140
|
var P = -(v.right + v.left) / 2, E = (v.top + v.bottom) / 2;
|
|
3141
|
-
let
|
|
3141
|
+
let I = v.isOrthographicCamera ? "scale(" + A + ")translate(" + h(P) + "px," + h(E) + "px)" + d(v.matrixWorldInverse) : "translateZ(" + A + "px)" + d(v.matrixWorldInverse), z = I + "translate(" + s + "px," + o + "px)";
|
|
3142
3142
|
a.camera.style !== z && (c.style.WebkitTransform = z, c.style.transform = z, a.camera.style = z);
|
|
3143
3143
|
const D = m.uuid + "_" + performance.now().toString();
|
|
3144
|
-
p(m, m, v,
|
|
3144
|
+
p(m, m, v, I, D), a.objects.forEach(function(j, T) {
|
|
3145
3145
|
T.flag !== D && (T.element.remove(), a.objects.delete(T));
|
|
3146
3146
|
});
|
|
3147
3147
|
}, this.sceneRender = function(m, v) {
|
|
3148
3148
|
let A = v.projectionMatrix.elements[5] * o;
|
|
3149
3149
|
if (a.camera.fov !== A && (v.isPerspectiveCamera ? (l.style.WebkitPerspective = A + "px", l.style.perspective = A + "px") : (l.style.WebkitPerspective = "", l.style.perspective = ""), a.camera.fov = A), v.parent === null && v.updateMatrixWorld(), v.isOrthographicCamera)
|
|
3150
3150
|
var P = -(v.right + v.left) / 2, E = (v.top + v.bottom) / 2;
|
|
3151
|
-
let
|
|
3151
|
+
let I = v.isOrthographicCamera ? "scale(" + A + ")translate(" + h(P) + "px," + h(E) + "px)" + d(v.matrixWorldInverse) : "translateZ(" + A + "px)" + d(v.matrixWorldInverse), z = I + "translate(" + s + "px," + o + "px)";
|
|
3152
3152
|
a.camera.style !== z && (c.style.WebkitTransform = z, c.style.transform = z, a.camera.style = z);
|
|
3153
3153
|
const D = performance.now().toString();
|
|
3154
3154
|
m.forEach((j) => {
|
|
3155
|
-
j.autoUpdate === !0 && j.updateMatrixWorld(), p(j, j, v,
|
|
3155
|
+
j.autoUpdate === !0 && j.updateMatrixWorld(), p(j, j, v, I, D);
|
|
3156
3156
|
}), a.objects.forEach(function(j, T) {
|
|
3157
3157
|
T.flag !== D && (T.element.remove(), a.objects.delete(T));
|
|
3158
3158
|
});
|
|
@@ -4091,7 +4091,7 @@ class ki extends Ai {
|
|
|
4091
4091
|
const b = this.five.getElement();
|
|
4092
4092
|
if (!b)
|
|
4093
4093
|
return 0;
|
|
4094
|
-
const
|
|
4094
|
+
const C = b.clientWidth, M = b.clientHeight, k = C / 2, S = M / 2, L = o.clone().project(this.five.camera), N = r.clone().project(this.five.camera), B = {
|
|
4095
4095
|
x: L.x * k,
|
|
4096
4096
|
y: L.y * S
|
|
4097
4097
|
}, Z = {
|
|
@@ -4099,11 +4099,11 @@ class ki extends Ai {
|
|
|
4099
4099
|
y: N.y * S
|
|
4100
4100
|
};
|
|
4101
4101
|
return Math.sqrt(Math.pow(Z.x - B.x, 2) + Math.pow(Z.y - B.y, 2));
|
|
4102
|
-
})(), P = (() => !this.five || !this.five.camera ? 20 : Mt(o, r).distanceTo(this.five.camera.position))(), E = ((v = (m = this.five) == null ? void 0 : m.camera) == null ? void 0 : v.fov) || 60,
|
|
4103
|
-
const
|
|
4104
|
-
|
|
4105
|
-
const M =
|
|
4106
|
-
return document.body.removeChild(
|
|
4102
|
+
})(), P = (() => !this.five || !this.five.camera ? 20 : Mt(o, r).distanceTo(this.five.camera.position))(), E = ((v = (m = this.five) == null ? void 0 : m.camera) == null ? void 0 : v.fov) || 60, I = 2 * Math.tan(0.5 * E / 180 * Math.PI), D = `--distance-scale: ${Math.max(Math.min(1 - I * P / 40, 1), 0)};`, j = (b) => {
|
|
4103
|
+
const C = document.createElement("div");
|
|
4104
|
+
C.classList.add("LineLengthTag"), C.style.visibility = "hidden", C.style.position = "absolute", C.style.padding = "2px 8px", C.style.fontFamily = "Arial-BoldMT", C.style.fontSize = "14px", C.innerText = b, document.body.appendChild(C);
|
|
4105
|
+
const M = C.offsetWidth;
|
|
4106
|
+
return document.body.removeChild(C), M;
|
|
4107
4107
|
};
|
|
4108
4108
|
let T = 0;
|
|
4109
4109
|
const O = j(d);
|
|
@@ -4596,8 +4596,8 @@ class Ll extends kt {
|
|
|
4596
4596
|
x: Math.abs(P.x - u.x) * g.width,
|
|
4597
4597
|
y: Math.abs(P.y - u.y) * g.height
|
|
4598
4598
|
};
|
|
4599
|
-
let
|
|
4600
|
-
E.x < 10 && E.y < 10 && (!this.plane || this.plane.distanceToPoint(
|
|
4599
|
+
let I = v.clone();
|
|
4600
|
+
E.x < 10 && E.y < 10 && (!this.plane || this.plane.distanceToPoint(I) < 0.01) && (I = (c = (l = this.plane) == null ? void 0 : l.projectPoint(I, new y.Vector3())) != null ? c : I, i.point = I.clone(), i.adhereLine = p.clone(), i.isAdsorbed = !0);
|
|
4601
4601
|
}
|
|
4602
4602
|
}
|
|
4603
4603
|
}
|
|
@@ -4615,11 +4615,11 @@ class Ll extends kt {
|
|
|
4615
4615
|
const P = this.five.renderer.getSize(new y.Vector2()), E = {
|
|
4616
4616
|
x: (A.x + 1) / 2,
|
|
4617
4617
|
y: (1 - A.y) / 2
|
|
4618
|
-
},
|
|
4618
|
+
}, I = {
|
|
4619
4619
|
x: Math.abs(E.x - u.x) * P.width,
|
|
4620
4620
|
y: Math.abs(E.y - u.y) * P.height
|
|
4621
4621
|
};
|
|
4622
|
-
if (
|
|
4622
|
+
if (I.x < 10 && I.y < 10) {
|
|
4623
4623
|
let z = !1;
|
|
4624
4624
|
if (m.IsAlwaysVisible)
|
|
4625
4625
|
z = !0;
|
|
@@ -4756,8 +4756,8 @@ let V0 = class extends zn {
|
|
|
4756
4756
|
else {
|
|
4757
4757
|
const b = document.createElement("div");
|
|
4758
4758
|
b.style.width = `${d}px`, b.style.height = `${u}px`, b.style.pointerEvents = "none";
|
|
4759
|
-
const
|
|
4760
|
-
i.style.position = "absolute", i.style.left = "0", i.style.top = "0", i.style.width = `${
|
|
4759
|
+
const C = o / l;
|
|
4760
|
+
i.style.position = "absolute", i.style.left = "0", i.style.top = "0", i.style.width = `${C * d}px`, i.style.height = `${C * u}px`, b.appendChild(i), p = b;
|
|
4761
4761
|
}
|
|
4762
4762
|
super(p);
|
|
4763
4763
|
f(this, "version", B0);
|
|
@@ -4798,8 +4798,8 @@ let V0 = class extends zn {
|
|
|
4798
4798
|
i.classList.add(`${ku}__container`);
|
|
4799
4799
|
const m = new ve().subVectors(s[1], s[0]), v = new ve().subVectors(s[3], s[0]), A = new ve().crossVectors(m, v).normalize();
|
|
4800
4800
|
this.lookAt(A);
|
|
4801
|
-
const P = this.up.clone().applyQuaternion(this.quaternion), E = v.clone(),
|
|
4802
|
-
this.rotateOnWorldAxis(
|
|
4801
|
+
const P = this.up.clone().applyQuaternion(this.quaternion), E = v.clone(), I = new ve().crossVectors(P, E).normalize();
|
|
4802
|
+
this.rotateOnWorldAxis(I, P.angleTo(E)), this.position.copy(g), this.addEventListener("added", () => {
|
|
4803
4803
|
var b;
|
|
4804
4804
|
this.mode === "front" && ((b = this.opacityMesh) == null || b.removeFromParent());
|
|
4805
4805
|
}), this.addEventListener("removed", () => {
|
|
@@ -5096,11 +5096,11 @@ function Uh(n, t) {
|
|
|
5096
5096
|
return e && e.applyMatrix4(Hy(n.matrixWorld.clone())), e;
|
|
5097
5097
|
}
|
|
5098
5098
|
const Hy = (n) => {
|
|
5099
|
-
const t = n.elements, e = t[0], i = t[1], s = t[2], o = t[3], r = t[4], a = t[5], l = t[6], c = t[7], h = t[8], d = t[9], u = t[10], g = t[11], p = t[12], m = t[13], v = t[14], A = t[15], P = d * v * c - m * u * c + m * l * g - a * v * g - d * l * A + a * u * A, E = p * u * c - h * v * c - p * l * g + r * v * g + h * l * A - r * u * A,
|
|
5099
|
+
const t = n.elements, e = t[0], i = t[1], s = t[2], o = t[3], r = t[4], a = t[5], l = t[6], c = t[7], h = t[8], d = t[9], u = t[10], g = t[11], p = t[12], m = t[13], v = t[14], A = t[15], P = d * v * c - m * u * c + m * l * g - a * v * g - d * l * A + a * u * A, E = p * u * c - h * v * c - p * l * g + r * v * g + h * l * A - r * u * A, I = h * m * c - p * d * c + p * a * g - r * m * g - h * a * A + r * d * A, z = p * d * l - h * m * l - p * a * u + r * m * u + h * a * v - r * d * v, D = e * P + i * E + s * I + o * z;
|
|
5100
5100
|
if (D === 0)
|
|
5101
5101
|
return n.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
|
|
5102
5102
|
const j = 1 / D;
|
|
5103
|
-
return t[0] = P * j, t[1] = (m * u * o - d * v * o - m * s * g + i * v * g + d * s * A - i * u * A) * j, t[2] = (a * v * o - m * l * o + m * s * c - i * v * c - a * s * A + i * l * A) * j, t[3] = (d * l * o - a * u * o - d * s * c + i * u * c + a * s * g - i * l * g) * j, t[4] = E * j, t[5] = (h * v * o - p * u * o + p * s * g - e * v * g - h * s * A + e * u * A) * j, t[6] = (p * l * o - r * v * o - p * s * c + e * v * c + r * s * A - e * l * A) * j, t[7] = (r * u * o - h * l * o + h * s * c - e * u * c - r * s * g + e * l * g) * j, t[8] =
|
|
5103
|
+
return t[0] = P * j, t[1] = (m * u * o - d * v * o - m * s * g + i * v * g + d * s * A - i * u * A) * j, t[2] = (a * v * o - m * l * o + m * s * c - i * v * c - a * s * A + i * l * A) * j, t[3] = (d * l * o - a * u * o - d * s * c + i * u * c + a * s * g - i * l * g) * j, t[4] = E * j, t[5] = (h * v * o - p * u * o + p * s * g - e * v * g - h * s * A + e * u * A) * j, t[6] = (p * l * o - r * v * o - p * s * c + e * v * c + r * s * A - e * l * A) * j, t[7] = (r * u * o - h * l * o + h * s * c - e * u * c - r * s * g + e * l * g) * j, t[8] = I * j, t[9] = (p * d * o - h * m * o - p * i * g + e * m * g + h * i * A - e * d * A) * j, t[10] = (r * m * o - p * a * o + p * i * c - e * m * c - r * i * A + e * a * A) * j, t[11] = (h * a * o - r * d * o - h * i * c + e * d * c + r * i * g - e * a * g) * j, t[12] = z * j, t[13] = (h * m * s - p * d * s + p * i * u - e * m * u - h * i * v + e * d * v) * j, t[14] = (p * a * s - r * m * s - p * i * l + e * m * l + r * i * v - e * a * v) * j, t[15] = (r * d * s - h * a * s + h * i * l - e * d * l - r * i * u + e * a * u) * j, n;
|
|
5104
5104
|
};
|
|
5105
5105
|
var X0 = {
|
|
5106
5106
|
update: null,
|
|
@@ -5255,7 +5255,7 @@ var Wy = function() {
|
|
|
5255
5255
|
for (var m = 0; m < n; ++m)
|
|
5256
5256
|
p[m] = o(m * t, h, u);
|
|
5257
5257
|
function v(A) {
|
|
5258
|
-
for (var P = 0, E = 1,
|
|
5258
|
+
for (var P = 0, E = 1, I = n - 1; E !== I && p[E] <= A; ++E)
|
|
5259
5259
|
P += t;
|
|
5260
5260
|
--E;
|
|
5261
5261
|
var z = (A - p[E]) / (p[E + 1] - p[E]), D = P + z * t, j = r(D, h, u);
|
|
@@ -5792,8 +5792,8 @@ function ct(n) {
|
|
|
5792
5792
|
n === void 0 && (n = {});
|
|
5793
5793
|
var t = 0, e = 0, i = 0, s, o = 0, r = null;
|
|
5794
5794
|
function a(P) {
|
|
5795
|
-
var E = window.Promise && new Promise(function(
|
|
5796
|
-
return r =
|
|
5795
|
+
var E = window.Promise && new Promise(function(I) {
|
|
5796
|
+
return r = I;
|
|
5797
5797
|
});
|
|
5798
5798
|
return P.finished = E, E;
|
|
5799
5799
|
}
|
|
@@ -5816,19 +5816,19 @@ function ct(n) {
|
|
|
5816
5816
|
}
|
|
5817
5817
|
function g(P) {
|
|
5818
5818
|
if (l.reversePlayback)
|
|
5819
|
-
for (var
|
|
5820
|
-
u(P, s[
|
|
5819
|
+
for (var I = o; I--; )
|
|
5820
|
+
u(P, s[I]);
|
|
5821
5821
|
else
|
|
5822
5822
|
for (var E = 0; E < o; E++)
|
|
5823
5823
|
u(P, s[E]);
|
|
5824
5824
|
}
|
|
5825
5825
|
function p(P) {
|
|
5826
|
-
for (var E = 0,
|
|
5827
|
-
var D =
|
|
5826
|
+
for (var E = 0, I = l.animations, z = I.length; E < z; ) {
|
|
5827
|
+
var D = I[E], j = D.animatable, T = D.tweens, O = T.length - 1, b = T[O];
|
|
5828
5828
|
O && (b = Ol(T, function(Me) {
|
|
5829
5829
|
return P < Me.end;
|
|
5830
5830
|
})[0] || b);
|
|
5831
|
-
for (var
|
|
5831
|
+
for (var C = tn(P - b.start - b.delay, 0, b.duration) / b.duration, M = isNaN(C) ? 1 : b.easing(C), k = b.to.strings, S = b.round, L = [], N = b.to.numbers.length, B = void 0, Z = 0; Z < N; Z++) {
|
|
5832
5832
|
var ie = void 0, K = b.to.numbers[Z], oe = b.from.numbers[Z] || 0;
|
|
5833
5833
|
b.isPath ? ie = sw(b.value, M * K, b.isPathTargetInsideSVG) : ie = oe + M * (K - oe), S && (b.isColor && Z > 2 || (ie = Math.round(ie * S) / S)), L.push(ie);
|
|
5834
5834
|
}
|
|
@@ -5853,8 +5853,8 @@ function ct(n) {
|
|
|
5853
5853
|
l.remaining && l.remaining !== !0 && l.remaining--;
|
|
5854
5854
|
}
|
|
5855
5855
|
function A(P) {
|
|
5856
|
-
var E = l.duration,
|
|
5857
|
-
l.progress = tn(D / E * 100, 0, 100), l.reversePlayback = D < l.currentTime, s && g(D), !l.began && l.currentTime > 0 && (l.began = !0, m("begin")), !l.loopBegan && l.currentTime > 0 && (l.loopBegan = !0, m("loopBegin")), D <=
|
|
5856
|
+
var E = l.duration, I = l.delay, z = E - l.endDelay, D = h(P);
|
|
5857
|
+
l.progress = tn(D / E * 100, 0, 100), l.reversePlayback = D < l.currentTime, s && g(D), !l.began && l.currentTime > 0 && (l.began = !0, m("begin")), !l.loopBegan && l.currentTime > 0 && (l.loopBegan = !0, m("loopBegin")), D <= I && l.currentTime !== 0 && p(0), (D >= z && l.currentTime !== E || !E) && p(E), D > I && D < z ? (l.changeBegan || (l.changeBegan = !0, l.changeCompleted = !1, m("changeBegin")), m("change"), p(D)) : l.changeBegan && (l.changeCompleted = !0, l.changeBegan = !1, m("changeComplete")), l.currentTime = tn(D, 0, E), l.began && m("update"), P >= E && (e = 0, v(), l.remaining ? (t = i, m("loopComplete"), l.loopBegan = !1, l.direction === "alternate" && c()) : (l.paused = !0, l.completed || (l.completed = !0, m("loopComplete"), m("complete"), !l.passThrough && "Promise" in window && (r(), a(l)))));
|
|
5858
5858
|
}
|
|
5859
5859
|
return l.reset = function() {
|
|
5860
5860
|
var P = l.direction;
|
|
@@ -5905,12 +5905,12 @@ function gw(n, t) {
|
|
|
5905
5905
|
var e = t.direction || "normal", i = t.easing ? Xh(t.easing) : null, s = t.grid, o = t.axis, r = t.from || 0, a = r === "first", l = r === "center", c = r === "last", h = Ge.arr(n), d = parseFloat(h ? n[0] : n), u = h ? parseFloat(n[1]) : 0, g = Tn(h ? n[1] : n) || 0, p = t.start || 0 + (h ? d : 0), m = [], v = 0;
|
|
5906
5906
|
return function(A, P, E) {
|
|
5907
5907
|
if (a && (r = 0), l && (r = (E - 1) / 2), c && (r = E - 1), !m.length) {
|
|
5908
|
-
for (var
|
|
5908
|
+
for (var I = 0; I < E; I++) {
|
|
5909
5909
|
if (!s)
|
|
5910
|
-
m.push(Math.abs(r -
|
|
5910
|
+
m.push(Math.abs(r - I));
|
|
5911
5911
|
else {
|
|
5912
|
-
var z = l ? (s[0] - 1) / 2 : r % s[0], D = l ? (s[1] - 1) / 2 : Math.floor(r / s[0]), j =
|
|
5913
|
-
o === "x" && (
|
|
5912
|
+
var z = l ? (s[0] - 1) / 2 : r % s[0], D = l ? (s[1] - 1) / 2 : Math.floor(r / s[0]), j = I % s[0], T = Math.floor(I / s[0]), O = z - j, b = D - T, C = Math.sqrt(O * O + b * b);
|
|
5913
|
+
o === "x" && (C = -O), o === "y" && (C = -b), m.push(C);
|
|
5914
5914
|
}
|
|
5915
5915
|
v = Math.max.apply(Math, m);
|
|
5916
5916
|
}
|
|
@@ -6474,7 +6474,7 @@ class Xr {
|
|
|
6474
6474
|
z && z.add(p);
|
|
6475
6475
|
}, v = () => {
|
|
6476
6476
|
g || (m(), this.render(t), this.hooks.emit("render"));
|
|
6477
|
-
}, A = (z) => this.setVisibleById(p.id, z), P = (z) => this.setEnabledById(p.id, z), E = () => (g = !0, p.removeFromParent(), !0),
|
|
6477
|
+
}, A = (z) => this.setVisibleById(p.id, z), P = (z) => this.setEnabledById(p.id, z), E = () => (g = !0, p.removeFromParent(), !0), I = l === "front" ? St.frontModeStore.css3DRenderer : St.behindModeStore.css3DRenderer;
|
|
6478
6478
|
return c && v(), {
|
|
6479
6479
|
id: p.uuid,
|
|
6480
6480
|
container: h,
|
|
@@ -6487,7 +6487,7 @@ class Xr {
|
|
|
6487
6487
|
disable: () => P(!1),
|
|
6488
6488
|
setEnabled: P,
|
|
6489
6489
|
dispose: E,
|
|
6490
|
-
appendToElement: (z) =>
|
|
6490
|
+
appendToElement: (z) => I.setWrapper(z)
|
|
6491
6491
|
};
|
|
6492
6492
|
});
|
|
6493
6493
|
f(this, "setVisibleById", (t, e) => {
|
|
@@ -6877,7 +6877,7 @@ function _s(n) {
|
|
|
6877
6877
|
}
|
|
6878
6878
|
function Nw(n, t, e) {
|
|
6879
6879
|
return te(this, null, function* () {
|
|
6880
|
-
var E,
|
|
6880
|
+
var E, I, z;
|
|
6881
6881
|
if (!t)
|
|
6882
6882
|
return;
|
|
6883
6883
|
const i = Q0(t);
|
|
@@ -6891,8 +6891,8 @@ function Nw(n, t, e) {
|
|
|
6891
6891
|
};
|
|
6892
6892
|
for (; u !== 360; ) {
|
|
6893
6893
|
let D = 0;
|
|
6894
|
-
const j = p(u), T = (
|
|
6895
|
-
const M =
|
|
6894
|
+
const j = p(u), T = (C) => {
|
|
6895
|
+
const M = C.distanceTo(j), k = new y.Raycaster(C, j.clone().sub(C).normalize()), S = s.model.intersectRaycaster(k)[0], L = S == null ? void 0 : S.distance;
|
|
6896
6896
|
Ne(L) ? L > M && (D += 1) : D += 1;
|
|
6897
6897
|
}, O = i.clampPoint(j, new y.Vector3());
|
|
6898
6898
|
T(O);
|
|
@@ -6901,7 +6901,7 @@ function Nw(n, t, e) {
|
|
|
6901
6901
|
break;
|
|
6902
6902
|
u += 30;
|
|
6903
6903
|
}
|
|
6904
|
-
let m = (z = (
|
|
6904
|
+
let m = (z = (I = g[2]) != null ? I : g[1]) != null ? z : 0, v = p(m), A = v.distanceTo(r), P = _s(r.clone().sub(v).normalize());
|
|
6905
6905
|
if (e != null && e.minDistance && A < e.minDistance) {
|
|
6906
6906
|
A = e.minDistance;
|
|
6907
6907
|
const D = v.clone().sub(r).normalize();
|
|
@@ -6940,8 +6940,8 @@ function v1(n, t, e) {
|
|
|
6940
6940
|
for (; h !== 360; ) {
|
|
6941
6941
|
let A = 0;
|
|
6942
6942
|
const P = u(h);
|
|
6943
|
-
if (((
|
|
6944
|
-
const z =
|
|
6943
|
+
if (((I) => {
|
|
6944
|
+
const z = I.distanceTo(P), D = new y.Raycaster(I, P.clone().sub(I).normalize()), j = s.model.intersectRaycaster(D)[0], T = j == null ? void 0 : j.distance;
|
|
6945
6945
|
Ne(T) ? T > z && (A += 1) : A += 1;
|
|
6946
6946
|
})(t), d[A] = h, A === 1)
|
|
6947
6947
|
break;
|
|
@@ -7066,7 +7066,7 @@ class No {
|
|
|
7066
7066
|
return !!e;
|
|
7067
7067
|
});
|
|
7068
7068
|
f(this, "notify", (t) => {
|
|
7069
|
-
var m, v, A, P, E,
|
|
7069
|
+
var m, v, A, P, E, I, z;
|
|
7070
7070
|
const { eventName: e, object: i, originEvent: s, raycaster: o, intersects: r, fiveModelIntersects: a } = t;
|
|
7071
7071
|
if (!i)
|
|
7072
7072
|
return !1;
|
|
@@ -7108,7 +7108,7 @@ class No {
|
|
|
7108
7108
|
})))
|
|
7109
7109
|
continue;
|
|
7110
7110
|
}
|
|
7111
|
-
if (((
|
|
7111
|
+
if (((I = this.config) != null && I.noEmitWhenHide || b != null && b.noEmitWhenHide) && !Wh(D))
|
|
7112
7112
|
continue;
|
|
7113
7113
|
if (p = !0, e === "hover") {
|
|
7114
7114
|
if (D._hovered)
|
|
@@ -7122,7 +7122,7 @@ class No {
|
|
|
7122
7122
|
continue;
|
|
7123
7123
|
D._hovered = !1;
|
|
7124
7124
|
}
|
|
7125
|
-
const
|
|
7125
|
+
const C = O({
|
|
7126
7126
|
type: e,
|
|
7127
7127
|
target: D,
|
|
7128
7128
|
origDomEvent: s,
|
|
@@ -7132,7 +7132,7 @@ class No {
|
|
|
7132
7132
|
l = !0;
|
|
7133
7133
|
}
|
|
7134
7134
|
});
|
|
7135
|
-
c.push(
|
|
7135
|
+
c.push(C != null ? C : !0);
|
|
7136
7136
|
}
|
|
7137
7137
|
}
|
|
7138
7138
|
if (p === !1)
|
|
@@ -7239,12 +7239,12 @@ class No {
|
|
|
7239
7239
|
continue;
|
|
7240
7240
|
const v = this.dragSelectTempWorld;
|
|
7241
7241
|
p.getWorldPosition(v);
|
|
7242
|
-
const A = this.dragSelectTempProjected.copy(v).project(o), P = (A.x * 0.5 + 0.5) * r, E = (1 - (A.y * 0.5 + 0.5)) * a,
|
|
7243
|
-
if (
|
|
7242
|
+
const A = this.dragSelectTempProjected.copy(v).project(o), P = (A.x * 0.5 + 0.5) * r, E = (1 - (A.y * 0.5 + 0.5)) * a, I = Math.hypot(P - c, E - h);
|
|
7243
|
+
if (I > m)
|
|
7244
7244
|
continue;
|
|
7245
7245
|
const z = i.ray.distanceToPoint(v);
|
|
7246
|
-
(!d ||
|
|
7247
|
-
pixelDistance:
|
|
7246
|
+
(!d || I < d.pixelDistance) && (d = {
|
|
7247
|
+
pixelDistance: I,
|
|
7248
7248
|
object: p,
|
|
7249
7249
|
worldPoint: v.clone(),
|
|
7250
7250
|
distance: z
|
|
@@ -7438,9 +7438,9 @@ class t2 {
|
|
|
7438
7438
|
}
|
|
7439
7439
|
}
|
|
7440
7440
|
const AT = (n, t) => {
|
|
7441
|
-
var
|
|
7441
|
+
var C, M;
|
|
7442
7442
|
const e = new kt();
|
|
7443
|
-
let i = (M = (
|
|
7443
|
+
let i = (M = (C = t == null ? void 0 : t.initialState) == null ? void 0 : C.enabled) != null ? M : !0, s = !1, o = !0, r = null;
|
|
7444
7444
|
const l = F(F({}, {
|
|
7445
7445
|
lookAtCurrentCamera: !1,
|
|
7446
7446
|
lockedPanoIndex: null,
|
|
@@ -7501,7 +7501,7 @@ const AT = (n, t) => {
|
|
|
7501
7501
|
i || (i = !0, c.add(d), !s && ((S = (k = n.work) == null ? void 0 : k.model) != null && S.file) && p(), D());
|
|
7502
7502
|
}, E = () => {
|
|
7503
7503
|
i && (c.remove(d), o = !0, j(), i = !1);
|
|
7504
|
-
},
|
|
7504
|
+
}, I = (k, S = {}) => {
|
|
7505
7505
|
const L = m();
|
|
7506
7506
|
if (!L)
|
|
7507
7507
|
return;
|
|
@@ -7531,7 +7531,7 @@ const AT = (n, t) => {
|
|
|
7531
7531
|
}, b = () => ({
|
|
7532
7532
|
enabled: i
|
|
7533
7533
|
});
|
|
7534
|
-
return n.on("loaded", A), n.on("willLoad", v), n.on("cameraDirectionUpdate", D), n.on("dispose", T), n.on("renderFrame", j), n.on("cameraPositionUpdate", D), { appendTo:
|
|
7534
|
+
return n.on("loaded", A), n.on("willLoad", v), n.on("cameraDirectionUpdate", D), n.on("dispose", T), n.on("renderFrame", j), n.on("cameraPositionUpdate", D), { appendTo: I, refresh: z, changeConfigs: O, enable: P, disable: E, getCurrentState: b, hooks: e };
|
|
7535
7535
|
};
|
|
7536
7536
|
class b1 extends I0 {
|
|
7537
7537
|
constructor(...t) {
|
|
@@ -8018,8 +8018,8 @@ function As(n, t, e) {
|
|
|
8018
8018
|
if (E >= P)
|
|
8019
8019
|
return m(1, 0), Bs(n, !0, "end"), c(), o = !1;
|
|
8020
8020
|
if (E >= A) {
|
|
8021
|
-
const
|
|
8022
|
-
m(
|
|
8021
|
+
const I = p((E - A) / g);
|
|
8022
|
+
m(I, 1 - I);
|
|
8023
8023
|
}
|
|
8024
8024
|
}
|
|
8025
8025
|
return o;
|
|
@@ -8090,12 +8090,12 @@ function ji(n, t, e, i) {
|
|
|
8090
8090
|
start: ud() + p,
|
|
8091
8091
|
b: g
|
|
8092
8092
|
};
|
|
8093
|
-
g || (E.group = sn, sn.r += 1), a || l ? l = E : (P && (h(), c = hl(n, r, g, m, p, v, P)), g && A(0, 1), a = d(E, m), wt(() => Bs(n, g, "start")), gd((
|
|
8094
|
-
if (l &&
|
|
8095
|
-
if (
|
|
8093
|
+
g || (E.group = sn, sn.r += 1), a || l ? l = E : (P && (h(), c = hl(n, r, g, m, p, v, P)), g && A(0, 1), a = d(E, m), wt(() => Bs(n, g, "start")), gd((I) => {
|
|
8094
|
+
if (l && I > l.start && (a = d(l, m), l = null, Bs(n, a.b, "start"), P && (h(), c = hl(n, r, a.b, a.duration, 0, v, o.css))), a) {
|
|
8095
|
+
if (I >= a.end)
|
|
8096
8096
|
A(r = a.b, 1 - r), Bs(n, a.b, "end"), l || (a.b ? h() : --a.group.r || dt(a.group.c)), a = null;
|
|
8097
|
-
else if (
|
|
8098
|
-
const z =
|
|
8097
|
+
else if (I >= a.start) {
|
|
8098
|
+
const z = I - a.start;
|
|
8099
8099
|
r = a.a + a.d * v(z / a.duration), A(r, 1 - r);
|
|
8100
8100
|
}
|
|
8101
8101
|
}
|
|
@@ -8168,13 +8168,13 @@ function ci(n, t, e, i, s, o, r, a, l, c, h, d) {
|
|
|
8168
8168
|
let O = r.get(T);
|
|
8169
8169
|
O ? i && E.push(() => O.p(j, t)) : (O = c(T, j), O.c()), A.set(T, v[p] = O), T in m && P.set(T, Math.abs(p - m[T]));
|
|
8170
8170
|
}
|
|
8171
|
-
const
|
|
8171
|
+
const I = /* @__PURE__ */ new Set(), z = /* @__PURE__ */ new Set();
|
|
8172
8172
|
function D(j) {
|
|
8173
8173
|
H(j, 1), j.m(a, h), r.set(j.key, j), h = j.first, g--;
|
|
8174
8174
|
}
|
|
8175
8175
|
for (; u && g; ) {
|
|
8176
8176
|
const j = v[g - 1], T = n[u - 1], O = j.key, b = T.key;
|
|
8177
|
-
j === T ? (h = j.first, u--, g--) : A.has(b) ? !r.has(O) ||
|
|
8177
|
+
j === T ? (h = j.first, u--, g--) : A.has(b) ? !r.has(O) || I.has(O) ? D(j) : z.has(b) ? u-- : P.get(O) > P.get(b) ? (z.add(O), D(j)) : (I.add(b), u--) : (l(T, r), u--);
|
|
8178
8178
|
}
|
|
8179
8179
|
for (; u--; ) {
|
|
8180
8180
|
const j = n[u];
|
|
@@ -8963,21 +8963,21 @@ function N2(n, t, e) {
|
|
|
8963
8963
|
const [O] = s.model.intersectRaycaster(z);
|
|
8964
8964
|
return !(O && O.distance + 1 < T);
|
|
8965
8965
|
}
|
|
8966
|
-
function u(E,
|
|
8967
|
-
const D = new ve(E.position.x, E.position.y, E.position.z).clone().project(s.camera), j = Math.ceil((D.x + 1) / 2 *
|
|
8966
|
+
function u(E, I) {
|
|
8967
|
+
const D = new ve(E.position.x, E.position.y, E.position.z).clone().project(s.camera), j = Math.ceil((D.x + 1) / 2 * I.x), T = Math.ceil((-D.y + 1) / 2 * I.y);
|
|
8968
8968
|
return `translate(${j}px, ${T}px)`;
|
|
8969
8969
|
}
|
|
8970
8970
|
function g(E) {
|
|
8971
|
-
const { rendererSize:
|
|
8971
|
+
const { rendererSize: I } = E, z = /* @__PURE__ */ new Map();
|
|
8972
8972
|
function D(T) {
|
|
8973
8973
|
const O = z.get(T.id);
|
|
8974
8974
|
if (O)
|
|
8975
8975
|
return O;
|
|
8976
|
-
const { x: b, y:
|
|
8976
|
+
const { x: b, y: C, z: M } = T.position, k = new ve(b, C, M).clone().distanceTo(s.camera.position);
|
|
8977
8977
|
return z.set(T.id, k), k;
|
|
8978
8978
|
}
|
|
8979
8979
|
return o.map((T) => {
|
|
8980
|
-
const O = d(T), b = O ? u(T,
|
|
8980
|
+
const O = d(T), b = O ? u(T, I) : T.transform, C = D(T), k = o.filter((S) => S.visible && D(S) < C).length * 10;
|
|
8981
8981
|
return he(F({}, T), { visible: O, transform: b, zIndex: k });
|
|
8982
8982
|
});
|
|
8983
8983
|
}
|
|
@@ -9930,7 +9930,7 @@ function v3(n, t) {
|
|
|
9930
9930
|
return s;
|
|
9931
9931
|
}
|
|
9932
9932
|
function A3(n, t, e) {
|
|
9933
|
-
let i, s, o, r, a, l, c, h, d, u, g, p, m, v, A, P, { pxmm: E } = t, { roomAreaEnable:
|
|
9933
|
+
let i, s, o, r, a, l, c, h, d, u, g, p, m, v, A, P, { pxmm: E } = t, { roomAreaEnable: I } = t, { roomNameEnable: z } = t, { roomNameOtherTypeEnable: D } = t, { roomDimensionEnable: j } = t, { room: T } = t, { hoveredRoom: O } = t, { getRoomAreaText: b } = t, { getRoomDimensionText: C } = t, { getLabelElement: M } = t, { adaptiveRoomLabelVisibleEnable: k } = t, { fontSize: S } = t;
|
|
9934
9934
|
function L(le, Se) {
|
|
9935
9935
|
if (Se.width === 0 || Se.height === 0)
|
|
9936
9936
|
return () => !1;
|
|
@@ -9960,14 +9960,14 @@ function A3(n, t, e) {
|
|
|
9960
9960
|
e(7, K = le.detail);
|
|
9961
9961
|
};
|
|
9962
9962
|
return n.$$set = (le) => {
|
|
9963
|
-
"pxmm" in le && e(21, E = le.pxmm), "roomAreaEnable" in le && e(0,
|
|
9963
|
+
"pxmm" in le && e(21, E = le.pxmm), "roomAreaEnable" in le && e(0, I = le.roomAreaEnable), "roomNameEnable" in le && e(1, z = le.roomNameEnable), "roomNameOtherTypeEnable" in le && e(2, D = le.roomNameOtherTypeEnable), "roomDimensionEnable" in le && e(3, j = le.roomDimensionEnable), "room" in le && e(4, T = le.room), "hoveredRoom" in le && e(22, O = le.hoveredRoom), "getRoomAreaText" in le && e(23, b = le.getRoomAreaText), "getRoomDimensionText" in le && e(24, C = le.getRoomDimensionText), "getLabelElement" in le && e(5, M = le.getLabelElement), "adaptiveRoomLabelVisibleEnable" in le && e(25, k = le.adaptiveRoomLabelVisibleEnable), "fontSize" in le && e(26, S = le.fontSize);
|
|
9964
9964
|
}, n.$$.update = () => {
|
|
9965
9965
|
var le, Se;
|
|
9966
9966
|
n.$$.dirty[0] & /*fontSize*/
|
|
9967
9967
|
67108864 && e(28, i = wd[S]), n.$$.dirty[0] & /*getLabelElement, room*/
|
|
9968
9968
|
48 && e(18, s = M == null ? void 0 : M(T)), n.$$.dirty[0] & /*room, getRoomAreaText*/
|
|
9969
9969
|
8388624 && e(17, o = T.size ? b(T.size) : ""), n.$$.dirty[0] & /*room, getRoomDimensionText*/
|
|
9970
|
-
16777232 && e(16, r = T != null && T.dimension ?
|
|
9970
|
+
16777232 && e(16, r = T != null && T.dimension ? C((le = T.dimension) == null ? void 0 : le.width, (Se = T.dimension) == null ? void 0 : Se.height) : ""), n.$$.dirty[0] & /*clientWidth, clientHeight*/
|
|
9971
9971
|
768 && e(34, a = { width: oe, height: $ }), n.$$.dirty[0] & /*room*/
|
|
9972
9972
|
16 | n.$$.dirty[1] & /*labelElementSize*/
|
|
9973
9973
|
8 && e(33, l = a ? L(T, a) : void 0), n.$$.dirty[0] & /*adaptiveRoomLabelVisibleEnable, pxmm*/
|
|
@@ -9988,7 +9988,7 @@ function A3(n, t, e) {
|
|
|
9988
9988
|
268435456 && e(11, A = ut((i == null ? void 0 : i.name) || 12)), n.$$.dirty[0] & /*fontConfig*/
|
|
9989
9989
|
268435456 && e(10, P = ut((i == null ? void 0 : i.area) || 10));
|
|
9990
9990
|
}, [
|
|
9991
|
-
|
|
9991
|
+
I,
|
|
9992
9992
|
z,
|
|
9993
9993
|
D,
|
|
9994
9994
|
j,
|
|
@@ -10012,7 +10012,7 @@ function A3(n, t, e) {
|
|
|
10012
10012
|
E,
|
|
10013
10013
|
O,
|
|
10014
10014
|
b,
|
|
10015
|
-
|
|
10015
|
+
C,
|
|
10016
10016
|
k,
|
|
10017
10017
|
S,
|
|
10018
10018
|
ue,
|
|
@@ -10290,19 +10290,19 @@ function P3(n, t, e) {
|
|
|
10290
10290
|
let i, { floorIndex: s } = t, { roomAreaEnable: o } = t, { roomNameEnable: r } = t, { roomNameOtherTypeEnable: a } = t, { roomDimensionEnable: l } = t, { floorplanData: c } = t, { hoveredRoom: h } = t, { getRoomAreaText: d } = t, { getRoomDimensionText: u } = t, { getLabelElement: g } = t, { adaptiveRoomLabelVisibleEnable: p } = t, m = 0, v = 0;
|
|
10291
10291
|
const A = fa();
|
|
10292
10292
|
let P = or();
|
|
10293
|
-
typeof A == "object" && "subscribe" in A && A.subscribe((
|
|
10294
|
-
e(11, P =
|
|
10293
|
+
typeof A == "object" && "subscribe" in A && A.subscribe((I) => {
|
|
10294
|
+
e(11, P = I);
|
|
10295
10295
|
});
|
|
10296
|
-
const E = (
|
|
10297
|
-
e(9, m =
|
|
10296
|
+
const E = (I) => {
|
|
10297
|
+
e(9, m = I.detail);
|
|
10298
10298
|
};
|
|
10299
|
-
return n.$$set = (
|
|
10300
|
-
"floorIndex" in
|
|
10299
|
+
return n.$$set = (I) => {
|
|
10300
|
+
"floorIndex" in I && e(13, s = I.floorIndex), "roomAreaEnable" in I && e(0, o = I.roomAreaEnable), "roomNameEnable" in I && e(1, r = I.roomNameEnable), "roomNameOtherTypeEnable" in I && e(2, a = I.roomNameOtherTypeEnable), "roomDimensionEnable" in I && e(3, l = I.roomDimensionEnable), "floorplanData" in I && e(14, c = I.floorplanData), "hoveredRoom" in I && e(4, h = I.hoveredRoom), "getRoomAreaText" in I && e(5, d = I.getRoomAreaText), "getRoomDimensionText" in I && e(6, u = I.getRoomDimensionText), "getLabelElement" in I && e(7, g = I.getLabelElement), "adaptiveRoomLabelVisibleEnable" in I && e(8, p = I.adaptiveRoomLabelVisibleEnable);
|
|
10301
10301
|
}, n.$$.update = () => {
|
|
10302
10302
|
if (n.$$.dirty & /*floorplanData, floorIndex*/
|
|
10303
10303
|
24576 && e(12, i = c.floorDatas[s].rooms), n.$$.dirty & /*floorplanData, clientWidth*/
|
|
10304
10304
|
16896) {
|
|
10305
|
-
const { max:
|
|
10305
|
+
const { max: I, min: z } = c.bounding, D = I.x - z.x;
|
|
10306
10306
|
e(10, v = m / D);
|
|
10307
10307
|
}
|
|
10308
10308
|
}, [
|
|
@@ -10528,8 +10528,8 @@ function M3(n, t, e) {
|
|
|
10528
10528
|
});
|
|
10529
10529
|
d.unshift({ left: 0, bottom: 0 }), d.push(a ? { left: 1, bottom: 0 } : { left: 0, bottom: 1 });
|
|
10530
10530
|
const u = h[h.length - 1] - h[0], g = h.map((p, m, v) => {
|
|
10531
|
-
const A = m === 0 ? 0 : p - v[m - 1], P = m === 0 ? 0 : (p + v[m - 1]) / 2, E = a ? (P - o.min.x - yo + wo) / l : 0,
|
|
10532
|
-
return { left: E, bottom:
|
|
10531
|
+
const A = m === 0 ? 0 : p - v[m - 1], P = m === 0 ? 0 : (p + v[m - 1]) / 2, E = a ? (P - o.min.x - yo + wo) / l : 0, I = a ? 0 : (P - o.min.y - yo + wo) / c;
|
|
10532
|
+
return { left: E, bottom: I, distance: A };
|
|
10533
10533
|
}).filter(({ distance: p }) => p / u > 0.1);
|
|
10534
10534
|
return n.$$set = (p) => {
|
|
10535
10535
|
"type" in p && e(0, i = p.type), "data" in p && e(5, s = p.data), "bounding" in p && e(6, o = p.bounding), "getRuleDistanceText" in p && e(1, r = p.getRuleDistanceText);
|
|
@@ -11965,7 +11965,7 @@ function wP(n) {
|
|
|
11965
11965
|
for (let T = 0; T < P.length; T += 1)
|
|
11966
11966
|
E = ft(E, P[T]);
|
|
11967
11967
|
r = new u3({ props: E });
|
|
11968
|
-
let
|
|
11968
|
+
let I = (
|
|
11969
11969
|
/*roomLabelsEnable*/
|
|
11970
11970
|
n[6] && uf(n)
|
|
11971
11971
|
), z = (
|
|
@@ -11980,10 +11980,10 @@ function wP(n) {
|
|
|
11980
11980
|
);
|
|
11981
11981
|
return {
|
|
11982
11982
|
c() {
|
|
11983
|
-
pe(t.$$.fragment), e = ae(), m && m.c(), i = ae(), pe(s.$$.fragment), o = ae(), pe(r.$$.fragment), a = ae(),
|
|
11983
|
+
pe(t.$$.fragment), e = ae(), m && m.c(), i = ae(), pe(s.$$.fragment), o = ae(), pe(r.$$.fragment), a = ae(), I && I.c(), l = ae(), z && z.c(), c = ae(), D && D.c(), h = ae(), j && j.c(), d = Be();
|
|
11984
11984
|
},
|
|
11985
11985
|
m(T, O) {
|
|
11986
|
-
fe(t, T, O), X(T, e, O), m && m.m(T, O), X(T, i, O), fe(s, T, O), X(T, o, O), fe(r, T, O), X(T, a, O),
|
|
11986
|
+
fe(t, T, O), X(T, e, O), m && m.m(T, O), X(T, i, O), fe(s, T, O), X(T, o, O), fe(r, T, O), X(T, a, O), I && I.m(T, O), X(T, l, O), z && z.m(T, O), X(T, c, O), D && D.m(T, O), X(T, h, O), j && j.m(T, O), X(T, d, O), u = !0;
|
|
11987
11987
|
},
|
|
11988
11988
|
p(T, O) {
|
|
11989
11989
|
const b = O & /*floorIndex, floorplanData, roomLabelsEnable, roomDimensionEnable*/
|
|
@@ -12013,7 +12013,7 @@ function wP(n) {
|
|
|
12013
12013
|
40 && H(m, 1)) : (m = df(T), m.c(), H(m, 1), m.m(i.parentNode, i)) : m && (ke(), Y(m, 1, 1, () => {
|
|
12014
12014
|
m = null;
|
|
12015
12015
|
}), xe());
|
|
12016
|
-
const
|
|
12016
|
+
const C = O & /*floorplanData, floorIndex*/
|
|
12017
12017
|
4100 ? vt(v, [
|
|
12018
12018
|
{
|
|
12019
12019
|
floorplanData: (
|
|
@@ -12026,7 +12026,7 @@ function wP(n) {
|
|
|
12026
12026
|
)
|
|
12027
12027
|
}
|
|
12028
12028
|
]) : {};
|
|
12029
|
-
s.$set(
|
|
12029
|
+
s.$set(C);
|
|
12030
12030
|
const M = O & /*floorplanData, floorIndex*/
|
|
12031
12031
|
4100 ? vt(P, [
|
|
12032
12032
|
{
|
|
@@ -12041,9 +12041,9 @@ function wP(n) {
|
|
|
12041
12041
|
}
|
|
12042
12042
|
]) : {};
|
|
12043
12043
|
r.$set(M), /*roomLabelsEnable*/
|
|
12044
|
-
T[6] ?
|
|
12045
|
-
64 && H(
|
|
12046
|
-
|
|
12044
|
+
T[6] ? I ? (I.p(T, O), O & /*roomLabelsEnable*/
|
|
12045
|
+
64 && H(I, 1)) : (I = uf(T), I.c(), H(I, 1), I.m(l.parentNode, l)) : I && (ke(), Y(I, 1, 1, () => {
|
|
12046
|
+
I = null;
|
|
12047
12047
|
}), xe()), /*ruleLabelsEnable*/
|
|
12048
12048
|
T[11] ? z ? (z.p(T, O), O & /*ruleLabelsEnable*/
|
|
12049
12049
|
2048 && H(z, 1)) : (z = ff(T), z.c(), H(z, 1), z.m(c.parentNode, c)) : z && (ke(), Y(z, 1, 1, () => {
|
|
@@ -12059,13 +12059,13 @@ function wP(n) {
|
|
|
12059
12059
|
}), xe());
|
|
12060
12060
|
},
|
|
12061
12061
|
i(T) {
|
|
12062
|
-
u || (H(t.$$.fragment, T), H(m), H(s.$$.fragment, T), H(r.$$.fragment, T), H(
|
|
12062
|
+
u || (H(t.$$.fragment, T), H(m), H(s.$$.fragment, T), H(r.$$.fragment, T), H(I), H(z), H(D), H(j), u = !0);
|
|
12063
12063
|
},
|
|
12064
12064
|
o(T) {
|
|
12065
|
-
Y(t.$$.fragment, T), Y(m), Y(s.$$.fragment, T), Y(r.$$.fragment, T), Y(
|
|
12065
|
+
Y(t.$$.fragment, T), Y(m), Y(s.$$.fragment, T), Y(r.$$.fragment, T), Y(I), Y(z), Y(D), Y(j), u = !1;
|
|
12066
12066
|
},
|
|
12067
12067
|
d(T) {
|
|
12068
|
-
ge(t, T), T && Q(e), m && m.d(T), T && Q(i), ge(s, T), T && Q(o), ge(r, T), T && Q(a),
|
|
12068
|
+
ge(t, T), T && Q(e), m && m.d(T), T && Q(i), ge(s, T), T && Q(o), ge(r, T), T && Q(a), I && I.d(T), T && Q(l), z && z.d(T), T && Q(c), D && D.d(T), T && Q(h), j && j.d(T), T && Q(d);
|
|
12069
12069
|
}
|
|
12070
12070
|
};
|
|
12071
12071
|
}
|
|
@@ -12494,12 +12494,12 @@ function CP(n) {
|
|
|
12494
12494
|
};
|
|
12495
12495
|
}
|
|
12496
12496
|
function IP(n, t, e) {
|
|
12497
|
-
let i, s, { panoIndex: o } = t, { isCurrent: r } = t, { floorIndex: a } = t, { highlightEnable: l } = t, { cameraEnable: c } = t, { hoverEnable: h } = t, { roomLabelsEnable: d } = t, { roomAreaEnable: u } = t, { roomNameEnable: g } = t, { roomNameOtherTypeEnable: p } = t, { roomDimensionEnable: m } = t, { ruleLabelsEnable: v } = t, { floorplanData: A } = t, { getRoomAreaText: P } = t, { getRoomDimensionText: E } = t, { getLabelElement:
|
|
12497
|
+
let i, s, { panoIndex: o } = t, { isCurrent: r } = t, { floorIndex: a } = t, { highlightEnable: l } = t, { cameraEnable: c } = t, { hoverEnable: h } = t, { roomLabelsEnable: d } = t, { roomAreaEnable: u } = t, { roomNameEnable: g } = t, { roomNameOtherTypeEnable: p } = t, { roomDimensionEnable: m } = t, { ruleLabelsEnable: v } = t, { floorplanData: A } = t, { getRoomAreaText: P } = t, { getRoomDimensionText: E } = t, { getLabelElement: I } = t, { getRuleDistanceText: z } = t, { adaptiveRoomLabelVisibleEnable: D } = t, { highlightData: j } = t, { missingFloorConfig: T } = t, { lastPanoramaLongitude: O } = t, { cameraImageUrl: b } = t, { northDesc: C } = t, { compassEnable: M } = t, { store: k = void 0 } = t;
|
|
12498
12498
|
const S = Pd(void 0);
|
|
12499
12499
|
return S.subscribe((L) => {
|
|
12500
12500
|
k && e(26, k.roomOnMouse = L, k);
|
|
12501
12501
|
}), n.$$set = (L) => {
|
|
12502
|
-
"panoIndex" in L && e(0, o = L.panoIndex), "isCurrent" in L && e(1, r = L.isCurrent), "floorIndex" in L && e(2, a = L.floorIndex), "highlightEnable" in L && e(3, l = L.highlightEnable), "cameraEnable" in L && e(4, c = L.cameraEnable), "hoverEnable" in L && e(5, h = L.hoverEnable), "roomLabelsEnable" in L && e(6, d = L.roomLabelsEnable), "roomAreaEnable" in L && e(7, u = L.roomAreaEnable), "roomNameEnable" in L && e(8, g = L.roomNameEnable), "roomNameOtherTypeEnable" in L && e(9, p = L.roomNameOtherTypeEnable), "roomDimensionEnable" in L && e(10, m = L.roomDimensionEnable), "ruleLabelsEnable" in L && e(11, v = L.ruleLabelsEnable), "floorplanData" in L && e(12, A = L.floorplanData), "getRoomAreaText" in L && e(13, P = L.getRoomAreaText), "getRoomDimensionText" in L && e(14, E = L.getRoomDimensionText), "getLabelElement" in L && e(15,
|
|
12502
|
+
"panoIndex" in L && e(0, o = L.panoIndex), "isCurrent" in L && e(1, r = L.isCurrent), "floorIndex" in L && e(2, a = L.floorIndex), "highlightEnable" in L && e(3, l = L.highlightEnable), "cameraEnable" in L && e(4, c = L.cameraEnable), "hoverEnable" in L && e(5, h = L.hoverEnable), "roomLabelsEnable" in L && e(6, d = L.roomLabelsEnable), "roomAreaEnable" in L && e(7, u = L.roomAreaEnable), "roomNameEnable" in L && e(8, g = L.roomNameEnable), "roomNameOtherTypeEnable" in L && e(9, p = L.roomNameOtherTypeEnable), "roomDimensionEnable" in L && e(10, m = L.roomDimensionEnable), "ruleLabelsEnable" in L && e(11, v = L.ruleLabelsEnable), "floorplanData" in L && e(12, A = L.floorplanData), "getRoomAreaText" in L && e(13, P = L.getRoomAreaText), "getRoomDimensionText" in L && e(14, E = L.getRoomDimensionText), "getLabelElement" in L && e(15, I = L.getLabelElement), "getRuleDistanceText" in L && e(16, z = L.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in L && e(17, D = L.adaptiveRoomLabelVisibleEnable), "highlightData" in L && e(18, j = L.highlightData), "missingFloorConfig" in L && e(19, T = L.missingFloorConfig), "lastPanoramaLongitude" in L && e(20, O = L.lastPanoramaLongitude), "cameraImageUrl" in L && e(21, b = L.cameraImageUrl), "northDesc" in L && e(22, C = L.northDesc), "compassEnable" in L && e(23, M = L.compassEnable), "store" in L && e(26, k = L.store);
|
|
12503
12503
|
}, n.$$.update = () => {
|
|
12504
12504
|
n.$$.dirty & /*floorplanData, floorIndex*/
|
|
12505
12505
|
4100 && e(27, i = A.floorDatas[a]), n.$$.dirty & /*floorData*/
|
|
@@ -12520,14 +12520,14 @@ function IP(n, t, e) {
|
|
|
12520
12520
|
A,
|
|
12521
12521
|
P,
|
|
12522
12522
|
E,
|
|
12523
|
-
|
|
12523
|
+
I,
|
|
12524
12524
|
z,
|
|
12525
12525
|
D,
|
|
12526
12526
|
j,
|
|
12527
12527
|
T,
|
|
12528
12528
|
O,
|
|
12529
12529
|
b,
|
|
12530
|
-
|
|
12530
|
+
C,
|
|
12531
12531
|
M,
|
|
12532
12532
|
s,
|
|
12533
12533
|
S,
|
|
@@ -12933,9 +12933,9 @@ function kP(n) {
|
|
|
12933
12933
|
};
|
|
12934
12934
|
}
|
|
12935
12935
|
function xP(n, t, e) {
|
|
12936
|
-
let { duration: i = 0 } = t, { visible: s } = t, { northDesc: o } = t, { panoIndex: r } = t, { floorIndex: a } = t, { cameraEnable: l } = t, { hoverEnable: c } = t, { highlightEnable: h } = t, { compassEnable: d } = t, { roomLabelsEnable: u } = t, { roomAreaEnable: g } = t, { roomNameEnable: p } = t, { roomNameOtherTypeEnable: m } = t, { roomDimensionEnable: v } = t, { ruleLabelsEnable: A } = t, { floorplanData: P } = t, { lastPanoramaLongitude: E } = t, { cameraImageUrl:
|
|
12936
|
+
let { duration: i = 0 } = t, { visible: s } = t, { northDesc: o } = t, { panoIndex: r } = t, { floorIndex: a } = t, { cameraEnable: l } = t, { hoverEnable: c } = t, { highlightEnable: h } = t, { compassEnable: d } = t, { roomLabelsEnable: u } = t, { roomAreaEnable: g } = t, { roomNameEnable: p } = t, { roomNameOtherTypeEnable: m } = t, { roomDimensionEnable: v } = t, { ruleLabelsEnable: A } = t, { floorplanData: P } = t, { lastPanoramaLongitude: E } = t, { cameraImageUrl: I } = t, { getRoomAreaText: z } = t, { getRoomDimensionText: D } = t, { getLabelElement: j } = t, { getRuleDistanceText: T } = t, { adaptiveRoomLabelVisibleEnable: O } = t, { highlightData: b } = t, { missingFloorConfig: C } = t, { store: M = void 0 } = t;
|
|
12937
12937
|
return n.$$set = (k) => {
|
|
12938
|
-
"duration" in k && e(0, i = k.duration), "visible" in k && e(1, s = k.visible), "northDesc" in k && e(2, o = k.northDesc), "panoIndex" in k && e(3, r = k.panoIndex), "floorIndex" in k && e(4, a = k.floorIndex), "cameraEnable" in k && e(5, l = k.cameraEnable), "hoverEnable" in k && e(6, c = k.hoverEnable), "highlightEnable" in k && e(7, h = k.highlightEnable), "compassEnable" in k && e(8, d = k.compassEnable), "roomLabelsEnable" in k && e(9, u = k.roomLabelsEnable), "roomAreaEnable" in k && e(10, g = k.roomAreaEnable), "roomNameEnable" in k && e(11, p = k.roomNameEnable), "roomNameOtherTypeEnable" in k && e(12, m = k.roomNameOtherTypeEnable), "roomDimensionEnable" in k && e(13, v = k.roomDimensionEnable), "ruleLabelsEnable" in k && e(14, A = k.ruleLabelsEnable), "floorplanData" in k && e(15, P = k.floorplanData), "lastPanoramaLongitude" in k && e(16, E = k.lastPanoramaLongitude), "cameraImageUrl" in k && e(17,
|
|
12938
|
+
"duration" in k && e(0, i = k.duration), "visible" in k && e(1, s = k.visible), "northDesc" in k && e(2, o = k.northDesc), "panoIndex" in k && e(3, r = k.panoIndex), "floorIndex" in k && e(4, a = k.floorIndex), "cameraEnable" in k && e(5, l = k.cameraEnable), "hoverEnable" in k && e(6, c = k.hoverEnable), "highlightEnable" in k && e(7, h = k.highlightEnable), "compassEnable" in k && e(8, d = k.compassEnable), "roomLabelsEnable" in k && e(9, u = k.roomLabelsEnable), "roomAreaEnable" in k && e(10, g = k.roomAreaEnable), "roomNameEnable" in k && e(11, p = k.roomNameEnable), "roomNameOtherTypeEnable" in k && e(12, m = k.roomNameOtherTypeEnable), "roomDimensionEnable" in k && e(13, v = k.roomDimensionEnable), "ruleLabelsEnable" in k && e(14, A = k.ruleLabelsEnable), "floorplanData" in k && e(15, P = k.floorplanData), "lastPanoramaLongitude" in k && e(16, E = k.lastPanoramaLongitude), "cameraImageUrl" in k && e(17, I = k.cameraImageUrl), "getRoomAreaText" in k && e(18, z = k.getRoomAreaText), "getRoomDimensionText" in k && e(19, D = k.getRoomDimensionText), "getLabelElement" in k && e(20, j = k.getLabelElement), "getRuleDistanceText" in k && e(21, T = k.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in k && e(22, O = k.adaptiveRoomLabelVisibleEnable), "highlightData" in k && e(23, b = k.highlightData), "missingFloorConfig" in k && e(24, C = k.missingFloorConfig), "store" in k && e(25, M = k.store);
|
|
12939
12939
|
}, [
|
|
12940
12940
|
i,
|
|
12941
12941
|
s,
|
|
@@ -12954,14 +12954,14 @@ function xP(n, t, e) {
|
|
|
12954
12954
|
A,
|
|
12955
12955
|
P,
|
|
12956
12956
|
E,
|
|
12957
|
-
|
|
12957
|
+
I,
|
|
12958
12958
|
z,
|
|
12959
12959
|
D,
|
|
12960
12960
|
j,
|
|
12961
12961
|
T,
|
|
12962
12962
|
O,
|
|
12963
12963
|
b,
|
|
12964
|
-
|
|
12964
|
+
C,
|
|
12965
12965
|
M
|
|
12966
12966
|
];
|
|
12967
12967
|
}
|
|
@@ -13117,7 +13117,7 @@ let bs = class {
|
|
|
13117
13117
|
/**
|
|
13118
13118
|
* @realsee/dnalogel 版本号
|
|
13119
13119
|
*/
|
|
13120
|
-
f(this, "VERSION", "3.72.5-alpha.
|
|
13120
|
+
f(this, "VERSION", "3.72.5-alpha.3");
|
|
13121
13121
|
f(this, "NAME");
|
|
13122
13122
|
f(this, "five");
|
|
13123
13123
|
f(this, "workUtil");
|
|
@@ -16950,29 +16950,29 @@ function ZP(n) {
|
|
|
16950
16950
|
function JP(n, t, e) {
|
|
16951
16951
|
var P, E;
|
|
16952
16952
|
let i, s, o, r, { five: a } = t, { pxmm: l } = t, { floorplanData: c } = t, { cameraImageUrl: h } = t, d = a.getCurrentState().panoIndex, u = a.getCurrentState().longitude, g = (E = (P = a.work.observers[a.getCurrentState().panoIndex]) == null ? void 0 : P.floorIndex) != null ? E : 0;
|
|
16953
|
-
function p(
|
|
16954
|
-
const D =
|
|
16953
|
+
function p(I, z) {
|
|
16954
|
+
const D = I.bounding, j = I.observers[z];
|
|
16955
16955
|
if (!j)
|
|
16956
16956
|
return "";
|
|
16957
|
-
const T = (D.max.x - D.min.x) * l, O = (D.max.y - D.min.y) * l, b = Math.floor(j.positionInImage.x * T),
|
|
16958
|
-
return `translate(${b}px, ${
|
|
16957
|
+
const T = (D.max.x - D.min.x) * l, O = (D.max.y - D.min.y) * l, b = Math.floor(j.positionInImage.x * T), C = Math.floor(j.positionInImage.y * O);
|
|
16958
|
+
return `translate(${b}px, ${C}px)`;
|
|
16959
16959
|
}
|
|
16960
|
-
function m(
|
|
16961
|
-
e(7, d =
|
|
16960
|
+
function m(I) {
|
|
16961
|
+
e(7, d = I);
|
|
16962
16962
|
}
|
|
16963
|
-
function v(
|
|
16964
|
-
e(9, g = a.work.observers[
|
|
16963
|
+
function v(I) {
|
|
16964
|
+
e(9, g = a.work.observers[I].floorIndex);
|
|
16965
16965
|
}
|
|
16966
16966
|
const A = aa(
|
|
16967
|
-
(
|
|
16968
|
-
e(8, u =
|
|
16967
|
+
(I) => {
|
|
16968
|
+
e(8, u = I.longitude);
|
|
16969
16969
|
},
|
|
16970
16970
|
1e3 / 60
|
|
16971
16971
|
);
|
|
16972
16972
|
return Tt(() => (a.on("panoWillArrive", m), a.on("panoArrived", v), a.on("cameraDirectionUpdate", A), function() {
|
|
16973
16973
|
a.off("panoWillArrive", m), a.off("panoArrived", v), a.off("cameraDirectionUpdate", A);
|
|
16974
|
-
})), n.$$set = (
|
|
16975
|
-
"five" in
|
|
16974
|
+
})), n.$$set = (I) => {
|
|
16975
|
+
"five" in I && e(4, a = I.five), "pxmm" in I && e(5, l = I.pxmm), "floorplanData" in I && e(6, c = I.floorplanData), "cameraImageUrl" in I && e(0, h = I.cameraImageUrl);
|
|
16976
16976
|
}, n.$$.update = () => {
|
|
16977
16977
|
n.$$.dirty & /*floorplanData, floorIndex*/
|
|
16978
16978
|
576 && e(10, i = c.floorDatas[g]), n.$$.dirty & /*floorData*/
|
|
@@ -17591,8 +17591,8 @@ function hC(n) {
|
|
|
17591
17591
|
};
|
|
17592
17592
|
}
|
|
17593
17593
|
function dC(n, t, e) {
|
|
17594
|
-
var
|
|
17595
|
-
let { five: i } = t, { visible: s } = t, { hoverEnable: o } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, { highlightData: c } = t, { missingFloorImageUrl: h } = t, d = 0, u = (z = (
|
|
17594
|
+
var I, z;
|
|
17595
|
+
let { five: i } = t, { visible: s } = t, { hoverEnable: o } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, { highlightData: c } = t, { missingFloorImageUrl: h } = t, d = 0, u = (z = (I = i.work.observers[i.getCurrentState().panoIndex]) == null ? void 0 : I.floorIndex) != null ? z : 0, g = 0, p = 0, m = 0, v = 0;
|
|
17596
17596
|
function A(D) {
|
|
17597
17597
|
e(12, u = i.work.observers[D].floorIndex);
|
|
17598
17598
|
}
|
|
@@ -17609,10 +17609,10 @@ function dC(n, t, e) {
|
|
|
17609
17609
|
}, n.$$.update = () => {
|
|
17610
17610
|
if (n.$$.dirty & /*clientWidth, clientHeight, floorplanData, contentWidth*/
|
|
17611
17611
|
1800) {
|
|
17612
|
-
const D = Math.min(g, p), { max: j, min: T } = r.bounding, O = j.x - T.x, b = j.y - T.y,
|
|
17612
|
+
const D = Math.min(g, p), { max: j, min: T } = r.bounding, O = j.x - T.x, b = j.y - T.y, C = function() {
|
|
17613
17613
|
return O > b ? [D, D / O * b] : [D / b * O, D];
|
|
17614
17614
|
}();
|
|
17615
|
-
e(10, m =
|
|
17615
|
+
e(10, m = C[0]), e(13, v = C[1]), e(11, d = m / O);
|
|
17616
17616
|
}
|
|
17617
17617
|
}, [
|
|
17618
17618
|
i,
|
|
@@ -17879,13 +17879,13 @@ function mC(n) {
|
|
|
17879
17879
|
return `rotate(${Math.floor(n / Math.PI * 180) * -1 + 45}deg)`;
|
|
17880
17880
|
}
|
|
17881
17881
|
function vC(n, t, e) {
|
|
17882
|
-
var
|
|
17883
|
-
let i, s, o, r, { five: a } = t, { pxmm: l } = t, { floorplanData: c } = t, { cameraImageUrl: h } = t, { cameraSize: d = 36 } = t, { cameraOffset: u = 28.5 } = t, g = a.getCurrentState().panoIndex, p = a.getCurrentState().longitude, m = (z = (
|
|
17882
|
+
var I, z;
|
|
17883
|
+
let i, s, o, r, { five: a } = t, { pxmm: l } = t, { floorplanData: c } = t, { cameraImageUrl: h } = t, { cameraSize: d = 36 } = t, { cameraOffset: u = 28.5 } = t, g = a.getCurrentState().panoIndex, p = a.getCurrentState().longitude, m = (z = (I = a.work.observers[a.getCurrentState().panoIndex]) == null ? void 0 : I.floorIndex) != null ? z : 0;
|
|
17884
17884
|
function v(D, j) {
|
|
17885
17885
|
const T = D.bounding, O = D.observers[j];
|
|
17886
17886
|
if (!O)
|
|
17887
17887
|
return "";
|
|
17888
|
-
const b = (T.max.x - T.min.x) * l,
|
|
17888
|
+
const b = (T.max.x - T.min.x) * l, C = (T.max.y - T.min.y) * l, M = Math.floor(O.positionInImage.x * b), k = Math.floor(O.positionInImage.y * C);
|
|
17889
17889
|
return `translate(${M}px, ${k}px)`;
|
|
17890
17890
|
}
|
|
17891
17891
|
function A(D) {
|
|
@@ -18642,7 +18642,7 @@ function _C(n, t, e) {
|
|
|
18642
18642
|
let i, s, o, { room: r } = t, { isHovered: a } = t, { roomNameEnable: l } = t, { roomAreaEnable: c } = t, { roomAreaSize: h } = t, { userConfigElement: d } = t, { adaptiveRoomLabelVisibleEnable: u } = t, { pxmm: g } = t, { left: p } = t, { top: m } = t, { createLabelInRoomChecker: v } = t;
|
|
18643
18643
|
const A = Rn();
|
|
18644
18644
|
let P = 0, E = 0;
|
|
18645
|
-
const
|
|
18645
|
+
const I = () => A("mouseenter"), z = () => A("mouseleave"), D = (T) => {
|
|
18646
18646
|
e(8, P = T.detail);
|
|
18647
18647
|
}, j = (T) => {
|
|
18648
18648
|
e(9, E = T.detail);
|
|
@@ -18672,7 +18672,7 @@ function _C(n, t, e) {
|
|
|
18672
18672
|
v,
|
|
18673
18673
|
s,
|
|
18674
18674
|
i,
|
|
18675
|
-
|
|
18675
|
+
I,
|
|
18676
18676
|
z,
|
|
18677
18677
|
D,
|
|
18678
18678
|
j
|
|
@@ -18924,21 +18924,21 @@ function NC(n, t) {
|
|
|
18924
18924
|
}
|
|
18925
18925
|
function GC(n, t, e) {
|
|
18926
18926
|
let i, s, { floorplanData: o } = t, { floorIndex: r } = t, { roomNameEnable: a = !0 } = t, { roomNameOtherTypeEnable: l = !0 } = t, { roomAreaEnable: c = !0 } = t, { adaptiveRoomLabelVisibleEnable: h = !0 } = t, { getRoomAreaText: d } = t, { getLabelElement: u } = t, g = 0, p = 0, m = null;
|
|
18927
|
-
function v(
|
|
18928
|
-
e(7, m =
|
|
18927
|
+
function v(I) {
|
|
18928
|
+
e(7, m = I.id);
|
|
18929
18929
|
}
|
|
18930
18930
|
function A() {
|
|
18931
18931
|
e(7, m = null);
|
|
18932
18932
|
}
|
|
18933
|
-
const P = (
|
|
18934
|
-
e(5, g =
|
|
18933
|
+
const P = (I) => v(I), E = (I) => {
|
|
18934
|
+
e(5, g = I.detail);
|
|
18935
18935
|
};
|
|
18936
|
-
return n.$$set = (
|
|
18937
|
-
"floorplanData" in
|
|
18936
|
+
return n.$$set = (I) => {
|
|
18937
|
+
"floorplanData" in I && e(11, o = I.floorplanData), "floorIndex" in I && e(12, r = I.floorIndex), "roomNameEnable" in I && e(0, a = I.roomNameEnable), "roomNameOtherTypeEnable" in I && e(13, l = I.roomNameOtherTypeEnable), "roomAreaEnable" in I && e(1, c = I.roomAreaEnable), "adaptiveRoomLabelVisibleEnable" in I && e(2, h = I.adaptiveRoomLabelVisibleEnable), "getRoomAreaText" in I && e(3, d = I.getRoomAreaText), "getLabelElement" in I && e(4, u = I.getLabelElement);
|
|
18938
18938
|
}, n.$$.update = () => {
|
|
18939
|
-
var
|
|
18939
|
+
var I, z;
|
|
18940
18940
|
if (n.$$.dirty & /*floorplanData, floorIndex*/
|
|
18941
|
-
6144 && e(14, i = (z = (
|
|
18941
|
+
6144 && e(14, i = (z = (I = o.floorDatas[r]) == null ? void 0 : I.rooms) != null ? z : []), n.$$.dirty & /*roomNameOtherTypeEnable, allRooms*/
|
|
18942
18942
|
24576 && e(8, s = l ? i : i.filter((D) => D.roomType !== "100900000012")), n.$$.dirty & /*floorplanData, clientWidth*/
|
|
18943
18943
|
2080) {
|
|
18944
18944
|
const { max: D, min: j } = o.bounding, T = D.x - j.x;
|
|
@@ -19661,7 +19661,7 @@ function JC(n) {
|
|
|
19661
19661
|
};
|
|
19662
19662
|
}
|
|
19663
19663
|
function KC(n, t, e) {
|
|
19664
|
-
let i, { five: s } = t, { visible: o } = t, { hoverEnable: r } = t, { floorplanData: a } = t, { cameraImageUrl: l } = t, { extraObjects: c = [] } = t, { highlightData: h } = t, { missingFloorImageUrl: d } = t, { missingFloorConfig: u } = t, { clickEnable: g = !0 } = t, { roomLabelsEnable: p = !1 } = t, { roomNameEnable: m = !0 } = t, { roomNameOtherTypeEnable: v = !0 } = t, { roomAreaEnable: A = !0 } = t, { adaptiveRoomLabelVisibleEnable: P = !0 } = t, { getRoomAreaText: E = ($) => ($ / 1e6).toFixed(1) + "㎡" } = t, { getLabelElement:
|
|
19664
|
+
let i, { five: s } = t, { visible: o } = t, { hoverEnable: r } = t, { floorplanData: a } = t, { cameraImageUrl: l } = t, { extraObjects: c = [] } = t, { highlightData: h } = t, { missingFloorImageUrl: d } = t, { missingFloorConfig: u } = t, { clickEnable: g = !0 } = t, { roomLabelsEnable: p = !1 } = t, { roomNameEnable: m = !0 } = t, { roomNameOtherTypeEnable: v = !0 } = t, { roomAreaEnable: A = !0 } = t, { adaptiveRoomLabelVisibleEnable: P = !0 } = t, { getRoomAreaText: E = ($) => ($ / 1e6).toFixed(1) + "㎡" } = t, { getLabelElement: I = void 0 } = t, { compassEnable: z = !1 } = t, { northDesc: D = "北" } = t, { compassHeight: j = 50 } = t, { observerDotSize: T = 12 } = t, { displayedFloorIndex: O } = t, { shouldShowRadar: b = !0 } = t, { cameraSize: C = 36 } = t, { cameraOffset: M = 28.5 } = t, { onFloorplanClick: k = void 0 } = t, S = 0, L = 0, N = 0, B = 0, Z = 0;
|
|
19665
19665
|
function ie($) {
|
|
19666
19666
|
if (!g || !k)
|
|
19667
19667
|
return;
|
|
@@ -19679,7 +19679,7 @@ function KC(n, t, e) {
|
|
|
19679
19679
|
e(26, N = $.detail);
|
|
19680
19680
|
};
|
|
19681
19681
|
return n.$$set = ($) => {
|
|
19682
|
-
"five" in $ && e(0, s = $.five), "visible" in $ && e(1, o = $.visible), "hoverEnable" in $ && e(2, r = $.hoverEnable), "floorplanData" in $ && e(3, a = $.floorplanData), "cameraImageUrl" in $ && e(4, l = $.cameraImageUrl), "extraObjects" in $ && e(5, c = $.extraObjects), "highlightData" in $ && e(6, h = $.highlightData), "missingFloorImageUrl" in $ && e(7, d = $.missingFloorImageUrl), "missingFloorConfig" in $ && e(8, u = $.missingFloorConfig), "clickEnable" in $ && e(9, g = $.clickEnable), "roomLabelsEnable" in $ && e(10, p = $.roomLabelsEnable), "roomNameEnable" in $ && e(11, m = $.roomNameEnable), "roomNameOtherTypeEnable" in $ && e(12, v = $.roomNameOtherTypeEnable), "roomAreaEnable" in $ && e(13, A = $.roomAreaEnable), "adaptiveRoomLabelVisibleEnable" in $ && e(14, P = $.adaptiveRoomLabelVisibleEnable), "getRoomAreaText" in $ && e(15, E = $.getRoomAreaText), "getLabelElement" in $ && e(16,
|
|
19682
|
+
"five" in $ && e(0, s = $.five), "visible" in $ && e(1, o = $.visible), "hoverEnable" in $ && e(2, r = $.hoverEnable), "floorplanData" in $ && e(3, a = $.floorplanData), "cameraImageUrl" in $ && e(4, l = $.cameraImageUrl), "extraObjects" in $ && e(5, c = $.extraObjects), "highlightData" in $ && e(6, h = $.highlightData), "missingFloorImageUrl" in $ && e(7, d = $.missingFloorImageUrl), "missingFloorConfig" in $ && e(8, u = $.missingFloorConfig), "clickEnable" in $ && e(9, g = $.clickEnable), "roomLabelsEnable" in $ && e(10, p = $.roomLabelsEnable), "roomNameEnable" in $ && e(11, m = $.roomNameEnable), "roomNameOtherTypeEnable" in $ && e(12, v = $.roomNameOtherTypeEnable), "roomAreaEnable" in $ && e(13, A = $.roomAreaEnable), "adaptiveRoomLabelVisibleEnable" in $ && e(14, P = $.adaptiveRoomLabelVisibleEnable), "getRoomAreaText" in $ && e(15, E = $.getRoomAreaText), "getLabelElement" in $ && e(16, I = $.getLabelElement), "compassEnable" in $ && e(17, z = $.compassEnable), "northDesc" in $ && e(18, D = $.northDesc), "compassHeight" in $ && e(19, j = $.compassHeight), "observerDotSize" in $ && e(20, T = $.observerDotSize), "displayedFloorIndex" in $ && e(21, O = $.displayedFloorIndex), "shouldShowRadar" in $ && e(22, b = $.shouldShowRadar), "cameraSize" in $ && e(23, C = $.cameraSize), "cameraOffset" in $ && e(24, M = $.cameraOffset), "onFloorplanClick" in $ && e(32, k = $.onFloorplanClick);
|
|
19683
19683
|
}, n.$$.update = () => {
|
|
19684
19684
|
var $;
|
|
19685
19685
|
if (n.$$.dirty[0] & /*clientWidth, clientHeight, floorplanData, contentWidth*/
|
|
@@ -19708,14 +19708,14 @@ function KC(n, t, e) {
|
|
|
19708
19708
|
A,
|
|
19709
19709
|
P,
|
|
19710
19710
|
E,
|
|
19711
|
-
|
|
19711
|
+
I,
|
|
19712
19712
|
z,
|
|
19713
19713
|
D,
|
|
19714
19714
|
j,
|
|
19715
19715
|
T,
|
|
19716
19716
|
O,
|
|
19717
19717
|
b,
|
|
19718
|
-
|
|
19718
|
+
C,
|
|
19719
19719
|
M,
|
|
19720
19720
|
L,
|
|
19721
19721
|
N,
|
|
@@ -20191,7 +20191,7 @@ ys.prototype.k = function() {
|
|
|
20191
20191
|
this.j(n5, s5);
|
|
20192
20192
|
break;
|
|
20193
20193
|
case 2:
|
|
20194
|
-
for (var h = Li(this, 5) + 257, d = Li(this, 5) + 1, u = Li(this, 4) + 4, g = new (mt ? Uint8Array : Array)(wc.length), p = Pi, m = Pi, v = Pi, A = Pi, P = Pi, E = Pi,
|
|
20194
|
+
for (var h = Li(this, 5) + 257, d = Li(this, 5) + 1, u = Li(this, 4) + 4, g = new (mt ? Uint8Array : Array)(wc.length), p = Pi, m = Pi, v = Pi, A = Pi, P = Pi, E = Pi, I = Pi, D = Pi, z = Pi, D = 0; D < u; ++D)
|
|
20195
20195
|
g[wc[D]] = Li(this, 3);
|
|
20196
20196
|
if (!mt)
|
|
20197
20197
|
for (D = u, u = g.length; D < u; ++D)
|
|
@@ -20199,16 +20199,16 @@ ys.prototype.k = function() {
|
|
|
20199
20199
|
for (p = Ds(g), A = new (mt ? Uint8Array : Array)(h + d), D = 0, z = h + d; D < z; )
|
|
20200
20200
|
switch (P = Jr(this, p), P) {
|
|
20201
20201
|
case 16:
|
|
20202
|
-
for (
|
|
20202
|
+
for (I = 3 + Li(this, 2); I--; )
|
|
20203
20203
|
A[D++] = E;
|
|
20204
20204
|
break;
|
|
20205
20205
|
case 17:
|
|
20206
|
-
for (
|
|
20206
|
+
for (I = 3 + Li(this, 3); I--; )
|
|
20207
20207
|
A[D++] = 0;
|
|
20208
20208
|
E = 0;
|
|
20209
20209
|
break;
|
|
20210
20210
|
case 18:
|
|
20211
|
-
for (
|
|
20211
|
+
for (I = 11 + Li(this, 7); I--; )
|
|
20212
20212
|
A[D++] = 0;
|
|
20213
20213
|
E = 0;
|
|
20214
20214
|
break;
|
|
@@ -20483,11 +20483,11 @@ var Kf = U1.Zlib, Y1 = {
|
|
|
20483
20483
|
P[r] = o.slice(0);
|
|
20484
20484
|
P[0][0] = 1;
|
|
20485
20485
|
for (var E = 1; E <= i; ++E) {
|
|
20486
|
-
var
|
|
20487
|
-
O >= E && (P[A][0] = P[v][0] / l[D + 1][z],
|
|
20486
|
+
var I = 0, z = O - E, D = e - E;
|
|
20487
|
+
O >= E && (P[A][0] = P[v][0] / l[D + 1][z], I = P[A][0] * l[z][D]);
|
|
20488
20488
|
for (var j = z >= -1 ? 1 : -z, T = O - 1 <= D ? E - 1 : e - O, d = j; d <= T; ++d)
|
|
20489
|
-
P[A][d] = (P[v][d] - P[v][d - 1]) / l[D + 1][z + d],
|
|
20490
|
-
O <= D && (P[A][E] = -P[v][E - 1] / l[D + 1][O],
|
|
20489
|
+
P[A][d] = (P[v][d] - P[v][d - 1]) / l[D + 1][z + d], I += P[A][d] * l[z + d][D];
|
|
20490
|
+
O <= D && (P[A][E] = -P[v][E - 1] / l[D + 1][O], I += P[A][E] * l[O][D]), a[E][O] = I;
|
|
20491
20491
|
var d = v;
|
|
20492
20492
|
v = A, A = d;
|
|
20493
20493
|
}
|
|
@@ -20618,13 +20618,13 @@ var q1 = function() {
|
|
|
20618
20618
|
}
|
|
20619
20619
|
i.prototype = Object.assign(Object.create(uu.prototype), {
|
|
20620
20620
|
constructor: i,
|
|
20621
|
-
load: function(b,
|
|
20621
|
+
load: function(b, C, M, k) {
|
|
20622
20622
|
var S = this, L = S.path === "" ? rc.extractUrlBase(b) : S.path, N = new WA(this.manager);
|
|
20623
20623
|
N.setPath(S.path), N.setResponseType("arraybuffer"), N.load(
|
|
20624
20624
|
b,
|
|
20625
20625
|
function(B) {
|
|
20626
20626
|
try {
|
|
20627
|
-
|
|
20627
|
+
C(S.parse(B, L));
|
|
20628
20628
|
} catch (Z) {
|
|
20629
20629
|
k ? k(Z) : console.error(Z), S.manager.itemError(b);
|
|
20630
20630
|
}
|
|
@@ -20633,7 +20633,7 @@ var q1 = function() {
|
|
|
20633
20633
|
k
|
|
20634
20634
|
);
|
|
20635
20635
|
},
|
|
20636
|
-
parse: function(b,
|
|
20636
|
+
parse: function(b, C) {
|
|
20637
20637
|
if (d(b))
|
|
20638
20638
|
n = new l().parse(b);
|
|
20639
20639
|
else {
|
|
@@ -20644,18 +20644,18 @@ var q1 = function() {
|
|
|
20644
20644
|
throw new Error("THREE.FBXLoader: FBX version not supported, FileVersion: " + g(M));
|
|
20645
20645
|
n = new a().parse(M);
|
|
20646
20646
|
}
|
|
20647
|
-
var k = new Rh(this.manager).setPath(this.resourcePath ||
|
|
20647
|
+
var k = new Rh(this.manager).setPath(this.resourcePath || C).setCrossOrigin(this.crossOrigin);
|
|
20648
20648
|
return new s(k, this.manager).parse(n);
|
|
20649
20649
|
}
|
|
20650
20650
|
});
|
|
20651
|
-
function s(b,
|
|
20652
|
-
this.textureLoader = b, this.manager =
|
|
20651
|
+
function s(b, C) {
|
|
20652
|
+
this.textureLoader = b, this.manager = C;
|
|
20653
20653
|
}
|
|
20654
20654
|
s.prototype = {
|
|
20655
20655
|
constructor: s,
|
|
20656
20656
|
parse: function() {
|
|
20657
20657
|
t = this.parseConnections();
|
|
20658
|
-
var b = this.parseImages(),
|
|
20658
|
+
var b = this.parseImages(), C = this.parseTextures(b), M = this.parseMaterials(C), k = this.parseDeformers(), S = new o().parse(k);
|
|
20659
20659
|
return this.parseScene(k, S, M), e;
|
|
20660
20660
|
},
|
|
20661
20661
|
// Parses FBXTree.Connections which holds parent-child connections between objects (e.g. material -> texture, model->geometry )
|
|
@@ -20663,8 +20663,8 @@ var q1 = function() {
|
|
|
20663
20663
|
parseConnections: function() {
|
|
20664
20664
|
var b = /* @__PURE__ */ new Map();
|
|
20665
20665
|
if ("Connections" in n) {
|
|
20666
|
-
var
|
|
20667
|
-
|
|
20666
|
+
var C = n.Connections.connections;
|
|
20667
|
+
C.forEach(function(M) {
|
|
20668
20668
|
var k = M[0], S = M[1], L = M[2];
|
|
20669
20669
|
b.has(k) || b.set(k, {
|
|
20670
20670
|
parents: [],
|
|
@@ -20685,7 +20685,7 @@ var q1 = function() {
|
|
|
20685
20685
|
// These images are connected to textures in FBXTree.Objects.Textures
|
|
20686
20686
|
// via FBXTree.Connections.
|
|
20687
20687
|
parseImages: function() {
|
|
20688
|
-
var b = {},
|
|
20688
|
+
var b = {}, C = {};
|
|
20689
20689
|
if ("Video" in n.Objects) {
|
|
20690
20690
|
var M = n.Objects.Video;
|
|
20691
20691
|
for (var k in M) {
|
|
@@ -20694,20 +20694,20 @@ var q1 = function() {
|
|
|
20694
20694
|
var N = S.Content instanceof ArrayBuffer && S.Content.byteLength > 0, B = typeof S.Content == "string" && S.Content !== "";
|
|
20695
20695
|
if (N || B) {
|
|
20696
20696
|
var Z = this.parseImage(M[k]);
|
|
20697
|
-
|
|
20697
|
+
C[S.RelativeFilename || S.Filename] = Z;
|
|
20698
20698
|
}
|
|
20699
20699
|
}
|
|
20700
20700
|
}
|
|
20701
20701
|
}
|
|
20702
20702
|
for (var L in b) {
|
|
20703
20703
|
var ie = b[L];
|
|
20704
|
-
|
|
20704
|
+
C[ie] !== void 0 ? b[L] = C[ie] : b[L] = b[L].split("\\").pop();
|
|
20705
20705
|
}
|
|
20706
20706
|
return b;
|
|
20707
20707
|
},
|
|
20708
20708
|
// Parse embedded image data in FBXTree.Video.Content
|
|
20709
20709
|
parseImage: function(b) {
|
|
20710
|
-
var
|
|
20710
|
+
var C = b.Content, M = b.RelativeFilename || b.Filename, k = M.slice(M.lastIndexOf(".") + 1).toLowerCase(), S;
|
|
20711
20711
|
switch (k) {
|
|
20712
20712
|
case "bmp":
|
|
20713
20713
|
S = "image/bmp";
|
|
@@ -20729,28 +20729,28 @@ var q1 = function() {
|
|
|
20729
20729
|
console.warn('FBXLoader: Image type "' + k + '" is not supported.');
|
|
20730
20730
|
return;
|
|
20731
20731
|
}
|
|
20732
|
-
if (typeof
|
|
20733
|
-
return "data:" + S + ";base64," +
|
|
20734
|
-
var L = new Uint8Array(
|
|
20732
|
+
if (typeof C == "string")
|
|
20733
|
+
return "data:" + S + ";base64," + C;
|
|
20734
|
+
var L = new Uint8Array(C);
|
|
20735
20735
|
return window.URL.createObjectURL(new Blob([L], { type: S }));
|
|
20736
20736
|
},
|
|
20737
20737
|
// Parse nodes in FBXTree.Objects.Texture
|
|
20738
20738
|
// These contain details such as UV scaling, cropping, rotation etc and are connected
|
|
20739
20739
|
// to images in FBXTree.Objects.Video
|
|
20740
20740
|
parseTextures: function(b) {
|
|
20741
|
-
var
|
|
20741
|
+
var C = /* @__PURE__ */ new Map();
|
|
20742
20742
|
if ("Texture" in n.Objects) {
|
|
20743
20743
|
var M = n.Objects.Texture;
|
|
20744
20744
|
for (var k in M) {
|
|
20745
20745
|
var S = this.parseTexture(M[k], b);
|
|
20746
|
-
|
|
20746
|
+
C.set(parseInt(k), S);
|
|
20747
20747
|
}
|
|
20748
20748
|
}
|
|
20749
|
-
return
|
|
20749
|
+
return C;
|
|
20750
20750
|
},
|
|
20751
20751
|
// Parse individual node in FBXTree.Objects.Texture
|
|
20752
|
-
parseTexture: function(b,
|
|
20753
|
-
var M = this.loadTexture(b,
|
|
20752
|
+
parseTexture: function(b, C) {
|
|
20753
|
+
var M = this.loadTexture(b, C);
|
|
20754
20754
|
M.ID = b.id, M.name = b.attrName;
|
|
20755
20755
|
var k = b.WrapModeU, S = b.WrapModeV, L = k !== void 0 ? k.value : 0, N = S !== void 0 ? S.value : 0;
|
|
20756
20756
|
if (M.wrapS = L === 0 ? fu : gu, M.wrapT = N === 0 ? fu : gu, "Scaling" in b) {
|
|
@@ -20760,9 +20760,9 @@ var q1 = function() {
|
|
|
20760
20760
|
return M;
|
|
20761
20761
|
},
|
|
20762
20762
|
// load a texture specified as a blob or data URI, or via an external URL using TextureLoader
|
|
20763
|
-
loadTexture: function(b,
|
|
20763
|
+
loadTexture: function(b, C) {
|
|
20764
20764
|
var M, k = this.textureLoader.path, S = t.get(b.id).children;
|
|
20765
|
-
S !== void 0 && S.length > 0 &&
|
|
20765
|
+
S !== void 0 && S.length > 0 && C[S[0].ID] !== void 0 && (M = C[S[0].ID], (M.indexOf("blob:") === 0 || M.indexOf("data:") === 0) && this.textureLoader.setPath(void 0));
|
|
20766
20766
|
var L, N = b.FileName.slice(-3).toLowerCase();
|
|
20767
20767
|
if (N === "tga") {
|
|
20768
20768
|
var B = this.manager.getHandler(".tga");
|
|
@@ -20773,24 +20773,24 @@ var q1 = function() {
|
|
|
20773
20773
|
},
|
|
20774
20774
|
// Parse nodes in FBXTree.Objects.Material
|
|
20775
20775
|
parseMaterials: function(b) {
|
|
20776
|
-
var
|
|
20776
|
+
var C = /* @__PURE__ */ new Map();
|
|
20777
20777
|
if ("Material" in n.Objects) {
|
|
20778
20778
|
var M = n.Objects.Material;
|
|
20779
20779
|
for (var k in M) {
|
|
20780
20780
|
var S = this.parseMaterial(M[k], b);
|
|
20781
|
-
S !== null &&
|
|
20781
|
+
S !== null && C.set(parseInt(k), S);
|
|
20782
20782
|
}
|
|
20783
20783
|
}
|
|
20784
|
-
return
|
|
20784
|
+
return C;
|
|
20785
20785
|
},
|
|
20786
20786
|
// Parse single node in FBXTree.Objects.Material
|
|
20787
20787
|
// Materials are connected to texture maps in FBXTree.Objects.Textures
|
|
20788
20788
|
// FBX format currently only supports Lambert and Phong shading models
|
|
20789
|
-
parseMaterial: function(b,
|
|
20789
|
+
parseMaterial: function(b, C) {
|
|
20790
20790
|
var M = b.id, k = b.attrName, S = b.ShadingModel;
|
|
20791
20791
|
if (typeof S == "object" && (S = S.value), !t.has(M))
|
|
20792
20792
|
return null;
|
|
20793
|
-
var L = this.parseParameters(b,
|
|
20793
|
+
var L = this.parseParameters(b, C, M), N;
|
|
20794
20794
|
switch (S.toLowerCase()) {
|
|
20795
20795
|
case "phong":
|
|
20796
20796
|
N = new ac();
|
|
@@ -20806,7 +20806,7 @@ var q1 = function() {
|
|
|
20806
20806
|
},
|
|
20807
20807
|
// Parse FBX material and return parameters suitable for a three.js material
|
|
20808
20808
|
// Also parse the texture map and return any textures associated with the material
|
|
20809
|
-
parseParameters: function(b,
|
|
20809
|
+
parseParameters: function(b, C, M) {
|
|
20810
20810
|
var k = {};
|
|
20811
20811
|
b.BumpFactor && (k.bumpScale = b.BumpFactor.value), b.Diffuse ? k.color = new Rt().fromArray(b.Diffuse.value) : b.DiffuseColor && b.DiffuseColor.type === "Color" && (k.color = new Rt().fromArray(b.DiffuseColor.value)), b.DisplacementFactor && (k.displacementScale = b.DisplacementFactor.value), b.Emissive ? k.emissive = new Rt().fromArray(b.Emissive.value) : b.EmissiveColor && b.EmissiveColor.type === "Color" && (k.emissive = new Rt().fromArray(b.EmissiveColor.value)), b.EmissiveFactor && (k.emissiveIntensity = parseFloat(b.EmissiveFactor.value)), b.Opacity && (k.opacity = parseFloat(b.Opacity.value)), k.opacity < 1 && (k.transparent = !0), b.ReflectionFactor && (k.reflectivity = b.ReflectionFactor.value), b.Shininess && (k.shininess = b.Shininess.value), b.Specular ? k.specular = new Rt().fromArray(b.Specular.value) : b.SpecularColor && b.SpecularColor.type === "Color" && (k.specular = new Rt().fromArray(b.SpecularColor.value));
|
|
20812
20812
|
var S = this;
|
|
@@ -20814,34 +20814,34 @@ var q1 = function() {
|
|
|
20814
20814
|
var N = L.relationship;
|
|
20815
20815
|
switch (N) {
|
|
20816
20816
|
case "Bump":
|
|
20817
|
-
k.bumpMap = S.getTexture(
|
|
20817
|
+
k.bumpMap = S.getTexture(C, L.ID);
|
|
20818
20818
|
break;
|
|
20819
20819
|
case "Maya|TEX_ao_map":
|
|
20820
|
-
k.aoMap = S.getTexture(
|
|
20820
|
+
k.aoMap = S.getTexture(C, L.ID);
|
|
20821
20821
|
break;
|
|
20822
20822
|
case "DiffuseColor":
|
|
20823
20823
|
case "Maya|TEX_color_map":
|
|
20824
|
-
k.map = S.getTexture(
|
|
20824
|
+
k.map = S.getTexture(C, L.ID), k.map.encoding = Sr;
|
|
20825
20825
|
break;
|
|
20826
20826
|
case "DisplacementColor":
|
|
20827
|
-
k.displacementMap = S.getTexture(
|
|
20827
|
+
k.displacementMap = S.getTexture(C, L.ID);
|
|
20828
20828
|
break;
|
|
20829
20829
|
case "EmissiveColor":
|
|
20830
|
-
k.emissiveMap = S.getTexture(
|
|
20830
|
+
k.emissiveMap = S.getTexture(C, L.ID), k.emissiveMap.encoding = Sr;
|
|
20831
20831
|
break;
|
|
20832
20832
|
case "NormalMap":
|
|
20833
20833
|
case "Maya|TEX_normal_map":
|
|
20834
|
-
k.normalMap = S.getTexture(
|
|
20834
|
+
k.normalMap = S.getTexture(C, L.ID);
|
|
20835
20835
|
break;
|
|
20836
20836
|
case "ReflectionColor":
|
|
20837
|
-
k.envMap = S.getTexture(
|
|
20837
|
+
k.envMap = S.getTexture(C, L.ID), k.envMap.mapping = QA, k.envMap.encoding = Sr;
|
|
20838
20838
|
break;
|
|
20839
20839
|
case "SpecularColor":
|
|
20840
|
-
k.specularMap = S.getTexture(
|
|
20840
|
+
k.specularMap = S.getTexture(C, L.ID), k.specularMap.encoding = Sr;
|
|
20841
20841
|
break;
|
|
20842
20842
|
case "TransparentColor":
|
|
20843
20843
|
case "TransparencyFactor":
|
|
20844
|
-
k.alphaMap = S.getTexture(
|
|
20844
|
+
k.alphaMap = S.getTexture(C, L.ID), k.transparent = !0;
|
|
20845
20845
|
break;
|
|
20846
20846
|
case "AmbientColor":
|
|
20847
20847
|
case "ShininessExponent":
|
|
@@ -20854,14 +20854,14 @@ var q1 = function() {
|
|
|
20854
20854
|
}), k;
|
|
20855
20855
|
},
|
|
20856
20856
|
// get a texture from the textureMap for use by a material.
|
|
20857
|
-
getTexture: function(b,
|
|
20858
|
-
return "LayeredTexture" in n.Objects &&
|
|
20857
|
+
getTexture: function(b, C) {
|
|
20858
|
+
return "LayeredTexture" in n.Objects && C in n.Objects.LayeredTexture && (console.warn("THREE.FBXLoader: layered textures are not supported in three.js. Discarding all but first layer."), C = t.get(C).children[0].ID), b.get(C);
|
|
20859
20859
|
},
|
|
20860
20860
|
// Parse nodes in FBXTree.Objects.Deformer
|
|
20861
20861
|
// Deformer node can contain skinning or Vertex Cache animation data, however only skinning is supported here
|
|
20862
20862
|
// Generates map of Skeleton-like objects for use later when generating and binding skeletons.
|
|
20863
20863
|
parseDeformers: function() {
|
|
20864
|
-
var b = {},
|
|
20864
|
+
var b = {}, C = {};
|
|
20865
20865
|
if ("Deformer" in n.Objects) {
|
|
20866
20866
|
var M = n.Objects.Deformer;
|
|
20867
20867
|
for (var k in M) {
|
|
@@ -20873,22 +20873,22 @@ var q1 = function() {
|
|
|
20873
20873
|
var B = {
|
|
20874
20874
|
id: k
|
|
20875
20875
|
};
|
|
20876
|
-
B.rawTargets = this.parseMorphTargets(L, M), B.id = k, L.parents.length > 1 && console.warn("THREE.FBXLoader: morph target attached to more than one geometry is not supported."),
|
|
20876
|
+
B.rawTargets = this.parseMorphTargets(L, M), B.id = k, L.parents.length > 1 && console.warn("THREE.FBXLoader: morph target attached to more than one geometry is not supported."), C[k] = B;
|
|
20877
20877
|
}
|
|
20878
20878
|
}
|
|
20879
20879
|
}
|
|
20880
20880
|
return {
|
|
20881
20881
|
skeletons: b,
|
|
20882
|
-
morphTargets:
|
|
20882
|
+
morphTargets: C
|
|
20883
20883
|
};
|
|
20884
20884
|
},
|
|
20885
20885
|
// Parse single nodes in FBXTree.Objects.Deformer
|
|
20886
20886
|
// The top level skeleton node has type 'Skin' and sub nodes have type 'Cluster'
|
|
20887
20887
|
// Each skin node represents a skeleton and each cluster node represents a bone
|
|
20888
|
-
parseSkeleton: function(b,
|
|
20888
|
+
parseSkeleton: function(b, C) {
|
|
20889
20889
|
var M = [];
|
|
20890
20890
|
return b.children.forEach(function(k) {
|
|
20891
|
-
var S =
|
|
20891
|
+
var S = C[k.ID];
|
|
20892
20892
|
if (S.attrType === "Cluster") {
|
|
20893
20893
|
var L = {
|
|
20894
20894
|
ID: k.ID,
|
|
@@ -20906,9 +20906,9 @@ var q1 = function() {
|
|
|
20906
20906
|
};
|
|
20907
20907
|
},
|
|
20908
20908
|
// The top level morph deformer node has type "BlendShape" and sub nodes have type "BlendShapeChannel"
|
|
20909
|
-
parseMorphTargets: function(b,
|
|
20909
|
+
parseMorphTargets: function(b, C) {
|
|
20910
20910
|
for (var M = [], k = 0; k < b.children.length; k++) {
|
|
20911
|
-
var S = b.children[k], L =
|
|
20911
|
+
var S = b.children[k], L = C[S.ID], N = {
|
|
20912
20912
|
name: L.attrName,
|
|
20913
20913
|
initialWeight: L.DeformPercent,
|
|
20914
20914
|
id: L.id,
|
|
@@ -20923,9 +20923,9 @@ var q1 = function() {
|
|
|
20923
20923
|
return M;
|
|
20924
20924
|
},
|
|
20925
20925
|
// create the main Group() to be returned by the loader
|
|
20926
|
-
parseScene: function(b,
|
|
20926
|
+
parseScene: function(b, C, M) {
|
|
20927
20927
|
e = new Sn();
|
|
20928
|
-
var k = this.parseModels(b.skeletons,
|
|
20928
|
+
var k = this.parseModels(b.skeletons, C, M), S = n.Objects.Model, L = this;
|
|
20929
20929
|
k.forEach(function(B) {
|
|
20930
20930
|
var Z = S[B.ID];
|
|
20931
20931
|
L.setLookAtProperties(B, Z);
|
|
@@ -20934,7 +20934,7 @@ var q1 = function() {
|
|
|
20934
20934
|
var oe = k.get(K.ID);
|
|
20935
20935
|
oe !== void 0 && oe.add(B);
|
|
20936
20936
|
}), B.parent === null && e.add(B);
|
|
20937
|
-
}), this.bindSkeleton(b.skeletons,
|
|
20937
|
+
}), this.bindSkeleton(b.skeletons, C, k), this.createAmbientLight(), this.setupMorphMaterials(), e.traverse(function(B) {
|
|
20938
20938
|
if (B.userData.transformData) {
|
|
20939
20939
|
B.parent && (B.userData.transformData.parentMatrixWorld = B.parent.matrix);
|
|
20940
20940
|
var Z = E(B.userData.transformData);
|
|
@@ -20945,7 +20945,7 @@ var q1 = function() {
|
|
|
20945
20945
|
e.children.length === 1 && e.children[0].isGroup && (e.children[0].animations = N, e = e.children[0]), e.animations = N;
|
|
20946
20946
|
},
|
|
20947
20947
|
// parse nodes in FBXTree.Objects.Model
|
|
20948
|
-
parseModels: function(b,
|
|
20948
|
+
parseModels: function(b, C, M) {
|
|
20949
20949
|
var k = /* @__PURE__ */ new Map(), S = n.Objects.Model;
|
|
20950
20950
|
for (var L in S) {
|
|
20951
20951
|
var N = parseInt(L), B = S[L], Z = t.get(N), ie = this.buildSkeleton(Z, b, N, B.attrName);
|
|
@@ -20958,10 +20958,10 @@ var q1 = function() {
|
|
|
20958
20958
|
ie = this.createLight(Z);
|
|
20959
20959
|
break;
|
|
20960
20960
|
case "Mesh":
|
|
20961
|
-
ie = this.createMesh(Z,
|
|
20961
|
+
ie = this.createMesh(Z, C, M);
|
|
20962
20962
|
break;
|
|
20963
20963
|
case "NurbsCurve":
|
|
20964
|
-
ie = this.createCurve(Z,
|
|
20964
|
+
ie = this.createCurve(Z, C);
|
|
20965
20965
|
break;
|
|
20966
20966
|
case "LimbNode":
|
|
20967
20967
|
case "Root":
|
|
@@ -20978,11 +20978,11 @@ var q1 = function() {
|
|
|
20978
20978
|
}
|
|
20979
20979
|
return k;
|
|
20980
20980
|
},
|
|
20981
|
-
buildSkeleton: function(b,
|
|
20981
|
+
buildSkeleton: function(b, C, M, k) {
|
|
20982
20982
|
var S = null;
|
|
20983
20983
|
return b.parents.forEach(function(L) {
|
|
20984
|
-
for (var N in
|
|
20985
|
-
var B =
|
|
20984
|
+
for (var N in C) {
|
|
20985
|
+
var B = C[N];
|
|
20986
20986
|
B.rawBones.forEach(function(Z, ie) {
|
|
20987
20987
|
if (Z.ID === L.ID) {
|
|
20988
20988
|
var K = S;
|
|
@@ -20994,12 +20994,12 @@ var q1 = function() {
|
|
|
20994
20994
|
},
|
|
20995
20995
|
// create a PerspectiveCamera or OrthographicCamera
|
|
20996
20996
|
createCamera: function(b) {
|
|
20997
|
-
var
|
|
20997
|
+
var C, M;
|
|
20998
20998
|
if (b.children.forEach(function(oe) {
|
|
20999
20999
|
var $ = n.Objects.NodeAttribute[oe.ID];
|
|
21000
21000
|
$ !== void 0 && (M = $);
|
|
21001
21001
|
}), M === void 0)
|
|
21002
|
-
|
|
21002
|
+
C = new To();
|
|
21003
21003
|
else {
|
|
21004
21004
|
var k = 0;
|
|
21005
21005
|
M.CameraProjectionType !== void 0 && M.CameraProjectionType.value === 1 && (k = 1);
|
|
@@ -21014,26 +21014,26 @@ var q1 = function() {
|
|
|
21014
21014
|
var K = M.FocalLength ? M.FocalLength.value : null;
|
|
21015
21015
|
switch (k) {
|
|
21016
21016
|
case 0:
|
|
21017
|
-
|
|
21017
|
+
C = new YA(ie, Z, S, L), K !== null && C.setFocalLength(K);
|
|
21018
21018
|
break;
|
|
21019
21019
|
case 1:
|
|
21020
|
-
|
|
21020
|
+
C = new XA(-N / 2, N / 2, B / 2, -B / 2, S, L);
|
|
21021
21021
|
break;
|
|
21022
21022
|
default:
|
|
21023
|
-
console.warn("THREE.FBXLoader: Unknown camera type " + k + "."),
|
|
21023
|
+
console.warn("THREE.FBXLoader: Unknown camera type " + k + "."), C = new To();
|
|
21024
21024
|
break;
|
|
21025
21025
|
}
|
|
21026
21026
|
}
|
|
21027
|
-
return
|
|
21027
|
+
return C;
|
|
21028
21028
|
},
|
|
21029
21029
|
// Create a DirectionalLight, PointLight or SpotLight
|
|
21030
21030
|
createLight: function(b) {
|
|
21031
|
-
var
|
|
21031
|
+
var C, M;
|
|
21032
21032
|
if (b.children.forEach(function(K) {
|
|
21033
21033
|
var oe = n.Objects.NodeAttribute[K.ID];
|
|
21034
21034
|
oe !== void 0 && (M = oe);
|
|
21035
21035
|
}), M === void 0)
|
|
21036
|
-
|
|
21036
|
+
C = new To();
|
|
21037
21037
|
else {
|
|
21038
21038
|
var k;
|
|
21039
21039
|
M.LightType === void 0 ? k = 0 : k = M.LightType.value;
|
|
@@ -21046,48 +21046,48 @@ var q1 = function() {
|
|
|
21046
21046
|
var B = 1;
|
|
21047
21047
|
switch (k) {
|
|
21048
21048
|
case 0:
|
|
21049
|
-
|
|
21049
|
+
C = new vu(S, L, N, B);
|
|
21050
21050
|
break;
|
|
21051
21051
|
case 1:
|
|
21052
|
-
|
|
21052
|
+
C = new ZA(S, L);
|
|
21053
21053
|
break;
|
|
21054
21054
|
case 2:
|
|
21055
21055
|
var Z = Math.PI / 3;
|
|
21056
21056
|
M.InnerAngle !== void 0 && (Z = Ki.degToRad(M.InnerAngle.value));
|
|
21057
21057
|
var ie = 0;
|
|
21058
|
-
M.OuterAngle !== void 0 && (ie = Ki.degToRad(M.OuterAngle.value), ie = Math.max(ie, 1)),
|
|
21058
|
+
M.OuterAngle !== void 0 && (ie = Ki.degToRad(M.OuterAngle.value), ie = Math.max(ie, 1)), C = new qA(S, L, N, Z, ie, B);
|
|
21059
21059
|
break;
|
|
21060
21060
|
default:
|
|
21061
|
-
console.warn("THREE.FBXLoader: Unknown light type " + M.LightType.value + ", defaulting to a PointLight."),
|
|
21061
|
+
console.warn("THREE.FBXLoader: Unknown light type " + M.LightType.value + ", defaulting to a PointLight."), C = new vu(S, L);
|
|
21062
21062
|
break;
|
|
21063
21063
|
}
|
|
21064
|
-
M.CastShadows !== void 0 && M.CastShadows.value === 1 && (
|
|
21064
|
+
M.CastShadows !== void 0 && M.CastShadows.value === 1 && (C.castShadow = !0);
|
|
21065
21065
|
}
|
|
21066
|
-
return
|
|
21066
|
+
return C;
|
|
21067
21067
|
},
|
|
21068
|
-
createMesh: function(b,
|
|
21068
|
+
createMesh: function(b, C, M) {
|
|
21069
21069
|
var k, S = null, L = null, N = [];
|
|
21070
21070
|
return b.children.forEach(function(B) {
|
|
21071
|
-
|
|
21071
|
+
C.has(B.ID) && (S = C.get(B.ID)), M.has(B.ID) && N.push(M.get(B.ID));
|
|
21072
21072
|
}), N.length > 1 ? L = N : N.length > 0 ? L = N[0] : (L = new ac({ color: 13421772 }), N.push(L)), "color" in S.attributes && N.forEach(function(B) {
|
|
21073
21073
|
B.vertexColors = !0;
|
|
21074
21074
|
}), S.FBX_Deformer ? (N.forEach(function(B) {
|
|
21075
21075
|
B.skinning = !0;
|
|
21076
21076
|
}), k = new JA(S, L), k.normalizeSkinWeights()) : k = new Lo(S, L), k;
|
|
21077
21077
|
},
|
|
21078
|
-
createCurve: function(b,
|
|
21078
|
+
createCurve: function(b, C) {
|
|
21079
21079
|
var M = b.children.reduce(function(S, L) {
|
|
21080
|
-
return
|
|
21080
|
+
return C.has(L.ID) && (S = C.get(L.ID)), S;
|
|
21081
21081
|
}, null), k = new KA({ color: 3342591, linewidth: 1 });
|
|
21082
21082
|
return new $A(M, k);
|
|
21083
21083
|
},
|
|
21084
21084
|
// parse the model node for transform data
|
|
21085
|
-
getTransformData: function(b,
|
|
21085
|
+
getTransformData: function(b, C) {
|
|
21086
21086
|
var M = {};
|
|
21087
|
-
"InheritType" in
|
|
21087
|
+
"InheritType" in C && (M.inheritType = parseInt(C.InheritType.value)), "RotationOrder" in C ? M.eulerOrder = I(C.RotationOrder.value) : M.eulerOrder = "ZYX", "Lcl_Translation" in C && (M.translation = C.Lcl_Translation.value), "PreRotation" in C && (M.preRotation = C.PreRotation.value), "Lcl_Rotation" in C && (M.rotation = C.Lcl_Rotation.value), "PostRotation" in C && (M.postRotation = C.PostRotation.value), "Lcl_Scaling" in C && (M.scale = C.Lcl_Scaling.value), "ScalingOffset" in C && (M.scalingOffset = C.ScalingOffset.value), "ScalingPivot" in C && (M.scalingPivot = C.ScalingPivot.value), "RotationOffset" in C && (M.rotationOffset = C.RotationOffset.value), "RotationPivot" in C && (M.rotationPivot = C.RotationPivot.value), b.userData.transformData = M;
|
|
21088
21088
|
},
|
|
21089
|
-
setLookAtProperties: function(b,
|
|
21090
|
-
if ("LookAtProperty" in
|
|
21089
|
+
setLookAtProperties: function(b, C) {
|
|
21090
|
+
if ("LookAtProperty" in C) {
|
|
21091
21091
|
var M = t.get(b.ID).children;
|
|
21092
21092
|
M.forEach(function(k) {
|
|
21093
21093
|
if (k.relationship === "LookAtProperty") {
|
|
@@ -21100,12 +21100,12 @@ var q1 = function() {
|
|
|
21100
21100
|
});
|
|
21101
21101
|
}
|
|
21102
21102
|
},
|
|
21103
|
-
bindSkeleton: function(b,
|
|
21103
|
+
bindSkeleton: function(b, C, M) {
|
|
21104
21104
|
var k = this.parsePoseNodes();
|
|
21105
21105
|
for (var S in b) {
|
|
21106
21106
|
var L = b[S], N = t.get(parseInt(L.ID)).parents;
|
|
21107
21107
|
N.forEach(function(B) {
|
|
21108
|
-
if (
|
|
21108
|
+
if (C.has(B.ID)) {
|
|
21109
21109
|
var Z = B.ID, ie = t.get(Z);
|
|
21110
21110
|
ie.parents.forEach(function(K) {
|
|
21111
21111
|
if (M.has(K.ID)) {
|
|
@@ -21120,10 +21120,10 @@ var q1 = function() {
|
|
|
21120
21120
|
parsePoseNodes: function() {
|
|
21121
21121
|
var b = {};
|
|
21122
21122
|
if ("Pose" in n.Objects) {
|
|
21123
|
-
var
|
|
21124
|
-
for (var M in
|
|
21125
|
-
if (
|
|
21126
|
-
var k =
|
|
21123
|
+
var C = n.Objects.Pose;
|
|
21124
|
+
for (var M in C)
|
|
21125
|
+
if (C[M].attrType === "BindPose") {
|
|
21126
|
+
var k = C[M].PoseNode;
|
|
21127
21127
|
Array.isArray(k) ? k.forEach(function(S) {
|
|
21128
21128
|
b[S.Node] = new ot().fromArray(S.Matrix.a);
|
|
21129
21129
|
}) : b[k.Node] = new ot().fromArray(k.Matrix.a);
|
|
@@ -21134,32 +21134,32 @@ var q1 = function() {
|
|
|
21134
21134
|
// Parse ambient color in FBXTree.GlobalSettings - if it's not set to black (default), create an ambient light
|
|
21135
21135
|
createAmbientLight: function() {
|
|
21136
21136
|
if ("GlobalSettings" in n && "AmbientColor" in n.GlobalSettings) {
|
|
21137
|
-
var b = n.GlobalSettings.AmbientColor.value,
|
|
21138
|
-
if (
|
|
21139
|
-
var S = new Rt(
|
|
21137
|
+
var b = n.GlobalSettings.AmbientColor.value, C = b[0], M = b[1], k = b[2];
|
|
21138
|
+
if (C !== 0 || M !== 0 || k !== 0) {
|
|
21139
|
+
var S = new Rt(C, M, k);
|
|
21140
21140
|
e.add(new tb(S, 1));
|
|
21141
21141
|
}
|
|
21142
21142
|
}
|
|
21143
21143
|
},
|
|
21144
21144
|
setupMorphMaterials: function() {
|
|
21145
21145
|
var b = this;
|
|
21146
|
-
e.traverse(function(
|
|
21147
|
-
|
|
21148
|
-
b.setupMorphMaterial(
|
|
21149
|
-
}) : b.setupMorphMaterial(
|
|
21146
|
+
e.traverse(function(C) {
|
|
21147
|
+
C.isMesh && C.geometry.morphAttributes.position && C.geometry.morphAttributes.position.length && (Array.isArray(C.material) ? C.material.forEach(function(M, k) {
|
|
21148
|
+
b.setupMorphMaterial(C, M, k);
|
|
21149
|
+
}) : b.setupMorphMaterial(C, C.material));
|
|
21150
21150
|
});
|
|
21151
21151
|
},
|
|
21152
|
-
setupMorphMaterial: function(b,
|
|
21153
|
-
var k = b.uuid, S =
|
|
21152
|
+
setupMorphMaterial: function(b, C, M) {
|
|
21153
|
+
var k = b.uuid, S = C.uuid, L = !1;
|
|
21154
21154
|
if (e.traverse(function(B) {
|
|
21155
21155
|
B.isMesh && (Array.isArray(B.material) ? B.material.forEach(function(Z) {
|
|
21156
21156
|
Z.uuid === S && B.uuid !== k && (L = !0);
|
|
21157
21157
|
}) : B.material.uuid === S && B.uuid !== k && (L = !0));
|
|
21158
21158
|
}), L === !0) {
|
|
21159
|
-
var N =
|
|
21159
|
+
var N = C.clone();
|
|
21160
21160
|
N.morphTargets = !0, M === void 0 ? b.material = N : b.material[M] = N;
|
|
21161
21161
|
} else
|
|
21162
|
-
|
|
21162
|
+
C.morphTargets = !0;
|
|
21163
21163
|
}
|
|
21164
21164
|
};
|
|
21165
21165
|
function o() {
|
|
@@ -21168,27 +21168,27 @@ var q1 = function() {
|
|
|
21168
21168
|
constructor: o,
|
|
21169
21169
|
// Parse nodes in FBXTree.Objects.Geometry
|
|
21170
21170
|
parse: function(b) {
|
|
21171
|
-
var
|
|
21171
|
+
var C = /* @__PURE__ */ new Map();
|
|
21172
21172
|
if ("Geometry" in n.Objects) {
|
|
21173
21173
|
var M = n.Objects.Geometry;
|
|
21174
21174
|
for (var k in M) {
|
|
21175
21175
|
var S = t.get(parseInt(k)), L = this.parseGeometry(S, M[k], b);
|
|
21176
|
-
|
|
21176
|
+
C.set(parseInt(k), L);
|
|
21177
21177
|
}
|
|
21178
21178
|
}
|
|
21179
|
-
return
|
|
21179
|
+
return C;
|
|
21180
21180
|
},
|
|
21181
21181
|
// Parse single node in FBXTree.Objects.Geometry
|
|
21182
|
-
parseGeometry: function(b,
|
|
21183
|
-
switch (
|
|
21182
|
+
parseGeometry: function(b, C, M) {
|
|
21183
|
+
switch (C.attrType) {
|
|
21184
21184
|
case "Mesh":
|
|
21185
|
-
return this.parseMeshGeometry(b,
|
|
21185
|
+
return this.parseMeshGeometry(b, C, M);
|
|
21186
21186
|
case "NurbsCurve":
|
|
21187
|
-
return this.parseNurbsGeometry(
|
|
21187
|
+
return this.parseNurbsGeometry(C);
|
|
21188
21188
|
}
|
|
21189
21189
|
},
|
|
21190
21190
|
// Parse single node mesh geometry in FBXTree.Objects.Geometry
|
|
21191
|
-
parseMeshGeometry: function(b,
|
|
21191
|
+
parseMeshGeometry: function(b, C, M) {
|
|
21192
21192
|
var k = M.skeletons, S = [], L = b.parents.map(function(K) {
|
|
21193
21193
|
return n.Objects.Model[K.ID];
|
|
21194
21194
|
});
|
|
@@ -21200,17 +21200,17 @@ var q1 = function() {
|
|
|
21200
21200
|
M.morphTargets[K.ID] !== void 0 && S.push(M.morphTargets[K.ID]);
|
|
21201
21201
|
});
|
|
21202
21202
|
var B = L[0], Z = {};
|
|
21203
|
-
"RotationOrder" in B && (Z.eulerOrder =
|
|
21203
|
+
"RotationOrder" in B && (Z.eulerOrder = I(B.RotationOrder.value)), "InheritType" in B && (Z.inheritType = parseInt(B.InheritType.value)), "GeometricTranslation" in B && (Z.translation = B.GeometricTranslation.value), "GeometricRotation" in B && (Z.rotation = B.GeometricRotation.value), "GeometricScaling" in B && (Z.scale = B.GeometricScaling.value);
|
|
21204
21204
|
var ie = E(Z);
|
|
21205
|
-
return this.genGeometry(
|
|
21205
|
+
return this.genGeometry(C, N, S, ie);
|
|
21206
21206
|
}
|
|
21207
21207
|
},
|
|
21208
21208
|
// Generate a BufferGeometry from a node in FBXTree.Objects.Geometry
|
|
21209
|
-
genGeometry: function(b,
|
|
21209
|
+
genGeometry: function(b, C, M, k) {
|
|
21210
21210
|
var S = new ka();
|
|
21211
21211
|
b.attrName && (S.name = b.attrName);
|
|
21212
|
-
var L = this.parseGeoNode(b,
|
|
21213
|
-
if (B.applyMatrix4(k), S.setAttribute("position", B), N.colors.length > 0 && S.setAttribute("color", new po(N.colors, 3)),
|
|
21212
|
+
var L = this.parseGeoNode(b, C), N = this.genBuffers(L), B = new po(N.vertex, 3);
|
|
21213
|
+
if (B.applyMatrix4(k), S.setAttribute("position", B), N.colors.length > 0 && S.setAttribute("color", new po(N.colors, 3)), C && (S.setAttribute("skinIndex", new ib(N.weightsIndices, 4)), S.setAttribute("skinWeight", new po(N.vertexWeights, 4)), S.FBX_Deformer = C), N.normal.length > 0) {
|
|
21214
21214
|
var Z = new nb().getNormalMatrix(k), ie = new po(N.normal, 3);
|
|
21215
21215
|
ie.applyNormalMatrix(Z), S.setAttribute("normal", ie);
|
|
21216
21216
|
}
|
|
@@ -21229,14 +21229,14 @@ var q1 = function() {
|
|
|
21229
21229
|
}
|
|
21230
21230
|
return this.addMorphTargets(S, b, M, k), S;
|
|
21231
21231
|
},
|
|
21232
|
-
parseGeoNode: function(b,
|
|
21232
|
+
parseGeoNode: function(b, C) {
|
|
21233
21233
|
var M = {};
|
|
21234
21234
|
if (M.vertexPositions = b.Vertices !== void 0 ? b.Vertices.a : [], M.vertexIndices = b.PolygonVertexIndex !== void 0 ? b.PolygonVertexIndex.a : [], b.LayerElementColor && (M.color = this.parseVertexColors(b.LayerElementColor[0])), b.LayerElementMaterial && (M.material = this.parseMaterialIndices(b.LayerElementMaterial[0])), b.LayerElementNormal && (M.normal = this.parseNormals(b.LayerElementNormal[0])), b.LayerElementUV) {
|
|
21235
21235
|
M.uv = [];
|
|
21236
21236
|
for (var k = 0; b.LayerElementUV[k]; )
|
|
21237
21237
|
M.uv.push(this.parseUVs(b.LayerElementUV[k])), k++;
|
|
21238
21238
|
}
|
|
21239
|
-
return M.weightTable = {},
|
|
21239
|
+
return M.weightTable = {}, C !== null && (M.skeleton = C, C.rawBones.forEach(function(S, L) {
|
|
21240
21240
|
S.indices.forEach(function(N, B) {
|
|
21241
21241
|
M.weightTable[N] === void 0 && (M.weightTable[N] = []), M.weightTable[N].push({
|
|
21242
21242
|
id: L,
|
|
@@ -21246,7 +21246,7 @@ var q1 = function() {
|
|
|
21246
21246
|
})), M;
|
|
21247
21247
|
},
|
|
21248
21248
|
genBuffers: function(b) {
|
|
21249
|
-
var
|
|
21249
|
+
var C = {
|
|
21250
21250
|
vertex: [],
|
|
21251
21251
|
normal: [],
|
|
21252
21252
|
colors: [],
|
|
@@ -21295,7 +21295,7 @@ var q1 = function() {
|
|
|
21295
21295
|
var Ve = v(ue, M, $, Re);
|
|
21296
21296
|
Z[Ae] === void 0 && (Z[Ae] = []), Z[Ae].push(Ve[0]), Z[Ae].push(Ve[1]);
|
|
21297
21297
|
}), k++, Le && (oe.genFace(
|
|
21298
|
-
|
|
21298
|
+
C,
|
|
21299
21299
|
b,
|
|
21300
21300
|
L,
|
|
21301
21301
|
Te,
|
|
@@ -21306,23 +21306,23 @@ var q1 = function() {
|
|
|
21306
21306
|
K,
|
|
21307
21307
|
k
|
|
21308
21308
|
), M++, k = 0, L = [], N = [], B = [], Z = [], ie = [], K = []);
|
|
21309
|
-
}),
|
|
21309
|
+
}), C;
|
|
21310
21310
|
},
|
|
21311
21311
|
// Generate data for a single face in a geometry. If the face is a quad then split it into 2 tris
|
|
21312
|
-
genFace: function(b,
|
|
21312
|
+
genFace: function(b, C, M, k, S, L, N, B, Z, ie) {
|
|
21313
21313
|
for (var K = 2; K < ie; K++)
|
|
21314
|
-
b.vertex.push(
|
|
21314
|
+
b.vertex.push(C.vertexPositions[M[0]]), b.vertex.push(C.vertexPositions[M[1]]), b.vertex.push(C.vertexPositions[M[2]]), b.vertex.push(C.vertexPositions[M[(K - 1) * 3]]), b.vertex.push(C.vertexPositions[M[(K - 1) * 3 + 1]]), b.vertex.push(C.vertexPositions[M[(K - 1) * 3 + 2]]), b.vertex.push(C.vertexPositions[M[K * 3]]), b.vertex.push(C.vertexPositions[M[K * 3 + 1]]), b.vertex.push(C.vertexPositions[M[K * 3 + 2]]), C.skeleton && (b.vertexWeights.push(B[0]), b.vertexWeights.push(B[1]), b.vertexWeights.push(B[2]), b.vertexWeights.push(B[3]), b.vertexWeights.push(B[(K - 1) * 4]), b.vertexWeights.push(B[(K - 1) * 4 + 1]), b.vertexWeights.push(B[(K - 1) * 4 + 2]), b.vertexWeights.push(B[(K - 1) * 4 + 3]), b.vertexWeights.push(B[K * 4]), b.vertexWeights.push(B[K * 4 + 1]), b.vertexWeights.push(B[K * 4 + 2]), b.vertexWeights.push(B[K * 4 + 3]), b.weightsIndices.push(Z[0]), b.weightsIndices.push(Z[1]), b.weightsIndices.push(Z[2]), b.weightsIndices.push(Z[3]), b.weightsIndices.push(Z[(K - 1) * 4]), b.weightsIndices.push(Z[(K - 1) * 4 + 1]), b.weightsIndices.push(Z[(K - 1) * 4 + 2]), b.weightsIndices.push(Z[(K - 1) * 4 + 3]), b.weightsIndices.push(Z[K * 4]), b.weightsIndices.push(Z[K * 4 + 1]), b.weightsIndices.push(Z[K * 4 + 2]), b.weightsIndices.push(Z[K * 4 + 3])), C.color && (b.colors.push(L[0]), b.colors.push(L[1]), b.colors.push(L[2]), b.colors.push(L[(K - 1) * 3]), b.colors.push(L[(K - 1) * 3 + 1]), b.colors.push(L[(K - 1) * 3 + 2]), b.colors.push(L[K * 3]), b.colors.push(L[K * 3 + 1]), b.colors.push(L[K * 3 + 2])), C.material && C.material.mappingType !== "AllSame" && (b.materialIndex.push(k), b.materialIndex.push(k), b.materialIndex.push(k)), C.normal && (b.normal.push(S[0]), b.normal.push(S[1]), b.normal.push(S[2]), b.normal.push(S[(K - 1) * 3]), b.normal.push(S[(K - 1) * 3 + 1]), b.normal.push(S[(K - 1) * 3 + 2]), b.normal.push(S[K * 3]), b.normal.push(S[K * 3 + 1]), b.normal.push(S[K * 3 + 2])), C.uv && C.uv.forEach(function(oe, $) {
|
|
21315
21315
|
b.uvs[$] === void 0 && (b.uvs[$] = []), b.uvs[$].push(N[$][0]), b.uvs[$].push(N[$][1]), b.uvs[$].push(N[$][(K - 1) * 2]), b.uvs[$].push(N[$][(K - 1) * 2 + 1]), b.uvs[$].push(N[$][K * 2]), b.uvs[$].push(N[$][K * 2 + 1]);
|
|
21316
21316
|
});
|
|
21317
21317
|
},
|
|
21318
|
-
addMorphTargets: function(b,
|
|
21318
|
+
addMorphTargets: function(b, C, M, k) {
|
|
21319
21319
|
if (M.length !== 0) {
|
|
21320
21320
|
b.morphTargetsRelative = !0, b.morphAttributes.position = [];
|
|
21321
21321
|
var S = this;
|
|
21322
21322
|
M.forEach(function(L) {
|
|
21323
21323
|
L.rawTargets.forEach(function(N) {
|
|
21324
21324
|
var B = n.Objects.Geometry[N.geoID];
|
|
21325
|
-
B !== void 0 && S.genMorphGeometry(b,
|
|
21325
|
+
B !== void 0 && S.genMorphGeometry(b, C, B, k, N.name);
|
|
21326
21326
|
});
|
|
21327
21327
|
});
|
|
21328
21328
|
}
|
|
@@ -21331,8 +21331,8 @@ var q1 = function() {
|
|
|
21331
21331
|
// in FBXTree.Objects.Geometry, however it can only have attributes for position, normal
|
|
21332
21332
|
// and a special attribute Index defining which vertices of the original geometry are affected
|
|
21333
21333
|
// Normal and position attributes only have data for the vertices that are affected by the morph
|
|
21334
|
-
genMorphGeometry: function(b,
|
|
21335
|
-
for (var L =
|
|
21334
|
+
genMorphGeometry: function(b, C, M, k, S) {
|
|
21335
|
+
for (var L = C.PolygonVertexIndex !== void 0 ? C.PolygonVertexIndex.a : [], N = M.Vertices !== void 0 ? M.Vertices.a : [], B = M.Indexes !== void 0 ? M.Indexes.a : [], Z = b.attributes.position.count * 3, ie = new Float32Array(Z), K = 0; K < B.length; K++) {
|
|
21336
21336
|
var oe = B[K] * 3;
|
|
21337
21337
|
ie[oe] = N[K * 3], ie[oe + 1] = N[K * 3 + 1], ie[oe + 2] = N[K * 3 + 2];
|
|
21338
21338
|
}
|
|
@@ -21344,41 +21344,41 @@ var q1 = function() {
|
|
|
21344
21344
|
},
|
|
21345
21345
|
// Parse normal from FBXTree.Objects.Geometry.LayerElementNormal if it exists
|
|
21346
21346
|
parseNormals: function(b) {
|
|
21347
|
-
var
|
|
21347
|
+
var C = b.MappingInformationType, M = b.ReferenceInformationType, k = b.Normals.a, S = [];
|
|
21348
21348
|
return M === "IndexToDirect" && ("NormalIndex" in b ? S = b.NormalIndex.a : "NormalsIndex" in b && (S = b.NormalsIndex.a)), {
|
|
21349
21349
|
dataSize: 3,
|
|
21350
21350
|
buffer: k,
|
|
21351
21351
|
indices: S,
|
|
21352
|
-
mappingType:
|
|
21352
|
+
mappingType: C,
|
|
21353
21353
|
referenceType: M
|
|
21354
21354
|
};
|
|
21355
21355
|
},
|
|
21356
21356
|
// Parse UVs from FBXTree.Objects.Geometry.LayerElementUV if it exists
|
|
21357
21357
|
parseUVs: function(b) {
|
|
21358
|
-
var
|
|
21358
|
+
var C = b.MappingInformationType, M = b.ReferenceInformationType, k = b.UV.a, S = [];
|
|
21359
21359
|
return M === "IndexToDirect" && (S = b.UVIndex.a), {
|
|
21360
21360
|
dataSize: 2,
|
|
21361
21361
|
buffer: k,
|
|
21362
21362
|
indices: S,
|
|
21363
|
-
mappingType:
|
|
21363
|
+
mappingType: C,
|
|
21364
21364
|
referenceType: M
|
|
21365
21365
|
};
|
|
21366
21366
|
},
|
|
21367
21367
|
// Parse Vertex Colors from FBXTree.Objects.Geometry.LayerElementColor if it exists
|
|
21368
21368
|
parseVertexColors: function(b) {
|
|
21369
|
-
var
|
|
21369
|
+
var C = b.MappingInformationType, M = b.ReferenceInformationType, k = b.Colors.a, S = [];
|
|
21370
21370
|
return M === "IndexToDirect" && (S = b.ColorIndex.a), {
|
|
21371
21371
|
dataSize: 4,
|
|
21372
21372
|
buffer: k,
|
|
21373
21373
|
indices: S,
|
|
21374
|
-
mappingType:
|
|
21374
|
+
mappingType: C,
|
|
21375
21375
|
referenceType: M
|
|
21376
21376
|
};
|
|
21377
21377
|
},
|
|
21378
21378
|
// Parse mapping and material data in FBXTree.Objects.Geometry.LayerElementMaterial if it exists
|
|
21379
21379
|
parseMaterialIndices: function(b) {
|
|
21380
|
-
var
|
|
21381
|
-
if (
|
|
21380
|
+
var C = b.MappingInformationType, M = b.ReferenceInformationType;
|
|
21381
|
+
if (C === "NoMappingInformation")
|
|
21382
21382
|
return {
|
|
21383
21383
|
dataSize: 1,
|
|
21384
21384
|
buffer: [0],
|
|
@@ -21392,7 +21392,7 @@ var q1 = function() {
|
|
|
21392
21392
|
dataSize: 1,
|
|
21393
21393
|
buffer: k,
|
|
21394
21394
|
indices: S,
|
|
21395
|
-
mappingType:
|
|
21395
|
+
mappingType: C,
|
|
21396
21396
|
referenceType: M
|
|
21397
21397
|
};
|
|
21398
21398
|
},
|
|
@@ -21402,10 +21402,10 @@ var q1 = function() {
|
|
|
21402
21402
|
return console.error(
|
|
21403
21403
|
"THREE.FBXLoader: The loader relies on NURBSCurve for any nurbs present in the model. Nurbs will show up as empty geometry."
|
|
21404
21404
|
), new ka();
|
|
21405
|
-
var
|
|
21406
|
-
if (isNaN(
|
|
21405
|
+
var C = parseInt(b.Order);
|
|
21406
|
+
if (isNaN(C))
|
|
21407
21407
|
return console.error("THREE.FBXLoader: Invalid Order %s given for geometry ID: %s", b.Order, b.id), new ka();
|
|
21408
|
-
for (var M =
|
|
21408
|
+
for (var M = C - 1, k = b.KnotVector.a, S = [], L = b.Points.a, N = 0, B = L.length; N < B; N += 4)
|
|
21409
21409
|
S.push(new Ts().fromArray(L, N));
|
|
21410
21410
|
var Z, ie;
|
|
21411
21411
|
if (b.Form === "Closed")
|
|
@@ -21429,10 +21429,10 @@ var q1 = function() {
|
|
|
21429
21429
|
constructor: r,
|
|
21430
21430
|
// take raw animation clips and turn them into three.js animation clips
|
|
21431
21431
|
parse: function() {
|
|
21432
|
-
var b = [],
|
|
21433
|
-
if (
|
|
21434
|
-
for (var M in
|
|
21435
|
-
var k =
|
|
21432
|
+
var b = [], C = this.parseClips();
|
|
21433
|
+
if (C !== void 0)
|
|
21434
|
+
for (var M in C) {
|
|
21435
|
+
var k = C[M], S = this.addClip(k);
|
|
21436
21436
|
b.push(S);
|
|
21437
21437
|
}
|
|
21438
21438
|
return b;
|
|
@@ -21441,7 +21441,7 @@ var q1 = function() {
|
|
|
21441
21441
|
if (n.Objects.AnimationCurve !== void 0) {
|
|
21442
21442
|
var b = this.parseAnimationCurveNodes();
|
|
21443
21443
|
this.parseAnimationCurves(b);
|
|
21444
|
-
var
|
|
21444
|
+
var C = this.parseAnimationLayers(b), M = this.parseAnimStacks(C);
|
|
21445
21445
|
return M;
|
|
21446
21446
|
}
|
|
21447
21447
|
},
|
|
@@ -21449,7 +21449,7 @@ var q1 = function() {
|
|
|
21449
21449
|
// each AnimationCurveNode holds data for an animation transform for a model (e.g. left arm rotation )
|
|
21450
21450
|
// and is referenced by an AnimationLayer
|
|
21451
21451
|
parseAnimationCurveNodes: function() {
|
|
21452
|
-
var b = n.Objects.AnimationCurveNode,
|
|
21452
|
+
var b = n.Objects.AnimationCurveNode, C = /* @__PURE__ */ new Map();
|
|
21453
21453
|
for (var M in b) {
|
|
21454
21454
|
var k = b[M];
|
|
21455
21455
|
if (k.attrName.match(/S|R|T|DeformPercent/) !== null) {
|
|
@@ -21458,21 +21458,21 @@ var q1 = function() {
|
|
|
21458
21458
|
attr: k.attrName,
|
|
21459
21459
|
curves: {}
|
|
21460
21460
|
};
|
|
21461
|
-
|
|
21461
|
+
C.set(S.id, S);
|
|
21462
21462
|
}
|
|
21463
21463
|
}
|
|
21464
|
-
return
|
|
21464
|
+
return C;
|
|
21465
21465
|
},
|
|
21466
21466
|
// parse nodes in FBXTree.Objects.AnimationCurve and connect them up to
|
|
21467
21467
|
// previously parsed AnimationCurveNodes. Each AnimationCurve holds data for a single animated
|
|
21468
21468
|
// axis ( e.g. times and values of x rotation)
|
|
21469
21469
|
parseAnimationCurves: function(b) {
|
|
21470
|
-
var
|
|
21471
|
-
for (var M in
|
|
21470
|
+
var C = n.Objects.AnimationCurve;
|
|
21471
|
+
for (var M in C) {
|
|
21472
21472
|
var k = {
|
|
21473
|
-
id:
|
|
21474
|
-
times:
|
|
21475
|
-
values:
|
|
21473
|
+
id: C[M].id,
|
|
21474
|
+
times: C[M].KeyTime.a.map(p),
|
|
21475
|
+
values: C[M].KeyValueFloat.a
|
|
21476
21476
|
}, S = t.get(k.id);
|
|
21477
21477
|
if (S !== void 0) {
|
|
21478
21478
|
var L = S.parents[0].ID, N = S.parents[0].relationship;
|
|
@@ -21484,8 +21484,8 @@ var q1 = function() {
|
|
|
21484
21484
|
// to various AnimationCurveNodes and is referenced by an AnimationStack node
|
|
21485
21485
|
// note: theoretically a stack can have multiple layers, however in practice there always seems to be one per stack
|
|
21486
21486
|
parseAnimationLayers: function(b) {
|
|
21487
|
-
var
|
|
21488
|
-
for (var k in
|
|
21487
|
+
var C = n.Objects.AnimationLayer, M = /* @__PURE__ */ new Map();
|
|
21488
|
+
for (var k in C) {
|
|
21489
21489
|
var S = [], L = t.get(parseInt(k));
|
|
21490
21490
|
if (L !== void 0) {
|
|
21491
21491
|
var N = L.children;
|
|
@@ -21537,31 +21537,31 @@ var q1 = function() {
|
|
|
21537
21537
|
// parse nodes in FBXTree.Objects.AnimationStack. These are the top level node in the animation
|
|
21538
21538
|
// hierarchy. Each Stack node will be used to create a AnimationClip
|
|
21539
21539
|
parseAnimStacks: function(b) {
|
|
21540
|
-
var
|
|
21541
|
-
for (var k in
|
|
21540
|
+
var C = n.Objects.AnimationStack, M = {};
|
|
21541
|
+
for (var k in C) {
|
|
21542
21542
|
var S = t.get(parseInt(k)).children;
|
|
21543
21543
|
S.length > 1 && console.warn(
|
|
21544
21544
|
"THREE.FBXLoader: Encountered an animation stack with multiple layers, this is currently not supported. Ignoring subsequent layers."
|
|
21545
21545
|
);
|
|
21546
21546
|
var L = b.get(S[0].ID);
|
|
21547
21547
|
M[k] = {
|
|
21548
|
-
name:
|
|
21548
|
+
name: C[k].attrName,
|
|
21549
21549
|
layer: L
|
|
21550
21550
|
};
|
|
21551
21551
|
}
|
|
21552
21552
|
return M;
|
|
21553
21553
|
},
|
|
21554
21554
|
addClip: function(b) {
|
|
21555
|
-
var
|
|
21555
|
+
var C = [], M = this;
|
|
21556
21556
|
return b.layer.forEach(function(k) {
|
|
21557
|
-
|
|
21558
|
-
}), new ob(b.name, -1,
|
|
21557
|
+
C = C.concat(M.generateTracks(k));
|
|
21558
|
+
}), new ob(b.name, -1, C);
|
|
21559
21559
|
},
|
|
21560
21560
|
generateTracks: function(b) {
|
|
21561
|
-
var
|
|
21561
|
+
var C = [], M = new ve(), k = new Ls(), S = new ve();
|
|
21562
21562
|
if (b.transform && b.transform.decompose(M, k, S), M = M.toArray(), k = new is().setFromQuaternion(k, b.eulerOrder).toArray(), S = S.toArray(), b.T !== void 0 && Object.keys(b.T.curves).length > 0) {
|
|
21563
21563
|
var L = this.generateVectorTrack(b.modelName, b.T.curves, M, "position");
|
|
21564
|
-
L !== void 0 &&
|
|
21564
|
+
L !== void 0 && C.push(L);
|
|
21565
21565
|
}
|
|
21566
21566
|
if (b.R !== void 0 && Object.keys(b.R.curves).length > 0) {
|
|
21567
21567
|
var N = this.generateRotationTrack(
|
|
@@ -21572,61 +21572,61 @@ var q1 = function() {
|
|
|
21572
21572
|
b.postRotation,
|
|
21573
21573
|
b.eulerOrder
|
|
21574
21574
|
);
|
|
21575
|
-
N !== void 0 &&
|
|
21575
|
+
N !== void 0 && C.push(N);
|
|
21576
21576
|
}
|
|
21577
21577
|
if (b.S !== void 0 && Object.keys(b.S.curves).length > 0) {
|
|
21578
21578
|
var B = this.generateVectorTrack(b.modelName, b.S.curves, S, "scale");
|
|
21579
|
-
B !== void 0 &&
|
|
21579
|
+
B !== void 0 && C.push(B);
|
|
21580
21580
|
}
|
|
21581
21581
|
if (b.DeformPercent !== void 0) {
|
|
21582
21582
|
var Z = this.generateMorphTrack(b);
|
|
21583
|
-
Z !== void 0 &&
|
|
21583
|
+
Z !== void 0 && C.push(Z);
|
|
21584
21584
|
}
|
|
21585
|
-
return
|
|
21585
|
+
return C;
|
|
21586
21586
|
},
|
|
21587
|
-
generateVectorTrack: function(b,
|
|
21588
|
-
var S = this.getTimesForAllAxes(
|
|
21587
|
+
generateVectorTrack: function(b, C, M, k) {
|
|
21588
|
+
var S = this.getTimesForAllAxes(C), L = this.getKeyframeTrackValues(S, C, M);
|
|
21589
21589
|
return new rb(b + "." + k, S, L);
|
|
21590
21590
|
},
|
|
21591
|
-
generateRotationTrack: function(b,
|
|
21592
|
-
|
|
21593
|
-
var N = this.getTimesForAllAxes(
|
|
21591
|
+
generateRotationTrack: function(b, C, M, k, S, L) {
|
|
21592
|
+
C.x !== void 0 && (this.interpolateRotations(C.x), C.x.values = C.x.values.map(Ki.degToRad)), C.y !== void 0 && (this.interpolateRotations(C.y), C.y.values = C.y.values.map(Ki.degToRad)), C.z !== void 0 && (this.interpolateRotations(C.z), C.z.values = C.z.values.map(Ki.degToRad));
|
|
21593
|
+
var N = this.getTimesForAllAxes(C), B = this.getKeyframeTrackValues(N, C, M);
|
|
21594
21594
|
k !== void 0 && (k = k.map(Ki.degToRad), k.push(L), k = new is().fromArray(k), k = new Ls().setFromEuler(k)), S !== void 0 && (S = S.map(Ki.degToRad), S.push(L), S = new is().fromArray(S), S = new Ls().setFromEuler(S).inverse());
|
|
21595
21595
|
for (var Z = new Ls(), ie = new is(), K = [], oe = 0; oe < B.length; oe += 3)
|
|
21596
21596
|
ie.set(B[oe], B[oe + 1], B[oe + 2], L), Z.setFromEuler(ie), k !== void 0 && Z.premultiply(k), S !== void 0 && Z.multiply(S), Z.toArray(K, oe / 3 * 4);
|
|
21597
21597
|
return new ab(b + ".quaternion", N, K);
|
|
21598
21598
|
},
|
|
21599
21599
|
generateMorphTrack: function(b) {
|
|
21600
|
-
var
|
|
21600
|
+
var C = b.DeformPercent.curves.morph, M = C.values.map(function(S) {
|
|
21601
21601
|
return S / 100;
|
|
21602
21602
|
}), k = e.getObjectByName(b.modelName).morphTargetDictionary[b.morphName];
|
|
21603
|
-
return new lb(b.modelName + ".morphTargetInfluences[" + k + "]",
|
|
21603
|
+
return new lb(b.modelName + ".morphTargetInfluences[" + k + "]", C.times, M);
|
|
21604
21604
|
},
|
|
21605
21605
|
// For all animated objects, times are defined separately for each axis
|
|
21606
21606
|
// Here we'll combine the times into one sorted array without duplicates
|
|
21607
21607
|
getTimesForAllAxes: function(b) {
|
|
21608
|
-
var
|
|
21609
|
-
return b.x !== void 0 && (
|
|
21608
|
+
var C = [];
|
|
21609
|
+
return b.x !== void 0 && (C = C.concat(b.x.times)), b.y !== void 0 && (C = C.concat(b.y.times)), b.z !== void 0 && (C = C.concat(b.z.times)), C = C.sort(function(M, k) {
|
|
21610
21610
|
return M - k;
|
|
21611
21611
|
}).filter(function(M, k, S) {
|
|
21612
21612
|
return S.indexOf(M) == k;
|
|
21613
|
-
}),
|
|
21613
|
+
}), C;
|
|
21614
21614
|
},
|
|
21615
|
-
getKeyframeTrackValues: function(b,
|
|
21615
|
+
getKeyframeTrackValues: function(b, C, M) {
|
|
21616
21616
|
var k = M, S = [], L = -1, N = -1, B = -1;
|
|
21617
21617
|
return b.forEach(function(Z) {
|
|
21618
|
-
if (
|
|
21619
|
-
var ie =
|
|
21618
|
+
if (C.x && (L = C.x.times.indexOf(Z)), C.y && (N = C.y.times.indexOf(Z)), C.z && (B = C.z.times.indexOf(Z)), L !== -1) {
|
|
21619
|
+
var ie = C.x.values[L];
|
|
21620
21620
|
S.push(ie), k[0] = ie;
|
|
21621
21621
|
} else
|
|
21622
21622
|
S.push(k[0]);
|
|
21623
21623
|
if (N !== -1) {
|
|
21624
|
-
var K =
|
|
21624
|
+
var K = C.y.values[N];
|
|
21625
21625
|
S.push(K), k[1] = K;
|
|
21626
21626
|
} else
|
|
21627
21627
|
S.push(k[1]);
|
|
21628
21628
|
if (B !== -1) {
|
|
21629
|
-
var oe =
|
|
21629
|
+
var oe = C.z.values[B];
|
|
21630
21630
|
S.push(oe), k[2] = oe;
|
|
21631
21631
|
} else
|
|
21632
21632
|
S.push(k[2]);
|
|
@@ -21636,12 +21636,12 @@ var q1 = function() {
|
|
|
21636
21636
|
// These will be converted to quaternions which don't support values greater than
|
|
21637
21637
|
// PI, so we'll interpolate large rotations
|
|
21638
21638
|
interpolateRotations: function(b) {
|
|
21639
|
-
for (var
|
|
21640
|
-
var M = b.values[
|
|
21639
|
+
for (var C = 1; C < b.values.length; C++) {
|
|
21640
|
+
var M = b.values[C - 1], k = b.values[C] - M, S = Math.abs(k);
|
|
21641
21641
|
if (S >= 180) {
|
|
21642
|
-
for (var L = S / 180, N = k / L, B = M + N, Z = b.times[
|
|
21642
|
+
for (var L = S / 180, N = k / L, B = M + N, Z = b.times[C - 1], ie = b.times[C] - Z, K = ie / L, oe = Z + K, $ = [], ue = []; oe < b.times[C]; )
|
|
21643
21643
|
$.push(oe), oe += K, ue.push(B), B += N;
|
|
21644
|
-
b.times = O(b.times,
|
|
21644
|
+
b.times = O(b.times, C, $), b.values = O(b.values, C, ue);
|
|
21645
21645
|
}
|
|
21646
21646
|
}
|
|
21647
21647
|
}
|
|
@@ -21665,34 +21665,34 @@ var q1 = function() {
|
|
|
21665
21665
|
popStack: function() {
|
|
21666
21666
|
this.nodeStack.pop(), this.currentIndent -= 1;
|
|
21667
21667
|
},
|
|
21668
|
-
setCurrentProp: function(b,
|
|
21669
|
-
this.currentProp = b, this.currentPropName =
|
|
21668
|
+
setCurrentProp: function(b, C) {
|
|
21669
|
+
this.currentProp = b, this.currentPropName = C;
|
|
21670
21670
|
},
|
|
21671
21671
|
parse: function(b) {
|
|
21672
21672
|
this.currentIndent = 0, this.allNodes = new h(), this.nodeStack = [], this.currentProp = [], this.currentPropName = "";
|
|
21673
|
-
var
|
|
21673
|
+
var C = this, M = b.split(/[\r\n]+/);
|
|
21674
21674
|
return M.forEach(function(k, S) {
|
|
21675
21675
|
var L = k.match(/^[\s\t]*;/), N = k.match(/^[\s\t]*$/);
|
|
21676
21676
|
if (!(L || N)) {
|
|
21677
|
-
var B = k.match("^\\t{" +
|
|
21678
|
-
B ?
|
|
21677
|
+
var B = k.match("^\\t{" + C.currentIndent + "}(\\w+):(.*){", ""), Z = k.match("^\\t{" + C.currentIndent + "}(\\w+):[\\s\\t\\r\\n](.*)"), ie = k.match("^\\t{" + (C.currentIndent - 1) + "}}");
|
|
21678
|
+
B ? C.parseNodeBegin(k, B) : Z ? C.parseNodeProperty(k, Z, M[++S]) : ie ? C.popStack() : k.match(/^[^\s\t}]/) && C.parseNodePropertyContinued(k);
|
|
21679
21679
|
}
|
|
21680
21680
|
}), this.allNodes;
|
|
21681
21681
|
},
|
|
21682
|
-
parseNodeBegin: function(b,
|
|
21683
|
-
var M =
|
|
21682
|
+
parseNodeBegin: function(b, C) {
|
|
21683
|
+
var M = C[1].trim().replace(/^"/, "").replace(/"$/, ""), k = C[2].split(",").map(function(B) {
|
|
21684
21684
|
return B.trim().replace(/^"/, "").replace(/"$/, "");
|
|
21685
21685
|
}), S = { name: M }, L = this.parseNodeAttr(k), N = this.getCurrentNode();
|
|
21686
21686
|
this.currentIndent === 0 ? this.allNodes.add(M, S) : M in N ? (M === "PoseNode" ? N.PoseNode.push(S) : N[M].id !== void 0 && (N[M] = {}, N[M][N[M].id] = N[M]), L.id !== "" && (N[M][L.id] = S)) : typeof L.id == "number" ? (N[M] = {}, N[M][L.id] = S) : M !== "Properties70" && (M === "PoseNode" ? N[M] = [S] : N[M] = S), typeof L.id == "number" && (S.id = L.id), L.name !== "" && (S.attrName = L.name), L.type !== "" && (S.attrType = L.type), this.pushStack(S);
|
|
21687
21687
|
},
|
|
21688
21688
|
parseNodeAttr: function(b) {
|
|
21689
|
-
var
|
|
21690
|
-
b[0] !== "" && (
|
|
21689
|
+
var C = b[0];
|
|
21690
|
+
b[0] !== "" && (C = parseInt(b[0]), isNaN(C) && (C = b[0]));
|
|
21691
21691
|
var M = "", k = "";
|
|
21692
|
-
return b.length > 1 && (M = b[1].replace(/^(\w+)::/, ""), k = b[2]), { id:
|
|
21692
|
+
return b.length > 1 && (M = b[1].replace(/^(\w+)::/, ""), k = b[2]), { id: C, name: M, type: k };
|
|
21693
21693
|
},
|
|
21694
|
-
parseNodeProperty: function(b,
|
|
21695
|
-
var k =
|
|
21694
|
+
parseNodeProperty: function(b, C, M) {
|
|
21695
|
+
var k = C[1].replace(/^"/, "").replace(/"$/, "").trim(), S = C[2].replace(/^"/, "").replace(/"$/, "").trim();
|
|
21696
21696
|
k === "Content" && S === "," && (S = M.replace(/"/g, "").replace(/,$/, "").trim());
|
|
21697
21697
|
var L = this.getCurrentNode(), N = L.name;
|
|
21698
21698
|
if (N === "Properties70") {
|
|
@@ -21708,11 +21708,11 @@ var q1 = function() {
|
|
|
21708
21708
|
k === "Node" && (L.id = S), k in L && Array.isArray(L[k]) ? L[k].push(S) : k !== "a" ? L[k] = S : L.a = S, this.setCurrentProp(L, k), k === "a" && S.slice(-1) !== "," && (L.a = z(S));
|
|
21709
21709
|
},
|
|
21710
21710
|
parseNodePropertyContinued: function(b) {
|
|
21711
|
-
var
|
|
21712
|
-
|
|
21711
|
+
var C = this.getCurrentNode();
|
|
21712
|
+
C.a += b, b.slice(-1) !== "," && (C.a = z(C.a));
|
|
21713
21713
|
},
|
|
21714
21714
|
// parse "Property70"
|
|
21715
|
-
parseNodeSpecialProperty: function(b,
|
|
21715
|
+
parseNodeSpecialProperty: function(b, C, M) {
|
|
21716
21716
|
var k = M.split('",').map(function(ie) {
|
|
21717
21717
|
return ie.trim().replace(/^\"/, "").replace(/\s/, "_");
|
|
21718
21718
|
}), S = k[0], L = k[1], N = k[2], B = k[3], Z = k[4];
|
|
@@ -21748,12 +21748,12 @@ var q1 = function() {
|
|
|
21748
21748
|
l.prototype = {
|
|
21749
21749
|
constructor: l,
|
|
21750
21750
|
parse: function(b) {
|
|
21751
|
-
var
|
|
21752
|
-
|
|
21753
|
-
var M =
|
|
21751
|
+
var C = new c(b);
|
|
21752
|
+
C.skip(23);
|
|
21753
|
+
var M = C.getUint32();
|
|
21754
21754
|
console.info("THREE.FBXLoader: FBX binary version: " + M);
|
|
21755
|
-
for (var k = new h(); !this.endOfContent(
|
|
21756
|
-
var S = this.parseNode(
|
|
21755
|
+
for (var k = new h(); !this.endOfContent(C); ) {
|
|
21756
|
+
var S = this.parseNode(C, M);
|
|
21757
21757
|
S !== null && k.add(S.name, S);
|
|
21758
21758
|
}
|
|
21759
21759
|
return k;
|
|
@@ -21763,9 +21763,9 @@ var q1 = function() {
|
|
|
21763
21763
|
return b.size() % 16 === 0 ? (b.getOffset() + 160 + 16 & -16) >= b.size() : b.getOffset() + 160 + 16 >= b.size();
|
|
21764
21764
|
},
|
|
21765
21765
|
// recursively parse nodes until the end of the file is reached
|
|
21766
|
-
parseNode: function(b,
|
|
21767
|
-
var M = {}, k =
|
|
21768
|
-
|
|
21766
|
+
parseNode: function(b, C) {
|
|
21767
|
+
var M = {}, k = C >= 7500 ? b.getUint64() : b.getUint32(), S = C >= 7500 ? b.getUint64() : b.getUint32();
|
|
21768
|
+
C >= 7500 ? b.getUint64() : b.getUint32();
|
|
21769
21769
|
var L = b.getUint8(), N = b.getString(L);
|
|
21770
21770
|
if (k === 0)
|
|
21771
21771
|
return null;
|
|
@@ -21773,39 +21773,39 @@ var q1 = function() {
|
|
|
21773
21773
|
B.push(this.parseProperty(b));
|
|
21774
21774
|
var ie = B.length > 0 ? B[0] : "", K = B.length > 1 ? B[1] : "", oe = B.length > 2 ? B[2] : "";
|
|
21775
21775
|
for (M.singleProperty = S === 1 && b.getOffset() === k; k > b.getOffset(); ) {
|
|
21776
|
-
var $ = this.parseNode(b,
|
|
21776
|
+
var $ = this.parseNode(b, C);
|
|
21777
21777
|
$ !== null && this.parseSubNode(N, M, $);
|
|
21778
21778
|
}
|
|
21779
21779
|
return M.propertyList = B, typeof ie == "number" && (M.id = ie), K !== "" && (M.attrName = K), oe !== "" && (M.attrType = oe), N !== "" && (M.name = N), M;
|
|
21780
21780
|
},
|
|
21781
|
-
parseSubNode: function(b,
|
|
21781
|
+
parseSubNode: function(b, C, M) {
|
|
21782
21782
|
if (M.singleProperty === !0) {
|
|
21783
21783
|
var k = M.propertyList[0];
|
|
21784
|
-
Array.isArray(k) ? (
|
|
21784
|
+
Array.isArray(k) ? (C[M.name] = M, M.a = k) : C[M.name] = k;
|
|
21785
21785
|
} else if (b === "Connections" && M.name === "C") {
|
|
21786
21786
|
var S = [];
|
|
21787
21787
|
M.propertyList.forEach(function(oe, $) {
|
|
21788
21788
|
$ !== 0 && S.push(oe);
|
|
21789
|
-
}),
|
|
21789
|
+
}), C.connections === void 0 && (C.connections = []), C.connections.push(S);
|
|
21790
21790
|
} else if (M.name === "Properties70") {
|
|
21791
21791
|
var L = Object.keys(M);
|
|
21792
21792
|
L.forEach(function(oe) {
|
|
21793
|
-
|
|
21793
|
+
C[oe] = M[oe];
|
|
21794
21794
|
});
|
|
21795
21795
|
} else if (b === "Properties70" && M.name === "P") {
|
|
21796
21796
|
var N = M.propertyList[0], B = M.propertyList[1], Z = M.propertyList[2], ie = M.propertyList[3], K;
|
|
21797
|
-
N.indexOf("Lcl ") === 0 && (N = N.replace("Lcl ", "Lcl_")), B.indexOf("Lcl ") === 0 && (B = B.replace("Lcl ", "Lcl_")), B === "Color" || B === "ColorRGB" || B === "Vector" || B === "Vector3D" || B.indexOf("Lcl_") === 0 ? K = [M.propertyList[4], M.propertyList[5], M.propertyList[6]] : K = M.propertyList[4],
|
|
21797
|
+
N.indexOf("Lcl ") === 0 && (N = N.replace("Lcl ", "Lcl_")), B.indexOf("Lcl ") === 0 && (B = B.replace("Lcl ", "Lcl_")), B === "Color" || B === "ColorRGB" || B === "Vector" || B === "Vector3D" || B.indexOf("Lcl_") === 0 ? K = [M.propertyList[4], M.propertyList[5], M.propertyList[6]] : K = M.propertyList[4], C[N] = {
|
|
21798
21798
|
type: B,
|
|
21799
21799
|
type2: Z,
|
|
21800
21800
|
flag: ie,
|
|
21801
21801
|
value: K
|
|
21802
21802
|
};
|
|
21803
21803
|
} else
|
|
21804
|
-
|
|
21804
|
+
C[M.name] === void 0 ? typeof M.id == "number" ? (C[M.name] = {}, C[M.name][M.id] = M) : C[M.name] = M : M.name === "PoseNode" ? (Array.isArray(C[M.name]) || (C[M.name] = [C[M.name]]), C[M.name].push(M)) : C[M.name][M.id] === void 0 && (C[M.name][M.id] = M);
|
|
21805
21805
|
},
|
|
21806
21806
|
parseProperty: function(b) {
|
|
21807
|
-
var
|
|
21808
|
-
switch (
|
|
21807
|
+
var C = b.getString(1);
|
|
21808
|
+
switch (C) {
|
|
21809
21809
|
case "C":
|
|
21810
21810
|
return b.getBoolean();
|
|
21811
21811
|
case "D":
|
|
@@ -21832,7 +21832,7 @@ var q1 = function() {
|
|
|
21832
21832
|
case "l":
|
|
21833
21833
|
var k = b.getUint32(), S = b.getUint32(), L = b.getUint32();
|
|
21834
21834
|
if (S === 0)
|
|
21835
|
-
switch (
|
|
21835
|
+
switch (C) {
|
|
21836
21836
|
case "b":
|
|
21837
21837
|
case "c":
|
|
21838
21838
|
return b.getBooleanArray(k);
|
|
@@ -21849,7 +21849,7 @@ var q1 = function() {
|
|
|
21849
21849
|
"THREE.FBXLoader: External library Inflate.min.js required, obtain or import from https://github.com/imaya/zlib.js"
|
|
21850
21850
|
);
|
|
21851
21851
|
var N = new Kf.Inflate(new Uint8Array(b.getArrayBuffer(L))), B = new c(N.decompress().buffer);
|
|
21852
|
-
switch (
|
|
21852
|
+
switch (C) {
|
|
21853
21853
|
case "b":
|
|
21854
21854
|
case "c":
|
|
21855
21855
|
return B.getBooleanArray(k);
|
|
@@ -21863,12 +21863,12 @@ var q1 = function() {
|
|
|
21863
21863
|
return B.getInt64Array(k);
|
|
21864
21864
|
}
|
|
21865
21865
|
default:
|
|
21866
|
-
throw new Error("THREE.FBXLoader: Unknown property type " +
|
|
21866
|
+
throw new Error("THREE.FBXLoader: Unknown property type " + C);
|
|
21867
21867
|
}
|
|
21868
21868
|
}
|
|
21869
21869
|
};
|
|
21870
|
-
function c(b,
|
|
21871
|
-
this.dv = new DataView(b), this.offset = 0, this.littleEndian =
|
|
21870
|
+
function c(b, C) {
|
|
21871
|
+
this.dv = new DataView(b), this.offset = 0, this.littleEndian = C !== void 0 ? C : !0;
|
|
21872
21872
|
}
|
|
21873
21873
|
c.prototype = {
|
|
21874
21874
|
constructor: c,
|
|
@@ -21888,9 +21888,9 @@ var q1 = function() {
|
|
|
21888
21888
|
return (this.getUint8() & 1) === 1;
|
|
21889
21889
|
},
|
|
21890
21890
|
getBooleanArray: function(b) {
|
|
21891
|
-
for (var
|
|
21892
|
-
|
|
21893
|
-
return
|
|
21891
|
+
for (var C = [], M = 0; M < b; M++)
|
|
21892
|
+
C.push(this.getBoolean());
|
|
21893
|
+
return C;
|
|
21894
21894
|
},
|
|
21895
21895
|
getUint8: function() {
|
|
21896
21896
|
var b = this.dv.getUint8(this.offset);
|
|
@@ -21905,9 +21905,9 @@ var q1 = function() {
|
|
|
21905
21905
|
return this.offset += 4, b;
|
|
21906
21906
|
},
|
|
21907
21907
|
getInt32Array: function(b) {
|
|
21908
|
-
for (var
|
|
21909
|
-
|
|
21910
|
-
return
|
|
21908
|
+
for (var C = [], M = 0; M < b; M++)
|
|
21909
|
+
C.push(this.getInt32());
|
|
21910
|
+
return C;
|
|
21911
21911
|
},
|
|
21912
21912
|
getUint32: function() {
|
|
21913
21913
|
var b = this.dv.getUint32(this.offset, this.littleEndian);
|
|
@@ -21919,75 +21919,75 @@ var q1 = function() {
|
|
|
21919
21919
|
// is out of the range between Number.MAX_SAFE_INTEGER and Number.MIN_SAFE_INTEGER.
|
|
21920
21920
|
// TODO: safely handle 64-bit integer
|
|
21921
21921
|
getInt64: function() {
|
|
21922
|
-
var b,
|
|
21923
|
-
return this.littleEndian ? (b = this.getUint32(),
|
|
21922
|
+
var b, C;
|
|
21923
|
+
return this.littleEndian ? (b = this.getUint32(), C = this.getUint32()) : (C = this.getUint32(), b = this.getUint32()), C & 2147483648 ? (C = ~C & 4294967295, b = ~b & 4294967295, b === 4294967295 && (C = C + 1 & 4294967295), b = b + 1 & 4294967295, -(C * 4294967296 + b)) : C * 4294967296 + b;
|
|
21924
21924
|
},
|
|
21925
21925
|
getInt64Array: function(b) {
|
|
21926
|
-
for (var
|
|
21927
|
-
|
|
21928
|
-
return
|
|
21926
|
+
for (var C = [], M = 0; M < b; M++)
|
|
21927
|
+
C.push(this.getInt64());
|
|
21928
|
+
return C;
|
|
21929
21929
|
},
|
|
21930
21930
|
// Note: see getInt64() comment
|
|
21931
21931
|
getUint64: function() {
|
|
21932
|
-
var b,
|
|
21933
|
-
return this.littleEndian ? (b = this.getUint32(),
|
|
21932
|
+
var b, C;
|
|
21933
|
+
return this.littleEndian ? (b = this.getUint32(), C = this.getUint32()) : (C = this.getUint32(), b = this.getUint32()), C * 4294967296 + b;
|
|
21934
21934
|
},
|
|
21935
21935
|
getFloat32: function() {
|
|
21936
21936
|
var b = this.dv.getFloat32(this.offset, this.littleEndian);
|
|
21937
21937
|
return this.offset += 4, b;
|
|
21938
21938
|
},
|
|
21939
21939
|
getFloat32Array: function(b) {
|
|
21940
|
-
for (var
|
|
21941
|
-
|
|
21942
|
-
return
|
|
21940
|
+
for (var C = [], M = 0; M < b; M++)
|
|
21941
|
+
C.push(this.getFloat32());
|
|
21942
|
+
return C;
|
|
21943
21943
|
},
|
|
21944
21944
|
getFloat64: function() {
|
|
21945
21945
|
var b = this.dv.getFloat64(this.offset, this.littleEndian);
|
|
21946
21946
|
return this.offset += 8, b;
|
|
21947
21947
|
},
|
|
21948
21948
|
getFloat64Array: function(b) {
|
|
21949
|
-
for (var
|
|
21950
|
-
|
|
21951
|
-
return
|
|
21949
|
+
for (var C = [], M = 0; M < b; M++)
|
|
21950
|
+
C.push(this.getFloat64());
|
|
21951
|
+
return C;
|
|
21952
21952
|
},
|
|
21953
21953
|
getArrayBuffer: function(b) {
|
|
21954
|
-
var
|
|
21955
|
-
return this.offset += b,
|
|
21954
|
+
var C = this.dv.buffer.slice(this.offset, this.offset + b);
|
|
21955
|
+
return this.offset += b, C;
|
|
21956
21956
|
},
|
|
21957
21957
|
getString: function(b) {
|
|
21958
|
-
for (var
|
|
21959
|
-
|
|
21960
|
-
var k =
|
|
21961
|
-
return k >= 0 && (
|
|
21958
|
+
for (var C = [], M = 0; M < b; M++)
|
|
21959
|
+
C[M] = this.getUint8();
|
|
21960
|
+
var k = C.indexOf(0);
|
|
21961
|
+
return k >= 0 && (C = C.slice(0, k)), rc.decodeText(new Uint8Array(C));
|
|
21962
21962
|
}
|
|
21963
21963
|
};
|
|
21964
21964
|
function h() {
|
|
21965
21965
|
}
|
|
21966
21966
|
h.prototype = {
|
|
21967
21967
|
constructor: h,
|
|
21968
|
-
add: function(b,
|
|
21969
|
-
this[b] =
|
|
21968
|
+
add: function(b, C) {
|
|
21969
|
+
this[b] = C;
|
|
21970
21970
|
}
|
|
21971
21971
|
};
|
|
21972
21972
|
function d(b) {
|
|
21973
|
-
var
|
|
21974
|
-
return b.byteLength >=
|
|
21973
|
+
var C = "Kaydara FBX Binary \0";
|
|
21974
|
+
return b.byteLength >= C.length && C === D(b, 0, C.length);
|
|
21975
21975
|
}
|
|
21976
21976
|
function u(b) {
|
|
21977
|
-
var
|
|
21977
|
+
var C = ["K", "a", "y", "d", "a", "r", "a", "\\", "F", "B", "X", "\\", "B", "i", "n", "a", "r", "y", "\\", "\\"], M = 0;
|
|
21978
21978
|
function k(N) {
|
|
21979
21979
|
var B = b[N - 1];
|
|
21980
21980
|
return b = b.slice(M + N), M++, B;
|
|
21981
21981
|
}
|
|
21982
|
-
for (var S = 0; S <
|
|
21982
|
+
for (var S = 0; S < C.length; ++S) {
|
|
21983
21983
|
var L = k(1);
|
|
21984
|
-
if (L ===
|
|
21984
|
+
if (L === C[S])
|
|
21985
21985
|
return !1;
|
|
21986
21986
|
}
|
|
21987
21987
|
return !0;
|
|
21988
21988
|
}
|
|
21989
21989
|
function g(b) {
|
|
21990
|
-
var
|
|
21990
|
+
var C = /FBXVersion: (\d+)/, M = b.match(C);
|
|
21991
21991
|
if (M) {
|
|
21992
21992
|
var k = parseInt(M[1]);
|
|
21993
21993
|
return k;
|
|
@@ -21998,14 +21998,14 @@ var q1 = function() {
|
|
|
21998
21998
|
return b / 46186158e3;
|
|
21999
21999
|
}
|
|
22000
22000
|
var m = [];
|
|
22001
|
-
function v(b,
|
|
22001
|
+
function v(b, C, M, k) {
|
|
22002
22002
|
var S;
|
|
22003
22003
|
switch (k.mappingType) {
|
|
22004
22004
|
case "ByPolygonVertex":
|
|
22005
22005
|
S = b;
|
|
22006
22006
|
break;
|
|
22007
22007
|
case "ByPolygon":
|
|
22008
|
-
S =
|
|
22008
|
+
S = C;
|
|
22009
22009
|
break;
|
|
22010
22010
|
case "ByVertice":
|
|
22011
22011
|
S = M;
|
|
@@ -22022,8 +22022,8 @@ var q1 = function() {
|
|
|
22022
22022
|
}
|
|
22023
22023
|
var A = new is(), P = new ve();
|
|
22024
22024
|
function E(b) {
|
|
22025
|
-
var
|
|
22026
|
-
if (b.translation &&
|
|
22025
|
+
var C = new ot(), M = new ot(), k = new ot(), S = new ot(), L = new ot(), N = new ot(), B = new ot(), Z = new ot(), ie = new ot(), K = new ot(), oe = new ot(), $ = b.inheritType ? b.inheritType : 0;
|
|
22026
|
+
if (b.translation && C.setPosition(P.fromArray(b.translation)), b.preRotation) {
|
|
22027
22027
|
var ue = b.preRotation.map(Ki.degToRad);
|
|
22028
22028
|
ue.push(b.eulerOrder), M.makeRotationFromEuler(A.fromArray(ue));
|
|
22029
22029
|
}
|
|
@@ -22052,13 +22052,13 @@ var q1 = function() {
|
|
|
22052
22052
|
le.copy(re).multiply(Le).multiply(ee).multiply(L);
|
|
22053
22053
|
}
|
|
22054
22054
|
var Te = new ot().getInverse(ie), Re = new ot().getInverse(N), Ae = new ot();
|
|
22055
|
-
Ae.copy(
|
|
22055
|
+
Ae.copy(C).multiply(Z).multiply(ie).multiply(M).multiply(k).multiply(S).multiply(Te).multiply(B).multiply(N).multiply(L).multiply(Re);
|
|
22056
22056
|
var Ve = new ot().copyPosition(Ae), me = new ot().copy(K).multiply(Ve);
|
|
22057
22057
|
return oe.copyPosition(me), Ae = new ot().multiply(oe).multiply(le), Ae;
|
|
22058
22058
|
}
|
|
22059
|
-
function
|
|
22059
|
+
function I(b) {
|
|
22060
22060
|
b = b || 0;
|
|
22061
|
-
var
|
|
22061
|
+
var C = [
|
|
22062
22062
|
"ZYX",
|
|
22063
22063
|
// -> XYZ extrinsic
|
|
22064
22064
|
"YZX",
|
|
@@ -22073,28 +22073,28 @@ var q1 = function() {
|
|
|
22073
22073
|
// -> ZYX extrinsic
|
|
22074
22074
|
// 'SphericXYZ', // not possible to support
|
|
22075
22075
|
];
|
|
22076
|
-
return b === 6 ? (console.warn("THREE.FBXLoader: unsupported Euler Order: Spherical XYZ. Animations and rotations may be incorrect."),
|
|
22076
|
+
return b === 6 ? (console.warn("THREE.FBXLoader: unsupported Euler Order: Spherical XYZ. Animations and rotations may be incorrect."), C[0]) : C[b];
|
|
22077
22077
|
}
|
|
22078
22078
|
function z(b) {
|
|
22079
|
-
var
|
|
22079
|
+
var C = b.split(",").map(function(M) {
|
|
22080
22080
|
return parseFloat(M);
|
|
22081
22081
|
});
|
|
22082
|
-
return
|
|
22082
|
+
return C;
|
|
22083
22083
|
}
|
|
22084
|
-
function D(b,
|
|
22085
|
-
return
|
|
22084
|
+
function D(b, C, M) {
|
|
22085
|
+
return C === void 0 && (C = 0), M === void 0 && (M = b.byteLength), rc.decodeText(new Uint8Array(b, C, M));
|
|
22086
22086
|
}
|
|
22087
|
-
function j(b,
|
|
22088
|
-
for (var M = 0, k = b.length, S =
|
|
22089
|
-
b[k] =
|
|
22087
|
+
function j(b, C) {
|
|
22088
|
+
for (var M = 0, k = b.length, S = C.length; M < S; M++, k++)
|
|
22089
|
+
b[k] = C[M];
|
|
22090
22090
|
}
|
|
22091
|
-
function T(b,
|
|
22091
|
+
function T(b, C, M, k) {
|
|
22092
22092
|
for (var S = M, L = 0; S < k; S++, L++)
|
|
22093
|
-
b[L] =
|
|
22093
|
+
b[L] = C[S];
|
|
22094
22094
|
return b;
|
|
22095
22095
|
}
|
|
22096
|
-
function O(b,
|
|
22097
|
-
return b.slice(0,
|
|
22096
|
+
function O(b, C, M) {
|
|
22097
|
+
return b.slice(0, C).concat(M).concat(b.slice(C));
|
|
22098
22098
|
}
|
|
22099
22099
|
return i;
|
|
22100
22100
|
}();
|
|
@@ -22104,9 +22104,9 @@ const QT = (n, t) => {
|
|
|
22104
22104
|
let o = { x: 0, y: 0, z: 0 }, r = [0, 0, 0], a = 1, l = i;
|
|
22105
22105
|
n.on("modelLoaded", p);
|
|
22106
22106
|
const c = (v) => te(void 0, null, function* () {
|
|
22107
|
-
var
|
|
22107
|
+
var I;
|
|
22108
22108
|
const A = (v == null ? void 0 : v.fbx_url) || e;
|
|
22109
|
-
if (l = (
|
|
22109
|
+
if (l = (I = v == null ? void 0 : v.north_rad) != null ? I : i, typeof l != "number")
|
|
22110
22110
|
throw new Error('"northRad"配置参数缺失:未配置指南针指向!');
|
|
22111
22111
|
s.object && (s.object.parent && s.object.parent.remove(s.object), s.object.traverse((z) => {
|
|
22112
22112
|
var D, j;
|
|
@@ -22143,11 +22143,11 @@ const QT = (n, t) => {
|
|
|
22143
22143
|
const v = s.object;
|
|
22144
22144
|
if (!v)
|
|
22145
22145
|
return;
|
|
22146
|
-
const A = n.model.bounding, P = A.max.x - A.min.x, E = A.max.z - A.min.z,
|
|
22146
|
+
const A = n.model.bounding, P = A.max.x - A.min.x, E = A.max.z - A.min.z, I = Math.max(P, E), {
|
|
22147
22147
|
max: { x: z, z: D },
|
|
22148
22148
|
min: { x: j, y: T, z: O }
|
|
22149
22149
|
} = A;
|
|
22150
|
-
s.yBase = T, o = { x: (z + j) / 2, y: T - 1.6, z: (D + O) / 2 }, r = [0, l - Math.PI / 2, 0], a = 45e-4 *
|
|
22150
|
+
s.yBase = T, o = { x: (z + j) / 2, y: T - 1.6, z: (D + O) / 2 }, r = [0, l - Math.PI / 2, 0], a = 45e-4 * I, t5(v, { position: o, rotation: r, scale: a });
|
|
22151
22151
|
}
|
|
22152
22152
|
return { load: c, disable: g, enable: u };
|
|
22153
22153
|
};
|
|
@@ -22161,15 +22161,15 @@ function o5(n, t) {
|
|
|
22161
22161
|
const r5 = ({ x: n, y: t, z: e }) => new ve(n, t, e), XT = (n, t) => {
|
|
22162
22162
|
var m, v, A;
|
|
22163
22163
|
const e = {}, i = (m = t == null ? void 0 : t.animationEnabled) != null ? m : !0, s = (v = t == null ? void 0 : t.position) != null ? v : void 0, o = (A = t == null ? void 0 : t.rad) != null ? A : void 0, r = (t == null ? void 0 : t.fbx_url) || ld, a = [], l = (P) => te(void 0, null, function* () {
|
|
22164
|
-
var b,
|
|
22164
|
+
var b, C, M, k, S, L, N, B;
|
|
22165
22165
|
const E = (b = P == null ? void 0 : P.position) != null ? b : s;
|
|
22166
22166
|
if (!E)
|
|
22167
22167
|
return Promise.reject(new Error("ModelEntryDoorGuidePlugin.load(): position is undefined"));
|
|
22168
|
-
const
|
|
22168
|
+
const I = r5(E), z = (C = P == null ? void 0 : P.rad) != null ? C : o, D = (M = P == null ? void 0 : P.fbx_url) != null ? M : r;
|
|
22169
22169
|
if (e.rad = z, z === void 0)
|
|
22170
22170
|
return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): rad is ${z}`));
|
|
22171
22171
|
const j = yield new q1().loadAsync(D);
|
|
22172
|
-
j.position.copy(
|
|
22172
|
+
j.position.copy(I), j.rotation.z = z, j.scale.set(0.8, 0.8, 0.8), W1(j, { transparent: !0, side: y.DoubleSide });
|
|
22173
22173
|
const T = (N = (L = (S = (k = j.children) == null ? void 0 : k[0]) == null ? void 0 : S.children) == null ? void 0 : L[3]) == null ? void 0 : N.clone();
|
|
22174
22174
|
if (!T)
|
|
22175
22175
|
return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): textMesh is ${T}`));
|
|
@@ -22182,32 +22182,32 @@ const r5 = ({ x: n, y: t, z: e }) => new ve(n, t, e), XT = (n, t) => {
|
|
|
22182
22182
|
return console.error("ModelEntryDoorGuidePlugin.initAnimation(): state.object is ", e.object);
|
|
22183
22183
|
const P = 1, E = new hb(e.object);
|
|
22184
22184
|
a.push(E);
|
|
22185
|
-
const
|
|
22186
|
-
|
|
22185
|
+
const I = E.clipAction(e.object.animations[0]);
|
|
22186
|
+
I.timeScale = P;
|
|
22187
22187
|
let z;
|
|
22188
22188
|
const D = () => {
|
|
22189
|
-
let b = 0,
|
|
22189
|
+
let b = 0, C = 0;
|
|
22190
22190
|
const M = 1e3 / 30, k = (S) => {
|
|
22191
22191
|
b = requestAnimationFrame(k);
|
|
22192
|
-
const L = S -
|
|
22193
|
-
L < M || (
|
|
22192
|
+
const L = S - C;
|
|
22193
|
+
L < M || (C = S, a.forEach((N) => N.update(L / 1e3)), n.needsRender = !0);
|
|
22194
22194
|
};
|
|
22195
22195
|
return b = requestAnimationFrame(k), () => {
|
|
22196
22196
|
cancelAnimationFrame(b);
|
|
22197
22197
|
};
|
|
22198
22198
|
}, O = { play: () => {
|
|
22199
|
-
z || (
|
|
22199
|
+
z || (I.play(), z = D(), requestAnimationFrame(() => {
|
|
22200
22200
|
e.object && e.object.rotation.z !== e.rad && (e.object.rotation.z = e.rad);
|
|
22201
22201
|
}));
|
|
22202
22202
|
}, stop: () => {
|
|
22203
|
-
|
|
22203
|
+
I.stop(), z == null || z(), z = void 0;
|
|
22204
22204
|
} };
|
|
22205
22205
|
e.animation = O;
|
|
22206
22206
|
}, h = (P) => {
|
|
22207
|
-
var
|
|
22207
|
+
var I;
|
|
22208
22208
|
if (!e.object)
|
|
22209
22209
|
return console.error("ModelEntryDoorGuidePlugin.enable(): object is ", e.object);
|
|
22210
|
-
((
|
|
22210
|
+
((I = P == null ? void 0 : P.animationEnable) != null ? I : i) && (e.animation || c(), e.animation.play()), n.scene.add(e.object), n.needsRender = !0;
|
|
22211
22211
|
}, d = () => {
|
|
22212
22212
|
e.object && (e.animation && e.animation.stop(), n.scene.remove(e.object), n.needsRender = !0);
|
|
22213
22213
|
}, u = (P) => P === "Floorplan" ? h() : d();
|
|
@@ -22291,8 +22291,8 @@ const lh = (n, t, e) => {
|
|
|
22291
22291
|
const { from: d, to: u } = i(o);
|
|
22292
22292
|
return yield new Promise((g) => {
|
|
22293
22293
|
const p = ({ progress: E }) => {
|
|
22294
|
-
const
|
|
22295
|
-
|
|
22294
|
+
const I = {};
|
|
22295
|
+
I.longitude = Pc(d.longitude, u.longitude, E), I.latitude = Pc(d.latitude, u.latitude, E), I.fov = Pc(d.fov, u.fov, E), n.setState(I, !0);
|
|
22296
22296
|
}, m = () => {
|
|
22297
22297
|
g(!0);
|
|
22298
22298
|
}, v = () => {
|
|
@@ -22492,12 +22492,12 @@ const f5 = `<style type="text/css">
|
|
|
22492
22492
|
const A = p5(m, n), P = n.work;
|
|
22493
22493
|
if (!P)
|
|
22494
22494
|
return !1;
|
|
22495
|
-
for (const
|
|
22496
|
-
const z = v[
|
|
22495
|
+
for (const I in v) {
|
|
22496
|
+
const z = v[I], D = (E = P.observers[0]) == null ? void 0 : E.standingPosition;
|
|
22497
22497
|
if (!D)
|
|
22498
22498
|
return;
|
|
22499
22499
|
const j = z.map(({ x: T, z: O, observers: b }) => {
|
|
22500
|
-
const
|
|
22500
|
+
const C = b.length > 0 ? m.rooms[m.observers[b[0]]].name : "", M = A[C] ? A[C].floor : null;
|
|
22501
22501
|
let k = 1 / 0, S = {
|
|
22502
22502
|
index: 0,
|
|
22503
22503
|
x: D.x,
|
|
@@ -22517,24 +22517,24 @@ const f5 = `<style type="text/css">
|
|
|
22517
22517
|
});
|
|
22518
22518
|
const L = new ve(T, S.y, O);
|
|
22519
22519
|
Object.assign(L, { observers: b });
|
|
22520
|
-
const N = A[
|
|
22520
|
+
const N = A[C] ? A[C].roof : null, B = N ? new ve(T, N, O) : null;
|
|
22521
22521
|
return B && Object.assign(B, { observers: b }), { origin: L, vertical: B };
|
|
22522
22522
|
});
|
|
22523
|
-
r[
|
|
22523
|
+
r[I] = {
|
|
22524
22524
|
origins: j.map((T) => T.origin),
|
|
22525
22525
|
rules: []
|
|
22526
22526
|
};
|
|
22527
22527
|
for (const { origin: T, vertical: O } of j) {
|
|
22528
22528
|
if (!O)
|
|
22529
22529
|
continue;
|
|
22530
|
-
const b = i(
|
|
22531
|
-
s.append(b), r[
|
|
22530
|
+
const b = i(I, T.distanceTo(O));
|
|
22531
|
+
s.append(b), r[I].rules.push({ vertical: !0, rule: [T, O], $element: b });
|
|
22532
22532
|
}
|
|
22533
22533
|
for (let T = 0; T < j.length; T++) {
|
|
22534
22534
|
let O = T + 1;
|
|
22535
22535
|
O >= j.length && (O = 0);
|
|
22536
|
-
const { origin: b } = j[T], { origin:
|
|
22537
|
-
s.append(M), r[
|
|
22536
|
+
const { origin: b } = j[T], { origin: C } = j[O], M = i(I, b.distanceTo(C));
|
|
22537
|
+
s.append(M), r[I].rules.push({ vertical: !1, rule: [b, C], $element: M });
|
|
22538
22538
|
}
|
|
22539
22539
|
}
|
|
22540
22540
|
return e.loaded = !0, !0;
|
|
@@ -22542,7 +22542,7 @@ const f5 = `<style type="text/css">
|
|
|
22542
22542
|
const P = m || t.roomInfo, E = v || t.roomRules;
|
|
22543
22543
|
if (!P || !E)
|
|
22544
22544
|
throw new Error("标尺数据依赖不齐全!");
|
|
22545
|
-
return e.loaded = !1, e.options = F(F({}, e.options), A || {}), n.model.loaded ? a(P, E) : yield new Promise((
|
|
22545
|
+
return e.loaded = !1, e.options = F(F({}, e.options), A || {}), n.model.loaded ? a(P, E) : yield new Promise((I) => n.once("modelLoaded", () => I(a(P, E))));
|
|
22546
22546
|
});
|
|
22547
22547
|
t.roomInfo && t.roomRules && l(t.roomInfo, t.roomRules);
|
|
22548
22548
|
const c = (m, v, A, P) => {
|
|
@@ -22563,12 +22563,12 @@ const f5 = `<style type="text/css">
|
|
|
22563
22563
|
{ x: 0, y: P },
|
|
22564
22564
|
{ x: A, y: P }
|
|
22565
22565
|
]
|
|
22566
|
-
],
|
|
22566
|
+
], I = [];
|
|
22567
22567
|
for (let z = 0; z < E.length; z++) {
|
|
22568
22568
|
const D = J1([m, v], [E[z][0], E[z][1]], !0);
|
|
22569
|
-
D &&
|
|
22569
|
+
D && I.push(D);
|
|
22570
22570
|
}
|
|
22571
|
-
return
|
|
22571
|
+
return I.length === 0 ? !1 : I;
|
|
22572
22572
|
}, h = () => {
|
|
22573
22573
|
var O;
|
|
22574
22574
|
const m = (O = n.getElement()) == null ? void 0 : O.parentElement;
|
|
@@ -22582,25 +22582,25 @@ const f5 = `<style type="text/css">
|
|
|
22582
22582
|
b.split(",").indexOf(v.toString()) >= 0 && (E = b);
|
|
22583
22583
|
if (!E) {
|
|
22584
22584
|
for (const b in r)
|
|
22585
|
-
for (const { $element:
|
|
22586
|
-
|
|
22585
|
+
for (const { $element: C } of r[b].rules)
|
|
22586
|
+
C.style.display = "none";
|
|
22587
22587
|
return;
|
|
22588
22588
|
}
|
|
22589
|
-
const
|
|
22589
|
+
const I = A.position, z = A.getWorldDirection(new ve()), D = m.clientWidth, j = m.clientHeight;
|
|
22590
22590
|
if (P !== Gt.Mode.Panorama) {
|
|
22591
22591
|
for (const b in r)
|
|
22592
|
-
for (const { $element:
|
|
22593
|
-
|
|
22592
|
+
for (const { $element: C } of r[b].rules)
|
|
22593
|
+
C.style.display = "none";
|
|
22594
22594
|
return;
|
|
22595
22595
|
}
|
|
22596
22596
|
for (const b in r)
|
|
22597
|
-
for (const { $element:
|
|
22598
|
-
|
|
22599
|
-
const [T] = r[E].origins.slice().filter((b) => b.observers.indexOf(v) >= 0).sort((b,
|
|
22600
|
-
const M = b.clone().setY(0).sub(
|
|
22597
|
+
for (const { $element: C } of r[b].rules)
|
|
22598
|
+
C.style.display = b === E ? "block" : "none";
|
|
22599
|
+
const [T] = r[E].origins.slice().filter((b) => b.observers.indexOf(v) >= 0).sort((b, C) => {
|
|
22600
|
+
const M = b.clone().setY(0).sub(I).normalize().angleTo(z.clone().setY(0)), k = C.clone().setY(0).sub(I).normalize().angleTo(z.clone().setY(0));
|
|
22601
22601
|
return M - k;
|
|
22602
22602
|
});
|
|
22603
|
-
for (const { rule: b, vertical:
|
|
22603
|
+
for (const { rule: b, vertical: C, $element: M } of r[E].rules) {
|
|
22604
22604
|
const [k, S] = b, L = M.querySelector(".PanoRulerPlugin-rule-line");
|
|
22605
22605
|
if (!L)
|
|
22606
22606
|
return;
|
|
@@ -22620,18 +22620,18 @@ const f5 = `<style type="text/css">
|
|
|
22620
22620
|
M.style.display = "none";
|
|
22621
22621
|
continue;
|
|
22622
22622
|
}
|
|
22623
|
-
if (k.clone().sub(
|
|
22623
|
+
if (k.clone().sub(I).normalize().angleTo(z) > Math.PI / 2) {
|
|
22624
22624
|
M.style.display = "none";
|
|
22625
22625
|
continue;
|
|
22626
22626
|
}
|
|
22627
|
-
if (S.clone().sub(
|
|
22627
|
+
if (S.clone().sub(I).normalize().angleTo(z) > Math.PI / 2) {
|
|
22628
22628
|
M.style.display = "none";
|
|
22629
22629
|
continue;
|
|
22630
22630
|
}
|
|
22631
22631
|
const Z = k.distanceTo(S);
|
|
22632
22632
|
if (S.clone().sub(
|
|
22633
22633
|
S.clone().sub(k).divide(new ve(2, 2, 2))
|
|
22634
|
-
).distanceTo(
|
|
22634
|
+
).distanceTo(I) / Z > 8) {
|
|
22635
22635
|
M.style.display = "none";
|
|
22636
22636
|
continue;
|
|
22637
22637
|
}
|
|
@@ -22665,7 +22665,7 @@ const f5 = `<style type="text/css">
|
|
|
22665
22665
|
const v = m.distanceText;
|
|
22666
22666
|
e.options.distanceText = v, Object.values(r).forEach((A) => {
|
|
22667
22667
|
A.rules.forEach((P) => {
|
|
22668
|
-
const [E,
|
|
22668
|
+
const [E, I] = P.rule, z = E.distanceTo(I), D = P.$element.querySelector(".PanoRulerPlugin-rule-label-name");
|
|
22669
22669
|
D && (D.innerText = v(z));
|
|
22670
22670
|
});
|
|
22671
22671
|
});
|
|
@@ -22975,7 +22975,7 @@ function P5(n) {
|
|
|
22975
22975
|
function C5(n, t, e) {
|
|
22976
22976
|
var m, v, A, P;
|
|
22977
22977
|
let { five: i } = t, { rulerDatas: s } = t, { options: o } = t, r = [];
|
|
22978
|
-
const a = ((v = (m = i.getElement()) == null ? void 0 : m.parentElement) == null ? void 0 : v.clientWidth) || 0, l = ((P = (A = i.getElement()) == null ? void 0 : A.parentElement) == null ? void 0 : P.clientHeight) || 0, c = (E,
|
|
22978
|
+
const a = ((v = (m = i.getElement()) == null ? void 0 : m.parentElement) == null ? void 0 : v.clientWidth) || 0, l = ((P = (A = i.getElement()) == null ? void 0 : A.parentElement) == null ? void 0 : P.clientHeight) || 0, c = (E, I) => {
|
|
22979
22979
|
const z = [
|
|
22980
22980
|
[{ x: 0, y: 0 }, { x: a, y: 0 }],
|
|
22981
22981
|
[{ x: 0, y: 0 }, { x: 0, y: l }],
|
|
@@ -22983,26 +22983,26 @@ function C5(n, t, e) {
|
|
|
22983
22983
|
[{ x: 0, y: l }, { x: a, y: l }]
|
|
22984
22984
|
], D = [];
|
|
22985
22985
|
for (let j = 0; j < z.length; j++) {
|
|
22986
|
-
const T = J1([E,
|
|
22986
|
+
const T = J1([E, I], [z[j][0], z[j][1]], !0);
|
|
22987
22987
|
T && D.push(T);
|
|
22988
22988
|
}
|
|
22989
22989
|
return D.length === 0 ? !1 : D;
|
|
22990
|
-
}, h = (E,
|
|
22991
|
-
const z = E.clone().project(i.camera), D = (z.x + 1) / 2 * a, j = (-z.y + 1) / 2 * l, T =
|
|
22990
|
+
}, h = (E, I) => {
|
|
22991
|
+
const z = E.clone().project(i.camera), D = (z.x + 1) / 2 * a, j = (-z.y + 1) / 2 * l, T = I.clone().project(i.camera), O = (T.x + 1) / 2 * a, b = (-T.y + 1) / 2 * l, C = Math.sqrt(Math.pow(O - D, 2) + Math.pow(b - j, 2));
|
|
22992
22992
|
return {
|
|
22993
22993
|
startLeft: D,
|
|
22994
22994
|
startTop: j,
|
|
22995
22995
|
endLeft: O,
|
|
22996
22996
|
endTop: b,
|
|
22997
|
-
distance:
|
|
22997
|
+
distance: C
|
|
22998
22998
|
};
|
|
22999
|
-
}, d = (E,
|
|
23000
|
-
const D = i.camera.position, j = i.camera.getWorldDirection(new ve()), T = E.clone().sub(D).normalize().angleTo(j), O =
|
|
22999
|
+
}, d = (E, I, z) => {
|
|
23000
|
+
const D = i.camera.position, j = i.camera.getWorldDirection(new ve()), T = E.clone().sub(D).normalize().angleTo(j), O = I.clone().sub(D).normalize().angleTo(j), b = E.distanceTo(I), M = I.clone().sub(I.clone().sub(E).divide(new ve(2, 2, 2))).distanceTo(D), { startLeft: k, startTop: S, endLeft: L, endTop: N, distance: B } = h(E, I), ie = -((Math.PI / 2 - Math.atan2(L - k, S - N)) / Math.PI) * 180;
|
|
23001
23001
|
let K = !0;
|
|
23002
|
-
z || (K = !1), !Wt(E, z) && !Wt(
|
|
23002
|
+
z || (K = !1), !Wt(E, z) && !Wt(I, z) && (K = !1), b < 0.3 && (K = !1), T > Math.PI / 2 && (K = !1), O > Math.PI / 2 && (K = !1), M / b > 8 && (K = !1);
|
|
23003
23003
|
let oe = 50, $ = B;
|
|
23004
23004
|
const ue = c({ x: ~~k, y: ~~S }, { x: ~~L, y: ~~N });
|
|
23005
|
-
if (ue && ue.length === 1 && (Wt(E, z) ? ($ = Math.sqrt(Math.pow(ue[0].x - k, 2) + Math.pow(ue[0].y - S, 2)), oe = $ / B * 50) : Wt(
|
|
23005
|
+
if (ue && ue.length === 1 && (Wt(E, z) ? ($ = Math.sqrt(Math.pow(ue[0].x - k, 2) + Math.pow(ue[0].y - S, 2)), oe = $ / B * 50) : Wt(I, z) && ($ = Math.sqrt(Math.pow(ue[0].x - L, 2) + Math.pow(ue[0].y - N, 2)), oe = 100 - $ / B * 50)), ue && ue.length === 2) {
|
|
23006
23006
|
const Le = {
|
|
23007
23007
|
x: (ue[0].x + ue[1].x) / 2,
|
|
23008
23008
|
y: (ue[0].y + ue[1].y) / 2
|
|
@@ -23019,18 +23019,18 @@ function C5(n, t, e) {
|
|
|
23019
23019
|
ruleLength: b
|
|
23020
23020
|
};
|
|
23021
23021
|
}, u = () => {
|
|
23022
|
-
const E = i.panoIndex,
|
|
23023
|
-
if (!
|
|
23022
|
+
const E = i.panoIndex, I = s.find((C) => C.panoIndex === E);
|
|
23023
|
+
if (!I)
|
|
23024
23024
|
return e(0, r = []);
|
|
23025
23025
|
if (i.currentMode !== Gt.Mode.Panorama)
|
|
23026
23026
|
return e(0, r = []);
|
|
23027
|
-
const z = i.camera.position, D = i.camera.getWorldDirection(new ve()), j =
|
|
23028
|
-
const k =
|
|
23027
|
+
const z = i.camera.position, D = i.camera.getWorldDirection(new ve()), j = I.lines.map((C) => new ve(C.start[0], -C.start[1], -C.start[2])), T = I.lines.map((C) => new ve(C.end[0], -C.end[1], -C.end[2])), [O] = j.concat(T).sort((C, M) => {
|
|
23028
|
+
const k = C.clone().setY(0).sub(z).normalize().angleTo(D.clone().setY(0)), S = M.clone().setY(0).sub(z).normalize().angleTo(D.clone().setY(0));
|
|
23029
23029
|
return k - S;
|
|
23030
|
-
}), b =
|
|
23030
|
+
}), b = I.lines.map((C) => {
|
|
23031
23031
|
var $, ue;
|
|
23032
|
-
const M =
|
|
23033
|
-
return
|
|
23032
|
+
const M = C.start, k = C.end, { startLeft: S, startTop: L, distance: N, deg: B, visible: Z, labelOffset: ie, ruleLength: K } = d(new ve(M[0], -M[1], -M[2]), new ve(k[0], -k[1], -k[2]), O), oe = [];
|
|
23033
|
+
return C.children && (($ = C.children) == null ? void 0 : $.length) > 0 && ((ue = C.children) == null || ue.forEach((Le) => {
|
|
23034
23034
|
const re = Le.start, Me = Le.end, { distance: de } = h(new ve(re[0], -re[1], -re[2]), new ve(Me[0], -Me[1], -Me[2]));
|
|
23035
23035
|
oe.push({ width: de, state: Le.state });
|
|
23036
23036
|
})), {
|
|
@@ -23038,7 +23038,7 @@ function C5(n, t, e) {
|
|
|
23038
23038
|
left: S,
|
|
23039
23039
|
top: L,
|
|
23040
23040
|
rotateDeg: B,
|
|
23041
|
-
state:
|
|
23041
|
+
state: C.state,
|
|
23042
23042
|
children: oe,
|
|
23043
23043
|
labelOffset: ie,
|
|
23044
23044
|
visible: Z,
|
|
@@ -23632,12 +23632,12 @@ class W5 extends tv {
|
|
|
23632
23632
|
this.hide();
|
|
23633
23633
|
return;
|
|
23634
23634
|
}
|
|
23635
|
-
const P = Mt(l, c).distanceTo(e.camera.position), E = e.camera.fov || 60,
|
|
23635
|
+
const P = Mt(l, c).distanceTo(e.camera.position), E = e.camera.fov || 60, I = 2 * Math.tan(0.5 * E / 180 * Math.PI), z = Math.max(Math.min(1 - I * P / 40, 1), 0);
|
|
23636
23636
|
this.contentDom.style.setProperty("--distance-scale", z.toString());
|
|
23637
23637
|
const D = (u.x + 1) / 2 * s, j = -(u.y - 1) / 2 * o, O = -(Math.atan((g.y - p.y) / (g.x - p.x)) * 180) / Math.PI, b = this.containerDom.parentElement && this.contentDom.clientWidth > m ? -20 : 0;
|
|
23638
23638
|
this.containerDom.style.transform = `translate(${D}px, ${j}px) rotate(${O}deg) translateY(${b}px)`, this.show(), (M = this.params.userDistanceItem) == null || M.update({ line: this.line, polyline: this.line.getPolyline() });
|
|
23639
|
-
const
|
|
23640
|
-
this.contentDom.innerText =
|
|
23639
|
+
const C = this.getCurrentContent();
|
|
23640
|
+
this.contentDom.innerText = C;
|
|
23641
23641
|
}
|
|
23642
23642
|
getFiveInstance() {
|
|
23643
23643
|
var e, i;
|
|
@@ -23983,20 +23983,20 @@ function X5(n, t, e, i) {
|
|
|
23983
23983
|
var s = n.prev, o = n, r = n.next;
|
|
23984
23984
|
if (bt(s, o, r) >= 0)
|
|
23985
23985
|
return !1;
|
|
23986
|
-
for (var a = s.x, l = o.x, c = r.x, h = s.y, d = o.y, u = r.y, g = a < l ? a < c ? a : c : l < c ? l : c, p = h < d ? h < u ? h : u : d < u ? d : u, m = a > l ? a > c ? a : c : l > c ? l : c, v = h > d ? h > u ? h : u : d > u ? d : u, A = ch(g, p, t, e, i), P = ch(m, v, t, e, i), E = n.prevZ,
|
|
23987
|
-
if (E.x >= g && E.x <= m && E.y >= p && E.y <= v && E !== s && E !== r && Eo(a, h, l, d, c, u, E.x, E.y) && bt(E.prev, E, E.next) >= 0 || (E = E.prevZ,
|
|
23986
|
+
for (var a = s.x, l = o.x, c = r.x, h = s.y, d = o.y, u = r.y, g = a < l ? a < c ? a : c : l < c ? l : c, p = h < d ? h < u ? h : u : d < u ? d : u, m = a > l ? a > c ? a : c : l > c ? l : c, v = h > d ? h > u ? h : u : d > u ? d : u, A = ch(g, p, t, e, i), P = ch(m, v, t, e, i), E = n.prevZ, I = n.nextZ; E && E.z >= A && I && I.z <= P; ) {
|
|
23987
|
+
if (E.x >= g && E.x <= m && E.y >= p && E.y <= v && E !== s && E !== r && Eo(a, h, l, d, c, u, E.x, E.y) && bt(E.prev, E, E.next) >= 0 || (E = E.prevZ, I.x >= g && I.x <= m && I.y >= p && I.y <= v && I !== s && I !== r && Eo(a, h, l, d, c, u, I.x, I.y) && bt(I.prev, I, I.next) >= 0))
|
|
23988
23988
|
return !1;
|
|
23989
|
-
|
|
23989
|
+
I = I.nextZ;
|
|
23990
23990
|
}
|
|
23991
23991
|
for (; E && E.z >= A; ) {
|
|
23992
23992
|
if (E.x >= g && E.x <= m && E.y >= p && E.y <= v && E !== s && E !== r && Eo(a, h, l, d, c, u, E.x, E.y) && bt(E.prev, E, E.next) >= 0)
|
|
23993
23993
|
return !1;
|
|
23994
23994
|
E = E.prevZ;
|
|
23995
23995
|
}
|
|
23996
|
-
for (;
|
|
23997
|
-
if (
|
|
23996
|
+
for (; I && I.z <= P; ) {
|
|
23997
|
+
if (I.x >= g && I.x <= m && I.y >= p && I.y <= v && I !== s && I !== r && Eo(a, h, l, d, c, u, I.x, I.y) && bt(I.prev, I, I.next) >= 0)
|
|
23998
23998
|
return !1;
|
|
23999
|
-
|
|
23999
|
+
I = I.nextZ;
|
|
24000
24000
|
}
|
|
24001
24001
|
return !0;
|
|
24002
24002
|
}
|
|
@@ -24638,8 +24638,8 @@ class ss extends Ul {
|
|
|
24638
24638
|
), P = new y.Line3(
|
|
24639
24639
|
g.localToWorld(new y.Vector3(0, 1, 0)).add(v),
|
|
24640
24640
|
g.localToWorld(new y.Vector3(0, -1, 0)).add(v)
|
|
24641
|
-
), E = A.closestPointToPoint(m, !1, new y.Vector3()),
|
|
24642
|
-
return [E,
|
|
24641
|
+
), E = A.closestPointToPoint(m, !1, new y.Vector3()), I = P.closestPointToPoint(m, !1, new y.Vector3());
|
|
24642
|
+
return [E, I];
|
|
24643
24643
|
}
|
|
24644
24644
|
return [];
|
|
24645
24645
|
};
|
|
@@ -24714,18 +24714,18 @@ class ss extends Ul {
|
|
|
24714
24714
|
if (s != null && s.isPolygonMesh) {
|
|
24715
24715
|
const A = this.model.areas.find((P) => P.polygon === s);
|
|
24716
24716
|
if (A) {
|
|
24717
|
-
const { x: P, y: E } = i[0].point.clone().project(this.five.camera),
|
|
24718
|
-
return this.chooseArea(A, { left:
|
|
24717
|
+
const { x: P, y: E } = i[0].point.clone().project(this.five.camera), I = `${(P + 1) / 2 * 100}%`, z = `${(-E + 1) / 2 * 100}%`;
|
|
24718
|
+
return this.chooseArea(A, { left: I, top: z }), !1;
|
|
24719
24719
|
}
|
|
24720
24720
|
}
|
|
24721
24721
|
const [o] = Ei(this.five).intersectRaycaster(e);
|
|
24722
24722
|
if (!o)
|
|
24723
24723
|
return;
|
|
24724
24724
|
const r = this.five.camera, a = o.point.clone().project(r), l = this.container.clientWidth, c = this.container.clientHeight, h = new Ut(a.x * l, a.y * c), d = this.model.getAllLines().map((A) => {
|
|
24725
|
-
const [P, E] = A.points,
|
|
24726
|
-
if (!qs(
|
|
24725
|
+
const [P, E] = A.points, I = P.position.clone().project(r), z = E.position.clone().project(r);
|
|
24726
|
+
if (!qs(I) && !qs(z))
|
|
24727
24727
|
return null;
|
|
24728
|
-
const D = new Ut(
|
|
24728
|
+
const D = new Ut(I.x * l, I.y * c), j = new Ut(z.x * l, z.y * c);
|
|
24729
24729
|
return { id: A.id, points: [D, j] };
|
|
24730
24730
|
}).filter((A) => !!A);
|
|
24731
24731
|
if (d.length === 0)
|
|
@@ -24966,18 +24966,18 @@ class gg extends Ul {
|
|
|
24966
24966
|
if (s instanceof cv) {
|
|
24967
24967
|
const A = this.model.areas.find((P) => P.polygon === s);
|
|
24968
24968
|
if (A) {
|
|
24969
|
-
const { x: P, y: E } = i[0].point.clone().project(this.five.camera),
|
|
24970
|
-
return this.chooseArea(A, { left:
|
|
24969
|
+
const { x: P, y: E } = i[0].point.clone().project(this.five.camera), I = `${(P + 1) / 2 * 100}%`, z = `${(-E + 1) / 2 * 100}%`;
|
|
24970
|
+
return this.chooseArea(A, { left: I, top: z }), !1;
|
|
24971
24971
|
}
|
|
24972
24972
|
}
|
|
24973
24973
|
const o = Ei(this.five), [r] = o.intersectRaycaster(e);
|
|
24974
24974
|
if (!r)
|
|
24975
24975
|
return;
|
|
24976
24976
|
const a = this.five.camera, l = r.point.clone().project(a), c = this.container.clientWidth, h = this.container.clientHeight, d = new Ut(l.x * c, l.y * h), u = this.model.getAllLines().map((A) => {
|
|
24977
|
-
const [P, E] = A.points,
|
|
24978
|
-
if (!qs(
|
|
24977
|
+
const [P, E] = A.points, I = P.position.clone().project(a), z = E.position.clone().project(a);
|
|
24978
|
+
if (!qs(I) && !qs(z))
|
|
24979
24979
|
return null;
|
|
24980
|
-
const D = new Ut(
|
|
24980
|
+
const D = new Ut(I.x * c, I.y * h), j = new Ut(z.x * c, z.y * h);
|
|
24981
24981
|
return { id: A.id, points: [D, j] };
|
|
24982
24982
|
}).filter((A) => !!A);
|
|
24983
24983
|
if (u.length === 0)
|
|
@@ -25327,8 +25327,8 @@ class Ir extends Ul {
|
|
|
25327
25327
|
const [m, v] = p.points, A = m.position.clone().project(o), P = v.position.clone().project(o);
|
|
25328
25328
|
if (!qs(A) && !qs(P))
|
|
25329
25329
|
return null;
|
|
25330
|
-
const E = new Ut(A.x * a, A.y * l),
|
|
25331
|
-
return { id: p.id, points: [E,
|
|
25330
|
+
const E = new Ut(A.x * a, A.y * l), I = new Ut(P.x * a, P.y * l);
|
|
25331
|
+
return { id: p.id, points: [E, I] };
|
|
25332
25332
|
}).filter((p) => !!p);
|
|
25333
25333
|
if (h.length === 0)
|
|
25334
25334
|
return;
|
|
@@ -26865,20 +26865,20 @@ function rI(n) {
|
|
|
26865
26865
|
16 && H(v, 1)) : (v = Sg(P), v.c(), H(v, 1), v.m(l, c)) : v && (ke(), Y(v, 1, 1, () => {
|
|
26866
26866
|
v = null;
|
|
26867
26867
|
}), xe());
|
|
26868
|
-
const
|
|
26868
|
+
const I = {};
|
|
26869
26869
|
E & /*buttonState*/
|
|
26870
|
-
8 && (
|
|
26870
|
+
8 && (I.onClick = /*func*/
|
|
26871
26871
|
P[14]), E & /*buttonState*/
|
|
26872
|
-
8 && (
|
|
26872
|
+
8 && (I.text = /*buttonTextMap*/
|
|
26873
26873
|
P[6][
|
|
26874
26874
|
/*buttonState*/
|
|
26875
26875
|
P[3]
|
|
26876
26876
|
]), E & /*buttonState*/
|
|
26877
|
-
8 && (
|
|
26877
|
+
8 && (I.color = /*buttonColorMap*/
|
|
26878
26878
|
P[7][
|
|
26879
26879
|
/*buttonState*/
|
|
26880
26880
|
P[3]
|
|
26881
|
-
]), d.$set(
|
|
26881
|
+
]), d.$set(I), (!g || E & /*allowAddPoint*/
|
|
26882
26882
|
32) && Ce(h, "forbid", !/*allowAddPoint*/
|
|
26883
26883
|
P[5]), /*showButton*/
|
|
26884
26884
|
P[4] ? A ? (A.p(P, E), E & /*showButton*/
|
|
@@ -26928,7 +26928,7 @@ function aI(n, t, e) {
|
|
|
26928
26928
|
i.currentMeasureType === "area" && h === "complete" && m("add");
|
|
26929
26929
|
}, E = (b) => {
|
|
26930
26930
|
b.length;
|
|
26931
|
-
},
|
|
26931
|
+
}, I = () => {
|
|
26932
26932
|
m("start"), z("allow");
|
|
26933
26933
|
}, z = (b) => {
|
|
26934
26934
|
e(5, c = b === "allow");
|
|
@@ -26938,9 +26938,9 @@ function aI(n, t, e) {
|
|
|
26938
26938
|
b.isEmpty && m("start");
|
|
26939
26939
|
};
|
|
26940
26940
|
Tt(() => {
|
|
26941
|
-
i.hook.on("revoke", j), i.hook.on("measureTypeChange", D), i.hook.on("modeChange",
|
|
26941
|
+
i.hook.on("revoke", j), i.hook.on("measureTypeChange", D), i.hook.on("modeChange", I), i.hook.on("pointsChange", E), i.hook.on("allowAddPointStateChange", z), i.hook.on("readyComplete", A), i.hook.on("notReadyComplete", P), i.hook.on("complete", I);
|
|
26942
26942
|
}), $t(() => {
|
|
26943
|
-
i.hook.off("measureTypeChange", D), i.hook.off("modeChange",
|
|
26943
|
+
i.hook.off("measureTypeChange", D), i.hook.off("modeChange", I), i.hook.off("allowAddPointStateChange", z), i.hook.off("readyComplete", A), i.hook.off("pointsChange", E), i.hook.off("notReadyComplete", P), i.hook.off("complete", I);
|
|
26944
26944
|
});
|
|
26945
26945
|
const T = () => i.revoke(), O = () => {
|
|
26946
26946
|
h === "start" ? u() : h === "add" ? g() : (h === "end" || h === "complete") && v();
|
|
@@ -27169,8 +27169,8 @@ function fI(n, t, e) {
|
|
|
27169
27169
|
let { measureController: i } = t, { i18n: s = (P) => P } = t, { tips: o } = t, { tipStyle: r = {} } = t, { visible: a = !0 } = t, l = null;
|
|
27170
27170
|
const c = (P) => {
|
|
27171
27171
|
const E = i.currentMeasureType;
|
|
27172
|
-
let
|
|
27173
|
-
return
|
|
27172
|
+
let I = "";
|
|
27173
|
+
return I = o[P], I === void 0 && (I = o[E][P]), I;
|
|
27174
27174
|
}, h = (P) => {
|
|
27175
27175
|
e(2, u = s(c(P)));
|
|
27176
27176
|
}, d = () => {
|
|
@@ -28419,9 +28419,9 @@ class _I extends kt {
|
|
|
28419
28419
|
if (this.pointSelector.actionIfNoIntersection = "virtualPoint", i.removeFromParent(), this.group.addIfNotExists(s), s.setStyle(he(F({}, this.lineStyle), { dashed: !0, cssStyle: "pointer-events: none;" })), s.setPoints([e.points.at(-1), E.point]), E.isAdsorbed)
|
|
28420
28420
|
r.removeFromParent(), a.removeFromParent(), l.removeFromParent(), c = null, h = !1;
|
|
28421
28421
|
else {
|
|
28422
|
-
const
|
|
28423
|
-
if (Math.abs(E.point.y -
|
|
28424
|
-
const D = new y.Vector3(E.point.x,
|
|
28422
|
+
const I = e.points.at(-1);
|
|
28423
|
+
if (Math.abs(E.point.y - I.y) > 0.2) {
|
|
28424
|
+
const D = new y.Vector3(E.point.x, I.y, E.point.z);
|
|
28425
28425
|
r.setStyle(he(F({}, this.lineStyle), {
|
|
28426
28426
|
lineOpacity: 0.5,
|
|
28427
28427
|
lineColor: 3407837,
|
|
@@ -28432,10 +28432,10 @@ class _I extends kt {
|
|
|
28432
28432
|
lineColor: 3407837,
|
|
28433
28433
|
dashed: !0,
|
|
28434
28434
|
cssStyle: "pointer-events: none; opacity: 0.5;"
|
|
28435
|
-
})), r.setPoints([
|
|
28435
|
+
})), r.setPoints([I, D]), a.setPoints([D, E.point]), l.position.copy(D), c = D.clone(), h = !0;
|
|
28436
28436
|
} else {
|
|
28437
28437
|
let D = new y.Vector3();
|
|
28438
|
-
Math.abs(E.point.x -
|
|
28438
|
+
Math.abs(E.point.x - I.x) < Math.abs(E.point.z - I.z) ? D = new y.Vector3(E.point.x, I.y, I.z) : D = new y.Vector3(I.x, I.y, E.point.z), r.setStyle(he(F({}, this.lineStyle), {
|
|
28439
28439
|
lineOpacity: 0.5,
|
|
28440
28440
|
lineColor: 3407837,
|
|
28441
28441
|
dashed: !0,
|
|
@@ -28445,22 +28445,22 @@ class _I extends kt {
|
|
|
28445
28445
|
lineColor: 3407837,
|
|
28446
28446
|
dashed: !0,
|
|
28447
28447
|
cssStyle: "pointer-events: none; opacity: 0.5;"
|
|
28448
|
-
})), r.setPoints([
|
|
28448
|
+
})), r.setPoints([I, D]), a.setPoints([D, E.point]), l.position.copy(D), c = D.clone(), h = !0;
|
|
28449
28449
|
}
|
|
28450
28450
|
this.group.addIfNotExists(r, a, l);
|
|
28451
28451
|
}
|
|
28452
28452
|
if (e.points.length >= 2) {
|
|
28453
|
-
const
|
|
28454
|
-
yv(
|
|
28453
|
+
const I = [...e.points, E.point];
|
|
28454
|
+
yv(I) ? (o.setStyle(F({}, this.polygonStyle)), o.setPoints(I), this.group.addIfNotExists(o)) : o.removeFromParent();
|
|
28455
28455
|
}
|
|
28456
28456
|
}, v = (E) => {
|
|
28457
28457
|
if (!E)
|
|
28458
28458
|
return;
|
|
28459
|
-
let
|
|
28460
|
-
d && h && c && e.points.length >= 1 && (
|
|
28459
|
+
let I = E.point;
|
|
28460
|
+
d && h && c && e.points.length >= 1 && (I = c.clone()), p(), e.setPoints([...e.points, I]), this.updateSelectAdsorbedHelper(), e.isPolygon && (this.currentEndReason = "polygon", this.pointSelector.disable());
|
|
28461
28461
|
}, A = () => {
|
|
28462
|
-
var E,
|
|
28463
|
-
e == null || e.setPoints(e.points.slice(0, -1)), p(), (
|
|
28462
|
+
var E, I;
|
|
28463
|
+
e == null || e.setPoints(e.points.slice(0, -1)), p(), (I = (E = this.pointSelector.pointSelectorHelper) == null ? void 0 : E.magnifier) == null || I.render(), this.updateSelectAdsorbedHelper(), this.five.needsRender = !0;
|
|
28464
28464
|
}, P = () => {
|
|
28465
28465
|
this.pointSelector.off("intersectionUpdate", m), this.pointSelector.off("select", v), this.pointSelector.off("disable", P), this.off("undo", A), document.removeEventListener("keydown", u), document.removeEventListener("keyup", g), e.line.setStyle({ cssStyle: "pointer-events: auto;" }), p();
|
|
28466
28466
|
let E = this.currentEndReason;
|
|
@@ -29334,7 +29334,7 @@ function WI(n, t, e) {
|
|
|
29334
29334
|
},
|
|
29335
29335
|
100
|
|
29336
29336
|
);
|
|
29337
|
-
const
|
|
29337
|
+
const I = (j) => {
|
|
29338
29338
|
const T = Object.keys(u);
|
|
29339
29339
|
let O = j.target;
|
|
29340
29340
|
for (; O; ) {
|
|
@@ -29347,8 +29347,8 @@ function WI(n, t, e) {
|
|
|
29347
29347
|
O = null;
|
|
29348
29348
|
break;
|
|
29349
29349
|
}
|
|
29350
|
-
T.forEach((
|
|
29351
|
-
b.includes(
|
|
29350
|
+
T.forEach((C) => {
|
|
29351
|
+
b.includes(C) && u[C](i);
|
|
29352
29352
|
}), O = O.parentNode;
|
|
29353
29353
|
}
|
|
29354
29354
|
};
|
|
@@ -29391,7 +29391,7 @@ function WI(n, t, e) {
|
|
|
29391
29391
|
v,
|
|
29392
29392
|
A,
|
|
29393
29393
|
P,
|
|
29394
|
-
|
|
29394
|
+
I,
|
|
29395
29395
|
h,
|
|
29396
29396
|
d,
|
|
29397
29397
|
u,
|
|
@@ -29619,7 +29619,7 @@ const Mc = 1e-3, Gg = 0.01, Wg = sd, oL = (n, t) => {
|
|
|
29619
29619
|
Ae.destroying && (Ae.app.$destroy(), Ae = null);
|
|
29620
29620
|
}), m.tags = m.tags.filter((Ae) => !Ae.destroying), z();
|
|
29621
29621
|
}, 1900);
|
|
29622
|
-
},
|
|
29622
|
+
}, I = (de) => {
|
|
29623
29623
|
de !== Gt.Mode.Panorama && !m.forbidden && (v.$set({ origins: [] }), m.tags.forEach((le) => {
|
|
29624
29624
|
le.app.$destroy(), le = null;
|
|
29625
29625
|
}), m.origins = [], m.tags = [], m.forbidden = !0);
|
|
@@ -29749,7 +29749,7 @@ const Mc = 1e-3, Gg = 0.01, Wg = sd, oL = (n, t) => {
|
|
|
29749
29749
|
m.intersectObjects = de, D();
|
|
29750
29750
|
}, b = () => {
|
|
29751
29751
|
m.enabled = !0, D();
|
|
29752
|
-
},
|
|
29752
|
+
}, C = () => {
|
|
29753
29753
|
m.enabled = !1, v.$set({ origins: [] }), m.tags.forEach((de) => {
|
|
29754
29754
|
de.app.$destroy(), de = null;
|
|
29755
29755
|
}), m.origins = [], m.tags = [];
|
|
@@ -29772,11 +29772,11 @@ const Mc = 1e-3, Gg = 0.01, Wg = sd, oL = (n, t) => {
|
|
|
29772
29772
|
}, N = () => {
|
|
29773
29773
|
n.once("renderFrame", z);
|
|
29774
29774
|
}, B = () => {
|
|
29775
|
-
e || (e = n.getElement().parentElement), e && e.appendChild(u), m.forbidden = !1, i = n.model.bounding.getCenter(new y.Vector3()).y, D(), n.on("panoWillArrive", E), n.on("panoArrived", P), n.on("modeChange",
|
|
29775
|
+
e || (e = n.getElement().parentElement), e && e.appendChild(u), m.forbidden = !1, i = n.model.bounding.getCenter(new y.Vector3()).y, D(), n.on("panoWillArrive", E), n.on("panoArrived", P), n.on("modeChange", I), n.on("cameraUpdate", A);
|
|
29776
29776
|
}, Z = () => {
|
|
29777
29777
|
p = null, d.disposeAll(), v.$destroy(), m.tags.forEach((de) => {
|
|
29778
29778
|
de.app.$destroy(), de = null;
|
|
29779
|
-
}), m.origins = [], m.tags = [], n.off("modelLoaded", B), n.off("renderFrame", z), n.off("panoWillArrive", E), n.off("panoArrived", P), n.off("modeChange",
|
|
29779
|
+
}), m.origins = [], m.tags = [], n.off("modelLoaded", B), n.off("renderFrame", z), n.off("panoWillArrive", E), n.off("panoArrived", P), n.off("modeChange", I), n.off("cameraUpdate", A), n.off("dispose", Z), window.removeEventListener("resize", N, !1);
|
|
29780
29780
|
};
|
|
29781
29781
|
return window.addEventListener("resize", N, !1), (Me = n == null ? void 0 : n.model) != null && Me.loaded ? B() : n.once("modelLoaded", B), n.on("dispose", Z), {
|
|
29782
29782
|
load: T,
|
|
@@ -29786,7 +29786,7 @@ const Mc = 1e-3, Gg = 0.01, Wg = sd, oL = (n, t) => {
|
|
|
29786
29786
|
unfold: S,
|
|
29787
29787
|
fold: L,
|
|
29788
29788
|
enable: b,
|
|
29789
|
-
disable:
|
|
29789
|
+
disable: C,
|
|
29790
29790
|
hooks: g,
|
|
29791
29791
|
dispose: Z
|
|
29792
29792
|
};
|
|
@@ -30063,7 +30063,7 @@ function oE(n, t, e) {
|
|
|
30063
30063
|
const L = new s(S.modelPosition[0], S.modelPosition[1], S.modelPosition[2]), N = k.project2d(L), B = N == null ? void 0 : N.x, Z = N == null ? void 0 : N.y;
|
|
30064
30064
|
return [B, Z];
|
|
30065
30065
|
}, P = (k) => `translate(${k[0]}px, ${k[1]}px)`, E = (k, S) => p.length === 0 ? !1 : !!p.find((N) => k[0] >= N[0] - S && k[0] <= N[0] + S || k[1] >= N[1] - Xg && k[1] <= N[1] + Xg);
|
|
30066
|
-
function
|
|
30066
|
+
function I(k, S) {
|
|
30067
30067
|
switch (S) {
|
|
30068
30068
|
case Mo.SMALL:
|
|
30069
30069
|
return Math.ceil(-27.78 * k + 85);
|
|
@@ -30077,7 +30077,7 @@ function oE(n, t, e) {
|
|
|
30077
30077
|
}
|
|
30078
30078
|
const z = (k, S) => {
|
|
30079
30079
|
const L = S.map((B) => {
|
|
30080
|
-
const Z = A(k, B), ie = B.name.length * sE, K =
|
|
30080
|
+
const Z = A(k, B), ie = B.name.length * sE, K = I(B.modelPosition[1], c), $ = (r ? v(k, B) : !0) && !E([Z[0], Z[1] + K], ie);
|
|
30081
30081
|
if (!$)
|
|
30082
30082
|
return he(F({}, B), { visible: $ });
|
|
30083
30083
|
p.push(Z);
|
|
@@ -30113,14 +30113,14 @@ function oE(n, t, e) {
|
|
|
30113
30113
|
},
|
|
30114
30114
|
300
|
|
30115
30115
|
), O = () => {
|
|
30116
|
-
window.addEventListener("resize",
|
|
30116
|
+
window.addEventListener("resize", C, !1);
|
|
30117
30117
|
}, b = () => {
|
|
30118
30118
|
h !== a && (e(1, d = a), h = a, D());
|
|
30119
|
-
},
|
|
30119
|
+
}, C = () => {
|
|
30120
30120
|
o.once("renderFrame", D);
|
|
30121
30121
|
};
|
|
30122
30122
|
$t(() => {
|
|
30123
|
-
o.off("cameraUpdate", j), window.removeEventListener("resize",
|
|
30123
|
+
o.off("cameraUpdate", j), window.removeEventListener("resize", C, !1);
|
|
30124
30124
|
});
|
|
30125
30125
|
function M() {
|
|
30126
30126
|
u = this.clientWidth, g = this.clientHeight, e(2, u), e(3, g);
|
|
@@ -30274,8 +30274,8 @@ const cE = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
|
|
|
30274
30274
|
return;
|
|
30275
30275
|
const P = () => {
|
|
30276
30276
|
var E;
|
|
30277
|
-
e.videoTexture && ((E = e.videoTexture) == null || E.image.removeEventListener("timeupdate", P), e.videoTextureEnabled = !0, e.videoMeshes.forEach((
|
|
30278
|
-
|
|
30277
|
+
e.videoTexture && ((E = e.videoTexture) == null || E.image.removeEventListener("timeupdate", P), e.videoTextureEnabled = !0, e.videoMeshes.forEach((I) => {
|
|
30278
|
+
I.material.map !== e.videoTexture && (I.material.map = e.videoTexture);
|
|
30279
30279
|
}), n.needsRender = !0);
|
|
30280
30280
|
};
|
|
30281
30281
|
e.videoTexture.image.addEventListener("timeupdate", P), e.videoTexture && e.videoMeshes.length && (e.videoTexture.image.play(), e.videoTexture.image.onplay = () => {
|
|
@@ -30295,47 +30295,47 @@ const cE = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
|
|
|
30295
30295
|
A.geometry.dispose(), A.material.dispose(), n.scene.remove(A), e.videoTexture && e.videoTexture.image.pause();
|
|
30296
30296
|
}), e.videoMeshes = [], n.needsRender = !0);
|
|
30297
30297
|
}, c = () => e.rectPoints.map((A, P) => {
|
|
30298
|
-
const E = new y.BufferGeometry(),
|
|
30298
|
+
const E = new y.BufferGeometry(), I = 128, z = [];
|
|
30299
30299
|
z.push(...A[0].toArray());
|
|
30300
|
-
for (let M = 1; M <
|
|
30300
|
+
for (let M = 1; M < I; M++)
|
|
30301
30301
|
z.push(
|
|
30302
|
-
A[0].x + (A[1].x - A[0].x) * M /
|
|
30303
|
-
A[0].y + (A[1].y - A[0].y) * M /
|
|
30304
|
-
A[0].z + (A[1].z - A[0].z) * M /
|
|
30302
|
+
A[0].x + (A[1].x - A[0].x) * M / I,
|
|
30303
|
+
A[0].y + (A[1].y - A[0].y) * M / I,
|
|
30304
|
+
A[0].z + (A[1].z - A[0].z) * M / I
|
|
30305
30305
|
);
|
|
30306
30306
|
z.push(...A[1].toArray()), z.push(...A[2].toArray());
|
|
30307
|
-
for (let M = 1; M <
|
|
30307
|
+
for (let M = 1; M < I; M++)
|
|
30308
30308
|
z.push(
|
|
30309
|
-
A[2].x + (A[3].x - A[2].x) * M /
|
|
30310
|
-
A[2].y + (A[3].y - A[2].y) * M /
|
|
30311
|
-
A[2].z + (A[3].z - A[2].z) * M /
|
|
30309
|
+
A[2].x + (A[3].x - A[2].x) * M / I,
|
|
30310
|
+
A[2].y + (A[3].y - A[2].y) * M / I,
|
|
30311
|
+
A[2].z + (A[3].z - A[2].z) * M / I
|
|
30312
30312
|
);
|
|
30313
30313
|
z.push(...A[3].toArray());
|
|
30314
30314
|
const D = [];
|
|
30315
30315
|
D.push(0, 1);
|
|
30316
|
-
for (let M = 1; M <
|
|
30317
|
-
D.push(0, 1 - M /
|
|
30316
|
+
for (let M = 1; M < I; M++)
|
|
30317
|
+
D.push(0, 1 - M / I);
|
|
30318
30318
|
D.push(0, 0), D.push(1, 0);
|
|
30319
|
-
for (let M = 1; M <
|
|
30320
|
-
D.push(1, M /
|
|
30319
|
+
for (let M = 1; M < I; M++)
|
|
30320
|
+
D.push(1, M / I);
|
|
30321
30321
|
D.push(1, 1);
|
|
30322
30322
|
const j = [];
|
|
30323
|
-
for (let M = 0; M <
|
|
30324
|
-
j.push(M, M + 1,
|
|
30323
|
+
for (let M = 0; M < I; M++)
|
|
30324
|
+
j.push(M, M + 1, I * 2 - M, M, I * 2 - M, I * 2 + 1 - M);
|
|
30325
30325
|
E.setAttribute("position", new y.BufferAttribute(new Float32Array(z), 3)), E.setAttribute("uv", new y.BufferAttribute(new Float32Array(D), 2)), E.setIndex(new y.BufferAttribute(new Uint32Array(j), 1));
|
|
30326
30326
|
const T = new y.MeshBasicMaterial({
|
|
30327
30327
|
map: e.videoTextureEnabled ? e.videoTexture : e.imageTexture,
|
|
30328
30328
|
side: y.DoubleSide
|
|
30329
30329
|
}), O = new y.Mesh(E, T);
|
|
30330
30330
|
O.renderOrder = 1, O.name = `ModelTVVideoPlugin-${P}-${performance.now()}`;
|
|
30331
|
-
const b = [A[1], A[2], A[3], A[0]],
|
|
30332
|
-
if (
|
|
30331
|
+
const b = [A[1], A[2], A[3], A[0]], C = i.create3DDomContainer(b);
|
|
30332
|
+
if (C != null && C.container) {
|
|
30333
30333
|
const M = document.createElement("div");
|
|
30334
|
-
M.classList.add("play-icon"), M.style.width = "100%", M.style.height = "100%", M.style.display = "flex", M.style.justifyContent = "center", M.style.alignItems = "center", M.style.pointerEvents = "none",
|
|
30334
|
+
M.classList.add("play-icon"), M.style.width = "100%", M.style.height = "100%", M.style.display = "flex", M.style.justifyContent = "center", M.style.alignItems = "center", M.style.pointerEvents = "none", C.container.appendChild(M);
|
|
30335
30335
|
const k = document.createElement("img");
|
|
30336
30336
|
k.src = Bd, k.style.width = "200px", k.style.pointerEvents = "auto", k.onclick = () => {
|
|
30337
30337
|
e.videoTexture.image.muted = !1, e.videoTexture.image.play();
|
|
30338
|
-
}, M.appendChild(k), s.set(O,
|
|
30338
|
+
}, M.appendChild(k), s.set(O, C);
|
|
30339
30339
|
}
|
|
30340
30340
|
return O;
|
|
30341
30341
|
}), h = (A) => {
|
|
@@ -30343,7 +30343,7 @@ const cE = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
|
|
|
30343
30343
|
return P.minFilter = y.LinearFilter, P.magFilter = y.LinearFilter, P.format = y.RGBFormat, P;
|
|
30344
30344
|
}, d = (A, P) => {
|
|
30345
30345
|
let E = P;
|
|
30346
|
-
return new Promise((
|
|
30346
|
+
return new Promise((I, z) => {
|
|
30347
30347
|
const D = new XMLHttpRequest();
|
|
30348
30348
|
D.onreadystatechange = () => {
|
|
30349
30349
|
if (D.readyState === 4)
|
|
@@ -30351,14 +30351,14 @@ const cE = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
|
|
|
30351
30351
|
const j = window.URL || window.webkitURL;
|
|
30352
30352
|
E = E || document.createElement("video"), E.crossOrigin = "anonymous", E.muted = !0, E.loop = !0, E.playsInline = !0, E.src = j.createObjectURL(D.response);
|
|
30353
30353
|
const T = new y.VideoTexture(E);
|
|
30354
|
-
T.minFilter = y.LinearFilter, T.magFilter = y.LinearFilter, T.format = y.RGBFormat,
|
|
30354
|
+
T.minFilter = y.LinearFilter, T.magFilter = y.LinearFilter, T.format = y.RGBFormat, I(Object.assign(T, { videoSource: A }));
|
|
30355
30355
|
} else
|
|
30356
30356
|
z(new Error("Video download Error: " + D.status));
|
|
30357
30357
|
}, D.onerror = (j) => z(j), D.open("GET", A), D.responseType = "blob", D.send();
|
|
30358
30358
|
});
|
|
30359
30359
|
}, u = (A, P) => te(void 0, null, function* () {
|
|
30360
|
-
const { video_src: E, video_poster_src:
|
|
30361
|
-
e.videoSource = E, e.rectPoints = lE(z).map((D) => D.map(({ x: j, y: T, z: O }) => new y.Vector3(j, T, O))), e.imageTexture = h(
|
|
30360
|
+
const { video_src: E, video_poster_src: I, points: z } = A;
|
|
30361
|
+
e.videoSource = E, e.rectPoints = lE(z).map((D) => D.map(({ x: j, y: T, z: O }) => new y.Vector3(j, T, O))), e.imageTexture = h(I), P && (e.videoElement = P), e.videoTexture = yield d(e.videoSource, e.videoElement), e.enabled = !!A.enable, e.enabled && a();
|
|
30362
30362
|
}), g = (A) => {
|
|
30363
30363
|
if (!e.enabled)
|
|
30364
30364
|
return;
|
|
@@ -30372,12 +30372,12 @@ const cE = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
|
|
|
30372
30372
|
return;
|
|
30373
30373
|
const A = n.camera.position;
|
|
30374
30374
|
if (s.forEach((P, E) => {
|
|
30375
|
-
const
|
|
30375
|
+
const I = P.css3DObject.position.clone(), z = I.clone().sub(A).normalize(), D = new y.Raycaster(A, z), j = n.model.intersectRaycaster(D)[0], T = I.distanceTo(A), O = 0.01;
|
|
30376
30376
|
j && j.distance + O < T ? P.hide() : P.show();
|
|
30377
30377
|
}), !r()) {
|
|
30378
30378
|
const P = e.rectPoints.find((E) => {
|
|
30379
|
-
const
|
|
30380
|
-
return E.map((z) => z.clone().add(
|
|
30379
|
+
const I = E[0].clone().add(E[1]).add(E[2]).add(E[3]).divideScalar(4);
|
|
30380
|
+
return E.map((z) => z.clone().add(I).divideScalar(2)).filter((z) => {
|
|
30381
30381
|
const D = z.distanceTo(A), j = new y.Raycaster(A, z.clone().sub(A).normalize()), T = n.model.intersectRaycaster(j)[0], O = 0.01;
|
|
30382
30382
|
return !(T && T.distance + O < D);
|
|
30383
30383
|
}).length >= 2;
|
|
@@ -30798,7 +30798,7 @@ function CE(n, t, e) {
|
|
|
30798
30798
|
}, E = (S, L) => {
|
|
30799
30799
|
const N = new i(L.modelPosition[0], L.modelPosition[1], L.modelPosition[2]), B = S.project2d(N), Z = B == null ? void 0 : B.x, ie = B == null ? void 0 : B.y;
|
|
30800
30800
|
return [Z, ie];
|
|
30801
|
-
},
|
|
30801
|
+
}, I = (S, L) => {
|
|
30802
30802
|
const N = L.map((Z) => {
|
|
30803
30803
|
if (S.state.panoIndex !== Z.panoIndex)
|
|
30804
30804
|
return he(F({}, Z), { visible: !1 });
|
|
@@ -30823,7 +30823,7 @@ function CE(n, t, e) {
|
|
|
30823
30823
|
return ie !== void 0 ? he(F({}, Z), { zIndex: ie * 10 }) : Z;
|
|
30824
30824
|
});
|
|
30825
30825
|
}, z = () => {
|
|
30826
|
-
m = [], e(1, d =
|
|
30826
|
+
m = [], e(1, d = I(s, d));
|
|
30827
30827
|
}, D = () => {
|
|
30828
30828
|
e(5, v = !1), j();
|
|
30829
30829
|
}, j = xv(
|
|
@@ -30837,7 +30837,7 @@ function CE(n, t, e) {
|
|
|
30837
30837
|
window.addEventListener("resize", T, !1);
|
|
30838
30838
|
}, b = () => {
|
|
30839
30839
|
h !== r && (e(1, d = Zg(r)), h = r, z());
|
|
30840
|
-
},
|
|
30840
|
+
}, C = (S, L) => {
|
|
30841
30841
|
let N = [];
|
|
30842
30842
|
for (const { position: Z, panoIndex: ie } of L) {
|
|
30843
30843
|
const K = S.distanceTo(Z);
|
|
@@ -30856,7 +30856,7 @@ function CE(n, t, e) {
|
|
|
30856
30856
|
}, M = (S) => {
|
|
30857
30857
|
if (s.state.mode === Gt.Mode.Panorama)
|
|
30858
30858
|
return;
|
|
30859
|
-
const L = s.work.observers, N = new i().fromArray(S.position), B =
|
|
30859
|
+
const L = s.work.observers, N = new i().fromArray(S.position), B = C(N, L);
|
|
30860
30860
|
if (B && (S.observerIndex = B.panoIndex), typeof S.observerIndex == "number") {
|
|
30861
30861
|
const Z = L[S.observerIndex], ie = N.clone().sub(Z.position).normalize(), K = {
|
|
30862
30862
|
longitude: Math.PI + Math.atan2(ie.x, ie.z),
|
|
@@ -31175,7 +31175,7 @@ class RE extends bs {
|
|
|
31175
31175
|
}), this.fixDoorPosition();
|
|
31176
31176
|
});
|
|
31177
31177
|
f(this, "fixDoorPosition", () => {
|
|
31178
|
-
var c, h, d, u, g, p, m, v, A, P, E,
|
|
31178
|
+
var c, h, d, u, g, p, m, v, A, P, E, I;
|
|
31179
31179
|
if (!this.state.enabled || !this.state.visible)
|
|
31180
31180
|
return;
|
|
31181
31181
|
const { panoIndex: e, camera: i } = this.five;
|
|
@@ -31187,8 +31187,8 @@ class RE extends bs {
|
|
|
31187
31187
|
if (this.labelItems.forEach((z, D) => {
|
|
31188
31188
|
var b;
|
|
31189
31189
|
if (z.visible) {
|
|
31190
|
-
const
|
|
31191
|
-
z.left = N, z.top = B, z.inSight = Z && S < Math.PI / 2, z.cameraToward = LE(this.five), Z ? l.push({ disFromCameraToLabel:
|
|
31190
|
+
const C = i.position.distanceTo(z.position), M = z.position.clone().add(new ve(0, this.OffsetHeight, 0)), S = M.clone().sub(i.position).normalize().angleTo(a), L = M.clone().project(i), N = (L.x + 1) / 2.2 * 100, B = (-L.y + 1) / 2.2 * 100, Z = N >= 0 && N <= 100 && B >= 0 && B <= 100 && C > this.MinVisibledistance && C <= this.MaxVisibledistance;
|
|
31191
|
+
z.left = N, z.top = B, z.inSight = Z && S < Math.PI / 2, z.cameraToward = LE(this.five), Z ? l.push({ disFromCameraToLabel: C, left: N, top: B, index: D }) : z.transform = "translate(-50%, -50%)";
|
|
31192
31192
|
} else
|
|
31193
31193
|
z.inSight = !1;
|
|
31194
31194
|
const O = z, { svelteApp: j } = O, T = Jn(O, ["svelteApp"]);
|
|
@@ -31197,7 +31197,7 @@ class RE extends bs {
|
|
|
31197
31197
|
let z = 0;
|
|
31198
31198
|
l.sort((D, j) => j.disFromCameraToLabel - D.disFromCameraToLabel);
|
|
31199
31199
|
for (let D = 1; D < l.length; D++) {
|
|
31200
|
-
const { index: j, left: T, top: O } = l[D - 1], { index: b, left:
|
|
31200
|
+
const { index: j, left: T, top: O } = l[D - 1], { index: b, left: C, top: M } = l[D], k = this.container.children[j], S = this.container.children[b];
|
|
31201
31201
|
if (!k || !S)
|
|
31202
31202
|
return;
|
|
31203
31203
|
const L = {
|
|
@@ -31206,10 +31206,10 @@ class RE extends bs {
|
|
|
31206
31206
|
width: (d = (h = (c = k.children) == null ? void 0 : c[0]) == null ? void 0 : h.clientWidth) != null ? d : 0,
|
|
31207
31207
|
height: (p = (g = (u = k.children) == null ? void 0 : u[0]) == null ? void 0 : g.clientHeight) != null ? p : 0
|
|
31208
31208
|
}, N = {
|
|
31209
|
-
left: o *
|
|
31209
|
+
left: o * C / 100,
|
|
31210
31210
|
top: r * M / 100,
|
|
31211
31211
|
width: (A = (v = (m = S.children) == null ? void 0 : m[0]) == null ? void 0 : v.clientWidth) != null ? A : 0,
|
|
31212
|
-
height: (
|
|
31212
|
+
height: (I = (E = (P = S.children) == null ? void 0 : P[0]) == null ? void 0 : E.clientHeight) != null ? I : 0
|
|
31213
31213
|
};
|
|
31214
31214
|
TE(L, N) && (z++, this.labelItems[j].transform = `translate(-50%, ${(z - 1) * 100 - 50}%)`, this.labelItems[b].transform = `translate(-50%, ${z * 100 - 50}%)`);
|
|
31215
31215
|
}
|
|
@@ -31423,22 +31423,22 @@ function i8(n) {
|
|
|
31423
31423
|
const c = ZE(a.map((O) => [O.x, O.z])), d = (l - 1) * KE * $E, u = 2 * l, g = u * e8, p = u * t8, m = new Uint32Array(d), v = new Float32Array(g), A = new Float32Array(p);
|
|
31424
31424
|
let P = 0, E = 0;
|
|
31425
31425
|
for (let O = 0; O < l; O++) {
|
|
31426
|
-
const [b,
|
|
31426
|
+
const [b, C] = c[O][0], M = a[O], { x: k, y: S, z: L } = M, N = new ve(k + b * i, S + 0.05, L + C * i);
|
|
31427
31427
|
v[O * 6 + 0] = N.x, v[O * 6 + 1] = N.y, v[O * 6 + 2] = N.z;
|
|
31428
|
-
const B = new ve(k - b * i, S + 0.05, L -
|
|
31428
|
+
const B = new ve(k - b * i, S + 0.05, L - C * i);
|
|
31429
31429
|
v[O * 6 + 3] = B.x, v[O * 6 + 4] = B.y, v[O * 6 + 5] = B.z, P += O > 0 ? a[O - 1].clone().sub(a[O]).length() : 0;
|
|
31430
31430
|
const Z = P / e;
|
|
31431
31431
|
E = Z, A[O * 4 + 0] = 0, A[O * 4 + 1] = Z, A[O * 4 + 2] = 1, A[O * 4 + 3] = Z;
|
|
31432
31432
|
const ie = new y.Vector3().lerpVectors(N, B, 0.5);
|
|
31433
31433
|
n.skipPositions && n.skipPositions.some((oe) => oe.distanceTo(ie) < 0.26) || O !== l - 1 && (m[O * 6 + 0] = O * 2 + 0, m[O * 6 + 1] = O * 2 + 2, m[O * 6 + 2] = O * 2 + 1, m[O * 6 + 3] = O * 2 + 2, m[O * 6 + 4] = O * 2 + 3, m[O * 6 + 5] = O * 2 + 1);
|
|
31434
31434
|
}
|
|
31435
|
-
const
|
|
31435
|
+
const I = [];
|
|
31436
31436
|
let z;
|
|
31437
31437
|
const D = [];
|
|
31438
31438
|
for (let O = 0; O < l - 1; O++) {
|
|
31439
31439
|
if (z !== void 0 && O <= z)
|
|
31440
31440
|
continue;
|
|
31441
|
-
const b = O + 1,
|
|
31441
|
+
const b = O + 1, C = {
|
|
31442
31442
|
x: v[O * 6 + 0],
|
|
31443
31443
|
y: v[O * 6 + 2]
|
|
31444
31444
|
}, M = {
|
|
@@ -31450,13 +31450,13 @@ function i8(n) {
|
|
|
31450
31450
|
}, S = {
|
|
31451
31451
|
x: v[b * 6 + 3],
|
|
31452
31452
|
y: v[b * 6 + 5]
|
|
31453
|
-
}, L = Tv([
|
|
31454
|
-
if (L &&
|
|
31455
|
-
|
|
31456
|
-
const N = new y.Vector2(
|
|
31453
|
+
}, L = Tv([C, M], [k, S]);
|
|
31454
|
+
if (L && I.push(O), !L && I.length) {
|
|
31455
|
+
I.push(O);
|
|
31456
|
+
const N = new y.Vector2(C.x, C.y).distanceTo(new y.Vector2(k.x, k.y)), B = new y.Vector2(M.x, M.y).distanceTo(new y.Vector2(S.x, S.y)), Z = 300, ie = [], K = [], oe = Math.max(0, I[0] - e * Z), $ = I[0];
|
|
31457
31457
|
for (let Me = oe; Me < $; Me++)
|
|
31458
31458
|
N < B ? ie.push({ x: v[Me * 6 + 0], y: v[Me * 6 + 2] }) : ie.push({ x: v[Me * 6 + 3], y: v[Me * 6 + 5] });
|
|
31459
|
-
const ue =
|
|
31459
|
+
const ue = I[I.length - 1], Le = Math.min(l - 1, I[I.length - 1] + e * Z);
|
|
31460
31460
|
for (let Me = ue; Me < Le; Me++)
|
|
31461
31461
|
N < B ? K.push({ x: v[Me * 6 + 0], y: v[Me * 6 + 2] }) : K.push({ x: v[Me * 6 + 3], y: v[Me * 6 + 5] });
|
|
31462
31462
|
const re = JE(ie, K);
|
|
@@ -31486,7 +31486,7 @@ function i8(n) {
|
|
|
31486
31486
|
end: Te
|
|
31487
31487
|
});
|
|
31488
31488
|
}
|
|
31489
|
-
|
|
31489
|
+
I.length = 0;
|
|
31490
31490
|
}
|
|
31491
31491
|
}
|
|
31492
31492
|
const j = new Float32Array(u);
|
|
@@ -32506,35 +32506,35 @@ class M8 extends bs {
|
|
|
32506
32506
|
return e.config;
|
|
32507
32507
|
}
|
|
32508
32508
|
const o = {}, r = {}, a = {};
|
|
32509
|
-
this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([E,
|
|
32510
|
-
var
|
|
32511
|
-
const z = E, D = z.split("-"), j = E.startsWith("["), T = j ? D[0].slice(1, -1) : void 0, O = j ? D.slice(1) : D, b = T ? ["PanoramaLike", "ModelLike"].includes(T) ? (
|
|
32509
|
+
this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([E, I]) => {
|
|
32510
|
+
var C, M;
|
|
32511
|
+
const z = E, D = z.split("-"), j = E.startsWith("["), T = j ? D[0].slice(1, -1) : void 0, O = j ? D.slice(1) : D, b = T ? ["PanoramaLike", "ModelLike"].includes(T) ? (C = r[T]) != null ? C : r[T] = {} : (M = a[T]) != null ? M : a[T] = {} : o;
|
|
32512
32512
|
if (!b[z]) {
|
|
32513
|
-
if (O.length === 0 && (b[z] =
|
|
32513
|
+
if (O.length === 0 && (b[z] = I), O.length === 1) {
|
|
32514
32514
|
const [k] = O;
|
|
32515
|
-
(e.contentType === k || k === "Any") && (b[z] =
|
|
32515
|
+
(e.contentType === k || k === "Any") && (b[z] = I);
|
|
32516
32516
|
}
|
|
32517
32517
|
if (O.length === 2) {
|
|
32518
32518
|
const [k = "Any", S = "Any"] = O;
|
|
32519
|
-
k === "Mixin" && e.contentType === S && (b[z] =
|
|
32519
|
+
k === "Mixin" && e.contentType === S && (b[z] = I), (e.stickType === k || k === "Any") && (e.contentType === S || S === "Any") && (b[z] = I);
|
|
32520
32520
|
}
|
|
32521
32521
|
if (O.length === 3) {
|
|
32522
32522
|
const [k = "Any", S, L] = O;
|
|
32523
32523
|
if (S === "Audio" && e.contentType === "Audio") {
|
|
32524
32524
|
const N = e;
|
|
32525
|
-
(N.stickType === k || k === "Any") && N.data.appearance === L && (b[z] =
|
|
32525
|
+
(N.stickType === k || k === "Any") && N.data.appearance === L && (b[z] = I);
|
|
32526
32526
|
}
|
|
32527
32527
|
}
|
|
32528
32528
|
}
|
|
32529
32529
|
});
|
|
32530
32530
|
const l = (P = e.initialConfig) != null ? P : {}, c = it({}, Rv, this.config.globalConfig, ...Object.values(o)), h = it({}, c, l), d = {}, u = Object.values(Gt.Mode);
|
|
32531
|
-
Il(r).forEach(([E,
|
|
32531
|
+
Il(r).forEach(([E, I]) => {
|
|
32532
32532
|
u.forEach((z) => {
|
|
32533
|
-
(E === "PanoramaLike" && as(z) || E === "ModelLike" && Ci(z)) && (d[z] = it({}, c, ...Object.values(
|
|
32533
|
+
(E === "PanoramaLike" && as(z) || E === "ModelLike" && Ci(z)) && (d[z] = it({}, c, ...Object.values(I), l, { _isMerged: !0 }));
|
|
32534
32534
|
});
|
|
32535
|
-
}), Il(a).forEach(([E,
|
|
32535
|
+
}), Il(a).forEach(([E, I]) => {
|
|
32536
32536
|
const z = d[E];
|
|
32537
|
-
d[E] = it({}, c, z, ...Object.values(
|
|
32537
|
+
d[E] = it({}, c, z, ...Object.values(I), l, { _isMerged: !0 });
|
|
32538
32538
|
});
|
|
32539
32539
|
const g = he(F({}, h), { configWithFiveMode: d });
|
|
32540
32540
|
return El(g), Object.values(d).forEach((E) => El(E)), g._isMerged = !0, g;
|
|
@@ -32655,34 +32655,34 @@ function Sc(n, t, e) {
|
|
|
32655
32655
|
}
|
|
32656
32656
|
const s = {}, o = {}, r = {};
|
|
32657
32657
|
t.contentTypeConfig && Object.entries(t.contentTypeConfig).forEach(([P, E]) => {
|
|
32658
|
-
var b,
|
|
32659
|
-
const
|
|
32660
|
-
if (!O[
|
|
32661
|
-
if (T.length === 0 && (O[
|
|
32658
|
+
var b, C;
|
|
32659
|
+
const I = P, z = I.split("-"), D = P.startsWith("["), j = D ? z[0].slice(1, -1) : void 0, T = D ? z.slice(1) : z, O = j ? ["PanoramaLike", "ModelLike"].includes(j) ? (b = o[j]) != null ? b : o[j] = {} : (C = r[j]) != null ? C : r[j] = {} : s;
|
|
32660
|
+
if (!O[I]) {
|
|
32661
|
+
if (T.length === 0 && (O[I] = E), T.length === 1) {
|
|
32662
32662
|
const [M] = T;
|
|
32663
|
-
(n.contentType === M || M === "Any") && (O[
|
|
32663
|
+
(n.contentType === M || M === "Any") && (O[I] = E);
|
|
32664
32664
|
}
|
|
32665
32665
|
if (T.length === 2) {
|
|
32666
32666
|
const [M = "Any", k = "Any"] = T;
|
|
32667
|
-
M === "Mixin" && n.contentType === k && (O[
|
|
32667
|
+
M === "Mixin" && n.contentType === k && (O[I] = E), (n.stickType === M || M === "Any") && (n.contentType === k || k === "Any") && (O[I] = E);
|
|
32668
32668
|
}
|
|
32669
32669
|
if (T.length === 3) {
|
|
32670
32670
|
const [M = "Any", k, S] = T;
|
|
32671
32671
|
if (k === "Audio" && n.contentType === "Audio") {
|
|
32672
32672
|
const L = n;
|
|
32673
|
-
(L.stickType === M || M === "Any") && L.data.appearance === S && (O[
|
|
32673
|
+
(L.stickType === M || M === "Any") && L.data.appearance === S && (O[I] = E);
|
|
32674
32674
|
}
|
|
32675
32675
|
}
|
|
32676
32676
|
}
|
|
32677
32677
|
});
|
|
32678
32678
|
const a = (A = n.initialConfig) != null ? A : {}, l = it({}, Rv, t.globalConfig, ...Object.values(s)), c = it({}, l, a), h = {}, d = Object.values(Gt.Mode);
|
|
32679
32679
|
Il(o).forEach(([P, E]) => {
|
|
32680
|
-
d.forEach((
|
|
32681
|
-
(P === "PanoramaLike" && as(
|
|
32680
|
+
d.forEach((I) => {
|
|
32681
|
+
(P === "PanoramaLike" && as(I) || P === "ModelLike" && Ci(I)) && (h[I] = it({}, l, ...Object.values(E), a, { _isMerged: !0 }));
|
|
32682
32682
|
});
|
|
32683
32683
|
}), Il(r).forEach(([P, E]) => {
|
|
32684
|
-
const
|
|
32685
|
-
h[P] = it({}, l,
|
|
32684
|
+
const I = h[P];
|
|
32685
|
+
h[P] = it({}, l, I, ...Object.values(E), a, { _isMerged: !0 });
|
|
32686
32686
|
});
|
|
32687
32687
|
const u = he(F({}, c), { configWithFiveMode: h });
|
|
32688
32688
|
return El(u), Object.values(h).forEach((P) => El(P)), u._isMerged = !0, u;
|
|
@@ -32795,9 +32795,9 @@ class Hd {
|
|
|
32795
32795
|
return;
|
|
32796
32796
|
const P = t.workUtil.transform;
|
|
32797
32797
|
let E = A;
|
|
32798
|
-
if (Array.isArray(A) && A.length === 4 ? E = A.map(Ue).map((
|
|
32799
|
-
const
|
|
32800
|
-
E = new y.Vector3().fromArray(E).clone().add(
|
|
32798
|
+
if (Array.isArray(A) && A.length === 4 ? E = A.map(Ue).map((I) => Us(I, P).toArray()) : E = Us(Ue(A), P).toArray(), (e.stickType === "2DPoint" || e.stickType === "3DPoint") && e.normal && this.normalLineLength) {
|
|
32799
|
+
const I = new y.Vector3().fromArray(e.normal);
|
|
32800
|
+
E = new y.Vector3().fromArray(E).clone().add(I.clone().setLength(this.normalLineLength)).toArray();
|
|
32801
32801
|
}
|
|
32802
32802
|
return E;
|
|
32803
32803
|
})(), this.matrix = e.matrix ? (() => {
|
|
@@ -32951,14 +32951,14 @@ class Hd {
|
|
|
32951
32951
|
* @description 启用
|
|
32952
32952
|
*/
|
|
32953
32953
|
enable() {
|
|
32954
|
-
this.enabled = !0, this.hooks.emit("enable"), this.applyVisible();
|
|
32954
|
+
this.enabled = !0, this.hooks.emit("enable"), this.five.needsRender = !0, this.applyVisible();
|
|
32955
32955
|
}
|
|
32956
32956
|
/**
|
|
32957
32957
|
* @description 禁用
|
|
32958
32958
|
*/
|
|
32959
32959
|
disable() {
|
|
32960
32960
|
var t;
|
|
32961
|
-
this.enabled = !1, this.hooks.emit("disable"), (t = this.rectanglePlane) == null || t.delete(), this.applyVisible();
|
|
32961
|
+
this.enabled = !1, this.hooks.emit("disable"), (t = this.rectanglePlane) == null || t.delete(), this.five.needsRender = !0, this.applyVisible();
|
|
32962
32962
|
}
|
|
32963
32963
|
/**
|
|
32964
32964
|
* @deprecated use `setData` instead
|
|
@@ -33227,8 +33227,8 @@ class Hd {
|
|
|
33227
33227
|
return D;
|
|
33228
33228
|
})(), A = s.distanceTo(u), P = (c = e.distanceAccuracy) != null ? c : 0.01;
|
|
33229
33229
|
p = Math.min(p != null ? p : 1 / 0, (h = v == null ? void 0 : v.distance) != null ? h : 1 / 0), p + P >= A ? r++ : a++;
|
|
33230
|
-
const
|
|
33231
|
-
if (r >=
|
|
33230
|
+
const I = (d = e.needPassed) != null ? d : 1;
|
|
33231
|
+
if (r >= I)
|
|
33232
33232
|
return { value: !0 };
|
|
33233
33233
|
}
|
|
33234
33234
|
return a === 0 ? { value: !0 } : {
|
|
@@ -33428,11 +33428,12 @@ class D8 extends Hd {
|
|
|
33428
33428
|
raycaster: new y.Raycaster()
|
|
33429
33429
|
// 射线投射器
|
|
33430
33430
|
});
|
|
33431
|
-
//
|
|
33431
|
+
// 用于变化检测的缓存值
|
|
33432
33432
|
f(this, "_lastUpdateCache", {
|
|
33433
33433
|
position: [0, 0, 0],
|
|
33434
33434
|
screenLeft: 0,
|
|
33435
33435
|
screenTop: 0,
|
|
33436
|
+
scale: 1,
|
|
33436
33437
|
visible: !1
|
|
33437
33438
|
});
|
|
33438
33439
|
if ((o = (s = i.style) == null ? void 0 : s.point) != null && o.width) {
|
|
@@ -33506,7 +33507,7 @@ class D8 extends Hd {
|
|
|
33506
33507
|
* 使用屏幕空间反投影方法,确保任意视角下都保持固定像素距离
|
|
33507
33508
|
*/
|
|
33508
33509
|
updateTagNormalLinePosition() {
|
|
33509
|
-
var
|
|
33510
|
+
var A, P, E, I, z, D, j;
|
|
33510
33511
|
if (!this.screenPosition || !this.tagNormalLine)
|
|
33511
33512
|
return;
|
|
33512
33513
|
if (!this.visible) {
|
|
@@ -33515,32 +33516,34 @@ class D8 extends Hd {
|
|
|
33515
33516
|
}
|
|
33516
33517
|
const e = this._lastUpdateCache;
|
|
33517
33518
|
if (!(this.visible !== e.visible)) {
|
|
33518
|
-
const
|
|
33519
|
-
if (!
|
|
33519
|
+
const T = Math.abs(this.position[0] - e.position[0]) > 1e-3 || Math.abs(this.position[1] - e.position[1]) > 1e-3 || Math.abs(this.position[2] - e.position[2]) > 1e-3, O = Math.abs(((A = this.screenPosition.leftPx) != null ? A : 0) - e.screenLeft) > 0.5 || Math.abs(((P = this.screenPosition.topPx) != null ? P : 0) - e.screenTop) > 0.5 || Math.abs(((E = this.screenPosition.scale) != null ? E : 1) - e.scale) > 2e-3;
|
|
33520
|
+
if (!T && !O)
|
|
33520
33521
|
return;
|
|
33521
33522
|
}
|
|
33522
|
-
e.position = new y.Vector3().fromArray(this.position).toArray(), e.screenLeft = (
|
|
33523
|
+
e.position = new y.Vector3().fromArray(this.position).toArray(), e.screenLeft = (I = this.screenPosition.leftPx) != null ? I : 0, e.screenTop = (z = this.screenPosition.topPx) != null ? z : 0, e.scale = (D = this.screenPosition.scale) != null ? D : 1, e.visible = this.visible;
|
|
33523
33524
|
const s = this.five.renderer.getSize(Dc);
|
|
33524
33525
|
this._temp.lineStart.fromArray(this.originPosition), this._temp.iconPos.fromArray(this.position), this._temp.lineStart.project(this.five.camera), this._temp.iconPos.project(this.five.camera), this._temp.screenDirPixel.set(
|
|
33525
33526
|
(this._temp.iconPos.x - this._temp.lineStart.x) * s.x / 2,
|
|
33526
33527
|
(this._temp.iconPos.y - this._temp.lineStart.y) * s.y / 2
|
|
33527
33528
|
);
|
|
33528
33529
|
const o = this._temp.screenDirPixel.length();
|
|
33529
|
-
this._temp.screenDirPixel.normalize()
|
|
33530
|
-
|
|
33531
|
-
|
|
33530
|
+
this._temp.screenDirPixel.normalize();
|
|
33531
|
+
const r = this.iconPixelGap * ((j = this.screenPosition.scale) != null ? j : 1);
|
|
33532
|
+
this._temp.targetNDC.set(
|
|
33533
|
+
(this._temp.iconPos.x * s.x / 2 - this._temp.screenDirPixel.x * r) / (s.x / 2),
|
|
33534
|
+
(this._temp.iconPos.y * s.y / 2 - this._temp.screenDirPixel.y * r) / (s.y / 2)
|
|
33532
33535
|
), this._temp.raycaster.setFromCamera(this._temp.targetNDC, this.five.camera);
|
|
33533
|
-
const
|
|
33534
|
-
this._temp.lineStart.fromArray(this.originPosition), this._temp.iconPos.fromArray(this.position), this._temp.lineDir.copy(this._temp.iconPos).sub(this._temp.lineStart).normalize(), this._temp.lineEnd.copy(
|
|
33535
|
-
const
|
|
33536
|
-
let
|
|
33537
|
-
Math.abs(
|
|
33538
|
-
const
|
|
33539
|
-
if (this._temp.lineStart.distanceTo(this._temp.lineEnd) >
|
|
33540
|
-
const
|
|
33541
|
-
this._temp.lineEnd.copy(this._temp.lineStart).lerp(this._temp.iconPos,
|
|
33542
|
-
}
|
|
33543
|
-
this.tagNormalLine.setPoints(this._temp.lineStart, this._temp.lineEnd), this.tagNormalLine.visible = !0
|
|
33536
|
+
const a = this._temp.raycaster.ray;
|
|
33537
|
+
this._temp.lineStart.fromArray(this.originPosition), this._temp.iconPos.fromArray(this.position), this._temp.lineDir.copy(this._temp.iconPos).sub(this._temp.lineStart).normalize(), this._temp.lineEnd.copy(a.origin).sub(this._temp.lineStart);
|
|
33538
|
+
const l = a.direction.dot(a.direction), c = a.direction.dot(this._temp.lineDir), h = this._temp.lineDir.dot(this._temp.lineDir), d = a.direction.dot(this._temp.lineEnd), u = this._temp.lineDir.dot(this._temp.lineEnd), g = l * h - c * c;
|
|
33539
|
+
let p = 0;
|
|
33540
|
+
Math.abs(g) > 1e-4 && (p = (c * u - h * d) / g), this._temp.lineEnd.copy(a.origin).add(a.direction.multiplyScalar(Math.max(0, p)));
|
|
33541
|
+
const m = this._temp.lineStart.distanceTo(this._temp.iconPos);
|
|
33542
|
+
if (this._temp.lineStart.distanceTo(this._temp.lineEnd) > m) {
|
|
33543
|
+
const T = Math.max(0, 1 - r / o);
|
|
33544
|
+
this._temp.lineEnd.copy(this._temp.lineStart).lerp(this._temp.iconPos, T);
|
|
33545
|
+
}
|
|
33546
|
+
this.tagNormalLine.setPoints(this._temp.lineStart, this._temp.lineEnd), this.tagNormalLine.visible = !0;
|
|
33544
33547
|
}
|
|
33545
33548
|
updateScreenPosition(e) {
|
|
33546
33549
|
var a;
|
|
@@ -33592,6 +33595,9 @@ class D8 extends Hd {
|
|
|
33592
33595
|
computeNormal() {
|
|
33593
33596
|
return new y.Vector3().fromArray(this.normal);
|
|
33594
33597
|
}
|
|
33598
|
+
removeTagNormalLine() {
|
|
33599
|
+
this.tagNormalLine && (this.plugin.group.remove(this.tagNormalLine), this.tagNormalLine = null);
|
|
33600
|
+
}
|
|
33595
33601
|
/**
|
|
33596
33602
|
* @description 获取额外的闪烁目标,包括法线(如果有)
|
|
33597
33603
|
*/
|
|
@@ -33623,8 +33629,8 @@ class Fv extends zn {
|
|
|
33623
33629
|
else {
|
|
33624
33630
|
const b = document.createElement("div");
|
|
33625
33631
|
b.style.width = `${d}px`, b.style.height = `${u}px`, b.style.pointerEvents = "none";
|
|
33626
|
-
const
|
|
33627
|
-
i.style.position = "absolute", i.style.left = "0", i.style.top = "0", i.style.width = `${
|
|
33632
|
+
const C = o / l;
|
|
33633
|
+
i.style.position = "absolute", i.style.left = "0", i.style.top = "0", i.style.width = `${C * d}px`, i.style.height = `${C * u}px`, b.appendChild(i), p = b;
|
|
33628
33634
|
}
|
|
33629
33635
|
super(p);
|
|
33630
33636
|
f(this, "version", Vv);
|
|
@@ -33652,8 +33658,8 @@ class Fv extends zn {
|
|
|
33652
33658
|
this.domWidthPx = d, this.domHeightPx = u, i.classList.add(`${rp}__container`);
|
|
33653
33659
|
const m = new ve().subVectors(s[1], s[0]), v = new ve().subVectors(s[3], s[0]), A = new ve().crossVectors(m, v).normalize();
|
|
33654
33660
|
this.lookAt(A);
|
|
33655
|
-
const P = this.up.clone().applyQuaternion(this.quaternion), E = v.clone(),
|
|
33656
|
-
this.rotateOnWorldAxis(
|
|
33661
|
+
const P = this.up.clone().applyQuaternion(this.quaternion), E = v.clone(), I = new ve().crossVectors(P, E).normalize();
|
|
33662
|
+
this.rotateOnWorldAxis(I, P.angleTo(E)), this.position.copy(g), this._opacityMesh = new _0(d, u), this._opacityMesh.visible = e.mode === "behind", this.add(this._opacityMesh), e.mode === "front" ? ey(this) : e.mode === "behind" && iy(this);
|
|
33657
33663
|
}
|
|
33658
33664
|
get mode() {
|
|
33659
33665
|
return this._mode;
|
|
@@ -34324,7 +34330,7 @@ function X8(n, t, e) {
|
|
|
34324
34330
|
easing: "easeInOutCubic"
|
|
34325
34331
|
}), a && p.seek(p.duration);
|
|
34326
34332
|
}
|
|
34327
|
-
function
|
|
34333
|
+
function I(D, j) {
|
|
34328
34334
|
qe[D ? "unshift" : "push"](() => {
|
|
34329
34335
|
m[j] = D, e(1, m);
|
|
34330
34336
|
});
|
|
@@ -34351,7 +34357,7 @@ function X8(n, t, e) {
|
|
|
34351
34357
|
s,
|
|
34352
34358
|
o,
|
|
34353
34359
|
a,
|
|
34354
|
-
|
|
34360
|
+
I,
|
|
34355
34361
|
z
|
|
34356
34362
|
];
|
|
34357
34363
|
}
|
|
@@ -36424,8 +36430,8 @@ var Ga = dk, Ml = {}, uk = {
|
|
|
36424
36430
|
}
|
|
36425
36431
|
};
|
|
36426
36432
|
(function(n, t) {
|
|
36427
|
-
var e = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, o = "[object Arguments]", r = "[object Array]", a = "[object Boolean]", l = "[object Date]", c = "[object Error]", h = "[object Function]", d = "[object GeneratorFunction]", u = "[object Map]", g = "[object Number]", p = "[object Object]", m = "[object Promise]", v = "[object RegExp]", A = "[object Set]", P = "[object String]", E = "[object Symbol]",
|
|
36428
|
-
K[o] = K[r] = K[z] = K[D] = K[a] = K[l] = K[j] = K[T] = K[O] = K[b] = K[
|
|
36433
|
+
var e = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, o = "[object Arguments]", r = "[object Array]", a = "[object Boolean]", l = "[object Date]", c = "[object Error]", h = "[object Function]", d = "[object GeneratorFunction]", u = "[object Map]", g = "[object Number]", p = "[object Object]", m = "[object Promise]", v = "[object RegExp]", A = "[object Set]", P = "[object String]", E = "[object Symbol]", I = "[object WeakMap]", z = "[object ArrayBuffer]", D = "[object DataView]", j = "[object Float32Array]", T = "[object Float64Array]", O = "[object Int8Array]", b = "[object Int16Array]", C = "[object Int32Array]", M = "[object Uint8Array]", k = "[object Uint8ClampedArray]", S = "[object Uint16Array]", L = "[object Uint32Array]", N = /[\\^$.*+?()[\]{}|]/g, B = /\w*$/, Z = /^\[object .+?Constructor\]$/, ie = /^(?:0|[1-9]\d*)$/, K = {};
|
|
36434
|
+
K[o] = K[r] = K[z] = K[D] = K[a] = K[l] = K[j] = K[T] = K[O] = K[b] = K[C] = K[u] = K[g] = K[p] = K[v] = K[A] = K[P] = K[E] = K[M] = K[k] = K[S] = K[L] = !0, K[c] = K[h] = K[I] = !1;
|
|
36429
36435
|
var oe = typeof zi == "object" && zi && zi.Object === Object && zi, $ = typeof self == "object" && self && self.Object === Object && self, ue = oe || $ || Function("return this")(), Le = t && !t.nodeType && t, re = Le && !0 && n && !n.nodeType && n, Me = re && re.exports === Le;
|
|
36430
36436
|
function de(x, G) {
|
|
36431
36437
|
return x.set(G[0], G[1]), x;
|
|
@@ -36741,7 +36747,7 @@ var Ga = dk, Ml = {}, uk = {
|
|
|
36741
36747
|
return ii(J) ? J : void 0;
|
|
36742
36748
|
}
|
|
36743
36749
|
var q = ws ? Ie(ws, Object) : nc, ne = Un;
|
|
36744
|
-
(Bn && ne(new Bn(new ArrayBuffer(1))) != D || Si && ne(new Si()) != u || yi && ne(yi.resolve()) != m || Vn && ne(new Vn()) != A || Fn && ne(new Fn()) !=
|
|
36750
|
+
(Bn && ne(new Bn(new ArrayBuffer(1))) != D || Si && ne(new Si()) != u || yi && ne(yi.resolve()) != m || Vn && ne(new Vn()) != A || Fn && ne(new Fn()) != I) && (ne = function(x) {
|
|
36745
36751
|
var G = _t.call(x), J = G == p ? x.constructor : void 0, ce = J ? si(J) : void 0;
|
|
36746
36752
|
if (ce)
|
|
36747
36753
|
switch (ce) {
|
|
@@ -36754,7 +36760,7 @@ var Ga = dk, Ml = {}, uk = {
|
|
|
36754
36760
|
case Cs:
|
|
36755
36761
|
return A;
|
|
36756
36762
|
case Hn:
|
|
36757
|
-
return
|
|
36763
|
+
return I;
|
|
36758
36764
|
}
|
|
36759
36765
|
return G;
|
|
36760
36766
|
});
|
|
@@ -36779,7 +36785,7 @@ var Ga = dk, Ml = {}, uk = {
|
|
|
36779
36785
|
case T:
|
|
36780
36786
|
case O:
|
|
36781
36787
|
case b:
|
|
36782
|
-
case
|
|
36788
|
+
case C:
|
|
36783
36789
|
case M:
|
|
36784
36790
|
case k:
|
|
36785
36791
|
case S:
|
|
@@ -36877,8 +36883,8 @@ var kl = {}, gk = {
|
|
|
36877
36883
|
}
|
|
36878
36884
|
};
|
|
36879
36885
|
(function(n, t) {
|
|
36880
|
-
var e = 200, i = "__lodash_hash_undefined__", s = 1, o = 2, r = 9007199254740991, a = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", h = "[object Boolean]", d = "[object Date]", u = "[object Error]", g = "[object Function]", p = "[object GeneratorFunction]", m = "[object Map]", v = "[object Number]", A = "[object Null]", P = "[object Object]", E = "[object Promise]",
|
|
36881
|
-
re[k] = re[S] = re[L] = re[N] = re[B] = re[Z] = re[ie] = re[K] = re[oe] = !0, re[a] = re[l] = re[
|
|
36886
|
+
var e = 200, i = "__lodash_hash_undefined__", s = 1, o = 2, r = 9007199254740991, a = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", h = "[object Boolean]", d = "[object Date]", u = "[object Error]", g = "[object Function]", p = "[object GeneratorFunction]", m = "[object Map]", v = "[object Number]", A = "[object Null]", P = "[object Object]", E = "[object Promise]", I = "[object Proxy]", z = "[object RegExp]", D = "[object Set]", j = "[object String]", T = "[object Symbol]", O = "[object Undefined]", b = "[object WeakMap]", C = "[object ArrayBuffer]", M = "[object DataView]", k = "[object Float32Array]", S = "[object Float64Array]", L = "[object Int8Array]", N = "[object Int16Array]", B = "[object Int32Array]", Z = "[object Uint8Array]", ie = "[object Uint8ClampedArray]", K = "[object Uint16Array]", oe = "[object Uint32Array]", $ = /[\\^$.*+?()[\]{}|]/g, ue = /^\[object .+?Constructor\]$/, Le = /^(?:0|[1-9]\d*)$/, re = {};
|
|
36887
|
+
re[k] = re[S] = re[L] = re[N] = re[B] = re[Z] = re[ie] = re[K] = re[oe] = !0, re[a] = re[l] = re[C] = re[h] = re[M] = re[d] = re[u] = re[g] = re[m] = re[v] = re[P] = re[z] = re[D] = re[j] = re[b] = !1;
|
|
36882
36888
|
var Me = typeof zi == "object" && zi && zi.Object === Object && zi, de = typeof self == "object" && self && self.Object === Object && self, le = Me || de || Function("return this")(), Se = t && !t.nodeType && t, ee = Se && !0 && n && !n.nodeType && n, Te = ee && ee.exports === Se, Re = Te && Me.process, Ae = function() {
|
|
36883
36889
|
try {
|
|
36884
36890
|
return Re && Re.binding && Re.binding("util");
|
|
@@ -37176,7 +37182,7 @@ var kl = {}, gk = {
|
|
|
37176
37182
|
if (x.byteLength != G.byteLength || x.byteOffset != G.byteOffset)
|
|
37177
37183
|
return !1;
|
|
37178
37184
|
x = x.buffer, G = G.buffer;
|
|
37179
|
-
case
|
|
37185
|
+
case C:
|
|
37180
37186
|
return !(x.byteLength != G.byteLength || !He(new no(x), new no(G)));
|
|
37181
37187
|
case h:
|
|
37182
37188
|
case d:
|
|
@@ -37328,7 +37334,7 @@ var kl = {}, gk = {
|
|
|
37328
37334
|
if (!wa(x))
|
|
37329
37335
|
return !1;
|
|
37330
37336
|
var G = Vi(x);
|
|
37331
|
-
return G == g || G == p || G == c || G ==
|
|
37337
|
+
return G == g || G == p || G == c || G == I;
|
|
37332
37338
|
}
|
|
37333
37339
|
function Ar(x) {
|
|
37334
37340
|
return typeof x == "number" && x > -1 && x % 1 == 0 && x <= r;
|
|
@@ -38170,8 +38176,8 @@ function Rk(n) {
|
|
|
38170
38176
|
n[0]
|
|
38171
38177
|
), w(s, "class", "sc-carousel__pages-window svelte-sme1z4"), w(e, "class", "sc-carousel__content-container svelte-sme1z4"), w(t, "class", "sc-carousel__carousel-container svelte-sme1z4");
|
|
38172
38178
|
},
|
|
38173
|
-
m(E,
|
|
38174
|
-
X(E, t,
|
|
38179
|
+
m(E, I) {
|
|
38180
|
+
X(E, t, I), _(t, e), g && g.m(e, null), _(e, i), _(e, s), _(s, o), m && m.m(o, null), n[39](o), _(s, a), v && v.m(s, null), n[40](s), _(e, l), A && A.m(e, null), _(t, c), P && P.m(t, null), h = !0, d || (u = [
|
|
38175
38181
|
ai(r = YM.call(null, o, {
|
|
38176
38182
|
thresholdProvider: (
|
|
38177
38183
|
/*swipeable_function*/
|
|
@@ -38224,13 +38230,13 @@ function Rk(n) {
|
|
|
38224
38230
|
)
|
|
38225
38231
|
], d = !0);
|
|
38226
38232
|
},
|
|
38227
|
-
p(E,
|
|
38233
|
+
p(E, I) {
|
|
38228
38234
|
/*arrows*/
|
|
38229
|
-
E[1] ? g ? (g.p(E,
|
|
38235
|
+
E[1] ? g ? (g.p(E, I), I[0] & /*arrows*/
|
|
38230
38236
|
2 && H(g, 1)) : (g = _p(E), g.c(), H(g, 1), g.m(e, i)) : g && (ke(), Y(g, 1, 1, () => {
|
|
38231
38237
|
g = null;
|
|
38232
|
-
}), xe()), m && m.p && (!h ||
|
|
38233
|
-
96 |
|
|
38238
|
+
}), xe()), m && m.p && (!h || I[0] & /*loaded, currentPageIndex*/
|
|
38239
|
+
96 | I[1] & /*$$scope*/
|
|
38234
38240
|
32) && fs(
|
|
38235
38241
|
m,
|
|
38236
38242
|
p,
|
|
@@ -38241,43 +38247,43 @@ function Rk(n) {
|
|
|
38241
38247
|
p,
|
|
38242
38248
|
/*$$scope*/
|
|
38243
38249
|
E[36],
|
|
38244
|
-
|
|
38250
|
+
I,
|
|
38245
38251
|
Tk
|
|
38246
38252
|
) : gs(
|
|
38247
38253
|
/*$$scope*/
|
|
38248
38254
|
E[36]
|
|
38249
38255
|
),
|
|
38250
38256
|
jp
|
|
38251
|
-
), (!h ||
|
|
38257
|
+
), (!h || I[0] & /*offset*/
|
|
38252
38258
|
256) && R(o, "transform", "translateX(" + /*offset*/
|
|
38253
|
-
E[8] + "px)"), (!h ||
|
|
38259
|
+
E[8] + "px)"), (!h || I[0] & /*durationMs*/
|
|
38254
38260
|
512) && R(
|
|
38255
38261
|
o,
|
|
38256
38262
|
"transition-duration",
|
|
38257
38263
|
/*durationMs*/
|
|
38258
38264
|
E[9] + "ms"
|
|
38259
|
-
), (!h ||
|
|
38265
|
+
), (!h || I[0] & /*timingFunction*/
|
|
38260
38266
|
1) && R(
|
|
38261
38267
|
o,
|
|
38262
38268
|
"transition-timing-function",
|
|
38263
38269
|
/*timingFunction*/
|
|
38264
38270
|
E[0]
|
|
38265
|
-
), r && ri(r.update) &&
|
|
38271
|
+
), r && ri(r.update) && I[0] & /*pageWindowWidth*/
|
|
38266
38272
|
2048 && r.update.call(null, {
|
|
38267
38273
|
thresholdProvider: (
|
|
38268
38274
|
/*swipeable_function*/
|
|
38269
38275
|
E[38]
|
|
38270
38276
|
)
|
|
38271
38277
|
}), /*autoplayProgressVisible*/
|
|
38272
|
-
E[3] ? v ? (v.p(E,
|
|
38278
|
+
E[3] ? v ? (v.p(E, I), I[0] & /*autoplayProgressVisible*/
|
|
38273
38279
|
8 && H(v, 1)) : (v = Bp(E), v.c(), H(v, 1), v.m(s, null)) : v && (ke(), Y(v, 1, 1, () => {
|
|
38274
38280
|
v = null;
|
|
38275
38281
|
}), xe()), /*arrows*/
|
|
38276
|
-
E[1] ? A ? (A.p(E,
|
|
38282
|
+
E[1] ? A ? (A.p(E, I), I[0] & /*arrows*/
|
|
38277
38283
|
2 && H(A, 1)) : (A = Vp(E), A.c(), H(A, 1), A.m(e, null)) : A && (ke(), Y(A, 1, 1, () => {
|
|
38278
38284
|
A = null;
|
|
38279
38285
|
}), xe()), /*dots*/
|
|
38280
|
-
E[4] ? P ? (P.p(E,
|
|
38286
|
+
E[4] ? P ? (P.p(E, I), I[0] & /*dots*/
|
|
38281
38287
|
16 && H(P, 1)) : (P = Fp(E), P.c(), H(P, 1), P.m(t, null)) : P && (ke(), Y(P, 1, 1, () => {
|
|
38282
38288
|
P = null;
|
|
38283
38289
|
}), xe());
|
|
@@ -38305,7 +38311,7 @@ function _k(n, t, e) {
|
|
|
38305
38311
|
loaded: () => e(6, o = Ie)
|
|
38306
38312
|
})(me);
|
|
38307
38313
|
}), m = Rn();
|
|
38308
|
-
let { timingFunction: v = "ease-in-out" } = t, { arrows: A = !0 } = t, { infinite: P = !0 } = t, { initialPageIndex: E = 0 } = t, { duration:
|
|
38314
|
+
let { timingFunction: v = "ease-in-out" } = t, { arrows: A = !0 } = t, { infinite: P = !0 } = t, { initialPageIndex: E = 0 } = t, { duration: I = 500 } = t, { autoplay: z = !1 } = t, { autoplayDuration: D = 3e3 } = t, { autoplayDirection: j = ps } = t, { pauseOnFocus: T = !1 } = t, { autoplayProgressVisible: O = !1 } = t, { dots: b = !0 } = t, { swiping: C = !0 } = t, { particlesToShow: M = 1 } = t, { particlesToScroll: k = 1 } = t;
|
|
38309
38315
|
function S(me, Ie) {
|
|
38310
38316
|
return te(this, null, function* () {
|
|
38311
38317
|
const Oe = Fr(Ie, "animated", !0);
|
|
@@ -38358,25 +38364,25 @@ function _k(n, t, e) {
|
|
|
38358
38364
|
});
|
|
38359
38365
|
}
|
|
38360
38366
|
function ue() {
|
|
38361
|
-
|
|
38367
|
+
C && (d.durationMs = 0);
|
|
38362
38368
|
}
|
|
38363
38369
|
function Le(me) {
|
|
38364
38370
|
return te(this, null, function* () {
|
|
38365
|
-
|
|
38371
|
+
C && (yield Ch({
|
|
38366
38372
|
[ps]: g.showNextPage,
|
|
38367
38373
|
[er]: g.showPrevPage
|
|
38368
38374
|
})(me.detail.direction));
|
|
38369
38375
|
});
|
|
38370
38376
|
}
|
|
38371
38377
|
function re(me) {
|
|
38372
|
-
|
|
38378
|
+
C && (d.offset += me.detail.dx);
|
|
38373
38379
|
}
|
|
38374
38380
|
function Me() {
|
|
38375
|
-
|
|
38381
|
+
C && g.showParticle(d.currentParticleIndex);
|
|
38376
38382
|
}
|
|
38377
38383
|
function de() {
|
|
38378
38384
|
return te(this, null, function* () {
|
|
38379
|
-
|
|
38385
|
+
C && (yield g.offsetPage({ animated: !0 }));
|
|
38380
38386
|
});
|
|
38381
38387
|
}
|
|
38382
38388
|
function le(me) {
|
|
@@ -38401,12 +38407,12 @@ function _k(n, t, e) {
|
|
|
38401
38407
|
}
|
|
38402
38408
|
const Ve = (me) => $(me.detail);
|
|
38403
38409
|
return n.$$set = (me) => {
|
|
38404
|
-
"timingFunction" in me && e(0, v = me.timingFunction), "arrows" in me && e(1, A = me.arrows), "infinite" in me && e(2, P = me.infinite), "initialPageIndex" in me && e(24, E = me.initialPageIndex), "duration" in me && e(25,
|
|
38410
|
+
"timingFunction" in me && e(0, v = me.timingFunction), "arrows" in me && e(1, A = me.arrows), "infinite" in me && e(2, P = me.infinite), "initialPageIndex" in me && e(24, E = me.initialPageIndex), "duration" in me && e(25, I = me.duration), "autoplay" in me && e(26, z = me.autoplay), "autoplayDuration" in me && e(27, D = me.autoplayDuration), "autoplayDirection" in me && e(28, j = me.autoplayDirection), "pauseOnFocus" in me && e(29, T = me.pauseOnFocus), "autoplayProgressVisible" in me && e(3, O = me.autoplayProgressVisible), "dots" in me && e(4, b = me.dots), "swiping" in me && e(30, C = me.swiping), "particlesToShow" in me && e(31, M = me.particlesToShow), "particlesToScroll" in me && e(32, k = me.particlesToScroll), "$$scope" in me && e(36, s = me.$$scope);
|
|
38405
38411
|
}, n.$$.update = () => {
|
|
38406
38412
|
n.$$.dirty[0] & /*currentPageIndex*/
|
|
38407
38413
|
32 && m("pageChange", r), n.$$.dirty[0] & /*infinite*/
|
|
38408
38414
|
4 && (d.infinite = P), n.$$.dirty[0] & /*duration*/
|
|
38409
|
-
33554432 && (d.durationMsInit =
|
|
38415
|
+
33554432 && (d.durationMsInit = I), n.$$.dirty[0] & /*autoplay*/
|
|
38410
38416
|
67108864 && (d.autoplay = z), n.$$.dirty[0] & /*autoplayDuration*/
|
|
38411
38417
|
134217728 && (d.autoplayDuration = D), n.$$.dirty[0] & /*autoplayDirection*/
|
|
38412
38418
|
268435456 && (d.autoplayDirection = j), n.$$.dirty[0] & /*pauseOnFocus*/
|
|
@@ -38439,12 +38445,12 @@ function _k(n, t, e) {
|
|
|
38439
38445
|
Se,
|
|
38440
38446
|
ee,
|
|
38441
38447
|
E,
|
|
38442
|
-
|
|
38448
|
+
I,
|
|
38443
38449
|
z,
|
|
38444
38450
|
D,
|
|
38445
38451
|
j,
|
|
38446
38452
|
T,
|
|
38447
|
-
|
|
38453
|
+
C,
|
|
38448
38454
|
M,
|
|
38449
38455
|
k,
|
|
38450
38456
|
S,
|
|
@@ -38807,7 +38813,7 @@ function Uk(n, t, e) {
|
|
|
38807
38813
|
M !== i && (i == null || i.pause());
|
|
38808
38814
|
});
|
|
38809
38815
|
});
|
|
38810
|
-
const
|
|
38816
|
+
const I = (M) => {
|
|
38811
38817
|
e(11, p = !1), e(0, o.paused = !1, o), e(9, m = !0), i && A.set({ currentMediaElement: i }), P.emit("playStateChange", {
|
|
38812
38818
|
event: M,
|
|
38813
38819
|
state: "playing",
|
|
@@ -38843,7 +38849,7 @@ function Uk(n, t, e) {
|
|
|
38843
38849
|
o.videoInstance = M, e(0, o);
|
|
38844
38850
|
});
|
|
38845
38851
|
}
|
|
38846
|
-
const b = () => l === "withText" ? Bd : l === "withoutText" ? vh : l,
|
|
38852
|
+
const b = () => l === "withText" ? Bd : l === "withoutText" ? vh : l, C = (M) => {
|
|
38847
38853
|
h && i && (e(10, i.muted = !1, i), i.play());
|
|
38848
38854
|
};
|
|
38849
38855
|
return n.$$set = (M) => {
|
|
@@ -38874,14 +38880,14 @@ function Uk(n, t, e) {
|
|
|
38874
38880
|
A,
|
|
38875
38881
|
P,
|
|
38876
38882
|
s,
|
|
38877
|
-
|
|
38883
|
+
I,
|
|
38878
38884
|
z,
|
|
38879
38885
|
D,
|
|
38880
38886
|
j,
|
|
38881
38887
|
T,
|
|
38882
38888
|
O,
|
|
38883
38889
|
b,
|
|
38884
|
-
|
|
38890
|
+
C
|
|
38885
38891
|
];
|
|
38886
38892
|
}
|
|
38887
38893
|
class eA extends Pe {
|
|
@@ -39280,10 +39286,10 @@ function Zk(n) {
|
|
|
39280
39286
|
function Jk(n, t, e) {
|
|
39281
39287
|
let i, s, o, r, { tag: a } = t, { mediaData: l } = t, { inDelay: c = 0 } = t, { outDelay: h = 0 } = t, { duration: d = 0 } = t, { unfolded: u = !0 } = t, { animation: g = !0 } = t, { mediaItemConfig: p } = t, { enableCarousel: m = !0 } = t, { autoplayConfig: v = {} } = t;
|
|
39282
39288
|
const { autoplayVideo: A = !1, autoplayCarousel: P = !0, autoplayVideoInCarousel: E = !1 } = v;
|
|
39283
|
-
let
|
|
39289
|
+
let I = [], z = 0, D, j = null;
|
|
39284
39290
|
const T = an("hooks"), O = an("mediaStore");
|
|
39285
39291
|
function b() {
|
|
39286
|
-
const L =
|
|
39292
|
+
const L = I[z], N = L == null ? void 0 : L.videoInstance;
|
|
39287
39293
|
N && (N.paused ? (N.muted = !1, N.play()) : N.pause());
|
|
39288
39294
|
}
|
|
39289
39295
|
Tt(() => {
|
|
@@ -39293,14 +39299,14 @@ function Jk(n, t, e) {
|
|
|
39293
39299
|
}), e(
|
|
39294
39300
|
0,
|
|
39295
39301
|
a.play = () => {
|
|
39296
|
-
const L =
|
|
39302
|
+
const L = I[z], N = L == null ? void 0 : L.videoInstance;
|
|
39297
39303
|
N && (N.muted = !1, N.play());
|
|
39298
39304
|
},
|
|
39299
39305
|
a
|
|
39300
39306
|
), e(
|
|
39301
39307
|
0,
|
|
39302
39308
|
a.pause = () => {
|
|
39303
|
-
const L =
|
|
39309
|
+
const L = I[z], N = L == null ? void 0 : L.videoInstance;
|
|
39304
39310
|
N && N.pause();
|
|
39305
39311
|
},
|
|
39306
39312
|
a
|
|
@@ -39313,8 +39319,8 @@ function Jk(n, t, e) {
|
|
|
39313
39319
|
}), $t(() => {
|
|
39314
39320
|
clearInterval(j), T.off("click", b);
|
|
39315
39321
|
});
|
|
39316
|
-
function
|
|
39317
|
-
n.$$.not_equal(
|
|
39322
|
+
function C(L, N) {
|
|
39323
|
+
n.$$.not_equal(I[N], L) && (I[N] = L, e(8, I));
|
|
39318
39324
|
}
|
|
39319
39325
|
function M(L) {
|
|
39320
39326
|
qe[L ? "unshift" : "push"](() => {
|
|
@@ -39325,13 +39331,13 @@ function Jk(n, t, e) {
|
|
|
39325
39331
|
i || O.set({ currentMediaElement: null }), e(11, z = L.detail);
|
|
39326
39332
|
};
|
|
39327
39333
|
function S(L) {
|
|
39328
|
-
n.$$.not_equal(
|
|
39334
|
+
n.$$.not_equal(I[0], L) && (I[0] = L, e(8, I));
|
|
39329
39335
|
}
|
|
39330
39336
|
return n.$$set = (L) => {
|
|
39331
39337
|
"tag" in L && e(0, a = L.tag), "mediaData" in L && e(1, l = L.mediaData), "inDelay" in L && e(2, c = L.inDelay), "outDelay" in L && e(3, h = L.outDelay), "duration" in L && e(4, d = L.duration), "unfolded" in L && e(5, u = L.unfolded), "animation" in L && e(6, g = L.animation), "mediaItemConfig" in L && e(7, p = L.mediaItemConfig), "enableCarousel" in L && e(16, m = L.enableCarousel), "autoplayConfig" in L && e(17, v = L.autoplayConfig);
|
|
39332
39338
|
}, n.$$.update = () => {
|
|
39333
39339
|
n.$$.dirty[0] & /*mediaInstanceList*/
|
|
39334
|
-
256 && e(9, i =
|
|
39340
|
+
256 && e(9, i = I.every((L) => L.paused)), n.$$.dirty[0] & /*enableCarousel, mediaData*/
|
|
39335
39341
|
65538 && e(13, s = m && (l == null ? void 0 : l.length) > 1), n.$$.dirty[0] & /*mediaData*/
|
|
39336
39342
|
2 && e(10, o = l), n.$$.dirty[0] & /*mediaDataList, paused*/
|
|
39337
39343
|
1536 && (r = o.length > 1 && P && i);
|
|
@@ -39344,7 +39350,7 @@ function Jk(n, t, e) {
|
|
|
39344
39350
|
u,
|
|
39345
39351
|
g,
|
|
39346
39352
|
p,
|
|
39347
|
-
|
|
39353
|
+
I,
|
|
39348
39354
|
i,
|
|
39349
39355
|
o,
|
|
39350
39356
|
z,
|
|
@@ -39354,7 +39360,7 @@ function Jk(n, t, e) {
|
|
|
39354
39360
|
O,
|
|
39355
39361
|
m,
|
|
39356
39362
|
v,
|
|
39357
|
-
|
|
39363
|
+
C,
|
|
39358
39364
|
M,
|
|
39359
39365
|
k,
|
|
39360
39366
|
S
|
|
@@ -39942,7 +39948,7 @@ function a7(n) {
|
|
|
39942
39948
|
spreadRadius: 75
|
|
39943
39949
|
}
|
|
39944
39950
|
});
|
|
39945
|
-
let
|
|
39951
|
+
let I = (
|
|
39946
39952
|
/*data*/
|
|
39947
39953
|
n[1].headerPictureUrl && Zp(n)
|
|
39948
39954
|
), z = (
|
|
@@ -39961,7 +39967,7 @@ function a7(n) {
|
|
|
39961
39967
|
);
|
|
39962
39968
|
return {
|
|
39963
39969
|
c() {
|
|
39964
|
-
t = W("div"), pe(e.$$.fragment), i = ae(), s = W("div"), o = ae(), r = W("div"),
|
|
39970
|
+
t = W("div"), pe(e.$$.fragment), i = ae(), s = W("div"), o = ae(), r = W("div"), I && I.c(), a = ae(), l = W("div"), c = W("div"), h = W("div"), d = W("div"), g = _e(u), p = ae(), z && z.c(), m = ae(), D && D.c(), v = ae(), j && j.c(), A = ae(), T && T.c(), w(s, "class", "line svelte-74q3ai"), R(
|
|
39965
39971
|
s,
|
|
39966
39972
|
"transition-delay",
|
|
39967
39973
|
/*unfolded*/
|
|
@@ -40012,13 +40018,13 @@ function a7(n) {
|
|
|
40012
40018
|
);
|
|
40013
40019
|
},
|
|
40014
40020
|
m(O, b) {
|
|
40015
|
-
X(O, t, b), fe(e, t, null), _(t, i), _(t, s), _(t, o), _(t, r),
|
|
40021
|
+
X(O, t, b), fe(e, t, null), _(t, i), _(t, s), _(t, o), _(t, r), I && I.m(r, null), _(r, a), _(r, l), _(l, c), _(c, h), _(h, d), _(d, g), _(l, p), z && z.m(l, null), _(l, m), D && D.m(l, null), _(l, v), j && j.m(l, null), _(l, A), T && T.m(l, null), E = !0;
|
|
40016
40022
|
},
|
|
40017
40023
|
p(O, [b]) {
|
|
40018
|
-
const
|
|
40024
|
+
const C = {};
|
|
40019
40025
|
b & /*unfolded*/
|
|
40020
|
-
64 && (
|
|
40021
|
-
O[6]), e.$set(
|
|
40026
|
+
64 && (C.visible = /*unfolded*/
|
|
40027
|
+
O[6]), e.$set(C), b & /*unfolded, lineDelayUnfolded, lineDelayFolded*/
|
|
40022
40028
|
6208 && R(
|
|
40023
40029
|
s,
|
|
40024
40030
|
"transition-delay",
|
|
@@ -40031,7 +40037,7 @@ function a7(n) {
|
|
|
40031
40037
|
O[11] + "ms"
|
|
40032
40038
|
)
|
|
40033
40039
|
), /*data*/
|
|
40034
|
-
O[1].headerPictureUrl ?
|
|
40040
|
+
O[1].headerPictureUrl ? I ? I.p(O, b) : (I = Zp(O), I.c(), I.m(r, a)) : I && (I.d(1), I = null), (!E || b & /*data*/
|
|
40035
40041
|
2) && u !== (u = /*data*/
|
|
40036
40042
|
O[1].title + "") && Fe(g, u), /*hasTags*/
|
|
40037
40043
|
O[9] ? z ? z.p(O, b) : (z = Jp(O), z.c(), z.m(l, m)) : z && (z.d(1), z = null), /*data*/
|
|
@@ -40088,13 +40094,13 @@ function a7(n) {
|
|
|
40088
40094
|
Y(e.$$.fragment, O), E = !1;
|
|
40089
40095
|
},
|
|
40090
40096
|
d(O) {
|
|
40091
|
-
O && Q(t), ge(e),
|
|
40097
|
+
O && Q(t), ge(e), I && I.d(), z && z.d(), D && D.d(), j && j.d(), T && T.d();
|
|
40092
40098
|
}
|
|
40093
40099
|
};
|
|
40094
40100
|
}
|
|
40095
40101
|
const qd = 40;
|
|
40096
40102
|
function l7(n, t, e) {
|
|
40097
|
-
let i, s, o, r, a, l, c, h, d, u, g, p, m, v, A, { tag: P } = t, E,
|
|
40103
|
+
let i, s, o, r, a, l, c, h, d, u, g, p, m, v, A, { tag: P } = t, E, I = (() => {
|
|
40098
40104
|
var b;
|
|
40099
40105
|
const O = (b = P.data.limitWidth) != null ? b : !0;
|
|
40100
40106
|
if (typeof O == "number")
|
|
@@ -40114,15 +40120,15 @@ function l7(n, t, e) {
|
|
|
40114
40120
|
return n.$$set = (O) => {
|
|
40115
40121
|
"tag" in O && e(0, P = O.tag);
|
|
40116
40122
|
}, n.$$.update = () => {
|
|
40117
|
-
var O, b,
|
|
40123
|
+
var O, b, C, M;
|
|
40118
40124
|
n.$$.dirty & /*tag*/
|
|
40119
40125
|
1 && e(6, i = (b = (O = P.state) == null ? void 0 : O.unfolded) != null ? b : !1), n.$$.dirty & /*unfolded*/
|
|
40120
40126
|
64 && e(14, s = !i), n.$$.dirty & /*tag*/
|
|
40121
40127
|
1 && e(1, o = P.data), n.$$.dirty & /*data*/
|
|
40122
|
-
2 && e(2, r = Ne((
|
|
40128
|
+
2 && e(2, r = Ne((C = o.price) == null ? void 0 : C.value) && ((M = o.price) == null ? void 0 : M.value) !== ""), n.$$.dirty & /*tag*/
|
|
40123
40129
|
1 && e(5, a = P.data.theme || "light"), n.$$.dirty & /*theme*/
|
|
40124
40130
|
32 && e(13, l = a === "light"), n.$$.dirty & /*tagsCalculated, tagsOffsetHeight, maxTagsLength*/
|
|
40125
|
-
917504 && (!D ||
|
|
40131
|
+
917504 && (!D || I && I > 0) && (e(18, z = Math.max(1, Math.floor(((I || 172) - 20) / qd))), E !== void 0 && E > 40 && e(18, z = Math.max(1, z - 1)), e(19, D = !0)), n.$$.dirty & /*data, maxTagsLength*/
|
|
40126
40132
|
262146 && e(4, c = (o.brandTags || []).filter(Boolean).slice(0, z)), n.$$.dirty & /*maxTagsLength, primaryTags*/
|
|
40127
40133
|
262160 && e(20, h = Math.max(0, z - c.length)), n.$$.dirty & /*data, secondaryTagsLimit*/
|
|
40128
40134
|
1048578 && e(3, d = (o.tags || []).filter(Boolean).slice(0, h)), n.$$.dirty & /*primaryTags, secondaryTags*/
|
|
@@ -40146,7 +40152,7 @@ function l7(n, t, e) {
|
|
|
40146
40152
|
u,
|
|
40147
40153
|
l,
|
|
40148
40154
|
s,
|
|
40149
|
-
|
|
40155
|
+
I,
|
|
40150
40156
|
j,
|
|
40151
40157
|
E,
|
|
40152
40158
|
z,
|
|
@@ -40868,12 +40874,12 @@ function lm(n) {
|
|
|
40868
40874
|
},
|
|
40869
40875
|
p(P, E) {
|
|
40870
40876
|
var j, T;
|
|
40871
|
-
const
|
|
40877
|
+
const I = {};
|
|
40872
40878
|
E & /*unfolded*/
|
|
40873
|
-
64 && (
|
|
40879
|
+
64 && (I.visible = /*unfolded*/
|
|
40874
40880
|
P[6]), E & /*contentWidth*/
|
|
40875
|
-
8 && (
|
|
40876
|
-
P[3] / 2 + "px"), e.$set(
|
|
40881
|
+
8 && (I.left = /*contentWidth*/
|
|
40882
|
+
P[3] / 2 + "px"), e.$set(I), /*unfolded*/
|
|
40877
40883
|
P[6] ? m ? (m.p(P, E), E & /*unfolded*/
|
|
40878
40884
|
64 && H(m, 1)) : (m = cm(P), m.c(), H(m, 1), m.m(r, null)) : m && (ke(), Y(m, 1, 1, () => {
|
|
40879
40885
|
m = null;
|
|
@@ -41681,20 +41687,20 @@ const So = class {
|
|
|
41681
41687
|
getOrCreateStyle(t, e) {
|
|
41682
41688
|
const i = this.generateStyleKey(t, e);
|
|
41683
41689
|
if (this.styleRefs.has(i)) {
|
|
41684
|
-
const
|
|
41685
|
-
return
|
|
41690
|
+
const I = this.styleRefs.get(i);
|
|
41691
|
+
return I.count++, i;
|
|
41686
41692
|
}
|
|
41687
41693
|
const { duration: s, timing: o = "linear", loop: r, loopInterval: a = 0 } = t, l = t.elements[e], { properties: c } = l, h = `${i}-keyframe`;
|
|
41688
41694
|
let d = 2;
|
|
41689
41695
|
const u = [c.translateX, c.translateY, c.scale, c.rotate, c.opacity].filter(
|
|
41690
|
-
(
|
|
41696
|
+
(I) => Array.isArray(I) && I.length > 0
|
|
41691
41697
|
);
|
|
41692
|
-
u.length > 0 && (d = Math.max(...u.map((
|
|
41698
|
+
u.length > 0 && (d = Math.max(...u.map((I) => I.length)));
|
|
41693
41699
|
const g = r && a > 0 ? s + a : s, p = Math.max(0, Math.min(100, s / g * 100));
|
|
41694
41700
|
let m = `@keyframes ${h} {
|
|
41695
41701
|
`;
|
|
41696
|
-
for (let
|
|
41697
|
-
const z =
|
|
41702
|
+
for (let I = 0; I < d; I++) {
|
|
41703
|
+
const z = I / (d - 1), D = z * p, j = this.generateTransformMulti(c, z);
|
|
41698
41704
|
let T = "";
|
|
41699
41705
|
c.opacity && (T = ` opacity: ${this.interpolateMulti(c.opacity, z)};`), m += ` ${D}% {
|
|
41700
41706
|
${j ? ` transform: ${j};
|
|
@@ -42412,7 +42418,7 @@ function i6(n, t, e) {
|
|
|
42412
42418
|
return P("iconLoaded", L), L;
|
|
42413
42419
|
});
|
|
42414
42420
|
}
|
|
42415
|
-
function
|
|
42421
|
+
function I(S) {
|
|
42416
42422
|
return te(this, null, function* () {
|
|
42417
42423
|
if (typeof p == "number")
|
|
42418
42424
|
return he(F({}, S), { width: p });
|
|
@@ -42429,7 +42435,7 @@ function i6(n, t, e) {
|
|
|
42429
42435
|
let D = null, j = null, T = null;
|
|
42430
42436
|
const O = /* @__PURE__ */ new Map();
|
|
42431
42437
|
let b = null;
|
|
42432
|
-
function
|
|
42438
|
+
function C(S) {
|
|
42433
42439
|
return te(this, null, function* () {
|
|
42434
42440
|
const L = O.get(S);
|
|
42435
42441
|
if (L)
|
|
@@ -42447,7 +42453,7 @@ function i6(n, t, e) {
|
|
|
42447
42453
|
return te(this, null, function* () {
|
|
42448
42454
|
if (!d || !D && (yield fl(), !D) || !Lr(i))
|
|
42449
42455
|
return;
|
|
42450
|
-
T && (jc(T), e(18, T = null)), i && (e(3, j = yield
|
|
42456
|
+
T && (jc(T), e(18, T = null)), i && (e(3, j = yield C(i)), yield fl());
|
|
42451
42457
|
const S = D.querySelector("svg");
|
|
42452
42458
|
S && (e(18, T = S), V7(T, d));
|
|
42453
42459
|
});
|
|
@@ -42501,7 +42507,7 @@ function i6(n, t, e) {
|
|
|
42501
42507
|
o,
|
|
42502
42508
|
s,
|
|
42503
42509
|
E,
|
|
42504
|
-
|
|
42510
|
+
I,
|
|
42505
42511
|
v,
|
|
42506
42512
|
T,
|
|
42507
42513
|
b,
|
|
@@ -42982,7 +42988,7 @@ function I6(n) {
|
|
|
42982
42988
|
k6,
|
|
42983
42989
|
M6
|
|
42984
42990
|
], E = [];
|
|
42985
|
-
function
|
|
42991
|
+
function I(z, D) {
|
|
42986
42992
|
return D & /*tag, contentTypeMap*/
|
|
42987
42993
|
9 && (s = null), D & /*tag, contentTypeMap*/
|
|
42988
42994
|
9 && (o = null), D & /*tag, contentTypeMap*/
|
|
@@ -43055,7 +43061,7 @@ function I6(n) {
|
|
|
43055
43061
|
)
|
|
43056
43062
|
))), h ? 6 : -1))))));
|
|
43057
43063
|
}
|
|
43058
|
-
return ~(d =
|
|
43064
|
+
return ~(d = I(n, -1)) && (u = E[d] = P[d](n)), {
|
|
43059
43065
|
c() {
|
|
43060
43066
|
var z;
|
|
43061
43067
|
t = W("div"), e = W("div"), i = W("div"), u && u.c(), w(i, "class", "content svelte-1fy4duy"), Ce(
|
|
@@ -43109,7 +43115,7 @@ function I6(n) {
|
|
|
43109
43115
|
p(z, D) {
|
|
43110
43116
|
var T;
|
|
43111
43117
|
let j = d;
|
|
43112
|
-
d =
|
|
43118
|
+
d = I(z, D), d === j ? ~d && E[d].p(z, D) : (u && (ke(), Y(E[j], 1, 1, () => {
|
|
43113
43119
|
E[j] = null;
|
|
43114
43120
|
}), xe()), ~d ? (u = E[d], u ? u.p(z, D) : (u = E[d] = P[d](z), u.c()), H(u, 1), u.m(i, null)) : u = null), (!m || D & /*tag*/
|
|
43115
43121
|
1) && Ce(
|
|
@@ -43527,10 +43533,10 @@ function O6(n, t, e) {
|
|
|
43527
43533
|
T ? h.emit("exposure", { id: r, type: "start" }) : h.emit("exposure", { id: r, type: "end" });
|
|
43528
43534
|
}
|
|
43529
43535
|
function E(T, O, b) {
|
|
43530
|
-
var
|
|
43531
|
-
return !(!T.enabled || !O.visible || !O.enabled || !b.visible || !((
|
|
43536
|
+
var C, M;
|
|
43537
|
+
return !(!T.enabled || !O.visible || !O.enabled || !b.visible || !((C = T.state) != null && C.visible) || ((M = T.temporaryState) == null ? void 0 : M.visible) === !1 || T instanceof sA && T.loading);
|
|
43532
43538
|
}
|
|
43533
|
-
function
|
|
43539
|
+
function I(T) {
|
|
43534
43540
|
qe[T ? "unshift" : "push"](() => {
|
|
43535
43541
|
c.contentDom = T, e(0, c);
|
|
43536
43542
|
});
|
|
@@ -43547,7 +43553,7 @@ function O6(n, t, e) {
|
|
|
43547
43553
|
return n.$$set = (T) => {
|
|
43548
43554
|
"tag" in T && e(0, c = T.tag), "hooks" in T && e(1, h = T.hooks), "rendererMap" in T && e(2, d = T.rendererMap), "contentTypeMap" in T && e(3, u = T.contentTypeMap), "state" in T && e(6, g = T.state), "mediaStore" in T && e(7, p = T.mediaStore), "temporaryState" in T && e(8, m = T.temporaryState);
|
|
43549
43555
|
}, n.$$.update = () => {
|
|
43550
|
-
var T, O, b,
|
|
43556
|
+
var T, O, b, C, M, k, S, L, N, B, Z;
|
|
43551
43557
|
n.$$.dirty & /*tag*/
|
|
43552
43558
|
1 && e(12, i = (T = c.state) == null ? void 0 : T.unfolded), n.$$.dirty & /*tag*/
|
|
43553
43559
|
1 && e(11, s = (O = c.state) == null ? void 0 : O.visible), n.$$.dirty & /*state, temporaryState, tag*/
|
|
@@ -43555,7 +43561,7 @@ function O6(n, t, e) {
|
|
|
43555
43561
|
1 && (r = c.id), n.$$.dirty & /*tag, state, temporaryState*/
|
|
43556
43562
|
321 && e(5, a = !E(c, g, m)), n.$$.dirty & /*isVisible*/
|
|
43557
43563
|
8192 && P(o), n.$$.dirty & /*tag, unfolded, lastUnfoldedState, visible, lastVisibleState*/
|
|
43558
|
-
7681 && c.hooks && (i !== void 0 && i !== A && (e(10, A = i), i ? (M = (
|
|
43564
|
+
7681 && c.hooks && (i !== void 0 && i !== A && (e(10, A = i), i ? (M = (C = c.hooks).emit) == null || M.call(C, "unfolded") : (S = c == null ? void 0 : (k = c.hooks).emit) == null || S.call(k, "folded")), s !== void 0 && s !== v && (e(9, v = s), s ? (N = (L = c.hooks).emit) == null || N.call(L, "show") : (Z = (B = c.hooks).emit) == null || Z.call(B, "hide"))), n.$$.dirty & /*tag*/
|
|
43559
43565
|
1 && e(4, l = (() => !(typeof c.config.unfoldedConfig == "object" && c.config.unfoldedConfig.keep === "folded"))());
|
|
43560
43566
|
}, [
|
|
43561
43567
|
c,
|
|
@@ -43572,7 +43578,7 @@ function O6(n, t, e) {
|
|
|
43572
43578
|
s,
|
|
43573
43579
|
i,
|
|
43574
43580
|
o,
|
|
43575
|
-
|
|
43581
|
+
I,
|
|
43576
43582
|
z,
|
|
43577
43583
|
D,
|
|
43578
43584
|
j
|
|
@@ -45301,8 +45307,8 @@ class lx extends ma {
|
|
|
45301
45307
|
`${r.toUpperCase()}${"XZY".replace(r.toUpperCase(), "")}`
|
|
45302
45308
|
)[r] * o.angleDirection;
|
|
45303
45309
|
if (this.startInfo.angle += E, this.setAngleHelperLength(r, this.startInfo.angle), this.setTipsAngle(fi(this.startInfo.angle)), h) {
|
|
45304
|
-
const
|
|
45305
|
-
l.position.copy(
|
|
45310
|
+
const I = new y.Vector3().subVectors(l.position, h).applyQuaternion(m).add(h);
|
|
45311
|
+
l.position.copy(I);
|
|
45306
45312
|
}
|
|
45307
45313
|
l.applyQuaternion(m), Fc.premultiply(m), this.internalHooks.emit("applyObjectRotate", { quaternion: m, origin: h }), this.hooks.emit("rotate", l.quaternion), this.startInfo.startVector = u;
|
|
45308
45314
|
}
|
|
@@ -45417,34 +45423,34 @@ class cx extends ma {
|
|
|
45417
45423
|
const a = e.ray.intersectPlane(o, new ve());
|
|
45418
45424
|
if (!a || Ja(a, this.camera.position))
|
|
45419
45425
|
return;
|
|
45420
|
-
const l = new ve().addVectors(r[0], r[2]).divideScalar(2), { position: c, direction: h } = s, d = new ve().subVectors(r[1], r[0]), u = new ve().subVectors(r[3], r[0]), g = (
|
|
45426
|
+
const l = new ve().addVectors(r[0], r[2]).divideScalar(2), { position: c, direction: h } = s, d = new ve().subVectors(r[1], r[0]), u = new ve().subVectors(r[3], r[0]), g = (C) => {
|
|
45421
45427
|
const M = new ve(0, 0, 0);
|
|
45422
45428
|
if (!this.startInfo)
|
|
45423
45429
|
return M;
|
|
45424
|
-
const k = (
|
|
45430
|
+
const k = (C === "ew" ? d : u).clone(), S = c.clone().projectOnVector(k), L = a.clone().projectOnVector(k), N = l.clone().projectOnVector(k);
|
|
45425
45431
|
if (L.equals(S))
|
|
45426
45432
|
return M;
|
|
45427
|
-
if (
|
|
45433
|
+
if (C === "ns" && typeof this.startInfo.dragPointInCenterBottom != "boolean") {
|
|
45428
45434
|
const ie = new ve().subVectors(L, N), K = ie.x < 0 && k.x >= 0, oe = ie.y < 0 && k.y >= 0, $ = ie.z < 0 && k.z >= 0;
|
|
45429
45435
|
this.startInfo.dragPointInCenterBottom = K || oe || $;
|
|
45430
45436
|
}
|
|
45431
|
-
if (
|
|
45437
|
+
if (C === "ew" && typeof this.startInfo.dragPointInCenterLeft != "boolean") {
|
|
45432
45438
|
const ie = new ve().subVectors(L, N), K = ie.x < 0 && k.x >= 0, oe = ie.y < 0 && k.y >= 0, $ = ie.z < 0 && k.z >= 0;
|
|
45433
45439
|
this.startInfo.dragPointInCenterLeft = K || oe || $;
|
|
45434
45440
|
}
|
|
45435
45441
|
const B = new ve().subVectors(L, S), Z = B.length();
|
|
45436
45442
|
return Z > 0.3 ? (console.warn("offset.length() > 0.3, skipped", Z), M) : B;
|
|
45437
45443
|
}, p = g("ew"), m = g("ns"), v = () => {
|
|
45438
|
-
const
|
|
45444
|
+
const C = p;
|
|
45439
45445
|
this.helperObject3D.cornerPositions.forEach((M, k) => {
|
|
45440
45446
|
var S;
|
|
45441
|
-
(S = this.startInfo) != null && S.dragPointInCenterLeft ? (k === 0 || k === 3) && M.add(
|
|
45447
|
+
(S = this.startInfo) != null && S.dragPointInCenterLeft ? (k === 0 || k === 3) && M.add(C) : (k === 1 || k === 2) && M.add(C);
|
|
45442
45448
|
});
|
|
45443
45449
|
}, A = () => {
|
|
45444
|
-
const
|
|
45450
|
+
const C = m;
|
|
45445
45451
|
this.helperObject3D.cornerPositions.forEach((M, k) => {
|
|
45446
45452
|
var S;
|
|
45447
|
-
(S = this.startInfo) != null && S.dragPointInCenterBottom ? (k === 0 || k === 1) && M.add(
|
|
45453
|
+
(S = this.startInfo) != null && S.dragPointInCenterBottom ? (k === 0 || k === 1) && M.add(C) : (k === 2 || k === 3) && M.add(C);
|
|
45448
45454
|
});
|
|
45449
45455
|
};
|
|
45450
45456
|
switch (h) {
|
|
@@ -45458,7 +45464,7 @@ class cx extends ma {
|
|
|
45458
45464
|
case "nwse":
|
|
45459
45465
|
v(), A();
|
|
45460
45466
|
}
|
|
45461
|
-
const P = new ve().subVectors(r[1], r[0]).length() / d.length(), E = new ve().subVectors(r[3], r[0]).length() / u.length(),
|
|
45467
|
+
const P = new ve().subVectors(r[1], r[0]).length() / d.length(), E = new ve().subVectors(r[3], r[0]).length() / u.length(), I = new ve(P, E, 1), z = new y.Matrix4().scale(I);
|
|
45462
45468
|
i.isCSS3DObjectPlus && i.applyScaleMatrix4 ? i.applyScaleMatrix4(z) : i.scale.applyMatrix4(z), s.position.copy(a);
|
|
45463
45469
|
const D = new ve().addVectors(r[0], r[2]).divideScalar(2), j = new ve().subVectors(D, l), T = new y.Matrix4().setPosition(j);
|
|
45464
45470
|
i.applyMatrix4(T), (O = this.helperObject3D.css3DInstance) == null || O.css3DObject.applyMatrix4(T), (b = this.helperObject3D.plane) == null || b.applyMatrix4(T), this.internalHooks.emit("applyObjectScale", { matrix: z }), this.internalHooks.emit("applyObjectPosition", { matrix: T }), this.render();
|
|
@@ -45748,10 +45754,10 @@ class px extends ma {
|
|
|
45748
45754
|
const A = m.slice(0, 4);
|
|
45749
45755
|
if (!A || A.length < 4)
|
|
45750
45756
|
return;
|
|
45751
|
-
const P = mi(A).normalize(), E = new y.Plane().setFromNormalAndCoplanarPoint(P, A[0]),
|
|
45752
|
-
if (e.ray.intersectPlane(E,
|
|
45757
|
+
const P = mi(A).normalize(), E = new y.Plane().setFromNormalAndCoplanarPoint(P, A[0]), I = new y.Vector3();
|
|
45758
|
+
if (e.ray.intersectPlane(E, I), !I)
|
|
45753
45759
|
return;
|
|
45754
|
-
const z = new y.Matrix4().getInverse(this.helperObject3D.matrixWorld), D =
|
|
45760
|
+
const z = new y.Matrix4().getInverse(this.helperObject3D.matrixWorld), D = I.clone().applyMatrix4(z), j = s.clone().applyMatrix4(z);
|
|
45755
45761
|
(c = (l = this.config) == null ? void 0 : l.scaleCallback) == null || c.call(l, {
|
|
45756
45762
|
intersectPoint: D,
|
|
45757
45763
|
scalePosition: r,
|
|
@@ -46280,43 +46286,43 @@ class cA extends bs {
|
|
|
46280
46286
|
scaleHelper: !0,
|
|
46281
46287
|
boundingBoxHelper: !1,
|
|
46282
46288
|
positionFrom: "objectPosition"
|
|
46283
|
-
}), i), { moveHelper: h, rotateHelper: d, scaleHelper: u, boundingBoxHelper: g } = c, p = s.hooks, m = new kt(), v = new Ke(this.five.camera, this.five.getElement()), A = (
|
|
46284
|
-
if (
|
|
46285
|
-
return typeof
|
|
46289
|
+
}), i), { moveHelper: h, rotateHelper: d, scaleHelper: u, boundingBoxHelper: g } = c, p = s.hooks, m = new kt(), v = new Ke(this.five.camera, this.five.getElement()), A = (I) => {
|
|
46290
|
+
if (I)
|
|
46291
|
+
return typeof I == "boolean" ? I : I.enable;
|
|
46286
46292
|
}, P = {};
|
|
46287
46293
|
if (A(h)) {
|
|
46288
|
-
const
|
|
46294
|
+
const I = F(F({}, this.getConfig(c.moveHelper)), c), z = new W6(e, F({}, I)), D = new xr(
|
|
46289
46295
|
this.five,
|
|
46290
46296
|
v,
|
|
46291
46297
|
tx,
|
|
46292
46298
|
e,
|
|
46293
46299
|
z,
|
|
46294
|
-
|
|
46300
|
+
I,
|
|
46295
46301
|
p,
|
|
46296
46302
|
m
|
|
46297
46303
|
);
|
|
46298
46304
|
P.moveController = D.helperController, o.push(() => D.dispose());
|
|
46299
46305
|
}
|
|
46300
46306
|
if (A(d)) {
|
|
46301
|
-
const
|
|
46307
|
+
const I = F(F({}, this.getConfig(c.rotateHelper)), c), z = new X6(e, F({ container: r }, I)), D = new xr(
|
|
46302
46308
|
this.five,
|
|
46303
46309
|
v,
|
|
46304
46310
|
lx,
|
|
46305
46311
|
e,
|
|
46306
46312
|
z,
|
|
46307
|
-
|
|
46313
|
+
I,
|
|
46308
46314
|
p,
|
|
46309
46315
|
m
|
|
46310
46316
|
);
|
|
46311
46317
|
P.rotateController = D.helperController, o.push(() => D.dispose());
|
|
46312
46318
|
}
|
|
46313
46319
|
if (A(g)) {
|
|
46314
|
-
const
|
|
46320
|
+
const I = new $6(e), z = new xr(
|
|
46315
46321
|
this.five,
|
|
46316
46322
|
v,
|
|
46317
46323
|
dx,
|
|
46318
46324
|
e,
|
|
46319
|
-
|
|
46325
|
+
I,
|
|
46320
46326
|
void 0,
|
|
46321
46327
|
p,
|
|
46322
46328
|
m
|
|
@@ -46325,12 +46331,12 @@ class cA extends bs {
|
|
|
46325
46331
|
}
|
|
46326
46332
|
if (A(u))
|
|
46327
46333
|
if (e.isCSS3DObject && r) {
|
|
46328
|
-
const
|
|
46334
|
+
const I = new K6(e, r, a, this.five.scene), z = new xr(
|
|
46329
46335
|
this.five,
|
|
46330
46336
|
v,
|
|
46331
46337
|
hx,
|
|
46332
46338
|
e,
|
|
46333
|
-
|
|
46339
|
+
I,
|
|
46334
46340
|
void 0,
|
|
46335
46341
|
p,
|
|
46336
46342
|
m
|
|
@@ -46347,20 +46353,20 @@ class cA extends bs {
|
|
|
46347
46353
|
e.isCSS3DObject && (this.css3DObjectModeMap.set(e, e.mode), e.mode = "behind");
|
|
46348
46354
|
});
|
|
46349
46355
|
} else {
|
|
46350
|
-
const
|
|
46356
|
+
const I = F(F({}, this.getConfig(c.scaleHelper)), c), z = new ux(e, I), D = new xr(
|
|
46351
46357
|
this.five,
|
|
46352
46358
|
v,
|
|
46353
46359
|
px,
|
|
46354
46360
|
e,
|
|
46355
46361
|
z,
|
|
46356
|
-
|
|
46362
|
+
I,
|
|
46357
46363
|
p,
|
|
46358
46364
|
m
|
|
46359
46365
|
);
|
|
46360
46366
|
P.scaleController = D.helperController, o.push(() => D.dispose());
|
|
46361
46367
|
}
|
|
46362
|
-
return Object.values(P).forEach((
|
|
46363
|
-
|
|
46368
|
+
return Object.values(P).forEach((I) => {
|
|
46369
|
+
I && typeof I.updateOtherControllers == "function" && I.updateOtherControllers(P);
|
|
46364
46370
|
}), s.addControllers(P), this.objectHelperMap.set(e, { helper: s, disposers: o }), s.controllers;
|
|
46365
46371
|
}
|
|
46366
46372
|
removeObject3DHelper(e) {
|
|
@@ -46853,14 +46859,14 @@ function Cx(n, t, e) {
|
|
|
46853
46859
|
const h = [];
|
|
46854
46860
|
let d, u, g;
|
|
46855
46861
|
const p = [], m = () => h.length > 0, v = () => p.length > 0, A = () => {
|
|
46856
|
-
m() && (p.push(h.pop()), n.setPoints(h),
|
|
46862
|
+
m() && (p.push(h.pop()), n.setPoints(h), I(g), t.pointSelectorHelper.magnifier.render());
|
|
46857
46863
|
}, P = () => {
|
|
46858
|
-
v() && (h.push(p.pop()), n.setPoints(h),
|
|
46864
|
+
v() && (h.push(p.pop()), n.setPoints(h), I(g), t.pointSelectorHelper.magnifier.render());
|
|
46859
46865
|
}, E = (D) => {
|
|
46860
46866
|
p.length = 0;
|
|
46861
46867
|
const j = h.length === 0 ? D.point : d.clone();
|
|
46862
46868
|
h.push(j), n.setPoints(h);
|
|
46863
|
-
},
|
|
46869
|
+
}, I = (D) => {
|
|
46864
46870
|
const j = () => {
|
|
46865
46871
|
l.setPoints([]), c.setPoints([]), d = null;
|
|
46866
46872
|
};
|
|
@@ -46869,8 +46875,8 @@ function Cx(n, t, e) {
|
|
|
46869
46875
|
const T = h.at(-1).clone();
|
|
46870
46876
|
a === "none" ? (d = D.point, l.setPoints([T, d])) : a === "xoz" ? (u = u != null ? u : new y.Plane().setFromNormalAndCoplanarPoint(new y.Vector3(0, 1, 0), h[0]), t.plane = u, d = u.projectPoint(D.point, new y.Vector3()), l.setPoints([T, d]), c.setPoints([d, D.point])) : a === "y" && (h.length === 1 ? (d = D.point, l.setPoints([T, d])) : (u = u != null ? u : new y.Plane().setFromCoplanarPoints(h[0], h[1], new y.Vector3(0, 1, 0).add(h[0])), t.plane = u, d = u.projectPoint(D.point, new y.Vector3()), l.setPoints([T, d]), c.setPoints([d, D.point])));
|
|
46871
46877
|
};
|
|
46872
|
-
return t.on("select", E), t.on("intersectionUpdate",
|
|
46873
|
-
if (t.off("select", E), t.off("intersectionUpdate",
|
|
46878
|
+
return t.on("select", E), t.on("intersectionUpdate", I), t.on("disable", () => {
|
|
46879
|
+
if (t.off("select", E), t.off("intersectionUpdate", I), t.plane = null, i.remove(l), i.remove(c), h.length < 2)
|
|
46874
46880
|
return i.remove(n), r(new Error("Cancelled"));
|
|
46875
46881
|
o();
|
|
46876
46882
|
}), {
|
|
@@ -47043,8 +47049,8 @@ class Ex extends iu {
|
|
|
47043
47049
|
* 更新所有 PointMesh 的位置
|
|
47044
47050
|
*/
|
|
47045
47051
|
updatePointMeshes() {
|
|
47046
|
-
var c, h, d, u, g, p, m, v, A, P, E,
|
|
47047
|
-
const e = this.originObject.areaMesh.points, i = (d = (h = (c = this.originObject.areaMesh) == null ? void 0 : c.userData) == null ? void 0 : h.dragSelectPixelDistance) != null ? d : 10, s = this.originObject.areaMesh, o = (g = (u = s.lineColor) == null ? void 0 : u.getHex) == null ? void 0 : g.call(u), r = (m = (p = s.color) == null ? void 0 : p.getHex) == null ? void 0 : m.call(p), a = (v = o != null ? o : r) != null ? v : 16777215, l = (
|
|
47052
|
+
var c, h, d, u, g, p, m, v, A, P, E, I;
|
|
47053
|
+
const e = this.originObject.areaMesh.points, i = (d = (h = (c = this.originObject.areaMesh) == null ? void 0 : c.userData) == null ? void 0 : h.dragSelectPixelDistance) != null ? d : 10, s = this.originObject.areaMesh, o = (g = (u = s.lineColor) == null ? void 0 : u.getHex) == null ? void 0 : g.call(u), r = (m = (p = s.color) == null ? void 0 : p.getHex) == null ? void 0 : m.call(p), a = (v = o != null ? o : r) != null ? v : 16777215, l = (I = (E = (P = (A = s.line) == null ? void 0 : A.style) == null ? void 0 : P.opacity) != null ? E : s.opacity) != null ? I : 1;
|
|
47048
47054
|
this.syncPointMeshCount(e, {
|
|
47049
47055
|
dragSelectPixelDistance: i,
|
|
47050
47056
|
pointColor: a,
|
|
@@ -47228,11 +47234,11 @@ function nu(n, t, e) {
|
|
|
47228
47234
|
}
|
|
47229
47235
|
t.enable(), l && t.setAdherePoints([]);
|
|
47230
47236
|
const P = [];
|
|
47231
|
-
let E,
|
|
47237
|
+
let E, I, z = !1, D;
|
|
47232
47238
|
const j = [], T = () => P.length > 0, O = () => j.length > 0, b = () => {
|
|
47233
47239
|
var re;
|
|
47234
47240
|
T() && (j.push(P.pop()), k(D), v(), (re = e == null ? void 0 : e.onUndo) == null || re.call(e), t.pointSelectorHelper && t.pointSelectorHelper.magnifier && t.pointSelectorHelper.magnifier.render());
|
|
47235
|
-
},
|
|
47241
|
+
}, C = () => {
|
|
47236
47242
|
var re;
|
|
47237
47243
|
O() && (P.push(j.pop()), k(D), v(), (re = e == null ? void 0 : e.onRedo) == null || re.call(e), t.pointSelectorHelper && t.pointSelectorHelper.magnifier && t.pointSelectorHelper.magnifier.render());
|
|
47238
47244
|
}, M = (re) => {
|
|
@@ -47251,7 +47257,7 @@ function nu(n, t, e) {
|
|
|
47251
47257
|
if (D = re, !(P != null && P.length))
|
|
47252
47258
|
return Me();
|
|
47253
47259
|
const de = P.at(-1).clone();
|
|
47254
|
-
if (P.length < 3 && (l ? (E = re.point.clone().setY(d), u.setPoints([de, E]), g.setPoints([])) : a === "none" ? (E = re.point, u.setPoints([de, E]), g.setPoints([])) : a === "xoz" ? (
|
|
47260
|
+
if (P.length < 3 && (l ? (E = re.point.clone().setY(d), u.setPoints([de, E]), g.setPoints([])) : a === "none" ? (E = re.point, u.setPoints([de, E]), g.setPoints([])) : a === "xoz" ? (I = I != null ? I : new y.Plane().setFromNormalAndCoplanarPoint(new y.Vector3(0, 1, 0), P[0]), t.plane = I, E = I.projectPoint(re.point, new y.Vector3()), u.setPoints([de, E]), g.setPoints([E, re.point])) : a === "y" && (P.length === 1 ? (E = re.point, u.setPoints([de, E]), g.setPoints([])) : (I = I != null ? I : new y.Plane().setFromCoplanarPoints(P[0], P[1], new y.Vector3(0, 1, 0).add(P[0])), t.plane = I, E = I.projectPoint(re.point, new y.Vector3()), u.setPoints([de, E]), g.setPoints([E, re.point])))), P.length >= 3) {
|
|
47255
47261
|
l ? E = re.point.clone().setY(d) : E = n.projectPoint(re.point);
|
|
47256
47262
|
const le = P[0];
|
|
47257
47263
|
let Se = !1;
|
|
@@ -47281,7 +47287,7 @@ function nu(n, t, e) {
|
|
|
47281
47287
|
canUndo: T,
|
|
47282
47288
|
canRedo: O,
|
|
47283
47289
|
undo: b,
|
|
47284
|
-
redo:
|
|
47290
|
+
redo: C
|
|
47285
47291
|
};
|
|
47286
47292
|
}
|
|
47287
47293
|
function kh(n) {
|
|
@@ -47914,11 +47920,11 @@ class mA extends va {
|
|
|
47914
47920
|
},
|
|
47915
47921
|
scaleCallback: (e) => {
|
|
47916
47922
|
const { intersectPoint: i, scalePosition: s } = e, { id: o, basePosition: r } = s, a = i.clone().sub(r), l = t.points, c = (h) => {
|
|
47917
|
-
const d = h, u = (d + 2) % 4, g = (d + 1) % 4, p = (d + 3) % 4, m = l[d].clone(), v = i.clone(), A = l[g].clone().sub(m), P = l[p].clone().sub(m), E = A.length(),
|
|
47918
|
-
if (E < 1e-6 ||
|
|
47923
|
+
const d = h, u = (d + 2) % 4, g = (d + 1) % 4, p = (d + 3) % 4, m = l[d].clone(), v = i.clone(), A = l[g].clone().sub(m), P = l[p].clone().sub(m), E = A.length(), I = P.length();
|
|
47924
|
+
if (E < 1e-6 || I < 1e-6)
|
|
47919
47925
|
return l.map((S) => S.clone());
|
|
47920
|
-
const z = A.clone().normalize(), D = P.clone().normalize(), j = v.clone().sub(m), T = j.dot(z), O = j.dot(D), b = m.clone().add(z.clone().multiplyScalar(T)),
|
|
47921
|
-
return k[d] = m, k[g] = b, k[p] =
|
|
47926
|
+
const z = A.clone().normalize(), D = P.clone().normalize(), j = v.clone().sub(m), T = j.dot(z), O = j.dot(D), b = m.clone().add(z.clone().multiplyScalar(T)), C = m.clone().add(D.clone().multiplyScalar(O)), M = m.clone().add(z.clone().multiplyScalar(T)).add(D.clone().multiplyScalar(O)), k = l.map((S) => S.clone());
|
|
47927
|
+
return k[d] = m, k[g] = b, k[p] = C, k[u] = M, k;
|
|
47922
47928
|
};
|
|
47923
47929
|
o === "top" ? t.setPoints([
|
|
47924
47930
|
// 2,3 不变
|
|
@@ -48086,33 +48092,33 @@ function Dx(n, t, e) {
|
|
|
48086
48092
|
let u = new y.Vector3(), g = new y.Vector3();
|
|
48087
48093
|
const p = new y.Plane(), m = () => {
|
|
48088
48094
|
d.push(u.clone()), d.length === 1 ? (a === "xoz" && p.setFromNormalAndCoplanarPoint(new y.Vector3(0, 1, 0), d[0]), a === "none" && p.setFromNormalAndCoplanarPoint(g, d[0])) : d.length === 2 ? a === "y" || a === "xoz" ? (A(), o()) : h.setPoints([d[0], d[1]]) : d.length === 3 && (A(), o());
|
|
48089
|
-
}, v = (
|
|
48095
|
+
}, v = (I) => {
|
|
48090
48096
|
var D, j;
|
|
48091
|
-
if (!(
|
|
48097
|
+
if (!(I != null && I.raycaster))
|
|
48092
48098
|
return;
|
|
48093
48099
|
const z = (D = d.at(-1)) == null ? void 0 : D.clone();
|
|
48094
48100
|
if (d.length === 0) {
|
|
48095
|
-
u =
|
|
48101
|
+
u = I.point.clone(), g = (j = I.face) == null ? void 0 : j.normal;
|
|
48096
48102
|
return;
|
|
48097
48103
|
}
|
|
48098
48104
|
if (d.length === 1 && a === "y") {
|
|
48099
|
-
const O = new y.Line3(new y.Vector3(0, 1, 0).add(d[0]), new y.Vector3(0, -1, 0).add(d[0])).closestPointToPoint(
|
|
48100
|
-
n.setPoints([d[0], O,
|
|
48105
|
+
const O = new y.Line3(new y.Vector3(0, 1, 0).add(d[0]), new y.Vector3(0, -1, 0).add(d[0])).closestPointToPoint(I.point, !1, new y.Vector3());
|
|
48106
|
+
n.setPoints([d[0], O, I.point]);
|
|
48101
48107
|
return;
|
|
48102
48108
|
}
|
|
48103
48109
|
if (d.length === 1 && a === "xoz") {
|
|
48104
|
-
const T = new y.Line3(new y.Vector3(1, 0, 0).add(d[0]), new y.Vector3(-1, 0, 0).add(d[0])), O =
|
|
48110
|
+
const T = new y.Line3(new y.Vector3(1, 0, 0).add(d[0]), new y.Vector3(-1, 0, 0).add(d[0])), O = I.raycaster.ray.intersectPlane(p, new y.Vector3()), b = T.closestPointToPoint(O, !1, new y.Vector3());
|
|
48105
48111
|
n.setPoints([d[0], b, O]);
|
|
48106
48112
|
return;
|
|
48107
48113
|
}
|
|
48108
48114
|
if (d.length === 1 && a === "none") {
|
|
48109
|
-
p ? (u =
|
|
48115
|
+
p ? (u = I.raycaster.ray.intersectPlane(p, new y.Vector3()), c.setPoints([u, I.point])) : u = I.point.clone(), l.setPoints([z, u]);
|
|
48110
48116
|
return;
|
|
48111
48117
|
}
|
|
48112
48118
|
if (d.length === 2 && a === "none") {
|
|
48113
48119
|
r.remove(l);
|
|
48114
|
-
const T =
|
|
48115
|
-
u = new y.Vector3().addVectors(b,
|
|
48120
|
+
const T = I.raycaster.ray.intersectPlane(p, new y.Vector3()), O = d[0].distanceTo(d[1]) / 2, b = new y.Vector3().lerpVectors(d[0], d[1], 0.5), C = new y.Vector3().subVectors(T, b).normalize();
|
|
48121
|
+
u = new y.Vector3().addVectors(b, C.multiplyScalar(O));
|
|
48116
48122
|
const M = [d[0], u, d[1]], k = vA(M, tt.modules.five.camera.position);
|
|
48117
48123
|
n.setPoints(k);
|
|
48118
48124
|
return;
|
|
@@ -48138,31 +48144,31 @@ function Tx(n, t, e) {
|
|
|
48138
48144
|
t.planeMode = "onlyPlane", a === "y" && (t.adhereLine = [new y.Line3(d[0], new y.Vector3(0, 1, 0).add(d[0]))]), a === "xoz" && (p.setFromNormalAndCoplanarPoint(new y.Vector3(0, 1, 0), d[0]), t.plane = p), a === "none" && (p.setFromNormalAndCoplanarPoint(g, d[0]), t.plane = p);
|
|
48139
48145
|
else if (d.length === 2) {
|
|
48140
48146
|
t.planeMode = "vertical", a === "y" && (t.adhereLine = []);
|
|
48141
|
-
let
|
|
48142
|
-
d[0].x === d[1].x && d[0].z === d[1].z && (
|
|
48147
|
+
let I = !1;
|
|
48148
|
+
d[0].x === d[1].x && d[0].z === d[1].z && (I = !0), a === "y" && !I && (p.setFromCoplanarPoints(d[0], d[1], new y.Vector3(0, 1, 0).add(d[0])), t.plane = p), h.setPoints([d[0], d[1]]);
|
|
48143
48149
|
} else
|
|
48144
48150
|
d.length === 3 && (A(), o());
|
|
48145
|
-
}, v = (
|
|
48151
|
+
}, v = (I) => {
|
|
48146
48152
|
var D, j, T, O;
|
|
48147
|
-
if (!
|
|
48153
|
+
if (!I || !(I != null && I.raycaster))
|
|
48148
48154
|
return;
|
|
48149
48155
|
const z = (D = d.at(-1)) == null ? void 0 : D.clone();
|
|
48150
48156
|
if (d.length === 0) {
|
|
48151
|
-
u =
|
|
48157
|
+
u = I.point.clone(), g = (j = I.face) == null ? void 0 : j.normal;
|
|
48152
48158
|
return;
|
|
48153
48159
|
}
|
|
48154
48160
|
if (d.length === 1) {
|
|
48155
|
-
u =
|
|
48161
|
+
u = I.point, c.setPoints([(T = I.originalPoint) != null ? T : I.point, I.point]), l.setPoints([z, u]);
|
|
48156
48162
|
return;
|
|
48157
48163
|
}
|
|
48158
48164
|
if (d.length === 2) {
|
|
48159
48165
|
if (!t.plane) {
|
|
48160
|
-
const S = mi([d[0], d[1],
|
|
48166
|
+
const S = mi([d[0], d[1], I.point]);
|
|
48161
48167
|
p.setFromNormalAndCoplanarPoint(S, d[0]);
|
|
48162
48168
|
}
|
|
48163
|
-
c.setPoints([(O =
|
|
48169
|
+
c.setPoints([(O = I.originalPoint) != null ? O : I.point, I.point]);
|
|
48164
48170
|
const b = new y.Vector3().crossVectors(d[0].clone().sub(d[1]), p.normal).normalize();
|
|
48165
|
-
u = new y.Line3(d[1].clone().add(b), d[1].clone().sub(b)).closestPointToPoint(
|
|
48171
|
+
u = new y.Line3(d[1].clone().add(b), d[1].clone().sub(b)).closestPointToPoint(I.point, !1, new y.Vector3());
|
|
48166
48172
|
const M = [d[0], d[1], u], k = vA(M, tt.modules.five.camera.position);
|
|
48167
48173
|
n.setPoints(k);
|
|
48168
48174
|
return;
|
|
@@ -48770,16 +48776,16 @@ function EA(n, t, e) {
|
|
|
48770
48776
|
const h = [];
|
|
48771
48777
|
let d, u, g;
|
|
48772
48778
|
const p = [], m = () => h.length > 0, v = () => p.length > 0, A = () => {
|
|
48773
|
-
m() && (p.push(h.pop()), n.setPoints(h),
|
|
48779
|
+
m() && (p.push(h.pop()), n.setPoints(h), I(g), t.pointSelectorHelper.magnifier.render());
|
|
48774
48780
|
}, P = () => {
|
|
48775
|
-
v() && (h.push(p.pop()), n.setPoints(h),
|
|
48781
|
+
v() && (h.push(p.pop()), n.setPoints(h), I(g), t.pointSelectorHelper.magnifier.render());
|
|
48776
48782
|
}, E = (T) => {
|
|
48777
48783
|
if (!T)
|
|
48778
48784
|
return;
|
|
48779
48785
|
p.length = 0;
|
|
48780
48786
|
const O = h.length === 0 ? T.point : d.clone();
|
|
48781
48787
|
h.push(O), n.setPoints(h), h.length === 2 && (z(), o());
|
|
48782
|
-
},
|
|
48788
|
+
}, I = (T) => {
|
|
48783
48789
|
const O = () => {
|
|
48784
48790
|
l.setPoints([]), c.setPoints([]), t.pointSelectorHelper.magnifier.render();
|
|
48785
48791
|
};
|
|
@@ -48793,11 +48799,11 @@ function EA(n, t, e) {
|
|
|
48793
48799
|
clampToLine: !1
|
|
48794
48800
|
}), c.setPoints([])) : (d = new y.Line3(h[0].clone(), new y.Vector3(0, 1, 0).add(h[0])).closestPointToPoint(T.point, !1, new y.Vector3()), c.setPoints([d, T.point])), l.setPoints([b, d]));
|
|
48795
48801
|
}, z = () => {
|
|
48796
|
-
t.off("select", E), t.off("intersectionUpdate",
|
|
48802
|
+
t.off("select", E), t.off("intersectionUpdate", I), t.off("disable", D), t.plane = null, t.disable(), i == null || i.remove(l, c);
|
|
48797
48803
|
}, D = () => {
|
|
48798
48804
|
z(), h.length !== 2 && (i == null || i.remove(n)), r(new Error("Cancelled"));
|
|
48799
48805
|
};
|
|
48800
|
-
return t.on("select", E), t.on("intersectionUpdate",
|
|
48806
|
+
return t.on("select", E), t.on("intersectionUpdate", I), t.on("disable", D), {
|
|
48801
48807
|
finished: s,
|
|
48802
48808
|
canUndo: m,
|
|
48803
48809
|
canRedo: v,
|
|
@@ -49675,7 +49681,7 @@ function Xx(n, t, e) {
|
|
|
49675
49681
|
} } = t, { handleMouseLeave: P = () => {
|
|
49676
49682
|
} } = t, { handleTagPointClick: E = () => {
|
|
49677
49683
|
} } = t;
|
|
49678
|
-
const
|
|
49684
|
+
const I = () => !0, z = (N = (L = h.config.popoverConfig) == null ? void 0 : L.beforeOpen) != null ? N : I;
|
|
49679
49685
|
let { audioInstance: D = null } = t;
|
|
49680
49686
|
const j = {
|
|
49681
49687
|
audioRef: (B) => {
|
|
@@ -49695,7 +49701,7 @@ function Xx(n, t, e) {
|
|
|
49695
49701
|
v = B, e(0, v);
|
|
49696
49702
|
});
|
|
49697
49703
|
}
|
|
49698
|
-
function
|
|
49704
|
+
function C(B) {
|
|
49699
49705
|
qe[B ? "unshift" : "push"](() => {
|
|
49700
49706
|
v = B, e(0, v);
|
|
49701
49707
|
});
|
|
@@ -49753,7 +49759,7 @@ function Xx(n, t, e) {
|
|
|
49753
49759
|
T,
|
|
49754
49760
|
O,
|
|
49755
49761
|
b,
|
|
49756
|
-
|
|
49762
|
+
C,
|
|
49757
49763
|
M,
|
|
49758
49764
|
k,
|
|
49759
49765
|
S
|
|
@@ -50707,24 +50713,24 @@ function MS(n) {
|
|
|
50707
50713
|
n[13].length > 0) && Bm(n)
|
|
50708
50714
|
);
|
|
50709
50715
|
const A = [CS, PS, wS], P = [];
|
|
50710
|
-
function E(
|
|
50716
|
+
function E(C, M) {
|
|
50711
50717
|
var k;
|
|
50712
50718
|
return (
|
|
50713
50719
|
/*isExternalVideo*/
|
|
50714
|
-
|
|
50715
|
-
|
|
50720
|
+
C[6] && /*formattedVideoUrl*/
|
|
50721
|
+
C[17] ? 0 : (
|
|
50716
50722
|
/*mediaUrl*/
|
|
50717
|
-
|
|
50723
|
+
C[19] ? 1 : (
|
|
50718
50724
|
/*isVideoMedia*/
|
|
50719
|
-
|
|
50720
|
-
|
|
50721
|
-
((k =
|
|
50725
|
+
C[7] && /*tag*/
|
|
50726
|
+
C[2].data.mediaData && /*tag*/
|
|
50727
|
+
((k = C[2].data.mediaData[0]) != null && k.url) ? 2 : -1
|
|
50722
50728
|
)
|
|
50723
50729
|
)
|
|
50724
50730
|
);
|
|
50725
50731
|
}
|
|
50726
50732
|
~(o = E(n)) && (r = P[o] = A[o](n));
|
|
50727
|
-
let
|
|
50733
|
+
let I = (
|
|
50728
50734
|
/*finalDescription*/
|
|
50729
50735
|
n[20] && Wm(n)
|
|
50730
50736
|
), z = (
|
|
@@ -50755,78 +50761,78 @@ function MS(n) {
|
|
|
50755
50761
|
);
|
|
50756
50762
|
return {
|
|
50757
50763
|
c() {
|
|
50758
|
-
t = W("div"), e = W("div"), m && m.c(), i = ae(), v && v.c(), s = ae(), r && r.c(), a = ae(),
|
|
50764
|
+
t = W("div"), e = W("div"), m && m.c(), i = ae(), v && v.c(), s = ae(), r && r.c(), a = ae(), I && I.c(), l = ae(), z && z.c(), c = ae(), D && D.c(), h = ae(), T && T.c(), d = ae(), b && b.c(), w(e, "class", u = "tag-popup-content " + /*effectiveTheme*/
|
|
50759
50765
|
n[21] + " svelte-817q8q"), w(t, "class", g = "tag-popup tag-popup-" + /*placement*/
|
|
50760
50766
|
n[0] + " svelte-817q8q");
|
|
50761
50767
|
},
|
|
50762
|
-
m(
|
|
50763
|
-
X(
|
|
50768
|
+
m(C, M) {
|
|
50769
|
+
X(C, t, M), _(t, e), m && m.m(e, null), _(e, i), v && v.m(e, null), _(e, s), ~o && P[o].m(e, null), _(e, a), I && I.m(e, null), _(e, l), z && z.m(e, null), _(e, c), D && D.m(e, null), _(e, h), T && T.m(e, null), _(e, d), b && b.m(e, null), p = !0;
|
|
50764
50770
|
},
|
|
50765
|
-
p(
|
|
50771
|
+
p(C, M) {
|
|
50766
50772
|
/*finalTitle*/
|
|
50767
|
-
|
|
50768
|
-
|
|
50769
|
-
(
|
|
50770
|
-
|
|
50773
|
+
C[5] ? m ? m.p(C, M) : (m = _m(C), m.c(), m.m(e, i)) : m && (m.d(1), m = null), /*isMarketingTag*/
|
|
50774
|
+
C[3] && /*primaryTags*/
|
|
50775
|
+
(C[4].length > 0 || /*secondaryTags*/
|
|
50776
|
+
C[13].length > 0) ? v ? v.p(C, M) : (v = Bm(C), v.c(), v.m(e, s)) : v && (v.d(1), v = null);
|
|
50771
50777
|
let k = o;
|
|
50772
|
-
o = E(
|
|
50778
|
+
o = E(C), o === k ? ~o && P[o].p(C, M) : (r && (ke(), Y(P[k], 1, 1, () => {
|
|
50773
50779
|
P[k] = null;
|
|
50774
|
-
}), xe()), ~o ? (r = P[o], r ? r.p(
|
|
50775
|
-
|
|
50776
|
-
|
|
50777
|
-
256 && H(z, 1)) : (z = Um(
|
|
50780
|
+
}), xe()), ~o ? (r = P[o], r ? r.p(C, M) : (r = P[o] = A[o](C), r.c()), H(r, 1), r.m(e, a)) : r = null), /*finalDescription*/
|
|
50781
|
+
C[20] ? I ? I.p(C, M) : (I = Wm(C), I.c(), I.m(e, l)) : I && (I.d(1), I = null), /*isAudioTag*/
|
|
50782
|
+
C[8] ? z ? (z.p(C, M), M[0] & /*isAudioTag*/
|
|
50783
|
+
256 && H(z, 1)) : (z = Um(C), z.c(), H(z, 1), z.m(e, c)) : z && (ke(), Y(z, 1, 1, () => {
|
|
50778
50784
|
z = null;
|
|
50779
50785
|
}), xe()), /*marketingPrice*/
|
|
50780
|
-
|
|
50786
|
+
C[12] ? D ? D.p(C, M) : (D = Qm(C), D.c(), D.m(e, h)) : D && (D.d(1), D = null), T && T.p && (!p || M[1] & /*$$scope*/
|
|
50781
50787
|
64) && fs(
|
|
50782
50788
|
T,
|
|
50783
50789
|
j,
|
|
50784
|
-
|
|
50790
|
+
C,
|
|
50785
50791
|
/*$$scope*/
|
|
50786
|
-
|
|
50792
|
+
C[37],
|
|
50787
50793
|
p ? us(
|
|
50788
50794
|
j,
|
|
50789
50795
|
/*$$scope*/
|
|
50790
|
-
|
|
50796
|
+
C[37],
|
|
50791
50797
|
M,
|
|
50792
50798
|
yS
|
|
50793
50799
|
) : gs(
|
|
50794
50800
|
/*$$scope*/
|
|
50795
|
-
|
|
50801
|
+
C[37]
|
|
50796
50802
|
),
|
|
50797
50803
|
Om
|
|
50798
50804
|
), b && b.p && (!p || M[1] & /*$$scope*/
|
|
50799
50805
|
64) && fs(
|
|
50800
50806
|
b,
|
|
50801
50807
|
O,
|
|
50802
|
-
|
|
50808
|
+
C,
|
|
50803
50809
|
/*$$scope*/
|
|
50804
|
-
|
|
50810
|
+
C[37],
|
|
50805
50811
|
p ? us(
|
|
50806
50812
|
O,
|
|
50807
50813
|
/*$$scope*/
|
|
50808
|
-
|
|
50814
|
+
C[37],
|
|
50809
50815
|
M,
|
|
50810
50816
|
bS
|
|
50811
50817
|
) : gs(
|
|
50812
50818
|
/*$$scope*/
|
|
50813
|
-
|
|
50819
|
+
C[37]
|
|
50814
50820
|
),
|
|
50815
50821
|
zm
|
|
50816
50822
|
), (!p || M[0] & /*effectiveTheme*/
|
|
50817
50823
|
2097152 && u !== (u = "tag-popup-content " + /*effectiveTheme*/
|
|
50818
|
-
|
|
50824
|
+
C[21] + " svelte-817q8q")) && w(e, "class", u), (!p || M[0] & /*placement*/
|
|
50819
50825
|
1 && g !== (g = "tag-popup tag-popup-" + /*placement*/
|
|
50820
|
-
|
|
50826
|
+
C[0] + " svelte-817q8q")) && w(t, "class", g);
|
|
50821
50827
|
},
|
|
50822
|
-
i(
|
|
50823
|
-
p || (H(r), H(z), H(T,
|
|
50828
|
+
i(C) {
|
|
50829
|
+
p || (H(r), H(z), H(T, C), H(b, C), p = !0);
|
|
50824
50830
|
},
|
|
50825
|
-
o(
|
|
50826
|
-
Y(r), Y(z), Y(T,
|
|
50831
|
+
o(C) {
|
|
50832
|
+
Y(r), Y(z), Y(T, C), Y(b, C), p = !1;
|
|
50827
50833
|
},
|
|
50828
|
-
d(
|
|
50829
|
-
|
|
50834
|
+
d(C) {
|
|
50835
|
+
C && Q(t), m && m.d(), v && v.d(), ~o && P[o].d(), I && I.d(), z && z.d(), D && D.d(), T && T.d(C), b && b.d(C);
|
|
50830
50836
|
}
|
|
50831
50837
|
};
|
|
50832
50838
|
}
|
|
@@ -50835,7 +50841,7 @@ function kS(n) {
|
|
|
50835
50841
|
return `${t.toString().padStart(2, "0")}:${e.toString().padStart(2, "0")}`;
|
|
50836
50842
|
}
|
|
50837
50843
|
function xS(n, t, e) {
|
|
50838
|
-
let i, s, o, r, a, l, c, h, d, u, g, p, m, v, A, P, E,
|
|
50844
|
+
let i, s, o, r, a, l, c, h, d, u, g, p, m, v, A, P, E, I, z, D, j, T, O, b, C, M, { $$slots: k = {}, $$scope: S } = t, { tag: L } = t, { config: N = {} } = t, { theme: B = void 0 } = t, { placement: Z = "right-top" } = t, { audioInstance: ie = null } = t, { audioPlaying: K = !1 } = t, { audioCurrentTime: oe = 0 } = t, { audioDuration: $ = 0 } = t, ue = 0, Le = "00:00", re = null, Me = 0, de = 0;
|
|
50839
50845
|
function le() {
|
|
50840
50846
|
return $ > 0 ? oe / $ * 100 : 0;
|
|
50841
50847
|
}
|
|
@@ -50918,13 +50924,13 @@ function xS(n, t, e) {
|
|
|
50918
50924
|
68 && e(17, P = A && L.data.mediaData && ((me = L.data.mediaData[0]) != null && me.url) ? u8(L.data.mediaData[0].url, { autoplay: 0 }) : ""), n.$$.dirty[0] & /*finalTitle*/
|
|
50919
50925
|
32 | n.$$.dirty[1] & /*isYouTubeVideo, isVimeoVideo*/
|
|
50920
50926
|
3 && e(16, E = m ? "YouTube video player" : v ? "Vimeo video player" : c), n.$$.dirty[0] & /*tag*/
|
|
50921
|
-
4 && e(15,
|
|
50927
|
+
4 && e(15, I = ((Ie = L.data.mediaData) == null ? void 0 : Ie.length) || 0), n.$$.dirty[0] & /*isMarketingTag, tag*/
|
|
50922
50928
|
12 && e(30, D = i ? L.data.brandTags || [] : []), n.$$.dirty[0] & /*isMarketingTag, tag*/
|
|
50923
50929
|
12 && e(29, j = i ? L.data.tags || [] : []), n.$$.dirty[0] & /*marketingBrandTags*/
|
|
50924
50930
|
1073741824 && e(4, T = D.filter(Boolean).slice(0, 2)), n.$$.dirty[0] & /*primaryTags*/
|
|
50925
50931
|
16 && e(28, O = Math.max(0, 2 - T.length)), n.$$.dirty[0] & /*remainingCount, marketingTags*/
|
|
50926
50932
|
805306368 && e(13, b = O > 0 ? j.filter(Boolean).slice(0, O) : []), n.$$.dirty[0] & /*isMarketingTag, tag*/
|
|
50927
|
-
12 && e(12,
|
|
50933
|
+
12 && e(12, C = i && ((Oe = L.data.price) == null ? void 0 : Oe.value) || ""), n.$$.dirty[0] & /*isMarketingTag, tag*/
|
|
50928
50934
|
12 && e(11, M = i && ((Xe = L.data.price) == null ? void 0 : Xe.unit) || "");
|
|
50929
50935
|
}, e(14, z = 1), [
|
|
50930
50936
|
Z,
|
|
@@ -50939,10 +50945,10 @@ function xS(n, t, e) {
|
|
|
50939
50945
|
ue,
|
|
50940
50946
|
Le,
|
|
50941
50947
|
M,
|
|
50942
|
-
|
|
50948
|
+
C,
|
|
50943
50949
|
b,
|
|
50944
50950
|
z,
|
|
50945
|
-
|
|
50951
|
+
I,
|
|
50946
50952
|
E,
|
|
50947
50953
|
P,
|
|
50948
50954
|
p,
|
|
@@ -51950,9 +51956,9 @@ function US(n) {
|
|
|
51950
51956
|
function QS(n, t, e) {
|
|
51951
51957
|
let i, s, o, r, a, l, c, h, d, u;
|
|
51952
51958
|
const g = an("hooks");
|
|
51953
|
-
let { tag: p } = t, { config: m = {} } = t, { triggerElement: v } = t, { wrapperElement: A = document.body } = t, { popoverContainer: P = null } = t, { theme: E = void 0 } = t, { visible:
|
|
51959
|
+
let { tag: p } = t, { config: m = {} } = t, { triggerElement: v } = t, { wrapperElement: A = document.body } = t, { popoverContainer: P = null } = t, { theme: E = void 0 } = t, { visible: I = !0 } = t, { closePopover: z = void 0 } = t, { audioInstance: D = null } = t, { audioPlaying: j = !1 } = t, { audioCurrentTime: T = 0 } = t, { audioDuration: O = 0 } = t;
|
|
51954
51960
|
const b = Rn();
|
|
51955
|
-
let
|
|
51961
|
+
let C, M = { width: 0, height: 0 }, k = null, S = s;
|
|
51956
51962
|
function L(ee, { duration: Te = 400, easing: Re = Zr, x: Ae = 0, y: Ve = 0 }) {
|
|
51957
51963
|
return {
|
|
51958
51964
|
duration: Te,
|
|
@@ -52049,7 +52055,7 @@ function QS(n, t, e) {
|
|
|
52049
52055
|
}
|
|
52050
52056
|
function le(ee) {
|
|
52051
52057
|
qe[ee ? "unshift" : "push"](() => {
|
|
52052
|
-
|
|
52058
|
+
C = ee, e(9, C);
|
|
52053
52059
|
});
|
|
52054
52060
|
}
|
|
52055
52061
|
function Se(ee) {
|
|
@@ -52058,7 +52064,7 @@ function QS(n, t, e) {
|
|
|
52058
52064
|
});
|
|
52059
52065
|
}
|
|
52060
52066
|
return n.$$set = (ee) => {
|
|
52061
|
-
"tag" in ee && e(0, p = ee.tag), "config" in ee && e(1, m = ee.config), "triggerElement" in ee && e(26, v = ee.triggerElement), "wrapperElement" in ee && e(25, A = ee.wrapperElement), "popoverContainer" in ee && e(27, P = ee.popoverContainer), "theme" in ee && e(2, E = ee.theme), "visible" in ee && e(3,
|
|
52067
|
+
"tag" in ee && e(0, p = ee.tag), "config" in ee && e(1, m = ee.config), "triggerElement" in ee && e(26, v = ee.triggerElement), "wrapperElement" in ee && e(25, A = ee.wrapperElement), "popoverContainer" in ee && e(27, P = ee.popoverContainer), "theme" in ee && e(2, E = ee.theme), "visible" in ee && e(3, I = ee.visible), "closePopover" in ee && e(28, z = ee.closePopover), "audioInstance" in ee && e(4, D = ee.audioInstance), "audioPlaying" in ee && e(5, j = ee.audioPlaying), "audioCurrentTime" in ee && e(6, T = ee.audioCurrentTime), "audioDuration" in ee && e(7, O = ee.audioDuration);
|
|
52062
52068
|
}, n.$$.update = () => {
|
|
52063
52069
|
if (n.$$.dirty[0] & /*theme, tag*/
|
|
52064
52070
|
5 && e(18, i = (() => Ne(E) ? E : Ne(p.data.theme) && ["light", "dark"].includes(p.data.theme) ? p.data.theme : p.contentType === "Marketing" ? "light" : "dark")()), n.$$.dirty[0] & /*config*/
|
|
@@ -52102,13 +52108,13 @@ function QS(n, t, e) {
|
|
|
52102
52108
|
p,
|
|
52103
52109
|
m,
|
|
52104
52110
|
E,
|
|
52105
|
-
|
|
52111
|
+
I,
|
|
52106
52112
|
D,
|
|
52107
52113
|
j,
|
|
52108
52114
|
T,
|
|
52109
52115
|
O,
|
|
52110
52116
|
S,
|
|
52111
|
-
|
|
52117
|
+
C,
|
|
52112
52118
|
$,
|
|
52113
52119
|
u,
|
|
52114
52120
|
d,
|
|
@@ -52233,9 +52239,9 @@ function Km(n) {
|
|
|
52233
52239
|
e = g(A), e === E ? u[e].p(A, P) : (ke(), Y(u[E], 1, 1, () => {
|
|
52234
52240
|
u[E] = null;
|
|
52235
52241
|
}), xe(), i = u[e], i ? i.p(A, P) : (i = u[e] = d[e](A), i.c()), H(i, 1), i.m(t, s));
|
|
52236
|
-
let
|
|
52237
|
-
o = v(A), o ===
|
|
52238
|
-
m[
|
|
52242
|
+
let I = o;
|
|
52243
|
+
o = v(A), o === I ? m[o].p(A, P) : (ke(), Y(m[I], 1, 1, () => {
|
|
52244
|
+
m[I] = null;
|
|
52239
52245
|
}), xe(), r = m[o], r ? r.p(A, P) : (r = m[o] = p[o](A), r.c()), H(r, 1), r.m(t, null)), (!h || P[0] & /*id*/
|
|
52240
52246
|
8388608) && w(
|
|
52241
52247
|
t,
|
|
@@ -52628,9 +52634,9 @@ function $S(n) {
|
|
|
52628
52634
|
};
|
|
52629
52635
|
}
|
|
52630
52636
|
function eD(n, t, e) {
|
|
52631
|
-
let i, s, o, r, a, l, c, h, d, u, g, { tag: p } = t, { mediaStore: m } = t, { rendererMap: v = /* @__PURE__ */ new Map() } = t, { contentTypeMap: A = /* @__PURE__ */ new Map() } = t, { state: P } = t, { temporaryState: E } = t, { wrapperElement:
|
|
52637
|
+
let i, s, o, r, a, l, c, h, d, u, g, { tag: p } = t, { mediaStore: m } = t, { rendererMap: v = /* @__PURE__ */ new Map() } = t, { contentTypeMap: A = /* @__PURE__ */ new Map() } = t, { state: P } = t, { temporaryState: E } = t, { wrapperElement: I = null } = t, { popoverContainer: z = null } = t;
|
|
52632
52638
|
const D = an("hooks");
|
|
52633
|
-
let j = !1, T, O, b = null,
|
|
52639
|
+
let j = !1, T, O, b = null, C = !1, M = !1, k = null, S = null, L = !1, N = 0, B = 0;
|
|
52634
52640
|
const Z = {
|
|
52635
52641
|
audioInstanceReady: (ee) => {
|
|
52636
52642
|
e(14, S = ee.detail), e(15, L = !S.paused);
|
|
@@ -52657,14 +52663,14 @@ function eD(n, t, e) {
|
|
|
52657
52663
|
O = setTimeout(
|
|
52658
52664
|
() => {
|
|
52659
52665
|
var Te;
|
|
52660
|
-
!
|
|
52666
|
+
!C && !M && !((Te = p.config.popoverConfig) != null && Te.debug) && (ie = !1, e(11, j = !1));
|
|
52661
52667
|
},
|
|
52662
52668
|
300
|
|
52663
52669
|
);
|
|
52664
52670
|
}, oe = () => {
|
|
52665
|
-
|
|
52671
|
+
C = !0, O && clearTimeout(O);
|
|
52666
52672
|
}, $ = () => {
|
|
52667
|
-
|
|
52673
|
+
C = !1, K(!1);
|
|
52668
52674
|
}, ue = (ee) => {
|
|
52669
52675
|
var Te, Re, Ae, Ve, me, Ie;
|
|
52670
52676
|
if (M = !0, p.isPopoverConfigEnabled() && p.isHoverEnabled() && ((Re = (Te = p.currentConfig) == null ? void 0 : Te.popoverConfig) == null ? void 0 : Re.trigger) === "hover") {
|
|
@@ -52705,7 +52711,7 @@ function eD(n, t, e) {
|
|
|
52705
52711
|
});
|
|
52706
52712
|
}
|
|
52707
52713
|
return n.$$set = (ee) => {
|
|
52708
|
-
"tag" in ee && e(0, p = ee.tag), "mediaStore" in ee && e(1, m = ee.mediaStore), "rendererMap" in ee && e(2, v = ee.rendererMap), "contentTypeMap" in ee && e(3, A = ee.contentTypeMap), "state" in ee && e(4, P = ee.state), "temporaryState" in ee && e(5, E = ee.temporaryState), "wrapperElement" in ee && e(6,
|
|
52714
|
+
"tag" in ee && e(0, p = ee.tag), "mediaStore" in ee && e(1, m = ee.mediaStore), "rendererMap" in ee && e(2, v = ee.rendererMap), "contentTypeMap" in ee && e(3, A = ee.contentTypeMap), "state" in ee && e(4, P = ee.state), "temporaryState" in ee && e(5, E = ee.temporaryState), "wrapperElement" in ee && e(6, I = ee.wrapperElement), "popoverContainer" in ee && e(7, z = ee.popoverContainer);
|
|
52709
52715
|
}, n.$$.update = () => {
|
|
52710
52716
|
var ee, Te, Re, Ae;
|
|
52711
52717
|
n.$$.dirty[0] & /*tag, rendererMap*/
|
|
@@ -52733,7 +52739,7 @@ function eD(n, t, e) {
|
|
|
52733
52739
|
A,
|
|
52734
52740
|
P,
|
|
52735
52741
|
E,
|
|
52736
|
-
|
|
52742
|
+
I,
|
|
52737
52743
|
z,
|
|
52738
52744
|
h,
|
|
52739
52745
|
a,
|
|
@@ -53768,13 +53774,13 @@ function cD(n, t, e) {
|
|
|
53768
53774
|
return n.$$set = (E) => {
|
|
53769
53775
|
"text" in E && e(0, d = E.text), "icon_url" in E && e(1, u = E.icon_url), "distance" in E && e(2, g = E.distance), "opacity" in E && e(3, p = E.opacity), "name" in E && e(4, m = E.name), "i18n" in E && e(5, v = E.i18n), "fontSize" in E && e(11, A = E.fontSize);
|
|
53770
53776
|
}, n.$$.update = () => {
|
|
53771
|
-
var E,
|
|
53777
|
+
var E, I;
|
|
53772
53778
|
n.$$.dirty & /*fontSize*/
|
|
53773
53779
|
2048 && e(13, i = wd[A]), n.$$.dirty & /*fontConfig*/
|
|
53774
53780
|
8192 && e(9, s = ut((i == null ? void 0 : i.name) || 12)), n.$$.dirty & /*fontConfig*/
|
|
53775
53781
|
8192 && e(15, o = ((E = i == null ? void 0 : i.padding) == null ? void 0 : E.guide) || [8, 2]), n.$$.dirty & /*padding*/
|
|
53776
53782
|
32768 && e(8, r = `${ut(o[1])} ${ut(o[0])}`), n.$$.dirty & /*fontConfig*/
|
|
53777
|
-
8192 && e(14, a = ((
|
|
53783
|
+
8192 && e(14, a = ((I = i == null ? void 0 : i.padding) == null ? void 0 : I.distance) || [4, 2]), n.$$.dirty & /*distancePadding*/
|
|
53778
53784
|
16384 && e(7, l = `${ut(a[1])} ${ut(a[0])}`), n.$$.dirty & /*fontConfig*/
|
|
53779
53785
|
8192 && e(12, c = (i == null ? void 0 : i.lineHeight) || 14), n.$$.dirty & /*lineHeight*/
|
|
53780
53786
|
4096 && e(6, h = ut(c));
|
|
@@ -55175,7 +55181,7 @@ let wD = class extends fn {
|
|
|
55175
55181
|
}
|
|
55176
55182
|
load(e, i, s = !0) {
|
|
55177
55183
|
return te(this, null, function* () {
|
|
55178
|
-
var p, m, v, A, P, E,
|
|
55184
|
+
var p, m, v, A, P, E, I;
|
|
55179
55185
|
const o = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, r = yield this.formatData(e);
|
|
55180
55186
|
this.hooks.emit("dataChange", r, o), this.data = r;
|
|
55181
55187
|
const a = r.config, l = !r.lines && r.routes, c = (p = a == null ? void 0 : a.arrowTextureUrl) != null ? p : on(this.staticPrefix, nd), h = he(F({}, a), {
|
|
@@ -55191,7 +55197,7 @@ let wD = class extends fn {
|
|
|
55191
55197
|
}), d = (P = (A = r.routes) == null ? void 0 : A.map((z) => {
|
|
55192
55198
|
var D;
|
|
55193
55199
|
return it({}, h, { id: (D = z.id) != null ? D : Dt(), pano_group: z.panoIndexList });
|
|
55194
|
-
})) != null ? P : [], u = (
|
|
55200
|
+
})) != null ? P : [], u = (I = (E = r.lines) == null ? void 0 : E.map((z) => it({}, h, z))) != null ? I : [], g = [...d, ...u];
|
|
55195
55201
|
yield Mi(this.five), this.clear(), g.forEach((z) => {
|
|
55196
55202
|
this.addGuideLineItem(this.processItemUrls(z));
|
|
55197
55203
|
}), this.updateTagsEnable(), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), i && this.setState(i, { userAction: s }), this.hooks.emit("dataLoaded", r), console.debug(`${a0} loaded`, r);
|
|
@@ -56608,7 +56614,7 @@ function UD(n) {
|
|
|
56608
56614
|
}
|
|
56609
56615
|
function QD(n, t, e) {
|
|
56610
56616
|
let i, s, o, r, a, l, c, h, d, { content: u } = t, { five: g = void 0 } = t, { visible: p = !0 } = t, { opacity: m = 1 } = t, { zIndex: v = 0 } = t, { transform: A = void 0 } = t, { onClick: P = () => {
|
|
56611
|
-
} } = t, { rendererIfNeed: E = void 0 } = t, { rendererData:
|
|
56617
|
+
} } = t, { rendererIfNeed: E = void 0 } = t, { rendererData: I = void 0 } = t, { fontSize: z } = t, D, j, T, O;
|
|
56612
56618
|
const b = (S) => {
|
|
56613
56619
|
if (g.state.mode !== "Panorama") {
|
|
56614
56620
|
const B = -(10 + 54 * (1 - fi(S.latitude) / 90)), Z = B + h, ie = Z >= 0 ? 0 : -Z / -d;
|
|
@@ -56616,11 +56622,11 @@ function QD(n, t, e) {
|
|
|
56616
56622
|
}
|
|
56617
56623
|
};
|
|
56618
56624
|
Tt(() => {
|
|
56619
|
-
D && typeof E == "function" && (O = E(D,
|
|
56625
|
+
D && typeof E == "function" && (O = E(D, I)), g && (b(g.camera.pose), g.on("cameraUpdate", b));
|
|
56620
56626
|
}), $t(() => {
|
|
56621
56627
|
O == null || O(), g == null || g.off("cameraUpdate", b);
|
|
56622
56628
|
});
|
|
56623
|
-
function
|
|
56629
|
+
function C(S) {
|
|
56624
56630
|
qe[S ? "unshift" : "push"](() => {
|
|
56625
56631
|
T = S, e(9, T);
|
|
56626
56632
|
});
|
|
@@ -56636,7 +56642,7 @@ function QD(n, t, e) {
|
|
|
56636
56642
|
});
|
|
56637
56643
|
}
|
|
56638
56644
|
return n.$$set = (S) => {
|
|
56639
|
-
"content" in S && e(0, u = S.content), "five" in S && e(15, g = S.five), "visible" in S && e(16, p = S.visible), "opacity" in S && e(1, m = S.opacity), "zIndex" in S && e(2, v = S.zIndex), "transform" in S && e(3, A = S.transform), "onClick" in S && e(4, P = S.onClick), "rendererIfNeed" in S && e(5, E = S.rendererIfNeed), "rendererData" in S && e(17,
|
|
56645
|
+
"content" in S && e(0, u = S.content), "five" in S && e(15, g = S.five), "visible" in S && e(16, p = S.visible), "opacity" in S && e(1, m = S.opacity), "zIndex" in S && e(2, v = S.zIndex), "transform" in S && e(3, A = S.transform), "onClick" in S && e(4, P = S.onClick), "rendererIfNeed" in S && e(5, E = S.rendererIfNeed), "rendererData" in S && e(17, I = S.rendererData), "fontSize" in S && e(18, z = S.fontSize);
|
|
56640
56646
|
}, n.$$.update = () => {
|
|
56641
56647
|
var S;
|
|
56642
56648
|
n.$$.dirty & /*visible*/
|
|
@@ -56667,12 +56673,12 @@ function QD(n, t, e) {
|
|
|
56667
56673
|
i,
|
|
56668
56674
|
g,
|
|
56669
56675
|
p,
|
|
56670
|
-
|
|
56676
|
+
I,
|
|
56671
56677
|
z,
|
|
56672
56678
|
h,
|
|
56673
56679
|
r,
|
|
56674
56680
|
l,
|
|
56675
|
-
|
|
56681
|
+
C,
|
|
56676
56682
|
M,
|
|
56677
56683
|
k
|
|
56678
56684
|
];
|