@realsee/dnalogel 3.73.4 → 3.73.5
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/CHANGELOG.md +10 -4
- package/dist/index.cjs.js +21 -21
- package/dist/index.js +252 -244
- package/dist/index.umd.js +20 -20
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +41 -33
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ var _A = Object.defineProperty, BA = Object.defineProperties;
|
|
|
2
2
|
var VA = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var ka = Object.getOwnPropertySymbols;
|
|
4
4
|
var uu = Object.prototype.hasOwnProperty, fu = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var Jn = Math.pow, rc = (n, t, e) => t in n ? _A(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, F = (n, t) => {
|
|
6
6
|
for (var e in t || (t = {}))
|
|
7
7
|
uu.call(t, e) && rc(n, e, t[e]);
|
|
8
8
|
if (ka)
|
|
@@ -10,7 +10,7 @@ var qn = Math.pow, rc = (n, t, e) => t in n ? _A(n, t, { enumerable: !0, configu
|
|
|
10
10
|
fu.call(t, e) && rc(n, e, t[e]);
|
|
11
11
|
return n;
|
|
12
12
|
}, he = (n, t) => BA(n, VA(t));
|
|
13
|
-
var
|
|
13
|
+
var Kn = (n, t) => {
|
|
14
14
|
var e = {};
|
|
15
15
|
for (var i in n)
|
|
16
16
|
uu.call(n, i) && t.indexOf(i) < 0 && (e[i] = n[i]);
|
|
@@ -38,12 +38,12 @@ var te = (n, t, e) => new Promise((i, s) => {
|
|
|
38
38
|
});
|
|
39
39
|
import { InternalWebGLRenderer as FA, Camera as HA, loadAt3d as NA, Five as Gt, Subscribe as tr, AnimationFrameLoop as GA } from "@realsee/five";
|
|
40
40
|
import * as y from "three";
|
|
41
|
-
import { Vector3 as ve, Vector2 as Ut, Object3D as Do, Matrix4 as ot, LineSegments as WA, ShaderMaterial as Dl, Group as Sn, Raycaster as ir, MeshBasicMaterial as Wr, Vector4 as Ts, Curve as I0, Loader as gu, LoaderUtils as ac, FileLoader as UA, TextureLoader as Rh, RepeatWrapping as pu, ClampToEdgeWrapping as mu, Texture as vu, MeshPhongMaterial as lc, MeshLambertMaterial as QA, Color as Rt, sRGBEncoding as Dr, EquirectangularReflectionMapping as XA, Bone as Au, PropertyBinding as xa, OrthographicCamera as YA, PerspectiveCamera as ZA, PointLight as bu, MathUtils as $i, SpotLight as qA, DirectionalLight as JA, SkinnedMesh as KA, Mesh as To, LineBasicMaterial as $A, Line as eb, Skeleton as tb, AmbientLight as ib, BufferGeometry as Sa, Float32BufferAttribute as go, Uint16BufferAttribute as nb, Matrix3 as sb, BufferAttribute as ob, AnimationClip as rb, Quaternion as Ls, Euler as
|
|
41
|
+
import { Vector3 as ve, Vector2 as Ut, Object3D as Do, Matrix4 as ot, LineSegments as WA, ShaderMaterial as Dl, Group as Sn, Raycaster as ir, MeshBasicMaterial as Wr, Vector4 as Ts, Curve as I0, Loader as gu, LoaderUtils as ac, FileLoader as UA, TextureLoader as Rh, RepeatWrapping as pu, ClampToEdgeWrapping as mu, Texture as vu, MeshPhongMaterial as lc, MeshLambertMaterial as QA, Color as Rt, sRGBEncoding as Dr, EquirectangularReflectionMapping as XA, Bone as Au, PropertyBinding as xa, OrthographicCamera as YA, PerspectiveCamera as ZA, PointLight as bu, MathUtils as $i, SpotLight as qA, DirectionalLight as JA, SkinnedMesh as KA, Mesh as To, LineBasicMaterial as $A, Line as eb, Skeleton as tb, AmbientLight as ib, BufferGeometry as Sa, Float32BufferAttribute as go, Uint16BufferAttribute as nb, Matrix3 as sb, BufferAttribute as ob, AnimationClip as rb, Quaternion as Ls, Euler as ns, VectorKeyframeTrack as ab, QuaternionKeyframeTrack as lb, NumberKeyframeTrack as cb, CanvasTexture as hb, AnimationMixer as db, PlaneGeometry as ub, LinearFilter as Yc, CurvePath as fb, LineCurve3 as gb, TubeGeometry as pb, SphereGeometry as mb, DoubleSide as E0, RingGeometry as vb, VideoTexture as Ab, SphereBufferGeometry as bb, Box3 as yb } from "three";
|
|
42
42
|
import { LineGeometry as wb, LineMaterial as Pb, THREE_Line2 as Cb, Line as Ib } from "@realsee/five/line";
|
|
43
43
|
import { GLTFLoader as Eb } from "@realsee/five/gltf-loader";
|
|
44
44
|
function Mb() {
|
|
45
45
|
console.debug(
|
|
46
|
-
"%c %c@realsee/dnalogel %cv3.73.
|
|
46
|
+
"%c %c@realsee/dnalogel %cv3.73.5",
|
|
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",
|
|
@@ -512,7 +512,7 @@ function _b(n, t, e, i = Ni.Linear.None) {
|
|
|
512
512
|
}
|
|
513
513
|
return requestAnimationFrame(o), s;
|
|
514
514
|
}
|
|
515
|
-
var
|
|
515
|
+
var ts = /* @__PURE__ */ ((n) => (n.Drawline = "Drawline", n.Undo = "Undo", n.Exit = "Exit", n))(ts || {});
|
|
516
516
|
const jr = Symbol("$$PAINT_BRUSH_EVENT$$");
|
|
517
517
|
function La(n) {
|
|
518
518
|
return n[jr] || (n[jr] = {}), n[jr];
|
|
@@ -594,11 +594,11 @@ let Vb = class {
|
|
|
594
594
|
return i;
|
|
595
595
|
}
|
|
596
596
|
};
|
|
597
|
-
function
|
|
597
|
+
function $n() {
|
|
598
598
|
return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
|
|
599
599
|
}
|
|
600
600
|
function Dt() {
|
|
601
|
-
return (
|
|
601
|
+
return ($n() + $n() + "-" + $n() + "-4" + $n().substr(0, 3) + "-" + $n() + "-" + $n() + $n() + $n()).toLowerCase();
|
|
602
602
|
}
|
|
603
603
|
const Fb = `
|
|
604
604
|
<style type="text/css">
|
|
@@ -767,7 +767,7 @@ let Hb = class extends Vb {
|
|
|
767
767
|
return;
|
|
768
768
|
const l = this.data[this.uuid].pop();
|
|
769
769
|
l && this.emitStateChange({
|
|
770
|
-
type:
|
|
770
|
+
type: ts.Undo,
|
|
771
771
|
color: this.color,
|
|
772
772
|
ready: this.ready,
|
|
773
773
|
state: l,
|
|
@@ -802,7 +802,7 @@ let Hb = class extends Vb {
|
|
|
802
802
|
const i = this.canvas[e].getContext("2d");
|
|
803
803
|
i && i.clearRect(0, 0, this.canvas[e].width, this.canvas[e].height);
|
|
804
804
|
}), this.ready = !1, this.emit("readyChange", !1), this.emitStateChange({
|
|
805
|
-
type:
|
|
805
|
+
type: ts.Exit,
|
|
806
806
|
color: this.color,
|
|
807
807
|
ready: !1,
|
|
808
808
|
uuid: this.uuid
|
|
@@ -855,7 +855,7 @@ let Hb = class extends Vb {
|
|
|
855
855
|
};
|
|
856
856
|
this.data[this.uuid].push(p), Xa(() => {
|
|
857
857
|
this.emitStateChange({
|
|
858
|
-
type:
|
|
858
|
+
type: ts.Drawline,
|
|
859
859
|
color: this.color,
|
|
860
860
|
ready: this.ready,
|
|
861
861
|
state: p,
|
|
@@ -888,7 +888,7 @@ let Hb = class extends Vb {
|
|
|
888
888
|
};
|
|
889
889
|
this.data[this.uuid].push(p), Xa(() => {
|
|
890
890
|
this.emitStateChange({
|
|
891
|
-
type:
|
|
891
|
+
type: ts.Drawline,
|
|
892
892
|
color: this.color,
|
|
893
893
|
ready: this.ready,
|
|
894
894
|
state: p,
|
|
@@ -898,7 +898,7 @@ let Hb = class extends Vb {
|
|
|
898
898
|
};
|
|
899
899
|
}
|
|
900
900
|
emitStateChange(e, i = !0) {
|
|
901
|
-
if (e.type !==
|
|
901
|
+
if (e.type !== ts.Drawline) {
|
|
902
902
|
this.emit("stateChange", e, i);
|
|
903
903
|
return;
|
|
904
904
|
}
|
|
@@ -939,13 +939,13 @@ let Hb = class extends Vb {
|
|
|
939
939
|
}
|
|
940
940
|
if (this.ready)
|
|
941
941
|
switch (s) {
|
|
942
|
-
case
|
|
942
|
+
case ts.Drawline:
|
|
943
943
|
const { state: r, timestamp: a, end: l } = e;
|
|
944
944
|
if (!a || !r)
|
|
945
945
|
return;
|
|
946
946
|
this.tempLine[a] = [].concat(this.tempLine[a] || [], r.line), l && (Object.assign(r, { line: this.tempLine[a] }), this.handleDrawLine(o, r, {}, () => delete this.tempLine[a]));
|
|
947
947
|
break;
|
|
948
|
-
case
|
|
948
|
+
case ts.Undo:
|
|
949
949
|
this.handleUndo(o);
|
|
950
950
|
break;
|
|
951
951
|
}
|
|
@@ -1622,11 +1622,11 @@ class ha {
|
|
|
1622
1622
|
function D0(...n) {
|
|
1623
1623
|
return new ha(...n);
|
|
1624
1624
|
}
|
|
1625
|
-
function
|
|
1625
|
+
function ls(n) {
|
|
1626
1626
|
return n.toLowerCase().includes("panorama");
|
|
1627
1627
|
}
|
|
1628
1628
|
function Ci(n) {
|
|
1629
|
-
return !
|
|
1629
|
+
return !ls(n);
|
|
1630
1630
|
}
|
|
1631
1631
|
var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}, Qr = {}, Jb = {
|
|
1632
1632
|
get exports() {
|
|
@@ -1796,7 +1796,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1796
1796
|
};
|
|
1797
1797
|
function $e(V) {
|
|
1798
1798
|
var U, Z = V.options.inputClass;
|
|
1799
|
-
return Z ? U = Z : K ? U = gn : oe ? U =
|
|
1799
|
+
return Z ? U = Z : K ? U = gn : oe ? U = Gn : ie ? U = mn : U = Si, new U(V, rt);
|
|
1800
1800
|
}
|
|
1801
1801
|
function rt(V, U, Z) {
|
|
1802
1802
|
var ne = Z.pointers.length, be = Z.changedPointers.length, ze = U & de && ne - be === 0, Qe = U & (Se | ee) && ne - be === 0;
|
|
@@ -1884,13 +1884,13 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1884
1884
|
function ws(V, U) {
|
|
1885
1885
|
return Xt(U[0], U[1], st) / Xt(V[0], V[1], st);
|
|
1886
1886
|
}
|
|
1887
|
-
var
|
|
1887
|
+
var Bn = {
|
|
1888
1888
|
mousedown: de,
|
|
1889
1889
|
mousemove: le,
|
|
1890
1890
|
mouseup: Se
|
|
1891
|
-
}, io = "mousedown",
|
|
1891
|
+
}, io = "mousedown", Vn = "mousemove mouseup";
|
|
1892
1892
|
function Si() {
|
|
1893
|
-
this.evEl = io, this.evWin =
|
|
1893
|
+
this.evEl = io, this.evWin = Vn, this.pressed = !1, Je.apply(this, arguments);
|
|
1894
1894
|
}
|
|
1895
1895
|
P(Si, Je, {
|
|
1896
1896
|
/**
|
|
@@ -1898,7 +1898,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1898
1898
|
* @param {Object} ev
|
|
1899
1899
|
*/
|
|
1900
1900
|
handler: function(U) {
|
|
1901
|
-
var Z =
|
|
1901
|
+
var Z = Bn[U.type];
|
|
1902
1902
|
Z & de && U.button === 0 && (this.pressed = !0), Z & le && U.which !== 1 && (Z = Se), this.pressed && (Z & Se && (this.pressed = !1), this.callback(this.manager, Z, {
|
|
1903
1903
|
pointers: [U],
|
|
1904
1904
|
changedPointers: [U],
|
|
@@ -1913,16 +1913,16 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1913
1913
|
pointerup: Se,
|
|
1914
1914
|
pointercancel: ee,
|
|
1915
1915
|
pointerout: ee
|
|
1916
|
-
},
|
|
1916
|
+
}, Fn = {
|
|
1917
1917
|
2: $,
|
|
1918
1918
|
3: ue,
|
|
1919
1919
|
4: Le,
|
|
1920
1920
|
5: re
|
|
1921
1921
|
// see https://twitter.com/jacobrossi/status/480596438489890816
|
|
1922
|
-
},
|
|
1923
|
-
t.MSPointerEvent && !t.PointerEvent && (
|
|
1922
|
+
}, Hn = "pointerdown", Yi = "pointermove pointerup pointercancel";
|
|
1923
|
+
t.MSPointerEvent && !t.PointerEvent && (Hn = "MSPointerDown", Yi = "MSPointerMove MSPointerUp MSPointerCancel");
|
|
1924
1924
|
function gn() {
|
|
1925
|
-
this.evEl =
|
|
1925
|
+
this.evEl = Hn, this.evWin = Yi, Je.apply(this, arguments), this.store = this.manager.session.pointerEvents = [];
|
|
1926
1926
|
}
|
|
1927
1927
|
P(gn, Je, {
|
|
1928
1928
|
/**
|
|
@@ -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 Z = this.store, ne = !1, be = U.type.toLowerCase().replace("ms", ""), ze = yi[be], Qe =
|
|
1933
|
+
var Z = this.store, ne = !1, be = U.type.toLowerCase().replace("ms", ""), ze = yi[be], Qe = Fn[U.pointerType] || U.pointerType, Pt = Qe == $, Mt = C(Z, U.pointerId, "pointerId");
|
|
1934
1934
|
ze & de && (U.button === 0 || Pt) ? Mt < 0 && (Z.push(U), Mt = Z.length - 1) : ze & (Se | ee) && (ne = !0), !(Mt < 0) && (Z[Mt] = U, this.callback(this.manager, ze, {
|
|
1935
1935
|
pointers: Z,
|
|
1936
1936
|
changedPointers: [U],
|
|
@@ -1945,10 +1945,10 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1945
1945
|
touchend: Se,
|
|
1946
1946
|
touchcancel: ee
|
|
1947
1947
|
}, Ps = "touchstart", Cs = "touchstart touchmove touchend touchcancel";
|
|
1948
|
-
function
|
|
1948
|
+
function Nn() {
|
|
1949
1949
|
this.evTarget = Ps, this.evWin = Cs, this.started = !1, Je.apply(this, arguments);
|
|
1950
1950
|
}
|
|
1951
|
-
P(
|
|
1951
|
+
P(Nn, Je, {
|
|
1952
1952
|
handler: function(U) {
|
|
1953
1953
|
var Z = pn[U.type];
|
|
1954
1954
|
if (Z === de && (this.started = !0), !!this.started) {
|
|
@@ -1972,10 +1972,10 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1972
1972
|
touchend: Se,
|
|
1973
1973
|
touchcancel: ee
|
|
1974
1974
|
}, _i = "touchstart touchmove touchend touchcancel";
|
|
1975
|
-
function
|
|
1975
|
+
function Gn() {
|
|
1976
1976
|
this.evTarget = _i, this.targetIds = {}, Je.apply(this, arguments);
|
|
1977
1977
|
}
|
|
1978
|
-
P(
|
|
1978
|
+
P(Gn, Je, {
|
|
1979
1979
|
handler: function(U) {
|
|
1980
1980
|
var Z = no[U.type], ne = hr.call(this, U, Z);
|
|
1981
1981
|
ne && this.callback(this.manager, Z, {
|
|
@@ -2009,7 +2009,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2009
2009
|
function mn() {
|
|
2010
2010
|
Je.apply(this, arguments);
|
|
2011
2011
|
var V = E(this.handler, this);
|
|
2012
|
-
this.touch = new
|
|
2012
|
+
this.touch = new Gn(this.manager, V), this.mouse = new Si(this.manager, V), this.primaryTouch = null, this.lastTouches = [];
|
|
2013
2013
|
}
|
|
2014
2014
|
P(mn, Je, {
|
|
2015
2015
|
/**
|
|
@@ -2058,7 +2058,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2058
2058
|
}
|
|
2059
2059
|
return !1;
|
|
2060
2060
|
}
|
|
2061
|
-
var oo = S(r.style, "touchAction"), ro = oo !== s, ao = "compute", zt = "auto", Es = "manipulation", Bi = "none", vn = "pan-x", An = "pan-y",
|
|
2061
|
+
var oo = S(r.style, "touchAction"), ro = oo !== s, ao = "compute", zt = "auto", Es = "manipulation", Bi = "none", vn = "pan-x", An = "pan-y", Wn = gr();
|
|
2062
2062
|
function Bt(V, U) {
|
|
2063
2063
|
this.manager = V, this.set(U);
|
|
2064
2064
|
}
|
|
@@ -2068,7 +2068,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2068
2068
|
* @param {String} value
|
|
2069
2069
|
*/
|
|
2070
2070
|
set: function(V) {
|
|
2071
|
-
V == ao && (V = this.compute()), ro && this.manager.element.style &&
|
|
2071
|
+
V == ao && (V = this.compute()), ro && this.manager.element.style && Wn[V] && (this.manager.element.style[oo] = V), this.actions = V.toLowerCase().trim();
|
|
2072
2072
|
},
|
|
2073
2073
|
/**
|
|
2074
2074
|
* just re-set the touchAction value
|
|
@@ -2096,7 +2096,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2096
2096
|
U.preventDefault();
|
|
2097
2097
|
return;
|
|
2098
2098
|
}
|
|
2099
|
-
var ne = this.actions, be = O(ne, Bi) && !
|
|
2099
|
+
var ne = this.actions, be = O(ne, Bi) && !Wn[Bi], ze = O(ne, An) && !Wn[An], Qe = O(ne, vn) && !Wn[vn];
|
|
2100
2100
|
if (be) {
|
|
2101
2101
|
var Pt = V.pointers.length === 1, Mt = V.distance < 2, Ot = V.deltaTime < 250;
|
|
2102
2102
|
if (Pt && Mt && Ot)
|
|
@@ -2127,9 +2127,9 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2127
2127
|
V[Z] = U ? t.CSS.supports("touch-action", Z) : !0;
|
|
2128
2128
|
}), V;
|
|
2129
2129
|
}
|
|
2130
|
-
var
|
|
2130
|
+
var Un = 1, Zt = 2, qi = 4, ei = 8, di = ei, Di = 16, Et = 32;
|
|
2131
2131
|
function ti(V) {
|
|
2132
|
-
this.options = m({}, this.defaults, V || {}), this.id = N(), this.manager = null, this.options.enable = z(this.options.enable, !0), this.state =
|
|
2132
|
+
this.options = m({}, this.defaults, V || {}), this.id = N(), this.manager = null, this.options.enable = z(this.options.enable, !0), this.state = Un, this.simultaneous = {}, this.requireFail = [];
|
|
2133
2133
|
}
|
|
2134
2134
|
ti.prototype = {
|
|
2135
2135
|
/**
|
|
@@ -2154,7 +2154,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2154
2154
|
if (u(V, "recognizeWith", this))
|
|
2155
2155
|
return this;
|
|
2156
2156
|
var U = this.simultaneous;
|
|
2157
|
-
return V =
|
|
2157
|
+
return V = Qn(V, this), U[V.id] || (U[V.id] = V, V.recognizeWith(this)), this;
|
|
2158
2158
|
},
|
|
2159
2159
|
/**
|
|
2160
2160
|
* drop the simultaneous link. it doesnt remove the link on the other recognizer.
|
|
@@ -2162,7 +2162,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2162
2162
|
* @returns {Recognizer} this
|
|
2163
2163
|
*/
|
|
2164
2164
|
dropRecognizeWith: function(V) {
|
|
2165
|
-
return u(V, "dropRecognizeWith", this) ? this : (V =
|
|
2165
|
+
return u(V, "dropRecognizeWith", this) ? this : (V = Qn(V, this), delete this.simultaneous[V.id], this);
|
|
2166
2166
|
},
|
|
2167
2167
|
/**
|
|
2168
2168
|
* recognizer can only run when an other is failing
|
|
@@ -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 =
|
|
2176
|
+
return V = Qn(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.
|
|
@@ -2183,7 +2183,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2183
2183
|
dropRequireFailure: function(V) {
|
|
2184
2184
|
if (u(V, "dropRequireFailure", this))
|
|
2185
2185
|
return this;
|
|
2186
|
-
V =
|
|
2186
|
+
V = Qn(V, this);
|
|
2187
2187
|
var U = C(this.requireFail, V);
|
|
2188
2188
|
return U > -1 && this.requireFail.splice(U, 1), this;
|
|
2189
2189
|
},
|
|
@@ -2231,7 +2231,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2231
2231
|
*/
|
|
2232
2232
|
canEmit: function() {
|
|
2233
2233
|
for (var V = 0; V < this.requireFail.length; ) {
|
|
2234
|
-
if (!(this.requireFail[V].state & (Et |
|
|
2234
|
+
if (!(this.requireFail[V].state & (Et | Un)))
|
|
2235
2235
|
return !1;
|
|
2236
2236
|
V++;
|
|
2237
2237
|
}
|
|
@@ -2247,7 +2247,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2247
2247
|
this.reset(), this.state = Et;
|
|
2248
2248
|
return;
|
|
2249
2249
|
}
|
|
2250
|
-
this.state & (di | Di | Et) && (this.state =
|
|
2250
|
+
this.state & (di | Di | Et) && (this.state = Un), this.state = this.process(U), this.state & (Zt | qi | ei | Di) && this.tryEmit(U);
|
|
2251
2251
|
},
|
|
2252
2252
|
/**
|
|
2253
2253
|
* return the state of the recognizer
|
|
@@ -2280,7 +2280,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2280
2280
|
function co(V) {
|
|
2281
2281
|
return V == me ? "down" : V == Ve ? "up" : V == Re ? "left" : V == Ae ? "right" : "";
|
|
2282
2282
|
}
|
|
2283
|
-
function
|
|
2283
|
+
function Qn(V, U) {
|
|
2284
2284
|
var Z = U.manager;
|
|
2285
2285
|
return Z ? Z.get(V) : V;
|
|
2286
2286
|
}
|
|
@@ -2320,10 +2320,10 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2320
2320
|
return ne && (Z & ee || !be) ? U | Di : ne || be ? Z & Se ? U | ei : U & Zt ? U | qi : Zt : Et;
|
|
2321
2321
|
}
|
|
2322
2322
|
});
|
|
2323
|
-
function
|
|
2323
|
+
function Xn() {
|
|
2324
2324
|
ii.apply(this, arguments), this.pX = null, this.pY = null;
|
|
2325
2325
|
}
|
|
2326
|
-
P(
|
|
2326
|
+
P(Xn, ii, {
|
|
2327
2327
|
/**
|
|
2328
2328
|
* @namespace
|
|
2329
2329
|
* @memberof PanRecognizer
|
|
@@ -2436,10 +2436,10 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2436
2436
|
return this._super.attrTest.call(this, V) && (Math.abs(V.rotation) > this.options.threshold || this.state & Zt);
|
|
2437
2437
|
}
|
|
2438
2438
|
});
|
|
2439
|
-
function
|
|
2439
|
+
function Yn() {
|
|
2440
2440
|
ii.apply(this, arguments);
|
|
2441
2441
|
}
|
|
2442
|
-
P(
|
|
2442
|
+
P(Yn, ii, {
|
|
2443
2443
|
/**
|
|
2444
2444
|
* @namespace
|
|
2445
2445
|
* @memberof SwipeRecognizer
|
|
@@ -2452,7 +2452,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2452
2452
|
pointers: 1
|
|
2453
2453
|
},
|
|
2454
2454
|
getTouchAction: function() {
|
|
2455
|
-
return
|
|
2455
|
+
return Xn.prototype.getTouchAction.call(this);
|
|
2456
2456
|
},
|
|
2457
2457
|
attrTest: function(V) {
|
|
2458
2458
|
var U = this.options.direction, Z;
|
|
@@ -2562,8 +2562,8 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2562
2562
|
// RecognizerClass, options, [recognizeWith, ...], [requireFailure, ...]
|
|
2563
2563
|
[Vi, { enable: !1 }],
|
|
2564
2564
|
[Ji, { enable: !1 }, ["rotate"]],
|
|
2565
|
-
[
|
|
2566
|
-
[
|
|
2565
|
+
[Yn, { direction: Ie }],
|
|
2566
|
+
[Xn, { direction: Ie }, ["swipe"]],
|
|
2567
2567
|
[yn],
|
|
2568
2568
|
[yn, { event: "doubletap", taps: 2 }, ["tap"]],
|
|
2569
2569
|
[bn]
|
|
@@ -2617,7 +2617,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2617
2617
|
};
|
|
2618
2618
|
var pr = 1, ho = 2;
|
|
2619
2619
|
function Ms(V, U) {
|
|
2620
|
-
this.options = m({}, wi.defaults, U || {}), this.options.inputTarget = this.options.inputTarget || V, this.handlers = {}, this.session = {}, this.recognizers = [], this.oldCssProps = {}, this.element = V, this.input = $e(this), this.touchAction = new Bt(this, this.options.touchAction),
|
|
2620
|
+
this.options = m({}, wi.defaults, U || {}), this.options.inputTarget = this.options.inputTarget || V, this.handlers = {}, this.session = {}, this.recognizers = [], this.oldCssProps = {}, this.element = V, this.input = $e(this), this.touchAction = new Bt(this, this.options.touchAction), Zn(this, !0), p(this.options.recognizers, function(Z) {
|
|
2621
2621
|
var ne = this.add(new Z[0](Z[1]));
|
|
2622
2622
|
Z[2] && ne.recognizeWith(Z[2]), Z[3] && ne.requireFailure(Z[3]);
|
|
2623
2623
|
}, this);
|
|
@@ -2746,10 +2746,10 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2746
2746
|
* it doesn't unbind dom events, that is the user own responsibility
|
|
2747
2747
|
*/
|
|
2748
2748
|
destroy: function() {
|
|
2749
|
-
this.element &&
|
|
2749
|
+
this.element && Zn(this, !1), this.handlers = {}, this.session = {}, this.input.destroy(), this.element = null;
|
|
2750
2750
|
}
|
|
2751
2751
|
};
|
|
2752
|
-
function
|
|
2752
|
+
function Zn(V, U) {
|
|
2753
2753
|
var Z = V.element;
|
|
2754
2754
|
if (Z.style) {
|
|
2755
2755
|
var ne;
|
|
@@ -2767,7 +2767,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2767
2767
|
INPUT_MOVE: le,
|
|
2768
2768
|
INPUT_END: Se,
|
|
2769
2769
|
INPUT_CANCEL: ee,
|
|
2770
|
-
STATE_POSSIBLE:
|
|
2770
|
+
STATE_POSSIBLE: Un,
|
|
2771
2771
|
STATE_BEGAN: Zt,
|
|
2772
2772
|
STATE_CHANGED: qi,
|
|
2773
2773
|
STATE_ENDED: ei,
|
|
@@ -2785,16 +2785,16 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2785
2785
|
Manager: Ms,
|
|
2786
2786
|
Input: Je,
|
|
2787
2787
|
TouchAction: Bt,
|
|
2788
|
-
TouchInput:
|
|
2788
|
+
TouchInput: Gn,
|
|
2789
2789
|
MouseInput: Si,
|
|
2790
2790
|
PointerEventInput: gn,
|
|
2791
2791
|
TouchMouseInput: mn,
|
|
2792
|
-
SingleTouchInput:
|
|
2792
|
+
SingleTouchInput: Nn,
|
|
2793
2793
|
Recognizer: ti,
|
|
2794
2794
|
AttrRecognizer: ii,
|
|
2795
2795
|
Tap: yn,
|
|
2796
|
-
Pan:
|
|
2797
|
-
Swipe:
|
|
2796
|
+
Pan: Xn,
|
|
2797
|
+
Swipe: Yn,
|
|
2798
2798
|
Pinch: Ji,
|
|
2799
2799
|
Rotate: Vi,
|
|
2800
2800
|
Press: bn,
|
|
@@ -3057,19 +3057,19 @@ function T0(n, t) {
|
|
|
3057
3057
|
const { offsetWidth: e, offsetHeight: i } = t;
|
|
3058
3058
|
return new y.Vector2().set(n.x / e * 2 - 1, -n.y / i * 2 + 1);
|
|
3059
3059
|
}
|
|
3060
|
-
var
|
|
3060
|
+
var On = function(n) {
|
|
3061
3061
|
Do.call(this), this.element = n, this.element.style.position = "absolute", this.element.style.pointerEvents = "auto", this.element.style.userSelect = "none", this.element.setAttribute("draggable", !1), this.addEventListener("removed", function() {
|
|
3062
3062
|
this.traverse(function(t) {
|
|
3063
3063
|
t.element instanceof Element && t.element.parentNode !== null && t.element.remove();
|
|
3064
3064
|
});
|
|
3065
3065
|
});
|
|
3066
3066
|
};
|
|
3067
|
-
|
|
3068
|
-
|
|
3067
|
+
On.prototype = Object.create(Do.prototype);
|
|
3068
|
+
On.prototype.constructor = On;
|
|
3069
3069
|
var il = function(n) {
|
|
3070
|
-
|
|
3070
|
+
On.call(this, n);
|
|
3071
3071
|
};
|
|
3072
|
-
il.prototype = Object.create(
|
|
3072
|
+
il.prototype = Object.create(On.prototype);
|
|
3073
3073
|
il.prototype.constructor = il;
|
|
3074
3074
|
let ey = function(n) {
|
|
3075
3075
|
let t = this, e, i, s, o, r = new ot(), a = {
|
|
@@ -3885,7 +3885,7 @@ function j0(n, t = "m") {
|
|
|
3885
3885
|
return i === "0.0" ? void 0 : i + "ft²";
|
|
3886
3886
|
}
|
|
3887
3887
|
}
|
|
3888
|
-
const
|
|
3888
|
+
const is = class {
|
|
3889
3889
|
static checkDom(t) {
|
|
3890
3890
|
let e = t, i = !0;
|
|
3891
3891
|
for (; e.parent; )
|
|
@@ -3893,13 +3893,13 @@ const ts = class {
|
|
|
3893
3893
|
e.type === "Scene" ? (t._onAdded(), i ? t._onShowed() : t._onHidden()) : t._onRemoved();
|
|
3894
3894
|
}
|
|
3895
3895
|
static checkDomEveryFrame() {
|
|
3896
|
-
|
|
3896
|
+
is.checkDomEveryFrameIsRunning || (is.checkDomEveryFrameIsRunning = !0, is._checkDomEveryFrame());
|
|
3897
3897
|
}
|
|
3898
3898
|
static _checkDomEveryFrame() {
|
|
3899
|
-
|
|
3899
|
+
is.cacheObject.forEach((t) => is.checkDom(t)), requestAnimationFrame(is._checkDomEveryFrame);
|
|
3900
3900
|
}
|
|
3901
3901
|
};
|
|
3902
|
-
let Kt =
|
|
3902
|
+
let Kt = is;
|
|
3903
3903
|
f(Kt, "cacheObject", /* @__PURE__ */ new Set()), f(Kt, "checkDomEveryFrameIsRunning", !1);
|
|
3904
3904
|
class ki extends Ai {
|
|
3905
3905
|
constructor(e) {
|
|
@@ -4342,7 +4342,7 @@ function ky(n, t) {
|
|
|
4342
4342
|
return he(F({}, s), { raycaster: t, isVirtual: !1 });
|
|
4343
4343
|
}
|
|
4344
4344
|
const ku = `url("data:image/svg+xml,%3Csvg width='12px' height='12px' viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M6,12 C9.3137085,12 12,9.3137085 12,6 C12,2.6862915 9.3137085,0 6,0 C2.6862915,0 0,2.6862915 0,6 C0,9.3137085 2.6862915,12 6,12 Z' fill='%23FF5959'%3E%3C/path%3E%3Cg transform='translate(2, 2)' stroke='%23FFFFFF'%3E%3Ccircle cx='4' cy='4' r='4'%3E%3C/circle%3E%3Cline x1='1.07141075' y1='1.23997894' x2='6.64700843' y2='6.81557662'%3E%3C/line%3E%3C/g%3E%3C/g%3E%3C/svg%3E") 6 6, auto`, xy = new y.Vector3();
|
|
4345
|
-
function
|
|
4345
|
+
function Tn(n) {
|
|
4346
4346
|
const { raycaster: t, line: e, clampToLine: i = !0 } = n, s = new y.Plane().setFromNormalAndCoplanarPoint(t.ray.direction.clone().normalize(), new y.Vector3()), o = s.projectPoint(e.start, new y.Vector3()), r = s.projectPoint(e.end, new y.Vector3()), a = new y.Line3(o, r), l = a.closestPointToPoint(t.ray.origin, i, xy), c = l.distanceTo(r), h = l.distanceTo(o), d = a.distance();
|
|
4347
4347
|
if (c > h && c > d) {
|
|
4348
4348
|
const u = -l.distanceTo(o) / d, p = e.start.clone().sub(e.end).normalize();
|
|
@@ -4583,7 +4583,7 @@ class zl extends kt {
|
|
|
4583
4583
|
if (m.distanceTo(e.point) < this.adhereRadius)
|
|
4584
4584
|
(!this.plane || this.plane.distanceToPoint(m) < 0.01) && (m = (a = (r = this.plane) == null ? void 0 : r.projectPoint(m, new y.Vector3())) != null ? a : m, i.point = m.clone(), i.adhereLine = g.clone(), i.isAdsorbed = !0);
|
|
4585
4585
|
else {
|
|
4586
|
-
const v =
|
|
4586
|
+
const v = Tn({
|
|
4587
4587
|
raycaster: new Ur(this.five.camera.position, e.point.clone().sub(this.five.camera.position).normalize()),
|
|
4588
4588
|
line: g,
|
|
4589
4589
|
clampToLine: !1
|
|
@@ -4736,7 +4736,7 @@ class F0 extends y.Mesh {
|
|
|
4736
4736
|
}
|
|
4737
4737
|
}
|
|
4738
4738
|
const Wh = (n) => n ? n.visible === !1 ? !1 : Wh(n.parent) : !0, H0 = 1, Su = `CSS3DObjectPlus@${H0}`, Sy = 216e-5, Dy = 3e-3;
|
|
4739
|
-
let N0 = class extends
|
|
4739
|
+
let N0 = class extends On {
|
|
4740
4740
|
constructor(e) {
|
|
4741
4741
|
var z, D, j, T, O;
|
|
4742
4742
|
if (vi(e.cornerPoints) && vi(e.width))
|
|
@@ -5037,7 +5037,7 @@ function Fy(n) {
|
|
|
5037
5037
|
new y.Vector3(t.x, e.y, e.z)
|
|
5038
5038
|
];
|
|
5039
5039
|
}
|
|
5040
|
-
function
|
|
5040
|
+
function ss(n, t) {
|
|
5041
5041
|
const { max: e, min: i } = n;
|
|
5042
5042
|
switch (t) {
|
|
5043
5043
|
case 0:
|
|
@@ -5424,7 +5424,7 @@ function Yy(n) {
|
|
|
5424
5424
|
if (Ge.hsl(n))
|
|
5425
5425
|
return Xy(n);
|
|
5426
5426
|
}
|
|
5427
|
-
function
|
|
5427
|
+
function Ln(n) {
|
|
5428
5428
|
var t = /[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(n);
|
|
5429
5429
|
if (t)
|
|
5430
5430
|
return t[1];
|
|
@@ -5442,7 +5442,7 @@ function sn(n, t) {
|
|
|
5442
5442
|
return n.getAttribute(t);
|
|
5443
5443
|
}
|
|
5444
5444
|
function qh(n, t, e) {
|
|
5445
|
-
var i =
|
|
5445
|
+
var i = Ln(t);
|
|
5446
5446
|
if (Yh([e, "deg", "rad", "turn"], i))
|
|
5447
5447
|
return t;
|
|
5448
5448
|
var s = sl.CSS[t + e];
|
|
@@ -5498,7 +5498,7 @@ function $h(n, t) {
|
|
|
5498
5498
|
var e = /^(\*=|\+=|-=)/.exec(n);
|
|
5499
5499
|
if (!e)
|
|
5500
5500
|
return n;
|
|
5501
|
-
var i =
|
|
5501
|
+
var i = Ln(n) || 0, s = parseFloat(t), o = parseFloat(n.replace(e[0], ""));
|
|
5502
5502
|
switch (e[0][0]) {
|
|
5503
5503
|
case "+":
|
|
5504
5504
|
return s + o + i;
|
|
@@ -5513,7 +5513,7 @@ function n1(n, t) {
|
|
|
5513
5513
|
return Yy(n);
|
|
5514
5514
|
if (/\s/g.test(n))
|
|
5515
5515
|
return n;
|
|
5516
|
-
var e =
|
|
5516
|
+
var e = Ln(n), i = e ? n.substr(0, n.length - e.length) : n;
|
|
5517
5517
|
return t ? i + t : i;
|
|
5518
5518
|
}
|
|
5519
5519
|
function ed(n, t) {
|
|
@@ -5683,7 +5683,7 @@ function lw(n, t) {
|
|
|
5683
5683
|
function cw(n, t) {
|
|
5684
5684
|
var e;
|
|
5685
5685
|
return n.tweens.map(function(i) {
|
|
5686
|
-
var s = lw(i, t), o = s.value, r = Ge.arr(o) ? o[1] : o, a =
|
|
5686
|
+
var s = lw(i, t), o = s.value, r = Ge.arr(o) ? o[1] : o, a = Ln(r), l = Kh(t.target, n.name, a, t), c = e ? e.to.original : l, h = Ge.arr(o) ? o[0] : c, d = Ln(h) || Ln(l), u = a || d;
|
|
5687
5687
|
return Ge.und(r) && (r = c), s.from = Tu(h, u), s.to = Tu($h(r, h), u), s.start = e ? e.end : 0, s.end = s.start + s.delay + s.duration + s.endDelay, s.easing = Xh(s.easing, s.duration), s.isPath = Ge.pth(o), s.isPathTargetInsideSVG = s.isPath && Ge.svg(t.target), s.isColor = Ge.col(s.from.original), s.isColor && (s.round = 1), e = s, s;
|
|
5688
5688
|
});
|
|
5689
5689
|
}
|
|
@@ -5710,7 +5710,7 @@ function c1(n, t) {
|
|
|
5710
5710
|
var e = a1(n);
|
|
5711
5711
|
e.forEach(function(i) {
|
|
5712
5712
|
for (var s in t) {
|
|
5713
|
-
var o = $c(t[s], i), r = i.target, a =
|
|
5713
|
+
var o = $c(t[s], i), r = i.target, a = Ln(o), l = Kh(r, s, a, i), c = a || Ln(l), h = $h(n1(o, c), l), d = Jh(r, s);
|
|
5714
5714
|
l1[d](r, s, h, i.transforms, !0);
|
|
5715
5715
|
}
|
|
5716
5716
|
});
|
|
@@ -5902,7 +5902,7 @@ function fw(n) {
|
|
|
5902
5902
|
}
|
|
5903
5903
|
function gw(n, t) {
|
|
5904
5904
|
t === void 0 && (t = {});
|
|
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, p =
|
|
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, p = Ln(h ? n[1] : n) || 0, g = 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
5908
|
for (var I = 0; I < E; I++) {
|
|
@@ -6129,7 +6129,7 @@ class Aw {
|
|
|
6129
6129
|
this.materialManager.clear(), this.performanceMonitor.clear();
|
|
6130
6130
|
}
|
|
6131
6131
|
}
|
|
6132
|
-
const kn = /* @__PURE__ */ new WeakMap(),
|
|
6132
|
+
const kn = /* @__PURE__ */ new WeakMap(), zn = new Aw();
|
|
6133
6133
|
function Fo(n) {
|
|
6134
6134
|
return "isObject3D" in n && n.isObject3D === !0;
|
|
6135
6135
|
}
|
|
@@ -6168,7 +6168,7 @@ function m1(n, t) {
|
|
|
6168
6168
|
}), Array.from(new Set(i.filter(Boolean)));
|
|
6169
6169
|
}
|
|
6170
6170
|
function yw(n, t) {
|
|
6171
|
-
const e = /* @__PURE__ */ new Map(), i =
|
|
6171
|
+
const e = /* @__PURE__ */ new Map(), i = zn.getStateMap();
|
|
6172
6172
|
return n.forEach((s) => {
|
|
6173
6173
|
var r;
|
|
6174
6174
|
const o = i.get(s);
|
|
@@ -6188,7 +6188,7 @@ function yw(n, t) {
|
|
|
6188
6188
|
};
|
|
6189
6189
|
}
|
|
6190
6190
|
function ww(n, t) {
|
|
6191
|
-
const e = /* @__PURE__ */ new Map(), i =
|
|
6191
|
+
const e = /* @__PURE__ */ new Map(), i = zn.getStateMap();
|
|
6192
6192
|
return n.forEach((s) => {
|
|
6193
6193
|
var a, l;
|
|
6194
6194
|
const o = i.get(s), r = Number((l = (a = o == null ? void 0 : o.opacity) != null ? a : t == null ? void 0 : t.maxOpacity) != null ? l : 1);
|
|
@@ -6212,13 +6212,13 @@ function Bl(n, t) {
|
|
|
6212
6212
|
const s = (e = t == null ? void 0 : t.traverseTHREEObject) != null ? e : !0, o = m1(n, s);
|
|
6213
6213
|
if (o.length === 0)
|
|
6214
6214
|
return Yr("No valid targets found"), al();
|
|
6215
|
-
|
|
6215
|
+
zn.storeState(o);
|
|
6216
6216
|
const r = he(F(F({}, id), t), {
|
|
6217
6217
|
targets: o,
|
|
6218
6218
|
update: yw(o, t || {})
|
|
6219
6219
|
}), a = ct(r);
|
|
6220
6220
|
a.preComplete = () => {
|
|
6221
|
-
a.completed || (a.pause(),
|
|
6221
|
+
a.completed || (a.pause(), zn.restoreState(o), setTimeout(() => {
|
|
6222
6222
|
var c;
|
|
6223
6223
|
return (c = t == null ? void 0 : t.updateRender) == null ? void 0 : c.call(t);
|
|
6224
6224
|
}));
|
|
@@ -6226,7 +6226,7 @@ function Bl(n, t) {
|
|
|
6226
6226
|
const l = kn.get(n);
|
|
6227
6227
|
return l == null || l.pause(), l == null || l.seek(0), kn.set(n, a), (i = t == null ? void 0 : t.onStart) == null || i.call(t), a.play(), a.finished.then(() => {
|
|
6228
6228
|
var c, h;
|
|
6229
|
-
|
|
6229
|
+
zn.restoreState(o), setTimeout(() => {
|
|
6230
6230
|
kn.get(n) === a && kn.delete(n);
|
|
6231
6231
|
}, 1e3), (c = t == null ? void 0 : t.onComplete) == null || c.call(t), (h = t == null ? void 0 : t.updateRender) == null || h.call(t), setTimeout(() => {
|
|
6232
6232
|
var d;
|
|
@@ -6247,13 +6247,13 @@ function v1(n, t) {
|
|
|
6247
6247
|
const s = (e = t == null ? void 0 : t.traverseTHREEObject) != null ? e : !0, o = m1(n, s);
|
|
6248
6248
|
if (o.length === 0)
|
|
6249
6249
|
return Yr("No valid targets found"), al();
|
|
6250
|
-
|
|
6250
|
+
zn.storeState(o);
|
|
6251
6251
|
const r = he(F(F({}, id), t), {
|
|
6252
6252
|
targets: o,
|
|
6253
6253
|
update: ww(o, t || {})
|
|
6254
6254
|
}), a = ct(r);
|
|
6255
6255
|
a.preComplete = () => {
|
|
6256
|
-
a.completed || (a.pause(),
|
|
6256
|
+
a.completed || (a.pause(), zn.restoreState(o), setTimeout(() => {
|
|
6257
6257
|
var c;
|
|
6258
6258
|
return (c = t == null ? void 0 : t.updateRender) == null ? void 0 : c.call(t);
|
|
6259
6259
|
}));
|
|
@@ -6261,7 +6261,7 @@ function v1(n, t) {
|
|
|
6261
6261
|
const l = kn.get(n);
|
|
6262
6262
|
return l == null || l.pause(), l == null || l.seek(0), kn.set(n, a), (i = t == null ? void 0 : t.onStart) == null || i.call(t), a.play(), a.finished.then(() => {
|
|
6263
6263
|
var c, h;
|
|
6264
|
-
|
|
6264
|
+
zn.restoreState(o), setTimeout(() => {
|
|
6265
6265
|
kn.get(n) === a && kn.delete(n);
|
|
6266
6266
|
}, 1e3), (c = t == null ? void 0 : t.onComplete) == null || c.call(t), (h = t == null ? void 0 : t.updateRender) == null || h.call(t), setTimeout(() => {
|
|
6267
6267
|
var d;
|
|
@@ -6280,7 +6280,7 @@ function Pw(n, t, e) {
|
|
|
6280
6280
|
return Bl(n, F(F({}, i), e));
|
|
6281
6281
|
}
|
|
6282
6282
|
function Cw() {
|
|
6283
|
-
|
|
6283
|
+
zn.clear();
|
|
6284
6284
|
}
|
|
6285
6285
|
function Iw(n, t) {
|
|
6286
6286
|
const e = Ei(n), { x: i, y: s } = t, o = i * 2 - 1, r = s * 2 - 1, a = new y.Raycaster();
|
|
@@ -6635,9 +6635,9 @@ class Zr {
|
|
|
6635
6635
|
handleDisable() {
|
|
6636
6636
|
var t, e, i;
|
|
6637
6637
|
this.store.frontModeGroup.children.forEach((s) => {
|
|
6638
|
-
s instanceof
|
|
6638
|
+
s instanceof On && s.element instanceof Element && s.element.parentNode !== null && s.element.remove();
|
|
6639
6639
|
}), (t = this.store.behindModeGroup) == null || t.children.forEach((s) => {
|
|
6640
|
-
s instanceof
|
|
6640
|
+
s instanceof On && s.element instanceof Element && s.element.parentNode !== null && s.element.remove();
|
|
6641
6641
|
}), (e = this.getFrontCSS3DScene()) == null || e.remove(this.store.frontModeGroup), this.store.behindModeGroup && ((i = this.getBehindCSS3DScene()) == null || i.remove(this.store.behindModeGroup));
|
|
6642
6642
|
}
|
|
6643
6643
|
handleDispose() {
|
|
@@ -7987,7 +7987,7 @@ const wT = (n) => {
|
|
|
7987
7987
|
};
|
|
7988
7988
|
function se() {
|
|
7989
7989
|
}
|
|
7990
|
-
const
|
|
7990
|
+
const jn = (n) => n;
|
|
7991
7991
|
function ft(n, t) {
|
|
7992
7992
|
for (const e in t)
|
|
7993
7993
|
n[e] = t[e];
|
|
@@ -8274,7 +8274,7 @@ function yd(n) {
|
|
|
8274
8274
|
function $t(n) {
|
|
8275
8275
|
vs().$$.on_destroy.push(n);
|
|
8276
8276
|
}
|
|
8277
|
-
function
|
|
8277
|
+
function _n() {
|
|
8278
8278
|
const n = vs();
|
|
8279
8279
|
return (t, e, { cancelable: i = !1 } = {}) => {
|
|
8280
8280
|
const s = n.$$.callbacks[t];
|
|
@@ -8293,7 +8293,7 @@ function gl(n, t) {
|
|
|
8293
8293
|
function ln(n) {
|
|
8294
8294
|
return vs().$$.context.get(n);
|
|
8295
8295
|
}
|
|
8296
|
-
function
|
|
8296
|
+
function Rn(n, t) {
|
|
8297
8297
|
const e = n.$$.callbacks[t.type];
|
|
8298
8298
|
e && e.slice().forEach((i) => i.call(this, t));
|
|
8299
8299
|
}
|
|
@@ -8394,7 +8394,7 @@ function As(n, t, e) {
|
|
|
8394
8394
|
r && fl(n, r);
|
|
8395
8395
|
}
|
|
8396
8396
|
function h() {
|
|
8397
|
-
const { delay: u = 0, duration: p = 300, easing: g =
|
|
8397
|
+
const { delay: u = 0, duration: p = 300, easing: g = jn, tick: m = se, css: v } = s || Pd;
|
|
8398
8398
|
v && (r = ul(n, 0, 1, p, u, g, v, l++)), m(0, 1);
|
|
8399
8399
|
const A = pd() + u, P = A + p;
|
|
8400
8400
|
a && a.abort(), o = !0, wt(() => Bs(n, !0, "start")), a = vd((E) => {
|
|
@@ -8428,7 +8428,7 @@ function sr(n, t, e) {
|
|
|
8428
8428
|
const a = on;
|
|
8429
8429
|
a.r += 1;
|
|
8430
8430
|
function l() {
|
|
8431
|
-
const { delay: c = 0, duration: h = 300, easing: d =
|
|
8431
|
+
const { delay: c = 0, duration: h = 300, easing: d = jn, tick: u = se, css: p } = s || Pd;
|
|
8432
8432
|
p && (r = ul(n, 1, 0, h, c, d, p));
|
|
8433
8433
|
const g = pd() + c, m = g + h;
|
|
8434
8434
|
wt(() => Bs(n, !1, "start")), vd((v) => {
|
|
@@ -8470,7 +8470,7 @@ function ji(n, t, e, i) {
|
|
|
8470
8470
|
};
|
|
8471
8471
|
}
|
|
8472
8472
|
function u(p) {
|
|
8473
|
-
const { delay: g = 0, duration: m = 300, easing: v =
|
|
8473
|
+
const { delay: g = 0, duration: m = 300, easing: v = jn, tick: A = se, css: P } = o || Pd, E = {
|
|
8474
8474
|
start: pd() + g,
|
|
8475
8475
|
b: p
|
|
8476
8476
|
};
|
|
@@ -9510,7 +9510,7 @@ function ta(n) {
|
|
|
9510
9510
|
const t = n - 1;
|
|
9511
9511
|
return t * t * t + 1;
|
|
9512
9512
|
}
|
|
9513
|
-
function Vt(n, { delay: t = 0, duration: e = 400, easing: i =
|
|
9513
|
+
function Vt(n, { delay: t = 0, duration: e = 400, easing: i = jn } = {}) {
|
|
9514
9514
|
const s = +getComputedStyle(n).opacity;
|
|
9515
9515
|
return {
|
|
9516
9516
|
delay: t,
|
|
@@ -11136,7 +11136,7 @@ class $3 extends Pe {
|
|
|
11136
11136
|
);
|
|
11137
11137
|
}
|
|
11138
11138
|
}
|
|
11139
|
-
function
|
|
11139
|
+
function rs(n, t = {}) {
|
|
11140
11140
|
let e = "";
|
|
11141
11141
|
const { needZ: i, needA: s } = t;
|
|
11142
11142
|
return (i ? n.slice().concat(n[0]) : n.slice()).forEach((r, a) => {
|
|
@@ -11200,7 +11200,7 @@ function sP(n, t, e) {
|
|
|
11200
11200
|
"path" in o && e(1, s = o.path);
|
|
11201
11201
|
}, n.$$.update = () => {
|
|
11202
11202
|
n.$$.dirty & /*path*/
|
|
11203
|
-
2 && e(0, i =
|
|
11203
|
+
2 && e(0, i = rs(s, { needZ: !0 }));
|
|
11204
11204
|
}, [i, s];
|
|
11205
11205
|
}
|
|
11206
11206
|
class oP extends Pe {
|
|
@@ -11271,7 +11271,7 @@ function aP(n, t, e) {
|
|
|
11271
11271
|
"path" in a && e(3, s = a.path);
|
|
11272
11272
|
}, n.$$.update = () => {
|
|
11273
11273
|
n.$$.dirty & /*path*/
|
|
11274
|
-
8 && e(0, i =
|
|
11274
|
+
8 && e(0, i = rs(s, { needZ: !0 }));
|
|
11275
11275
|
}, [i, o, r, s];
|
|
11276
11276
|
}
|
|
11277
11277
|
class lP extends Pe {
|
|
@@ -11337,7 +11337,7 @@ function hP(n, t, e) {
|
|
|
11337
11337
|
"path" in o && e(1, s = o.path);
|
|
11338
11338
|
}, n.$$.update = () => {
|
|
11339
11339
|
n.$$.dirty & /*path*/
|
|
11340
|
-
2 && e(0, i =
|
|
11340
|
+
2 && e(0, i = rs(s, { needZ: !0 }));
|
|
11341
11341
|
}, [i, s];
|
|
11342
11342
|
}
|
|
11343
11343
|
class dP extends Pe {
|
|
@@ -11369,7 +11369,7 @@ function uP(n) {
|
|
|
11369
11369
|
}
|
|
11370
11370
|
function fP(n, t, e) {
|
|
11371
11371
|
let { dimension: i } = t;
|
|
11372
|
-
const s =
|
|
11372
|
+
const s = rs(
|
|
11373
11373
|
[
|
|
11374
11374
|
{
|
|
11375
11375
|
x: i.vertical[1].x,
|
|
@@ -11385,7 +11385,7 @@ function fP(n, t, e) {
|
|
|
11385
11385
|
}
|
|
11386
11386
|
],
|
|
11387
11387
|
{ needZ: !0 }
|
|
11388
|
-
), o =
|
|
11388
|
+
), o = rs(
|
|
11389
11389
|
[
|
|
11390
11390
|
{
|
|
11391
11391
|
x: i.vertical[0].x,
|
|
@@ -11401,7 +11401,7 @@ function fP(n, t, e) {
|
|
|
11401
11401
|
}
|
|
11402
11402
|
],
|
|
11403
11403
|
{ needZ: !0 }
|
|
11404
|
-
), r =
|
|
11404
|
+
), r = rs(
|
|
11405
11405
|
[
|
|
11406
11406
|
{
|
|
11407
11407
|
x: i.horizontal[0].x + 53,
|
|
@@ -11417,7 +11417,7 @@ function fP(n, t, e) {
|
|
|
11417
11417
|
}
|
|
11418
11418
|
],
|
|
11419
11419
|
{ needZ: !0 }
|
|
11420
|
-
), a =
|
|
11420
|
+
), a = rs(
|
|
11421
11421
|
[
|
|
11422
11422
|
{
|
|
11423
11423
|
x: i.horizontal[1].x - 53,
|
|
@@ -11795,7 +11795,7 @@ function IP(n, t, e) {
|
|
|
11795
11795
|
function d() {
|
|
11796
11796
|
c == null || c.set(void 0);
|
|
11797
11797
|
}
|
|
11798
|
-
const { bounding: u } = a, p =
|
|
11798
|
+
const { bounding: u } = a, p = rs(o.path, {
|
|
11799
11799
|
needZ: !0,
|
|
11800
11800
|
format: (g) => U1(g, u)
|
|
11801
11801
|
});
|
|
@@ -13013,7 +13013,7 @@ function wf(n) {
|
|
|
13013
13013
|
/*duration*/
|
|
13014
13014
|
n[0]
|
|
13015
13015
|
),
|
|
13016
|
-
easing:
|
|
13016
|
+
easing: jn
|
|
13017
13017
|
}), e.start();
|
|
13018
13018
|
}), i = !0;
|
|
13019
13019
|
}
|
|
@@ -13501,7 +13501,7 @@ let bs = class {
|
|
|
13501
13501
|
/**
|
|
13502
13502
|
* @realsee/dnalogel 版本号
|
|
13503
13503
|
*/
|
|
13504
|
-
f(this, "VERSION", "3.73.
|
|
13504
|
+
f(this, "VERSION", "3.73.5");
|
|
13505
13505
|
f(this, "NAME");
|
|
13506
13506
|
f(this, "five");
|
|
13507
13507
|
f(this, "workUtil");
|
|
@@ -19024,7 +19024,7 @@ const s5 = () => {
|
|
|
19024
19024
|
};
|
|
19025
19025
|
function o5(n, t, e) {
|
|
19026
19026
|
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: p } = t, { left: g } = t, { top: m } = t, { createLabelInRoomChecker: v } = t;
|
|
19027
|
-
const A =
|
|
19027
|
+
const A = _n();
|
|
19028
19028
|
let P = 0, E = 0;
|
|
19029
19029
|
const I = () => A("mouseenter"), z = () => A("mouseleave"), D = (T) => {
|
|
19030
19030
|
e(8, P = T.detail);
|
|
@@ -21943,7 +21943,7 @@ var nv = function() {
|
|
|
21943
21943
|
},
|
|
21944
21944
|
generateTracks: function(b) {
|
|
21945
21945
|
var C = [], M = new ve(), k = new Ls(), S = new ve();
|
|
21946
|
-
if (b.transform && b.transform.decompose(M, k, S), M = M.toArray(), k = new
|
|
21946
|
+
if (b.transform && b.transform.decompose(M, k, S), M = M.toArray(), k = new ns().setFromQuaternion(k, b.eulerOrder).toArray(), S = S.toArray(), b.T !== void 0 && Object.keys(b.T.curves).length > 0) {
|
|
21947
21947
|
var L = this.generateVectorTrack(b.modelName, b.T.curves, M, "position");
|
|
21948
21948
|
L !== void 0 && C.push(L);
|
|
21949
21949
|
}
|
|
@@ -21975,8 +21975,8 @@ var nv = function() {
|
|
|
21975
21975
|
generateRotationTrack: function(b, C, M, k, S, L) {
|
|
21976
21976
|
C.x !== void 0 && (this.interpolateRotations(C.x), C.x.values = C.x.values.map($i.degToRad)), C.y !== void 0 && (this.interpolateRotations(C.y), C.y.values = C.y.values.map($i.degToRad)), C.z !== void 0 && (this.interpolateRotations(C.z), C.z.values = C.z.values.map($i.degToRad));
|
|
21977
21977
|
var N = this.getTimesForAllAxes(C), B = this.getKeyframeTrackValues(N, C, M);
|
|
21978
|
-
k !== void 0 && (k = k.map($i.degToRad), k.push(L), k = new
|
|
21979
|
-
for (var q = new Ls(), ie = new
|
|
21978
|
+
k !== void 0 && (k = k.map($i.degToRad), k.push(L), k = new ns().fromArray(k), k = new Ls().setFromEuler(k)), S !== void 0 && (S = S.map($i.degToRad), S.push(L), S = new ns().fromArray(S), S = new Ls().setFromEuler(S).inverse());
|
|
21979
|
+
for (var q = new Ls(), ie = new ns(), K = [], oe = 0; oe < B.length; oe += 3)
|
|
21980
21980
|
ie.set(B[oe], B[oe + 1], B[oe + 2], L), q.setFromEuler(ie), k !== void 0 && q.premultiply(k), S !== void 0 && q.multiply(S), q.toArray(K, oe / 3 * 4);
|
|
21981
21981
|
return new lb(b + ".quaternion", N, K);
|
|
21982
21982
|
},
|
|
@@ -22404,7 +22404,7 @@ var nv = function() {
|
|
|
22404
22404
|
var L = S * k.dataSize, N = L + k.dataSize;
|
|
22405
22405
|
return T(m, k.buffer, L, N);
|
|
22406
22406
|
}
|
|
22407
|
-
var A = new
|
|
22407
|
+
var A = new ns(), P = new ve();
|
|
22408
22408
|
function E(b) {
|
|
22409
22409
|
var C = new ot(), M = new ot(), k = new ot(), S = new ot(), L = new ot(), N = new ot(), B = new ot(), q = new ot(), ie = new ot(), K = new ot(), oe = new ot(), $ = b.inheritType ? b.inheritType : 0;
|
|
22410
22410
|
if (b.translation && C.setPosition(P.fromArray(b.translation)), b.preRotation) {
|
|
@@ -24541,7 +24541,7 @@ function vI(n, t) {
|
|
|
24541
24541
|
return n.x === t.x && n.y === t.y;
|
|
24542
24542
|
}
|
|
24543
24543
|
const ug = () => !1;
|
|
24544
|
-
class
|
|
24544
|
+
class os extends Yl {
|
|
24545
24545
|
constructor(e) {
|
|
24546
24546
|
super(e);
|
|
24547
24547
|
f(this, "type", "edit");
|
|
@@ -26271,7 +26271,7 @@ function ZI(n, t, e) {
|
|
|
26271
26271
|
v === "Edit" ? e(5, u = !0) : (a(null), e(5, u = !1));
|
|
26272
26272
|
}
|
|
26273
26273
|
function c() {
|
|
26274
|
-
i.controller instanceof
|
|
26274
|
+
i.controller instanceof os && i.controller.complete(), i.save({ mode: "Watch" });
|
|
26275
26275
|
}
|
|
26276
26276
|
function h(v) {
|
|
26277
26277
|
e(3, r = v.length > 0);
|
|
@@ -26918,9 +26918,9 @@ function a4(n, t, e) {
|
|
|
26918
26918
|
const u = () => {
|
|
26919
26919
|
i.getCurrentMode() !== "Edit" ? i.changeMode("Edit") : (m("add"), p());
|
|
26920
26920
|
}, p = () => {
|
|
26921
|
-
i.controller instanceof
|
|
26921
|
+
i.controller instanceof os && i.controller.selectPoint();
|
|
26922
26922
|
}, g = () => {
|
|
26923
|
-
i.controller instanceof
|
|
26923
|
+
i.controller instanceof os && i.controller.complete();
|
|
26924
26924
|
}, m = (b) => {
|
|
26925
26925
|
e(3, h = b);
|
|
26926
26926
|
}, v = () => {
|
|
@@ -27332,7 +27332,7 @@ class b4 extends bs {
|
|
|
27332
27332
|
var e, i, s, o;
|
|
27333
27333
|
this.hasOpen = !1, this.state.enabled = !1, this.container.style.visibility = "hidden", this.container.style.opacity = "0", (e = this.controller) == null || e.dispose(), (i = this.useUIController) == null || i.hide(), (s = this.useGuideController) == null || s.hide(), (o = this.shortcutKeyController) == null || o.dispose(), this.controller = null, this.five.helperVisible = !0, this.five.scene.remove(this.group), this.five.needsRender = !0, this.hook.emit("disable", !0);
|
|
27334
27334
|
});
|
|
27335
|
-
f(this, "getCurrentMode", () => this.controller instanceof
|
|
27335
|
+
f(this, "getCurrentMode", () => this.controller instanceof os ? "Edit" : this.controller instanceof mg ? "Watch" : this.controller instanceof Er ? "Mixed" : this.controller instanceof fg ? "View" : null);
|
|
27336
27336
|
/** 变更场景
|
|
27337
27337
|
* @description 如果从编辑场景改变到观看场景,不会自动保存,默认丢弃所有改动
|
|
27338
27338
|
*/
|
|
@@ -27344,7 +27344,7 @@ class b4 extends bs {
|
|
|
27344
27344
|
const i = {
|
|
27345
27345
|
View: fg,
|
|
27346
27346
|
Watch: mg,
|
|
27347
|
-
Edit:
|
|
27347
|
+
Edit: os,
|
|
27348
27348
|
Mixed: Er
|
|
27349
27349
|
};
|
|
27350
27350
|
if (!i[e])
|
|
@@ -27423,7 +27423,7 @@ class b4 extends bs {
|
|
|
27423
27423
|
}
|
|
27424
27424
|
/** 撤销编辑 */
|
|
27425
27425
|
revoke() {
|
|
27426
|
-
this.controller instanceof
|
|
27426
|
+
this.controller instanceof os && this.controller.revoke();
|
|
27427
27427
|
}
|
|
27428
27428
|
removePolyline(e) {
|
|
27429
27429
|
this.model.removePolyline(e);
|
|
@@ -27457,10 +27457,10 @@ class b4 extends bs {
|
|
|
27457
27457
|
*/
|
|
27458
27458
|
save(e) {
|
|
27459
27459
|
var o;
|
|
27460
|
-
if (!(this.controller instanceof
|
|
27460
|
+
if (!(this.controller instanceof os) && !(this.controller instanceof Er))
|
|
27461
27461
|
return this;
|
|
27462
27462
|
const i = (o = e == null ? void 0 : e.mode) != null ? o : "View", s = this.controller.model.areas;
|
|
27463
|
-
return this.controller instanceof
|
|
27463
|
+
return this.controller instanceof os ? this.controller.complete() : s.forEach((r) => {
|
|
27464
27464
|
r.showArea(), this.model.addArea(r);
|
|
27465
27465
|
}), this.changeMode(i), this;
|
|
27466
27466
|
}
|
|
@@ -27547,7 +27547,7 @@ class dn extends Ai {
|
|
|
27547
27547
|
f(this, "_onHidden", () => {
|
|
27548
27548
|
this.dom && (this.dom.container.style.display = "none");
|
|
27549
27549
|
});
|
|
27550
|
-
const d = e != null ? e : {}, { point: i } = d, s =
|
|
27550
|
+
const d = e != null ? e : {}, { point: i } = d, s = Kn(d, ["point"]);
|
|
27551
27551
|
this.paramsStyle = s != null ? s : {};
|
|
27552
27552
|
const o = new y.BufferGeometry();
|
|
27553
27553
|
o.setAttribute("position", new y.Float32BufferAttribute([0, 0, 0], 3));
|
|
@@ -31206,7 +31206,7 @@ class R8 extends bs {
|
|
|
31206
31206
|
z.left = N, z.top = B, z.inSight = q && S < Math.PI / 2, z.cameraToward = L8(this.five), q ? l.push({ disFromCameraToLabel: C, left: N, top: B, index: D }) : z.transform = "translate(-50%, -50%)";
|
|
31207
31207
|
} else
|
|
31208
31208
|
z.inSight = !1;
|
|
31209
|
-
const O = z, { svelteApp: j } = O, T =
|
|
31209
|
+
const O = z, { svelteApp: j } = O, T = Kn(O, ["svelteApp"]);
|
|
31210
31210
|
(b = z.svelteApp) == null || b.$set({ props: T });
|
|
31211
31211
|
}), l.length > 1) {
|
|
31212
31212
|
let z = 0;
|
|
@@ -31245,7 +31245,7 @@ class R8 extends bs {
|
|
|
31245
31245
|
if (a > 0) {
|
|
31246
31246
|
const h = new ve(0, 0, -1), d = r.clone(), u = new Ls();
|
|
31247
31247
|
u.setFromUnitVectors(h, d);
|
|
31248
|
-
const p = new
|
|
31248
|
+
const p = new ns();
|
|
31249
31249
|
p.setFromQuaternion(u, "YXZ"), l.longitude = p.y;
|
|
31250
31250
|
}
|
|
31251
31251
|
this.five.emit("wantsToMoveToPano", o, {}, !0) || this.five.moveToPano(o, { longitude: l.longitude });
|
|
@@ -31273,7 +31273,7 @@ class R8 extends bs {
|
|
|
31273
31273
|
m < c && (c = m, h = g);
|
|
31274
31274
|
}), h && (l.y = h.y + 0.01);
|
|
31275
31275
|
const d = new ve(l.x, l.y, l.z);
|
|
31276
|
-
d.add(new ve(-0.2, 1.8, 0).applyEuler(new
|
|
31276
|
+
d.add(new ve(-0.2, 1.8, 0).applyEuler(new ns(0, r.rad, 0))), this.doorLabels.push({
|
|
31277
31277
|
roomName: r.name,
|
|
31278
31278
|
name: r.name,
|
|
31279
31279
|
position: d,
|
|
@@ -32572,7 +32572,7 @@ class ME extends bs {
|
|
|
32572
32572
|
const l = (P = e.initialConfig) != null ? P : {}, c = it({}, _v, this.config.globalConfig, ...Object.values(o)), h = it({}, c, l), d = {}, u = Object.values(Gt.Mode);
|
|
32573
32573
|
El(r).forEach(([E, I]) => {
|
|
32574
32574
|
u.forEach((z) => {
|
|
32575
|
-
(E === "PanoramaLike" &&
|
|
32575
|
+
(E === "PanoramaLike" && ls(z) || E === "ModelLike" && Ci(z)) && (d[z] = it({}, c, ...Object.values(I), l, { _isMerged: !0 }));
|
|
32576
32576
|
});
|
|
32577
32577
|
}), El(a).forEach(([E, I]) => {
|
|
32578
32578
|
const z = d[E];
|
|
@@ -32720,7 +32720,7 @@ function Dc(n, t, e) {
|
|
|
32720
32720
|
const a = (A = n.initialConfig) != null ? A : {}, l = it({}, _v, t.globalConfig, ...Object.values(s)), c = it({}, l, a), h = {}, d = Object.values(Gt.Mode);
|
|
32721
32721
|
El(o).forEach(([P, E]) => {
|
|
32722
32722
|
d.forEach((I) => {
|
|
32723
|
-
(P === "PanoramaLike" &&
|
|
32723
|
+
(P === "PanoramaLike" && ls(I) || P === "ModelLike" && Ci(I)) && (h[I] = it({}, l, ...Object.values(E), a, { _isMerged: !0 }));
|
|
32724
32724
|
});
|
|
32725
32725
|
}), El(r).forEach(([P, E]) => {
|
|
32726
32726
|
const I = h[P];
|
|
@@ -33047,7 +33047,7 @@ class Gd {
|
|
|
33047
33047
|
getSquaredDistance() {
|
|
33048
33048
|
const t = this.five.camera.position;
|
|
33049
33049
|
let e;
|
|
33050
|
-
return Array.isArray(this.position[0]) ? e = this.position[0] : e = this.position,
|
|
33050
|
+
return Array.isArray(this.position[0]) ? e = this.position[0] : e = this.position, Jn(e[0] - t.x, 2) + Jn(e[1] - t.y, 2) + Jn(e[2] - t.z, 2);
|
|
33051
33051
|
}
|
|
33052
33052
|
getVisible(t) {
|
|
33053
33053
|
if (!this.enabled || !this.plugin.state.enabled || !this.fiveUtil.model)
|
|
@@ -33132,11 +33132,11 @@ class Gd {
|
|
|
33132
33132
|
if ((g == null ? void 0 : g.value) === !1)
|
|
33133
33133
|
return g;
|
|
33134
33134
|
if (l.followModelVisibility === !0 && ["poincare", "aerophoto", "sand"].includes(this.workUtil.fromType) && (s === "Floorplan" || s === "Mapview")) {
|
|
33135
|
-
const h = this.computeVisibleByFloorIndex(), { value: m } = h, v =
|
|
33135
|
+
const h = this.computeVisibleByFloorIndex(), { value: m } = h, v = Kn(h, ["value"]);
|
|
33136
33136
|
if (m === !1)
|
|
33137
33137
|
return F({ value: !1, checkedList: o, reason: "followModelVisibility check failed" }, v);
|
|
33138
33138
|
}
|
|
33139
|
-
if (
|
|
33139
|
+
if (ls(s) && l.visiblePanoIndex !== void 0 && l.visiblePanoIndex !== "all" && i !== void 0) {
|
|
33140
33140
|
if (o.push("visiblePanoIndex"), Array.isArray(l.visiblePanoIndex) && !l.visiblePanoIndex.includes(i))
|
|
33141
33141
|
return {
|
|
33142
33142
|
value: !1,
|
|
@@ -33196,7 +33196,7 @@ class Gd {
|
|
|
33196
33196
|
if (o === "ModelLike")
|
|
33197
33197
|
return Ci(e);
|
|
33198
33198
|
if (o === "PanoramaLike")
|
|
33199
|
-
return !
|
|
33199
|
+
return !ls(e);
|
|
33200
33200
|
if (o === "all")
|
|
33201
33201
|
return !0;
|
|
33202
33202
|
if (typeof o == "string")
|
|
@@ -33222,7 +33222,7 @@ class Gd {
|
|
|
33222
33222
|
/** 通过射线检测标签可用性 */
|
|
33223
33223
|
computeVisibleByIntersect(t) {
|
|
33224
33224
|
var l, c, h, d;
|
|
33225
|
-
const e = qs(qs((l = this.getConfig().visibleConfig) != null ? l : {}).intersectRaycaster), i = t != null ? t : this.five.getCurrentState().panoIndex, s =
|
|
33225
|
+
const e = qs(qs((l = this.getConfig().visibleConfig) != null ? l : {}).intersectRaycaster), i = t != null ? t : this.five.getCurrentState().panoIndex, s = ls(this.five.getCurrentState().mode) ? this.workUtil.getObserverPosition(i) : this.five.camera.position;
|
|
33226
33226
|
if (s === void 0)
|
|
33227
33227
|
return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: i } };
|
|
33228
33228
|
const o = ms(
|
|
@@ -33522,7 +33522,7 @@ class TE extends Gd {
|
|
|
33522
33522
|
}
|
|
33523
33523
|
}
|
|
33524
33524
|
const Fv = 1, lp = `CSS3DObject@${Fv}`, LE = 216e-5, zE = 3e-3;
|
|
33525
|
-
class Hv extends
|
|
33525
|
+
class Hv extends On {
|
|
33526
33526
|
constructor(e) {
|
|
33527
33527
|
var z, D, j, T, O;
|
|
33528
33528
|
if (vi(e.cornerPoints) && vi(e.width))
|
|
@@ -33753,7 +33753,7 @@ function hp(n) {
|
|
|
33753
33753
|
/*inDelay*/
|
|
33754
33754
|
n[0]
|
|
33755
33755
|
),
|
|
33756
|
-
easing:
|
|
33756
|
+
easing: jn
|
|
33757
33757
|
}), i.start());
|
|
33758
33758
|
}), o = !0);
|
|
33759
33759
|
},
|
|
@@ -33767,7 +33767,7 @@ function hp(n) {
|
|
|
33767
33767
|
/*outDelay*/
|
|
33768
33768
|
n[1]
|
|
33769
33769
|
),
|
|
33770
|
-
easing:
|
|
33770
|
+
easing: jn
|
|
33771
33771
|
})), o = !1;
|
|
33772
33772
|
},
|
|
33773
33773
|
d(r) {
|
|
@@ -34390,7 +34390,7 @@ function qE(n) {
|
|
|
34390
34390
|
function JE(n, t, e) {
|
|
34391
34391
|
let { direction: i = "right" } = t, { visible: s = !0 } = t, { duration: o = 0 } = t, { inDelay: r = 0 } = t, { outDelay: a = 0 } = t;
|
|
34392
34392
|
function l(c) {
|
|
34393
|
-
|
|
34393
|
+
Rn.call(this, n, c);
|
|
34394
34394
|
}
|
|
34395
34395
|
return n.$$set = (c) => {
|
|
34396
34396
|
"direction" in c && e(0, i = c.direction), "visible" in c && e(1, s = c.visible), "duration" in c && e(2, o = c.duration), "inDelay" in c && e(3, r = c.inDelay), "outDelay" in c && e(4, a = c.outDelay);
|
|
@@ -35506,7 +35506,7 @@ function kM(n) {
|
|
|
35506
35506
|
function xM(n, t, e) {
|
|
35507
35507
|
let { active: i = !1 } = t;
|
|
35508
35508
|
function s(o) {
|
|
35509
|
-
|
|
35509
|
+
Rn.call(this, n, o);
|
|
35510
35510
|
}
|
|
35511
35511
|
return n.$$set = (o) => {
|
|
35512
35512
|
"active" in o && e(0, i = o.active);
|
|
@@ -35624,7 +35624,7 @@ function TM(n) {
|
|
|
35624
35624
|
};
|
|
35625
35625
|
}
|
|
35626
35626
|
function LM(n, t, e) {
|
|
35627
|
-
const i =
|
|
35627
|
+
const i = _n();
|
|
35628
35628
|
let { pagesCount: s = 1 } = t, { currentPageIndex: o = 0 } = t;
|
|
35629
35629
|
function r(l) {
|
|
35630
35630
|
i("pageChange", l);
|
|
@@ -35703,7 +35703,7 @@ function jM(n) {
|
|
|
35703
35703
|
function RM(n, t, e) {
|
|
35704
35704
|
let { direction: i = ps } = t, { disabled: s = !1 } = t;
|
|
35705
35705
|
function o(r) {
|
|
35706
|
-
|
|
35706
|
+
Rn.call(this, n, r);
|
|
35707
35707
|
}
|
|
35708
35708
|
return n.$$set = (r) => {
|
|
35709
35709
|
"direction" in r && e(0, i = r.direction), "disabled" in r && e(1, s = r.disabled);
|
|
@@ -36409,7 +36409,7 @@ var Ua = uk, kl = {}, fk = {
|
|
|
36409
36409
|
return x ? "Symbol(src)_1." + x : "";
|
|
36410
36410
|
}(), rt = Ye.toString, at = st.hasOwnProperty, _t = st.toString, Xi = RegExp(
|
|
36411
36411
|
"^" + rt.call(at).replace(N, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
36412
|
-
), Qt = Me ? ue.Buffer : void 0, hi = ue.Symbol, bi = ue.Uint8Array, lt = Ie(Object.getPrototypeOf, Object), Xt = Object.create, Yt = st.propertyIsEnumerable, cr = Xe.splice, ws = Object.getOwnPropertySymbols,
|
|
36412
|
+
), Qt = Me ? ue.Buffer : void 0, hi = ue.Symbol, bi = ue.Uint8Array, lt = Ie(Object.getPrototypeOf, Object), Xt = Object.create, Yt = st.propertyIsEnumerable, cr = Xe.splice, ws = Object.getOwnPropertySymbols, Bn = Qt ? Qt.isBuffer : void 0, io = Ie(Object.keys, Object), Vn = U(ue, "DataView"), Si = U(ue, "Map"), yi = U(ue, "Promise"), Fn = U(ue, "Set"), Hn = U(ue, "WeakMap"), Yi = U(Object, "create"), gn = si(Vn), pn = si(Si), Ps = si(yi), Cs = si(Fn), Nn = si(Hn), Zi = hi ? hi.prototype : void 0, no = Zi ? Zi.valueOf : void 0;
|
|
36413
36413
|
function _i(x) {
|
|
36414
36414
|
var G = -1, J = x ? x.length : 0;
|
|
36415
36415
|
for (this.clear(); ++G < J; ) {
|
|
@@ -36417,7 +36417,7 @@ var Ua = uk, kl = {}, fk = {
|
|
|
36417
36417
|
this.set(ce[0], ce[1]);
|
|
36418
36418
|
}
|
|
36419
36419
|
}
|
|
36420
|
-
function
|
|
36420
|
+
function Gn() {
|
|
36421
36421
|
this.__data__ = Yi ? Yi(null) : {};
|
|
36422
36422
|
}
|
|
36423
36423
|
function hr(x) {
|
|
@@ -36439,7 +36439,7 @@ var Ua = uk, kl = {}, fk = {
|
|
|
36439
36439
|
var J = this.__data__;
|
|
36440
36440
|
return J[x] = Yi && G === void 0 ? i : G, this;
|
|
36441
36441
|
}
|
|
36442
|
-
_i.prototype.clear =
|
|
36442
|
+
_i.prototype.clear = Gn, _i.prototype.delete = hr, _i.prototype.get = dr, _i.prototype.has = Is, _i.prototype.set = mn;
|
|
36443
36443
|
function Lt(x) {
|
|
36444
36444
|
var G = -1, J = x ? x.length : 0;
|
|
36445
36445
|
for (this.clear(); ++G < J; ) {
|
|
@@ -36492,10 +36492,10 @@ var Ua = uk, kl = {}, fk = {
|
|
|
36492
36492
|
function An(x) {
|
|
36493
36493
|
return V(this, x).has(x);
|
|
36494
36494
|
}
|
|
36495
|
-
function
|
|
36495
|
+
function Wn(x, G) {
|
|
36496
36496
|
return V(this, x).set(x, G), this;
|
|
36497
36497
|
}
|
|
36498
|
-
zt.prototype.clear = Es, zt.prototype.delete = Bi, zt.prototype.get = vn, zt.prototype.has = An, zt.prototype.set =
|
|
36498
|
+
zt.prototype.clear = Es, zt.prototype.delete = Bi, zt.prototype.get = vn, zt.prototype.has = An, zt.prototype.set = Wn;
|
|
36499
36499
|
function Bt(x) {
|
|
36500
36500
|
this.__data__ = new Lt(x);
|
|
36501
36501
|
}
|
|
@@ -36505,7 +36505,7 @@ var Ua = uk, kl = {}, fk = {
|
|
|
36505
36505
|
function gr(x) {
|
|
36506
36506
|
return this.__data__.delete(x);
|
|
36507
36507
|
}
|
|
36508
|
-
function
|
|
36508
|
+
function Un(x) {
|
|
36509
36509
|
return this.__data__.get(x);
|
|
36510
36510
|
}
|
|
36511
36511
|
function Zt(x) {
|
|
@@ -36521,7 +36521,7 @@ var Ua = uk, kl = {}, fk = {
|
|
|
36521
36521
|
}
|
|
36522
36522
|
return J.set(x, G), this;
|
|
36523
36523
|
}
|
|
36524
|
-
Bt.prototype.clear = fr, Bt.prototype.delete = gr, Bt.prototype.get =
|
|
36524
|
+
Bt.prototype.clear = fr, Bt.prototype.delete = gr, Bt.prototype.get = Un, Bt.prototype.has = Zt, Bt.prototype.set = qi;
|
|
36525
36525
|
function ei(x, G) {
|
|
36526
36526
|
var J = Ar(x) || uo(x) ? Re(x.length, String) : [], ce = J.length, We = !!ce;
|
|
36527
36527
|
for (var He in x)
|
|
@@ -36539,7 +36539,7 @@ var Ua = uk, kl = {}, fk = {
|
|
|
36539
36539
|
return -1;
|
|
36540
36540
|
}
|
|
36541
36541
|
function Et(x, G) {
|
|
36542
|
-
return x &&
|
|
36542
|
+
return x && Zn(G, yr(G), x);
|
|
36543
36543
|
}
|
|
36544
36544
|
function ti(x, G, J, ce, We, He, qe) {
|
|
36545
36545
|
var et;
|
|
@@ -36583,7 +36583,7 @@ var Ua = uk, kl = {}, fk = {
|
|
|
36583
36583
|
var ce = G(x);
|
|
36584
36584
|
return Ar(x) ? ce : ee(ce, J(x));
|
|
36585
36585
|
}
|
|
36586
|
-
function
|
|
36586
|
+
function Qn(x) {
|
|
36587
36587
|
return _t.call(x);
|
|
36588
36588
|
}
|
|
36589
36589
|
function ii(x) {
|
|
@@ -36592,7 +36592,7 @@ var Ua = uk, kl = {}, fk = {
|
|
|
36592
36592
|
var G = br(x) || Ve(x) ? Xi : q;
|
|
36593
36593
|
return G.test(si(x));
|
|
36594
36594
|
}
|
|
36595
|
-
function
|
|
36595
|
+
function Xn(x) {
|
|
36596
36596
|
if (!ni(x))
|
|
36597
36597
|
return io(x);
|
|
36598
36598
|
var G = [];
|
|
@@ -36614,7 +36614,7 @@ var Ua = uk, kl = {}, fk = {
|
|
|
36614
36614
|
var J = G ? bn(x.buffer) : x.buffer;
|
|
36615
36615
|
return new x.constructor(J, x.byteOffset, x.byteLength);
|
|
36616
36616
|
}
|
|
36617
|
-
function
|
|
36617
|
+
function Yn(x, G, J) {
|
|
36618
36618
|
var ce = G ? J(me(x), !0) : me(x);
|
|
36619
36619
|
return Te(ce, de, new x.constructor());
|
|
36620
36620
|
}
|
|
@@ -36639,7 +36639,7 @@ var Ua = uk, kl = {}, fk = {
|
|
|
36639
36639
|
G[J] = x[J];
|
|
36640
36640
|
return G;
|
|
36641
36641
|
}
|
|
36642
|
-
function
|
|
36642
|
+
function Zn(x, G, J, ce) {
|
|
36643
36643
|
J || (J = {});
|
|
36644
36644
|
for (var We = -1, He = G.length; ++We < He; ) {
|
|
36645
36645
|
var qe = G[We], et = ce ? ce(J[qe], x[qe], qe, J, x) : void 0;
|
|
@@ -36648,7 +36648,7 @@ var Ua = uk, kl = {}, fk = {
|
|
|
36648
36648
|
return J;
|
|
36649
36649
|
}
|
|
36650
36650
|
function mr(x, G) {
|
|
36651
|
-
return
|
|
36651
|
+
return Zn(x, Z(x), G);
|
|
36652
36652
|
}
|
|
36653
36653
|
function vr(x) {
|
|
36654
36654
|
return co(x, yr, Z);
|
|
@@ -36661,8 +36661,8 @@ var Ua = uk, kl = {}, fk = {
|
|
|
36661
36661
|
var J = Ae(x, G);
|
|
36662
36662
|
return ii(J) ? J : void 0;
|
|
36663
36663
|
}
|
|
36664
|
-
var Z = ws ? Ie(ws, Object) : sc, ne =
|
|
36665
|
-
(
|
|
36664
|
+
var Z = ws ? Ie(ws, Object) : sc, ne = Qn;
|
|
36665
|
+
(Vn && ne(new Vn(new ArrayBuffer(1))) != D || Si && ne(new Si()) != u || yi && ne(yi.resolve()) != m || Fn && ne(new Fn()) != A || Hn && ne(new Hn()) != I) && (ne = function(x) {
|
|
36666
36666
|
var G = _t.call(x), J = G == g ? x.constructor : void 0, ce = J ? si(J) : void 0;
|
|
36667
36667
|
if (ce)
|
|
36668
36668
|
switch (ce) {
|
|
@@ -36674,7 +36674,7 @@ var Ua = uk, kl = {}, fk = {
|
|
|
36674
36674
|
return m;
|
|
36675
36675
|
case Cs:
|
|
36676
36676
|
return A;
|
|
36677
|
-
case
|
|
36677
|
+
case Nn:
|
|
36678
36678
|
return I;
|
|
36679
36679
|
}
|
|
36680
36680
|
return G;
|
|
@@ -36707,7 +36707,7 @@ var Ua = uk, kl = {}, fk = {
|
|
|
36707
36707
|
case L:
|
|
36708
36708
|
return ho(x, ce);
|
|
36709
36709
|
case u:
|
|
36710
|
-
return
|
|
36710
|
+
return Yn(x, ce, J);
|
|
36711
36711
|
case p:
|
|
36712
36712
|
case P:
|
|
36713
36713
|
return new We(x);
|
|
@@ -36762,7 +36762,7 @@ var Ua = uk, kl = {}, fk = {
|
|
|
36762
36762
|
function nc(x) {
|
|
36763
36763
|
return Ia(x) && fo(x);
|
|
36764
36764
|
}
|
|
36765
|
-
var Pa =
|
|
36765
|
+
var Pa = Bn || oc;
|
|
36766
36766
|
function br(x) {
|
|
36767
36767
|
var G = Ki(x) ? _t.call(x) : "";
|
|
36768
36768
|
return G == h || G == d;
|
|
@@ -36778,7 +36778,7 @@ var Ua = uk, kl = {}, fk = {
|
|
|
36778
36778
|
return !!x && typeof x == "object";
|
|
36779
36779
|
}
|
|
36780
36780
|
function yr(x) {
|
|
36781
|
-
return fo(x) ? ei(x) :
|
|
36781
|
+
return fo(x) ? ei(x) : Xn(x);
|
|
36782
36782
|
}
|
|
36783
36783
|
function sc() {
|
|
36784
36784
|
return [];
|
|
@@ -36862,7 +36862,7 @@ var xl = {}, pk = {
|
|
|
36862
36862
|
return x ? "Symbol(src)_1." + x : "";
|
|
36863
36863
|
}(), Yt = Qt.toString, cr = RegExp(
|
|
36864
36864
|
"^" + bi.call(lt).replace($, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
36865
|
-
), ws = Te ? le.Buffer : void 0,
|
|
36865
|
+
), ws = Te ? le.Buffer : void 0, Bn = le.Symbol, io = le.Uint8Array, Vn = Qt.propertyIsEnumerable, Si = _t.splice, yi = Bn ? Bn.toStringTag : void 0, Fn = Object.getOwnPropertySymbols, Hn = ws ? ws.isBuffer : void 0, Yi = rt(Object.keys, Object), gn = Z(le, "DataView"), pn = Z(le, "Map"), Ps = Z(le, "Promise"), Cs = Z(le, "Set"), Nn = Z(le, "WeakMap"), Zi = Z(Object, "create"), no = si(gn), _i = si(pn), Gn = si(Ps), hr = si(Cs), dr = si(Nn), Is = Bn ? Bn.prototype : void 0, mn = Is ? Is.valueOf : void 0;
|
|
36866
36866
|
function Lt(x) {
|
|
36867
36867
|
var G = -1, J = x == null ? 0 : x.length;
|
|
36868
36868
|
for (this.clear(); ++G < J; ) {
|
|
@@ -36918,11 +36918,11 @@ var xl = {}, pk = {
|
|
|
36918
36918
|
function An(x) {
|
|
36919
36919
|
return Ji(this.__data__, x) > -1;
|
|
36920
36920
|
}
|
|
36921
|
-
function
|
|
36921
|
+
function Wn(x, G) {
|
|
36922
36922
|
var J = this.__data__, ce = Ji(J, x);
|
|
36923
36923
|
return ce < 0 ? (++this.size, J.push([x, G])) : J[ce][1] = G, this;
|
|
36924
36924
|
}
|
|
36925
|
-
zt.prototype.clear = Es, zt.prototype.delete = Bi, zt.prototype.get = vn, zt.prototype.has = An, zt.prototype.set =
|
|
36925
|
+
zt.prototype.clear = Es, zt.prototype.delete = Bi, zt.prototype.get = vn, zt.prototype.has = An, zt.prototype.set = Wn;
|
|
36926
36926
|
function Bt(x) {
|
|
36927
36927
|
var G = -1, J = x == null ? 0 : x.length;
|
|
36928
36928
|
for (this.clear(); ++G < J; ) {
|
|
@@ -36941,7 +36941,7 @@ var xl = {}, pk = {
|
|
|
36941
36941
|
var G = U(this, x).delete(x);
|
|
36942
36942
|
return this.size -= G ? 1 : 0, G;
|
|
36943
36943
|
}
|
|
36944
|
-
function
|
|
36944
|
+
function Un(x) {
|
|
36945
36945
|
return U(this, x).get(x);
|
|
36946
36946
|
}
|
|
36947
36947
|
function Zt(x) {
|
|
@@ -36951,7 +36951,7 @@ var xl = {}, pk = {
|
|
|
36951
36951
|
var J = U(this, x), ce = J.size;
|
|
36952
36952
|
return J.set(x, G), this.size += J.size == ce ? 0 : 1, this;
|
|
36953
36953
|
}
|
|
36954
|
-
Bt.prototype.clear = fr, Bt.prototype.delete = gr, Bt.prototype.get =
|
|
36954
|
+
Bt.prototype.clear = fr, Bt.prototype.delete = gr, Bt.prototype.get = Un, Bt.prototype.has = Zt, Bt.prototype.set = qi;
|
|
36955
36955
|
function ei(x) {
|
|
36956
36956
|
var G = -1, J = x == null ? 0 : x.length;
|
|
36957
36957
|
for (this.__data__ = new Bt(); ++G < J; )
|
|
@@ -36978,7 +36978,7 @@ var xl = {}, pk = {
|
|
|
36978
36978
|
function co(x) {
|
|
36979
36979
|
return this.__data__.get(x);
|
|
36980
36980
|
}
|
|
36981
|
-
function
|
|
36981
|
+
function Qn(x) {
|
|
36982
36982
|
return this.__data__.has(x);
|
|
36983
36983
|
}
|
|
36984
36984
|
function ii(x, G) {
|
|
@@ -36991,8 +36991,8 @@ var xl = {}, pk = {
|
|
|
36991
36991
|
}
|
|
36992
36992
|
return J.set(x, G), this.size = J.size, this;
|
|
36993
36993
|
}
|
|
36994
|
-
Et.prototype.clear = ti, Et.prototype.delete = lo, Et.prototype.get = co, Et.prototype.has =
|
|
36995
|
-
function
|
|
36994
|
+
Et.prototype.clear = ti, Et.prototype.delete = lo, Et.prototype.get = co, Et.prototype.has = Qn, Et.prototype.set = ii;
|
|
36995
|
+
function Xn(x, G) {
|
|
36996
36996
|
var J = uo(x), ce = !J && wa(x), We = !J && !ce && fo(x), He = !J && !ce && !We && Ia(x), qe = J || ce || We || He, et = qe ? Xe(x.length, String) : [], xt = et.length;
|
|
36997
36997
|
for (var nt in x)
|
|
36998
36998
|
(G || lt.call(x, nt)) && !(qe && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
@@ -37015,7 +37015,7 @@ var xl = {}, pk = {
|
|
|
37015
37015
|
function Vi(x) {
|
|
37016
37016
|
return x == null ? x === void 0 ? O : A : yi && yi in Object(x) ? ne(x) : ni(x);
|
|
37017
37017
|
}
|
|
37018
|
-
function
|
|
37018
|
+
function Yn(x) {
|
|
37019
37019
|
return Ki(x) && Vi(x) == a;
|
|
37020
37020
|
}
|
|
37021
37021
|
function yn(x, G, J, ce, We) {
|
|
@@ -37031,12 +37031,12 @@ var xl = {}, pk = {
|
|
|
37031
37031
|
qe = !0, qt = !1;
|
|
37032
37032
|
}
|
|
37033
37033
|
if (jt && !qt)
|
|
37034
|
-
return He || (He = new Et()), qe || Ia(x) ?
|
|
37034
|
+
return He || (He = new Et()), qe || Ia(x) ? Zn(x, G, J, ce, We, He) : mr(x, G, xt, J, ce, We, He);
|
|
37035
37035
|
if (!(J & s)) {
|
|
37036
37036
|
var Jt = qt && lt.call(x, "__wrapped__"), Ft = ui && lt.call(G, "__wrapped__");
|
|
37037
37037
|
if (Jt || Ft) {
|
|
37038
|
-
var
|
|
37039
|
-
return He || (He = new Et()), We(
|
|
37038
|
+
var qn = Jt ? x.value() : x, wn = Ft ? G.value() : G;
|
|
37039
|
+
return He || (He = new Et()), We(qn, wn, J, ce, He);
|
|
37040
37040
|
}
|
|
37041
37041
|
}
|
|
37042
37042
|
return jt ? (He || (He = new Et()), vr(x, G, J, ce, We, He)) : !1;
|
|
@@ -37058,7 +37058,7 @@ var xl = {}, pk = {
|
|
|
37058
37058
|
lt.call(x, J) && J != "constructor" && G.push(J);
|
|
37059
37059
|
return G;
|
|
37060
37060
|
}
|
|
37061
|
-
function
|
|
37061
|
+
function Zn(x, G, J, ce, We, He) {
|
|
37062
37062
|
var qe = J & s, et = x.length, xt = G.length;
|
|
37063
37063
|
if (et != xt && !(qe && xt > et))
|
|
37064
37064
|
return !1;
|
|
@@ -37069,9 +37069,9 @@ var xl = {}, pk = {
|
|
|
37069
37069
|
for (He.set(x, G), He.set(G, x); ++qt < et; ) {
|
|
37070
37070
|
var Jt = x[qt], Ft = G[qt];
|
|
37071
37071
|
if (ce)
|
|
37072
|
-
var
|
|
37073
|
-
if (
|
|
37074
|
-
if (
|
|
37072
|
+
var qn = qe ? ce(Ft, Jt, qt, G, x, He) : ce(Jt, Ft, qt, x, G, He);
|
|
37073
|
+
if (qn !== void 0) {
|
|
37074
|
+
if (qn)
|
|
37075
37075
|
continue;
|
|
37076
37076
|
ui = !1;
|
|
37077
37077
|
break;
|
|
@@ -37118,7 +37118,7 @@ var xl = {}, pk = {
|
|
|
37118
37118
|
if (nt)
|
|
37119
37119
|
return nt == G;
|
|
37120
37120
|
ce |= o, qe.set(x, G);
|
|
37121
|
-
var qt =
|
|
37121
|
+
var qt = Zn(et(x), et(G), ce, We, He, qe);
|
|
37122
37122
|
return qe.delete(x), qt;
|
|
37123
37123
|
case T:
|
|
37124
37124
|
if (mn)
|
|
@@ -37140,7 +37140,7 @@ var xl = {}, pk = {
|
|
|
37140
37140
|
return Jt == G;
|
|
37141
37141
|
var Ft = !0;
|
|
37142
37142
|
He.set(x, G), He.set(G, x);
|
|
37143
|
-
for (var
|
|
37143
|
+
for (var qn = qe; ++ui < xt; ) {
|
|
37144
37144
|
jt = et[ui];
|
|
37145
37145
|
var wn = x[jt], ks = G[jt];
|
|
37146
37146
|
if (ce)
|
|
@@ -37149,9 +37149,9 @@ var xl = {}, pk = {
|
|
|
37149
37149
|
Ft = !1;
|
|
37150
37150
|
break;
|
|
37151
37151
|
}
|
|
37152
|
-
|
|
37152
|
+
qn || (qn = jt == "constructor");
|
|
37153
37153
|
}
|
|
37154
|
-
if (Ft && !
|
|
37154
|
+
if (Ft && !qn) {
|
|
37155
37155
|
var Ea = x.constructor, Ma = G.constructor;
|
|
37156
37156
|
Ea != Ma && "constructor" in x && "constructor" in G && !(typeof Ea == "function" && Ea instanceof Ea && typeof Ma == "function" && Ma instanceof Ma) && (Ft = !1);
|
|
37157
37157
|
}
|
|
@@ -37178,12 +37178,12 @@ var xl = {}, pk = {
|
|
|
37178
37178
|
var We = Yt.call(x);
|
|
37179
37179
|
return ce && (G ? x[yi] = J : delete x[yi]), We;
|
|
37180
37180
|
}
|
|
37181
|
-
var be =
|
|
37182
|
-
return x == null ? [] : (x = Object(x), me(
|
|
37183
|
-
return
|
|
37181
|
+
var be = Fn ? function(x) {
|
|
37182
|
+
return x == null ? [] : (x = Object(x), me(Fn(x), function(G) {
|
|
37183
|
+
return Vn.call(x, G);
|
|
37184
37184
|
}));
|
|
37185
37185
|
} : sc, ze = Vi;
|
|
37186
|
-
(gn && ze(new gn(new ArrayBuffer(1))) != M || pn && ze(new pn()) != m || Ps && ze(Ps.resolve()) != E || Cs && ze(new Cs()) != D ||
|
|
37186
|
+
(gn && ze(new gn(new ArrayBuffer(1))) != M || pn && ze(new pn()) != m || Ps && ze(Ps.resolve()) != E || Cs && ze(new Cs()) != D || Nn && ze(new Nn()) != b) && (ze = function(x) {
|
|
37187
37187
|
var G = Vi(x), J = G == P ? x.constructor : void 0, ce = J ? si(J) : "";
|
|
37188
37188
|
if (ce)
|
|
37189
37189
|
switch (ce) {
|
|
@@ -37191,7 +37191,7 @@ var xl = {}, pk = {
|
|
|
37191
37191
|
return M;
|
|
37192
37192
|
case _i:
|
|
37193
37193
|
return m;
|
|
37194
|
-
case
|
|
37194
|
+
case Gn:
|
|
37195
37195
|
return E;
|
|
37196
37196
|
case hr:
|
|
37197
37197
|
return D;
|
|
@@ -37233,15 +37233,15 @@ var xl = {}, pk = {
|
|
|
37233
37233
|
function ya(x, G) {
|
|
37234
37234
|
return x === G || x !== x && G !== G;
|
|
37235
37235
|
}
|
|
37236
|
-
var wa =
|
|
37236
|
+
var wa = Yn(function() {
|
|
37237
37237
|
return arguments;
|
|
37238
|
-
}()) ?
|
|
37239
|
-
return Ki(x) && lt.call(x, "callee") && !
|
|
37238
|
+
}()) ? Yn : function(x) {
|
|
37239
|
+
return Ki(x) && lt.call(x, "callee") && !Vn.call(x, "callee");
|
|
37240
37240
|
}, uo = Array.isArray;
|
|
37241
37241
|
function Ar(x) {
|
|
37242
37242
|
return x != null && br(x.length) && !Pa(x);
|
|
37243
37243
|
}
|
|
37244
|
-
var fo =
|
|
37244
|
+
var fo = Hn || oc;
|
|
37245
37245
|
function nc(x, G) {
|
|
37246
37246
|
return yn(x, G);
|
|
37247
37247
|
}
|
|
@@ -37263,7 +37263,7 @@ var xl = {}, pk = {
|
|
|
37263
37263
|
}
|
|
37264
37264
|
var Ia = Ve ? Ye(Ve) : ho;
|
|
37265
37265
|
function yr(x) {
|
|
37266
|
-
return Ar(x) ?
|
|
37266
|
+
return Ar(x) ? Xn(x) : Ms(x);
|
|
37267
37267
|
}
|
|
37268
37268
|
function sc() {
|
|
37269
37269
|
return [];
|
|
@@ -38225,7 +38225,7 @@ function Bk(n, t, e) {
|
|
|
38225
38225
|
pagesCount: () => e(10, h = Ie),
|
|
38226
38226
|
loaded: () => e(6, o = Ie)
|
|
38227
38227
|
})(me);
|
|
38228
|
-
}), m =
|
|
38228
|
+
}), m = _n();
|
|
38229
38229
|
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;
|
|
38230
38230
|
function S(me, Ie) {
|
|
38231
38231
|
return te(this, null, function* () {
|
|
@@ -38897,7 +38897,7 @@ function Up(n) {
|
|
|
38897
38897
|
/*inDelay*/
|
|
38898
38898
|
n[2]
|
|
38899
38899
|
),
|
|
38900
|
-
easing:
|
|
38900
|
+
easing: jn
|
|
38901
38901
|
} : void 0
|
|
38902
38902
|
), o.start());
|
|
38903
38903
|
}), a = !0);
|
|
@@ -38917,7 +38917,7 @@ function Up(n) {
|
|
|
38917
38917
|
/*outDelay*/
|
|
38918
38918
|
n[3]
|
|
38919
38919
|
),
|
|
38920
|
-
easing:
|
|
38920
|
+
easing: jn
|
|
38921
38921
|
} : void 0
|
|
38922
38922
|
)), a = !1;
|
|
38923
38923
|
},
|
|
@@ -40438,7 +40438,7 @@ function f7(n) {
|
|
|
40438
40438
|
}
|
|
40439
40439
|
function g7(n, t, e) {
|
|
40440
40440
|
let { $$slots: i = {}, $$scope: s } = t, { url: o } = t, { enable: r = !0 } = t, { style: a = "" } = t, { hooksInfo: l } = t;
|
|
40441
|
-
const c =
|
|
40441
|
+
const c = _n(), h = ln("hooks"), d = ln("mediaStore");
|
|
40442
40442
|
let u, p = !0;
|
|
40443
40443
|
function g() {
|
|
40444
40444
|
e(
|
|
@@ -40997,7 +40997,7 @@ function w7(n, t, e) {
|
|
|
40997
40997
|
e(2, l = !1);
|
|
40998
40998
|
};
|
|
40999
40999
|
function g(v) {
|
|
41000
|
-
|
|
41000
|
+
Rn.call(this, n, v);
|
|
41001
41001
|
}
|
|
41002
41002
|
const m = (v) => {
|
|
41003
41003
|
e(3, c = v.detail);
|
|
@@ -41217,7 +41217,7 @@ function k7(n, t, e) {
|
|
|
41217
41217
|
e(2, r = g.detail);
|
|
41218
41218
|
};
|
|
41219
41219
|
function p(g) {
|
|
41220
|
-
|
|
41220
|
+
Rn.call(this, n, g);
|
|
41221
41221
|
}
|
|
41222
41222
|
return n.$$set = (g) => {
|
|
41223
41223
|
"tag" in g && e(0, s = g.tag);
|
|
@@ -41937,7 +41937,7 @@ function Q7(n) {
|
|
|
41937
41937
|
return {
|
|
41938
41938
|
c() {
|
|
41939
41939
|
s && s.c(), t = ae(), e = W("img"), w(e, "alt", "tag-icon"), w(e, "class", "icon-image svelte-o1ee3r"), ht(e.src, i = /*iconUrl*/
|
|
41940
|
-
n[4]) || w(e, "src", i), R(e, "width", Ii(
|
|
41940
|
+
n[4]) || w(e, "src", i), R(e, "width", Ii(as({
|
|
41941
41941
|
originWidth: (
|
|
41942
41942
|
/*width*/
|
|
41943
41943
|
n[1]
|
|
@@ -41960,7 +41960,7 @@ function Q7(n) {
|
|
|
41960
41960
|
o[14] ? s ? s.p(o, r) : (s = bm(o), s.c(), s.m(t.parentNode, t)) : s && (s.d(1), s = null), r & /*iconUrl*/
|
|
41961
41961
|
16 && !ht(e.src, i = /*iconUrl*/
|
|
41962
41962
|
o[4]) && w(e, "src", i), r & /*iconUrl, iconRatio, iconScale, iconWidth*/
|
|
41963
|
-
3600 && R(e, "width", Ii(
|
|
41963
|
+
3600 && R(e, "width", Ii(as({
|
|
41964
41964
|
originWidth: (
|
|
41965
41965
|
/*width*/
|
|
41966
41966
|
o[1]
|
|
@@ -42041,7 +42041,7 @@ function Z7(n) {
|
|
|
42041
42041
|
let r = o(n, -1), a = r(n);
|
|
42042
42042
|
return {
|
|
42043
42043
|
c() {
|
|
42044
|
-
s && s.c(), t = ae(), e = W("div"), a.c(), w(e, "class", "icon-svg svelte-o1ee3r"), R(e, "width", Ii(
|
|
42044
|
+
s && s.c(), t = ae(), e = W("div"), a.c(), w(e, "class", "icon-svg svelte-o1ee3r"), R(e, "width", Ii(as({
|
|
42045
42045
|
originWidth: (
|
|
42046
42046
|
/*width*/
|
|
42047
42047
|
n[1]
|
|
@@ -42062,7 +42062,7 @@ function Z7(n) {
|
|
|
42062
42062
|
p(l, c) {
|
|
42063
42063
|
pm(l), /*bgcolor*/
|
|
42064
42064
|
l[14] ? s ? s.p(l, c) : (s = ym(l), s.c(), s.m(t.parentNode, t)) : s && (s.d(1), s = null), r === (r = o(l, c)) && a ? a.p(l, c) : (a.d(1), a = r(l), a && (a.c(), a.m(e, null))), c & /*iconUrl, iconRatio, iconScale, iconWidth*/
|
|
42065
|
-
3600 && R(e, "width", Ii(
|
|
42065
|
+
3600 && R(e, "width", Ii(as({
|
|
42066
42066
|
originWidth: (
|
|
42067
42067
|
/*width*/
|
|
42068
42068
|
l[1]
|
|
@@ -42180,7 +42180,7 @@ function e6(n) {
|
|
|
42180
42180
|
n[28] - 1})`;
|
|
42181
42181
|
return {
|
|
42182
42182
|
c() {
|
|
42183
|
-
t = W("div"), w(t, "class", "icon-keyframe svelte-o1ee3r"), R(t, "width", Ii(
|
|
42183
|
+
t = W("div"), w(t, "class", "icon-keyframe svelte-o1ee3r"), R(t, "width", Ii(as({
|
|
42184
42184
|
originWidth: (
|
|
42185
42185
|
/*width*/
|
|
42186
42186
|
n[1]
|
|
@@ -42197,7 +42197,7 @@ function e6(n) {
|
|
|
42197
42197
|
/*iconWidth*/
|
|
42198
42198
|
n[9]
|
|
42199
42199
|
)
|
|
42200
|
-
}).width)), R(t, "height", Ii(
|
|
42200
|
+
}).width)), R(t, "height", Ii(as({
|
|
42201
42201
|
originWidth: (
|
|
42202
42202
|
/*width*/
|
|
42203
42203
|
n[1]
|
|
@@ -42226,7 +42226,7 @@ function e6(n) {
|
|
|
42226
42226
|
},
|
|
42227
42227
|
p(s, o) {
|
|
42228
42228
|
mm(s), o & /*iconUrl, iconSteps, iconFps, iconRatio, iconScale, iconWidth*/
|
|
42229
|
-
7760 && R(t, "width", Ii(
|
|
42229
|
+
7760 && R(t, "width", Ii(as({
|
|
42230
42230
|
originWidth: (
|
|
42231
42231
|
/*width*/
|
|
42232
42232
|
s[1]
|
|
@@ -42244,7 +42244,7 @@ function e6(n) {
|
|
|
42244
42244
|
s[9]
|
|
42245
42245
|
)
|
|
42246
42246
|
}).width)), o & /*iconUrl, iconSteps, iconFps, iconRatio, iconScale, iconWidth*/
|
|
42247
|
-
7760 && R(t, "height", Ii(
|
|
42247
|
+
7760 && R(t, "height", Ii(as({
|
|
42248
42248
|
originWidth: (
|
|
42249
42249
|
/*width*/
|
|
42250
42250
|
s[1]
|
|
@@ -42311,7 +42311,7 @@ function i6(n) {
|
|
|
42311
42311
|
}
|
|
42312
42312
|
};
|
|
42313
42313
|
}
|
|
42314
|
-
function
|
|
42314
|
+
function as(n) {
|
|
42315
42315
|
const { originWidth: t, originHeight: e, scale: i = 1, wantedWidth: s } = n, o = (s != null ? s : t) * i, r = typeof e == "number" ? o * (e / t) : void 0;
|
|
42316
42316
|
return he(F({}, n), { width: o, height: r });
|
|
42317
42317
|
}
|
|
@@ -42326,7 +42326,7 @@ function Or(n) {
|
|
|
42326
42326
|
}
|
|
42327
42327
|
function n6(n, t, e) {
|
|
42328
42328
|
let i, s, o, r, a, l, c, h, d, u, p, g, { width: m = null } = t, { icon: v = null } = t, { shadow: A = !1 } = t;
|
|
42329
|
-
const P =
|
|
42329
|
+
const P = _n();
|
|
42330
42330
|
function E(S) {
|
|
42331
42331
|
return te(this, null, function* () {
|
|
42332
42332
|
const L = yield V7(S);
|
|
@@ -44160,7 +44160,7 @@ function K6() {
|
|
|
44160
44160
|
border: "1px solid rgba(255,255,255,0.4)"
|
|
44161
44161
|
});
|
|
44162
44162
|
n.appendChild(t), t.appendChild(e);
|
|
44163
|
-
const i = "-4px", s = { direction: "nesw", element:
|
|
44163
|
+
const i = "-4px", s = { direction: "nesw", element: es({ cursor: "nesw-resize", left: i, bottom: i }) }, o = { direction: "ns", element: es({ cursor: "ns-resize", bottom: i }) }, r = { direction: "nwse", element: es({ cursor: "nwse-resize", right: i, bottom: i }) }, a = { direction: "ew", element: es({ cursor: "ew-resize", right: i }) }, l = { direction: "nesw", element: es({ cursor: "nesw-resize", right: i, top: i }) }, c = { direction: "ns", element: es({ cursor: "ns-resize", top: i }) }, h = { direction: "nwse", element: es({ cursor: "nwse-resize", left: i, top: i }) }, d = { direction: "ew", element: es({ cursor: "ew-resize", left: i }) };
|
|
44164
44164
|
return new Array(o, a, c, d, s, r, l, h).forEach((p) => t.appendChild(p.element)), { container: n, spheres: [
|
|
44165
44165
|
s,
|
|
44166
44166
|
o,
|
|
@@ -44172,7 +44172,7 @@ function K6() {
|
|
|
44172
44172
|
d
|
|
44173
44173
|
] };
|
|
44174
44174
|
}
|
|
44175
|
-
function
|
|
44175
|
+
function es(n) {
|
|
44176
44176
|
const t = Gs(F({
|
|
44177
44177
|
background: "#FFFF00",
|
|
44178
44178
|
width: "9px",
|
|
@@ -44901,7 +44901,7 @@ let ix = class extends Aa {
|
|
|
44901
44901
|
return;
|
|
44902
44902
|
A.copy(e.ray.origin.clone().add(e.ray.direction.clone().multiplyScalar(E))), a = A;
|
|
44903
44903
|
} else
|
|
44904
|
-
a =
|
|
44904
|
+
a = Tn({ raycaster: e, line: i, clampToLine: !1 });
|
|
44905
44905
|
const l = o.position.clone(), c = a.clone().sub(s), h = new y.Matrix4();
|
|
44906
44906
|
h.setPosition(c);
|
|
44907
44907
|
const d = o.position.clone().applyMatrix4(h);
|
|
@@ -45630,7 +45630,7 @@ class mx extends Aa {
|
|
|
45630
45630
|
r = r.parent;
|
|
45631
45631
|
const a = r, l = a.scalePosition.basePosition.clone(), c = a.scalePosition.handlePosition.clone(), h = c.clone().sub(l).clone(), d = new y.Line3(l, l.clone().add(h.normalize().multiplyScalar(5)));
|
|
45632
45632
|
d.applyMatrix4(this.helperObject3D.matrixWorld);
|
|
45633
|
-
const u = new y.Raycaster(s, i.point.clone().sub(s)), p =
|
|
45633
|
+
const u = new y.Raycaster(s, i.point.clone().sub(s)), p = Tn({ raycaster: u, line: d });
|
|
45634
45634
|
this.startInfo = { line: d, scaleStartPoint: p, draggingObject: a }, this.helperObject3D.scaleMeshes.forEach((g) => {
|
|
45635
45635
|
g.uuid !== a.uuid && (g.visible = !1);
|
|
45636
45636
|
}), "hideLineConnections" in this.helperObject3D && typeof this.helperObject3D.hideLineConnections == "function" && this.helperObject3D.hideLineConnections();
|
|
@@ -45669,10 +45669,18 @@ class mx extends Aa {
|
|
|
45669
45669
|
const A = m.slice(0, 4);
|
|
45670
45670
|
if (!A || A.length < 4)
|
|
45671
45671
|
return;
|
|
45672
|
-
const P = mi(A).normalize(), E = new y.Plane().setFromNormalAndCoplanarPoint(P, A[0]),
|
|
45673
|
-
|
|
45674
|
-
|
|
45675
|
-
|
|
45672
|
+
const P = mi(A).normalize(), E = new y.Plane().setFromNormalAndCoplanarPoint(P, A[0]), z = Math.abs(e.ray.direction.dot(P)) < 0.1;
|
|
45673
|
+
let D;
|
|
45674
|
+
if (z)
|
|
45675
|
+
D = Tn({ raycaster: e, line: i, clampToLine: !1 }).applyMatrix4(new y.Matrix4().getInverse(this.helperObject3D.matrixWorld.clone()));
|
|
45676
|
+
else {
|
|
45677
|
+
const T = new y.Vector3();
|
|
45678
|
+
if (e.ray.intersectPlane(E, T), !T)
|
|
45679
|
+
return;
|
|
45680
|
+
const O = new y.Matrix4().getInverse(this.helperObject3D.matrixWorld);
|
|
45681
|
+
D = T.clone().applyMatrix4(O);
|
|
45682
|
+
}
|
|
45683
|
+
const j = s.clone().applyMatrix4(new y.Matrix4().getInverse(this.helperObject3D.matrixWorld));
|
|
45676
45684
|
(c = (l = this.config) == null ? void 0 : l.scaleCallback) == null || c.call(l, {
|
|
45677
45685
|
intersectPoint: D,
|
|
45678
45686
|
scalePosition: r,
|
|
@@ -45680,7 +45688,7 @@ class mx extends Aa {
|
|
|
45680
45688
|
}), o.position.copy(D), this.hooks.emit("scale", new y.Vector3(1, 1, 1));
|
|
45681
45689
|
return;
|
|
45682
45690
|
}
|
|
45683
|
-
const a =
|
|
45691
|
+
const a = Tn({ raycaster: e, line: i, clampToLine: !1 });
|
|
45684
45692
|
a.applyMatrix4(new y.Matrix4().getInverse(this.helperObject3D.matrixWorld.clone())), (d = (h = this.config) == null ? void 0 : h.scaleCallback) == null || d.call(h, {
|
|
45685
45693
|
intersectPoint: a,
|
|
45686
45694
|
scalePosition: r,
|
|
@@ -46387,7 +46395,7 @@ class fA extends Ai {
|
|
|
46387
46395
|
f(this, "lines", []);
|
|
46388
46396
|
f(this, "withDots");
|
|
46389
46397
|
f(this, "paramsStyle");
|
|
46390
|
-
const r = e, { withDots: i, points: s } = r, o =
|
|
46398
|
+
const r = e, { withDots: i, points: s } = r, o = Kn(r, ["withDots", "points"]);
|
|
46391
46399
|
this.withDots = i != null ? i : !0, s && this.setPoints(s), o && this.setStyle(o);
|
|
46392
46400
|
}
|
|
46393
46401
|
get style() {
|
|
@@ -46462,7 +46470,7 @@ class Ks extends fA {
|
|
|
46462
46470
|
f(this, "name", "PolylineMesh");
|
|
46463
46471
|
}
|
|
46464
46472
|
}
|
|
46465
|
-
class
|
|
46473
|
+
class cs extends fA {
|
|
46466
46474
|
constructor(...e) {
|
|
46467
46475
|
super(he(F({}, e[0]), { withDots: !0 }));
|
|
46468
46476
|
f(this, "name", "PolylineWithDotsMesh");
|
|
@@ -46712,7 +46720,7 @@ class Mm extends Qi {
|
|
|
46712
46720
|
f(this, "polyLineMesh");
|
|
46713
46721
|
f(this, "_editor");
|
|
46714
46722
|
f(this, "creatingObject");
|
|
46715
|
-
e && (this.polyLineMesh = new
|
|
46723
|
+
e && (this.polyLineMesh = new cs(F(F({}, e.style), e)), this.add(this.polyLineMesh));
|
|
46716
46724
|
}
|
|
46717
46725
|
get editor() {
|
|
46718
46726
|
return this._editor || (this._editor = new Cx(this)), this._editor;
|
|
@@ -46757,7 +46765,7 @@ class Mm extends Qi {
|
|
|
46757
46765
|
create(e) {
|
|
46758
46766
|
return te(this, null, function* () {
|
|
46759
46767
|
this.removeChildren();
|
|
46760
|
-
const i = new
|
|
46768
|
+
const i = new cs(e);
|
|
46761
46769
|
this.polyLineMesh = i, this.add(this.polyLineMesh), this.creatingObject = Ix(i, this.pointSelector, e), yield this.creatingObject.finished, this.config.defaultAction && this.editor.enable();
|
|
46762
46770
|
});
|
|
46763
46771
|
}
|
|
@@ -46883,7 +46891,7 @@ function gA(n, t) {
|
|
|
46883
46891
|
}
|
|
46884
46892
|
class Eh extends rr {
|
|
46885
46893
|
constructor(e) {
|
|
46886
|
-
const o = e != null ? e : {}, { points: i } = o, s =
|
|
46894
|
+
const o = e != null ? e : {}, { points: i } = o, s = Kn(o, ["points"]);
|
|
46887
46895
|
super();
|
|
46888
46896
|
f(this, "name", "PolygonWithEdgeMesh");
|
|
46889
46897
|
f(this, "line", new Ks());
|
|
@@ -47188,7 +47196,7 @@ function ou(n, t, e) {
|
|
|
47188
47196
|
x: (st.x * 0.5 + 0.5) * Te,
|
|
47189
47197
|
y: (1 - (st.y * 0.5 + 0.5)) * Re
|
|
47190
47198
|
};
|
|
47191
|
-
}, Ve = Ae(le), me = Ae(E), Ie = Ae(re.point), Oe = Math.sqrt(
|
|
47199
|
+
}, Ve = Ae(le), me = Ae(E), Ie = Ae(re.point), Oe = Math.sqrt(Jn(Ve.x - me.x, 2) + Jn(Ve.y - me.y, 2)), Xe = Math.sqrt(Jn(Ve.x - Ie.x, 2) + Jn(Ve.y - Ie.y, 2));
|
|
47192
47200
|
(Oe < e.autoClosePixelDistance || Xe < e.autoClosePixelDistance) && (Se = !0);
|
|
47193
47201
|
}
|
|
47194
47202
|
} else
|
|
@@ -47765,7 +47773,7 @@ function mA(n, t, e) {
|
|
|
47765
47773
|
}, p = (v) => {
|
|
47766
47774
|
if (!(v != null && v.raycaster))
|
|
47767
47775
|
return;
|
|
47768
|
-
const A =
|
|
47776
|
+
const A = Tn({
|
|
47769
47777
|
raycaster: v.raycaster,
|
|
47770
47778
|
line: new y.Line3(l, c)
|
|
47771
47779
|
});
|
|
@@ -47910,7 +47918,7 @@ class ru extends rr {
|
|
|
47910
47918
|
}
|
|
47911
47919
|
class Sl extends ru {
|
|
47912
47920
|
constructor(e) {
|
|
47913
|
-
const o = e != null ? e : {}, { points: i } = o, s =
|
|
47921
|
+
const o = e != null ? e : {}, { points: i } = o, s = Kn(o, ["points"]);
|
|
47914
47922
|
super();
|
|
47915
47923
|
f(this, "name", "RectangleWithEdgeMesh");
|
|
47916
47924
|
f(this, "line", new Ks());
|
|
@@ -48005,7 +48013,7 @@ function Tx(n, t, e) {
|
|
|
48005
48013
|
const { promise: i, reject: s, resolve: o } = eo(), r = n.parent;
|
|
48006
48014
|
if (!r)
|
|
48007
48015
|
return s(new Error("No container"));
|
|
48008
|
-
const a = (E = e == null ? void 0 : e.limit) != null ? E : "none", l = new
|
|
48016
|
+
const a = (E = e == null ? void 0 : e.limit) != null ? E : "none", l = new cs(he(F({}, n.style), { dashed: !0 })), c = new cs(he(F({}, n.style), { dashed: !0, lengthEnable: !1 })), h = new cs(he(F({}, n.style), { dashed: !1, lengthEnable: !1 }));
|
|
48009
48017
|
r.add(l, h, c), t.enable();
|
|
48010
48018
|
const d = [];
|
|
48011
48019
|
let u = new y.Vector3(), p = new y.Vector3();
|
|
@@ -48054,7 +48062,7 @@ function Lx(n, t, e) {
|
|
|
48054
48062
|
const { promise: i, reject: s, resolve: o } = eo(), r = n.parent;
|
|
48055
48063
|
if (!r)
|
|
48056
48064
|
return s(new Error("No container"));
|
|
48057
|
-
const a = (E = e == null ? void 0 : e.limit) != null ? E : "none", l = new
|
|
48065
|
+
const a = (E = e == null ? void 0 : e.limit) != null ? E : "none", l = new cs(he(F({}, n.style), { dashed: !0 })), c = new cs(he(F({}, n.style), { dashed: !0, lengthEnable: !1 })), h = new cs(he(F({}, n.style), { dashed: !1, lengthEnable: !1 }));
|
|
48058
48066
|
r.add(l, h, c), t.enable(), t.setAdherePoints(Dx(t.five, { excludes: [n] }));
|
|
48059
48067
|
const d = [];
|
|
48060
48068
|
let u = new y.Vector3(), p = new y.Vector3();
|
|
@@ -48139,7 +48147,7 @@ class wA extends ql {
|
|
|
48139
48147
|
}
|
|
48140
48148
|
class la extends wA {
|
|
48141
48149
|
constructor(e) {
|
|
48142
|
-
const a = e != null ? e : {}, { normal: i, radius: s, center: o } = a, r =
|
|
48150
|
+
const a = e != null ? e : {}, { normal: i, radius: s, center: o } = a, r = Kn(a, ["normal", "radius", "center"]);
|
|
48143
48151
|
super(r);
|
|
48144
48152
|
f(this, "edgeLine");
|
|
48145
48153
|
this.edgeLine = new ki(r), this.add(this.edgeLine), i && s && o && this.setPoints({ normal: i, radius: s, center: o });
|
|
@@ -48398,7 +48406,7 @@ function CA(n, t) {
|
|
|
48398
48406
|
}, d = (g) => {
|
|
48399
48407
|
if (!(g != null && g.raycaster))
|
|
48400
48408
|
return;
|
|
48401
|
-
const m =
|
|
48409
|
+
const m = Tn({
|
|
48402
48410
|
raycaster: g.raycaster,
|
|
48403
48411
|
line: new y.Line3(r, a)
|
|
48404
48412
|
}), A = new y.Plane().setFromNormalAndCoplanarPoint(n.normal, n.bottomCenter).projectPoint(m, new y.Vector3()), P = m.clone().sub(A), E = n.bottomCenter.clone().add(P);
|
|
@@ -48605,7 +48613,7 @@ function EA(n, t, e) {
|
|
|
48605
48613
|
}, p = (v) => {
|
|
48606
48614
|
if (!(v != null && v.raycaster))
|
|
48607
48615
|
return;
|
|
48608
|
-
const A =
|
|
48616
|
+
const A = Tn({
|
|
48609
48617
|
raycaster: v.raycaster,
|
|
48610
48618
|
line: new y.Line3(h, d)
|
|
48611
48619
|
});
|
|
@@ -48712,7 +48720,7 @@ function MA(n, t, e) {
|
|
|
48712
48720
|
return O();
|
|
48713
48721
|
p = T;
|
|
48714
48722
|
const b = h.at(-1).clone();
|
|
48715
|
-
a === "none" ? (d = T.point, l.setPoints([b, d])) : a === "xoz" ? (t.plane = u, u = u != null ? u : new y.Plane().setFromNormalAndCoplanarPoint(new y.Vector3(0, 1, 0), h[0]), d = u.projectPoint(T.point, new y.Vector3()), l.setPoints([b, d]), c.setPoints([d, T.point])) : a === "y" && (T.isVirtual ? (d =
|
|
48723
|
+
a === "none" ? (d = T.point, l.setPoints([b, d])) : a === "xoz" ? (t.plane = u, u = u != null ? u : new y.Plane().setFromNormalAndCoplanarPoint(new y.Vector3(0, 1, 0), h[0]), d = u.projectPoint(T.point, new y.Vector3()), l.setPoints([b, d]), c.setPoints([d, T.point])) : a === "y" && (T.isVirtual ? (d = Tn({
|
|
48716
48724
|
raycaster: T.raycaster,
|
|
48717
48725
|
line: new y.Line3(h[0].clone(), new y.Vector3(0, 1, 0).add(h[0])),
|
|
48718
48726
|
clampToLine: !1
|
|
@@ -49315,7 +49323,7 @@ function Hx(n, t, e) {
|
|
|
49315
49323
|
} } = t, { handleMouseEnter: r = () => {
|
|
49316
49324
|
} } = t, { handleMouseLeave: a = () => {
|
|
49317
49325
|
} } = t;
|
|
49318
|
-
const l =
|
|
49326
|
+
const l = _n(), c = {
|
|
49319
49327
|
audioRef: (h) => l("audioRef", h.detail),
|
|
49320
49328
|
play: () => {
|
|
49321
49329
|
e(0, i = !0), l("play");
|
|
@@ -49648,7 +49656,7 @@ function Yx(n) {
|
|
|
49648
49656
|
function Zx(n, t, e) {
|
|
49649
49657
|
var L, N;
|
|
49650
49658
|
let i, s, o, r, a;
|
|
49651
|
-
const l = ln("hooks"), c =
|
|
49659
|
+
const l = ln("hooks"), c = _n();
|
|
49652
49660
|
let { tag: h } = t, d, u = !1;
|
|
49653
49661
|
const p = () => {
|
|
49654
49662
|
d !== void 0 && clearTimeout(d), u = !0, d = setTimeout(
|
|
@@ -49695,7 +49703,7 @@ function Zx(n, t, e) {
|
|
|
49695
49703
|
z(h) && A(B);
|
|
49696
49704
|
};
|
|
49697
49705
|
function S(B) {
|
|
49698
|
-
|
|
49706
|
+
Rn.call(this, n, B);
|
|
49699
49707
|
}
|
|
49700
49708
|
return n.$$set = (B) => {
|
|
49701
49709
|
"tag" in B && e(1, h = B.tag), "tagPointClickHelper" in B && e(0, v = B.tagPointClickHelper), "handleMouseEnter" in B && e(2, A = B.handleMouseEnter), "handleMouseLeave" in B && e(3, P = B.handleMouseLeave), "handleTagPointClick" in B && e(4, E = B.handleTagPointClick), "audioInstance" in B && e(14, D = B.audioInstance);
|
|
@@ -51399,7 +51407,7 @@ function VS(n) {
|
|
|
51399
51407
|
function FS(n, t, e) {
|
|
51400
51408
|
let i;
|
|
51401
51409
|
const s = ln("hooks");
|
|
51402
|
-
|
|
51410
|
+
_n();
|
|
51403
51411
|
let { tag: o } = t, { toolbar: r = { showMore: !0, showShare: !0 } } = t, { theme: a = "dark" } = t, { closePopover: l = void 0 } = t;
|
|
51404
51412
|
Tt(() => {
|
|
51405
51413
|
s.emit("popoverToolbarShow", { tag: o });
|
|
@@ -51620,7 +51628,7 @@ function GS(n) {
|
|
|
51620
51628
|
function WS(n, t, e) {
|
|
51621
51629
|
let { showArrow: i } = t, { arrowDirection: s } = t, { effectiveTheme: o } = t, { adjustedPlacement: r } = t, { tag: a } = t, { config: l } = t, { theme: c } = t, { toolbar: h } = t, { closePopover: d } = t, { audioInstance: u = null } = t, { audioPlaying: p = !1 } = t, { audioCurrentTime: g = 0 } = t, { audioDuration: m = 0 } = t;
|
|
51622
51630
|
function v(A) {
|
|
51623
|
-
|
|
51631
|
+
Rn.call(this, n, A);
|
|
51624
51632
|
}
|
|
51625
51633
|
return n.$$set = (A) => {
|
|
51626
51634
|
"showArrow" in A && e(0, i = A.showArrow), "arrowDirection" in A && e(1, s = A.arrowDirection), "effectiveTheme" in A && e(2, o = A.effectiveTheme), "adjustedPlacement" in A && e(3, r = A.adjustedPlacement), "tag" in A && e(4, a = A.tag), "config" in A && e(5, l = A.config), "theme" in A && e(6, c = A.theme), "toolbar" in A && e(7, h = A.toolbar), "closePopover" in A && e(8, d = A.closePopover), "audioInstance" in A && e(9, u = A.audioInstance), "audioPlaying" in A && e(10, p = A.audioPlaying), "audioCurrentTime" in A && e(11, g = A.audioCurrentTime), "audioDuration" in A && e(12, m = A.audioDuration);
|
|
@@ -51940,7 +51948,7 @@ function YS(n, t, e) {
|
|
|
51940
51948
|
let i, s, o, r, a, l, c, h, d, u;
|
|
51941
51949
|
const p = ln("hooks");
|
|
51942
51950
|
let { tag: g } = 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;
|
|
51943
|
-
const b =
|
|
51951
|
+
const b = _n();
|
|
51944
51952
|
let C, M = { width: 0, height: 0 }, k = null, S = s;
|
|
51945
51953
|
function L(ee, { duration: Te = 400, easing: Re = ta, x: Ae = 0, y: Ve = 0 }) {
|
|
51946
51954
|
return {
|
|
@@ -52031,10 +52039,10 @@ function YS(n, t, e) {
|
|
|
52031
52039
|
typeof z == "function" && z(), b("close");
|
|
52032
52040
|
}
|
|
52033
52041
|
function Me(ee) {
|
|
52034
|
-
|
|
52042
|
+
Rn.call(this, n, ee);
|
|
52035
52043
|
}
|
|
52036
52044
|
function de(ee) {
|
|
52037
|
-
|
|
52045
|
+
Rn.call(this, n, ee);
|
|
52038
52046
|
}
|
|
52039
52047
|
function le(ee) {
|
|
52040
52048
|
Ze[ee ? "unshift" : "push"](() => {
|
|
@@ -54020,7 +54028,7 @@ class zh {
|
|
|
54020
54028
|
});
|
|
54021
54029
|
/** 模型状态变更 */
|
|
54022
54030
|
f(this, "onFiveModeChange", (t) => {
|
|
54023
|
-
this.modeVisible = this.mode === "panorama" ?
|
|
54031
|
+
this.modeVisible = this.mode === "panorama" ? ls(t) : Ci(t), this.updateVisible();
|
|
54024
54032
|
});
|
|
54025
54033
|
f(this, "onFiveModelShownFloorChange", (t) => {
|
|
54026
54034
|
this.floorVisible = t === null || this.visibleFloorIndexes === null || this.visibleFloorIndexes.includes(t), this.updateVisible();
|
|
@@ -57644,7 +57652,7 @@ const A0 = (n, t) => {
|
|
|
57644
57652
|
};
|
|
57645
57653
|
class Xc extends hu {
|
|
57646
57654
|
constructor(...e) {
|
|
57647
|
-
const i = e[0], s = $s(i.model), o = new y.Vector3().lerpVectors(
|
|
57655
|
+
const i = e[0], s = $s(i.model), o = new y.Vector3().lerpVectors(ss(s, 0), ss(s, 5), 0.5);
|
|
57648
57656
|
super(he(F({}, i), { position: o }));
|
|
57649
57657
|
f(this, "onModelShownFloorChange", (e) => {
|
|
57650
57658
|
this.updateFiveCurrentFloorState(e), this.updateVisible();
|
|
@@ -57819,10 +57827,10 @@ class aT extends fn {
|
|
|
57819
57827
|
case "box": {
|
|
57820
57828
|
const r = new Ws({ five: this.five });
|
|
57821
57829
|
Ne(s.id) && (r.uuid = s.id.toString());
|
|
57822
|
-
const { start: a, end: l, rotation: c = [0, 0, 0, 0] } = s.object_data, h = new ve().fromArray(a), d = new ve().fromArray(l), u = new
|
|
57830
|
+
const { start: a, end: l, rotation: c = [0, 0, 0, 0] } = s.object_data, h = new ve().fromArray(a), d = new ve().fromArray(l), u = new ns().fromArray(c), p = new Ls().setFromEuler(u), g = p.clone().inverse(), m = new ve().lerpVectors(h, d, 0.5), v = m.clone().negate(), A = h.clone().add(v).applyQuaternion(g), P = d.clone().add(v).applyQuaternion(g), E = new yb(A.clone().max(P), A.clone().min(P));
|
|
57823
57831
|
return r.setPoints({
|
|
57824
|
-
points: [
|
|
57825
|
-
heightPoint:
|
|
57832
|
+
points: [ss(E, 2), ss(E, 3), ss(E, 7), ss(E, 6)],
|
|
57833
|
+
heightPoint: ss(E, 1)
|
|
57826
57834
|
}), r.position.copy(m), r.quaternion.copy(p), r.setStyle(i(s)), new m0({
|
|
57827
57835
|
five: this.five,
|
|
57828
57836
|
tagWrapper: this.tagWrapper,
|
|
@@ -58264,7 +58272,7 @@ const GL = (...n) => new aT(...n), lT = /* @__PURE__ */ Object.freeze(/* @__PURE
|
|
|
58264
58272
|
bounding: Uh,
|
|
58265
58273
|
boundingBox: $s,
|
|
58266
58274
|
boundingSphere: X0,
|
|
58267
|
-
boxVertex:
|
|
58275
|
+
boxVertex: ss,
|
|
58268
58276
|
boxVertexes: Fy,
|
|
58269
58277
|
checkFiveModelLoaded: d2,
|
|
58270
58278
|
cleanup: Cw,
|
|
@@ -58283,7 +58291,7 @@ const GL = (...n) => new aT(...n), lT = /* @__PURE__ */ Object.freeze(/* @__PURE
|
|
|
58283
58291
|
inside: Iu,
|
|
58284
58292
|
isModelLike: Ci,
|
|
58285
58293
|
isNil: vi,
|
|
58286
|
-
isPanoramaLike:
|
|
58294
|
+
isPanoramaLike: ls,
|
|
58287
58295
|
lookObject: h2,
|
|
58288
58296
|
lookPoint: E1,
|
|
58289
58297
|
nextFrame: ga,
|
|
@@ -58344,7 +58352,7 @@ export {
|
|
|
58344
58352
|
EL as Object3DHelperPlugin,
|
|
58345
58353
|
nu as PLUGIN,
|
|
58346
58354
|
mT as PaintBrush,
|
|
58347
|
-
|
|
58355
|
+
ts as PaintBrushTypeEnum,
|
|
58348
58356
|
eL as PanoCompassPlugin,
|
|
58349
58357
|
wT as PanoCursorRaycasterPlugin,
|
|
58350
58358
|
mL as PanoDoorLabelPlugin,
|