@thatopen/components 2.4.0-alpha.1 → 2.4.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/Raycasters/src/mouse.d.ts +1 -0
- package/dist/core/Types/src/async-event.d.ts +4 -0
- package/dist/core/Types/src/event-manager.d.ts +30 -0
- package/dist/core/Types/src/event.d.ts +4 -0
- package/dist/core/Types/src/index.d.ts +1 -0
- package/dist/core/Types/src/interfaces.d.ts +10 -0
- package/dist/fragments/IfcGeometryTiler/index.d.ts +5 -5
- package/dist/fragments/IfcLoader/src/ifc-fragment-settings.d.ts +0 -2
- package/dist/index.cjs +24 -24
- package/dist/index.mjs +855 -770
- package/dist/namespace.d.ts +3651 -3604
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2,15 +2,15 @@ var Ao = Object.defineProperty;
|
|
|
2
2
|
var Fo = (c, i, t) => i in c ? Ao(c, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[i] = t;
|
|
3
3
|
var C = (c, i, t) => (Fo(c, typeof i != "symbol" ? i + "" : i, t), t);
|
|
4
4
|
import * as D from "three";
|
|
5
|
-
import { BufferAttribute as Zr, Vector3 as Q, Vector2 as
|
|
5
|
+
import { BufferAttribute as Zr, Vector3 as Q, Vector2 as ai, Plane as Dn, Line3 as Ee, Triangle as ii, Sphere as So, Matrix4 as pe, Box3 as ae, BackSide as Oo, DoubleSide as jr, FrontSide as Xn, Mesh as rt, Ray as No, Raycaster as yo, Quaternion as de, Object3D as In, Euler as Lo, MeshBasicMaterial as qr, LineBasicMaterial as _o, CylinderGeometry as Vt, BoxGeometry as Ut, BufferGeometry as $n, Float32BufferAttribute as Zn, OctahedronGeometry as Gi, Line as Ae, SphereGeometry as Po, TorusGeometry as Ii, PlaneGeometry as wo } from "three";
|
|
6
6
|
import * as Qt from "@thatopen/fragments";
|
|
7
7
|
import { FragmentsGroup as Mo, Serializer as Do } from "@thatopen/fragments";
|
|
8
8
|
import * as z from "web-ifc";
|
|
9
|
-
const Qr = 0, bo = 1, vo = 2, jn = 2, Ws = 1.25, qn = 1,
|
|
9
|
+
const Qr = 0, bo = 1, vo = 2, jn = 2, Ws = 1.25, qn = 1, Is = 6 * 4 + 4 + 4, Ys = 65535, Uo = Math.pow(2, -24), Xs = Symbol("SKIP_GENERATION");
|
|
10
10
|
function xo(c) {
|
|
11
11
|
return c.index ? c.index.count : c.attributes.position.count;
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function li(c) {
|
|
14
14
|
return xo(c) / 3;
|
|
15
15
|
}
|
|
16
16
|
function Bo(c, i = ArrayBuffer) {
|
|
@@ -25,7 +25,7 @@ function Vo(c, i) {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
function Kr(c) {
|
|
28
|
-
const i =
|
|
28
|
+
const i = li(c), t = c.drawRange, e = t.start / 3, s = (t.start + t.count) / 3, n = Math.max(0, e), r = Math.min(i, s) - n;
|
|
29
29
|
return [{
|
|
30
30
|
offset: Math.floor(n),
|
|
31
31
|
count: Math.floor(r)
|
|
@@ -52,7 +52,7 @@ function Jr(c) {
|
|
|
52
52
|
function Yo(c) {
|
|
53
53
|
if (c.groups.length === 0)
|
|
54
54
|
return !1;
|
|
55
|
-
const i =
|
|
55
|
+
const i = li(c), t = Jr(c).sort((n, r) => n.offset - r.offset), e = t[t.length - 1];
|
|
56
56
|
e.count = Math.min(i - e.offset, e.count);
|
|
57
57
|
let s = 0;
|
|
58
58
|
return t.forEach(({ count: n }) => s += n), i !== s;
|
|
@@ -81,13 +81,13 @@ function Jn(c, i, t) {
|
|
|
81
81
|
e = c[n], s = i[n], t[n] = e < s ? e : s, e = c[r], s = i[r], t[r] = e > s ? e : s;
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function zi(c, i, t) {
|
|
85
85
|
for (let e = 0; e < 3; e++) {
|
|
86
86
|
const s = i[c + 2 * e], n = i[c + 2 * e + 1], r = s - n, o = s + n;
|
|
87
87
|
r < t[e] && (t[e] = r), o > t[e + 3] && (t[e + 3] = o);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function di(c) {
|
|
91
91
|
const i = c[3] - c[0], t = c[4] - c[1], e = c[5] - c[2];
|
|
92
92
|
return 2 * (i * t + t * e + e * i);
|
|
93
93
|
}
|
|
@@ -97,8 +97,8 @@ function $s(c, i, t, e, s = null) {
|
|
|
97
97
|
for (let m = i * 6, F = (i + t) * 6; m < F; m += 6) {
|
|
98
98
|
const R = c[m + 0], S = c[m + 1], N = R - S, y = R + S;
|
|
99
99
|
N < n && (n = N), y > a && (a = y), p && R < f && (f = R), p && R > d && (d = R);
|
|
100
|
-
const M = c[m + 2], L = c[m + 3], b = M - L,
|
|
101
|
-
b < r && (r = b),
|
|
100
|
+
const M = c[m + 2], L = c[m + 3], b = M - L, Y = M + L;
|
|
101
|
+
b < r && (r = b), Y > l && (l = Y), p && M < I && (I = M), p && M > E && (E = M);
|
|
102
102
|
const O = c[m + 4], w = c[m + 5], g = O - w, v = O + w;
|
|
103
103
|
g < o && (o = g), v > h && (h = v), p && O < u && (u = O), p && O > T && (T = O);
|
|
104
104
|
}
|
|
@@ -118,7 +118,7 @@ function zo(c, i, t, e) {
|
|
|
118
118
|
}
|
|
119
119
|
function ko(c, i) {
|
|
120
120
|
Go(i);
|
|
121
|
-
const t = c.attributes.position, e = c.index ? c.index.array : null, s =
|
|
121
|
+
const t = c.attributes.position, e = c.index ? c.index.array : null, s = li(c), n = new Float32Array(s * 6), r = t.normalized, o = t.array, a = t.offset || 0;
|
|
122
122
|
let l = 3;
|
|
123
123
|
t.isInterleavedBufferAttribute && (l = t.data.stride);
|
|
124
124
|
const h = ["getX", "getY", "getZ"];
|
|
@@ -145,7 +145,7 @@ const Te = 32, Ho = (c, i) => c.candidate - i.candidate, Fe = new Array(Te).fill
|
|
|
145
145
|
rightCacheBounds: new Float32Array(6),
|
|
146
146
|
leftCacheBounds: new Float32Array(6),
|
|
147
147
|
candidate: 0
|
|
148
|
-
})),
|
|
148
|
+
})), ki = new Float32Array(6);
|
|
149
149
|
function Wo(c, i, t, e, s, n) {
|
|
150
150
|
let r = -1, o = 0;
|
|
151
151
|
if (n === Qr)
|
|
@@ -153,7 +153,7 @@ function Wo(c, i, t, e, s, n) {
|
|
|
153
153
|
else if (n === bo)
|
|
154
154
|
r = Qn(c), r !== -1 && (o = Xo(t, e, s, r));
|
|
155
155
|
else if (n === vo) {
|
|
156
|
-
const a =
|
|
156
|
+
const a = di(c);
|
|
157
157
|
let l = Ws * s;
|
|
158
158
|
const h = e * 6, f = (e + s) * 6;
|
|
159
159
|
for (let I = 0; I < 3; I++) {
|
|
@@ -172,7 +172,7 @@ function Wo(c, i, t, e, s, n) {
|
|
|
172
172
|
} = S;
|
|
173
173
|
for (let L = 0; L < 3; L++)
|
|
174
174
|
M[L] = 1 / 0, M[L + 3] = -1 / 0, y[L] = 1 / 0, y[L + 3] = -1 / 0, N[L] = 1 / 0, N[L + 3] = -1 / 0;
|
|
175
|
-
|
|
175
|
+
zi(R, t, N);
|
|
176
176
|
}
|
|
177
177
|
p.sort(Ho);
|
|
178
178
|
let F = s;
|
|
@@ -185,16 +185,16 @@ function Wo(c, i, t, e, s, n) {
|
|
|
185
185
|
const S = t[R + 2 * I];
|
|
186
186
|
for (let N = 0; N < F; N++) {
|
|
187
187
|
const y = p[N];
|
|
188
|
-
S >= y.candidate ?
|
|
188
|
+
S >= y.candidate ? zi(R, t, y.rightCacheBounds) : (zi(R, t, y.leftCacheBounds), y.count++);
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
for (let R = 0; R < F; R++) {
|
|
192
192
|
const S = p[R], N = S.count, y = s - S.count, M = S.leftCacheBounds, L = S.rightCacheBounds;
|
|
193
193
|
let b = 0;
|
|
194
|
-
N !== 0 && (b =
|
|
195
|
-
let
|
|
196
|
-
y !== 0 && (
|
|
197
|
-
const O = qn + Ws * (b * N +
|
|
194
|
+
N !== 0 && (b = di(M) / a);
|
|
195
|
+
let Y = 0;
|
|
196
|
+
y !== 0 && (Y = di(L) / a);
|
|
197
|
+
const O = qn + Ws * (b * N + Y * y);
|
|
198
198
|
O < l && (r = I, l = O, o = S.candidate);
|
|
199
199
|
}
|
|
200
200
|
} else {
|
|
@@ -209,7 +209,7 @@ function Wo(c, i, t, e, s, n) {
|
|
|
209
209
|
let N = ~~((t[F + 2 * I] - u) / T);
|
|
210
210
|
N >= Te && (N = Te - 1);
|
|
211
211
|
const y = Fe[N];
|
|
212
|
-
y.count++,
|
|
212
|
+
y.count++, zi(F, t, y.bounds);
|
|
213
213
|
}
|
|
214
214
|
const p = Fe[Te - 1];
|
|
215
215
|
Kn(p.bounds, p.rightCacheBounds);
|
|
@@ -220,12 +220,12 @@ function Wo(c, i, t, e, s, n) {
|
|
|
220
220
|
let m = 0;
|
|
221
221
|
for (let F = 0; F < Te - 1; F++) {
|
|
222
222
|
const R = Fe[F], S = R.count, N = R.bounds, M = Fe[F + 1].rightCacheBounds;
|
|
223
|
-
S !== 0 && (m === 0 ? Kn(N,
|
|
223
|
+
S !== 0 && (m === 0 ? Kn(N, ki) : Jn(N, ki, ki)), m += S;
|
|
224
224
|
let L = 0, b = 0;
|
|
225
|
-
m !== 0 && (L =
|
|
226
|
-
const
|
|
227
|
-
|
|
228
|
-
const O = qn + Ws * (L * m + b *
|
|
225
|
+
m !== 0 && (L = di(ki) / a);
|
|
226
|
+
const Y = s - m;
|
|
227
|
+
Y !== 0 && (b = di(M) / a);
|
|
228
|
+
const O = qn + Ws * (L * m + b * Y);
|
|
229
229
|
O < l && (r = I, l = O, o = R.candidate);
|
|
230
230
|
}
|
|
231
231
|
}
|
|
@@ -240,7 +240,7 @@ function Xo(c, i, t, e) {
|
|
|
240
240
|
s += c[n * 6 + e * 2];
|
|
241
241
|
return s / t;
|
|
242
242
|
}
|
|
243
|
-
class
|
|
243
|
+
class Hi {
|
|
244
244
|
constructor() {
|
|
245
245
|
}
|
|
246
246
|
}
|
|
@@ -293,15 +293,15 @@ function jo(c, i) {
|
|
|
293
293
|
return r;
|
|
294
294
|
}
|
|
295
295
|
function qo(c, i) {
|
|
296
|
-
const t = c.geometry, e = t.index ? t.index.array : null, s = i.maxDepth, n = i.verbose, r = i.maxLeafTris, o = i.strategy, a = i.onProgress, l =
|
|
296
|
+
const t = c.geometry, e = t.index ? t.index.array : null, s = i.maxDepth, n = i.verbose, r = i.maxLeafTris, o = i.strategy, a = i.onProgress, l = li(t), h = c._indirectBuffer;
|
|
297
297
|
let f = !1;
|
|
298
298
|
const I = new Float32Array(6), u = new Float32Array(6), d = ko(t, I), E = i.indirect ? Zo : $o, T = [], p = i.indirect ? Kr(t) : Jr(t);
|
|
299
299
|
if (p.length === 1) {
|
|
300
|
-
const R = p[0], S = new
|
|
300
|
+
const R = p[0], S = new Hi();
|
|
301
301
|
S.boundingData = I, zo(d, R.offset, R.count, u), F(S, R.offset, R.count, u), T.push(S);
|
|
302
302
|
} else
|
|
303
303
|
for (let R of p) {
|
|
304
|
-
const S = new
|
|
304
|
+
const S = new Hi();
|
|
305
305
|
S.boundingData = new Float32Array(6), $s(d, R.offset, R.count, S.boundingData, u), F(S, R.offset, R.count, u), T.push(S);
|
|
306
306
|
}
|
|
307
307
|
return T;
|
|
@@ -319,10 +319,10 @@ function qo(c, i) {
|
|
|
319
319
|
m(S + N), R.offset = S, R.count = N;
|
|
320
320
|
else {
|
|
321
321
|
R.splitAxis = L.axis;
|
|
322
|
-
const
|
|
323
|
-
R.left =
|
|
324
|
-
const g = new
|
|
325
|
-
R.right = g, g.boundingData = new Float32Array(6), $s(d, v,
|
|
322
|
+
const Y = new Hi(), O = S, w = b - S;
|
|
323
|
+
R.left = Y, Y.boundingData = new Float32Array(6), $s(d, O, w, Y.boundingData, u), F(Y, O, w, u, M + 1);
|
|
324
|
+
const g = new Hi(), v = b, q = N - w;
|
|
325
|
+
R.right = g, g.boundingData = new Float32Array(6), $s(d, v, q, g.boundingData, u), F(g, v, q, u, M + 1);
|
|
326
326
|
}
|
|
327
327
|
return R;
|
|
328
328
|
}
|
|
@@ -338,7 +338,7 @@ function Qo(c, i) {
|
|
|
338
338
|
for (let f = 0; f < e.length; f++) {
|
|
339
339
|
const I = e[f];
|
|
340
340
|
let u = l(I);
|
|
341
|
-
const d = new a(
|
|
341
|
+
const d = new a(Is * u);
|
|
342
342
|
s = new Float32Array(d), n = new Uint32Array(d), r = new Uint16Array(d), h(0, I), o.push(d);
|
|
343
343
|
}
|
|
344
344
|
c._roots = o;
|
|
@@ -352,11 +352,11 @@ function Qo(c, i) {
|
|
|
352
352
|
s[u + p] = T[p];
|
|
353
353
|
if (E) {
|
|
354
354
|
const p = I.offset, m = I.count;
|
|
355
|
-
return n[u + 6] = p, r[d + 14] = m, r[d + 15] = Ys, f +
|
|
355
|
+
return n[u + 6] = p, r[d + 14] = m, r[d + 15] = Ys, f + Is;
|
|
356
356
|
} else {
|
|
357
357
|
const p = I.left, m = I.right, F = I.splitAxis;
|
|
358
358
|
let R;
|
|
359
|
-
if (R = h(f +
|
|
359
|
+
if (R = h(f + Is, p), R / 4 > Math.pow(2, 32))
|
|
360
360
|
throw new Error("MeshBVH: Cannot store child pointer greater than 32 bits.");
|
|
361
361
|
return n[u + 6] = R / 4, R = h(R, m), n[u + 7] = F, R;
|
|
362
362
|
}
|
|
@@ -411,7 +411,7 @@ const Ko = function() {
|
|
|
411
411
|
T !== 0 ? p = (f * I - d * u) / T : p = 0, m = (f + p * I) / u, r.x = p, r.y = m;
|
|
412
412
|
};
|
|
413
413
|
}(), bn = function() {
|
|
414
|
-
const c = new
|
|
414
|
+
const c = new ai(), i = new Q(), t = new Q();
|
|
415
415
|
return function(s, n, r, o) {
|
|
416
416
|
Ko(s, n, c);
|
|
417
417
|
let a = c.x, l = c.y;
|
|
@@ -457,7 +457,7 @@ const Ko = function() {
|
|
|
457
457
|
function Zs(c) {
|
|
458
458
|
return Math.abs(c) < ta;
|
|
459
459
|
}
|
|
460
|
-
class ne extends
|
|
460
|
+
class ne extends ii {
|
|
461
461
|
constructor(...i) {
|
|
462
462
|
super(...i), this.isExtendedTriangle = !0, this.satAxes = new Array(4).fill().map(() => new Q()), this.satBounds = new Array(4).fill().map(() => new ge()), this.points = [this.a, this.b, this.c], this.sphere = new So(), this.plane = new Dn(), this.needsUpdate = !0;
|
|
463
463
|
}
|
|
@@ -521,21 +521,21 @@ ne.prototype.intersectsTriangle = function() {
|
|
|
521
521
|
const S = this.satBounds, N = this.satAxes;
|
|
522
522
|
t[0] = T.a, t[1] = T.b, t[2] = T.c;
|
|
523
523
|
for (let L = 0; L < 4; L++) {
|
|
524
|
-
const b = S[L],
|
|
525
|
-
if (e.setFromPoints(
|
|
524
|
+
const b = S[L], Y = N[L];
|
|
525
|
+
if (e.setFromPoints(Y, t), b.isSeparated(e))
|
|
526
526
|
return !1;
|
|
527
527
|
}
|
|
528
528
|
const y = T.satBounds, M = T.satAxes;
|
|
529
529
|
i[0] = this.a, i[1] = this.b, i[2] = this.c;
|
|
530
530
|
for (let L = 0; L < 4; L++) {
|
|
531
|
-
const b = y[L],
|
|
532
|
-
if (e.setFromPoints(
|
|
531
|
+
const b = y[L], Y = M[L];
|
|
532
|
+
if (e.setFromPoints(Y, i), b.isSeparated(e))
|
|
533
533
|
return !1;
|
|
534
534
|
}
|
|
535
535
|
for (let L = 0; L < 4; L++) {
|
|
536
536
|
const b = N[L];
|
|
537
|
-
for (let
|
|
538
|
-
const O = M[
|
|
537
|
+
for (let Y = 0; Y < 4; Y++) {
|
|
538
|
+
const O = M[Y];
|
|
539
539
|
if (n.crossVectors(b, O), e.setFromPoints(n, i), s.setFromPoints(n, t), e.isSeparated(s))
|
|
540
540
|
return !1;
|
|
541
541
|
}
|
|
@@ -556,8 +556,8 @@ ne.prototype.intersectsTriangle = function() {
|
|
|
556
556
|
let w = I.start;
|
|
557
557
|
I.start = I.end, I.end = w;
|
|
558
558
|
}
|
|
559
|
-
const y = f.start.dot(o), M = f.end.dot(o), L = I.start.dot(o), b = I.end.dot(o),
|
|
560
|
-
return y !== b && L !== M &&
|
|
559
|
+
const y = f.start.dot(o), M = f.end.dot(o), L = I.start.dot(o), b = I.end.dot(o), Y = M < L, O = y < b;
|
|
560
|
+
return y !== b && L !== M && Y === O ? !1 : (p && (l.subVectors(f.start, I.start), l.dot(o) > 0 ? p.start.copy(f.start) : p.start.copy(I.start), l.subVectors(f.end, I.end), l.dot(o) < 0 ? p.end.copy(f.end) : p.end.copy(I.end)), !0);
|
|
561
561
|
}
|
|
562
562
|
};
|
|
563
563
|
}();
|
|
@@ -697,8 +697,8 @@ Bt.prototype.distanceToBox = function() {
|
|
|
697
697
|
for (let m = 0; m <= 1; m++) {
|
|
698
698
|
const F = (T + 1) % 3, R = (T + 2) % 3, S = p << F | m << R, N = 1 << T | p << F | m << R, y = u[S], M = u[N];
|
|
699
699
|
i[E].set(y, M);
|
|
700
|
-
const b = c[T],
|
|
701
|
-
g[b] = f[b], g[
|
|
700
|
+
const b = c[T], Y = c[F], O = c[R], w = t[E], g = w.start, v = w.end;
|
|
701
|
+
g[b] = f[b], g[Y] = p ? f[Y] : I[Y], g[O] = m ? f[O] : I[Y], v[b] = I[b], v[Y] = p ? f[Y] : I[Y], v[O] = m ? f[O] : I[Y], E++;
|
|
702
702
|
}
|
|
703
703
|
for (let T = 0; T <= 1; T++)
|
|
704
704
|
for (let p = 0; p <= 1; p++)
|
|
@@ -770,14 +770,14 @@ class ia {
|
|
|
770
770
|
}
|
|
771
771
|
}
|
|
772
772
|
const Ft = new ia();
|
|
773
|
-
let _e,
|
|
774
|
-
const
|
|
773
|
+
let _e, si;
|
|
774
|
+
const ze = [], Wi = /* @__PURE__ */ new vn(() => new ae());
|
|
775
775
|
function sa(c, i, t, e, s, n) {
|
|
776
|
-
_e =
|
|
776
|
+
_e = Wi.getPrimitive(), si = Wi.getPrimitive(), ze.push(_e, si), Ft.setBuffer(c._roots[i]);
|
|
777
777
|
const r = dn(0, c.geometry, t, e, s, n);
|
|
778
|
-
Ft.clearBuffer(),
|
|
779
|
-
const o =
|
|
780
|
-
return o > 0 && (
|
|
778
|
+
Ft.clearBuffer(), Wi.releasePrimitive(_e), Wi.releasePrimitive(si), ze.pop(), ze.pop();
|
|
779
|
+
const o = ze.length;
|
|
780
|
+
return o > 0 && (si = ze[o - 1], _e = ze[o - 2]), r;
|
|
781
781
|
}
|
|
782
782
|
function dn(c, i, t, e, s = null, n = 0, r = 0) {
|
|
783
783
|
const { float32Array: o, uint16Array: a, uint32Array: l } = Ft;
|
|
@@ -792,7 +792,7 @@ function dn(c, i, t, e, s = null, n = 0, r = 0) {
|
|
|
792
792
|
for (; !Gt(v, w); )
|
|
793
793
|
O = jt(O), v = O * 2;
|
|
794
794
|
return zt(O, g);
|
|
795
|
-
},
|
|
795
|
+
}, Y = function(O) {
|
|
796
796
|
const { uint16Array: w, uint32Array: g } = Ft;
|
|
797
797
|
let v = O * 2;
|
|
798
798
|
for (; !Gt(v, w); )
|
|
@@ -801,7 +801,7 @@ function dn(c, i, t, e, s = null, n = 0, r = 0) {
|
|
|
801
801
|
};
|
|
802
802
|
const I = jt(c), u = qt(c, l);
|
|
803
803
|
let d = I, E = u, T, p, m, F;
|
|
804
|
-
if (s && (m = _e, F =
|
|
804
|
+
if (s && (m = _e, F = si, Nt(d, o, m), Nt(E, o, F), T = s(m), p = s(F), p < T)) {
|
|
805
805
|
d = u, E = I;
|
|
806
806
|
const O = T;
|
|
807
807
|
T = p, p = O, m = F;
|
|
@@ -810,7 +810,7 @@ function dn(c, i, t, e, s = null, n = 0, r = 0) {
|
|
|
810
810
|
const R = Gt(d * 2, a), S = t(m, R, T, r + 1, n + d);
|
|
811
811
|
let N;
|
|
812
812
|
if (S === jn) {
|
|
813
|
-
const O = b(d), g =
|
|
813
|
+
const O = b(d), g = Y(d) - O;
|
|
814
814
|
N = e(O, g, !0, r + 1, n + d, m);
|
|
815
815
|
} else
|
|
816
816
|
N = S && dn(
|
|
@@ -824,11 +824,11 @@ function dn(c, i, t, e, s = null, n = 0, r = 0) {
|
|
|
824
824
|
);
|
|
825
825
|
if (N)
|
|
826
826
|
return !0;
|
|
827
|
-
F =
|
|
827
|
+
F = si, Nt(E, o, F);
|
|
828
828
|
const y = Gt(E * 2, a), M = t(F, y, p, r + 1, n + E);
|
|
829
829
|
let L;
|
|
830
830
|
if (M === jn) {
|
|
831
|
-
const O = b(E), g =
|
|
831
|
+
const O = b(E), g = Y(E) - O;
|
|
832
832
|
L = e(O, g, !0, r + 1, n + E, F);
|
|
833
833
|
} else
|
|
834
834
|
L = M && dn(
|
|
@@ -843,18 +843,18 @@ function dn(c, i, t, e, s = null, n = 0, r = 0) {
|
|
|
843
843
|
return !!L;
|
|
844
844
|
}
|
|
845
845
|
}
|
|
846
|
-
const
|
|
846
|
+
const Ei = /* @__PURE__ */ new Q(), js = /* @__PURE__ */ new Q();
|
|
847
847
|
function na(c, i, t = {}, e = 0, s = 1 / 0) {
|
|
848
848
|
const n = e * e, r = s * s;
|
|
849
849
|
let o = 1 / 0, a = null;
|
|
850
850
|
if (c.shapecast(
|
|
851
851
|
{
|
|
852
|
-
boundsTraverseOrder: (h) => (
|
|
852
|
+
boundsTraverseOrder: (h) => (Ei.copy(i).clamp(h.min, h.max), Ei.distanceToSquared(i)),
|
|
853
853
|
intersectsBounds: (h, f, I) => I < o && I < r,
|
|
854
854
|
intersectsTriangle: (h, f) => {
|
|
855
|
-
h.closestPointToPoint(i,
|
|
856
|
-
const I = i.distanceToSquared(
|
|
857
|
-
return I < o && (js.copy(
|
|
855
|
+
h.closestPointToPoint(i, Ei);
|
|
856
|
+
const I = i.distanceToSquared(Ei);
|
|
857
|
+
return I < o && (js.copy(Ei), o = I, a = f), I < n;
|
|
858
858
|
}
|
|
859
859
|
}
|
|
860
860
|
), o === 1 / 0)
|
|
@@ -862,7 +862,7 @@ function na(c, i, t = {}, e = 0, s = 1 / 0) {
|
|
|
862
862
|
const l = Math.sqrt(o);
|
|
863
863
|
return t.point ? t.point.copy(js) : t.point = js.clone(), t.distance = l, t.faceIndex = a, t;
|
|
864
864
|
}
|
|
865
|
-
const
|
|
865
|
+
const ke = /* @__PURE__ */ new Q(), He = /* @__PURE__ */ new Q(), We = /* @__PURE__ */ new Q(), Xi = /* @__PURE__ */ new ai(), $i = /* @__PURE__ */ new ai(), Zi = /* @__PURE__ */ new ai(), tr = /* @__PURE__ */ new Q(), er = /* @__PURE__ */ new Q(), ir = /* @__PURE__ */ new Q(), ji = /* @__PURE__ */ new Q();
|
|
866
866
|
function ra(c, i, t, e, s, n) {
|
|
867
867
|
let r;
|
|
868
868
|
return n === Oo ? r = c.intersectTriangle(e, t, i, !0, s) : r = c.intersectTriangle(i, t, e, n !== jr, s), r === null ? null : {
|
|
@@ -871,10 +871,10 @@ function ra(c, i, t, e, s, n) {
|
|
|
871
871
|
};
|
|
872
872
|
}
|
|
873
873
|
function oa(c, i, t, e, s, n, r, o, a) {
|
|
874
|
-
|
|
875
|
-
const l = ra(c,
|
|
874
|
+
ke.fromBufferAttribute(i, n), He.fromBufferAttribute(i, r), We.fromBufferAttribute(i, o);
|
|
875
|
+
const l = ra(c, ke, He, We, ji, a);
|
|
876
876
|
if (l) {
|
|
877
|
-
e && (
|
|
877
|
+
e && (Xi.fromBufferAttribute(e, n), $i.fromBufferAttribute(e, r), Zi.fromBufferAttribute(e, o), l.uv = ii.getInterpolation(ji, ke, He, We, Xi, $i, Zi, new ai())), s && (Xi.fromBufferAttribute(s, n), $i.fromBufferAttribute(s, r), Zi.fromBufferAttribute(s, o), l.uv1 = ii.getInterpolation(ji, ke, He, We, Xi, $i, Zi, new ai())), t && (tr.fromBufferAttribute(t, n), er.fromBufferAttribute(t, r), ir.fromBufferAttribute(t, o), l.normal = ii.getInterpolation(ji, ke, He, We, tr, er, ir, new Q()), l.normal.dot(c.direction) > 0 && l.normal.multiplyScalar(-1));
|
|
878
878
|
const h = {
|
|
879
879
|
a: n,
|
|
880
880
|
b: r,
|
|
@@ -882,7 +882,7 @@ function oa(c, i, t, e, s, n, r, o, a) {
|
|
|
882
882
|
normal: new Q(),
|
|
883
883
|
materialIndex: 0
|
|
884
884
|
};
|
|
885
|
-
|
|
885
|
+
ii.getNormal(ke, He, We, h.normal), l.face = h, l.faceIndex = n;
|
|
886
886
|
}
|
|
887
887
|
return l;
|
|
888
888
|
}
|
|
@@ -935,8 +935,8 @@ function ha(c, i = null) {
|
|
|
935
935
|
const p = r[I + 6], m = o[E + 14];
|
|
936
936
|
let F = 1 / 0, R = 1 / 0, S = 1 / 0, N = -1 / 0, y = -1 / 0, M = -1 / 0;
|
|
937
937
|
for (let L = 3 * p, b = 3 * (p + m); L < b; L++) {
|
|
938
|
-
let
|
|
939
|
-
const O = s.getX(
|
|
938
|
+
let Y = e[L];
|
|
939
|
+
const O = s.getX(Y), w = s.getY(Y), g = s.getZ(Y);
|
|
940
940
|
O < F && (F = O), O > N && (N = O), w < R && (R = w), w > y && (y = w), g < S && (S = g), g > M && (M = g);
|
|
941
941
|
}
|
|
942
942
|
return a[I + 0] !== F || a[I + 1] !== R || a[I + 2] !== S || a[I + 3] !== N || a[I + 4] !== y || a[I + 5] !== M ? (a[I + 0] = F, a[I + 1] = R, a[I + 2] = S, a[I + 3] = N, a[I + 4] = y, a[I + 5] = M, !0) : !1;
|
|
@@ -947,20 +947,20 @@ function ha(c, i = null) {
|
|
|
947
947
|
const M = S || N, L = S || y;
|
|
948
948
|
let b = !1;
|
|
949
949
|
M && (b = f(p, u, S));
|
|
950
|
-
let
|
|
951
|
-
L && (
|
|
952
|
-
const O = b ||
|
|
950
|
+
let Y = !1;
|
|
951
|
+
L && (Y = f(m, u, S));
|
|
952
|
+
const O = b || Y;
|
|
953
953
|
if (O)
|
|
954
954
|
for (let w = 0; w < 3; w++) {
|
|
955
|
-
const g = p + w, v = m + w,
|
|
956
|
-
a[I + w] =
|
|
955
|
+
const g = p + w, v = m + w, q = a[g], G = a[g + 3], et = a[v], W = a[v + 3];
|
|
956
|
+
a[I + w] = q < et ? q : et, a[I + w + 3] = G > W ? G : W;
|
|
957
957
|
}
|
|
958
958
|
return O;
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
961
|
}
|
|
962
962
|
const sr = /* @__PURE__ */ new ae();
|
|
963
|
-
function
|
|
963
|
+
function Me(c, i, t, e) {
|
|
964
964
|
return Nt(c, i, sr), t.intersectBox(sr, e);
|
|
965
965
|
}
|
|
966
966
|
function ua(c, i, t, e, s, n) {
|
|
@@ -999,9 +999,9 @@ function En(c, i, t, e, s) {
|
|
|
999
999
|
aa(i, t, e, h, f, s);
|
|
1000
1000
|
} else {
|
|
1001
1001
|
const h = jt(c);
|
|
1002
|
-
|
|
1002
|
+
Me(h, n, e, nr) && En(h, i, t, e, s);
|
|
1003
1003
|
const f = qt(c, o);
|
|
1004
|
-
|
|
1004
|
+
Me(f, n, e, nr) && En(f, i, t, e, s);
|
|
1005
1005
|
}
|
|
1006
1006
|
}
|
|
1007
1007
|
const rr = /* @__PURE__ */ new Q(), Ea = ["x", "y", "z"];
|
|
@@ -1020,7 +1020,7 @@ function pn(c, i, t, e) {
|
|
|
1020
1020
|
const l = to(c, r), h = Ea[l], I = e.direction[h] >= 0;
|
|
1021
1021
|
let u, d;
|
|
1022
1022
|
I ? (u = jt(c), d = qt(c, r)) : (u = qt(c, r), d = jt(c));
|
|
1023
|
-
const T =
|
|
1023
|
+
const T = Me(u, s, e, rr) ? pn(u, i, t, e) : null;
|
|
1024
1024
|
if (T) {
|
|
1025
1025
|
const F = T.point[h];
|
|
1026
1026
|
if (I ? F <= s[d + l] : (
|
|
@@ -1029,11 +1029,11 @@ function pn(c, i, t, e) {
|
|
|
1029
1029
|
))
|
|
1030
1030
|
return T;
|
|
1031
1031
|
}
|
|
1032
|
-
const m =
|
|
1032
|
+
const m = Me(d, s, e, rr) ? pn(d, i, t, e) : null;
|
|
1033
1033
|
return T && m ? T.distance <= m.distance ? T : m : T || m || null;
|
|
1034
1034
|
}
|
|
1035
1035
|
}
|
|
1036
|
-
const
|
|
1036
|
+
const qi = /* @__PURE__ */ new ae(), Xe = /* @__PURE__ */ new ne(), $e = /* @__PURE__ */ new ne(), pi = /* @__PURE__ */ new pe(), or = /* @__PURE__ */ new Bt(), Qi = /* @__PURE__ */ new Bt();
|
|
1037
1037
|
function Ca(c, i, t, e) {
|
|
1038
1038
|
Ft.setBuffer(c._roots[i]);
|
|
1039
1039
|
const s = Cn(0, c, t, e);
|
|
@@ -1044,46 +1044,46 @@ function Cn(c, i, t, e, s = null) {
|
|
|
1044
1044
|
let a = c * 2;
|
|
1045
1045
|
if (s === null && (t.boundingBox || t.computeBoundingBox(), or.set(t.boundingBox.min, t.boundingBox.max, e), s = or), Gt(a, r)) {
|
|
1046
1046
|
const h = i.geometry, f = h.index, I = h.attributes.position, u = t.index, d = t.attributes.position, E = zt(c, o), T = Zt(a, r);
|
|
1047
|
-
if (
|
|
1048
|
-
return Nt(c, n,
|
|
1049
|
-
intersectsBounds: (m) =>
|
|
1047
|
+
if (pi.copy(e).invert(), t.boundsTree)
|
|
1048
|
+
return Nt(c, n, Qi), Qi.matrix.copy(pi), Qi.needsUpdate = !0, t.boundsTree.shapecast({
|
|
1049
|
+
intersectsBounds: (m) => Qi.intersectsBox(m),
|
|
1050
1050
|
intersectsTriangle: (m) => {
|
|
1051
1051
|
m.a.applyMatrix4(e), m.b.applyMatrix4(e), m.c.applyMatrix4(e), m.needsUpdate = !0;
|
|
1052
1052
|
for (let F = E * 3, R = (T + E) * 3; F < R; F += 3)
|
|
1053
|
-
if (wt(
|
|
1053
|
+
if (wt($e, F, f, I), $e.needsUpdate = !0, m.intersectsTriangle($e))
|
|
1054
1054
|
return !0;
|
|
1055
1055
|
return !1;
|
|
1056
1056
|
}
|
|
1057
1057
|
});
|
|
1058
1058
|
for (let p = E * 3, m = (T + E) * 3; p < m; p += 3) {
|
|
1059
|
-
wt(
|
|
1059
|
+
wt(Xe, p, f, I), Xe.a.applyMatrix4(pi), Xe.b.applyMatrix4(pi), Xe.c.applyMatrix4(pi), Xe.needsUpdate = !0;
|
|
1060
1060
|
for (let F = 0, R = u.count; F < R; F += 3)
|
|
1061
|
-
if (wt(
|
|
1061
|
+
if (wt($e, F, u, d), $e.needsUpdate = !0, Xe.intersectsTriangle($e))
|
|
1062
1062
|
return !0;
|
|
1063
1063
|
}
|
|
1064
1064
|
} else {
|
|
1065
1065
|
const h = c + 8, f = o[c + 6];
|
|
1066
|
-
return Nt(h, n,
|
|
1066
|
+
return Nt(h, n, qi), !!(s.intersectsBox(qi) && Cn(h, i, t, e, s) || (Nt(f, n, qi), s.intersectsBox(qi) && Cn(f, i, t, e, s)));
|
|
1067
1067
|
}
|
|
1068
1068
|
}
|
|
1069
|
-
const
|
|
1069
|
+
const Ki = /* @__PURE__ */ new pe(), qs = /* @__PURE__ */ new Bt(), Ci = /* @__PURE__ */ new Bt(), Ta = /* @__PURE__ */ new Q(), ma = /* @__PURE__ */ new Q(), Ra = /* @__PURE__ */ new Q(), ga = /* @__PURE__ */ new Q();
|
|
1070
1070
|
function Aa(c, i, t, e = {}, s = {}, n = 0, r = 1 / 0) {
|
|
1071
1071
|
i.boundingBox || i.computeBoundingBox(), qs.set(i.boundingBox.min, i.boundingBox.max, t), qs.needsUpdate = !0;
|
|
1072
1072
|
const o = c.geometry, a = o.attributes.position, l = o.index, h = i.attributes.position, f = i.index, I = $t.getPrimitive(), u = $t.getPrimitive();
|
|
1073
1073
|
let d = Ta, E = ma, T = null, p = null;
|
|
1074
1074
|
s && (T = Ra, p = ga);
|
|
1075
1075
|
let m = 1 / 0, F = null, R = null;
|
|
1076
|
-
return
|
|
1076
|
+
return Ki.copy(t).invert(), Ci.matrix.copy(Ki), c.shapecast(
|
|
1077
1077
|
{
|
|
1078
1078
|
boundsTraverseOrder: (S) => qs.distanceToBox(S),
|
|
1079
|
-
intersectsBounds: (S, N, y) => y < m && y < r ? (N && (
|
|
1079
|
+
intersectsBounds: (S, N, y) => y < m && y < r ? (N && (Ci.min.copy(S.min), Ci.max.copy(S.max), Ci.needsUpdate = !0), !0) : !1,
|
|
1080
1080
|
intersectsRange: (S, N) => {
|
|
1081
1081
|
if (i.boundsTree)
|
|
1082
1082
|
return i.boundsTree.shapecast({
|
|
1083
|
-
boundsTraverseOrder: (M) =>
|
|
1083
|
+
boundsTraverseOrder: (M) => Ci.distanceToBox(M),
|
|
1084
1084
|
intersectsBounds: (M, L, b) => b < m && b < r,
|
|
1085
1085
|
intersectsRange: (M, L) => {
|
|
1086
|
-
for (let b = M,
|
|
1086
|
+
for (let b = M, Y = M + L; b < Y; b++) {
|
|
1087
1087
|
wt(u, 3 * b, f, h), u.a.applyMatrix4(t), u.b.applyMatrix4(t), u.c.applyMatrix4(t), u.needsUpdate = !0;
|
|
1088
1088
|
for (let O = S, w = S + N; O < w; O++) {
|
|
1089
1089
|
wt(I, 3 * O, l, a), I.needsUpdate = !0;
|
|
@@ -1095,10 +1095,10 @@ function Aa(c, i, t, e = {}, s = {}, n = 0, r = 1 / 0) {
|
|
|
1095
1095
|
}
|
|
1096
1096
|
});
|
|
1097
1097
|
{
|
|
1098
|
-
const y =
|
|
1098
|
+
const y = li(i);
|
|
1099
1099
|
for (let M = 0, L = y; M < L; M++) {
|
|
1100
1100
|
wt(u, 3 * M, f, h), u.a.applyMatrix4(t), u.b.applyMatrix4(t), u.c.applyMatrix4(t), u.needsUpdate = !0;
|
|
1101
|
-
for (let b = S,
|
|
1101
|
+
for (let b = S, Y = S + N; b < Y; b++) {
|
|
1102
1102
|
wt(I, 3 * b, l, a), I.needsUpdate = !0;
|
|
1103
1103
|
const O = I.distanceToTriangle(u, d, T);
|
|
1104
1104
|
if (O < m && (E.copy(d), p && p.copy(T), m = O, F = b, R = M), O < n)
|
|
@@ -1108,7 +1108,7 @@ function Aa(c, i, t, e = {}, s = {}, n = 0, r = 1 / 0) {
|
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
1110
|
}
|
|
1111
|
-
), $t.releasePrimitive(I), $t.releasePrimitive(u), m === 1 / 0 ? null : (e.point ? e.point.copy(E) : e.point = E.clone(), e.distance = m, e.faceIndex = F, s && (s.point ? s.point.copy(p) : s.point = p.clone(), s.point.applyMatrix4(
|
|
1111
|
+
), $t.releasePrimitive(I), $t.releasePrimitive(u), m === 1 / 0 ? null : (e.point ? e.point.copy(E) : e.point = E.clone(), e.distance = m, e.faceIndex = F, s && (s.point ? s.point.copy(p) : s.point = p.clone(), s.point.applyMatrix4(Ki), E.applyMatrix4(Ki), s.distance = E.sub(s.point).length(), s.faceIndex = R), e);
|
|
1112
1112
|
}
|
|
1113
1113
|
function Fa(c, i = null) {
|
|
1114
1114
|
i && Array.isArray(i) && (i = new Set(i));
|
|
@@ -1123,12 +1123,12 @@ function Fa(c, i = null) {
|
|
|
1123
1123
|
const p = r[I + 6], m = o[E + 14];
|
|
1124
1124
|
let F = 1 / 0, R = 1 / 0, S = 1 / 0, N = -1 / 0, y = -1 / 0, M = -1 / 0;
|
|
1125
1125
|
for (let L = p, b = p + m; L < b; L++) {
|
|
1126
|
-
const
|
|
1126
|
+
const Y = 3 * c.resolveTriangleIndex(L);
|
|
1127
1127
|
for (let O = 0; O < 3; O++) {
|
|
1128
|
-
let w =
|
|
1128
|
+
let w = Y + O;
|
|
1129
1129
|
w = e ? e[w] : w;
|
|
1130
|
-
const g = s.getX(w), v = s.getY(w),
|
|
1131
|
-
g < F && (F = g), g > N && (N = g), v < R && (R = v), v > y && (y = v),
|
|
1130
|
+
const g = s.getX(w), v = s.getY(w), q = s.getZ(w);
|
|
1131
|
+
g < F && (F = g), g > N && (N = g), v < R && (R = v), v > y && (y = v), q < S && (S = q), q > M && (M = q);
|
|
1132
1132
|
}
|
|
1133
1133
|
}
|
|
1134
1134
|
return a[I + 0] !== F || a[I + 1] !== R || a[I + 2] !== S || a[I + 3] !== N || a[I + 4] !== y || a[I + 5] !== M ? (a[I + 0] = F, a[I + 1] = R, a[I + 2] = S, a[I + 3] = N, a[I + 4] = y, a[I + 5] = M, !0) : !1;
|
|
@@ -1139,13 +1139,13 @@ function Fa(c, i = null) {
|
|
|
1139
1139
|
const M = S || N, L = S || y;
|
|
1140
1140
|
let b = !1;
|
|
1141
1141
|
M && (b = f(p, u, S));
|
|
1142
|
-
let
|
|
1143
|
-
L && (
|
|
1144
|
-
const O = b ||
|
|
1142
|
+
let Y = !1;
|
|
1143
|
+
L && (Y = f(m, u, S));
|
|
1144
|
+
const O = b || Y;
|
|
1145
1145
|
if (O)
|
|
1146
1146
|
for (let w = 0; w < 3; w++) {
|
|
1147
|
-
const g = p + w, v = m + w,
|
|
1148
|
-
a[I + w] =
|
|
1147
|
+
const g = p + w, v = m + w, q = a[g], G = a[g + 3], et = a[v], W = a[v + 3];
|
|
1148
|
+
a[I + w] = q < et ? q : et, a[I + w + 3] = G > W ? G : W;
|
|
1149
1149
|
}
|
|
1150
1150
|
return O;
|
|
1151
1151
|
}
|
|
@@ -1162,9 +1162,9 @@ function Tn(c, i, t, e, s) {
|
|
|
1162
1162
|
ua(i, t, e, h, f, s);
|
|
1163
1163
|
} else {
|
|
1164
1164
|
const h = jt(c);
|
|
1165
|
-
|
|
1165
|
+
Me(h, n, e, ar) && Tn(h, i, t, e, s);
|
|
1166
1166
|
const f = qt(c, o);
|
|
1167
|
-
|
|
1167
|
+
Me(f, n, e, ar) && Tn(f, i, t, e, s);
|
|
1168
1168
|
}
|
|
1169
1169
|
}
|
|
1170
1170
|
const cr = /* @__PURE__ */ new Q(), Oa = ["x", "y", "z"];
|
|
@@ -1183,7 +1183,7 @@ function mn(c, i, t, e) {
|
|
|
1183
1183
|
const l = to(c, r), h = Oa[l], I = e.direction[h] >= 0;
|
|
1184
1184
|
let u, d;
|
|
1185
1185
|
I ? (u = jt(c), d = qt(c, r)) : (u = qt(c, r), d = jt(c));
|
|
1186
|
-
const T =
|
|
1186
|
+
const T = Me(u, s, e, cr) ? mn(u, i, t, e) : null;
|
|
1187
1187
|
if (T) {
|
|
1188
1188
|
const F = T.point[h];
|
|
1189
1189
|
if (I ? F <= s[d + l] : (
|
|
@@ -1192,11 +1192,11 @@ function mn(c, i, t, e) {
|
|
|
1192
1192
|
))
|
|
1193
1193
|
return T;
|
|
1194
1194
|
}
|
|
1195
|
-
const m =
|
|
1195
|
+
const m = Me(d, s, e, cr) ? mn(d, i, t, e) : null;
|
|
1196
1196
|
return T && m ? T.distance <= m.distance ? T : m : T || m || null;
|
|
1197
1197
|
}
|
|
1198
1198
|
}
|
|
1199
|
-
const
|
|
1199
|
+
const Ji = /* @__PURE__ */ new ae(), Ze = /* @__PURE__ */ new ne(), je = /* @__PURE__ */ new ne(), Ti = /* @__PURE__ */ new pe(), lr = /* @__PURE__ */ new Bt(), ts = /* @__PURE__ */ new Bt();
|
|
1200
1200
|
function ya(c, i, t, e) {
|
|
1201
1201
|
Ft.setBuffer(c._roots[i]);
|
|
1202
1202
|
const s = Rn(0, c, t, e);
|
|
@@ -1207,65 +1207,65 @@ function Rn(c, i, t, e, s = null) {
|
|
|
1207
1207
|
let a = c * 2;
|
|
1208
1208
|
if (s === null && (t.boundingBox || t.computeBoundingBox(), lr.set(t.boundingBox.min, t.boundingBox.max, e), s = lr), Gt(a, r)) {
|
|
1209
1209
|
const h = i.geometry, f = h.index, I = h.attributes.position, u = t.index, d = t.attributes.position, E = zt(c, o), T = Zt(a, r);
|
|
1210
|
-
if (
|
|
1211
|
-
return Nt(c, n,
|
|
1212
|
-
intersectsBounds: (m) =>
|
|
1210
|
+
if (Ti.copy(e).invert(), t.boundsTree)
|
|
1211
|
+
return Nt(c, n, ts), ts.matrix.copy(Ti), ts.needsUpdate = !0, t.boundsTree.shapecast({
|
|
1212
|
+
intersectsBounds: (m) => ts.intersectsBox(m),
|
|
1213
1213
|
intersectsTriangle: (m) => {
|
|
1214
1214
|
m.a.applyMatrix4(e), m.b.applyMatrix4(e), m.c.applyMatrix4(e), m.needsUpdate = !0;
|
|
1215
1215
|
for (let F = E, R = T + E; F < R; F++)
|
|
1216
|
-
if (wt(
|
|
1216
|
+
if (wt(je, 3 * i.resolveTriangleIndex(F), f, I), je.needsUpdate = !0, m.intersectsTriangle(je))
|
|
1217
1217
|
return !0;
|
|
1218
1218
|
return !1;
|
|
1219
1219
|
}
|
|
1220
1220
|
});
|
|
1221
1221
|
for (let p = E, m = T + E; p < m; p++) {
|
|
1222
1222
|
const F = i.resolveTriangleIndex(p);
|
|
1223
|
-
wt(
|
|
1223
|
+
wt(Ze, 3 * F, f, I), Ze.a.applyMatrix4(Ti), Ze.b.applyMatrix4(Ti), Ze.c.applyMatrix4(Ti), Ze.needsUpdate = !0;
|
|
1224
1224
|
for (let R = 0, S = u.count; R < S; R += 3)
|
|
1225
|
-
if (wt(
|
|
1225
|
+
if (wt(je, R, u, d), je.needsUpdate = !0, Ze.intersectsTriangle(je))
|
|
1226
1226
|
return !0;
|
|
1227
1227
|
}
|
|
1228
1228
|
} else {
|
|
1229
1229
|
const h = c + 8, f = o[c + 6];
|
|
1230
|
-
return Nt(h, n,
|
|
1230
|
+
return Nt(h, n, Ji), !!(s.intersectsBox(Ji) && Rn(h, i, t, e, s) || (Nt(f, n, Ji), s.intersectsBox(Ji) && Rn(f, i, t, e, s)));
|
|
1231
1231
|
}
|
|
1232
1232
|
}
|
|
1233
|
-
const
|
|
1233
|
+
const es = /* @__PURE__ */ new pe(), Qs = /* @__PURE__ */ new Bt(), mi = /* @__PURE__ */ new Bt(), La = /* @__PURE__ */ new Q(), _a = /* @__PURE__ */ new Q(), Pa = /* @__PURE__ */ new Q(), wa = /* @__PURE__ */ new Q();
|
|
1234
1234
|
function Ma(c, i, t, e = {}, s = {}, n = 0, r = 1 / 0) {
|
|
1235
1235
|
i.boundingBox || i.computeBoundingBox(), Qs.set(i.boundingBox.min, i.boundingBox.max, t), Qs.needsUpdate = !0;
|
|
1236
1236
|
const o = c.geometry, a = o.attributes.position, l = o.index, h = i.attributes.position, f = i.index, I = $t.getPrimitive(), u = $t.getPrimitive();
|
|
1237
1237
|
let d = La, E = _a, T = null, p = null;
|
|
1238
1238
|
s && (T = Pa, p = wa);
|
|
1239
1239
|
let m = 1 / 0, F = null, R = null;
|
|
1240
|
-
return
|
|
1240
|
+
return es.copy(t).invert(), mi.matrix.copy(es), c.shapecast(
|
|
1241
1241
|
{
|
|
1242
1242
|
boundsTraverseOrder: (S) => Qs.distanceToBox(S),
|
|
1243
|
-
intersectsBounds: (S, N, y) => y < m && y < r ? (N && (
|
|
1243
|
+
intersectsBounds: (S, N, y) => y < m && y < r ? (N && (mi.min.copy(S.min), mi.max.copy(S.max), mi.needsUpdate = !0), !0) : !1,
|
|
1244
1244
|
intersectsRange: (S, N) => {
|
|
1245
1245
|
if (i.boundsTree) {
|
|
1246
1246
|
const y = i.boundsTree;
|
|
1247
1247
|
return y.shapecast({
|
|
1248
|
-
boundsTraverseOrder: (M) =>
|
|
1248
|
+
boundsTraverseOrder: (M) => mi.distanceToBox(M),
|
|
1249
1249
|
intersectsBounds: (M, L, b) => b < m && b < r,
|
|
1250
1250
|
intersectsRange: (M, L) => {
|
|
1251
|
-
for (let b = M,
|
|
1251
|
+
for (let b = M, Y = M + L; b < Y; b++) {
|
|
1252
1252
|
const O = y.resolveTriangleIndex(b);
|
|
1253
1253
|
wt(u, 3 * O, f, h), u.a.applyMatrix4(t), u.b.applyMatrix4(t), u.c.applyMatrix4(t), u.needsUpdate = !0;
|
|
1254
1254
|
for (let w = S, g = S + N; w < g; w++) {
|
|
1255
1255
|
const v = c.resolveTriangleIndex(w);
|
|
1256
1256
|
wt(I, 3 * v, l, a), I.needsUpdate = !0;
|
|
1257
|
-
const
|
|
1258
|
-
if (
|
|
1257
|
+
const q = I.distanceToTriangle(u, d, T);
|
|
1258
|
+
if (q < m && (E.copy(d), p && p.copy(T), m = q, F = w, R = b), q < n)
|
|
1259
1259
|
return !0;
|
|
1260
1260
|
}
|
|
1261
1261
|
}
|
|
1262
1262
|
}
|
|
1263
1263
|
});
|
|
1264
1264
|
} else {
|
|
1265
|
-
const y =
|
|
1265
|
+
const y = li(i);
|
|
1266
1266
|
for (let M = 0, L = y; M < L; M++) {
|
|
1267
1267
|
wt(u, 3 * M, f, h), u.a.applyMatrix4(t), u.b.applyMatrix4(t), u.c.applyMatrix4(t), u.needsUpdate = !0;
|
|
1268
|
-
for (let b = S,
|
|
1268
|
+
for (let b = S, Y = S + N; b < Y; b++) {
|
|
1269
1269
|
const O = c.resolveTriangleIndex(b);
|
|
1270
1270
|
wt(I, 3 * O, l, a), I.needsUpdate = !0;
|
|
1271
1271
|
const w = I.distanceToTriangle(u, d, T);
|
|
@@ -1276,12 +1276,12 @@ function Ma(c, i, t, e = {}, s = {}, n = 0, r = 1 / 0) {
|
|
|
1276
1276
|
}
|
|
1277
1277
|
}
|
|
1278
1278
|
}
|
|
1279
|
-
), $t.releasePrimitive(I), $t.releasePrimitive(u), m === 1 / 0 ? null : (e.point ? e.point.copy(E) : e.point = E.clone(), e.distance = m, e.faceIndex = F, s && (s.point ? s.point.copy(p) : s.point = p.clone(), s.point.applyMatrix4(
|
|
1279
|
+
), $t.releasePrimitive(I), $t.releasePrimitive(u), m === 1 / 0 ? null : (e.point ? e.point.copy(E) : e.point = E.clone(), e.distance = m, e.faceIndex = F, s && (s.point ? s.point.copy(p) : s.point = p.clone(), s.point.applyMatrix4(es), E.applyMatrix4(es), s.distance = E.sub(s.point).length(), s.faceIndex = R), e);
|
|
1280
1280
|
}
|
|
1281
1281
|
function Da() {
|
|
1282
1282
|
return typeof SharedArrayBuffer < "u";
|
|
1283
1283
|
}
|
|
1284
|
-
const
|
|
1284
|
+
const wi = new Ft.constructor(), ps = new Ft.constructor(), Ne = new vn(() => new ae()), qe = new ae(), Qe = new ae(), Ks = new ae(), Js = new ae();
|
|
1285
1285
|
let tn = !1;
|
|
1286
1286
|
function ba(c, i, t, e) {
|
|
1287
1287
|
if (tn)
|
|
@@ -1291,9 +1291,9 @@ function ba(c, i, t, e) {
|
|
|
1291
1291
|
let r, o = 0, a = 0;
|
|
1292
1292
|
const l = new pe().copy(t).invert();
|
|
1293
1293
|
for (let h = 0, f = s.length; h < f; h++) {
|
|
1294
|
-
|
|
1294
|
+
wi.setBuffer(s[h]), a = 0;
|
|
1295
1295
|
const I = Ne.getPrimitive();
|
|
1296
|
-
Nt(0,
|
|
1296
|
+
Nt(0, wi.float32Array, I), I.applyMatrix4(l);
|
|
1297
1297
|
for (let u = 0, d = n.length; u < d && (ps.setBuffer(n[h]), r = Kt(
|
|
1298
1298
|
0,
|
|
1299
1299
|
0,
|
|
@@ -1307,14 +1307,14 @@ function ba(c, i, t, e) {
|
|
|
1307
1307
|
I
|
|
1308
1308
|
), ps.clearBuffer(), a += n[u].length, !r); u++)
|
|
1309
1309
|
;
|
|
1310
|
-
if (Ne.releasePrimitive(I),
|
|
1310
|
+
if (Ne.releasePrimitive(I), wi.clearBuffer(), o += s[h].length, r)
|
|
1311
1311
|
break;
|
|
1312
1312
|
}
|
|
1313
1313
|
return tn = !1, r;
|
|
1314
1314
|
}
|
|
1315
1315
|
function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
|
|
1316
1316
|
let f, I;
|
|
1317
|
-
h ? (f = ps, I =
|
|
1317
|
+
h ? (f = ps, I = wi) : (f = wi, I = ps);
|
|
1318
1318
|
const u = f.float32Array, d = f.uint32Array, E = f.uint16Array, T = I.float32Array, p = I.uint32Array, m = I.uint16Array, F = c * 2, R = i * 2, S = Gt(F, E), N = Gt(R, m);
|
|
1319
1319
|
let y = !1;
|
|
1320
1320
|
if (N && S)
|
|
@@ -1341,9 +1341,9 @@ function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
|
|
|
1341
1341
|
const M = Ne.getPrimitive();
|
|
1342
1342
|
Nt(i, T, M), M.applyMatrix4(t);
|
|
1343
1343
|
const L = jt(c), b = qt(c, d);
|
|
1344
|
-
Nt(L, u,
|
|
1345
|
-
const
|
|
1346
|
-
y =
|
|
1344
|
+
Nt(L, u, qe), Nt(b, u, Qe);
|
|
1345
|
+
const Y = M.intersectsBox(qe), O = M.intersectsBox(Qe);
|
|
1346
|
+
y = Y && Kt(
|
|
1347
1347
|
i,
|
|
1348
1348
|
L,
|
|
1349
1349
|
e,
|
|
@@ -1371,8 +1371,8 @@ function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
|
|
|
1371
1371
|
} else {
|
|
1372
1372
|
const M = jt(i), L = qt(i, p);
|
|
1373
1373
|
Nt(M, T, Ks), Nt(L, T, Js);
|
|
1374
|
-
const b = l.intersectsBox(Ks),
|
|
1375
|
-
if (b &&
|
|
1374
|
+
const b = l.intersectsBox(Ks), Y = l.intersectsBox(Js);
|
|
1375
|
+
if (b && Y)
|
|
1376
1376
|
y = Kt(
|
|
1377
1377
|
c,
|
|
1378
1378
|
M,
|
|
@@ -1417,8 +1417,8 @@ function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
|
|
|
1417
1417
|
const O = Ne.getPrimitive();
|
|
1418
1418
|
O.copy(Ks).applyMatrix4(t);
|
|
1419
1419
|
const w = jt(c), g = qt(c, d);
|
|
1420
|
-
Nt(w, u,
|
|
1421
|
-
const v = O.intersectsBox(
|
|
1420
|
+
Nt(w, u, qe), Nt(g, u, Qe);
|
|
1421
|
+
const v = O.intersectsBox(qe), q = O.intersectsBox(Qe);
|
|
1422
1422
|
y = v && Kt(
|
|
1423
1423
|
M,
|
|
1424
1424
|
w,
|
|
@@ -1431,7 +1431,7 @@ function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
|
|
|
1431
1431
|
o + 1,
|
|
1432
1432
|
O,
|
|
1433
1433
|
!h
|
|
1434
|
-
) ||
|
|
1434
|
+
) || q && Kt(
|
|
1435
1435
|
M,
|
|
1436
1436
|
g,
|
|
1437
1437
|
e,
|
|
@@ -1445,7 +1445,7 @@ function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
|
|
|
1445
1445
|
!h
|
|
1446
1446
|
), Ne.releasePrimitive(O);
|
|
1447
1447
|
}
|
|
1448
|
-
else if (
|
|
1448
|
+
else if (Y)
|
|
1449
1449
|
if (S)
|
|
1450
1450
|
y = Kt(
|
|
1451
1451
|
c,
|
|
@@ -1464,8 +1464,8 @@ function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
|
|
|
1464
1464
|
const O = Ne.getPrimitive();
|
|
1465
1465
|
O.copy(Js).applyMatrix4(t);
|
|
1466
1466
|
const w = jt(c), g = qt(c, d);
|
|
1467
|
-
Nt(w, u,
|
|
1468
|
-
const v = O.intersectsBox(
|
|
1467
|
+
Nt(w, u, qe), Nt(g, u, Qe);
|
|
1468
|
+
const v = O.intersectsBox(qe), q = O.intersectsBox(Qe);
|
|
1469
1469
|
y = v && Kt(
|
|
1470
1470
|
L,
|
|
1471
1471
|
w,
|
|
@@ -1478,7 +1478,7 @@ function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
|
|
|
1478
1478
|
o + 1,
|
|
1479
1479
|
O,
|
|
1480
1480
|
!h
|
|
1481
|
-
) ||
|
|
1481
|
+
) || q && Kt(
|
|
1482
1482
|
L,
|
|
1483
1483
|
g,
|
|
1484
1484
|
e,
|
|
@@ -1495,7 +1495,7 @@ function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
|
|
|
1495
1495
|
}
|
|
1496
1496
|
return y;
|
|
1497
1497
|
}
|
|
1498
|
-
const
|
|
1498
|
+
const is = /* @__PURE__ */ new Bt(), hr = /* @__PURE__ */ new ae();
|
|
1499
1499
|
class Un {
|
|
1500
1500
|
static serialize(i, t = {}) {
|
|
1501
1501
|
t = {
|
|
@@ -1570,7 +1570,7 @@ class Un {
|
|
|
1570
1570
|
const f = s[o + 6], I = n[l + 14];
|
|
1571
1571
|
i(a, h, new Float32Array(e, o * 4, 6), f, I);
|
|
1572
1572
|
} else {
|
|
1573
|
-
const f = o +
|
|
1573
|
+
const f = o + Is / 4, I = s[o + 6], u = s[o + 7];
|
|
1574
1574
|
i(a, h, new Float32Array(e, o * 4, 6), u) || (r(f, a + 1), r(I, a + 1));
|
|
1575
1575
|
}
|
|
1576
1576
|
}
|
|
@@ -1666,10 +1666,10 @@ class Un {
|
|
|
1666
1666
|
}
|
|
1667
1667
|
/* Derived Cast Functions */
|
|
1668
1668
|
intersectsBox(i, t) {
|
|
1669
|
-
return
|
|
1669
|
+
return is.set(i.min, i.max, t), is.needsUpdate = !0, this.shapecast(
|
|
1670
1670
|
{
|
|
1671
|
-
intersectsBounds: (e) =>
|
|
1672
|
-
intersectsTriangle: (e) =>
|
|
1671
|
+
intersectsBounds: (e) => is.intersectsBox(e),
|
|
1672
|
+
intersectsTriangle: (e) => is.intersectsTriangle(e)
|
|
1673
1673
|
}
|
|
1674
1674
|
);
|
|
1675
1675
|
}
|
|
@@ -1736,10 +1736,16 @@ function xa(c) {
|
|
|
1736
1736
|
function Ba() {
|
|
1737
1737
|
this.boundsTree = null;
|
|
1738
1738
|
}
|
|
1739
|
-
class
|
|
1739
|
+
class j {
|
|
1740
1740
|
constructor() {
|
|
1741
|
+
/**
|
|
1742
|
+
* Whether this event is active or not. If not, it won't trigger.
|
|
1743
|
+
*/
|
|
1744
|
+
C(this, "enabled", !0);
|
|
1741
1745
|
/** Triggers all the callbacks assigned to this event. */
|
|
1742
1746
|
C(this, "trigger", (i) => {
|
|
1747
|
+
if (!this.enabled)
|
|
1748
|
+
return;
|
|
1743
1749
|
const t = this.handlers.slice(0);
|
|
1744
1750
|
for (const e of t)
|
|
1745
1751
|
e(i);
|
|
@@ -1765,10 +1771,16 @@ class Z {
|
|
|
1765
1771
|
this.handlers.length = 0;
|
|
1766
1772
|
}
|
|
1767
1773
|
}
|
|
1768
|
-
class
|
|
1774
|
+
class Pe {
|
|
1769
1775
|
constructor() {
|
|
1776
|
+
/**
|
|
1777
|
+
* Whether this event is active or not. If not, it won't trigger.
|
|
1778
|
+
*/
|
|
1779
|
+
C(this, "enabled", !0);
|
|
1770
1780
|
/** Triggers all the callbacks assigned to this event. */
|
|
1771
1781
|
C(this, "trigger", async (i) => {
|
|
1782
|
+
if (!this.enabled)
|
|
1783
|
+
return;
|
|
1772
1784
|
const t = this.handlers.slice(0);
|
|
1773
1785
|
for (const e of t)
|
|
1774
1786
|
await e(i);
|
|
@@ -1819,7 +1831,7 @@ class Bn extends xn {
|
|
|
1819
1831
|
* Event that is triggered when a world is added or removed from the `worlds` map.
|
|
1820
1832
|
* The event payload contains the world instance and the action ("added" or "removed").
|
|
1821
1833
|
*/
|
|
1822
|
-
C(this, "onWorldChanged", new
|
|
1834
|
+
C(this, "onWorldChanged", new j());
|
|
1823
1835
|
/**
|
|
1824
1836
|
* The current world this item is associated with. It can be null if no world is currently active.
|
|
1825
1837
|
*/
|
|
@@ -1844,18 +1856,18 @@ class Ya extends Bn {
|
|
|
1844
1856
|
constructor() {
|
|
1845
1857
|
super(...arguments);
|
|
1846
1858
|
/** {@link Updateable.onBeforeUpdate} */
|
|
1847
|
-
C(this, "onAfterUpdate", new
|
|
1859
|
+
C(this, "onAfterUpdate", new j());
|
|
1848
1860
|
/** {@link Updateable.onAfterUpdate} */
|
|
1849
|
-
C(this, "onBeforeUpdate", new
|
|
1861
|
+
C(this, "onBeforeUpdate", new j());
|
|
1850
1862
|
/** {@link Disposable.onDisposed} */
|
|
1851
|
-
C(this, "onDisposed", new
|
|
1863
|
+
C(this, "onDisposed", new j());
|
|
1852
1864
|
/** {@link Resizeable.onResize} */
|
|
1853
|
-
C(this, "onResize", new
|
|
1865
|
+
C(this, "onResize", new j());
|
|
1854
1866
|
/**
|
|
1855
1867
|
* Event that fires when there has been a change to the list of clipping
|
|
1856
1868
|
* planes used by the active renderer.
|
|
1857
1869
|
*/
|
|
1858
|
-
C(this, "onClippingPlanesUpdated", new
|
|
1870
|
+
C(this, "onClippingPlanesUpdated", new j());
|
|
1859
1871
|
/**
|
|
1860
1872
|
* The list of [clipping planes](https://threejs.org/docs/#api/en/renderers/WebGLRenderer.clippingPlanes) used by this instance of the renderer.
|
|
1861
1873
|
*/
|
|
@@ -1893,13 +1905,13 @@ class Ya extends Bn {
|
|
|
1893
1905
|
);
|
|
1894
1906
|
}
|
|
1895
1907
|
}
|
|
1896
|
-
const
|
|
1908
|
+
const Mi = class Mi extends At {
|
|
1897
1909
|
constructor(t) {
|
|
1898
1910
|
super(t);
|
|
1899
1911
|
C(this, "_disposedComponents", /* @__PURE__ */ new Set());
|
|
1900
1912
|
/** {@link Component.enabled} */
|
|
1901
1913
|
C(this, "enabled", !0);
|
|
1902
|
-
t.add(
|
|
1914
|
+
t.add(Mi.uuid, this);
|
|
1903
1915
|
}
|
|
1904
1916
|
// TODO: Remove this?
|
|
1905
1917
|
/**
|
|
@@ -1937,7 +1949,7 @@ const wi = class wi extends At {
|
|
|
1937
1949
|
}
|
|
1938
1950
|
disposeGeometryAndMaterials(t, e) {
|
|
1939
1951
|
const s = t;
|
|
1940
|
-
s.geometry && this.disposeGeometry(s.geometry), e && s.material &&
|
|
1952
|
+
s.geometry && this.disposeGeometry(s.geometry), e && s.material && Mi.disposeMaterial(s), s.material = [], s.geometry = null;
|
|
1941
1953
|
}
|
|
1942
1954
|
disposeChildren(t) {
|
|
1943
1955
|
for (const e of t.children)
|
|
@@ -1956,13 +1968,13 @@ const wi = class wi extends At {
|
|
|
1956
1968
|
* A unique identifier for the component.
|
|
1957
1969
|
* This UUID is used to register the component within the Components system.
|
|
1958
1970
|
*/
|
|
1959
|
-
C(
|
|
1960
|
-
let
|
|
1971
|
+
C(Mi, "uuid", "76e9cd8e-ad8f-4753-9ef6-cbc60f7247fe");
|
|
1972
|
+
let De = Mi;
|
|
1961
1973
|
class Ga extends Bn {
|
|
1962
1974
|
constructor(t) {
|
|
1963
1975
|
super(t);
|
|
1964
1976
|
/** {@link Disposable.onDisposed} */
|
|
1965
|
-
C(this, "onDisposed", new
|
|
1977
|
+
C(this, "onDisposed", new j());
|
|
1966
1978
|
/** The set of directional lights managed by this scene component. */
|
|
1967
1979
|
C(this, "directionalLights", /* @__PURE__ */ new Map());
|
|
1968
1980
|
/** The set of ambient lights managed by this scene component. */
|
|
@@ -1970,7 +1982,7 @@ class Ga extends Bn {
|
|
|
1970
1982
|
}
|
|
1971
1983
|
/** {@link Disposable.dispose} */
|
|
1972
1984
|
dispose() {
|
|
1973
|
-
const t = this.components.get(
|
|
1985
|
+
const t = this.components.get(De);
|
|
1974
1986
|
for (const e of this.three.children) {
|
|
1975
1987
|
const s = e;
|
|
1976
1988
|
s.geometry && t.destroy(s);
|
|
@@ -1986,7 +1998,7 @@ class Ga extends Bn {
|
|
|
1986
1998
|
this.ambientLights.clear();
|
|
1987
1999
|
}
|
|
1988
2000
|
}
|
|
1989
|
-
class
|
|
2001
|
+
class we extends Set {
|
|
1990
2002
|
/**
|
|
1991
2003
|
* Constructs a new instance of the DataSet class.
|
|
1992
2004
|
*
|
|
@@ -1997,15 +2009,15 @@ class Pe extends Set {
|
|
|
1997
2009
|
/**
|
|
1998
2010
|
* An event that is triggered when a new item is added to the set.
|
|
1999
2011
|
*/
|
|
2000
|
-
C(this, "onItemAdded", new
|
|
2012
|
+
C(this, "onItemAdded", new j());
|
|
2001
2013
|
/**
|
|
2002
2014
|
* An event that is triggered when an item is deleted from the set.
|
|
2003
2015
|
*/
|
|
2004
|
-
C(this, "onItemDeleted", new
|
|
2016
|
+
C(this, "onItemDeleted", new j());
|
|
2005
2017
|
/**
|
|
2006
2018
|
* An event that is triggered when the set is cleared.
|
|
2007
2019
|
*/
|
|
2008
|
-
C(this, "onCleared", new
|
|
2020
|
+
C(this, "onCleared", new j());
|
|
2009
2021
|
/**
|
|
2010
2022
|
* A function that acts as a guard for adding items to the set.
|
|
2011
2023
|
* It determines whether a given value should be allowed to be added to the set.
|
|
@@ -2031,7 +2043,7 @@ class Pe extends Set {
|
|
|
2031
2043
|
*/
|
|
2032
2044
|
add(...t) {
|
|
2033
2045
|
for (const e of t)
|
|
2034
|
-
this.has(e) || !this.guard(e) || (super.add(e), this.onItemAdded || (this.onItemAdded = new
|
|
2046
|
+
this.has(e) || !this.guard(e) || (super.add(e), this.onItemAdded || (this.onItemAdded = new j()), this.onItemAdded.trigger(e));
|
|
2035
2047
|
return this;
|
|
2036
2048
|
}
|
|
2037
2049
|
/**
|
|
@@ -2062,19 +2074,19 @@ class re extends Map {
|
|
|
2062
2074
|
/**
|
|
2063
2075
|
* An event triggered when a new item is set in the map.
|
|
2064
2076
|
*/
|
|
2065
|
-
C(this, "onItemSet", new
|
|
2077
|
+
C(this, "onItemSet", new j());
|
|
2066
2078
|
/**
|
|
2067
2079
|
* An event triggered when an existing item in the map is updated.
|
|
2068
2080
|
*/
|
|
2069
|
-
C(this, "onItemUpdated", new
|
|
2081
|
+
C(this, "onItemUpdated", new j());
|
|
2070
2082
|
/**
|
|
2071
2083
|
* An event triggered when an item is deleted from the map.
|
|
2072
2084
|
*/
|
|
2073
|
-
C(this, "onItemDeleted", new
|
|
2085
|
+
C(this, "onItemDeleted", new j());
|
|
2074
2086
|
/**
|
|
2075
2087
|
* An event triggered when the map is cleared.
|
|
2076
2088
|
*/
|
|
2077
|
-
C(this, "onCleared", new
|
|
2089
|
+
C(this, "onCleared", new j());
|
|
2078
2090
|
/**
|
|
2079
2091
|
* A function that acts as a guard for adding items to the set.
|
|
2080
2092
|
* It determines whether a given value should be allowed to be added to the set.
|
|
@@ -2105,7 +2117,7 @@ class re extends Map {
|
|
|
2105
2117
|
if (!(this.guard ?? (() => !0))(t, e))
|
|
2106
2118
|
return this;
|
|
2107
2119
|
const o = super.set(t, e);
|
|
2108
|
-
return s ? (this.onItemUpdated || (this.onItemUpdated = new
|
|
2120
|
+
return s ? (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;
|
|
2109
2121
|
}
|
|
2110
2122
|
/**
|
|
2111
2123
|
* Deletes the specified key from the map and triggers the onItemDeleted event if the key was found.
|
|
@@ -2126,7 +2138,46 @@ class re extends Map {
|
|
|
2126
2138
|
}
|
|
2127
2139
|
class ph extends At {
|
|
2128
2140
|
}
|
|
2129
|
-
|
|
2141
|
+
class Ch {
|
|
2142
|
+
constructor() {
|
|
2143
|
+
/**
|
|
2144
|
+
* The list of events managed by this instance.
|
|
2145
|
+
*/
|
|
2146
|
+
C(this, "list", /* @__PURE__ */ new Set());
|
|
2147
|
+
}
|
|
2148
|
+
/**
|
|
2149
|
+
* Adds events to this manager.
|
|
2150
|
+
* @param events the events to add.
|
|
2151
|
+
*/
|
|
2152
|
+
add(i) {
|
|
2153
|
+
for (const t of i)
|
|
2154
|
+
this.list.add(t);
|
|
2155
|
+
}
|
|
2156
|
+
/**
|
|
2157
|
+
* Removes events from this manager.
|
|
2158
|
+
* @param events the events to remove.
|
|
2159
|
+
*/
|
|
2160
|
+
remove(i) {
|
|
2161
|
+
for (const t of i)
|
|
2162
|
+
this.list.delete(t);
|
|
2163
|
+
}
|
|
2164
|
+
/**
|
|
2165
|
+
* Sets all the events managed by this instance as enabled or disabled.
|
|
2166
|
+
* @param active whether to turn on or off the events.
|
|
2167
|
+
*/
|
|
2168
|
+
set(i) {
|
|
2169
|
+
for (const t of this.list)
|
|
2170
|
+
t.enabled = i;
|
|
2171
|
+
}
|
|
2172
|
+
/**
|
|
2173
|
+
* Resets all the events managed by this instance.
|
|
2174
|
+
*/
|
|
2175
|
+
reset() {
|
|
2176
|
+
for (const i of this.list)
|
|
2177
|
+
i.reset();
|
|
2178
|
+
}
|
|
2179
|
+
}
|
|
2180
|
+
const ds = 0, za = 1, ka = new Q(), Ir = new Ee(), sn = new Dn(), dr = new Q(), ss = new ii();
|
|
2130
2181
|
class Ha {
|
|
2131
2182
|
constructor() {
|
|
2132
2183
|
this.tolerance = -1, this.faces = [], this.newFaces = [], this.assigned = new Er(), this.unassigned = new Er(), this.vertices = [];
|
|
@@ -2400,7 +2451,7 @@ class te {
|
|
|
2400
2451
|
}
|
|
2401
2452
|
compute() {
|
|
2402
2453
|
const i = this.edge.tail(), t = this.edge.head(), e = this.edge.next.head();
|
|
2403
|
-
return
|
|
2454
|
+
return ss.set(i.point, t.point, e.point), ss.getNormal(this.normal), ss.getMidpoint(this.midpoint), this.area = ss.getArea(), this.constant = this.normal.dot(this.midpoint), this;
|
|
2404
2455
|
}
|
|
2405
2456
|
distanceToPoint(i) {
|
|
2406
2457
|
return this.normal.dot(i) - this.constant;
|
|
@@ -2558,26 +2609,26 @@ function qa(c) {
|
|
|
2558
2609
|
N.elements[0] = T, N.elements[1] = p, N.elements[2] = m, N.elements[3] = p, N.elements[4] = F, N.elements[5] = R, N.elements[6] = m, N.elements[7] = R, N.elements[8] = S, ja(N, e);
|
|
2559
2610
|
const y = e.unitary, M = new D.Vector3(), L = new D.Vector3(), b = new D.Vector3();
|
|
2560
2611
|
y.extractBasis(M, L, b);
|
|
2561
|
-
let
|
|
2612
|
+
let Y = -1 / 0, O = -1 / 0, w = -1 / 0, g = 1 / 0, v = 1 / 0, q = 1 / 0;
|
|
2562
2613
|
for (let at = 0, It = i.length; at < It; at++) {
|
|
2563
2614
|
const ft = i[at];
|
|
2564
|
-
|
|
2615
|
+
Y = Math.max(M.dot(ft), Y), O = Math.max(L.dot(ft), O), w = Math.max(b.dot(ft), w), g = Math.min(M.dot(ft), g), v = Math.min(L.dot(ft), v), q = Math.min(b.dot(ft), q);
|
|
2565
2616
|
}
|
|
2566
|
-
M.multiplyScalar(0.5 * (g +
|
|
2567
|
-
const
|
|
2568
|
-
|
|
2569
|
-
const { x: nt, y:
|
|
2570
|
-
ot.makeScale(nt * 2,
|
|
2617
|
+
M.multiplyScalar(0.5 * (g + Y)), L.multiplyScalar(0.5 * (v + O)), b.multiplyScalar(0.5 * (q + w));
|
|
2618
|
+
const G = new D.Vector3(), et = new D.Vector3(), W = new D.Matrix3();
|
|
2619
|
+
G.add(M).add(L).add(b), et.x = Y - g, et.y = O - v, et.z = w - q, et.multiplyScalar(0.5), W.copy(y);
|
|
2620
|
+
const { x: nt, y: V, z: x } = et, ot = new D.Matrix4();
|
|
2621
|
+
ot.makeScale(nt * 2, V * 2, x * 2);
|
|
2571
2622
|
const it = new D.Matrix4();
|
|
2572
|
-
it.makeTranslation(-nt, -
|
|
2623
|
+
it.makeTranslation(-nt, -V, -x);
|
|
2573
2624
|
const tt = new D.Matrix4();
|
|
2574
|
-
tt.makeTranslation(
|
|
2625
|
+
tt.makeTranslation(G.x, G.y, G.z);
|
|
2575
2626
|
const St = new D.Matrix4();
|
|
2576
2627
|
St.setFromMatrix3(W);
|
|
2577
2628
|
const yt = new D.Matrix4();
|
|
2578
|
-
return yt.multiply(tt), yt.multiply(St), yt.multiply(it), yt.multiply(ot), { center:
|
|
2629
|
+
return yt.multiply(tt), yt.multiply(St), yt.multiply(it), yt.multiply(ot), { center: G, halfSizes: et, rotation: W, transformation: yt };
|
|
2579
2630
|
}
|
|
2580
|
-
function
|
|
2631
|
+
function Th(c, i, t) {
|
|
2581
2632
|
const e = [
|
|
2582
2633
|
c[0] - i[0],
|
|
2583
2634
|
c[1] - i[1],
|
|
@@ -2868,25 +2919,25 @@ C(_t, "_lut", [
|
|
|
2868
2919
|
"ff"
|
|
2869
2920
|
]);
|
|
2870
2921
|
let oe = _t;
|
|
2871
|
-
class
|
|
2922
|
+
class mh extends At {
|
|
2872
2923
|
constructor(t, e) {
|
|
2873
2924
|
super(t);
|
|
2874
2925
|
/** {@link Disposable.onDisposed} */
|
|
2875
|
-
C(this, "onDisposed", new
|
|
2926
|
+
C(this, "onDisposed", new j());
|
|
2876
2927
|
/**
|
|
2877
2928
|
* An event that is triggered when a vertex is found.
|
|
2878
2929
|
* The event passes a THREE.Vector3 representing the position of the found vertex.
|
|
2879
2930
|
*/
|
|
2880
|
-
C(this, "onVertexFound", new
|
|
2931
|
+
C(this, "onVertexFound", new j());
|
|
2881
2932
|
/**
|
|
2882
2933
|
* An event that is triggered when a vertex is lost.
|
|
2883
2934
|
* The event passes a THREE.Vector3 representing the position of the lost vertex.
|
|
2884
2935
|
*/
|
|
2885
|
-
C(this, "onVertexLost", new
|
|
2936
|
+
C(this, "onVertexLost", new j());
|
|
2886
2937
|
/**
|
|
2887
2938
|
* An event that is triggered when the picker is enabled or disabled
|
|
2888
2939
|
*/
|
|
2889
|
-
C(this, "onEnabled", new
|
|
2940
|
+
C(this, "onEnabled", new j());
|
|
2890
2941
|
/**
|
|
2891
2942
|
* A reference to the Components instance associated with this VertexPicker.
|
|
2892
2943
|
*/
|
|
@@ -2977,7 +3028,7 @@ class Th extends At {
|
|
|
2977
3028
|
get(t) {
|
|
2978
3029
|
if (!this.enabled)
|
|
2979
3030
|
return this._pickedPoint;
|
|
2980
|
-
const n = this.components.get(
|
|
3031
|
+
const n = this.components.get(ci).get(t).castRay();
|
|
2981
3032
|
if (!n)
|
|
2982
3033
|
return this._pickedPoint !== null && (this.onVertexLost.trigger(), this._pickedPoint = null), this._pickedPoint;
|
|
2983
3034
|
const r = this.getClosestVertex(n);
|
|
@@ -3021,7 +3072,7 @@ class Th extends At {
|
|
|
3021
3072
|
const Fs = class Fs {
|
|
3022
3073
|
constructor() {
|
|
3023
3074
|
/** {@link Disposable.onDisposed} */
|
|
3024
|
-
C(this, "onDisposed", new
|
|
3075
|
+
C(this, "onDisposed", new j());
|
|
3025
3076
|
/**
|
|
3026
3077
|
* The list of components created in this app.
|
|
3027
3078
|
* The keys are UUIDs and the values are instances of the components.
|
|
@@ -3051,7 +3102,7 @@ const Fs = class Fs {
|
|
|
3051
3102
|
* components.init();
|
|
3052
3103
|
* ```
|
|
3053
3104
|
*/
|
|
3054
|
-
C(this, "onInit", new
|
|
3105
|
+
C(this, "onInit", new j());
|
|
3055
3106
|
C(this, "update", () => {
|
|
3056
3107
|
if (!this.enabled)
|
|
3057
3108
|
return;
|
|
@@ -3147,11 +3198,11 @@ class Qa extends xn {
|
|
|
3147
3198
|
*/
|
|
3148
3199
|
C(this, "meshes", /* @__PURE__ */ new Set());
|
|
3149
3200
|
/** {@link Updateable.onAfterUpdate} */
|
|
3150
|
-
C(this, "onAfterUpdate", new
|
|
3201
|
+
C(this, "onAfterUpdate", new j());
|
|
3151
3202
|
/** {@link Updateable.onBeforeUpdate} */
|
|
3152
|
-
C(this, "onBeforeUpdate", new
|
|
3203
|
+
C(this, "onBeforeUpdate", new j());
|
|
3153
3204
|
/** {@link Disposable.onDisposed} */
|
|
3154
|
-
C(this, "onDisposed", new
|
|
3205
|
+
C(this, "onDisposed", new j());
|
|
3155
3206
|
/**
|
|
3156
3207
|
* 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.
|
|
3157
3208
|
*/
|
|
@@ -3230,7 +3281,7 @@ class Qa extends xn {
|
|
|
3230
3281
|
/** {@link Disposable.dispose} */
|
|
3231
3282
|
dispose(t = !0) {
|
|
3232
3283
|
if (this.enabled = !1, this.isDisposing = !0, this.scene.onWorldChanged.trigger({ world: this, action: "removed" }), this.camera.onWorldChanged.trigger({ world: this, action: "removed" }), this.renderer && this.renderer.onWorldChanged.trigger({ world: this, action: "removed" }), t) {
|
|
3233
|
-
const s = this.components.get(
|
|
3284
|
+
const s = this.components.get(De);
|
|
3234
3285
|
this.scene.dispose(), this.camera.isDisposeable() && this.camera.dispose(), this.renderer && this.renderer.dispose();
|
|
3235
3286
|
for (const n of this.meshes)
|
|
3236
3287
|
s.destroy(n);
|
|
@@ -3239,12 +3290,12 @@ class Qa extends xn {
|
|
|
3239
3290
|
this._scene = null, this._camera = null, this._renderer = null, this.components.get(Ts).list.delete(this.uuid), this.onDisposed.trigger(), this.onDisposed.reset();
|
|
3240
3291
|
}
|
|
3241
3292
|
}
|
|
3242
|
-
class
|
|
3293
|
+
class Ge {
|
|
3243
3294
|
constructor(i, t, e, s) {
|
|
3244
3295
|
C(this, "_component");
|
|
3245
3296
|
C(this, "name");
|
|
3246
3297
|
C(this, "uuid");
|
|
3247
|
-
this._component = i, this.name = e, this.uuid = s ?? oe.create(), t.get(
|
|
3298
|
+
this._component = i, this.name = e, this.uuid = s ?? oe.create(), t.get(Ye).list.set(this.uuid, this);
|
|
3248
3299
|
}
|
|
3249
3300
|
get controls() {
|
|
3250
3301
|
const i = {};
|
|
@@ -3336,7 +3387,7 @@ const Ss = class Ss extends At {
|
|
|
3336
3387
|
* This UUID is used to register the component within the Components system.
|
|
3337
3388
|
*/
|
|
3338
3389
|
C(Ss, "uuid", "b8c764e0-6b24-4e77-9a32-35fa728ee5b4");
|
|
3339
|
-
let
|
|
3390
|
+
let Ye = Ss;
|
|
3340
3391
|
class Ka {
|
|
3341
3392
|
constructor(i, t) {
|
|
3342
3393
|
C(this, "_list");
|
|
@@ -3391,7 +3442,7 @@ class Ja {
|
|
|
3391
3442
|
t.intensity = i;
|
|
3392
3443
|
}
|
|
3393
3444
|
}
|
|
3394
|
-
class tc extends
|
|
3445
|
+
class tc extends Ge {
|
|
3395
3446
|
constructor() {
|
|
3396
3447
|
super(...arguments);
|
|
3397
3448
|
C(this, "_config", {
|
|
@@ -3444,7 +3495,7 @@ class ec extends Ga {
|
|
|
3444
3495
|
constructor(t) {
|
|
3445
3496
|
super(t);
|
|
3446
3497
|
/** {@link Configurable.onSetup} */
|
|
3447
|
-
C(this, "onSetup", new
|
|
3498
|
+
C(this, "onSetup", new j());
|
|
3448
3499
|
/** {@link Configurable.isSetup} */
|
|
3449
3500
|
C(this, "isSetup", !1);
|
|
3450
3501
|
/**
|
|
@@ -3482,10 +3533,10 @@ class ec extends Ga {
|
|
|
3482
3533
|
this.three.add(a, f), this.directionalLights.set(a.uuid, a), this.ambientLights.set(f.uuid, f), this.isSetup = !0, this.onSetup.trigger();
|
|
3483
3534
|
}
|
|
3484
3535
|
dispose() {
|
|
3485
|
-
super.dispose(), this.components.get(
|
|
3536
|
+
super.dispose(), this.components.get(Ye).list.delete(this.config.uuid);
|
|
3486
3537
|
}
|
|
3487
3538
|
}
|
|
3488
|
-
class
|
|
3539
|
+
class Rh extends Ya {
|
|
3489
3540
|
/**
|
|
3490
3541
|
* Constructor for the SimpleRenderer class.
|
|
3491
3542
|
*
|
|
@@ -3511,7 +3562,7 @@ class mh extends Ya {
|
|
|
3511
3562
|
C(this, "_canvas");
|
|
3512
3563
|
C(this, "_parameters");
|
|
3513
3564
|
C(this, "_resizeObserver", null);
|
|
3514
|
-
C(this, "onContainerUpdated", new
|
|
3565
|
+
C(this, "onContainerUpdated", new j());
|
|
3515
3566
|
C(this, "_resizing", !1);
|
|
3516
3567
|
/** {@link Resizeable.resize} */
|
|
3517
3568
|
C(this, "resize", (t) => {
|
|
@@ -3607,18 +3658,18 @@ const ht = {
|
|
|
3607
3658
|
TOUCH_ZOOM_TRUCK: 8192,
|
|
3608
3659
|
TOUCH_ZOOM_OFFSET: 16384,
|
|
3609
3660
|
TOUCH_ZOOM_ROTATE: 32768
|
|
3610
|
-
}),
|
|
3661
|
+
}), Ke = {
|
|
3611
3662
|
NONE: 0,
|
|
3612
3663
|
IN: 1,
|
|
3613
3664
|
OUT: -1
|
|
3614
3665
|
};
|
|
3615
|
-
function
|
|
3666
|
+
function ve(c) {
|
|
3616
3667
|
return c.isPerspectiveCamera;
|
|
3617
3668
|
}
|
|
3618
3669
|
function Oe(c) {
|
|
3619
3670
|
return c.isOrthographicCamera;
|
|
3620
3671
|
}
|
|
3621
|
-
const
|
|
3672
|
+
const Je = Math.PI * 2, Cr = Math.PI / 2, eo = 1e-5, Ri = Math.PI / 180;
|
|
3622
3673
|
function Jt(c, i, t) {
|
|
3623
3674
|
return Math.max(i, Math.min(t, c));
|
|
3624
3675
|
}
|
|
@@ -3631,13 +3682,13 @@ function pt(c, i, t = eo) {
|
|
|
3631
3682
|
function Tr(c, i) {
|
|
3632
3683
|
return Math.round(c / i) * i;
|
|
3633
3684
|
}
|
|
3634
|
-
function
|
|
3685
|
+
function gi(c) {
|
|
3635
3686
|
return isFinite(c) ? c : c < 0 ? -Number.MAX_VALUE : Number.MAX_VALUE;
|
|
3636
3687
|
}
|
|
3637
|
-
function
|
|
3688
|
+
function Ai(c) {
|
|
3638
3689
|
return Math.abs(c) < Number.MAX_VALUE ? c : c * (1 / 0);
|
|
3639
3690
|
}
|
|
3640
|
-
function
|
|
3691
|
+
function ns(c, i, t, e, s = 1 / 0, n) {
|
|
3641
3692
|
e = Math.max(1e-4, e);
|
|
3642
3693
|
const r = 2 / e, o = r * n, a = 1 / (1 + o + 0.48 * o * o + 0.235 * o * o * o);
|
|
3643
3694
|
let l = c - i;
|
|
@@ -3660,8 +3711,8 @@ function mr(c, i, t, e, s = 1 / 0, n, r) {
|
|
|
3660
3711
|
h = c.x - u, f = c.y - d, I = c.z - E;
|
|
3661
3712
|
const N = (t.x + o * u) * n, y = (t.y + o * d) * n, M = (t.z + o * E) * n;
|
|
3662
3713
|
t.x = (t.x - o * N) * l, t.y = (t.y - o * y) * l, t.z = (t.z - o * M) * l, r.x = h + (u + N) * l, r.y = f + (d + y) * l, r.z = I + (E + M) * l;
|
|
3663
|
-
const L = T - c.x, b = p - c.y,
|
|
3664
|
-
return L * O + b * w +
|
|
3714
|
+
const L = T - c.x, b = p - c.y, Y = m - c.z, O = r.x - T, w = r.y - p, g = r.z - m;
|
|
3715
|
+
return L * O + b * w + Y * g > 0 && (r.x = T, r.y = p, r.z = m, t.x = (r.x - T) / n, t.y = (r.y - p) / n, t.z = (r.z - m) / n), r;
|
|
3665
3716
|
}
|
|
3666
3717
|
function rn(c, i) {
|
|
3667
3718
|
i.set(0, 0), c.forEach((t) => {
|
|
@@ -3735,8 +3786,8 @@ class ic {
|
|
|
3735
3786
|
}
|
|
3736
3787
|
}
|
|
3737
3788
|
}
|
|
3738
|
-
const sc = "2.7.3",
|
|
3739
|
-
let lt, Rr,
|
|
3789
|
+
const sc = "2.7.3", rs = 1 / 8, io = typeof window < "u", nc = io && /Mac/.test(navigator.platform), rc = !(io && "PointerEvent" in window);
|
|
3790
|
+
let lt, Rr, os, an, Yt, ut, Et, ti, Fi, le, he, Ue, gr, Ar, Xt, Si, ei, Fr, cn, Sr, ln, hn, as;
|
|
3740
3791
|
class vt extends ic {
|
|
3741
3792
|
/**
|
|
3742
3793
|
* Injects THREE as the dependency. You can then proceed to use CameraControls.
|
|
@@ -3779,7 +3830,7 @@ class vt extends ic {
|
|
|
3779
3830
|
* @category Statics
|
|
3780
3831
|
*/
|
|
3781
3832
|
static install(i) {
|
|
3782
|
-
lt = i.THREE, Rr = Object.freeze(new lt.Vector3(0, 0, 0)),
|
|
3833
|
+
lt = i.THREE, Rr = Object.freeze(new lt.Vector3(0, 0, 0)), os = Object.freeze(new lt.Vector3(0, 1, 0)), an = Object.freeze(new lt.Vector3(0, 0, 1)), Yt = new lt.Vector2(), ut = new lt.Vector3(), Et = new lt.Vector3(), ti = new lt.Vector3(), Fi = new lt.Vector3(), le = new lt.Vector3(), he = new lt.Vector3(), Ue = new lt.Vector3(), gr = new lt.Vector3(), Ar = new lt.Vector3(), Xt = new lt.Spherical(), Si = new lt.Spherical(), ei = new lt.Box3(), Fr = new lt.Box3(), cn = new lt.Sphere(), Sr = new lt.Quaternion(), ln = new lt.Quaternion(), hn = new lt.Matrix4(), as = new lt.Raycaster();
|
|
3783
3834
|
}
|
|
3784
3835
|
/**
|
|
3785
3836
|
* list all ACTIONs
|
|
@@ -3807,11 +3858,11 @@ class vt extends ic {
|
|
|
3807
3858
|
*/
|
|
3808
3859
|
constructor(i, t) {
|
|
3809
3860
|
super(), this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.minDistance = Number.EPSILON, this.maxDistance = 1 / 0, this.infinityDolly = !1, this.minZoom = 0.01, this.maxZoom = 1 / 0, this.smoothTime = 0.25, this.draggingSmoothTime = 0.125, this.maxSpeed = 1 / 0, this.azimuthRotateSpeed = 1, this.polarRotateSpeed = 1, this.dollySpeed = 1, this.dollyDragInverted = !1, this.truckSpeed = 2, this.dollyToCursor = !1, this.dragToOffset = !1, this.verticalDragToForward = !1, this.boundaryFriction = 0, this.restThreshold = 0.01, this.colliderMeshes = [], this.cancel = () => {
|
|
3810
|
-
}, this._enabled = !0, this._state = H.NONE, this._viewport = null, this._changedDolly = 0, this._changedZoom = 0, this._hasRested = !0, this._boundaryEnclosesCamera = !1, this._needsUpdate = !0, this._updatedLastTime = !1, this._elementRect = new DOMRect(), this._isDragging = !1, this._dragNeedsUpdate = !0, this._activePointers = [], this._lockedPointer = null, this._interactiveArea = new DOMRect(0, 0, 1, 1), this._isUserControllingRotate = !1, this._isUserControllingDolly = !1, this._isUserControllingTruck = !1, this._isUserControllingOffset = !1, this._isUserControllingZoom = !1, this._lastDollyDirection =
|
|
3861
|
+
}, this._enabled = !0, this._state = H.NONE, this._viewport = null, this._changedDolly = 0, this._changedZoom = 0, this._hasRested = !0, this._boundaryEnclosesCamera = !1, this._needsUpdate = !0, this._updatedLastTime = !1, this._elementRect = new DOMRect(), this._isDragging = !1, this._dragNeedsUpdate = !0, this._activePointers = [], this._lockedPointer = null, this._interactiveArea = new DOMRect(0, 0, 1, 1), this._isUserControllingRotate = !1, this._isUserControllingDolly = !1, this._isUserControllingTruck = !1, this._isUserControllingOffset = !1, this._isUserControllingZoom = !1, this._lastDollyDirection = Ke.NONE, this._thetaVelocity = { value: 0 }, this._phiVelocity = { value: 0 }, this._radiusVelocity = { value: 0 }, this._targetVelocity = new lt.Vector3(), this._focalOffsetVelocity = new lt.Vector3(), this._zoomVelocity = { value: 0 }, this._truckInternal = (R, S, N) => {
|
|
3811
3862
|
let y, M;
|
|
3812
|
-
if (
|
|
3813
|
-
const L = ut.copy(this._camera.position).sub(this._target), b = this._camera.getEffectiveFOV() *
|
|
3814
|
-
y = this.truckSpeed * R *
|
|
3863
|
+
if (ve(this._camera)) {
|
|
3864
|
+
const L = ut.copy(this._camera.position).sub(this._target), b = this._camera.getEffectiveFOV() * Ri, Y = L.length() * Math.tan(b * 0.5);
|
|
3865
|
+
y = this.truckSpeed * R * Y / this._elementRect.height, M = this.truckSpeed * S * Y / this._elementRect.height;
|
|
3815
3866
|
} else if (Oe(this._camera)) {
|
|
3816
3867
|
const L = this._camera;
|
|
3817
3868
|
y = R * (L.right - L.left) / L.zoom / this._elementRect.width, M = S * (L.top - L.bottom) / L.zoom / this._elementRect.height;
|
|
@@ -3819,15 +3870,15 @@ class vt extends ic {
|
|
|
3819
3870
|
return;
|
|
3820
3871
|
this.verticalDragToForward ? (N ? this.setFocalOffset(this._focalOffsetEnd.x + y, this._focalOffsetEnd.y, this._focalOffsetEnd.z, !0) : this.truck(y, 0, !0), this.forward(-M, !0)) : N ? this.setFocalOffset(this._focalOffsetEnd.x + y, this._focalOffsetEnd.y + M, this._focalOffsetEnd.z, !0) : this.truck(y, M, !0);
|
|
3821
3872
|
}, this._rotateInternal = (R, S) => {
|
|
3822
|
-
const N =
|
|
3873
|
+
const N = Je * this.azimuthRotateSpeed * R / this._elementRect.height, y = Je * this.polarRotateSpeed * S / this._elementRect.height;
|
|
3823
3874
|
this.rotate(N, y, !0);
|
|
3824
3875
|
}, this._dollyInternal = (R, S, N) => {
|
|
3825
|
-
const y = Math.pow(0.95, -R * this.dollySpeed), M = this._sphericalEnd.radius, L = this._sphericalEnd.radius * y, b = Jt(L, this.minDistance, this.maxDistance),
|
|
3826
|
-
this.infinityDolly && this.dollyToCursor ? this._dollyToNoClamp(L, !0) : this.infinityDolly && !this.dollyToCursor ? (this.dollyInFixed(
|
|
3876
|
+
const y = Math.pow(0.95, -R * this.dollySpeed), M = this._sphericalEnd.radius, L = this._sphericalEnd.radius * y, b = Jt(L, this.minDistance, this.maxDistance), Y = b - L;
|
|
3877
|
+
this.infinityDolly && this.dollyToCursor ? this._dollyToNoClamp(L, !0) : this.infinityDolly && !this.dollyToCursor ? (this.dollyInFixed(Y, !0), this._dollyToNoClamp(b, !0)) : this._dollyToNoClamp(b, !0), this.dollyToCursor && (this._changedDolly += (this.infinityDolly ? L : b) - M, this._dollyControlCoord.set(S, N)), this._lastDollyDirection = Math.sign(-R);
|
|
3827
3878
|
}, this._zoomInternal = (R, S, N) => {
|
|
3828
3879
|
const y = Math.pow(0.95, R * this.dollySpeed), M = this._zoom, L = this._zoom * y;
|
|
3829
3880
|
this.zoomTo(L, !0), this.dollyToCursor && (this._changedZoom += L - M, this._dollyControlCoord.set(S, N));
|
|
3830
|
-
}, typeof lt > "u" && console.error("camera-controls: `THREE` is undefined. You must first run `CameraControls.install( { THREE: THREE } )`. Check the docs for further information."), this._camera = i, this._yAxisUpSpace = new lt.Quaternion().setFromUnitVectors(this._camera.up,
|
|
3881
|
+
}, typeof lt > "u" && console.error("camera-controls: `THREE` is undefined. You must first run `CameraControls.install( { THREE: THREE } )`. Check the docs for further information."), this._camera = i, this._yAxisUpSpace = new lt.Quaternion().setFromUnitVectors(this._camera.up, os), this._yAxisUpSpaceInverse = this._yAxisUpSpace.clone().invert(), this._state = H.NONE, this._target = new lt.Vector3(), this._targetEnd = this._target.clone(), this._focalOffset = new lt.Vector3(), this._focalOffsetEnd = this._focalOffset.clone(), this._spherical = new lt.Spherical().setFromVector3(ut.copy(this._camera.position).applyQuaternion(this._yAxisUpSpace)), this._sphericalEnd = this._spherical.clone(), this._lastDistance = this._spherical.radius, this._zoom = this._camera.zoom, this._zoomEnd = this._zoom, this._lastZoom = this._zoom, this._nearPlaneCorners = [
|
|
3831
3882
|
new lt.Vector3(),
|
|
3832
3883
|
new lt.Vector3(),
|
|
3833
3884
|
new lt.Vector3(),
|
|
@@ -3836,10 +3887,10 @@ class vt extends ic {
|
|
|
3836
3887
|
left: H.ROTATE,
|
|
3837
3888
|
middle: H.DOLLY,
|
|
3838
3889
|
right: H.TRUCK,
|
|
3839
|
-
wheel:
|
|
3890
|
+
wheel: ve(this._camera) ? H.DOLLY : Oe(this._camera) ? H.ZOOM : H.NONE
|
|
3840
3891
|
}, this.touches = {
|
|
3841
3892
|
one: H.TOUCH_ROTATE,
|
|
3842
|
-
two:
|
|
3893
|
+
two: ve(this._camera) ? H.TOUCH_DOLLY_TRUCK : Oe(this._camera) ? H.TOUCH_ZOOM_TRUCK : H.NONE,
|
|
3843
3894
|
three: H.TOUCH_TRUCK
|
|
3844
3895
|
};
|
|
3845
3896
|
const e = new lt.Vector2(), s = new lt.Vector2(), n = new lt.Vector2(), r = (R) => {
|
|
@@ -3942,8 +3993,8 @@ class vt extends ic {
|
|
|
3942
3993
|
if (!this._domElement || !this._enabled || this.mouseButtons.wheel === H.NONE)
|
|
3943
3994
|
return;
|
|
3944
3995
|
if (this._interactiveArea.left !== 0 || this._interactiveArea.top !== 0 || this._interactiveArea.width !== 1 || this._interactiveArea.height !== 1) {
|
|
3945
|
-
const L = this._domElement.getBoundingClientRect(), b = R.clientX / L.width,
|
|
3946
|
-
if (b < this._interactiveArea.left || b > this._interactiveArea.right ||
|
|
3996
|
+
const L = this._domElement.getBoundingClientRect(), b = R.clientX / L.width, Y = R.clientY / L.height;
|
|
3997
|
+
if (b < this._interactiveArea.left || b > this._interactiveArea.right || Y < this._interactiveArea.top || Y > this._interactiveArea.bottom)
|
|
3947
3998
|
return;
|
|
3948
3999
|
}
|
|
3949
4000
|
if (R.preventDefault(), this.dollyToCursor || this.mouseButtons.wheel === H.ROTATE || this.mouseButtons.wheel === H.TRUCK) {
|
|
@@ -4016,13 +4067,13 @@ class vt extends ic {
|
|
|
4016
4067
|
const S = this._domElement && document.pointerLockElement === this._domElement ? this._lockedPointer || this._activePointers[0] : null, N = S ? -S.deltaX : s.x - Yt.x, y = S ? -S.deltaY : s.y - Yt.y;
|
|
4017
4068
|
if (s.copy(Yt), ((this._state & H.ROTATE) === H.ROTATE || (this._state & H.TOUCH_ROTATE) === H.TOUCH_ROTATE || (this._state & H.TOUCH_DOLLY_ROTATE) === H.TOUCH_DOLLY_ROTATE || (this._state & H.TOUCH_ZOOM_ROTATE) === H.TOUCH_ZOOM_ROTATE) && (this._rotateInternal(N, y), this._isUserControllingRotate = !0), (this._state & H.DOLLY) === H.DOLLY || (this._state & H.ZOOM) === H.ZOOM) {
|
|
4018
4069
|
const M = this.dollyToCursor ? (e.x - this._elementRect.x) / this._elementRect.width * 2 - 1 : 0, L = this.dollyToCursor ? (e.y - this._elementRect.y) / this._elementRect.height * -2 + 1 : 0, b = this.dollyDragInverted ? -1 : 1;
|
|
4019
|
-
(this._state & H.DOLLY) === H.DOLLY ? (this._dollyInternal(b * y *
|
|
4070
|
+
(this._state & H.DOLLY) === H.DOLLY ? (this._dollyInternal(b * y * rs, M, L), this._isUserControllingDolly = !0) : (this._zoomInternal(b * y * rs, M, L), this._isUserControllingZoom = !0);
|
|
4020
4071
|
}
|
|
4021
4072
|
if ((this._state & H.TOUCH_DOLLY) === H.TOUCH_DOLLY || (this._state & H.TOUCH_ZOOM) === H.TOUCH_ZOOM || (this._state & H.TOUCH_DOLLY_TRUCK) === H.TOUCH_DOLLY_TRUCK || (this._state & H.TOUCH_ZOOM_TRUCK) === H.TOUCH_ZOOM_TRUCK || (this._state & H.TOUCH_DOLLY_OFFSET) === H.TOUCH_DOLLY_OFFSET || (this._state & H.TOUCH_ZOOM_OFFSET) === H.TOUCH_ZOOM_OFFSET || (this._state & H.TOUCH_DOLLY_ROTATE) === H.TOUCH_DOLLY_ROTATE || (this._state & H.TOUCH_ZOOM_ROTATE) === H.TOUCH_ZOOM_ROTATE) {
|
|
4022
|
-
const M = Yt.x - this._activePointers[1].clientX, L = Yt.y - this._activePointers[1].clientY, b = Math.sqrt(M * M + L * L),
|
|
4073
|
+
const M = Yt.x - this._activePointers[1].clientX, L = Yt.y - this._activePointers[1].clientY, b = Math.sqrt(M * M + L * L), Y = n.y - b;
|
|
4023
4074
|
n.set(0, b);
|
|
4024
4075
|
const O = this.dollyToCursor ? (s.x - this._elementRect.x) / this._elementRect.width * 2 - 1 : 0, w = this.dollyToCursor ? (s.y - this._elementRect.y) / this._elementRect.height * -2 + 1 : 0;
|
|
4025
|
-
(this._state & H.TOUCH_DOLLY) === H.TOUCH_DOLLY || (this._state & H.TOUCH_DOLLY_ROTATE) === H.TOUCH_DOLLY_ROTATE || (this._state & H.TOUCH_DOLLY_TRUCK) === H.TOUCH_DOLLY_TRUCK || (this._state & H.TOUCH_DOLLY_OFFSET) === H.TOUCH_DOLLY_OFFSET ? (this._dollyInternal(
|
|
4076
|
+
(this._state & H.TOUCH_DOLLY) === H.TOUCH_DOLLY || (this._state & H.TOUCH_DOLLY_ROTATE) === H.TOUCH_DOLLY_ROTATE || (this._state & H.TOUCH_DOLLY_TRUCK) === H.TOUCH_DOLLY_TRUCK || (this._state & H.TOUCH_DOLLY_OFFSET) === H.TOUCH_DOLLY_OFFSET ? (this._dollyInternal(Y * rs, O, w), this._isUserControllingDolly = !0) : (this._zoomInternal(Y * rs, O, w), this._isUserControllingZoom = !0);
|
|
4026
4077
|
}
|
|
4027
4078
|
((this._state & H.TRUCK) === H.TRUCK || (this._state & H.TOUCH_TRUCK) === H.TOUCH_TRUCK || (this._state & H.TOUCH_DOLLY_TRUCK) === H.TOUCH_DOLLY_TRUCK || (this._state & H.TOUCH_ZOOM_TRUCK) === H.TOUCH_ZOOM_TRUCK) && (this._truckInternal(N, y, !1), this._isUserControllingTruck = !0), ((this._state & H.OFFSET) === H.OFFSET || (this._state & H.TOUCH_OFFSET) === H.TOUCH_OFFSET || (this._state & H.TOUCH_DOLLY_OFFSET) === H.TOUCH_DOLLY_OFFSET || (this._state & H.TOUCH_ZOOM_OFFSET) === H.TOUCH_ZOOM_OFFSET) && (this._truckInternal(N, y, !0), this._isUserControllingOffset = !0), this.dispatchEvent({ type: "control" });
|
|
4028
4079
|
}, p = () => {
|
|
@@ -4283,7 +4334,7 @@ class vt extends ic {
|
|
|
4283
4334
|
* @category Methods
|
|
4284
4335
|
*/
|
|
4285
4336
|
dollyTo(i, t = !1) {
|
|
4286
|
-
return this._isUserControllingDolly = !1, this._lastDollyDirection =
|
|
4337
|
+
return this._isUserControllingDolly = !1, this._lastDollyDirection = Ke.NONE, this._changedDolly = 0, this._dollyToNoClamp(Jt(i, this.minDistance, this.maxDistance), t);
|
|
4287
4338
|
}
|
|
4288
4339
|
_dollyToNoClamp(i, t = !1) {
|
|
4289
4340
|
const e = this._sphericalEnd.radius;
|
|
@@ -4306,7 +4357,7 @@ class vt extends ic {
|
|
|
4306
4357
|
* @category Methods
|
|
4307
4358
|
*/
|
|
4308
4359
|
dollyInFixed(i, t = !1) {
|
|
4309
|
-
this._targetEnd.add(this._getCameraDirection(
|
|
4360
|
+
this._targetEnd.add(this._getCameraDirection(Fi).multiplyScalar(i)), t || this._target.copy(this._targetEnd);
|
|
4310
4361
|
const e = !t || pt(this._target.x, this._targetEnd.x, this.restThreshold) && pt(this._target.y, this._targetEnd.y, this.restThreshold) && pt(this._target.z, this._targetEnd.z, this.restThreshold);
|
|
4311
4362
|
return this._createOnRestPromise(e);
|
|
4312
4363
|
}
|
|
@@ -4413,16 +4464,16 @@ class vt extends ic {
|
|
|
4413
4464
|
* @category Methods
|
|
4414
4465
|
*/
|
|
4415
4466
|
fitToBox(i, t, { cover: e = !1, paddingLeft: s = 0, paddingRight: n = 0, paddingBottom: r = 0, paddingTop: o = 0 } = {}) {
|
|
4416
|
-
const a = [], l = i.isBox3 ?
|
|
4467
|
+
const a = [], l = i.isBox3 ? ei.copy(i) : ei.setFromObject(i);
|
|
4417
4468
|
l.isEmpty() && (console.warn("camera-controls: fitTo() cannot be used with an empty box. Aborting"), Promise.resolve());
|
|
4418
4469
|
const h = Tr(this._sphericalEnd.theta, Cr), f = Tr(this._sphericalEnd.phi, Cr);
|
|
4419
4470
|
a.push(this.rotateTo(h, f, t));
|
|
4420
4471
|
const I = ut.setFromSpherical(this._sphericalEnd).normalize(), u = Sr.setFromUnitVectors(I, an), d = pt(Math.abs(I.y), 1);
|
|
4421
|
-
d && u.multiply(ln.setFromAxisAngle(
|
|
4472
|
+
d && u.multiply(ln.setFromAxisAngle(os, h)), u.multiply(this._yAxisUpSpaceInverse);
|
|
4422
4473
|
const E = Fr.makeEmpty();
|
|
4423
4474
|
Et.copy(l.min).applyQuaternion(u), E.expandByPoint(Et), Et.copy(l.min).setX(l.max.x).applyQuaternion(u), E.expandByPoint(Et), Et.copy(l.min).setY(l.max.y).applyQuaternion(u), E.expandByPoint(Et), Et.copy(l.max).setZ(l.min.z).applyQuaternion(u), E.expandByPoint(Et), Et.copy(l.min).setZ(l.max.z).applyQuaternion(u), E.expandByPoint(Et), Et.copy(l.max).setY(l.min.y).applyQuaternion(u), E.expandByPoint(Et), Et.copy(l.max).setX(l.min.x).applyQuaternion(u), E.expandByPoint(Et), Et.copy(l.max).applyQuaternion(u), E.expandByPoint(Et), E.min.x -= s, E.min.y -= r, E.max.x += n, E.max.y += o, u.setFromUnitVectors(an, I), d && u.premultiply(ln.invert()), u.premultiply(this._yAxisUpSpace);
|
|
4424
4475
|
const T = E.getSize(ut), p = E.getCenter(Et).applyQuaternion(u);
|
|
4425
|
-
if (
|
|
4476
|
+
if (ve(this._camera)) {
|
|
4426
4477
|
const m = this.getDistanceToFitBox(T.x, T.y, T.z, e);
|
|
4427
4478
|
a.push(this.moveTo(p.x, p.y, p.z, t)), a.push(this.dollyTo(m, t)), a.push(this.setFocalOffset(0, 0, 0, t));
|
|
4428
4479
|
} else if (Oe(this._camera)) {
|
|
@@ -4439,7 +4490,7 @@ class vt extends ic {
|
|
|
4439
4490
|
*/
|
|
4440
4491
|
fitToSphere(i, t) {
|
|
4441
4492
|
const e = [], n = i instanceof lt.Sphere ? cn.copy(i) : vt.createBoundingSphere(i, cn);
|
|
4442
|
-
if (e.push(this.moveTo(n.center.x, n.center.y, n.center.z, t)),
|
|
4493
|
+
if (e.push(this.moveTo(n.center.x, n.center.y, n.center.z, t)), ve(this._camera)) {
|
|
4443
4494
|
const r = this.getDistanceToFitSphere(n.radius);
|
|
4444
4495
|
e.push(this.dollyTo(r, t));
|
|
4445
4496
|
} else if (Oe(this._camera)) {
|
|
@@ -4460,7 +4511,7 @@ class vt extends ic {
|
|
|
4460
4511
|
* @category Methods
|
|
4461
4512
|
*/
|
|
4462
4513
|
setLookAt(i, t, e, s, n, r, o = !1) {
|
|
4463
|
-
this._isUserControllingRotate = !1, this._isUserControllingDolly = !1, this._isUserControllingTruck = !1, this._lastDollyDirection =
|
|
4514
|
+
this._isUserControllingRotate = !1, this._isUserControllingDolly = !1, this._isUserControllingTruck = !1, this._lastDollyDirection = Ke.NONE, this._changedDolly = 0;
|
|
4464
4515
|
const a = Et.set(s, n, r), l = ut.set(i, t, e);
|
|
4465
4516
|
this._targetEnd.copy(a), this._sphericalEnd.setFromVector3(l.sub(a).applyQuaternion(this._yAxisUpSpace)), this.normalizeRotations(), this._needsUpdate = !0, o || (this._target.copy(this._targetEnd), this._spherical.copy(this._sphericalEnd));
|
|
4466
4517
|
const h = !o || pt(this._target.x, this._targetEnd.x, this.restThreshold) && pt(this._target.y, this._targetEnd.y, this.restThreshold) && pt(this._target.z, this._targetEnd.z, this.restThreshold) && pt(this._spherical.theta, this._sphericalEnd.theta, this.restThreshold) && pt(this._spherical.phi, this._sphericalEnd.phi, this.restThreshold) && pt(this._spherical.radius, this._sphericalEnd.radius, this.restThreshold);
|
|
@@ -4485,12 +4536,12 @@ class vt extends ic {
|
|
|
4485
4536
|
* @category Methods
|
|
4486
4537
|
*/
|
|
4487
4538
|
lerpLookAt(i, t, e, s, n, r, o, a, l, h, f, I, u, d = !1) {
|
|
4488
|
-
this._isUserControllingRotate = !1, this._isUserControllingDolly = !1, this._isUserControllingTruck = !1, this._lastDollyDirection =
|
|
4539
|
+
this._isUserControllingRotate = !1, this._isUserControllingDolly = !1, this._isUserControllingTruck = !1, this._lastDollyDirection = Ke.NONE, this._changedDolly = 0;
|
|
4489
4540
|
const E = ut.set(s, n, r), T = Et.set(i, t, e);
|
|
4490
4541
|
Xt.setFromVector3(T.sub(E).applyQuaternion(this._yAxisUpSpace));
|
|
4491
|
-
const p =
|
|
4492
|
-
|
|
4493
|
-
const F =
|
|
4542
|
+
const p = ti.set(h, f, I), m = Et.set(o, a, l);
|
|
4543
|
+
Si.setFromVector3(m.sub(p).applyQuaternion(this._yAxisUpSpace)), this._targetEnd.copy(E.lerp(p, u));
|
|
4544
|
+
const F = Si.theta - Xt.theta, R = Si.phi - Xt.phi, S = Si.radius - Xt.radius;
|
|
4494
4545
|
this._sphericalEnd.set(Xt.radius + S * u, Xt.phi + R * u, Xt.theta + F * u), this.normalizeRotations(), this._needsUpdate = !0, d || (this._target.copy(this._targetEnd), this._spherical.copy(this._sphericalEnd));
|
|
4495
4546
|
const N = !d || pt(this._target.x, this._targetEnd.x, this.restThreshold) && pt(this._target.y, this._targetEnd.y, this.restThreshold) && pt(this._target.z, this._targetEnd.z, this.restThreshold) && pt(this._spherical.theta, this._sphericalEnd.theta, this.restThreshold) && pt(this._spherical.phi, this._sphericalEnd.phi, this.restThreshold) && pt(this._spherical.radius, this._sphericalEnd.radius, this.restThreshold);
|
|
4496
4547
|
return this._createOnRestPromise(N);
|
|
@@ -4542,9 +4593,9 @@ class vt extends ic {
|
|
|
4542
4593
|
* @category Methods
|
|
4543
4594
|
*/
|
|
4544
4595
|
setOrbitPoint(i, t, e) {
|
|
4545
|
-
this._camera.updateMatrixWorld(), le.setFromMatrixColumn(this._camera.matrixWorldInverse, 0), he.setFromMatrixColumn(this._camera.matrixWorldInverse, 1),
|
|
4596
|
+
this._camera.updateMatrixWorld(), le.setFromMatrixColumn(this._camera.matrixWorldInverse, 0), he.setFromMatrixColumn(this._camera.matrixWorldInverse, 1), Ue.setFromMatrixColumn(this._camera.matrixWorldInverse, 2);
|
|
4546
4597
|
const s = ut.set(i, t, e), n = s.distanceTo(this._camera.position), r = s.sub(this._camera.position);
|
|
4547
|
-
le.multiplyScalar(r.x), he.multiplyScalar(r.y),
|
|
4598
|
+
le.multiplyScalar(r.x), he.multiplyScalar(r.y), Ue.multiplyScalar(r.z), ut.copy(le).add(he).add(Ue), ut.z = ut.z + n, this.dollyTo(n, !1), this.setFocalOffset(-ut.x, ut.y, -ut.z, !1), this.moveTo(i, t, e, !1);
|
|
4548
4599
|
}
|
|
4549
4600
|
/**
|
|
4550
4601
|
* Set the boundary box that encloses the target of the camera. box3 is in THREE.Box3
|
|
@@ -4585,7 +4636,7 @@ class vt extends ic {
|
|
|
4585
4636
|
getDistanceToFitBox(i, t, e, s = !1) {
|
|
4586
4637
|
if (on(this._camera, "getDistanceToFitBox"))
|
|
4587
4638
|
return this._spherical.radius;
|
|
4588
|
-
const n = i / t, r = this._camera.getEffectiveFOV() *
|
|
4639
|
+
const n = i / t, r = this._camera.getEffectiveFOV() * Ri, o = this._camera.aspect;
|
|
4589
4640
|
return ((s ? n > o : n < o) ? t : i / o) * 0.5 / Math.tan(r * 0.5) + e * 0.5;
|
|
4590
4641
|
}
|
|
4591
4642
|
/**
|
|
@@ -4597,7 +4648,7 @@ class vt extends ic {
|
|
|
4597
4648
|
getDistanceToFitSphere(i) {
|
|
4598
4649
|
if (on(this._camera, "getDistanceToFitSphere"))
|
|
4599
4650
|
return this._spherical.radius;
|
|
4600
|
-
const t = this._camera.getEffectiveFOV() *
|
|
4651
|
+
const t = this._camera.getEffectiveFOV() * Ri, e = Math.atan(Math.tan(t * 0.5) * this._camera.aspect) * 2, s = 1 < this._camera.aspect ? t : e;
|
|
4601
4652
|
return i / Math.sin(s * 0.5);
|
|
4602
4653
|
}
|
|
4603
4654
|
/**
|
|
@@ -4641,7 +4692,7 @@ class vt extends ic {
|
|
|
4641
4692
|
* @category Methods
|
|
4642
4693
|
*/
|
|
4643
4694
|
normalizeRotations() {
|
|
4644
|
-
this._sphericalEnd.theta = this._sphericalEnd.theta %
|
|
4695
|
+
this._sphericalEnd.theta = this._sphericalEnd.theta % Je, this._sphericalEnd.theta < 0 && (this._sphericalEnd.theta += Je), this._spherical.theta += Je * Math.round((this._sphericalEnd.theta - this._spherical.theta) / Je);
|
|
4645
4696
|
}
|
|
4646
4697
|
/**
|
|
4647
4698
|
* Reset all rotation and position to defaults.
|
|
@@ -4674,7 +4725,7 @@ class vt extends ic {
|
|
|
4674
4725
|
* @category Methods
|
|
4675
4726
|
*/
|
|
4676
4727
|
updateCameraUp() {
|
|
4677
|
-
this._yAxisUpSpace.setFromUnitVectors(this._camera.up,
|
|
4728
|
+
this._yAxisUpSpace.setFromUnitVectors(this._camera.up, os), this._yAxisUpSpaceInverse.copy(this._yAxisUpSpace).invert();
|
|
4678
4729
|
}
|
|
4679
4730
|
/**
|
|
4680
4731
|
* Apply current camera-up direction to the camera.
|
|
@@ -4700,19 +4751,19 @@ class vt extends ic {
|
|
|
4700
4751
|
this._thetaVelocity.value = 0, this._spherical.theta = this._sphericalEnd.theta;
|
|
4701
4752
|
else {
|
|
4702
4753
|
const f = this._isUserControllingRotate ? this.draggingSmoothTime : this.smoothTime;
|
|
4703
|
-
this._spherical.theta =
|
|
4754
|
+
this._spherical.theta = ns(this._spherical.theta, this._sphericalEnd.theta, this._thetaVelocity, f, 1 / 0, i), this._needsUpdate = !0;
|
|
4704
4755
|
}
|
|
4705
4756
|
if (gt(e))
|
|
4706
4757
|
this._phiVelocity.value = 0, this._spherical.phi = this._sphericalEnd.phi;
|
|
4707
4758
|
else {
|
|
4708
4759
|
const f = this._isUserControllingRotate ? this.draggingSmoothTime : this.smoothTime;
|
|
4709
|
-
this._spherical.phi =
|
|
4760
|
+
this._spherical.phi = ns(this._spherical.phi, this._sphericalEnd.phi, this._phiVelocity, f, 1 / 0, i), this._needsUpdate = !0;
|
|
4710
4761
|
}
|
|
4711
4762
|
if (gt(s))
|
|
4712
4763
|
this._radiusVelocity.value = 0, this._spherical.radius = this._sphericalEnd.radius;
|
|
4713
4764
|
else {
|
|
4714
4765
|
const f = this._isUserControllingDolly ? this.draggingSmoothTime : this.smoothTime;
|
|
4715
|
-
this._spherical.radius =
|
|
4766
|
+
this._spherical.radius = ns(this._spherical.radius, this._sphericalEnd.radius, this._radiusVelocity, f, this.maxSpeed, i), this._needsUpdate = !0;
|
|
4716
4767
|
}
|
|
4717
4768
|
if (gt(n.x) && gt(n.y) && gt(n.z))
|
|
4718
4769
|
this._targetVelocity.set(0, 0, 0), this._target.copy(this._targetEnd);
|
|
@@ -4730,13 +4781,13 @@ class vt extends ic {
|
|
|
4730
4781
|
this._zoomVelocity.value = 0, this._zoom = this._zoomEnd;
|
|
4731
4782
|
else {
|
|
4732
4783
|
const f = this._isUserControllingZoom ? this.draggingSmoothTime : this.smoothTime;
|
|
4733
|
-
this._zoom =
|
|
4784
|
+
this._zoom = ns(this._zoom, this._zoomEnd, this._zoomVelocity, f, 1 / 0, i);
|
|
4734
4785
|
}
|
|
4735
4786
|
if (this.dollyToCursor) {
|
|
4736
|
-
if (
|
|
4737
|
-
const f = this._spherical.radius - this._lastDistance, I = this._camera, u = this._getCameraDirection(
|
|
4787
|
+
if (ve(this._camera) && this._changedDolly !== 0) {
|
|
4788
|
+
const f = this._spherical.radius - this._lastDistance, I = this._camera, u = this._getCameraDirection(Fi), d = ut.copy(u).cross(I.up).normalize();
|
|
4738
4789
|
d.lengthSq() === 0 && (d.x = 1);
|
|
4739
|
-
const E = Et.crossVectors(d, u), T = this._sphericalEnd.radius * Math.tan(I.getEffectiveFOV() *
|
|
4790
|
+
const E = Et.crossVectors(d, u), T = this._sphericalEnd.radius * Math.tan(I.getEffectiveFOV() * Ri * 0.5), m = (this._sphericalEnd.radius - f - this._sphericalEnd.radius) / this._sphericalEnd.radius, F = ti.copy(this._targetEnd).add(d.multiplyScalar(this._dollyControlCoord.x * T * I.aspect)).add(E.multiplyScalar(this._dollyControlCoord.y * T)), R = ut.copy(this._targetEnd).lerp(F, m), S = this._lastDollyDirection === Ke.IN && this._spherical.radius <= this.minDistance, N = this._lastDollyDirection === Ke.OUT && this.maxDistance <= this._spherical.radius;
|
|
4740
4791
|
if (this.infinityDolly && (S || N)) {
|
|
4741
4792
|
this._sphericalEnd.radius -= f, this._spherical.radius -= f;
|
|
4742
4793
|
const M = Et.copy(u).multiplyScalar(-f);
|
|
@@ -4746,7 +4797,7 @@ class vt extends ic {
|
|
|
4746
4797
|
const y = Et.subVectors(R, this._targetEnd);
|
|
4747
4798
|
this._targetEnd.copy(R), this._target.add(y), this._changedDolly -= f, gt(this._changedDolly) && (this._changedDolly = 0);
|
|
4748
4799
|
} else if (Oe(this._camera) && this._changedZoom !== 0) {
|
|
4749
|
-
const f = this._zoom - this._lastZoom, I = this._camera, u = ut.set(this._dollyControlCoord.x, this._dollyControlCoord.y, (I.near + I.far) / (I.near - I.far)).unproject(I), d = Et.set(0, 0, -1).applyQuaternion(I.quaternion), E =
|
|
4800
|
+
const f = this._zoom - this._lastZoom, I = this._camera, u = ut.set(this._dollyControlCoord.x, this._dollyControlCoord.y, (I.near + I.far) / (I.near - I.far)).unproject(I), d = Et.set(0, 0, -1).applyQuaternion(I.quaternion), E = ti.copy(u).add(d.multiplyScalar(-u.dot(I.up))), p = -(this._zoom - f - this._zoom) / this._zoom, m = this._getCameraDirection(Fi), F = this._targetEnd.dot(m), R = ut.copy(this._targetEnd).lerp(E, p), S = R.dot(m), N = m.multiplyScalar(S - F);
|
|
4750
4801
|
R.sub(N), this._boundary.clampPoint(R, R);
|
|
4751
4802
|
const y = Et.subVectors(R, this._targetEnd);
|
|
4752
4803
|
this._targetEnd.copy(R), this._target.add(y), this._changedZoom -= f, gt(this._changedZoom) && (this._changedZoom = 0);
|
|
@@ -4754,7 +4805,7 @@ class vt extends ic {
|
|
|
4754
4805
|
}
|
|
4755
4806
|
this._camera.zoom !== this._zoom && (this._camera.zoom = this._zoom, this._camera.updateProjectionMatrix(), this._updateNearPlaneCorners(), this._needsUpdate = !0), this._dragNeedsUpdate = !0;
|
|
4756
4807
|
const a = this._collisionTest();
|
|
4757
|
-
this._spherical.radius = Math.min(this._spherical.radius, a), this._spherical.makeSafe(), this._camera.position.setFromSpherical(this._spherical).applyQuaternion(this._yAxisUpSpaceInverse).add(this._target), this._camera.lookAt(this._target), (!gt(this._focalOffset.x) || !gt(this._focalOffset.y) || !gt(this._focalOffset.z)) && (this._camera.updateMatrixWorld(), le.setFromMatrixColumn(this._camera.matrix, 0), he.setFromMatrixColumn(this._camera.matrix, 1),
|
|
4808
|
+
this._spherical.radius = Math.min(this._spherical.radius, a), this._spherical.makeSafe(), this._camera.position.setFromSpherical(this._spherical).applyQuaternion(this._yAxisUpSpaceInverse).add(this._target), this._camera.lookAt(this._target), (!gt(this._focalOffset.x) || !gt(this._focalOffset.y) || !gt(this._focalOffset.z)) && (this._camera.updateMatrixWorld(), le.setFromMatrixColumn(this._camera.matrix, 0), he.setFromMatrixColumn(this._camera.matrix, 1), Ue.setFromMatrixColumn(this._camera.matrix, 2), le.multiplyScalar(this._focalOffset.x), he.multiplyScalar(-this._focalOffset.y), Ue.multiplyScalar(this._focalOffset.z), ut.copy(le).add(he).add(Ue), this._camera.position.add(ut)), this._boundaryEnclosesCamera && this._encloseToBoundary(this._camera.position.copy(this._target), ut.setFromSpherical(this._spherical).applyQuaternion(this._yAxisUpSpaceInverse), 1);
|
|
4758
4809
|
const h = this._needsUpdate;
|
|
4759
4810
|
return h && !this._updatedLastTime ? (this._hasRested = !1, this.dispatchEvent({ type: "wake" }), this.dispatchEvent({ type: "update" })) : h ? (this.dispatchEvent({ type: "update" }), gt(t, this.restThreshold) && gt(e, this.restThreshold) && gt(s, this.restThreshold) && gt(n.x, this.restThreshold) && gt(n.y, this.restThreshold) && gt(n.z, this.restThreshold) && gt(r.x, this.restThreshold) && gt(r.y, this.restThreshold) && gt(r.z, this.restThreshold) && gt(o, this.restThreshold) && !this._hasRested && (this._hasRested = !0, this.dispatchEvent({ type: "rest" }))) : !h && this._updatedLastTime && this.dispatchEvent({ type: "sleep" }), this._lastDistance = this._spherical.radius, this._lastZoom = this._zoom, this._updatedLastTime = h, this._needsUpdate = !1, h;
|
|
4760
4811
|
}
|
|
@@ -4766,13 +4817,13 @@ class vt extends ic {
|
|
|
4766
4817
|
return JSON.stringify({
|
|
4767
4818
|
enabled: this._enabled,
|
|
4768
4819
|
minDistance: this.minDistance,
|
|
4769
|
-
maxDistance:
|
|
4820
|
+
maxDistance: gi(this.maxDistance),
|
|
4770
4821
|
minZoom: this.minZoom,
|
|
4771
|
-
maxZoom:
|
|
4822
|
+
maxZoom: gi(this.maxZoom),
|
|
4772
4823
|
minPolarAngle: this.minPolarAngle,
|
|
4773
|
-
maxPolarAngle:
|
|
4774
|
-
minAzimuthAngle:
|
|
4775
|
-
maxAzimuthAngle:
|
|
4824
|
+
maxPolarAngle: gi(this.maxPolarAngle),
|
|
4825
|
+
minAzimuthAngle: gi(this.minAzimuthAngle),
|
|
4826
|
+
maxAzimuthAngle: gi(this.maxAzimuthAngle),
|
|
4776
4827
|
smoothTime: this.smoothTime,
|
|
4777
4828
|
draggingSmoothTime: this.draggingSmoothTime,
|
|
4778
4829
|
dollySpeed: this.dollySpeed,
|
|
@@ -4797,7 +4848,7 @@ class vt extends ic {
|
|
|
4797
4848
|
*/
|
|
4798
4849
|
fromJSON(i, t = !1) {
|
|
4799
4850
|
const e = JSON.parse(i);
|
|
4800
|
-
this.enabled = e.enabled, this.minDistance = e.minDistance, this.maxDistance =
|
|
4851
|
+
this.enabled = e.enabled, this.minDistance = e.minDistance, this.maxDistance = Ai(e.maxDistance), this.minZoom = e.minZoom, this.maxZoom = Ai(e.maxZoom), this.minPolarAngle = e.minPolarAngle, this.maxPolarAngle = Ai(e.maxPolarAngle), this.minAzimuthAngle = Ai(e.minAzimuthAngle), this.maxAzimuthAngle = Ai(e.maxAzimuthAngle), this.smoothTime = e.smoothTime, this.draggingSmoothTime = e.draggingSmoothTime, this.dollySpeed = e.dollySpeed, this.truckSpeed = e.truckSpeed, this.dollyToCursor = e.dollyToCursor, this.verticalDragToForward = e.verticalDragToForward, this._target0.fromArray(e.target0), this._position0.fromArray(e.position0), this._zoom0 = e.zoom0, this._focalOffset0.fromArray(e.focalOffset0), this.moveTo(e.target[0], e.target[1], e.target[2], t), Xt.setFromVector3(ut.fromArray(e.position).sub(this._targetEnd).applyQuaternion(this._yAxisUpSpace)), this.rotateTo(Xt.theta, Xt.phi, t), this.dollyTo(Xt.radius, t), this.zoomTo(e.zoom, t), this.setFocalOffset(e.focalOffset[0], e.focalOffset[1], e.focalOffset[2], t), this._needsUpdate = !0;
|
|
4801
4852
|
}
|
|
4802
4853
|
/**
|
|
4803
4854
|
* Attach all internal event handlers to enable drag control.
|
|
@@ -4844,7 +4895,7 @@ class vt extends ic {
|
|
|
4844
4895
|
const s = t.lengthSq();
|
|
4845
4896
|
if (s === 0)
|
|
4846
4897
|
return i;
|
|
4847
|
-
const n = Et.copy(t).add(i), o = this._boundary.clampPoint(n,
|
|
4898
|
+
const n = Et.copy(t).add(i), o = this._boundary.clampPoint(n, ti).sub(n), a = o.lengthSq();
|
|
4848
4899
|
if (a === 0)
|
|
4849
4900
|
return i.add(t);
|
|
4850
4901
|
if (a === s)
|
|
@@ -4857,8 +4908,8 @@ class vt extends ic {
|
|
|
4857
4908
|
}
|
|
4858
4909
|
}
|
|
4859
4910
|
_updateNearPlaneCorners() {
|
|
4860
|
-
if (
|
|
4861
|
-
const i = this._camera, t = i.near, e = i.getEffectiveFOV() *
|
|
4911
|
+
if (ve(this._camera)) {
|
|
4912
|
+
const i = this._camera, t = i.near, e = i.getEffectiveFOV() * Ri, s = Math.tan(e * 0.5) * t, n = s * i.aspect;
|
|
4862
4913
|
this._nearPlaneCorners[0].set(-n, -s, 0), this._nearPlaneCorners[1].set(n, -s, 0), this._nearPlaneCorners[2].set(n, s, 0), this._nearPlaneCorners[3].set(-n, s, 0);
|
|
4863
4914
|
} else if (Oe(this._camera)) {
|
|
4864
4915
|
const i = this._camera, t = 1 / i.zoom, e = i.left * t, s = i.right * t, n = i.top * t, r = i.bottom * t;
|
|
@@ -4870,14 +4921,14 @@ class vt extends ic {
|
|
|
4870
4921
|
let i = 1 / 0;
|
|
4871
4922
|
if (!(this.colliderMeshes.length >= 1) || on(this._camera, "_collisionTest"))
|
|
4872
4923
|
return i;
|
|
4873
|
-
const e = this._getTargetDirection(
|
|
4924
|
+
const e = this._getTargetDirection(Fi);
|
|
4874
4925
|
hn.lookAt(Rr, e, this._camera.up);
|
|
4875
4926
|
for (let s = 0; s < 4; s++) {
|
|
4876
4927
|
const n = Et.copy(this._nearPlaneCorners[s]);
|
|
4877
4928
|
n.applyMatrix4(hn);
|
|
4878
|
-
const r =
|
|
4879
|
-
|
|
4880
|
-
const o =
|
|
4929
|
+
const r = ti.addVectors(this._target, n);
|
|
4930
|
+
as.set(r, e), as.far = this._spherical.radius + 1;
|
|
4931
|
+
const o = as.intersectObjects(this.colliderMeshes);
|
|
4881
4932
|
o.length !== 0 && o[0].distance < i && (i = o[0].distance);
|
|
4882
4933
|
}
|
|
4883
4934
|
return i;
|
|
@@ -4938,9 +4989,9 @@ class vt extends ic {
|
|
|
4938
4989
|
}
|
|
4939
4990
|
static createBoundingSphere(i, t = new lt.Sphere()) {
|
|
4940
4991
|
const e = t, s = e.center;
|
|
4941
|
-
|
|
4942
|
-
r.isMesh &&
|
|
4943
|
-
}),
|
|
4992
|
+
ei.makeEmpty(), i.traverseVisible((r) => {
|
|
4993
|
+
r.isMesh && ei.expandByObject(r);
|
|
4994
|
+
}), ei.getCenter(s);
|
|
4944
4995
|
let n = 0;
|
|
4945
4996
|
return i.traverseVisible((r) => {
|
|
4946
4997
|
if (!r.isMesh)
|
|
@@ -4953,20 +5004,20 @@ class vt extends ic {
|
|
|
4953
5004
|
}), e.radius = Math.sqrt(n), e;
|
|
4954
5005
|
}
|
|
4955
5006
|
}
|
|
4956
|
-
class
|
|
5007
|
+
class xi extends Va {
|
|
4957
5008
|
constructor(t) {
|
|
4958
5009
|
super(t);
|
|
4959
5010
|
/** {@link Updateable.onBeforeUpdate} */
|
|
4960
|
-
C(this, "onBeforeUpdate", new
|
|
5011
|
+
C(this, "onBeforeUpdate", new j());
|
|
4961
5012
|
/** {@link Updateable.onAfterUpdate} */
|
|
4962
|
-
C(this, "onAfterUpdate", new
|
|
5013
|
+
C(this, "onAfterUpdate", new j());
|
|
4963
5014
|
/**
|
|
4964
5015
|
* Event that is triggered when the aspect of the camera has been updated.
|
|
4965
5016
|
* This event is useful when you need to perform actions after the aspect of the camera has been changed.
|
|
4966
5017
|
*/
|
|
4967
|
-
C(this, "onAspectUpdated", new
|
|
5018
|
+
C(this, "onAspectUpdated", new j());
|
|
4968
5019
|
/** {@link Disposable.onDisposed} */
|
|
4969
|
-
C(this, "onDisposed", new
|
|
5020
|
+
C(this, "onDisposed", new j());
|
|
4970
5021
|
/**
|
|
4971
5022
|
* A three.js PerspectiveCamera or OrthographicCamera instance.
|
|
4972
5023
|
* This camera is used for rendering the scene.
|
|
@@ -5053,7 +5104,7 @@ class Ui extends Va {
|
|
|
5053
5104
|
throw new Error("This camera needs a world to work!");
|
|
5054
5105
|
if (!this.currentWorld.renderer)
|
|
5055
5106
|
throw new Error("This camera needs a renderer to work!");
|
|
5056
|
-
vt.install({ THREE:
|
|
5107
|
+
vt.install({ THREE: xi.getSubsetOfThree() });
|
|
5057
5108
|
const { domElement: t } = this.currentWorld.renderer.three, e = new vt(this.three, t);
|
|
5058
5109
|
return e.smoothTime = 0.2, e.dollyToCursor = !0, e.infinityDolly = !0, e.minDistance = 6, e;
|
|
5059
5110
|
}
|
|
@@ -5080,11 +5131,11 @@ const Os = class Os extends At {
|
|
|
5080
5131
|
constructor(t) {
|
|
5081
5132
|
super(t);
|
|
5082
5133
|
/** {@link Updateable.onAfterUpdate} */
|
|
5083
|
-
C(this, "onAfterUpdate", new
|
|
5134
|
+
C(this, "onAfterUpdate", new j());
|
|
5084
5135
|
/** {@link Updateable.onBeforeUpdate} */
|
|
5085
|
-
C(this, "onBeforeUpdate", new
|
|
5136
|
+
C(this, "onBeforeUpdate", new j());
|
|
5086
5137
|
/** {@link Disposable.onDisposed} */
|
|
5087
|
-
C(this, "onDisposed", new
|
|
5138
|
+
C(this, "onDisposed", new j());
|
|
5088
5139
|
/**
|
|
5089
5140
|
* A collection of worlds managed by this component.
|
|
5090
5141
|
* The key is the unique identifier (UUID) of the world, and the value is the World instance.
|
|
@@ -5170,7 +5221,7 @@ async function so(c, i, t, e, s, n, r, o) {
|
|
|
5170
5221
|
const a = c.createBuffer();
|
|
5171
5222
|
return c.bindBuffer(c.PIXEL_PACK_BUFFER, a), c.bufferData(c.PIXEL_PACK_BUFFER, o.byteLength, c.STREAM_READ), c.readPixels(i, t, e, s, n, r, 0), c.bindBuffer(c.PIXEL_PACK_BUFFER, null), await ac(c, c.PIXEL_PACK_BUFFER, a, 0, o), c.deleteBuffer(a), o;
|
|
5172
5223
|
}
|
|
5173
|
-
class cc extends
|
|
5224
|
+
class cc extends Ge {
|
|
5174
5225
|
constructor() {
|
|
5175
5226
|
super(...arguments);
|
|
5176
5227
|
C(this, "_config", {
|
|
@@ -5288,15 +5339,15 @@ class cc extends Ye {
|
|
|
5288
5339
|
class lc {
|
|
5289
5340
|
constructor(i, t) {
|
|
5290
5341
|
/** {@link Configurable.onSetup} */
|
|
5291
|
-
C(this, "onSetup", new
|
|
5342
|
+
C(this, "onSetup", new j());
|
|
5292
5343
|
/** {@link Disposable.onDisposed} */
|
|
5293
|
-
C(this, "onDisposed", new
|
|
5344
|
+
C(this, "onDisposed", new j());
|
|
5294
5345
|
/**
|
|
5295
5346
|
* Fires after making the visibility check to the meshes. It lists the
|
|
5296
5347
|
* meshes that are currently visible, and the ones that were visible
|
|
5297
5348
|
* just before but not anymore.
|
|
5298
5349
|
*/
|
|
5299
|
-
C(this, "onViewUpdated", new
|
|
5350
|
+
C(this, "onViewUpdated", new Pe());
|
|
5300
5351
|
/**
|
|
5301
5352
|
* Whether this renderer is active or not. If not, it won't render anything.
|
|
5302
5353
|
*/
|
|
@@ -5401,7 +5452,7 @@ class lc {
|
|
|
5401
5452
|
}
|
|
5402
5453
|
/** {@link Disposable.dispose} */
|
|
5403
5454
|
dispose() {
|
|
5404
|
-
this.enabled = !1, this.config.autoUpdate = !1, this.components.get(
|
|
5455
|
+
this.enabled = !1, this.config.autoUpdate = !1, this.components.get(Ye).list.delete(this.config.uuid);
|
|
5405
5456
|
for (const t of this.scene.children)
|
|
5406
5457
|
t.removeFromParent();
|
|
5407
5458
|
this.onViewUpdated.reset(), this.worker.terminate(), this.renderer.forceContextLoss(), this.renderer.dispose(), this.renderTarget.dispose(), this.buffer = null, this.onDisposed.reset();
|
|
@@ -5445,7 +5496,7 @@ class hc extends lc {
|
|
|
5445
5496
|
* Event triggered when the visibility of meshes is updated.
|
|
5446
5497
|
* Contains two sets: seen and unseen.
|
|
5447
5498
|
*/
|
|
5448
|
-
C(this, "onViewUpdated", new
|
|
5499
|
+
C(this, "onViewUpdated", new j());
|
|
5449
5500
|
/**
|
|
5450
5501
|
* Map of color code to THREE.InstancedMesh.
|
|
5451
5502
|
* Used to keep track of color-coded meshes.
|
|
@@ -5497,7 +5548,7 @@ class hc extends lc {
|
|
|
5497
5548
|
/** {@link Disposable.dispose} */
|
|
5498
5549
|
dispose() {
|
|
5499
5550
|
super.dispose(), this._currentVisibleMeshes.clear(), this._recentlyHiddenMeshes.clear(), this._meshIDColorCodeMap.clear(), this._transparentMat.dispose(), this._colorCodeMeshMap.clear();
|
|
5500
|
-
const t = this.components.get(
|
|
5551
|
+
const t = this.components.get(De);
|
|
5501
5552
|
for (const e in this.colorMeshes) {
|
|
5502
5553
|
const s = this.colorMeshes.get(e);
|
|
5503
5554
|
s && t.destroy(s, !0);
|
|
@@ -5548,7 +5599,7 @@ class hc extends lc {
|
|
|
5548
5599
|
return;
|
|
5549
5600
|
}
|
|
5550
5601
|
this.preventUpdate = !0;
|
|
5551
|
-
const e = this.components.get(
|
|
5602
|
+
const e = this.components.get(De);
|
|
5552
5603
|
this._currentVisibleMeshes.delete(t), this._recentlyHiddenMeshes.delete(t);
|
|
5553
5604
|
const s = this.colorMeshes.get(t.uuid), n = this._meshIDColorCodeMap.get(t.uuid);
|
|
5554
5605
|
if (!s || !n) {
|
|
@@ -5584,19 +5635,19 @@ class hc extends lc {
|
|
|
5584
5635
|
return D.ColorManagement.enabled = r, { colorMaterial: l, code: n };
|
|
5585
5636
|
}
|
|
5586
5637
|
}
|
|
5587
|
-
const
|
|
5638
|
+
const Di = class Di extends At {
|
|
5588
5639
|
constructor(t) {
|
|
5589
5640
|
super(t);
|
|
5590
5641
|
/**
|
|
5591
5642
|
* An event that is triggered when the Cullers component is disposed.
|
|
5592
5643
|
*/
|
|
5593
|
-
C(this, "onDisposed", new
|
|
5644
|
+
C(this, "onDisposed", new j());
|
|
5594
5645
|
C(this, "_enabled", !0);
|
|
5595
5646
|
/**
|
|
5596
5647
|
* A map of MeshCullerRenderer instances, keyed by their world UUIDs.
|
|
5597
5648
|
*/
|
|
5598
5649
|
C(this, "list", /* @__PURE__ */ new Map());
|
|
5599
|
-
t.add(
|
|
5650
|
+
t.add(Di.uuid, this);
|
|
5600
5651
|
}
|
|
5601
5652
|
/** {@link Component.enabled} */
|
|
5602
5653
|
get enabled() {
|
|
@@ -5636,7 +5687,7 @@ const Mi = class Mi extends At {
|
|
|
5636
5687
|
}
|
|
5637
5688
|
/** {@link Disposable.dispose} */
|
|
5638
5689
|
dispose() {
|
|
5639
|
-
this.enabled = !1, this.onDisposed.trigger(
|
|
5690
|
+
this.enabled = !1, this.onDisposed.trigger(Di.uuid), this.onDisposed.reset();
|
|
5640
5691
|
for (const [t, e] of this.list)
|
|
5641
5692
|
e.dispose();
|
|
5642
5693
|
this.list.clear();
|
|
@@ -5656,18 +5707,18 @@ const Mi = class Mi extends At {
|
|
|
5656
5707
|
* A unique identifier for the component.
|
|
5657
5708
|
* This UUID is used to register the component within the Components system.
|
|
5658
5709
|
*/
|
|
5659
|
-
C(
|
|
5660
|
-
let Fn =
|
|
5710
|
+
C(Di, "uuid", "69f2a50d-c266-44fc-b1bd-fa4d34be89e6");
|
|
5711
|
+
let Fn = Di;
|
|
5661
5712
|
class uc {
|
|
5662
5713
|
constructor(i, t) {
|
|
5663
5714
|
/** {@link Disposable.onDisposed} */
|
|
5664
|
-
C(this, "onDisposed", new
|
|
5715
|
+
C(this, "onDisposed", new j());
|
|
5665
5716
|
/**
|
|
5666
5717
|
* Fires after making the visibility check to the meshes. It lists the
|
|
5667
5718
|
* meshes that are currently visible, and the ones that were visible
|
|
5668
5719
|
* just before but not anymore.
|
|
5669
5720
|
*/
|
|
5670
|
-
C(this, "onDistanceComputed", new
|
|
5721
|
+
C(this, "onDistanceComputed", new j());
|
|
5671
5722
|
/**
|
|
5672
5723
|
* Objects that won't be taken into account in the distance check.
|
|
5673
5724
|
*/
|
|
@@ -5828,7 +5879,7 @@ void main() {
|
|
|
5828
5879
|
this._postQuad.geometry.dispose(), this._postQuad.removeFromParent(), this._buffer = null, this.onDisposed.reset();
|
|
5829
5880
|
}
|
|
5830
5881
|
}
|
|
5831
|
-
class
|
|
5882
|
+
class gh extends ec {
|
|
5832
5883
|
constructor() {
|
|
5833
5884
|
super(...arguments);
|
|
5834
5885
|
C(this, "_distanceRenderer");
|
|
@@ -5958,7 +6009,7 @@ class fc {
|
|
|
5958
6009
|
C(this, "_event");
|
|
5959
6010
|
C(this, "_position", new D.Vector2());
|
|
5960
6011
|
/** {@link Disposable.onDisposed} */
|
|
5961
|
-
C(this, "onDisposed", new
|
|
6012
|
+
C(this, "onDisposed", new j());
|
|
5962
6013
|
C(this, "updateMouseInfo", (i) => {
|
|
5963
6014
|
this._event = i;
|
|
5964
6015
|
});
|
|
@@ -5979,13 +6030,16 @@ class fc {
|
|
|
5979
6030
|
this.setupEvents(!1), this.onDisposed.trigger(), this.onDisposed.reset();
|
|
5980
6031
|
}
|
|
5981
6032
|
getPositionY(i, t) {
|
|
5982
|
-
return -((t.clientY - i.top) / (i.bottom - i.top)) * 2 + 1;
|
|
6033
|
+
return -((this.getDataObject(t).clientY - i.top) / (i.bottom - i.top)) * 2 + 1;
|
|
5983
6034
|
}
|
|
5984
6035
|
getPositionX(i, t) {
|
|
5985
|
-
return (t.clientX - i.left) / (i.right - i.left) * 2 - 1;
|
|
6036
|
+
return (this.getDataObject(t).clientX - i.left) / (i.right - i.left) * 2 - 1;
|
|
6037
|
+
}
|
|
6038
|
+
getDataObject(i) {
|
|
6039
|
+
return i instanceof MouseEvent ? i : i.touches[0];
|
|
5986
6040
|
}
|
|
5987
6041
|
setupEvents(i) {
|
|
5988
|
-
i ? this.dom.addEventListener("pointermove", this.updateMouseInfo) : this.dom.removeEventListener("pointermove", this.updateMouseInfo);
|
|
6042
|
+
i ? (this.dom.addEventListener("pointermove", this.updateMouseInfo), this.dom.addEventListener("touchstart", this.updateMouseInfo)) : (this.dom.removeEventListener("pointermove", this.updateMouseInfo), this.dom.removeEventListener("touchstart", this.updateMouseInfo));
|
|
5989
6043
|
}
|
|
5990
6044
|
}
|
|
5991
6045
|
class Ic {
|
|
@@ -5995,7 +6049,7 @@ class Ic {
|
|
|
5995
6049
|
/** The components instance to which this Raycaster belongs. */
|
|
5996
6050
|
C(this, "components");
|
|
5997
6051
|
/** {@link Disposable.onDisposed} */
|
|
5998
|
-
C(this, "onDisposed", new
|
|
6052
|
+
C(this, "onDisposed", new j());
|
|
5999
6053
|
/** The position of the mouse in the screen. */
|
|
6000
6054
|
C(this, "mouse");
|
|
6001
6055
|
/**
|
|
@@ -6071,7 +6125,7 @@ const Ns = class Ns extends At {
|
|
|
6071
6125
|
*/
|
|
6072
6126
|
C(this, "list", /* @__PURE__ */ new Map());
|
|
6073
6127
|
/** {@link Disposable.onDisposed} */
|
|
6074
|
-
C(this, "onDisposed", new
|
|
6128
|
+
C(this, "onDisposed", new j());
|
|
6075
6129
|
t.add(Ns.uuid, this);
|
|
6076
6130
|
}
|
|
6077
6131
|
/**
|
|
@@ -6113,8 +6167,8 @@ const Ns = class Ns extends At {
|
|
|
6113
6167
|
* This UUID is used to register the component within the Components system.
|
|
6114
6168
|
*/
|
|
6115
6169
|
C(Ns, "uuid", "d5d8bdf0-db25-4952-b951-b643af207ace");
|
|
6116
|
-
let
|
|
6117
|
-
class dc extends
|
|
6170
|
+
let ci = Ns;
|
|
6171
|
+
class dc extends Ge {
|
|
6118
6172
|
constructor() {
|
|
6119
6173
|
super(...arguments);
|
|
6120
6174
|
C(this, "_config", {
|
|
@@ -6213,9 +6267,9 @@ class dc extends Ye {
|
|
|
6213
6267
|
class Ec {
|
|
6214
6268
|
constructor(i, t) {
|
|
6215
6269
|
/** {@link Disposable.onDisposed} */
|
|
6216
|
-
C(this, "onDisposed", new
|
|
6270
|
+
C(this, "onDisposed", new j());
|
|
6217
6271
|
/** {@link Configurable.onSetup} */
|
|
6218
|
-
C(this, "onSetup", new
|
|
6272
|
+
C(this, "onSetup", new j());
|
|
6219
6273
|
/** {@link Configurable.isSetup} */
|
|
6220
6274
|
C(this, "isSetup", !1);
|
|
6221
6275
|
/** The world instance to which this Raycaster belongs. */
|
|
@@ -6235,7 +6289,7 @@ class Ec {
|
|
|
6235
6289
|
C(this, "three");
|
|
6236
6290
|
C(this, "_fade", 3);
|
|
6237
6291
|
C(this, "updateZoom", () => {
|
|
6238
|
-
this.world.camera instanceof
|
|
6292
|
+
this.world.camera instanceof xi && (this.material.uniforms.uZoom.value = this.world.camera.three.zoom);
|
|
6239
6293
|
});
|
|
6240
6294
|
this.world = t;
|
|
6241
6295
|
const { color: e, primarySize: s, secondarySize: n, distance: r } = this._defaultConfig;
|
|
@@ -6365,10 +6419,10 @@ class Ec {
|
|
|
6365
6419
|
}
|
|
6366
6420
|
/** {@link Disposable.dispose} */
|
|
6367
6421
|
dispose() {
|
|
6368
|
-
this.setupEvents(!1), this.components.get(
|
|
6422
|
+
this.setupEvents(!1), this.components.get(Ye).list.delete(this.config.uuid), this.components.get(De).destroy(this.three), this.onDisposed.trigger(), this.onDisposed.reset(), this.world = null, this.components = null;
|
|
6369
6423
|
}
|
|
6370
6424
|
setupEvents(i) {
|
|
6371
|
-
if (this.world.isDisposing || !(this.world.camera instanceof
|
|
6425
|
+
if (this.world.isDisposing || !(this.world.camera instanceof xi))
|
|
6372
6426
|
return;
|
|
6373
6427
|
const t = this.world.camera.controls;
|
|
6374
6428
|
i ? t.addEventListener("update", this.updateZoom) : t.removeEventListener("update", this.updateZoom);
|
|
@@ -6382,7 +6436,7 @@ const ys = class ys extends At {
|
|
|
6382
6436
|
*/
|
|
6383
6437
|
C(this, "list", /* @__PURE__ */ new Map());
|
|
6384
6438
|
/** {@link Disposable.onDisposed} */
|
|
6385
|
-
C(this, "onDisposed", new
|
|
6439
|
+
C(this, "onDisposed", new j());
|
|
6386
6440
|
/** {@link Component.enabled} */
|
|
6387
6441
|
C(this, "enabled", !0);
|
|
6388
6442
|
t.add(ys.uuid, this);
|
|
@@ -6431,7 +6485,7 @@ const ys = class ys extends At {
|
|
|
6431
6485
|
*/
|
|
6432
6486
|
C(ys, "uuid", "d1e814d5-b81c-4452-87a2-f039375e0489");
|
|
6433
6487
|
let Or = ys;
|
|
6434
|
-
const
|
|
6488
|
+
const xe = new yo(), bt = new Q(), Se = new Q(), Ot = new de(), Nr = {
|
|
6435
6489
|
X: new Q(1, 0, 0),
|
|
6436
6490
|
Y: new Q(0, 1, 0),
|
|
6437
6491
|
Z: new Q(0, 0, 1)
|
|
@@ -6466,14 +6520,14 @@ class pc extends In {
|
|
|
6466
6520
|
pointerHover(i) {
|
|
6467
6521
|
if (this.object === void 0 || this.dragging === !0)
|
|
6468
6522
|
return;
|
|
6469
|
-
|
|
6470
|
-
const t = fn(this._gizmo.picker[this.mode],
|
|
6523
|
+
xe.setFromCamera(i, this.camera);
|
|
6524
|
+
const t = fn(this._gizmo.picker[this.mode], xe);
|
|
6471
6525
|
t ? this.axis = t.object.name : this.axis = null;
|
|
6472
6526
|
}
|
|
6473
6527
|
pointerDown(i) {
|
|
6474
6528
|
if (!(this.object === void 0 || this.dragging === !0 || i.button !== 0) && this.axis !== null) {
|
|
6475
|
-
|
|
6476
|
-
const t = fn(this._plane,
|
|
6529
|
+
xe.setFromCamera(i, this.camera);
|
|
6530
|
+
const t = fn(this._plane, xe, !0);
|
|
6477
6531
|
t && (this.object.updateMatrixWorld(), this.object.parent.updateMatrixWorld(), this._positionStart.copy(this.object.position), this._quaternionStart.copy(this.object.quaternion), this._scaleStart.copy(this.object.scale), this.object.matrixWorld.decompose(this.worldPositionStart, this.worldQuaternionStart, this._worldScaleStart), this.pointStart.copy(t.point).sub(this.worldPositionStart)), this.dragging = !0, yr.mode = this.mode, this.dispatchEvent(yr);
|
|
6478
6532
|
}
|
|
6479
6533
|
}
|
|
@@ -6482,8 +6536,8 @@ class pc extends In {
|
|
|
6482
6536
|
let n = this.space;
|
|
6483
6537
|
if (e === "scale" ? n = "local" : (t === "E" || t === "XYZE" || t === "XYZ") && (n = "world"), s === void 0 || t === null || this.dragging === !1 || i.button !== -1)
|
|
6484
6538
|
return;
|
|
6485
|
-
|
|
6486
|
-
const r = fn(this._plane,
|
|
6539
|
+
xe.setFromCamera(i, this.camera);
|
|
6540
|
+
const r = fn(this._plane, xe, !0);
|
|
6487
6541
|
if (r) {
|
|
6488
6542
|
if (this.pointEnd.copy(r.point).sub(this.worldPositionStart), e === "translate")
|
|
6489
6543
|
this._offset.copy(this.pointEnd).sub(this.pointStart), n === "local" && t !== "XYZ" && this._offset.applyQuaternion(this._worldQuaternionInv), t.indexOf("X") === -1 && (this._offset.x = 0), t.indexOf("Y") === -1 && (this._offset.y = 0), t.indexOf("Z") === -1 && (this._offset.z = 0), n === "local" && t !== "XYZ" ? this._offset.applyQuaternion(this._quaternionStart).divide(this._parentScale) : this._offset.applyQuaternion(this._parentQuaternionInv).divide(this._parentScale), s.position.copy(this._offset).add(this._positionStart), this.translationSnap && (n === "local" && (s.position.applyQuaternion(Ot.copy(this._quaternionStart).invert()), t.search("X") !== -1 && (s.position.x = Math.round(s.position.x / this.translationSnap) * this.translationSnap), t.search("Y") !== -1 && (s.position.y = Math.round(s.position.y / this.translationSnap) * this.translationSnap), t.search("Z") !== -1 && (s.position.z = Math.round(s.position.z / this.translationSnap) * this.translationSnap), s.position.applyQuaternion(this._quaternionStart)), n === "world" && (s.parent && s.position.add(bt.setFromMatrixPosition(s.parent.matrixWorld)), t.search("X") !== -1 && (s.position.x = Math.round(s.position.x / this.translationSnap) * this.translationSnap), t.search("Y") !== -1 && (s.position.y = Math.round(s.position.y / this.translationSnap) * this.translationSnap), t.search("Z") !== -1 && (s.position.z = Math.round(s.position.z / this.translationSnap) * this.translationSnap), s.parent && s.position.sub(bt.setFromMatrixPosition(s.parent.matrixWorld))));
|
|
@@ -6523,7 +6577,7 @@ class pc extends In {
|
|
|
6523
6577
|
this.enabled && this.dragging && (this.object.position.copy(this._positionStart), this.object.quaternion.copy(this._quaternionStart), this.object.scale.copy(this._scaleStart), this.dispatchEvent(un), this.dispatchEvent(_r), this.pointStart.copy(this.pointEnd));
|
|
6524
6578
|
}
|
|
6525
6579
|
getRaycaster() {
|
|
6526
|
-
return
|
|
6580
|
+
return xe;
|
|
6527
6581
|
}
|
|
6528
6582
|
// TODO: deprecate
|
|
6529
6583
|
getMode() {
|
|
@@ -6589,7 +6643,7 @@ function fn(c, i, t) {
|
|
|
6589
6643
|
return e[s];
|
|
6590
6644
|
return !1;
|
|
6591
6645
|
}
|
|
6592
|
-
const
|
|
6646
|
+
const cs = new Lo(), mt = new Q(0, 1, 0), Pr = new Q(0, 0, 0), wr = new pe(), ls = new de(), Es = new de(), ue = new Q(), Mr = new pe(), _i = new Q(1, 0, 0), Be = new Q(0, 1, 0), Pi = new Q(0, 0, 1), hs = new Q(), Oi = new Q(), Ni = new Q();
|
|
6593
6647
|
class Ac extends In {
|
|
6594
6648
|
constructor() {
|
|
6595
6649
|
super(), this.isTransformControlsGizmo = !0, this.type = "TransformControlsGizmo";
|
|
@@ -6635,9 +6689,9 @@ class Ac extends In {
|
|
|
6635
6689
|
p.setAttribute("position", new Zn([0, 0, 0, 1, 0, 0], 3));
|
|
6636
6690
|
const m = new Vt(75e-4, 75e-4, 0.5, 3);
|
|
6637
6691
|
m.translate(0, 0.25, 0);
|
|
6638
|
-
function F(v,
|
|
6639
|
-
const
|
|
6640
|
-
return
|
|
6692
|
+
function F(v, q) {
|
|
6693
|
+
const G = new Ii(v, 75e-4, 3, 64, q * Math.PI * 2);
|
|
6694
|
+
return G.rotateY(Math.PI / 2), G.rotateX(Math.PI / 2), G;
|
|
6641
6695
|
}
|
|
6642
6696
|
function R() {
|
|
6643
6697
|
const v = new $n();
|
|
@@ -6660,7 +6714,7 @@ class Ac extends In {
|
|
|
6660
6714
|
[new rt(m, o), null, [Math.PI / 2, 0, 0]]
|
|
6661
6715
|
],
|
|
6662
6716
|
XYZ: [
|
|
6663
|
-
[new rt(new
|
|
6717
|
+
[new rt(new Gi(0.1, 0), f.clone()), [0, 0, 0]]
|
|
6664
6718
|
],
|
|
6665
6719
|
XY: [
|
|
6666
6720
|
[new rt(new Ut(0.15, 0.15, 0.01), h.clone()), [0.15, 0.15, 0]]
|
|
@@ -6685,7 +6739,7 @@ class Ac extends In {
|
|
|
6685
6739
|
[new rt(new Vt(0.2, 0, 0.6, 4), e), [0, 0, -0.3], [-Math.PI / 2, 0, 0]]
|
|
6686
6740
|
],
|
|
6687
6741
|
XYZ: [
|
|
6688
|
-
[new rt(new
|
|
6742
|
+
[new rt(new Gi(0.2, 0), e)]
|
|
6689
6743
|
],
|
|
6690
6744
|
XY: [
|
|
6691
6745
|
[new rt(new Ut(0.2, 0.2, 0.01), e), [0.15, 0.15, 0]]
|
|
@@ -6698,10 +6752,10 @@ class Ac extends In {
|
|
|
6698
6752
|
]
|
|
6699
6753
|
}, y = {
|
|
6700
6754
|
START: [
|
|
6701
|
-
[new rt(new
|
|
6755
|
+
[new rt(new Gi(0.01, 2), s), null, null, null, "helper"]
|
|
6702
6756
|
],
|
|
6703
6757
|
END: [
|
|
6704
|
-
[new rt(new
|
|
6758
|
+
[new rt(new Gi(0.01, 2), s), null, null, null, "helper"]
|
|
6705
6759
|
],
|
|
6706
6760
|
DELTA: [
|
|
6707
6761
|
[new Ae(R(), s), null, null, null, "helper"]
|
|
@@ -6740,18 +6794,18 @@ class Ac extends In {
|
|
|
6740
6794
|
[new rt(new Po(0.25, 10, 8), e)]
|
|
6741
6795
|
],
|
|
6742
6796
|
X: [
|
|
6743
|
-
[new rt(new
|
|
6797
|
+
[new rt(new Ii(0.5, 0.1, 4, 24), e), [0, 0, 0], [0, -Math.PI / 2, -Math.PI / 2]]
|
|
6744
6798
|
],
|
|
6745
6799
|
Y: [
|
|
6746
|
-
[new rt(new
|
|
6800
|
+
[new rt(new Ii(0.5, 0.1, 4, 24), e), [0, 0, 0], [Math.PI / 2, 0, 0]]
|
|
6747
6801
|
],
|
|
6748
6802
|
Z: [
|
|
6749
|
-
[new rt(new
|
|
6803
|
+
[new rt(new Ii(0.5, 0.1, 4, 24), e), [0, 0, 0], [0, 0, -Math.PI / 2]]
|
|
6750
6804
|
],
|
|
6751
6805
|
E: [
|
|
6752
|
-
[new rt(new
|
|
6806
|
+
[new rt(new Ii(0.75, 0.1, 2, 24), e)]
|
|
6753
6807
|
]
|
|
6754
|
-
},
|
|
6808
|
+
}, Y = {
|
|
6755
6809
|
X: [
|
|
6756
6810
|
[new rt(T, n), [0.5, 0, 0], [0, 0, -Math.PI / 2]],
|
|
6757
6811
|
[new rt(m, n), [0, 0, 0], [0, 0, -Math.PI / 2]],
|
|
@@ -6816,17 +6870,17 @@ class Ac extends In {
|
|
|
6816
6870
|
]
|
|
6817
6871
|
};
|
|
6818
6872
|
function g(v) {
|
|
6819
|
-
const
|
|
6820
|
-
for (const
|
|
6821
|
-
for (let et = v[
|
|
6822
|
-
const W = v[
|
|
6823
|
-
W.name =
|
|
6873
|
+
const q = new In();
|
|
6874
|
+
for (const G in v)
|
|
6875
|
+
for (let et = v[G].length; et--; ) {
|
|
6876
|
+
const W = v[G][et][0].clone(), nt = v[G][et][1], V = v[G][et][2], x = v[G][et][3], ot = v[G][et][4];
|
|
6877
|
+
W.name = G, W.tag = ot, nt && W.position.set(nt[0], nt[1], nt[2]), V && W.rotation.set(V[0], V[1], V[2]), x && W.scale.set(x[0], x[1], x[2]), W.updateMatrix();
|
|
6824
6878
|
const it = W.geometry.clone();
|
|
6825
|
-
it.applyMatrix4(W.matrix), W.geometry = it, W.renderOrder = 1 / 0, W.position.set(0, 0, 0), W.rotation.set(0, 0, 0), W.scale.set(1, 1, 1),
|
|
6879
|
+
it.applyMatrix4(W.matrix), W.geometry = it, W.renderOrder = 1 / 0, W.position.set(0, 0, 0), W.rotation.set(0, 0, 0), W.scale.set(1, 1, 1), q.add(W);
|
|
6826
6880
|
}
|
|
6827
|
-
return
|
|
6881
|
+
return q;
|
|
6828
6882
|
}
|
|
6829
|
-
this.gizmo = {}, this.picker = {}, this.helper = {}, this.add(this.gizmo.translate = g(S)), this.add(this.gizmo.rotate = g(M)), this.add(this.gizmo.scale = g(
|
|
6883
|
+
this.gizmo = {}, this.picker = {}, this.helper = {}, this.add(this.gizmo.translate = g(S)), this.add(this.gizmo.rotate = g(M)), this.add(this.gizmo.scale = g(Y)), this.add(this.picker.translate = g(N)), this.add(this.picker.rotate = g(b)), this.add(this.picker.scale = g(O)), this.add(this.helper.translate = g(y)), this.add(this.helper.rotate = g(L)), this.add(this.helper.scale = g(w)), this.picker.translate.visible = !1, this.picker.rotate.visible = !1, this.picker.scale.visible = !1;
|
|
6830
6884
|
}
|
|
6831
6885
|
// updateMatrixWorld will update transformations and appearance of individual handles
|
|
6832
6886
|
updateMatrixWorld(i) {
|
|
@@ -6839,10 +6893,10 @@ class Ac extends In {
|
|
|
6839
6893
|
r.visible = !0, r.rotation.set(0, 0, 0), r.position.copy(this.worldPosition);
|
|
6840
6894
|
let o;
|
|
6841
6895
|
if (this.camera.isOrthographicCamera ? o = (this.camera.top - this.camera.bottom) / this.camera.zoom : o = this.worldPosition.distanceTo(this.cameraPosition) * Math.min(1.9 * Math.tan(Math.PI * this.camera.fov / 360) / this.camera.zoom, 7), r.scale.set(1, 1, 1).multiplyScalar(o * this.size / 4), r.tag === "helper") {
|
|
6842
|
-
r.visible = !1, r.name === "AXIS" ? (r.visible = !!this.axis, this.axis === "X" && (Ot.setFromEuler(
|
|
6896
|
+
r.visible = !1, r.name === "AXIS" ? (r.visible = !!this.axis, this.axis === "X" && (Ot.setFromEuler(cs.set(0, 0, 0)), r.quaternion.copy(e).multiply(Ot), Math.abs(mt.copy(_i).applyQuaternion(e).dot(this.eye)) > 0.9 && (r.visible = !1)), this.axis === "Y" && (Ot.setFromEuler(cs.set(0, 0, Math.PI / 2)), r.quaternion.copy(e).multiply(Ot), Math.abs(mt.copy(Be).applyQuaternion(e).dot(this.eye)) > 0.9 && (r.visible = !1)), this.axis === "Z" && (Ot.setFromEuler(cs.set(0, Math.PI / 2, 0)), r.quaternion.copy(e).multiply(Ot), Math.abs(mt.copy(Pi).applyQuaternion(e).dot(this.eye)) > 0.9 && (r.visible = !1)), this.axis === "XYZE" && (Ot.setFromEuler(cs.set(0, Math.PI / 2, 0)), mt.copy(this.rotationAxis), r.quaternion.setFromRotationMatrix(wr.lookAt(Pr, mt, Be)), r.quaternion.multiply(Ot), r.visible = this.dragging), this.axis === "E" && (r.visible = !1)) : r.name === "START" ? (r.position.copy(this.worldPositionStart), r.visible = this.dragging) : r.name === "END" ? (r.position.copy(this.worldPosition), r.visible = this.dragging) : r.name === "DELTA" ? (r.position.copy(this.worldPositionStart), r.quaternion.copy(this.worldQuaternionStart), bt.set(1e-10, 1e-10, 1e-10).add(this.worldPositionStart).sub(this.worldPosition).multiplyScalar(-1), bt.applyQuaternion(this.worldQuaternionStart.clone().invert()), r.scale.copy(bt), r.visible = this.dragging) : (r.quaternion.copy(e), this.dragging ? r.position.copy(this.worldPositionStart) : r.position.copy(this.worldPosition), this.axis && (r.visible = this.axis.search(r.name) !== -1));
|
|
6843
6897
|
continue;
|
|
6844
6898
|
}
|
|
6845
|
-
r.quaternion.copy(e), this.mode === "translate" || this.mode === "scale" ? (r.name === "X" && Math.abs(mt.copy(
|
|
6899
|
+
r.quaternion.copy(e), this.mode === "translate" || this.mode === "scale" ? (r.name === "X" && Math.abs(mt.copy(_i).applyQuaternion(e).dot(this.eye)) > 0.99 && (r.scale.set(1e-10, 1e-10, 1e-10), r.visible = !1), r.name === "Y" && Math.abs(mt.copy(Be).applyQuaternion(e).dot(this.eye)) > 0.99 && (r.scale.set(1e-10, 1e-10, 1e-10), r.visible = !1), r.name === "Z" && Math.abs(mt.copy(Pi).applyQuaternion(e).dot(this.eye)) > 0.99 && (r.scale.set(1e-10, 1e-10, 1e-10), r.visible = !1), r.name === "XY" && Math.abs(mt.copy(Pi).applyQuaternion(e).dot(this.eye)) < 0.2 && (r.scale.set(1e-10, 1e-10, 1e-10), r.visible = !1), r.name === "YZ" && Math.abs(mt.copy(_i).applyQuaternion(e).dot(this.eye)) < 0.2 && (r.scale.set(1e-10, 1e-10, 1e-10), r.visible = !1), r.name === "XZ" && Math.abs(mt.copy(Be).applyQuaternion(e).dot(this.eye)) < 0.2 && (r.scale.set(1e-10, 1e-10, 1e-10), r.visible = !1)) : this.mode === "rotate" && (ls.copy(e), mt.copy(this.eye).applyQuaternion(Ot.copy(e).invert()), r.name.search("E") !== -1 && r.quaternion.setFromRotationMatrix(wr.lookAt(this.eye, Pr, Be)), r.name === "X" && (Ot.setFromAxisAngle(_i, Math.atan2(-mt.y, mt.z)), Ot.multiplyQuaternions(ls, Ot), r.quaternion.copy(Ot)), r.name === "Y" && (Ot.setFromAxisAngle(Be, Math.atan2(mt.x, mt.z)), Ot.multiplyQuaternions(ls, Ot), r.quaternion.copy(Ot)), r.name === "Z" && (Ot.setFromAxisAngle(Pi, Math.atan2(mt.y, mt.x)), Ot.multiplyQuaternions(ls, Ot), r.quaternion.copy(Ot))), r.visible = r.visible && (r.name.indexOf("X") === -1 || this.showX), r.visible = r.visible && (r.name.indexOf("Y") === -1 || this.showY), r.visible = r.visible && (r.name.indexOf("Z") === -1 || this.showZ), r.visible = r.visible && (r.name.indexOf("E") === -1 || this.showX && this.showY && this.showZ), r.material._color = r.material._color || r.material.color.clone(), r.material._opacity = r.material._opacity || r.material.opacity, r.material.color.copy(r.material._color), r.material.opacity = r.material._opacity, this.enabled && this.axis && (r.name === this.axis || this.axis.split("").some(function(a) {
|
|
6846
6900
|
return r.name === a;
|
|
6847
6901
|
})) && (r.material.color.setHex(16776960), r.material.opacity = 1);
|
|
6848
6902
|
}
|
|
@@ -6858,27 +6912,27 @@ class Fc extends rt {
|
|
|
6858
6912
|
}
|
|
6859
6913
|
updateMatrixWorld(i) {
|
|
6860
6914
|
let t = this.space;
|
|
6861
|
-
switch (this.position.copy(this.worldPosition), this.mode === "scale" && (t = "local"),
|
|
6915
|
+
switch (this.position.copy(this.worldPosition), this.mode === "scale" && (t = "local"), hs.copy(_i).applyQuaternion(t === "local" ? this.worldQuaternion : Es), Oi.copy(Be).applyQuaternion(t === "local" ? this.worldQuaternion : Es), Ni.copy(Pi).applyQuaternion(t === "local" ? this.worldQuaternion : Es), mt.copy(Oi), this.mode) {
|
|
6862
6916
|
case "translate":
|
|
6863
6917
|
case "scale":
|
|
6864
6918
|
switch (this.axis) {
|
|
6865
6919
|
case "X":
|
|
6866
|
-
mt.copy(this.eye).cross(
|
|
6920
|
+
mt.copy(this.eye).cross(hs), ue.copy(hs).cross(mt);
|
|
6867
6921
|
break;
|
|
6868
6922
|
case "Y":
|
|
6869
|
-
mt.copy(this.eye).cross(
|
|
6923
|
+
mt.copy(this.eye).cross(Oi), ue.copy(Oi).cross(mt);
|
|
6870
6924
|
break;
|
|
6871
6925
|
case "Z":
|
|
6872
|
-
mt.copy(this.eye).cross(
|
|
6926
|
+
mt.copy(this.eye).cross(Ni), ue.copy(Ni).cross(mt);
|
|
6873
6927
|
break;
|
|
6874
6928
|
case "XY":
|
|
6875
|
-
ue.copy(
|
|
6929
|
+
ue.copy(Ni);
|
|
6876
6930
|
break;
|
|
6877
6931
|
case "YZ":
|
|
6878
|
-
ue.copy(
|
|
6932
|
+
ue.copy(hs);
|
|
6879
6933
|
break;
|
|
6880
6934
|
case "XZ":
|
|
6881
|
-
mt.copy(
|
|
6935
|
+
mt.copy(Ni), ue.copy(Oi);
|
|
6882
6936
|
break;
|
|
6883
6937
|
case "XYZ":
|
|
6884
6938
|
case "E":
|
|
@@ -6896,11 +6950,11 @@ class Fc extends rt {
|
|
|
6896
6950
|
class Vn {
|
|
6897
6951
|
constructor(i, t, e, s, n, r = 5, o = !0) {
|
|
6898
6952
|
/** Event that fires when the user starts dragging a clipping plane. */
|
|
6899
|
-
C(this, "onDraggingStarted", new
|
|
6953
|
+
C(this, "onDraggingStarted", new j());
|
|
6900
6954
|
/** Event that fires when the user stops dragging a clipping plane. */
|
|
6901
|
-
C(this, "onDraggingEnded", new
|
|
6955
|
+
C(this, "onDraggingEnded", new j());
|
|
6902
6956
|
/** {@link Disposable.onDisposed} */
|
|
6903
|
-
C(this, "onDisposed", new
|
|
6957
|
+
C(this, "onDisposed", new j());
|
|
6904
6958
|
/**
|
|
6905
6959
|
* The normal vector of the clipping plane.
|
|
6906
6960
|
*/
|
|
@@ -7055,7 +7109,7 @@ class Vn {
|
|
|
7055
7109
|
return s.scale.set(i, i, i), s;
|
|
7056
7110
|
}
|
|
7057
7111
|
}
|
|
7058
|
-
class Sc extends
|
|
7112
|
+
class Sc extends Ge {
|
|
7059
7113
|
constructor() {
|
|
7060
7114
|
super(...arguments);
|
|
7061
7115
|
C(this, "_config", {
|
|
@@ -7118,43 +7172,43 @@ class Sc extends Ye {
|
|
|
7118
7172
|
this._config.size.value = t, this._component.size = t;
|
|
7119
7173
|
}
|
|
7120
7174
|
}
|
|
7121
|
-
const
|
|
7175
|
+
const ni = class ni extends At {
|
|
7122
7176
|
constructor(t) {
|
|
7123
7177
|
super(t);
|
|
7124
7178
|
/** {@link Configurable.onSetup} */
|
|
7125
|
-
C(this, "onSetup", new
|
|
7179
|
+
C(this, "onSetup", new j());
|
|
7126
7180
|
/** Event that fires when the user starts dragging a clipping plane. */
|
|
7127
|
-
C(this, "onBeforeDrag", new
|
|
7181
|
+
C(this, "onBeforeDrag", new j());
|
|
7128
7182
|
/** Event that fires when the user stops dragging a clipping plane. */
|
|
7129
|
-
C(this, "onAfterDrag", new
|
|
7183
|
+
C(this, "onAfterDrag", new j());
|
|
7130
7184
|
/**
|
|
7131
7185
|
* Event that fires when the user starts creating a clipping plane.
|
|
7132
7186
|
*/
|
|
7133
|
-
C(this, "onBeforeCreate", new
|
|
7187
|
+
C(this, "onBeforeCreate", new j());
|
|
7134
7188
|
/**
|
|
7135
7189
|
* Event that fires when the user cancels the creation of a clipping plane.
|
|
7136
7190
|
*/
|
|
7137
|
-
C(this, "onBeforeCancel", new
|
|
7191
|
+
C(this, "onBeforeCancel", new j());
|
|
7138
7192
|
/**
|
|
7139
7193
|
* Event that fires after the user cancels the creation of a clipping plane.
|
|
7140
7194
|
*/
|
|
7141
|
-
C(this, "onAfterCancel", new
|
|
7195
|
+
C(this, "onAfterCancel", new j());
|
|
7142
7196
|
/**
|
|
7143
7197
|
* Event that fires when the user starts deleting a clipping plane.
|
|
7144
7198
|
*/
|
|
7145
|
-
C(this, "onBeforeDelete", new
|
|
7199
|
+
C(this, "onBeforeDelete", new j());
|
|
7146
7200
|
/**
|
|
7147
7201
|
* Event that fires after a clipping plane has been created.
|
|
7148
7202
|
* @param plane - The newly created clipping plane.
|
|
7149
7203
|
*/
|
|
7150
|
-
C(this, "onAfterCreate", new
|
|
7204
|
+
C(this, "onAfterCreate", new j());
|
|
7151
7205
|
/**
|
|
7152
7206
|
* Event that fires after a clipping plane has been deleted.
|
|
7153
7207
|
* @param plane - The deleted clipping plane.
|
|
7154
7208
|
*/
|
|
7155
|
-
C(this, "onAfterDelete", new
|
|
7209
|
+
C(this, "onAfterDelete", new j());
|
|
7156
7210
|
/** {@link Disposable.onDisposed} */
|
|
7157
|
-
C(this, "onDisposed", new
|
|
7211
|
+
C(this, "onDisposed", new j());
|
|
7158
7212
|
/** {@link Configurable.isSetup} */
|
|
7159
7213
|
C(this, "isSetup", !1);
|
|
7160
7214
|
/**
|
|
@@ -7184,7 +7238,7 @@ const si = class si extends At {
|
|
|
7184
7238
|
this,
|
|
7185
7239
|
this.components,
|
|
7186
7240
|
"Clipper",
|
|
7187
|
-
|
|
7241
|
+
ni.uuid
|
|
7188
7242
|
));
|
|
7189
7243
|
C(this, "_defaultConfig", {
|
|
7190
7244
|
color: new D.Color(12255487),
|
|
@@ -7207,7 +7261,7 @@ const si = class si extends At {
|
|
|
7207
7261
|
C(this, "_onEndDragging", () => {
|
|
7208
7262
|
this.onAfterDrag.trigger();
|
|
7209
7263
|
});
|
|
7210
|
-
this.components.add(
|
|
7264
|
+
this.components.add(ni.uuid, this);
|
|
7211
7265
|
}
|
|
7212
7266
|
/** {@link Component.enabled} */
|
|
7213
7267
|
get enabled() {
|
|
@@ -7252,14 +7306,14 @@ const si = class si extends At {
|
|
|
7252
7306
|
}
|
|
7253
7307
|
/** {@link Disposable.dispose} */
|
|
7254
7308
|
dispose() {
|
|
7255
|
-
this._enabled = !1, this.components.get(
|
|
7309
|
+
this._enabled = !1, this.components.get(Ye).list.delete(this.config.uuid);
|
|
7256
7310
|
for (const e of this.list)
|
|
7257
7311
|
e.dispose();
|
|
7258
|
-
this.list.length = 0, this._material.dispose(), this.onBeforeCreate.reset(), this.onBeforeCancel.reset(), this.onBeforeDelete.reset(), this.onBeforeDrag.reset(), this.onAfterCreate.reset(), this.onAfterCancel.reset(), this.onAfterDelete.reset(), this.onAfterDrag.reset(), this.onDisposed.trigger(
|
|
7312
|
+
this.list.length = 0, this._material.dispose(), this.onBeforeCreate.reset(), this.onBeforeCancel.reset(), this.onBeforeDelete.reset(), this.onBeforeDrag.reset(), this.onAfterCreate.reset(), this.onAfterCancel.reset(), this.onAfterDelete.reset(), this.onAfterDrag.reset(), this.onDisposed.trigger(ni.uuid), this.onDisposed.reset();
|
|
7259
7313
|
}
|
|
7260
7314
|
/** {@link Createable.create} */
|
|
7261
7315
|
create(t) {
|
|
7262
|
-
const n = this.components.get(
|
|
7316
|
+
const n = this.components.get(ci).get(t).castRay();
|
|
7263
7317
|
return n ? this.createPlaneFromIntersection(t, n) : null;
|
|
7264
7318
|
}
|
|
7265
7319
|
/**
|
|
@@ -7313,7 +7367,7 @@ const si = class si extends At {
|
|
|
7313
7367
|
}
|
|
7314
7368
|
}
|
|
7315
7369
|
pickPlane(t) {
|
|
7316
|
-
const s = this.components.get(
|
|
7370
|
+
const s = this.components.get(ci).get(t), n = this.getAllPlaneMeshes(), r = s.castRay(n);
|
|
7317
7371
|
if (r) {
|
|
7318
7372
|
const o = r.object;
|
|
7319
7373
|
return this.list.find((a) => a.meshes.includes(o));
|
|
@@ -7379,8 +7433,8 @@ const si = class si extends At {
|
|
|
7379
7433
|
* A unique identifier for the component.
|
|
7380
7434
|
* This UUID is used to register the component within the Components system.
|
|
7381
7435
|
*/
|
|
7382
|
-
C(
|
|
7383
|
-
let Sn =
|
|
7436
|
+
C(ni, "uuid", "66290bc5-18c4-4cd1-9379-2e17a0617611");
|
|
7437
|
+
let Sn = ni;
|
|
7384
7438
|
class Oc {
|
|
7385
7439
|
constructor(i) {
|
|
7386
7440
|
/** {@link NavigationMode.enabled} */
|
|
@@ -7456,7 +7510,7 @@ class Lc {
|
|
|
7456
7510
|
/**
|
|
7457
7511
|
* Event that fires when the {@link CameraProjection} changes.
|
|
7458
7512
|
*/
|
|
7459
|
-
C(this, "onChanged", new
|
|
7513
|
+
C(this, "onChanged", new j());
|
|
7460
7514
|
/**
|
|
7461
7515
|
* Current projection mode of the camera.
|
|
7462
7516
|
* Default is "Perspective".
|
|
@@ -7526,7 +7580,7 @@ class Lc {
|
|
|
7526
7580
|
i.position.copy(t.position), i.quaternion.copy(t.quaternion), this._component.controls.mouseButtons.wheel = vt.ACTION.DOLLY, this.matchOrthoDistanceEnabled ? this._component.controls.distance = this.getDistance() : this._component.controls.distance = this._previousDistance, await this._component.controls.zoomTo(1), i.updateProjectionMatrix(), this._component.controls.camera = i, this.camera = i, this.current = "Perspective";
|
|
7527
7581
|
}
|
|
7528
7582
|
}
|
|
7529
|
-
class _c extends
|
|
7583
|
+
class _c extends xi {
|
|
7530
7584
|
constructor(t) {
|
|
7531
7585
|
super(t);
|
|
7532
7586
|
/**
|
|
@@ -7886,7 +7940,7 @@ const Dr = /* @__PURE__ */ new Map([
|
|
|
7886
7940
|
4292641817: "IFCUNITARYEQUIPMENT",
|
|
7887
7941
|
3009204131: "IFCGRID"
|
|
7888
7942
|
};
|
|
7889
|
-
class
|
|
7943
|
+
class Ah {
|
|
7890
7944
|
getAll(i, t) {
|
|
7891
7945
|
const e = {}, s = Object.keys(Pc).map((n) => parseInt(n, 10));
|
|
7892
7946
|
for (let n = 0; n < s.length; n++) {
|
|
@@ -9039,7 +9093,7 @@ const ms = {
|
|
|
9039
9093
|
1390159747: "FILE_NAME",
|
|
9040
9094
|
1109904537: "FILE_SCHEMA"
|
|
9041
9095
|
};
|
|
9042
|
-
class
|
|
9096
|
+
class oi {
|
|
9043
9097
|
static async getUnits(i) {
|
|
9044
9098
|
var r, o, a;
|
|
9045
9099
|
const { IFCUNITASSIGNMENT: t } = z, e = await i.getAllPropertiesOfType(t);
|
|
@@ -9116,7 +9170,7 @@ class ri {
|
|
|
9116
9170
|
return r;
|
|
9117
9171
|
}
|
|
9118
9172
|
static async getQsetRel(i, t) {
|
|
9119
|
-
return
|
|
9173
|
+
return oi.getPsetRel(i, t);
|
|
9120
9174
|
}
|
|
9121
9175
|
static async getEntityName(i, t) {
|
|
9122
9176
|
var r;
|
|
@@ -10450,8 +10504,6 @@ class Yn {
|
|
|
10450
10504
|
* like IFCSPACE.
|
|
10451
10505
|
*/
|
|
10452
10506
|
C(this, "optionalCategories", [z.IFCSPACE]);
|
|
10453
|
-
/** Whether to use the coordination data coming from the IFC files. */
|
|
10454
|
-
C(this, "coordinate", !0);
|
|
10455
10507
|
/** Path of the WASM for [web-ifc](https://github.com/ThatOpen/engine_web-ifc). */
|
|
10456
10508
|
C(this, "wasm", {
|
|
10457
10509
|
path: "",
|
|
@@ -10558,7 +10610,7 @@ class oo {
|
|
|
10558
10610
|
const [I, u] = r;
|
|
10559
10611
|
I != null && I.value && (t.author.name = I.value), u != null && u.value && (t.author.email = u.value);
|
|
10560
10612
|
}
|
|
10561
|
-
return (f = o[0]) != null && f.value && (t.organization = o[0].value), a != null && a.value && (t.preprocessorVersion = a == null ? void 0 : a.value), l != null && l.value && (t.originatingSystem = l == null ? void 0 : l.value), h != null && h.value && (t.authorization = h == null ? void 0 : h.value), t;
|
|
10613
|
+
return o && ((f = o[0]) != null && f.value) && (t.organization = o[0].value), a != null && a.value && (t.preprocessorVersion = a == null ? void 0 : a.value), l != null && l.value && (t.originatingSystem = l == null ? void 0 : l.value), h != null && h.value && (t.authorization = h == null ? void 0 : h.value), t;
|
|
10562
10614
|
}
|
|
10563
10615
|
getDescriptionInfo(i) {
|
|
10564
10616
|
var r;
|
|
@@ -10566,7 +10618,7 @@ class oo {
|
|
|
10566
10618
|
if (!e)
|
|
10567
10619
|
return t;
|
|
10568
10620
|
const [s, n] = e;
|
|
10569
|
-
if ((r = s[0]) != null && r.value) {
|
|
10621
|
+
if (Array.isArray(s) && ((r = s[0]) != null && r.value)) {
|
|
10570
10622
|
const o = s[0].value.match(/\[([^\]]+)\]/);
|
|
10571
10623
|
o && o[1] && (t.viewDefinition = o[1]);
|
|
10572
10624
|
}
|
|
@@ -10776,19 +10828,19 @@ const co = /* @__PURE__ */ new Set([
|
|
|
10776
10828
|
*/
|
|
10777
10829
|
C(Ls, "uuid", "b32c4332-cd67-436e-ba7f-196646c7a635");
|
|
10778
10830
|
let On = Ls;
|
|
10779
|
-
const
|
|
10831
|
+
const bi = class bi extends At {
|
|
10780
10832
|
constructor(t) {
|
|
10781
10833
|
super(t);
|
|
10782
10834
|
/** {@link Disposable.onDisposed} */
|
|
10783
|
-
C(this, "onDisposed", new
|
|
10835
|
+
C(this, "onDisposed", new j());
|
|
10784
10836
|
/**
|
|
10785
10837
|
* An event triggered when the IFC file starts loading.
|
|
10786
10838
|
*/
|
|
10787
|
-
C(this, "onIfcStartedLoading", new
|
|
10839
|
+
C(this, "onIfcStartedLoading", new j());
|
|
10788
10840
|
/**
|
|
10789
10841
|
* An event triggered when the setup process is completed.
|
|
10790
10842
|
*/
|
|
10791
|
-
C(this, "onSetup", new
|
|
10843
|
+
C(this, "onSetup", new j());
|
|
10792
10844
|
/**
|
|
10793
10845
|
* The settings for the IfcLoader.
|
|
10794
10846
|
* It includes options for excluding categories, setting WASM paths, and more.
|
|
@@ -10810,11 +10862,11 @@ const Di = class Di extends At {
|
|
|
10810
10862
|
transparent: !0,
|
|
10811
10863
|
opacity: 0.5
|
|
10812
10864
|
}));
|
|
10813
|
-
this.components.add(
|
|
10865
|
+
this.components.add(bi.uuid, this), this.settings.excludedCategories.add(z.IFCOPENINGELEMENT);
|
|
10814
10866
|
}
|
|
10815
10867
|
/** {@link Disposable.dispose} */
|
|
10816
10868
|
dispose() {
|
|
10817
|
-
this.webIfc = null, this.onDisposed.trigger(
|
|
10869
|
+
this.webIfc = null, this.onDisposed.trigger(bi.uuid), this.onDisposed.reset();
|
|
10818
10870
|
}
|
|
10819
10871
|
/**
|
|
10820
10872
|
* Sets up the IfcLoader component with the provided configuration.
|
|
@@ -11032,8 +11084,8 @@ const Di = class Di extends At {
|
|
|
11032
11084
|
* A unique identifier for the component.
|
|
11033
11085
|
* This UUID is used to register the component within the Components system.
|
|
11034
11086
|
*/
|
|
11035
|
-
C(
|
|
11036
|
-
let Nn =
|
|
11087
|
+
C(bi, "uuid", "a659add7-1418-4771-a0d6-7d4d438e4624");
|
|
11088
|
+
let Nn = bi;
|
|
11037
11089
|
const Dc = {
|
|
11038
11090
|
// IfcRelAssigns
|
|
11039
11091
|
IfcRelAssignsToControl: { related: 5, relating: 7 },
|
|
@@ -11082,11 +11134,11 @@ const Dc = {
|
|
|
11082
11134
|
constructor(t) {
|
|
11083
11135
|
super(t);
|
|
11084
11136
|
/** {@link Disposable.onDisposed} */
|
|
11085
|
-
C(this, "onDisposed", new
|
|
11137
|
+
C(this, "onDisposed", new j());
|
|
11086
11138
|
/**
|
|
11087
11139
|
* Event triggered when a file is requested for export.
|
|
11088
11140
|
*/
|
|
11089
|
-
C(this, "onRequestFile", new
|
|
11141
|
+
C(this, "onRequestFile", new j());
|
|
11090
11142
|
/**
|
|
11091
11143
|
* ArrayBuffer containing the IFC data to be exported.
|
|
11092
11144
|
*/
|
|
@@ -11094,19 +11146,19 @@ const Dc = {
|
|
|
11094
11146
|
/**
|
|
11095
11147
|
* Event triggered when an element is added to a Pset.
|
|
11096
11148
|
*/
|
|
11097
|
-
C(this, "onElementToPset", new
|
|
11149
|
+
C(this, "onElementToPset", new j());
|
|
11098
11150
|
/**
|
|
11099
11151
|
* Event triggered when a property is added to a Pset.
|
|
11100
11152
|
*/
|
|
11101
|
-
C(this, "onPropToPset", new
|
|
11153
|
+
C(this, "onPropToPset", new j());
|
|
11102
11154
|
/**
|
|
11103
11155
|
* Event triggered when a Pset is removed.
|
|
11104
11156
|
*/
|
|
11105
|
-
C(this, "onPsetRemoved", new
|
|
11157
|
+
C(this, "onPsetRemoved", new j());
|
|
11106
11158
|
/**
|
|
11107
11159
|
* Event triggered when data in the model changes.
|
|
11108
11160
|
*/
|
|
11109
|
-
C(this, "onDataChanged", new
|
|
11161
|
+
C(this, "onDataChanged", new j());
|
|
11110
11162
|
/**
|
|
11111
11163
|
* Configuration for the WebAssembly module.
|
|
11112
11164
|
*/
|
|
@@ -11213,7 +11265,7 @@ const Dc = {
|
|
|
11213
11265
|
const n = await t.getProperties(s);
|
|
11214
11266
|
if ((n == null ? void 0 : n.type) !== z.IFCPROPERTYSET)
|
|
11215
11267
|
continue;
|
|
11216
|
-
const r = await
|
|
11268
|
+
const r = await oi.getPsetRel(t, s);
|
|
11217
11269
|
if (r && (await t.setProperties(r, null), this.registerChange(t, r)), n) {
|
|
11218
11270
|
for (const o of n.HasProperties)
|
|
11219
11271
|
await t.setProperties(o.value, null);
|
|
@@ -11422,7 +11474,7 @@ const Dc = {
|
|
|
11422
11474
|
const a = o.value;
|
|
11423
11475
|
if (a === void 0 || a == null)
|
|
11424
11476
|
throw new Error(`Attribute ${s} has a badly defined handle.`);
|
|
11425
|
-
const l = new
|
|
11477
|
+
const l = new j();
|
|
11426
11478
|
return Object.defineProperty(r[s], "value", {
|
|
11427
11479
|
get() {
|
|
11428
11480
|
return this._value;
|
|
@@ -11469,11 +11521,11 @@ const Dc = {
|
|
|
11469
11521
|
*/
|
|
11470
11522
|
C(ye, "uuid", "58c2d9f0-183c-48d6-a402-dfcf5b9a34df");
|
|
11471
11523
|
let yn = ye;
|
|
11472
|
-
const
|
|
11524
|
+
const vi = class vi extends At {
|
|
11473
11525
|
constructor(t) {
|
|
11474
11526
|
super(t);
|
|
11475
11527
|
/** {@link Disposable.onDisposed} */
|
|
11476
|
-
C(this, "onDisposed", new
|
|
11528
|
+
C(this, "onDisposed", new j());
|
|
11477
11529
|
/**
|
|
11478
11530
|
* Event triggered when relations for a model have been indexed.
|
|
11479
11531
|
* This event provides the model's UUID and the relations map generated for that model.
|
|
@@ -11482,7 +11534,7 @@ const bi = class bi extends At {
|
|
|
11482
11534
|
* @property {RelationsMap} relationsMap - The relations map generated for the specified model.
|
|
11483
11535
|
* 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.
|
|
11484
11536
|
*/
|
|
11485
|
-
C(this, "onRelationsIndexed", new
|
|
11537
|
+
C(this, "onRelationsIndexed", new j());
|
|
11486
11538
|
/**
|
|
11487
11539
|
* Holds the relationship mappings for each model processed by the indexer.
|
|
11488
11540
|
* The structure is a map where each key is a model's UUID, and the value is another map.
|
|
@@ -11549,8 +11601,8 @@ const bi = class bi extends At {
|
|
|
11549
11601
|
* The event provides information about the type of relation, the inverse attribute,
|
|
11550
11602
|
* the IDs of the entities related, and the IDs of the entities that are being related.
|
|
11551
11603
|
*/
|
|
11552
|
-
C(this, "onEntitiesRelated", new
|
|
11553
|
-
this.components.add(
|
|
11604
|
+
C(this, "onEntitiesRelated", new j());
|
|
11605
|
+
this.components.add(vi.uuid, this), t.get(Tt).onFragmentsDisposed.add(this.onFragmentsDisposed);
|
|
11554
11606
|
}
|
|
11555
11607
|
indexRelations(t, e, s, n) {
|
|
11556
11608
|
const r = Object.keys(e).find(
|
|
@@ -11565,7 +11617,9 @@ const bi = class bi extends At {
|
|
|
11565
11617
|
let f = t.get(a);
|
|
11566
11618
|
f || (f = /* @__PURE__ */ new Map(), t.set(a, f));
|
|
11567
11619
|
let I = f.get(h);
|
|
11568
|
-
I || (I = [], f.set(h, I))
|
|
11620
|
+
I || (I = [], f.set(h, I));
|
|
11621
|
+
for (const u of l)
|
|
11622
|
+
I.push(u);
|
|
11569
11623
|
}
|
|
11570
11624
|
for (const f of l) {
|
|
11571
11625
|
const I = this.getAttributeIndex(s);
|
|
@@ -11764,7 +11818,7 @@ const bi = class bi extends At {
|
|
|
11764
11818
|
}
|
|
11765
11819
|
/** {@link Disposable.dispose} */
|
|
11766
11820
|
dispose() {
|
|
11767
|
-
this.relationMaps = {}, this.components.get(Tt).onFragmentsDisposed.remove(this.onFragmentsDisposed), this.onDisposed.trigger(
|
|
11821
|
+
this.relationMaps = {}, this.components.get(Tt).onFragmentsDisposed.remove(this.onFragmentsDisposed), this.onDisposed.trigger(vi.uuid), this.onDisposed.reset();
|
|
11768
11822
|
}
|
|
11769
11823
|
/**
|
|
11770
11824
|
* Retrieves the entities within a model that have a specific relation with a given entity.
|
|
@@ -11899,7 +11953,7 @@ const bi = class bi extends At {
|
|
|
11899
11953
|
), I.set(r, E));
|
|
11900
11954
|
for (const T of u) {
|
|
11901
11955
|
let p = E.get(T);
|
|
11902
|
-
p || (p = { related: new
|
|
11956
|
+
p || (p = { related: new we() }, E.set(T, p)), p.related.add(...d);
|
|
11903
11957
|
}
|
|
11904
11958
|
for (const T of u) {
|
|
11905
11959
|
let p = a.get(T);
|
|
@@ -11953,21 +12007,21 @@ const bi = class bi extends At {
|
|
|
11953
12007
|
* A unique identifier for the component.
|
|
11954
12008
|
* This UUID is used to register the component within the Components system.
|
|
11955
12009
|
*/
|
|
11956
|
-
C(
|
|
11957
|
-
let kt =
|
|
12010
|
+
C(vi, "uuid", "23a889ab-83b3-44a4-8bee-ead83438370b");
|
|
12011
|
+
let kt = vi;
|
|
11958
12012
|
const _s = class _s extends At {
|
|
11959
12013
|
constructor(t) {
|
|
11960
12014
|
super(t);
|
|
11961
12015
|
/** {@link Disposable.onDisposed} */
|
|
11962
|
-
C(this, "onDisposed", new
|
|
12016
|
+
C(this, "onDisposed", new j());
|
|
11963
12017
|
/**
|
|
11964
12018
|
* Event triggered when fragments are loaded.
|
|
11965
12019
|
*/
|
|
11966
|
-
C(this, "onFragmentsLoaded", new
|
|
12020
|
+
C(this, "onFragmentsLoaded", new j());
|
|
11967
12021
|
/**
|
|
11968
12022
|
* Event triggered when fragments are disposed.
|
|
11969
12023
|
*/
|
|
11970
|
-
C(this, "onFragmentsDisposed", new
|
|
12024
|
+
C(this, "onFragmentsDisposed", new j());
|
|
11971
12025
|
/**
|
|
11972
12026
|
* DataMap containing all loaded fragments.
|
|
11973
12027
|
* The key is the fragment's unique identifier, and the value is the fragment itself.
|
|
@@ -12181,11 +12235,11 @@ const _s = class _s extends At {
|
|
|
12181
12235
|
*/
|
|
12182
12236
|
C(_s, "uuid", "fef46874-46a3-461b-8c44-2922ab77c806");
|
|
12183
12237
|
let Tt = _s;
|
|
12184
|
-
var
|
|
12238
|
+
var us = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
12185
12239
|
function vc(c) {
|
|
12186
12240
|
return c && c.__esModule && Object.prototype.hasOwnProperty.call(c, "default") ? c.default : c;
|
|
12187
12241
|
}
|
|
12188
|
-
function
|
|
12242
|
+
function fs(c) {
|
|
12189
12243
|
throw new Error('Could not dynamically require "' + c + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
12190
12244
|
}
|
|
12191
12245
|
var lo = { exports: {} };
|
|
@@ -12208,7 +12262,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12208
12262
|
function r(l, h) {
|
|
12209
12263
|
if (!s[l]) {
|
|
12210
12264
|
if (!e[l]) {
|
|
12211
|
-
var f = typeof
|
|
12265
|
+
var f = typeof fs == "function" && fs;
|
|
12212
12266
|
if (!h && f)
|
|
12213
12267
|
return f(l, !0);
|
|
12214
12268
|
if (o)
|
|
@@ -12224,7 +12278,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12224
12278
|
}
|
|
12225
12279
|
return s[l].exports;
|
|
12226
12280
|
}
|
|
12227
|
-
for (var o = typeof
|
|
12281
|
+
for (var o = typeof fs == "function" && fs, a = 0; a < n.length; a++)
|
|
12228
12282
|
r(n[a]);
|
|
12229
12283
|
return r;
|
|
12230
12284
|
}({ 1: [function(t, e, s) {
|
|
@@ -12327,20 +12381,20 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12327
12381
|
return T;
|
|
12328
12382
|
}
|
|
12329
12383
|
function r(u, d, E, T, p, m) {
|
|
12330
|
-
var F, R, S = u.file, N = u.compression, y = m !== l.utf8encode, M = o.transformTo("string", m(S.name)), L = o.transformTo("string", l.utf8encode(S.name)), b = S.comment,
|
|
12384
|
+
var F, R, S = u.file, N = u.compression, y = m !== l.utf8encode, M = o.transformTo("string", m(S.name)), L = o.transformTo("string", l.utf8encode(S.name)), b = S.comment, Y = o.transformTo("string", m(b)), O = o.transformTo("string", l.utf8encode(b)), w = L.length !== S.name.length, g = O.length !== b.length, v = "", q = "", G = "", et = S.dir, W = S.date, nt = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
|
|
12331
12385
|
d && !E || (nt.crc32 = u.crc32, nt.compressedSize = u.compressedSize, nt.uncompressedSize = u.uncompressedSize);
|
|
12332
|
-
var
|
|
12333
|
-
d && (
|
|
12386
|
+
var V = 0;
|
|
12387
|
+
d && (V |= 8), y || !w && !g || (V |= 2048);
|
|
12334
12388
|
var x = 0, ot = 0;
|
|
12335
12389
|
et && (x |= 16), p === "UNIX" ? (ot = 798, x |= function(tt, St) {
|
|
12336
12390
|
var yt = tt;
|
|
12337
12391
|
return tt || (yt = St ? 16893 : 33204), (65535 & yt) << 16;
|
|
12338
12392
|
}(S.unixPermissions, et)) : (ot = 20, x |= function(tt) {
|
|
12339
12393
|
return 63 & (tt || 0);
|
|
12340
|
-
}(S.dosPermissions)), F = W.getUTCHours(), F <<= 6, F |= W.getUTCMinutes(), F <<= 5, F |= W.getUTCSeconds() / 2, R = W.getUTCFullYear() - 1980, R <<= 4, R |= W.getUTCMonth() + 1, R <<= 5, R |= W.getUTCDate(), w && (
|
|
12394
|
+
}(S.dosPermissions)), F = W.getUTCHours(), F <<= 6, F |= W.getUTCMinutes(), F <<= 5, F |= W.getUTCSeconds() / 2, R = W.getUTCFullYear() - 1980, R <<= 4, R |= W.getUTCMonth() + 1, R <<= 5, R |= W.getUTCDate(), w && (q = n(1, 1) + n(h(M), 4) + L, v += "up" + n(q.length, 2) + q), g && (G = n(1, 1) + n(h(Y), 4) + O, v += "uc" + n(G.length, 2) + G);
|
|
12341
12395
|
var it = "";
|
|
12342
12396
|
return it += `
|
|
12343
|
-
\0`, it += n(
|
|
12397
|
+
\0`, it += n(V, 2), it += N.magic, it += n(F, 2), it += n(R, 2), it += n(nt.crc32, 4), it += n(nt.compressedSize, 4), it += n(nt.uncompressedSize, 4), it += n(M.length, 2), it += n(v.length, 2), { fileRecord: f.LOCAL_FILE_HEADER + it + M + v, dirRecord: f.CENTRAL_FILE_HEADER + n(ot, 2) + it + n(Y.length, 2) + "\0\0\0\0" + n(x, 4) + n(T, 4) + M + v + Y };
|
|
12344
12398
|
}
|
|
12345
12399
|
var o = t("../utils"), a = t("../stream/GenericWorker"), l = t("../utf8"), h = t("../crc32"), f = t("../signature");
|
|
12346
12400
|
function I(u, d, E, T) {
|
|
@@ -12528,8 +12582,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12528
12582
|
function n(S, N, y) {
|
|
12529
12583
|
var M, L = o.getTypeOf(N), b = o.extend(y || {}, h);
|
|
12530
12584
|
b.date = b.date || /* @__PURE__ */ new Date(), b.compression !== null && (b.compression = b.compression.toUpperCase()), typeof b.unixPermissions == "string" && (b.unixPermissions = parseInt(b.unixPermissions, 8)), b.unixPermissions && 16384 & b.unixPermissions && (b.dir = !0), b.dosPermissions && 16 & b.dosPermissions && (b.dir = !0), b.dir && (S = p(S)), b.createFolders && (M = T(S)) && m.call(this, M, !0);
|
|
12531
|
-
var
|
|
12532
|
-
y && y.binary !== void 0 || (b.binary = !
|
|
12585
|
+
var Y = L === "string" && b.binary === !1 && b.base64 === !1;
|
|
12586
|
+
y && y.binary !== void 0 || (b.binary = !Y), (N instanceof f && N.uncompressedSize === 0 || b.dir || !N || N.length === 0) && (b.base64 = !1, b.binary = !0, N = "", b.compression = "STORE", L = "string");
|
|
12533
12587
|
var O = null;
|
|
12534
12588
|
O = N instanceof f || N instanceof a ? N : d.isNode && d.isStream(N) ? new E(S, N) : o.prepareContent(S, N, b.binary, b.optimizedBinaryString, b.base64);
|
|
12535
12589
|
var w = new I(S, O, b);
|
|
@@ -12563,8 +12617,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12563
12617
|
return S = this.root + S, n.call(this, S, N, y), this;
|
|
12564
12618
|
if (F(S)) {
|
|
12565
12619
|
var M = S;
|
|
12566
|
-
return this.filter(function(b,
|
|
12567
|
-
return !
|
|
12620
|
+
return this.filter(function(b, Y) {
|
|
12621
|
+
return !Y.dir && M.test(b);
|
|
12568
12622
|
});
|
|
12569
12623
|
}
|
|
12570
12624
|
var L = this.files[this.root + S];
|
|
@@ -12861,7 +12915,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12861
12915
|
return n.transformTo(y, M);
|
|
12862
12916
|
}
|
|
12863
12917
|
}(R, function(y, M) {
|
|
12864
|
-
var L, b = 0,
|
|
12918
|
+
var L, b = 0, Y = null, O = 0;
|
|
12865
12919
|
for (L = 0; L < M.length; L++)
|
|
12866
12920
|
O += M[L].length;
|
|
12867
12921
|
switch (y) {
|
|
@@ -12870,9 +12924,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12870
12924
|
case "array":
|
|
12871
12925
|
return Array.prototype.concat.apply([], M);
|
|
12872
12926
|
case "uint8array":
|
|
12873
|
-
for (
|
|
12874
|
-
|
|
12875
|
-
return
|
|
12927
|
+
for (Y = new Uint8Array(O), L = 0; L < M.length; L++)
|
|
12928
|
+
Y.set(M[L], b), b += M[L].length;
|
|
12929
|
+
return Y;
|
|
12876
12930
|
case "nodebuffer":
|
|
12877
12931
|
return Buffer.concat(M);
|
|
12878
12932
|
default:
|
|
@@ -13360,7 +13414,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13360
13414
|
e.exports = function(E) {
|
|
13361
13415
|
u.push(E) !== 1 || o || r();
|
|
13362
13416
|
};
|
|
13363
|
-
}).call(this, typeof
|
|
13417
|
+
}).call(this, typeof us < "u" ? us : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
13364
13418
|
}, {}], 37: [function(t, e, s) {
|
|
13365
13419
|
var n = t("immediate");
|
|
13366
13420
|
function r() {
|
|
@@ -13475,9 +13529,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13475
13529
|
for (var S = new Array(F), N = 0, y = -1, M = new this(r); ++y < F; )
|
|
13476
13530
|
L(p[y], y);
|
|
13477
13531
|
return M;
|
|
13478
|
-
function L(b,
|
|
13532
|
+
function L(b, Y) {
|
|
13479
13533
|
m.resolve(b).then(function(O) {
|
|
13480
|
-
S[
|
|
13534
|
+
S[Y] = O, ++N !== F || R || (R = !0, o.resolve(M, S));
|
|
13481
13535
|
}, function(O) {
|
|
13482
13536
|
R || (R = !0, o.reject(M, O));
|
|
13483
13537
|
});
|
|
@@ -13702,7 +13756,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13702
13756
|
return -1 ^ r;
|
|
13703
13757
|
};
|
|
13704
13758
|
}, {}], 46: [function(t, e, s) {
|
|
13705
|
-
var n, r = t("../utils/common"), o = t("./trees"), a = t("./adler32"), l = t("./crc32"), h = t("./messages"), f = 0, I = 4, u = 0, d = -2, E = -1, T = 4, p = 2, m = 8, F = 9, R = 286, S = 30, N = 19, y = 2 * R + 1, M = 15, L = 3, b = 258,
|
|
13759
|
+
var n, r = t("../utils/common"), o = t("./trees"), a = t("./adler32"), l = t("./crc32"), h = t("./messages"), f = 0, I = 4, u = 0, d = -2, E = -1, T = 4, p = 2, m = 8, F = 9, R = 286, S = 30, N = 19, y = 2 * R + 1, M = 15, L = 3, b = 258, Y = b + L + 1, O = 42, w = 113, g = 1, v = 2, q = 3, G = 4;
|
|
13706
13760
|
function et(A, X) {
|
|
13707
13761
|
return A.msg = h[X], X;
|
|
13708
13762
|
}
|
|
@@ -13713,12 +13767,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13713
13767
|
for (var X = A.length; 0 <= --X; )
|
|
13714
13768
|
A[X] = 0;
|
|
13715
13769
|
}
|
|
13716
|
-
function
|
|
13770
|
+
function V(A) {
|
|
13717
13771
|
var X = A.state, k = X.pending;
|
|
13718
13772
|
k > A.avail_out && (k = A.avail_out), k !== 0 && (r.arraySet(A.output, X.pending_buf, X.pending_out, k, A.next_out), A.next_out += k, X.pending_out += k, A.total_out += k, A.avail_out -= k, X.pending -= k, X.pending === 0 && (X.pending_out = 0));
|
|
13719
13773
|
}
|
|
13720
13774
|
function x(A, X) {
|
|
13721
|
-
o._tr_flush_block(A, 0 <= A.block_start ? A.block_start : -1, A.strstart - A.block_start, X), A.block_start = A.strstart,
|
|
13775
|
+
o._tr_flush_block(A, 0 <= A.block_start ? A.block_start : -1, A.strstart - A.block_start, X), A.block_start = A.strstart, V(A.strm);
|
|
13722
13776
|
}
|
|
13723
13777
|
function ot(A, X) {
|
|
13724
13778
|
A.pending_buf[A.pending++] = X;
|
|
@@ -13727,8 +13781,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13727
13781
|
A.pending_buf[A.pending++] = X >>> 8 & 255, A.pending_buf[A.pending++] = 255 & X;
|
|
13728
13782
|
}
|
|
13729
13783
|
function tt(A, X) {
|
|
13730
|
-
var k, P, _ = A.max_chain_length, U = A.strstart, $ = A.prev_length,
|
|
13731
|
-
A.prev_length >= A.good_match && (_ >>= 2),
|
|
13784
|
+
var k, P, _ = A.max_chain_length, U = A.strstart, $ = A.prev_length, Z = A.nice_match, B = A.strstart > A.w_size - Y ? A.strstart - (A.w_size - Y) : 0, K = A.window, st = A.w_mask, J = A.prev, ct = A.strstart + b, Rt = K[U + $ - 1], dt = K[U + $];
|
|
13785
|
+
A.prev_length >= A.good_match && (_ >>= 2), Z > A.lookahead && (Z = A.lookahead);
|
|
13732
13786
|
do
|
|
13733
13787
|
if (K[(k = X) + $] === dt && K[k + $ - 1] === Rt && K[k] === K[U] && K[++k] === K[U + 1]) {
|
|
13734
13788
|
U += 2, k++;
|
|
@@ -13736,7 +13790,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13736
13790
|
;
|
|
13737
13791
|
while (K[++U] === K[++k] && K[++U] === K[++k] && K[++U] === K[++k] && K[++U] === K[++k] && K[++U] === K[++k] && K[++U] === K[++k] && K[++U] === K[++k] && K[++U] === K[++k] && U < ct);
|
|
13738
13792
|
if (P = b - (ct - U), U = ct - b, $ < P) {
|
|
13739
|
-
if (A.match_start = X,
|
|
13793
|
+
if (A.match_start = X, Z <= ($ = P))
|
|
13740
13794
|
break;
|
|
13741
13795
|
Rt = K[U + $ - 1], dt = K[U + $];
|
|
13742
13796
|
}
|
|
@@ -13745,9 +13799,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13745
13799
|
return $ <= A.lookahead ? $ : A.lookahead;
|
|
13746
13800
|
}
|
|
13747
13801
|
function St(A) {
|
|
13748
|
-
var X, k, P, _, U, $,
|
|
13802
|
+
var X, k, P, _, U, $, Z, B, K, st, J = A.w_size;
|
|
13749
13803
|
do {
|
|
13750
|
-
if (_ = A.window_size - A.lookahead - A.strstart, A.strstart >= J + (J -
|
|
13804
|
+
if (_ = A.window_size - A.lookahead - A.strstart, A.strstart >= J + (J - Y)) {
|
|
13751
13805
|
for (r.arraySet(A.window, A.window, J, J, 0), A.match_start -= J, A.strstart -= J, A.block_start -= J, X = k = A.hash_size; P = A.head[--X], A.head[X] = J <= P ? P - J : 0, --k; )
|
|
13752
13806
|
;
|
|
13753
13807
|
for (X = k = J; P = A.prev[--X], A.prev[X] = J <= P ? P - J : 0, --k; )
|
|
@@ -13756,20 +13810,20 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13756
13810
|
}
|
|
13757
13811
|
if (A.strm.avail_in === 0)
|
|
13758
13812
|
break;
|
|
13759
|
-
if ($ = A.strm,
|
|
13813
|
+
if ($ = A.strm, Z = A.window, B = A.strstart + A.lookahead, K = _, st = void 0, st = $.avail_in, K < st && (st = K), k = st === 0 ? 0 : ($.avail_in -= st, r.arraySet(Z, $.input, $.next_in, st, B), $.state.wrap === 1 ? $.adler = a($.adler, Z, st, B) : $.state.wrap === 2 && ($.adler = l($.adler, Z, st, B)), $.next_in += st, $.total_in += st, st), A.lookahead += k, A.lookahead + A.insert >= L)
|
|
13760
13814
|
for (U = A.strstart - A.insert, A.ins_h = A.window[U], A.ins_h = (A.ins_h << A.hash_shift ^ A.window[U + 1]) & A.hash_mask; A.insert && (A.ins_h = (A.ins_h << A.hash_shift ^ A.window[U + L - 1]) & A.hash_mask, A.prev[U & A.w_mask] = A.head[A.ins_h], A.head[A.ins_h] = U, U++, A.insert--, !(A.lookahead + A.insert < L)); )
|
|
13761
13815
|
;
|
|
13762
|
-
} while (A.lookahead <
|
|
13816
|
+
} while (A.lookahead < Y && A.strm.avail_in !== 0);
|
|
13763
13817
|
}
|
|
13764
13818
|
function yt(A, X) {
|
|
13765
13819
|
for (var k, P; ; ) {
|
|
13766
|
-
if (A.lookahead <
|
|
13767
|
-
if (St(A), A.lookahead <
|
|
13820
|
+
if (A.lookahead < Y) {
|
|
13821
|
+
if (St(A), A.lookahead < Y && X === f)
|
|
13768
13822
|
return g;
|
|
13769
13823
|
if (A.lookahead === 0)
|
|
13770
13824
|
break;
|
|
13771
13825
|
}
|
|
13772
|
-
if (k = 0, A.lookahead >= L && (A.ins_h = (A.ins_h << A.hash_shift ^ A.window[A.strstart + L - 1]) & A.hash_mask, k = A.prev[A.strstart & A.w_mask] = A.head[A.ins_h], A.head[A.ins_h] = A.strstart), k !== 0 && A.strstart - k <= A.w_size -
|
|
13826
|
+
if (k = 0, A.lookahead >= L && (A.ins_h = (A.ins_h << A.hash_shift ^ A.window[A.strstart + L - 1]) & A.hash_mask, k = A.prev[A.strstart & A.w_mask] = A.head[A.ins_h], A.head[A.ins_h] = A.strstart), k !== 0 && A.strstart - k <= A.w_size - Y && (A.match_length = tt(A, k)), A.match_length >= L)
|
|
13773
13827
|
if (P = o._tr_tally(A, A.strstart - A.match_start, A.match_length - L), A.lookahead -= A.match_length, A.match_length <= A.max_lazy_match && A.lookahead >= L) {
|
|
13774
13828
|
for (A.match_length--; A.strstart++, A.ins_h = (A.ins_h << A.hash_shift ^ A.window[A.strstart + L - 1]) & A.hash_mask, k = A.prev[A.strstart & A.w_mask] = A.head[A.ins_h], A.head[A.ins_h] = A.strstart, --A.match_length != 0; )
|
|
13775
13829
|
;
|
|
@@ -13781,17 +13835,17 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13781
13835
|
if (P && (x(A, !1), A.strm.avail_out === 0))
|
|
13782
13836
|
return g;
|
|
13783
13837
|
}
|
|
13784
|
-
return A.insert = A.strstart < L - 1 ? A.strstart : L - 1, X === I ? (x(A, !0), A.strm.avail_out === 0 ?
|
|
13838
|
+
return A.insert = A.strstart < L - 1 ? A.strstart : L - 1, X === I ? (x(A, !0), A.strm.avail_out === 0 ? q : G) : A.last_lit && (x(A, !1), A.strm.avail_out === 0) ? g : v;
|
|
13785
13839
|
}
|
|
13786
13840
|
function at(A, X) {
|
|
13787
13841
|
for (var k, P, _; ; ) {
|
|
13788
|
-
if (A.lookahead <
|
|
13789
|
-
if (St(A), A.lookahead <
|
|
13842
|
+
if (A.lookahead < Y) {
|
|
13843
|
+
if (St(A), A.lookahead < Y && X === f)
|
|
13790
13844
|
return g;
|
|
13791
13845
|
if (A.lookahead === 0)
|
|
13792
13846
|
break;
|
|
13793
13847
|
}
|
|
13794
|
-
if (k = 0, A.lookahead >= L && (A.ins_h = (A.ins_h << A.hash_shift ^ A.window[A.strstart + L - 1]) & A.hash_mask, k = A.prev[A.strstart & A.w_mask] = A.head[A.ins_h], A.head[A.ins_h] = A.strstart), A.prev_length = A.match_length, A.prev_match = A.match_start, A.match_length = L - 1, k !== 0 && A.prev_length < A.max_lazy_match && A.strstart - k <= A.w_size -
|
|
13848
|
+
if (k = 0, A.lookahead >= L && (A.ins_h = (A.ins_h << A.hash_shift ^ A.window[A.strstart + L - 1]) & A.hash_mask, k = A.prev[A.strstart & A.w_mask] = A.head[A.ins_h], A.head[A.ins_h] = A.strstart), A.prev_length = A.match_length, A.prev_match = A.match_start, A.match_length = L - 1, k !== 0 && A.prev_length < A.max_lazy_match && A.strstart - k <= A.w_size - Y && (A.match_length = tt(A, k), A.match_length <= 5 && (A.strategy === 1 || A.match_length === L && 4096 < A.strstart - A.match_start) && (A.match_length = L - 1)), A.prev_length >= L && A.match_length <= A.prev_length) {
|
|
13795
13849
|
for (_ = A.strstart + A.lookahead - L, P = o._tr_tally(A, A.strstart - 1 - A.prev_match, A.prev_length - L), A.lookahead -= A.prev_length - 1, A.prev_length -= 2; ++A.strstart <= _ && (A.ins_h = (A.ins_h << A.hash_shift ^ A.window[A.strstart + L - 1]) & A.hash_mask, k = A.prev[A.strstart & A.w_mask] = A.head[A.ins_h], A.head[A.ins_h] = A.strstart), --A.prev_length != 0; )
|
|
13796
13850
|
;
|
|
13797
13851
|
if (A.match_available = 0, A.match_length = L - 1, A.strstart++, P && (x(A, !1), A.strm.avail_out === 0))
|
|
@@ -13802,7 +13856,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13802
13856
|
} else
|
|
13803
13857
|
A.match_available = 1, A.strstart++, A.lookahead--;
|
|
13804
13858
|
}
|
|
13805
|
-
return A.match_available && (P = o._tr_tally(A, 0, A.window[A.strstart - 1]), A.match_available = 0), A.insert = A.strstart < L - 1 ? A.strstart : L - 1, X === I ? (x(A, !0), A.strm.avail_out === 0 ?
|
|
13859
|
+
return A.match_available && (P = o._tr_tally(A, 0, A.window[A.strstart - 1]), A.match_available = 0), A.insert = A.strstart < L - 1 ? A.strstart : L - 1, X === I ? (x(A, !0), A.strm.avail_out === 0 ? q : G) : A.last_lit && (x(A, !1), A.strm.avail_out === 0) ? g : v;
|
|
13806
13860
|
}
|
|
13807
13861
|
function It(A, X, k, P, _) {
|
|
13808
13862
|
this.good_length = A, this.max_lazy = X, this.nice_length = k, this.max_chain = P, this.func = _;
|
|
@@ -13827,8 +13881,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13827
13881
|
if (X === E && (X = 6), P < 0 ? ($ = 0, P = -P) : 15 < P && ($ = 2, P -= 16), _ < 1 || F < _ || k !== m || P < 8 || 15 < P || X < 0 || 9 < X || U < 0 || T < U)
|
|
13828
13882
|
return et(A, d);
|
|
13829
13883
|
P === 8 && (P = 9);
|
|
13830
|
-
var
|
|
13831
|
-
return (A.state =
|
|
13884
|
+
var Z = new ft();
|
|
13885
|
+
return (A.state = Z).strm = A, Z.wrap = $, Z.gzhead = null, Z.w_bits = P, Z.w_size = 1 << Z.w_bits, Z.w_mask = Z.w_size - 1, Z.hash_bits = _ + 7, Z.hash_size = 1 << Z.hash_bits, Z.hash_mask = Z.hash_size - 1, Z.hash_shift = ~~((Z.hash_bits + L - 1) / L), Z.window = new r.Buf8(2 * Z.w_size), Z.head = new r.Buf16(Z.hash_size), Z.prev = new r.Buf16(Z.w_size), Z.lit_bufsize = 1 << _ + 6, Z.pending_buf_size = 4 * Z.lit_bufsize, Z.pending_buf = new r.Buf8(Z.pending_buf_size), Z.d_buf = 1 * Z.lit_bufsize, Z.l_buf = 3 * Z.lit_bufsize, Z.level = X, Z.strategy = U, Z.method = k, Ht(A);
|
|
13832
13886
|
}
|
|
13833
13887
|
n = [new It(0, 0, 0, 0, function(A, X) {
|
|
13834
13888
|
var k = 65535;
|
|
@@ -13841,10 +13895,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13841
13895
|
}
|
|
13842
13896
|
A.strstart += A.lookahead, A.lookahead = 0;
|
|
13843
13897
|
var P = A.block_start + k;
|
|
13844
|
-
if ((A.strstart === 0 || A.strstart >= P) && (A.lookahead = A.strstart - P, A.strstart = P, x(A, !1), A.strm.avail_out === 0) || A.strstart - A.block_start >= A.w_size -
|
|
13898
|
+
if ((A.strstart === 0 || A.strstart >= P) && (A.lookahead = A.strstart - P, A.strstart = P, x(A, !1), A.strm.avail_out === 0) || A.strstart - A.block_start >= A.w_size - Y && (x(A, !1), A.strm.avail_out === 0))
|
|
13845
13899
|
return g;
|
|
13846
13900
|
}
|
|
13847
|
-
return A.insert = 0, X === I ? (x(A, !0), A.strm.avail_out === 0 ?
|
|
13901
|
+
return A.insert = 0, X === I ? (x(A, !0), A.strm.avail_out === 0 ? q : G) : (A.strstart > A.block_start && (x(A, !1), A.strm.avail_out), g);
|
|
13848
13902
|
}), new It(4, 4, 8, 4, yt), new It(4, 5, 16, 8, yt), new It(4, 6, 32, 32, yt), new It(4, 4, 16, 16, at), new It(8, 16, 32, 32, at), new It(8, 16, 128, 128, at), new It(8, 32, 128, 256, at), new It(32, 128, 258, 1024, at), new It(32, 258, 258, 4096, at)], s.deflateInit = function(A, X) {
|
|
13849
13903
|
return Dt(A, X, m, 15, 8, 0);
|
|
13850
13904
|
}, s.deflateInit2 = Dt, s.deflateReset = Ht, s.deflateResetKeep = Ct, s.deflateSetHeader = function(A, X) {
|
|
@@ -13864,7 +13918,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13864
13918
|
}
|
|
13865
13919
|
if (P.status === 69)
|
|
13866
13920
|
if (P.gzhead.extra) {
|
|
13867
|
-
for (_ = P.pending; P.gzindex < (65535 & P.gzhead.extra.length) && (P.pending !== P.pending_buf_size || (P.gzhead.hcrc && P.pending > _ && (A.adler = l(A.adler, P.pending_buf, P.pending - _, _)),
|
|
13921
|
+
for (_ = P.pending; P.gzindex < (65535 & P.gzhead.extra.length) && (P.pending !== P.pending_buf_size || (P.gzhead.hcrc && P.pending > _ && (A.adler = l(A.adler, P.pending_buf, P.pending - _, _)), V(A), _ = P.pending, P.pending !== P.pending_buf_size)); )
|
|
13868
13922
|
ot(P, 255 & P.gzhead.extra[P.gzindex]), P.gzindex++;
|
|
13869
13923
|
P.gzhead.hcrc && P.pending > _ && (A.adler = l(A.adler, P.pending_buf, P.pending - _, _)), P.gzindex === P.gzhead.extra.length && (P.gzindex = 0, P.status = 73);
|
|
13870
13924
|
} else
|
|
@@ -13873,7 +13927,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13873
13927
|
if (P.gzhead.name) {
|
|
13874
13928
|
_ = P.pending;
|
|
13875
13929
|
do {
|
|
13876
|
-
if (P.pending === P.pending_buf_size && (P.gzhead.hcrc && P.pending > _ && (A.adler = l(A.adler, P.pending_buf, P.pending - _, _)),
|
|
13930
|
+
if (P.pending === P.pending_buf_size && (P.gzhead.hcrc && P.pending > _ && (A.adler = l(A.adler, P.pending_buf, P.pending - _, _)), V(A), _ = P.pending, P.pending === P.pending_buf_size)) {
|
|
13877
13931
|
U = 1;
|
|
13878
13932
|
break;
|
|
13879
13933
|
}
|
|
@@ -13886,7 +13940,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13886
13940
|
if (P.gzhead.comment) {
|
|
13887
13941
|
_ = P.pending;
|
|
13888
13942
|
do {
|
|
13889
|
-
if (P.pending === P.pending_buf_size && (P.gzhead.hcrc && P.pending > _ && (A.adler = l(A.adler, P.pending_buf, P.pending - _, _)),
|
|
13943
|
+
if (P.pending === P.pending_buf_size && (P.gzhead.hcrc && P.pending > _ && (A.adler = l(A.adler, P.pending_buf, P.pending - _, _)), V(A), _ = P.pending, P.pending === P.pending_buf_size)) {
|
|
13890
13944
|
U = 1;
|
|
13891
13945
|
break;
|
|
13892
13946
|
}
|
|
@@ -13895,15 +13949,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13895
13949
|
P.gzhead.hcrc && P.pending > _ && (A.adler = l(A.adler, P.pending_buf, P.pending - _, _)), U === 0 && (P.status = 103);
|
|
13896
13950
|
} else
|
|
13897
13951
|
P.status = 103;
|
|
13898
|
-
if (P.status === 103 && (P.gzhead.hcrc ? (P.pending + 2 > P.pending_buf_size &&
|
|
13899
|
-
if (
|
|
13952
|
+
if (P.status === 103 && (P.gzhead.hcrc ? (P.pending + 2 > P.pending_buf_size && V(A), P.pending + 2 <= P.pending_buf_size && (ot(P, 255 & A.adler), ot(P, A.adler >> 8 & 255), A.adler = 0, P.status = w)) : P.status = w), P.pending !== 0) {
|
|
13953
|
+
if (V(A), A.avail_out === 0)
|
|
13900
13954
|
return P.last_flush = -1, u;
|
|
13901
13955
|
} else if (A.avail_in === 0 && W(X) <= W(k) && X !== I)
|
|
13902
13956
|
return et(A, -5);
|
|
13903
13957
|
if (P.status === 666 && A.avail_in !== 0)
|
|
13904
13958
|
return et(A, -5);
|
|
13905
13959
|
if (A.avail_in !== 0 || P.lookahead !== 0 || X !== f && P.status !== 666) {
|
|
13906
|
-
var
|
|
13960
|
+
var Z = P.strategy === 2 ? function(B, K) {
|
|
13907
13961
|
for (var st; ; ) {
|
|
13908
13962
|
if (B.lookahead === 0 && (St(B), B.lookahead === 0)) {
|
|
13909
13963
|
if (K === f)
|
|
@@ -13913,7 +13967,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13913
13967
|
if (B.match_length = 0, st = o._tr_tally(B, 0, B.window[B.strstart]), B.lookahead--, B.strstart++, st && (x(B, !1), B.strm.avail_out === 0))
|
|
13914
13968
|
return g;
|
|
13915
13969
|
}
|
|
13916
|
-
return B.insert = 0, K === I ? (x(B, !0), B.strm.avail_out === 0 ?
|
|
13970
|
+
return B.insert = 0, K === I ? (x(B, !0), B.strm.avail_out === 0 ? q : G) : B.last_lit && (x(B, !1), B.strm.avail_out === 0) ? g : v;
|
|
13917
13971
|
}(P, X) : P.strategy === 3 ? function(B, K) {
|
|
13918
13972
|
for (var st, J, ct, Rt, dt = B.window; ; ) {
|
|
13919
13973
|
if (B.lookahead <= b) {
|
|
@@ -13932,27 +13986,27 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13932
13986
|
if (B.match_length >= L ? (st = o._tr_tally(B, 1, B.match_length - L), B.lookahead -= B.match_length, B.strstart += B.match_length, B.match_length = 0) : (st = o._tr_tally(B, 0, B.window[B.strstart]), B.lookahead--, B.strstart++), st && (x(B, !1), B.strm.avail_out === 0))
|
|
13933
13987
|
return g;
|
|
13934
13988
|
}
|
|
13935
|
-
return B.insert = 0, K === I ? (x(B, !0), B.strm.avail_out === 0 ?
|
|
13989
|
+
return B.insert = 0, K === I ? (x(B, !0), B.strm.avail_out === 0 ? q : G) : B.last_lit && (x(B, !1), B.strm.avail_out === 0) ? g : v;
|
|
13936
13990
|
}(P, X) : n[P.level].func(P, X);
|
|
13937
|
-
if (
|
|
13991
|
+
if (Z !== q && Z !== G || (P.status = 666), Z === g || Z === q)
|
|
13938
13992
|
return A.avail_out === 0 && (P.last_flush = -1), u;
|
|
13939
|
-
if (
|
|
13993
|
+
if (Z === v && (X === 1 ? o._tr_align(P) : X !== 5 && (o._tr_stored_block(P, 0, 0, !1), X === 3 && (nt(P.head), P.lookahead === 0 && (P.strstart = 0, P.block_start = 0, P.insert = 0))), V(A), A.avail_out === 0))
|
|
13940
13994
|
return P.last_flush = -1, u;
|
|
13941
13995
|
}
|
|
13942
|
-
return X !== I ? u : P.wrap <= 0 ? 1 : (P.wrap === 2 ? (ot(P, 255 & A.adler), ot(P, A.adler >> 8 & 255), ot(P, A.adler >> 16 & 255), ot(P, A.adler >> 24 & 255), ot(P, 255 & A.total_in), ot(P, A.total_in >> 8 & 255), ot(P, A.total_in >> 16 & 255), ot(P, A.total_in >> 24 & 255)) : (it(P, A.adler >>> 16), it(P, 65535 & A.adler)),
|
|
13996
|
+
return X !== I ? u : P.wrap <= 0 ? 1 : (P.wrap === 2 ? (ot(P, 255 & A.adler), ot(P, A.adler >> 8 & 255), ot(P, A.adler >> 16 & 255), ot(P, A.adler >> 24 & 255), ot(P, 255 & A.total_in), ot(P, A.total_in >> 8 & 255), ot(P, A.total_in >> 16 & 255), ot(P, A.total_in >> 24 & 255)) : (it(P, A.adler >>> 16), it(P, 65535 & A.adler)), V(A), 0 < P.wrap && (P.wrap = -P.wrap), P.pending !== 0 ? u : 1);
|
|
13943
13997
|
}, s.deflateEnd = function(A) {
|
|
13944
13998
|
var X;
|
|
13945
13999
|
return A && A.state ? (X = A.state.status) !== O && X !== 69 && X !== 73 && X !== 91 && X !== 103 && X !== w && X !== 666 ? et(A, d) : (A.state = null, X === w ? et(A, -3) : u) : d;
|
|
13946
14000
|
}, s.deflateSetDictionary = function(A, X) {
|
|
13947
|
-
var k, P, _, U, $,
|
|
14001
|
+
var k, P, _, U, $, Z, B, K, st = X.length;
|
|
13948
14002
|
if (!A || !A.state || (U = (k = A.state).wrap) === 2 || U === 1 && k.status !== O || k.lookahead)
|
|
13949
14003
|
return d;
|
|
13950
|
-
for (U === 1 && (A.adler = a(A.adler, X, st, 0)), k.wrap = 0, st >= k.w_size && (U === 0 && (nt(k.head), k.strstart = 0, k.block_start = 0, k.insert = 0), K = new r.Buf8(k.w_size), r.arraySet(K, X, st - k.w_size, k.w_size, 0), X = K, st = k.w_size), $ = A.avail_in,
|
|
14004
|
+
for (U === 1 && (A.adler = a(A.adler, X, st, 0)), k.wrap = 0, st >= k.w_size && (U === 0 && (nt(k.head), k.strstart = 0, k.block_start = 0, k.insert = 0), K = new r.Buf8(k.w_size), r.arraySet(K, X, st - k.w_size, k.w_size, 0), X = K, st = k.w_size), $ = A.avail_in, Z = A.next_in, B = A.input, A.avail_in = st, A.next_in = 0, A.input = X, St(k); k.lookahead >= L; ) {
|
|
13951
14005
|
for (P = k.strstart, _ = k.lookahead - (L - 1); k.ins_h = (k.ins_h << k.hash_shift ^ k.window[P + L - 1]) & k.hash_mask, k.prev[P & k.w_mask] = k.head[k.ins_h], k.head[k.ins_h] = P, P++, --_; )
|
|
13952
14006
|
;
|
|
13953
14007
|
k.strstart = P, k.lookahead = L - 1, St(k);
|
|
13954
14008
|
}
|
|
13955
|
-
return k.strstart += k.lookahead, k.block_start = k.strstart, k.insert = k.lookahead, k.lookahead = 0, k.match_length = k.prev_length = L - 1, k.match_available = 0, A.next_in =
|
|
14009
|
+
return k.strstart += k.lookahead, k.block_start = k.strstart, k.insert = k.lookahead, k.lookahead = 0, k.match_length = k.prev_length = L - 1, k.match_available = 0, A.next_in = Z, A.input = B, A.avail_in = $, k.wrap = U, u;
|
|
13956
14010
|
}, s.deflateInfo = "pako deflate (from Nodeca project)";
|
|
13957
14011
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(t, e, s) {
|
|
13958
14012
|
e.exports = function() {
|
|
@@ -13960,7 +14014,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13960
14014
|
};
|
|
13961
14015
|
}, {}], 48: [function(t, e, s) {
|
|
13962
14016
|
e.exports = function(n, r) {
|
|
13963
|
-
var o, a, l, h, f, I, u, d, E, T, p, m, F, R, S, N, y, M, L, b,
|
|
14017
|
+
var o, a, l, h, f, I, u, d, E, T, p, m, F, R, S, N, y, M, L, b, Y, O, w, g, v;
|
|
13964
14018
|
o = n.state, a = n.next_in, g = n.input, l = a + (n.avail_in - 5), h = n.next_out, v = n.output, f = h - (r - n.avail_out), I = h + (n.avail_out - 257), u = o.dmax, d = o.wsize, E = o.whave, T = o.wnext, p = o.window, m = o.hold, F = o.bits, R = o.lencode, S = o.distcode, N = (1 << o.lenbits) - 1, y = (1 << o.distbits) - 1;
|
|
13965
14019
|
t:
|
|
13966
14020
|
do {
|
|
@@ -13993,12 +14047,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13993
14047
|
n.msg = "invalid distance code", o.mode = 30;
|
|
13994
14048
|
break t;
|
|
13995
14049
|
}
|
|
13996
|
-
if (
|
|
14050
|
+
if (Y = 65535 & M, F < (L &= 15) && (m += g[a++] << F, (F += 8) < L && (m += g[a++] << F, F += 8)), u < (Y += m & (1 << L) - 1)) {
|
|
13997
14051
|
n.msg = "invalid distance too far back", o.mode = 30;
|
|
13998
14052
|
break t;
|
|
13999
14053
|
}
|
|
14000
|
-
if (m >>>= L, F -= L, (L = h - f) <
|
|
14001
|
-
if (E < (L =
|
|
14054
|
+
if (m >>>= L, F -= L, (L = h - f) < Y) {
|
|
14055
|
+
if (E < (L = Y - L) && o.sane) {
|
|
14002
14056
|
n.msg = "invalid distance too far back", o.mode = 30;
|
|
14003
14057
|
break t;
|
|
14004
14058
|
}
|
|
@@ -14006,7 +14060,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14006
14060
|
if (O += d - L, L < b) {
|
|
14007
14061
|
for (b -= L; v[h++] = p[O++], --L; )
|
|
14008
14062
|
;
|
|
14009
|
-
O = h -
|
|
14063
|
+
O = h - Y, w = v;
|
|
14010
14064
|
}
|
|
14011
14065
|
} else if (T < L) {
|
|
14012
14066
|
if (O += d + T - L, (L -= T) < b) {
|
|
@@ -14015,19 +14069,19 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14015
14069
|
if (O = 0, T < b) {
|
|
14016
14070
|
for (b -= L = T; v[h++] = p[O++], --L; )
|
|
14017
14071
|
;
|
|
14018
|
-
O = h -
|
|
14072
|
+
O = h - Y, w = v;
|
|
14019
14073
|
}
|
|
14020
14074
|
}
|
|
14021
14075
|
} else if (O += T - L, L < b) {
|
|
14022
14076
|
for (b -= L; v[h++] = p[O++], --L; )
|
|
14023
14077
|
;
|
|
14024
|
-
O = h -
|
|
14078
|
+
O = h - Y, w = v;
|
|
14025
14079
|
}
|
|
14026
14080
|
for (; 2 < b; )
|
|
14027
14081
|
v[h++] = w[O++], v[h++] = w[O++], v[h++] = w[O++], b -= 3;
|
|
14028
14082
|
b && (v[h++] = w[O++], 1 < b && (v[h++] = w[O++]));
|
|
14029
14083
|
} else {
|
|
14030
|
-
for (O = h -
|
|
14084
|
+
for (O = h - Y; v[h++] = v[O++], v[h++] = v[O++], v[h++] = v[O++], 2 < (b -= 3); )
|
|
14031
14085
|
;
|
|
14032
14086
|
b && (v[h++] = v[O++], 1 < b && (v[h++] = v[O++]));
|
|
14033
14087
|
}
|
|
@@ -14081,17 +14135,17 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14081
14135
|
}
|
|
14082
14136
|
O.lencode = y, O.lenbits = 9, O.distcode = M, O.distbits = 5;
|
|
14083
14137
|
}
|
|
14084
|
-
function
|
|
14085
|
-
var
|
|
14086
|
-
return
|
|
14138
|
+
function Y(O, w, g, v) {
|
|
14139
|
+
var q, G = O.state;
|
|
14140
|
+
return G.window === null && (G.wsize = 1 << G.wbits, G.wnext = 0, G.whave = 0, G.window = new n.Buf8(G.wsize)), v >= G.wsize ? (n.arraySet(G.window, w, g - G.wsize, G.wsize, 0), G.wnext = 0, G.whave = G.wsize) : (v < (q = G.wsize - G.wnext) && (q = v), n.arraySet(G.window, w, g - v, q, G.wnext), (v -= q) ? (n.arraySet(G.window, w, g - v, v, 0), G.wnext = v, G.whave = G.wsize) : (G.wnext += q, G.wnext === G.wsize && (G.wnext = 0), G.whave < G.wsize && (G.whave += q))), 0;
|
|
14087
14141
|
}
|
|
14088
14142
|
s.inflateReset = R, s.inflateReset2 = S, s.inflateResetKeep = F, s.inflateInit = function(O) {
|
|
14089
14143
|
return N(O, 15);
|
|
14090
14144
|
}, s.inflateInit2 = N, s.inflate = function(O, w) {
|
|
14091
|
-
var g, v,
|
|
14145
|
+
var g, v, q, G, et, W, nt, V, x, ot, it, tt, St, yt, at, It, ft, Ct, Ht, Dt, A, X, k, P, _ = 0, U = new n.Buf8(4), $ = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
14092
14146
|
if (!O || !O.state || !O.output || !O.input && O.avail_in !== 0)
|
|
14093
14147
|
return u;
|
|
14094
|
-
(g = O.state).mode === 12 && (g.mode = 13), et = O.next_out,
|
|
14148
|
+
(g = O.state).mode === 12 && (g.mode = 13), et = O.next_out, q = O.output, nt = O.avail_out, G = O.next_in, v = O.input, W = O.avail_in, V = g.hold, x = g.bits, ot = W, it = nt, X = I;
|
|
14095
14149
|
t:
|
|
14096
14150
|
for (; ; )
|
|
14097
14151
|
switch (g.mode) {
|
|
@@ -14103,35 +14157,35 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14103
14157
|
for (; x < 16; ) {
|
|
14104
14158
|
if (W === 0)
|
|
14105
14159
|
break t;
|
|
14106
|
-
W--,
|
|
14160
|
+
W--, V += v[G++] << x, x += 8;
|
|
14107
14161
|
}
|
|
14108
|
-
if (2 & g.wrap &&
|
|
14109
|
-
U[g.check = 0] = 255 &
|
|
14162
|
+
if (2 & g.wrap && V === 35615) {
|
|
14163
|
+
U[g.check = 0] = 255 & V, U[1] = V >>> 8 & 255, g.check = o(g.check, U, 2, 0), x = V = 0, g.mode = 2;
|
|
14110
14164
|
break;
|
|
14111
14165
|
}
|
|
14112
|
-
if (g.flags = 0, g.head && (g.head.done = !1), !(1 & g.wrap) || (((255 &
|
|
14166
|
+
if (g.flags = 0, g.head && (g.head.done = !1), !(1 & g.wrap) || (((255 & V) << 8) + (V >> 8)) % 31) {
|
|
14113
14167
|
O.msg = "incorrect header check", g.mode = 30;
|
|
14114
14168
|
break;
|
|
14115
14169
|
}
|
|
14116
|
-
if ((15 &
|
|
14170
|
+
if ((15 & V) != 8) {
|
|
14117
14171
|
O.msg = "unknown compression method", g.mode = 30;
|
|
14118
14172
|
break;
|
|
14119
14173
|
}
|
|
14120
|
-
if (x -= 4, A = 8 + (15 & (
|
|
14174
|
+
if (x -= 4, A = 8 + (15 & (V >>>= 4)), g.wbits === 0)
|
|
14121
14175
|
g.wbits = A;
|
|
14122
14176
|
else if (A > g.wbits) {
|
|
14123
14177
|
O.msg = "invalid window size", g.mode = 30;
|
|
14124
14178
|
break;
|
|
14125
14179
|
}
|
|
14126
|
-
g.dmax = 1 << A, O.adler = g.check = 1, g.mode = 512 &
|
|
14180
|
+
g.dmax = 1 << A, O.adler = g.check = 1, g.mode = 512 & V ? 10 : 12, x = V = 0;
|
|
14127
14181
|
break;
|
|
14128
14182
|
case 2:
|
|
14129
14183
|
for (; x < 16; ) {
|
|
14130
14184
|
if (W === 0)
|
|
14131
14185
|
break t;
|
|
14132
|
-
W--,
|
|
14186
|
+
W--, V += v[G++] << x, x += 8;
|
|
14133
14187
|
}
|
|
14134
|
-
if (g.flags =
|
|
14188
|
+
if (g.flags = V, (255 & g.flags) != 8) {
|
|
14135
14189
|
O.msg = "unknown compression method", g.mode = 30;
|
|
14136
14190
|
break;
|
|
14137
14191
|
}
|
|
@@ -14139,43 +14193,43 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14139
14193
|
O.msg = "unknown header flags set", g.mode = 30;
|
|
14140
14194
|
break;
|
|
14141
14195
|
}
|
|
14142
|
-
g.head && (g.head.text =
|
|
14196
|
+
g.head && (g.head.text = V >> 8 & 1), 512 & g.flags && (U[0] = 255 & V, U[1] = V >>> 8 & 255, g.check = o(g.check, U, 2, 0)), x = V = 0, g.mode = 3;
|
|
14143
14197
|
case 3:
|
|
14144
14198
|
for (; x < 32; ) {
|
|
14145
14199
|
if (W === 0)
|
|
14146
14200
|
break t;
|
|
14147
|
-
W--,
|
|
14201
|
+
W--, V += v[G++] << x, x += 8;
|
|
14148
14202
|
}
|
|
14149
|
-
g.head && (g.head.time =
|
|
14203
|
+
g.head && (g.head.time = V), 512 & g.flags && (U[0] = 255 & V, U[1] = V >>> 8 & 255, U[2] = V >>> 16 & 255, U[3] = V >>> 24 & 255, g.check = o(g.check, U, 4, 0)), x = V = 0, g.mode = 4;
|
|
14150
14204
|
case 4:
|
|
14151
14205
|
for (; x < 16; ) {
|
|
14152
14206
|
if (W === 0)
|
|
14153
14207
|
break t;
|
|
14154
|
-
W--,
|
|
14208
|
+
W--, V += v[G++] << x, x += 8;
|
|
14155
14209
|
}
|
|
14156
|
-
g.head && (g.head.xflags = 255 &
|
|
14210
|
+
g.head && (g.head.xflags = 255 & V, g.head.os = V >> 8), 512 & g.flags && (U[0] = 255 & V, U[1] = V >>> 8 & 255, g.check = o(g.check, U, 2, 0)), x = V = 0, g.mode = 5;
|
|
14157
14211
|
case 5:
|
|
14158
14212
|
if (1024 & g.flags) {
|
|
14159
14213
|
for (; x < 16; ) {
|
|
14160
14214
|
if (W === 0)
|
|
14161
14215
|
break t;
|
|
14162
|
-
W--,
|
|
14216
|
+
W--, V += v[G++] << x, x += 8;
|
|
14163
14217
|
}
|
|
14164
|
-
g.length =
|
|
14218
|
+
g.length = V, g.head && (g.head.extra_len = V), 512 & g.flags && (U[0] = 255 & V, U[1] = V >>> 8 & 255, g.check = o(g.check, U, 2, 0)), x = V = 0;
|
|
14165
14219
|
} else
|
|
14166
14220
|
g.head && (g.head.extra = null);
|
|
14167
14221
|
g.mode = 6;
|
|
14168
14222
|
case 6:
|
|
14169
|
-
if (1024 & g.flags && (W < (tt = g.length) && (tt = W), tt && (g.head && (A = g.head.extra_len - g.length, g.head.extra || (g.head.extra = new Array(g.head.extra_len)), n.arraySet(g.head.extra, v,
|
|
14223
|
+
if (1024 & g.flags && (W < (tt = g.length) && (tt = W), tt && (g.head && (A = g.head.extra_len - g.length, g.head.extra || (g.head.extra = new Array(g.head.extra_len)), n.arraySet(g.head.extra, v, G, tt, A)), 512 & g.flags && (g.check = o(g.check, v, tt, G)), W -= tt, G += tt, g.length -= tt), g.length))
|
|
14170
14224
|
break t;
|
|
14171
14225
|
g.length = 0, g.mode = 7;
|
|
14172
14226
|
case 7:
|
|
14173
14227
|
if (2048 & g.flags) {
|
|
14174
14228
|
if (W === 0)
|
|
14175
14229
|
break t;
|
|
14176
|
-
for (tt = 0; A = v[
|
|
14230
|
+
for (tt = 0; A = v[G + tt++], g.head && A && g.length < 65536 && (g.head.name += String.fromCharCode(A)), A && tt < W; )
|
|
14177
14231
|
;
|
|
14178
|
-
if (512 & g.flags && (g.check = o(g.check, v, tt,
|
|
14232
|
+
if (512 & g.flags && (g.check = o(g.check, v, tt, G)), W -= tt, G += tt, A)
|
|
14179
14233
|
break t;
|
|
14180
14234
|
} else
|
|
14181
14235
|
g.head && (g.head.name = null);
|
|
@@ -14184,9 +14238,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14184
14238
|
if (4096 & g.flags) {
|
|
14185
14239
|
if (W === 0)
|
|
14186
14240
|
break t;
|
|
14187
|
-
for (tt = 0; A = v[
|
|
14241
|
+
for (tt = 0; A = v[G + tt++], g.head && A && g.length < 65536 && (g.head.comment += String.fromCharCode(A)), A && tt < W; )
|
|
14188
14242
|
;
|
|
14189
|
-
if (512 & g.flags && (g.check = o(g.check, v, tt,
|
|
14243
|
+
if (512 & g.flags && (g.check = o(g.check, v, tt, G)), W -= tt, G += tt, A)
|
|
14190
14244
|
break t;
|
|
14191
14245
|
} else
|
|
14192
14246
|
g.head && (g.head.comment = null);
|
|
@@ -14196,13 +14250,13 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14196
14250
|
for (; x < 16; ) {
|
|
14197
14251
|
if (W === 0)
|
|
14198
14252
|
break t;
|
|
14199
|
-
W--,
|
|
14253
|
+
W--, V += v[G++] << x, x += 8;
|
|
14200
14254
|
}
|
|
14201
|
-
if (
|
|
14255
|
+
if (V !== (65535 & g.check)) {
|
|
14202
14256
|
O.msg = "header crc mismatch", g.mode = 30;
|
|
14203
14257
|
break;
|
|
14204
14258
|
}
|
|
14205
|
-
x =
|
|
14259
|
+
x = V = 0;
|
|
14206
14260
|
}
|
|
14207
14261
|
g.head && (g.head.hcrc = g.flags >> 9 & 1, g.head.done = !0), O.adler = g.check = 0, g.mode = 12;
|
|
14208
14262
|
break;
|
|
@@ -14210,34 +14264,34 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14210
14264
|
for (; x < 32; ) {
|
|
14211
14265
|
if (W === 0)
|
|
14212
14266
|
break t;
|
|
14213
|
-
W--,
|
|
14267
|
+
W--, V += v[G++] << x, x += 8;
|
|
14214
14268
|
}
|
|
14215
|
-
O.adler = g.check = p(
|
|
14269
|
+
O.adler = g.check = p(V), x = V = 0, g.mode = 11;
|
|
14216
14270
|
case 11:
|
|
14217
14271
|
if (g.havedict === 0)
|
|
14218
|
-
return O.next_out = et, O.avail_out = nt, O.next_in =
|
|
14272
|
+
return O.next_out = et, O.avail_out = nt, O.next_in = G, O.avail_in = W, g.hold = V, g.bits = x, 2;
|
|
14219
14273
|
O.adler = g.check = 1, g.mode = 12;
|
|
14220
14274
|
case 12:
|
|
14221
14275
|
if (w === 5 || w === 6)
|
|
14222
14276
|
break t;
|
|
14223
14277
|
case 13:
|
|
14224
14278
|
if (g.last) {
|
|
14225
|
-
|
|
14279
|
+
V >>>= 7 & x, x -= 7 & x, g.mode = 27;
|
|
14226
14280
|
break;
|
|
14227
14281
|
}
|
|
14228
14282
|
for (; x < 3; ) {
|
|
14229
14283
|
if (W === 0)
|
|
14230
14284
|
break t;
|
|
14231
|
-
W--,
|
|
14285
|
+
W--, V += v[G++] << x, x += 8;
|
|
14232
14286
|
}
|
|
14233
|
-
switch (g.last = 1 &
|
|
14287
|
+
switch (g.last = 1 & V, x -= 1, 3 & (V >>>= 1)) {
|
|
14234
14288
|
case 0:
|
|
14235
14289
|
g.mode = 14;
|
|
14236
14290
|
break;
|
|
14237
14291
|
case 1:
|
|
14238
14292
|
if (b(g), g.mode = 20, w !== 6)
|
|
14239
14293
|
break;
|
|
14240
|
-
|
|
14294
|
+
V >>>= 2, x -= 2;
|
|
14241
14295
|
break t;
|
|
14242
14296
|
case 2:
|
|
14243
14297
|
g.mode = 17;
|
|
@@ -14245,19 +14299,19 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14245
14299
|
case 3:
|
|
14246
14300
|
O.msg = "invalid block type", g.mode = 30;
|
|
14247
14301
|
}
|
|
14248
|
-
|
|
14302
|
+
V >>>= 2, x -= 2;
|
|
14249
14303
|
break;
|
|
14250
14304
|
case 14:
|
|
14251
|
-
for (
|
|
14305
|
+
for (V >>>= 7 & x, x -= 7 & x; x < 32; ) {
|
|
14252
14306
|
if (W === 0)
|
|
14253
14307
|
break t;
|
|
14254
|
-
W--,
|
|
14308
|
+
W--, V += v[G++] << x, x += 8;
|
|
14255
14309
|
}
|
|
14256
|
-
if ((65535 &
|
|
14310
|
+
if ((65535 & V) != (V >>> 16 ^ 65535)) {
|
|
14257
14311
|
O.msg = "invalid stored block lengths", g.mode = 30;
|
|
14258
14312
|
break;
|
|
14259
14313
|
}
|
|
14260
|
-
if (g.length = 65535 &
|
|
14314
|
+
if (g.length = 65535 & V, x = V = 0, g.mode = 15, w === 6)
|
|
14261
14315
|
break t;
|
|
14262
14316
|
case 15:
|
|
14263
14317
|
g.mode = 16;
|
|
@@ -14265,7 +14319,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14265
14319
|
if (tt = g.length) {
|
|
14266
14320
|
if (W < tt && (tt = W), nt < tt && (tt = nt), tt === 0)
|
|
14267
14321
|
break t;
|
|
14268
|
-
n.arraySet(
|
|
14322
|
+
n.arraySet(q, v, G, tt, et), W -= tt, G += tt, nt -= tt, et += tt, g.length -= tt;
|
|
14269
14323
|
break;
|
|
14270
14324
|
}
|
|
14271
14325
|
g.mode = 12;
|
|
@@ -14274,9 +14328,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14274
14328
|
for (; x < 14; ) {
|
|
14275
14329
|
if (W === 0)
|
|
14276
14330
|
break t;
|
|
14277
|
-
W--,
|
|
14331
|
+
W--, V += v[G++] << x, x += 8;
|
|
14278
14332
|
}
|
|
14279
|
-
if (g.nlen = 257 + (31 &
|
|
14333
|
+
if (g.nlen = 257 + (31 & V), V >>>= 5, x -= 5, g.ndist = 1 + (31 & V), V >>>= 5, x -= 5, g.ncode = 4 + (15 & V), V >>>= 4, x -= 4, 286 < g.nlen || 30 < g.ndist) {
|
|
14280
14334
|
O.msg = "too many length or distance symbols", g.mode = 30;
|
|
14281
14335
|
break;
|
|
14282
14336
|
}
|
|
@@ -14286,9 +14340,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14286
14340
|
for (; x < 3; ) {
|
|
14287
14341
|
if (W === 0)
|
|
14288
14342
|
break t;
|
|
14289
|
-
W--,
|
|
14343
|
+
W--, V += v[G++] << x, x += 8;
|
|
14290
14344
|
}
|
|
14291
|
-
g.lens[$[g.have++]] = 7 &
|
|
14345
|
+
g.lens[$[g.have++]] = 7 & V, V >>>= 3, x -= 3;
|
|
14292
14346
|
}
|
|
14293
14347
|
for (; g.have < 19; )
|
|
14294
14348
|
g.lens[$[g.have++]] = 0;
|
|
@@ -14299,39 +14353,39 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14299
14353
|
g.have = 0, g.mode = 19;
|
|
14300
14354
|
case 19:
|
|
14301
14355
|
for (; g.have < g.nlen + g.ndist; ) {
|
|
14302
|
-
for (; It = (_ = g.lencode[
|
|
14356
|
+
for (; It = (_ = g.lencode[V & (1 << g.lenbits) - 1]) >>> 16 & 255, ft = 65535 & _, !((at = _ >>> 24) <= x); ) {
|
|
14303
14357
|
if (W === 0)
|
|
14304
14358
|
break t;
|
|
14305
|
-
W--,
|
|
14359
|
+
W--, V += v[G++] << x, x += 8;
|
|
14306
14360
|
}
|
|
14307
14361
|
if (ft < 16)
|
|
14308
|
-
|
|
14362
|
+
V >>>= at, x -= at, g.lens[g.have++] = ft;
|
|
14309
14363
|
else {
|
|
14310
14364
|
if (ft === 16) {
|
|
14311
14365
|
for (P = at + 2; x < P; ) {
|
|
14312
14366
|
if (W === 0)
|
|
14313
14367
|
break t;
|
|
14314
|
-
W--,
|
|
14368
|
+
W--, V += v[G++] << x, x += 8;
|
|
14315
14369
|
}
|
|
14316
|
-
if (
|
|
14370
|
+
if (V >>>= at, x -= at, g.have === 0) {
|
|
14317
14371
|
O.msg = "invalid bit length repeat", g.mode = 30;
|
|
14318
14372
|
break;
|
|
14319
14373
|
}
|
|
14320
|
-
A = g.lens[g.have - 1], tt = 3 + (3 &
|
|
14374
|
+
A = g.lens[g.have - 1], tt = 3 + (3 & V), V >>>= 2, x -= 2;
|
|
14321
14375
|
} else if (ft === 17) {
|
|
14322
14376
|
for (P = at + 3; x < P; ) {
|
|
14323
14377
|
if (W === 0)
|
|
14324
14378
|
break t;
|
|
14325
|
-
W--,
|
|
14379
|
+
W--, V += v[G++] << x, x += 8;
|
|
14326
14380
|
}
|
|
14327
|
-
x -= at, A = 0, tt = 3 + (7 & (
|
|
14381
|
+
x -= at, A = 0, tt = 3 + (7 & (V >>>= at)), V >>>= 3, x -= 3;
|
|
14328
14382
|
} else {
|
|
14329
14383
|
for (P = at + 7; x < P; ) {
|
|
14330
14384
|
if (W === 0)
|
|
14331
14385
|
break t;
|
|
14332
|
-
W--,
|
|
14386
|
+
W--, V += v[G++] << x, x += 8;
|
|
14333
14387
|
}
|
|
14334
|
-
x -= at, A = 0, tt = 11 + (127 & (
|
|
14388
|
+
x -= at, A = 0, tt = 11 + (127 & (V >>>= at)), V >>>= 7, x -= 7;
|
|
14335
14389
|
}
|
|
14336
14390
|
if (g.have + tt > g.nlen + g.ndist) {
|
|
14337
14391
|
O.msg = "invalid bit length repeat", g.mode = 30;
|
|
@@ -14361,23 +14415,23 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14361
14415
|
g.mode = 21;
|
|
14362
14416
|
case 21:
|
|
14363
14417
|
if (6 <= W && 258 <= nt) {
|
|
14364
|
-
O.next_out = et, O.avail_out = nt, O.next_in =
|
|
14418
|
+
O.next_out = et, O.avail_out = nt, O.next_in = G, O.avail_in = W, g.hold = V, g.bits = x, a(O, it), et = O.next_out, q = O.output, nt = O.avail_out, G = O.next_in, v = O.input, W = O.avail_in, V = g.hold, x = g.bits, g.mode === 12 && (g.back = -1);
|
|
14365
14419
|
break;
|
|
14366
14420
|
}
|
|
14367
|
-
for (g.back = 0; It = (_ = g.lencode[
|
|
14421
|
+
for (g.back = 0; It = (_ = g.lencode[V & (1 << g.lenbits) - 1]) >>> 16 & 255, ft = 65535 & _, !((at = _ >>> 24) <= x); ) {
|
|
14368
14422
|
if (W === 0)
|
|
14369
14423
|
break t;
|
|
14370
|
-
W--,
|
|
14424
|
+
W--, V += v[G++] << x, x += 8;
|
|
14371
14425
|
}
|
|
14372
14426
|
if (It && !(240 & It)) {
|
|
14373
|
-
for (Ct = at, Ht = It, Dt = ft; It = (_ = g.lencode[Dt + ((
|
|
14427
|
+
for (Ct = at, Ht = It, Dt = ft; It = (_ = g.lencode[Dt + ((V & (1 << Ct + Ht) - 1) >> Ct)]) >>> 16 & 255, ft = 65535 & _, !(Ct + (at = _ >>> 24) <= x); ) {
|
|
14374
14428
|
if (W === 0)
|
|
14375
14429
|
break t;
|
|
14376
|
-
W--,
|
|
14430
|
+
W--, V += v[G++] << x, x += 8;
|
|
14377
14431
|
}
|
|
14378
|
-
|
|
14432
|
+
V >>>= Ct, x -= Ct, g.back += Ct;
|
|
14379
14433
|
}
|
|
14380
|
-
if (
|
|
14434
|
+
if (V >>>= at, x -= at, g.back += at, g.length = ft, It === 0) {
|
|
14381
14435
|
g.mode = 26;
|
|
14382
14436
|
break;
|
|
14383
14437
|
}
|
|
@@ -14395,26 +14449,26 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14395
14449
|
for (P = g.extra; x < P; ) {
|
|
14396
14450
|
if (W === 0)
|
|
14397
14451
|
break t;
|
|
14398
|
-
W--,
|
|
14452
|
+
W--, V += v[G++] << x, x += 8;
|
|
14399
14453
|
}
|
|
14400
|
-
g.length +=
|
|
14454
|
+
g.length += V & (1 << g.extra) - 1, V >>>= g.extra, x -= g.extra, g.back += g.extra;
|
|
14401
14455
|
}
|
|
14402
14456
|
g.was = g.length, g.mode = 23;
|
|
14403
14457
|
case 23:
|
|
14404
|
-
for (; It = (_ = g.distcode[
|
|
14458
|
+
for (; It = (_ = g.distcode[V & (1 << g.distbits) - 1]) >>> 16 & 255, ft = 65535 & _, !((at = _ >>> 24) <= x); ) {
|
|
14405
14459
|
if (W === 0)
|
|
14406
14460
|
break t;
|
|
14407
|
-
W--,
|
|
14461
|
+
W--, V += v[G++] << x, x += 8;
|
|
14408
14462
|
}
|
|
14409
14463
|
if (!(240 & It)) {
|
|
14410
|
-
for (Ct = at, Ht = It, Dt = ft; It = (_ = g.distcode[Dt + ((
|
|
14464
|
+
for (Ct = at, Ht = It, Dt = ft; It = (_ = g.distcode[Dt + ((V & (1 << Ct + Ht) - 1) >> Ct)]) >>> 16 & 255, ft = 65535 & _, !(Ct + (at = _ >>> 24) <= x); ) {
|
|
14411
14465
|
if (W === 0)
|
|
14412
14466
|
break t;
|
|
14413
|
-
W--,
|
|
14467
|
+
W--, V += v[G++] << x, x += 8;
|
|
14414
14468
|
}
|
|
14415
|
-
|
|
14469
|
+
V >>>= Ct, x -= Ct, g.back += Ct;
|
|
14416
14470
|
}
|
|
14417
|
-
if (
|
|
14471
|
+
if (V >>>= at, x -= at, g.back += at, 64 & It) {
|
|
14418
14472
|
O.msg = "invalid distance code", g.mode = 30;
|
|
14419
14473
|
break;
|
|
14420
14474
|
}
|
|
@@ -14424,9 +14478,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14424
14478
|
for (P = g.extra; x < P; ) {
|
|
14425
14479
|
if (W === 0)
|
|
14426
14480
|
break t;
|
|
14427
|
-
W--,
|
|
14481
|
+
W--, V += v[G++] << x, x += 8;
|
|
14428
14482
|
}
|
|
14429
|
-
g.offset +=
|
|
14483
|
+
g.offset += V & (1 << g.extra) - 1, V >>>= g.extra, x -= g.extra, g.back += g.extra;
|
|
14430
14484
|
}
|
|
14431
14485
|
if (g.offset > g.dmax) {
|
|
14432
14486
|
O.msg = "invalid distance too far back", g.mode = 30;
|
|
@@ -14443,28 +14497,28 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14443
14497
|
}
|
|
14444
14498
|
St = tt > g.wnext ? (tt -= g.wnext, g.wsize - tt) : g.wnext - tt, tt > g.length && (tt = g.length), yt = g.window;
|
|
14445
14499
|
} else
|
|
14446
|
-
yt =
|
|
14447
|
-
for (nt < tt && (tt = nt), nt -= tt, g.length -= tt;
|
|
14500
|
+
yt = q, St = et - g.offset, tt = g.length;
|
|
14501
|
+
for (nt < tt && (tt = nt), nt -= tt, g.length -= tt; q[et++] = yt[St++], --tt; )
|
|
14448
14502
|
;
|
|
14449
14503
|
g.length === 0 && (g.mode = 21);
|
|
14450
14504
|
break;
|
|
14451
14505
|
case 26:
|
|
14452
14506
|
if (nt === 0)
|
|
14453
14507
|
break t;
|
|
14454
|
-
|
|
14508
|
+
q[et++] = g.length, nt--, g.mode = 21;
|
|
14455
14509
|
break;
|
|
14456
14510
|
case 27:
|
|
14457
14511
|
if (g.wrap) {
|
|
14458
14512
|
for (; x < 32; ) {
|
|
14459
14513
|
if (W === 0)
|
|
14460
14514
|
break t;
|
|
14461
|
-
W--,
|
|
14515
|
+
W--, V |= v[G++] << x, x += 8;
|
|
14462
14516
|
}
|
|
14463
|
-
if (it -= nt, O.total_out += it, g.total += it, it && (O.adler = g.check = g.flags ? o(g.check,
|
|
14517
|
+
if (it -= nt, O.total_out += it, g.total += it, it && (O.adler = g.check = g.flags ? o(g.check, q, it, et - it) : r(g.check, q, it, et - it)), it = nt, (g.flags ? V : p(V)) !== g.check) {
|
|
14464
14518
|
O.msg = "incorrect data check", g.mode = 30;
|
|
14465
14519
|
break;
|
|
14466
14520
|
}
|
|
14467
|
-
x =
|
|
14521
|
+
x = V = 0;
|
|
14468
14522
|
}
|
|
14469
14523
|
g.mode = 28;
|
|
14470
14524
|
case 28:
|
|
@@ -14472,13 +14526,13 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14472
14526
|
for (; x < 32; ) {
|
|
14473
14527
|
if (W === 0)
|
|
14474
14528
|
break t;
|
|
14475
|
-
W--,
|
|
14529
|
+
W--, V += v[G++] << x, x += 8;
|
|
14476
14530
|
}
|
|
14477
|
-
if (
|
|
14531
|
+
if (V !== (4294967295 & g.total)) {
|
|
14478
14532
|
O.msg = "incorrect length check", g.mode = 30;
|
|
14479
14533
|
break;
|
|
14480
14534
|
}
|
|
14481
|
-
x =
|
|
14535
|
+
x = V = 0;
|
|
14482
14536
|
}
|
|
14483
14537
|
g.mode = 29;
|
|
14484
14538
|
case 29:
|
|
@@ -14493,7 +14547,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14493
14547
|
default:
|
|
14494
14548
|
return u;
|
|
14495
14549
|
}
|
|
14496
|
-
return O.next_out = et, O.avail_out = nt, O.next_in =
|
|
14550
|
+
return O.next_out = et, O.avail_out = nt, O.next_in = G, O.avail_in = W, g.hold = V, g.bits = x, (g.wsize || it !== O.avail_out && g.mode < 30 && (g.mode < 27 || w !== 4)) && Y(O, O.output, O.next_out, it - O.avail_out) ? (g.mode = 31, -4) : (ot -= O.avail_in, it -= O.avail_out, O.total_in += ot, O.total_out += it, g.total += it, g.wrap && it && (O.adler = g.check = g.flags ? o(g.check, q, it, O.next_out - it) : r(g.check, q, it, O.next_out - it)), O.data_type = g.bits + (g.last ? 64 : 0) + (g.mode === 12 ? 128 : 0) + (g.mode === 20 || g.mode === 15 ? 256 : 0), (ot == 0 && it === 0 || w === 4) && X === I && (X = -5), X);
|
|
14497
14551
|
}, s.inflateEnd = function(O) {
|
|
14498
14552
|
if (!O || !O.state)
|
|
14499
14553
|
return u;
|
|
@@ -14504,23 +14558,23 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14504
14558
|
return O && O.state && 2 & (g = O.state).wrap ? ((g.head = w).done = !1, I) : u;
|
|
14505
14559
|
}, s.inflateSetDictionary = function(O, w) {
|
|
14506
14560
|
var g, v = w.length;
|
|
14507
|
-
return O && O.state ? (g = O.state).wrap !== 0 && g.mode !== 11 ? u : g.mode === 11 && r(1, w, v, 0) !== g.check ? -3 :
|
|
14561
|
+
return O && O.state ? (g = O.state).wrap !== 0 && g.mode !== 11 ? u : g.mode === 11 && r(1, w, v, 0) !== g.check ? -3 : Y(O, w, v, v) ? (g.mode = 31, -4) : (g.havedict = 1, I) : u;
|
|
14508
14562
|
}, s.inflateInfo = "pako inflate (from Nodeca project)";
|
|
14509
14563
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(t, e, s) {
|
|
14510
14564
|
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];
|
|
14511
14565
|
e.exports = function(h, f, I, u, d, E, T, p) {
|
|
14512
|
-
var m, F, R, S, N, y, M, L, b,
|
|
14566
|
+
var m, F, R, S, N, y, M, L, b, Y = p.bits, O = 0, w = 0, g = 0, v = 0, q = 0, G = 0, et = 0, W = 0, nt = 0, V = 0, x = null, ot = 0, it = new n.Buf16(16), tt = new n.Buf16(16), St = null, yt = 0;
|
|
14513
14567
|
for (O = 0; O <= 15; O++)
|
|
14514
14568
|
it[O] = 0;
|
|
14515
14569
|
for (w = 0; w < u; w++)
|
|
14516
14570
|
it[f[I + w]]++;
|
|
14517
|
-
for (
|
|
14571
|
+
for (q = Y, v = 15; 1 <= v && it[v] === 0; v--)
|
|
14518
14572
|
;
|
|
14519
|
-
if (v <
|
|
14573
|
+
if (v < q && (q = v), v === 0)
|
|
14520
14574
|
return d[E++] = 20971520, d[E++] = 20971520, p.bits = 1, 0;
|
|
14521
14575
|
for (g = 1; g < v && it[g] === 0; g++)
|
|
14522
14576
|
;
|
|
14523
|
-
for (
|
|
14577
|
+
for (q < g && (q = g), O = W = 1; O <= 15; O++)
|
|
14524
14578
|
if (W <<= 1, (W -= it[O]) < 0)
|
|
14525
14579
|
return -1;
|
|
14526
14580
|
if (0 < W && (h === 0 || v !== 1))
|
|
@@ -14529,27 +14583,27 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14529
14583
|
tt[O + 1] = tt[O] + it[O];
|
|
14530
14584
|
for (w = 0; w < u; w++)
|
|
14531
14585
|
f[I + w] !== 0 && (T[tt[f[I + w]]++] = w);
|
|
14532
|
-
if (y = h === 0 ? (x = St = T, 19) : h === 1 ? (x = r, ot -= 257, St = o, yt -= 257, 256) : (x = a, St = l, -1), O = g, N = E, et = w =
|
|
14586
|
+
if (y = h === 0 ? (x = St = T, 19) : h === 1 ? (x = r, ot -= 257, St = o, yt -= 257, 256) : (x = a, St = l, -1), O = g, N = E, et = w = V = 0, R = -1, S = (nt = 1 << (G = q)) - 1, h === 1 && 852 < nt || h === 2 && 592 < nt)
|
|
14533
14587
|
return 1;
|
|
14534
14588
|
for (; ; ) {
|
|
14535
|
-
for (M = O - et, b = T[w] < y ? (L = 0, T[w]) : T[w] > y ? (L = St[yt + T[w]], x[ot + T[w]]) : (L = 96, 0), m = 1 << O - et, g = F = 1 <<
|
|
14589
|
+
for (M = O - et, b = T[w] < y ? (L = 0, T[w]) : T[w] > y ? (L = St[yt + T[w]], x[ot + T[w]]) : (L = 96, 0), m = 1 << O - et, g = F = 1 << G; d[N + (V >> et) + (F -= m)] = M << 24 | L << 16 | b | 0, F !== 0; )
|
|
14536
14590
|
;
|
|
14537
|
-
for (m = 1 << O - 1;
|
|
14591
|
+
for (m = 1 << O - 1; V & m; )
|
|
14538
14592
|
m >>= 1;
|
|
14539
|
-
if (m !== 0 ? (
|
|
14593
|
+
if (m !== 0 ? (V &= m - 1, V += m) : V = 0, w++, --it[O] == 0) {
|
|
14540
14594
|
if (O === v)
|
|
14541
14595
|
break;
|
|
14542
14596
|
O = f[I + T[w]];
|
|
14543
14597
|
}
|
|
14544
|
-
if (
|
|
14545
|
-
for (et === 0 && (et =
|
|
14546
|
-
|
|
14547
|
-
if (nt += 1 <<
|
|
14598
|
+
if (q < O && (V & S) !== R) {
|
|
14599
|
+
for (et === 0 && (et = q), N += g, W = 1 << (G = O - et); G + et < v && !((W -= it[G + et]) <= 0); )
|
|
14600
|
+
G++, W <<= 1;
|
|
14601
|
+
if (nt += 1 << G, h === 1 && 852 < nt || h === 2 && 592 < nt)
|
|
14548
14602
|
return 1;
|
|
14549
|
-
d[R =
|
|
14603
|
+
d[R = V & S] = q << 24 | G << 16 | N - E | 0;
|
|
14550
14604
|
}
|
|
14551
14605
|
}
|
|
14552
|
-
return
|
|
14606
|
+
return V !== 0 && (d[N + V] = O - et << 24 | 64 << 16 | 0), p.bits = q, 0;
|
|
14553
14607
|
};
|
|
14554
14608
|
}, { "../utils/common": 41 }], 51: [function(t, e, s) {
|
|
14555
14609
|
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" };
|
|
@@ -14559,8 +14613,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14559
14613
|
for (var U = _.length; 0 <= --U; )
|
|
14560
14614
|
_[U] = 0;
|
|
14561
14615
|
}
|
|
14562
|
-
var l = 0, h = 29, f = 256, I = f + 1 + h, u = 30, d = 19, E = 2 * I + 1, T = 15, p = 16, m = 7, F = 256, R = 16, S = 17, N = 18, y = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], M = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], L = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], b = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15],
|
|
14563
|
-
a(
|
|
14616
|
+
var l = 0, h = 29, f = 256, I = f + 1 + h, u = 30, d = 19, E = 2 * I + 1, T = 15, p = 16, m = 7, F = 256, R = 16, S = 17, N = 18, y = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], M = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], L = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], b = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], Y = new Array(2 * (I + 2));
|
|
14617
|
+
a(Y);
|
|
14564
14618
|
var O = new Array(2 * u);
|
|
14565
14619
|
a(O);
|
|
14566
14620
|
var w = new Array(512);
|
|
@@ -14569,11 +14623,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14569
14623
|
a(g);
|
|
14570
14624
|
var v = new Array(h);
|
|
14571
14625
|
a(v);
|
|
14572
|
-
var
|
|
14573
|
-
function nt(_, U, $,
|
|
14574
|
-
this.static_tree = _, this.extra_bits = U, this.extra_base = $, this.elems =
|
|
14626
|
+
var q, G, et, W = new Array(u);
|
|
14627
|
+
function nt(_, U, $, Z, B) {
|
|
14628
|
+
this.static_tree = _, this.extra_bits = U, this.extra_base = $, this.elems = Z, this.max_length = B, this.has_stree = _ && _.length;
|
|
14575
14629
|
}
|
|
14576
|
-
function
|
|
14630
|
+
function V(_, U) {
|
|
14577
14631
|
this.dyn_tree = _, this.max_code = 0, this.stat_desc = U;
|
|
14578
14632
|
}
|
|
14579
14633
|
function x(_) {
|
|
@@ -14594,9 +14648,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14594
14648
|
return $ >>> 1;
|
|
14595
14649
|
}
|
|
14596
14650
|
function yt(_, U, $) {
|
|
14597
|
-
var
|
|
14598
|
-
for (
|
|
14599
|
-
K[
|
|
14651
|
+
var Z, B, K = new Array(T + 1), st = 0;
|
|
14652
|
+
for (Z = 1; Z <= T; Z++)
|
|
14653
|
+
K[Z] = st = st + $[Z - 1] << 1;
|
|
14600
14654
|
for (B = 0; B <= U; B++) {
|
|
14601
14655
|
var J = _[2 * B + 1];
|
|
14602
14656
|
J !== 0 && (_[2 * B] = St(K[J]++, J));
|
|
@@ -14615,59 +14669,59 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14615
14669
|
function It(_) {
|
|
14616
14670
|
8 < _.bi_valid ? ot(_, _.bi_buf) : 0 < _.bi_valid && (_.pending_buf[_.pending++] = _.bi_buf), _.bi_buf = 0, _.bi_valid = 0;
|
|
14617
14671
|
}
|
|
14618
|
-
function ft(_, U, $,
|
|
14672
|
+
function ft(_, U, $, Z) {
|
|
14619
14673
|
var B = 2 * U, K = 2 * $;
|
|
14620
|
-
return _[B] < _[K] || _[B] === _[K] &&
|
|
14674
|
+
return _[B] < _[K] || _[B] === _[K] && Z[U] <= Z[$];
|
|
14621
14675
|
}
|
|
14622
14676
|
function Ct(_, U, $) {
|
|
14623
|
-
for (var
|
|
14677
|
+
for (var Z = _.heap[$], B = $ << 1; B <= _.heap_len && (B < _.heap_len && ft(U, _.heap[B + 1], _.heap[B], _.depth) && B++, !ft(U, Z, _.heap[B], _.depth)); )
|
|
14624
14678
|
_.heap[$] = _.heap[B], $ = B, B <<= 1;
|
|
14625
|
-
_.heap[$] =
|
|
14679
|
+
_.heap[$] = Z;
|
|
14626
14680
|
}
|
|
14627
14681
|
function Ht(_, U, $) {
|
|
14628
|
-
var
|
|
14682
|
+
var Z, B, K, st, J = 0;
|
|
14629
14683
|
if (_.last_lit !== 0)
|
|
14630
|
-
for (;
|
|
14684
|
+
for (; Z = _.pending_buf[_.d_buf + 2 * J] << 8 | _.pending_buf[_.d_buf + 2 * J + 1], B = _.pending_buf[_.l_buf + J], J++, Z === 0 ? tt(_, B, U) : (tt(_, (K = g[B]) + f + 1, U), (st = y[K]) !== 0 && it(_, B -= v[K], st), tt(_, K = x(--Z), $), (st = M[K]) !== 0 && it(_, Z -= W[K], st)), J < _.last_lit; )
|
|
14631
14685
|
;
|
|
14632
14686
|
tt(_, F, U);
|
|
14633
14687
|
}
|
|
14634
14688
|
function Dt(_, U) {
|
|
14635
|
-
var $,
|
|
14689
|
+
var $, Z, B, K = U.dyn_tree, st = U.stat_desc.static_tree, J = U.stat_desc.has_stree, ct = U.stat_desc.elems, Rt = -1;
|
|
14636
14690
|
for (_.heap_len = 0, _.heap_max = E, $ = 0; $ < ct; $++)
|
|
14637
14691
|
K[2 * $] !== 0 ? (_.heap[++_.heap_len] = Rt = $, _.depth[$] = 0) : K[2 * $ + 1] = 0;
|
|
14638
14692
|
for (; _.heap_len < 2; )
|
|
14639
14693
|
K[2 * (B = _.heap[++_.heap_len] = Rt < 2 ? ++Rt : 0)] = 1, _.depth[B] = 0, _.opt_len--, J && (_.static_len -= st[2 * B + 1]);
|
|
14640
14694
|
for (U.max_code = Rt, $ = _.heap_len >> 1; 1 <= $; $--)
|
|
14641
14695
|
Ct(_, K, $);
|
|
14642
|
-
for (B = ct; $ = _.heap[1], _.heap[1] = _.heap[_.heap_len--], Ct(_, K, 1),
|
|
14696
|
+
for (B = ct; $ = _.heap[1], _.heap[1] = _.heap[_.heap_len--], Ct(_, K, 1), Z = _.heap[1], _.heap[--_.heap_max] = $, _.heap[--_.heap_max] = Z, K[2 * B] = K[2 * $] + K[2 * Z], _.depth[B] = (_.depth[$] >= _.depth[Z] ? _.depth[$] : _.depth[Z]) + 1, K[2 * $ + 1] = K[2 * Z + 1] = B, _.heap[1] = B++, Ct(_, K, 1), 2 <= _.heap_len; )
|
|
14643
14697
|
;
|
|
14644
14698
|
_.heap[--_.heap_max] = _.heap[1], function(dt, Wt) {
|
|
14645
|
-
var
|
|
14699
|
+
var hi, ce, ui, Lt, Vi, Hs, Ce = Wt.dyn_tree, Hn = Wt.max_code, mo = Wt.stat_desc.static_tree, Ro = Wt.stat_desc.has_stree, go = Wt.stat_desc.extra_bits, Wn = Wt.stat_desc.extra_base, fi = Wt.stat_desc.max_length, Yi = 0;
|
|
14646
14700
|
for (Lt = 0; Lt <= T; Lt++)
|
|
14647
14701
|
dt.bl_count[Lt] = 0;
|
|
14648
|
-
for (Ce[2 * dt.heap[dt.heap_max] + 1] = 0,
|
|
14649
|
-
|
|
14650
|
-
if (
|
|
14702
|
+
for (Ce[2 * dt.heap[dt.heap_max] + 1] = 0, hi = dt.heap_max + 1; hi < E; hi++)
|
|
14703
|
+
fi < (Lt = Ce[2 * Ce[2 * (ce = dt.heap[hi]) + 1] + 1] + 1) && (Lt = fi, Yi++), Ce[2 * ce + 1] = Lt, Hn < ce || (dt.bl_count[Lt]++, Vi = 0, Wn <= ce && (Vi = go[ce - Wn]), Hs = Ce[2 * ce], dt.opt_len += Hs * (Lt + Vi), Ro && (dt.static_len += Hs * (mo[2 * ce + 1] + Vi)));
|
|
14704
|
+
if (Yi !== 0) {
|
|
14651
14705
|
do {
|
|
14652
|
-
for (Lt =
|
|
14706
|
+
for (Lt = fi - 1; dt.bl_count[Lt] === 0; )
|
|
14653
14707
|
Lt--;
|
|
14654
|
-
dt.bl_count[Lt]--, dt.bl_count[Lt + 1] += 2, dt.bl_count[
|
|
14655
|
-
} while (0 <
|
|
14656
|
-
for (Lt =
|
|
14708
|
+
dt.bl_count[Lt]--, dt.bl_count[Lt + 1] += 2, dt.bl_count[fi]--, Yi -= 2;
|
|
14709
|
+
} while (0 < Yi);
|
|
14710
|
+
for (Lt = fi; Lt !== 0; Lt--)
|
|
14657
14711
|
for (ce = dt.bl_count[Lt]; ce !== 0; )
|
|
14658
|
-
Hn < (
|
|
14712
|
+
Hn < (ui = dt.heap[--hi]) || (Ce[2 * ui + 1] !== Lt && (dt.opt_len += (Lt - Ce[2 * ui + 1]) * Ce[2 * ui], Ce[2 * ui + 1] = Lt), ce--);
|
|
14659
14713
|
}
|
|
14660
14714
|
}(_, U), yt(K, Rt, _.bl_count);
|
|
14661
14715
|
}
|
|
14662
14716
|
function A(_, U, $) {
|
|
14663
|
-
var
|
|
14664
|
-
for (st === 0 && (ct = 138, Rt = 3), U[2 * ($ + 1) + 1] = 65535,
|
|
14665
|
-
B = st, st = U[2 * (
|
|
14717
|
+
var Z, B, K = -1, st = U[1], J = 0, ct = 7, Rt = 4;
|
|
14718
|
+
for (st === 0 && (ct = 138, Rt = 3), U[2 * ($ + 1) + 1] = 65535, Z = 0; Z <= $; Z++)
|
|
14719
|
+
B = st, st = U[2 * (Z + 1) + 1], ++J < ct && B === st || (J < Rt ? _.bl_tree[2 * B] += J : B !== 0 ? (B !== K && _.bl_tree[2 * B]++, _.bl_tree[2 * R]++) : J <= 10 ? _.bl_tree[2 * S]++ : _.bl_tree[2 * N]++, K = B, Rt = (J = 0) === st ? (ct = 138, 3) : B === st ? (ct = 6, 3) : (ct = 7, 4));
|
|
14666
14720
|
}
|
|
14667
14721
|
function X(_, U, $) {
|
|
14668
|
-
var
|
|
14669
|
-
for (st === 0 && (ct = 138, Rt = 3),
|
|
14670
|
-
if (B = st, st = U[2 * (
|
|
14722
|
+
var Z, B, K = -1, st = U[1], J = 0, ct = 7, Rt = 4;
|
|
14723
|
+
for (st === 0 && (ct = 138, Rt = 3), Z = 0; Z <= $; Z++)
|
|
14724
|
+
if (B = st, st = U[2 * (Z + 1) + 1], !(++J < ct && B === st)) {
|
|
14671
14725
|
if (J < Rt)
|
|
14672
14726
|
for (; tt(_, B, _.bl_tree), --J != 0; )
|
|
14673
14727
|
;
|
|
@@ -14678,18 +14732,18 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14678
14732
|
}
|
|
14679
14733
|
a(W);
|
|
14680
14734
|
var k = !1;
|
|
14681
|
-
function P(_, U, $,
|
|
14682
|
-
it(_, (l << 1) + (
|
|
14735
|
+
function P(_, U, $, Z) {
|
|
14736
|
+
it(_, (l << 1) + (Z ? 1 : 0), 3), function(B, K, st, J) {
|
|
14683
14737
|
It(B), ot(B, st), ot(B, ~st), n.arraySet(B.pending_buf, B.window, K, st, B.pending), B.pending += st;
|
|
14684
14738
|
}(_, U, $);
|
|
14685
14739
|
}
|
|
14686
14740
|
s._tr_init = function(_) {
|
|
14687
14741
|
k || (function() {
|
|
14688
|
-
var U, $,
|
|
14689
|
-
for (B =
|
|
14690
|
-
for (v[B] =
|
|
14691
|
-
g[
|
|
14692
|
-
for (g[
|
|
14742
|
+
var U, $, Z, B, K, st = new Array(T + 1);
|
|
14743
|
+
for (B = Z = 0; B < h - 1; B++)
|
|
14744
|
+
for (v[B] = Z, U = 0; U < 1 << y[B]; U++)
|
|
14745
|
+
g[Z++] = B;
|
|
14746
|
+
for (g[Z - 1] = B, B = K = 0; B < 16; B++)
|
|
14693
14747
|
for (W[B] = K, U = 0; U < 1 << M[B]; U++)
|
|
14694
14748
|
w[K++] = B;
|
|
14695
14749
|
for (K >>= 7; B < u; B++)
|
|
@@ -14698,18 +14752,18 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14698
14752
|
for ($ = 0; $ <= T; $++)
|
|
14699
14753
|
st[$] = 0;
|
|
14700
14754
|
for (U = 0; U <= 143; )
|
|
14701
|
-
|
|
14755
|
+
Y[2 * U + 1] = 8, U++, st[8]++;
|
|
14702
14756
|
for (; U <= 255; )
|
|
14703
|
-
|
|
14757
|
+
Y[2 * U + 1] = 9, U++, st[9]++;
|
|
14704
14758
|
for (; U <= 279; )
|
|
14705
|
-
|
|
14759
|
+
Y[2 * U + 1] = 7, U++, st[7]++;
|
|
14706
14760
|
for (; U <= 287; )
|
|
14707
|
-
|
|
14708
|
-
for (yt(
|
|
14761
|
+
Y[2 * U + 1] = 8, U++, st[8]++;
|
|
14762
|
+
for (yt(Y, I + 1, st), U = 0; U < u; U++)
|
|
14709
14763
|
O[2 * U + 1] = 5, O[2 * U] = St(U, 5);
|
|
14710
|
-
|
|
14711
|
-
}(), k = !0), _.l_desc = new
|
|
14712
|
-
}, s._tr_stored_block = P, s._tr_flush_block = function(_, U, $,
|
|
14764
|
+
q = new nt(Y, y, f + 1, I, T), G = new nt(O, M, 0, u, T), et = new nt(new Array(0), L, 0, d, m);
|
|
14765
|
+
}(), k = !0), _.l_desc = new V(_.dyn_ltree, q), _.d_desc = new V(_.dyn_dtree, G), _.bl_desc = new V(_.bl_tree, et), _.bi_buf = 0, _.bi_valid = 0, at(_);
|
|
14766
|
+
}, s._tr_stored_block = P, s._tr_flush_block = function(_, U, $, Z) {
|
|
14713
14767
|
var B, K, st = 0;
|
|
14714
14768
|
0 < _.level ? (_.strm.data_type === 2 && (_.strm.data_type = function(J) {
|
|
14715
14769
|
var ct, Rt = 4093624447;
|
|
@@ -14727,16 +14781,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14727
14781
|
for (A(J, J.dyn_ltree, J.l_desc.max_code), A(J, J.dyn_dtree, J.d_desc.max_code), Dt(J, J.bl_desc), ct = d - 1; 3 <= ct && J.bl_tree[2 * b[ct] + 1] === 0; ct--)
|
|
14728
14782
|
;
|
|
14729
14783
|
return J.opt_len += 3 * (ct + 1) + 5 + 5 + 4, ct;
|
|
14730
|
-
}(_), B = _.opt_len + 3 + 7 >>> 3, (K = _.static_len + 3 + 7 >>> 3) <= B && (B = K)) : B = K = $ + 5, $ + 4 <= B && U !== -1 ? P(_, U, $,
|
|
14784
|
+
}(_), B = _.opt_len + 3 + 7 >>> 3, (K = _.static_len + 3 + 7 >>> 3) <= B && (B = K)) : B = K = $ + 5, $ + 4 <= B && U !== -1 ? P(_, U, $, Z) : _.strategy === 4 || K === B ? (it(_, 2 + (Z ? 1 : 0), 3), Ht(_, Y, O)) : (it(_, 4 + (Z ? 1 : 0), 3), function(J, ct, Rt, dt) {
|
|
14731
14785
|
var Wt;
|
|
14732
14786
|
for (it(J, ct - 257, 5), it(J, Rt - 1, 5), it(J, dt - 4, 4), Wt = 0; Wt < dt; Wt++)
|
|
14733
14787
|
it(J, J.bl_tree[2 * b[Wt] + 1], 3);
|
|
14734
14788
|
X(J, J.dyn_ltree, ct - 1), X(J, J.dyn_dtree, Rt - 1);
|
|
14735
|
-
}(_, _.l_desc.max_code + 1, _.d_desc.max_code + 1, st + 1), Ht(_, _.dyn_ltree, _.dyn_dtree)), at(_),
|
|
14789
|
+
}(_, _.l_desc.max_code + 1, _.d_desc.max_code + 1, st + 1), Ht(_, _.dyn_ltree, _.dyn_dtree)), at(_), Z && It(_);
|
|
14736
14790
|
}, s._tr_tally = function(_, U, $) {
|
|
14737
14791
|
return _.pending_buf[_.d_buf + 2 * _.last_lit] = U >>> 8 & 255, _.pending_buf[_.d_buf + 2 * _.last_lit + 1] = 255 & U, _.pending_buf[_.l_buf + _.last_lit] = 255 & $, _.last_lit++, U === 0 ? _.dyn_ltree[2 * $]++ : (_.matches++, U--, _.dyn_ltree[2 * (g[$] + f + 1)]++, _.dyn_dtree[2 * x(U)]++), _.last_lit === _.lit_bufsize - 1;
|
|
14738
14792
|
}, s._tr_align = function(_) {
|
|
14739
|
-
it(_, 2, 3), tt(_, F,
|
|
14793
|
+
it(_, 2, 3), tt(_, F, Y), function(U) {
|
|
14740
14794
|
U.bi_valid === 16 ? (ot(U, U.bi_buf), U.bi_buf = 0, U.bi_valid = 0) : 8 <= U.bi_valid && (U.pending_buf[U.pending++] = 255 & U.bi_buf, U.bi_buf >>= 8, U.bi_valid -= 8);
|
|
14741
14795
|
}(_);
|
|
14742
14796
|
};
|
|
@@ -14821,7 +14875,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14821
14875
|
R.source === r && typeof R.data == "string" && R.data.indexOf(f) === 0 && m(+R.data.slice(f.length));
|
|
14822
14876
|
}
|
|
14823
14877
|
})(typeof self > "u" ? n === void 0 ? this : n : self);
|
|
14824
|
-
}).call(this, typeof
|
|
14878
|
+
}).call(this, typeof us < "u" ? us : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
14825
14879
|
}, {}] }, {}, [10])(10);
|
|
14826
14880
|
});
|
|
14827
14881
|
})(lo);
|
|
@@ -15027,18 +15081,18 @@ function Br(c, i) {
|
|
|
15027
15081
|
const t = zn.getAllMatches(c, Gc), e = {};
|
|
15028
15082
|
for (let s = 0; s < t.length; s++) {
|
|
15029
15083
|
if (t[s][1].length === 0)
|
|
15030
|
-
return Pt("InvalidAttr", "Attribute '" + t[s][2] + "' has no space in starting.",
|
|
15084
|
+
return Pt("InvalidAttr", "Attribute '" + t[s][2] + "' has no space in starting.", yi(t[s]));
|
|
15031
15085
|
if (t[s][3] !== void 0 && t[s][4] === void 0)
|
|
15032
|
-
return Pt("InvalidAttr", "Attribute '" + t[s][2] + "' is without value.",
|
|
15086
|
+
return Pt("InvalidAttr", "Attribute '" + t[s][2] + "' is without value.", yi(t[s]));
|
|
15033
15087
|
if (t[s][3] === void 0 && !i.allowBooleanAttributes)
|
|
15034
|
-
return Pt("InvalidAttr", "boolean attribute '" + t[s][2] + "' is not allowed.",
|
|
15088
|
+
return Pt("InvalidAttr", "boolean attribute '" + t[s][2] + "' is not allowed.", yi(t[s]));
|
|
15035
15089
|
const n = t[s][2];
|
|
15036
15090
|
if (!Hc(n))
|
|
15037
|
-
return Pt("InvalidAttr", "Attribute '" + n + "' is an invalid name.",
|
|
15091
|
+
return Pt("InvalidAttr", "Attribute '" + n + "' is an invalid name.", yi(t[s]));
|
|
15038
15092
|
if (!e.hasOwnProperty(n))
|
|
15039
15093
|
e[n] = 1;
|
|
15040
15094
|
else
|
|
15041
|
-
return Pt("InvalidAttr", "Attribute '" + n + "' is repeated.",
|
|
15095
|
+
return Pt("InvalidAttr", "Attribute '" + n + "' is repeated.", yi(t[s]));
|
|
15042
15096
|
}
|
|
15043
15097
|
return !0;
|
|
15044
15098
|
}
|
|
@@ -15090,7 +15144,7 @@ function xt(c, i) {
|
|
|
15090
15144
|
col: t[t.length - 1].length + 1
|
|
15091
15145
|
};
|
|
15092
15146
|
}
|
|
15093
|
-
function
|
|
15147
|
+
function yi(c) {
|
|
15094
15148
|
return c.startIndex + c[1].length;
|
|
15095
15149
|
}
|
|
15096
15150
|
var kn = {};
|
|
@@ -15262,7 +15316,7 @@ function ll(c) {
|
|
|
15262
15316
|
return c && c.indexOf(".") !== -1 && (c = c.replace(/0+$/, ""), c === "." ? c = "0" : c[0] === "." ? c = "0" + c : c[c.length - 1] === "." && (c = c.substr(0, c.length - 1))), c;
|
|
15263
15317
|
}
|
|
15264
15318
|
var hl = cl;
|
|
15265
|
-
const uo = zs,
|
|
15319
|
+
const uo = zs, Li = Zc, ul = nl, fl = hl;
|
|
15266
15320
|
let Il = class {
|
|
15267
15321
|
constructor(i) {
|
|
15268
15322
|
this.options = i, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = {
|
|
@@ -15346,12 +15400,12 @@ function Tl(c, i, t) {
|
|
|
15346
15400
|
const ml = function(c) {
|
|
15347
15401
|
c = c.replace(/\r\n?/g, `
|
|
15348
15402
|
`);
|
|
15349
|
-
const i = new
|
|
15403
|
+
const i = new Li("!xml");
|
|
15350
15404
|
let t = i, e = "", s = "";
|
|
15351
15405
|
for (let n = 0; n < c.length; n++)
|
|
15352
15406
|
if (c[n] === "<")
|
|
15353
15407
|
if (c[n + 1] === "/") {
|
|
15354
|
-
const o =
|
|
15408
|
+
const o = Ve(c, ">", n, "Closing Tag is not closed.");
|
|
15355
15409
|
let a = c.substring(n + 2, o).trim();
|
|
15356
15410
|
if (this.options.removeNSPrefix) {
|
|
15357
15411
|
const f = a.indexOf(":");
|
|
@@ -15368,12 +15422,12 @@ const ml = function(c) {
|
|
|
15368
15422
|
if (!o)
|
|
15369
15423
|
throw new Error("Pi Tag is not closed.");
|
|
15370
15424
|
if (e = this.saveTextToParentTag(e, t, s), !(this.options.ignoreDeclaration && o.tagName === "?xml" || this.options.ignorePiTags)) {
|
|
15371
|
-
const a = new
|
|
15425
|
+
const a = new Li(o.tagName);
|
|
15372
15426
|
a.add(this.options.textNodeName, ""), o.tagName !== o.tagExp && o.attrExpPresent && (a[":@"] = this.buildAttributesMap(o.tagExp, s, o.tagName)), this.addChild(t, a, s);
|
|
15373
15427
|
}
|
|
15374
15428
|
n = o.closeIndex + 1;
|
|
15375
15429
|
} else if (c.substr(n + 1, 3) === "!--") {
|
|
15376
|
-
const o =
|
|
15430
|
+
const o = Ve(c, "-->", n + 4, "Comment is not closed.");
|
|
15377
15431
|
if (this.options.commentPropName) {
|
|
15378
15432
|
const a = c.substring(n + 4, o - 2);
|
|
15379
15433
|
e = this.saveTextToParentTag(e, t, s), t.add(this.options.commentPropName, [{ [this.options.textNodeName]: a }]);
|
|
@@ -15383,7 +15437,7 @@ const ml = function(c) {
|
|
|
15383
15437
|
const o = ul(c, n);
|
|
15384
15438
|
this.docTypeEntities = o.entities, n = o.i;
|
|
15385
15439
|
} else if (c.substr(n + 1, 2) === "![") {
|
|
15386
|
-
const o =
|
|
15440
|
+
const o = Ve(c, "]]>", n, "CDATA is not closed.") - 2, a = c.substring(n + 9, o);
|
|
15387
15441
|
e = this.saveTextToParentTag(e, t, s);
|
|
15388
15442
|
let l = this.parseTextData(a, t.tagname, s, !0, !1, !0, !0);
|
|
15389
15443
|
l == null && (l = ""), this.options.cdataPropName ? t.add(this.options.cdataPropName, [{ [this.options.textNodeName]: a }]) : t.add(this.options.textNodeName, l), n = o + 2;
|
|
@@ -15405,15 +15459,15 @@ const ml = function(c) {
|
|
|
15405
15459
|
throw new Error(`Unexpected end of ${l}`);
|
|
15406
15460
|
n = T.i, d = T.tagContent;
|
|
15407
15461
|
}
|
|
15408
|
-
const E = new
|
|
15462
|
+
const E = new Li(a);
|
|
15409
15463
|
a !== h && f && (E[":@"] = this.buildAttributesMap(h, s, a)), d && (d = this.parseTextData(d, a, s, !0, f, !0, !0)), s = s.substr(0, s.lastIndexOf(".")), E.add(this.options.textNodeName, d), this.addChild(t, E, s);
|
|
15410
15464
|
} else {
|
|
15411
15465
|
if (h.length > 0 && h.lastIndexOf("/") === h.length - 1) {
|
|
15412
15466
|
a[a.length - 1] === "/" ? (a = a.substr(0, a.length - 1), s = s.substr(0, s.length - 1), h = a) : h = h.substr(0, h.length - 1), this.options.transformTagName && (a = this.options.transformTagName(a));
|
|
15413
|
-
const d = new
|
|
15467
|
+
const d = new Li(a);
|
|
15414
15468
|
a !== h && f && (d[":@"] = this.buildAttributesMap(h, s, a)), this.addChild(t, d, s), s = s.substr(0, s.lastIndexOf("."));
|
|
15415
15469
|
} else {
|
|
15416
|
-
const d = new
|
|
15470
|
+
const d = new Li(a);
|
|
15417
15471
|
this.tagsNodeStack.push(t), a !== h && f && (d[":@"] = this.buildAttributesMap(h, s, a)), this.addChild(t, d, s), t = d;
|
|
15418
15472
|
}
|
|
15419
15473
|
e = "", n = I;
|
|
@@ -15490,7 +15544,7 @@ function Sl(c, i, t = ">") {
|
|
|
15490
15544
|
s += r;
|
|
15491
15545
|
}
|
|
15492
15546
|
}
|
|
15493
|
-
function
|
|
15547
|
+
function Ve(c, i, t, e) {
|
|
15494
15548
|
const s = c.indexOf(i, t);
|
|
15495
15549
|
if (s === -1)
|
|
15496
15550
|
throw new Error(e);
|
|
@@ -15523,7 +15577,7 @@ function Ol(c, i, t) {
|
|
|
15523
15577
|
for (; t < c.length; t++)
|
|
15524
15578
|
if (c[t] === "<")
|
|
15525
15579
|
if (c[t + 1] === "/") {
|
|
15526
|
-
const n =
|
|
15580
|
+
const n = Ve(c, ">", t, `${i} is not closed`);
|
|
15527
15581
|
if (c.substring(t + 2, n).trim() === i && (s--, s === 0))
|
|
15528
15582
|
return {
|
|
15529
15583
|
tagContent: c.substring(e, t),
|
|
@@ -15531,11 +15585,11 @@ function Ol(c, i, t) {
|
|
|
15531
15585
|
};
|
|
15532
15586
|
t = n;
|
|
15533
15587
|
} else if (c[t + 1] === "?")
|
|
15534
|
-
t =
|
|
15588
|
+
t = Ve(c, "?>", t + 1, "StopNode is not closed.");
|
|
15535
15589
|
else if (c.substr(t + 1, 3) === "!--")
|
|
15536
|
-
t =
|
|
15590
|
+
t = Ve(c, "-->", t + 3, "StopNode is not closed.");
|
|
15537
15591
|
else if (c.substr(t + 1, 2) === "![")
|
|
15538
|
-
t =
|
|
15592
|
+
t = Ve(c, "]]>", t, "StopNode is not closed.") - 2;
|
|
15539
15593
|
else {
|
|
15540
15594
|
const n = Ln(c, t, ">");
|
|
15541
15595
|
n && ((n && n.tagName) === i && n.tagExp[n.tagExp.length - 1] !== "/" && s++, t = n.closeIndex);
|
|
@@ -15743,7 +15797,7 @@ const zl = Gl, kl = {
|
|
|
15743
15797
|
// transformAttributeName: false,
|
|
15744
15798
|
oneListGroup: !1
|
|
15745
15799
|
};
|
|
15746
|
-
function
|
|
15800
|
+
function be(c) {
|
|
15747
15801
|
this.options = Object.assign({}, kl, c), this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
|
|
15748
15802
|
return !1;
|
|
15749
15803
|
} : (this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = Xl), this.processTextOrObjNode = Hl, this.options.format ? (this.indentate = Wl, this.tagEndChar = `>
|
|
@@ -15752,12 +15806,12 @@ function De(c) {
|
|
|
15752
15806
|
return "";
|
|
15753
15807
|
}, this.tagEndChar = ">", this.newLine = "");
|
|
15754
15808
|
}
|
|
15755
|
-
|
|
15809
|
+
be.prototype.build = function(c) {
|
|
15756
15810
|
return this.options.preserveOrder ? zl(c, this.options) : (Array.isArray(c) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (c = {
|
|
15757
15811
|
[this.options.arrayNodeName]: c
|
|
15758
15812
|
}), this.j2x(c, 0).val);
|
|
15759
15813
|
};
|
|
15760
|
-
|
|
15814
|
+
be.prototype.j2x = function(c, i) {
|
|
15761
15815
|
let t = "", e = "";
|
|
15762
15816
|
for (let s in c)
|
|
15763
15817
|
if (Object.prototype.hasOwnProperty.call(c, s))
|
|
@@ -15805,14 +15859,14 @@ De.prototype.j2x = function(c, i) {
|
|
|
15805
15859
|
e += this.processTextOrObjNode(c[s], s, i);
|
|
15806
15860
|
return { attrStr: t, val: e };
|
|
15807
15861
|
};
|
|
15808
|
-
|
|
15862
|
+
be.prototype.buildAttrPairStr = function(c, i) {
|
|
15809
15863
|
return i = this.options.attributeValueProcessor(c, "" + i), i = this.replaceEntitiesValue(i), this.options.suppressBooleanAttributes && i === "true" ? " " + c : " " + c + '="' + i + '"';
|
|
15810
15864
|
};
|
|
15811
15865
|
function Hl(c, i, t) {
|
|
15812
15866
|
const e = this.j2x(c, t + 1);
|
|
15813
15867
|
return c[this.options.textNodeName] !== void 0 && Object.keys(c).length === 1 ? this.buildTextValNode(c[this.options.textNodeName], i, e.attrStr, t) : this.buildObjectNode(e.val, i, e.attrStr, t);
|
|
15814
15868
|
}
|
|
15815
|
-
|
|
15869
|
+
be.prototype.buildObjectNode = function(c, i, t, e) {
|
|
15816
15870
|
if (c === "")
|
|
15817
15871
|
return i[0] === "?" ? this.indentate(e) + "<" + i + t + "?" + this.tagEndChar : this.indentate(e) + "<" + i + t + this.closeTag(i) + this.tagEndChar;
|
|
15818
15872
|
{
|
|
@@ -15820,11 +15874,11 @@ De.prototype.buildObjectNode = function(c, i, t, e) {
|
|
|
15820
15874
|
return i[0] === "?" && (n = "?", s = ""), (t || t === "") && c.indexOf("<") === -1 ? this.indentate(e) + "<" + i + t + n + ">" + c + s : this.options.commentPropName !== !1 && i === this.options.commentPropName && n.length === 0 ? this.indentate(e) + `<!--${c}-->` + this.newLine : this.indentate(e) + "<" + i + t + n + this.tagEndChar + c + this.indentate(e) + s;
|
|
15821
15875
|
}
|
|
15822
15876
|
};
|
|
15823
|
-
|
|
15877
|
+
be.prototype.closeTag = function(c) {
|
|
15824
15878
|
let i = "";
|
|
15825
15879
|
return this.options.unpairedTags.indexOf(c) !== -1 ? this.options.suppressUnpairedNode || (i = "/") : this.options.suppressEmptyNode ? i = "/" : i = `></${c}`, i;
|
|
15826
15880
|
};
|
|
15827
|
-
|
|
15881
|
+
be.prototype.buildTextValNode = function(c, i, t, e) {
|
|
15828
15882
|
if (this.options.cdataPropName !== !1 && i === this.options.cdataPropName)
|
|
15829
15883
|
return this.indentate(e) + `<![CDATA[${c}]]>` + this.newLine;
|
|
15830
15884
|
if (this.options.commentPropName !== !1 && i === this.options.commentPropName)
|
|
@@ -15836,7 +15890,7 @@ De.prototype.buildTextValNode = function(c, i, t, e) {
|
|
|
15836
15890
|
return s = this.replaceEntitiesValue(s), s === "" ? this.indentate(e) + "<" + i + t + this.closeTag(i) + this.tagEndChar : this.indentate(e) + "<" + i + t + ">" + s + "</" + i + this.tagEndChar;
|
|
15837
15891
|
}
|
|
15838
15892
|
};
|
|
15839
|
-
|
|
15893
|
+
be.prototype.replaceEntitiesValue = function(c) {
|
|
15840
15894
|
if (c && c.length > 0 && this.options.processEntities)
|
|
15841
15895
|
for (let i = 0; i < this.options.entities.length; i++) {
|
|
15842
15896
|
const t = this.options.entities[i];
|
|
@@ -15850,7 +15904,7 @@ function Wl(c) {
|
|
|
15850
15904
|
function Xl(c) {
|
|
15851
15905
|
return c.startsWith(this.options.attributeNamePrefix) && c !== this.options.textNodeName ? c.substr(this.attrPrefixLen) : !1;
|
|
15852
15906
|
}
|
|
15853
|
-
var $l =
|
|
15907
|
+
var $l = be;
|
|
15854
15908
|
const Zl = Gn, jl = Ul, ql = $l;
|
|
15855
15909
|
var Co = {
|
|
15856
15910
|
XMLParser: jl,
|
|
@@ -15940,9 +15994,9 @@ const Ie = class Ie {
|
|
|
15940
15994
|
C(this, "creationDate", /* @__PURE__ */ new Date());
|
|
15941
15995
|
C(this, "creationAuthor", "");
|
|
15942
15996
|
// Store viewpoint guids instead of the actual Viewpoint to prevent a possible memory leak
|
|
15943
|
-
C(this, "viewpoints", new
|
|
15997
|
+
C(this, "viewpoints", new we());
|
|
15944
15998
|
// Store topic guids instead of the actual Topic to prevent a possible memory leak
|
|
15945
|
-
C(this, "relatedTopics", new
|
|
15999
|
+
C(this, "relatedTopics", new we());
|
|
15946
16000
|
// There is no problem to store the comment it-self as it is not referenced anywhere else
|
|
15947
16001
|
C(this, "comments", new re());
|
|
15948
16002
|
C(this, "customData", {});
|
|
@@ -16229,7 +16283,7 @@ const Ql = (c, i) => {
|
|
|
16229
16283
|
c.config.users.add(a);
|
|
16230
16284
|
}
|
|
16231
16285
|
};
|
|
16232
|
-
class Kl extends
|
|
16286
|
+
class Kl extends Ge {
|
|
16233
16287
|
constructor() {
|
|
16234
16288
|
super(...arguments);
|
|
16235
16289
|
C(this, "_config", {
|
|
@@ -16415,10 +16469,10 @@ const Le = class Le extends At {
|
|
|
16415
16469
|
Le.uuid
|
|
16416
16470
|
));
|
|
16417
16471
|
C(this, "list", new re());
|
|
16418
|
-
C(this, "onSetup", new
|
|
16472
|
+
C(this, "onSetup", new j());
|
|
16419
16473
|
C(this, "isSetup", !1);
|
|
16420
|
-
C(this, "onBCFImported", new
|
|
16421
|
-
C(this, "onDisposed", new
|
|
16474
|
+
C(this, "onBCFImported", new j());
|
|
16475
|
+
C(this, "onDisposed", new j());
|
|
16422
16476
|
}
|
|
16423
16477
|
setup(t) {
|
|
16424
16478
|
if (this.isSetup)
|
|
@@ -16680,33 +16734,33 @@ ${o}
|
|
|
16680
16734
|
ClippingPlanes: M,
|
|
16681
16735
|
Components: L,
|
|
16682
16736
|
OrthogonalCamera: b,
|
|
16683
|
-
PerspectiveCamera:
|
|
16737
|
+
PerspectiveCamera: Y
|
|
16684
16738
|
} = S;
|
|
16685
16739
|
if (y && (N.guid = y), L) {
|
|
16686
16740
|
const { Selection: w, Visibility: g } = L;
|
|
16687
16741
|
if (w && w.Component) {
|
|
16688
|
-
const
|
|
16689
|
-
N.selectionComponents =
|
|
16742
|
+
const q = Array.isArray(w.Component) ? w.Component : [w.Component];
|
|
16743
|
+
N.selectionComponents = q.map((G) => G.IfcGuid).filter((G) => G);
|
|
16690
16744
|
}
|
|
16691
16745
|
if (g && "DefaultVisibility" in g && (N.defaultVisibility = g.DefaultVisibility), g && g.Exceptions && "Component" in g.Exceptions) {
|
|
16692
|
-
const { Component:
|
|
16693
|
-
N.exceptionComponents =
|
|
16746
|
+
const { Component: q } = g.Exceptions, G = Array.isArray(q) ? q : [q];
|
|
16747
|
+
N.exceptionComponents = G.map((et) => et.IfcGuid).filter((et) => et);
|
|
16694
16748
|
}
|
|
16695
16749
|
let v;
|
|
16696
16750
|
l === "2.1" && (v = L.ViewSetupHints), l === "3" && (v = (m = L.Visibility) == null ? void 0 : m.ViewSetupHints), v && ("OpeningsVisible" in v && (N.openingsVisible = v.OpeningsVisible), "SpacesVisible" in v && (N.spacesVisible = v.SpacesVisible), "SpaceBoundariesVisible" in v && (N.spaceBoundariesVisible = v.SpaceBoundariesVisible));
|
|
16697
16751
|
}
|
|
16698
|
-
if (b ||
|
|
16699
|
-
const w = S.PerspectiveCamera ?? S.OrthogonalCamera, { CameraViewPoint: g, CameraDirection: v } = w,
|
|
16752
|
+
if (b || Y) {
|
|
16753
|
+
const w = S.PerspectiveCamera ?? S.OrthogonalCamera, { CameraViewPoint: g, CameraDirection: v } = w, q = new D.Vector3(
|
|
16700
16754
|
Number(g.X),
|
|
16701
16755
|
Number(g.Z),
|
|
16702
16756
|
Number(-g.Y)
|
|
16703
|
-
),
|
|
16757
|
+
), G = new D.Vector3(
|
|
16704
16758
|
Number(v.X),
|
|
16705
16759
|
Number(v.Z),
|
|
16706
16760
|
Number(-v.Y)
|
|
16707
16761
|
), et = {
|
|
16708
|
-
position: { x:
|
|
16709
|
-
direction: { x:
|
|
16762
|
+
position: { x: q.x, y: q.y, z: q.z },
|
|
16763
|
+
direction: { x: G.x, y: G.y, z: G.z },
|
|
16710
16764
|
aspectRatio: "AspectRatio" in w ? w.AspectRatio : 1
|
|
16711
16765
|
// Temporal simplification
|
|
16712
16766
|
};
|
|
@@ -16727,25 +16781,25 @@ ${o}
|
|
|
16727
16781
|
if (w && w.Color) {
|
|
16728
16782
|
const g = Array.isArray(w.Color) ? w.Color : [w.Color];
|
|
16729
16783
|
for (const v of g) {
|
|
16730
|
-
const { Color:
|
|
16731
|
-
O.componentColors.set(
|
|
16784
|
+
const { Color: q, Component: G } = v, W = (Array.isArray(G) ? G : [G]).map((nt) => nt.IfcGuid);
|
|
16785
|
+
O.componentColors.set(q, W);
|
|
16732
16786
|
}
|
|
16733
16787
|
}
|
|
16734
16788
|
}
|
|
16735
16789
|
if (I.push(O), M) {
|
|
16736
16790
|
const w = this.components.get(Sn), g = Array.isArray(M.ClippingPlane) ? M.ClippingPlane : [M.ClippingPlane];
|
|
16737
16791
|
for (const v of g) {
|
|
16738
|
-
const { Location:
|
|
16739
|
-
if (!(
|
|
16792
|
+
const { Location: q, Direction: G } = v;
|
|
16793
|
+
if (!(q && G))
|
|
16740
16794
|
continue;
|
|
16741
16795
|
const et = new D.Vector3(
|
|
16742
|
-
|
|
16743
|
-
|
|
16744
|
-
-
|
|
16796
|
+
q.X,
|
|
16797
|
+
q.Z,
|
|
16798
|
+
-q.Y
|
|
16745
16799
|
), W = new D.Vector3(
|
|
16746
|
-
|
|
16747
|
-
-
|
|
16748
|
-
|
|
16800
|
+
G.X,
|
|
16801
|
+
-G.Z,
|
|
16802
|
+
G.Y
|
|
16749
16803
|
), nt = w.createFromNormalAndCoplanarPoint(
|
|
16750
16804
|
e,
|
|
16751
16805
|
W,
|
|
@@ -16762,23 +16816,23 @@ ${o}
|
|
|
16762
16816
|
TopicType: M,
|
|
16763
16817
|
TopicStatus: L,
|
|
16764
16818
|
Title: b,
|
|
16765
|
-
CreationDate:
|
|
16819
|
+
CreationDate: Y,
|
|
16766
16820
|
CreationAuthor: O
|
|
16767
16821
|
} = N;
|
|
16768
|
-
if (n && !(y && M && L && b &&
|
|
16822
|
+
if (n && !(y && M && L && b && Y && O))
|
|
16769
16823
|
continue;
|
|
16770
16824
|
const w = new Rs(this.components);
|
|
16771
16825
|
w.guid = y ?? w.guid;
|
|
16772
16826
|
const g = this.getMarkupRelatedTopics(S, l);
|
|
16773
|
-
E[w.guid] = new Set(g), w.type = M ?? w.type, w.status = L ?? w.status, w.title = b ?? w.title, w.creationDate =
|
|
16827
|
+
E[w.guid] = new Set(g), w.type = M ?? w.type, w.status = L ?? w.status, w.title = b ?? w.title, w.creationDate = Y ? new Date(Y) : w.creationDate, w.creationAuthor = O ?? w.creationAuthor, w.serverAssignedId = N.ServerAssignedId, w.priority = N.Priority, w.index = N.Index, w.modifiedDate = N.ModifiedDate ? new Date(N.ModifiedDate) : void 0, w.modifiedAuthor = N.ModifiedAuthor, w.dueDate = N.DueDate ? new Date(N.DueDate) : void 0, w.assignedTo = N.AssignedTo, w.description = N.Description, w.stage = N.Stage;
|
|
16774
16828
|
const v = this.getMarkupLabels(S, l);
|
|
16775
16829
|
for (const et of v)
|
|
16776
16830
|
w.labels.add(et);
|
|
16777
|
-
const
|
|
16778
|
-
for (const et of
|
|
16831
|
+
const q = this.getMarkupComments(S, l);
|
|
16832
|
+
for (const et of q)
|
|
16779
16833
|
w.comments.set(et.guid, et);
|
|
16780
|
-
const
|
|
16781
|
-
for (const et of
|
|
16834
|
+
const G = this.getMarkupViewpoints(S, l);
|
|
16835
|
+
for (const et of G) {
|
|
16782
16836
|
if (!(et && et.Guid))
|
|
16783
16837
|
continue;
|
|
16784
16838
|
const W = u.list.get(et.Guid);
|
|
@@ -16817,7 +16871,7 @@ const ee = class ee extends At {
|
|
|
16817
16871
|
/** {@link Component.enabled} */
|
|
16818
16872
|
C(this, "enabled", !0);
|
|
16819
16873
|
/** {@link Disposable.onDisposed} */
|
|
16820
|
-
C(this, "onDisposed", new
|
|
16874
|
+
C(this, "onDisposed", new j());
|
|
16821
16875
|
C(this, "_absoluteMin");
|
|
16822
16876
|
C(this, "_absoluteMax");
|
|
16823
16877
|
C(this, "_meshes", []);
|
|
@@ -16893,7 +16947,7 @@ const ee = class ee extends At {
|
|
|
16893
16947
|
}
|
|
16894
16948
|
/** {@link Disposable.dispose} */
|
|
16895
16949
|
dispose() {
|
|
16896
|
-
const t = this.components.get(
|
|
16950
|
+
const t = this.components.get(De);
|
|
16897
16951
|
for (const e of this._meshes)
|
|
16898
16952
|
t.destroy(e);
|
|
16899
16953
|
this._meshes = [], this.onDisposed.trigger(ee.uuid), this.onDisposed.reset();
|
|
@@ -17093,7 +17147,7 @@ const Ps = class Ps {
|
|
|
17093
17147
|
/**
|
|
17094
17148
|
* Event used to notify the progress when performing a query on an IFC file.
|
|
17095
17149
|
*/
|
|
17096
|
-
C(this, "onProgress", new
|
|
17150
|
+
C(this, "onProgress", new j());
|
|
17097
17151
|
/**
|
|
17098
17152
|
* If false, ALL rules of the query must comply to make a match. If true, ANY rule will be enough to make a match.
|
|
17099
17153
|
*/
|
|
@@ -17653,7 +17707,7 @@ const bs = class bs extends At {
|
|
|
17653
17707
|
*/
|
|
17654
17708
|
C(this, "list", {});
|
|
17655
17709
|
/** {@link Disposable.onDisposed} */
|
|
17656
|
-
C(this, "onDisposed", new
|
|
17710
|
+
C(this, "onDisposed", new j());
|
|
17657
17711
|
C(this, "onFragmentsDisposed", (t) => {
|
|
17658
17712
|
const { groupID: e, fragmentIDs: s } = t;
|
|
17659
17713
|
for (const n in this.list) {
|
|
@@ -17842,11 +17896,11 @@ const bs = class bs extends At {
|
|
|
17842
17896
|
* @throws Will throw an error if the fragment ID is not found or if the IFC relationship is not valid.
|
|
17843
17897
|
*/
|
|
17844
17898
|
async byIfcRel(t, e, s) {
|
|
17845
|
-
|
|
17899
|
+
oi.isRel(e) && await oi.getRelationMap(
|
|
17846
17900
|
t,
|
|
17847
17901
|
e,
|
|
17848
17902
|
async (n, r) => {
|
|
17849
|
-
const { name: o } = await
|
|
17903
|
+
const { name: o } = await oi.getEntityName(
|
|
17850
17904
|
t,
|
|
17851
17905
|
n
|
|
17852
17906
|
);
|
|
@@ -17998,12 +18052,12 @@ const bs = class bs extends At {
|
|
|
17998
18052
|
* This UUID is used to register the component within the Components system.
|
|
17999
18053
|
*/
|
|
18000
18054
|
C(bs, "uuid", "e25a7f3c-46c4-4a14-9d3d-5115f24ebeb7");
|
|
18001
|
-
let
|
|
18055
|
+
let Bi = bs;
|
|
18002
18056
|
const vs = class vs extends At {
|
|
18003
18057
|
constructor(t) {
|
|
18004
18058
|
super(t);
|
|
18005
18059
|
/** {@link Disposable.onDisposed} */
|
|
18006
|
-
C(this, "onDisposed", new
|
|
18060
|
+
C(this, "onDisposed", new j());
|
|
18007
18061
|
/** {@link Component.enabled} */
|
|
18008
18062
|
C(this, "enabled", !0);
|
|
18009
18063
|
/**
|
|
@@ -18046,7 +18100,7 @@ const vs = class vs extends At {
|
|
|
18046
18100
|
set(t) {
|
|
18047
18101
|
if (!this.enabled)
|
|
18048
18102
|
return;
|
|
18049
|
-
const e = this.components.get(
|
|
18103
|
+
const e = this.components.get(Bi), s = this.components.get(Tt), n = t ? 1 : -1;
|
|
18050
18104
|
let r = 0;
|
|
18051
18105
|
const o = e.list[this.groupName], a = new D.Matrix4();
|
|
18052
18106
|
for (const l in o) {
|
|
@@ -18151,24 +18205,24 @@ const xs = class xs extends At {
|
|
|
18151
18205
|
* Event triggered when geometry is streamed.
|
|
18152
18206
|
* Contains the streamed geometry data and its buffer.
|
|
18153
18207
|
*/
|
|
18154
|
-
C(this, "onGeometryStreamed", new
|
|
18208
|
+
C(this, "onGeometryStreamed", new Pe());
|
|
18155
18209
|
/**
|
|
18156
18210
|
* Event triggered when assets are streamed.
|
|
18157
18211
|
* Contains the streamed assets.
|
|
18158
18212
|
*/
|
|
18159
|
-
C(this, "onAssetStreamed", new
|
|
18213
|
+
C(this, "onAssetStreamed", new Pe());
|
|
18160
18214
|
/**
|
|
18161
18215
|
* Event triggered to indicate the progress of the streaming process.
|
|
18162
18216
|
* Contains the progress percentage.
|
|
18163
18217
|
*/
|
|
18164
|
-
C(this, "onProgress", new
|
|
18218
|
+
C(this, "onProgress", new Pe());
|
|
18165
18219
|
/**
|
|
18166
18220
|
* Event triggered when the IFC file is loaded.
|
|
18167
18221
|
* Contains the loaded IFC file data.
|
|
18168
18222
|
*/
|
|
18169
|
-
C(this, "onIfcLoaded", new
|
|
18223
|
+
C(this, "onIfcLoaded", new Pe());
|
|
18170
18224
|
/** {@link Disposable.onDisposed} */
|
|
18171
|
-
C(this, "onDisposed", new
|
|
18225
|
+
C(this, "onDisposed", new j());
|
|
18172
18226
|
/**
|
|
18173
18227
|
* Settings for the IfcGeometryTiler.
|
|
18174
18228
|
*/
|
|
@@ -18273,9 +18327,9 @@ const xs = class xs extends At {
|
|
|
18273
18327
|
for (const E of n) {
|
|
18274
18328
|
h++, this.webIfc.StreamMeshes(0, E, (p) => {
|
|
18275
18329
|
this.getMesh(this.webIfc, p, r);
|
|
18276
|
-
}), this._assets.length > e && await this.streamAssets();
|
|
18330
|
+
}), this._geometryCount > this.settings.minGeometrySize && await this.streamGeometries(), this._assets.length > e && await this.streamAssets();
|
|
18277
18331
|
const T = h / n.length;
|
|
18278
|
-
T > l && (l += 0.01, l = Math.max(l, T), this.onProgress.trigger(Math.round(l * 100) / 100));
|
|
18332
|
+
T > l && (l += 0.01, l = Math.max(l, T), await this.onProgress.trigger(Math.round(l * 100) / 100));
|
|
18279
18333
|
}
|
|
18280
18334
|
this._geometryCount && await this.streamGeometries(), this._assets.length && await this.streamAssets();
|
|
18281
18335
|
const { opaque: f, transparent: I } = r.geometryIDs;
|
|
@@ -18285,7 +18339,7 @@ const xs = class xs extends At {
|
|
|
18285
18339
|
const u = this.webIfc.GetCoordinationMatrix(0);
|
|
18286
18340
|
r.coordinationMatrix.fromArray(u), r.civilData = this._civil.read(this.webIfc);
|
|
18287
18341
|
const d = this._groupSerializer.export(r);
|
|
18288
|
-
this.onIfcLoaded.trigger(d), r.dispose(!0);
|
|
18342
|
+
await this.onIfcLoaded.trigger(d), r.dispose(!0);
|
|
18289
18343
|
}
|
|
18290
18344
|
cleanUp() {
|
|
18291
18345
|
try {
|
|
@@ -18297,8 +18351,8 @@ const xs = class xs extends At {
|
|
|
18297
18351
|
getMesh(t, e, s) {
|
|
18298
18352
|
const n = e.geometries.size(), r = e.expressID, o = { id: r, geometries: [] };
|
|
18299
18353
|
for (let a = 0; a < n; a++) {
|
|
18300
|
-
const l = e.geometries.get(a), h = l.geometryExpressID,
|
|
18301
|
-
this._visitedGeometries.has(u) || this.getGeometry(t, h,
|
|
18354
|
+
const l = e.geometries.get(a), h = l.geometryExpressID, I = l.color.w === 1 ? 1 : -1, u = h * I;
|
|
18355
|
+
this._visitedGeometries.has(u) || this.getGeometry(t, h, u), this.registerGeometryData(
|
|
18302
18356
|
s,
|
|
18303
18357
|
r,
|
|
18304
18358
|
l,
|
|
@@ -18323,37 +18377,67 @@ const xs = class xs extends At {
|
|
|
18323
18377
|
), a = new Float32Array(o.length / 2), l = new Float32Array(o.length / 2);
|
|
18324
18378
|
for (let u = 0; u < o.length; u += 6)
|
|
18325
18379
|
a[u / 2] = o[u], a[u / 2 + 1] = o[u + 1], a[u / 2 + 2] = o[u + 2], l[u / 2] = o[u + 3], l[u / 2 + 1] = o[u + 4], l[u / 2 + 2] = o[u + 5];
|
|
18380
|
+
if (r.length === 0) {
|
|
18381
|
+
const u = new Float32Array([
|
|
18382
|
+
0,
|
|
18383
|
+
0,
|
|
18384
|
+
0,
|
|
18385
|
+
0,
|
|
18386
|
+
0,
|
|
18387
|
+
0,
|
|
18388
|
+
0,
|
|
18389
|
+
0,
|
|
18390
|
+
0,
|
|
18391
|
+
0,
|
|
18392
|
+
0,
|
|
18393
|
+
0,
|
|
18394
|
+
0,
|
|
18395
|
+
0,
|
|
18396
|
+
0,
|
|
18397
|
+
1
|
|
18398
|
+
]);
|
|
18399
|
+
this._geometries.set(e, {
|
|
18400
|
+
position: a,
|
|
18401
|
+
normal: l,
|
|
18402
|
+
index: r,
|
|
18403
|
+
boundingBox: u,
|
|
18404
|
+
hasHoles: !1
|
|
18405
|
+
});
|
|
18406
|
+
const d = this._visitedGeometries.size, E = D.MathUtils.generateUUID();
|
|
18407
|
+
this._visitedGeometries.set(s, { uuid: E, index: d }), this._geometryCount++, n.delete();
|
|
18408
|
+
return;
|
|
18409
|
+
}
|
|
18326
18410
|
const f = (this.settings.maxTriangles || r.length / 3) * 3;
|
|
18327
18411
|
let I = !0;
|
|
18328
18412
|
for (let u = 0; u < r.length; u += f) {
|
|
18329
18413
|
const d = r.length - u, E = Math.min(d, f), T = u + E, p = [], m = [], F = [];
|
|
18330
18414
|
let R = 0;
|
|
18331
|
-
for (let
|
|
18415
|
+
for (let g = u; g < T; g++) {
|
|
18332
18416
|
p.push(R++);
|
|
18333
|
-
const
|
|
18334
|
-
m.push(a[
|
|
18417
|
+
const v = r[g];
|
|
18418
|
+
m.push(a[v * 3]), m.push(a[v * 3 + 1]), m.push(a[v * 3 + 2]), F.push(l[v * 3]), F.push(l[v * 3 + 1]), F.push(l[v * 3 + 2]);
|
|
18335
18419
|
}
|
|
18336
|
-
const S = new Uint32Array(p), N = new Float32Array(m), y = new Float32Array(F), M = qa(N), L = new Float32Array(M.transformation.elements), b = !1,
|
|
18337
|
-
this._geometries.set(
|
|
18420
|
+
const S = new Uint32Array(p), N = new Float32Array(m), y = new Float32Array(F), M = qa(N), L = new Float32Array(M.transformation.elements), b = !1, Y = I ? e : this._nextAvailableID++;
|
|
18421
|
+
this._geometries.set(Y, {
|
|
18338
18422
|
position: N,
|
|
18339
18423
|
normal: y,
|
|
18340
18424
|
index: S,
|
|
18341
18425
|
boundingBox: L,
|
|
18342
18426
|
hasHoles: b
|
|
18343
|
-
}), I || (this._splittedGeometries.has(e) || this._splittedGeometries.set(e, /* @__PURE__ */ new Set()), this._splittedGeometries.get(e).add(
|
|
18344
|
-
const
|
|
18345
|
-
this._visitedGeometries.set(
|
|
18427
|
+
}), I || (this._splittedGeometries.has(e) || this._splittedGeometries.set(e, /* @__PURE__ */ new Set()), this._splittedGeometries.get(e).add(Y));
|
|
18428
|
+
const O = this._visitedGeometries.size, w = D.MathUtils.generateUUID();
|
|
18429
|
+
this._visitedGeometries.set(s, { uuid: w, index: O }), this._geometryCount++, I = !1;
|
|
18346
18430
|
}
|
|
18347
18431
|
n.delete();
|
|
18348
18432
|
}
|
|
18349
18433
|
async streamAssets() {
|
|
18350
18434
|
await this.onAssetStreamed.trigger(this._assets), this._assets = null, this._assets = [];
|
|
18351
18435
|
}
|
|
18352
|
-
streamGeometries() {
|
|
18436
|
+
async streamGeometries() {
|
|
18353
18437
|
let t = this._streamSerializer.export(this._geometries), e = {};
|
|
18354
18438
|
for (const [s, { boundingBox: n, hasHoles: r }] of this._geometries)
|
|
18355
18439
|
e[s] = { boundingBox: n, hasHoles: r };
|
|
18356
|
-
this.onGeometryStreamed.trigger({ data: e, buffer: t }), e = null, t = null, this._geometries.clear(), this._geometryCount = 0;
|
|
18440
|
+
await this.onGeometryStreamed.trigger({ data: e, buffer: t }), e = null, t = null, this._geometries.clear(), this._geometryCount = 0;
|
|
18357
18441
|
}
|
|
18358
18442
|
registerGeometryData(t, e, s, n, r, o) {
|
|
18359
18443
|
const a = this._visitedGeometries.get(o);
|
|
@@ -18390,19 +18474,19 @@ class eh extends At {
|
|
|
18390
18474
|
* An event that is triggered when properties are streamed from the IFC file.
|
|
18391
18475
|
* The event provides the type of the IFC entity and the corresponding data.
|
|
18392
18476
|
*/
|
|
18393
|
-
C(this, "onPropertiesStreamed", new
|
|
18477
|
+
C(this, "onPropertiesStreamed", new Pe());
|
|
18394
18478
|
/**
|
|
18395
18479
|
* An event that is triggered to indicate the progress of the streaming process.
|
|
18396
18480
|
* The event provides a number between 0 and 1 representing the progress percentage.
|
|
18397
18481
|
*/
|
|
18398
|
-
C(this, "onProgress", new
|
|
18482
|
+
C(this, "onProgress", new Pe());
|
|
18399
18483
|
/**
|
|
18400
18484
|
* An event that is triggered when indices are streamed from the IFC file.
|
|
18401
18485
|
* The event provides a map of indices, where the key is the entity type and the value is another map of indices.
|
|
18402
18486
|
*/
|
|
18403
|
-
C(this, "onIndicesStreamed", new
|
|
18487
|
+
C(this, "onIndicesStreamed", new Pe());
|
|
18404
18488
|
/** {@link Disposable.onDisposed} */
|
|
18405
|
-
C(this, "onDisposed", new
|
|
18489
|
+
C(this, "onDisposed", new j());
|
|
18406
18490
|
/** {@link Component.enabled} */
|
|
18407
18491
|
C(this, "enabled", !0);
|
|
18408
18492
|
/**
|
|
@@ -18512,7 +18596,7 @@ class To {
|
|
|
18512
18596
|
* The Direction vector points in the invisible direction meaning the half-space that is clipped.
|
|
18513
18597
|
* @experimental
|
|
18514
18598
|
*/
|
|
18515
|
-
C(this, "clippingPlanes", new
|
|
18599
|
+
C(this, "clippingPlanes", new we());
|
|
18516
18600
|
C(this, "camera", {
|
|
18517
18601
|
aspectRatio: 0,
|
|
18518
18602
|
fov: 0,
|
|
@@ -18522,11 +18606,11 @@ class To {
|
|
|
18522
18606
|
/**
|
|
18523
18607
|
* A list of components GUIDs to hide when defaultVisibility = true or to show when defaultVisibility = false
|
|
18524
18608
|
*/
|
|
18525
|
-
C(this, "exceptionComponents", new
|
|
18609
|
+
C(this, "exceptionComponents", new we());
|
|
18526
18610
|
/**
|
|
18527
18611
|
* A list of components GUIDs that should be selected (highlighted) when displaying a viewpoint.
|
|
18528
18612
|
*/
|
|
18529
|
-
C(this, "selectionComponents", new
|
|
18613
|
+
C(this, "selectionComponents", new we());
|
|
18530
18614
|
/**
|
|
18531
18615
|
* A map of colors and components GUIDs that should be colorized when displaying a viewpoint.
|
|
18532
18616
|
* For this to work, call viewpoint.colorize()
|
|
@@ -18722,7 +18806,7 @@ class To {
|
|
|
18722
18806
|
};
|
|
18723
18807
|
const r = this.selection;
|
|
18724
18808
|
if (Object.keys(r).length === 0) {
|
|
18725
|
-
const h = this._components.get(
|
|
18809
|
+
const h = this._components.get(ci).get(this.world).castRayFromVector(e, this.direction);
|
|
18726
18810
|
h && (n = h.point);
|
|
18727
18811
|
} else {
|
|
18728
18812
|
const a = this._components.get(wn);
|
|
@@ -18789,7 +18873,7 @@ class To {
|
|
|
18789
18873
|
* The color is provided as a hexadecimal string, prefixed with a '#'.
|
|
18790
18874
|
*/
|
|
18791
18875
|
colorize() {
|
|
18792
|
-
const i = this._components.get(ie), t = this._components.get(Tt), e = this._components.get(
|
|
18876
|
+
const i = this._components.get(ie), t = this._components.get(Tt), e = this._components.get(Bi);
|
|
18793
18877
|
for (const [s, n] of this.componentColors) {
|
|
18794
18878
|
const r = t.guidToFragmentIdMap(n), o = new D.Color(`#${s}`);
|
|
18795
18879
|
e.setColor(
|
|
@@ -18805,7 +18889,7 @@ class To {
|
|
|
18805
18889
|
* corresponding to each color, and then uses the `Classifier` to reset the color of those fragments.
|
|
18806
18890
|
*/
|
|
18807
18891
|
resetColors() {
|
|
18808
|
-
const i = this._components.get(Tt), t = this._components.get(
|
|
18892
|
+
const i = this._components.get(Tt), t = this._components.get(Bi);
|
|
18809
18893
|
for (const [e, s] of this.componentColors) {
|
|
18810
18894
|
const n = i.guidToFragmentIdMap(s);
|
|
18811
18895
|
t.resetColor(n);
|
|
@@ -18901,7 +18985,7 @@ class To {
|
|
|
18901
18985
|
</VisualizationInfo>`;
|
|
18902
18986
|
}
|
|
18903
18987
|
}
|
|
18904
|
-
class ih extends
|
|
18988
|
+
class ih extends Ge {
|
|
18905
18989
|
constructor() {
|
|
18906
18990
|
super(...arguments);
|
|
18907
18991
|
C(this, "_config", {
|
|
@@ -18918,7 +19002,7 @@ class ih extends Ye {
|
|
|
18918
19002
|
this._config.overwriteColors.value = t;
|
|
18919
19003
|
}
|
|
18920
19004
|
}
|
|
18921
|
-
const
|
|
19005
|
+
const Ui = class Ui extends At {
|
|
18922
19006
|
constructor(t) {
|
|
18923
19007
|
super(t);
|
|
18924
19008
|
C(this, "enabled", !0);
|
|
@@ -18928,16 +19012,16 @@ const vi = class vi extends At {
|
|
|
18928
19012
|
*/
|
|
18929
19013
|
C(this, "list", new re());
|
|
18930
19014
|
C(this, "isSetup", !1);
|
|
18931
|
-
C(this, "onSetup", new
|
|
19015
|
+
C(this, "onSetup", new j());
|
|
18932
19016
|
C(this, "config", new ih(
|
|
18933
19017
|
this,
|
|
18934
19018
|
this.components,
|
|
18935
19019
|
"Viewpoints",
|
|
18936
|
-
|
|
19020
|
+
Ui.uuid
|
|
18937
19021
|
));
|
|
18938
19022
|
/** {@link Disposable.onDisposed} */
|
|
18939
|
-
C(this, "onDisposed", new
|
|
18940
|
-
t.add(
|
|
19023
|
+
C(this, "onDisposed", new j());
|
|
19024
|
+
t.add(Ui.uuid, this);
|
|
18941
19025
|
}
|
|
18942
19026
|
/**
|
|
18943
19027
|
* Creates a new Viewpoint instance and adds it to the list.
|
|
@@ -18964,9 +19048,9 @@ const vi = class vi extends At {
|
|
|
18964
19048
|
this.list.dispose(), this.onDisposed.trigger(), this.onDisposed.reset();
|
|
18965
19049
|
}
|
|
18966
19050
|
};
|
|
18967
|
-
C(
|
|
18968
|
-
let ie =
|
|
18969
|
-
class sh extends
|
|
19051
|
+
C(Ui, "uuid", "ee867824-a796-408d-8aa0-4e5962a83c66");
|
|
19052
|
+
let ie = Ui;
|
|
19053
|
+
class sh extends Ge {
|
|
18970
19054
|
constructor() {
|
|
18971
19055
|
super(...arguments);
|
|
18972
19056
|
C(this, "_config", {
|
|
@@ -19110,15 +19194,15 @@ class sh extends Ye {
|
|
|
19110
19194
|
class nh {
|
|
19111
19195
|
constructor(i, t) {
|
|
19112
19196
|
/** {@link Disposable.onDisposed} */
|
|
19113
|
-
C(this, "onDisposed", new
|
|
19197
|
+
C(this, "onDisposed", new j());
|
|
19114
19198
|
/** {@link Updateable.onAfterUpdate} */
|
|
19115
|
-
C(this, "onAfterUpdate", new
|
|
19199
|
+
C(this, "onAfterUpdate", new j());
|
|
19116
19200
|
/** {@link Updateable.onBeforeUpdate} */
|
|
19117
|
-
C(this, "onBeforeUpdate", new
|
|
19201
|
+
C(this, "onBeforeUpdate", new j());
|
|
19118
19202
|
/** {@link Resizeable.onResize} */
|
|
19119
|
-
C(this, "onResize", new
|
|
19203
|
+
C(this, "onResize", new j());
|
|
19120
19204
|
/** {@link Configurable.onSetup} */
|
|
19121
|
-
C(this, "onSetup", new
|
|
19205
|
+
C(this, "onSetup", new j());
|
|
19122
19206
|
/**
|
|
19123
19207
|
* The front offset of the minimap.
|
|
19124
19208
|
* It determines how much the minimap's view is offset from the camera's view.
|
|
@@ -19272,13 +19356,13 @@ const Bs = class Bs extends At {
|
|
|
19272
19356
|
constructor(t) {
|
|
19273
19357
|
super(t);
|
|
19274
19358
|
/** {@link Updateable.onAfterUpdate} */
|
|
19275
|
-
C(this, "onAfterUpdate", new
|
|
19359
|
+
C(this, "onAfterUpdate", new j());
|
|
19276
19360
|
/** {@link Updateable.onBeforeUpdate} */
|
|
19277
|
-
C(this, "onBeforeUpdate", new
|
|
19361
|
+
C(this, "onBeforeUpdate", new j());
|
|
19278
19362
|
/** {@link Disposable.onDisposed} */
|
|
19279
|
-
C(this, "onDisposed", new
|
|
19363
|
+
C(this, "onDisposed", new j());
|
|
19280
19364
|
/** {@link Configurable.onSetup} */
|
|
19281
|
-
C(this, "onSetup", new
|
|
19365
|
+
C(this, "onSetup", new j());
|
|
19282
19366
|
/** {@link Component.enabled} */
|
|
19283
19367
|
C(this, "enabled", !0);
|
|
19284
19368
|
/**
|
|
@@ -19412,11 +19496,11 @@ const Vs = class Vs extends At {
|
|
|
19412
19496
|
N.add(S);
|
|
19413
19497
|
}
|
|
19414
19498
|
for (const S of p) {
|
|
19415
|
-
const N = f.get(S), { edges: y, indices: M } = N, L = f.get(T), { edges: b, indices:
|
|
19499
|
+
const N = f.get(S), { edges: y, indices: M } = N, L = f.get(T), { edges: b, indices: Y } = L;
|
|
19416
19500
|
for (const O of y)
|
|
19417
19501
|
b.add(O), h.set(O, T);
|
|
19418
19502
|
for (const O of M)
|
|
19419
|
-
|
|
19503
|
+
Y.add(O);
|
|
19420
19504
|
f.delete(S);
|
|
19421
19505
|
}
|
|
19422
19506
|
}
|
|
@@ -20313,8 +20397,8 @@ class lh {
|
|
|
20313
20397
|
C(this, "description");
|
|
20314
20398
|
C(this, "instructions");
|
|
20315
20399
|
C(this, "requirementsDescription");
|
|
20316
|
-
C(this, "applicability", new
|
|
20317
|
-
C(this, "requirements", new
|
|
20400
|
+
C(this, "applicability", new we());
|
|
20401
|
+
C(this, "requirements", new we());
|
|
20318
20402
|
C(this, "components");
|
|
20319
20403
|
this.components = i, this.name = t;
|
|
20320
20404
|
for (const s of e)
|
|
@@ -20415,12 +20499,12 @@ const Re = (c) => {
|
|
|
20415
20499
|
(l == null ? void 0 : l.type) === "enumeration" && Array.isArray(l.parameter) && (l.parameter = l.parameter.map(String)), a.value = l, a.dataType = e.dataType, a.uri = e.uri, t.push(a);
|
|
20416
20500
|
}
|
|
20417
20501
|
return t;
|
|
20418
|
-
},
|
|
20502
|
+
}, ri = class ri extends At {
|
|
20419
20503
|
constructor(t) {
|
|
20420
20504
|
super(t);
|
|
20421
20505
|
C(this, "enabled", !0);
|
|
20422
20506
|
C(this, "list", new re());
|
|
20423
|
-
t.add(
|
|
20507
|
+
t.add(ri.uuid, this);
|
|
20424
20508
|
}
|
|
20425
20509
|
/**
|
|
20426
20510
|
* Retrieves a FragmentIdMap based on the given IDSCheckResult array.
|
|
@@ -20463,7 +20547,7 @@ const Re = (c) => {
|
|
|
20463
20547
|
* @returns An array of IDSSpecification instances created from the parsed data.
|
|
20464
20548
|
*/
|
|
20465
20549
|
load(t) {
|
|
20466
|
-
const e = [], s =
|
|
20550
|
+
const e = [], s = ri.xmlParser.parse(t).ids, { specifications: n } = s;
|
|
20467
20551
|
if (n && n.specification) {
|
|
20468
20552
|
const r = Array.isArray(n.specification) ? n.specification : [n.specification];
|
|
20469
20553
|
for (const o of r) {
|
|
@@ -20546,7 +20630,7 @@ const Re = (c) => {
|
|
|
20546
20630
|
</ids:ids>`;
|
|
20547
20631
|
}
|
|
20548
20632
|
};
|
|
20549
|
-
C(
|
|
20633
|
+
C(ri, "uuid", "9f0b9f78-9b2e-481a-b766-2fbfd01f342c"), C(ri, "xmlParser", new Co.XMLParser({
|
|
20550
20634
|
allowBooleanAttributes: !0,
|
|
20551
20635
|
attributeNamePrefix: "",
|
|
20552
20636
|
ignoreAttributes: !1,
|
|
@@ -20559,9 +20643,9 @@ C(ni, "uuid", "9f0b9f78-9b2e-481a-b766-2fbfd01f342c"), C(ni, "xmlParser", new Co
|
|
|
20559
20643
|
removeNSPrefix: !0,
|
|
20560
20644
|
trimValues: !0
|
|
20561
20645
|
}));
|
|
20562
|
-
let $r =
|
|
20646
|
+
let $r = ri;
|
|
20563
20647
|
export {
|
|
20564
|
-
|
|
20648
|
+
Pe as AsyncEvent,
|
|
20565
20649
|
Mt as BCFTopics,
|
|
20566
20650
|
Kl as BCFTopicsConfigManager,
|
|
20567
20651
|
xn as Base,
|
|
@@ -20570,20 +20654,21 @@ export {
|
|
|
20570
20654
|
Ga as BaseScene,
|
|
20571
20655
|
Bn as BaseWorldItem,
|
|
20572
20656
|
wn as BoundingBoxer,
|
|
20573
|
-
|
|
20657
|
+
Bi as Classifier,
|
|
20574
20658
|
Sn as Clipper,
|
|
20575
20659
|
Pn as Comment,
|
|
20576
20660
|
At as Component,
|
|
20577
20661
|
ph as ComponentWithUI,
|
|
20578
20662
|
Cs as Components,
|
|
20579
|
-
|
|
20580
|
-
|
|
20663
|
+
Ye as ConfigManager,
|
|
20664
|
+
Ge as Configurator,
|
|
20581
20665
|
lc as CullerRenderer,
|
|
20582
20666
|
Fn as Cullers,
|
|
20583
20667
|
re as DataMap,
|
|
20584
|
-
|
|
20585
|
-
|
|
20586
|
-
|
|
20668
|
+
we as DataSet,
|
|
20669
|
+
De as Disposer,
|
|
20670
|
+
j as Event,
|
|
20671
|
+
Ch as EventManager,
|
|
20587
20672
|
zr as Exploder,
|
|
20588
20673
|
Oc as FirstPersonMode,
|
|
20589
20674
|
Tt as FragmentsManager,
|
|
@@ -20598,7 +20683,7 @@ export {
|
|
|
20598
20683
|
lh as IDSSpecification,
|
|
20599
20684
|
$r as IDSSpecifications,
|
|
20600
20685
|
gs as IfcBasicQuery,
|
|
20601
|
-
|
|
20686
|
+
Ah as IfcCategories,
|
|
20602
20687
|
ms as IfcCategoryMap,
|
|
20603
20688
|
Pc as IfcElements,
|
|
20604
20689
|
Gr as IfcFinder,
|
|
@@ -20609,7 +20694,7 @@ export {
|
|
|
20609
20694
|
Nn as IfcLoader,
|
|
20610
20695
|
yn as IfcPropertiesManager,
|
|
20611
20696
|
eh as IfcPropertiesTiler,
|
|
20612
|
-
|
|
20697
|
+
oi as IfcPropertiesUtils,
|
|
20613
20698
|
As as IfcPropertyQuery,
|
|
20614
20699
|
kt as IfcRelationsIndexer,
|
|
20615
20700
|
Jl as IfcStreamingSettings,
|
|
@@ -20625,20 +20710,20 @@ export {
|
|
|
20625
20710
|
yc as PlanMode,
|
|
20626
20711
|
Lc as ProjectionManager,
|
|
20627
20712
|
th as PropertiesStreamingSettings,
|
|
20628
|
-
|
|
20629
|
-
|
|
20630
|
-
|
|
20713
|
+
ci as Raycasters,
|
|
20714
|
+
gh as ShadowedScene,
|
|
20715
|
+
xi as SimpleCamera,
|
|
20631
20716
|
Ec as SimpleGrid,
|
|
20632
20717
|
dc as SimpleGridConfigManager,
|
|
20633
20718
|
Vn as SimplePlane,
|
|
20634
20719
|
Ic as SimpleRaycaster,
|
|
20635
|
-
|
|
20720
|
+
Rh as SimpleRenderer,
|
|
20636
20721
|
ec as SimpleScene,
|
|
20637
20722
|
tc as SimpleSceneConfigManager,
|
|
20638
20723
|
Qa as SimpleWorld,
|
|
20639
20724
|
Rs as Topic,
|
|
20640
20725
|
oe as UUID,
|
|
20641
|
-
|
|
20726
|
+
mh as VertexPicker,
|
|
20642
20727
|
To as Viewpoint,
|
|
20643
20728
|
ie as Viewpoints,
|
|
20644
20729
|
Ts as Worlds,
|
|
@@ -20646,7 +20731,7 @@ export {
|
|
|
20646
20731
|
wc as ifcCategoryCase,
|
|
20647
20732
|
Dc as ifcRelAttrsPosition,
|
|
20648
20733
|
bc as ifcRelClassNames,
|
|
20649
|
-
|
|
20734
|
+
Th as isPointInFrontOfPlane,
|
|
20650
20735
|
qa as obbFromPoints,
|
|
20651
20736
|
so as readPixelsAsync,
|
|
20652
20737
|
Dr as relToAttributesMap
|