@thatopen/components 2.2.11 → 2.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/Components/index.d.ts +20 -3
- package/dist/index.cjs +13 -13
- package/dist/index.mjs +734 -717
- package/dist/namespace.d.ts +2753 -2736
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var so = Object.defineProperty;
|
|
2
2
|
var io = (c, s, t) => s in c ? so(c, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[s] = t;
|
|
3
|
-
var
|
|
3
|
+
var T = (c, s, t) => (io(c, typeof s != "symbol" ? s + "" : s, t), t);
|
|
4
4
|
import * as M from "three";
|
|
5
5
|
import { BufferAttribute as Nr, Vector3 as q, Vector2 as Je, Plane as gn, Line3 as he, Triangle as je, Sphere as no, Matrix4 as de, Box3 as se, BackSide as ro, DoubleSide as br, FrontSide as Pn, Mesh as rt, Ray as oo, Raycaster as ao, Quaternion as le, Object3D as Qi, Euler as co, MeshBasicMaterial as Pr, LineBasicMaterial as lo, CylinderGeometry as zt, BoxGeometry as Dt, BufferGeometry as Ln, Float32BufferAttribute as Mn, OctahedronGeometry as Ms, Line as Ie, SphereGeometry as ho, TorusGeometry as rs, PlaneGeometry as uo } from "three";
|
|
6
6
|
import * as ye from "@thatopen/fragments";
|
|
@@ -99,8 +99,8 @@ function Pi(c, s, t, e, i = null) {
|
|
|
99
99
|
F < n && (n = F), S > a && (a = S), m && g < d && (d = g), m && g > E && (E = g);
|
|
100
100
|
const L = c[C + 2], N = c[C + 3], x = L - N, k = L + N;
|
|
101
101
|
x < r && (r = x), k > l && (l = k), m && L < u && (u = L), m && L > p && (p = L);
|
|
102
|
-
const w = c[C + 4], P = c[C + 5],
|
|
103
|
-
|
|
102
|
+
const w = c[C + 4], P = c[C + 5], _ = w - P, v = w + P;
|
|
103
|
+
_ < o && (o = _), v > h && (h = v), m && w < f && (f = w), m && w > I && (I = w);
|
|
104
104
|
}
|
|
105
105
|
e[0] = n, e[1] = r, e[2] = o, e[3] = a, e[4] = l, e[5] = h, m && (i[0] = d, i[1] = u, i[2] = f, i[3] = E, i[4] = p, i[5] = I);
|
|
106
106
|
}
|
|
@@ -321,8 +321,8 @@ function bo(c, s) {
|
|
|
321
321
|
g.splitAxis = N.axis;
|
|
322
322
|
const k = new Ds(), w = y, P = x - y;
|
|
323
323
|
g.left = k, k.boundingData = new Float32Array(6), Pi(E, w, P, k.boundingData, f), R(k, w, P, f, L + 1);
|
|
324
|
-
const
|
|
325
|
-
g.right =
|
|
324
|
+
const _ = new Ds(), v = x, Q = F - P;
|
|
325
|
+
g.right = _, _.boundingData = new Float32Array(6), Pi(E, v, Q, _.boundingData, f), R(_, v, Q, f, L + 1);
|
|
326
326
|
}
|
|
327
327
|
return g;
|
|
328
328
|
}
|
|
@@ -697,8 +697,8 @@ Bt.prototype.distanceToBox = function() {
|
|
|
697
697
|
for (let C = 0; C <= 1; C++) {
|
|
698
698
|
const R = (I + 1) % 3, g = (I + 2) % 3, y = m << R | C << g, F = 1 << I | m << R | C << g, S = f[y], L = f[F];
|
|
699
699
|
s[p].set(S, L);
|
|
700
|
-
const x = c[I], k = c[R], w = c[g], P = t[p],
|
|
701
|
-
|
|
700
|
+
const x = c[I], k = c[R], w = c[g], P = t[p], _ = P.start, v = P.end;
|
|
701
|
+
_[x] = d[x], _[k] = m ? d[k] : u[k], _[w] = C ? d[w] : u[k], v[x] = u[x], v[k] = m ? d[k] : u[k], v[w] = C ? d[w] : u[k], p++;
|
|
702
702
|
}
|
|
703
703
|
for (let I = 0; I <= 1; I++)
|
|
704
704
|
for (let m = 0; m <= 1; m++)
|
|
@@ -787,17 +787,17 @@ function qi(c, s, t, e, i = null, n = 0, r = 0) {
|
|
|
787
787
|
return wt(c, o, Re), e(u, f, !1, r, n + c, Re);
|
|
788
788
|
} else {
|
|
789
789
|
let x = function(w) {
|
|
790
|
-
const { uint16Array: P, uint32Array:
|
|
790
|
+
const { uint16Array: P, uint32Array: _ } = At;
|
|
791
791
|
let v = w * 2;
|
|
792
792
|
for (; !Vt(v, P); )
|
|
793
793
|
w = $t(w), v = w * 2;
|
|
794
|
-
return Yt(w,
|
|
794
|
+
return Yt(w, _);
|
|
795
795
|
}, k = function(w) {
|
|
796
|
-
const { uint16Array: P, uint32Array:
|
|
796
|
+
const { uint16Array: P, uint32Array: _ } = At;
|
|
797
797
|
let v = w * 2;
|
|
798
798
|
for (; !Vt(v, P); )
|
|
799
|
-
w = jt(w,
|
|
800
|
-
return Yt(w,
|
|
799
|
+
w = jt(w, _), v = w * 2;
|
|
800
|
+
return Yt(w, _) + Zt(v, P);
|
|
801
801
|
};
|
|
802
802
|
const u = $t(c), f = jt(c, l);
|
|
803
803
|
let E = u, p = f, I, m, C, R;
|
|
@@ -810,8 +810,8 @@ function qi(c, s, t, e, i = null, n = 0, r = 0) {
|
|
|
810
810
|
const g = Vt(E * 2, a), y = t(C, g, I, r + 1, n + E);
|
|
811
811
|
let F;
|
|
812
812
|
if (y === xn) {
|
|
813
|
-
const w = x(E),
|
|
814
|
-
F = e(w,
|
|
813
|
+
const w = x(E), _ = k(E) - w;
|
|
814
|
+
F = e(w, _, !0, r + 1, n + E, C);
|
|
815
815
|
} else
|
|
816
816
|
F = y && qi(
|
|
817
817
|
E,
|
|
@@ -828,8 +828,8 @@ function qi(c, s, t, e, i = null, n = 0, r = 0) {
|
|
|
828
828
|
const S = Vt(p * 2, a), L = t(R, S, m, r + 1, n + p);
|
|
829
829
|
let N;
|
|
830
830
|
if (L === xn) {
|
|
831
|
-
const w = x(p),
|
|
832
|
-
N = e(w,
|
|
831
|
+
const w = x(p), _ = k(p) - w;
|
|
832
|
+
N = e(w, _, !0, r + 1, n + p, R);
|
|
833
833
|
} else
|
|
834
834
|
N = L && qi(
|
|
835
835
|
p,
|
|
@@ -936,8 +936,8 @@ function Ho(c, s = null) {
|
|
|
936
936
|
let R = 1 / 0, g = 1 / 0, y = 1 / 0, F = -1 / 0, S = -1 / 0, L = -1 / 0;
|
|
937
937
|
for (let N = 3 * m, x = 3 * (m + C); N < x; N++) {
|
|
938
938
|
let k = e[N];
|
|
939
|
-
const w = i.getX(k), P = i.getY(k),
|
|
940
|
-
w < R && (R = w), w > F && (F = w), P < g && (g = P), P > S && (S = P),
|
|
939
|
+
const w = i.getX(k), P = i.getY(k), _ = i.getZ(k);
|
|
940
|
+
w < R && (R = w), w > F && (F = w), P < g && (g = P), P > S && (S = P), _ < y && (y = _), _ > L && (L = _);
|
|
941
941
|
}
|
|
942
942
|
return a[u + 0] !== R || a[u + 1] !== g || a[u + 2] !== y || a[u + 3] !== F || a[u + 4] !== S || a[u + 5] !== L ? (a[u + 0] = R, a[u + 1] = g, a[u + 2] = y, a[u + 3] = F, a[u + 4] = S, a[u + 5] = L, !0) : !1;
|
|
943
943
|
} else {
|
|
@@ -952,8 +952,8 @@ function Ho(c, s = null) {
|
|
|
952
952
|
const w = x || k;
|
|
953
953
|
if (w)
|
|
954
954
|
for (let P = 0; P < 3; P++) {
|
|
955
|
-
const
|
|
956
|
-
a[u + P] =
|
|
955
|
+
const _ = m + P, v = C + P, Q = a[_], V = a[_ + 3], et = a[v], H = a[v + 3];
|
|
956
|
+
a[u + P] = Q < et ? Q : et, a[u + P + 3] = V > H ? V : H;
|
|
957
957
|
}
|
|
958
958
|
return w;
|
|
959
959
|
}
|
|
@@ -1087,8 +1087,8 @@ function sa(c, s, t, e = {}, i = {}, n = 0, r = 1 / 0) {
|
|
|
1087
1087
|
Pt(f, 3 * x, d, h), f.a.applyMatrix4(t), f.b.applyMatrix4(t), f.c.applyMatrix4(t), f.needsUpdate = !0;
|
|
1088
1088
|
for (let w = y, P = y + F; w < P; w++) {
|
|
1089
1089
|
Pt(u, 3 * w, l, a), u.needsUpdate = !0;
|
|
1090
|
-
const
|
|
1091
|
-
if (
|
|
1090
|
+
const _ = u.distanceToTriangle(f, E, I);
|
|
1091
|
+
if (_ < C && (p.copy(E), m && m.copy(I), C = _, R = w, g = x), _ < n)
|
|
1092
1092
|
return !0;
|
|
1093
1093
|
}
|
|
1094
1094
|
}
|
|
@@ -1127,8 +1127,8 @@ function ia(c, s = null) {
|
|
|
1127
1127
|
for (let w = 0; w < 3; w++) {
|
|
1128
1128
|
let P = k + w;
|
|
1129
1129
|
P = e ? e[P] : P;
|
|
1130
|
-
const
|
|
1131
|
-
|
|
1130
|
+
const _ = i.getX(P), v = i.getY(P), Q = i.getZ(P);
|
|
1131
|
+
_ < R && (R = _), _ > F && (F = _), v < g && (g = v), v > S && (S = v), Q < y && (y = Q), Q > L && (L = Q);
|
|
1132
1132
|
}
|
|
1133
1133
|
}
|
|
1134
1134
|
return a[u + 0] !== R || a[u + 1] !== g || a[u + 2] !== y || a[u + 3] !== F || a[u + 4] !== S || a[u + 5] !== L ? (a[u + 0] = R, a[u + 1] = g, a[u + 2] = y, a[u + 3] = F, a[u + 4] = S, a[u + 5] = L, !0) : !1;
|
|
@@ -1144,8 +1144,8 @@ function ia(c, s = null) {
|
|
|
1144
1144
|
const w = x || k;
|
|
1145
1145
|
if (w)
|
|
1146
1146
|
for (let P = 0; P < 3; P++) {
|
|
1147
|
-
const
|
|
1148
|
-
a[u + P] =
|
|
1147
|
+
const _ = m + P, v = C + P, Q = a[_], V = a[_ + 3], et = a[v], H = a[v + 3];
|
|
1148
|
+
a[u + P] = Q < et ? Q : et, a[u + P + 3] = V > H ? V : H;
|
|
1149
1149
|
}
|
|
1150
1150
|
return w;
|
|
1151
1151
|
}
|
|
@@ -1251,11 +1251,11 @@ function ua(c, s, t, e = {}, i = {}, n = 0, r = 1 / 0) {
|
|
|
1251
1251
|
for (let x = L, k = L + N; x < k; x++) {
|
|
1252
1252
|
const w = S.resolveTriangleIndex(x);
|
|
1253
1253
|
Pt(f, 3 * w, d, h), f.a.applyMatrix4(t), f.b.applyMatrix4(t), f.c.applyMatrix4(t), f.needsUpdate = !0;
|
|
1254
|
-
for (let P = y,
|
|
1254
|
+
for (let P = y, _ = y + F; P < _; P++) {
|
|
1255
1255
|
const v = c.resolveTriangleIndex(P);
|
|
1256
1256
|
Pt(u, 3 * v, l, a), u.needsUpdate = !0;
|
|
1257
|
-
const
|
|
1258
|
-
if (
|
|
1257
|
+
const Q = u.distanceToTriangle(f, E, I);
|
|
1258
|
+
if (Q < C && (p.copy(E), m && m.copy(I), C = Q, R = P, g = x), Q < n)
|
|
1259
1259
|
return !0;
|
|
1260
1260
|
}
|
|
1261
1261
|
}
|
|
@@ -1416,9 +1416,9 @@ function Qt(c, s, t, e, i, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
|
|
|
1416
1416
|
else {
|
|
1417
1417
|
const w = _e.getPrimitive();
|
|
1418
1418
|
w.copy(Di).applyMatrix4(t);
|
|
1419
|
-
const P = $t(c),
|
|
1420
|
-
wt(P, f, Ge), wt(
|
|
1421
|
-
const v = w.intersectsBox(Ge),
|
|
1419
|
+
const P = $t(c), _ = jt(c, E);
|
|
1420
|
+
wt(P, f, Ge), wt(_, f, He);
|
|
1421
|
+
const v = w.intersectsBox(Ge), Q = w.intersectsBox(He);
|
|
1422
1422
|
S = v && Qt(
|
|
1423
1423
|
L,
|
|
1424
1424
|
P,
|
|
@@ -1431,9 +1431,9 @@ function Qt(c, s, t, e, i, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
|
|
|
1431
1431
|
o + 1,
|
|
1432
1432
|
w,
|
|
1433
1433
|
!h
|
|
1434
|
-
) ||
|
|
1434
|
+
) || Q && Qt(
|
|
1435
1435
|
L,
|
|
1436
|
-
|
|
1436
|
+
_,
|
|
1437
1437
|
e,
|
|
1438
1438
|
t,
|
|
1439
1439
|
i,
|
|
@@ -1463,9 +1463,9 @@ function Qt(c, s, t, e, i, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
|
|
|
1463
1463
|
else {
|
|
1464
1464
|
const w = _e.getPrimitive();
|
|
1465
1465
|
w.copy(Ui).applyMatrix4(t);
|
|
1466
|
-
const P = $t(c),
|
|
1467
|
-
wt(P, f, Ge), wt(
|
|
1468
|
-
const v = w.intersectsBox(Ge),
|
|
1466
|
+
const P = $t(c), _ = jt(c, E);
|
|
1467
|
+
wt(P, f, Ge), wt(_, f, He);
|
|
1468
|
+
const v = w.intersectsBox(Ge), Q = w.intersectsBox(He);
|
|
1469
1469
|
S = v && Qt(
|
|
1470
1470
|
N,
|
|
1471
1471
|
P,
|
|
@@ -1478,9 +1478,9 @@ function Qt(c, s, t, e, i, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
|
|
|
1478
1478
|
o + 1,
|
|
1479
1479
|
w,
|
|
1480
1480
|
!h
|
|
1481
|
-
) ||
|
|
1481
|
+
) || Q && Qt(
|
|
1482
1482
|
N,
|
|
1483
|
-
|
|
1483
|
+
_,
|
|
1484
1484
|
e,
|
|
1485
1485
|
t,
|
|
1486
1486
|
i,
|
|
@@ -1736,15 +1736,15 @@ function Ia(c) {
|
|
|
1736
1736
|
function ga() {
|
|
1737
1737
|
this.boundsTree = null;
|
|
1738
1738
|
}
|
|
1739
|
-
class
|
|
1739
|
+
class j {
|
|
1740
1740
|
constructor() {
|
|
1741
1741
|
/** Triggers all the callbacks assigned to this event. */
|
|
1742
|
-
|
|
1742
|
+
T(this, "trigger", (s) => {
|
|
1743
1743
|
const t = this.handlers.slice(0);
|
|
1744
1744
|
for (const e of t)
|
|
1745
1745
|
e(s);
|
|
1746
1746
|
});
|
|
1747
|
-
|
|
1747
|
+
T(this, "handlers", []);
|
|
1748
1748
|
}
|
|
1749
1749
|
/**
|
|
1750
1750
|
* Add a callback to this event instance.
|
|
@@ -1768,12 +1768,12 @@ class Q {
|
|
|
1768
1768
|
class oi {
|
|
1769
1769
|
constructor() {
|
|
1770
1770
|
/** Triggers all the callbacks assigned to this event. */
|
|
1771
|
-
|
|
1771
|
+
T(this, "trigger", async (s) => {
|
|
1772
1772
|
const t = this.handlers.slice(0);
|
|
1773
1773
|
for (const e of t)
|
|
1774
1774
|
await e(s);
|
|
1775
1775
|
});
|
|
1776
|
-
|
|
1776
|
+
T(this, "handlers", []);
|
|
1777
1777
|
}
|
|
1778
1778
|
/**
|
|
1779
1779
|
* Add a callback to this event instance.
|
|
@@ -1797,15 +1797,15 @@ class oi {
|
|
|
1797
1797
|
class An {
|
|
1798
1798
|
constructor(s) {
|
|
1799
1799
|
/** Whether is component is {@link Disposable}. */
|
|
1800
|
-
|
|
1800
|
+
T(this, "isDisposeable", () => "dispose" in this && "onDisposed" in this);
|
|
1801
1801
|
/** Whether is component is {@link Resizeable}. */
|
|
1802
|
-
|
|
1802
|
+
T(this, "isResizeable", () => "resize" in this && "getSize" in this);
|
|
1803
1803
|
/** Whether is component is {@link Updateable}. */
|
|
1804
|
-
|
|
1804
|
+
T(this, "isUpdateable", () => "onAfterUpdate" in this && "onBeforeUpdate" in this && "update" in this);
|
|
1805
1805
|
/** Whether is component is {@link Hideable}. */
|
|
1806
|
-
|
|
1806
|
+
T(this, "isHideable", () => "visible" in this);
|
|
1807
1807
|
/** Whether is component is {@link Configurable}. */
|
|
1808
|
-
|
|
1808
|
+
T(this, "isConfigurable", () => "setup" in this && "config" in this && "onSetup" in this);
|
|
1809
1809
|
this.components = s;
|
|
1810
1810
|
}
|
|
1811
1811
|
}
|
|
@@ -1814,16 +1814,16 @@ class St extends An {
|
|
|
1814
1814
|
class Rn extends An {
|
|
1815
1815
|
constructor(t) {
|
|
1816
1816
|
super(t);
|
|
1817
|
-
|
|
1817
|
+
T(this, "worlds", /* @__PURE__ */ new Map());
|
|
1818
1818
|
/**
|
|
1819
1819
|
* Event that is triggered when a world is added or removed from the `worlds` map.
|
|
1820
1820
|
* The event payload contains the world instance and the action ("added" or "removed").
|
|
1821
1821
|
*/
|
|
1822
|
-
|
|
1822
|
+
T(this, "onWorldChanged", new j());
|
|
1823
1823
|
/**
|
|
1824
1824
|
* The current world this item is associated with. It can be null if no world is currently active.
|
|
1825
1825
|
*/
|
|
1826
|
-
|
|
1826
|
+
T(this, "currentWorld", null);
|
|
1827
1827
|
this.onWorldChanged.add(({ world: e, action: i }) => {
|
|
1828
1828
|
i === "removed" && this.worlds.delete(e.uuid);
|
|
1829
1829
|
});
|
|
@@ -1837,29 +1837,29 @@ class Ca extends Rn {
|
|
|
1837
1837
|
*
|
|
1838
1838
|
* @returns True if the instance is controllable, false otherwise.
|
|
1839
1839
|
*/
|
|
1840
|
-
|
|
1840
|
+
T(this, "hasCameraControls", () => "controls" in this);
|
|
1841
1841
|
}
|
|
1842
1842
|
}
|
|
1843
1843
|
class Ta extends Rn {
|
|
1844
1844
|
constructor() {
|
|
1845
1845
|
super(...arguments);
|
|
1846
1846
|
/** {@link Updateable.onBeforeUpdate} */
|
|
1847
|
-
|
|
1847
|
+
T(this, "onAfterUpdate", new j());
|
|
1848
1848
|
/** {@link Updateable.onAfterUpdate} */
|
|
1849
|
-
|
|
1849
|
+
T(this, "onBeforeUpdate", new j());
|
|
1850
1850
|
/** {@link Disposable.onDisposed} */
|
|
1851
|
-
|
|
1851
|
+
T(this, "onDisposed", new j());
|
|
1852
1852
|
/** {@link Resizeable.onResize} */
|
|
1853
|
-
|
|
1853
|
+
T(this, "onResize", new j());
|
|
1854
1854
|
/**
|
|
1855
1855
|
* Event that fires when there has been a change to the list of clipping
|
|
1856
1856
|
* planes used by the active renderer.
|
|
1857
1857
|
*/
|
|
1858
|
-
|
|
1858
|
+
T(this, "onClippingPlanesUpdated", new j());
|
|
1859
1859
|
/**
|
|
1860
1860
|
* The list of [clipping planes](https://threejs.org/docs/#api/en/renderers/WebGLRenderer.clippingPlanes) used by this instance of the renderer.
|
|
1861
1861
|
*/
|
|
1862
|
-
|
|
1862
|
+
T(this, "clippingPlanes", []);
|
|
1863
1863
|
}
|
|
1864
1864
|
/**
|
|
1865
1865
|
* Updates the clipping planes and triggers the `onClippingPlanesUpdated` event.
|
|
@@ -1896,9 +1896,9 @@ class Ta extends Rn {
|
|
|
1896
1896
|
const ys = class ys extends St {
|
|
1897
1897
|
constructor(t) {
|
|
1898
1898
|
super(t);
|
|
1899
|
-
|
|
1899
|
+
T(this, "_disposedComponents", /* @__PURE__ */ new Set());
|
|
1900
1900
|
/** {@link Component.enabled} */
|
|
1901
|
-
|
|
1901
|
+
T(this, "enabled", !0);
|
|
1902
1902
|
t.add(ys.uuid, this);
|
|
1903
1903
|
}
|
|
1904
1904
|
// TODO: Remove this?
|
|
@@ -1956,17 +1956,17 @@ const ys = class ys extends St {
|
|
|
1956
1956
|
* A unique identifier for the component.
|
|
1957
1957
|
* This UUID is used to register the component within the Components system.
|
|
1958
1958
|
*/
|
|
1959
|
-
|
|
1959
|
+
T(ys, "uuid", "76e9cd8e-ad8f-4753-9ef6-cbc60f7247fe");
|
|
1960
1960
|
let Fe = ys;
|
|
1961
1961
|
class _a extends Rn {
|
|
1962
1962
|
constructor(t) {
|
|
1963
1963
|
super(t);
|
|
1964
1964
|
/** {@link Disposable.onDisposed} */
|
|
1965
|
-
|
|
1965
|
+
T(this, "onDisposed", new j());
|
|
1966
1966
|
/** The set of directional lights managed by this scene component. */
|
|
1967
|
-
|
|
1967
|
+
T(this, "directionalLights", /* @__PURE__ */ new Map());
|
|
1968
1968
|
/** The set of ambient lights managed by this scene component. */
|
|
1969
|
-
|
|
1969
|
+
T(this, "ambientLights", /* @__PURE__ */ new Map());
|
|
1970
1970
|
}
|
|
1971
1971
|
/** {@link Disposable.dispose} */
|
|
1972
1972
|
dispose() {
|
|
@@ -1993,15 +1993,15 @@ class qe extends Set {
|
|
|
1993
1993
|
/**
|
|
1994
1994
|
* An event that is triggered when a new item is added to the set.
|
|
1995
1995
|
*/
|
|
1996
|
-
|
|
1996
|
+
T(this, "onItemAdded", new j());
|
|
1997
1997
|
/**
|
|
1998
1998
|
* An event that is triggered when an item is deleted from the set.
|
|
1999
1999
|
*/
|
|
2000
|
-
|
|
2000
|
+
T(this, "onItemDeleted", new j());
|
|
2001
2001
|
/**
|
|
2002
2002
|
* An event that is triggered when the set is cleared.
|
|
2003
2003
|
*/
|
|
2004
|
-
|
|
2004
|
+
T(this, "onCleared", new j());
|
|
2005
2005
|
/**
|
|
2006
2006
|
* A function that acts as a guard for adding items to the set.
|
|
2007
2007
|
* It determines whether a given value should be allowed to be added to the set.
|
|
@@ -2011,7 +2011,7 @@ class qe extends Set {
|
|
|
2011
2011
|
* By default, this function always returns true, allowing all values to be added.
|
|
2012
2012
|
* You can override this behavior by providing a custom implementation.
|
|
2013
2013
|
*/
|
|
2014
|
-
|
|
2014
|
+
T(this, "guard", () => !0);
|
|
2015
2015
|
}
|
|
2016
2016
|
/**
|
|
2017
2017
|
* Clears the set and triggers the onCleared event.
|
|
@@ -2027,7 +2027,7 @@ class qe extends Set {
|
|
|
2027
2027
|
*/
|
|
2028
2028
|
add(...t) {
|
|
2029
2029
|
for (const e of t)
|
|
2030
|
-
this.has(e) || !this.guard(e) || (super.add(e), this.onItemAdded || (this.onItemAdded = new
|
|
2030
|
+
this.has(e) || !this.guard(e) || (super.add(e), this.onItemAdded || (this.onItemAdded = new j()), this.onItemAdded.trigger(e));
|
|
2031
2031
|
return this;
|
|
2032
2032
|
}
|
|
2033
2033
|
/**
|
|
@@ -2058,19 +2058,19 @@ class Ee extends Map {
|
|
|
2058
2058
|
/**
|
|
2059
2059
|
* An event triggered when a new item is set in the map.
|
|
2060
2060
|
*/
|
|
2061
|
-
|
|
2061
|
+
T(this, "onItemSet", new j());
|
|
2062
2062
|
/**
|
|
2063
2063
|
* An event triggered when an existing item in the map is updated.
|
|
2064
2064
|
*/
|
|
2065
|
-
|
|
2065
|
+
T(this, "onItemUpdated", new j());
|
|
2066
2066
|
/**
|
|
2067
2067
|
* An event triggered when an item is deleted from the map.
|
|
2068
2068
|
*/
|
|
2069
|
-
|
|
2069
|
+
T(this, "onItemDeleted", new j());
|
|
2070
2070
|
/**
|
|
2071
2071
|
* An event triggered when the map is cleared.
|
|
2072
2072
|
*/
|
|
2073
|
-
|
|
2073
|
+
T(this, "onCleared", new j());
|
|
2074
2074
|
/**
|
|
2075
2075
|
* A function that acts as a guard for adding items to the set.
|
|
2076
2076
|
* It determines whether a given value should be allowed to be added to the set.
|
|
@@ -2081,7 +2081,7 @@ class Ee extends Map {
|
|
|
2081
2081
|
* By default, this function always returns true, allowing all values to be added.
|
|
2082
2082
|
* You can override this behavior by providing a custom implementation.
|
|
2083
2083
|
*/
|
|
2084
|
-
|
|
2084
|
+
T(this, "guard", () => !0);
|
|
2085
2085
|
}
|
|
2086
2086
|
/**
|
|
2087
2087
|
* Clears the map and triggers the onCleared event.
|
|
@@ -2101,7 +2101,7 @@ class Ee extends Map {
|
|
|
2101
2101
|
if (!(this.guard ?? (() => !0))(t, e))
|
|
2102
2102
|
return this;
|
|
2103
2103
|
const o = super.set(t, e);
|
|
2104
|
-
return i ? (this.onItemUpdated || (this.onItemUpdated = new
|
|
2104
|
+
return i ? (this.onItemUpdated || (this.onItemUpdated = new j()), this.onItemUpdated.trigger({ key: t, value: e })) : (this.onItemSet || (this.onItemSet = new j()), this.onItemSet.trigger({ key: t, value: e })), o;
|
|
2105
2105
|
}
|
|
2106
2106
|
/**
|
|
2107
2107
|
* Deletes the specified key from the map and triggers the onItemDeleted event if the key was found.
|
|
@@ -2552,14 +2552,14 @@ function ba(c) {
|
|
|
2552
2552
|
F.elements[0] = I, F.elements[1] = m, F.elements[2] = C, F.elements[3] = m, F.elements[4] = R, F.elements[5] = g, F.elements[6] = C, F.elements[7] = g, F.elements[8] = y, Na(F, e);
|
|
2553
2553
|
const S = e.unitary, L = new M.Vector3(), N = new M.Vector3(), x = new M.Vector3();
|
|
2554
2554
|
S.extractBasis(L, N, x);
|
|
2555
|
-
let k = -1 / 0, w = -1 / 0, P = -1 / 0,
|
|
2555
|
+
let k = -1 / 0, w = -1 / 0, P = -1 / 0, _ = 1 / 0, v = 1 / 0, Q = 1 / 0;
|
|
2556
2556
|
for (let at = 0, ft = s.length; at < ft; at++) {
|
|
2557
2557
|
const ut = s[at];
|
|
2558
|
-
k = Math.max(L.dot(ut), k), w = Math.max(N.dot(ut), w), P = Math.max(x.dot(ut), P),
|
|
2558
|
+
k = Math.max(L.dot(ut), k), w = Math.max(N.dot(ut), w), P = Math.max(x.dot(ut), P), _ = Math.min(L.dot(ut), _), v = Math.min(N.dot(ut), v), Q = Math.min(x.dot(ut), Q);
|
|
2559
2559
|
}
|
|
2560
|
-
L.multiplyScalar(0.5 * (
|
|
2560
|
+
L.multiplyScalar(0.5 * (_ + k)), N.multiplyScalar(0.5 * (v + w)), x.multiplyScalar(0.5 * (Q + P));
|
|
2561
2561
|
const V = new M.Vector3(), et = new M.Vector3(), H = new M.Matrix3();
|
|
2562
|
-
V.add(L).add(N).add(x), et.x = k -
|
|
2562
|
+
V.add(L).add(N).add(x), et.x = k - _, et.y = w - v, et.z = P - Q, et.multiplyScalar(0.5), H.copy(S);
|
|
2563
2563
|
const { x: nt, y: z, z: U } = et, ot = new M.Matrix4();
|
|
2564
2564
|
ot.makeScale(nt * 2, z * 2, U * 2);
|
|
2565
2565
|
const st = new M.Matrix4();
|
|
@@ -2602,8 +2602,8 @@ const Nt = class Nt {
|
|
|
2602
2602
|
);
|
|
2603
2603
|
}
|
|
2604
2604
|
};
|
|
2605
|
-
|
|
2606
|
-
|
|
2605
|
+
T(Nt, "_pattern", /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/), // prettier-ignore
|
|
2606
|
+
T(Nt, "_lut", [
|
|
2607
2607
|
"00",
|
|
2608
2608
|
"01",
|
|
2609
2609
|
"02",
|
|
@@ -2866,34 +2866,34 @@ class xl extends St {
|
|
|
2866
2866
|
constructor(t, e) {
|
|
2867
2867
|
super(t);
|
|
2868
2868
|
/** {@link Disposable.onDisposed} */
|
|
2869
|
-
|
|
2869
|
+
T(this, "onDisposed", new j());
|
|
2870
2870
|
/**
|
|
2871
2871
|
* An event that is triggered when a vertex is found.
|
|
2872
2872
|
* The event passes a THREE.Vector3 representing the position of the found vertex.
|
|
2873
2873
|
*/
|
|
2874
|
-
|
|
2874
|
+
T(this, "onVertexFound", new j());
|
|
2875
2875
|
/**
|
|
2876
2876
|
* An event that is triggered when a vertex is lost.
|
|
2877
2877
|
* The event passes a THREE.Vector3 representing the position of the lost vertex.
|
|
2878
2878
|
*/
|
|
2879
|
-
|
|
2879
|
+
T(this, "onVertexLost", new j());
|
|
2880
2880
|
/**
|
|
2881
2881
|
* An event that is triggered when the picker is enabled or disabled
|
|
2882
2882
|
*/
|
|
2883
|
-
|
|
2883
|
+
T(this, "onEnabled", new j());
|
|
2884
2884
|
/**
|
|
2885
2885
|
* A reference to the Components instance associated with this VertexPicker.
|
|
2886
2886
|
*/
|
|
2887
|
-
|
|
2887
|
+
T(this, "components");
|
|
2888
2888
|
/**
|
|
2889
2889
|
* A reference to the working plane used for vertex picking.
|
|
2890
2890
|
* This plane is used to determine which vertices are considered valid for picking.
|
|
2891
2891
|
* If this value is null, all vertices are considered valid.
|
|
2892
2892
|
*/
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2893
|
+
T(this, "workingPlane", null);
|
|
2894
|
+
T(this, "_pickedPoint", null);
|
|
2895
|
+
T(this, "_config");
|
|
2896
|
+
T(this, "_enabled", !1);
|
|
2897
2897
|
this.components = t, this.config = {
|
|
2898
2898
|
snapDistance: 0.25,
|
|
2899
2899
|
showOnlyVertex: !1,
|
|
@@ -3015,19 +3015,38 @@ class xl extends St {
|
|
|
3015
3015
|
const ui = class ui {
|
|
3016
3016
|
constructor() {
|
|
3017
3017
|
/** {@link Disposable.onDisposed} */
|
|
3018
|
-
|
|
3018
|
+
T(this, "onDisposed", new j());
|
|
3019
3019
|
/**
|
|
3020
3020
|
* The list of components created in this app.
|
|
3021
3021
|
* The keys are UUIDs and the values are instances of the components.
|
|
3022
3022
|
*/
|
|
3023
|
-
|
|
3023
|
+
T(this, "list", /* @__PURE__ */ new Map());
|
|
3024
3024
|
/**
|
|
3025
3025
|
* If disabled, the animation loop will be stopped.
|
|
3026
3026
|
* Default value is false.
|
|
3027
3027
|
*/
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3028
|
+
T(this, "enabled", !1);
|
|
3029
|
+
T(this, "_clock");
|
|
3030
|
+
/**
|
|
3031
|
+
* Event that triggers the Components instance is initialized.
|
|
3032
|
+
*
|
|
3033
|
+
* @remarks
|
|
3034
|
+
* This event is triggered once when the {@link Components.init} method has been called and finish processing.
|
|
3035
|
+
* This is useful to set configuration placeholders that need to be executed when the components instance is initialized.
|
|
3036
|
+
* For example, enabling and configuring custom effects in a post-production renderer.
|
|
3037
|
+
*
|
|
3038
|
+
* @example
|
|
3039
|
+
* ```typescript
|
|
3040
|
+
* const components = new Components();
|
|
3041
|
+
* components.onInit.add(() => {
|
|
3042
|
+
* // Enable custom effects in the post-production renderer
|
|
3043
|
+
* // or any other operation dependant on the component initialization
|
|
3044
|
+
* });
|
|
3045
|
+
* components.init();
|
|
3046
|
+
* ```
|
|
3047
|
+
*/
|
|
3048
|
+
T(this, "onInit", new j());
|
|
3049
|
+
T(this, "update", () => {
|
|
3031
3050
|
if (!this.enabled)
|
|
3032
3051
|
return;
|
|
3033
3052
|
const s = this._clock.getDelta();
|
|
@@ -3080,11 +3099,9 @@ const ui = class ui {
|
|
|
3080
3099
|
* Initializes the Components instance.
|
|
3081
3100
|
* This method starts the animation loop, sets the enabled flag to true,
|
|
3082
3101
|
* and calls the update method.
|
|
3083
|
-
*
|
|
3084
|
-
* @returns {void}
|
|
3085
3102
|
*/
|
|
3086
3103
|
init() {
|
|
3087
|
-
this.enabled = !0, this._clock.start(), this.update();
|
|
3104
|
+
this.enabled = !0, this._clock.start(), this.update(), this.onInit.trigger();
|
|
3088
3105
|
}
|
|
3089
3106
|
/**
|
|
3090
3107
|
* Disposes the memory of all the components and tools of this instance of
|
|
@@ -3114,7 +3131,7 @@ const ui = class ui {
|
|
|
3114
3131
|
/**
|
|
3115
3132
|
* The version of the @thatopen/components library.
|
|
3116
3133
|
*/
|
|
3117
|
-
|
|
3134
|
+
T(ui, "release", "2.2.12");
|
|
3118
3135
|
let an = ui;
|
|
3119
3136
|
class La extends An {
|
|
3120
3137
|
constructor() {
|
|
@@ -3122,33 +3139,33 @@ class La extends An {
|
|
|
3122
3139
|
/**
|
|
3123
3140
|
* All the loaded [meshes](https://threejs.org/docs/#api/en/objects/Mesh). These meshes will be taken into account in operations like raycasting.
|
|
3124
3141
|
*/
|
|
3125
|
-
|
|
3142
|
+
T(this, "meshes", /* @__PURE__ */ new Set());
|
|
3126
3143
|
/** {@link Updateable.onAfterUpdate} */
|
|
3127
|
-
|
|
3144
|
+
T(this, "onAfterUpdate", new j());
|
|
3128
3145
|
/** {@link Updateable.onBeforeUpdate} */
|
|
3129
|
-
|
|
3146
|
+
T(this, "onBeforeUpdate", new j());
|
|
3130
3147
|
/** {@link Disposable.onDisposed} */
|
|
3131
|
-
|
|
3148
|
+
T(this, "onDisposed", new j());
|
|
3132
3149
|
/**
|
|
3133
3150
|
* Indicates whether the world is currently being disposed. This is useful to prevent trying to access world's elements when it's being disposed, which could cause errors when you dispose a world.
|
|
3134
3151
|
*/
|
|
3135
|
-
|
|
3152
|
+
T(this, "isDisposing", !1);
|
|
3136
3153
|
/**
|
|
3137
3154
|
* Indicates whether the world is currently enabled.
|
|
3138
3155
|
* When disabled, the world will not be updated.
|
|
3139
3156
|
*/
|
|
3140
|
-
|
|
3157
|
+
T(this, "enabled", !0);
|
|
3141
3158
|
/**
|
|
3142
3159
|
* A unique identifier for the world. Is not meant to be changed at any moment.
|
|
3143
3160
|
*/
|
|
3144
|
-
|
|
3161
|
+
T(this, "uuid", me.create());
|
|
3145
3162
|
/**
|
|
3146
3163
|
* An optional name for the world.
|
|
3147
3164
|
*/
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3165
|
+
T(this, "name");
|
|
3166
|
+
T(this, "_scene");
|
|
3167
|
+
T(this, "_camera");
|
|
3168
|
+
T(this, "_renderer", null);
|
|
3152
3169
|
}
|
|
3153
3170
|
/**
|
|
3154
3171
|
* Getter for the scene. If no scene is initialized, it throws an error.
|
|
@@ -3220,19 +3237,19 @@ class Ma extends _a {
|
|
|
3220
3237
|
constructor(t) {
|
|
3221
3238
|
super(t);
|
|
3222
3239
|
/** {@link Configurable.isSetup} */
|
|
3223
|
-
|
|
3240
|
+
T(this, "isSetup", !1);
|
|
3224
3241
|
/**
|
|
3225
3242
|
* The underlying Three.js scene object.
|
|
3226
3243
|
* It is used to define the 3D space containing objects, lights, and cameras.
|
|
3227
3244
|
*/
|
|
3228
|
-
|
|
3245
|
+
T(this, "three");
|
|
3229
3246
|
/** {@link Configurable.onSetup} */
|
|
3230
|
-
|
|
3247
|
+
T(this, "onSetup", new j());
|
|
3231
3248
|
/**
|
|
3232
3249
|
* Configuration interface for the {@link SimpleScene}.
|
|
3233
3250
|
* Defines properties for directional and ambient lights.
|
|
3234
3251
|
*/
|
|
3235
|
-
|
|
3252
|
+
T(this, "config", {
|
|
3236
3253
|
directionalLight: {
|
|
3237
3254
|
color: new M.Color("white"),
|
|
3238
3255
|
intensity: 1.5,
|
|
@@ -3274,35 +3291,35 @@ class vl extends Ta {
|
|
|
3274
3291
|
* Indicates whether the renderer is enabled. If it's not, it won't be updated.
|
|
3275
3292
|
* Default is `true`.
|
|
3276
3293
|
*/
|
|
3277
|
-
|
|
3294
|
+
T(this, "enabled", !0);
|
|
3278
3295
|
/**
|
|
3279
3296
|
* The HTML container of the THREE.js canvas where the scene is rendered.
|
|
3280
3297
|
*/
|
|
3281
|
-
|
|
3298
|
+
T(this, "container");
|
|
3282
3299
|
/**
|
|
3283
3300
|
* The THREE.js WebGLRenderer instance.
|
|
3284
3301
|
*/
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3302
|
+
T(this, "three");
|
|
3303
|
+
T(this, "_canvas");
|
|
3304
|
+
T(this, "_parameters");
|
|
3305
|
+
T(this, "_resizeObserver", null);
|
|
3306
|
+
T(this, "onContainerUpdated", new j());
|
|
3307
|
+
T(this, "_resizing", !1);
|
|
3291
3308
|
/** {@link Resizeable.resize} */
|
|
3292
|
-
|
|
3309
|
+
T(this, "resize", (t) => {
|
|
3293
3310
|
if (this._resizing)
|
|
3294
3311
|
return;
|
|
3295
3312
|
this._resizing = !0, this.onContainerUpdated.trigger();
|
|
3296
3313
|
const e = t ? t.x : this.container.clientWidth, i = t ? t.y : this.container.clientHeight;
|
|
3297
3314
|
this.three.setSize(e, i), this.onResize.trigger(new M.Vector2(e, i)), this._resizing = !1;
|
|
3298
3315
|
});
|
|
3299
|
-
|
|
3316
|
+
T(this, "resizeEvent", () => {
|
|
3300
3317
|
this.resize();
|
|
3301
3318
|
});
|
|
3302
|
-
|
|
3319
|
+
T(this, "onContextLost", (t) => {
|
|
3303
3320
|
t.preventDefault(), this.enabled = !1;
|
|
3304
3321
|
});
|
|
3305
|
-
|
|
3322
|
+
T(this, "onContextBack", () => {
|
|
3306
3323
|
this.three.setRenderTarget(null), this.three.dispose(), this.three = new M.WebGLRenderer({
|
|
3307
3324
|
canvas: this._canvas,
|
|
3308
3325
|
antialias: !0,
|
|
@@ -3435,8 +3452,8 @@ function nr(c, s, t, e, i = 1 / 0, n, r) {
|
|
|
3435
3452
|
h = c.x - f, d = c.y - E, u = c.z - p;
|
|
3436
3453
|
const F = (t.x + o * f) * n, S = (t.y + o * E) * n, L = (t.z + o * p) * n;
|
|
3437
3454
|
t.x = (t.x - o * F) * l, t.y = (t.y - o * S) * l, t.z = (t.z - o * L) * l, r.x = h + (f + F) * l, r.y = d + (E + S) * l, r.z = u + (p + L) * l;
|
|
3438
|
-
const N = I - c.x, x = m - c.y, k = C - c.z, w = r.x - I, P = r.y - m,
|
|
3439
|
-
return N * w + x * P + k *
|
|
3455
|
+
const N = I - c.x, x = m - c.y, k = C - c.z, w = r.x - I, P = r.y - m, _ = r.z - C;
|
|
3456
|
+
return N * w + x * P + k * _ > 0 && (r.x = I, r.y = m, r.z = C, t.x = (r.x - I) / n, t.y = (r.y - m) / n, t.z = (r.z - C) / n), r;
|
|
3440
3457
|
}
|
|
3441
3458
|
function Yi(c, s) {
|
|
3442
3459
|
s.set(0, 0), c.forEach((t) => {
|
|
@@ -4732,27 +4749,27 @@ class Ns extends Ca {
|
|
|
4732
4749
|
constructor(t) {
|
|
4733
4750
|
super(t);
|
|
4734
4751
|
/** {@link Updateable.onBeforeUpdate} */
|
|
4735
|
-
|
|
4752
|
+
T(this, "onBeforeUpdate", new j());
|
|
4736
4753
|
/** {@link Updateable.onAfterUpdate} */
|
|
4737
|
-
|
|
4754
|
+
T(this, "onAfterUpdate", new j());
|
|
4738
4755
|
/**
|
|
4739
4756
|
* Event that is triggered when the aspect of the camera has been updated.
|
|
4740
4757
|
* This event is useful when you need to perform actions after the aspect of the camera has been changed.
|
|
4741
4758
|
*/
|
|
4742
|
-
|
|
4759
|
+
T(this, "onAspectUpdated", new j());
|
|
4743
4760
|
/** {@link Disposable.onDisposed} */
|
|
4744
|
-
|
|
4761
|
+
T(this, "onDisposed", new j());
|
|
4745
4762
|
/**
|
|
4746
4763
|
* A three.js PerspectiveCamera or OrthographicCamera instance.
|
|
4747
4764
|
* This camera is used for rendering the scene.
|
|
4748
4765
|
*/
|
|
4749
|
-
|
|
4750
|
-
|
|
4766
|
+
T(this, "three");
|
|
4767
|
+
T(this, "_allControls", /* @__PURE__ */ new Map());
|
|
4751
4768
|
/**
|
|
4752
4769
|
* Updates the aspect of the camera to match the size of the
|
|
4753
4770
|
* {@link Components.renderer}.
|
|
4754
4771
|
*/
|
|
4755
|
-
|
|
4772
|
+
T(this, "updateAspect", () => {
|
|
4756
4773
|
var t;
|
|
4757
4774
|
if (!(!this.currentWorld || !this.currentWorld.renderer)) {
|
|
4758
4775
|
if (this.three instanceof M.OrthographicCamera) {
|
|
@@ -4855,18 +4872,18 @@ const fi = class fi extends St {
|
|
|
4855
4872
|
constructor(t) {
|
|
4856
4873
|
super(t);
|
|
4857
4874
|
/** {@link Updateable.onAfterUpdate} */
|
|
4858
|
-
|
|
4875
|
+
T(this, "onAfterUpdate", new j());
|
|
4859
4876
|
/** {@link Updateable.onBeforeUpdate} */
|
|
4860
|
-
|
|
4877
|
+
T(this, "onBeforeUpdate", new j());
|
|
4861
4878
|
/** {@link Disposable.onDisposed} */
|
|
4862
|
-
|
|
4879
|
+
T(this, "onDisposed", new j());
|
|
4863
4880
|
/**
|
|
4864
4881
|
* A collection of worlds managed by this component.
|
|
4865
4882
|
* The key is the unique identifier (UUID) of the world, and the value is the World instance.
|
|
4866
4883
|
*/
|
|
4867
|
-
|
|
4884
|
+
T(this, "list", new Ee());
|
|
4868
4885
|
/** {@link Component.enabled} */
|
|
4869
|
-
|
|
4886
|
+
T(this, "enabled", !0);
|
|
4870
4887
|
t.add(fi.uuid, this);
|
|
4871
4888
|
}
|
|
4872
4889
|
/**
|
|
@@ -4918,7 +4935,7 @@ const fi = class fi extends St {
|
|
|
4918
4935
|
* A unique identifier for the component.
|
|
4919
4936
|
* This UUID is used to register the component within the Components system.
|
|
4920
4937
|
*/
|
|
4921
|
-
|
|
4938
|
+
T(fi, "uuid", "fdb61dc4-2ec1-4966-b83d-54ea795fad4a");
|
|
4922
4939
|
let hi = fi;
|
|
4923
4940
|
function Ba(c, s, t, e) {
|
|
4924
4941
|
return new Promise((i, n) => {
|
|
@@ -4948,52 +4965,52 @@ async function Br(c, s, t, e, i, n, r, o) {
|
|
|
4948
4965
|
class ka {
|
|
4949
4966
|
constructor(s, t, e) {
|
|
4950
4967
|
/** {@link Disposable.onDisposed} */
|
|
4951
|
-
|
|
4968
|
+
T(this, "onDisposed", new j());
|
|
4952
4969
|
/**
|
|
4953
4970
|
* Fires after making the visibility check to the meshes. It lists the
|
|
4954
4971
|
* meshes that are currently visible, and the ones that were visible
|
|
4955
4972
|
* just before but not anymore.
|
|
4956
4973
|
*/
|
|
4957
|
-
|
|
4974
|
+
T(this, "onViewUpdated", new oi());
|
|
4958
4975
|
/**
|
|
4959
4976
|
* Whether this renderer is active or not. If not, it won't render anything.
|
|
4960
4977
|
*/
|
|
4961
|
-
|
|
4978
|
+
T(this, "enabled", !0);
|
|
4962
4979
|
/**
|
|
4963
4980
|
* Needs to check whether there are objects that need to be hidden or shown.
|
|
4964
4981
|
* You can bind this to the camera movement, to a certain interval, etc.
|
|
4965
4982
|
*/
|
|
4966
|
-
|
|
4983
|
+
T(this, "needsUpdate", !1);
|
|
4967
4984
|
/**
|
|
4968
4985
|
* Render the internal scene used to determine the object visibility. Used
|
|
4969
4986
|
* for debugging purposes.
|
|
4970
4987
|
*/
|
|
4971
|
-
|
|
4988
|
+
T(this, "renderDebugFrame", !1);
|
|
4972
4989
|
/** The components instance to which this renderer belongs. */
|
|
4973
|
-
|
|
4990
|
+
T(this, "components");
|
|
4974
4991
|
/** The world instance to which this renderer belongs. */
|
|
4975
|
-
|
|
4992
|
+
T(this, "world");
|
|
4976
4993
|
/** The THREE.js renderer used to make the visibility test. */
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4994
|
+
T(this, "renderer");
|
|
4995
|
+
T(this, "autoUpdate", !0);
|
|
4996
|
+
T(this, "updateInterval", 1e3);
|
|
4997
|
+
T(this, "worker");
|
|
4998
|
+
T(this, "scene", new M.Scene());
|
|
4999
|
+
T(this, "_width", 512);
|
|
5000
|
+
T(this, "_height", 512);
|
|
5001
|
+
T(this, "_availableColor", 1);
|
|
5002
|
+
T(this, "renderTarget");
|
|
5003
|
+
T(this, "bufferSize");
|
|
5004
|
+
T(this, "_buffer");
|
|
4988
5005
|
// Prevents worker being fired multiple times
|
|
4989
|
-
|
|
5006
|
+
T(this, "_isWorkerBusy", !1);
|
|
4990
5007
|
/**
|
|
4991
5008
|
* The function that the culler uses to reprocess the scene. Generally it's
|
|
4992
5009
|
* better to call needsUpdate, but you can also call this to force it.
|
|
4993
5010
|
* @param force if true, it will refresh the scene even if needsUpdate is
|
|
4994
5011
|
* not true.
|
|
4995
5012
|
*/
|
|
4996
|
-
|
|
5013
|
+
T(this, "updateVisibility", async (s) => {
|
|
4997
5014
|
if (!this.enabled || !this.needsUpdate && !s || this._isWorkerBusy)
|
|
4998
5015
|
return;
|
|
4999
5016
|
this._isWorkerBusy = !0;
|
|
@@ -5085,33 +5102,33 @@ class Va extends ka {
|
|
|
5085
5102
|
* Event triggered when the visibility of meshes is updated.
|
|
5086
5103
|
* Contains two sets: seen and unseen.
|
|
5087
5104
|
*/
|
|
5088
|
-
|
|
5105
|
+
T(this, "onViewUpdated", new j());
|
|
5089
5106
|
/**
|
|
5090
5107
|
* Pixels in screen a geometry must occupy to be considered "seen".
|
|
5091
5108
|
* Default value is 100.
|
|
5092
5109
|
*/
|
|
5093
|
-
|
|
5110
|
+
T(this, "threshold", 100);
|
|
5094
5111
|
/**
|
|
5095
5112
|
* Map of color code to THREE.InstancedMesh.
|
|
5096
5113
|
* Used to keep track of color-coded meshes.
|
|
5097
5114
|
*/
|
|
5098
|
-
|
|
5115
|
+
T(this, "colorMeshes", /* @__PURE__ */ new Map());
|
|
5099
5116
|
/**
|
|
5100
5117
|
* Flag to indicate if the renderer is currently processing.
|
|
5101
5118
|
* Used to prevent concurrent processing.
|
|
5102
5119
|
*/
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5120
|
+
T(this, "isProcessing", !1);
|
|
5121
|
+
T(this, "_interval", null);
|
|
5122
|
+
T(this, "_colorCodeMeshMap", /* @__PURE__ */ new Map());
|
|
5123
|
+
T(this, "_meshIDColorCodeMap", /* @__PURE__ */ new Map());
|
|
5124
|
+
T(this, "_currentVisibleMeshes", /* @__PURE__ */ new Set());
|
|
5125
|
+
T(this, "_recentlyHiddenMeshes", /* @__PURE__ */ new Set());
|
|
5126
|
+
T(this, "_intervalID", null);
|
|
5127
|
+
T(this, "_transparentMat", new M.MeshBasicMaterial({
|
|
5111
5128
|
transparent: !0,
|
|
5112
5129
|
opacity: 0
|
|
5113
5130
|
}));
|
|
5114
|
-
|
|
5131
|
+
T(this, "handleWorkerMessage", async (t) => {
|
|
5115
5132
|
if (this.isProcessing)
|
|
5116
5133
|
return;
|
|
5117
5134
|
const e = t.data.colors;
|
|
@@ -5234,12 +5251,12 @@ const ws = class ws extends St {
|
|
|
5234
5251
|
/**
|
|
5235
5252
|
* An event that is triggered when the Cullers component is disposed.
|
|
5236
5253
|
*/
|
|
5237
|
-
|
|
5238
|
-
|
|
5254
|
+
T(this, "onDisposed", new j());
|
|
5255
|
+
T(this, "_enabled", !0);
|
|
5239
5256
|
/**
|
|
5240
5257
|
* A map of MeshCullerRenderer instances, keyed by their world UUIDs.
|
|
5241
5258
|
*/
|
|
5242
|
-
|
|
5259
|
+
T(this, "list", /* @__PURE__ */ new Map());
|
|
5243
5260
|
t.add(ws.uuid, this);
|
|
5244
5261
|
}
|
|
5245
5262
|
/** {@link Component.enabled} */
|
|
@@ -5302,66 +5319,66 @@ const ws = class ws extends St {
|
|
|
5302
5319
|
* A unique identifier for the component.
|
|
5303
5320
|
* This UUID is used to register the component within the Components system.
|
|
5304
5321
|
*/
|
|
5305
|
-
|
|
5322
|
+
T(ws, "uuid", "69f2a50d-c266-44fc-b1bd-fa4d34be89e6");
|
|
5306
5323
|
let cn = ws;
|
|
5307
5324
|
class Ya {
|
|
5308
5325
|
constructor(s, t) {
|
|
5309
5326
|
/** {@link Disposable.onDisposed} */
|
|
5310
|
-
|
|
5327
|
+
T(this, "onDisposed", new j());
|
|
5311
5328
|
/**
|
|
5312
5329
|
* Fires after making the visibility check to the meshes. It lists the
|
|
5313
5330
|
* meshes that are currently visible, and the ones that were visible
|
|
5314
5331
|
* just before but not anymore.
|
|
5315
5332
|
*/
|
|
5316
|
-
|
|
5333
|
+
T(this, "onDistanceComputed", new j());
|
|
5317
5334
|
/**
|
|
5318
5335
|
* Objects that won't be taken into account in the distance check.
|
|
5319
5336
|
*/
|
|
5320
|
-
|
|
5337
|
+
T(this, "excludedObjects", /* @__PURE__ */ new Set());
|
|
5321
5338
|
/**
|
|
5322
5339
|
* Whether this renderer is active or not. If not, it won't render anything.
|
|
5323
5340
|
*/
|
|
5324
|
-
|
|
5341
|
+
T(this, "enabled", !0);
|
|
5325
5342
|
/**
|
|
5326
5343
|
* Render the internal scene used to determine the object visibility. Used
|
|
5327
5344
|
* for debugging purposes.
|
|
5328
5345
|
*/
|
|
5329
|
-
|
|
5346
|
+
T(this, "renderDebugFrame", !1);
|
|
5330
5347
|
/** The components instance to which this renderer belongs. */
|
|
5331
|
-
|
|
5348
|
+
T(this, "components");
|
|
5332
5349
|
/**
|
|
5333
5350
|
* The scene where the distance is computed.
|
|
5334
5351
|
*/
|
|
5335
|
-
|
|
5352
|
+
T(this, "scene", new M.Scene());
|
|
5336
5353
|
/**
|
|
5337
5354
|
* The camera used to compute the distance.
|
|
5338
5355
|
*/
|
|
5339
|
-
|
|
5356
|
+
T(this, "camera", new M.OrthographicCamera(-1, 1, 1, -1, 0, 1));
|
|
5340
5357
|
/**
|
|
5341
5358
|
* The material used to compute the distance.
|
|
5342
5359
|
*/
|
|
5343
|
-
|
|
5360
|
+
T(this, "depthMaterial");
|
|
5344
5361
|
/** The world instance to which this renderer belongs. */
|
|
5345
|
-
|
|
5362
|
+
T(this, "world");
|
|
5346
5363
|
/** The THREE.js renderer used to make the visibility test. */
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5364
|
+
T(this, "renderer");
|
|
5365
|
+
T(this, "worker");
|
|
5366
|
+
T(this, "_width", 512);
|
|
5367
|
+
T(this, "_height", 512);
|
|
5368
|
+
T(this, "_postQuad");
|
|
5369
|
+
T(this, "tempRT");
|
|
5370
|
+
T(this, "resultRT");
|
|
5371
|
+
T(this, "bufferSize");
|
|
5372
|
+
T(this, "_buffer");
|
|
5356
5373
|
// Prevents worker being fired multiple times
|
|
5357
|
-
|
|
5374
|
+
T(this, "_isWorkerBusy", !1);
|
|
5358
5375
|
/**
|
|
5359
5376
|
* The function that the culler uses to reprocess the scene. Generally it's
|
|
5360
5377
|
* better to call needsUpdate, but you can also call this to force it.
|
|
5361
5378
|
* @param force if true, it will refresh the scene even if needsUpdate is
|
|
5362
5379
|
* not true.
|
|
5363
5380
|
*/
|
|
5364
|
-
|
|
5381
|
+
T(this, "compute", async () => {
|
|
5365
5382
|
if (!this.enabled || this.world.isDisposing || this._isWorkerBusy)
|
|
5366
5383
|
return;
|
|
5367
5384
|
this._isWorkerBusy = !0, this.world.camera.three.updateMatrix(), this.renderer.setSize(this._width, this._height), this.renderer.setRenderTarget(this.tempRT);
|
|
@@ -5392,7 +5409,7 @@ class Ya {
|
|
|
5392
5409
|
buffer: this._buffer
|
|
5393
5410
|
});
|
|
5394
5411
|
});
|
|
5395
|
-
|
|
5412
|
+
T(this, "handleWorkerMessage", (s) => {
|
|
5396
5413
|
if (!this.enabled || this.world.isDisposing)
|
|
5397
5414
|
return;
|
|
5398
5415
|
const t = s.data.colors;
|
|
@@ -5477,16 +5494,16 @@ void main() {
|
|
|
5477
5494
|
class Dl extends Ma {
|
|
5478
5495
|
constructor() {
|
|
5479
5496
|
super(...arguments);
|
|
5480
|
-
|
|
5497
|
+
T(this, "_distanceRenderer");
|
|
5481
5498
|
/**
|
|
5482
5499
|
* Whether the bias property should be set automatically depending on the shadow distance.
|
|
5483
5500
|
*/
|
|
5484
|
-
|
|
5501
|
+
T(this, "autoBias", !0);
|
|
5485
5502
|
/**
|
|
5486
5503
|
* Configuration interface for the {@link ShadowedScene}.
|
|
5487
5504
|
* Defines properties for directional and ambient lights, as well as shadows.
|
|
5488
5505
|
*/
|
|
5489
|
-
|
|
5506
|
+
T(this, "config", {
|
|
5490
5507
|
directionalLight: {
|
|
5491
5508
|
color: new M.Color("white"),
|
|
5492
5509
|
intensity: 1.5,
|
|
@@ -5501,11 +5518,11 @@ class Dl extends Ma {
|
|
|
5501
5518
|
resolution: 512
|
|
5502
5519
|
}
|
|
5503
5520
|
});
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5521
|
+
T(this, "_lightsWithShadow", /* @__PURE__ */ new Map());
|
|
5522
|
+
T(this, "_isComputingShadows", !1);
|
|
5523
|
+
T(this, "_shadowsEnabled", !0);
|
|
5524
|
+
T(this, "_bias", 0);
|
|
5525
|
+
T(this, "recomputeShadows", (t) => {
|
|
5509
5526
|
if (!this._shadowsEnabled)
|
|
5510
5527
|
return;
|
|
5511
5528
|
if (this.autoBias && (this.bias = t / -1e5), t *= 1.5, !this.currentWorld)
|
|
@@ -5610,11 +5627,11 @@ class Dl extends Ma {
|
|
|
5610
5627
|
}
|
|
5611
5628
|
class Ga {
|
|
5612
5629
|
constructor(s) {
|
|
5613
|
-
|
|
5614
|
-
|
|
5630
|
+
T(this, "_event");
|
|
5631
|
+
T(this, "_position", new M.Vector2());
|
|
5615
5632
|
/** {@link Disposable.onDisposed} */
|
|
5616
|
-
|
|
5617
|
-
|
|
5633
|
+
T(this, "onDisposed", new j());
|
|
5634
|
+
T(this, "updateMouseInfo", (s) => {
|
|
5618
5635
|
this._event = s;
|
|
5619
5636
|
});
|
|
5620
5637
|
this.dom = s, this.setupEvents(!0);
|
|
@@ -5646,23 +5663,23 @@ class Ga {
|
|
|
5646
5663
|
class Ha {
|
|
5647
5664
|
constructor(s, t) {
|
|
5648
5665
|
/** {@link Component.enabled} */
|
|
5649
|
-
|
|
5666
|
+
T(this, "enabled", !0);
|
|
5650
5667
|
/** The components instance to which this Raycaster belongs. */
|
|
5651
|
-
|
|
5668
|
+
T(this, "components");
|
|
5652
5669
|
/** {@link Disposable.onDisposed} */
|
|
5653
|
-
|
|
5670
|
+
T(this, "onDisposed", new j());
|
|
5654
5671
|
/** The position of the mouse in the screen. */
|
|
5655
|
-
|
|
5672
|
+
T(this, "mouse");
|
|
5656
5673
|
/**
|
|
5657
5674
|
* A reference to the Three.js Raycaster instance.
|
|
5658
5675
|
* This is used for raycasting operations.
|
|
5659
5676
|
*/
|
|
5660
|
-
|
|
5677
|
+
T(this, "three", new M.Raycaster());
|
|
5661
5678
|
/**
|
|
5662
5679
|
* A reference to the world instance to which this Raycaster belongs.
|
|
5663
5680
|
* This is used to access the camera and meshes.
|
|
5664
5681
|
*/
|
|
5665
|
-
|
|
5682
|
+
T(this, "world");
|
|
5666
5683
|
const e = t.renderer;
|
|
5667
5684
|
if (!e)
|
|
5668
5685
|
throw new Error("A renderer is needed for the raycaster to work!");
|
|
@@ -5719,14 +5736,14 @@ const pi = class pi extends St {
|
|
|
5719
5736
|
constructor(t) {
|
|
5720
5737
|
super(t);
|
|
5721
5738
|
/** {@link Component.enabled} */
|
|
5722
|
-
|
|
5739
|
+
T(this, "enabled", !0);
|
|
5723
5740
|
/**
|
|
5724
5741
|
* A Map that stores raycasters for each world.
|
|
5725
5742
|
* The key is the world's UUID, and the value is the corresponding SimpleRaycaster instance.
|
|
5726
5743
|
*/
|
|
5727
|
-
|
|
5744
|
+
T(this, "list", /* @__PURE__ */ new Map());
|
|
5728
5745
|
/** {@link Disposable.onDisposed} */
|
|
5729
|
-
|
|
5746
|
+
T(this, "onDisposed", new j());
|
|
5730
5747
|
t.add(pi.uuid, this);
|
|
5731
5748
|
}
|
|
5732
5749
|
/**
|
|
@@ -5767,20 +5784,20 @@ const pi = class pi extends St {
|
|
|
5767
5784
|
* A unique identifier for the component.
|
|
5768
5785
|
* This UUID is used to register the component within the Components system.
|
|
5769
5786
|
*/
|
|
5770
|
-
|
|
5787
|
+
T(pi, "uuid", "d5d8bdf0-db25-4952-b951-b643af207ace");
|
|
5771
5788
|
let ts = pi;
|
|
5772
5789
|
class Wa {
|
|
5773
5790
|
constructor(s, t, e) {
|
|
5774
5791
|
/** {@link Disposable.onDisposed} */
|
|
5775
|
-
|
|
5792
|
+
T(this, "onDisposed", new j());
|
|
5776
5793
|
/** The world instance to which this Raycaster belongs. */
|
|
5777
|
-
|
|
5794
|
+
T(this, "world");
|
|
5778
5795
|
/** The components instance to which this grid belongs. */
|
|
5779
|
-
|
|
5796
|
+
T(this, "components");
|
|
5780
5797
|
/** The Three.js mesh that contains the infinite grid. */
|
|
5781
|
-
|
|
5782
|
-
|
|
5783
|
-
|
|
5798
|
+
T(this, "three");
|
|
5799
|
+
T(this, "_fade", 3);
|
|
5800
|
+
T(this, "updateZoom", () => {
|
|
5784
5801
|
this.world.camera instanceof Ns && (this.material.uniforms.uZoom.value = this.world.camera.three.zoom);
|
|
5785
5802
|
});
|
|
5786
5803
|
this.world = t;
|
|
@@ -5921,20 +5938,20 @@ const Ei = class Ei extends St {
|
|
|
5921
5938
|
/**
|
|
5922
5939
|
* A map of world UUIDs to their corresponding grid instances.
|
|
5923
5940
|
*/
|
|
5924
|
-
|
|
5941
|
+
T(this, "list", /* @__PURE__ */ new Map());
|
|
5925
5942
|
/**
|
|
5926
5943
|
* The default configuration for grid creation.
|
|
5927
5944
|
*/
|
|
5928
|
-
|
|
5945
|
+
T(this, "config", {
|
|
5929
5946
|
color: new M.Color(12303291),
|
|
5930
5947
|
size1: 1,
|
|
5931
5948
|
size2: 10,
|
|
5932
5949
|
distance: 500
|
|
5933
5950
|
});
|
|
5934
5951
|
/** {@link Disposable.onDisposed} */
|
|
5935
|
-
|
|
5952
|
+
T(this, "onDisposed", new j());
|
|
5936
5953
|
/** {@link Component.enabled} */
|
|
5937
|
-
|
|
5954
|
+
T(this, "enabled", !0);
|
|
5938
5955
|
t.add(Ei.uuid, this);
|
|
5939
5956
|
}
|
|
5940
5957
|
/**
|
|
@@ -5979,7 +5996,7 @@ const Ei = class Ei extends St {
|
|
|
5979
5996
|
* A unique identifier for the component.
|
|
5980
5997
|
* This UUID is used to register the component within the Components system.
|
|
5981
5998
|
*/
|
|
5982
|
-
|
|
5999
|
+
T(Ei, "uuid", "d1e814d5-b81c-4452-87a2-f039375e0489");
|
|
5983
6000
|
let hr = Ei;
|
|
5984
6001
|
const be = new ao(), xt = new q(), Ce = new q(), yt = new le(), dr = {
|
|
5985
6002
|
X: new q(1, 0, 0),
|
|
@@ -6185,8 +6202,8 @@ class Ka extends Qi {
|
|
|
6185
6202
|
m.setAttribute("position", new Mn([0, 0, 0, 1, 0, 0], 3));
|
|
6186
6203
|
const C = new zt(75e-4, 75e-4, 0.5, 3);
|
|
6187
6204
|
C.translate(0, 0.25, 0);
|
|
6188
|
-
function R(v,
|
|
6189
|
-
const V = new rs(v, 75e-4, 3, 64,
|
|
6205
|
+
function R(v, Q) {
|
|
6206
|
+
const V = new rs(v, 75e-4, 3, 64, Q * Math.PI * 2);
|
|
6190
6207
|
return V.rotateY(Math.PI / 2), V.rotateX(Math.PI / 2), V;
|
|
6191
6208
|
}
|
|
6192
6209
|
function g() {
|
|
@@ -6365,18 +6382,18 @@ class Ka extends Qi {
|
|
|
6365
6382
|
[new Ie(m, i.clone()), [0, 0, -1e3], [0, -Math.PI / 2, 0], [1e6, 1, 1], "helper"]
|
|
6366
6383
|
]
|
|
6367
6384
|
};
|
|
6368
|
-
function
|
|
6369
|
-
const
|
|
6385
|
+
function _(v) {
|
|
6386
|
+
const Q = new Qi();
|
|
6370
6387
|
for (const V in v)
|
|
6371
6388
|
for (let et = v[V].length; et--; ) {
|
|
6372
6389
|
const H = v[V][et][0].clone(), nt = v[V][et][1], z = v[V][et][2], U = v[V][et][3], ot = v[V][et][4];
|
|
6373
6390
|
H.name = V, H.tag = ot, nt && H.position.set(nt[0], nt[1], nt[2]), z && H.rotation.set(z[0], z[1], z[2]), U && H.scale.set(U[0], U[1], U[2]), H.updateMatrix();
|
|
6374
6391
|
const st = H.geometry.clone();
|
|
6375
|
-
st.applyMatrix4(H.matrix), H.geometry = st, H.renderOrder = 1 / 0, H.position.set(0, 0, 0), H.rotation.set(0, 0, 0), H.scale.set(1, 1, 1),
|
|
6392
|
+
st.applyMatrix4(H.matrix), H.geometry = st, H.renderOrder = 1 / 0, H.position.set(0, 0, 0), H.rotation.set(0, 0, 0), H.scale.set(1, 1, 1), Q.add(H);
|
|
6376
6393
|
}
|
|
6377
|
-
return
|
|
6394
|
+
return Q;
|
|
6378
6395
|
}
|
|
6379
|
-
this.gizmo = {}, this.picker = {}, this.helper = {}, this.add(this.gizmo.translate =
|
|
6396
|
+
this.gizmo = {}, this.picker = {}, this.helper = {}, this.add(this.gizmo.translate = _(y)), this.add(this.gizmo.rotate = _(L)), this.add(this.gizmo.scale = _(k)), this.add(this.picker.translate = _(F)), this.add(this.picker.rotate = _(x)), this.add(this.picker.scale = _(w)), this.add(this.helper.translate = _(S)), this.add(this.helper.rotate = _(N)), this.add(this.helper.scale = _(P)), this.picker.translate.visible = !1, this.picker.rotate.visible = !1, this.picker.scale.visible = !1;
|
|
6380
6397
|
}
|
|
6381
6398
|
// updateMatrixWorld will update transformations and appearance of individual handles
|
|
6382
6399
|
updateMatrixWorld(s) {
|
|
@@ -6446,47 +6463,47 @@ class Ja extends rt {
|
|
|
6446
6463
|
class yn {
|
|
6447
6464
|
constructor(s, t, e, i, n, r = 5, o = !0) {
|
|
6448
6465
|
/** Event that fires when the user starts dragging a clipping plane. */
|
|
6449
|
-
|
|
6466
|
+
T(this, "onDraggingStarted", new j());
|
|
6450
6467
|
/** Event that fires when the user stops dragging a clipping plane. */
|
|
6451
|
-
|
|
6468
|
+
T(this, "onDraggingEnded", new j());
|
|
6452
6469
|
/** {@link Disposable.onDisposed} */
|
|
6453
|
-
|
|
6470
|
+
T(this, "onDisposed", new j());
|
|
6454
6471
|
/**
|
|
6455
6472
|
* The normal vector of the clipping plane.
|
|
6456
6473
|
*/
|
|
6457
|
-
|
|
6474
|
+
T(this, "normal");
|
|
6458
6475
|
/**
|
|
6459
6476
|
* The origin point of the clipping plane.
|
|
6460
6477
|
*/
|
|
6461
|
-
|
|
6478
|
+
T(this, "origin");
|
|
6462
6479
|
/**
|
|
6463
6480
|
* The THREE.js Plane object representing the clipping plane.
|
|
6464
6481
|
*/
|
|
6465
|
-
|
|
6482
|
+
T(this, "three", new M.Plane());
|
|
6466
6483
|
/** The components instance to which this plane belongs. */
|
|
6467
|
-
|
|
6484
|
+
T(this, "components");
|
|
6468
6485
|
/** The world instance to which this plane belongs. */
|
|
6469
|
-
|
|
6486
|
+
T(this, "world");
|
|
6470
6487
|
/** A custom string to identify what this plane is used for. */
|
|
6471
|
-
|
|
6472
|
-
|
|
6473
|
-
|
|
6474
|
-
|
|
6475
|
-
|
|
6476
|
-
|
|
6477
|
-
|
|
6478
|
-
|
|
6479
|
-
|
|
6488
|
+
T(this, "type", "default");
|
|
6489
|
+
T(this, "_helper");
|
|
6490
|
+
T(this, "_visible", !0);
|
|
6491
|
+
T(this, "_enabled", !0);
|
|
6492
|
+
T(this, "_controlsActive", !1);
|
|
6493
|
+
T(this, "_arrowBoundBox", new M.Mesh());
|
|
6494
|
+
T(this, "_planeMesh");
|
|
6495
|
+
T(this, "_controls");
|
|
6496
|
+
T(this, "_hiddenMaterial", new M.MeshBasicMaterial({
|
|
6480
6497
|
visible: !1
|
|
6481
6498
|
}));
|
|
6482
6499
|
/** {@link Updateable.update} */
|
|
6483
|
-
|
|
6500
|
+
T(this, "update", () => {
|
|
6484
6501
|
this._enabled && this.three.setFromNormalAndCoplanarPoint(
|
|
6485
6502
|
this.normal,
|
|
6486
6503
|
this._helper.position
|
|
6487
6504
|
);
|
|
6488
6505
|
});
|
|
6489
|
-
|
|
6506
|
+
T(this, "changeDrag", (s) => {
|
|
6490
6507
|
this._visible = !s.value, this.preventCameraMovement(), this.notifyDraggingChanged(s);
|
|
6491
6508
|
});
|
|
6492
6509
|
if (this.components = s, this.world = t, !t.renderer)
|
|
@@ -6609,73 +6626,73 @@ const Fs = class Fs extends St {
|
|
|
6609
6626
|
constructor(t) {
|
|
6610
6627
|
super(t);
|
|
6611
6628
|
/** Event that fires when the user starts dragging a clipping plane. */
|
|
6612
|
-
|
|
6629
|
+
T(this, "onBeforeDrag", new j());
|
|
6613
6630
|
/** Event that fires when the user stops dragging a clipping plane. */
|
|
6614
|
-
|
|
6631
|
+
T(this, "onAfterDrag", new j());
|
|
6615
6632
|
/**
|
|
6616
6633
|
* Event that fires when the user starts creating a clipping plane.
|
|
6617
6634
|
*/
|
|
6618
|
-
|
|
6635
|
+
T(this, "onBeforeCreate", new j());
|
|
6619
6636
|
/**
|
|
6620
6637
|
* Event that fires when the user cancels the creation of a clipping plane.
|
|
6621
6638
|
*/
|
|
6622
|
-
|
|
6639
|
+
T(this, "onBeforeCancel", new j());
|
|
6623
6640
|
/**
|
|
6624
6641
|
* Event that fires after the user cancels the creation of a clipping plane.
|
|
6625
6642
|
*/
|
|
6626
|
-
|
|
6643
|
+
T(this, "onAfterCancel", new j());
|
|
6627
6644
|
/**
|
|
6628
6645
|
* Event that fires when the user starts deleting a clipping plane.
|
|
6629
6646
|
*/
|
|
6630
|
-
|
|
6647
|
+
T(this, "onBeforeDelete", new j());
|
|
6631
6648
|
/**
|
|
6632
6649
|
* Event that fires after a clipping plane has been created.
|
|
6633
6650
|
* @param plane - The newly created clipping plane.
|
|
6634
6651
|
*/
|
|
6635
|
-
|
|
6652
|
+
T(this, "onAfterCreate", new j());
|
|
6636
6653
|
/**
|
|
6637
6654
|
* Event that fires after a clipping plane has been deleted.
|
|
6638
6655
|
* @param plane - The deleted clipping plane.
|
|
6639
6656
|
*/
|
|
6640
|
-
|
|
6657
|
+
T(this, "onAfterDelete", new j());
|
|
6641
6658
|
/** {@link Disposable.onDisposed} */
|
|
6642
|
-
|
|
6659
|
+
T(this, "onDisposed", new j());
|
|
6643
6660
|
/**
|
|
6644
6661
|
* Whether to force the clipping plane to be orthogonal in the Y direction
|
|
6645
6662
|
* (up). This is desirable when clipping a building horizontally and a
|
|
6646
6663
|
* clipping plane is created in its roof, which might have a slight
|
|
6647
6664
|
* slope for draining purposes.
|
|
6648
6665
|
*/
|
|
6649
|
-
|
|
6666
|
+
T(this, "orthogonalY", !1);
|
|
6650
6667
|
/**
|
|
6651
6668
|
* The tolerance that determines whether an almost-horizontal clipping plane
|
|
6652
6669
|
* will be forced to be orthogonal to the Y direction. {@link orthogonalY}
|
|
6653
6670
|
* has to be `true` for this to apply.
|
|
6654
6671
|
*/
|
|
6655
|
-
|
|
6672
|
+
T(this, "toleranceOrthogonalY", 0.7);
|
|
6656
6673
|
/**
|
|
6657
6674
|
* The type of clipping plane to be created.
|
|
6658
6675
|
* Default is {@link SimplePlane}.
|
|
6659
6676
|
*/
|
|
6660
|
-
|
|
6677
|
+
T(this, "Type", yn);
|
|
6661
6678
|
/**
|
|
6662
6679
|
* A list of all the clipping planes created by this component.
|
|
6663
6680
|
*/
|
|
6664
|
-
|
|
6681
|
+
T(this, "list", []);
|
|
6665
6682
|
/** The material used in all the clipping planes. */
|
|
6666
|
-
|
|
6683
|
+
T(this, "_material", new M.MeshBasicMaterial({
|
|
6667
6684
|
color: 12255487,
|
|
6668
6685
|
side: M.DoubleSide,
|
|
6669
6686
|
transparent: !0,
|
|
6670
6687
|
opacity: 0.2
|
|
6671
6688
|
}));
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6689
|
+
T(this, "_size", 5);
|
|
6690
|
+
T(this, "_enabled", !1);
|
|
6691
|
+
T(this, "_visible", !0);
|
|
6692
|
+
T(this, "_onStartDragging", () => {
|
|
6676
6693
|
this.onBeforeDrag.trigger();
|
|
6677
6694
|
});
|
|
6678
|
-
|
|
6695
|
+
T(this, "_onEndDragging", () => {
|
|
6679
6696
|
this.onAfterDrag.trigger();
|
|
6680
6697
|
});
|
|
6681
6698
|
this.components.add(Fs.uuid, this);
|
|
@@ -6845,14 +6862,14 @@ const Fs = class Fs extends St {
|
|
|
6845
6862
|
* A unique identifier for the component.
|
|
6846
6863
|
* This UUID is used to register the component within the Components system.
|
|
6847
6864
|
*/
|
|
6848
|
-
|
|
6865
|
+
T(Fs, "uuid", "66290bc5-18c4-4cd1-9379-2e17a0617611");
|
|
6849
6866
|
let ln = Fs;
|
|
6850
6867
|
class tc {
|
|
6851
6868
|
constructor(s) {
|
|
6852
6869
|
/** {@link NavigationMode.enabled} */
|
|
6853
|
-
|
|
6870
|
+
T(this, "enabled", !1);
|
|
6854
6871
|
/** {@link NavigationMode.id} */
|
|
6855
|
-
|
|
6872
|
+
T(this, "id", "FirstPerson");
|
|
6856
6873
|
this.camera = s;
|
|
6857
6874
|
}
|
|
6858
6875
|
/** {@link NavigationMode.set} */
|
|
@@ -6877,9 +6894,9 @@ class tc {
|
|
|
6877
6894
|
class ec {
|
|
6878
6895
|
constructor(s) {
|
|
6879
6896
|
/** {@link NavigationMode.enabled} */
|
|
6880
|
-
|
|
6897
|
+
T(this, "enabled", !0);
|
|
6881
6898
|
/** {@link NavigationMode.id} */
|
|
6882
|
-
|
|
6899
|
+
T(this, "id", "Orbit");
|
|
6883
6900
|
this.camera = s, this.activateOrbitControls();
|
|
6884
6901
|
}
|
|
6885
6902
|
/** {@link NavigationMode.set} */
|
|
@@ -6900,14 +6917,14 @@ class ec {
|
|
|
6900
6917
|
class sc {
|
|
6901
6918
|
constructor(s) {
|
|
6902
6919
|
/** {@link NavigationMode.enabled} */
|
|
6903
|
-
|
|
6920
|
+
T(this, "enabled", !1);
|
|
6904
6921
|
/** {@link NavigationMode.id} */
|
|
6905
|
-
|
|
6906
|
-
|
|
6907
|
-
|
|
6908
|
-
|
|
6909
|
-
|
|
6910
|
-
|
|
6922
|
+
T(this, "id", "Plan");
|
|
6923
|
+
T(this, "mouseAction1");
|
|
6924
|
+
T(this, "mouseAction2");
|
|
6925
|
+
T(this, "mouseInitialized", !1);
|
|
6926
|
+
T(this, "defaultAzimuthSpeed");
|
|
6927
|
+
T(this, "defaultPolarSpeed");
|
|
6911
6928
|
this.camera = s, this.defaultAzimuthSpeed = s.controls.azimuthRotateSpeed, this.defaultPolarSpeed = s.controls.polarRotateSpeed;
|
|
6912
6929
|
}
|
|
6913
6930
|
/** {@link NavigationMode.set} */
|
|
@@ -6922,21 +6939,21 @@ class ic {
|
|
|
6922
6939
|
/**
|
|
6923
6940
|
* Event that fires when the {@link CameraProjection} changes.
|
|
6924
6941
|
*/
|
|
6925
|
-
|
|
6942
|
+
T(this, "onChanged", new j());
|
|
6926
6943
|
/**
|
|
6927
6944
|
* Current projection mode of the camera.
|
|
6928
6945
|
* Default is "Perspective".
|
|
6929
6946
|
*/
|
|
6930
|
-
|
|
6947
|
+
T(this, "current", "Perspective");
|
|
6931
6948
|
/**
|
|
6932
6949
|
* The camera controlled by this ProjectionManager.
|
|
6933
6950
|
* It can be either a PerspectiveCamera or an OrthographicCamera.
|
|
6934
6951
|
*/
|
|
6935
|
-
|
|
6952
|
+
T(this, "camera");
|
|
6936
6953
|
/** Match Ortho zoom with Perspective distance when changing projection mode */
|
|
6937
|
-
|
|
6938
|
-
|
|
6939
|
-
|
|
6954
|
+
T(this, "matchOrthoDistanceEnabled", !1);
|
|
6955
|
+
T(this, "_component");
|
|
6956
|
+
T(this, "_previousDistance", -1);
|
|
6940
6957
|
this._component = s, this.camera = s.three;
|
|
6941
6958
|
}
|
|
6942
6959
|
/**
|
|
@@ -6998,22 +7015,22 @@ class nc extends Ns {
|
|
|
6998
7015
|
/**
|
|
6999
7016
|
* A ProjectionManager instance that manages the projection modes of the camera.
|
|
7000
7017
|
*/
|
|
7001
|
-
|
|
7018
|
+
T(this, "projection");
|
|
7002
7019
|
/**
|
|
7003
7020
|
* A THREE.OrthographicCamera instance that represents the orthographic camera.
|
|
7004
7021
|
* This camera is used when the projection mode is set to orthographic.
|
|
7005
7022
|
*/
|
|
7006
|
-
|
|
7023
|
+
T(this, "threeOrtho");
|
|
7007
7024
|
/**
|
|
7008
7025
|
* A THREE.PerspectiveCamera instance that represents the perspective camera.
|
|
7009
7026
|
* This camera is used when the projection mode is set to perspective.
|
|
7010
7027
|
*/
|
|
7011
|
-
|
|
7012
|
-
|
|
7013
|
-
|
|
7014
|
-
|
|
7015
|
-
|
|
7016
|
-
|
|
7028
|
+
T(this, "threePersp");
|
|
7029
|
+
T(this, "_userInputButtons", {});
|
|
7030
|
+
T(this, "_frustumSize", 50);
|
|
7031
|
+
T(this, "_navigationModes", /* @__PURE__ */ new Map());
|
|
7032
|
+
T(this, "_mode", null);
|
|
7033
|
+
T(this, "previousSize", null);
|
|
7017
7034
|
this.threePersp = this.three, this.threeOrtho = this.newOrthoCamera(), this.projection = new ic(this), this.onAspectUpdated.add(() => {
|
|
7018
7035
|
this.setOrthoPerspCameraAspect();
|
|
7019
7036
|
}), this.projection.onChanged.add(
|
|
@@ -8642,8 +8659,8 @@ class Ke {
|
|
|
8642
8659
|
}
|
|
8643
8660
|
class oc {
|
|
8644
8661
|
constructor() {
|
|
8645
|
-
|
|
8646
|
-
|
|
8662
|
+
T(this, "factor", 1);
|
|
8663
|
+
T(this, "complement", 1);
|
|
8647
8664
|
}
|
|
8648
8665
|
apply(s) {
|
|
8649
8666
|
const e = this.getScaleMatrix().multiply(s);
|
|
@@ -8700,8 +8717,8 @@ class oc {
|
|
|
8700
8717
|
}
|
|
8701
8718
|
class kr {
|
|
8702
8719
|
constructor() {
|
|
8703
|
-
|
|
8704
|
-
|
|
8720
|
+
T(this, "itemsByFloor", {});
|
|
8721
|
+
T(this, "_units", new oc());
|
|
8705
8722
|
}
|
|
8706
8723
|
// TODO: Maybe make this more flexible so that it also support more exotic spatial structures?
|
|
8707
8724
|
setUp(s) {
|
|
@@ -8771,28 +8788,28 @@ class kr {
|
|
|
8771
8788
|
class wn {
|
|
8772
8789
|
constructor() {
|
|
8773
8790
|
/** Whether to extract the IFC properties into a JSON. */
|
|
8774
|
-
|
|
8791
|
+
T(this, "includeProperties", !0);
|
|
8775
8792
|
/**
|
|
8776
8793
|
* Generate the geometry for categories that are not included by default,
|
|
8777
8794
|
* like IFCSPACE.
|
|
8778
8795
|
*/
|
|
8779
|
-
|
|
8796
|
+
T(this, "optionalCategories", [X.IFCSPACE]);
|
|
8780
8797
|
/** Whether to use the coordination data coming from the IFC files. */
|
|
8781
|
-
|
|
8798
|
+
T(this, "coordinate", !0);
|
|
8782
8799
|
/** Path of the WASM for [web-ifc](https://github.com/ThatOpen/engine_web-ifc). */
|
|
8783
|
-
|
|
8800
|
+
T(this, "wasm", {
|
|
8784
8801
|
path: "",
|
|
8785
8802
|
absolute: !1,
|
|
8786
8803
|
logLevel: X.LogLevel.LOG_LEVEL_OFF
|
|
8787
8804
|
});
|
|
8788
8805
|
/** List of categories that won't be converted to fragments. */
|
|
8789
|
-
|
|
8806
|
+
T(this, "excludedCategories", /* @__PURE__ */ new Set());
|
|
8790
8807
|
/** Exclusive list of categories that will be converted to fragments. If this contains any category, any other categories will be ignored. */
|
|
8791
|
-
|
|
8808
|
+
T(this, "includedCategories", /* @__PURE__ */ new Set());
|
|
8792
8809
|
/** Whether to save the absolute location of all IFC items. */
|
|
8793
|
-
|
|
8810
|
+
T(this, "saveLocations", !1);
|
|
8794
8811
|
/** Loader settings for [web-ifc](https://github.com/ThatOpen/engine_web-ifc). */
|
|
8795
|
-
|
|
8812
|
+
T(this, "webIfc", {
|
|
8796
8813
|
COORDINATE_TO_ORIGIN: !0
|
|
8797
8814
|
// OPTIMIZE_PROFILES: true,
|
|
8798
8815
|
});
|
|
@@ -8802,7 +8819,7 @@ class wn {
|
|
|
8802
8819
|
* If set to false, the path must be provided manually in the `wasm.path` property.
|
|
8803
8820
|
* Default value is true.
|
|
8804
8821
|
*/
|
|
8805
|
-
|
|
8822
|
+
T(this, "autoSetWasm", !0);
|
|
8806
8823
|
/**
|
|
8807
8824
|
* Custom function to handle the file location for [web-ifc](https://github.com/ThatOpen/engine_web-ifc).
|
|
8808
8825
|
* This function will be called when [web-ifc](https://github.com/ThatOpen/engine_web-ifc) needs to locate a file.
|
|
@@ -8811,12 +8828,12 @@ class wn {
|
|
|
8811
8828
|
* @param url - The URL of the file to locate.
|
|
8812
8829
|
* @returns The absolute path of the file.
|
|
8813
8830
|
*/
|
|
8814
|
-
|
|
8831
|
+
T(this, "customLocateFileHandler", null);
|
|
8815
8832
|
}
|
|
8816
8833
|
}
|
|
8817
8834
|
class Vr {
|
|
8818
8835
|
constructor() {
|
|
8819
|
-
|
|
8836
|
+
T(this, "defLineMat", new M.LineBasicMaterial({ color: 16777215 }));
|
|
8820
8837
|
}
|
|
8821
8838
|
read(s) {
|
|
8822
8839
|
const t = s.GetAllAlignments(0), e = s.GetAllCrossSections2D(0), i = s.GetAllCrossSections3D(0), n = {
|
|
@@ -9059,7 +9076,7 @@ const Hr = /* @__PURE__ */ new Set([
|
|
|
9059
9076
|
constructor(t) {
|
|
9060
9077
|
super(t);
|
|
9061
9078
|
/** {@link Component.enabled} */
|
|
9062
|
-
|
|
9079
|
+
T(this, "enabled", !0);
|
|
9063
9080
|
t.add(mi.uuid, this);
|
|
9064
9081
|
}
|
|
9065
9082
|
/**
|
|
@@ -9096,39 +9113,39 @@ const Hr = /* @__PURE__ */ new Set([
|
|
|
9096
9113
|
* A unique identifier for the component.
|
|
9097
9114
|
* This UUID is used to register the component within the Components system.
|
|
9098
9115
|
*/
|
|
9099
|
-
|
|
9116
|
+
T(mi, "uuid", "b32c4332-cd67-436e-ba7f-196646c7a635");
|
|
9100
9117
|
let hn = mi;
|
|
9101
9118
|
const Ss = class Ss extends St {
|
|
9102
9119
|
constructor(t) {
|
|
9103
9120
|
super(t);
|
|
9104
9121
|
/** {@link Disposable.onDisposed} */
|
|
9105
|
-
|
|
9122
|
+
T(this, "onDisposed", new j());
|
|
9106
9123
|
/**
|
|
9107
9124
|
* An event triggered when the IFC file starts loading.
|
|
9108
9125
|
*/
|
|
9109
|
-
|
|
9126
|
+
T(this, "onIfcStartedLoading", new j());
|
|
9110
9127
|
/**
|
|
9111
9128
|
* An event triggered when the setup process is completed.
|
|
9112
9129
|
*/
|
|
9113
|
-
|
|
9130
|
+
T(this, "onSetup", new j());
|
|
9114
9131
|
/**
|
|
9115
9132
|
* The settings for the IfcLoader.
|
|
9116
9133
|
* It includes options for excluding categories, setting WASM paths, and more.
|
|
9117
9134
|
*/
|
|
9118
|
-
|
|
9135
|
+
T(this, "settings", new wn());
|
|
9119
9136
|
/**
|
|
9120
9137
|
* The instance of the Web-IFC library used for handling IFC data.
|
|
9121
9138
|
*/
|
|
9122
|
-
|
|
9139
|
+
T(this, "webIfc", new X.IfcAPI());
|
|
9123
9140
|
/** {@link Component.enabled} */
|
|
9124
|
-
|
|
9125
|
-
|
|
9126
|
-
|
|
9127
|
-
|
|
9128
|
-
|
|
9129
|
-
|
|
9130
|
-
|
|
9131
|
-
|
|
9141
|
+
T(this, "enabled", !0);
|
|
9142
|
+
T(this, "_material", new M.MeshLambertMaterial());
|
|
9143
|
+
T(this, "_spatialTree", new kr());
|
|
9144
|
+
T(this, "_metaData", new Yr());
|
|
9145
|
+
T(this, "_fragmentInstances", /* @__PURE__ */ new Map());
|
|
9146
|
+
T(this, "_civil", new Vr());
|
|
9147
|
+
T(this, "_visitedFragments", /* @__PURE__ */ new Map());
|
|
9148
|
+
T(this, "_materialT", new M.MeshLambertMaterial({
|
|
9132
9149
|
transparent: !0,
|
|
9133
9150
|
opacity: 0.5
|
|
9134
9151
|
}));
|
|
@@ -9354,7 +9371,7 @@ const Ss = class Ss extends St {
|
|
|
9354
9371
|
* A unique identifier for the component.
|
|
9355
9372
|
* This UUID is used to register the component within the Components system.
|
|
9356
9373
|
*/
|
|
9357
|
-
|
|
9374
|
+
T(Ss, "uuid", "a659add7-1418-4771-a0d6-7d4d438e4624");
|
|
9358
9375
|
let dn = Ss;
|
|
9359
9376
|
const ac = {
|
|
9360
9377
|
// IfcRelAssigns
|
|
@@ -9404,52 +9421,52 @@ const ac = {
|
|
|
9404
9421
|
constructor(t) {
|
|
9405
9422
|
super(t);
|
|
9406
9423
|
/** {@link Disposable.onDisposed} */
|
|
9407
|
-
|
|
9424
|
+
T(this, "onDisposed", new j());
|
|
9408
9425
|
/**
|
|
9409
9426
|
* Event triggered when a file is requested for export.
|
|
9410
9427
|
*/
|
|
9411
|
-
|
|
9428
|
+
T(this, "onRequestFile", new j());
|
|
9412
9429
|
/**
|
|
9413
9430
|
* ArrayBuffer containing the IFC data to be exported.
|
|
9414
9431
|
*/
|
|
9415
|
-
|
|
9432
|
+
T(this, "ifcToExport", null);
|
|
9416
9433
|
/**
|
|
9417
9434
|
* Event triggered when an element is added to a Pset.
|
|
9418
9435
|
*/
|
|
9419
|
-
|
|
9436
|
+
T(this, "onElementToPset", new j());
|
|
9420
9437
|
/**
|
|
9421
9438
|
* Event triggered when a property is added to a Pset.
|
|
9422
9439
|
*/
|
|
9423
|
-
|
|
9440
|
+
T(this, "onPropToPset", new j());
|
|
9424
9441
|
/**
|
|
9425
9442
|
* Event triggered when a Pset is removed.
|
|
9426
9443
|
*/
|
|
9427
|
-
|
|
9444
|
+
T(this, "onPsetRemoved", new j());
|
|
9428
9445
|
/**
|
|
9429
9446
|
* Event triggered when data in the model changes.
|
|
9430
9447
|
*/
|
|
9431
|
-
|
|
9448
|
+
T(this, "onDataChanged", new j());
|
|
9432
9449
|
/**
|
|
9433
9450
|
* Configuration for the WebAssembly module.
|
|
9434
9451
|
*/
|
|
9435
|
-
|
|
9452
|
+
T(this, "wasm", {
|
|
9436
9453
|
path: "/",
|
|
9437
9454
|
absolute: !1
|
|
9438
9455
|
});
|
|
9439
9456
|
/** {@link Component.enabled} */
|
|
9440
|
-
|
|
9457
|
+
T(this, "enabled", !0);
|
|
9441
9458
|
/**
|
|
9442
9459
|
* Map of attribute listeners.
|
|
9443
9460
|
*/
|
|
9444
|
-
|
|
9461
|
+
T(this, "attributeListeners", {});
|
|
9445
9462
|
/**
|
|
9446
9463
|
* The currently selected model.
|
|
9447
9464
|
*/
|
|
9448
|
-
|
|
9465
|
+
T(this, "selectedModel");
|
|
9449
9466
|
/**
|
|
9450
9467
|
* Map of changed entities in the model.
|
|
9451
9468
|
*/
|
|
9452
|
-
|
|
9469
|
+
T(this, "changeMap", {});
|
|
9453
9470
|
this.components.add(Ae.uuid, this);
|
|
9454
9471
|
}
|
|
9455
9472
|
/** {@link Disposable.dispose} */
|
|
@@ -9744,7 +9761,7 @@ const ac = {
|
|
|
9744
9761
|
const a = o.value;
|
|
9745
9762
|
if (a === void 0 || a == null)
|
|
9746
9763
|
throw new Error(`Attribute ${i} has a badly defined handle.`);
|
|
9747
|
-
const l = new
|
|
9764
|
+
const l = new j();
|
|
9748
9765
|
return Object.defineProperty(r[i], "value", {
|
|
9749
9766
|
get() {
|
|
9750
9767
|
return this._value;
|
|
@@ -9789,13 +9806,13 @@ const ac = {
|
|
|
9789
9806
|
* A unique identifier for the component.
|
|
9790
9807
|
* This UUID is used to register the component within the Components system.
|
|
9791
9808
|
*/
|
|
9792
|
-
|
|
9809
|
+
T(Ae, "uuid", "58c2d9f0-183c-48d6-a402-dfcf5b9a34df");
|
|
9793
9810
|
let un = Ae;
|
|
9794
9811
|
const Os = class Os extends St {
|
|
9795
9812
|
constructor(t) {
|
|
9796
9813
|
super(t);
|
|
9797
9814
|
/** {@link Disposable.onDisposed} */
|
|
9798
|
-
|
|
9815
|
+
T(this, "onDisposed", new j());
|
|
9799
9816
|
/**
|
|
9800
9817
|
* Event triggered when relations for a model have been indexed.
|
|
9801
9818
|
* This event provides the model's UUID and the relations map generated for that model.
|
|
@@ -9804,7 +9821,7 @@ const Os = class Os extends St {
|
|
|
9804
9821
|
* @property {RelationsMap} relationsMap - The relations map generated for the specified model.
|
|
9805
9822
|
* The map keys are expressIDs of entities, and the values are maps where each key is a relation type ID and its value is an array of expressIDs of entities related through that relation type.
|
|
9806
9823
|
*/
|
|
9807
|
-
|
|
9824
|
+
T(this, "onRelationsIndexed", new j());
|
|
9808
9825
|
/**
|
|
9809
9826
|
* Holds the relationship mappings for each model processed by the indexer.
|
|
9810
9827
|
* The structure is a map where each key is a model's UUID, and the value is another map.
|
|
@@ -9813,11 +9830,11 @@ const Os = class Os extends St {
|
|
|
9813
9830
|
* that are related through that relation type. This structure allows for efficient querying
|
|
9814
9831
|
* of entity relationships within a model.
|
|
9815
9832
|
*/
|
|
9816
|
-
|
|
9833
|
+
T(this, "relationMaps", {});
|
|
9817
9834
|
/** {@link Component.enabled} */
|
|
9818
|
-
|
|
9819
|
-
|
|
9820
|
-
|
|
9835
|
+
T(this, "enabled", !0);
|
|
9836
|
+
T(this, "_relToAttributesMap", gr);
|
|
9837
|
+
T(this, "_inverseAttributes", [
|
|
9821
9838
|
"IsDecomposedBy",
|
|
9822
9839
|
"Decomposes",
|
|
9823
9840
|
"AssociatedTo",
|
|
@@ -9844,7 +9861,7 @@ const Os = class Os extends St {
|
|
|
9844
9861
|
"Nests",
|
|
9845
9862
|
"DocumentRefForObjects"
|
|
9846
9863
|
]);
|
|
9847
|
-
|
|
9864
|
+
T(this, "_ifcRels", [
|
|
9848
9865
|
X.IFCRELAGGREGATES,
|
|
9849
9866
|
X.IFCRELASSOCIATESMATERIAL,
|
|
9850
9867
|
X.IFCRELASSOCIATESCLASSIFICATION,
|
|
@@ -9861,17 +9878,17 @@ const Os = class Os extends St {
|
|
|
9861
9878
|
X.IFCRELNESTS,
|
|
9862
9879
|
X.IFCRELASSOCIATESDOCUMENT
|
|
9863
9880
|
]);
|
|
9864
|
-
|
|
9881
|
+
T(this, "onFragmentsDisposed", (t) => {
|
|
9865
9882
|
delete this.relationMaps[t.groupID];
|
|
9866
9883
|
});
|
|
9867
9884
|
// Use to create the corresponding IfcRelationship
|
|
9868
|
-
|
|
9885
|
+
T(this, "_changeMap", {});
|
|
9869
9886
|
/**
|
|
9870
9887
|
* An event that is triggered when entities are related in a BIM model.
|
|
9871
9888
|
* The event provides information about the type of relation, the inverse attribute,
|
|
9872
9889
|
* the IDs of the entities related, and the IDs of the entities that are being related.
|
|
9873
9890
|
*/
|
|
9874
|
-
|
|
9891
|
+
T(this, "onEntitiesRelated", new j());
|
|
9875
9892
|
this.components.add(Os.uuid, this), t.get(_t).onFragmentsDisposed.add(this.onFragmentsDisposed);
|
|
9876
9893
|
}
|
|
9877
9894
|
indexRelations(t, e, i, n) {
|
|
@@ -10275,36 +10292,36 @@ const Os = class Os extends St {
|
|
|
10275
10292
|
* A unique identifier for the component.
|
|
10276
10293
|
* This UUID is used to register the component within the Components system.
|
|
10277
10294
|
*/
|
|
10278
|
-
|
|
10295
|
+
T(Os, "uuid", "23a889ab-83b3-44a4-8bee-ead83438370b");
|
|
10279
10296
|
let xe = Os;
|
|
10280
10297
|
const Ii = class Ii extends St {
|
|
10281
10298
|
constructor(t) {
|
|
10282
10299
|
super(t);
|
|
10283
10300
|
/** {@link Disposable.onDisposed} */
|
|
10284
|
-
|
|
10301
|
+
T(this, "onDisposed", new j());
|
|
10285
10302
|
/**
|
|
10286
10303
|
* Event triggered when fragments are loaded.
|
|
10287
10304
|
*/
|
|
10288
|
-
|
|
10305
|
+
T(this, "onFragmentsLoaded", new j());
|
|
10289
10306
|
/**
|
|
10290
10307
|
* Event triggered when fragments are disposed.
|
|
10291
10308
|
*/
|
|
10292
|
-
|
|
10309
|
+
T(this, "onFragmentsDisposed", new j());
|
|
10293
10310
|
/**
|
|
10294
10311
|
* DataMap containing all loaded fragments.
|
|
10295
10312
|
* The key is the fragment's unique identifier, and the value is the fragment itself.
|
|
10296
10313
|
*/
|
|
10297
|
-
|
|
10314
|
+
T(this, "list", new Ee());
|
|
10298
10315
|
/**
|
|
10299
10316
|
* DataMap containing all loaded fragment groups.
|
|
10300
10317
|
* The key is the group's unique identifier, and the value is the group itself.
|
|
10301
10318
|
*/
|
|
10302
|
-
|
|
10303
|
-
|
|
10304
|
-
|
|
10319
|
+
T(this, "groups", new Ee());
|
|
10320
|
+
T(this, "baseCoordinationModel", "");
|
|
10321
|
+
T(this, "baseCoordinationMatrix", new M.Matrix4());
|
|
10305
10322
|
/** {@link Component.enabled} */
|
|
10306
|
-
|
|
10307
|
-
|
|
10323
|
+
T(this, "enabled", !0);
|
|
10324
|
+
T(this, "_loader", new fo());
|
|
10308
10325
|
this.components.add(Ii.uuid, this);
|
|
10309
10326
|
}
|
|
10310
10327
|
/**
|
|
@@ -10501,7 +10518,7 @@ const Ii = class Ii extends St {
|
|
|
10501
10518
|
* A unique identifier for the component.
|
|
10502
10519
|
* This UUID is used to register the component within the Components system.
|
|
10503
10520
|
*/
|
|
10504
|
-
|
|
10521
|
+
T(Ii, "uuid", "fef46874-46a3-461b-8c44-2922ab77c806");
|
|
10505
10522
|
let _t = Ii;
|
|
10506
10523
|
var ii = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
10507
10524
|
function lc(c) {
|
|
@@ -10649,17 +10666,17 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
10649
10666
|
return I;
|
|
10650
10667
|
}
|
|
10651
10668
|
function r(f, E, p, I, m, C) {
|
|
10652
|
-
var R, g, y = f.file, F = f.compression, S = C !== l.utf8encode, L = o.transformTo("string", C(y.name)), N = o.transformTo("string", l.utf8encode(y.name)), x = y.comment, k = o.transformTo("string", C(x)), w = o.transformTo("string", l.utf8encode(x)), P = N.length !== y.name.length,
|
|
10669
|
+
var R, g, y = f.file, F = f.compression, S = C !== l.utf8encode, L = o.transformTo("string", C(y.name)), N = o.transformTo("string", l.utf8encode(y.name)), x = y.comment, k = o.transformTo("string", C(x)), w = o.transformTo("string", l.utf8encode(x)), P = N.length !== y.name.length, _ = w.length !== x.length, v = "", Q = "", V = "", et = y.dir, H = y.date, nt = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
|
|
10653
10670
|
E && !p || (nt.crc32 = f.crc32, nt.compressedSize = f.compressedSize, nt.uncompressedSize = f.uncompressedSize);
|
|
10654
10671
|
var z = 0;
|
|
10655
|
-
E && (z |= 8), S || !P && !
|
|
10672
|
+
E && (z |= 8), S || !P && !_ || (z |= 2048);
|
|
10656
10673
|
var U = 0, ot = 0;
|
|
10657
10674
|
et && (U |= 16), m === "UNIX" ? (ot = 798, U |= function(tt, Rt) {
|
|
10658
10675
|
var Ft = tt;
|
|
10659
10676
|
return tt || (Ft = Rt ? 16893 : 33204), (65535 & Ft) << 16;
|
|
10660
10677
|
}(y.unixPermissions, et)) : (ot = 20, U |= function(tt) {
|
|
10661
10678
|
return 63 & (tt || 0);
|
|
10662
|
-
}(y.dosPermissions)), R = H.getUTCHours(), R <<= 6, R |= H.getUTCMinutes(), R <<= 5, R |= H.getUTCSeconds() / 2, g = H.getUTCFullYear() - 1980, g <<= 4, g |= H.getUTCMonth() + 1, g <<= 5, g |= H.getUTCDate(), P && (
|
|
10679
|
+
}(y.dosPermissions)), R = H.getUTCHours(), R <<= 6, R |= H.getUTCMinutes(), R <<= 5, R |= H.getUTCSeconds() / 2, g = H.getUTCFullYear() - 1980, g <<= 4, g |= H.getUTCMonth() + 1, g <<= 5, g |= H.getUTCDate(), P && (Q = n(1, 1) + n(h(L), 4) + N, v += "up" + n(Q.length, 2) + Q), _ && (V = n(1, 1) + n(h(k), 4) + w, v += "uc" + n(V.length, 2) + V);
|
|
10663
10680
|
var st = "";
|
|
10664
10681
|
return st += `
|
|
10665
10682
|
\0`, st += n(z, 2), st += F.magic, st += n(R, 2), st += n(g, 2), st += n(nt.crc32, 4), st += n(nt.compressedSize, 4), st += n(nt.uncompressedSize, 4), st += n(L.length, 2), st += n(v.length, 2), { fileRecord: d.LOCAL_FILE_HEADER + st + L + v, dirRecord: d.CENTRAL_FILE_HEADER + n(ot, 2) + st + n(k.length, 2) + "\0\0\0\0" + n(U, 4) + n(I, 4) + L + v + k };
|
|
@@ -12024,7 +12041,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12024
12041
|
return -1 ^ r;
|
|
12025
12042
|
};
|
|
12026
12043
|
}, {}], 46: [function(t, e, i) {
|
|
12027
|
-
var n, r = t("../utils/common"), o = t("./trees"), a = t("./adler32"), l = t("./crc32"), h = t("./messages"), d = 0, u = 4, f = 0, E = -2, p = -1, I = 4, m = 2, C = 8, R = 9, g = 286, y = 30, F = 19, S = 2 * g + 1, L = 15, N = 3, x = 258, k = x + N + 1, w = 42, P = 113,
|
|
12044
|
+
var n, r = t("../utils/common"), o = t("./trees"), a = t("./adler32"), l = t("./crc32"), h = t("./messages"), d = 0, u = 4, f = 0, E = -2, p = -1, I = 4, m = 2, C = 8, R = 9, g = 286, y = 30, F = 19, S = 2 * g + 1, L = 15, N = 3, x = 258, k = x + N + 1, w = 42, P = 113, _ = 1, v = 2, Q = 3, V = 4;
|
|
12028
12045
|
function et(A, W) {
|
|
12029
12046
|
return A.msg = h[W], W;
|
|
12030
12047
|
}
|
|
@@ -12087,7 +12104,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12087
12104
|
for (var Y, b; ; ) {
|
|
12088
12105
|
if (A.lookahead < k) {
|
|
12089
12106
|
if (Rt(A), A.lookahead < k && W === d)
|
|
12090
|
-
return
|
|
12107
|
+
return _;
|
|
12091
12108
|
if (A.lookahead === 0)
|
|
12092
12109
|
break;
|
|
12093
12110
|
}
|
|
@@ -12101,15 +12118,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12101
12118
|
else
|
|
12102
12119
|
b = o._tr_tally(A, 0, A.window[A.strstart]), A.lookahead--, A.strstart++;
|
|
12103
12120
|
if (b && (U(A, !1), A.strm.avail_out === 0))
|
|
12104
|
-
return
|
|
12121
|
+
return _;
|
|
12105
12122
|
}
|
|
12106
|
-
return A.insert = A.strstart < N - 1 ? A.strstart : N - 1, W === u ? (U(A, !0), A.strm.avail_out === 0 ?
|
|
12123
|
+
return A.insert = A.strstart < N - 1 ? A.strstart : N - 1, W === u ? (U(A, !0), A.strm.avail_out === 0 ? Q : V) : A.last_lit && (U(A, !1), A.strm.avail_out === 0) ? _ : v;
|
|
12107
12124
|
}
|
|
12108
12125
|
function at(A, W) {
|
|
12109
12126
|
for (var Y, b, O; ; ) {
|
|
12110
12127
|
if (A.lookahead < k) {
|
|
12111
12128
|
if (Rt(A), A.lookahead < k && W === d)
|
|
12112
|
-
return
|
|
12129
|
+
return _;
|
|
12113
12130
|
if (A.lookahead === 0)
|
|
12114
12131
|
break;
|
|
12115
12132
|
}
|
|
@@ -12117,14 +12134,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12117
12134
|
for (O = A.strstart + A.lookahead - N, b = o._tr_tally(A, A.strstart - 1 - A.prev_match, A.prev_length - N), A.lookahead -= A.prev_length - 1, A.prev_length -= 2; ++A.strstart <= O && (A.ins_h = (A.ins_h << A.hash_shift ^ A.window[A.strstart + N - 1]) & A.hash_mask, Y = A.prev[A.strstart & A.w_mask] = A.head[A.ins_h], A.head[A.ins_h] = A.strstart), --A.prev_length != 0; )
|
|
12118
12135
|
;
|
|
12119
12136
|
if (A.match_available = 0, A.match_length = N - 1, A.strstart++, b && (U(A, !1), A.strm.avail_out === 0))
|
|
12120
|
-
return
|
|
12137
|
+
return _;
|
|
12121
12138
|
} else if (A.match_available) {
|
|
12122
12139
|
if ((b = o._tr_tally(A, 0, A.window[A.strstart - 1])) && U(A, !1), A.strstart++, A.lookahead--, A.strm.avail_out === 0)
|
|
12123
|
-
return
|
|
12140
|
+
return _;
|
|
12124
12141
|
} else
|
|
12125
12142
|
A.match_available = 1, A.strstart++, A.lookahead--;
|
|
12126
12143
|
}
|
|
12127
|
-
return A.match_available && (b = o._tr_tally(A, 0, A.window[A.strstart - 1]), A.match_available = 0), A.insert = A.strstart < N - 1 ? A.strstart : N - 1, W === u ? (U(A, !0), A.strm.avail_out === 0 ?
|
|
12144
|
+
return A.match_available && (b = o._tr_tally(A, 0, A.window[A.strstart - 1]), A.match_available = 0), A.insert = A.strstart < N - 1 ? A.strstart : N - 1, W === u ? (U(A, !0), A.strm.avail_out === 0 ? Q : V) : A.last_lit && (U(A, !1), A.strm.avail_out === 0) ? _ : v;
|
|
12128
12145
|
}
|
|
12129
12146
|
function ft(A, W, Y, b, O) {
|
|
12130
12147
|
this.good_length = A, this.max_lazy = W, this.nice_length = Y, this.max_chain = b, this.func = O;
|
|
@@ -12157,16 +12174,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12157
12174
|
for (Y > A.pending_buf_size - 5 && (Y = A.pending_buf_size - 5); ; ) {
|
|
12158
12175
|
if (A.lookahead <= 1) {
|
|
12159
12176
|
if (Rt(A), A.lookahead === 0 && W === d)
|
|
12160
|
-
return
|
|
12177
|
+
return _;
|
|
12161
12178
|
if (A.lookahead === 0)
|
|
12162
12179
|
break;
|
|
12163
12180
|
}
|
|
12164
12181
|
A.strstart += A.lookahead, A.lookahead = 0;
|
|
12165
12182
|
var b = A.block_start + Y;
|
|
12166
12183
|
if ((A.strstart === 0 || A.strstart >= b) && (A.lookahead = A.strstart - b, A.strstart = b, U(A, !1), A.strm.avail_out === 0) || A.strstart - A.block_start >= A.w_size - k && (U(A, !1), A.strm.avail_out === 0))
|
|
12167
|
-
return
|
|
12184
|
+
return _;
|
|
12168
12185
|
}
|
|
12169
|
-
return A.insert = 0, W === u ? (U(A, !0), A.strm.avail_out === 0 ?
|
|
12186
|
+
return A.insert = 0, W === u ? (U(A, !0), A.strm.avail_out === 0 ? Q : V) : (A.strstart > A.block_start && (U(A, !1), A.strm.avail_out), _);
|
|
12170
12187
|
}), new ft(4, 4, 8, 4, Ft), new ft(4, 5, 16, 8, Ft), new ft(4, 6, 32, 32, Ft), new ft(4, 4, 16, 16, at), new ft(8, 16, 32, 32, at), new ft(8, 16, 128, 128, at), new ft(8, 32, 128, 256, at), new ft(32, 128, 258, 1024, at), new ft(32, 258, 258, 4096, at)], i.deflateInit = function(A, W) {
|
|
12171
12188
|
return Mt(A, W, C, 15, 8, 0);
|
|
12172
12189
|
}, i.deflateInit2 = Mt, i.deflateReset = Gt, i.deflateResetKeep = It, i.deflateSetHeader = function(A, W) {
|
|
@@ -12229,18 +12246,18 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12229
12246
|
for (var it; ; ) {
|
|
12230
12247
|
if (B.lookahead === 0 && (Rt(B), B.lookahead === 0)) {
|
|
12231
12248
|
if (K === d)
|
|
12232
|
-
return
|
|
12249
|
+
return _;
|
|
12233
12250
|
break;
|
|
12234
12251
|
}
|
|
12235
12252
|
if (B.match_length = 0, it = o._tr_tally(B, 0, B.window[B.strstart]), B.lookahead--, B.strstart++, it && (U(B, !1), B.strm.avail_out === 0))
|
|
12236
|
-
return
|
|
12253
|
+
return _;
|
|
12237
12254
|
}
|
|
12238
|
-
return B.insert = 0, K === u ? (U(B, !0), B.strm.avail_out === 0 ?
|
|
12255
|
+
return B.insert = 0, K === u ? (U(B, !0), B.strm.avail_out === 0 ? Q : V) : B.last_lit && (U(B, !1), B.strm.avail_out === 0) ? _ : v;
|
|
12239
12256
|
}(b, W) : b.strategy === 3 ? function(B, K) {
|
|
12240
12257
|
for (var it, J, ct, Ct, pt = B.window; ; ) {
|
|
12241
12258
|
if (B.lookahead <= x) {
|
|
12242
12259
|
if (Rt(B), B.lookahead <= x && K === d)
|
|
12243
|
-
return
|
|
12260
|
+
return _;
|
|
12244
12261
|
if (B.lookahead === 0)
|
|
12245
12262
|
break;
|
|
12246
12263
|
}
|
|
@@ -12252,11 +12269,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12252
12269
|
B.match_length = x - (Ct - ct), B.match_length > B.lookahead && (B.match_length = B.lookahead);
|
|
12253
12270
|
}
|
|
12254
12271
|
if (B.match_length >= N ? (it = o._tr_tally(B, 1, B.match_length - N), B.lookahead -= B.match_length, B.strstart += B.match_length, B.match_length = 0) : (it = o._tr_tally(B, 0, B.window[B.strstart]), B.lookahead--, B.strstart++), it && (U(B, !1), B.strm.avail_out === 0))
|
|
12255
|
-
return
|
|
12272
|
+
return _;
|
|
12256
12273
|
}
|
|
12257
|
-
return B.insert = 0, K === u ? (U(B, !0), B.strm.avail_out === 0 ?
|
|
12274
|
+
return B.insert = 0, K === u ? (U(B, !0), B.strm.avail_out === 0 ? Q : V) : B.last_lit && (U(B, !1), B.strm.avail_out === 0) ? _ : v;
|
|
12258
12275
|
}(b, W) : n[b.level].func(b, W);
|
|
12259
|
-
if ($ !==
|
|
12276
|
+
if ($ !== Q && $ !== V || (b.status = 666), $ === _ || $ === Q)
|
|
12260
12277
|
return A.avail_out === 0 && (b.last_flush = -1), f;
|
|
12261
12278
|
if ($ === v && (W === 1 ? o._tr_align(b) : W !== 5 && (o._tr_stored_block(b, 0, 0, !1), W === 3 && (nt(b.head), b.lookahead === 0 && (b.strstart = 0, b.block_start = 0, b.insert = 0))), z(A), A.avail_out === 0))
|
|
12262
12279
|
return b.last_flush = -1, f;
|
|
@@ -12282,11 +12299,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12282
12299
|
};
|
|
12283
12300
|
}, {}], 48: [function(t, e, i) {
|
|
12284
12301
|
e.exports = function(n, r) {
|
|
12285
|
-
var o, a, l, h, d, u, f, E, p, I, m, C, R, g, y, F, S, L, N, x, k, w, P,
|
|
12286
|
-
o = n.state, a = n.next_in,
|
|
12302
|
+
var o, a, l, h, d, u, f, E, p, I, m, C, R, g, y, F, S, L, N, x, k, w, P, _, v;
|
|
12303
|
+
o = n.state, a = n.next_in, _ = n.input, l = a + (n.avail_in - 5), h = n.next_out, v = n.output, d = h - (r - n.avail_out), u = h + (n.avail_out - 257), f = o.dmax, E = o.wsize, p = o.whave, I = o.wnext, m = o.window, C = o.hold, R = o.bits, g = o.lencode, y = o.distcode, F = (1 << o.lenbits) - 1, S = (1 << o.distbits) - 1;
|
|
12287
12304
|
t:
|
|
12288
12305
|
do {
|
|
12289
|
-
R < 15 && (C +=
|
|
12306
|
+
R < 15 && (C += _[a++] << R, R += 8, C += _[a++] << R, R += 8), L = g[C & F];
|
|
12290
12307
|
e:
|
|
12291
12308
|
for (; ; ) {
|
|
12292
12309
|
if (C >>>= N = L >>> 24, R -= N, (N = L >>> 16 & 255) === 0)
|
|
@@ -12304,7 +12321,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12304
12321
|
n.msg = "invalid literal/length code", o.mode = 30;
|
|
12305
12322
|
break t;
|
|
12306
12323
|
}
|
|
12307
|
-
x = 65535 & L, (N &= 15) && (R < N && (C +=
|
|
12324
|
+
x = 65535 & L, (N &= 15) && (R < N && (C += _[a++] << R, R += 8), x += C & (1 << N) - 1, C >>>= N, R -= N), R < 15 && (C += _[a++] << R, R += 8, C += _[a++] << R, R += 8), L = y[C & S];
|
|
12308
12325
|
s:
|
|
12309
12326
|
for (; ; ) {
|
|
12310
12327
|
if (C >>>= N = L >>> 24, R -= N, !(16 & (N = L >>> 16 & 255))) {
|
|
@@ -12315,7 +12332,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12315
12332
|
n.msg = "invalid distance code", o.mode = 30;
|
|
12316
12333
|
break t;
|
|
12317
12334
|
}
|
|
12318
|
-
if (k = 65535 & L, R < (N &= 15) && (C +=
|
|
12335
|
+
if (k = 65535 & L, R < (N &= 15) && (C += _[a++] << R, (R += 8) < N && (C += _[a++] << R, R += 8)), f < (k += C & (1 << N) - 1)) {
|
|
12319
12336
|
n.msg = "invalid distance too far back", o.mode = 30;
|
|
12320
12337
|
break t;
|
|
12321
12338
|
}
|
|
@@ -12378,12 +12395,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12378
12395
|
return w && w.state ? ((P = w.state).wsize = 0, P.whave = 0, P.wnext = 0, R(w)) : f;
|
|
12379
12396
|
}
|
|
12380
12397
|
function y(w, P) {
|
|
12381
|
-
var
|
|
12382
|
-
return w && w.state ? (v = w.state, P < 0 ? (
|
|
12398
|
+
var _, v;
|
|
12399
|
+
return w && w.state ? (v = w.state, P < 0 ? (_ = 0, P = -P) : (_ = 1 + (P >> 4), P < 48 && (P &= 15)), P && (P < 8 || 15 < P) ? f : (v.window !== null && v.wbits !== P && (v.window = null), v.wrap = _, v.wbits = P, g(w))) : f;
|
|
12383
12400
|
}
|
|
12384
12401
|
function F(w, P) {
|
|
12385
|
-
var
|
|
12386
|
-
return w ? (v = new C(), (w.state = v).window = null, (
|
|
12402
|
+
var _, v;
|
|
12403
|
+
return w ? (v = new C(), (w.state = v).window = null, (_ = y(w, P)) !== u && (w.state = null), _) : f;
|
|
12387
12404
|
}
|
|
12388
12405
|
var S, L, N = !0;
|
|
12389
12406
|
function x(w) {
|
|
@@ -12403,23 +12420,23 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12403
12420
|
}
|
|
12404
12421
|
w.lencode = S, w.lenbits = 9, w.distcode = L, w.distbits = 5;
|
|
12405
12422
|
}
|
|
12406
|
-
function k(w, P,
|
|
12407
|
-
var
|
|
12408
|
-
return V.window === null && (V.wsize = 1 << V.wbits, V.wnext = 0, V.whave = 0, V.window = new n.Buf8(V.wsize)), v >= V.wsize ? (n.arraySet(V.window, P,
|
|
12423
|
+
function k(w, P, _, v) {
|
|
12424
|
+
var Q, V = w.state;
|
|
12425
|
+
return V.window === null && (V.wsize = 1 << V.wbits, V.wnext = 0, V.whave = 0, V.window = new n.Buf8(V.wsize)), v >= V.wsize ? (n.arraySet(V.window, P, _ - V.wsize, V.wsize, 0), V.wnext = 0, V.whave = V.wsize) : (v < (Q = V.wsize - V.wnext) && (Q = v), n.arraySet(V.window, P, _ - v, Q, V.wnext), (v -= Q) ? (n.arraySet(V.window, P, _ - v, v, 0), V.wnext = v, V.whave = V.wsize) : (V.wnext += Q, V.wnext === V.wsize && (V.wnext = 0), V.whave < V.wsize && (V.whave += Q))), 0;
|
|
12409
12426
|
}
|
|
12410
12427
|
i.inflateReset = g, i.inflateReset2 = y, i.inflateResetKeep = R, i.inflateInit = function(w) {
|
|
12411
12428
|
return F(w, 15);
|
|
12412
12429
|
}, i.inflateInit2 = F, i.inflate = function(w, P) {
|
|
12413
|
-
var
|
|
12430
|
+
var _, v, Q, V, et, H, nt, z, U, ot, st, tt, Rt, Ft, at, ft, ut, It, Gt, Mt, A, W, Y, b, O = 0, D = new n.Buf8(4), Z = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
12414
12431
|
if (!w || !w.state || !w.output || !w.input && w.avail_in !== 0)
|
|
12415
12432
|
return f;
|
|
12416
|
-
(
|
|
12433
|
+
(_ = w.state).mode === 12 && (_.mode = 13), et = w.next_out, Q = w.output, nt = w.avail_out, V = w.next_in, v = w.input, H = w.avail_in, z = _.hold, U = _.bits, ot = H, st = nt, W = u;
|
|
12417
12434
|
t:
|
|
12418
12435
|
for (; ; )
|
|
12419
|
-
switch (
|
|
12436
|
+
switch (_.mode) {
|
|
12420
12437
|
case E:
|
|
12421
|
-
if (
|
|
12422
|
-
|
|
12438
|
+
if (_.wrap === 0) {
|
|
12439
|
+
_.mode = 13;
|
|
12423
12440
|
break;
|
|
12424
12441
|
}
|
|
12425
12442
|
for (; U < 16; ) {
|
|
@@ -12427,25 +12444,25 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12427
12444
|
break t;
|
|
12428
12445
|
H--, z += v[V++] << U, U += 8;
|
|
12429
12446
|
}
|
|
12430
|
-
if (2 &
|
|
12431
|
-
D[
|
|
12447
|
+
if (2 & _.wrap && z === 35615) {
|
|
12448
|
+
D[_.check = 0] = 255 & z, D[1] = z >>> 8 & 255, _.check = o(_.check, D, 2, 0), U = z = 0, _.mode = 2;
|
|
12432
12449
|
break;
|
|
12433
12450
|
}
|
|
12434
|
-
if (
|
|
12435
|
-
w.msg = "incorrect header check",
|
|
12451
|
+
if (_.flags = 0, _.head && (_.head.done = !1), !(1 & _.wrap) || (((255 & z) << 8) + (z >> 8)) % 31) {
|
|
12452
|
+
w.msg = "incorrect header check", _.mode = 30;
|
|
12436
12453
|
break;
|
|
12437
12454
|
}
|
|
12438
12455
|
if ((15 & z) != 8) {
|
|
12439
|
-
w.msg = "unknown compression method",
|
|
12456
|
+
w.msg = "unknown compression method", _.mode = 30;
|
|
12440
12457
|
break;
|
|
12441
12458
|
}
|
|
12442
|
-
if (U -= 4, A = 8 + (15 & (z >>>= 4)),
|
|
12443
|
-
|
|
12444
|
-
else if (A >
|
|
12445
|
-
w.msg = "invalid window size",
|
|
12459
|
+
if (U -= 4, A = 8 + (15 & (z >>>= 4)), _.wbits === 0)
|
|
12460
|
+
_.wbits = A;
|
|
12461
|
+
else if (A > _.wbits) {
|
|
12462
|
+
w.msg = "invalid window size", _.mode = 30;
|
|
12446
12463
|
break;
|
|
12447
12464
|
}
|
|
12448
|
-
|
|
12465
|
+
_.dmax = 1 << A, w.adler = _.check = 1, _.mode = 512 & z ? 10 : 12, U = z = 0;
|
|
12449
12466
|
break;
|
|
12450
12467
|
case 2:
|
|
12451
12468
|
for (; U < 16; ) {
|
|
@@ -12453,80 +12470,80 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12453
12470
|
break t;
|
|
12454
12471
|
H--, z += v[V++] << U, U += 8;
|
|
12455
12472
|
}
|
|
12456
|
-
if (
|
|
12457
|
-
w.msg = "unknown compression method",
|
|
12473
|
+
if (_.flags = z, (255 & _.flags) != 8) {
|
|
12474
|
+
w.msg = "unknown compression method", _.mode = 30;
|
|
12458
12475
|
break;
|
|
12459
12476
|
}
|
|
12460
|
-
if (57344 &
|
|
12461
|
-
w.msg = "unknown header flags set",
|
|
12477
|
+
if (57344 & _.flags) {
|
|
12478
|
+
w.msg = "unknown header flags set", _.mode = 30;
|
|
12462
12479
|
break;
|
|
12463
12480
|
}
|
|
12464
|
-
|
|
12481
|
+
_.head && (_.head.text = z >> 8 & 1), 512 & _.flags && (D[0] = 255 & z, D[1] = z >>> 8 & 255, _.check = o(_.check, D, 2, 0)), U = z = 0, _.mode = 3;
|
|
12465
12482
|
case 3:
|
|
12466
12483
|
for (; U < 32; ) {
|
|
12467
12484
|
if (H === 0)
|
|
12468
12485
|
break t;
|
|
12469
12486
|
H--, z += v[V++] << U, U += 8;
|
|
12470
12487
|
}
|
|
12471
|
-
|
|
12488
|
+
_.head && (_.head.time = z), 512 & _.flags && (D[0] = 255 & z, D[1] = z >>> 8 & 255, D[2] = z >>> 16 & 255, D[3] = z >>> 24 & 255, _.check = o(_.check, D, 4, 0)), U = z = 0, _.mode = 4;
|
|
12472
12489
|
case 4:
|
|
12473
12490
|
for (; U < 16; ) {
|
|
12474
12491
|
if (H === 0)
|
|
12475
12492
|
break t;
|
|
12476
12493
|
H--, z += v[V++] << U, U += 8;
|
|
12477
12494
|
}
|
|
12478
|
-
|
|
12495
|
+
_.head && (_.head.xflags = 255 & z, _.head.os = z >> 8), 512 & _.flags && (D[0] = 255 & z, D[1] = z >>> 8 & 255, _.check = o(_.check, D, 2, 0)), U = z = 0, _.mode = 5;
|
|
12479
12496
|
case 5:
|
|
12480
|
-
if (1024 &
|
|
12497
|
+
if (1024 & _.flags) {
|
|
12481
12498
|
for (; U < 16; ) {
|
|
12482
12499
|
if (H === 0)
|
|
12483
12500
|
break t;
|
|
12484
12501
|
H--, z += v[V++] << U, U += 8;
|
|
12485
12502
|
}
|
|
12486
|
-
|
|
12503
|
+
_.length = z, _.head && (_.head.extra_len = z), 512 & _.flags && (D[0] = 255 & z, D[1] = z >>> 8 & 255, _.check = o(_.check, D, 2, 0)), U = z = 0;
|
|
12487
12504
|
} else
|
|
12488
|
-
|
|
12489
|
-
|
|
12505
|
+
_.head && (_.head.extra = null);
|
|
12506
|
+
_.mode = 6;
|
|
12490
12507
|
case 6:
|
|
12491
|
-
if (1024 &
|
|
12508
|
+
if (1024 & _.flags && (H < (tt = _.length) && (tt = H), tt && (_.head && (A = _.head.extra_len - _.length, _.head.extra || (_.head.extra = new Array(_.head.extra_len)), n.arraySet(_.head.extra, v, V, tt, A)), 512 & _.flags && (_.check = o(_.check, v, tt, V)), H -= tt, V += tt, _.length -= tt), _.length))
|
|
12492
12509
|
break t;
|
|
12493
|
-
|
|
12510
|
+
_.length = 0, _.mode = 7;
|
|
12494
12511
|
case 7:
|
|
12495
|
-
if (2048 &
|
|
12512
|
+
if (2048 & _.flags) {
|
|
12496
12513
|
if (H === 0)
|
|
12497
12514
|
break t;
|
|
12498
|
-
for (tt = 0; A = v[V + tt++],
|
|
12515
|
+
for (tt = 0; A = v[V + tt++], _.head && A && _.length < 65536 && (_.head.name += String.fromCharCode(A)), A && tt < H; )
|
|
12499
12516
|
;
|
|
12500
|
-
if (512 &
|
|
12517
|
+
if (512 & _.flags && (_.check = o(_.check, v, tt, V)), H -= tt, V += tt, A)
|
|
12501
12518
|
break t;
|
|
12502
12519
|
} else
|
|
12503
|
-
|
|
12504
|
-
|
|
12520
|
+
_.head && (_.head.name = null);
|
|
12521
|
+
_.length = 0, _.mode = 8;
|
|
12505
12522
|
case 8:
|
|
12506
|
-
if (4096 &
|
|
12523
|
+
if (4096 & _.flags) {
|
|
12507
12524
|
if (H === 0)
|
|
12508
12525
|
break t;
|
|
12509
|
-
for (tt = 0; A = v[V + tt++],
|
|
12526
|
+
for (tt = 0; A = v[V + tt++], _.head && A && _.length < 65536 && (_.head.comment += String.fromCharCode(A)), A && tt < H; )
|
|
12510
12527
|
;
|
|
12511
|
-
if (512 &
|
|
12528
|
+
if (512 & _.flags && (_.check = o(_.check, v, tt, V)), H -= tt, V += tt, A)
|
|
12512
12529
|
break t;
|
|
12513
12530
|
} else
|
|
12514
|
-
|
|
12515
|
-
|
|
12531
|
+
_.head && (_.head.comment = null);
|
|
12532
|
+
_.mode = 9;
|
|
12516
12533
|
case 9:
|
|
12517
|
-
if (512 &
|
|
12534
|
+
if (512 & _.flags) {
|
|
12518
12535
|
for (; U < 16; ) {
|
|
12519
12536
|
if (H === 0)
|
|
12520
12537
|
break t;
|
|
12521
12538
|
H--, z += v[V++] << U, U += 8;
|
|
12522
12539
|
}
|
|
12523
|
-
if (z !== (65535 &
|
|
12524
|
-
w.msg = "header crc mismatch",
|
|
12540
|
+
if (z !== (65535 & _.check)) {
|
|
12541
|
+
w.msg = "header crc mismatch", _.mode = 30;
|
|
12525
12542
|
break;
|
|
12526
12543
|
}
|
|
12527
12544
|
U = z = 0;
|
|
12528
12545
|
}
|
|
12529
|
-
|
|
12546
|
+
_.head && (_.head.hcrc = _.flags >> 9 & 1, _.head.done = !0), w.adler = _.check = 0, _.mode = 12;
|
|
12530
12547
|
break;
|
|
12531
12548
|
case 10:
|
|
12532
12549
|
for (; U < 32; ) {
|
|
@@ -12534,17 +12551,17 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12534
12551
|
break t;
|
|
12535
12552
|
H--, z += v[V++] << U, U += 8;
|
|
12536
12553
|
}
|
|
12537
|
-
w.adler =
|
|
12554
|
+
w.adler = _.check = m(z), U = z = 0, _.mode = 11;
|
|
12538
12555
|
case 11:
|
|
12539
|
-
if (
|
|
12540
|
-
return w.next_out = et, w.avail_out = nt, w.next_in = V, w.avail_in = H,
|
|
12541
|
-
w.adler =
|
|
12556
|
+
if (_.havedict === 0)
|
|
12557
|
+
return w.next_out = et, w.avail_out = nt, w.next_in = V, w.avail_in = H, _.hold = z, _.bits = U, 2;
|
|
12558
|
+
w.adler = _.check = 1, _.mode = 12;
|
|
12542
12559
|
case 12:
|
|
12543
12560
|
if (P === 5 || P === 6)
|
|
12544
12561
|
break t;
|
|
12545
12562
|
case 13:
|
|
12546
|
-
if (
|
|
12547
|
-
z >>>= 7 & U, U -= 7 & U,
|
|
12563
|
+
if (_.last) {
|
|
12564
|
+
z >>>= 7 & U, U -= 7 & U, _.mode = 27;
|
|
12548
12565
|
break;
|
|
12549
12566
|
}
|
|
12550
12567
|
for (; U < 3; ) {
|
|
@@ -12552,20 +12569,20 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12552
12569
|
break t;
|
|
12553
12570
|
H--, z += v[V++] << U, U += 8;
|
|
12554
12571
|
}
|
|
12555
|
-
switch (
|
|
12572
|
+
switch (_.last = 1 & z, U -= 1, 3 & (z >>>= 1)) {
|
|
12556
12573
|
case 0:
|
|
12557
|
-
|
|
12574
|
+
_.mode = 14;
|
|
12558
12575
|
break;
|
|
12559
12576
|
case 1:
|
|
12560
|
-
if (x(
|
|
12577
|
+
if (x(_), _.mode = 20, P !== 6)
|
|
12561
12578
|
break;
|
|
12562
12579
|
z >>>= 2, U -= 2;
|
|
12563
12580
|
break t;
|
|
12564
12581
|
case 2:
|
|
12565
|
-
|
|
12582
|
+
_.mode = 17;
|
|
12566
12583
|
break;
|
|
12567
12584
|
case 3:
|
|
12568
|
-
w.msg = "invalid block type",
|
|
12585
|
+
w.msg = "invalid block type", _.mode = 30;
|
|
12569
12586
|
}
|
|
12570
12587
|
z >>>= 2, U -= 2;
|
|
12571
12588
|
break;
|
|
@@ -12576,21 +12593,21 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12576
12593
|
H--, z += v[V++] << U, U += 8;
|
|
12577
12594
|
}
|
|
12578
12595
|
if ((65535 & z) != (z >>> 16 ^ 65535)) {
|
|
12579
|
-
w.msg = "invalid stored block lengths",
|
|
12596
|
+
w.msg = "invalid stored block lengths", _.mode = 30;
|
|
12580
12597
|
break;
|
|
12581
12598
|
}
|
|
12582
|
-
if (
|
|
12599
|
+
if (_.length = 65535 & z, U = z = 0, _.mode = 15, P === 6)
|
|
12583
12600
|
break t;
|
|
12584
12601
|
case 15:
|
|
12585
|
-
|
|
12602
|
+
_.mode = 16;
|
|
12586
12603
|
case 16:
|
|
12587
|
-
if (tt =
|
|
12604
|
+
if (tt = _.length) {
|
|
12588
12605
|
if (H < tt && (tt = H), nt < tt && (tt = nt), tt === 0)
|
|
12589
12606
|
break t;
|
|
12590
|
-
n.arraySet(
|
|
12607
|
+
n.arraySet(Q, v, V, tt, et), H -= tt, V += tt, nt -= tt, et += tt, _.length -= tt;
|
|
12591
12608
|
break;
|
|
12592
12609
|
}
|
|
12593
|
-
|
|
12610
|
+
_.mode = 12;
|
|
12594
12611
|
break;
|
|
12595
12612
|
case 17:
|
|
12596
12613
|
for (; U < 14; ) {
|
|
@@ -12598,36 +12615,36 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12598
12615
|
break t;
|
|
12599
12616
|
H--, z += v[V++] << U, U += 8;
|
|
12600
12617
|
}
|
|
12601
|
-
if (
|
|
12602
|
-
w.msg = "too many length or distance symbols",
|
|
12618
|
+
if (_.nlen = 257 + (31 & z), z >>>= 5, U -= 5, _.ndist = 1 + (31 & z), z >>>= 5, U -= 5, _.ncode = 4 + (15 & z), z >>>= 4, U -= 4, 286 < _.nlen || 30 < _.ndist) {
|
|
12619
|
+
w.msg = "too many length or distance symbols", _.mode = 30;
|
|
12603
12620
|
break;
|
|
12604
12621
|
}
|
|
12605
|
-
|
|
12622
|
+
_.have = 0, _.mode = 18;
|
|
12606
12623
|
case 18:
|
|
12607
|
-
for (;
|
|
12624
|
+
for (; _.have < _.ncode; ) {
|
|
12608
12625
|
for (; U < 3; ) {
|
|
12609
12626
|
if (H === 0)
|
|
12610
12627
|
break t;
|
|
12611
12628
|
H--, z += v[V++] << U, U += 8;
|
|
12612
12629
|
}
|
|
12613
|
-
|
|
12630
|
+
_.lens[Z[_.have++]] = 7 & z, z >>>= 3, U -= 3;
|
|
12614
12631
|
}
|
|
12615
|
-
for (;
|
|
12616
|
-
|
|
12617
|
-
if (
|
|
12618
|
-
w.msg = "invalid code lengths set",
|
|
12632
|
+
for (; _.have < 19; )
|
|
12633
|
+
_.lens[Z[_.have++]] = 0;
|
|
12634
|
+
if (_.lencode = _.lendyn, _.lenbits = 7, Y = { bits: _.lenbits }, W = l(0, _.lens, 0, 19, _.lencode, 0, _.work, Y), _.lenbits = Y.bits, W) {
|
|
12635
|
+
w.msg = "invalid code lengths set", _.mode = 30;
|
|
12619
12636
|
break;
|
|
12620
12637
|
}
|
|
12621
|
-
|
|
12638
|
+
_.have = 0, _.mode = 19;
|
|
12622
12639
|
case 19:
|
|
12623
|
-
for (;
|
|
12624
|
-
for (; ft = (O =
|
|
12640
|
+
for (; _.have < _.nlen + _.ndist; ) {
|
|
12641
|
+
for (; ft = (O = _.lencode[z & (1 << _.lenbits) - 1]) >>> 16 & 255, ut = 65535 & O, !((at = O >>> 24) <= U); ) {
|
|
12625
12642
|
if (H === 0)
|
|
12626
12643
|
break t;
|
|
12627
12644
|
H--, z += v[V++] << U, U += 8;
|
|
12628
12645
|
}
|
|
12629
12646
|
if (ut < 16)
|
|
12630
|
-
z >>>= at, U -= at,
|
|
12647
|
+
z >>>= at, U -= at, _.lens[_.have++] = ut;
|
|
12631
12648
|
else {
|
|
12632
12649
|
if (ut === 16) {
|
|
12633
12650
|
for (b = at + 2; U < b; ) {
|
|
@@ -12635,11 +12652,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12635
12652
|
break t;
|
|
12636
12653
|
H--, z += v[V++] << U, U += 8;
|
|
12637
12654
|
}
|
|
12638
|
-
if (z >>>= at, U -= at,
|
|
12639
|
-
w.msg = "invalid bit length repeat",
|
|
12655
|
+
if (z >>>= at, U -= at, _.have === 0) {
|
|
12656
|
+
w.msg = "invalid bit length repeat", _.mode = 30;
|
|
12640
12657
|
break;
|
|
12641
12658
|
}
|
|
12642
|
-
A =
|
|
12659
|
+
A = _.lens[_.have - 1], tt = 3 + (3 & z), z >>>= 2, U -= 2;
|
|
12643
12660
|
} else if (ut === 17) {
|
|
12644
12661
|
for (b = at + 3; U < b; ) {
|
|
12645
12662
|
if (H === 0)
|
|
@@ -12655,154 +12672,154 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12655
12672
|
}
|
|
12656
12673
|
U -= at, A = 0, tt = 11 + (127 & (z >>>= at)), z >>>= 7, U -= 7;
|
|
12657
12674
|
}
|
|
12658
|
-
if (
|
|
12659
|
-
w.msg = "invalid bit length repeat",
|
|
12675
|
+
if (_.have + tt > _.nlen + _.ndist) {
|
|
12676
|
+
w.msg = "invalid bit length repeat", _.mode = 30;
|
|
12660
12677
|
break;
|
|
12661
12678
|
}
|
|
12662
12679
|
for (; tt--; )
|
|
12663
|
-
|
|
12680
|
+
_.lens[_.have++] = A;
|
|
12664
12681
|
}
|
|
12665
12682
|
}
|
|
12666
|
-
if (
|
|
12683
|
+
if (_.mode === 30)
|
|
12667
12684
|
break;
|
|
12668
|
-
if (
|
|
12669
|
-
w.msg = "invalid code -- missing end-of-block",
|
|
12685
|
+
if (_.lens[256] === 0) {
|
|
12686
|
+
w.msg = "invalid code -- missing end-of-block", _.mode = 30;
|
|
12670
12687
|
break;
|
|
12671
12688
|
}
|
|
12672
|
-
if (
|
|
12673
|
-
w.msg = "invalid literal/lengths set",
|
|
12689
|
+
if (_.lenbits = 9, Y = { bits: _.lenbits }, W = l(h, _.lens, 0, _.nlen, _.lencode, 0, _.work, Y), _.lenbits = Y.bits, W) {
|
|
12690
|
+
w.msg = "invalid literal/lengths set", _.mode = 30;
|
|
12674
12691
|
break;
|
|
12675
12692
|
}
|
|
12676
|
-
if (
|
|
12677
|
-
w.msg = "invalid distances set",
|
|
12693
|
+
if (_.distbits = 6, _.distcode = _.distdyn, Y = { bits: _.distbits }, W = l(d, _.lens, _.nlen, _.ndist, _.distcode, 0, _.work, Y), _.distbits = Y.bits, W) {
|
|
12694
|
+
w.msg = "invalid distances set", _.mode = 30;
|
|
12678
12695
|
break;
|
|
12679
12696
|
}
|
|
12680
|
-
if (
|
|
12697
|
+
if (_.mode = 20, P === 6)
|
|
12681
12698
|
break t;
|
|
12682
12699
|
case 20:
|
|
12683
|
-
|
|
12700
|
+
_.mode = 21;
|
|
12684
12701
|
case 21:
|
|
12685
12702
|
if (6 <= H && 258 <= nt) {
|
|
12686
|
-
w.next_out = et, w.avail_out = nt, w.next_in = V, w.avail_in = H,
|
|
12703
|
+
w.next_out = et, w.avail_out = nt, w.next_in = V, w.avail_in = H, _.hold = z, _.bits = U, a(w, st), et = w.next_out, Q = w.output, nt = w.avail_out, V = w.next_in, v = w.input, H = w.avail_in, z = _.hold, U = _.bits, _.mode === 12 && (_.back = -1);
|
|
12687
12704
|
break;
|
|
12688
12705
|
}
|
|
12689
|
-
for (
|
|
12706
|
+
for (_.back = 0; ft = (O = _.lencode[z & (1 << _.lenbits) - 1]) >>> 16 & 255, ut = 65535 & O, !((at = O >>> 24) <= U); ) {
|
|
12690
12707
|
if (H === 0)
|
|
12691
12708
|
break t;
|
|
12692
12709
|
H--, z += v[V++] << U, U += 8;
|
|
12693
12710
|
}
|
|
12694
12711
|
if (ft && !(240 & ft)) {
|
|
12695
|
-
for (It = at, Gt = ft, Mt = ut; ft = (O =
|
|
12712
|
+
for (It = at, Gt = ft, Mt = ut; ft = (O = _.lencode[Mt + ((z & (1 << It + Gt) - 1) >> It)]) >>> 16 & 255, ut = 65535 & O, !(It + (at = O >>> 24) <= U); ) {
|
|
12696
12713
|
if (H === 0)
|
|
12697
12714
|
break t;
|
|
12698
12715
|
H--, z += v[V++] << U, U += 8;
|
|
12699
12716
|
}
|
|
12700
|
-
z >>>= It, U -= It,
|
|
12717
|
+
z >>>= It, U -= It, _.back += It;
|
|
12701
12718
|
}
|
|
12702
|
-
if (z >>>= at, U -= at,
|
|
12703
|
-
|
|
12719
|
+
if (z >>>= at, U -= at, _.back += at, _.length = ut, ft === 0) {
|
|
12720
|
+
_.mode = 26;
|
|
12704
12721
|
break;
|
|
12705
12722
|
}
|
|
12706
12723
|
if (32 & ft) {
|
|
12707
|
-
|
|
12724
|
+
_.back = -1, _.mode = 12;
|
|
12708
12725
|
break;
|
|
12709
12726
|
}
|
|
12710
12727
|
if (64 & ft) {
|
|
12711
|
-
w.msg = "invalid literal/length code",
|
|
12728
|
+
w.msg = "invalid literal/length code", _.mode = 30;
|
|
12712
12729
|
break;
|
|
12713
12730
|
}
|
|
12714
|
-
|
|
12731
|
+
_.extra = 15 & ft, _.mode = 22;
|
|
12715
12732
|
case 22:
|
|
12716
|
-
if (
|
|
12717
|
-
for (b =
|
|
12733
|
+
if (_.extra) {
|
|
12734
|
+
for (b = _.extra; U < b; ) {
|
|
12718
12735
|
if (H === 0)
|
|
12719
12736
|
break t;
|
|
12720
12737
|
H--, z += v[V++] << U, U += 8;
|
|
12721
12738
|
}
|
|
12722
|
-
|
|
12739
|
+
_.length += z & (1 << _.extra) - 1, z >>>= _.extra, U -= _.extra, _.back += _.extra;
|
|
12723
12740
|
}
|
|
12724
|
-
|
|
12741
|
+
_.was = _.length, _.mode = 23;
|
|
12725
12742
|
case 23:
|
|
12726
|
-
for (; ft = (O =
|
|
12743
|
+
for (; ft = (O = _.distcode[z & (1 << _.distbits) - 1]) >>> 16 & 255, ut = 65535 & O, !((at = O >>> 24) <= U); ) {
|
|
12727
12744
|
if (H === 0)
|
|
12728
12745
|
break t;
|
|
12729
12746
|
H--, z += v[V++] << U, U += 8;
|
|
12730
12747
|
}
|
|
12731
12748
|
if (!(240 & ft)) {
|
|
12732
|
-
for (It = at, Gt = ft, Mt = ut; ft = (O =
|
|
12749
|
+
for (It = at, Gt = ft, Mt = ut; ft = (O = _.distcode[Mt + ((z & (1 << It + Gt) - 1) >> It)]) >>> 16 & 255, ut = 65535 & O, !(It + (at = O >>> 24) <= U); ) {
|
|
12733
12750
|
if (H === 0)
|
|
12734
12751
|
break t;
|
|
12735
12752
|
H--, z += v[V++] << U, U += 8;
|
|
12736
12753
|
}
|
|
12737
|
-
z >>>= It, U -= It,
|
|
12754
|
+
z >>>= It, U -= It, _.back += It;
|
|
12738
12755
|
}
|
|
12739
|
-
if (z >>>= at, U -= at,
|
|
12740
|
-
w.msg = "invalid distance code",
|
|
12756
|
+
if (z >>>= at, U -= at, _.back += at, 64 & ft) {
|
|
12757
|
+
w.msg = "invalid distance code", _.mode = 30;
|
|
12741
12758
|
break;
|
|
12742
12759
|
}
|
|
12743
|
-
|
|
12760
|
+
_.offset = ut, _.extra = 15 & ft, _.mode = 24;
|
|
12744
12761
|
case 24:
|
|
12745
|
-
if (
|
|
12746
|
-
for (b =
|
|
12762
|
+
if (_.extra) {
|
|
12763
|
+
for (b = _.extra; U < b; ) {
|
|
12747
12764
|
if (H === 0)
|
|
12748
12765
|
break t;
|
|
12749
12766
|
H--, z += v[V++] << U, U += 8;
|
|
12750
12767
|
}
|
|
12751
|
-
|
|
12768
|
+
_.offset += z & (1 << _.extra) - 1, z >>>= _.extra, U -= _.extra, _.back += _.extra;
|
|
12752
12769
|
}
|
|
12753
|
-
if (
|
|
12754
|
-
w.msg = "invalid distance too far back",
|
|
12770
|
+
if (_.offset > _.dmax) {
|
|
12771
|
+
w.msg = "invalid distance too far back", _.mode = 30;
|
|
12755
12772
|
break;
|
|
12756
12773
|
}
|
|
12757
|
-
|
|
12774
|
+
_.mode = 25;
|
|
12758
12775
|
case 25:
|
|
12759
12776
|
if (nt === 0)
|
|
12760
12777
|
break t;
|
|
12761
|
-
if (tt = st - nt,
|
|
12762
|
-
if ((tt =
|
|
12763
|
-
w.msg = "invalid distance too far back",
|
|
12778
|
+
if (tt = st - nt, _.offset > tt) {
|
|
12779
|
+
if ((tt = _.offset - tt) > _.whave && _.sane) {
|
|
12780
|
+
w.msg = "invalid distance too far back", _.mode = 30;
|
|
12764
12781
|
break;
|
|
12765
12782
|
}
|
|
12766
|
-
Rt = tt >
|
|
12783
|
+
Rt = tt > _.wnext ? (tt -= _.wnext, _.wsize - tt) : _.wnext - tt, tt > _.length && (tt = _.length), Ft = _.window;
|
|
12767
12784
|
} else
|
|
12768
|
-
Ft =
|
|
12769
|
-
for (nt < tt && (tt = nt), nt -= tt,
|
|
12785
|
+
Ft = Q, Rt = et - _.offset, tt = _.length;
|
|
12786
|
+
for (nt < tt && (tt = nt), nt -= tt, _.length -= tt; Q[et++] = Ft[Rt++], --tt; )
|
|
12770
12787
|
;
|
|
12771
|
-
|
|
12788
|
+
_.length === 0 && (_.mode = 21);
|
|
12772
12789
|
break;
|
|
12773
12790
|
case 26:
|
|
12774
12791
|
if (nt === 0)
|
|
12775
12792
|
break t;
|
|
12776
|
-
|
|
12793
|
+
Q[et++] = _.length, nt--, _.mode = 21;
|
|
12777
12794
|
break;
|
|
12778
12795
|
case 27:
|
|
12779
|
-
if (
|
|
12796
|
+
if (_.wrap) {
|
|
12780
12797
|
for (; U < 32; ) {
|
|
12781
12798
|
if (H === 0)
|
|
12782
12799
|
break t;
|
|
12783
12800
|
H--, z |= v[V++] << U, U += 8;
|
|
12784
12801
|
}
|
|
12785
|
-
if (st -= nt, w.total_out += st,
|
|
12786
|
-
w.msg = "incorrect data check",
|
|
12802
|
+
if (st -= nt, w.total_out += st, _.total += st, st && (w.adler = _.check = _.flags ? o(_.check, Q, st, et - st) : r(_.check, Q, st, et - st)), st = nt, (_.flags ? z : m(z)) !== _.check) {
|
|
12803
|
+
w.msg = "incorrect data check", _.mode = 30;
|
|
12787
12804
|
break;
|
|
12788
12805
|
}
|
|
12789
12806
|
U = z = 0;
|
|
12790
12807
|
}
|
|
12791
|
-
|
|
12808
|
+
_.mode = 28;
|
|
12792
12809
|
case 28:
|
|
12793
|
-
if (
|
|
12810
|
+
if (_.wrap && _.flags) {
|
|
12794
12811
|
for (; U < 32; ) {
|
|
12795
12812
|
if (H === 0)
|
|
12796
12813
|
break t;
|
|
12797
12814
|
H--, z += v[V++] << U, U += 8;
|
|
12798
12815
|
}
|
|
12799
|
-
if (z !== (4294967295 &
|
|
12800
|
-
w.msg = "incorrect length check",
|
|
12816
|
+
if (z !== (4294967295 & _.total)) {
|
|
12817
|
+
w.msg = "incorrect length check", _.mode = 30;
|
|
12801
12818
|
break;
|
|
12802
12819
|
}
|
|
12803
12820
|
U = z = 0;
|
|
12804
12821
|
}
|
|
12805
|
-
|
|
12822
|
+
_.mode = 29;
|
|
12806
12823
|
case 29:
|
|
12807
12824
|
W = 1;
|
|
12808
12825
|
break t;
|
|
@@ -12815,34 +12832,34 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12815
12832
|
default:
|
|
12816
12833
|
return f;
|
|
12817
12834
|
}
|
|
12818
|
-
return w.next_out = et, w.avail_out = nt, w.next_in = V, w.avail_in = H,
|
|
12835
|
+
return w.next_out = et, w.avail_out = nt, w.next_in = V, w.avail_in = H, _.hold = z, _.bits = U, (_.wsize || st !== w.avail_out && _.mode < 30 && (_.mode < 27 || P !== 4)) && k(w, w.output, w.next_out, st - w.avail_out) ? (_.mode = 31, -4) : (ot -= w.avail_in, st -= w.avail_out, w.total_in += ot, w.total_out += st, _.total += st, _.wrap && st && (w.adler = _.check = _.flags ? o(_.check, Q, st, w.next_out - st) : r(_.check, Q, st, w.next_out - st)), w.data_type = _.bits + (_.last ? 64 : 0) + (_.mode === 12 ? 128 : 0) + (_.mode === 20 || _.mode === 15 ? 256 : 0), (ot == 0 && st === 0 || P === 4) && W === u && (W = -5), W);
|
|
12819
12836
|
}, i.inflateEnd = function(w) {
|
|
12820
12837
|
if (!w || !w.state)
|
|
12821
12838
|
return f;
|
|
12822
12839
|
var P = w.state;
|
|
12823
12840
|
return P.window && (P.window = null), w.state = null, u;
|
|
12824
12841
|
}, i.inflateGetHeader = function(w, P) {
|
|
12825
|
-
var
|
|
12826
|
-
return w && w.state && 2 & (
|
|
12842
|
+
var _;
|
|
12843
|
+
return w && w.state && 2 & (_ = w.state).wrap ? ((_.head = P).done = !1, u) : f;
|
|
12827
12844
|
}, i.inflateSetDictionary = function(w, P) {
|
|
12828
|
-
var
|
|
12829
|
-
return w && w.state ? (
|
|
12845
|
+
var _, v = P.length;
|
|
12846
|
+
return w && w.state ? (_ = w.state).wrap !== 0 && _.mode !== 11 ? f : _.mode === 11 && r(1, P, v, 0) !== _.check ? -3 : k(w, P, v, v) ? (_.mode = 31, -4) : (_.havedict = 1, u) : f;
|
|
12830
12847
|
}, i.inflateInfo = "pako inflate (from Nodeca project)";
|
|
12831
12848
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(t, e, i) {
|
|
12832
12849
|
var n = t("../utils/common"), r = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], o = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], a = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], l = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
|
|
12833
12850
|
e.exports = function(h, d, u, f, E, p, I, m) {
|
|
12834
|
-
var C, R, g, y, F, S, L, N, x, k = m.bits, w = 0, P = 0,
|
|
12851
|
+
var C, R, g, y, F, S, L, N, x, k = m.bits, w = 0, P = 0, _ = 0, v = 0, Q = 0, V = 0, et = 0, H = 0, nt = 0, z = 0, U = null, ot = 0, st = new n.Buf16(16), tt = new n.Buf16(16), Rt = null, Ft = 0;
|
|
12835
12852
|
for (w = 0; w <= 15; w++)
|
|
12836
12853
|
st[w] = 0;
|
|
12837
12854
|
for (P = 0; P < f; P++)
|
|
12838
12855
|
st[d[u + P]]++;
|
|
12839
|
-
for (
|
|
12856
|
+
for (Q = k, v = 15; 1 <= v && st[v] === 0; v--)
|
|
12840
12857
|
;
|
|
12841
|
-
if (v <
|
|
12858
|
+
if (v < Q && (Q = v), v === 0)
|
|
12842
12859
|
return E[p++] = 20971520, E[p++] = 20971520, m.bits = 1, 0;
|
|
12843
|
-
for (
|
|
12860
|
+
for (_ = 1; _ < v && st[_] === 0; _++)
|
|
12844
12861
|
;
|
|
12845
|
-
for (
|
|
12862
|
+
for (Q < _ && (Q = _), w = H = 1; w <= 15; w++)
|
|
12846
12863
|
if (H <<= 1, (H -= st[w]) < 0)
|
|
12847
12864
|
return -1;
|
|
12848
12865
|
if (0 < H && (h === 0 || v !== 1))
|
|
@@ -12851,10 +12868,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12851
12868
|
tt[w + 1] = tt[w] + st[w];
|
|
12852
12869
|
for (P = 0; P < f; P++)
|
|
12853
12870
|
d[u + P] !== 0 && (I[tt[d[u + P]]++] = P);
|
|
12854
|
-
if (S = h === 0 ? (U = Rt = I, 19) : h === 1 ? (U = r, ot -= 257, Rt = o, Ft -= 257, 256) : (U = a, Rt = l, -1), w =
|
|
12871
|
+
if (S = h === 0 ? (U = Rt = I, 19) : h === 1 ? (U = r, ot -= 257, Rt = o, Ft -= 257, 256) : (U = a, Rt = l, -1), w = _, F = p, et = P = z = 0, g = -1, y = (nt = 1 << (V = Q)) - 1, h === 1 && 852 < nt || h === 2 && 592 < nt)
|
|
12855
12872
|
return 1;
|
|
12856
12873
|
for (; ; ) {
|
|
12857
|
-
for (L = w - et, x = I[P] < S ? (N = 0, I[P]) : I[P] > S ? (N = Rt[Ft + I[P]], U[ot + I[P]]) : (N = 96, 0), C = 1 << w - et,
|
|
12874
|
+
for (L = w - et, x = I[P] < S ? (N = 0, I[P]) : I[P] > S ? (N = Rt[Ft + I[P]], U[ot + I[P]]) : (N = 96, 0), C = 1 << w - et, _ = R = 1 << V; E[F + (z >> et) + (R -= C)] = L << 24 | N << 16 | x | 0, R !== 0; )
|
|
12858
12875
|
;
|
|
12859
12876
|
for (C = 1 << w - 1; z & C; )
|
|
12860
12877
|
C >>= 1;
|
|
@@ -12863,15 +12880,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12863
12880
|
break;
|
|
12864
12881
|
w = d[u + I[P]];
|
|
12865
12882
|
}
|
|
12866
|
-
if (
|
|
12867
|
-
for (et === 0 && (et =
|
|
12883
|
+
if (Q < w && (z & y) !== g) {
|
|
12884
|
+
for (et === 0 && (et = Q), F += _, H = 1 << (V = w - et); V + et < v && !((H -= st[V + et]) <= 0); )
|
|
12868
12885
|
V++, H <<= 1;
|
|
12869
12886
|
if (nt += 1 << V, h === 1 && 852 < nt || h === 2 && 592 < nt)
|
|
12870
12887
|
return 1;
|
|
12871
|
-
E[g = z & y] =
|
|
12888
|
+
E[g = z & y] = Q << 24 | V << 16 | F - p | 0;
|
|
12872
12889
|
}
|
|
12873
12890
|
}
|
|
12874
|
-
return z !== 0 && (E[F + z] = w - et << 24 | 64 << 16 | 0), m.bits =
|
|
12891
|
+
return z !== 0 && (E[F + z] = w - et << 24 | 64 << 16 | 0), m.bits = Q, 0;
|
|
12875
12892
|
};
|
|
12876
12893
|
}, { "../utils/common": 41 }], 51: [function(t, e, i) {
|
|
12877
12894
|
e.exports = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" };
|
|
@@ -12887,11 +12904,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12887
12904
|
a(w);
|
|
12888
12905
|
var P = new Array(512);
|
|
12889
12906
|
a(P);
|
|
12890
|
-
var
|
|
12891
|
-
a(
|
|
12907
|
+
var _ = new Array(256);
|
|
12908
|
+
a(_);
|
|
12892
12909
|
var v = new Array(h);
|
|
12893
12910
|
a(v);
|
|
12894
|
-
var
|
|
12911
|
+
var Q, V, et, H = new Array(f);
|
|
12895
12912
|
function nt(O, D, Z, $, B) {
|
|
12896
12913
|
this.static_tree = O, this.extra_bits = D, this.extra_base = Z, this.elems = $, this.max_length = B, this.has_stree = O && O.length;
|
|
12897
12914
|
}
|
|
@@ -12949,7 +12966,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12949
12966
|
function Gt(O, D, Z) {
|
|
12950
12967
|
var $, B, K, it, J = 0;
|
|
12951
12968
|
if (O.last_lit !== 0)
|
|
12952
|
-
for (; $ = O.pending_buf[O.d_buf + 2 * J] << 8 | O.pending_buf[O.d_buf + 2 * J + 1], B = O.pending_buf[O.l_buf + J], J++, $ === 0 ? tt(O, B, D) : (tt(O, (K =
|
|
12969
|
+
for (; $ = O.pending_buf[O.d_buf + 2 * J] << 8 | O.pending_buf[O.d_buf + 2 * J + 1], B = O.pending_buf[O.l_buf + J], J++, $ === 0 ? tt(O, B, D) : (tt(O, (K = _[B]) + d + 1, D), (it = S[K]) !== 0 && st(O, B -= v[K], it), tt(O, K = U(--$), Z), (it = L[K]) !== 0 && st(O, $ -= H[K], it)), J < O.last_lit; )
|
|
12953
12970
|
;
|
|
12954
12971
|
tt(O, R, D);
|
|
12955
12972
|
}
|
|
@@ -13010,8 +13027,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13010
13027
|
var D, Z, $, B, K, it = new Array(I + 1);
|
|
13011
13028
|
for (B = $ = 0; B < h - 1; B++)
|
|
13012
13029
|
for (v[B] = $, D = 0; D < 1 << S[B]; D++)
|
|
13013
|
-
|
|
13014
|
-
for (
|
|
13030
|
+
_[$++] = B;
|
|
13031
|
+
for (_[$ - 1] = B, B = K = 0; B < 16; B++)
|
|
13015
13032
|
for (H[B] = K, D = 0; D < 1 << L[B]; D++)
|
|
13016
13033
|
P[K++] = B;
|
|
13017
13034
|
for (K >>= 7; B < f; B++)
|
|
@@ -13029,8 +13046,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13029
13046
|
k[2 * D + 1] = 8, D++, it[8]++;
|
|
13030
13047
|
for (Ft(k, u + 1, it), D = 0; D < f; D++)
|
|
13031
13048
|
w[2 * D + 1] = 5, w[2 * D] = Rt(D, 5);
|
|
13032
|
-
|
|
13033
|
-
}(), Y = !0), O.l_desc = new z(O.dyn_ltree,
|
|
13049
|
+
Q = new nt(k, S, d + 1, u, I), V = new nt(w, L, 0, f, I), et = new nt(new Array(0), N, 0, E, C);
|
|
13050
|
+
}(), Y = !0), O.l_desc = new z(O.dyn_ltree, Q), O.d_desc = new z(O.dyn_dtree, V), O.bl_desc = new z(O.bl_tree, et), O.bi_buf = 0, O.bi_valid = 0, at(O);
|
|
13034
13051
|
}, i._tr_stored_block = b, i._tr_flush_block = function(O, D, Z, $) {
|
|
13035
13052
|
var B, K, it = 0;
|
|
13036
13053
|
0 < O.level ? (O.strm.data_type === 2 && (O.strm.data_type = function(J) {
|
|
@@ -13056,7 +13073,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13056
13073
|
W(J, J.dyn_ltree, ct - 1), W(J, J.dyn_dtree, Ct - 1);
|
|
13057
13074
|
}(O, O.l_desc.max_code + 1, O.d_desc.max_code + 1, it + 1), Gt(O, O.dyn_ltree, O.dyn_dtree)), at(O), $ && ft(O);
|
|
13058
13075
|
}, i._tr_tally = function(O, D, Z) {
|
|
13059
|
-
return O.pending_buf[O.d_buf + 2 * O.last_lit] = D >>> 8 & 255, O.pending_buf[O.d_buf + 2 * O.last_lit + 1] = 255 & D, O.pending_buf[O.l_buf + O.last_lit] = 255 & Z, O.last_lit++, D === 0 ? O.dyn_ltree[2 * Z]++ : (O.matches++, D--, O.dyn_ltree[2 * (
|
|
13076
|
+
return O.pending_buf[O.d_buf + 2 * O.last_lit] = D >>> 8 & 255, O.pending_buf[O.d_buf + 2 * O.last_lit + 1] = 255 & D, O.pending_buf[O.l_buf + O.last_lit] = 255 & Z, O.last_lit++, D === 0 ? O.dyn_ltree[2 * Z]++ : (O.matches++, D--, O.dyn_ltree[2 * (_[Z] + d + 1)]++, O.dyn_dtree[2 * U(D)]++), O.last_lit === O.lit_bufsize - 1;
|
|
13060
13077
|
}, i._tr_align = function(O) {
|
|
13061
13078
|
st(O, 2, 3), tt(O, R, k), function(D) {
|
|
13062
13079
|
D.bi_valid === 16 ? (ot(D, D.bi_buf), D.bi_buf = 0, D.bi_valid = 0) : 8 <= D.bi_valid && (D.pending_buf[D.pending++] = 255 & D.bi_buf, D.bi_buf >>= 8, D.bi_valid -= 8);
|
|
@@ -14186,15 +14203,15 @@ class En {
|
|
|
14186
14203
|
* @param text - The initial comment text.
|
|
14187
14204
|
*/
|
|
14188
14205
|
constructor(s, t) {
|
|
14189
|
-
|
|
14190
|
-
|
|
14191
|
-
|
|
14192
|
-
|
|
14193
|
-
|
|
14194
|
-
|
|
14195
|
-
|
|
14196
|
-
|
|
14197
|
-
|
|
14206
|
+
T(this, "date", /* @__PURE__ */ new Date());
|
|
14207
|
+
T(this, "author");
|
|
14208
|
+
T(this, "guid", me.create());
|
|
14209
|
+
T(this, "viewpoint");
|
|
14210
|
+
T(this, "modifiedAuthor");
|
|
14211
|
+
T(this, "modifiedDate");
|
|
14212
|
+
T(this, "topic");
|
|
14213
|
+
T(this, "_components");
|
|
14214
|
+
T(this, "_comment", "");
|
|
14198
14215
|
this._components = s, this._comment = t;
|
|
14199
14216
|
const e = this._components.get(Lt);
|
|
14200
14217
|
this.author = e.config.author;
|
|
@@ -14257,30 +14274,30 @@ const ce = class ce {
|
|
|
14257
14274
|
* @remarks
|
|
14258
14275
|
* The `guid` is automatically generated upon topic creation and by no means it should change.
|
|
14259
14276
|
*/
|
|
14260
|
-
|
|
14261
|
-
|
|
14262
|
-
|
|
14263
|
-
|
|
14277
|
+
T(this, "guid", me.create());
|
|
14278
|
+
T(this, "title", ce.default.title);
|
|
14279
|
+
T(this, "creationDate", /* @__PURE__ */ new Date());
|
|
14280
|
+
T(this, "creationAuthor", "");
|
|
14264
14281
|
// Store viewpoint guids instead of the actual Viewpoint to prevent a possible memory leak
|
|
14265
|
-
|
|
14282
|
+
T(this, "viewpoints", new qe());
|
|
14266
14283
|
// Store topic guids instead of the actual Topic to prevent a possible memory leak
|
|
14267
|
-
|
|
14284
|
+
T(this, "relatedTopics", new qe());
|
|
14268
14285
|
// There is no problem to store the comment it-self as it is not referenced anywhere else
|
|
14269
|
-
|
|
14270
|
-
|
|
14271
|
-
|
|
14272
|
-
|
|
14273
|
-
|
|
14274
|
-
|
|
14275
|
-
|
|
14276
|
-
|
|
14277
|
-
|
|
14278
|
-
|
|
14279
|
-
|
|
14280
|
-
|
|
14281
|
-
|
|
14282
|
-
|
|
14283
|
-
|
|
14286
|
+
T(this, "comments", new Ee());
|
|
14287
|
+
T(this, "customData", {});
|
|
14288
|
+
T(this, "description");
|
|
14289
|
+
T(this, "serverAssignedId");
|
|
14290
|
+
T(this, "dueDate");
|
|
14291
|
+
T(this, "modifiedAuthor");
|
|
14292
|
+
T(this, "modifiedDate");
|
|
14293
|
+
T(this, "index");
|
|
14294
|
+
T(this, "_type", ce.default.type);
|
|
14295
|
+
T(this, "_status", ce.default.status);
|
|
14296
|
+
T(this, "_priority", ce.default.priority);
|
|
14297
|
+
T(this, "_stage", ce.default.priority);
|
|
14298
|
+
T(this, "_assignedTo", ce.default.assignedTo);
|
|
14299
|
+
T(this, "_labels", ce.default.labels);
|
|
14300
|
+
T(this, "_components");
|
|
14284
14301
|
this._components = s;
|
|
14285
14302
|
const t = s.get(Lt);
|
|
14286
14303
|
this.creationAuthor = t.config.author, this.relatedTopics.guard = (e) => e !== this.guid;
|
|
@@ -14516,7 +14533,7 @@ ${t}
|
|
|
14516
14533
|
/**
|
|
14517
14534
|
* Default values for a BCF Topic, excluding `guid`, `creationDate`, and `creationAuthor`.
|
|
14518
14535
|
*/
|
|
14519
|
-
|
|
14536
|
+
T(ce, "default", {
|
|
14520
14537
|
title: "BCF Topic",
|
|
14521
14538
|
type: "Issue",
|
|
14522
14539
|
status: "Active",
|
|
@@ -14553,8 +14570,8 @@ const Fl = (c, s) => {
|
|
|
14553
14570
|
}, Le = class Le extends St {
|
|
14554
14571
|
constructor() {
|
|
14555
14572
|
super(...arguments);
|
|
14556
|
-
|
|
14557
|
-
|
|
14573
|
+
T(this, "enabled", !1);
|
|
14574
|
+
T(this, "config", {
|
|
14558
14575
|
author: "jhon.doe@example.com",
|
|
14559
14576
|
version: "2.1",
|
|
14560
14577
|
types: /* @__PURE__ */ new Set([
|
|
@@ -14578,11 +14595,11 @@ const Fl = (c, s) => {
|
|
|
14578
14595
|
fallbackVersionOnImport: "2.1",
|
|
14579
14596
|
ignoreIncompleteTopicsOnImport: !1
|
|
14580
14597
|
});
|
|
14581
|
-
|
|
14582
|
-
|
|
14583
|
-
|
|
14584
|
-
|
|
14585
|
-
|
|
14598
|
+
T(this, "list", new Ee());
|
|
14599
|
+
T(this, "onSetup", new j());
|
|
14600
|
+
T(this, "isSetup", !1);
|
|
14601
|
+
T(this, "onBCFImported", new j());
|
|
14602
|
+
T(this, "onDisposed", new j());
|
|
14586
14603
|
}
|
|
14587
14604
|
setup(t) {
|
|
14588
14605
|
this.isSetup || (this.config = { ...this.config, ...t }, this.isSetup = !0, this.enabled = !0, this.onSetup.trigger());
|
|
@@ -14844,29 +14861,29 @@ ${o}
|
|
|
14844
14861
|
PerspectiveCamera: k
|
|
14845
14862
|
} = y;
|
|
14846
14863
|
if (S && (F.guid = S), N) {
|
|
14847
|
-
const { Selection: P, Visibility:
|
|
14864
|
+
const { Selection: P, Visibility: _ } = N;
|
|
14848
14865
|
if (P && P.Component) {
|
|
14849
|
-
const
|
|
14850
|
-
F.selectionComponents =
|
|
14866
|
+
const Q = Array.isArray(P.Component) ? P.Component : [P.Component];
|
|
14867
|
+
F.selectionComponents = Q.map((V) => V.IfcGuid).filter((V) => V);
|
|
14851
14868
|
}
|
|
14852
|
-
if (
|
|
14853
|
-
const { Component:
|
|
14869
|
+
if (_ && "DefaultVisibility" in _ && (F.defaultVisibility = _.DefaultVisibility), _ && _.Exceptions && "Component" in _.Exceptions) {
|
|
14870
|
+
const { Component: Q } = _.Exceptions, V = Array.isArray(Q) ? Q : [Q];
|
|
14854
14871
|
F.exceptionComponents = V.map((et) => et.IfcGuid).filter((et) => et);
|
|
14855
14872
|
}
|
|
14856
14873
|
let v;
|
|
14857
14874
|
l === "2.1" && (v = N.ViewSetupHints), l === "3" && (v = (C = N.Visibility) == null ? void 0 : C.ViewSetupHints), v && ("OpeningsVisible" in v && (F.openingsVisible = v.OpeningsVisible), "SpacesVisible" in v && (F.spacesVisible = v.SpacesVisible), "SpaceBoundariesVisible" in v && (F.spaceBoundariesVisible = v.SpaceBoundariesVisible));
|
|
14858
14875
|
}
|
|
14859
14876
|
if (x || k) {
|
|
14860
|
-
const P = y.PerspectiveCamera ?? y.OrthogonalCamera, { CameraViewPoint:
|
|
14861
|
-
Number(
|
|
14862
|
-
Number(
|
|
14863
|
-
Number(-
|
|
14877
|
+
const P = y.PerspectiveCamera ?? y.OrthogonalCamera, { CameraViewPoint: _, CameraDirection: v } = P, Q = new M.Vector3(
|
|
14878
|
+
Number(_.X),
|
|
14879
|
+
Number(_.Z),
|
|
14880
|
+
Number(-_.Y)
|
|
14864
14881
|
), V = new M.Vector3(
|
|
14865
14882
|
Number(v.X),
|
|
14866
14883
|
Number(v.Z),
|
|
14867
14884
|
Number(-v.Y)
|
|
14868
14885
|
), et = {
|
|
14869
|
-
position: { x:
|
|
14886
|
+
position: { x: Q.x, y: Q.y, z: Q.z },
|
|
14870
14887
|
direction: { x: V.x, y: V.y, z: V.z },
|
|
14871
14888
|
aspectRatio: "AspectRatio" in P ? P.AspectRatio : 1
|
|
14872
14889
|
// Temporal simplification
|
|
@@ -14886,23 +14903,23 @@ ${o}
|
|
|
14886
14903
|
if (N) {
|
|
14887
14904
|
const { Coloring: P } = N;
|
|
14888
14905
|
if (P && P.Color) {
|
|
14889
|
-
const
|
|
14890
|
-
for (const v of
|
|
14891
|
-
const { Color:
|
|
14892
|
-
w.componentColors.set(
|
|
14906
|
+
const _ = Array.isArray(P.Color) ? P.Color : [P.Color];
|
|
14907
|
+
for (const v of _) {
|
|
14908
|
+
const { Color: Q, Component: V } = v, H = (Array.isArray(V) ? V : [V]).map((nt) => nt.IfcGuid);
|
|
14909
|
+
w.componentColors.set(Q, H);
|
|
14893
14910
|
}
|
|
14894
14911
|
}
|
|
14895
14912
|
}
|
|
14896
14913
|
if (u.push(w), L) {
|
|
14897
|
-
const P = this.components.get(ln),
|
|
14898
|
-
for (const v of
|
|
14899
|
-
const { Location:
|
|
14900
|
-
if (!(
|
|
14914
|
+
const P = this.components.get(ln), _ = Array.isArray(L.ClippingPlane) ? L.ClippingPlane : [L.ClippingPlane];
|
|
14915
|
+
for (const v of _) {
|
|
14916
|
+
const { Location: Q, Direction: V } = v;
|
|
14917
|
+
if (!(Q && V))
|
|
14901
14918
|
continue;
|
|
14902
14919
|
const et = new M.Vector3(
|
|
14903
|
-
|
|
14904
|
-
|
|
14905
|
-
-
|
|
14920
|
+
Q.X,
|
|
14921
|
+
Q.Z,
|
|
14922
|
+
-Q.Y
|
|
14906
14923
|
), H = new M.Vector3(
|
|
14907
14924
|
V.X,
|
|
14908
14925
|
-V.Z,
|
|
@@ -14930,13 +14947,13 @@ ${o}
|
|
|
14930
14947
|
continue;
|
|
14931
14948
|
const P = new di(this.components);
|
|
14932
14949
|
P.guid = S ?? P.guid;
|
|
14933
|
-
const
|
|
14934
|
-
p[P.guid] = new Set(
|
|
14950
|
+
const _ = this.getMarkupRelatedTopics(y, l);
|
|
14951
|
+
p[P.guid] = new Set(_), P.type = L ?? P.type, P.status = N ?? P.status, P.title = x ?? P.title, P.creationDate = k ? new Date(k) : P.creationDate, P.creationAuthor = w ?? P.creationAuthor, P.serverAssignedId = F.ServerAssignedId, P.priority = F.Priority, P.index = F.Index, P.modifiedDate = F.ModifiedDate ? new Date(F.ModifiedDate) : void 0, P.modifiedAuthor = F.ModifiedAuthor, P.dueDate = F.DueDate ? new Date(F.DueDate) : void 0, P.assignedTo = F.AssignedTo, P.description = F.Description, P.stage = F.Stage;
|
|
14935
14952
|
const v = this.getMarkupLabels(y, l);
|
|
14936
14953
|
for (const et of v)
|
|
14937
14954
|
P.labels.add(et);
|
|
14938
|
-
const
|
|
14939
|
-
for (const et of
|
|
14955
|
+
const Q = this.getMarkupComments(y, l);
|
|
14956
|
+
for (const et of Q)
|
|
14940
14957
|
P.comments.set(et.guid, et);
|
|
14941
14958
|
const V = this.getMarkupViewpoints(y, l);
|
|
14942
14959
|
for (const et of V) {
|
|
@@ -14958,7 +14975,7 @@ ${o}
|
|
|
14958
14975
|
return this.onBCFImported.trigger(I), { viewpoints: u, topics: I };
|
|
14959
14976
|
}
|
|
14960
14977
|
};
|
|
14961
|
-
|
|
14978
|
+
T(Le, "uuid", "de977976-e4f6-4e4f-a01a-204727839802"), T(Le, "xmlParser", new wl.XMLParser({
|
|
14962
14979
|
allowBooleanAttributes: !0,
|
|
14963
14980
|
attributeNamePrefix: "",
|
|
14964
14981
|
ignoreAttributes: !1,
|
|
@@ -14976,12 +14993,12 @@ const Jt = class Jt extends St {
|
|
|
14976
14993
|
constructor(t) {
|
|
14977
14994
|
super(t);
|
|
14978
14995
|
/** {@link Component.enabled} */
|
|
14979
|
-
|
|
14996
|
+
T(this, "enabled", !0);
|
|
14980
14997
|
/** {@link Disposable.onDisposed} */
|
|
14981
|
-
|
|
14982
|
-
|
|
14983
|
-
|
|
14984
|
-
|
|
14998
|
+
T(this, "onDisposed", new j());
|
|
14999
|
+
T(this, "_absoluteMin");
|
|
15000
|
+
T(this, "_absoluteMax");
|
|
15001
|
+
T(this, "_meshes", []);
|
|
14985
15002
|
this.components.add(Jt.uuid, this), this._absoluteMin = Jt.newBound(!0), this._absoluteMax = Jt.newBound(!1);
|
|
14986
15003
|
}
|
|
14987
15004
|
/**
|
|
@@ -15247,21 +15264,21 @@ const Jt = class Jt extends St {
|
|
|
15247
15264
|
return new M.Box3(r, o);
|
|
15248
15265
|
}
|
|
15249
15266
|
};
|
|
15250
|
-
|
|
15267
|
+
T(Jt, "uuid", "d1444724-dba6-4cdd-a0c7-68ee1450d166");
|
|
15251
15268
|
let mn = Jt;
|
|
15252
15269
|
const gi = class gi extends St {
|
|
15253
15270
|
constructor(t) {
|
|
15254
15271
|
super(t);
|
|
15255
15272
|
/** {@link Component.enabled} */
|
|
15256
|
-
|
|
15273
|
+
T(this, "enabled", !0);
|
|
15257
15274
|
/**
|
|
15258
15275
|
* A map representing the classification systems.
|
|
15259
15276
|
* The key is the system name, and the value is an object representing the classes within the system.
|
|
15260
15277
|
*/
|
|
15261
|
-
|
|
15278
|
+
T(this, "list", {});
|
|
15262
15279
|
/** {@link Disposable.onDisposed} */
|
|
15263
|
-
|
|
15264
|
-
|
|
15280
|
+
T(this, "onDisposed", new j());
|
|
15281
|
+
T(this, "onFragmentsDisposed", (t) => {
|
|
15265
15282
|
const { groupID: e, fragmentIDs: i } = t;
|
|
15266
15283
|
for (const n in this.list) {
|
|
15267
15284
|
const r = this.list[n], o = Object.keys(r);
|
|
@@ -15604,32 +15621,32 @@ const gi = class gi extends St {
|
|
|
15604
15621
|
* A unique identifier for the component.
|
|
15605
15622
|
* This UUID is used to register the component within the Components system.
|
|
15606
15623
|
*/
|
|
15607
|
-
|
|
15624
|
+
T(gi, "uuid", "e25a7f3c-46c4-4a14-9d3d-5115f24ebeb7");
|
|
15608
15625
|
let bs = gi;
|
|
15609
15626
|
const Ci = class Ci extends St {
|
|
15610
15627
|
constructor(t) {
|
|
15611
15628
|
super(t);
|
|
15612
15629
|
/** {@link Disposable.onDisposed} */
|
|
15613
|
-
|
|
15630
|
+
T(this, "onDisposed", new j());
|
|
15614
15631
|
/** {@link Component.enabled} */
|
|
15615
|
-
|
|
15632
|
+
T(this, "enabled", !0);
|
|
15616
15633
|
/**
|
|
15617
15634
|
* The height of the explosion animation.
|
|
15618
15635
|
* This property determines the vertical distance by which fragments are moved during the explosion.
|
|
15619
15636
|
* Default value is 10.
|
|
15620
15637
|
*/
|
|
15621
|
-
|
|
15638
|
+
T(this, "height", 10);
|
|
15622
15639
|
/**
|
|
15623
15640
|
* The group name used for the explosion animation.
|
|
15624
15641
|
* This property specifies the group of fragments that will be affected by the explosion.
|
|
15625
15642
|
* Default value is "storeys".
|
|
15626
15643
|
*/
|
|
15627
|
-
|
|
15644
|
+
T(this, "groupName", "spatialStructures");
|
|
15628
15645
|
/**
|
|
15629
15646
|
* A set of strings representing the exploded items.
|
|
15630
15647
|
* This set is used to keep track of which items have been exploded.
|
|
15631
15648
|
*/
|
|
15632
|
-
|
|
15649
|
+
T(this, "list", /* @__PURE__ */ new Set());
|
|
15633
15650
|
t.add(Ci.uuid, this);
|
|
15634
15651
|
}
|
|
15635
15652
|
/** {@link Disposable.dispose} */
|
|
@@ -15674,13 +15691,13 @@ const Ci = class Ci extends St {
|
|
|
15674
15691
|
* A unique identifier for the component.
|
|
15675
15692
|
* This UUID is used to register the component within the Components system.
|
|
15676
15693
|
*/
|
|
15677
|
-
|
|
15694
|
+
T(Ci, "uuid", "d260618b-ce88-4c7d-826c-6debb91de3e2");
|
|
15678
15695
|
let wr = Ci;
|
|
15679
15696
|
const Ti = class Ti extends St {
|
|
15680
15697
|
constructor(t) {
|
|
15681
15698
|
super(t);
|
|
15682
15699
|
/** {@link Component.enabled} */
|
|
15683
|
-
|
|
15700
|
+
T(this, "enabled", !0);
|
|
15684
15701
|
this.components.add(Ti.uuid, this);
|
|
15685
15702
|
}
|
|
15686
15703
|
/**
|
|
@@ -15730,7 +15747,7 @@ const Ti = class Ti extends St {
|
|
|
15730
15747
|
* A unique identifier for the component.
|
|
15731
15748
|
* This UUID is used to register the component within the Components system.
|
|
15732
15749
|
*/
|
|
15733
|
-
|
|
15750
|
+
T(Ti, "uuid", "dd9ccf2d-8a21-4821-b7f6-2949add16a29");
|
|
15734
15751
|
let In = Ti;
|
|
15735
15752
|
class Sl extends wn {
|
|
15736
15753
|
constructor() {
|
|
@@ -15739,12 +15756,12 @@ class Sl extends wn {
|
|
|
15739
15756
|
* Minimum number of geometries to be streamed.
|
|
15740
15757
|
* Defaults to 10 geometries.
|
|
15741
15758
|
*/
|
|
15742
|
-
|
|
15759
|
+
T(this, "minGeometrySize", 10);
|
|
15743
15760
|
/**
|
|
15744
15761
|
* Minimum amount of assets to be streamed.
|
|
15745
15762
|
* Defaults to 1000 assets.
|
|
15746
15763
|
*/
|
|
15747
|
-
|
|
15764
|
+
T(this, "minAssetsSize", 1e3);
|
|
15748
15765
|
}
|
|
15749
15766
|
}
|
|
15750
15767
|
const _i = class _i extends St {
|
|
@@ -15754,44 +15771,44 @@ const _i = class _i extends St {
|
|
|
15754
15771
|
* Event triggered when geometry is streamed.
|
|
15755
15772
|
* Contains the streamed geometry data and its buffer.
|
|
15756
15773
|
*/
|
|
15757
|
-
|
|
15774
|
+
T(this, "onGeometryStreamed", new j());
|
|
15758
15775
|
/**
|
|
15759
15776
|
* Event triggered when assets are streamed.
|
|
15760
15777
|
* Contains the streamed assets.
|
|
15761
15778
|
*/
|
|
15762
|
-
|
|
15779
|
+
T(this, "onAssetStreamed", new j());
|
|
15763
15780
|
/**
|
|
15764
15781
|
* Event triggered to indicate the progress of the streaming process.
|
|
15765
15782
|
* Contains the progress percentage.
|
|
15766
15783
|
*/
|
|
15767
|
-
|
|
15784
|
+
T(this, "onProgress", new j());
|
|
15768
15785
|
/**
|
|
15769
15786
|
* Event triggered when the IFC file is loaded.
|
|
15770
15787
|
* Contains the loaded IFC file data.
|
|
15771
15788
|
*/
|
|
15772
|
-
|
|
15789
|
+
T(this, "onIfcLoaded", new j());
|
|
15773
15790
|
/** {@link Disposable.onDisposed} */
|
|
15774
|
-
|
|
15791
|
+
T(this, "onDisposed", new j());
|
|
15775
15792
|
/**
|
|
15776
15793
|
* Settings for the IfcGeometryTiler.
|
|
15777
15794
|
*/
|
|
15778
|
-
|
|
15795
|
+
T(this, "settings", new Sl());
|
|
15779
15796
|
/** {@link Component.enabled} */
|
|
15780
|
-
|
|
15797
|
+
T(this, "enabled", !0);
|
|
15781
15798
|
/**
|
|
15782
15799
|
* The WebIFC API instance used for IFC file processing.
|
|
15783
15800
|
*/
|
|
15784
|
-
|
|
15785
|
-
|
|
15786
|
-
|
|
15787
|
-
|
|
15788
|
-
|
|
15789
|
-
|
|
15790
|
-
|
|
15791
|
-
|
|
15792
|
-
|
|
15793
|
-
|
|
15794
|
-
|
|
15801
|
+
T(this, "webIfc", new X.IfcAPI());
|
|
15802
|
+
T(this, "_spatialTree", new kr());
|
|
15803
|
+
T(this, "_metaData", new Yr());
|
|
15804
|
+
T(this, "_visitedGeometries", /* @__PURE__ */ new Map());
|
|
15805
|
+
T(this, "_streamSerializer", new ye.StreamSerializer());
|
|
15806
|
+
T(this, "_geometries", /* @__PURE__ */ new Map());
|
|
15807
|
+
T(this, "_geometryCount", 0);
|
|
15808
|
+
T(this, "_civil", new Vr());
|
|
15809
|
+
T(this, "_groupSerializer", new ye.Serializer());
|
|
15810
|
+
T(this, "_assets", []);
|
|
15811
|
+
T(this, "_meshesWithHoles", /* @__PURE__ */ new Set());
|
|
15795
15812
|
this.components.add(_i.uuid, this), this.settings.excludedCategories.add(X.IFCOPENINGELEMENT);
|
|
15796
15813
|
}
|
|
15797
15814
|
/** {@link Disposable.dispose} */
|
|
@@ -15957,7 +15974,7 @@ const _i = class _i extends St {
|
|
|
15957
15974
|
* A unique identifier for the component.
|
|
15958
15975
|
* This UUID is used to register the component within the Components system.
|
|
15959
15976
|
*/
|
|
15960
|
-
|
|
15977
|
+
T(_i, "uuid", "d9999a00-e1f5-4d3f-8cfe-c56e08609764");
|
|
15961
15978
|
let Fr = _i;
|
|
15962
15979
|
class Ol extends wn {
|
|
15963
15980
|
constructor() {
|
|
@@ -15966,7 +15983,7 @@ class Ol extends wn {
|
|
|
15966
15983
|
* Amount of properties to be streamed.
|
|
15967
15984
|
* Defaults to 100 properties.
|
|
15968
15985
|
*/
|
|
15969
|
-
|
|
15986
|
+
T(this, "propertiesSize", 100);
|
|
15970
15987
|
}
|
|
15971
15988
|
}
|
|
15972
15989
|
class Nl extends St {
|
|
@@ -15976,29 +15993,29 @@ class Nl extends St {
|
|
|
15976
15993
|
* An event that is triggered when properties are streamed from the IFC file.
|
|
15977
15994
|
* The event provides the type of the IFC entity and the corresponding data.
|
|
15978
15995
|
*/
|
|
15979
|
-
|
|
15996
|
+
T(this, "onPropertiesStreamed", new oi());
|
|
15980
15997
|
/**
|
|
15981
15998
|
* An event that is triggered to indicate the progress of the streaming process.
|
|
15982
15999
|
* The event provides a number between 0 and 1 representing the progress percentage.
|
|
15983
16000
|
*/
|
|
15984
|
-
|
|
16001
|
+
T(this, "onProgress", new oi());
|
|
15985
16002
|
/**
|
|
15986
16003
|
* An event that is triggered when indices are streamed from the IFC file.
|
|
15987
16004
|
* The event provides a map of indices, where the key is the entity type and the value is another map of indices.
|
|
15988
16005
|
*/
|
|
15989
|
-
|
|
16006
|
+
T(this, "onIndicesStreamed", new oi());
|
|
15990
16007
|
/** {@link Disposable.onDisposed} */
|
|
15991
|
-
|
|
16008
|
+
T(this, "onDisposed", new j());
|
|
15992
16009
|
/** {@link Component.enabled} */
|
|
15993
|
-
|
|
16010
|
+
T(this, "enabled", !0);
|
|
15994
16011
|
/**
|
|
15995
16012
|
* An instance of the PropertiesStreamingSettings class, which holds the settings for the streaming process.
|
|
15996
16013
|
*/
|
|
15997
|
-
|
|
16014
|
+
T(this, "settings", new Ol());
|
|
15998
16015
|
/**
|
|
15999
16016
|
* An instance of the IfcAPI class from the Web-IFC library, which provides methods for reading and processing IFC data.
|
|
16000
16017
|
*/
|
|
16001
|
-
|
|
16018
|
+
T(this, "webIfc", new X.IfcAPI());
|
|
16002
16019
|
}
|
|
16003
16020
|
/** {@link Disposable.dispose} */
|
|
16004
16021
|
async dispose() {
|
|
@@ -16087,19 +16104,19 @@ class Nl extends St {
|
|
|
16087
16104
|
* A unique identifier for the component.
|
|
16088
16105
|
* This UUID is used to register the component within the Components system.
|
|
16089
16106
|
*/
|
|
16090
|
-
|
|
16107
|
+
T(Nl, "uuid", "88d2c89c-ce32-47d7-8cb6-d51e4b311a0b");
|
|
16091
16108
|
class Kr {
|
|
16092
16109
|
constructor(s, t, e) {
|
|
16093
|
-
|
|
16094
|
-
|
|
16110
|
+
T(this, "title");
|
|
16111
|
+
T(this, "guid", me.create());
|
|
16095
16112
|
/**
|
|
16096
16113
|
* ClippingPlanes can be used to define a subsection of a building model that is related to the topic.
|
|
16097
16114
|
* Each clipping plane is defined by Location and Direction.
|
|
16098
16115
|
* The Direction vector points in the invisible direction meaning the half-space that is clipped.
|
|
16099
16116
|
* @experimental
|
|
16100
16117
|
*/
|
|
16101
|
-
|
|
16102
|
-
|
|
16118
|
+
T(this, "clippingPlanes", new qe());
|
|
16119
|
+
T(this, "camera", {
|
|
16103
16120
|
aspectRatio: 0,
|
|
16104
16121
|
fov: 0,
|
|
16105
16122
|
direction: { x: 0, y: 0, z: 80 },
|
|
@@ -16108,44 +16125,44 @@ class Kr {
|
|
|
16108
16125
|
/**
|
|
16109
16126
|
* A list of components GUIDs to hide when defaultVisibility = true or to show when defaultVisibility = false
|
|
16110
16127
|
*/
|
|
16111
|
-
|
|
16128
|
+
T(this, "exceptionComponents", new qe());
|
|
16112
16129
|
/**
|
|
16113
16130
|
* A list of components GUIDs that should be selected (highlighted) when displaying a viewpoint.
|
|
16114
16131
|
*/
|
|
16115
|
-
|
|
16132
|
+
T(this, "selectionComponents", new qe());
|
|
16116
16133
|
/**
|
|
16117
16134
|
* A map of colors and components GUIDs that should be colorized when displaying a viewpoint.
|
|
16118
16135
|
* For this to work, call viewpoint.colorize()
|
|
16119
16136
|
*/
|
|
16120
|
-
|
|
16137
|
+
T(this, "componentColors", new Ee());
|
|
16121
16138
|
/**
|
|
16122
16139
|
* Boolean flags to allow fine control over the visibility of spaces.
|
|
16123
16140
|
* A typical use of these flags is when DefaultVisibility=true but spaces should remain hidden.
|
|
16124
16141
|
* @default false
|
|
16125
16142
|
*/
|
|
16126
|
-
|
|
16143
|
+
T(this, "spacesVisible", !1);
|
|
16127
16144
|
/**
|
|
16128
16145
|
* Boolean flags to allow fine control over the visibility of space boundaries.
|
|
16129
16146
|
* A typical use of these flags is when DefaultVisibility=true but space boundaries should remain hidden.
|
|
16130
16147
|
* @default false
|
|
16131
16148
|
*/
|
|
16132
|
-
|
|
16149
|
+
T(this, "spaceBoundariesVisible", !1);
|
|
16133
16150
|
/**
|
|
16134
16151
|
* Boolean flags to allow fine control over the visibility of openings.
|
|
16135
16152
|
* A typical use of these flags is when DefaultVisibility=true but openings should remain hidden.
|
|
16136
16153
|
* @default false
|
|
16137
16154
|
*/
|
|
16138
|
-
|
|
16155
|
+
T(this, "openingsVisible", !1);
|
|
16139
16156
|
/**
|
|
16140
16157
|
* When true, all components should be visible unless listed in the exceptions
|
|
16141
16158
|
* When false all components should be invisible unless listed in the exceptions
|
|
16142
16159
|
*/
|
|
16143
|
-
|
|
16144
|
-
|
|
16160
|
+
T(this, "defaultVisibility", !0);
|
|
16161
|
+
T(this, "_components");
|
|
16145
16162
|
/**
|
|
16146
16163
|
* Represents the world in which the viewpoints are created and managed.
|
|
16147
16164
|
*/
|
|
16148
|
-
|
|
16165
|
+
T(this, "world");
|
|
16149
16166
|
const i = { setCamera: !0, ...e }, { data: n, setCamera: r } = i;
|
|
16150
16167
|
this._components = s, this.world = t, n && (this.guid = n.guid ?? this.guid, this.set(n)), r && this.updateCamera();
|
|
16151
16168
|
}
|
|
@@ -16490,17 +16507,17 @@ class Kr {
|
|
|
16490
16507
|
const Ai = class Ai extends St {
|
|
16491
16508
|
constructor(t) {
|
|
16492
16509
|
super(t);
|
|
16493
|
-
|
|
16510
|
+
T(this, "enabled", !0);
|
|
16494
16511
|
/**
|
|
16495
16512
|
* A DataMap that stores Viewpoint instances, indexed by their unique identifiers (guid).
|
|
16496
16513
|
* This map is used to manage and retrieve Viewpoint instances within the Viewpoints component.
|
|
16497
16514
|
*/
|
|
16498
|
-
|
|
16499
|
-
|
|
16500
|
-
|
|
16501
|
-
|
|
16515
|
+
T(this, "list", new Ee());
|
|
16516
|
+
T(this, "isSetup", !1);
|
|
16517
|
+
T(this, "onSetup", new j());
|
|
16518
|
+
T(this, "config", { overwriteColors: !1 });
|
|
16502
16519
|
/** {@link Disposable.onDisposed} */
|
|
16503
|
-
|
|
16520
|
+
T(this, "onDisposed", new j());
|
|
16504
16521
|
t.add(Ai.uuid, this);
|
|
16505
16522
|
}
|
|
16506
16523
|
/**
|
|
@@ -16528,58 +16545,58 @@ const Ai = class Ai extends St {
|
|
|
16528
16545
|
this.list.dispose(), this.onDisposed.trigger(), this.onDisposed.reset();
|
|
16529
16546
|
}
|
|
16530
16547
|
};
|
|
16531
|
-
|
|
16548
|
+
T(Ai, "uuid", "ee867824-a796-408d-8aa0-4e5962a83c66");
|
|
16532
16549
|
let te = Ai;
|
|
16533
16550
|
class bl {
|
|
16534
16551
|
constructor(s) {
|
|
16535
16552
|
/** {@link Disposable.onDisposed} */
|
|
16536
|
-
|
|
16553
|
+
T(this, "onDisposed", new j());
|
|
16537
16554
|
/** {@link Updateable.onAfterUpdate} */
|
|
16538
|
-
|
|
16555
|
+
T(this, "onAfterUpdate", new j());
|
|
16539
16556
|
/** {@link Updateable.onBeforeUpdate} */
|
|
16540
|
-
|
|
16557
|
+
T(this, "onBeforeUpdate", new j());
|
|
16541
16558
|
/** {@link Resizeable.onResize} */
|
|
16542
|
-
|
|
16559
|
+
T(this, "onResize", new j());
|
|
16543
16560
|
/**
|
|
16544
16561
|
* The front offset of the minimap.
|
|
16545
16562
|
* It determines how much the minimap's view is offset from the camera's view.
|
|
16546
16563
|
* By pushing the map to the front, what the user sees on screen corresponds with what they see on the map
|
|
16547
16564
|
*/
|
|
16548
|
-
|
|
16565
|
+
T(this, "frontOffset", 0);
|
|
16549
16566
|
/**
|
|
16550
16567
|
* The override material for the minimap.
|
|
16551
16568
|
* It is used to render the depth information of the world onto the minimap.
|
|
16552
16569
|
*/
|
|
16553
|
-
|
|
16570
|
+
T(this, "overrideMaterial", new M.MeshDepthMaterial());
|
|
16554
16571
|
/**
|
|
16555
16572
|
* The background color of the minimap.
|
|
16556
16573
|
* It is used to set the background color of the minimap's renderer.
|
|
16557
16574
|
*/
|
|
16558
|
-
|
|
16575
|
+
T(this, "backgroundColor", new M.Color(395274));
|
|
16559
16576
|
/**
|
|
16560
16577
|
* The WebGL renderer for the minimap.
|
|
16561
16578
|
* It is used to render the minimap onto the screen.
|
|
16562
16579
|
*/
|
|
16563
|
-
|
|
16580
|
+
T(this, "renderer");
|
|
16564
16581
|
/**
|
|
16565
16582
|
* A flag indicating whether the minimap is enabled.
|
|
16566
16583
|
* If disabled, the minimap will not update or render.
|
|
16567
16584
|
*/
|
|
16568
|
-
|
|
16585
|
+
T(this, "enabled", !0);
|
|
16569
16586
|
/**
|
|
16570
16587
|
* The world in which the minimap is displayed.
|
|
16571
16588
|
* It provides access to the 3D scene, camera, and other relevant world elements.
|
|
16572
16589
|
*/
|
|
16573
|
-
|
|
16574
|
-
|
|
16575
|
-
|
|
16576
|
-
|
|
16577
|
-
|
|
16578
|
-
|
|
16579
|
-
|
|
16580
|
-
|
|
16581
|
-
|
|
16582
|
-
|
|
16590
|
+
T(this, "world");
|
|
16591
|
+
T(this, "_lockRotation", !0);
|
|
16592
|
+
T(this, "_camera");
|
|
16593
|
+
T(this, "_plane");
|
|
16594
|
+
T(this, "_size", new M.Vector2(320, 160));
|
|
16595
|
+
T(this, "_tempVector1", new M.Vector3());
|
|
16596
|
+
T(this, "_tempVector2", new M.Vector3());
|
|
16597
|
+
T(this, "_tempTarget", new M.Vector3());
|
|
16598
|
+
T(this, "down", new M.Vector3(0, -1, 0));
|
|
16599
|
+
T(this, "updatePlanes", () => {
|
|
16583
16600
|
if (!this.world.renderer)
|
|
16584
16601
|
throw new Error("The given world must have a renderer!");
|
|
16585
16602
|
const s = [], t = this.world.renderer.three;
|
|
@@ -16675,17 +16692,17 @@ const Ri = class Ri extends St {
|
|
|
16675
16692
|
constructor(t) {
|
|
16676
16693
|
super(t);
|
|
16677
16694
|
/** {@link Updateable.onAfterUpdate} */
|
|
16678
|
-
|
|
16695
|
+
T(this, "onAfterUpdate", new j());
|
|
16679
16696
|
/** {@link Updateable.onBeforeUpdate} */
|
|
16680
|
-
|
|
16697
|
+
T(this, "onBeforeUpdate", new j());
|
|
16681
16698
|
/** {@link Disposable.onDisposed} */
|
|
16682
|
-
|
|
16699
|
+
T(this, "onDisposed", new j());
|
|
16683
16700
|
/** {@link Component.enabled} */
|
|
16684
|
-
|
|
16701
|
+
T(this, "enabled", !0);
|
|
16685
16702
|
/**
|
|
16686
16703
|
* A collection of {@link MiniMap} instances, each associated with a unique world ID.
|
|
16687
16704
|
*/
|
|
16688
|
-
|
|
16705
|
+
T(this, "list", /* @__PURE__ */ new Map());
|
|
16689
16706
|
this.components.add(Ri.uuid, this);
|
|
16690
16707
|
}
|
|
16691
16708
|
/**
|
|
@@ -16729,13 +16746,13 @@ const Ri = class Ri extends St {
|
|
|
16729
16746
|
* A unique identifier for the component.
|
|
16730
16747
|
* This UUID is used to register the component within the Components system.
|
|
16731
16748
|
*/
|
|
16732
|
-
|
|
16749
|
+
T(Ri, "uuid", "39ad6aad-84c8-4adf-a1e0-7f25313a9e7f");
|
|
16733
16750
|
let Sr = Ri;
|
|
16734
16751
|
const yi = class yi extends St {
|
|
16735
16752
|
constructor(t) {
|
|
16736
16753
|
super(t);
|
|
16737
16754
|
/** {@link Component.enabled} */
|
|
16738
|
-
|
|
16755
|
+
T(this, "enabled", !0);
|
|
16739
16756
|
t.add(yi.uuid, this);
|
|
16740
16757
|
}
|
|
16741
16758
|
/**
|
|
@@ -16988,7 +17005,7 @@ const yi = class yi extends St {
|
|
|
16988
17005
|
* A unique identifier for the component.
|
|
16989
17006
|
* This UUID is used to register the component within the Components system.
|
|
16990
17007
|
*/
|
|
16991
|
-
|
|
17008
|
+
T(yi, "uuid", "267ca032-672f-4cb0-afa9-d24e904f39d6");
|
|
16992
17009
|
let Or = yi;
|
|
16993
17010
|
export {
|
|
16994
17011
|
oi as AsyncEvent,
|
|
@@ -17009,7 +17026,7 @@ export {
|
|
|
17009
17026
|
Ee as DataMap,
|
|
17010
17027
|
qe as DataSet,
|
|
17011
17028
|
Fe as Disposer,
|
|
17012
|
-
|
|
17029
|
+
j as Event,
|
|
17013
17030
|
wr as Exploder,
|
|
17014
17031
|
tc as FirstPersonMode,
|
|
17015
17032
|
_t as FragmentsManager,
|