ow-eengine-power 2.1.8 → 2.2.0
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/OW_EEngine_Power.js +401 -392
- package/dist/OW_EEngine_Power.umd.cjs +76 -76
- package/package.json +1 -1
package/dist/OW_EEngine_Power.js
CHANGED
|
@@ -107,7 +107,7 @@ function g(e, t) {
|
|
|
107
107
|
return e ?? t;
|
|
108
108
|
}
|
|
109
109
|
g.EMPTY_OBJECT = Object.freeze({});
|
|
110
|
-
var
|
|
110
|
+
var Ns = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
111
111
|
function Oa(e) {
|
|
112
112
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
113
113
|
}
|
|
@@ -597,7 +597,7 @@ u.midpoint = function(e, t, n) {
|
|
|
597
597
|
u.fromDegrees = function(e, t, n, i, s) {
|
|
598
598
|
return _.typeOf.number("longitude", e), _.typeOf.number("latitude", t), e = S.toRadians(e), t = S.toRadians(t), u.fromRadians(e, t, n, i, s);
|
|
599
599
|
};
|
|
600
|
-
let wn = new u(),
|
|
600
|
+
let wn = new u(), Cs = new u();
|
|
601
601
|
u._ellipsoidRadiiSquared = new u(
|
|
602
602
|
6378137 * 6378137,
|
|
603
603
|
6378137 * 6378137,
|
|
@@ -606,9 +606,9 @@ u._ellipsoidRadiiSquared = new u(
|
|
|
606
606
|
u.fromRadians = function(e, t, n, i, s) {
|
|
607
607
|
_.typeOf.number("longitude", e), _.typeOf.number("latitude", t), n = g(n, 0);
|
|
608
608
|
const a = l(i) ? i.radiiSquared : u._ellipsoidRadiiSquared, r = Math.cos(t);
|
|
609
|
-
wn.x = r * Math.cos(e), wn.y = r * Math.sin(e), wn.z = Math.sin(t), wn = u.normalize(wn, wn), u.multiplyComponents(a, wn,
|
|
610
|
-
const f = Math.sqrt(u.dot(wn,
|
|
611
|
-
return
|
|
609
|
+
wn.x = r * Math.cos(e), wn.y = r * Math.sin(e), wn.z = Math.sin(t), wn = u.normalize(wn, wn), u.multiplyComponents(a, wn, Cs);
|
|
610
|
+
const f = Math.sqrt(u.dot(wn, Cs));
|
|
611
|
+
return Cs = u.divideByScalar(Cs, f, Cs), wn = u.multiplyByScalar(wn, n, wn), l(s) || (s = new u()), u.add(Cs, wn, s);
|
|
612
612
|
};
|
|
613
613
|
u.fromDegreesArray = function(e, t, n) {
|
|
614
614
|
if (_.defined("coordinates", e), e.length < 2 || e.length % 2 !== 0)
|
|
@@ -1437,18 +1437,18 @@ V.fromUniformScale = function(e, t) {
|
|
|
1437
1437
|
V.fromRotation = function(e, t) {
|
|
1438
1438
|
return _.typeOf.object("rotation", e), l(t) || (t = new V()), t[0] = e[0], t[1] = e[1], t[2] = e[2], t[3] = 0, t[4] = e[3], t[5] = e[4], t[6] = e[5], t[7] = 0, t[8] = e[6], t[9] = e[7], t[10] = e[8], t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0, t[15] = 1, t;
|
|
1439
1439
|
};
|
|
1440
|
-
const
|
|
1440
|
+
const ws = new u(), As = new u(), to = new u();
|
|
1441
1441
|
V.fromCamera = function(e, t) {
|
|
1442
1442
|
_.typeOf.object("camera", e);
|
|
1443
1443
|
const n = e.position, i = e.direction, s = e.up;
|
|
1444
|
-
_.typeOf.object("camera.position", n), _.typeOf.object("camera.direction", i), _.typeOf.object("camera.up", s), u.normalize(i,
|
|
1445
|
-
u.cross(
|
|
1446
|
-
|
|
1444
|
+
_.typeOf.object("camera.position", n), _.typeOf.object("camera.direction", i), _.typeOf.object("camera.up", s), u.normalize(i, ws), u.normalize(
|
|
1445
|
+
u.cross(ws, s, As),
|
|
1446
|
+
As
|
|
1447
1447
|
), u.normalize(
|
|
1448
|
-
u.cross(
|
|
1448
|
+
u.cross(As, ws, to),
|
|
1449
1449
|
to
|
|
1450
1450
|
);
|
|
1451
|
-
const a =
|
|
1451
|
+
const a = As.x, r = As.y, f = As.z, c = ws.x, h = ws.y, d = ws.z, p = to.x, m = to.y, y = to.z, T = n.x, w = n.y, A = n.z, E = a * -T + r * -w + f * -A, b = p * -T + m * -w + y * -A, I = c * T + h * w + d * A;
|
|
1452
1452
|
return l(t) ? (t[0] = a, t[1] = p, t[2] = -c, t[3] = 0, t[4] = r, t[5] = m, t[6] = -h, t[7] = 0, t[8] = f, t[9] = y, t[10] = -d, t[11] = 0, t[12] = E, t[13] = b, t[14] = I, t[15] = 1, t) : new V(
|
|
1453
1453
|
a,
|
|
1454
1454
|
r,
|
|
@@ -4431,7 +4431,7 @@ cn.exitFullscreen = function() {
|
|
|
4431
4431
|
cn._names = pt;
|
|
4432
4432
|
let Zt;
|
|
4433
4433
|
typeof navigator < "u" ? Zt = navigator : Zt = {};
|
|
4434
|
-
function
|
|
4434
|
+
function fs(e) {
|
|
4435
4435
|
const t = e.split(".");
|
|
4436
4436
|
for (let n = 0, i = t.length; n < i; ++n)
|
|
4437
4437
|
t[n] = parseInt(t[n], 10);
|
|
@@ -4441,7 +4441,7 @@ let gr, md;
|
|
|
4441
4441
|
function Ph() {
|
|
4442
4442
|
if (!l(gr) && (gr = !1, !va())) {
|
|
4443
4443
|
const e = / Chrome\/([\.0-9]+)/.exec(Zt.userAgent);
|
|
4444
|
-
e !== null && (gr = !0, md =
|
|
4444
|
+
e !== null && (gr = !0, md = fs(e[1]));
|
|
4445
4445
|
}
|
|
4446
4446
|
return gr;
|
|
4447
4447
|
}
|
|
@@ -4452,7 +4452,7 @@ let yr, _d;
|
|
|
4452
4452
|
function gd() {
|
|
4453
4453
|
if (!l(yr) && (yr = !1, !Ph() && !va() && / Safari\/[\.0-9]+/.test(Zt.userAgent))) {
|
|
4454
4454
|
const e = / Version\/([\.0-9]+)/.exec(Zt.userAgent);
|
|
4455
|
-
e !== null && (yr = !0, _d =
|
|
4455
|
+
e !== null && (yr = !0, _d = fs(e[1]));
|
|
4456
4456
|
}
|
|
4457
4457
|
return yr;
|
|
4458
4458
|
}
|
|
@@ -4464,7 +4464,7 @@ function yd() {
|
|
|
4464
4464
|
if (!l(Tr)) {
|
|
4465
4465
|
Tr = !1;
|
|
4466
4466
|
const e = / AppleWebKit\/([\.0-9]+)(\+?)/.exec(Zt.userAgent);
|
|
4467
|
-
e !== null && (Tr = !0, eh =
|
|
4467
|
+
e !== null && (Tr = !0, eh = fs(e[1]), eh.isNightly = !!e[2]);
|
|
4468
4468
|
}
|
|
4469
4469
|
return Tr;
|
|
4470
4470
|
}
|
|
@@ -4476,9 +4476,9 @@ function Td() {
|
|
|
4476
4476
|
if (!l(no)) {
|
|
4477
4477
|
no = !1;
|
|
4478
4478
|
let e;
|
|
4479
|
-
Zt.appName === "Microsoft Internet Explorer" ? (e = /MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(Zt.userAgent), e !== null && (no = !0, th =
|
|
4479
|
+
Zt.appName === "Microsoft Internet Explorer" ? (e = /MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(Zt.userAgent), e !== null && (no = !0, th = fs(e[1]))) : Zt.appName === "Netscape" && (e = /Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(
|
|
4480
4480
|
Zt.userAgent
|
|
4481
|
-
), e !== null && (no = !0, th =
|
|
4481
|
+
), e !== null && (no = !0, th = fs(e[1])));
|
|
4482
4482
|
}
|
|
4483
4483
|
return no;
|
|
4484
4484
|
}
|
|
@@ -4490,7 +4490,7 @@ function va() {
|
|
|
4490
4490
|
if (!l(Cr)) {
|
|
4491
4491
|
Cr = !1;
|
|
4492
4492
|
const e = / Edg\/([\.0-9]+)/.exec(Zt.userAgent);
|
|
4493
|
-
e !== null && (Cr = !0, Cd =
|
|
4493
|
+
e !== null && (Cr = !0, Cd = fs(e[1]));
|
|
4494
4494
|
}
|
|
4495
4495
|
return Cr;
|
|
4496
4496
|
}
|
|
@@ -4502,7 +4502,7 @@ function Wa() {
|
|
|
4502
4502
|
if (!l(wr)) {
|
|
4503
4503
|
wr = !1;
|
|
4504
4504
|
const e = /Firefox\/([\.0-9]+)/.exec(Zt.userAgent);
|
|
4505
|
-
e !== null && (wr = !0, Bh =
|
|
4505
|
+
e !== null && (wr = !0, Bh = fs(e[1]));
|
|
4506
4506
|
}
|
|
4507
4507
|
return wr;
|
|
4508
4508
|
}
|
|
@@ -4563,8 +4563,8 @@ Object.defineProperties(jt, {
|
|
|
4563
4563
|
}
|
|
4564
4564
|
}
|
|
4565
4565
|
});
|
|
4566
|
-
const
|
|
4567
|
-
typeof ArrayBuffer < "u" && (
|
|
4566
|
+
const Ps = [];
|
|
4567
|
+
typeof ArrayBuffer < "u" && (Ps.push(
|
|
4568
4568
|
Int8Array,
|
|
4569
4569
|
Uint8Array,
|
|
4570
4570
|
Int16Array,
|
|
@@ -4573,7 +4573,7 @@ typeof ArrayBuffer < "u" && (Ws.push(
|
|
|
4573
4573
|
Uint32Array,
|
|
4574
4574
|
Float32Array,
|
|
4575
4575
|
Float64Array
|
|
4576
|
-
), typeof Uint8ClampedArray < "u" &&
|
|
4576
|
+
), typeof Uint8ClampedArray < "u" && Ps.push(Uint8ClampedArray), typeof Uint8ClampedArray < "u" && Ps.push(Uint8ClampedArray), typeof BigInt64Array < "u" && Ps.push(BigInt64Array), typeof BigUint64Array < "u" && Ps.push(BigUint64Array));
|
|
4577
4577
|
const At = {
|
|
4578
4578
|
isChrome: Ph,
|
|
4579
4579
|
chromeVersion: m_,
|
|
@@ -4594,7 +4594,7 @@ const At = {
|
|
|
4594
4594
|
supportsImageRenderingPixelated: Ad,
|
|
4595
4595
|
supportsWebP: jt,
|
|
4596
4596
|
imageRenderingValue: b_,
|
|
4597
|
-
typedArrayTypes:
|
|
4597
|
+
typedArrayTypes: Ps
|
|
4598
4598
|
};
|
|
4599
4599
|
At.supportsBasis = function(e) {
|
|
4600
4600
|
return At.supportsWebAssembly() && e.context.supportsBasis;
|
|
@@ -5752,13 +5752,13 @@ const H_ = {
|
|
|
5752
5752
|
function Nh(e, t) {
|
|
5753
5753
|
return ee.compare(e.julianDate, t.julianDate);
|
|
5754
5754
|
}
|
|
5755
|
-
const
|
|
5755
|
+
const Us = new Xe();
|
|
5756
5756
|
function Pa(e) {
|
|
5757
|
-
|
|
5757
|
+
Us.julianDate = e;
|
|
5758
5758
|
const t = ee.leapSeconds;
|
|
5759
5759
|
let n = nr(
|
|
5760
5760
|
t,
|
|
5761
|
-
|
|
5761
|
+
Us,
|
|
5762
5762
|
Nh
|
|
5763
5763
|
);
|
|
5764
5764
|
n < 0 && (n = ~n), n >= t.length && (n = t.length - 1);
|
|
@@ -5769,11 +5769,11 @@ function Pa(e) {
|
|
|
5769
5769
|
) > i && (n--, i = t[n].offset), ee.addSeconds(e, i, e);
|
|
5770
5770
|
}
|
|
5771
5771
|
function Lf(e, t) {
|
|
5772
|
-
|
|
5772
|
+
Us.julianDate = e;
|
|
5773
5773
|
const n = ee.leapSeconds;
|
|
5774
5774
|
let i = nr(
|
|
5775
5775
|
n,
|
|
5776
|
-
|
|
5776
|
+
Us,
|
|
5777
5777
|
Nh
|
|
5778
5778
|
);
|
|
5779
5779
|
if (i < 0 && (i = ~i), i === 0)
|
|
@@ -6045,11 +6045,11 @@ ee.daysDifference = function(e, t) {
|
|
|
6045
6045
|
return n + i;
|
|
6046
6046
|
};
|
|
6047
6047
|
ee.computeTaiMinusUtc = function(e) {
|
|
6048
|
-
|
|
6048
|
+
Us.julianDate = e;
|
|
6049
6049
|
const t = ee.leapSeconds;
|
|
6050
6050
|
let n = nr(
|
|
6051
6051
|
t,
|
|
6052
|
-
|
|
6052
|
+
Us,
|
|
6053
6053
|
Nh
|
|
6054
6054
|
);
|
|
6055
6055
|
return n < 0 && (n = ~n, --n, n < 0 && (n = 0)), t[n].offset;
|
|
@@ -6186,7 +6186,7 @@ var zf;
|
|
|
6186
6186
|
function t1() {
|
|
6187
6187
|
return zf || (zf = 1, function(e, t) {
|
|
6188
6188
|
(function(n) {
|
|
6189
|
-
var i = t && !t.nodeType && t, s = e && !e.nodeType && e, a = typeof
|
|
6189
|
+
var i = t && !t.nodeType && t, s = e && !e.nodeType && e, a = typeof Ns == "object" && Ns;
|
|
6190
6190
|
(a.global === a || a.window === a || a.self === a) && (n = a);
|
|
6191
6191
|
var r, f = 2147483647, c = 36, h = 1, d = 26, p = 38, m = 700, y = 72, T = 128, w = "-", A = /^xn--/, E = /[^\x20-\x7E]/, b = /[\x2E\u3002\uFF0E\uFF61]/g, I = {
|
|
6192
6192
|
overflow: "Overflow: input needs wider integers to process",
|
|
@@ -6300,7 +6300,7 @@ function t1() {
|
|
|
6300
6300
|
r.hasOwnProperty(F) && (i[F] = r[F]);
|
|
6301
6301
|
else
|
|
6302
6302
|
n.punycode = r;
|
|
6303
|
-
})(
|
|
6303
|
+
})(Ns);
|
|
6304
6304
|
}(Co, Co.exports)), Co.exports;
|
|
6305
6305
|
}
|
|
6306
6306
|
var Xa = { exports: {} };
|
|
@@ -6322,7 +6322,7 @@ function n1() {
|
|
|
6322
6322
|
return Nf || (Nf = 1, function(e) {
|
|
6323
6323
|
(function(t, n) {
|
|
6324
6324
|
e.exports ? e.exports = n() : t.IPv6 = n(t);
|
|
6325
|
-
})(
|
|
6325
|
+
})(Ns, function(t) {
|
|
6326
6326
|
var n = t && t.IPv6;
|
|
6327
6327
|
function i(a) {
|
|
6328
6328
|
var r = a.toLowerCase(), f = r.split(":"), c = f.length, h = 8;
|
|
@@ -6377,7 +6377,7 @@ function i1() {
|
|
|
6377
6377
|
return Ff || (Ff = 1, function(e) {
|
|
6378
6378
|
(function(t, n) {
|
|
6379
6379
|
e.exports ? e.exports = n() : t.SecondLevelDomains = n(t);
|
|
6380
|
-
})(
|
|
6380
|
+
})(Ns, function(t) {
|
|
6381
6381
|
var n = t && t.SecondLevelDomains, i = {
|
|
6382
6382
|
// list of known Second Level Domains
|
|
6383
6383
|
// converted list of SLDs from https://github.com/gavingmiller/second-level-domains
|
|
@@ -6585,7 +6585,7 @@ function i1() {
|
|
|
6585
6585
|
(function(e) {
|
|
6586
6586
|
(function(t, n) {
|
|
6587
6587
|
e.exports ? e.exports = n(t1(), n1(), i1()) : t.URI = n(t.punycode, t.IPv6, t.SecondLevelDomains, t);
|
|
6588
|
-
})(
|
|
6588
|
+
})(Ns, function(t, n, i, s) {
|
|
6589
6589
|
var a = s && s.URI;
|
|
6590
6590
|
function r(o, x) {
|
|
6591
6591
|
var P = arguments.length >= 1, L = arguments.length >= 2;
|
|
@@ -7784,10 +7784,10 @@ Fe.prototype.raiseEvent = function() {
|
|
|
7784
7784
|
}
|
|
7785
7785
|
this._insideRaiseEvent = !1;
|
|
7786
7786
|
};
|
|
7787
|
-
function
|
|
7787
|
+
function ds(e) {
|
|
7788
7788
|
_.typeOf.object("options", e), _.defined("options.comparator", e.comparator), this._comparator = e.comparator, this._array = [], this._length = 0, this._maximumLength = void 0;
|
|
7789
7789
|
}
|
|
7790
|
-
Object.defineProperties(
|
|
7790
|
+
Object.defineProperties(ds.prototype, {
|
|
7791
7791
|
/**
|
|
7792
7792
|
* Gets the length of the heap.
|
|
7793
7793
|
*
|
|
@@ -7854,10 +7854,10 @@ function Uh(e, t, n) {
|
|
|
7854
7854
|
const i = e[t];
|
|
7855
7855
|
e[t] = e[n], e[n] = i;
|
|
7856
7856
|
}
|
|
7857
|
-
|
|
7857
|
+
ds.prototype.reserve = function(e) {
|
|
7858
7858
|
e = g(e, this._length), this._array.length = e;
|
|
7859
7859
|
};
|
|
7860
|
-
|
|
7860
|
+
ds.prototype.heapify = function(e) {
|
|
7861
7861
|
e = g(e, 0);
|
|
7862
7862
|
const t = this._length, n = this._comparator, i = this._array;
|
|
7863
7863
|
let s = -1, a = !0;
|
|
@@ -7866,12 +7866,12 @@ us.prototype.heapify = function(e) {
|
|
|
7866
7866
|
f < t && n(i[f], i[e]) < 0 ? s = f : s = e, r < t && n(i[r], i[s]) < 0 && (s = r), s !== e ? (Uh(i, s, e), e = s) : a = !1;
|
|
7867
7867
|
}
|
|
7868
7868
|
};
|
|
7869
|
-
|
|
7869
|
+
ds.prototype.resort = function() {
|
|
7870
7870
|
const e = this._length;
|
|
7871
7871
|
for (let t = Math.ceil(e / 2); t >= 0; --t)
|
|
7872
7872
|
this.heapify(t);
|
|
7873
7873
|
};
|
|
7874
|
-
|
|
7874
|
+
ds.prototype.insert = function(e) {
|
|
7875
7875
|
_.defined("element", e);
|
|
7876
7876
|
const t = this._array, n = this._comparator, i = this._maximumLength;
|
|
7877
7877
|
let s = this._length++;
|
|
@@ -7885,7 +7885,7 @@ us.prototype.insert = function(e) {
|
|
|
7885
7885
|
let a;
|
|
7886
7886
|
return l(i) && this._length > i && (a = t[i], this._length = i), a;
|
|
7887
7887
|
};
|
|
7888
|
-
|
|
7888
|
+
ds.prototype.pop = function(e) {
|
|
7889
7889
|
if (e = g(e, 0), this._length === 0)
|
|
7890
7890
|
return;
|
|
7891
7891
|
_.typeOf.number.lessThan("index", e, this._length);
|
|
@@ -7904,12 +7904,12 @@ const ke = {
|
|
|
7904
7904
|
numberOfActiveRequestsEver: 0,
|
|
7905
7905
|
lastNumberOfActiveRequests: 0
|
|
7906
7906
|
};
|
|
7907
|
-
let
|
|
7908
|
-
const $t = new
|
|
7907
|
+
let Fs = 20;
|
|
7908
|
+
const $t = new ds({
|
|
7909
7909
|
comparator: y1
|
|
7910
7910
|
});
|
|
7911
|
-
$t.maximumLength =
|
|
7912
|
-
$t.reserve(
|
|
7911
|
+
$t.maximumLength = Fs;
|
|
7912
|
+
$t.reserve(Fs);
|
|
7913
7913
|
const $n = [];
|
|
7914
7914
|
let xi = {};
|
|
7915
7915
|
const T1 = typeof document < "u" ? new bi(document.location.href) : new bi(), Ba = new Fe();
|
|
@@ -7947,15 +7947,15 @@ Object.defineProperties(tt, {
|
|
|
7947
7947
|
*/
|
|
7948
7948
|
priorityHeapLength: {
|
|
7949
7949
|
get: function() {
|
|
7950
|
-
return
|
|
7950
|
+
return Fs;
|
|
7951
7951
|
},
|
|
7952
7952
|
set: function(e) {
|
|
7953
|
-
if (e <
|
|
7953
|
+
if (e < Fs)
|
|
7954
7954
|
for (; $t.length > e; ) {
|
|
7955
7955
|
const t = $t.pop();
|
|
7956
7956
|
as(t);
|
|
7957
7957
|
}
|
|
7958
|
-
|
|
7958
|
+
Fs = e, $t.maximumLength = e, $t.reserve(e);
|
|
7959
7959
|
}
|
|
7960
7960
|
}
|
|
7961
7961
|
});
|
|
@@ -7971,7 +7971,7 @@ tt.serverHasOpenSlots = function(e, t) {
|
|
|
7971
7971
|
return xi[e] + t <= n;
|
|
7972
7972
|
};
|
|
7973
7973
|
tt.heapHasOpenSlots = function(e) {
|
|
7974
|
-
return $t.length + e <=
|
|
7974
|
+
return $t.length + e <= Fs;
|
|
7975
7975
|
};
|
|
7976
7976
|
function vd(e) {
|
|
7977
7977
|
return e.state === yt.UNISSUED && (e.state = yt.ISSUED, e.deferred = ir()), e.deferred.promise;
|
|
@@ -8087,14 +8087,14 @@ tt.numberOfActiveRequestsByServer = function(e) {
|
|
|
8087
8087
|
};
|
|
8088
8088
|
tt.requestHeap = $t;
|
|
8089
8089
|
const Zs = {};
|
|
8090
|
-
let
|
|
8090
|
+
let ks = {};
|
|
8091
8091
|
Zs.add = function(e, t) {
|
|
8092
8092
|
if (!l(e))
|
|
8093
8093
|
throw new C("host is required.");
|
|
8094
8094
|
if (!l(t) || t <= 0)
|
|
8095
8095
|
throw new C("port is required to be greater than 0.");
|
|
8096
8096
|
const n = `${e.toLowerCase()}:${t}`;
|
|
8097
|
-
l(
|
|
8097
|
+
l(ks[n]) || (ks[n] = !0);
|
|
8098
8098
|
};
|
|
8099
8099
|
Zs.remove = function(e, t) {
|
|
8100
8100
|
if (!l(e))
|
|
@@ -8102,7 +8102,7 @@ Zs.remove = function(e, t) {
|
|
|
8102
8102
|
if (!l(t) || t <= 0)
|
|
8103
8103
|
throw new C("port is required to be greater than 0.");
|
|
8104
8104
|
const n = `${e.toLowerCase()}:${t}`;
|
|
8105
|
-
l(
|
|
8105
|
+
l(ks[n]) && delete ks[n];
|
|
8106
8106
|
};
|
|
8107
8107
|
function E1(e) {
|
|
8108
8108
|
const t = new bi(e);
|
|
@@ -8125,10 +8125,10 @@ Zs.contains = function(e) {
|
|
|
8125
8125
|
if (!l(e))
|
|
8126
8126
|
throw new C("url is required.");
|
|
8127
8127
|
const t = E1(e);
|
|
8128
|
-
return !!(l(t) && l(
|
|
8128
|
+
return !!(l(t) && l(ks[t]));
|
|
8129
8129
|
};
|
|
8130
8130
|
Zs.clear = function() {
|
|
8131
|
-
|
|
8131
|
+
ks = {};
|
|
8132
8132
|
};
|
|
8133
8133
|
const Pd = function() {
|
|
8134
8134
|
try {
|
|
@@ -8153,9 +8153,9 @@ ae.createIfNeeded = function(e) {
|
|
|
8153
8153
|
url: e
|
|
8154
8154
|
});
|
|
8155
8155
|
};
|
|
8156
|
-
let
|
|
8156
|
+
let Es;
|
|
8157
8157
|
ae.supportsImageBitmapOptions = function() {
|
|
8158
|
-
return l(
|
|
8158
|
+
return l(Es) ? Es : typeof createImageBitmap != "function" ? (Es = Promise.resolve(!1), Es) : (Es = ae.fetchBlob({
|
|
8159
8159
|
url: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAABGdBTUEAAE4g3rEiDgAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADElEQVQI12Ng6GAAAAEUAIngE3ZiAAAAAElFTkSuQmCC"
|
|
8160
8160
|
}).then(function(t) {
|
|
8161
8161
|
const n = {
|
|
@@ -8175,7 +8175,7 @@ ae.supportsImageBitmapOptions = function() {
|
|
|
8175
8175
|
return n[1] !== i[1];
|
|
8176
8176
|
}).catch(function() {
|
|
8177
8177
|
return !1;
|
|
8178
|
-
}),
|
|
8178
|
+
}), Es);
|
|
8179
8179
|
};
|
|
8180
8180
|
Object.defineProperties(ae, {
|
|
8181
8181
|
/**
|
|
@@ -9422,19 +9422,19 @@ ie.exp = function(e, t) {
|
|
|
9422
9422
|
let i = 0;
|
|
9423
9423
|
return n !== 0 && (i = Math.sin(n) / n), t.x = e.x * i, t.y = e.y * i, t.z = e.z * i, t.w = Math.cos(n), t;
|
|
9424
9424
|
};
|
|
9425
|
-
const z1 = new u(), N1 = new u(), xo = new ie(),
|
|
9425
|
+
const z1 = new u(), N1 = new u(), xo = new ie(), Bs = new ie();
|
|
9426
9426
|
ie.computeInnerQuadrangle = function(e, t, n, i) {
|
|
9427
9427
|
_.typeOf.object("q0", e), _.typeOf.object("q1", t), _.typeOf.object("q2", n), _.typeOf.object("result", i);
|
|
9428
9428
|
const s = ie.conjugate(t, xo);
|
|
9429
|
-
ie.multiply(s, n,
|
|
9430
|
-
const a = ie.log(
|
|
9431
|
-
ie.multiply(s, e,
|
|
9432
|
-
const r = ie.log(
|
|
9429
|
+
ie.multiply(s, n, Bs);
|
|
9430
|
+
const a = ie.log(Bs, z1);
|
|
9431
|
+
ie.multiply(s, e, Bs);
|
|
9432
|
+
const r = ie.log(Bs, N1);
|
|
9433
9433
|
return u.add(a, r, a), u.multiplyByScalar(a, 0.25, a), u.negate(a, a), ie.exp(a, xo), ie.multiply(t, xo, i);
|
|
9434
9434
|
};
|
|
9435
9435
|
ie.squad = function(e, t, n, i, s, a) {
|
|
9436
9436
|
_.typeOf.object("q0", e), _.typeOf.object("q1", t), _.typeOf.object("s0", n), _.typeOf.object("s1", i), _.typeOf.number("t", s), _.typeOf.object("result", a);
|
|
9437
|
-
const r = ie.slerp(e, t, s, xo), f = ie.slerp(n, i, s,
|
|
9437
|
+
const r = ie.slerp(e, t, s, xo), f = ie.slerp(n, i, s, Bs);
|
|
9438
9438
|
return ie.slerp(r, f, 2 * s * (1 - s), a);
|
|
9439
9439
|
};
|
|
9440
9440
|
const F1 = new ie(), Md = 1.9011074535173003, Ca = At.supportsTypedArrays() ? new Float32Array(8) : [], wa = At.supportsTypedArrays() ? new Float32Array(8) : [], _i = At.supportsTypedArrays() ? new Float32Array(8) : [], gi = At.supportsTypedArrays() ? new Float32Array(8) : [];
|
|
@@ -9460,7 +9460,7 @@ ie.fastSlerp = function(e, t, n, i) {
|
|
|
9460
9460
|
};
|
|
9461
9461
|
ie.fastSquad = function(e, t, n, i, s, a) {
|
|
9462
9462
|
_.typeOf.object("q0", e), _.typeOf.object("q1", t), _.typeOf.object("s0", n), _.typeOf.object("s1", i), _.typeOf.number("t", s), _.typeOf.object("result", a);
|
|
9463
|
-
const r = ie.fastSlerp(e, t, s, xo), f = ie.fastSlerp(n, i, s,
|
|
9463
|
+
const r = ie.fastSlerp(e, t, s, xo), f = ie.fastSlerp(n, i, s, Bs);
|
|
9464
9464
|
return ie.fastSlerp(r, f, 2 * s * (1 - s), a);
|
|
9465
9465
|
};
|
|
9466
9466
|
ie.equals = function(e, t) {
|
|
@@ -9520,7 +9520,7 @@ const we = {}, tc = {
|
|
|
9520
9520
|
north: "up",
|
|
9521
9521
|
south: "down"
|
|
9522
9522
|
}
|
|
9523
|
-
},
|
|
9523
|
+
}, bs = {
|
|
9524
9524
|
north: [-1, 0, 0],
|
|
9525
9525
|
east: [0, 1, 0],
|
|
9526
9526
|
up: [0, 0, 1],
|
|
@@ -9551,22 +9551,22 @@ we.localFrameToFixedFrameGenerator = function(e, t) {
|
|
|
9551
9551
|
throw new C("origin has a NaN component");
|
|
9552
9552
|
if (l(f) || (f = new V()), u.equalsEpsilon(a, u.ZERO, S.EPSILON14))
|
|
9553
9553
|
u.unpack(
|
|
9554
|
-
|
|
9554
|
+
bs[e],
|
|
9555
9555
|
0,
|
|
9556
9556
|
Ri
|
|
9557
9557
|
), u.unpack(
|
|
9558
|
-
|
|
9558
|
+
bs[t],
|
|
9559
9559
|
0,
|
|
9560
9560
|
Li
|
|
9561
9561
|
), u.unpack(
|
|
9562
|
-
|
|
9562
|
+
bs[n],
|
|
9563
9563
|
0,
|
|
9564
9564
|
zi
|
|
9565
9565
|
);
|
|
9566
9566
|
else if (S.equalsEpsilon(a.x, 0, S.EPSILON14) && S.equalsEpsilon(a.y, 0, S.EPSILON14)) {
|
|
9567
9567
|
const c = S.sign(a.z);
|
|
9568
9568
|
u.unpack(
|
|
9569
|
-
|
|
9569
|
+
bs[e],
|
|
9570
9570
|
0,
|
|
9571
9571
|
Ri
|
|
9572
9572
|
), e !== "east" && e !== "west" && u.multiplyByScalar(
|
|
@@ -9574,7 +9574,7 @@ we.localFrameToFixedFrameGenerator = function(e, t) {
|
|
|
9574
9574
|
c,
|
|
9575
9575
|
Ri
|
|
9576
9576
|
), u.unpack(
|
|
9577
|
-
|
|
9577
|
+
bs[t],
|
|
9578
9578
|
0,
|
|
9579
9579
|
Li
|
|
9580
9580
|
), t !== "east" && t !== "west" && u.multiplyByScalar(
|
|
@@ -9582,7 +9582,7 @@ we.localFrameToFixedFrameGenerator = function(e, t) {
|
|
|
9582
9582
|
c,
|
|
9583
9583
|
Li
|
|
9584
9584
|
), u.unpack(
|
|
9585
|
-
|
|
9585
|
+
bs[n],
|
|
9586
9586
|
0,
|
|
9587
9587
|
zi
|
|
9588
9588
|
), n !== "east" && n !== "west" && u.multiplyByScalar(
|
|
@@ -11634,7 +11634,7 @@ function xg(e) {
|
|
|
11634
11634
|
function tl(e) {
|
|
11635
11635
|
return e === R.NEVER || e === R.LESS || e === R.EQUAL || e === R.LEQUAL || e === R.GREATER || e === R.NOTEQUAL || e === R.GEQUAL || e === R.ALWAYS;
|
|
11636
11636
|
}
|
|
11637
|
-
function
|
|
11637
|
+
function xs(e) {
|
|
11638
11638
|
return e === R.ZERO || e === R.KEEP || e === R.REPLACE || e === R.INCR || e === R.DECR || e === R.INVERT || e === R.INCR_WRAP || e === R.DECR_WRAP;
|
|
11639
11639
|
}
|
|
11640
11640
|
function je(e) {
|
|
@@ -11785,27 +11785,27 @@ function je(e) {
|
|
|
11785
11785
|
throw new C("Invalid renderState.stencilTest.frontFunction.");
|
|
11786
11786
|
if (!tl(this.stencilTest.backFunction))
|
|
11787
11787
|
throw new C("Invalid renderState.stencilTest.backFunction.");
|
|
11788
|
-
if (!
|
|
11788
|
+
if (!xs(this.stencilTest.frontOperation.fail))
|
|
11789
11789
|
throw new C(
|
|
11790
11790
|
"Invalid renderState.stencilTest.frontOperation.fail."
|
|
11791
11791
|
);
|
|
11792
|
-
if (!
|
|
11792
|
+
if (!xs(this.stencilTest.frontOperation.zFail))
|
|
11793
11793
|
throw new C(
|
|
11794
11794
|
"Invalid renderState.stencilTest.frontOperation.zFail."
|
|
11795
11795
|
);
|
|
11796
|
-
if (!
|
|
11796
|
+
if (!xs(this.stencilTest.frontOperation.zPass))
|
|
11797
11797
|
throw new C(
|
|
11798
11798
|
"Invalid renderState.stencilTest.frontOperation.zPass."
|
|
11799
11799
|
);
|
|
11800
|
-
if (!
|
|
11800
|
+
if (!xs(this.stencilTest.backOperation.fail))
|
|
11801
11801
|
throw new C(
|
|
11802
11802
|
"Invalid renderState.stencilTest.backOperation.fail."
|
|
11803
11803
|
);
|
|
11804
|
-
if (!
|
|
11804
|
+
if (!xs(this.stencilTest.backOperation.zFail))
|
|
11805
11805
|
throw new C(
|
|
11806
11806
|
"Invalid renderState.stencilTest.backOperation.zFail."
|
|
11807
11807
|
);
|
|
11808
|
-
if (!
|
|
11808
|
+
if (!xs(this.stencilTest.backOperation.zPass))
|
|
11809
11809
|
throw new C(
|
|
11810
11810
|
"Invalid renderState.stencilTest.backOperation.zPass."
|
|
11811
11811
|
);
|
|
@@ -11855,7 +11855,7 @@ je.getCache = function() {
|
|
|
11855
11855
|
je.clearCache = function() {
|
|
11856
11856
|
Zn = {};
|
|
11857
11857
|
};
|
|
11858
|
-
function
|
|
11858
|
+
function ps(e, t, n) {
|
|
11859
11859
|
n ? e.enable(t) : e.disable(t);
|
|
11860
11860
|
}
|
|
11861
11861
|
function qd(e, t) {
|
|
@@ -11863,18 +11863,18 @@ function qd(e, t) {
|
|
|
11863
11863
|
}
|
|
11864
11864
|
function Hd(e, t) {
|
|
11865
11865
|
const n = t.cull, i = n.enabled;
|
|
11866
|
-
|
|
11866
|
+
ps(e, e.CULL_FACE, i), i && e.cullFace(n.face);
|
|
11867
11867
|
}
|
|
11868
11868
|
function jd(e, t) {
|
|
11869
11869
|
e.lineWidth(t.lineWidth);
|
|
11870
11870
|
}
|
|
11871
11871
|
function Yd(e, t) {
|
|
11872
11872
|
const n = t.polygonOffset, i = n.enabled;
|
|
11873
|
-
|
|
11873
|
+
ps(e, e.POLYGON_OFFSET_FILL, i), i && e.polygonOffset(n.factor, n.units);
|
|
11874
11874
|
}
|
|
11875
11875
|
function Xd(e, t, n) {
|
|
11876
11876
|
const i = t.scissorTest, s = l(n.scissorTest) ? n.scissorTest.enabled : i.enabled;
|
|
11877
|
-
if (
|
|
11877
|
+
if (ps(e, e.SCISSOR_TEST, s), s) {
|
|
11878
11878
|
const a = l(n.scissorTest) ? n.scissorTest.rectangle : i.rectangle;
|
|
11879
11879
|
e.scissor(a.x, a.y, a.width, a.height);
|
|
11880
11880
|
}
|
|
@@ -11885,7 +11885,7 @@ function $d(e, t) {
|
|
|
11885
11885
|
}
|
|
11886
11886
|
function Zd(e, t) {
|
|
11887
11887
|
const n = t.depthTest, i = n.enabled;
|
|
11888
|
-
|
|
11888
|
+
ps(e, e.DEPTH_TEST, i), i && e.depthFunc(n.func);
|
|
11889
11889
|
}
|
|
11890
11890
|
function Kd(e, t) {
|
|
11891
11891
|
const n = t.colorMask;
|
|
@@ -11902,7 +11902,7 @@ function Ig(e, t) {
|
|
|
11902
11902
|
}
|
|
11903
11903
|
function ep(e, t, n) {
|
|
11904
11904
|
const i = t.blending, s = l(n.blendingEnabled) ? n.blendingEnabled : i.enabled;
|
|
11905
|
-
|
|
11905
|
+
ps(e, e.BLEND, s), s && (Ig(e, i.color), e.blendEquationSeparate(i.equationRgb, i.equationAlpha), e.blendFuncSeparate(
|
|
11906
11906
|
i.functionSourceRgb,
|
|
11907
11907
|
i.functionDestinationRgb,
|
|
11908
11908
|
i.functionSourceAlpha,
|
|
@@ -11911,7 +11911,7 @@ function ep(e, t, n) {
|
|
|
11911
11911
|
}
|
|
11912
11912
|
function tp(e, t) {
|
|
11913
11913
|
const n = t.stencilTest, i = n.enabled;
|
|
11914
|
-
if (
|
|
11914
|
+
if (ps(e, e.STENCIL_TEST, i), i) {
|
|
11915
11915
|
const s = n.frontFunction, a = n.backFunction, r = n.reference, f = n.mask;
|
|
11916
11916
|
e.stencilFunc(s, r, f), e.stencilFuncSeparate(e.BACK, a, r, f), e.stencilFuncSeparate(e.FRONT, s, r, f);
|
|
11917
11917
|
const c = n.frontOperation, h = c.fail, d = c.zFail, p = c.zPass;
|
|
@@ -11932,7 +11932,7 @@ function tp(e, t) {
|
|
|
11932
11932
|
}
|
|
11933
11933
|
function np(e, t) {
|
|
11934
11934
|
const n = t.sampleCoverage, i = n.enabled;
|
|
11935
|
-
|
|
11935
|
+
ps(e, e.SAMPLE_COVERAGE, i), i && e.sampleCoverage(n.value, n.invert);
|
|
11936
11936
|
}
|
|
11937
11937
|
const Dg = new be();
|
|
11938
11938
|
function ip(e, t, n) {
|
|
@@ -13175,10 +13175,10 @@ function zt(e) {
|
|
|
13175
13175
|
throw new C("options.values is required.");
|
|
13176
13176
|
this.componentDatatype = e.componentDatatype, this.componentsPerAttribute = e.componentsPerAttribute, this.normalize = g(e.normalize, !1), this.values = e.values;
|
|
13177
13177
|
}
|
|
13178
|
-
function
|
|
13178
|
+
function Vs(e, t, n, i, s) {
|
|
13179
13179
|
this._format = e, this._datatype = t, this._width = n, this._height = i, this._buffer = s;
|
|
13180
13180
|
}
|
|
13181
|
-
Object.defineProperties(
|
|
13181
|
+
Object.defineProperties(Vs.prototype, {
|
|
13182
13182
|
/**
|
|
13183
13183
|
* The format of the compressed texture.
|
|
13184
13184
|
* @type {PixelFormat}
|
|
@@ -13246,9 +13246,9 @@ Object.defineProperties(ks.prototype, {
|
|
|
13246
13246
|
}
|
|
13247
13247
|
}
|
|
13248
13248
|
});
|
|
13249
|
-
|
|
13249
|
+
Vs.clone = function(e) {
|
|
13250
13250
|
if (l(e))
|
|
13251
|
-
return new
|
|
13251
|
+
return new Vs(
|
|
13252
13252
|
e._format,
|
|
13253
13253
|
e._datatype,
|
|
13254
13254
|
e._width,
|
|
@@ -13256,8 +13256,8 @@ ks.clone = function(e) {
|
|
|
13256
13256
|
e._buffer
|
|
13257
13257
|
);
|
|
13258
13258
|
};
|
|
13259
|
-
|
|
13260
|
-
return
|
|
13259
|
+
Vs.prototype.clone = function() {
|
|
13260
|
+
return Vs.clone(this);
|
|
13261
13261
|
};
|
|
13262
13262
|
function Ip() {
|
|
13263
13263
|
if (!l(St._canTransferArrayBuffer)) {
|
|
@@ -13468,7 +13468,7 @@ Ai.transcode = function(e, t) {
|
|
|
13468
13468
|
const r = n[a];
|
|
13469
13469
|
for (let f = 0; f < s.length; f++) {
|
|
13470
13470
|
const c = r[s[f]];
|
|
13471
|
-
r[s[f]] = new
|
|
13471
|
+
r[s[f]] = new Vs(
|
|
13472
13472
|
c.internalFormat,
|
|
13473
13473
|
c.datatype,
|
|
13474
13474
|
c.width,
|
|
@@ -13669,7 +13669,7 @@ const ia = {
|
|
|
13669
13669
|
sa.validate = function(e) {
|
|
13670
13670
|
return e === sa.NEAREST || e === sa.LINEAR;
|
|
13671
13671
|
};
|
|
13672
|
-
const
|
|
13672
|
+
const ls = Object.freeze(sa), ki = {
|
|
13673
13673
|
/**
|
|
13674
13674
|
* Samples the texture by returning the closest pixel.
|
|
13675
13675
|
*
|
|
@@ -13740,23 +13740,23 @@ const Ut = Object.freeze(ki), oa = {
|
|
|
13740
13740
|
validate: function(e) {
|
|
13741
13741
|
return e === oa.CLAMP_TO_EDGE || e === oa.REPEAT || e === oa.MIRRORED_REPEAT;
|
|
13742
13742
|
}
|
|
13743
|
-
},
|
|
13743
|
+
}, Rs = Object.freeze(oa);
|
|
13744
13744
|
function ni(e) {
|
|
13745
13745
|
e = g(e, g.EMPTY_OBJECT);
|
|
13746
13746
|
const {
|
|
13747
|
-
wrapS: t =
|
|
13748
|
-
wrapT: n =
|
|
13747
|
+
wrapS: t = Rs.CLAMP_TO_EDGE,
|
|
13748
|
+
wrapT: n = Rs.CLAMP_TO_EDGE,
|
|
13749
13749
|
minificationFilter: i = Ut.LINEAR,
|
|
13750
|
-
magnificationFilter: s =
|
|
13750
|
+
magnificationFilter: s = ls.LINEAR,
|
|
13751
13751
|
maximumAnisotropy: a = 1
|
|
13752
13752
|
} = e;
|
|
13753
|
-
if (!
|
|
13753
|
+
if (!Rs.validate(t))
|
|
13754
13754
|
throw new C("Invalid sampler.wrapS.");
|
|
13755
|
-
if (!
|
|
13755
|
+
if (!Rs.validate(n))
|
|
13756
13756
|
throw new C("Invalid sampler.wrapT.");
|
|
13757
13757
|
if (!Ut.validate(i))
|
|
13758
13758
|
throw new C("Invalid sampler.minificationFilter.");
|
|
13759
|
-
if (!
|
|
13759
|
+
if (!ls.validate(s))
|
|
13760
13760
|
throw new C("Invalid sampler.magnificationFilter.");
|
|
13761
13761
|
_.typeOf.number.greaterThanOrEquals(
|
|
13762
13762
|
"maximumAnisotropy",
|
|
@@ -13796,10 +13796,10 @@ ni.equals = function(e, t) {
|
|
|
13796
13796
|
};
|
|
13797
13797
|
ni.NEAREST = Object.freeze(
|
|
13798
13798
|
new ni({
|
|
13799
|
-
wrapS:
|
|
13800
|
-
wrapT:
|
|
13799
|
+
wrapS: Rs.CLAMP_TO_EDGE,
|
|
13800
|
+
wrapT: Rs.CLAMP_TO_EDGE,
|
|
13801
13801
|
minificationFilter: Ut.NEAREST,
|
|
13802
|
-
magnificationFilter:
|
|
13802
|
+
magnificationFilter: ls.NEAREST
|
|
13803
13803
|
})
|
|
13804
13804
|
);
|
|
13805
13805
|
function It(e) {
|
|
@@ -14040,7 +14040,7 @@ function Wp(e, t) {
|
|
|
14040
14040
|
Ut.LINEAR_MIPMAP_NEAREST,
|
|
14041
14041
|
Ut.LINEAR_MIPMAP_LINEAR
|
|
14042
14042
|
].includes(n), a = e._context, r = e._pixelDatatype;
|
|
14043
|
-
(r === ye.FLOAT && !a.textureFloatLinear || r === ye.HALF_FLOAT && !a.textureHalfFloatLinear) && (n = s ? Ut.NEAREST_MIPMAP_NEAREST : Ut.NEAREST, i =
|
|
14043
|
+
(r === ye.FLOAT && !a.textureFloatLinear || r === ye.HALF_FLOAT && !a.textureHalfFloatLinear) && (n = s ? Ut.NEAREST_MIPMAP_NEAREST : Ut.NEAREST, i = ls.NEAREST);
|
|
14044
14044
|
const f = a._gl, c = e._textureTarget;
|
|
14045
14045
|
f.activeTexture(f.TEXTURE0), f.bindTexture(c, e._texture), f.texParameteri(c, f.TEXTURE_MIN_FILTER, n), f.texParameteri(c, f.TEXTURE_MAG_FILTER, i), f.texParameteri(c, f.TEXTURE_WRAP_S, t.wrapS), f.texParameteri(c, f.TEXTURE_WRAP_T, t.wrapT), l(e._textureFilterAnisotropic) && f.texParameteri(
|
|
14046
14046
|
c,
|
|
@@ -18569,7 +18569,7 @@ function Fp(e, t) {
|
|
|
18569
18569
|
Ut.LINEAR_MIPMAP_NEAREST,
|
|
18570
18570
|
Ut.LINEAR_MIPMAP_LINEAR
|
|
18571
18571
|
].includes(n), a = e._context, r = e._pixelFormat, f = e._pixelDatatype;
|
|
18572
|
-
(f === ye.FLOAT && !a.textureFloatLinear || f === ye.HALF_FLOAT && !a.textureHalfFloatLinear) && (n = s ? Ut.NEAREST_MIPMAP_NEAREST : Ut.NEAREST, i =
|
|
18572
|
+
(f === ye.FLOAT && !a.textureFloatLinear || f === ye.HALF_FLOAT && !a.textureHalfFloatLinear) && (n = s ? Ut.NEAREST_MIPMAP_NEAREST : Ut.NEAREST, i = ls.NEAREST), a.webgl2 && ge.isDepthFormat(r) && (n = Ut.NEAREST, i = ls.NEAREST);
|
|
18573
18573
|
const c = a._gl, h = e._textureTarget;
|
|
18574
18574
|
c.activeTexture(c.TEXTURE0), c.bindTexture(h, e._texture), c.texParameteri(h, c.TEXTURE_MIN_FILTER, n), c.texParameteri(h, c.TEXTURE_MAG_FILTER, i), c.texParameteri(h, c.TEXTURE_WRAP_S, t.wrapS), c.texParameteri(h, c.TEXTURE_WRAP_T, t.wrapT), l(e._textureFilterAnisotropic) && c.texParameteri(
|
|
18575
18575
|
h,
|
|
@@ -20942,7 +20942,7 @@ lt.clone = function(e, t) {
|
|
|
20942
20942
|
if (l(e))
|
|
20943
20943
|
return l(t) || (t = new lt()), t.position = e.position, t.normal = e.normal, t.st = e.st, t.tangent = e.tangent, t.bitangent = e.bitangent, t.color = e.color, t;
|
|
20944
20944
|
};
|
|
20945
|
-
function
|
|
20945
|
+
function Gs(e, t, n, i) {
|
|
20946
20946
|
e = g(e, 1), t = g(t, 1), n = g(n, 1), i = g(i, 1), this.value = new Uint8Array([
|
|
20947
20947
|
D.floatToByte(e),
|
|
20948
20948
|
D.floatToByte(t),
|
|
@@ -20950,7 +20950,7 @@ function Vs(e, t, n, i) {
|
|
|
20950
20950
|
D.floatToByte(i)
|
|
20951
20951
|
]);
|
|
20952
20952
|
}
|
|
20953
|
-
Object.defineProperties(
|
|
20953
|
+
Object.defineProperties(Gs.prototype, {
|
|
20954
20954
|
/**
|
|
20955
20955
|
* The datatype of each component in the attribute, e.g., individual elements in
|
|
20956
20956
|
* {@link ColorGeometryInstanceAttribute#value}.
|
|
@@ -21000,22 +21000,22 @@ Object.defineProperties(Vs.prototype, {
|
|
|
21000
21000
|
}
|
|
21001
21001
|
}
|
|
21002
21002
|
});
|
|
21003
|
-
|
|
21003
|
+
Gs.fromColor = function(e) {
|
|
21004
21004
|
if (!l(e))
|
|
21005
21005
|
throw new C("color is required.");
|
|
21006
|
-
return new
|
|
21006
|
+
return new Gs(
|
|
21007
21007
|
e.red,
|
|
21008
21008
|
e.green,
|
|
21009
21009
|
e.blue,
|
|
21010
21010
|
e.alpha
|
|
21011
21011
|
);
|
|
21012
21012
|
};
|
|
21013
|
-
|
|
21013
|
+
Gs.toValue = function(e, t) {
|
|
21014
21014
|
if (!l(e))
|
|
21015
21015
|
throw new C("color is required.");
|
|
21016
21016
|
return l(t) ? e.toBytes(t) : new Uint8Array(e.toBytes());
|
|
21017
21017
|
};
|
|
21018
|
-
|
|
21018
|
+
Gs.equals = function(e, t) {
|
|
21019
21019
|
return e === t || l(e) && l(t) && e.value[0] === t.value[0] && e.value[1] === t.value[1] && e.value[2] === t.value[2] && e.value[3] === t.value[3];
|
|
21020
21020
|
};
|
|
21021
21021
|
function ba(e) {
|
|
@@ -21042,7 +21042,7 @@ Object.defineProperties(nt.prototype, {
|
|
|
21042
21042
|
}
|
|
21043
21043
|
}
|
|
21044
21044
|
});
|
|
21045
|
-
const
|
|
21045
|
+
const Ss = {
|
|
21046
21046
|
start: void 0,
|
|
21047
21047
|
stop: void 0,
|
|
21048
21048
|
isStartIncluded: void 0,
|
|
@@ -21057,7 +21057,7 @@ nt.fromIso8601 = function(e, t) {
|
|
|
21057
21057
|
"options.iso8601 is an invalid ISO 8601 interval."
|
|
21058
21058
|
);
|
|
21059
21059
|
const i = ee.fromIso8601(n[0]), s = ee.fromIso8601(n[1]), a = g(e.isStartIncluded, !0), r = g(e.isStopIncluded, !0), f = e.data;
|
|
21060
|
-
return l(t) ? (t.start = i, t.stop = s, t.isStartIncluded = a, t.isStopIncluded = r, t.data = f, t) : (
|
|
21060
|
+
return l(t) ? (t.start = i, t.stop = s, t.isStartIncluded = a, t.isStopIncluded = r, t.data = f, t) : (Ss.start = i, Ss.stop = s, Ss.isStartIncluded = a, Ss.isStopIncluded = r, Ss.data = f, new nt(Ss));
|
|
21061
21061
|
};
|
|
21062
21062
|
nt.toIso8601 = function(e, t) {
|
|
21063
21063
|
return _.typeOf.object("timeInterval", e), `${ee.toIso8601(
|
|
@@ -21250,7 +21250,7 @@ const Mw = {
|
|
|
21250
21250
|
* @constant
|
|
21251
21251
|
*/
|
|
21252
21252
|
MAX: R.MAX
|
|
21253
|
-
},
|
|
21253
|
+
}, Is = Object.freeze(Mw), Uw = {
|
|
21254
21254
|
/**
|
|
21255
21255
|
* The blend factor is zero.
|
|
21256
21256
|
*
|
|
@@ -21374,8 +21374,8 @@ const Mw = {
|
|
|
21374
21374
|
*/
|
|
21375
21375
|
ALPHA_BLEND: Object.freeze({
|
|
21376
21376
|
enabled: !0,
|
|
21377
|
-
equationRgb:
|
|
21378
|
-
equationAlpha:
|
|
21377
|
+
equationRgb: Is.ADD,
|
|
21378
|
+
equationAlpha: Is.ADD,
|
|
21379
21379
|
functionSourceRgb: An.SOURCE_ALPHA,
|
|
21380
21380
|
functionSourceAlpha: An.ONE,
|
|
21381
21381
|
functionDestinationRgb: An.ONE_MINUS_SOURCE_ALPHA,
|
|
@@ -21389,8 +21389,8 @@ const Mw = {
|
|
|
21389
21389
|
*/
|
|
21390
21390
|
PRE_MULTIPLIED_ALPHA_BLEND: Object.freeze({
|
|
21391
21391
|
enabled: !0,
|
|
21392
|
-
equationRgb:
|
|
21393
|
-
equationAlpha:
|
|
21392
|
+
equationRgb: Is.ADD,
|
|
21393
|
+
equationAlpha: Is.ADD,
|
|
21394
21394
|
functionSourceRgb: An.ONE,
|
|
21395
21395
|
functionSourceAlpha: An.ONE,
|
|
21396
21396
|
functionDestinationRgb: An.ONE_MINUS_SOURCE_ALPHA,
|
|
@@ -21404,14 +21404,14 @@ const Mw = {
|
|
|
21404
21404
|
*/
|
|
21405
21405
|
ADDITIVE_BLEND: Object.freeze({
|
|
21406
21406
|
enabled: !0,
|
|
21407
|
-
equationRgb:
|
|
21408
|
-
equationAlpha:
|
|
21407
|
+
equationRgb: Is.ADD,
|
|
21408
|
+
equationAlpha: Is.ADD,
|
|
21409
21409
|
functionSourceRgb: An.SOURCE_ALPHA,
|
|
21410
21410
|
functionSourceAlpha: An.ONE,
|
|
21411
21411
|
functionDestinationRgb: An.ONE,
|
|
21412
21412
|
functionDestinationAlpha: An.ONE
|
|
21413
21413
|
})
|
|
21414
|
-
},
|
|
21414
|
+
}, ms = Object.freeze(kw), Vw = {
|
|
21415
21415
|
/**
|
|
21416
21416
|
* Front-facing triangles are culled.
|
|
21417
21417
|
*
|
|
@@ -21433,7 +21433,7 @@ const Mw = {
|
|
|
21433
21433
|
* @constant
|
|
21434
21434
|
*/
|
|
21435
21435
|
FRONT_AND_BACK: R.FRONT_AND_BACK
|
|
21436
|
-
},
|
|
21436
|
+
}, Ls = Object.freeze(Vw);
|
|
21437
21437
|
function Vt(e) {
|
|
21438
21438
|
e = g(e, g.EMPTY_OBJECT), this.material = e.material, this.translucent = g(e.translucent, !0), this._vertexShaderSource = e.vertexShaderSource, this._fragmentShaderSource = e.fragmentShaderSource, this._renderState = e.renderState, this._closed = g(e.closed, !1);
|
|
21439
21439
|
}
|
|
@@ -21505,7 +21505,7 @@ Vt.prototype.isTranslucent = function() {
|
|
|
21505
21505
|
};
|
|
21506
21506
|
Vt.prototype.getRenderState = function() {
|
|
21507
21507
|
const e = this.isTranslucent(), t = hn(this.renderState, !1);
|
|
21508
|
-
return e ? (t.depthMask = !1, t.blending =
|
|
21508
|
+
return e ? (t.depthMask = !1, t.blending = ms.ALPHA_BLEND) : t.depthMask = !0, t;
|
|
21509
21509
|
};
|
|
21510
21510
|
Vt.getDefaultRenderState = function(e, t, n) {
|
|
21511
21511
|
let i = {
|
|
@@ -21513,9 +21513,9 @@ Vt.getDefaultRenderState = function(e, t, n) {
|
|
|
21513
21513
|
enabled: !0
|
|
21514
21514
|
}
|
|
21515
21515
|
};
|
|
21516
|
-
return e && (i.depthMask = !1, i.blending =
|
|
21516
|
+
return e && (i.depthMask = !1, i.blending = ms.ALPHA_BLEND), t && (i.cull = {
|
|
21517
21517
|
enabled: !0,
|
|
21518
|
-
face:
|
|
21518
|
+
face: Ls.BACK
|
|
21519
21519
|
}), l(n) && (i = fn(n, i, !0)), i;
|
|
21520
21520
|
};
|
|
21521
21521
|
const Gw = `uniform sampler2D image;
|
|
@@ -21895,7 +21895,7 @@ czm_material czm_getMaterial(czm_materialInput materialInput)
|
|
|
21895
21895
|
material.alpha = outColor.a;
|
|
21896
21896
|
return material;
|
|
21897
21897
|
}
|
|
21898
|
-
`,
|
|
21898
|
+
`, e2 = `uniform vec4 color;
|
|
21899
21899
|
uniform vec4 gapColor;
|
|
21900
21900
|
uniform float dashLength;
|
|
21901
21901
|
uniform float dashPattern;
|
|
@@ -21934,7 +21934,7 @@ czm_material czm_getMaterial(czm_materialInput materialInput)
|
|
|
21934
21934
|
material.alpha = fragColor.a;
|
|
21935
21935
|
return material;
|
|
21936
21936
|
}
|
|
21937
|
-
`,
|
|
21937
|
+
`, t2 = `uniform vec4 color;
|
|
21938
21938
|
uniform float glowPower;
|
|
21939
21939
|
uniform float taperPower;
|
|
21940
21940
|
|
|
@@ -21959,7 +21959,7 @@ czm_material czm_getMaterial(czm_materialInput materialInput)
|
|
|
21959
21959
|
|
|
21960
21960
|
return material;
|
|
21961
21961
|
}
|
|
21962
|
-
`,
|
|
21962
|
+
`, n2 = `uniform vec4 color;
|
|
21963
21963
|
uniform vec4 outlineColor;
|
|
21964
21964
|
uniform float outlineWidth;
|
|
21965
21965
|
|
|
@@ -21988,7 +21988,7 @@ czm_material czm_getMaterial(czm_materialInput materialInput)
|
|
|
21988
21988
|
|
|
21989
21989
|
return material;
|
|
21990
21990
|
}
|
|
21991
|
-
`,
|
|
21991
|
+
`, i2 = `uniform vec4 color;
|
|
21992
21992
|
uniform vec4 rimColor;
|
|
21993
21993
|
uniform float width;
|
|
21994
21994
|
|
|
@@ -22009,7 +22009,7 @@ czm_material czm_getMaterial(czm_materialInput materialInput)
|
|
|
22009
22009
|
|
|
22010
22010
|
return material;
|
|
22011
22011
|
}
|
|
22012
|
-
`,
|
|
22012
|
+
`, s2 = `uniform sampler2D image;
|
|
22013
22013
|
|
|
22014
22014
|
czm_material czm_getMaterial(czm_materialInput materialInput)
|
|
22015
22015
|
{
|
|
@@ -22020,7 +22020,7 @@ czm_material czm_getMaterial(czm_materialInput materialInput)
|
|
|
22020
22020
|
material.alpha = rampColor.a;
|
|
22021
22021
|
return material;
|
|
22022
22022
|
}
|
|
22023
|
-
`,
|
|
22023
|
+
`, o2 = `uniform vec4 evenColor;
|
|
22024
22024
|
uniform vec4 oddColor;
|
|
22025
22025
|
uniform float offset;
|
|
22026
22026
|
uniform float repeat;
|
|
@@ -22044,7 +22044,7 @@ czm_material czm_getMaterial(czm_materialInput materialInput)
|
|
|
22044
22044
|
|
|
22045
22045
|
return material;
|
|
22046
22046
|
}
|
|
22047
|
-
`,
|
|
22047
|
+
`, r2 = `uniform vec4 waterColor;
|
|
22048
22048
|
uniform vec4 landColor;
|
|
22049
22049
|
|
|
22050
22050
|
czm_material czm_getMaterial(czm_materialInput materialInput)
|
|
@@ -22059,7 +22059,7 @@ czm_material czm_getMaterial(czm_materialInput materialInput)
|
|
|
22059
22059
|
|
|
22060
22060
|
return material;
|
|
22061
22061
|
}
|
|
22062
|
-
`,
|
|
22062
|
+
`, a2 = `// Thanks for the contribution Jonas
|
|
22063
22063
|
// http://29a.ch/2012/7/19/webgl-terrain-rendering-water-fog
|
|
22064
22064
|
|
|
22065
22065
|
uniform sampler2D specularMap;
|
|
@@ -22124,8 +22124,8 @@ function ne(e) {
|
|
|
22124
22124
|
Ut.LINEAR
|
|
22125
22125
|
), this._magnificationFilter = g(
|
|
22126
22126
|
e.magnificationFilter,
|
|
22127
|
-
|
|
22128
|
-
), this._strict = void 0, this._template = void 0, this._count = void 0, this._texturePaths = {}, this._loadedImages = [], this._loadedCubeMaps = [], this._textures = {}, this._updateFunctions = [], this._defaultTexture = void 0,
|
|
22127
|
+
ls.LINEAR
|
|
22128
|
+
), this._strict = void 0, this._template = void 0, this._count = void 0, this._texturePaths = {}, this._loadedImages = [], this._loadedCubeMaps = [], this._textures = {}, this._updateFunctions = [], this._defaultTexture = void 0, c2(e, this), Object.defineProperties(this, {
|
|
22129
22129
|
type: {
|
|
22130
22130
|
value: this.type,
|
|
22131
22131
|
writable: !1
|
|
@@ -22243,7 +22243,7 @@ ne.prototype.destroy = function() {
|
|
|
22243
22243
|
t.hasOwnProperty(n) && t[n].destroy();
|
|
22244
22244
|
return at(this);
|
|
22245
22245
|
};
|
|
22246
|
-
function
|
|
22246
|
+
function c2(e, t) {
|
|
22247
22247
|
e = g(e, g.EMPTY_OBJECT), t._strict = g(e.strict, !1), t._count = g(e.count, 0), t._template = hn(
|
|
22248
22248
|
g(e.fabric, g.EMPTY_OBJECT)
|
|
22249
22249
|
), t._template.uniforms = hn(
|
|
@@ -22257,7 +22257,7 @@ function cA(e, t) {
|
|
|
22257
22257
|
const a = hn(i.fabric, !0);
|
|
22258
22258
|
t._template = fn(t._template, a, !0), n = i.translucent;
|
|
22259
22259
|
}
|
|
22260
|
-
|
|
22260
|
+
u2(t), l(i) || ne._materialCache.addMaterial(t.type, t), p2(t), y2(t), C2(t);
|
|
22261
22261
|
const s = t._translucentFunctions.length === 0 ? !0 : void 0;
|
|
22262
22262
|
if (n = g(n, s), n = g(e.translucent, n), l(n))
|
|
22263
22263
|
if (typeof n == "function") {
|
|
@@ -22285,17 +22285,17 @@ function ll(e, t) {
|
|
|
22285
22285
|
}
|
|
22286
22286
|
throw new C(n);
|
|
22287
22287
|
}
|
|
22288
|
-
function
|
|
22288
|
+
function h2(e, t) {
|
|
22289
22289
|
const n = `fabric: uniforms and materials cannot share the same property '${e}'`;
|
|
22290
22290
|
throw new C(n);
|
|
22291
22291
|
}
|
|
22292
|
-
const
|
|
22292
|
+
const f2 = [
|
|
22293
22293
|
"type",
|
|
22294
22294
|
"materials",
|
|
22295
22295
|
"uniforms",
|
|
22296
22296
|
"components",
|
|
22297
22297
|
"source"
|
|
22298
|
-
],
|
|
22298
|
+
], l2 = [
|
|
22299
22299
|
"diffuse",
|
|
22300
22300
|
"specular",
|
|
22301
22301
|
"shininess",
|
|
@@ -22303,31 +22303,31 @@ const fA = [
|
|
|
22303
22303
|
"emission",
|
|
22304
22304
|
"alpha"
|
|
22305
22305
|
];
|
|
22306
|
-
function
|
|
22306
|
+
function u2(e) {
|
|
22307
22307
|
const t = e._template, n = t.uniforms, i = t.materials, s = t.components;
|
|
22308
22308
|
if (l(s) && l(t.source))
|
|
22309
22309
|
throw new C(
|
|
22310
22310
|
"fabric: cannot have source and components in the same template."
|
|
22311
22311
|
);
|
|
22312
|
-
uc(t,
|
|
22312
|
+
uc(t, f2, ll, !0), uc(
|
|
22313
22313
|
s,
|
|
22314
|
-
|
|
22314
|
+
l2,
|
|
22315
22315
|
ll,
|
|
22316
22316
|
!0
|
|
22317
22317
|
);
|
|
22318
22318
|
const a = [];
|
|
22319
22319
|
for (const r in i)
|
|
22320
22320
|
i.hasOwnProperty(r) && a.push(r);
|
|
22321
|
-
uc(n, a,
|
|
22321
|
+
uc(n, a, h2, !1);
|
|
22322
22322
|
}
|
|
22323
|
-
function
|
|
22323
|
+
function d2(e, t) {
|
|
22324
22324
|
const n = t._template.materials;
|
|
22325
22325
|
for (const i in n)
|
|
22326
22326
|
if (n.hasOwnProperty(i) && e.indexOf(i) > -1)
|
|
22327
22327
|
return !0;
|
|
22328
22328
|
return !1;
|
|
22329
22329
|
}
|
|
22330
|
-
function
|
|
22330
|
+
function p2(e) {
|
|
22331
22331
|
const t = e._template.components, n = e._template.source;
|
|
22332
22332
|
if (l(n))
|
|
22333
22333
|
e.shaderSource += `${n}
|
|
@@ -22341,7 +22341,7 @@ function pA(e) {
|
|
|
22341
22341
|
for (const s in t)
|
|
22342
22342
|
if (t.hasOwnProperty(s))
|
|
22343
22343
|
if (s === "diffuse" || s === "emission") {
|
|
22344
|
-
const r = i &&
|
|
22344
|
+
const r = i && d2(t[s], e) ? t[s] : `czm_gammaCorrect(${t[s]})`;
|
|
22345
22345
|
e.shaderSource += `material.${s} = ${r};
|
|
22346
22346
|
`;
|
|
22347
22347
|
} else s === "alpha" ? e.shaderSource += `material.alpha = ${t.alpha};
|
|
@@ -22357,8 +22357,8 @@ const ul = {
|
|
|
22357
22357
|
mat2: ue,
|
|
22358
22358
|
mat3: G,
|
|
22359
22359
|
mat4: V
|
|
22360
|
-
},
|
|
22361
|
-
function
|
|
22360
|
+
}, m2 = /\.ktx2$/i;
|
|
22361
|
+
function _2(e) {
|
|
22362
22362
|
let t;
|
|
22363
22363
|
return function(n, i) {
|
|
22364
22364
|
const s = n.uniforms, a = s[e], r = t !== a, f = !l(a) || a === ne.DefaultImageId;
|
|
@@ -22397,7 +22397,7 @@ function _A(e) {
|
|
|
22397
22397
|
if (typeof a == "string" || p) {
|
|
22398
22398
|
const m = p ? a : ae.createIfNeeded(a);
|
|
22399
22399
|
let y;
|
|
22400
|
-
|
|
22400
|
+
m2.test(m.url) ? y = Op(m.url) : y = m.fetchImage(), Promise.resolve(y).then(function(T) {
|
|
22401
22401
|
n._loadedImages.push({
|
|
22402
22402
|
id: e,
|
|
22403
22403
|
image: T
|
|
@@ -22413,7 +22413,7 @@ function _A(e) {
|
|
|
22413
22413
|
}
|
|
22414
22414
|
};
|
|
22415
22415
|
}
|
|
22416
|
-
function
|
|
22416
|
+
function g2(e) {
|
|
22417
22417
|
return function(t, n) {
|
|
22418
22418
|
const i = t.uniforms[e];
|
|
22419
22419
|
if (i instanceof It) {
|
|
@@ -22442,13 +22442,13 @@ function gA(e) {
|
|
|
22442
22442
|
}
|
|
22443
22443
|
};
|
|
22444
22444
|
}
|
|
22445
|
-
function
|
|
22445
|
+
function y2(e) {
|
|
22446
22446
|
const t = e._template.uniforms;
|
|
22447
22447
|
for (const n in t)
|
|
22448
22448
|
t.hasOwnProperty(n) && Yp(e, n);
|
|
22449
22449
|
}
|
|
22450
22450
|
function Yp(e, t) {
|
|
22451
|
-
const n = e._strict, i = e._template.uniforms, s = i[t], a =
|
|
22451
|
+
const n = e._strict, i = e._template.uniforms, s = i[t], a = T2(s);
|
|
22452
22452
|
if (!l(a))
|
|
22453
22453
|
throw new C(
|
|
22454
22454
|
`fabric: uniform '${t}' has invalid type.`
|
|
@@ -22462,7 +22462,7 @@ function Yp(e, t) {
|
|
|
22462
22462
|
} else {
|
|
22463
22463
|
if (a === "sampler2D") {
|
|
22464
22464
|
const h = `${t}Dimensions`;
|
|
22465
|
-
|
|
22465
|
+
w2(e, h) > 0 && (i[h] = {
|
|
22466
22466
|
type: "ivec3",
|
|
22467
22467
|
x: 1,
|
|
22468
22468
|
y: 1
|
|
@@ -22482,11 +22482,11 @@ function Yp(e, t) {
|
|
|
22482
22482
|
if (e.uniforms[t] = s, a === "sampler2D")
|
|
22483
22483
|
e._uniforms[c] = function() {
|
|
22484
22484
|
return e._textures[t];
|
|
22485
|
-
}, e._updateFunctions.push(
|
|
22485
|
+
}, e._updateFunctions.push(_2(t));
|
|
22486
22486
|
else if (a === "samplerCube")
|
|
22487
22487
|
e._uniforms[c] = function() {
|
|
22488
22488
|
return e._textures[t];
|
|
22489
|
-
}, e._updateFunctions.push(
|
|
22489
|
+
}, e._updateFunctions.push(g2(t));
|
|
22490
22490
|
else if (a.indexOf("mat") !== -1) {
|
|
22491
22491
|
const h = new ul[a]();
|
|
22492
22492
|
e._uniforms[c] = function() {
|
|
@@ -22501,7 +22501,7 @@ function Yp(e, t) {
|
|
|
22501
22501
|
};
|
|
22502
22502
|
}
|
|
22503
22503
|
}
|
|
22504
|
-
function
|
|
22504
|
+
function T2(e) {
|
|
22505
22505
|
let t = e.type;
|
|
22506
22506
|
if (!l(t)) {
|
|
22507
22507
|
const n = typeof e;
|
|
@@ -22523,7 +22523,7 @@ function TA(e) {
|
|
|
22523
22523
|
}
|
|
22524
22524
|
return t;
|
|
22525
22525
|
}
|
|
22526
|
-
function
|
|
22526
|
+
function C2(e) {
|
|
22527
22527
|
const t = e._strict, n = e._template.materials;
|
|
22528
22528
|
for (const i in n)
|
|
22529
22529
|
if (n.hasOwnProperty(i)) {
|
|
@@ -22563,7 +22563,7 @@ function zo(e, t, n, i) {
|
|
|
22563
22563
|
}
|
|
22564
22564
|
), s;
|
|
22565
22565
|
}
|
|
22566
|
-
function
|
|
22566
|
+
function w2(e, t, n) {
|
|
22567
22567
|
return zo(e, t, t, n);
|
|
22568
22568
|
}
|
|
22569
22569
|
ne._materialCache = {
|
|
@@ -22728,7 +22728,7 @@ ne._materialCache.addMaterial(ne.StripeType, {
|
|
|
22728
22728
|
offset: 0,
|
|
22729
22729
|
repeat: 5
|
|
22730
22730
|
},
|
|
22731
|
-
source:
|
|
22731
|
+
source: o2
|
|
22732
22732
|
},
|
|
22733
22733
|
translucent: function(e) {
|
|
22734
22734
|
const t = e.uniforms;
|
|
@@ -22782,7 +22782,7 @@ ne._materialCache.addMaterial(ne.WaterType, {
|
|
|
22782
22782
|
specularIntensity: 0.5,
|
|
22783
22783
|
fadeFactor: 1
|
|
22784
22784
|
},
|
|
22785
|
-
source:
|
|
22785
|
+
source: a2
|
|
22786
22786
|
},
|
|
22787
22787
|
translucent: function(e) {
|
|
22788
22788
|
const t = e.uniforms;
|
|
@@ -22798,7 +22798,7 @@ ne._materialCache.addMaterial(ne.RimLightingType, {
|
|
|
22798
22798
|
rimColor: new D(1, 1, 1, 0.4),
|
|
22799
22799
|
width: 0.3
|
|
22800
22800
|
},
|
|
22801
|
-
source:
|
|
22801
|
+
source: i2
|
|
22802
22802
|
},
|
|
22803
22803
|
translucent: function(e) {
|
|
22804
22804
|
const t = e.uniforms;
|
|
@@ -22848,7 +22848,7 @@ ne._materialCache.addMaterial(ne.PolylineDashType, {
|
|
|
22848
22848
|
dashLength: 16,
|
|
22849
22849
|
dashPattern: 255
|
|
22850
22850
|
},
|
|
22851
|
-
source:
|
|
22851
|
+
source: e2
|
|
22852
22852
|
},
|
|
22853
22853
|
translucent: !0
|
|
22854
22854
|
});
|
|
@@ -22861,7 +22861,7 @@ ne._materialCache.addMaterial(ne.PolylineGlowType, {
|
|
|
22861
22861
|
glowPower: 0.25,
|
|
22862
22862
|
taperPower: 1
|
|
22863
22863
|
},
|
|
22864
|
-
source:
|
|
22864
|
+
source: t2
|
|
22865
22865
|
},
|
|
22866
22866
|
translucent: !0
|
|
22867
22867
|
});
|
|
@@ -22874,7 +22874,7 @@ ne._materialCache.addMaterial(ne.PolylineOutlineType, {
|
|
|
22874
22874
|
outlineColor: new D(1, 0, 0, 1),
|
|
22875
22875
|
outlineWidth: 1
|
|
22876
22876
|
},
|
|
22877
|
-
source:
|
|
22877
|
+
source: n2
|
|
22878
22878
|
},
|
|
22879
22879
|
translucent: function(e) {
|
|
22880
22880
|
const t = e.uniforms;
|
|
@@ -22914,7 +22914,7 @@ ne._materialCache.addMaterial(ne.SlopeRampMaterialType, {
|
|
|
22914
22914
|
uniforms: {
|
|
22915
22915
|
image: ne.DefaultImageId
|
|
22916
22916
|
},
|
|
22917
|
-
source:
|
|
22917
|
+
source: s2
|
|
22918
22918
|
},
|
|
22919
22919
|
translucent: !1
|
|
22920
22920
|
});
|
|
@@ -22945,7 +22945,7 @@ ne.WaterMaskType = "WaterMask";
|
|
|
22945
22945
|
ne._materialCache.addMaterial(ne.WaterMaskType, {
|
|
22946
22946
|
fabric: {
|
|
22947
22947
|
type: ne.WaterMaskType,
|
|
22948
|
-
source:
|
|
22948
|
+
source: r2,
|
|
22949
22949
|
uniforms: {
|
|
22950
22950
|
waterColor: new D(1, 1, 1, 1),
|
|
22951
22951
|
landColor: new D(0, 0, 0, 0)
|
|
@@ -22953,7 +22953,7 @@ ne._materialCache.addMaterial(ne.WaterMaskType, {
|
|
|
22953
22953
|
},
|
|
22954
22954
|
translucent: !1
|
|
22955
22955
|
});
|
|
22956
|
-
const
|
|
22956
|
+
const A2 = `in vec3 v_positionEC;
|
|
22957
22957
|
in vec3 v_normalEC;
|
|
22958
22958
|
in vec4 v_color;
|
|
22959
22959
|
|
|
@@ -22977,7 +22977,7 @@ void main()
|
|
|
22977
22977
|
|
|
22978
22978
|
out_FragColor = czm_phong(normalize(positionToEyeEC), material, czm_lightDirectionEC);
|
|
22979
22979
|
}
|
|
22980
|
-
`,
|
|
22980
|
+
`, E2 = `in vec3 position3DHigh;
|
|
22981
22981
|
in vec3 position3DLow;
|
|
22982
22982
|
in vec3 normal;
|
|
22983
22983
|
in vec4 color;
|
|
@@ -23003,7 +23003,7 @@ void main()
|
|
|
23003
23003
|
{
|
|
23004
23004
|
out_FragColor = czm_gammaCorrect(v_color);
|
|
23005
23005
|
}
|
|
23006
|
-
`,
|
|
23006
|
+
`, b2 = `in vec3 position3DHigh;
|
|
23007
23007
|
in vec3 position3DLow;
|
|
23008
23008
|
in vec4 color;
|
|
23009
23009
|
in float batchId;
|
|
@@ -23021,7 +23021,7 @@ void main()
|
|
|
23021
23021
|
`;
|
|
23022
23022
|
function Kt(e) {
|
|
23023
23023
|
e = g(e, g.EMPTY_OBJECT);
|
|
23024
|
-
const t = g(e.translucent, !0), n = g(e.closed, !1), i = g(e.flat, !1), s = i ?
|
|
23024
|
+
const t = g(e.translucent, !0), n = g(e.closed, !1), i = g(e.flat, !1), s = i ? b2 : E2, a = i ? Xp : A2, r = i ? Kt.FLAT_VERTEX_FORMAT : Kt.VERTEX_FORMAT;
|
|
23025
23025
|
this.material = void 0, this.translucent = t, this._vertexShaderSource = g(e.vertexShaderSource, s), this._fragmentShaderSource = g(e.fragmentShaderSource, a), this._renderState = Vt.getDefaultRenderState(
|
|
23026
23026
|
t,
|
|
23027
23027
|
n,
|
|
@@ -23145,10 +23145,10 @@ Kt.FLAT_VERTEX_FORMAT = lt.POSITION_ONLY;
|
|
|
23145
23145
|
Kt.prototype.getFragmentShaderSource = Vt.prototype.getFragmentShaderSource;
|
|
23146
23146
|
Kt.prototype.isTranslucent = Vt.prototype.isTranslucent;
|
|
23147
23147
|
Kt.prototype.getRenderState = Vt.prototype.getRenderState;
|
|
23148
|
-
function
|
|
23148
|
+
function qs(e) {
|
|
23149
23149
|
this._definitionChanged = new Fe(), this._color = void 0, this._colorSubscription = void 0, this.color = e;
|
|
23150
23150
|
}
|
|
23151
|
-
Object.defineProperties(
|
|
23151
|
+
Object.defineProperties(qs.prototype, {
|
|
23152
23152
|
/**
|
|
23153
23153
|
* Gets a value indicating if this property is constant. A property is considered
|
|
23154
23154
|
* constant if getValue always returns the same result for the current definition.
|
|
@@ -23184,21 +23184,21 @@ Object.defineProperties(Gs.prototype, {
|
|
|
23184
23184
|
*/
|
|
23185
23185
|
color: k("color")
|
|
23186
23186
|
});
|
|
23187
|
-
|
|
23187
|
+
qs.prototype.getType = function(e) {
|
|
23188
23188
|
return "Color";
|
|
23189
23189
|
};
|
|
23190
|
-
const
|
|
23191
|
-
|
|
23192
|
-
return l(e) || (e = ee.now(
|
|
23190
|
+
const x2 = new ee();
|
|
23191
|
+
qs.prototype.getValue = function(e, t) {
|
|
23192
|
+
return l(e) || (e = ee.now(x2)), l(t) || (t = {}), t.color = ve.getValueOrClonedDefault(
|
|
23193
23193
|
this._color,
|
|
23194
23194
|
e,
|
|
23195
23195
|
D.WHITE,
|
|
23196
23196
|
t.color
|
|
23197
23197
|
), t;
|
|
23198
23198
|
};
|
|
23199
|
-
|
|
23199
|
+
qs.prototype.equals = function(e) {
|
|
23200
23200
|
return this === e || //
|
|
23201
|
-
e instanceof
|
|
23201
|
+
e instanceof qs && //
|
|
23202
23202
|
ve.equals(this._color, e._color);
|
|
23203
23203
|
};
|
|
23204
23204
|
function ji(e) {
|
|
@@ -23273,7 +23273,7 @@ ji.prototype.positionToTileXY = function(e, t, n) {
|
|
|
23273
23273
|
let d = (i.north - e.latitude) / f | 0;
|
|
23274
23274
|
return d >= a && (d = a - 1), l(n) ? (n.x = h, n.y = d, n) : new q(h, d);
|
|
23275
23275
|
};
|
|
23276
|
-
const dl = new u(), pl = new u(), ml = new se(), dc = new u(),
|
|
23276
|
+
const dl = new u(), pl = new u(), ml = new se(), dc = new u(), S2 = new u(), _l = new te(), I2 = new ji(), oo = [
|
|
23277
23277
|
new se(),
|
|
23278
23278
|
new se(),
|
|
23279
23279
|
new se(),
|
|
@@ -23310,7 +23310,7 @@ Ge.getMinimumMaximumHeights = function(e, t) {
|
|
|
23310
23310
|
);
|
|
23311
23311
|
const f = t.scaleToGeodeticSurface(
|
|
23312
23312
|
dc,
|
|
23313
|
-
|
|
23313
|
+
S2
|
|
23314
23314
|
);
|
|
23315
23315
|
if (l(f)) {
|
|
23316
23316
|
const c = u.distance(
|
|
@@ -23378,7 +23378,7 @@ function $p(e) {
|
|
|
23378
23378
|
let f = !1;
|
|
23379
23379
|
for (let c = 0; c < 4; ++c) {
|
|
23380
23380
|
const h = oo[c];
|
|
23381
|
-
if (
|
|
23381
|
+
if (I2.positionToTileXY(h, r, ro), c === 0)
|
|
23382
23382
|
i = ro.x, s = ro.y;
|
|
23383
23383
|
else if (i !== ro.x || s !== ro.y) {
|
|
23384
23384
|
f = !0;
|
|
@@ -23701,14 +23701,14 @@ of.computeRealRoots = function(e, t, n, i, s) {
|
|
|
23701
23701
|
return;
|
|
23702
23702
|
}
|
|
23703
23703
|
};
|
|
23704
|
-
function
|
|
23704
|
+
function Hs(e, t) {
|
|
23705
23705
|
t = u.clone(g(t, u.ZERO)), u.equals(t, u.ZERO) || u.normalize(t, t), this.origin = u.clone(g(e, u.ZERO)), this.direction = t;
|
|
23706
23706
|
}
|
|
23707
|
-
|
|
23707
|
+
Hs.clone = function(e, t) {
|
|
23708
23708
|
if (l(e))
|
|
23709
|
-
return l(t) ? (t.origin = u.clone(e.origin), t.direction = u.clone(e.direction), t) : new
|
|
23709
|
+
return l(t) ? (t.origin = u.clone(e.origin), t.direction = u.clone(e.direction), t) : new Hs(e.origin, e.direction);
|
|
23710
23710
|
};
|
|
23711
|
-
|
|
23711
|
+
Hs.getPoint = function(e, t, n) {
|
|
23712
23712
|
return _.typeOf.object("ray", e), _.typeOf.number("t", t), l(n) || (n = new u()), n = u.multiplyByScalar(e.direction, t, n), u.add(e.origin, n, n);
|
|
23713
23713
|
};
|
|
23714
23714
|
const Me = {};
|
|
@@ -23725,7 +23725,7 @@ Me.rayPlane = function(e, t, n) {
|
|
|
23725
23725
|
if (!(f < 0))
|
|
23726
23726
|
return n = u.multiplyByScalar(s, f, n), u.add(i, n, n);
|
|
23727
23727
|
};
|
|
23728
|
-
const
|
|
23728
|
+
const D2 = new u(), O2 = new u(), Zp = new u(), yl = new u(), Tl = new u();
|
|
23729
23729
|
Me.rayTriangleParametric = function(e, t, n, i, s) {
|
|
23730
23730
|
if (!l(e))
|
|
23731
23731
|
throw new C("ray is required.");
|
|
@@ -23736,7 +23736,7 @@ Me.rayTriangleParametric = function(e, t, n, i, s) {
|
|
|
23736
23736
|
if (!l(i))
|
|
23737
23737
|
throw new C("p2 is required.");
|
|
23738
23738
|
s = g(s, !1);
|
|
23739
|
-
const a = e.origin, r = e.direction, f = u.subtract(n, t,
|
|
23739
|
+
const a = e.origin, r = e.direction, f = u.subtract(n, t, D2), c = u.subtract(i, t, O2), h = u.cross(r, c, Zp), d = u.dot(f, h);
|
|
23740
23740
|
let p, m, y, T, w;
|
|
23741
23741
|
if (s) {
|
|
23742
23742
|
if (d < S.EPSILON6 || (p = u.subtract(a, t, yl), y = u.dot(p, h), y < 0 || y > d) || (m = u.cross(p, f, Tl), T = u.dot(r, m), T < 0 || y + T > d))
|
|
@@ -23763,7 +23763,7 @@ Me.rayTriangle = function(e, t, n, i, s, a) {
|
|
|
23763
23763
|
if (!(!l(r) || r < 0))
|
|
23764
23764
|
return l(a) || (a = new u()), u.multiplyByScalar(e.direction, r, a), u.add(e.origin, a, a);
|
|
23765
23765
|
};
|
|
23766
|
-
const
|
|
23766
|
+
const v2 = new Hs();
|
|
23767
23767
|
Me.lineSegmentTriangle = function(e, t, n, i, s, a, r) {
|
|
23768
23768
|
if (!l(e))
|
|
23769
23769
|
throw new C("v0 is required.");
|
|
@@ -23775,7 +23775,7 @@ Me.lineSegmentTriangle = function(e, t, n, i, s, a, r) {
|
|
|
23775
23775
|
throw new C("p1 is required.");
|
|
23776
23776
|
if (!l(s))
|
|
23777
23777
|
throw new C("p2 is required.");
|
|
23778
|
-
const f =
|
|
23778
|
+
const f = v2;
|
|
23779
23779
|
u.clone(e, f.origin), u.subtract(t, e, f.direction), u.normalize(f.direction, f.direction);
|
|
23780
23780
|
const c = Me.rayTriangleParametric(
|
|
23781
23781
|
f,
|
|
@@ -23787,7 +23787,7 @@ Me.lineSegmentTriangle = function(e, t, n, i, s, a, r) {
|
|
|
23787
23787
|
if (!(!l(c) || c < 0 || c > u.distance(e, t)))
|
|
23788
23788
|
return l(r) || (r = new u()), u.multiplyByScalar(f.direction, c, r), u.add(f.origin, r, r);
|
|
23789
23789
|
};
|
|
23790
|
-
function
|
|
23790
|
+
function W2(e, t, n, i) {
|
|
23791
23791
|
const s = t * t - 4 * e * n;
|
|
23792
23792
|
if (s < 0)
|
|
23793
23793
|
return;
|
|
@@ -23799,13 +23799,13 @@ function WA(e, t, n, i) {
|
|
|
23799
23799
|
if (a !== 0)
|
|
23800
23800
|
return i.root0 = i.root1 = a, i;
|
|
23801
23801
|
}
|
|
23802
|
-
const
|
|
23802
|
+
const P2 = {
|
|
23803
23803
|
root0: 0,
|
|
23804
23804
|
root1: 0
|
|
23805
23805
|
};
|
|
23806
23806
|
function Kp(e, t, n) {
|
|
23807
23807
|
l(n) || (n = new rs());
|
|
23808
|
-
const i = e.origin, s = e.direction, a = t.center, r = t.radius * t.radius, f = u.subtract(i, a, Zp), c = u.dot(s, s), h = 2 * u.dot(s, f), d = u.magnitudeSquared(f) - r, p =
|
|
23808
|
+
const i = e.origin, s = e.direction, a = t.center, r = t.radius * t.radius, f = u.subtract(i, a, Zp), c = u.dot(s, s), h = 2 * u.dot(s, f), d = u.magnitudeSquared(f) - r, p = W2(c, h, d, P2);
|
|
23809
23809
|
if (l(p))
|
|
23810
23810
|
return n.start = p.root0, n.stop = p.root1, n;
|
|
23811
23811
|
}
|
|
@@ -23817,7 +23817,7 @@ Me.raySphere = function(e, t, n) {
|
|
|
23817
23817
|
if (n = Kp(e, t, n), !(!l(n) || n.stop < 0))
|
|
23818
23818
|
return n.start = Math.max(n.start, 0), n;
|
|
23819
23819
|
};
|
|
23820
|
-
const
|
|
23820
|
+
const B2 = new Hs();
|
|
23821
23821
|
Me.lineSegmentSphere = function(e, t, n, i) {
|
|
23822
23822
|
if (!l(e))
|
|
23823
23823
|
throw new C("p0 is required.");
|
|
@@ -23825,22 +23825,22 @@ Me.lineSegmentSphere = function(e, t, n, i) {
|
|
|
23825
23825
|
throw new C("p1 is required.");
|
|
23826
23826
|
if (!l(n))
|
|
23827
23827
|
throw new C("sphere is required.");
|
|
23828
|
-
const s =
|
|
23828
|
+
const s = B2;
|
|
23829
23829
|
u.clone(e, s.origin);
|
|
23830
23830
|
const a = u.subtract(t, e, s.direction), r = u.magnitude(a);
|
|
23831
23831
|
if (u.normalize(a, a), i = Kp(s, n, i), !(!l(i) || i.stop < 0 || i.start > r))
|
|
23832
23832
|
return i.start = Math.max(i.start, 0), i.stop = Math.min(i.stop, r), i;
|
|
23833
23833
|
};
|
|
23834
|
-
const
|
|
23834
|
+
const R2 = new u(), L2 = new u();
|
|
23835
23835
|
Me.rayEllipsoid = function(e, t) {
|
|
23836
23836
|
if (!l(e))
|
|
23837
23837
|
throw new C("ray is required.");
|
|
23838
23838
|
if (!l(t))
|
|
23839
23839
|
throw new C("ellipsoid is required.");
|
|
23840
|
-
const n = t.oneOverRadii, i = u.multiplyComponents(n, e.origin,
|
|
23840
|
+
const n = t.oneOverRadii, i = u.multiplyComponents(n, e.origin, R2), s = u.multiplyComponents(
|
|
23841
23841
|
n,
|
|
23842
23842
|
e.direction,
|
|
23843
|
-
|
|
23843
|
+
L2
|
|
23844
23844
|
), a = u.magnitudeSquared(i), r = u.dot(i, s);
|
|
23845
23845
|
let f, c, h, d, p;
|
|
23846
23846
|
if (a > 1) {
|
|
@@ -23922,7 +23922,7 @@ Me.quadraticVectorExpression = function(e, t, n, i, s) {
|
|
|
23922
23922
|
}
|
|
23923
23923
|
return y;
|
|
23924
23924
|
};
|
|
23925
|
-
const mc = new u(), Cl = new u(), wl = new u(), Lr = new u(),
|
|
23925
|
+
const mc = new u(), Cl = new u(), wl = new u(), Lr = new u(), z2 = new u(), N2 = new G(), F2 = new G(), M2 = new G(), U2 = new G(), k2 = new G(), Al = new G(), El = new G(), bl = new u(), V2 = new u(), G2 = new se();
|
|
23926
23926
|
Me.grazingAltitudeLocation = function(e, t) {
|
|
23927
23927
|
if (!l(e))
|
|
23928
23928
|
throw new C("ray is required.");
|
|
@@ -23943,9 +23943,9 @@ Me.grazingAltitudeLocation = function(e, t) {
|
|
|
23943
23943
|
), h = u.normalize(
|
|
23944
23944
|
u.cross(r, c, wl),
|
|
23945
23945
|
wl
|
|
23946
|
-
), d =
|
|
23946
|
+
), d = N2;
|
|
23947
23947
|
d[0] = r.x, d[1] = r.y, d[2] = r.z, d[3] = c.x, d[4] = c.y, d[5] = c.z, d[6] = h.x, d[7] = h.y, d[8] = h.z;
|
|
23948
|
-
const p = G.transpose(d,
|
|
23948
|
+
const p = G.transpose(d, F2), m = G.fromScale(t.radii, M2), y = G.fromScale(t.oneOverRadii, U2), T = k2;
|
|
23949
23949
|
T[0] = 0, T[1] = -i.z, T[2] = i.y, T[3] = i.z, T[4] = 0, T[5] = -i.x, T[6] = -i.y, T[7] = i.x, T[8] = 0;
|
|
23950
23950
|
const w = G.multiply(
|
|
23951
23951
|
G.multiply(p, y, Al),
|
|
@@ -23955,7 +23955,7 @@ Me.grazingAltitudeLocation = function(e, t) {
|
|
|
23955
23955
|
G.multiply(w, m, El),
|
|
23956
23956
|
d,
|
|
23957
23957
|
El
|
|
23958
|
-
), E = G.multiplyByVector(w, n,
|
|
23958
|
+
), E = G.multiplyByVector(w, n, z2), b = Me.quadraticVectorExpression(
|
|
23959
23959
|
A,
|
|
23960
23960
|
u.negate(E, mc),
|
|
23961
23961
|
0,
|
|
@@ -23965,7 +23965,7 @@ Me.grazingAltitudeLocation = function(e, t) {
|
|
|
23965
23965
|
let I, O;
|
|
23966
23966
|
const B = b.length;
|
|
23967
23967
|
if (B > 0) {
|
|
23968
|
-
let z = u.clone(u.ZERO,
|
|
23968
|
+
let z = u.clone(u.ZERO, V2), F = Number.NEGATIVE_INFINITY;
|
|
23969
23969
|
for (let U = 0; U < B; ++U) {
|
|
23970
23970
|
I = G.multiplyByVector(
|
|
23971
23971
|
m,
|
|
@@ -23980,14 +23980,14 @@ Me.grazingAltitudeLocation = function(e, t) {
|
|
|
23980
23980
|
}
|
|
23981
23981
|
const N = t.cartesianToCartographic(
|
|
23982
23982
|
z,
|
|
23983
|
-
|
|
23983
|
+
G2
|
|
23984
23984
|
);
|
|
23985
23985
|
return F = S.clamp(F, 0, 1), O = u.magnitude(
|
|
23986
23986
|
u.subtract(z, n, Lr)
|
|
23987
23987
|
) * Math.sqrt(1 - F * F), O = s ? -O : O, N.height = O, t.cartographicToCartesian(N, new u());
|
|
23988
23988
|
}
|
|
23989
23989
|
};
|
|
23990
|
-
const
|
|
23990
|
+
const q2 = new u();
|
|
23991
23991
|
Me.lineSegmentPlane = function(e, t, n, i) {
|
|
23992
23992
|
if (!l(e))
|
|
23993
23993
|
throw new C("endPoint0 is required.");
|
|
@@ -23999,7 +23999,7 @@ Me.lineSegmentPlane = function(e, t, n, i) {
|
|
|
23999
23999
|
const s = u.subtract(
|
|
24000
24000
|
t,
|
|
24001
24001
|
e,
|
|
24002
|
-
|
|
24002
|
+
q2
|
|
24003
24003
|
), a = n.normal, r = u.dot(a, s);
|
|
24004
24004
|
if (Math.abs(r) < S.EPSILON6)
|
|
24005
24005
|
return;
|
|
@@ -24202,13 +24202,13 @@ Object.defineProperties(oi.prototype, {
|
|
|
24202
24202
|
}
|
|
24203
24203
|
}
|
|
24204
24204
|
});
|
|
24205
|
-
const
|
|
24205
|
+
const H2 = new Qt();
|
|
24206
24206
|
oi.fromPoints = function(e, t) {
|
|
24207
24207
|
_.defined("cartesians", e);
|
|
24208
|
-
const n = Qt.fromPoints(e,
|
|
24208
|
+
const n = Qt.fromPoints(e, H2);
|
|
24209
24209
|
return new oi(n.center, t);
|
|
24210
24210
|
};
|
|
24211
|
-
const Qp = new
|
|
24211
|
+
const Qp = new Hs(), xa = new u();
|
|
24212
24212
|
oi.prototype.projectPointOntoPlane = function(e, t) {
|
|
24213
24213
|
_.defined("cartesian", e);
|
|
24214
24214
|
const n = Qp;
|
|
@@ -24270,10 +24270,10 @@ oi.prototype.projectPointsToNearestOnPlane = function(e, t) {
|
|
|
24270
24270
|
t[i] = this.projectPointToNearestOnPlane(e[i], t[i]);
|
|
24271
24271
|
return t;
|
|
24272
24272
|
};
|
|
24273
|
-
const
|
|
24273
|
+
const j2 = new u();
|
|
24274
24274
|
oi.prototype.projectPointOntoEllipsoid = function(e, t) {
|
|
24275
24275
|
_.defined("cartesian", e), l(t) || (t = new u());
|
|
24276
|
-
const n = this._ellipsoid, i = this._origin, s = this._xAxis, a = this._yAxis, r =
|
|
24276
|
+
const n = this._ellipsoid, i = this._origin, s = this._xAxis, a = this._yAxis, r = j2;
|
|
24277
24277
|
return u.multiplyByScalar(s, e.x, r), t = u.add(i, r, t), u.multiplyByScalar(a, e.y, r), u.add(t, r, t), n.scaleToGeocentricSurface(t, t), t;
|
|
24278
24278
|
};
|
|
24279
24279
|
oi.prototype.projectPointsOntoEllipsoid = function(e, t) {
|
|
@@ -24298,7 +24298,7 @@ ze.unpack = function(e, t, n) {
|
|
|
24298
24298
|
n.halfAxes
|
|
24299
24299
|
), n;
|
|
24300
24300
|
};
|
|
24301
|
-
const
|
|
24301
|
+
const Y2 = new u(), X2 = new u(), $2 = new u(), Z2 = new u(), K2 = new u(), Q2 = new u(), J2 = new G(), eA = {
|
|
24302
24302
|
unitary: new G(),
|
|
24303
24303
|
diagonal: new G()
|
|
24304
24304
|
};
|
|
@@ -24306,31 +24306,31 @@ ze.fromPoints = function(e, t) {
|
|
|
24306
24306
|
if (l(t) || (t = new ze()), !l(e) || e.length === 0)
|
|
24307
24307
|
return t.halfAxes = G.ZERO, t.center = u.ZERO, t;
|
|
24308
24308
|
let n;
|
|
24309
|
-
const i = e.length, s = u.clone(e[0],
|
|
24309
|
+
const i = e.length, s = u.clone(e[0], Y2);
|
|
24310
24310
|
for (n = 1; n < i; n++)
|
|
24311
24311
|
u.add(s, e[n], s);
|
|
24312
24312
|
const a = 1 / i;
|
|
24313
24313
|
u.multiplyByScalar(s, a, s);
|
|
24314
24314
|
let r = 0, f = 0, c = 0, h = 0, d = 0, p = 0, m;
|
|
24315
24315
|
for (n = 0; n < i; n++)
|
|
24316
|
-
m = u.subtract(e[n], s,
|
|
24316
|
+
m = u.subtract(e[n], s, X2), r += m.x * m.x, f += m.x * m.y, c += m.x * m.z, h += m.y * m.y, d += m.y * m.z, p += m.z * m.z;
|
|
24317
24317
|
r *= a, f *= a, c *= a, h *= a, d *= a, p *= a;
|
|
24318
|
-
const y =
|
|
24318
|
+
const y = J2;
|
|
24319
24319
|
y[0] = r, y[1] = f, y[2] = c, y[3] = f, y[4] = h, y[5] = d, y[6] = c, y[7] = d, y[8] = p;
|
|
24320
24320
|
const T = G.computeEigenDecomposition(
|
|
24321
24321
|
y,
|
|
24322
|
-
|
|
24322
|
+
eA
|
|
24323
24323
|
), w = G.clone(T.unitary, t.halfAxes);
|
|
24324
|
-
let A = G.getColumn(w, 0,
|
|
24324
|
+
let A = G.getColumn(w, 0, Z2), E = G.getColumn(w, 1, K2), b = G.getColumn(w, 2, Q2), I = -Number.MAX_VALUE, O = -Number.MAX_VALUE, B = -Number.MAX_VALUE, z = Number.MAX_VALUE, F = Number.MAX_VALUE, N = Number.MAX_VALUE;
|
|
24325
24325
|
for (n = 0; n < i; n++)
|
|
24326
24326
|
m = e[n], I = Math.max(u.dot(A, m), I), O = Math.max(u.dot(E, m), O), B = Math.max(u.dot(b, m), B), z = Math.min(u.dot(A, m), z), F = Math.min(u.dot(E, m), F), N = Math.min(u.dot(b, m), N);
|
|
24327
24327
|
A = u.multiplyByScalar(A, 0.5 * (z + I), A), E = u.multiplyByScalar(E, 0.5 * (F + O), E), b = u.multiplyByScalar(b, 0.5 * (N + B), b);
|
|
24328
24328
|
const U = u.add(A, E, t.center);
|
|
24329
24329
|
u.add(U, b, U);
|
|
24330
|
-
const M = $
|
|
24330
|
+
const M = $2;
|
|
24331
24331
|
return M.x = I - z, M.y = O - F, M.z = B - N, u.multiplyByScalar(M, 0.5, M), G.multiplyByScale(t.halfAxes, M, t.halfAxes), t;
|
|
24332
24332
|
};
|
|
24333
|
-
const Jp = new u(),
|
|
24333
|
+
const Jp = new u(), tA = new u();
|
|
24334
24334
|
function xl(e, t, n, i, s, a, r, f, c, h, d) {
|
|
24335
24335
|
if (!l(s) || !l(a) || !l(r) || !l(f) || !l(c) || !l(h))
|
|
24336
24336
|
throw new C(
|
|
@@ -24341,12 +24341,12 @@ function xl(e, t, n, i, s, a, r, f, c, h, d) {
|
|
|
24341
24341
|
G.setColumn(p, 0, t, p), G.setColumn(p, 1, n, p), G.setColumn(p, 2, i, p);
|
|
24342
24342
|
let m = Jp;
|
|
24343
24343
|
m.x = (s + a) / 2, m.y = (r + f) / 2, m.z = (c + h) / 2;
|
|
24344
|
-
const y =
|
|
24344
|
+
const y = tA;
|
|
24345
24345
|
y.x = (a - s) / 2, y.y = (f - r) / 2, y.z = (h - c) / 2;
|
|
24346
24346
|
const T = d.center;
|
|
24347
24347
|
return m = G.multiplyByVector(p, m, m), u.add(e, m, T), G.multiplyByScale(p, y, p), d;
|
|
24348
24348
|
}
|
|
24349
|
-
const Sl = new se(),
|
|
24349
|
+
const Sl = new se(), nA = new u(), iA = new se(), sA = new se(), oA = new se(), rA = new se(), aA = new se(), cA = new u(), Il = new u(), hA = new u(), Dl = new u(), fA = new u(), lA = new q(), uA = new q(), dA = new q(), pA = new q(), mA = new q(), _A = new u(), gA = new u(), yA = new u(), TA = new u(), CA = new q(), wA = new u(), AA = new u(), EA = new u(), bA = new Ue(u.UNIT_X, 0);
|
|
24350
24350
|
ze.fromRectangle = function(e, t, n, i, s) {
|
|
24351
24351
|
if (!l(e))
|
|
24352
24352
|
throw new C("rectangle is required");
|
|
@@ -24370,37 +24370,37 @@ ze.fromRectangle = function(e, t, n, i, s) {
|
|
|
24370
24370
|
Sl
|
|
24371
24371
|
), N = i.cartographicToCartesian(
|
|
24372
24372
|
F,
|
|
24373
|
-
|
|
24373
|
+
nA
|
|
24374
24374
|
), U = new oi(N, i);
|
|
24375
24375
|
p = U.plane;
|
|
24376
24376
|
const M = F.longitude, j = e.south < 0 && e.north > 0 ? 0 : F.latitude, Y = se.fromRadians(
|
|
24377
24377
|
M,
|
|
24378
24378
|
e.north,
|
|
24379
24379
|
n,
|
|
24380
|
-
|
|
24380
|
+
iA
|
|
24381
24381
|
), o = se.fromRadians(
|
|
24382
24382
|
e.west,
|
|
24383
24383
|
e.north,
|
|
24384
24384
|
n,
|
|
24385
|
-
|
|
24385
|
+
sA
|
|
24386
24386
|
), x = se.fromRadians(
|
|
24387
24387
|
e.west,
|
|
24388
24388
|
j,
|
|
24389
24389
|
n,
|
|
24390
|
-
|
|
24390
|
+
oA
|
|
24391
24391
|
), P = se.fromRadians(
|
|
24392
24392
|
e.west,
|
|
24393
24393
|
e.south,
|
|
24394
24394
|
n,
|
|
24395
|
-
|
|
24395
|
+
rA
|
|
24396
24396
|
), L = se.fromRadians(
|
|
24397
24397
|
M,
|
|
24398
24398
|
e.south,
|
|
24399
24399
|
n,
|
|
24400
|
-
|
|
24400
|
+
aA
|
|
24401
24401
|
), H = i.cartographicToCartesian(
|
|
24402
24402
|
Y,
|
|
24403
|
-
|
|
24403
|
+
cA
|
|
24404
24404
|
);
|
|
24405
24405
|
let X = i.cartographicToCartesian(
|
|
24406
24406
|
o,
|
|
@@ -24408,7 +24408,7 @@ ze.fromRectangle = function(e, t, n, i, s) {
|
|
|
24408
24408
|
);
|
|
24409
24409
|
const J = i.cartographicToCartesian(
|
|
24410
24410
|
x,
|
|
24411
|
-
|
|
24411
|
+
hA
|
|
24412
24412
|
);
|
|
24413
24413
|
let K = i.cartographicToCartesian(
|
|
24414
24414
|
P,
|
|
@@ -24416,22 +24416,22 @@ ze.fromRectangle = function(e, t, n, i, s) {
|
|
|
24416
24416
|
);
|
|
24417
24417
|
const ce = i.cartographicToCartesian(
|
|
24418
24418
|
L,
|
|
24419
|
-
|
|
24419
|
+
fA
|
|
24420
24420
|
), le = U.projectPointToNearestOnPlane(
|
|
24421
24421
|
H,
|
|
24422
|
-
|
|
24422
|
+
lA
|
|
24423
24423
|
), Ce = U.projectPointToNearestOnPlane(
|
|
24424
24424
|
X,
|
|
24425
|
-
|
|
24425
|
+
uA
|
|
24426
24426
|
), xe = U.projectPointToNearestOnPlane(
|
|
24427
24427
|
J,
|
|
24428
|
-
|
|
24428
|
+
dA
|
|
24429
24429
|
), Ae = U.projectPointToNearestOnPlane(
|
|
24430
24430
|
K,
|
|
24431
|
-
|
|
24431
|
+
pA
|
|
24432
24432
|
), Le = U.projectPointToNearestOnPlane(
|
|
24433
24433
|
ce,
|
|
24434
|
-
|
|
24434
|
+
mA
|
|
24435
24435
|
);
|
|
24436
24436
|
return a = Math.min(
|
|
24437
24437
|
Ce.x,
|
|
@@ -24468,27 +24468,27 @@ ze.fromRectangle = function(e, t, n, i, s) {
|
|
|
24468
24468
|
T,
|
|
24469
24469
|
n,
|
|
24470
24470
|
i,
|
|
24471
|
-
|
|
24471
|
+
_A
|
|
24472
24472
|
);
|
|
24473
24473
|
A.z = 0;
|
|
24474
|
-
const b = Math.abs(A.x) < S.EPSILON10 && Math.abs(A.y) < S.EPSILON10 ? u.UNIT_X : u.normalize(A,
|
|
24474
|
+
const b = Math.abs(A.x) < S.EPSILON10 && Math.abs(A.y) < S.EPSILON10 ? u.UNIT_X : u.normalize(A, gA), I = u.UNIT_Z, O = u.cross(
|
|
24475
24475
|
b,
|
|
24476
24476
|
I,
|
|
24477
|
-
|
|
24477
|
+
yA
|
|
24478
24478
|
);
|
|
24479
|
-
p = Ue.fromPointNormal(A, b,
|
|
24479
|
+
p = Ue.fromPointNormal(A, b, bA);
|
|
24480
24480
|
const B = u.fromRadians(
|
|
24481
24481
|
w + S.PI_OVER_TWO,
|
|
24482
24482
|
T,
|
|
24483
24483
|
n,
|
|
24484
24484
|
i,
|
|
24485
|
-
|
|
24485
|
+
TA
|
|
24486
24486
|
);
|
|
24487
24487
|
r = u.dot(
|
|
24488
24488
|
Ue.projectPointOntoPlane(
|
|
24489
24489
|
p,
|
|
24490
24490
|
B,
|
|
24491
|
-
|
|
24491
|
+
CA
|
|
24492
24492
|
),
|
|
24493
24493
|
O
|
|
24494
24494
|
), a = -r, c = u.fromRadians(
|
|
@@ -24496,20 +24496,20 @@ ze.fromRectangle = function(e, t, n, i, s) {
|
|
|
24496
24496
|
e.north,
|
|
24497
24497
|
y ? t : n,
|
|
24498
24498
|
i,
|
|
24499
|
-
|
|
24499
|
+
wA
|
|
24500
24500
|
).z, f = u.fromRadians(
|
|
24501
24501
|
0,
|
|
24502
24502
|
e.south,
|
|
24503
24503
|
m ? t : n,
|
|
24504
24504
|
i,
|
|
24505
|
-
|
|
24505
|
+
AA
|
|
24506
24506
|
).z;
|
|
24507
24507
|
const z = u.fromRadians(
|
|
24508
24508
|
e.east,
|
|
24509
24509
|
T,
|
|
24510
24510
|
n,
|
|
24511
24511
|
i,
|
|
24512
|
-
|
|
24512
|
+
EA
|
|
24513
24513
|
);
|
|
24514
24514
|
return h = Ue.getPointDistance(p, z), d = 0, xl(
|
|
24515
24515
|
A,
|
|
@@ -24550,7 +24550,7 @@ ze.intersectPlane = function(e, t) {
|
|
|
24550
24550
|
), h = u.dot(i, n) + t.distance;
|
|
24551
24551
|
return h <= -c ? Dt.OUTSIDE : h >= c ? Dt.INSIDE : Dt.INTERSECTING;
|
|
24552
24552
|
};
|
|
24553
|
-
const em = new u(), tm = new u(), nm = new u(),
|
|
24553
|
+
const em = new u(), tm = new u(), nm = new u(), xA = new u(), Ol = new u(), SA = new u();
|
|
24554
24554
|
ze.distanceSquaredTo = function(e, t) {
|
|
24555
24555
|
if (!l(e))
|
|
24556
24556
|
throw new C("box is required.");
|
|
@@ -24569,14 +24569,14 @@ ze.distanceSquaredTo = function(e, t) {
|
|
|
24569
24569
|
} else if (y === 2) {
|
|
24570
24570
|
T = s, p ? T = a : m && (T = r);
|
|
24571
24571
|
let O = u.UNIT_Y;
|
|
24572
|
-
O.equalsEpsilon(T, S.EPSILON3) && (O = u.UNIT_X), w = u.cross(T, O,
|
|
24572
|
+
O.equalsEpsilon(T, S.EPSILON3) && (O = u.UNIT_X), w = u.cross(T, O, xA), u.normalize(w, w), A = u.cross(T, w, Ol), u.normalize(A, A), T === s ? (a = w, r = A) : T === a ? (r = w, s = A) : T === r && (s = w, a = A);
|
|
24573
24573
|
} else y === 3 && (s = u.UNIT_X, a = u.UNIT_Y, r = u.UNIT_Z);
|
|
24574
|
-
const E =
|
|
24574
|
+
const E = SA;
|
|
24575
24575
|
E.x = u.dot(n, s), E.y = u.dot(n, a), E.z = u.dot(n, r);
|
|
24576
24576
|
let b = 0, I;
|
|
24577
24577
|
return E.x < -f ? (I = E.x + f, b += I * I) : E.x > f && (I = E.x - f, b += I * I), E.y < -c ? (I = E.y + c, b += I * I) : E.y > c && (I = E.y - c, b += I * I), E.z < -h ? (I = E.z + h, b += I * I) : E.z > h && (I = E.z - h, b += I * I), b;
|
|
24578
24578
|
};
|
|
24579
|
-
const
|
|
24579
|
+
const IA = new u(), DA = new u();
|
|
24580
24580
|
ze.computePlaneDistances = function(e, t, n, i) {
|
|
24581
24581
|
if (!l(e))
|
|
24582
24582
|
throw new C("box is required.");
|
|
@@ -24586,13 +24586,13 @@ ze.computePlaneDistances = function(e, t, n, i) {
|
|
|
24586
24586
|
throw new C("direction is required.");
|
|
24587
24587
|
l(i) || (i = new rs());
|
|
24588
24588
|
let s = Number.POSITIVE_INFINITY, a = Number.NEGATIVE_INFINITY;
|
|
24589
|
-
const r = e.center, f = e.halfAxes, c = G.getColumn(f, 0, em), h = G.getColumn(f, 1, tm), d = G.getColumn(f, 2, nm), p = u.add(c, h,
|
|
24589
|
+
const r = e.center, f = e.halfAxes, c = G.getColumn(f, 0, em), h = G.getColumn(f, 1, tm), d = G.getColumn(f, 2, nm), p = u.add(c, h, IA);
|
|
24590
24590
|
u.add(p, d, p), u.add(p, r, p);
|
|
24591
|
-
const m = u.subtract(p, t,
|
|
24591
|
+
const m = u.subtract(p, t, DA);
|
|
24592
24592
|
let y = u.dot(n, m);
|
|
24593
24593
|
return s = Math.min(y, s), a = Math.max(y, a), u.add(r, c, p), u.add(p, h, p), u.subtract(p, d, p), u.subtract(p, t, m), y = u.dot(n, m), s = Math.min(y, s), a = Math.max(y, a), u.add(r, c, p), u.subtract(p, h, p), u.add(p, d, p), u.subtract(p, t, m), y = u.dot(n, m), s = Math.min(y, s), a = Math.max(y, a), u.add(r, c, p), u.subtract(p, h, p), u.subtract(p, d, p), u.subtract(p, t, m), y = u.dot(n, m), s = Math.min(y, s), a = Math.max(y, a), u.subtract(r, c, p), u.add(p, h, p), u.add(p, d, p), u.subtract(p, t, m), y = u.dot(n, m), s = Math.min(y, s), a = Math.max(y, a), u.subtract(r, c, p), u.add(p, h, p), u.subtract(p, d, p), u.subtract(p, t, m), y = u.dot(n, m), s = Math.min(y, s), a = Math.max(y, a), u.subtract(r, c, p), u.subtract(p, h, p), u.add(p, d, p), u.subtract(p, t, m), y = u.dot(n, m), s = Math.min(y, s), a = Math.max(y, a), u.subtract(r, c, p), u.subtract(p, h, p), u.subtract(p, d, p), u.subtract(p, t, m), y = u.dot(n, m), s = Math.min(y, s), a = Math.max(y, a), i.start = s, i.stop = a, i;
|
|
24594
24594
|
};
|
|
24595
|
-
const
|
|
24595
|
+
const OA = new u(), vA = new u(), WA = new u();
|
|
24596
24596
|
ze.computeCorners = function(e, t) {
|
|
24597
24597
|
_.typeOf.object("box", e), l(t) || (t = [
|
|
24598
24598
|
new u(),
|
|
@@ -24604,20 +24604,20 @@ ze.computeCorners = function(e, t) {
|
|
|
24604
24604
|
new u(),
|
|
24605
24605
|
new u()
|
|
24606
24606
|
]);
|
|
24607
|
-
const n = e.center, i = e.halfAxes, s = G.getColumn(i, 0,
|
|
24607
|
+
const n = e.center, i = e.halfAxes, s = G.getColumn(i, 0, OA), a = G.getColumn(i, 1, vA), r = G.getColumn(i, 2, WA);
|
|
24608
24608
|
return u.clone(n, t[0]), u.subtract(t[0], s, t[0]), u.subtract(t[0], a, t[0]), u.subtract(t[0], r, t[0]), u.clone(n, t[1]), u.subtract(t[1], s, t[1]), u.subtract(t[1], a, t[1]), u.add(t[1], r, t[1]), u.clone(n, t[2]), u.subtract(t[2], s, t[2]), u.add(t[2], a, t[2]), u.subtract(t[2], r, t[2]), u.clone(n, t[3]), u.subtract(t[3], s, t[3]), u.add(t[3], a, t[3]), u.add(t[3], r, t[3]), u.clone(n, t[4]), u.add(t[4], s, t[4]), u.subtract(t[4], a, t[4]), u.subtract(t[4], r, t[4]), u.clone(n, t[5]), u.add(t[5], s, t[5]), u.subtract(t[5], a, t[5]), u.add(t[5], r, t[5]), u.clone(n, t[6]), u.add(t[6], s, t[6]), u.add(t[6], a, t[6]), u.subtract(t[6], r, t[6]), u.clone(n, t[7]), u.add(t[7], s, t[7]), u.add(t[7], a, t[7]), u.add(t[7], r, t[7]), t;
|
|
24609
24609
|
};
|
|
24610
|
-
const
|
|
24610
|
+
const PA = new G();
|
|
24611
24611
|
ze.computeTransformation = function(e, t) {
|
|
24612
24612
|
_.typeOf.object("box", e), l(t) || (t = new V());
|
|
24613
24613
|
const n = e.center, i = G.multiplyByUniformScale(
|
|
24614
24614
|
e.halfAxes,
|
|
24615
24615
|
2,
|
|
24616
|
-
|
|
24616
|
+
PA
|
|
24617
24617
|
);
|
|
24618
24618
|
return V.fromRotationTranslation(i, n, t);
|
|
24619
24619
|
};
|
|
24620
|
-
const
|
|
24620
|
+
const BA = new te();
|
|
24621
24621
|
ze.isOccluded = function(e, t) {
|
|
24622
24622
|
if (!l(e))
|
|
24623
24623
|
throw new C("box is required.");
|
|
@@ -24625,7 +24625,7 @@ ze.isOccluded = function(e, t) {
|
|
|
24625
24625
|
throw new C("occluder is required.");
|
|
24626
24626
|
const n = te.fromOrientedBoundingBox(
|
|
24627
24627
|
e,
|
|
24628
|
-
|
|
24628
|
+
BA
|
|
24629
24629
|
);
|
|
24630
24630
|
return !t.isBoundingSphereVisible(n);
|
|
24631
24631
|
};
|
|
@@ -24669,11 +24669,11 @@ No.getHeight = function(e, t, n) {
|
|
|
24669
24669
|
throw new C("relativeHeight must be a finite number.");
|
|
24670
24670
|
return (e - n) * t + n;
|
|
24671
24671
|
};
|
|
24672
|
-
const
|
|
24672
|
+
const RA = new se();
|
|
24673
24673
|
No.getPosition = function(e, t, n, i, s) {
|
|
24674
24674
|
const a = t.cartesianToCartographic(
|
|
24675
24675
|
e,
|
|
24676
|
-
|
|
24676
|
+
RA
|
|
24677
24677
|
);
|
|
24678
24678
|
if (!l(a))
|
|
24679
24679
|
return u.clone(e, s);
|
|
@@ -24690,7 +24690,7 @@ No.getPosition = function(e, t, n, i, s) {
|
|
|
24690
24690
|
s
|
|
24691
24691
|
);
|
|
24692
24692
|
};
|
|
24693
|
-
const
|
|
24693
|
+
const LA = `in vec3 position3DHigh;
|
|
24694
24694
|
in vec3 position3DLow;
|
|
24695
24695
|
in float batchId;
|
|
24696
24696
|
|
|
@@ -24791,7 +24791,7 @@ void main()
|
|
|
24791
24791
|
|
|
24792
24792
|
gl_Position = czm_depthClamp(czm_modelViewProjectionRelativeToEye * position);
|
|
24793
24793
|
}
|
|
24794
|
-
`,
|
|
24794
|
+
`, zA = `#ifdef VECTOR_TILE
|
|
24795
24795
|
uniform vec4 u_highlightColor;
|
|
24796
24796
|
#endif
|
|
24797
24797
|
|
|
@@ -24828,7 +24828,7 @@ void main(void)
|
|
|
24828
24828
|
BOTH: 2
|
|
24829
24829
|
};
|
|
24830
24830
|
im.NUMBER_OF_CLASSIFICATION_TYPES = 3;
|
|
24831
|
-
const Si = Object.freeze(im),
|
|
24831
|
+
const Si = Object.freeze(im), NA = {
|
|
24832
24832
|
/**
|
|
24833
24833
|
* The depth test never passes.
|
|
24834
24834
|
*
|
|
@@ -24885,8 +24885,8 @@ const Si = Object.freeze(im), N2 = {
|
|
|
24885
24885
|
* @constant
|
|
24886
24886
|
*/
|
|
24887
24887
|
ALWAYS: R.ALWAYS
|
|
24888
|
-
}, sm = Object.freeze(
|
|
24889
|
-
function
|
|
24888
|
+
}, sm = Object.freeze(NA);
|
|
24889
|
+
function FA(e, t) {
|
|
24890
24890
|
if (!l(e))
|
|
24891
24891
|
throw new C("array is required.");
|
|
24892
24892
|
if (!l(t) || t < 1)
|
|
@@ -24908,7 +24908,7 @@ function vi(e, t, n) {
|
|
|
24908
24908
|
throw new C("numberOfInstances is required");
|
|
24909
24909
|
if (this._attributes = t, this._numberOfInstances = n, t.length === 0)
|
|
24910
24910
|
return;
|
|
24911
|
-
const i =
|
|
24911
|
+
const i = MA(t), s = e.floatingPointTexture, a = i === ye.FLOAT && !s, r = UA(t, a), f = kA(r, t, a), c = Math.floor(
|
|
24912
24912
|
Se.maximumTextureSize / f
|
|
24913
24913
|
), h = Math.min(
|
|
24914
24914
|
n,
|
|
@@ -24942,7 +24942,7 @@ Object.defineProperties(vi.prototype, {
|
|
|
24942
24942
|
}
|
|
24943
24943
|
}
|
|
24944
24944
|
});
|
|
24945
|
-
function
|
|
24945
|
+
function MA(e) {
|
|
24946
24946
|
let t = !1;
|
|
24947
24947
|
const n = e.length;
|
|
24948
24948
|
for (let i = 0; i < n; ++i)
|
|
@@ -24956,7 +24956,7 @@ function om(e, t) {
|
|
|
24956
24956
|
const n = e[t].componentsPerAttribute;
|
|
24957
24957
|
return n === 2 ? q : n === 3 ? u : n === 4 ? Z : Number;
|
|
24958
24958
|
}
|
|
24959
|
-
function
|
|
24959
|
+
function UA(e, t) {
|
|
24960
24960
|
const n = new Array(e.length);
|
|
24961
24961
|
let i = 0;
|
|
24962
24962
|
const s = e.length;
|
|
@@ -24966,12 +24966,12 @@ function U2(e, t) {
|
|
|
24966
24966
|
}
|
|
24967
24967
|
return n;
|
|
24968
24968
|
}
|
|
24969
|
-
function
|
|
24969
|
+
function kA(e, t, n) {
|
|
24970
24970
|
const i = e.length, s = e[i - 1];
|
|
24971
24971
|
return t[i - 1].componentDatatype !== he.UNSIGNED_BYTE && n ? s + 4 : s + 1;
|
|
24972
24972
|
}
|
|
24973
24973
|
const Ao = new Z();
|
|
24974
|
-
function
|
|
24974
|
+
function VA(e, t, n) {
|
|
24975
24975
|
let i = Z.unpack(e, t, Ao);
|
|
24976
24976
|
const s = Z.unpackFloat(i);
|
|
24977
24977
|
i = Z.unpack(e, t + 4, Ao);
|
|
@@ -24982,7 +24982,7 @@ function V2(e, t, n) {
|
|
|
24982
24982
|
const f = Z.unpackFloat(i);
|
|
24983
24983
|
return Z.fromElements(s, a, r, f, n);
|
|
24984
24984
|
}
|
|
24985
|
-
function
|
|
24985
|
+
function GA(e, t, n) {
|
|
24986
24986
|
let i = Z.packFloat(e.x, Ao);
|
|
24987
24987
|
Z.pack(i, t, n), i = Z.packFloat(e.y, i), Z.pack(i, t, n + 4), i = Z.packFloat(e.z, i), Z.pack(i, t, n + 8), i = Z.packFloat(e.w, i), Z.pack(i, t, n + 12);
|
|
24988
24988
|
}
|
|
@@ -24994,7 +24994,7 @@ vi.prototype.getBatchedAttribute = function(e, t, n) {
|
|
|
24994
24994
|
throw new C("attributeIndex is out of range");
|
|
24995
24995
|
const i = this._attributes, s = this._offsets[t], r = 4 * this._stride * e + 4 * s;
|
|
24996
24996
|
let f;
|
|
24997
|
-
this._packFloats && i[t].componentDatatype !== ye.UNSIGNED_BYTE ? f =
|
|
24997
|
+
this._packFloats && i[t].componentDatatype !== ye.UNSIGNED_BYTE ? f = VA(
|
|
24998
24998
|
this._batchValues,
|
|
24999
24999
|
r,
|
|
25000
25000
|
vl
|
|
@@ -25006,13 +25006,13 @@ vi.prototype.getBatchedAttribute = function(e, t, n) {
|
|
|
25006
25006
|
const c = om(i, t);
|
|
25007
25007
|
return l(c.fromCartesian4) ? c.fromCartesian4(f, n) : l(c.clone) ? c.clone(f, n) : f.x;
|
|
25008
25008
|
};
|
|
25009
|
-
const
|
|
25009
|
+
const qA = [
|
|
25010
25010
|
void 0,
|
|
25011
25011
|
void 0,
|
|
25012
25012
|
new q(),
|
|
25013
25013
|
new u(),
|
|
25014
25014
|
new Z()
|
|
25015
|
-
],
|
|
25015
|
+
], HA = new Z();
|
|
25016
25016
|
vi.prototype.setBatchedAttribute = function(e, t, n) {
|
|
25017
25017
|
if (e < 0 || e >= this._numberOfInstances)
|
|
25018
25018
|
throw new C("instanceIndex is out of range.");
|
|
@@ -25020,19 +25020,19 @@ vi.prototype.setBatchedAttribute = function(e, t, n) {
|
|
|
25020
25020
|
throw new C("attributeIndex is out of range");
|
|
25021
25021
|
if (!l(n))
|
|
25022
25022
|
throw new C("value is required.");
|
|
25023
|
-
const i = this._attributes, s =
|
|
25023
|
+
const i = this._attributes, s = qA[i[t].componentsPerAttribute], a = this.getBatchedAttribute(
|
|
25024
25024
|
e,
|
|
25025
25025
|
t,
|
|
25026
25026
|
s
|
|
25027
25027
|
), r = om(this._attributes, t);
|
|
25028
25028
|
if (l(r.equals) ? r.equals(a, n) : a === n)
|
|
25029
25029
|
return;
|
|
25030
|
-
const c =
|
|
25030
|
+
const c = HA;
|
|
25031
25031
|
c.x = l(n.x) ? n.x : n, c.y = l(n.y) ? n.y : 0, c.z = l(n.z) ? n.z : 0, c.w = l(n.w) ? n.w : 0;
|
|
25032
25032
|
const h = this._offsets[t], p = 4 * this._stride * e + 4 * h;
|
|
25033
|
-
this._packFloats && i[t].componentDatatype !== ye.UNSIGNED_BYTE ?
|
|
25033
|
+
this._packFloats && i[t].componentDatatype !== ye.UNSIGNED_BYTE ? GA(c, this._batchValues, p) : Z.pack(c, this._batchValues, p), this._batchValuesDirty = !0;
|
|
25034
25034
|
};
|
|
25035
|
-
function
|
|
25035
|
+
function jA(e, t) {
|
|
25036
25036
|
const n = e._textureDimensions;
|
|
25037
25037
|
e._texture = new Nt({
|
|
25038
25038
|
context: t,
|
|
@@ -25044,7 +25044,7 @@ function j2(e, t) {
|
|
|
25044
25044
|
flipY: !1
|
|
25045
25045
|
});
|
|
25046
25046
|
}
|
|
25047
|
-
function
|
|
25047
|
+
function YA(e) {
|
|
25048
25048
|
const t = e._textureDimensions;
|
|
25049
25049
|
e._texture.copyFrom({
|
|
25050
25050
|
source: {
|
|
@@ -25055,7 +25055,7 @@ function Y2(e) {
|
|
|
25055
25055
|
});
|
|
25056
25056
|
}
|
|
25057
25057
|
vi.prototype.update = function(e) {
|
|
25058
|
-
l(this._texture) && !this._batchValuesDirty || this._attributes.length === 0 || (this._batchValuesDirty = !1, l(this._texture) ||
|
|
25058
|
+
l(this._texture) && !this._batchValuesDirty || this._attributes.length === 0 || (this._batchValuesDirty = !1, l(this._texture) || jA(this, e.context), YA(this));
|
|
25059
25059
|
};
|
|
25060
25060
|
vi.prototype.getUniformMapCallback = function() {
|
|
25061
25061
|
const e = this;
|
|
@@ -25073,7 +25073,7 @@ vi.prototype.getUniformMapCallback = function() {
|
|
|
25073
25073
|
});
|
|
25074
25074
|
};
|
|
25075
25075
|
};
|
|
25076
|
-
function
|
|
25076
|
+
function XA(e) {
|
|
25077
25077
|
const t = e._stride;
|
|
25078
25078
|
return e._textureDimensions.y === 1 ? `uniform vec4 batchTextureStep;
|
|
25079
25079
|
vec2 computeSt(float batchId)
|
|
@@ -25098,14 +25098,14 @@ vec2 computeSt(float batchId)
|
|
|
25098
25098
|
}
|
|
25099
25099
|
`;
|
|
25100
25100
|
}
|
|
25101
|
-
function $
|
|
25101
|
+
function $A(e) {
|
|
25102
25102
|
return e === 1 ? "float" : `vec${e}`;
|
|
25103
25103
|
}
|
|
25104
|
-
function
|
|
25104
|
+
function ZA(e) {
|
|
25105
25105
|
return e === 1 ? ".x" : e === 2 ? ".xy" : e === 3 ? ".xyz" : "";
|
|
25106
25106
|
}
|
|
25107
|
-
function
|
|
25108
|
-
const i = e._attributes[t], s = i.componentsPerAttribute, a = i.functionName, r = $
|
|
25107
|
+
function KA(e, t) {
|
|
25108
|
+
const i = e._attributes[t], s = i.componentsPerAttribute, a = i.functionName, r = $A(s), f = ZA(s), c = e._offsets[t];
|
|
25109
25109
|
let h = `${r} ${a}(float batchId)
|
|
25110
25110
|
{
|
|
25111
25111
|
vec2 st = computeSt(batchId);
|
|
@@ -25132,11 +25132,11 @@ vi.prototype.getVertexShaderCallback = function() {
|
|
|
25132
25132
|
};
|
|
25133
25133
|
let t = `uniform highp sampler2D batchTexture;
|
|
25134
25134
|
`;
|
|
25135
|
-
t += `${
|
|
25135
|
+
t += `${XA(this)}
|
|
25136
25136
|
`;
|
|
25137
25137
|
const n = e.length;
|
|
25138
25138
|
for (let i = 0; i < n; ++i)
|
|
25139
|
-
t +=
|
|
25139
|
+
t += KA(this, i);
|
|
25140
25140
|
return function(i) {
|
|
25141
25141
|
const s = i.indexOf("void main"), a = i.substring(0, s), r = i.substring(s);
|
|
25142
25142
|
return `${a}
|
|
@@ -25277,7 +25277,7 @@ Ve.getGlslType = function(e) {
|
|
|
25277
25277
|
throw new C("attributeType is not a valid value.");
|
|
25278
25278
|
}
|
|
25279
25279
|
};
|
|
25280
|
-
const
|
|
25280
|
+
const QA = Object.freeze(Ve), Wl = 1 / 256, Pl = 256, De = {};
|
|
25281
25281
|
De.octEncodeInRange = function(e, t, n) {
|
|
25282
25282
|
_.defined("vector", e), _.defined("result", n);
|
|
25283
25283
|
const i = u.magnitudeSquared(e);
|
|
@@ -25380,7 +25380,7 @@ De.zigZagDeltaDecode = function(e, t, n) {
|
|
|
25380
25380
|
};
|
|
25381
25381
|
De.dequantize = function(e, t, n, i) {
|
|
25382
25382
|
_.defined("typedArray", e), _.defined("componentDatatype", t), _.defined("type", n), _.defined("count", i);
|
|
25383
|
-
const s =
|
|
25383
|
+
const s = QA.getNumberOfComponents(n);
|
|
25384
25384
|
let a;
|
|
25385
25385
|
switch (t) {
|
|
25386
25386
|
case he.BYTE:
|
|
@@ -25438,7 +25438,7 @@ De.decodeRGB565 = function(e, t) {
|
|
|
25438
25438
|
return t;
|
|
25439
25439
|
};
|
|
25440
25440
|
const Rl = new u(), Ll = new u(), zl = new u();
|
|
25441
|
-
function
|
|
25441
|
+
function JA(e, t, n, i, s) {
|
|
25442
25442
|
_.defined("point", e), _.defined("p0", t), _.defined("p1", n), _.defined("p2", i), l(s) || (s = new u());
|
|
25443
25443
|
let a, r, f, c, h, d, p, m;
|
|
25444
25444
|
if (l(t.z)) {
|
|
@@ -26050,7 +26050,7 @@ $e.combineInstances = function(e) {
|
|
|
26050
26050
|
wc(n, "eastHemisphereGeometry")
|
|
26051
26051
|
)), s;
|
|
26052
26052
|
};
|
|
26053
|
-
const En = new u(), ho = new u(),
|
|
26053
|
+
const En = new u(), ho = new u(), Ds = new u(), Os = new u();
|
|
26054
26054
|
$e.computeNormal = function(e) {
|
|
26055
26055
|
if (!l(e))
|
|
26056
26056
|
throw new C("geometry is required.");
|
|
@@ -26079,7 +26079,7 @@ $e.computeNormal = function(e) {
|
|
|
26079
26079
|
let d = 0;
|
|
26080
26080
|
for (h = 0; h < a; h += 3) {
|
|
26081
26081
|
const T = t[h], w = t[h + 1], A = t[h + 2], E = T * 3, b = w * 3, I = A * 3;
|
|
26082
|
-
ho.x = i[E], ho.y = i[E + 1], ho.z = i[E + 2],
|
|
26082
|
+
ho.x = i[E], ho.y = i[E + 1], ho.z = i[E + 2], Ds.x = i[b], Ds.y = i[b + 1], Ds.z = i[b + 2], Os.x = i[I], Os.y = i[I + 1], Os.z = i[I + 2], r[T].count++, r[w].count++, r[A].count++, u.subtract(Ds, ho, Ds), u.subtract(Os, ho, Os), f[d] = u.cross(Ds, Os, new u()), d++;
|
|
26083
26083
|
}
|
|
26084
26084
|
let p = 0;
|
|
26085
26085
|
for (h = 0; h < s; h++)
|
|
@@ -26388,7 +26388,7 @@ function Gl(e, t) {
|
|
|
26388
26388
|
n.position.values
|
|
26389
26389
|
)), e;
|
|
26390
26390
|
}
|
|
26391
|
-
function
|
|
26391
|
+
function js(e) {
|
|
26392
26392
|
const t = e.attributes, n = {};
|
|
26393
26393
|
for (const i in t)
|
|
26394
26394
|
if (t.hasOwnProperty(i) && l(t[i]) && l(t[i].values)) {
|
|
@@ -26451,7 +26451,7 @@ const yE = cf(
|
|
|
26451
26451
|
function Ur(e, t, n, i, s, a, r, f, c, h, d, p, m, y, T, w) {
|
|
26452
26452
|
if (!l(a) && !l(r) && !l(f) && !l(c) && !l(h) && y === 0)
|
|
26453
26453
|
return;
|
|
26454
|
-
const A = u.fromArray(s, e * 3, So), E = u.fromArray(s, t * 3, dh), b = u.fromArray(s, n * 3, ph), I =
|
|
26454
|
+
const A = u.fromArray(s, e * 3, So), E = u.fromArray(s, t * 3, dh), b = u.fromArray(s, n * 3, ph), I = JA(i, A, E, b, CE);
|
|
26455
26455
|
if (l(I)) {
|
|
26456
26456
|
if (l(a) && aa(
|
|
26457
26457
|
e,
|
|
@@ -26585,7 +26585,7 @@ function ql(e) {
|
|
|
26585
26585
|
const t = e.geometry, n = t.attributes, i = n.position.values, s = l(n.normal) ? n.normal.values : void 0, a = l(n.bitangent) ? n.bitangent.values : void 0, r = l(n.tangent) ? n.tangent.values : void 0, f = l(n.st) ? n.st.values : void 0, c = l(n.extrudeDirection) ? n.extrudeDirection.values : void 0, h = l(n.applyOffset) ? n.applyOffset.values : void 0, d = t.indices, p = [];
|
|
26586
26586
|
for (const F in n)
|
|
26587
26587
|
n.hasOwnProperty(F) && !AE[F] && l(n[F]) && p.push(F);
|
|
26588
|
-
const m = p.length, y =
|
|
26588
|
+
const m = p.length, y = js(t), T = js(t);
|
|
26589
26589
|
let w, A, E, b, I;
|
|
26590
26590
|
const O = [];
|
|
26591
26591
|
O.length = i.length / 3;
|
|
@@ -26705,14 +26705,14 @@ function ql(e) {
|
|
|
26705
26705
|
af(e, T, y);
|
|
26706
26706
|
}
|
|
26707
26707
|
const am = Ue.fromPointNormal(u.ZERO, u.UNIT_Y), EE = new u(), bE = new u();
|
|
26708
|
-
function
|
|
26708
|
+
function vs(e, t, n, i, s, a, r) {
|
|
26709
26709
|
if (!l(r))
|
|
26710
26710
|
return;
|
|
26711
26711
|
const f = u.fromArray(i, e * 3, So);
|
|
26712
26712
|
u.equalsEpsilon(f, n, S.EPSILON10) ? a.applyOffset.values[s] = r[e] : a.applyOffset.values[s] = r[t];
|
|
26713
26713
|
}
|
|
26714
26714
|
function Hl(e) {
|
|
26715
|
-
const t = e.geometry, n = t.attributes, i = n.position.values, s = l(n.applyOffset) ? n.applyOffset.values : void 0, a = t.indices, r =
|
|
26715
|
+
const t = e.geometry, n = t.attributes, i = n.position.values, s = l(n.applyOffset) ? n.applyOffset.values : void 0, a = t.indices, r = js(t), f = js(t);
|
|
26716
26716
|
let c;
|
|
26717
26717
|
const h = a.length, d = [];
|
|
26718
26718
|
d.length = i.length / 3;
|
|
@@ -26749,7 +26749,7 @@ function Hl(e) {
|
|
|
26749
26749
|
a,
|
|
26750
26750
|
c,
|
|
26751
26751
|
T
|
|
26752
|
-
),
|
|
26752
|
+
), vs(
|
|
26753
26753
|
m,
|
|
26754
26754
|
y,
|
|
26755
26755
|
T,
|
|
@@ -26764,7 +26764,7 @@ function Hl(e) {
|
|
|
26764
26764
|
a,
|
|
26765
26765
|
-1,
|
|
26766
26766
|
U
|
|
26767
|
-
),
|
|
26767
|
+
), vs(
|
|
26768
26768
|
m,
|
|
26769
26769
|
y,
|
|
26770
26770
|
U,
|
|
@@ -26779,7 +26779,7 @@ function Hl(e) {
|
|
|
26779
26779
|
a,
|
|
26780
26780
|
-1,
|
|
26781
26781
|
U
|
|
26782
|
-
),
|
|
26782
|
+
), vs(
|
|
26783
26783
|
m,
|
|
26784
26784
|
y,
|
|
26785
26785
|
U,
|
|
@@ -26794,7 +26794,7 @@ function Hl(e) {
|
|
|
26794
26794
|
a,
|
|
26795
26795
|
c + 1,
|
|
26796
26796
|
w
|
|
26797
|
-
),
|
|
26797
|
+
), vs(
|
|
26798
26798
|
m,
|
|
26799
26799
|
y,
|
|
26800
26800
|
w,
|
|
@@ -26812,7 +26812,7 @@ function Hl(e) {
|
|
|
26812
26812
|
a,
|
|
26813
26813
|
c,
|
|
26814
26814
|
T
|
|
26815
|
-
),
|
|
26815
|
+
), vs(
|
|
26816
26816
|
m,
|
|
26817
26817
|
y,
|
|
26818
26818
|
T,
|
|
@@ -26827,7 +26827,7 @@ function Hl(e) {
|
|
|
26827
26827
|
a,
|
|
26828
26828
|
c + 1,
|
|
26829
26829
|
w
|
|
26830
|
-
),
|
|
26830
|
+
), vs(
|
|
26831
26831
|
m,
|
|
26832
26832
|
y,
|
|
26833
26833
|
w,
|
|
@@ -26863,7 +26863,7 @@ function Xl(e) {
|
|
|
26863
26863
|
}
|
|
26864
26864
|
const OE = 5 * S.EPSILON9, kr = S.EPSILON6;
|
|
26865
26865
|
function vE(e) {
|
|
26866
|
-
const t = e.geometry, n = t.attributes, i = n.position.values, s = n.prevPosition.values, a = n.nextPosition.values, r = n.expandAndWidth.values, f = l(n.st) ? n.st.values : void 0, c = l(n.color) ? n.color.values : void 0, h =
|
|
26866
|
+
const t = e.geometry, n = t.attributes, i = n.position.values, s = n.prevPosition.values, a = n.nextPosition.values, r = n.expandAndWidth.values, f = l(n.st) ? n.st.values : void 0, c = l(n.color) ? n.color.values : void 0, h = js(t), d = js(t);
|
|
26867
26867
|
let p, m, y, T = !1;
|
|
26868
26868
|
const w = i.length / 3;
|
|
26869
26869
|
for (p = 0; p < w; p += 4) {
|
|
@@ -28092,7 +28092,7 @@ function JE(e, t) {
|
|
|
28092
28092
|
for (Vr = new Array(xc), s = 0; s < xc; s++)
|
|
28093
28093
|
Vr[s] = new St("createGeometry");
|
|
28094
28094
|
let d;
|
|
28095
|
-
for (h =
|
|
28095
|
+
for (h = FA(h, xc), s = 0; s < h.length; s++) {
|
|
28096
28096
|
let p = 0;
|
|
28097
28097
|
const m = h[s], y = m.length;
|
|
28098
28098
|
for (a = 0; a < y; ++a)
|
|
@@ -28343,11 +28343,11 @@ function ob(e, t, n, i) {
|
|
|
28343
28343
|
let s = n.getRenderState(), a;
|
|
28344
28344
|
i ? (a = hn(s, !1), a.cull = {
|
|
28345
28345
|
enabled: !0,
|
|
28346
|
-
face:
|
|
28347
|
-
}, e._frontFaceRS = je.fromCache(a), a.cull.face =
|
|
28346
|
+
face: Ls.BACK
|
|
28347
|
+
}, e._frontFaceRS = je.fromCache(a), a.cull.face = Ls.FRONT, e._backFaceRS = je.fromCache(a)) : (e._frontFaceRS = je.fromCache(s), e._backFaceRS = e._frontFaceRS), a = hn(s, !1), l(e._depthFailAppearance) && (a.depthTest.enabled = !1), l(e._depthFailAppearance) && (s = e._depthFailAppearance.getRenderState(), a = hn(s, !1), a.depthTest.func = sm.GREATER, i ? (a.cull = {
|
|
28348
28348
|
enabled: !0,
|
|
28349
|
-
face:
|
|
28350
|
-
}, e._frontFaceDepthFailRS = je.fromCache(a), a.cull.face =
|
|
28349
|
+
face: Ls.BACK
|
|
28350
|
+
}, e._frontFaceDepthFailRS = je.fromCache(a), a.cull.face = Ls.FRONT, e._backFaceDepthFailRS = je.fromCache(a)) : (e._frontFaceDepthFailRS = je.fromCache(a), e._backFaceDepthFailRS = e._frontFaceRS));
|
|
28351
28351
|
}
|
|
28352
28352
|
function rb(e, t, n) {
|
|
28353
28353
|
const i = t.context, s = e._attributeLocations;
|
|
@@ -29547,7 +29547,7 @@ Object.defineProperties(Yi.prototype, {
|
|
|
29547
29547
|
Yi.isSupported = function(e) {
|
|
29548
29548
|
return e.context.stencilBuffer;
|
|
29549
29549
|
};
|
|
29550
|
-
function
|
|
29550
|
+
function zs(e, t) {
|
|
29551
29551
|
const n = t ? ri.EQUAL : ri.ALWAYS;
|
|
29552
29552
|
return {
|
|
29553
29553
|
colorMask: {
|
|
@@ -29605,7 +29605,7 @@ function gh(e) {
|
|
|
29605
29605
|
enabled: !1
|
|
29606
29606
|
},
|
|
29607
29607
|
depthMask: !1,
|
|
29608
|
-
blending:
|
|
29608
|
+
blending: ms.PRE_MULTIPLIED_ALPHA_BLEND
|
|
29609
29609
|
};
|
|
29610
29610
|
}
|
|
29611
29611
|
const Wb = {
|
|
@@ -29637,9 +29637,9 @@ function Pb(e, t, n, i) {
|
|
|
29637
29637
|
return;
|
|
29638
29638
|
const s = !e.debugShowShadowVolume;
|
|
29639
29639
|
e._rsStencilDepthPass = je.fromCache(
|
|
29640
|
-
|
|
29640
|
+
zs(s, !1)
|
|
29641
29641
|
), e._rsStencilDepthPass3DTiles = je.fromCache(
|
|
29642
|
-
|
|
29642
|
+
zs(s, !0)
|
|
29643
29643
|
), e._rsColorPass = je.fromCache(
|
|
29644
29644
|
gh(s)
|
|
29645
29645
|
), e._rsPickPass = je.fromCache(Wb);
|
|
@@ -29666,7 +29666,7 @@ ${a} czm_non_compressed_main();
|
|
|
29666
29666
|
}
|
|
29667
29667
|
function Rb(e, t) {
|
|
29668
29668
|
const n = t.context, i = e._primitive;
|
|
29669
|
-
let s =
|
|
29669
|
+
let s = LA;
|
|
29670
29670
|
s = e._primitive._batchTable.getVertexShaderCallback()(
|
|
29671
29671
|
s
|
|
29672
29672
|
), s = Pe._appendDistanceDisplayConditionToShader(i, s), s = Pe._modifyShaderPosition(
|
|
@@ -29682,7 +29682,7 @@ function Rb(e, t) {
|
|
|
29682
29682
|
sources: [s]
|
|
29683
29683
|
});
|
|
29684
29684
|
const h = new Ee({
|
|
29685
|
-
sources: [
|
|
29685
|
+
sources: [zA]
|
|
29686
29686
|
}), d = e._primitive._attributeLocations, p = new kt(
|
|
29687
29687
|
r,
|
|
29688
29688
|
a,
|
|
@@ -29959,7 +29959,7 @@ Yi.prototype.update = function(e) {
|
|
|
29959
29959
|
throw new C(
|
|
29960
29960
|
"All GeometryInstances must have color attributes to use per-instance color."
|
|
29961
29961
|
);
|
|
29962
|
-
d = d && l(w) &&
|
|
29962
|
+
d = d && l(w) && Gs.equals(p, w);
|
|
29963
29963
|
}
|
|
29964
29964
|
if (!d && !m && !y)
|
|
29965
29965
|
throw new C(
|
|
@@ -30025,13 +30025,13 @@ Yi.prototype.update = function(e) {
|
|
|
30025
30025
|
}, this._primitive = new Pe(i);
|
|
30026
30026
|
}
|
|
30027
30027
|
if (this.debugShowShadowVolume && !this._debugShowShadowVolume && this._ready ? (this._debugShowShadowVolume = !0, this._rsStencilDepthPass = je.fromCache(
|
|
30028
|
-
|
|
30028
|
+
zs(!1, !1)
|
|
30029
30029
|
), this._rsStencilDepthPass3DTiles = je.fromCache(
|
|
30030
|
-
|
|
30030
|
+
zs(!1, !0)
|
|
30031
30031
|
), this._rsColorPass = je.fromCache(gh(!1))) : !this.debugShowShadowVolume && this._debugShowShadowVolume && (this._debugShowShadowVolume = !1, this._rsStencilDepthPass = je.fromCache(
|
|
30032
|
-
|
|
30032
|
+
zs(!0, !1)
|
|
30033
30033
|
), this._rsStencilDepthPass3DTiles = je.fromCache(
|
|
30034
|
-
|
|
30034
|
+
zs(!0, !0)
|
|
30035
30035
|
), this._rsColorPass = je.fromCache(gh(!0))), this._primitive.appearance !== t) {
|
|
30036
30036
|
if (!this._hasSphericalExtentsAttribute && !this._hasPlanarExtentsAttributes && l(t.material))
|
|
30037
30037
|
throw new C(
|
|
@@ -30717,14 +30717,14 @@ function ex(e, t, n) {
|
|
|
30717
30717
|
const s = i * i, a = s * i, r = a * i, f = t, c = f * f, h = c * c, d = h * c, p = d * c, m = p * c, y = m * c, T = Math.sin(2 * i), w = Math.cos(2 * i), A = Math.sin(4 * i), E = Math.cos(4 * i), b = Math.sin(6 * i), I = Math.cos(6 * i), O = Math.sin(8 * i), B = Math.cos(8 * i), z = Math.sin(10 * i), F = Math.cos(10 * i), N = Math.sin(12 * i);
|
|
30718
30718
|
return i + i * c / 4 + 7 * i * h / 64 + 15 * i * d / 256 + 579 * i * p / 16384 + 1515 * i * m / 65536 + 16837 * i * y / 1048576 + (3 * i * h / 16 + 45 * i * d / 256 - i * (32 * s - 561) * p / 4096 - i * (232 * s - 1677) * m / 16384 + i * (399985 - 90560 * s + 512 * r) * y / 5242880) * w + (21 * i * d / 256 + 483 * i * p / 4096 - i * (224 * s - 1969) * m / 16384 - i * (33152 * s - 112599) * y / 1048576) * E + (151 * i * p / 4096 + 4681 * i * m / 65536 + 1479 * i * y / 16384 - 453 * a * y / 32768) * I + (1097 * i * m / 65536 + 42783 * i * y / 1048576) * B + 8011 * i * y / 1048576 * F + (3 * c / 8 + 3 * h / 16 + 213 * d / 2048 - 3 * s * d / 64 + 255 * p / 4096 - 33 * s * p / 512 + 20861 * m / 524288 - 33 * s * m / 512 + r * m / 1024 + 28273 * y / 1048576 - 471 * s * y / 8192 + 9 * r * y / 4096) * T + (21 * h / 256 + 21 * d / 256 + 533 * p / 8192 - 21 * s * p / 512 + 197 * m / 4096 - 315 * s * m / 4096 + 584039 * y / 16777216 - 12517 * s * y / 131072 + 7 * r * y / 2048) * A + (151 * d / 6144 + 151 * p / 4096 + 5019 * m / 131072 - 453 * s * m / 16384 + 26965 * y / 786432 - 8607 * s * y / 131072) * b + (1097 * p / 131072 + 1097 * m / 65536 + 225797 * y / 10485760 - 1097 * s * y / 65536) * O + (8011 * m / 2621440 + 8011 * y / 1048576) * z + 293393 * y / 251658240 * N;
|
|
30719
30719
|
}
|
|
30720
|
-
function
|
|
30720
|
+
function Ys(e, t) {
|
|
30721
30721
|
if (e === 0)
|
|
30722
30722
|
return Math.log(Math.tan(0.5 * (S.PI_OVER_TWO + t)));
|
|
30723
30723
|
const n = e * Math.sin(t);
|
|
30724
30724
|
return Math.log(Math.tan(0.5 * (S.PI_OVER_TWO + t))) - e / 2 * Math.log((1 + n) / (1 - n));
|
|
30725
30725
|
}
|
|
30726
30726
|
function tx(e, t, n, i, s) {
|
|
30727
|
-
const a =
|
|
30727
|
+
const a = Ys(e._ellipticity, n), r = Ys(
|
|
30728
30728
|
e._ellipticity,
|
|
30729
30729
|
s
|
|
30730
30730
|
);
|
|
@@ -30809,7 +30809,7 @@ function xm(e, t, n, i, s, a) {
|
|
|
30809
30809
|
if (c = ex(m, s, i), Math.abs(t) < S.EPSILON10)
|
|
30810
30810
|
f = S.negativePiToPi(e.longitude);
|
|
30811
30811
|
else {
|
|
30812
|
-
const y =
|
|
30812
|
+
const y = Ys(s, e.latitude), T = Ys(s, c);
|
|
30813
30813
|
h = Math.tan(t) * (T - y), f = S.negativePiToPi(e.longitude + h);
|
|
30814
30814
|
}
|
|
30815
30815
|
} else {
|
|
@@ -30967,7 +30967,7 @@ ai.prototype.findIntersectionWithLatitude = function(e, t) {
|
|
|
30967
30967
|
S.EPSILON8
|
|
30968
30968
|
))
|
|
30969
30969
|
return;
|
|
30970
|
-
const a =
|
|
30970
|
+
const a = Ys(n, s.latitude), r = Ys(n, e), f = Math.tan(i) * (r - a), c = S.negativePiToPi(s.longitude + f);
|
|
30971
30971
|
return l(t) ? (t.longitude = c, t.latitude = e, t.height = 0, t) : new se(c, e, 0);
|
|
30972
30972
|
};
|
|
30973
30973
|
const hf = [Vn, nn], sx = hf.length, Sm = Math.cos(S.toRadians(30)), yu = Math.cos(S.toRadians(150)), Im = 0, Dm = 1e3;
|
|
@@ -31500,12 +31500,12 @@ function Hx(e, t, n, i, s, a, r) {
|
|
|
31500
31500
|
c,
|
|
31501
31501
|
Pu
|
|
31502
31502
|
), le = bu(Ae, Ct, Ce, xe), j.latitude = a[X], j.longitude = a[X + 1], Y.latitude = a[X + 2], Y.longitude = a[X + 3];
|
|
31503
|
-
let On,
|
|
31503
|
+
let On, gs, Wi, Pi;
|
|
31504
31504
|
if (r) {
|
|
31505
31505
|
const dt = Sx(j, Y);
|
|
31506
|
-
On = t.project(j, Rx),
|
|
31507
|
-
const
|
|
31508
|
-
|
|
31506
|
+
On = t.project(j, Rx), gs = t.project(Y, Lx);
|
|
31507
|
+
const Ts = Ii(gs, On, Ru);
|
|
31508
|
+
Ts.y = Math.abs(Ts.y), Wi = zc, Pi = Nc, dt === 0 || u.dot(Ts, u.UNIT_Y) > Sm ? (Wi = Eo(
|
|
31509
31509
|
t,
|
|
31510
31510
|
j,
|
|
31511
31511
|
rn,
|
|
@@ -31515,13 +31515,13 @@ function Hx(e, t, n, i, s, a, r) {
|
|
|
31515
31515
|
t,
|
|
31516
31516
|
Y,
|
|
31517
31517
|
Ae,
|
|
31518
|
-
|
|
31518
|
+
gs,
|
|
31519
31519
|
Nc
|
|
31520
31520
|
)) : dt === 1 ? (Pi = Eo(
|
|
31521
31521
|
t,
|
|
31522
31522
|
Y,
|
|
31523
31523
|
Ae,
|
|
31524
|
-
|
|
31524
|
+
gs,
|
|
31525
31525
|
Nc
|
|
31526
31526
|
), Wi.x = 0, Wi.y = S.sign(
|
|
31527
31527
|
j.longitude - Math.abs(Y.longitude)
|
|
@@ -31545,8 +31545,8 @@ function Hx(e, t, n, i, s, a, r) {
|
|
|
31545
31545
|
), N0 = u.normalize(cr, Bu);
|
|
31546
31546
|
let Qs = u.subtract(on, Ct, Nx);
|
|
31547
31547
|
Qs = u.normalize(Qs, Qs);
|
|
31548
|
-
let
|
|
31549
|
-
|
|
31548
|
+
let ys = u.cross(N0, Qs, Bu);
|
|
31549
|
+
ys = u.normalize(ys, ys);
|
|
31550
31550
|
let hr = u.cross(
|
|
31551
31551
|
Qs,
|
|
31552
31552
|
rn,
|
|
@@ -31564,11 +31564,11 @@ function Hx(e, t, n, i, s, a, r) {
|
|
|
31564
31564
|
const F0 = Tf / L, M0 = Le / L;
|
|
31565
31565
|
let Na = 0, Js, ur, $i, wf = 0, Af = 0;
|
|
31566
31566
|
if (r) {
|
|
31567
|
-
Na = u.distance(On,
|
|
31567
|
+
Na = u.distance(On, gs), Js = Qe.fromCartesian(
|
|
31568
31568
|
On,
|
|
31569
31569
|
Vx
|
|
31570
31570
|
), ur = u.subtract(
|
|
31571
|
-
|
|
31571
|
+
gs,
|
|
31572
31572
|
On,
|
|
31573
31573
|
Ru
|
|
31574
31574
|
), $i = u.normalize(ur, Gx);
|
|
@@ -31576,7 +31576,7 @@ function Hx(e, t, n, i, s, a, r) {
|
|
|
31576
31576
|
$i.x = $i.y, $i.y = -dt, wf = Na / M, Af = Ye / M;
|
|
31577
31577
|
}
|
|
31578
31578
|
for (H = 0; H < 8; H++) {
|
|
31579
|
-
const dt = ce + H * 4,
|
|
31579
|
+
const dt = ce + H * 4, Ts = J + H * 2, eo = dt + 3, bf = H < 4 ? 1 : -1, dr = H === 2 || H === 3 || H === 6 || H === 7 ? 1 : -1;
|
|
31580
31580
|
u.pack(Cf.high, A, dt), A[eo] = cr.x, u.pack(Cf.low, E, dt), E[eo] = cr.y, u.pack(
|
|
31581
31581
|
hr,
|
|
31582
31582
|
b,
|
|
@@ -31586,12 +31586,12 @@ function Hx(e, t, n, i, s, a, r) {
|
|
|
31586
31586
|
I,
|
|
31587
31587
|
dt
|
|
31588
31588
|
), I[eo] = F0 * bf, u.pack(
|
|
31589
|
-
|
|
31589
|
+
ys,
|
|
31590
31590
|
O,
|
|
31591
31591
|
dt
|
|
31592
31592
|
);
|
|
31593
31593
|
let Zi = M0 * dr;
|
|
31594
|
-
Zi === 0 && dr < 0 && (Zi = 9), O[eo] = Zi, r && (B[dt] = Js.high.x, B[dt + 1] = Js.high.y, B[dt + 2] = Js.low.x, B[dt + 3] = Js.low.y, F[dt] = -Wi.y, F[dt + 1] = Wi.x, F[dt + 2] = Pi.y, F[dt + 3] = -Pi.x, z[dt] = ur.x, z[dt + 1] = ur.y, z[dt + 2] = $i.x, z[dt + 3] = $i.y, N[
|
|
31594
|
+
Zi === 0 && dr < 0 && (Zi = 9), O[eo] = Zi, r && (B[dt] = Js.high.x, B[dt + 1] = Js.high.y, B[dt + 2] = Js.low.x, B[dt + 3] = Js.low.y, F[dt] = -Wi.y, F[dt + 1] = Wi.x, F[dt + 2] = Pi.y, F[dt + 3] = -Pi.x, z[dt] = ur.x, z[dt + 1] = ur.y, z[dt + 2] = $i.x, z[dt + 3] = $i.y, N[Ts] = wf * bf, Zi = Af * dr, Zi === 0 && dr < 0 && (Zi = 9), N[Ts + 1] = Zi);
|
|
31595
31595
|
}
|
|
31596
31596
|
const li = Px, ui = Bx, di = vx, pi = Wx, U0 = de.fromCartographicArray(
|
|
31597
31597
|
Dx,
|
|
@@ -31616,7 +31616,7 @@ function Hx(e, t, n, i, s, a, r) {
|
|
|
31616
31616
|
pi
|
|
31617
31617
|
);
|
|
31618
31618
|
let mi = u.multiplyByScalar(
|
|
31619
|
-
|
|
31619
|
+
ys,
|
|
31620
31620
|
S.EPSILON5,
|
|
31621
31621
|
Lu
|
|
31622
31622
|
);
|
|
@@ -31625,7 +31625,7 @@ function Hx(e, t, n, i, s, a, r) {
|
|
|
31625
31625
|
mi,
|
|
31626
31626
|
li
|
|
31627
31627
|
), u.add(ui, mi, ui), u.add(di, mi, di), u.add(pi, mi, pi), jr(li, ui), jr(di, pi), u.pack(li, w, K), u.pack(ui, w, K + 3), u.pack(pi, w, K + 6), u.pack(di, w, K + 9), mi = u.multiplyByScalar(
|
|
31628
|
-
|
|
31628
|
+
ys,
|
|
31629
31629
|
-2 * S.EPSILON5,
|
|
31630
31630
|
Lu
|
|
31631
31631
|
), u.add(
|
|
@@ -32554,9 +32554,9 @@ ${Qx}`;
|
|
|
32554
32554
|
const eS = Jx;
|
|
32555
32555
|
At.isInternetExplorer() || (wh = `#define CLIP_POLYLINE
|
|
32556
32556
|
${wh}`);
|
|
32557
|
-
function
|
|
32557
|
+
function _s(e) {
|
|
32558
32558
|
e = g(e, g.EMPTY_OBJECT);
|
|
32559
|
-
const t = g(e.translucent, !0), n = !1, i =
|
|
32559
|
+
const t = g(e.translucent, !0), n = !1, i = _s.VERTEX_FORMAT;
|
|
32560
32560
|
this.material = l(e.material) ? e.material : ne.fromType(ne.ColorType), this.translucent = t, this._vertexShaderSource = g(
|
|
32561
32561
|
e.vertexShaderSource,
|
|
32562
32562
|
wh
|
|
@@ -32569,7 +32569,7 @@ function ms(e) {
|
|
|
32569
32569
|
e.renderState
|
|
32570
32570
|
), this._closed = n, this._vertexFormat = i;
|
|
32571
32571
|
}
|
|
32572
|
-
Object.defineProperties(
|
|
32572
|
+
Object.defineProperties(_s.prototype, {
|
|
32573
32573
|
/**
|
|
32574
32574
|
* The GLSL source code for the vertex shader.
|
|
32575
32575
|
*
|
|
@@ -32651,14 +32651,14 @@ ${e}`), e;
|
|
|
32651
32651
|
}
|
|
32652
32652
|
}
|
|
32653
32653
|
});
|
|
32654
|
-
|
|
32655
|
-
|
|
32656
|
-
|
|
32657
|
-
|
|
32654
|
+
_s.VERTEX_FORMAT = lt.POSITION_AND_ST;
|
|
32655
|
+
_s.prototype.getFragmentShaderSource = Vt.prototype.getFragmentShaderSource;
|
|
32656
|
+
_s.prototype.isTranslucent = Vt.prototype.isTranslucent;
|
|
32657
|
+
_s.prototype.getRenderState = Vt.prototype.getRenderState;
|
|
32658
32658
|
function Di(e) {
|
|
32659
32659
|
e = g(e, g.EMPTY_OBJECT), this.geometryInstances = e.geometryInstances, this._hasPerInstanceColors = !0;
|
|
32660
32660
|
let t = e.appearance;
|
|
32661
|
-
l(t) || (t = new
|
|
32661
|
+
l(t) || (t = new _s()), this.appearance = t, this.show = g(e.show, !0), this.classificationType = g(
|
|
32662
32662
|
e.classificationType,
|
|
32663
32663
|
Si.BOTH
|
|
32664
32664
|
), this.debugShowBoundingVolume = g(
|
|
@@ -32685,13 +32685,13 @@ function Di(e) {
|
|
|
32685
32685
|
}, this._zIndex = void 0, this._ready = !1, this._primitive = void 0, this._sp = void 0, this._sp2D = void 0, this._spMorph = void 0, this._renderState = Nu(!1), this._renderState3DTiles = Nu(!0), this._renderStateMorph = je.fromCache({
|
|
32686
32686
|
cull: {
|
|
32687
32687
|
enabled: !0,
|
|
32688
|
-
face:
|
|
32688
|
+
face: Ls.FRONT
|
|
32689
32689
|
// Geometry is "inverted," so cull front when materials on volume instead of on terrain (morph)
|
|
32690
32690
|
},
|
|
32691
32691
|
depthTest: {
|
|
32692
32692
|
enabled: !0
|
|
32693
32693
|
},
|
|
32694
|
-
blending:
|
|
32694
|
+
blending: ms.PRE_MULTIPLIED_ALPHA_BLEND,
|
|
32695
32695
|
depthMask: !1
|
|
32696
32696
|
});
|
|
32697
32697
|
}
|
|
@@ -32900,7 +32900,7 @@ function Nu(e) {
|
|
|
32900
32900
|
enabled: !0
|
|
32901
32901
|
// prevent double-draw. Geometry is "inverted" (reversed winding order) so we're drawing backfaces.
|
|
32902
32902
|
},
|
|
32903
|
-
blending:
|
|
32903
|
+
blending: ms.PRE_MULTIPLIED_ALPHA_BLEND,
|
|
32904
32904
|
depthMask: !1,
|
|
32905
32905
|
stencilTest: {
|
|
32906
32906
|
enabled: e,
|
|
@@ -33078,10 +33078,10 @@ Di.prototype.destroy = function() {
|
|
|
33078
33078
|
return this._primitive = this._primitive && this._primitive.destroy(), this._sp = this._sp && this._sp.destroy(), this._sp2D = void 0, this._spMorph = void 0, at(this);
|
|
33079
33079
|
};
|
|
33080
33080
|
const sS = new q(1, 1), oS = !1, rS = D.WHITE;
|
|
33081
|
-
function
|
|
33081
|
+
function Xs(e) {
|
|
33082
33082
|
e = g(e, g.EMPTY_OBJECT), this._definitionChanged = new Fe(), this._image = void 0, this._imageSubscription = void 0, this._repeat = void 0, this._repeatSubscription = void 0, this._color = void 0, this._colorSubscription = void 0, this._transparent = void 0, this._transparentSubscription = void 0, this.image = e.image, this.repeat = e.repeat, this.color = e.color, this.transparent = e.transparent;
|
|
33083
33083
|
}
|
|
33084
|
-
Object.defineProperties(
|
|
33084
|
+
Object.defineProperties(Xs.prototype, {
|
|
33085
33085
|
/**
|
|
33086
33086
|
* Gets a value indicating if this property is constant. A property is considered
|
|
33087
33087
|
* constant if getValue always returns the same result for the current definition.
|
|
@@ -33137,11 +33137,11 @@ Object.defineProperties(Ys.prototype, {
|
|
|
33137
33137
|
*/
|
|
33138
33138
|
transparent: k("transparent")
|
|
33139
33139
|
});
|
|
33140
|
-
|
|
33140
|
+
Xs.prototype.getType = function(e) {
|
|
33141
33141
|
return "Image";
|
|
33142
33142
|
};
|
|
33143
33143
|
const aS = new ee();
|
|
33144
|
-
|
|
33144
|
+
Xs.prototype.getValue = function(e, t) {
|
|
33145
33145
|
return l(e) || (e = ee.now(aS)), l(t) || (t = {}), t.image = ve.getValueOrUndefined(this._image, e), t.repeat = ve.getValueOrClonedDefault(
|
|
33146
33146
|
this._repeat,
|
|
33147
33147
|
e,
|
|
@@ -33154,14 +33154,14 @@ Ys.prototype.getValue = function(e, t) {
|
|
|
33154
33154
|
t.color
|
|
33155
33155
|
), ve.getValueOrDefault(this._transparent, e, oS) && (t.color.alpha = Math.min(0.99, t.color.alpha)), t;
|
|
33156
33156
|
};
|
|
33157
|
-
|
|
33158
|
-
return this === e || e instanceof
|
|
33157
|
+
Xs.prototype.equals = function(e) {
|
|
33158
|
+
return this === e || e instanceof Xs && ve.equals(this._image, e._image) && ve.equals(this._repeat, e._repeat) && ve.equals(this._color, e._color) && ve.equals(this._transparent, e._transparent);
|
|
33159
33159
|
};
|
|
33160
33160
|
function cS(e) {
|
|
33161
33161
|
if (e instanceof D)
|
|
33162
|
-
return new
|
|
33162
|
+
return new qs(e);
|
|
33163
33163
|
if (typeof e == "string" || e instanceof ae || e instanceof HTMLCanvasElement || e instanceof HTMLVideoElement) {
|
|
33164
|
-
const t = new
|
|
33164
|
+
const t = new Xs();
|
|
33165
33165
|
return t.image = e, t;
|
|
33166
33166
|
}
|
|
33167
33167
|
throw new C(`Unable to infer material type: ${e}`);
|
|
@@ -33347,10 +33347,10 @@ Ks.convertToReferenceFrame = function(e, t, n, i, s) {
|
|
|
33347
33347
|
s
|
|
33348
33348
|
);
|
|
33349
33349
|
};
|
|
33350
|
-
function
|
|
33350
|
+
function us(e, t) {
|
|
33351
33351
|
this._definitionChanged = new Fe(), this._value = u.clone(e), this._referenceFrame = g(t, Mo.FIXED);
|
|
33352
33352
|
}
|
|
33353
|
-
Object.defineProperties(
|
|
33353
|
+
Object.defineProperties(us.prototype, {
|
|
33354
33354
|
/**
|
|
33355
33355
|
* Gets a value indicating if this property is constant. A property is considered
|
|
33356
33356
|
* constant if getValue always returns the same result for the current definition.
|
|
@@ -33391,14 +33391,14 @@ Object.defineProperties(ls.prototype, {
|
|
|
33391
33391
|
}
|
|
33392
33392
|
});
|
|
33393
33393
|
const fS = new ee();
|
|
33394
|
-
|
|
33394
|
+
us.prototype.getValue = function(e, t) {
|
|
33395
33395
|
return l(e) || (e = ee.now(fS)), this.getValueInReferenceFrame(e, Mo.FIXED, t);
|
|
33396
33396
|
};
|
|
33397
|
-
|
|
33397
|
+
us.prototype.setValue = function(e, t) {
|
|
33398
33398
|
let n = !1;
|
|
33399
33399
|
u.equals(this._value, e) || (n = !0, this._value = u.clone(e)), l(t) && this._referenceFrame !== t && (n = !0, this._referenceFrame = t), n && this._definitionChanged.raiseEvent(this);
|
|
33400
33400
|
};
|
|
33401
|
-
|
|
33401
|
+
us.prototype.getValueInReferenceFrame = function(e, t, n) {
|
|
33402
33402
|
if (!l(e))
|
|
33403
33403
|
throw new C("time is required.");
|
|
33404
33404
|
if (!l(t))
|
|
@@ -33411,8 +33411,8 @@ ls.prototype.getValueInReferenceFrame = function(e, t, n) {
|
|
|
33411
33411
|
n
|
|
33412
33412
|
);
|
|
33413
33413
|
};
|
|
33414
|
-
|
|
33415
|
-
return this === e || e instanceof
|
|
33414
|
+
us.prototype.equals = function(e) {
|
|
33415
|
+
return this === e || e instanceof us && u.equals(this._value, e._value) && this._referenceFrame === e._referenceFrame;
|
|
33416
33416
|
};
|
|
33417
33417
|
function Uo(e) {
|
|
33418
33418
|
this._definitionChanged = new Fe(), this._show = void 0, this._showSubscription = void 0, this._positions = void 0, this._positionsSubscription = void 0, this._width = void 0, this._widthSubscription = void 0, this._height = void 0, this._heightSubscription = void 0, this._heightReference = void 0, this._heightReferenceSubscription = void 0, this._extrudedHeight = void 0, this._extrudedHeightSubscription = void 0, this._extrudedHeightReference = void 0, this._extrudedHeightReferenceSubscription = void 0, this._cornerType = void 0, this._cornerTypeSubscription = void 0, this._granularity = void 0, this._granularitySubscription = void 0, this._fill = void 0, this._fillSubscription = void 0, this._material = void 0, this._materialSubscription = void 0, this._outline = void 0, this._outlineSubscription = void 0, this._outlineColor = void 0, this._outlineColorSubscription = void 0, this._outlineWidth = void 0, this._outlineWidthSubscription = void 0, this._shadows = void 0, this._shadowsSubscription = void 0, this._distanceDisplayCondition = void 0, this._distanceDisplayConditionSubscription = void 0, this._classificationType = void 0, this._classificationTypeSubscription = void 0, this._zIndex = void 0, this._zIndexSubscription = void 0, this.merge(g(e, g.EMPTY_OBJECT));
|
|
@@ -35888,7 +35888,7 @@ tr.prototype.merge = function(e) {
|
|
|
35888
35888
|
};
|
|
35889
35889
|
const ES = new se(), Eh = [];
|
|
35890
35890
|
function bS(e) {
|
|
35891
|
-
return new
|
|
35891
|
+
return new us(e);
|
|
35892
35892
|
}
|
|
35893
35893
|
function xS(e) {
|
|
35894
35894
|
return k(
|
|
@@ -38606,7 +38606,7 @@ function Qm(e, t, n, i, s) {
|
|
|
38606
38606
|
const p = Vc.high, m = Vc.low;
|
|
38607
38607
|
e._instanced ? (a = s._index, r(a, p.x, p.y, p.z, h), f(a, m.x, m.y, m.z, d)) : (a = s._index * 4, r(a + 0, p.x, p.y, p.z, h), r(a + 1, p.x, p.y, p.z, h), r(a + 2, p.x, p.y, p.z, h), r(a + 3, p.x, p.y, p.z, h), f(a + 0, m.x, m.y, m.z, d), f(a + 1, m.x, m.y, m.z, d), f(a + 2, m.x, m.y, m.z, d), f(a + 3, m.x, m.y, m.z, d));
|
|
38608
38608
|
}
|
|
38609
|
-
const In = new q(), xn = 32768,
|
|
38609
|
+
const In = new q(), xn = 32768, Ms = 65536, Gc = 4096, ti = 256, lI = 128, uI = 32, dI = 8, Jm = 4, pI = 1 / 256, e0 = 0, t0 = 2, n0 = 3, i0 = 1;
|
|
38610
38610
|
function s0(e, t, n, i, s) {
|
|
38611
38611
|
let a;
|
|
38612
38612
|
const r = i[qe.compressedAttribute0], f = s.pixelOffset, c = f.x, h = f.y, d = s._translate, p = d.x, m = d.y;
|
|
@@ -38695,7 +38695,7 @@ function o0(e, t, n, i, s) {
|
|
|
38695
38695
|
e._maxSize,
|
|
38696
38696
|
A
|
|
38697
38697
|
);
|
|
38698
|
-
let E = S.clamp(A, 0,
|
|
38698
|
+
let E = S.clamp(A, 0, Ms), b = 0;
|
|
38699
38699
|
Math.abs(u.magnitudeSquared(f) - 1) < S.EPSILON6 && (b = De.octEncodeFloat(f)), h = S.clamp(h, 0, 1), h = h === 1 ? 255 : h * 255 | 0, E = E * ti + h, p = S.clamp(p, 0, 1), p = p === 1 ? 255 : p * 255 | 0, b = b * ti + p, e._instanced ? (a = s._index, r(a, E, b, c, d)) : (a = s._index * 4, r(a + 0, E, b, c, d), r(a + 1, E, b, c, d), r(a + 2, E, b, c, d), r(a + 3, E, b, c, d));
|
|
38700
38700
|
}
|
|
38701
38701
|
function xh(e, t, n, i, s) {
|
|
@@ -38724,10 +38724,10 @@ function xh(e, t, n, i, s) {
|
|
|
38724
38724
|
w += 2;
|
|
38725
38725
|
const A = T * Jm + w;
|
|
38726
38726
|
let E = D.floatToByte(f.red), b = D.floatToByte(f.green), I = D.floatToByte(f.blue);
|
|
38727
|
-
const O = E *
|
|
38727
|
+
const O = E * Ms + b * ti + I;
|
|
38728
38728
|
E = D.floatToByte(c.red), b = D.floatToByte(c.green), I = D.floatToByte(c.blue);
|
|
38729
|
-
const B = E *
|
|
38730
|
-
let z = D.floatToByte(f.alpha) *
|
|
38729
|
+
const B = E * Ms + b * ti + I;
|
|
38730
|
+
let z = D.floatToByte(f.alpha) * Ms + D.floatToByte(c.alpha) * ti;
|
|
38731
38731
|
z += h * 2 + d, e._instanced ? (a = s._index, r(a, O, B, z, A)) : (a = s._index * 4, r(a + 0, O, B, z, A), r(a + 1, O, B, z, A), r(a + 2, O, B, z, A), r(a + 3, O, B, z, A));
|
|
38732
38732
|
}
|
|
38733
38733
|
function Sh(e, t, n, i, s) {
|
|
@@ -38837,7 +38837,7 @@ function f0(e, t, n, i, s) {
|
|
|
38837
38837
|
if (!e._sdf)
|
|
38838
38838
|
return;
|
|
38839
38839
|
let a;
|
|
38840
|
-
const r = i[qe.sdf], f = s.outlineColor, c = s.outlineWidth, h = D.floatToByte(f.red), d = D.floatToByte(f.green), p = D.floatToByte(f.blue), m = h *
|
|
38840
|
+
const r = i[qe.sdf], f = s.outlineColor, c = s.outlineWidth, h = D.floatToByte(f.red), d = D.floatToByte(f.green), p = D.floatToByte(f.blue), m = h * Ms + d * ti + p, y = c / _n.RADIUS, T = D.floatToByte(f.alpha) * Ms + D.floatToByte(y) * ti;
|
|
38841
38841
|
e._instanced ? (a = s._index, r(a, m, T)) : (a = s._index * 4, r(a + 0, m + e0, T), r(a + 1, m + t0, T), r(a + 2, m + n0, T), r(a + 3, m + i0, T));
|
|
38842
38842
|
}
|
|
38843
38843
|
function l0(e, t, n, i, s) {
|
|
@@ -39095,7 +39095,7 @@ sn.prototype.update = function(e) {
|
|
|
39095
39095
|
func: N ? R.LEQUAL : R.LESS
|
|
39096
39096
|
},
|
|
39097
39097
|
depthMask: N,
|
|
39098
|
-
blending:
|
|
39098
|
+
blending: ms.ALPHA_BLEND
|
|
39099
39099
|
}) : this._rsTranslucent = void 0;
|
|
39100
39100
|
}
|
|
39101
39101
|
this._shaderDisableDepthDistance = this._shaderDisableDepthDistance || e.minimumDisableDepthTestDistance !== 0;
|
|
@@ -43388,7 +43388,7 @@ Cn.prototype.update = function(e) {
|
|
|
43388
43388
|
func: R.LEQUAL
|
|
43389
43389
|
},
|
|
43390
43390
|
depthMask: !1,
|
|
43391
|
-
blending:
|
|
43391
|
+
blending: ms.ALPHA_BLEND
|
|
43392
43392
|
}) : this._rsTranslucent = void 0), this._shaderDisableDepthDistance = this._shaderDisableDepthDistance || e.minimumDisableDepthTestDistance !== 0;
|
|
43393
43393
|
let T, w;
|
|
43394
43394
|
(y || this._shaderScaleByDistance && !this._compiledShaderScaleByDistance || this._shaderTranslucencyByDistance && !this._compiledShaderTranslucencyByDistance || this._shaderDistanceDisplayCondition && !this._compiledShaderDistanceDisplayCondition || this._shaderDisableDepthDistance !== this._compiledShaderDisableDepthDistance) && (T = new Ee({
|
|
@@ -43958,10 +43958,10 @@ Hn.prototype.update = function(e) {
|
|
|
43958
43958
|
Hn.prototype.destroy = function() {
|
|
43959
43959
|
this._labelCollection = this._labelCollection && this._labelCollection.destroy(), this._billboardCollection = this._billboardCollection && this._billboardCollection.destroy(), this._pointCollection = this._pointCollection && this._pointCollection.destroy(), this._clusterLabelCollection = this._clusterLabelCollection && this._clusterLabelCollection.destroy(), this._clusterBillboardCollection = this._clusterBillboardCollection && this._clusterBillboardCollection.destroy(), this._clusterPointCollection = this._clusterPointCollection && this._clusterPointCollection.destroy(), l(this._removeEventListener) && (this._removeEventListener(), this._removeEventListener = void 0), this._labelCollection = void 0, this._billboardCollection = void 0, this._pointCollection = void 0, this._clusterBillboardCollection = void 0, this._clusterLabelCollection = void 0, this._clusterPointCollection = void 0, this._collectionIndicesByEntity = void 0, this._unusedLabelIndices = [], this._unusedBillboardIndices = [], this._unusedPointIndices = [], this._previousClusters = [], this._previousHeight = void 0, this._enabledDirty = !1, this._pixelRangeDirty = !1, this._minimumClusterSizeDirty = !1;
|
|
43960
43960
|
};
|
|
43961
|
-
function
|
|
43961
|
+
function hs(e) {
|
|
43962
43962
|
this._name = e, this._clock = void 0, this._changed = new Fe(), this._error = new Fe(), this._isLoading = !1, this._loading = new Fe(), this._entityCollection = new Jt(this), this._entityCluster = new Hn();
|
|
43963
43963
|
}
|
|
43964
|
-
Object.defineProperties(
|
|
43964
|
+
Object.defineProperties(hs.prototype, {
|
|
43965
43965
|
/**
|
|
43966
43966
|
* Gets or sets a human-readable name for this instance.
|
|
43967
43967
|
* @memberof CustomDataSource.prototype
|
|
@@ -44071,7 +44071,7 @@ Object.defineProperties(Xs.prototype, {
|
|
|
44071
44071
|
}
|
|
44072
44072
|
}
|
|
44073
44073
|
});
|
|
44074
|
-
|
|
44074
|
+
hs.prototype.update = function(e) {
|
|
44075
44075
|
return !0;
|
|
44076
44076
|
};
|
|
44077
44077
|
function v(e, t, n = 10, i = "#ba1919") {
|
|
@@ -44109,7 +44109,7 @@ function v(e, t, n = 10, i = "#ba1919") {
|
|
|
44109
44109
|
}
|
|
44110
44110
|
};
|
|
44111
44111
|
}
|
|
44112
|
-
function
|
|
44112
|
+
function Ws(e, t, n, i, s = new He(
|
|
44113
44113
|
0,
|
|
44114
44114
|
0,
|
|
44115
44115
|
0
|
|
@@ -44380,7 +44380,7 @@ class FD {
|
|
|
44380
44380
|
oe(this, "offsetGrouundWires11", []);
|
|
44381
44381
|
// 单根地线2
|
|
44382
44382
|
oe(this, "offsetGrouundWires12", []);
|
|
44383
|
-
this.Keym = i, this.viewer = t, this.LineInfo = n, this.dataSource2 = new
|
|
44383
|
+
this.Keym = i, this.viewer = t, this.LineInfo = n, this.dataSource2 = new hs(this.LineInfo.LineID), this.entityCollection2 = this.dataSource2.entities, this.LinedataSource2 = new hs(this.LineInfo.LineID + "daoxian"), this.LineentityCollection2 = this.dataSource2.entities;
|
|
44384
44384
|
}
|
|
44385
44385
|
//单回路线路加载
|
|
44386
44386
|
loadLineTower() {
|
|
@@ -44393,7 +44393,7 @@ class FD {
|
|
|
44393
44393
|
let t = 0, n = 0;
|
|
44394
44394
|
this.offsetTowers.forEach((i, s) => {
|
|
44395
44395
|
const a = new He(S.toRadians(this.LineInfo.towers[s].RollX), S.toRadians(this.LineInfo.towers[s].RollY), S.toRadians(this.LineInfo.towers[s].RollZ));
|
|
44396
|
-
this.entityCollection2.add(
|
|
44396
|
+
this.entityCollection2.add(Ws(this.LineInfo.towers[s].id, i, this.LineInfo.towers[s].name, this.LineInfo.towers[s].towerModelUri, a, this.LineInfo.towers[s].towerScale));
|
|
44397
44397
|
let r = new He(S.toRadians(this.LineInfo.towers[s].RollX), 0, 0), f = 0;
|
|
44398
44398
|
this.LineInfo.towers[s].Insulators.forEach((c) => {
|
|
44399
44399
|
if (this.LineInfo.towers[s].type == ss.耐张塔)
|
|
@@ -44402,10 +44402,10 @@ class FD {
|
|
|
44402
44402
|
let d = new He(S.toRadians(this.LineInfo.towers[s].RollX), 0, 0);
|
|
44403
44403
|
if (c.WairFX == "进") {
|
|
44404
44404
|
const w = new He(S.toRadians(c.RollX), S.toRadians(-90), S.toRadians(180)), A = Q(i, new u(this.LineInfo.towers[s].towerPoint[f].X, this.LineInfo.towers[s].towerPoint[f].Y, this.LineInfo.towers[s].towerPoint[f].Z), d);
|
|
44405
|
-
this.entityCollection2.add(
|
|
44405
|
+
this.entityCollection2.add(Ws(c.id, A, c.name, c.InsulatorModelUri, w, c.InsulatorScale));
|
|
44406
44406
|
} else {
|
|
44407
44407
|
const w = new He(S.toRadians(c.RollX), S.toRadians(-90), S.toRadians(0)), A = Q(i, new u(this.LineInfo.towers[s].towerPoint[f].X, this.LineInfo.towers[s].towerPoint[f].Y, this.LineInfo.towers[s].towerPoint[f].Z), d);
|
|
44408
|
-
this.entityCollection2.add(
|
|
44408
|
+
this.entityCollection2.add(Ws(
|
|
44409
44409
|
c.id,
|
|
44410
44410
|
A,
|
|
44411
44411
|
c.name,
|
|
@@ -44417,16 +44417,16 @@ class FD {
|
|
|
44417
44417
|
break;
|
|
44418
44418
|
case Ht.跳线串:
|
|
44419
44419
|
const p = new He(S.toRadians(c.RollX), S.toRadians(c.RollY), S.toRadians(c.RollZ)), m = Q(i, new u(this.LineInfo.towers[s].towerPoint[f].X, this.LineInfo.towers[s].towerPoint[f].Y, this.LineInfo.towers[s].towerPoint[f].Z), r);
|
|
44420
|
-
this.entityCollection2.add(
|
|
44420
|
+
this.entityCollection2.add(Ws(c.id, m, c.name, c.InsulatorModelUri, p, c.InsulatorScale));
|
|
44421
44421
|
break;
|
|
44422
44422
|
case Ht.地线串:
|
|
44423
44423
|
const y = new He(S.toRadians(c.RollX), S.toRadians(c.RollY), S.toRadians(c.RollZ)), T = Q(i, new u(this.LineInfo.towers[s].towerPoint[f].X, this.LineInfo.towers[s].towerPoint[f].Y, this.LineInfo.towers[s].towerPoint[f].Z), r);
|
|
44424
|
-
this.entityCollection2.add(
|
|
44424
|
+
this.entityCollection2.add(Ws(c.id, T, c.name, c.InsulatorModelUri, y, c.InsulatorScale));
|
|
44425
44425
|
break;
|
|
44426
44426
|
}
|
|
44427
44427
|
else {
|
|
44428
44428
|
const d = new He(S.toRadians(c.RollX), S.toRadians(c.RollY), S.toRadians(c.RollZ)), p = Q(i, new u(this.LineInfo.towers[s].towerPoint[f].X, this.LineInfo.towers[s].towerPoint[f].Y, this.LineInfo.towers[s].towerPoint[f].Z), r);
|
|
44429
|
-
this.entityCollection2.add(
|
|
44429
|
+
this.entityCollection2.add(Ws(c.id, p, c.name, c.InsulatorModelUri, d, c.InsulatorScale));
|
|
44430
44430
|
}
|
|
44431
44431
|
const h = [];
|
|
44432
44432
|
switch (c.InsulatorPoint.forEach((d) => {
|
|
@@ -45477,6 +45477,9 @@ class UD {
|
|
|
45477
45477
|
// 模型模型集合
|
|
45478
45478
|
oe(this, "dataSource2");
|
|
45479
45479
|
oe(this, "entityCollection2");
|
|
45480
|
+
// 点模型集合
|
|
45481
|
+
oe(this, "PointdataSource2");
|
|
45482
|
+
oe(this, "PointentityCollection2");
|
|
45480
45483
|
oe(this, "TowerNodes", []);
|
|
45481
45484
|
oe(this, "connections", []);
|
|
45482
45485
|
oe(this, "displacementData", []);
|
|
@@ -45486,7 +45489,7 @@ class UD {
|
|
|
45486
45489
|
oe(this, "byTimes", []);
|
|
45487
45490
|
// 或者如果是Node.js环境:
|
|
45488
45491
|
oe(this, "_animationInterval", null);
|
|
45489
|
-
this.Keym = i, this.viewer = t, this.TowerFZS = n, this.dataSource2 = new
|
|
45492
|
+
this.Keym = i, this.viewer = t, this.TowerFZS = n, this.dataSource2 = new hs(this.TowerFZS.id + "tower"), this.entityCollection2 = this.dataSource2.entities, this.PointdataSource2 = new hs(this.TowerFZS.id + "point"), this.PointentityCollection2 = this.PointdataSource2.entities;
|
|
45490
45493
|
}
|
|
45491
45494
|
loadfile() {
|
|
45492
45495
|
if (this.Keym != "OW_JPS_EEngin_001")
|
|
@@ -45499,10 +45502,16 @@ class UD {
|
|
|
45499
45502
|
}
|
|
45500
45503
|
//单塔仿真加载
|
|
45501
45504
|
loadFZTower() {
|
|
45502
|
-
this.Keym
|
|
45503
|
-
|
|
45504
|
-
|
|
45505
|
-
|
|
45505
|
+
if (this.Keym != "OW_JPS_EEngin_001")
|
|
45506
|
+
return;
|
|
45507
|
+
let t = new He(S.toRadians(this.TowerFZS.RollX), this.TowerFZS.RollY, this.TowerFZS.RollZ);
|
|
45508
|
+
const n = u.fromDegrees(this.TowerFZS.Longitude, this.TowerFZS.Latitude, this.TowerFZS.Altitude);
|
|
45509
|
+
this.connections.forEach((i) => {
|
|
45510
|
+
const s = this.TowerNodes.find((h) => h.id === i.from), a = this.TowerNodes.find((h) => h.id === i.to), r = [], f = new u(s == null ? void 0 : s.x, s == null ? void 0 : s.y, s == null ? void 0 : s.z);
|
|
45511
|
+
r.push(Q(n, f, t)), this.PointentityCollection2.add(Kr(r[0], (s == null ? void 0 : s.id) + ""));
|
|
45512
|
+
const c = new u(a == null ? void 0 : a.x, a == null ? void 0 : a.y, a == null ? void 0 : a.z);
|
|
45513
|
+
r.push(Q(n, c, t)), this.PointentityCollection2.add(Kr(r[1], (a == null ? void 0 : a.id) + "")), this.entityCollection2.add(v(r, i.from + "" + i.to, this.TowerFZS.TowerMembersWidth, this.TowerFZS.TowerMemberColor));
|
|
45514
|
+
});
|
|
45506
45515
|
}
|
|
45507
45516
|
/**
|
|
45508
45517
|
* 加载指定时间步的位移塔架模型
|
|
@@ -45597,7 +45606,7 @@ class UD {
|
|
|
45597
45606
|
t = 1;
|
|
45598
45607
|
return;
|
|
45599
45608
|
}
|
|
45600
|
-
this.dataSource2 = new
|
|
45609
|
+
this.dataSource2 = new hs("fztower"), this.entityCollection2 = this.dataSource2.entities;
|
|
45601
45610
|
try {
|
|
45602
45611
|
this.loadFZDISTower(t), this.loadFZModel(), console.log(`正在显示位移帧: ${t}/${n}`), t++;
|
|
45603
45612
|
} catch (s) {
|
|
@@ -45641,5 +45650,5 @@ export {
|
|
|
45641
45650
|
RD as TowerLineInfo,
|
|
45642
45651
|
ss as TowerType,
|
|
45643
45652
|
$ as WairnumType,
|
|
45644
|
-
|
|
45653
|
+
Ws as drawModel
|
|
45645
45654
|
};
|