ow-eengine-power 1.0.5 → 1.0.7
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 +770 -775
- package/dist/OW_EEngine_Power.umd.cjs +21 -21
- package/package.json +1 -1
package/dist/OW_EEngine_Power.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var P0 = Object.defineProperty;
|
|
2
2
|
var B0 = (e, t, n) => t in e ? P0(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var
|
|
3
|
+
var _t = (e, t, n) => B0(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
function h(e) {
|
|
5
5
|
return e != null;
|
|
6
6
|
}
|
|
@@ -1091,16 +1091,16 @@ const xh = new f();
|
|
|
1091
1091
|
L.getMaximumScale = function(e) {
|
|
1092
1092
|
return L.getScale(e, xh), f.maximumComponent(xh);
|
|
1093
1093
|
};
|
|
1094
|
-
const
|
|
1094
|
+
const G0 = new f();
|
|
1095
1095
|
L.setRotation = function(e, t, n) {
|
|
1096
1096
|
m.typeOf.object("matrix", e), m.typeOf.object("result", n);
|
|
1097
|
-
const i = L.getScale(e,
|
|
1097
|
+
const i = L.getScale(e, G0);
|
|
1098
1098
|
return n[0] = t[0] * i.x, n[1] = t[1] * i.x, n[2] = t[2] * i.x, n[3] = t[3] * i.y, n[4] = t[4] * i.y, n[5] = t[5] * i.y, n[6] = t[6] * i.z, n[7] = t[7] * i.z, n[8] = t[8] * i.z, n;
|
|
1099
1099
|
};
|
|
1100
|
-
const
|
|
1100
|
+
const H0 = new f();
|
|
1101
1101
|
L.getRotation = function(e, t) {
|
|
1102
1102
|
m.typeOf.object("matrix", e), m.typeOf.object("result", t);
|
|
1103
|
-
const n = L.getScale(e,
|
|
1103
|
+
const n = L.getScale(e, H0);
|
|
1104
1104
|
return t[0] = e[0] / n.x, t[1] = e[1] / n.x, t[2] = e[2] / n.x, t[3] = e[3] / n.y, t[4] = e[4] / n.y, t[5] = e[5] / n.y, t[6] = e[6] / n.z, t[7] = e[7] / n.z, t[8] = e[8] / n.z, t;
|
|
1105
1105
|
};
|
|
1106
1106
|
L.multiply = function(e, t, n) {
|
|
@@ -1144,11 +1144,11 @@ function W0(e) {
|
|
|
1144
1144
|
}
|
|
1145
1145
|
return Math.sqrt(t);
|
|
1146
1146
|
}
|
|
1147
|
-
const
|
|
1147
|
+
const Hc = [1, 0, 0], Wc = [2, 2, 1];
|
|
1148
1148
|
function j0(e) {
|
|
1149
1149
|
let t = 0;
|
|
1150
1150
|
for (let n = 0; n < 3; ++n) {
|
|
1151
|
-
const i = e[L.getElementIndex(Wc[n],
|
|
1151
|
+
const i = e[L.getElementIndex(Wc[n], Hc[n])];
|
|
1152
1152
|
t += 2 * i * i;
|
|
1153
1153
|
}
|
|
1154
1154
|
return Math.sqrt(t);
|
|
@@ -1158,12 +1158,12 @@ function Y0(e, t) {
|
|
|
1158
1158
|
let i = 0, o = 1;
|
|
1159
1159
|
for (let u = 0; u < 3; ++u) {
|
|
1160
1160
|
const d = Math.abs(
|
|
1161
|
-
e[L.getElementIndex(Wc[u],
|
|
1161
|
+
e[L.getElementIndex(Wc[u], Hc[u])]
|
|
1162
1162
|
);
|
|
1163
1163
|
d > i && (o = u, i = d);
|
|
1164
1164
|
}
|
|
1165
1165
|
let s = 1, a = 0;
|
|
1166
|
-
const c =
|
|
1166
|
+
const c = Hc[o], l = Wc[o];
|
|
1167
1167
|
if (Math.abs(e[L.getElementIndex(l, c)]) > n) {
|
|
1168
1168
|
const u = e[L.getElementIndex(l, l)], d = e[L.getElementIndex(c, c)], p = e[L.getElementIndex(l, c)], g = (u - d) / 2 / p;
|
|
1169
1169
|
let y;
|
|
@@ -1260,7 +1260,7 @@ L.prototype.toString = function() {
|
|
|
1260
1260
|
(${this[1]}, ${this[4]}, ${this[7]})
|
|
1261
1261
|
(${this[2]}, ${this[5]}, ${this[8]})`;
|
|
1262
1262
|
};
|
|
1263
|
-
function
|
|
1263
|
+
function ft(e) {
|
|
1264
1264
|
this.name = "RuntimeError", this.message = e;
|
|
1265
1265
|
let t;
|
|
1266
1266
|
try {
|
|
@@ -1270,8 +1270,8 @@ function ut(e) {
|
|
|
1270
1270
|
}
|
|
1271
1271
|
this.stack = t;
|
|
1272
1272
|
}
|
|
1273
|
-
h(Object.create) && (
|
|
1274
|
-
|
|
1273
|
+
h(Object.create) && (ft.prototype = Object.create(Error.prototype), ft.prototype.constructor = ft);
|
|
1274
|
+
ft.prototype.toString = function() {
|
|
1275
1275
|
let e = `${this.name}: ${this.message}`;
|
|
1276
1276
|
return h(this.stack) && (e += `
|
|
1277
1277
|
${this.stack.toString()}`), e;
|
|
@@ -1380,8 +1380,8 @@ F.fromRotationTranslation = function(e, t, n) {
|
|
|
1380
1380
|
};
|
|
1381
1381
|
F.fromTranslationQuaternionRotationScale = function(e, t, n, i) {
|
|
1382
1382
|
m.typeOf.object("translation", e), m.typeOf.object("rotation", t), m.typeOf.object("scale", n), h(i) || (i = new F());
|
|
1383
|
-
const o = n.x, s = n.y, a = n.z, c = t.x * t.x, l = t.x * t.y, u = t.x * t.z, d = t.x * t.w, p = t.y * t.y, g = t.y * t.z, y = t.y * t.w, x = t.z * t.z, E = t.z * t.w, T = t.w * t.w, D = c - p - x + T, A = 2 * (l - E), O = 2 * (u + y), I = 2 * (l + E), B = -c + p - x + T, M = 2 * (g - d),
|
|
1384
|
-
return i[0] = D * o, i[1] = I * o, i[2] =
|
|
1383
|
+
const o = n.x, s = n.y, a = n.z, c = t.x * t.x, l = t.x * t.y, u = t.x * t.z, d = t.x * t.w, p = t.y * t.y, g = t.y * t.z, y = t.y * t.w, x = t.z * t.z, E = t.z * t.w, T = t.w * t.w, D = c - p - x + T, A = 2 * (l - E), O = 2 * (u + y), I = 2 * (l + E), B = -c + p - x + T, M = 2 * (g - d), G = 2 * (u - y), P = 2 * (g + d), V = -c - p + x + T;
|
|
1384
|
+
return i[0] = D * o, i[1] = I * o, i[2] = G * o, i[3] = 0, i[4] = A * s, i[5] = B * s, i[6] = P * s, i[7] = 0, i[8] = O * a, i[9] = M * a, i[10] = V * a, i[11] = 0, i[12] = e.x, i[13] = e.y, i[14] = e.z, i[15] = 1, i;
|
|
1385
1385
|
};
|
|
1386
1386
|
F.fromTranslationRotationScale = function(e, t) {
|
|
1387
1387
|
return m.typeOf.object("translationRotationScale", e), F.fromTranslationQuaternionRotationScale(
|
|
@@ -1583,8 +1583,8 @@ F.getRotation = function(e, t) {
|
|
|
1583
1583
|
};
|
|
1584
1584
|
F.multiply = function(e, t, n) {
|
|
1585
1585
|
m.typeOf.object("left", e), m.typeOf.object("right", t), m.typeOf.object("result", n);
|
|
1586
|
-
const i = e[0], o = e[1], s = e[2], a = e[3], c = e[4], l = e[5], u = e[6], d = e[7], p = e[8], g = e[9], y = e[10], x = e[11], E = e[12], T = e[13], D = e[14], A = e[15], O = t[0], I = t[1], B = t[2], M = t[3],
|
|
1587
|
-
return n[0] = $, n[1] = X, n[2] = ie, n[3] = se, n[4] = me, n[5] = Ce, n[6] = ge, n[7] = Ie, n[8] = Ve, n[9] = Ke, n[10] =
|
|
1586
|
+
const i = e[0], o = e[1], s = e[2], a = e[3], c = e[4], l = e[5], u = e[6], d = e[7], p = e[8], g = e[9], y = e[10], x = e[11], E = e[12], T = e[13], D = e[14], A = e[15], O = t[0], I = t[1], B = t[2], M = t[3], G = t[4], P = t[5], V = t[6], k = t[7], H = t[8], j = t[9], r = t[10], b = t[11], v = t[12], z = t[13], q = t[14], W = t[15], $ = i * O + c * I + p * B + E * M, X = o * O + l * I + g * B + T * M, ie = s * O + u * I + y * B + D * M, se = a * O + d * I + x * B + A * M, me = i * G + c * P + p * V + E * k, Ce = o * G + l * P + g * V + T * k, ge = s * G + u * P + y * V + D * k, Ie = a * G + d * P + x * V + A * k, Ve = i * H + c * j + p * r + E * b, Ke = o * H + l * j + g * r + T * b, st = s * H + u * j + y * r + D * b, ze = a * H + d * j + x * r + A * b, pt = i * v + c * z + p * q + E * W, xt = o * v + l * z + g * q + T * W, mt = s * v + u * z + y * q + D * W, Qt = a * v + d * z + x * q + A * W;
|
|
1587
|
+
return n[0] = $, n[1] = X, n[2] = ie, n[3] = se, n[4] = me, n[5] = Ce, n[6] = ge, n[7] = Ie, n[8] = Ve, n[9] = Ke, n[10] = st, n[11] = ze, n[12] = pt, n[13] = xt, n[14] = mt, n[15] = Qt, n;
|
|
1588
1588
|
};
|
|
1589
1589
|
F.add = function(e, t, n) {
|
|
1590
1590
|
return m.typeOf.object("left", e), m.typeOf.object("right", t), m.typeOf.object("result", n), n[0] = e[0] + t[0], n[1] = e[1] + t[1], n[2] = e[2] + t[2], n[3] = e[3] + t[3], n[4] = e[4] + t[4], n[5] = e[5] + t[5], n[6] = e[6] + t[6], n[7] = e[7] + t[7], n[8] = e[8] + t[8], n[9] = e[9] + t[9], n[10] = e[10] + t[10], n[11] = e[11] + t[11], n[12] = e[12] + t[12], n[13] = e[13] + t[13], n[14] = e[14] + t[14], n[15] = e[15] + t[15], n;
|
|
@@ -1594,13 +1594,13 @@ F.subtract = function(e, t, n) {
|
|
|
1594
1594
|
};
|
|
1595
1595
|
F.multiplyTransformation = function(e, t, n) {
|
|
1596
1596
|
m.typeOf.object("left", e), m.typeOf.object("right", t), m.typeOf.object("result", n);
|
|
1597
|
-
const i = e[0], o = e[1], s = e[2], a = e[4], c = e[5], l = e[6], u = e[8], d = e[9], p = e[10], g = e[12], y = e[13], x = e[14], E = t[0], T = t[1], D = t[2], A = t[4], O = t[5], I = t[6], B = t[8], M = t[9],
|
|
1598
|
-
return n[0] =
|
|
1597
|
+
const i = e[0], o = e[1], s = e[2], a = e[4], c = e[5], l = e[6], u = e[8], d = e[9], p = e[10], g = e[12], y = e[13], x = e[14], E = t[0], T = t[1], D = t[2], A = t[4], O = t[5], I = t[6], B = t[8], M = t[9], G = t[10], P = t[12], V = t[13], k = t[14], H = i * E + a * T + u * D, j = o * E + c * T + d * D, r = s * E + l * T + p * D, b = i * A + a * O + u * I, v = o * A + c * O + d * I, z = s * A + l * O + p * I, q = i * B + a * M + u * G, W = o * B + c * M + d * G, $ = s * B + l * M + p * G, X = i * P + a * V + u * k + g, ie = o * P + c * V + d * k + y, se = s * P + l * V + p * k + x;
|
|
1598
|
+
return n[0] = H, n[1] = j, n[2] = r, n[3] = 0, n[4] = b, n[5] = v, n[6] = z, n[7] = 0, n[8] = q, n[9] = W, n[10] = $, n[11] = 0, n[12] = X, n[13] = ie, n[14] = se, n[15] = 1, n;
|
|
1599
1599
|
};
|
|
1600
1600
|
F.multiplyByMatrix3 = function(e, t, n) {
|
|
1601
1601
|
m.typeOf.object("matrix", e), m.typeOf.object("rotation", t), m.typeOf.object("result", n);
|
|
1602
|
-
const i = e[0], o = e[1], s = e[2], a = e[4], c = e[5], l = e[6], u = e[8], d = e[9], p = e[10], g = t[0], y = t[1], x = t[2], E = t[3], T = t[4], D = t[5], A = t[6], O = t[7], I = t[8], B = i * g + a * y + u * x, M = o * g + c * y + d * x,
|
|
1603
|
-
return n[0] = B, n[1] = M, n[2] =
|
|
1602
|
+
const i = e[0], o = e[1], s = e[2], a = e[4], c = e[5], l = e[6], u = e[8], d = e[9], p = e[10], g = t[0], y = t[1], x = t[2], E = t[3], T = t[4], D = t[5], A = t[6], O = t[7], I = t[8], B = i * g + a * y + u * x, M = o * g + c * y + d * x, G = s * g + l * y + p * x, P = i * E + a * T + u * D, V = o * E + c * T + d * D, k = s * E + l * T + p * D, H = i * A + a * O + u * I, j = o * A + c * O + d * I, r = s * A + l * O + p * I;
|
|
1603
|
+
return n[0] = B, n[1] = M, n[2] = G, n[3] = 0, n[4] = P, n[5] = V, n[6] = k, n[7] = 0, n[8] = H, n[9] = j, n[10] = r, n[11] = 0, n[12] = e[12], n[13] = e[13], n[14] = e[14], n[15] = e[15], n;
|
|
1604
1604
|
};
|
|
1605
1605
|
F.multiplyByTranslation = function(e, t, n) {
|
|
1606
1606
|
m.typeOf.object("matrix", e), m.typeOf.object("translation", t), m.typeOf.object("result", n);
|
|
@@ -1663,10 +1663,10 @@ const J0 = new L(), e_ = new L(), t_ = new Y(), n_ = new Y(0, 0, 0, 1);
|
|
|
1663
1663
|
F.inverse = function(e, t) {
|
|
1664
1664
|
m.typeOf.object("matrix", e), m.typeOf.object("result", t);
|
|
1665
1665
|
const n = e[0], i = e[4], o = e[8], s = e[12], a = e[1], c = e[5], l = e[9], u = e[13], d = e[2], p = e[6], g = e[10], y = e[14], x = e[3], E = e[7], T = e[11], D = e[15];
|
|
1666
|
-
let A = g * D, O = y * T, I = p * D, B = y * E, M = p * T,
|
|
1667
|
-
const b = A * c + B * l + M * u - (O * c + I * l +
|
|
1668
|
-
A = o * u, O = s * l, I = i * u, B = s * c, M = i * l,
|
|
1669
|
-
const se = A * E + B * T + M * D - (O * E + I * T +
|
|
1666
|
+
let A = g * D, O = y * T, I = p * D, B = y * E, M = p * T, G = g * E, P = d * D, V = y * x, k = d * T, H = g * x, j = d * E, r = p * x;
|
|
1667
|
+
const b = A * c + B * l + M * u - (O * c + I * l + G * u), v = O * a + P * l + H * u - (A * a + V * l + k * u), z = I * a + V * c + j * u - (B * a + P * c + r * u), q = G * a + k * c + r * l - (M * a + H * c + j * l), W = O * i + I * o + G * s - (A * i + B * o + M * s), $ = A * n + V * o + k * s - (O * n + P * o + H * s), X = B * n + P * i + r * s - (I * n + V * i + j * s), ie = M * n + H * i + j * o - (G * n + k * i + r * o);
|
|
1668
|
+
A = o * u, O = s * l, I = i * u, B = s * c, M = i * l, G = o * c, P = n * u, V = s * a, k = n * l, H = o * a, j = n * c, r = i * a;
|
|
1669
|
+
const se = A * E + B * T + M * D - (O * E + I * T + G * D), me = O * x + P * T + H * D - (A * x + V * T + k * D), Ce = I * x + V * E + j * D - (B * x + P * E + r * D), ge = G * x + k * E + r * T - (M * x + H * E + j * T), Ie = I * g + G * y + O * p - (M * y + A * p + B * g), Ve = k * y + A * d + V * g - (P * g + H * y + O * d), Ke = P * p + r * y + B * d - (j * y + I * d + V * p), st = j * g + M * d + H * p - (k * p + r * g + G * d);
|
|
1670
1670
|
let ze = n * b + i * v + o * z + s * q;
|
|
1671
1671
|
if (Math.abs(ze) < S.EPSILON21) {
|
|
1672
1672
|
if (L.equalsEpsilon(
|
|
@@ -1678,11 +1678,11 @@ F.inverse = function(e, t) {
|
|
|
1678
1678
|
n_
|
|
1679
1679
|
))
|
|
1680
1680
|
return t[0] = 0, t[1] = 0, t[2] = 0, t[3] = 0, t[4] = 0, t[5] = 0, t[6] = 0, t[7] = 0, t[8] = 0, t[9] = 0, t[10] = 0, t[11] = 0, t[12] = -e[12], t[13] = -e[13], t[14] = -e[14], t[15] = 1, t;
|
|
1681
|
-
throw new
|
|
1681
|
+
throw new ft(
|
|
1682
1682
|
"matrix is not invertible because its determinate is zero."
|
|
1683
1683
|
);
|
|
1684
1684
|
}
|
|
1685
|
-
return ze = 1 / ze, t[0] = b * ze, t[1] = v * ze, t[2] = z * ze, t[3] = q * ze, t[4] = W * ze, t[5] = $ * ze, t[6] = X * ze, t[7] = ie * ze, t[8] = se * ze, t[9] = me * ze, t[10] = Ce * ze, t[11] = ge * ze, t[12] = Ie * ze, t[13] = Ve * ze, t[14] = Ke * ze, t[15] =
|
|
1685
|
+
return ze = 1 / ze, t[0] = b * ze, t[1] = v * ze, t[2] = z * ze, t[3] = q * ze, t[4] = W * ze, t[5] = $ * ze, t[6] = X * ze, t[7] = ie * ze, t[8] = se * ze, t[9] = me * ze, t[10] = Ce * ze, t[11] = ge * ze, t[12] = Ie * ze, t[13] = Ve * ze, t[14] = Ke * ze, t[15] = st * ze, t;
|
|
1686
1686
|
};
|
|
1687
1687
|
F.inverseTransformation = function(e, t) {
|
|
1688
1688
|
m.typeOf.object("matrix", e), m.typeOf.object("result", t);
|
|
@@ -4164,14 +4164,14 @@ Ot.fromTypedArray = function(e) {
|
|
|
4164
4164
|
"array must be a Uint8Array, Uint16Array, or Uint32Array."
|
|
4165
4165
|
);
|
|
4166
4166
|
};
|
|
4167
|
-
const St = Object.freeze(Ot),
|
|
4167
|
+
const St = Object.freeze(Ot), Gs = {
|
|
4168
4168
|
STREAM_DRAW: R.STREAM_DRAW,
|
|
4169
4169
|
STATIC_DRAW: R.STATIC_DRAW,
|
|
4170
4170
|
DYNAMIC_DRAW: R.DYNAMIC_DRAW,
|
|
4171
4171
|
validate: function(e) {
|
|
4172
|
-
return e ===
|
|
4172
|
+
return e === Gs.STREAM_DRAW || e === Gs.STATIC_DRAW || e === Gs.DYNAMIC_DRAW;
|
|
4173
4173
|
}
|
|
4174
|
-
}, Ae = Object.freeze(
|
|
4174
|
+
}, Ae = Object.freeze(Gs);
|
|
4175
4175
|
function vt(e) {
|
|
4176
4176
|
if (e = _(e, _.EMPTY_OBJECT), m.defined("options.context", e.context), !h(e.typedArray) && !h(e.sizeInBytes))
|
|
4177
4177
|
throw new C(
|
|
@@ -4330,7 +4330,7 @@ vt.prototype.destroy = function() {
|
|
|
4330
4330
|
return this._gl.deleteBuffer(this._buffer), et(this);
|
|
4331
4331
|
};
|
|
4332
4332
|
let Di;
|
|
4333
|
-
const
|
|
4333
|
+
const ct = {
|
|
4334
4334
|
requestFullscreen: void 0,
|
|
4335
4335
|
exitFullscreen: void 0,
|
|
4336
4336
|
fullscreenEnabled: void 0,
|
|
@@ -4349,7 +4349,7 @@ Object.defineProperties(tn, {
|
|
|
4349
4349
|
element: {
|
|
4350
4350
|
get: function() {
|
|
4351
4351
|
if (tn.supportsFullscreen())
|
|
4352
|
-
return document[
|
|
4352
|
+
return document[ct.fullscreenElement];
|
|
4353
4353
|
}
|
|
4354
4354
|
},
|
|
4355
4355
|
/**
|
|
@@ -4364,7 +4364,7 @@ Object.defineProperties(tn, {
|
|
|
4364
4364
|
changeEventName: {
|
|
4365
4365
|
get: function() {
|
|
4366
4366
|
if (tn.supportsFullscreen())
|
|
4367
|
-
return
|
|
4367
|
+
return ct.fullscreenchange;
|
|
4368
4368
|
}
|
|
4369
4369
|
},
|
|
4370
4370
|
/**
|
|
@@ -4377,7 +4377,7 @@ Object.defineProperties(tn, {
|
|
|
4377
4377
|
errorEventName: {
|
|
4378
4378
|
get: function() {
|
|
4379
4379
|
if (tn.supportsFullscreen())
|
|
4380
|
-
return
|
|
4380
|
+
return ct.fullscreenerror;
|
|
4381
4381
|
}
|
|
4382
4382
|
},
|
|
4383
4383
|
/**
|
|
@@ -4391,7 +4391,7 @@ Object.defineProperties(tn, {
|
|
|
4391
4391
|
enabled: {
|
|
4392
4392
|
get: function() {
|
|
4393
4393
|
if (tn.supportsFullscreen())
|
|
4394
|
-
return document[
|
|
4394
|
+
return document[ct.fullscreenEnabled];
|
|
4395
4395
|
}
|
|
4396
4396
|
},
|
|
4397
4397
|
/**
|
|
@@ -4413,22 +4413,22 @@ tn.supportsFullscreen = function() {
|
|
|
4413
4413
|
Di = !1;
|
|
4414
4414
|
const e = document.body;
|
|
4415
4415
|
if (typeof e.requestFullscreen == "function")
|
|
4416
|
-
return
|
|
4416
|
+
return ct.requestFullscreen = "requestFullscreen", ct.exitFullscreen = "exitFullscreen", ct.fullscreenEnabled = "fullscreenEnabled", ct.fullscreenElement = "fullscreenElement", ct.fullscreenchange = "fullscreenchange", ct.fullscreenerror = "fullscreenerror", Di = !0, Di;
|
|
4417
4417
|
const t = ["webkit", "moz", "o", "ms", "khtml"];
|
|
4418
4418
|
let n;
|
|
4419
4419
|
for (let i = 0, o = t.length; i < o; ++i) {
|
|
4420
4420
|
const s = t[i];
|
|
4421
|
-
n = `${s}RequestFullscreen`, typeof e[n] == "function" ? (
|
|
4421
|
+
n = `${s}RequestFullscreen`, typeof e[n] == "function" ? (ct.requestFullscreen = n, Di = !0) : (n = `${s}RequestFullScreen`, typeof e[n] == "function" && (ct.requestFullscreen = n, Di = !0)), n = `${s}ExitFullscreen`, typeof document[n] == "function" ? ct.exitFullscreen = n : (n = `${s}CancelFullScreen`, typeof document[n] == "function" && (ct.exitFullscreen = n)), n = `${s}FullscreenEnabled`, document[n] !== void 0 ? ct.fullscreenEnabled = n : (n = `${s}FullScreenEnabled`, document[n] !== void 0 && (ct.fullscreenEnabled = n)), n = `${s}FullscreenElement`, document[n] !== void 0 ? ct.fullscreenElement = n : (n = `${s}FullScreenElement`, document[n] !== void 0 && (ct.fullscreenElement = n)), n = `${s}fullscreenchange`, document[`on${n}`] !== void 0 && (s === "ms" && (n = "MSFullscreenChange"), ct.fullscreenchange = n), n = `${s}fullscreenerror`, document[`on${n}`] !== void 0 && (s === "ms" && (n = "MSFullscreenError"), ct.fullscreenerror = n);
|
|
4422
4422
|
}
|
|
4423
4423
|
return Di;
|
|
4424
4424
|
};
|
|
4425
4425
|
tn.requestFullscreen = function(e, t) {
|
|
4426
|
-
tn.supportsFullscreen() && e[
|
|
4426
|
+
tn.supportsFullscreen() && e[ct.requestFullscreen]({ vrDisplay: t });
|
|
4427
4427
|
};
|
|
4428
4428
|
tn.exitFullscreen = function() {
|
|
4429
|
-
tn.supportsFullscreen() && document[
|
|
4429
|
+
tn.supportsFullscreen() && document[ct.exitFullscreen]();
|
|
4430
4430
|
};
|
|
4431
|
-
tn._names =
|
|
4431
|
+
tn._names = ct;
|
|
4432
4432
|
let Wt;
|
|
4433
4433
|
typeof navigator < "u" ? Wt = navigator : Wt = {};
|
|
4434
4434
|
function no(e) {
|
|
@@ -5173,16 +5173,16 @@ function md(e, t, n, i, o) {
|
|
|
5173
5173
|
return isFinite(E) ? f.clone(T, o) : void 0;
|
|
5174
5174
|
const D = n.x, A = n.y, O = n.z, I = w_;
|
|
5175
5175
|
I.x = T.x * D * 2, I.y = T.y * A * 2, I.z = T.z * O * 2;
|
|
5176
|
-
let B = (1 - E) * f.magnitude(e) / (0.5 * f.magnitude(I)), M = 0,
|
|
5176
|
+
let B = (1 - E) * f.magnitude(e) / (0.5 * f.magnitude(I)), M = 0, G, P, V, k, H, j, r, b, v, z, q;
|
|
5177
5177
|
do {
|
|
5178
|
-
B -= M, V = 1 / (1 + B * D), k = 1 / (1 + B * A),
|
|
5178
|
+
B -= M, V = 1 / (1 + B * D), k = 1 / (1 + B * A), H = 1 / (1 + B * O), j = V * V, r = k * k, b = H * H, v = j * V, z = r * k, q = b * H, G = p * j + g * r + y * b - 1, P = p * v * D + g * z * A + y * q * O;
|
|
5179
5179
|
const W = -2 * P;
|
|
5180
|
-
M =
|
|
5181
|
-
} while (Math.abs(
|
|
5182
|
-
return h(o) ? (o.x = s * V, o.y = a * k, o.z = c *
|
|
5180
|
+
M = G / W;
|
|
5181
|
+
} while (Math.abs(G) > S.EPSILON12);
|
|
5182
|
+
return h(o) ? (o.x = s * V, o.y = a * k, o.z = c * H, o) : new f(
|
|
5183
5183
|
s * V,
|
|
5184
5184
|
a * k,
|
|
5185
|
-
c *
|
|
5185
|
+
c * H
|
|
5186
5186
|
);
|
|
5187
5187
|
}
|
|
5188
5188
|
function ee(e, t, n) {
|
|
@@ -5728,7 +5728,7 @@ const L_ = {
|
|
|
5728
5728
|
* @constant
|
|
5729
5729
|
*/
|
|
5730
5730
|
MODIFIED_JULIAN_DATE_DIFFERENCE: 24000005e-1
|
|
5731
|
-
},
|
|
5731
|
+
}, nt = Object.freeze(L_), M_ = {
|
|
5732
5732
|
/**
|
|
5733
5733
|
* Represents the coordinated Universal Time (UTC) time standard.
|
|
5734
5734
|
*
|
|
@@ -5802,21 +5802,21 @@ function Dh(e, t) {
|
|
|
5802
5802
|
);
|
|
5803
5803
|
}
|
|
5804
5804
|
function Ui(e, t, n) {
|
|
5805
|
-
const i = t /
|
|
5806
|
-
return e += i, t -=
|
|
5805
|
+
const i = t / nt.SECONDS_PER_DAY | 0;
|
|
5806
|
+
return e += i, t -= nt.SECONDS_PER_DAY * i, t < 0 && (e--, t += nt.SECONDS_PER_DAY), n.dayNumber = e, n.secondsOfDay = t, n;
|
|
5807
5807
|
}
|
|
5808
5808
|
function Il(e, t, n, i, o, s, a) {
|
|
5809
5809
|
const c = (t - 14) / 12 | 0, l = e + 4800 + c;
|
|
5810
5810
|
let u = (1461 * l / 4 | 0) + (367 * (t - 2 - 12 * c) / 12 | 0) - (3 * ((l + 100) / 100 | 0) / 4 | 0) + n - 32075;
|
|
5811
5811
|
i = i - 12, i < 0 && (i += 24);
|
|
5812
|
-
const d = s + (i *
|
|
5812
|
+
const d = s + (i * nt.SECONDS_PER_HOUR + o * nt.SECONDS_PER_MINUTE + a * nt.SECONDS_PER_MILLISECOND);
|
|
5813
5813
|
return d >= 43200 && (u -= 1), [u, d];
|
|
5814
5814
|
}
|
|
5815
|
-
const U_ = /^(\d{4})$/, k_ = /^(\d{4})-(\d{2})$/, V_ = /^(\d{4})-?(\d{3})$/, q_ = /^(\d{4})-?W(\d{2})-?(\d{1})?$/,
|
|
5815
|
+
const U_ = /^(\d{4})$/, k_ = /^(\d{4})-(\d{2})$/, V_ = /^(\d{4})-?(\d{3})$/, q_ = /^(\d{4})-?W(\d{2})-?(\d{1})?$/, G_ = /^(\d{4})-?(\d{2})-?(\d{2})$/, Rl = /([Z+\-])?(\d{2})?:?(\d{2})?$/, H_ = /^(\d{2})(\.\d+)?/.source + Rl.source, W_ = /^(\d{2}):?(\d{2})(\.\d+)?/.source + Rl.source, j_ = /^(\d{2}):?(\d{2}):?(\d{2})(\.\d+)?/.source + Rl.source, wn = "Invalid ISO 8601 date.";
|
|
5816
5816
|
function Z(e, t, n) {
|
|
5817
5817
|
this.dayNumber = void 0, this.secondsOfDay = void 0, e = _(e, 0), t = _(t, 0), n = _(n, Oe.UTC);
|
|
5818
5818
|
const i = e | 0;
|
|
5819
|
-
t = t + (e - i) *
|
|
5819
|
+
t = t + (e - i) * nt.SECONDS_PER_DAY, Ui(i, t, this), n === Oe.UTC && Ea(this);
|
|
5820
5820
|
}
|
|
5821
5821
|
Z.fromGregorianDate = function(e, t) {
|
|
5822
5822
|
if (!(e instanceof Ol))
|
|
@@ -5856,7 +5856,7 @@ Z.fromIso8601 = function(e, t) {
|
|
|
5856
5856
|
if (!h(d))
|
|
5857
5857
|
throw new C(wn);
|
|
5858
5858
|
let x;
|
|
5859
|
-
if (n = d.match(
|
|
5859
|
+
if (n = d.match(G_), n !== null) {
|
|
5860
5860
|
if (x = d.split("-").length - 1, x > 0 && x !== 2)
|
|
5861
5861
|
throw new C(wn);
|
|
5862
5862
|
i = +n[1], o = +n[2], s = +n[3];
|
|
@@ -5892,7 +5892,7 @@ Z.fromIso8601 = function(e, t) {
|
|
|
5892
5892
|
if (x = p.split(":").length - 1, x > 2)
|
|
5893
5893
|
throw new C(wn);
|
|
5894
5894
|
a = +n[1], c = +n[2], l = +(n[3] || 0) * 60, E = 4;
|
|
5895
|
-
} else if (n = p.match(
|
|
5895
|
+
} else if (n = p.match(H_), n !== null)
|
|
5896
5896
|
a = +n[1], c = +(n[2] || 0) * 60, E = 3;
|
|
5897
5897
|
else
|
|
5898
5898
|
throw new C(wn);
|
|
@@ -5959,11 +5959,11 @@ Z.toGregorianDate = function(e, t) {
|
|
|
5959
5959
|
const u = 80 * a / 2447 | 0, d = a - (2447 * u / 80 | 0) | 0;
|
|
5960
5960
|
a = u / 11 | 0;
|
|
5961
5961
|
const p = u + 2 - 12 * a | 0, g = 100 * (c - 49) + l + a | 0;
|
|
5962
|
-
let y = s /
|
|
5963
|
-
const E = x /
|
|
5964
|
-
x = x - E *
|
|
5962
|
+
let y = s / nt.SECONDS_PER_HOUR | 0, x = s - y * nt.SECONDS_PER_HOUR;
|
|
5963
|
+
const E = x / nt.SECONDS_PER_MINUTE | 0;
|
|
5964
|
+
x = x - E * nt.SECONDS_PER_MINUTE;
|
|
5965
5965
|
let T = x | 0;
|
|
5966
|
-
const D = (x - T) /
|
|
5966
|
+
const D = (x - T) / nt.SECONDS_PER_MILLISECOND;
|
|
5967
5967
|
return y += 12, y > 23 && (y -= 24), n && (T += 1), h(t) ? (t.year = g, t.month = p, t.day = d, t.hour = y, t.minute = E, t.second = T, t.millisecond = D, t.isLeapSecond = n, t) : new Ol(
|
|
5968
5968
|
g,
|
|
5969
5969
|
p,
|
|
@@ -6027,21 +6027,21 @@ Z.equalsEpsilon = function(e, t, n) {
|
|
|
6027
6027
|
Z.totalDays = function(e) {
|
|
6028
6028
|
if (!h(e))
|
|
6029
6029
|
throw new C("julianDate is required.");
|
|
6030
|
-
return e.dayNumber + e.secondsOfDay /
|
|
6030
|
+
return e.dayNumber + e.secondsOfDay / nt.SECONDS_PER_DAY;
|
|
6031
6031
|
};
|
|
6032
6032
|
Z.secondsDifference = function(e, t) {
|
|
6033
6033
|
if (!h(e))
|
|
6034
6034
|
throw new C("left is required.");
|
|
6035
6035
|
if (!h(t))
|
|
6036
6036
|
throw new C("right is required.");
|
|
6037
|
-
return (e.dayNumber - t.dayNumber) *
|
|
6037
|
+
return (e.dayNumber - t.dayNumber) * nt.SECONDS_PER_DAY + (e.secondsOfDay - t.secondsOfDay);
|
|
6038
6038
|
};
|
|
6039
6039
|
Z.daysDifference = function(e, t) {
|
|
6040
6040
|
if (!h(e))
|
|
6041
6041
|
throw new C("left is required.");
|
|
6042
6042
|
if (!h(t))
|
|
6043
6043
|
throw new C("right is required.");
|
|
6044
|
-
const n = e.dayNumber - t.dayNumber, i = (e.secondsOfDay - t.secondsOfDay) /
|
|
6044
|
+
const n = e.dayNumber - t.dayNumber, i = (e.secondsOfDay - t.secondsOfDay) / nt.SECONDS_PER_DAY;
|
|
6045
6045
|
return n + i;
|
|
6046
6046
|
};
|
|
6047
6047
|
Z.computeTaiMinusUtc = function(e) {
|
|
@@ -6074,7 +6074,7 @@ Z.addMinutes = function(e, t, n) {
|
|
|
6074
6074
|
throw new C("minutes is required.");
|
|
6075
6075
|
if (!h(n))
|
|
6076
6076
|
throw new C("result is required.");
|
|
6077
|
-
const i = e.secondsOfDay + t *
|
|
6077
|
+
const i = e.secondsOfDay + t * nt.SECONDS_PER_MINUTE;
|
|
6078
6078
|
return Ui(e.dayNumber, i, n);
|
|
6079
6079
|
};
|
|
6080
6080
|
Z.addHours = function(e, t, n) {
|
|
@@ -6084,7 +6084,7 @@ Z.addHours = function(e, t, n) {
|
|
|
6084
6084
|
throw new C("hours is required.");
|
|
6085
6085
|
if (!h(n))
|
|
6086
6086
|
throw new C("result is required.");
|
|
6087
|
-
const i = e.secondsOfDay + t *
|
|
6087
|
+
const i = e.secondsOfDay + t * nt.SECONDS_PER_HOUR;
|
|
6088
6088
|
return Ui(e.dayNumber, i, n);
|
|
6089
6089
|
};
|
|
6090
6090
|
Z.addDays = function(e, t, n) {
|
|
@@ -6192,7 +6192,7 @@ function Y_() {
|
|
|
6192
6192
|
overflow: "Overflow: input needs wider integers to process",
|
|
6193
6193
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
6194
6194
|
"invalid-input": "Invalid input"
|
|
6195
|
-
}, I = l - u, B = Math.floor, M = String.fromCharCode,
|
|
6195
|
+
}, I = l - u, B = Math.floor, M = String.fromCharCode, G;
|
|
6196
6196
|
function P(X) {
|
|
6197
6197
|
throw new RangeError(O[X]);
|
|
6198
6198
|
}
|
|
@@ -6207,7 +6207,7 @@ function Y_() {
|
|
|
6207
6207
|
var Ce = X.split("."), ge = V(Ce, ie).join(".");
|
|
6208
6208
|
return me + ge;
|
|
6209
6209
|
}
|
|
6210
|
-
function
|
|
6210
|
+
function H(X) {
|
|
6211
6211
|
for (var ie = [], se = 0, me = X.length, Ce, ge; se < me; )
|
|
6212
6212
|
Ce = X.charCodeAt(se++), Ce >= 55296 && Ce <= 56319 && se < me ? (ge = X.charCodeAt(se++), (ge & 64512) == 56320 ? ie.push(((Ce & 1023) << 10) + (ge & 1023) + 65536) : (ie.push(Ce), se--)) : ie.push(Ce);
|
|
6213
6213
|
return ie;
|
|
@@ -6231,26 +6231,26 @@ function Y_() {
|
|
|
6231
6231
|
return B(me + (I + 1) * X / (X + p));
|
|
6232
6232
|
}
|
|
6233
6233
|
function z(X) {
|
|
6234
|
-
var ie = [], se = X.length, me, Ce = 0, ge = x, Ie = y, Ve, Ke,
|
|
6234
|
+
var ie = [], se = X.length, me, Ce = 0, ge = x, Ie = y, Ve, Ke, st, ze, pt, xt, mt, Qt, Jt;
|
|
6235
6235
|
for (Ve = X.lastIndexOf(E), Ve < 0 && (Ve = 0), Ke = 0; Ke < Ve; ++Ke)
|
|
6236
6236
|
X.charCodeAt(Ke) >= 128 && P("not-basic"), ie.push(X.charCodeAt(Ke));
|
|
6237
|
-
for (
|
|
6238
|
-
for (ze = Ce,
|
|
6239
|
-
Jt = l - Qt,
|
|
6237
|
+
for (st = Ve > 0 ? Ve + 1 : 0; st < se; ) {
|
|
6238
|
+
for (ze = Ce, pt = 1, xt = l; st >= se && P("invalid-input"), mt = r(X.charCodeAt(st++)), (mt >= l || mt > B((c - Ce) / pt)) && P("overflow"), Ce += mt * pt, Qt = xt <= Ie ? u : xt >= Ie + d ? d : xt - Ie, !(mt < Qt); xt += l)
|
|
6239
|
+
Jt = l - Qt, pt > B(c / Jt) && P("overflow"), pt *= Jt;
|
|
6240
6240
|
me = ie.length + 1, Ie = v(Ce - ze, me, ze == 0), B(Ce / me) > c - ge && P("overflow"), ge += B(Ce / me), Ce %= me, ie.splice(Ce++, 0, ge);
|
|
6241
6241
|
}
|
|
6242
6242
|
return j(ie);
|
|
6243
6243
|
}
|
|
6244
6244
|
function q(X) {
|
|
6245
|
-
var ie, se, me, Ce, ge, Ie, Ve, Ke,
|
|
6246
|
-
for (X =
|
|
6247
|
-
|
|
6248
|
-
for (me = Ce = xt.length, Ce && xt.push(E); me <
|
|
6249
|
-
for (Ve = c, Ie = 0; Ie <
|
|
6250
|
-
|
|
6251
|
-
for (Qt = me + 1, Ve - ie > B((c - se) / Qt) && P("overflow"), se += (Ve - ie) * Qt, ie = Ve, Ie = 0; Ie <
|
|
6252
|
-
if (
|
|
6253
|
-
for (Ke = se,
|
|
6245
|
+
var ie, se, me, Ce, ge, Ie, Ve, Ke, st, ze, pt, xt = [], mt, Qt, Jt, bn;
|
|
6246
|
+
for (X = H(X), mt = X.length, ie = x, se = 0, ge = y, Ie = 0; Ie < mt; ++Ie)
|
|
6247
|
+
pt = X[Ie], pt < 128 && xt.push(M(pt));
|
|
6248
|
+
for (me = Ce = xt.length, Ce && xt.push(E); me < mt; ) {
|
|
6249
|
+
for (Ve = c, Ie = 0; Ie < mt; ++Ie)
|
|
6250
|
+
pt = X[Ie], pt >= ie && pt < Ve && (Ve = pt);
|
|
6251
|
+
for (Qt = me + 1, Ve - ie > B((c - se) / Qt) && P("overflow"), se += (Ve - ie) * Qt, ie = Ve, Ie = 0; Ie < mt; ++Ie)
|
|
6252
|
+
if (pt = X[Ie], pt < ie && ++se > c && P("overflow"), pt == ie) {
|
|
6253
|
+
for (Ke = se, st = l; ze = st <= ge ? u : st >= ge + d ? d : st - ge, !(Ke < ze); st += l)
|
|
6254
6254
|
bn = Ke - ze, Jt = l - ze, xt.push(
|
|
6255
6255
|
M(b(ze + bn % Jt, 0))
|
|
6256
6256
|
), Ke = B(bn / Jt);
|
|
@@ -6285,7 +6285,7 @@ function Y_() {
|
|
|
6285
6285
|
* @type Object
|
|
6286
6286
|
*/
|
|
6287
6287
|
ucs2: {
|
|
6288
|
-
decode:
|
|
6288
|
+
decode: H,
|
|
6289
6289
|
encode: j
|
|
6290
6290
|
},
|
|
6291
6291
|
decode: z,
|
|
@@ -6296,8 +6296,8 @@ function Y_() {
|
|
|
6296
6296
|
if (e.exports == i)
|
|
6297
6297
|
o.exports = a;
|
|
6298
6298
|
else
|
|
6299
|
-
for (
|
|
6300
|
-
a.hasOwnProperty(
|
|
6299
|
+
for (G in a)
|
|
6300
|
+
a.hasOwnProperty(G) && (i[G] = a[G]);
|
|
6301
6301
|
else
|
|
6302
6302
|
n.punycode = a;
|
|
6303
6303
|
})(vo);
|
|
@@ -7025,12 +7025,12 @@ function $_() {
|
|
|
7025
7025
|
}
|
|
7026
7026
|
if (Ie > -1 ? ge = ge.slice(0, Ie) + ge.slice(Ie).replace(W, "") : ge = ge.replace(W, ""), !(ge.length <= ie[0].length) && !(v.ignore && v.ignore.test(ge))) {
|
|
7027
7027
|
Ce = se + ge.length;
|
|
7028
|
-
var
|
|
7029
|
-
if (
|
|
7028
|
+
var st = b(ge, se, Ce, r);
|
|
7029
|
+
if (st === void 0) {
|
|
7030
7030
|
z.lastIndex = Ce;
|
|
7031
7031
|
continue;
|
|
7032
7032
|
}
|
|
7033
|
-
|
|
7033
|
+
st = String(st), r = r.slice(0, se) + st + r.slice(Ce), z.lastIndex = se + st.length;
|
|
7034
7034
|
}
|
|
7035
7035
|
}
|
|
7036
7036
|
return z.lastIndex = 0, r;
|
|
@@ -7065,7 +7065,7 @@ function $_() {
|
|
|
7065
7065
|
}, l.valueOf = l.toString = function() {
|
|
7066
7066
|
return this.build(!1)._string;
|
|
7067
7067
|
};
|
|
7068
|
-
function
|
|
7068
|
+
function G(r) {
|
|
7069
7069
|
return function(b, v) {
|
|
7070
7070
|
return b === void 0 ? this._parts[r] || "" : (this._parts[r] = b || null, this.build(!v), this);
|
|
7071
7071
|
};
|
|
@@ -7075,7 +7075,7 @@ function $_() {
|
|
|
7075
7075
|
return v === void 0 ? this._parts[r] || "" : (v !== null && (v = v + "", v.charAt(0) === b && (v = v.substring(1))), this._parts[r] = v, this.build(!z), this);
|
|
7076
7076
|
};
|
|
7077
7077
|
}
|
|
7078
|
-
l.protocol =
|
|
7078
|
+
l.protocol = G("protocol"), l.username = G("username"), l.password = G("password"), l.hostname = G("hostname"), l.port = G("port"), l.query = P("query", "?"), l.fragment = P("fragment", "#"), l.search = function(r, b) {
|
|
7079
7079
|
var v = this.query(r, b);
|
|
7080
7080
|
return typeof v == "string" && v.length ? "?" + v : v;
|
|
7081
7081
|
}, l.hash = function(r, b) {
|
|
@@ -7140,7 +7140,7 @@ function $_() {
|
|
|
7140
7140
|
}
|
|
7141
7141
|
return null;
|
|
7142
7142
|
};
|
|
7143
|
-
var V = l.protocol, k = l.port,
|
|
7143
|
+
var V = l.protocol, k = l.port, H = l.hostname;
|
|
7144
7144
|
l.protocol = function(r, b) {
|
|
7145
7145
|
if (r && (r = r.replace(/:(\/\/)?$/, ""), !r.match(a.protocol_expression)))
|
|
7146
7146
|
throw new TypeError('Protocol "' + r + `" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]`);
|
|
@@ -7156,7 +7156,7 @@ function $_() {
|
|
|
7156
7156
|
throw new TypeError('Hostname "' + r + '" contains characters other than [A-Z0-9.-]');
|
|
7157
7157
|
r = v.hostname, this._parts.preventInvalidHostname && a.ensureValidHostname(r, this._parts.protocol);
|
|
7158
7158
|
}
|
|
7159
|
-
return
|
|
7159
|
+
return H.call(this, r, b);
|
|
7160
7160
|
}, l.origin = function(r, b) {
|
|
7161
7161
|
if (this._parts.urn)
|
|
7162
7162
|
return r === void 0 ? "" : this;
|
|
@@ -7665,7 +7665,7 @@ const rg = {
|
|
|
7665
7665
|
* @constant
|
|
7666
7666
|
*/
|
|
7667
7667
|
FAILED: 5
|
|
7668
|
-
},
|
|
7668
|
+
}, ut = Object.freeze(rg), sg = {
|
|
7669
7669
|
/**
|
|
7670
7670
|
* Terrain request.
|
|
7671
7671
|
*
|
|
@@ -7698,13 +7698,13 @@ const rg = {
|
|
|
7698
7698
|
function aa(e) {
|
|
7699
7699
|
e = _(e, _.EMPTY_OBJECT);
|
|
7700
7700
|
const t = _(e.throttleByServer, !1), n = _(e.throttle, !1);
|
|
7701
|
-
this.url = e.url, this.requestFunction = e.requestFunction, this.cancelFunction = e.cancelFunction, this.priorityFunction = e.priorityFunction, this.priority = _(e.priority, 0), this.throttle = n, this.throttleByServer = t, this.type = _(e.type, ag.OTHER), this.serverKey = e.serverKey, this.state =
|
|
7701
|
+
this.url = e.url, this.requestFunction = e.requestFunction, this.cancelFunction = e.cancelFunction, this.priorityFunction = e.priorityFunction, this.priority = _(e.priority, 0), this.throttle = n, this.throttleByServer = t, this.type = _(e.type, ag.OTHER), this.serverKey = e.serverKey, this.state = ut.UNISSUED, this.deferred = void 0, this.cancelled = !1;
|
|
7702
7702
|
}
|
|
7703
7703
|
aa.prototype.cancel = function() {
|
|
7704
7704
|
this.cancelled = !0;
|
|
7705
7705
|
};
|
|
7706
7706
|
aa.prototype.clone = function(e) {
|
|
7707
|
-
return h(e) ? (e.url = this.url, e.requestFunction = this.requestFunction, e.cancelFunction = this.cancelFunction, e.priorityFunction = this.priorityFunction, e.priority = this.priority, e.throttle = this.throttle, e.throttleByServer = this.throttleByServer, e.type = this.type, e.serverKey = this.serverKey, e.state =
|
|
7707
|
+
return h(e) ? (e.url = this.url, e.requestFunction = this.requestFunction, e.cancelFunction = this.cancelFunction, e.priorityFunction = this.priorityFunction, e.priority = this.priority, e.throttle = this.throttle, e.throttleByServer = this.throttleByServer, e.type = this.type, e.serverKey = this.serverKey, e.state = ut.UNISSUED, e.deferred = void 0, e.cancelled = !1, e) : new aa(this);
|
|
7708
7708
|
};
|
|
7709
7709
|
function cg(e) {
|
|
7710
7710
|
const t = {};
|
|
@@ -7905,11 +7905,11 @@ const Fe = {
|
|
|
7905
7905
|
lastNumberOfActiveRequests: 0
|
|
7906
7906
|
};
|
|
7907
7907
|
let Io = 20;
|
|
7908
|
-
const
|
|
7908
|
+
const Ht = new ro({
|
|
7909
7909
|
comparator: hg
|
|
7910
7910
|
});
|
|
7911
|
-
|
|
7912
|
-
|
|
7911
|
+
Ht.maximumLength = Io;
|
|
7912
|
+
Ht.reserve(Io);
|
|
7913
7913
|
const qn = [];
|
|
7914
7914
|
let xi = {};
|
|
7915
7915
|
const fg = typeof document < "u" ? new yi(document.location.href) : new yi(), Ta = new Pe();
|
|
@@ -7951,11 +7951,11 @@ Object.defineProperties($e, {
|
|
|
7951
7951
|
},
|
|
7952
7952
|
set: function(e) {
|
|
7953
7953
|
if (e < Io)
|
|
7954
|
-
for (;
|
|
7955
|
-
const t =
|
|
7954
|
+
for (; Ht.length > e; ) {
|
|
7955
|
+
const t = Ht.pop();
|
|
7956
7956
|
eo(t);
|
|
7957
7957
|
}
|
|
7958
|
-
Io = e,
|
|
7958
|
+
Io = e, Ht.maximumLength = e, Ht.reserve(e);
|
|
7959
7959
|
}
|
|
7960
7960
|
}
|
|
7961
7961
|
});
|
|
@@ -7971,31 +7971,31 @@ $e.serverHasOpenSlots = function(e, t) {
|
|
|
7971
7971
|
return xi[e] + t <= n;
|
|
7972
7972
|
};
|
|
7973
7973
|
$e.heapHasOpenSlots = function(e) {
|
|
7974
|
-
return
|
|
7974
|
+
return Ht.length + e <= Io;
|
|
7975
7975
|
};
|
|
7976
7976
|
function Td(e) {
|
|
7977
|
-
return e.state ===
|
|
7977
|
+
return e.state === ut.UNISSUED && (e.state = ut.ISSUED, e.deferred = Xr()), e.deferred.promise;
|
|
7978
7978
|
}
|
|
7979
7979
|
function ug(e) {
|
|
7980
7980
|
return function(t) {
|
|
7981
|
-
if (e.state ===
|
|
7981
|
+
if (e.state === ut.CANCELLED)
|
|
7982
7982
|
return;
|
|
7983
7983
|
const n = e.deferred;
|
|
7984
|
-
--Fe.numberOfActiveRequests, --xi[e.serverKey], Ta.raiseEvent(), e.state =
|
|
7984
|
+
--Fe.numberOfActiveRequests, --xi[e.serverKey], Ta.raiseEvent(), e.state = ut.RECEIVED, e.deferred = void 0, n.resolve(t);
|
|
7985
7985
|
};
|
|
7986
7986
|
}
|
|
7987
7987
|
function dg(e) {
|
|
7988
7988
|
return function(t) {
|
|
7989
|
-
e.state !==
|
|
7989
|
+
e.state !== ut.CANCELLED && (++Fe.numberOfFailedRequests, --Fe.numberOfActiveRequests, --xi[e.serverKey], Ta.raiseEvent(t), e.state = ut.FAILED, e.deferred.reject(t));
|
|
7990
7990
|
};
|
|
7991
7991
|
}
|
|
7992
7992
|
function bd(e) {
|
|
7993
7993
|
const t = Td(e);
|
|
7994
|
-
return e.state =
|
|
7994
|
+
return e.state = ut.ACTIVE, qn.push(e), ++Fe.numberOfActiveRequests, ++Fe.numberOfActiveRequestsEver, ++xi[e.serverKey], e.requestFunction().then(ug(e)).catch(dg(e)), t;
|
|
7995
7995
|
}
|
|
7996
7996
|
function eo(e) {
|
|
7997
|
-
const t = e.state ===
|
|
7998
|
-
if (e.state =
|
|
7997
|
+
const t = e.state === ut.ACTIVE;
|
|
7998
|
+
if (e.state = ut.CANCELLED, ++Fe.numberOfCancelledRequests, h(e.deferred)) {
|
|
7999
7999
|
const n = e.deferred;
|
|
8000
8000
|
e.deferred = void 0, n.reject();
|
|
8001
8001
|
}
|
|
@@ -8005,24 +8005,24 @@ $e.update = function() {
|
|
|
8005
8005
|
let e, t, n = 0;
|
|
8006
8006
|
const i = qn.length;
|
|
8007
8007
|
for (e = 0; e < i; ++e) {
|
|
8008
|
-
if (t = qn[e], t.cancelled && eo(t), t.state !==
|
|
8008
|
+
if (t = qn[e], t.cancelled && eo(t), t.state !== ut.ACTIVE) {
|
|
8009
8009
|
++n;
|
|
8010
8010
|
continue;
|
|
8011
8011
|
}
|
|
8012
8012
|
n > 0 && (qn[e - n] = t);
|
|
8013
8013
|
}
|
|
8014
8014
|
qn.length -= n;
|
|
8015
|
-
const o =
|
|
8015
|
+
const o = Ht.internalArray, s = Ht.length;
|
|
8016
8016
|
for (e = 0; e < s; ++e)
|
|
8017
8017
|
Ed(o[e]);
|
|
8018
|
-
|
|
8018
|
+
Ht.resort();
|
|
8019
8019
|
const a = Math.max(
|
|
8020
8020
|
$e.maximumRequests - qn.length,
|
|
8021
8021
|
0
|
|
8022
8022
|
);
|
|
8023
8023
|
let c = 0;
|
|
8024
|
-
for (; c < a &&
|
|
8025
|
-
if (t =
|
|
8024
|
+
for (; c < a && Ht.length > 0; ) {
|
|
8025
|
+
if (t = Ht.pop(), t.cancelled) {
|
|
8026
8026
|
eo(t);
|
|
8027
8027
|
continue;
|
|
8028
8028
|
}
|
|
@@ -8045,7 +8045,7 @@ $e.getServerKey = function(e) {
|
|
|
8045
8045
|
};
|
|
8046
8046
|
$e.request = function(e) {
|
|
8047
8047
|
if (m.typeOf.object("request", e), m.typeOf.string("request.url", e.url), m.typeOf.func("request.requestFunction", e.requestFunction), Cd(e.url) || xd(e.url))
|
|
8048
|
-
return Ta.raiseEvent(), e.state =
|
|
8048
|
+
return Ta.raiseEvent(), e.state = ut.RECEIVED, e.requestFunction();
|
|
8049
8049
|
if (++Fe.numberOfAttemptedRequests, h(e.serverKey) || (e.serverKey = $e.getServerKey(e.url)), $e.throttleRequests && e.throttleByServer && !$e.serverHasOpenSlots(e.serverKey))
|
|
8050
8050
|
return;
|
|
8051
8051
|
if (!$e.throttleRequests || !e.throttle)
|
|
@@ -8053,7 +8053,7 @@ $e.request = function(e) {
|
|
|
8053
8053
|
if (qn.length >= $e.maximumRequests)
|
|
8054
8054
|
return;
|
|
8055
8055
|
Ed(e);
|
|
8056
|
-
const t =
|
|
8056
|
+
const t = Ht.insert(e);
|
|
8057
8057
|
if (h(t)) {
|
|
8058
8058
|
if (t === e)
|
|
8059
8059
|
return;
|
|
@@ -8073,8 +8073,8 @@ function pg() {
|
|
|
8073
8073
|
), Fe.numberOfFailedRequests = 0)), Fe.lastNumberOfActiveRequests = Fe.numberOfActiveRequests);
|
|
8074
8074
|
}
|
|
8075
8075
|
$e.clearForSpecs = function() {
|
|
8076
|
-
for (;
|
|
8077
|
-
const t =
|
|
8076
|
+
for (; Ht.length > 0; ) {
|
|
8077
|
+
const t = Ht.pop();
|
|
8078
8078
|
eo(t);
|
|
8079
8079
|
}
|
|
8080
8080
|
const e = qn.length;
|
|
@@ -8085,7 +8085,7 @@ $e.clearForSpecs = function() {
|
|
|
8085
8085
|
$e.numberOfActiveRequestsByServer = function(e) {
|
|
8086
8086
|
return xi[e];
|
|
8087
8087
|
};
|
|
8088
|
-
$e.requestHeap =
|
|
8088
|
+
$e.requestHeap = Ht;
|
|
8089
8089
|
const qo = {};
|
|
8090
8090
|
let Po = {};
|
|
8091
8091
|
qo.add = function(e, t) {
|
|
@@ -8480,8 +8480,8 @@ function Zc(e) {
|
|
|
8480
8480
|
const a = $e.request(s);
|
|
8481
8481
|
if (h(a))
|
|
8482
8482
|
return a.catch(function(c) {
|
|
8483
|
-
return s.state !==
|
|
8484
|
-
return l ? (s.state =
|
|
8483
|
+
return s.state !== ut.FAILED ? Promise.reject(c) : t.retryOnError(c).then(function(l) {
|
|
8484
|
+
return l ? (s.state = ut.UNISSUED, s.deferred = void 0, Zc({
|
|
8485
8485
|
resource: t,
|
|
8486
8486
|
flipY: n,
|
|
8487
8487
|
skipColorSpaceConversion: i,
|
|
@@ -8557,8 +8557,8 @@ function Sd(e, t, n) {
|
|
|
8557
8557
|
const a = $e.request(o);
|
|
8558
8558
|
if (h(a))
|
|
8559
8559
|
return a.catch(function(c) {
|
|
8560
|
-
return o.state !==
|
|
8561
|
-
return l ? (o.state =
|
|
8560
|
+
return o.state !== ut.FAILED ? Promise.reject(c) : e.retryOnError(c).then(function(l) {
|
|
8561
|
+
return l ? (o.state = ut.UNISSUED, o.deferred = void 0, Sd(e, t, n)) : Promise.reject(c);
|
|
8562
8562
|
});
|
|
8563
8563
|
});
|
|
8564
8564
|
}
|
|
@@ -8588,23 +8588,23 @@ ne.prototype._makeRequest = function(e) {
|
|
|
8588
8588
|
return o.then(function(s) {
|
|
8589
8589
|
return n.cancelFunction = void 0, s;
|
|
8590
8590
|
}).catch(function(s) {
|
|
8591
|
-
return n.cancelFunction = void 0, n.state !==
|
|
8592
|
-
return a ? (n.state =
|
|
8591
|
+
return n.cancelFunction = void 0, n.state !== ut.FAILED ? Promise.reject(s) : t.retryOnError(s).then(function(a) {
|
|
8592
|
+
return a ? (n.state = ut.UNISSUED, n.deferred = void 0, t.fetch(e)) : Promise.reject(s);
|
|
8593
8593
|
});
|
|
8594
8594
|
});
|
|
8595
8595
|
};
|
|
8596
8596
|
function Pl(e) {
|
|
8597
|
-
if (e.state ===
|
|
8598
|
-
throw new
|
|
8599
|
-
e.state =
|
|
8597
|
+
if (e.state === ut.ISSUED || e.state === ut.ACTIVE)
|
|
8598
|
+
throw new ft("The Resource is already being fetched.");
|
|
8599
|
+
e.state = ut.UNISSUED, e.deferred = void 0;
|
|
8600
8600
|
}
|
|
8601
8601
|
const yg = /^data:(.*?)(;base64)?,(.*)$/;
|
|
8602
|
-
function
|
|
8602
|
+
function Hs(e, t) {
|
|
8603
8603
|
const n = decodeURIComponent(t);
|
|
8604
8604
|
return e ? atob(n) : n;
|
|
8605
8605
|
}
|
|
8606
8606
|
function Ph(e, t) {
|
|
8607
|
-
const n =
|
|
8607
|
+
const n = Hs(e, t), i = new ArrayBuffer(n.length), o = new Uint8Array(i);
|
|
8608
8608
|
for (let s = 0; s < n.length; s++)
|
|
8609
8609
|
o[s] = n.charCodeAt(s);
|
|
8610
8610
|
return i;
|
|
@@ -8616,7 +8616,7 @@ function xg(e, t) {
|
|
|
8616
8616
|
switch (t) {
|
|
8617
8617
|
case "":
|
|
8618
8618
|
case "text":
|
|
8619
|
-
return
|
|
8619
|
+
return Hs(i, o);
|
|
8620
8620
|
case "arraybuffer":
|
|
8621
8621
|
return Ph(i, o);
|
|
8622
8622
|
case "blob":
|
|
@@ -8625,11 +8625,11 @@ function xg(e, t) {
|
|
|
8625
8625
|
});
|
|
8626
8626
|
case "document":
|
|
8627
8627
|
return a = new DOMParser(), a.parseFromString(
|
|
8628
|
-
|
|
8628
|
+
Hs(i, o),
|
|
8629
8629
|
n
|
|
8630
8630
|
);
|
|
8631
8631
|
case "json":
|
|
8632
|
-
return JSON.parse(
|
|
8632
|
+
return JSON.parse(Hs(i, o));
|
|
8633
8633
|
default:
|
|
8634
8634
|
throw new C(`Unhandled responseType: ${t}`);
|
|
8635
8635
|
}
|
|
@@ -8737,7 +8737,7 @@ ne._Implementations.createImage = function(e, t, n, i, o, s) {
|
|
|
8737
8737
|
}), d.promise.then(function(g) {
|
|
8738
8738
|
if (!h(g)) {
|
|
8739
8739
|
n.reject(
|
|
8740
|
-
new
|
|
8740
|
+
new ft(
|
|
8741
8741
|
`Successfully retrieved ${a} but it contained no content.`
|
|
8742
8742
|
)
|
|
8743
8743
|
);
|
|
@@ -8849,7 +8849,7 @@ ne._Implementations.loadWithXhr = function(e, t, n, i, o, s, a) {
|
|
|
8849
8849
|
s.reject(g);
|
|
8850
8850
|
}
|
|
8851
8851
|
else (p === "" || p === "document") && h(l.responseXML) && l.responseXML.hasChildNodes() ? s.resolve(l.responseXML) : (p === "" || p === "text") && h(l.responseText) ? s.resolve(l.responseText) : s.reject(
|
|
8852
|
-
new
|
|
8852
|
+
new ft("Invalid XMLHttpRequest response type.")
|
|
8853
8853
|
);
|
|
8854
8854
|
}, l.onerror = function(d) {
|
|
8855
8855
|
s.reject(new Tr());
|
|
@@ -8892,7 +8892,7 @@ br.fromUrl = async function(e, t) {
|
|
|
8892
8892
|
try {
|
|
8893
8893
|
i = await n.fetchJson();
|
|
8894
8894
|
} catch {
|
|
8895
|
-
throw new
|
|
8895
|
+
throw new ft(
|
|
8896
8896
|
`An error occurred while retrieving the EOP data from the URL ${n.url}.`
|
|
8897
8897
|
);
|
|
8898
8898
|
}
|
|
@@ -8929,11 +8929,11 @@ function Tg(e, t) {
|
|
|
8929
8929
|
}
|
|
8930
8930
|
function Bh(e, t) {
|
|
8931
8931
|
if (!h(t.columnNames))
|
|
8932
|
-
throw new
|
|
8932
|
+
throw new ft(
|
|
8933
8933
|
"Error in loaded EOP data: The columnNames property is required."
|
|
8934
8934
|
);
|
|
8935
8935
|
if (!h(t.samples))
|
|
8936
|
-
throw new
|
|
8936
|
+
throw new ft(
|
|
8937
8937
|
"Error in loaded EOP data: The samples property is required."
|
|
8938
8938
|
);
|
|
8939
8939
|
const n = t.columnNames.indexOf("modifiedJulianDateUtc"), i = t.columnNames.indexOf("xPoleWanderRadians"), o = t.columnNames.indexOf("yPoleWanderRadians"), s = t.columnNames.indexOf("ut1MinusUtcSeconds"), a = t.columnNames.indexOf(
|
|
@@ -8942,7 +8942,7 @@ function Bh(e, t) {
|
|
|
8942
8942
|
"yCelestialPoleOffsetRadians"
|
|
8943
8943
|
), l = t.columnNames.indexOf("taiMinusUtcSeconds");
|
|
8944
8944
|
if (n < 0 || i < 0 || o < 0 || s < 0 || a < 0 || c < 0 || l < 0)
|
|
8945
|
-
throw new
|
|
8945
|
+
throw new ft(
|
|
8946
8946
|
"Error in loaded EOP data: The columnNames property must include modifiedJulianDateUtc, xPoleWanderRadians, yPoleWanderRadians, ut1MinusUtcSeconds, xCelestialPoleOffsetRadians, yCelestialPoleOffsetRadians, and taiMinusUtcSeconds columns"
|
|
8947
8947
|
);
|
|
8948
8948
|
const u = e._samples = t.samples, d = e._dates = [];
|
|
@@ -8950,7 +8950,7 @@ function Bh(e, t) {
|
|
|
8950
8950
|
let p;
|
|
8951
8951
|
const g = e._addNewLeapSeconds;
|
|
8952
8952
|
for (let y = 0, x = u.length; y < x; y += e._columnCount) {
|
|
8953
|
-
const E = u[y + n], T = u[y + l], D = E +
|
|
8953
|
+
const E = u[y + n], T = u[y + l], D = E + nt.MODIFIED_JULIAN_DATE_DIFFERENCE, A = new Z(D, T, Oe.TAI);
|
|
8954
8954
|
if (d.push(A), g) {
|
|
8955
8955
|
if (T !== p && h(p)) {
|
|
8956
8956
|
const O = Z.leapSeconds, I = Yr(
|
|
@@ -9012,37 +9012,37 @@ function Fh(e, t, n, i, o, s, a) {
|
|
|
9012
9012
|
x
|
|
9013
9013
|
), a;
|
|
9014
9014
|
}
|
|
9015
|
-
function
|
|
9015
|
+
function dt(e, t, n) {
|
|
9016
9016
|
this.heading = _(e, 0), this.pitch = _(t, 0), this.roll = _(n, 0);
|
|
9017
9017
|
}
|
|
9018
|
-
|
|
9018
|
+
dt.fromQuaternion = function(e, t) {
|
|
9019
9019
|
if (!h(e))
|
|
9020
9020
|
throw new C("quaternion is required");
|
|
9021
|
-
h(t) || (t = new
|
|
9021
|
+
h(t) || (t = new dt());
|
|
9022
9022
|
const n = 2 * (e.w * e.y - e.z * e.x), i = 1 - 2 * (e.x * e.x + e.y * e.y), o = 2 * (e.w * e.x + e.y * e.z), s = 1 - 2 * (e.y * e.y + e.z * e.z), a = 2 * (e.w * e.z + e.x * e.y);
|
|
9023
9023
|
return t.heading = -Math.atan2(a, s), t.roll = Math.atan2(o, i), t.pitch = -S.asinClamped(n), t;
|
|
9024
9024
|
};
|
|
9025
|
-
|
|
9025
|
+
dt.fromDegrees = function(e, t, n, i) {
|
|
9026
9026
|
if (!h(e))
|
|
9027
9027
|
throw new C("heading is required");
|
|
9028
9028
|
if (!h(t))
|
|
9029
9029
|
throw new C("pitch is required");
|
|
9030
9030
|
if (!h(n))
|
|
9031
9031
|
throw new C("roll is required");
|
|
9032
|
-
return h(i) || (i = new
|
|
9032
|
+
return h(i) || (i = new dt()), i.heading = e * S.RADIANS_PER_DEGREE, i.pitch = t * S.RADIANS_PER_DEGREE, i.roll = n * S.RADIANS_PER_DEGREE, i;
|
|
9033
9033
|
};
|
|
9034
|
-
|
|
9034
|
+
dt.clone = function(e, t) {
|
|
9035
9035
|
if (h(e))
|
|
9036
|
-
return h(t) ? (t.heading = e.heading, t.pitch = e.pitch, t.roll = e.roll, t) : new
|
|
9036
|
+
return h(t) ? (t.heading = e.heading, t.pitch = e.pitch, t.roll = e.roll, t) : new dt(
|
|
9037
9037
|
e.heading,
|
|
9038
9038
|
e.pitch,
|
|
9039
9039
|
e.roll
|
|
9040
9040
|
);
|
|
9041
9041
|
};
|
|
9042
|
-
|
|
9042
|
+
dt.equals = function(e, t) {
|
|
9043
9043
|
return e === t || h(e) && h(t) && e.heading === t.heading && e.pitch === t.pitch && e.roll === t.roll;
|
|
9044
9044
|
};
|
|
9045
|
-
|
|
9045
|
+
dt.equalsEpsilon = function(e, t, n, i) {
|
|
9046
9046
|
return e === t || h(e) && h(t) && S.equalsEpsilon(
|
|
9047
9047
|
e.heading,
|
|
9048
9048
|
t.heading,
|
|
@@ -9060,21 +9060,21 @@ pt.equalsEpsilon = function(e, t, n, i) {
|
|
|
9060
9060
|
i
|
|
9061
9061
|
);
|
|
9062
9062
|
};
|
|
9063
|
-
|
|
9064
|
-
return
|
|
9063
|
+
dt.prototype.clone = function(e) {
|
|
9064
|
+
return dt.clone(this, e);
|
|
9065
9065
|
};
|
|
9066
|
-
|
|
9067
|
-
return
|
|
9066
|
+
dt.prototype.equals = function(e) {
|
|
9067
|
+
return dt.equals(this, e);
|
|
9068
9068
|
};
|
|
9069
|
-
|
|
9070
|
-
return
|
|
9069
|
+
dt.prototype.equalsEpsilon = function(e, t, n) {
|
|
9070
|
+
return dt.equalsEpsilon(
|
|
9071
9071
|
this,
|
|
9072
9072
|
e,
|
|
9073
9073
|
t,
|
|
9074
9074
|
n
|
|
9075
9075
|
);
|
|
9076
9076
|
};
|
|
9077
|
-
|
|
9077
|
+
dt.prototype.toString = function() {
|
|
9078
9078
|
return `(${this.heading}, ${this.pitch}, ${this.roll})`;
|
|
9079
9079
|
};
|
|
9080
9080
|
const Ad = /((?:.*\/)|^)Cesium\.js(?:\?|\#|$)/;
|
|
@@ -9393,7 +9393,7 @@ let Va = new J();
|
|
|
9393
9393
|
J.lerp = function(e, t, n, i) {
|
|
9394
9394
|
return m.typeOf.object("start", e), m.typeOf.object("end", t), m.typeOf.number("t", n), m.typeOf.object("result", i), Va = J.multiplyByScalar(t, n, Va), i = J.multiplyByScalar(e, 1 - n, i), J.add(Va, i, i);
|
|
9395
9395
|
};
|
|
9396
|
-
let Vh = new J(), qa = new J(),
|
|
9396
|
+
let Vh = new J(), qa = new J(), Ga = new J();
|
|
9397
9397
|
J.slerp = function(e, t, n, i) {
|
|
9398
9398
|
m.typeOf.object("start", e), m.typeOf.object("end", t), m.typeOf.number("t", n), m.typeOf.object("result", i);
|
|
9399
9399
|
let o = J.dot(e, t), s = t;
|
|
@@ -9404,11 +9404,11 @@ J.slerp = function(e, t, n, i) {
|
|
|
9404
9404
|
e,
|
|
9405
9405
|
Math.sin((1 - n) * a),
|
|
9406
9406
|
qa
|
|
9407
|
-
),
|
|
9407
|
+
), Ga = J.multiplyByScalar(
|
|
9408
9408
|
s,
|
|
9409
9409
|
Math.sin(n * a),
|
|
9410
|
-
|
|
9411
|
-
), i = J.add(qa,
|
|
9410
|
+
Ga
|
|
9411
|
+
), i = J.add(qa, Ga, i), J.multiplyByScalar(i, 1 / Math.sin(a), i);
|
|
9412
9412
|
};
|
|
9413
9413
|
J.log = function(e, t) {
|
|
9414
9414
|
m.typeOf.object("quaternion", e), m.typeOf.object("result", t);
|
|
@@ -9483,7 +9483,7 @@ J.prototype.equalsEpsilon = function(e, t) {
|
|
|
9483
9483
|
J.prototype.toString = function() {
|
|
9484
9484
|
return `(${this.x}, ${this.y}, ${this.z}, ${this.w})`;
|
|
9485
9485
|
};
|
|
9486
|
-
const _e = {},
|
|
9486
|
+
const _e = {}, Ha = {
|
|
9487
9487
|
up: {
|
|
9488
9488
|
south: "east",
|
|
9489
9489
|
north: "west",
|
|
@@ -9537,11 +9537,11 @@ const _e = {}, Ga = {
|
|
|
9537
9537
|
};
|
|
9538
9538
|
let Oi = new f(), vi = new f(), Ii = new f();
|
|
9539
9539
|
_e.localFrameToFixedFrameGenerator = function(e, t) {
|
|
9540
|
-
if (!
|
|
9540
|
+
if (!Ha.hasOwnProperty(e) || !Ha[e].hasOwnProperty(t))
|
|
9541
9541
|
throw new C(
|
|
9542
9542
|
"firstAxis and secondAxis must be east, north, up, west, south or down."
|
|
9543
9543
|
);
|
|
9544
|
-
const n =
|
|
9544
|
+
const n = Ha[e][t];
|
|
9545
9545
|
let i;
|
|
9546
9546
|
const o = e + t;
|
|
9547
9547
|
return h(Wa[o]) ? i = Wa[o] : (i = function(s, a, c) {
|
|
@@ -9657,7 +9657,7 @@ _e.fixedFrameToHeadingPitchRoll = function(e, t, n, i) {
|
|
|
9657
9657
|
m.defined("transform", e), t = _(t, le.default), n = _(
|
|
9658
9658
|
n,
|
|
9659
9659
|
_e.eastNorthUpToFixedFrame
|
|
9660
|
-
), h(i) || (i = new
|
|
9660
|
+
), h(i) || (i = new dt());
|
|
9661
9661
|
const o = F.getTranslation(e, Lg);
|
|
9662
9662
|
if (f.equals(o, f.ZERO))
|
|
9663
9663
|
return i.heading = 0, i.pitch = 0, i.roll = 0, i;
|
|
@@ -9677,9 +9677,9 @@ _e.fixedFrameToHeadingPitchRoll = function(e, t, n, i) {
|
|
|
9677
9677
|
return c = J.normalize(
|
|
9678
9678
|
c,
|
|
9679
9679
|
c
|
|
9680
|
-
),
|
|
9680
|
+
), dt.fromQuaternion(c, i);
|
|
9681
9681
|
};
|
|
9682
|
-
const Vg = 6 * 3600 + 41 * 60 + 50.54841, qg = 8640184812866e-6,
|
|
9682
|
+
const Vg = 6 * 3600 + 41 * 60 + 50.54841, qg = 8640184812866e-6, Gg = 0.093104, Hg = -62e-7, Wg = 11772758384668e-32, jg = 72921158553e-15, Yg = S.TWO_PI / 86400;
|
|
9683
9683
|
let Es = new Z();
|
|
9684
9684
|
_e.computeIcrfToCentralBodyFixedMatrix = function(e, t) {
|
|
9685
9685
|
let n = _e.computeIcrfToFixedMatrix(e, t);
|
|
@@ -9696,8 +9696,8 @@ _e.computeTemeToPseudoFixedMatrix = function(e, t) {
|
|
|
9696
9696
|
const n = Es.dayNumber, i = Es.secondsOfDay;
|
|
9697
9697
|
let o;
|
|
9698
9698
|
const s = n - 2451545;
|
|
9699
|
-
i >= 43200 ? o = (s + 0.5) /
|
|
9700
|
-
const c = (Vg + o * (qg + o * (
|
|
9699
|
+
i >= 43200 ? o = (s + 0.5) / nt.DAYS_PER_JULIAN_CENTURY : o = (s - 0.5) / nt.DAYS_PER_JULIAN_CENTURY;
|
|
9700
|
+
const c = (Vg + o * (qg + o * (Gg + o * Hg))) * Yg % S.TWO_PI, l = jg + Wg * (n - 24515455e-1), u = (i + nt.SECONDS_PER_DAY * 0.5) % nt.SECONDS_PER_DAY, d = c + l * u, p = Math.cos(d), g = Math.sin(d);
|
|
9701
9701
|
return h(t) ? (t[0] = p, t[1] = -g, t[2] = 0, t[3] = g, t[4] = p, t[5] = 0, t[6] = 0, t[7] = 0, t[8] = 1, t) : new L(
|
|
9702
9702
|
p,
|
|
9703
9703
|
g,
|
|
@@ -9730,7 +9730,7 @@ _e.computeIcrfToFixedMatrix = function(e, t) {
|
|
|
9730
9730
|
if (h(n))
|
|
9731
9731
|
return L.transpose(n, t);
|
|
9732
9732
|
};
|
|
9733
|
-
const $g = 32.184, Zg = 2451545, Ts = new
|
|
9733
|
+
const $g = 32.184, Zg = 2451545, Ts = new dt(), Kg = new L(), Qg = new Z();
|
|
9734
9734
|
_e.computeMoonFixedToIcrfMatrix = function(e, t) {
|
|
9735
9735
|
if (!h(e))
|
|
9736
9736
|
throw new C("date is required.");
|
|
@@ -9768,14 +9768,14 @@ _e.computeFixedToIcrfMatrix = function(e, t) {
|
|
|
9768
9768
|
return;
|
|
9769
9769
|
const a = s.x + n.xPoleOffset, c = s.y + n.yPoleOffset, l = 1 / (1 + Math.sqrt(1 - a * a - c * c)), u = ja;
|
|
9770
9770
|
u[0] = 1 - l * a * a, u[3] = -l * a * c, u[6] = a, u[1] = -l * a * c, u[4] = 1 - l * c * c, u[7] = c, u[2] = -a, u[5] = -c, u[8] = 1 - l * (a * a + c * c);
|
|
9771
|
-
const d = L.fromRotationZ(-s.s, Ya), p = L.multiply(u, d, ja), g = e.dayNumber, y = e.secondsOfDay - Z.computeTaiMinusUtc(e) + n.ut1MinusUtc, x = g - 2451545, E = y /
|
|
9771
|
+
const d = L.fromRotationZ(-s.s, Ya), p = L.multiply(u, d, ja), g = e.dayNumber, y = e.secondsOfDay - Z.computeTaiMinusUtc(e) + n.ut1MinusUtc, x = g - 2451545, E = y / nt.SECONDS_PER_DAY;
|
|
9772
9772
|
let T = 0.779057273264 + E + 0.00273781191135448 * (x + E);
|
|
9773
9773
|
T = T % 1 * S.TWO_PI;
|
|
9774
9774
|
const D = L.fromRotationZ(T, Ya), A = L.multiply(p, D, ja), O = Math.cos(n.xPoleWander), I = Math.cos(n.yPoleWander), B = Math.sin(n.xPoleWander), M = Math.sin(n.yPoleWander);
|
|
9775
|
-
let
|
|
9776
|
-
|
|
9777
|
-
const P = -47e-6 *
|
|
9778
|
-
return
|
|
9775
|
+
let G = i - Xg + o / nt.SECONDS_PER_DAY;
|
|
9776
|
+
G /= 36525;
|
|
9777
|
+
const P = -47e-6 * G * S.RADIANS_PER_DEGREE / 3600, V = Math.cos(P), k = Math.sin(P), H = Ya;
|
|
9778
|
+
return H[0] = O * V, H[1] = O * k, H[2] = B, H[3] = -I * k + M * B * V, H[4] = I * V + M * B * k, H[5] = -M * O, H[6] = -M * k - I * B * V, H[7] = M * V - I * B * k, H[8] = I * O, L.multiply(A, H, t);
|
|
9779
9779
|
};
|
|
9780
9780
|
const ty = new Y();
|
|
9781
9781
|
_e.pointToWindowCoordinates = function(e, t, n, i) {
|
|
@@ -9900,11 +9900,11 @@ _e.ellipsoidTo2DModelMatrix = function(e, t, n) {
|
|
|
9900
9900
|
);
|
|
9901
9901
|
return F.multiply(zd, s, n), F.multiply(l, n, n), n;
|
|
9902
9902
|
};
|
|
9903
|
-
const
|
|
9903
|
+
const Gh = {};
|
|
9904
9904
|
function $r(e, t) {
|
|
9905
9905
|
if (!h(e))
|
|
9906
9906
|
throw new C("identifier is required.");
|
|
9907
|
-
h(
|
|
9907
|
+
h(Gh[e]) || (Gh[e] = !0, console.warn(_(t, e)));
|
|
9908
9908
|
}
|
|
9909
9909
|
$r.geometryOutlines = "Entity geometry outlines are unsupported on terrain. Outlines will be disabled. To enable outlines, disable geometry terrain clamping by explicitly setting height to 0.";
|
|
9910
9910
|
$r.geometryZIndex = "Entity geometry with zIndex are unsupported when height or extrudedHeight are defined. zIndex will be ignored";
|
|
@@ -10175,11 +10175,11 @@ xe.fromPoints = function(e, t) {
|
|
|
10175
10175
|
}
|
|
10176
10176
|
return t.x = i, t.y = o, t.width = s - i, t.height = a - o, t;
|
|
10177
10177
|
};
|
|
10178
|
-
const
|
|
10178
|
+
const Hh = new Nn(), py = new ee(), my = new ee();
|
|
10179
10179
|
xe.fromRectangle = function(e, t, n) {
|
|
10180
10180
|
if (h(n) || (n = new xe()), !h(e))
|
|
10181
10181
|
return n.x = 0, n.y = 0, n.width = 0, n.height = 0, n;
|
|
10182
|
-
|
|
10182
|
+
Hh._ellipsoid = le.default, t = _(t, Hh);
|
|
10183
10183
|
const i = t.project(
|
|
10184
10184
|
ce.southwest(e, py)
|
|
10185
10185
|
), o = t.project(
|
|
@@ -10287,7 +10287,7 @@ Nt.isTriangles = function(e) {
|
|
|
10287
10287
|
Nt.validate = function(e) {
|
|
10288
10288
|
return e === Nt.POINTS || e === Nt.LINES || e === Nt.LINE_LOOP || e === Nt.LINE_STRIP || e === Nt.TRIANGLES || e === Nt.TRIANGLE_STRIP || e === Nt.TRIANGLE_FAN;
|
|
10289
10289
|
};
|
|
10290
|
-
const
|
|
10290
|
+
const He = Object.freeze(Nt), tt = {
|
|
10291
10291
|
CULL: 1,
|
|
10292
10292
|
OCCLUDE: 2,
|
|
10293
10293
|
EXECUTE_IN_CLOSEST_FRUSTUM: 4,
|
|
@@ -10300,7 +10300,7 @@ const Ge = Object.freeze(Nt), nt = {
|
|
|
10300
10300
|
function Xe(e) {
|
|
10301
10301
|
e = _(e, _.EMPTY_OBJECT), this._boundingVolume = e.boundingVolume, this._orientedBoundingBox = e.orientedBoundingBox, this._modelMatrix = e.modelMatrix, this._primitiveType = _(
|
|
10302
10302
|
e.primitiveType,
|
|
10303
|
-
|
|
10303
|
+
He.TRIANGLES
|
|
10304
10304
|
), this._vertexArray = e.vertexArray, this._count = e.count, this._offset = _(e.offset, 0), this._instanceCount = _(e.instanceCount, 0), this._shaderProgram = e.shaderProgram, this._uniformMap = e.uniformMap, this._renderState = e.renderState, this._framebuffer = e.framebuffer, this._pass = e.pass, this._owner = e.owner, this._debugOverlappingFrustums = 0, this._pickId = e.pickId, this._pickMetadataAllowed = e.pickMetadataAllowed === !0, this._pickedMetadataInfo = void 0, this._flags = 0, this.cull = _(e.cull, !0), this.occlude = _(e.occlude, !0), this.executeInClosestFrustum = _(
|
|
10305
10305
|
e.executeInClosestFrustum,
|
|
10306
10306
|
!1
|
|
@@ -10370,10 +10370,10 @@ Object.defineProperties(Xe.prototype, {
|
|
|
10370
10370
|
*/
|
|
10371
10371
|
cull: {
|
|
10372
10372
|
get: function() {
|
|
10373
|
-
return Ut(this,
|
|
10373
|
+
return Ut(this, tt.CULL);
|
|
10374
10374
|
},
|
|
10375
10375
|
set: function(e) {
|
|
10376
|
-
Ut(this,
|
|
10376
|
+
Ut(this, tt.CULL) !== e && (Ri(this, tt.CULL, e), this.dirty = !0);
|
|
10377
10377
|
}
|
|
10378
10378
|
},
|
|
10379
10379
|
/**
|
|
@@ -10386,10 +10386,10 @@ Object.defineProperties(Xe.prototype, {
|
|
|
10386
10386
|
*/
|
|
10387
10387
|
occlude: {
|
|
10388
10388
|
get: function() {
|
|
10389
|
-
return Ut(this,
|
|
10389
|
+
return Ut(this, tt.OCCLUDE);
|
|
10390
10390
|
},
|
|
10391
10391
|
set: function(e) {
|
|
10392
|
-
Ut(this,
|
|
10392
|
+
Ut(this, tt.OCCLUDE) !== e && (Ri(this, tt.OCCLUDE, e), this.dirty = !0);
|
|
10393
10393
|
}
|
|
10394
10394
|
},
|
|
10395
10395
|
/**
|
|
@@ -10509,10 +10509,10 @@ Object.defineProperties(Xe.prototype, {
|
|
|
10509
10509
|
*/
|
|
10510
10510
|
castShadows: {
|
|
10511
10511
|
get: function() {
|
|
10512
|
-
return Ut(this,
|
|
10512
|
+
return Ut(this, tt.CAST_SHADOWS);
|
|
10513
10513
|
},
|
|
10514
10514
|
set: function(e) {
|
|
10515
|
-
Ut(this,
|
|
10515
|
+
Ut(this, tt.CAST_SHADOWS) !== e && (Ri(this, tt.CAST_SHADOWS, e), this.dirty = !0);
|
|
10516
10516
|
}
|
|
10517
10517
|
},
|
|
10518
10518
|
/**
|
|
@@ -10524,10 +10524,10 @@ Object.defineProperties(Xe.prototype, {
|
|
|
10524
10524
|
*/
|
|
10525
10525
|
receiveShadows: {
|
|
10526
10526
|
get: function() {
|
|
10527
|
-
return Ut(this,
|
|
10527
|
+
return Ut(this, tt.RECEIVE_SHADOWS);
|
|
10528
10528
|
},
|
|
10529
10529
|
set: function(e) {
|
|
10530
|
-
Ut(this,
|
|
10530
|
+
Ut(this, tt.RECEIVE_SHADOWS) !== e && (Ri(this, tt.RECEIVE_SHADOWS, e), this.dirty = !0);
|
|
10531
10531
|
}
|
|
10532
10532
|
},
|
|
10533
10533
|
/**
|
|
@@ -10601,10 +10601,10 @@ Object.defineProperties(Xe.prototype, {
|
|
|
10601
10601
|
*/
|
|
10602
10602
|
executeInClosestFrustum: {
|
|
10603
10603
|
get: function() {
|
|
10604
|
-
return Ut(this,
|
|
10604
|
+
return Ut(this, tt.EXECUTE_IN_CLOSEST_FRUSTUM);
|
|
10605
10605
|
},
|
|
10606
10606
|
set: function(e) {
|
|
10607
|
-
Ut(this,
|
|
10607
|
+
Ut(this, tt.EXECUTE_IN_CLOSEST_FRUSTUM) !== e && (Ri(this, tt.EXECUTE_IN_CLOSEST_FRUSTUM, e), this.dirty = !0);
|
|
10608
10608
|
}
|
|
10609
10609
|
},
|
|
10610
10610
|
/**
|
|
@@ -10641,10 +10641,10 @@ Object.defineProperties(Xe.prototype, {
|
|
|
10641
10641
|
*/
|
|
10642
10642
|
debugShowBoundingVolume: {
|
|
10643
10643
|
get: function() {
|
|
10644
|
-
return Ut(this,
|
|
10644
|
+
return Ut(this, tt.DEBUG_SHOW_BOUNDING_VOLUME);
|
|
10645
10645
|
},
|
|
10646
10646
|
set: function(e) {
|
|
10647
|
-
Ut(this,
|
|
10647
|
+
Ut(this, tt.DEBUG_SHOW_BOUNDING_VOLUME) !== e && (Ri(this, tt.DEBUG_SHOW_BOUNDING_VOLUME, e), this.dirty = !0);
|
|
10648
10648
|
}
|
|
10649
10649
|
},
|
|
10650
10650
|
/**
|
|
@@ -10716,10 +10716,10 @@ Object.defineProperties(Xe.prototype, {
|
|
|
10716
10716
|
*/
|
|
10717
10717
|
pickOnly: {
|
|
10718
10718
|
get: function() {
|
|
10719
|
-
return Ut(this,
|
|
10719
|
+
return Ut(this, tt.PICK_ONLY);
|
|
10720
10720
|
},
|
|
10721
10721
|
set: function(e) {
|
|
10722
|
-
Ut(this,
|
|
10722
|
+
Ut(this, tt.PICK_ONLY) !== e && (Ri(this, tt.PICK_ONLY, e), this.dirty = !0);
|
|
10723
10723
|
}
|
|
10724
10724
|
},
|
|
10725
10725
|
/**
|
|
@@ -10731,10 +10731,10 @@ Object.defineProperties(Xe.prototype, {
|
|
|
10731
10731
|
*/
|
|
10732
10732
|
depthForTranslucentClassification: {
|
|
10733
10733
|
get: function() {
|
|
10734
|
-
return Ut(this,
|
|
10734
|
+
return Ut(this, tt.DEPTH_FOR_TRANSLUCENT_CLASSIFICATION);
|
|
10735
10735
|
},
|
|
10736
10736
|
set: function(e) {
|
|
10737
|
-
Ut(this,
|
|
10737
|
+
Ut(this, tt.DEPTH_FOR_TRANSLUCENT_CLASSIFICATION) !== e && (Ri(this, tt.DEPTH_FOR_TRANSLUCENT_CLASSIFICATION, e), this.dirty = !0);
|
|
10738
10738
|
}
|
|
10739
10739
|
}
|
|
10740
10740
|
});
|
|
@@ -11829,31 +11829,31 @@ function ke(e) {
|
|
|
11829
11829
|
}
|
|
11830
11830
|
this.id = 0, this._applyFunctions = [];
|
|
11831
11831
|
}
|
|
11832
|
-
let yy = 0,
|
|
11832
|
+
let yy = 0, Gn = {};
|
|
11833
11833
|
ke.fromCache = function(e) {
|
|
11834
11834
|
const t = JSON.stringify(e);
|
|
11835
|
-
let n =
|
|
11835
|
+
let n = Gn[t];
|
|
11836
11836
|
if (h(n))
|
|
11837
11837
|
return ++n.referenceCount, n.state;
|
|
11838
11838
|
let i = new ke(e);
|
|
11839
11839
|
const o = JSON.stringify(i);
|
|
11840
|
-
return n =
|
|
11840
|
+
return n = Gn[o], h(n) || (i.id = yy++, i = Nd(i), n = {
|
|
11841
11841
|
referenceCount: 0,
|
|
11842
11842
|
state: i
|
|
11843
|
-
},
|
|
11843
|
+
}, Gn[o] = n), ++n.referenceCount, Gn[t] = {
|
|
11844
11844
|
referenceCount: 1,
|
|
11845
11845
|
state: n.state
|
|
11846
11846
|
}, n.state;
|
|
11847
11847
|
};
|
|
11848
11848
|
ke.removeFromCache = function(e) {
|
|
11849
|
-
const t = new ke(e), n = JSON.stringify(t), i =
|
|
11850
|
-
h(s) && (--s.referenceCount, s.referenceCount === 0 && (delete
|
|
11849
|
+
const t = new ke(e), n = JSON.stringify(t), i = Gn[n], o = JSON.stringify(e), s = Gn[o];
|
|
11850
|
+
h(s) && (--s.referenceCount, s.referenceCount === 0 && (delete Gn[o], h(i) && --i.referenceCount)), h(i) && i.referenceCount === 0 && delete Gn[n];
|
|
11851
11851
|
};
|
|
11852
11852
|
ke.getCache = function() {
|
|
11853
|
-
return
|
|
11853
|
+
return Gn;
|
|
11854
11854
|
};
|
|
11855
11855
|
ke.clearCache = function() {
|
|
11856
|
-
|
|
11856
|
+
Gn = {};
|
|
11857
11857
|
};
|
|
11858
11858
|
function so(e, t, n) {
|
|
11859
11859
|
n ? e.enable(t) : e.disable(t);
|
|
@@ -11887,11 +11887,11 @@ function qd(e, t) {
|
|
|
11887
11887
|
const n = t.depthTest, i = n.enabled;
|
|
11888
11888
|
so(e, e.DEPTH_TEST, i), i && e.depthFunc(n.func);
|
|
11889
11889
|
}
|
|
11890
|
-
function
|
|
11890
|
+
function Gd(e, t) {
|
|
11891
11891
|
const n = t.colorMask;
|
|
11892
11892
|
e.colorMask(n.red, n.green, n.blue, n.alpha);
|
|
11893
11893
|
}
|
|
11894
|
-
function
|
|
11894
|
+
function Hd(e, t) {
|
|
11895
11895
|
e.depthMask(t.depthMask);
|
|
11896
11896
|
}
|
|
11897
11897
|
function Wd(e, t) {
|
|
@@ -11940,11 +11940,11 @@ function $d(e, t, n) {
|
|
|
11940
11940
|
h(i) || (i = Cy, i.width = n.context.drawingBufferWidth, i.height = n.context.drawingBufferHeight), n.context.uniformState.viewport = i, e.viewport(i.x, i.y, i.width, i.height);
|
|
11941
11941
|
}
|
|
11942
11942
|
ke.apply = function(e, t, n) {
|
|
11943
|
-
Fd(e, t), Ld(e, t), Md(e, t), Ud(e, t), Vd(e, t), qd(e, t),
|
|
11943
|
+
Fd(e, t), Ld(e, t), Md(e, t), Ud(e, t), Vd(e, t), qd(e, t), Gd(e, t), Hd(e, t), Wd(e, t), Yd(e, t), Xd(e, t), kd(e, t, n), jd(e, t, n), $d(e, t, n);
|
|
11944
11944
|
};
|
|
11945
11945
|
function Ey(e, t) {
|
|
11946
11946
|
const n = [];
|
|
11947
|
-
return e.frontFace !== t.frontFace && n.push(Fd), (e.cull.enabled !== t.cull.enabled || e.cull.face !== t.cull.face) && n.push(Ld), e.lineWidth !== t.lineWidth && n.push(Md), (e.polygonOffset.enabled !== t.polygonOffset.enabled || e.polygonOffset.factor !== t.polygonOffset.factor || e.polygonOffset.units !== t.polygonOffset.units) && n.push(Ud), (e.depthRange.near !== t.depthRange.near || e.depthRange.far !== t.depthRange.far) && n.push(Vd), (e.depthTest.enabled !== t.depthTest.enabled || e.depthTest.func !== t.depthTest.func) && n.push(qd), (e.colorMask.red !== t.colorMask.red || e.colorMask.green !== t.colorMask.green || e.colorMask.blue !== t.colorMask.blue || e.colorMask.alpha !== t.colorMask.alpha) && n.push(
|
|
11947
|
+
return e.frontFace !== t.frontFace && n.push(Fd), (e.cull.enabled !== t.cull.enabled || e.cull.face !== t.cull.face) && n.push(Ld), e.lineWidth !== t.lineWidth && n.push(Md), (e.polygonOffset.enabled !== t.polygonOffset.enabled || e.polygonOffset.factor !== t.polygonOffset.factor || e.polygonOffset.units !== t.polygonOffset.units) && n.push(Ud), (e.depthRange.near !== t.depthRange.near || e.depthRange.far !== t.depthRange.far) && n.push(Vd), (e.depthTest.enabled !== t.depthTest.enabled || e.depthTest.func !== t.depthTest.func) && n.push(qd), (e.colorMask.red !== t.colorMask.red || e.colorMask.green !== t.colorMask.green || e.colorMask.blue !== t.colorMask.blue || e.colorMask.alpha !== t.colorMask.alpha) && n.push(Gd), e.depthMask !== t.depthMask && n.push(Hd), e.stencilMask !== t.stencilMask && n.push(Wd), (e.stencilTest.enabled !== t.stencilTest.enabled || e.stencilTest.frontFunction !== t.stencilTest.frontFunction || e.stencilTest.backFunction !== t.stencilTest.backFunction || e.stencilTest.reference !== t.stencilTest.reference || e.stencilTest.mask !== t.stencilTest.mask || e.stencilTest.frontOperation.fail !== t.stencilTest.frontOperation.fail || e.stencilTest.frontOperation.zFail !== t.stencilTest.frontOperation.zFail || e.stencilTest.backOperation.fail !== t.stencilTest.backOperation.fail || e.stencilTest.backOperation.zFail !== t.stencilTest.backOperation.zFail || e.stencilTest.backOperation.zPass !== t.stencilTest.backOperation.zPass) && n.push(Yd), (e.sampleCoverage.enabled !== t.sampleCoverage.enabled || e.sampleCoverage.value !== t.sampleCoverage.value || e.sampleCoverage.invert !== t.sampleCoverage.invert) && n.push(Xd), n;
|
|
11948
11948
|
}
|
|
11949
11949
|
ke.partialApply = function(e, t, n, i, o, s) {
|
|
11950
11950
|
if (t !== n) {
|
|
@@ -12257,7 +12257,7 @@ function Ay(e, t, n, i) {
|
|
|
12257
12257
|
case e.FLOAT_MAT4:
|
|
12258
12258
|
return new sp(e, t, n, i);
|
|
12259
12259
|
default:
|
|
12260
|
-
throw new
|
|
12260
|
+
throw new ft(
|
|
12261
12261
|
`Unrecognized uniform type: ${t.type} for uniform "${n}".`
|
|
12262
12262
|
);
|
|
12263
12263
|
}
|
|
@@ -12418,7 +12418,7 @@ function Iy(e, t, n, i) {
|
|
|
12418
12418
|
case e.FLOAT_MAT4:
|
|
12419
12419
|
return new gp(e, t, n, i);
|
|
12420
12420
|
default:
|
|
12421
|
-
throw new
|
|
12421
|
+
throw new ft(
|
|
12422
12422
|
`Unrecognized uniform type: ${t.type} for uniform "${n}".`
|
|
12423
12423
|
);
|
|
12424
12424
|
}
|
|
@@ -12599,7 +12599,7 @@ gp.prototype.set = function() {
|
|
|
12599
12599
|
i && this._gl.uniformMatrix4fv(this._location, !1, n);
|
|
12600
12600
|
};
|
|
12601
12601
|
let Ry = 0;
|
|
12602
|
-
function
|
|
12602
|
+
function it(e) {
|
|
12603
12603
|
let t = e.vertexShaderText, n = e.fragmentShaderText;
|
|
12604
12604
|
typeof spector < "u" && (t = t.replace(/^#line/gm, "//#line"), n = n.replace(/^#line/gm, "//#line"));
|
|
12605
12605
|
const i = zy(
|
|
@@ -12608,13 +12608,13 @@ function ot(e) {
|
|
|
12608
12608
|
);
|
|
12609
12609
|
this._gl = e.gl, this._logShaderCompilation = e.logShaderCompilation, this._debugShaders = e.debugShaders, this._attributeLocations = e.attributeLocations, this._program = void 0, this._numberOfVertexAttributes = void 0, this._vertexAttributes = void 0, this._uniformsByName = void 0, this._uniforms = void 0, this._automaticUniforms = void 0, this._manualUniforms = void 0, this._duplicateUniformNames = i.duplicateUniformNames, this._cachedShader = void 0, this.maximumTextureUnitIndex = void 0, this._vertexShaderSource = e.vertexShaderSource, this._vertexShaderText = e.vertexShaderText, this._fragmentShaderSource = e.fragmentShaderSource, this._fragmentShaderText = i.fragmentShaderText, this.id = Ry++;
|
|
12610
12610
|
}
|
|
12611
|
-
|
|
12611
|
+
it.fromCache = function(e) {
|
|
12612
12612
|
return e = _(e, _.EMPTY_OBJECT), m.defined("options.context", e.context), e.context.shaderCache.getShaderProgram(e);
|
|
12613
12613
|
};
|
|
12614
|
-
|
|
12614
|
+
it.replaceCache = function(e) {
|
|
12615
12615
|
return e = _(e, _.EMPTY_OBJECT), m.defined("options.context", e.context), e.context.shaderCache.replaceShaderProgram(e);
|
|
12616
12616
|
};
|
|
12617
|
-
Object.defineProperties(
|
|
12617
|
+
Object.defineProperties(it.prototype, {
|
|
12618
12618
|
/**
|
|
12619
12619
|
* GLSL source for the shader program's vertex shader.
|
|
12620
12620
|
* @memberof ShaderProgram.prototype
|
|
@@ -12708,7 +12708,7 @@ function Py(e, t) {
|
|
|
12708
12708
|
const d = t._debugShaders;
|
|
12709
12709
|
throw e.getShaderParameter(s, e.COMPILE_STATUS) ? e.getShaderParameter(o, e.COMPILE_STATUS) ? (l = e.getProgramInfoLog(a), console.error(`${kn}Shader program link log: ${l}`), p(o, "vertex"), p(s, "fragment"), u = `Program failed to link. Link log: ${l}`) : (l = e.getShaderInfoLog(o), console.error(`${kn}Vertex shader compile log: ${l}`), console.error(`${kn} Vertex shader source:
|
|
12710
12710
|
${n}`), u = `Vertex shader failed to compile. Compile log: ${l}`) : (l = e.getShaderInfoLog(s), console.error(`${kn}Fragment shader compile log: ${l}`), console.error(`${kn} Fragment shader source:
|
|
12711
|
-
${i}`), u = `Fragment shader failed to compile. Compile log: ${l}`), e.deleteShader(o), e.deleteShader(s), e.deleteProgram(a), new
|
|
12711
|
+
${i}`), u = `Fragment shader failed to compile. Compile log: ${l}`), e.deleteShader(o), e.deleteShader(s), e.deleteProgram(a), new ft(u);
|
|
12712
12712
|
function p(g, y) {
|
|
12713
12713
|
if (!h(d))
|
|
12714
12714
|
return;
|
|
@@ -12838,10 +12838,10 @@ function yp(e) {
|
|
|
12838
12838
|
}
|
|
12839
12839
|
});
|
|
12840
12840
|
}
|
|
12841
|
-
|
|
12841
|
+
it.prototype._bind = function() {
|
|
12842
12842
|
js(this), this._gl.useProgram(this._program);
|
|
12843
12843
|
};
|
|
12844
|
-
|
|
12844
|
+
it.prototype._setUniforms = function(e, t, n) {
|
|
12845
12845
|
let i, o;
|
|
12846
12846
|
if (h(e)) {
|
|
12847
12847
|
const c = this._manualUniforms;
|
|
@@ -12870,13 +12870,13 @@ ot.prototype._setUniforms = function(e, t, n) {
|
|
|
12870
12870
|
);
|
|
12871
12871
|
}
|
|
12872
12872
|
};
|
|
12873
|
-
|
|
12873
|
+
it.prototype.isDestroyed = function() {
|
|
12874
12874
|
return !1;
|
|
12875
12875
|
};
|
|
12876
|
-
|
|
12876
|
+
it.prototype.destroy = function() {
|
|
12877
12877
|
this._cachedShader.cache.releaseShaderProgram(this);
|
|
12878
12878
|
};
|
|
12879
|
-
|
|
12879
|
+
it.prototype.finalDestroy = function() {
|
|
12880
12880
|
return this._gl.deleteProgram(this._program), et(this);
|
|
12881
12881
|
};
|
|
12882
12882
|
const fe = {
|
|
@@ -13084,13 +13084,13 @@ const oe = Object.freeze(fe), My = {
|
|
|
13084
13084
|
LINES: 2,
|
|
13085
13085
|
POLYLINES: 3
|
|
13086
13086
|
}, ur = Object.freeze(My);
|
|
13087
|
-
function
|
|
13087
|
+
function ht(e) {
|
|
13088
13088
|
e = _(e, _.EMPTY_OBJECT), m.typeOf.object("options.attributes", e.attributes), this.attributes = e.attributes, this.indices = e.indices, this.primitiveType = _(
|
|
13089
13089
|
e.primitiveType,
|
|
13090
|
-
|
|
13090
|
+
He.TRIANGLES
|
|
13091
13091
|
), this.boundingSphere = e.boundingSphere, this.geometryType = _(e.geometryType, ur.NONE), this.boundingSphereCV = e.boundingSphereCV, this.offsetAttribute = e.offsetAttribute;
|
|
13092
13092
|
}
|
|
13093
|
-
|
|
13093
|
+
ht.computeNumberOfVertices = function(e) {
|
|
13094
13094
|
m.typeOf.object("geometry", e);
|
|
13095
13095
|
let t = -1;
|
|
13096
13096
|
for (const n in e.attributes)
|
|
@@ -13112,8 +13112,8 @@ const Uy = new ee(), ky = new f(), Kh = new F(), Vy = [
|
|
|
13112
13112
|
new U(),
|
|
13113
13113
|
new U(),
|
|
13114
13114
|
new U()
|
|
13115
|
-
],
|
|
13116
|
-
|
|
13115
|
+
], Gy = [new U(), new U(), new U()], Hy = new f(), Wy = new J(), jy = new F(), Yy = new ae();
|
|
13116
|
+
ht._textureCoordinateRotationPoints = function(e, t, n, i) {
|
|
13117
13117
|
let o;
|
|
13118
13118
|
const s = ce.center(
|
|
13119
13119
|
i,
|
|
@@ -13131,7 +13131,7 @@ ft._textureCoordinateRotationPoints = function(e, t, n, i) {
|
|
|
13131
13131
|
Kh
|
|
13132
13132
|
), u = qy, d = Vy;
|
|
13133
13133
|
d[0].longitude = i.west, d[0].latitude = i.south, d[1].longitude = i.west, d[1].latitude = i.north, d[2].longitude = i.east, d[2].latitude = i.south;
|
|
13134
|
-
let p =
|
|
13134
|
+
let p = Hy;
|
|
13135
13135
|
for (o = 0; o < 3; o++)
|
|
13136
13136
|
ee.toCartesian(d[o], n, p), p = F.multiplyByPointAsVector(l, p, p), u[o].x = p.x, u[o].y = p.y;
|
|
13137
13137
|
const g = J.fromAxisAngle(
|
|
@@ -13152,15 +13152,15 @@ ft._textureCoordinateRotationPoints = function(e, t, n, i) {
|
|
|
13152
13152
|
const O = ae.fromRotation(
|
|
13153
13153
|
t,
|
|
13154
13154
|
Yy
|
|
13155
|
-
), I =
|
|
13155
|
+
), I = Gy;
|
|
13156
13156
|
I[0].x = E, I[0].y = T, I[1].x = E, I[1].y = A, I[2].x = D, I[2].y = T;
|
|
13157
|
-
const B = u[0], M = u[2].x - B.x,
|
|
13157
|
+
const B = u[0], M = u[2].x - B.x, G = u[1].y - B.y;
|
|
13158
13158
|
for (o = 0; o < 3; o++) {
|
|
13159
13159
|
const j = I[o];
|
|
13160
|
-
ae.multiplyByVector(O, j, j), j.x = (j.x - B.x) / M, j.y = (j.y - B.y) /
|
|
13160
|
+
ae.multiplyByVector(O, j, j), j.x = (j.x - B.x) / M, j.y = (j.y - B.y) / G;
|
|
13161
13161
|
}
|
|
13162
|
-
const P = I[0], V = I[1], k = I[2],
|
|
13163
|
-
return U.pack(P,
|
|
13162
|
+
const P = I[0], V = I[1], k = I[2], H = new Array(6);
|
|
13163
|
+
return U.pack(P, H), U.pack(V, H, 2), U.pack(k, H, 4), H;
|
|
13164
13164
|
};
|
|
13165
13165
|
function zt(e) {
|
|
13166
13166
|
if (e = _(e, _.EMPTY_OBJECT), !h(e.componentDatatype))
|
|
@@ -13324,7 +13324,7 @@ function Ll(e) {
|
|
|
13324
13324
|
if (s = e, n || (s = fn(
|
|
13325
13325
|
`${Tt._workerModulePrefix + i}.js`
|
|
13326
13326
|
)), !yt.supportsEsmWebWorkers())
|
|
13327
|
-
throw new
|
|
13327
|
+
throw new ft(
|
|
13328
13328
|
"This browser is not supported. Please update your browser to continue."
|
|
13329
13329
|
);
|
|
13330
13330
|
return o.type = "module", new Worker(s, o);
|
|
@@ -13337,7 +13337,7 @@ async function Xy(e, t) {
|
|
|
13337
13337
|
};
|
|
13338
13338
|
if (!yt.supportsWebAssembly()) {
|
|
13339
13339
|
if (!h(t.fallbackModulePath))
|
|
13340
|
-
throw new
|
|
13340
|
+
throw new ft(
|
|
13341
13341
|
`This browser does not support Web Assembly, and no backup module was provided for ${e._workerPath}`
|
|
13342
13342
|
);
|
|
13343
13343
|
return n.modulePath = fn(t.fallbackModulePath), n;
|
|
@@ -13359,7 +13359,7 @@ const $y = (e, t, n, i) => {
|
|
|
13359
13359
|
if (s.id === t) {
|
|
13360
13360
|
if (h(s.error)) {
|
|
13361
13361
|
let a = s.error;
|
|
13362
|
-
a.name === "RuntimeError" ? (a = new
|
|
13362
|
+
a.name === "RuntimeError" ? (a = new ft(s.error.message), a.stack = s.error.stack) : a.name === "DeveloperError" ? (a = new C(s.error.message), a.stack = s.error.stack) : a.name === "Error" && (a = new Error(s.error.message), a.stack = s.error.stack), il.raiseEvent(a), i(a);
|
|
13363
13363
|
} else
|
|
13364
13364
|
il.raiseEvent(), n(s.result);
|
|
13365
13365
|
e.removeEventListener("message", o);
|
|
@@ -13412,7 +13412,7 @@ Tt.prototype.initWebAssemblyModule = async function(e) {
|
|
|
13412
13412
|
h(a) && o && (s = [a]);
|
|
13413
13413
|
const c = new Promise((l, u) => {
|
|
13414
13414
|
n.onmessage = function({ data: d }) {
|
|
13415
|
-
h(d) ? l(d.result) : u(new
|
|
13415
|
+
h(d) ? l(d.result) : u(new ft("Could not configure wasm module"));
|
|
13416
13416
|
};
|
|
13417
13417
|
});
|
|
13418
13418
|
return n.postMessage(
|
|
@@ -13449,7 +13449,7 @@ function Jy() {
|
|
|
13449
13449
|
}).then(function(t) {
|
|
13450
13450
|
if (t)
|
|
13451
13451
|
return mi._transcodeTaskProcessor;
|
|
13452
|
-
throw new
|
|
13452
|
+
throw new ft("KTX2 transcoder could not be initialized.");
|
|
13453
13453
|
});
|
|
13454
13454
|
mi._readyPromise = e;
|
|
13455
13455
|
}
|
|
@@ -14617,7 +14617,7 @@ struct czm_modelMaterial {
|
|
|
14617
14617
|
// Add clearcoatF0 when KHR_materials_ior is implemented
|
|
14618
14618
|
#endif
|
|
14619
14619
|
};
|
|
14620
|
-
`,
|
|
14620
|
+
`, Gx = `/**
|
|
14621
14621
|
* Struct for representing the output of a custom vertex shader.
|
|
14622
14622
|
*
|
|
14623
14623
|
* @name czm_modelVertexOutput
|
|
@@ -14633,7 +14633,7 @@ struct czm_modelVertexOutput {
|
|
|
14633
14633
|
vec3 positionMC;
|
|
14634
14634
|
float pointSize;
|
|
14635
14635
|
};
|
|
14636
|
-
`,
|
|
14636
|
+
`, Hx = `/**
|
|
14637
14637
|
* DOC_TBA
|
|
14638
14638
|
*
|
|
14639
14639
|
* @name czm_ray
|
|
@@ -16239,7 +16239,7 @@ float czm_luminance(vec3 rgb)
|
|
|
16239
16239
|
const vec3 W = vec3(0.2125, 0.7154, 0.0721);
|
|
16240
16240
|
return dot(rgb, W);
|
|
16241
16241
|
}
|
|
16242
|
-
`,
|
|
16242
|
+
`, GC = `/**
|
|
16243
16243
|
* Find the maximum component of a vector.
|
|
16244
16244
|
*
|
|
16245
16245
|
* @name czm_maximumComponent
|
|
@@ -16260,7 +16260,7 @@ float czm_maximumComponent(vec4 v)
|
|
|
16260
16260
|
{
|
|
16261
16261
|
return max(max(max(v.x, v.y), v.z), v.w);
|
|
16262
16262
|
}
|
|
16263
|
-
`,
|
|
16263
|
+
`, HC = `/**
|
|
16264
16264
|
* Computes the size of a pixel in meters at a distance from the eye.
|
|
16265
16265
|
* <p>
|
|
16266
16266
|
* Use this version when passing in a custom pixel ratio. For example, passing in 1.0 will return meters per native device pixel.
|
|
@@ -17853,8 +17853,8 @@ vec4 czm_writeNonPerspective(vec4 value, float w) {
|
|
|
17853
17853
|
czm_material: kx,
|
|
17854
17854
|
czm_materialInput: Vx,
|
|
17855
17855
|
czm_modelMaterial: qx,
|
|
17856
|
-
czm_modelVertexOutput:
|
|
17857
|
-
czm_ray:
|
|
17856
|
+
czm_modelVertexOutput: Gx,
|
|
17857
|
+
czm_ray: Hx,
|
|
17858
17858
|
czm_raySegment: Wx,
|
|
17859
17859
|
czm_shadowParameters: jx,
|
|
17860
17860
|
czm_HSBToRGB: Yx,
|
|
@@ -17907,8 +17907,8 @@ vec4 czm_writeNonPerspective(vec4 value, float w) {
|
|
|
17907
17907
|
czm_lineDistance: kC,
|
|
17908
17908
|
czm_linearToSrgb: VC,
|
|
17909
17909
|
czm_luminance: qC,
|
|
17910
|
-
czm_maximumComponent:
|
|
17911
|
-
czm_metersPerPixel:
|
|
17910
|
+
czm_maximumComponent: GC,
|
|
17911
|
+
czm_metersPerPixel: HC,
|
|
17912
17912
|
czm_modelToWindowCoordinates: WC,
|
|
17913
17913
|
czm_multiplyWithColorBalance: jC,
|
|
17914
17914
|
czm_nearFarScalar: YC,
|
|
@@ -18812,7 +18812,7 @@ Ne.projectPointOntoPlane = function(e, t, n) {
|
|
|
18812
18812
|
);
|
|
18813
18813
|
return f.subtract(t, o, n);
|
|
18814
18814
|
};
|
|
18815
|
-
const qE = new F(),
|
|
18815
|
+
const qE = new F(), GE = new Y(), HE = new f();
|
|
18816
18816
|
Ne.transform = function(e, t, n) {
|
|
18817
18817
|
m.typeOf.object("plane", e), m.typeOf.object("transform", t);
|
|
18818
18818
|
const i = e.normal, o = e.distance, s = F.inverseTranspose(
|
|
@@ -18824,7 +18824,7 @@ Ne.transform = function(e, t, n) {
|
|
|
18824
18824
|
i.y,
|
|
18825
18825
|
i.z,
|
|
18826
18826
|
o,
|
|
18827
|
-
|
|
18827
|
+
GE
|
|
18828
18828
|
);
|
|
18829
18829
|
a = F.multiplyByVector(
|
|
18830
18830
|
s,
|
|
@@ -18833,7 +18833,7 @@ Ne.transform = function(e, t, n) {
|
|
|
18833
18833
|
);
|
|
18834
18834
|
const c = f.fromCartesian4(
|
|
18835
18835
|
a,
|
|
18836
|
-
|
|
18836
|
+
HE
|
|
18837
18837
|
);
|
|
18838
18838
|
return a = Y.divideByScalar(
|
|
18839
18839
|
a,
|
|
@@ -19308,7 +19308,7 @@ function KE(e) {
|
|
|
19308
19308
|
e[o[t]]
|
|
19309
19309
|
);
|
|
19310
19310
|
if (u !== s)
|
|
19311
|
-
throw new
|
|
19311
|
+
throw new ft(
|
|
19312
19312
|
`Each attribute list must have the same number of vertices. Attribute ${o[t]} has a different number of vertices (${u.toString()}) than attribute ${o[0]} (${s.toString()}).`
|
|
19313
19313
|
);
|
|
19314
19314
|
}
|
|
@@ -19414,7 +19414,7 @@ $n.fromGeometry = function(e) {
|
|
|
19414
19414
|
}
|
|
19415
19415
|
let g;
|
|
19416
19416
|
const y = n.indices;
|
|
19417
|
-
return h(y) && (
|
|
19417
|
+
return h(y) && (ht.computeNumberOfVertices(n) >= S.SIXTY_FOUR_KILOBYTES && t.elementIndexUint ? g = vt.createIndexBuffer({
|
|
19418
19418
|
context: t,
|
|
19419
19419
|
typedArray: new Uint32Array(y),
|
|
19420
19420
|
usage: i,
|
|
@@ -20136,10 +20136,10 @@ Sr.prototype.merge = function(e) {
|
|
|
20136
20136
|
e.splitDirection
|
|
20137
20137
|
);
|
|
20138
20138
|
};
|
|
20139
|
-
function
|
|
20139
|
+
function Hn() {
|
|
20140
20140
|
this._array = [], this._hash = {};
|
|
20141
20141
|
}
|
|
20142
|
-
Object.defineProperties(
|
|
20142
|
+
Object.defineProperties(Hn.prototype, {
|
|
20143
20143
|
/**
|
|
20144
20144
|
* Gets the number of items in the collection.
|
|
20145
20145
|
* @memberof AssociativeArray.prototype
|
|
@@ -20165,23 +20165,23 @@ Object.defineProperties(Gn.prototype, {
|
|
|
20165
20165
|
}
|
|
20166
20166
|
}
|
|
20167
20167
|
});
|
|
20168
|
-
|
|
20168
|
+
Hn.prototype.contains = function(e) {
|
|
20169
20169
|
if (typeof e != "string" && typeof e != "number")
|
|
20170
20170
|
throw new C("key is required to be a string or number.");
|
|
20171
20171
|
return h(this._hash[e]);
|
|
20172
20172
|
};
|
|
20173
|
-
|
|
20173
|
+
Hn.prototype.set = function(e, t) {
|
|
20174
20174
|
if (typeof e != "string" && typeof e != "number")
|
|
20175
20175
|
throw new C("key is required to be a string or number.");
|
|
20176
20176
|
const n = this._hash[e];
|
|
20177
20177
|
t !== n && (this.remove(e), this._hash[e] = t, this._array.push(t));
|
|
20178
20178
|
};
|
|
20179
|
-
|
|
20179
|
+
Hn.prototype.get = function(e) {
|
|
20180
20180
|
if (typeof e != "string" && typeof e != "number")
|
|
20181
20181
|
throw new C("key is required to be a string or number.");
|
|
20182
20182
|
return this._hash[e];
|
|
20183
20183
|
};
|
|
20184
|
-
|
|
20184
|
+
Hn.prototype.remove = function(e) {
|
|
20185
20185
|
if (h(e) && typeof e != "string" && typeof e != "number")
|
|
20186
20186
|
throw new C("key is required to be a string or number.");
|
|
20187
20187
|
const t = this._hash[e], n = h(t);
|
|
@@ -20191,14 +20191,14 @@ Gn.prototype.remove = function(e) {
|
|
|
20191
20191
|
}
|
|
20192
20192
|
return n;
|
|
20193
20193
|
};
|
|
20194
|
-
|
|
20194
|
+
Hn.prototype.removeAll = function() {
|
|
20195
20195
|
const e = this._array;
|
|
20196
20196
|
e.length > 0 && (this._hash = {}, e.length = 0);
|
|
20197
20197
|
};
|
|
20198
|
-
function
|
|
20198
|
+
function ot(e, t) {
|
|
20199
20199
|
e = _(e, 0), this._near = e, t = _(t, Number.MAX_VALUE), this._far = t;
|
|
20200
20200
|
}
|
|
20201
|
-
Object.defineProperties(
|
|
20201
|
+
Object.defineProperties(ot.prototype, {
|
|
20202
20202
|
/**
|
|
20203
20203
|
* The smallest distance in the interval where the object is visible.
|
|
20204
20204
|
* @memberof DistanceDisplayCondition.prototype
|
|
@@ -20228,31 +20228,31 @@ Object.defineProperties(rt.prototype, {
|
|
|
20228
20228
|
}
|
|
20229
20229
|
}
|
|
20230
20230
|
});
|
|
20231
|
-
|
|
20232
|
-
|
|
20231
|
+
ot.packedLength = 2;
|
|
20232
|
+
ot.pack = function(e, t, n) {
|
|
20233
20233
|
if (!h(e))
|
|
20234
20234
|
throw new C("value is required");
|
|
20235
20235
|
if (!h(t))
|
|
20236
20236
|
throw new C("array is required");
|
|
20237
20237
|
return n = _(n, 0), t[n++] = e.near, t[n] = e.far, t;
|
|
20238
20238
|
};
|
|
20239
|
-
|
|
20239
|
+
ot.unpack = function(e, t, n) {
|
|
20240
20240
|
if (!h(e))
|
|
20241
20241
|
throw new C("array is required");
|
|
20242
|
-
return t = _(t, 0), h(n) || (n = new
|
|
20242
|
+
return t = _(t, 0), h(n) || (n = new ot()), n.near = e[t++], n.far = e[t], n;
|
|
20243
20243
|
};
|
|
20244
|
-
|
|
20244
|
+
ot.equals = function(e, t) {
|
|
20245
20245
|
return e === t || h(e) && h(t) && e.near === t.near && e.far === t.far;
|
|
20246
20246
|
};
|
|
20247
|
-
|
|
20247
|
+
ot.clone = function(e, t) {
|
|
20248
20248
|
if (h(e))
|
|
20249
|
-
return h(t) || (t = new
|
|
20249
|
+
return h(t) || (t = new ot()), t.near = e.near, t.far = e.far, t;
|
|
20250
20250
|
};
|
|
20251
|
-
|
|
20252
|
-
return
|
|
20251
|
+
ot.prototype.clone = function(e) {
|
|
20252
|
+
return ot.clone(this, e);
|
|
20253
20253
|
};
|
|
20254
|
-
|
|
20255
|
-
return
|
|
20254
|
+
ot.prototype.equals = function(e) {
|
|
20255
|
+
return ot.equals(this, e);
|
|
20256
20256
|
};
|
|
20257
20257
|
function Te(e, t, n, i) {
|
|
20258
20258
|
this.near = _(e, 0), this.nearValue = _(t, 0), this.far = _(n, 1), this.farValue = _(i, 0);
|
|
@@ -20476,11 +20476,11 @@ function Ji(e, t) {
|
|
|
20476
20476
|
function K(e, t) {
|
|
20477
20477
|
this.center = f.clone(_(e, f.ZERO)), this.radius = _(t, 0);
|
|
20478
20478
|
}
|
|
20479
|
-
const Ul = new f(), kl = new f(), Vl = new f(), ql = new f(),
|
|
20479
|
+
const Ul = new f(), kl = new f(), Vl = new f(), ql = new f(), Gl = new f(), Hl = new f(), Wl = new f(), It = new f(), jl = new f(), Yl = new f(), Xl = new f(), $l = new f(), lT = 4 / 3 * S.PI;
|
|
20480
20480
|
K.fromPoints = function(e, t) {
|
|
20481
20481
|
if (h(t) || (t = new K()), !h(e) || e.length === 0)
|
|
20482
20482
|
return t.center = f.clone(f.ZERO, t.center), t.radius = 0, t;
|
|
20483
|
-
const n = f.clone(e[0], Wl), i = f.clone(n, Ul), o = f.clone(n, kl), s = f.clone(n, Vl), a = f.clone(n, ql), c = f.clone(n,
|
|
20483
|
+
const n = f.clone(e[0], Wl), i = f.clone(n, Ul), o = f.clone(n, kl), s = f.clone(n, Vl), a = f.clone(n, ql), c = f.clone(n, Gl), l = f.clone(n, Hl), u = e.length;
|
|
20484
20484
|
let d;
|
|
20485
20485
|
for (d = 1; d < u; d++) {
|
|
20486
20486
|
f.clone(e[d], n);
|
|
@@ -20510,24 +20510,24 @@ K.fromPoints = function(e, t) {
|
|
|
20510
20510
|
B,
|
|
20511
20511
|
$l
|
|
20512
20512
|
);
|
|
20513
|
-
let
|
|
20513
|
+
let G = 0;
|
|
20514
20514
|
for (d = 0; d < u; d++) {
|
|
20515
20515
|
f.clone(e[d], n);
|
|
20516
20516
|
const P = f.magnitude(
|
|
20517
20517
|
f.subtract(n, M, It)
|
|
20518
20518
|
);
|
|
20519
|
-
P >
|
|
20519
|
+
P > G && (G = P);
|
|
20520
20520
|
const V = f.magnitudeSquared(
|
|
20521
20521
|
f.subtract(n, D, It)
|
|
20522
20522
|
);
|
|
20523
20523
|
if (V > A) {
|
|
20524
20524
|
const k = Math.sqrt(V);
|
|
20525
20525
|
O = (O + k) * 0.5, A = O * O;
|
|
20526
|
-
const
|
|
20527
|
-
D.x = (O * D.x +
|
|
20526
|
+
const H = k - O;
|
|
20527
|
+
D.x = (O * D.x + H * n.x) / k, D.y = (O * D.y + H * n.y) / k, D.z = (O * D.z + H * n.z) / k;
|
|
20528
20528
|
}
|
|
20529
20529
|
}
|
|
20530
|
-
return O <
|
|
20530
|
+
return O < G ? (f.clone(D, t.center), t.radius = O) : (f.clone(M, t.center), t.radius = G), t;
|
|
20531
20531
|
};
|
|
20532
20532
|
const Jh = new Nn(), hT = new f(), fT = new f(), Ja = new ee(), ec = new ee();
|
|
20533
20533
|
K.fromRectangle2D = function(e, t, n) {
|
|
@@ -20572,11 +20572,11 @@ K.fromVertices = function(e, t, n, i) {
|
|
|
20572
20572
|
t = _(t, f.ZERO), n = _(n, 3), m.typeOf.number.greaterThanOrEquals("stride", n, 3);
|
|
20573
20573
|
const o = Wl;
|
|
20574
20574
|
o.x = e[0] + t.x, o.y = e[1] + t.y, o.z = e[2] + t.z;
|
|
20575
|
-
const s = f.clone(o, Ul), a = f.clone(o, kl), c = f.clone(o, Vl), l = f.clone(o, ql), u = f.clone(o,
|
|
20575
|
+
const s = f.clone(o, Ul), a = f.clone(o, kl), c = f.clone(o, Vl), l = f.clone(o, ql), u = f.clone(o, Gl), d = f.clone(o, Hl), p = e.length;
|
|
20576
20576
|
let g;
|
|
20577
20577
|
for (g = 0; g < p; g += n) {
|
|
20578
|
-
const k = e[g] + t.x,
|
|
20579
|
-
o.x = k, o.y =
|
|
20578
|
+
const k = e[g] + t.x, H = e[g + 1] + t.y, j = e[g + 2] + t.z;
|
|
20579
|
+
o.x = k, o.y = H, o.z = j, k < s.x && f.clone(o, s), k > l.x && f.clone(o, l), H < a.y && f.clone(o, a), H > u.y && f.clone(o, u), j < c.z && f.clone(o, c), j > d.z && f.clone(o, d);
|
|
20580
20580
|
}
|
|
20581
20581
|
const y = f.magnitudeSquared(
|
|
20582
20582
|
f.subtract(l, s, It)
|
|
@@ -20594,11 +20594,11 @@ K.fromVertices = function(e, t, n, i) {
|
|
|
20594
20594
|
), B = Math.sqrt(I);
|
|
20595
20595
|
const M = Yl;
|
|
20596
20596
|
M.x = s.x, M.y = a.y, M.z = c.z;
|
|
20597
|
-
const
|
|
20598
|
-
|
|
20597
|
+
const G = Xl;
|
|
20598
|
+
G.x = l.x, G.y = u.y, G.z = d.z;
|
|
20599
20599
|
const P = f.midpoint(
|
|
20600
20600
|
M,
|
|
20601
|
-
|
|
20601
|
+
G,
|
|
20602
20602
|
$l
|
|
20603
20603
|
);
|
|
20604
20604
|
let V = 0;
|
|
@@ -20608,11 +20608,11 @@ K.fromVertices = function(e, t, n, i) {
|
|
|
20608
20608
|
f.subtract(o, P, It)
|
|
20609
20609
|
);
|
|
20610
20610
|
k > V && (V = k);
|
|
20611
|
-
const
|
|
20611
|
+
const H = f.magnitudeSquared(
|
|
20612
20612
|
f.subtract(o, O, It)
|
|
20613
20613
|
);
|
|
20614
|
-
if (
|
|
20615
|
-
const j = Math.sqrt(
|
|
20614
|
+
if (H > I) {
|
|
20615
|
+
const j = Math.sqrt(H);
|
|
20616
20616
|
B = (B + j) * 0.5, I = B * B;
|
|
20617
20617
|
const r = j - B;
|
|
20618
20618
|
O.x = (B * O.x + r * o.x) / j, O.y = (B * O.y + r * o.y) / j, O.z = (B * O.z + r * o.z) / j;
|
|
@@ -20625,11 +20625,11 @@ K.fromEncodedCartesianVertices = function(e, t, n) {
|
|
|
20625
20625
|
return n.center = f.clone(f.ZERO, n.center), n.radius = 0, n;
|
|
20626
20626
|
const i = Wl;
|
|
20627
20627
|
i.x = e[0] + t[0], i.y = e[1] + t[1], i.z = e[2] + t[2];
|
|
20628
|
-
const o = f.clone(i, Ul), s = f.clone(i, kl), a = f.clone(i, Vl), c = f.clone(i, ql), l = f.clone(i,
|
|
20628
|
+
const o = f.clone(i, Ul), s = f.clone(i, kl), a = f.clone(i, Vl), c = f.clone(i, ql), l = f.clone(i, Gl), u = f.clone(i, Hl), d = e.length;
|
|
20629
20629
|
let p;
|
|
20630
20630
|
for (p = 0; p < d; p += 3) {
|
|
20631
|
-
const V = e[p] + t[p], k = e[p + 1] + t[p + 1],
|
|
20632
|
-
i.x = V, i.y = k, i.z =
|
|
20631
|
+
const V = e[p] + t[p], k = e[p + 1] + t[p + 1], H = e[p + 2] + t[p + 2];
|
|
20632
|
+
i.x = V, i.y = k, i.z = H, V < o.x && f.clone(i, o), V > c.x && f.clone(i, c), k < s.y && f.clone(i, s), k > l.y && f.clone(i, l), H < a.z && f.clone(i, a), H > u.z && f.clone(i, u);
|
|
20633
20633
|
}
|
|
20634
20634
|
const g = f.magnitudeSquared(
|
|
20635
20635
|
f.subtract(c, o, It)
|
|
@@ -20649,7 +20649,7 @@ K.fromEncodedCartesianVertices = function(e, t, n) {
|
|
|
20649
20649
|
B.x = o.x, B.y = s.y, B.z = a.z;
|
|
20650
20650
|
const M = Xl;
|
|
20651
20651
|
M.x = c.x, M.y = l.y, M.z = u.z;
|
|
20652
|
-
const
|
|
20652
|
+
const G = f.midpoint(
|
|
20653
20653
|
B,
|
|
20654
20654
|
M,
|
|
20655
20655
|
$l
|
|
@@ -20658,20 +20658,20 @@ K.fromEncodedCartesianVertices = function(e, t, n) {
|
|
|
20658
20658
|
for (p = 0; p < d; p += 3) {
|
|
20659
20659
|
i.x = e[p] + t[p], i.y = e[p + 1] + t[p + 1], i.z = e[p + 2] + t[p + 2];
|
|
20660
20660
|
const V = f.magnitude(
|
|
20661
|
-
f.subtract(i,
|
|
20661
|
+
f.subtract(i, G, It)
|
|
20662
20662
|
);
|
|
20663
20663
|
V > P && (P = V);
|
|
20664
20664
|
const k = f.magnitudeSquared(
|
|
20665
20665
|
f.subtract(i, A, It)
|
|
20666
20666
|
);
|
|
20667
20667
|
if (k > O) {
|
|
20668
|
-
const
|
|
20669
|
-
I = (I +
|
|
20670
|
-
const j =
|
|
20671
|
-
A.x = (I * A.x + j * i.x) /
|
|
20668
|
+
const H = Math.sqrt(k);
|
|
20669
|
+
I = (I + H) * 0.5, O = I * I;
|
|
20670
|
+
const j = H - I;
|
|
20671
|
+
A.x = (I * A.x + j * i.x) / H, A.y = (I * A.y + j * i.y) / H, A.z = (I * A.z + j * i.z) / H;
|
|
20672
20672
|
}
|
|
20673
20673
|
}
|
|
20674
|
-
return I < P ? (f.clone(A, n.center), n.radius = I) : (f.clone(
|
|
20674
|
+
return I < P ? (f.clone(A, n.center), n.radius = I) : (f.clone(G, n.center), n.radius = P), n;
|
|
20675
20675
|
};
|
|
20676
20676
|
K.fromCornerPoints = function(e, t, n) {
|
|
20677
20677
|
m.typeOf.object("corner", e), m.typeOf.object("oppositeCorner", t), h(n) || (n = new K());
|
|
@@ -20882,41 +20882,41 @@ const vT = {
|
|
|
20882
20882
|
TOP: 1,
|
|
20883
20883
|
ALL: 2
|
|
20884
20884
|
}, nf = Object.freeze(vT);
|
|
20885
|
-
function
|
|
20885
|
+
function rt(e) {
|
|
20886
20886
|
e = _(e, _.EMPTY_OBJECT), this.position = _(e.position, !1), this.normal = _(e.normal, !1), this.st = _(e.st, !1), this.bitangent = _(e.bitangent, !1), this.tangent = _(e.tangent, !1), this.color = _(e.color, !1);
|
|
20887
20887
|
}
|
|
20888
|
-
|
|
20889
|
-
new
|
|
20888
|
+
rt.POSITION_ONLY = Object.freeze(
|
|
20889
|
+
new rt({
|
|
20890
20890
|
position: !0
|
|
20891
20891
|
})
|
|
20892
20892
|
);
|
|
20893
|
-
|
|
20894
|
-
new
|
|
20893
|
+
rt.POSITION_AND_NORMAL = Object.freeze(
|
|
20894
|
+
new rt({
|
|
20895
20895
|
position: !0,
|
|
20896
20896
|
normal: !0
|
|
20897
20897
|
})
|
|
20898
20898
|
);
|
|
20899
|
-
|
|
20900
|
-
new
|
|
20899
|
+
rt.POSITION_NORMAL_AND_ST = Object.freeze(
|
|
20900
|
+
new rt({
|
|
20901
20901
|
position: !0,
|
|
20902
20902
|
normal: !0,
|
|
20903
20903
|
st: !0
|
|
20904
20904
|
})
|
|
20905
20905
|
);
|
|
20906
|
-
|
|
20907
|
-
new
|
|
20906
|
+
rt.POSITION_AND_ST = Object.freeze(
|
|
20907
|
+
new rt({
|
|
20908
20908
|
position: !0,
|
|
20909
20909
|
st: !0
|
|
20910
20910
|
})
|
|
20911
20911
|
);
|
|
20912
|
-
|
|
20913
|
-
new
|
|
20912
|
+
rt.POSITION_AND_COLOR = Object.freeze(
|
|
20913
|
+
new rt({
|
|
20914
20914
|
position: !0,
|
|
20915
20915
|
color: !0
|
|
20916
20916
|
})
|
|
20917
20917
|
);
|
|
20918
|
-
|
|
20919
|
-
new
|
|
20918
|
+
rt.ALL = Object.freeze(
|
|
20919
|
+
new rt({
|
|
20920
20920
|
position: !0,
|
|
20921
20921
|
normal: !0,
|
|
20922
20922
|
st: !0,
|
|
@@ -20924,23 +20924,23 @@ st.ALL = Object.freeze(
|
|
|
20924
20924
|
bitangent: !0
|
|
20925
20925
|
})
|
|
20926
20926
|
);
|
|
20927
|
-
|
|
20928
|
-
|
|
20929
|
-
|
|
20927
|
+
rt.DEFAULT = rt.POSITION_NORMAL_AND_ST;
|
|
20928
|
+
rt.packedLength = 6;
|
|
20929
|
+
rt.pack = function(e, t, n) {
|
|
20930
20930
|
if (!h(e))
|
|
20931
20931
|
throw new C("value is required");
|
|
20932
20932
|
if (!h(t))
|
|
20933
20933
|
throw new C("array is required");
|
|
20934
20934
|
return n = _(n, 0), t[n++] = e.position ? 1 : 0, t[n++] = e.normal ? 1 : 0, t[n++] = e.st ? 1 : 0, t[n++] = e.tangent ? 1 : 0, t[n++] = e.bitangent ? 1 : 0, t[n] = e.color ? 1 : 0, t;
|
|
20935
20935
|
};
|
|
20936
|
-
|
|
20936
|
+
rt.unpack = function(e, t, n) {
|
|
20937
20937
|
if (!h(e))
|
|
20938
20938
|
throw new C("array is required");
|
|
20939
|
-
return t = _(t, 0), h(n) || (n = new
|
|
20939
|
+
return t = _(t, 0), h(n) || (n = new rt()), n.position = e[t++] === 1, n.normal = e[t++] === 1, n.st = e[t++] === 1, n.tangent = e[t++] === 1, n.bitangent = e[t++] === 1, n.color = e[t] === 1, n;
|
|
20940
20940
|
};
|
|
20941
|
-
|
|
20941
|
+
rt.clone = function(e, t) {
|
|
20942
20942
|
if (h(e))
|
|
20943
|
-
return h(t) || (t = new
|
|
20943
|
+
return h(t) || (t = new rt()), 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
20945
|
function No(e, t, n, i) {
|
|
20946
20946
|
e = _(e, 1), t = _(t, 1), n = _(n, 1), i = _(i, 1), this.value = new Uint8Array([
|
|
@@ -21756,7 +21756,7 @@ czm_material czm_getMaterial(czm_materialInput materialInput)
|
|
|
21756
21756
|
|
|
21757
21757
|
return material;
|
|
21758
21758
|
}
|
|
21759
|
-
`,
|
|
21759
|
+
`, GT = `uniform vec4 color;
|
|
21760
21760
|
uniform float cellAlpha;
|
|
21761
21761
|
uniform vec2 lineCount;
|
|
21762
21762
|
uniform vec2 lineThickness;
|
|
@@ -21813,7 +21813,7 @@ czm_material czm_getMaterial(czm_materialInput materialInput)
|
|
|
21813
21813
|
|
|
21814
21814
|
return material;
|
|
21815
21815
|
}
|
|
21816
|
-
`,
|
|
21816
|
+
`, HT = `uniform sampler2D image;
|
|
21817
21817
|
uniform float strength;
|
|
21818
21818
|
uniform vec2 repeat;
|
|
21819
21819
|
|
|
@@ -22695,7 +22695,7 @@ Q._materialCache.addMaterial(Q.NormalMapType, {
|
|
|
22695
22695
|
strength: 0.8,
|
|
22696
22696
|
repeat: new U(1, 1)
|
|
22697
22697
|
},
|
|
22698
|
-
source:
|
|
22698
|
+
source: HT
|
|
22699
22699
|
},
|
|
22700
22700
|
translucent: !1
|
|
22701
22701
|
});
|
|
@@ -22710,7 +22710,7 @@ Q._materialCache.addMaterial(Q.GridType, {
|
|
|
22710
22710
|
lineThickness: new U(1, 1),
|
|
22711
22711
|
lineOffset: new U(0, 0)
|
|
22712
22712
|
},
|
|
22713
|
-
source:
|
|
22713
|
+
source: GT
|
|
22714
22714
|
},
|
|
22715
22715
|
translucent: function(e) {
|
|
22716
22716
|
const t = e.uniforms;
|
|
@@ -23140,8 +23140,8 @@ Object.defineProperties(jt.prototype, {
|
|
|
23140
23140
|
}
|
|
23141
23141
|
}
|
|
23142
23142
|
});
|
|
23143
|
-
jt.VERTEX_FORMAT =
|
|
23144
|
-
jt.FLAT_VERTEX_FORMAT =
|
|
23143
|
+
jt.VERTEX_FORMAT = rt.POSITION_AND_NORMAL;
|
|
23144
|
+
jt.FLAT_VERTEX_FORMAT = rt.POSITION_ONLY;
|
|
23145
23145
|
jt.prototype.getFragmentShaderSource = Mt.prototype.getFragmentShaderSource;
|
|
23146
23146
|
jt.prototype.isTranslucent = Mt.prototype.isTranslucent;
|
|
23147
23147
|
jt.prototype.getRenderState = Mt.prototype.getRenderState;
|
|
@@ -23537,15 +23537,15 @@ function ic(e, t, n, i) {
|
|
|
23537
23537
|
const Ie = D / 2, Ve = Ie < 0 ? -Math.pow(-Ie, 1 / 3) : Math.pow(Ie, 1 / 3), Ke = D === ge ? -Ve : -se / Ve;
|
|
23538
23538
|
return T = se <= 0 ? Ve + Ke : -me / (Ve * Ve + Ke * Ke + se), d * u >= l * p ? [(T - s) / o] : [-c / (T + a)];
|
|
23539
23539
|
}
|
|
23540
|
-
const A = g, O = -2 * s * g + o * y, I = x, B = -c * y + 2 * a * x, M = Math.sqrt(E),
|
|
23540
|
+
const A = g, O = -2 * s * g + o * y, I = x, B = -c * y + 2 * a * x, M = Math.sqrt(E), G = Math.sqrt(3) / 2;
|
|
23541
23541
|
let P = Math.abs(Math.atan2(o * M, -O) / 3);
|
|
23542
23542
|
T = 2 * Math.sqrt(-A);
|
|
23543
23543
|
let V = Math.cos(P);
|
|
23544
23544
|
D = T * V;
|
|
23545
|
-
let k = T * (-V / 2 -
|
|
23546
|
-
const
|
|
23547
|
-
P = Math.abs(Math.atan2(c * M, -B) / 3), T = 2 * Math.sqrt(-I), V = Math.cos(P), D = T * V, k = T * (-V / 2 -
|
|
23548
|
-
const b = -c, v = D + k < 2 * a ? D + a : k + a, z = b / v, q = j * v, W = -
|
|
23545
|
+
let k = T * (-V / 2 - G * Math.sin(P));
|
|
23546
|
+
const H = D + k > 2 * s ? D - s : k - s, j = o, r = H / j;
|
|
23547
|
+
P = Math.abs(Math.atan2(c * M, -B) / 3), T = 2 * Math.sqrt(-I), V = Math.cos(P), D = T * V, k = T * (-V / 2 - G * Math.sin(P));
|
|
23548
|
+
const b = -c, v = D + k < 2 * a ? D + a : k + a, z = b / v, q = j * v, W = -H * v - j * b, $ = H * b, X = (a * W - s * $) / (-s * W + a * q);
|
|
23549
23549
|
return r <= X ? r <= z ? X <= z ? [r, X, z] : [r, z, X] : [z, r, X] : r <= z ? [X, r, z] : X <= z ? [X, z, r] : [z, X, r];
|
|
23550
23550
|
}
|
|
23551
23551
|
Zr.computeRealRoots = function(e, t, n, i) {
|
|
@@ -23637,15 +23637,15 @@ function Jo(e, t, n, i) {
|
|
|
23637
23637
|
const j = Math.sqrt(T);
|
|
23638
23638
|
I = j === 0 ? 0 : (e * E - n) / j, B = j / 2;
|
|
23639
23639
|
}
|
|
23640
|
-
let M,
|
|
23641
|
-
x === 0 && I === 0 ? (M = 0,
|
|
23640
|
+
let M, G;
|
|
23641
|
+
x === 0 && I === 0 ? (M = 0, G = 0) : S.sign(x) === S.sign(I) ? (M = x + I, G = p / M) : (G = x - I, M = p / G);
|
|
23642
23642
|
let P, V;
|
|
23643
23643
|
E === 0 && B === 0 ? (P = 0, V = 0) : S.sign(E) === S.sign(B) ? (P = E + B, V = i / P) : (V = E - B, P = i / V);
|
|
23644
|
-
const k = In.computeRealRoots(1, M, P),
|
|
23644
|
+
const k = In.computeRealRoots(1, M, P), H = In.computeRealRoots(1, G, V);
|
|
23645
23645
|
if (k.length !== 0)
|
|
23646
|
-
return
|
|
23647
|
-
if (
|
|
23648
|
-
return
|
|
23646
|
+
return H.length !== 0 ? k[1] <= H[0] ? [k[0], k[1], H[0], H[1]] : H[1] <= k[0] ? [H[0], H[1], k[0], k[1]] : k[0] >= H[0] && k[1] <= H[1] ? [H[0], k[0], k[1], H[1]] : H[0] >= k[0] && H[1] <= k[1] ? [k[0], H[0], H[1], k[1]] : k[0] > H[0] && k[0] < H[1] ? [H[0], k[0], H[1], k[1]] : [k[0], H[0], k[1], H[1]] : k;
|
|
23647
|
+
if (H.length !== 0)
|
|
23648
|
+
return H;
|
|
23649
23649
|
}
|
|
23650
23650
|
return [];
|
|
23651
23651
|
}
|
|
@@ -23803,7 +23803,7 @@ const wb = {
|
|
|
23803
23803
|
root0: 0,
|
|
23804
23804
|
root1: 0
|
|
23805
23805
|
};
|
|
23806
|
-
function
|
|
23806
|
+
function Gp(e, t, n) {
|
|
23807
23807
|
h(n) || (n = new Ji());
|
|
23808
23808
|
const i = e.origin, o = e.direction, s = t.center, a = t.radius * t.radius, c = f.subtract(i, s, qp), l = f.dot(o, o), u = 2 * f.dot(o, c), d = f.magnitudeSquared(c) - a, p = bb(l, u, d, wb);
|
|
23809
23809
|
if (h(p))
|
|
@@ -23814,7 +23814,7 @@ Be.raySphere = function(e, t, n) {
|
|
|
23814
23814
|
throw new C("ray is required.");
|
|
23815
23815
|
if (!h(t))
|
|
23816
23816
|
throw new C("sphere is required.");
|
|
23817
|
-
if (n =
|
|
23817
|
+
if (n = Gp(e, t, n), !(!h(n) || n.stop < 0))
|
|
23818
23818
|
return n.start = Math.max(n.start, 0), n;
|
|
23819
23819
|
};
|
|
23820
23820
|
const Sb = new Lo();
|
|
@@ -23828,7 +23828,7 @@ Be.lineSegmentSphere = function(e, t, n, i) {
|
|
|
23828
23828
|
const o = Sb;
|
|
23829
23829
|
f.clone(e, o.origin);
|
|
23830
23830
|
const s = f.subtract(t, e, o.direction), a = f.magnitude(s);
|
|
23831
|
-
if (f.normalize(s, s), i =
|
|
23831
|
+
if (f.normalize(s, s), i = Gp(o, n, i), !(!h(i) || i.stop < 0 || i.start > a))
|
|
23832
23832
|
return i.start = Math.max(i.start, 0), i.stop = Math.min(i.stop, a), i;
|
|
23833
23833
|
};
|
|
23834
23834
|
const Ab = new f(), Db = new f();
|
|
@@ -23885,8 +23885,8 @@ Be.quadraticVectorExpression = function(e, t, n, i, o) {
|
|
|
23885
23885
|
return y;
|
|
23886
23886
|
const P = g[0], V = Math.sqrt(Math.max(1 - P * P, 0));
|
|
23887
23887
|
if (y.push(new f(i, o * P, o * -V)), y.push(new f(i, o * P, o * V)), g.length === 2) {
|
|
23888
|
-
const k = g[1],
|
|
23889
|
-
y.push(new f(i, o * k, o * -
|
|
23888
|
+
const k = g[1], H = Math.sqrt(Math.max(1 - k * k, 0));
|
|
23889
|
+
y.push(new f(i, o * k, o * -H)), y.push(new f(i, o * k, o * H));
|
|
23890
23890
|
}
|
|
23891
23891
|
return y;
|
|
23892
23892
|
}
|
|
@@ -23894,11 +23894,11 @@ Be.quadraticVectorExpression = function(e, t, n, i, o) {
|
|
|
23894
23894
|
if (A === 0 && O === 0 && I === 0 && B === 0)
|
|
23895
23895
|
return y;
|
|
23896
23896
|
g = Zl.computeRealRoots(A, O, I, B, M);
|
|
23897
|
-
const
|
|
23898
|
-
if (
|
|
23897
|
+
const G = g.length;
|
|
23898
|
+
if (G === 0)
|
|
23899
23899
|
return y;
|
|
23900
|
-
for (let P = 0; P <
|
|
23901
|
-
const V = g[P], k = V * V,
|
|
23900
|
+
for (let P = 0; P < G; ++P) {
|
|
23901
|
+
const V = g[P], k = V * V, H = Math.max(1 - k, 0), j = Math.sqrt(H);
|
|
23902
23902
|
let r;
|
|
23903
23903
|
S.sign(c) === S.sign(u) ? r = Wi(
|
|
23904
23904
|
c * k + u,
|
|
@@ -23965,7 +23965,7 @@ Be.grazingAltitudeLocation = function(e, t) {
|
|
|
23965
23965
|
let O, I;
|
|
23966
23966
|
const B = A.length;
|
|
23967
23967
|
if (B > 0) {
|
|
23968
|
-
let M = f.clone(f.ZERO, Bb),
|
|
23968
|
+
let M = f.clone(f.ZERO, Bb), G = Number.NEGATIVE_INFINITY;
|
|
23969
23969
|
for (let V = 0; V < B; ++V) {
|
|
23970
23970
|
O = L.multiplyByVector(
|
|
23971
23971
|
g,
|
|
@@ -23975,16 +23975,16 @@ Be.grazingAltitudeLocation = function(e, t) {
|
|
|
23975
23975
|
const k = f.normalize(
|
|
23976
23976
|
f.subtract(O, n, As),
|
|
23977
23977
|
As
|
|
23978
|
-
),
|
|
23979
|
-
|
|
23978
|
+
), H = f.dot(k, i);
|
|
23979
|
+
H > G && (G = H, M = f.clone(O, M));
|
|
23980
23980
|
}
|
|
23981
23981
|
const P = t.cartesianToCartographic(
|
|
23982
23982
|
M,
|
|
23983
23983
|
Nb
|
|
23984
23984
|
);
|
|
23985
|
-
return
|
|
23985
|
+
return G = S.clamp(G, 0, 1), I = f.magnitude(
|
|
23986
23986
|
f.subtract(M, n, As)
|
|
23987
|
-
) * Math.sqrt(1 -
|
|
23987
|
+
) * Math.sqrt(1 - G * G), I = o ? -I : I, P.height = I, t.cartographicToCartesian(P, new f());
|
|
23988
23988
|
}
|
|
23989
23989
|
};
|
|
23990
23990
|
const Fb = new f();
|
|
@@ -24208,10 +24208,10 @@ Kn.fromPoints = function(e, t) {
|
|
|
24208
24208
|
const n = Yt.fromPoints(e, Lb);
|
|
24209
24209
|
return new Kn(n.center, t);
|
|
24210
24210
|
};
|
|
24211
|
-
const
|
|
24211
|
+
const Hp = new Lo(), pa = new f();
|
|
24212
24212
|
Kn.prototype.projectPointOntoPlane = function(e, t) {
|
|
24213
24213
|
m.defined("cartesian", e);
|
|
24214
|
-
const n =
|
|
24214
|
+
const n = Hp;
|
|
24215
24215
|
n.origin = e, f.normalize(e, n.direction);
|
|
24216
24216
|
let i = Be.rayPlane(
|
|
24217
24217
|
n,
|
|
@@ -24243,7 +24243,7 @@ Kn.prototype.projectPointsOntoPlane = function(e, t) {
|
|
|
24243
24243
|
};
|
|
24244
24244
|
Kn.prototype.projectPointToNearestOnPlane = function(e, t) {
|
|
24245
24245
|
m.defined("cartesian", e), h(t) || (t = new U());
|
|
24246
|
-
const n =
|
|
24246
|
+
const n = Hp;
|
|
24247
24247
|
n.origin = e, f.clone(this._plane.normal, n.direction);
|
|
24248
24248
|
let i = Be.rayPlane(
|
|
24249
24249
|
n,
|
|
@@ -24298,7 +24298,7 @@ Re.unpack = function(e, t, n) {
|
|
|
24298
24298
|
n.halfAxes
|
|
24299
24299
|
), n;
|
|
24300
24300
|
};
|
|
24301
|
-
const Ub = new f(), kb = new f(), Vb = new f(), qb = new f(),
|
|
24301
|
+
const Ub = new f(), kb = new f(), Vb = new f(), qb = new f(), Gb = new f(), Hb = new f(), Wb = new L(), jb = {
|
|
24302
24302
|
unitary: new L(),
|
|
24303
24303
|
diagonal: new L()
|
|
24304
24304
|
};
|
|
@@ -24321,14 +24321,14 @@ Re.fromPoints = function(e, t) {
|
|
|
24321
24321
|
y,
|
|
24322
24322
|
jb
|
|
24323
24323
|
), E = L.clone(x.unitary, t.halfAxes);
|
|
24324
|
-
let T = L.getColumn(E, 0, qb), D = L.getColumn(E, 1,
|
|
24324
|
+
let T = L.getColumn(E, 0, qb), D = L.getColumn(E, 1, Gb), A = L.getColumn(E, 2, Hb), O = -Number.MAX_VALUE, I = -Number.MAX_VALUE, B = -Number.MAX_VALUE, M = Number.MAX_VALUE, G = Number.MAX_VALUE, P = Number.MAX_VALUE;
|
|
24325
24325
|
for (n = 0; n < i; n++)
|
|
24326
|
-
g = e[n], O = Math.max(f.dot(T, g), O), I = Math.max(f.dot(D, g), I), B = Math.max(f.dot(A, g), B), M = Math.min(f.dot(T, g), M),
|
|
24327
|
-
T = f.multiplyByScalar(T, 0.5 * (M + O), T), D = f.multiplyByScalar(D, 0.5 * (
|
|
24326
|
+
g = e[n], O = Math.max(f.dot(T, g), O), I = Math.max(f.dot(D, g), I), B = Math.max(f.dot(A, g), B), M = Math.min(f.dot(T, g), M), G = Math.min(f.dot(D, g), G), P = Math.min(f.dot(A, g), P);
|
|
24327
|
+
T = f.multiplyByScalar(T, 0.5 * (M + O), T), D = f.multiplyByScalar(D, 0.5 * (G + I), D), A = f.multiplyByScalar(A, 0.5 * (P + B), A);
|
|
24328
24328
|
const V = f.add(T, D, t.center);
|
|
24329
24329
|
f.add(V, A, V);
|
|
24330
24330
|
const k = Vb;
|
|
24331
|
-
return k.x = O - M, k.y = I -
|
|
24331
|
+
return k.x = O - M, k.y = I - G, k.z = B - P, f.multiplyByScalar(k, 0.5, k), L.multiplyByScale(t.halfAxes, k, t.halfAxes), t;
|
|
24332
24332
|
};
|
|
24333
24333
|
const Wp = new f(), Yb = new f();
|
|
24334
24334
|
function yf(e, t, n, i, o, s, a, c, l, u, d) {
|
|
@@ -24365,15 +24365,15 @@ Re.fromRectangle = function(e, t, n, i, o) {
|
|
|
24365
24365
|
t = _(t, 0), n = _(n, 0), i = _(i, le.default);
|
|
24366
24366
|
let s, a, c, l, u, d, p;
|
|
24367
24367
|
if (e.width <= S.PI) {
|
|
24368
|
-
const
|
|
24368
|
+
const G = ce.center(
|
|
24369
24369
|
e,
|
|
24370
24370
|
xf
|
|
24371
24371
|
), P = i.cartographicToCartesian(
|
|
24372
|
-
|
|
24372
|
+
G,
|
|
24373
24373
|
Xb
|
|
24374
24374
|
), V = new Kn(P, i);
|
|
24375
24375
|
p = V.plane;
|
|
24376
|
-
const k =
|
|
24376
|
+
const k = G.longitude, H = e.south < 0 && e.north > 0 ? 0 : G.latitude, j = ee.fromRadians(
|
|
24377
24377
|
k,
|
|
24378
24378
|
e.north,
|
|
24379
24379
|
n,
|
|
@@ -24385,7 +24385,7 @@ Re.fromRectangle = function(e, t, n, i, o) {
|
|
|
24385
24385
|
Zb
|
|
24386
24386
|
), b = ee.fromRadians(
|
|
24387
24387
|
e.west,
|
|
24388
|
-
|
|
24388
|
+
H,
|
|
24389
24389
|
n,
|
|
24390
24390
|
Kb
|
|
24391
24391
|
), v = ee.fromRadians(
|
|
@@ -25104,7 +25104,7 @@ function Vw(e) {
|
|
|
25104
25104
|
function qw(e) {
|
|
25105
25105
|
return e === 1 ? ".x" : e === 2 ? ".xy" : e === 3 ? ".xyz" : "";
|
|
25106
25106
|
}
|
|
25107
|
-
function
|
|
25107
|
+
function Gw(e, t) {
|
|
25108
25108
|
const i = e._attributes[t], o = i.componentsPerAttribute, s = i.functionName, a = Vw(o), c = qw(o), l = e._offsets[t];
|
|
25109
25109
|
let u = `${a} ${s}(float batchId)
|
|
25110
25110
|
{
|
|
@@ -25136,7 +25136,7 @@ wi.prototype.getVertexShaderCallback = function() {
|
|
|
25136
25136
|
`;
|
|
25137
25137
|
const n = e.length;
|
|
25138
25138
|
for (let i = 0; i < n; ++i)
|
|
25139
|
-
t +=
|
|
25139
|
+
t += Gw(this, i);
|
|
25140
25140
|
return function(i) {
|
|
25141
25141
|
const o = i.indexOf("void main"), s = i.substring(0, o), a = i.substring(o);
|
|
25142
25142
|
return `${s}
|
|
@@ -25277,7 +25277,7 @@ Le.getGlslType = function(e) {
|
|
|
25277
25277
|
throw new C("attributeType is not a valid value.");
|
|
25278
25278
|
}
|
|
25279
25279
|
};
|
|
25280
|
-
const
|
|
25280
|
+
const Hw = Object.freeze(Le), wf = 1 / 256, Sf = 256, be = {};
|
|
25281
25281
|
be.octEncodeInRange = function(e, t, n) {
|
|
25282
25282
|
m.defined("vector", e), m.defined("result", n);
|
|
25283
25283
|
const i = f.magnitudeSquared(e);
|
|
@@ -25380,7 +25380,7 @@ be.zigZagDeltaDecode = function(e, t, n) {
|
|
|
25380
25380
|
};
|
|
25381
25381
|
be.dequantize = function(e, t, n, i) {
|
|
25382
25382
|
m.defined("typedArray", e), m.defined("componentDatatype", t), m.defined("type", n), m.defined("count", i);
|
|
25383
|
-
const o =
|
|
25383
|
+
const o = Hw.getNumberOfComponents(n);
|
|
25384
25384
|
let s;
|
|
25385
25385
|
switch (t) {
|
|
25386
25386
|
case oe.BYTE:
|
|
@@ -25496,26 +25496,26 @@ Kl.tipsify = function(e) {
|
|
|
25496
25496
|
e = _(e, _.EMPTY_OBJECT);
|
|
25497
25497
|
const t = e.indices, n = e.maximumIndex, i = _(e.cacheSize, 24);
|
|
25498
25498
|
let o;
|
|
25499
|
-
function s(
|
|
25499
|
+
function s(H, j, r, b) {
|
|
25500
25500
|
for (; j.length >= 1; ) {
|
|
25501
25501
|
const v = j[j.length - 1];
|
|
25502
|
-
if (j.splice(j.length - 1, 1),
|
|
25502
|
+
if (j.splice(j.length - 1, 1), H[v].numLiveTriangles > 0)
|
|
25503
25503
|
return v;
|
|
25504
25504
|
}
|
|
25505
25505
|
for (; o < b; ) {
|
|
25506
|
-
if (
|
|
25506
|
+
if (H[o].numLiveTriangles > 0)
|
|
25507
25507
|
return ++o, o - 1;
|
|
25508
25508
|
++o;
|
|
25509
25509
|
}
|
|
25510
25510
|
return -1;
|
|
25511
25511
|
}
|
|
25512
|
-
function a(
|
|
25512
|
+
function a(H, j, r, b, v, z, q) {
|
|
25513
25513
|
let W = -1, $, X = -1, ie = 0;
|
|
25514
25514
|
for (; ie < r.length; ) {
|
|
25515
25515
|
const se = r[ie];
|
|
25516
25516
|
b[se].numLiveTriangles && ($ = 0, v - b[se].timeStamp + 2 * b[se].numLiveTriangles <= j && ($ = v - b[se].timeStamp), ($ > X || X === -1) && (X = $, W = se)), ++ie;
|
|
25517
25517
|
}
|
|
25518
|
-
return W === -1 ? s(b, z,
|
|
25518
|
+
return W === -1 ? s(b, z, H, q) : W;
|
|
25519
25519
|
}
|
|
25520
25520
|
if (!h(t))
|
|
25521
25521
|
throw new C("indices is required.");
|
|
@@ -25554,14 +25554,14 @@ Kl.tipsify = function(e) {
|
|
|
25554
25554
|
let D = [];
|
|
25555
25555
|
const A = [];
|
|
25556
25556
|
let O, I, B = 0;
|
|
25557
|
-
const M = [],
|
|
25558
|
-
for (y = 0; y <
|
|
25557
|
+
const M = [], G = c / 3, P = [];
|
|
25558
|
+
for (y = 0; y < G; y++)
|
|
25559
25559
|
P[y] = !1;
|
|
25560
25560
|
let V, k;
|
|
25561
25561
|
for (; E !== -1; ) {
|
|
25562
25562
|
D = [], I = g[E], k = I.vertexTriangles.length;
|
|
25563
|
-
for (let
|
|
25564
|
-
if (x = I.vertexTriangles[
|
|
25563
|
+
for (let H = 0; H < k; ++H)
|
|
25564
|
+
if (x = I.vertexTriangles[H], !P[x]) {
|
|
25565
25565
|
P[x] = !0, u = x + x + x;
|
|
25566
25566
|
for (let j = 0; j < 3; ++j)
|
|
25567
25567
|
V = t[u], D.push(V), A.push(V), M[B] = V, ++B, O = g[V], --O.numLiveTriangles, T - O.timeStamp > i && (O.timeStamp = T, ++T), ++u;
|
|
@@ -25578,7 +25578,7 @@ Kl.tipsify = function(e) {
|
|
|
25578
25578
|
}
|
|
25579
25579
|
return M;
|
|
25580
25580
|
};
|
|
25581
|
-
const
|
|
25581
|
+
const Ge = {};
|
|
25582
25582
|
function ma(e, t, n, i, o) {
|
|
25583
25583
|
e[t++] = n, e[t++] = i, e[t++] = i, e[t++] = o, e[t++] = o, e[t] = n;
|
|
25584
25584
|
}
|
|
@@ -25617,19 +25617,19 @@ function Xw(e) {
|
|
|
25617
25617
|
}
|
|
25618
25618
|
return new Uint16Array();
|
|
25619
25619
|
}
|
|
25620
|
-
|
|
25620
|
+
Ge.toWireframe = function(e) {
|
|
25621
25621
|
if (!h(e))
|
|
25622
25622
|
throw new C("geometry is required.");
|
|
25623
25623
|
const t = e.indices;
|
|
25624
25624
|
if (h(t)) {
|
|
25625
25625
|
switch (e.primitiveType) {
|
|
25626
|
-
case
|
|
25626
|
+
case He.TRIANGLES:
|
|
25627
25627
|
e.indices = jw(t);
|
|
25628
25628
|
break;
|
|
25629
|
-
case
|
|
25629
|
+
case He.TRIANGLE_STRIP:
|
|
25630
25630
|
e.indices = Yw(t);
|
|
25631
25631
|
break;
|
|
25632
|
-
case
|
|
25632
|
+
case He.TRIANGLE_FAN:
|
|
25633
25633
|
e.indices = Xw(t);
|
|
25634
25634
|
break;
|
|
25635
25635
|
default:
|
|
@@ -25637,11 +25637,11 @@ He.toWireframe = function(e) {
|
|
|
25637
25637
|
"geometry.primitiveType must be TRIANGLES, TRIANGLE_STRIP, or TRIANGLE_FAN."
|
|
25638
25638
|
);
|
|
25639
25639
|
}
|
|
25640
|
-
e.primitiveType =
|
|
25640
|
+
e.primitiveType = He.LINES;
|
|
25641
25641
|
}
|
|
25642
25642
|
return e;
|
|
25643
25643
|
};
|
|
25644
|
-
|
|
25644
|
+
Ge.createLineSegmentsForVectors = function(e, t, n) {
|
|
25645
25645
|
if (t = _(t, "normal"), !h(e))
|
|
25646
25646
|
throw new C("geometry is required.");
|
|
25647
25647
|
if (!h(e.attributes.position))
|
|
@@ -25657,7 +25657,7 @@ He.createLineSegmentsForVectors = function(e, t, n) {
|
|
|
25657
25657
|
a[c++] = i[d], a[c++] = i[d + 1], a[c++] = i[d + 2], a[c++] = i[d] + o[d] * n, a[c++] = i[d + 1] + o[d + 1] * n, a[c++] = i[d + 2] + o[d + 2] * n;
|
|
25658
25658
|
let l;
|
|
25659
25659
|
const u = e.boundingSphere;
|
|
25660
|
-
return h(u) && (l = new K(u.center, u.radius + n)), new
|
|
25660
|
+
return h(u) && (l = new K(u.center, u.radius + n)), new ht({
|
|
25661
25661
|
attributes: {
|
|
25662
25662
|
position: new zt({
|
|
25663
25663
|
componentDatatype: oe.DOUBLE,
|
|
@@ -25665,11 +25665,11 @@ He.createLineSegmentsForVectors = function(e, t, n) {
|
|
|
25665
25665
|
values: a
|
|
25666
25666
|
})
|
|
25667
25667
|
},
|
|
25668
|
-
primitiveType:
|
|
25668
|
+
primitiveType: He.LINES,
|
|
25669
25669
|
boundingSphere: l
|
|
25670
25670
|
});
|
|
25671
25671
|
};
|
|
25672
|
-
|
|
25672
|
+
Ge.createAttributeLocations = function(e) {
|
|
25673
25673
|
if (!h(e))
|
|
25674
25674
|
throw new C("geometry is required.");
|
|
25675
25675
|
const t = [
|
|
@@ -25703,10 +25703,10 @@ He.createAttributeLocations = function(e) {
|
|
|
25703
25703
|
n.hasOwnProperty(c) && !h(i[c]) && (i[c] = o++);
|
|
25704
25704
|
return i;
|
|
25705
25705
|
};
|
|
25706
|
-
|
|
25706
|
+
Ge.reorderForPreVertexCache = function(e) {
|
|
25707
25707
|
if (!h(e))
|
|
25708
25708
|
throw new C("geometry is required.");
|
|
25709
|
-
const t =
|
|
25709
|
+
const t = ht.computeNumberOfVertices(e), n = e.indices;
|
|
25710
25710
|
if (h(n)) {
|
|
25711
25711
|
const i = new Int32Array(t);
|
|
25712
25712
|
for (let g = 0; g < t; g++)
|
|
@@ -25737,11 +25737,11 @@ He.reorderForPreVertexCache = function(e) {
|
|
|
25737
25737
|
}
|
|
25738
25738
|
return e;
|
|
25739
25739
|
};
|
|
25740
|
-
|
|
25740
|
+
Ge.reorderForPostVertexCache = function(e, t) {
|
|
25741
25741
|
if (!h(e))
|
|
25742
25742
|
throw new C("geometry is required.");
|
|
25743
25743
|
const n = e.indices;
|
|
25744
|
-
if (e.primitiveType ===
|
|
25744
|
+
if (e.primitiveType === He.TRIANGLES && h(n)) {
|
|
25745
25745
|
const i = n.length;
|
|
25746
25746
|
let o = 0;
|
|
25747
25747
|
for (let s = 0; s < i; s++)
|
|
@@ -25778,19 +25778,19 @@ function $w(e, t, n) {
|
|
|
25778
25778
|
);
|
|
25779
25779
|
}
|
|
25780
25780
|
}
|
|
25781
|
-
|
|
25781
|
+
Ge.fitToUnsignedShortIndices = function(e) {
|
|
25782
25782
|
if (!h(e))
|
|
25783
25783
|
throw new C("geometry is required.");
|
|
25784
|
-
if (h(e.indices) && e.primitiveType !==
|
|
25784
|
+
if (h(e.indices) && e.primitiveType !== He.TRIANGLES && e.primitiveType !== He.LINES && e.primitiveType !== He.POINTS)
|
|
25785
25785
|
throw new C(
|
|
25786
25786
|
"geometry.primitiveType must equal to PrimitiveType.TRIANGLES, PrimitiveType.LINES, or PrimitiveType.POINTS."
|
|
25787
25787
|
);
|
|
25788
|
-
const t = [], n =
|
|
25788
|
+
const t = [], n = ht.computeNumberOfVertices(e);
|
|
25789
25789
|
if (h(e.indices) && n >= S.SIXTY_FOUR_KILOBYTES) {
|
|
25790
25790
|
let i = [], o = [], s = 0, a = If(e.attributes);
|
|
25791
25791
|
const c = e.indices, l = c.length;
|
|
25792
25792
|
let u;
|
|
25793
|
-
e.primitiveType ===
|
|
25793
|
+
e.primitiveType === He.TRIANGLES ? u = 3 : e.primitiveType === He.LINES ? u = 2 : e.primitiveType === He.POINTS && (u = 1);
|
|
25794
25794
|
for (let d = 0; d < l; d += u) {
|
|
25795
25795
|
for (let p = 0; p < u; ++p) {
|
|
25796
25796
|
const g = c[d + p];
|
|
@@ -25798,7 +25798,7 @@ He.fitToUnsignedShortIndices = function(e) {
|
|
|
25798
25798
|
h(y) || (y = s++, i[g] = y, $w(a, e.attributes, g)), o.push(y);
|
|
25799
25799
|
}
|
|
25800
25800
|
s + u >= S.SIXTY_FOUR_KILOBYTES && (t.push(
|
|
25801
|
-
new
|
|
25801
|
+
new ht({
|
|
25802
25802
|
attributes: a,
|
|
25803
25803
|
indices: o,
|
|
25804
25804
|
primitiveType: e.primitiveType,
|
|
@@ -25808,7 +25808,7 @@ He.fitToUnsignedShortIndices = function(e) {
|
|
|
25808
25808
|
), i = [], o = [], s = 0, a = If(e.attributes));
|
|
25809
25809
|
}
|
|
25810
25810
|
o.length !== 0 && t.push(
|
|
25811
|
-
new
|
|
25811
|
+
new ht({
|
|
25812
25812
|
attributes: a,
|
|
25813
25813
|
indices: o,
|
|
25814
25814
|
primitiveType: e.primitiveType,
|
|
@@ -25821,7 +25821,7 @@ He.fitToUnsignedShortIndices = function(e) {
|
|
|
25821
25821
|
return t;
|
|
25822
25822
|
};
|
|
25823
25823
|
const Rf = new f(), Zw = new ee();
|
|
25824
|
-
|
|
25824
|
+
Ge.projectTo2D = function(e, t, n, i, o) {
|
|
25825
25825
|
if (!h(e))
|
|
25826
25826
|
throw new C("geometry is required.");
|
|
25827
25827
|
if (!h(t))
|
|
@@ -25871,7 +25871,7 @@ const ac = {
|
|
|
25871
25871
|
high: 0,
|
|
25872
25872
|
low: 0
|
|
25873
25873
|
};
|
|
25874
|
-
|
|
25874
|
+
Ge.encodeAttribute = function(e, t, n, i) {
|
|
25875
25875
|
if (!h(e))
|
|
25876
25876
|
throw new C("geometry is required.");
|
|
25877
25877
|
if (!h(t))
|
|
@@ -25921,7 +25921,7 @@ function lc(e, t) {
|
|
|
25921
25921
|
}
|
|
25922
25922
|
}
|
|
25923
25923
|
const Os = new F(), vs = new L();
|
|
25924
|
-
|
|
25924
|
+
Ge.transformToWorldCoordinates = function(e) {
|
|
25925
25925
|
if (!h(e))
|
|
25926
25926
|
throw new C("instance is required.");
|
|
25927
25927
|
const t = e.modelMatrix;
|
|
@@ -25992,10 +25992,10 @@ function hc(e, t) {
|
|
|
25992
25992
|
let A = 0;
|
|
25993
25993
|
for (o = 0; o < n; ++o)
|
|
25994
25994
|
A += e[o][t].indices.length;
|
|
25995
|
-
const O =
|
|
25996
|
-
new
|
|
25995
|
+
const O = ht.computeNumberOfVertices(
|
|
25996
|
+
new ht({
|
|
25997
25997
|
attributes: d,
|
|
25998
|
-
primitiveType:
|
|
25998
|
+
primitiveType: He.POINTS
|
|
25999
25999
|
})
|
|
26000
26000
|
), I = St.createTypedArray(
|
|
26001
26001
|
O,
|
|
@@ -26003,10 +26003,10 @@ function hc(e, t) {
|
|
|
26003
26003
|
);
|
|
26004
26004
|
let B = 0, M = 0;
|
|
26005
26005
|
for (o = 0; o < n; ++o) {
|
|
26006
|
-
const
|
|
26006
|
+
const G = e[o][t].indices, P = G.length;
|
|
26007
26007
|
for (a = 0; a < P; ++a)
|
|
26008
|
-
I[B++] = M +
|
|
26009
|
-
M +=
|
|
26008
|
+
I[B++] = M + G[a];
|
|
26009
|
+
M += ht.computeNumberOfVertices(e[o][t]);
|
|
26010
26010
|
}
|
|
26011
26011
|
x = I;
|
|
26012
26012
|
}
|
|
@@ -26026,14 +26026,14 @@ function hc(e, t) {
|
|
|
26026
26026
|
) + D.radius;
|
|
26027
26027
|
A > T && (T = A);
|
|
26028
26028
|
}
|
|
26029
|
-
return new
|
|
26029
|
+
return new ht({
|
|
26030
26030
|
attributes: d,
|
|
26031
26031
|
indices: x,
|
|
26032
26032
|
primitiveType: u,
|
|
26033
26033
|
boundingSphere: h(E) ? new K(E, T) : void 0
|
|
26034
26034
|
});
|
|
26035
26035
|
}
|
|
26036
|
-
|
|
26036
|
+
Ge.combineInstances = function(e) {
|
|
26037
26037
|
if (!h(e) || e.length < 1)
|
|
26038
26038
|
throw new C(
|
|
26039
26039
|
"instances is required and must have length greater than zero."
|
|
@@ -26051,7 +26051,7 @@ He.combineInstances = function(e) {
|
|
|
26051
26051
|
)), o;
|
|
26052
26052
|
};
|
|
26053
26053
|
const gn = new f(), tr = new f(), Eo = new f(), To = new f();
|
|
26054
|
-
|
|
26054
|
+
Ge.computeNormal = function(e) {
|
|
26055
26055
|
if (!h(e))
|
|
26056
26056
|
throw new C("geometry is required.");
|
|
26057
26057
|
if (!h(e.attributes.position) || !h(e.attributes.position.values))
|
|
@@ -26064,7 +26064,7 @@ He.computeNormal = function(e) {
|
|
|
26064
26064
|
throw new C(
|
|
26065
26065
|
"geometry.indices length must be greater than 0 and be a multiple of 3."
|
|
26066
26066
|
);
|
|
26067
|
-
if (e.primitiveType !==
|
|
26067
|
+
if (e.primitiveType !== He.TRIANGLES)
|
|
26068
26068
|
throw new C(
|
|
26069
26069
|
"geometry.primitiveType must be PrimitiveType.TRIANGLES."
|
|
26070
26070
|
);
|
|
@@ -26115,7 +26115,7 @@ He.computeNormal = function(e) {
|
|
|
26115
26115
|
}), e;
|
|
26116
26116
|
};
|
|
26117
26117
|
const Jw = new f(), zf = new f(), eS = new f();
|
|
26118
|
-
|
|
26118
|
+
Ge.computeTangentAndBitangent = function(e) {
|
|
26119
26119
|
if (!h(e))
|
|
26120
26120
|
throw new C("geometry is required.");
|
|
26121
26121
|
const t = e.attributes, n = e.indices;
|
|
@@ -26133,7 +26133,7 @@ He.computeTangentAndBitangent = function(e) {
|
|
|
26133
26133
|
throw new C(
|
|
26134
26134
|
"geometry.indices length must be greater than 0 and be a multiple of 3."
|
|
26135
26135
|
);
|
|
26136
|
-
if (e.primitiveType !==
|
|
26136
|
+
if (e.primitiveType !== He.TRIANGLES)
|
|
26137
26137
|
throw new C(
|
|
26138
26138
|
"geometry.primitiveType must be PrimitiveType.TRIANGLES."
|
|
26139
26139
|
);
|
|
@@ -26145,7 +26145,7 @@ He.computeTangentAndBitangent = function(e) {
|
|
|
26145
26145
|
for (u = 0; u < c; u += 3) {
|
|
26146
26146
|
const E = n[u], T = n[u + 1], D = n[u + 2];
|
|
26147
26147
|
d = E * 3, p = T * 3, g = D * 3;
|
|
26148
|
-
const A = E * 2, O = T * 2, I = D * 2, B = i[d], M = i[d + 1],
|
|
26148
|
+
const A = E * 2, O = T * 2, I = D * 2, B = i[d], M = i[d + 1], G = i[d + 2], P = s[A], V = s[A + 1], k = s[O + 1] - V, H = s[I + 1] - V, j = 1 / ((s[O] - P) * H - (s[I] - P) * k), r = (H * (i[p] - B) - k * (i[g] - B)) * j, b = (H * (i[p + 1] - M) - k * (i[g + 1] - M)) * j, v = (H * (i[p + 2] - G) - k * (i[g + 2] - G)) * j;
|
|
26149
26149
|
l[d] += r, l[d + 1] += b, l[d + 2] += v, l[p] += r, l[p + 1] += b, l[p + 2] += v, l[g] += r, l[g + 1] += b, l[g + 2] += v;
|
|
26150
26150
|
}
|
|
26151
26151
|
const y = new Float32Array(a * 3), x = new Float32Array(a * 3);
|
|
@@ -26166,7 +26166,7 @@ He.computeTangentAndBitangent = function(e) {
|
|
|
26166
26166
|
};
|
|
26167
26167
|
const nr = new U(), An = new f(), Pf = new f(), Bf = new f();
|
|
26168
26168
|
let Is = new U();
|
|
26169
|
-
|
|
26169
|
+
Ge.compressVertices = function(e) {
|
|
26170
26170
|
if (!h(e))
|
|
26171
26171
|
throw new C("geometry is required.");
|
|
26172
26172
|
const t = e.attributes.extrudeDirection;
|
|
@@ -26174,7 +26174,7 @@ He.compressVertices = function(e) {
|
|
|
26174
26174
|
if (h(t)) {
|
|
26175
26175
|
const M = t.values;
|
|
26176
26176
|
i = M.length / 3;
|
|
26177
|
-
const
|
|
26177
|
+
const G = new Float32Array(i * 2);
|
|
26178
26178
|
let P = 0;
|
|
26179
26179
|
for (n = 0; n < i; ++n) {
|
|
26180
26180
|
if (f.fromArray(M, n * 3, An), f.equals(An, f.ZERO)) {
|
|
@@ -26185,12 +26185,12 @@ He.compressVertices = function(e) {
|
|
|
26185
26185
|
An,
|
|
26186
26186
|
65535,
|
|
26187
26187
|
Is
|
|
26188
|
-
),
|
|
26188
|
+
), G[P++] = Is.x, G[P++] = Is.y;
|
|
26189
26189
|
}
|
|
26190
26190
|
return e.attributes.compressedAttributes = new zt({
|
|
26191
26191
|
componentDatatype: oe.FLOAT,
|
|
26192
26192
|
componentsPerAttribute: 2,
|
|
26193
|
-
values:
|
|
26193
|
+
values: G
|
|
26194
26194
|
}), delete e.attributes.extrudeDirection, e;
|
|
26195
26195
|
}
|
|
26196
26196
|
const o = e.attributes.normal, s = e.attributes.st, a = h(o), c = h(s);
|
|
@@ -26222,7 +26222,7 @@ He.compressVertices = function(e) {
|
|
|
26222
26222
|
function tS(e) {
|
|
26223
26223
|
if (h(e.indices))
|
|
26224
26224
|
return e;
|
|
26225
|
-
const t =
|
|
26225
|
+
const t = ht.computeNumberOfVertices(e);
|
|
26226
26226
|
if (t < 3)
|
|
26227
26227
|
throw new C("The number of vertices must be at least three.");
|
|
26228
26228
|
if (t % 3 !== 0)
|
|
@@ -26238,7 +26238,7 @@ function tS(e) {
|
|
|
26238
26238
|
return e.indices = n, e;
|
|
26239
26239
|
}
|
|
26240
26240
|
function nS(e) {
|
|
26241
|
-
const t =
|
|
26241
|
+
const t = ht.computeNumberOfVertices(e);
|
|
26242
26242
|
if (t < 3)
|
|
26243
26243
|
throw new C("The number of vertices must be at least three.");
|
|
26244
26244
|
const n = St.createTypedArray(
|
|
@@ -26249,10 +26249,10 @@ function nS(e) {
|
|
|
26249
26249
|
let i = 3;
|
|
26250
26250
|
for (let o = 3; o < t; ++o)
|
|
26251
26251
|
n[i++] = o - 1, n[i++] = 0, n[i++] = o;
|
|
26252
|
-
return e.indices = n, e.primitiveType =
|
|
26252
|
+
return e.indices = n, e.primitiveType = He.TRIANGLES, e;
|
|
26253
26253
|
}
|
|
26254
26254
|
function iS(e) {
|
|
26255
|
-
const t =
|
|
26255
|
+
const t = ht.computeNumberOfVertices(e);
|
|
26256
26256
|
if (t < 3)
|
|
26257
26257
|
throw new C("The number of vertices must be at least 3.");
|
|
26258
26258
|
const n = St.createTypedArray(
|
|
@@ -26263,12 +26263,12 @@ function iS(e) {
|
|
|
26263
26263
|
let i = 6;
|
|
26264
26264
|
for (let o = 3; o < t - 1; o += 2)
|
|
26265
26265
|
n[i++] = o, n[i++] = o - 1, n[i++] = o + 1, o + 2 < t && (n[i++] = o, n[i++] = o + 1, n[i++] = o + 2);
|
|
26266
|
-
return e.indices = n, e.primitiveType =
|
|
26266
|
+
return e.indices = n, e.primitiveType = He.TRIANGLES, e;
|
|
26267
26267
|
}
|
|
26268
26268
|
function oS(e) {
|
|
26269
26269
|
if (h(e.indices))
|
|
26270
26270
|
return e;
|
|
26271
|
-
const t =
|
|
26271
|
+
const t = ht.computeNumberOfVertices(e);
|
|
26272
26272
|
if (t < 2)
|
|
26273
26273
|
throw new C("The number of vertices must be at least two.");
|
|
26274
26274
|
if (t % 2 !== 0)
|
|
@@ -26282,7 +26282,7 @@ function oS(e) {
|
|
|
26282
26282
|
return e.indices = n, e;
|
|
26283
26283
|
}
|
|
26284
26284
|
function rS(e) {
|
|
26285
|
-
const t =
|
|
26285
|
+
const t = ht.computeNumberOfVertices(e);
|
|
26286
26286
|
if (t < 2)
|
|
26287
26287
|
throw new C("The number of vertices must be at least two.");
|
|
26288
26288
|
const n = St.createTypedArray(
|
|
@@ -26293,10 +26293,10 @@ function rS(e) {
|
|
|
26293
26293
|
let i = 2;
|
|
26294
26294
|
for (let o = 2; o < t; ++o)
|
|
26295
26295
|
n[i++] = o - 1, n[i++] = o;
|
|
26296
|
-
return e.indices = n, e.primitiveType =
|
|
26296
|
+
return e.indices = n, e.primitiveType = He.LINES, e;
|
|
26297
26297
|
}
|
|
26298
26298
|
function sS(e) {
|
|
26299
|
-
const t =
|
|
26299
|
+
const t = ht.computeNumberOfVertices(e);
|
|
26300
26300
|
if (t < 2)
|
|
26301
26301
|
throw new C("The number of vertices must be at least two.");
|
|
26302
26302
|
const n = St.createTypedArray(
|
|
@@ -26307,21 +26307,21 @@ function sS(e) {
|
|
|
26307
26307
|
let i = 2;
|
|
26308
26308
|
for (let o = 2; o < t; ++o)
|
|
26309
26309
|
n[i++] = o - 1, n[i++] = o;
|
|
26310
|
-
return n[i++] = t - 1, n[i] = 0, e.indices = n, e.primitiveType =
|
|
26310
|
+
return n[i++] = t - 1, n[i] = 0, e.indices = n, e.primitiveType = He.LINES, e;
|
|
26311
26311
|
}
|
|
26312
26312
|
function aS(e) {
|
|
26313
26313
|
switch (e.primitiveType) {
|
|
26314
|
-
case
|
|
26314
|
+
case He.TRIANGLE_FAN:
|
|
26315
26315
|
return nS(e);
|
|
26316
|
-
case
|
|
26316
|
+
case He.TRIANGLE_STRIP:
|
|
26317
26317
|
return iS(e);
|
|
26318
|
-
case
|
|
26318
|
+
case He.TRIANGLES:
|
|
26319
26319
|
return tS(e);
|
|
26320
|
-
case
|
|
26320
|
+
case He.LINE_STRIP:
|
|
26321
26321
|
return rS(e);
|
|
26322
|
-
case
|
|
26322
|
+
case He.LINE_LOOP:
|
|
26323
26323
|
return sS(e);
|
|
26324
|
-
case
|
|
26324
|
+
case He.LINES:
|
|
26325
26325
|
return oS(e);
|
|
26326
26326
|
}
|
|
26327
26327
|
return e;
|
|
@@ -26380,7 +26380,7 @@ function Ff(e, t) {
|
|
|
26380
26380
|
s.values
|
|
26381
26381
|
);
|
|
26382
26382
|
}
|
|
26383
|
-
const i =
|
|
26383
|
+
const i = ht.computeNumberOfVertices(e);
|
|
26384
26384
|
return e.indices = St.createTypedArray(
|
|
26385
26385
|
i,
|
|
26386
26386
|
e.indices
|
|
@@ -26400,7 +26400,7 @@ function Mo(e) {
|
|
|
26400
26400
|
values: []
|
|
26401
26401
|
});
|
|
26402
26402
|
}
|
|
26403
|
-
return new
|
|
26403
|
+
return new ht({
|
|
26404
26404
|
attributes: n,
|
|
26405
26405
|
indices: [],
|
|
26406
26406
|
primitiveType: e.primitiveType
|
|
@@ -26465,9 +26465,9 @@ function Rs(e, t, n, i, o, s, a, c, l, u, d, p, g, y, x, E) {
|
|
|
26465
26465
|
), h(u)) {
|
|
26466
26466
|
const I = f.fromArray(u, e * 3, gr), B = f.fromArray(u, t * 3, rl), M = f.fromArray(u, n * 3, sl);
|
|
26467
26467
|
f.multiplyByScalar(I, O.x, I), f.multiplyByScalar(B, O.y, B), f.multiplyByScalar(M, O.z, M);
|
|
26468
|
-
let
|
|
26469
|
-
!f.equals(I, f.ZERO) || !f.equals(B, f.ZERO) || !f.equals(M, f.ZERO) ? (
|
|
26470
|
-
|
|
26468
|
+
let G;
|
|
26469
|
+
!f.equals(I, f.ZERO) || !f.equals(B, f.ZERO) || !f.equals(M, f.ZERO) ? (G = f.add(I, B, I), f.add(G, M, G), f.normalize(G, G)) : (G = gr, G.x = 0, G.y = 0, G.z = 0), f.pack(
|
|
26470
|
+
G,
|
|
26471
26471
|
p.extrudeDirection.values,
|
|
26472
26472
|
E * 3
|
|
26473
26473
|
);
|
|
@@ -26583,8 +26583,8 @@ const pS = {
|
|
|
26583
26583
|
};
|
|
26584
26584
|
function Lf(e) {
|
|
26585
26585
|
const t = e.geometry, n = t.attributes, i = n.position.values, o = h(n.normal) ? n.normal.values : void 0, s = h(n.bitangent) ? n.bitangent.values : void 0, a = h(n.tangent) ? n.tangent.values : void 0, c = h(n.st) ? n.st.values : void 0, l = h(n.extrudeDirection) ? n.extrudeDirection.values : void 0, u = h(n.applyOffset) ? n.applyOffset.values : void 0, d = t.indices, p = [];
|
|
26586
|
-
for (const
|
|
26587
|
-
n.hasOwnProperty(
|
|
26586
|
+
for (const G in n)
|
|
26587
|
+
n.hasOwnProperty(G) && !pS[G] && h(n[G]) && p.push(G);
|
|
26588
26588
|
const g = p.length, y = Mo(t), x = Mo(t);
|
|
26589
26589
|
let E, T, D, A, O;
|
|
26590
26590
|
const I = [];
|
|
@@ -26594,9 +26594,9 @@ function Lf(e) {
|
|
|
26594
26594
|
I[O] = -1, B[O] = -1;
|
|
26595
26595
|
const M = d.length;
|
|
26596
26596
|
for (O = 0; O < M; O += 3) {
|
|
26597
|
-
const
|
|
26598
|
-
let k = f.fromArray(i,
|
|
26599
|
-
const r = lS(k,
|
|
26597
|
+
const G = d[O], P = d[O + 1], V = d[O + 2];
|
|
26598
|
+
let k = f.fromArray(i, G * 3), H = f.fromArray(i, P * 3), j = f.fromArray(i, V * 3);
|
|
26599
|
+
const r = lS(k, H, j);
|
|
26600
26600
|
if (h(r) && r.positions.length > 3) {
|
|
26601
26601
|
const b = r.positions, v = r.indices, z = v.length;
|
|
26602
26602
|
for (let q = 0; q < z; ++q) {
|
|
@@ -26609,7 +26609,7 @@ function Lf(e) {
|
|
|
26609
26609
|
W < 3 ? O + W : -1,
|
|
26610
26610
|
$
|
|
26611
26611
|
), Rs(
|
|
26612
|
-
|
|
26612
|
+
G,
|
|
26613
26613
|
P,
|
|
26614
26614
|
V,
|
|
26615
26615
|
$,
|
|
@@ -26628,7 +26628,7 @@ function Lf(e) {
|
|
|
26628
26628
|
);
|
|
26629
26629
|
}
|
|
26630
26630
|
} else
|
|
26631
|
-
h(r) && (k = r.positions[0],
|
|
26631
|
+
h(r) && (k = r.positions[0], H = r.positions[1], j = r.positions[2]), k.y < 0 ? (E = x.attributes, T = x.indices, D = I) : (E = y.attributes, T = y.indices, D = B), A = Vn(
|
|
26632
26632
|
E,
|
|
26633
26633
|
T,
|
|
26634
26634
|
D,
|
|
@@ -26636,7 +26636,7 @@ function Lf(e) {
|
|
|
26636
26636
|
O,
|
|
26637
26637
|
k
|
|
26638
26638
|
), Rs(
|
|
26639
|
-
|
|
26639
|
+
G,
|
|
26640
26640
|
P,
|
|
26641
26641
|
V,
|
|
26642
26642
|
k,
|
|
@@ -26658,12 +26658,12 @@ function Lf(e) {
|
|
|
26658
26658
|
D,
|
|
26659
26659
|
d,
|
|
26660
26660
|
O + 1,
|
|
26661
|
-
|
|
26661
|
+
H
|
|
26662
26662
|
), Rs(
|
|
26663
|
-
|
|
26663
|
+
G,
|
|
26664
26664
|
P,
|
|
26665
26665
|
V,
|
|
26666
|
-
|
|
26666
|
+
H,
|
|
26667
26667
|
i,
|
|
26668
26668
|
o,
|
|
26669
26669
|
a,
|
|
@@ -26684,7 +26684,7 @@ function Lf(e) {
|
|
|
26684
26684
|
O + 2,
|
|
26685
26685
|
j
|
|
26686
26686
|
), Rs(
|
|
26687
|
-
|
|
26687
|
+
G,
|
|
26688
26688
|
P,
|
|
26689
26689
|
V,
|
|
26690
26690
|
j,
|
|
@@ -26724,13 +26724,13 @@ function Mf(e) {
|
|
|
26724
26724
|
let T;
|
|
26725
26725
|
Math.abs(x.y) < S.EPSILON6 && (x.y < 0 ? x.y = -S.EPSILON6 : x.y = S.EPSILON6), Math.abs(E.y) < S.EPSILON6 && (E.y < 0 ? E.y = -S.EPSILON6 : E.y = S.EPSILON6);
|
|
26726
26726
|
let D = a.attributes, A = a.indices, O = p, I = c.attributes, B = c.indices, M = d;
|
|
26727
|
-
const
|
|
26727
|
+
const G = Be.lineSegmentPlane(
|
|
26728
26728
|
x,
|
|
26729
26729
|
E,
|
|
26730
26730
|
Jp,
|
|
26731
26731
|
sl
|
|
26732
26732
|
);
|
|
26733
|
-
if (h(
|
|
26733
|
+
if (h(G)) {
|
|
26734
26734
|
const P = f.multiplyByScalar(
|
|
26735
26735
|
f.UNIT_Y,
|
|
26736
26736
|
5 * S.EPSILON9,
|
|
@@ -26738,7 +26738,7 @@ function Mf(e) {
|
|
|
26738
26738
|
);
|
|
26739
26739
|
x.y < 0 && (f.negate(P, P), D = c.attributes, A = c.indices, O = d, I = a.attributes, B = a.indices, M = p);
|
|
26740
26740
|
const V = f.add(
|
|
26741
|
-
|
|
26741
|
+
G,
|
|
26742
26742
|
P,
|
|
26743
26743
|
_S
|
|
26744
26744
|
);
|
|
@@ -26772,7 +26772,7 @@ function Mf(e) {
|
|
|
26772
26772
|
T,
|
|
26773
26773
|
D,
|
|
26774
26774
|
o
|
|
26775
|
-
), f.negate(P, P), f.add(
|
|
26775
|
+
), f.negate(P, P), f.add(G, P, V), T = Vn(
|
|
26776
26776
|
I,
|
|
26777
26777
|
B,
|
|
26778
26778
|
M,
|
|
@@ -26874,7 +26874,7 @@ function TS(e) {
|
|
|
26874
26874
|
if (Math.abs(O.y) < zs)
|
|
26875
26875
|
for (O.y = zs * (A.y < 0 ? -1 : 1), i[(p + 2) * 3 + 1] = O.y, i[(p + 3) * 3 + 1] = O.y, g = T * 3; g < T * 3 + 4 * 3; g += 3)
|
|
26876
26876
|
s[g] = i[(p + 2) * 3], s[g + 1] = i[(p + 2) * 3 + 1], s[g + 2] = i[(p + 2) * 3 + 2];
|
|
26877
|
-
let I = u.attributes, B = u.indices, M = d.attributes,
|
|
26877
|
+
let I = u.attributes, B = u.indices, M = d.attributes, G = d.indices;
|
|
26878
26878
|
const P = Be.lineSegmentPlane(
|
|
26879
26879
|
A,
|
|
26880
26880
|
O,
|
|
@@ -26888,7 +26888,7 @@ function TS(e) {
|
|
|
26888
26888
|
ES,
|
|
26889
26889
|
xS
|
|
26890
26890
|
);
|
|
26891
|
-
A.y < 0 && (f.negate(V, V), I = d.attributes, B = d.indices, M = u.attributes,
|
|
26891
|
+
A.y < 0 && (f.negate(V, V), I = d.attributes, B = d.indices, M = u.attributes, G = u.indices);
|
|
26892
26892
|
const k = f.add(
|
|
26893
26893
|
P,
|
|
26894
26894
|
V,
|
|
@@ -26959,11 +26959,11 @@ function TS(e) {
|
|
|
26959
26959
|
s[D * 3 + 4],
|
|
26960
26960
|
s[D * 3 + 5]
|
|
26961
26961
|
);
|
|
26962
|
-
const
|
|
26962
|
+
const H = U.fromArray(
|
|
26963
26963
|
a,
|
|
26964
26964
|
T * 2,
|
|
26965
26965
|
Uf
|
|
26966
|
-
), j = Math.abs(
|
|
26966
|
+
), j = Math.abs(H.y);
|
|
26967
26967
|
I.expandAndWidth.values.push(-1, j, 1, j), I.expandAndWidth.values.push(-1, -j, 1, -j), M.expandAndWidth.values.push(-1, j, 1, j), M.expandAndWidth.values.push(-1, -j, 1, -j);
|
|
26968
26968
|
let r = f.magnitudeSquared(
|
|
26969
26969
|
f.subtract(P, A, al)
|
|
@@ -26988,7 +26988,7 @@ function TS(e) {
|
|
|
26988
26988
|
for (I.st.values.push(z, b.y), I.st.values.push(z, v.y), M.st.values.push(z, b.y), M.st.values.push(z, v.y), g = D * 2; g < D * 2 + 2 * 2; ++g)
|
|
26989
26989
|
M.st.values.push(c[g]);
|
|
26990
26990
|
}
|
|
26991
|
-
y = I.position.values.length / 3 - 4, B.push(y, y + 2, y + 1), B.push(y + 1, y + 2, y + 3), y = M.position.values.length / 3 - 4,
|
|
26991
|
+
y = I.position.values.length / 3 - 4, B.push(y, y + 2, y + 1), B.push(y + 1, y + 2, y + 3), y = M.position.values.length / 3 - 4, G.push(y, y + 2, y + 1), G.push(y + 1, y + 2, y + 3);
|
|
26992
26992
|
} else {
|
|
26993
26993
|
let V, k;
|
|
26994
26994
|
for (A.y < 0 ? (V = d.attributes, k = d.indices) : (V = u.attributes, k = u.indices), V.position.values.push(A.x, A.y, A.z), V.position.values.push(A.x, A.y, A.z), V.position.values.push(O.x, O.y, O.z), V.position.values.push(O.x, O.y, O.z), g = p * 3; g < p * 3 + 4 * 3; ++g)
|
|
@@ -27003,7 +27003,7 @@ function TS(e) {
|
|
|
27003
27003
|
}
|
|
27004
27004
|
x && (Vf(d), Vf(u)), Ql(e, d, u);
|
|
27005
27005
|
}
|
|
27006
|
-
|
|
27006
|
+
Ge.splitLongitude = function(e) {
|
|
27007
27007
|
if (!h(e))
|
|
27008
27008
|
throw new C("instance is required.");
|
|
27009
27009
|
const t = e.geometry, n = t.boundingSphere;
|
|
@@ -27022,7 +27022,7 @@ He.splitLongitude = function(e) {
|
|
|
27022
27022
|
break;
|
|
27023
27023
|
}
|
|
27024
27024
|
else
|
|
27025
|
-
aS(t), t.primitiveType ===
|
|
27025
|
+
aS(t), t.primitiveType === He.TRIANGLES ? Lf(e) : t.primitiveType === He.LINES && Mf(e);
|
|
27026
27026
|
return e;
|
|
27027
27027
|
};
|
|
27028
27028
|
function Zt(e) {
|
|
@@ -27080,7 +27080,7 @@ function bS(e, t, n) {
|
|
|
27080
27080
|
}
|
|
27081
27081
|
if (i)
|
|
27082
27082
|
for (s = 0; s < o; ++s)
|
|
27083
|
-
h(e[s].geometry) &&
|
|
27083
|
+
h(e[s].geometry) && Ge.transformToWorldCoordinates(e[s]);
|
|
27084
27084
|
else
|
|
27085
27085
|
F.multiplyTransformation(
|
|
27086
27086
|
t,
|
|
@@ -27121,27 +27121,27 @@ function SS(e) {
|
|
|
27121
27121
|
);
|
|
27122
27122
|
if (bS(t, c, o), !o)
|
|
27123
27123
|
for (l = 0; l < p; ++l)
|
|
27124
|
-
h(t[l].geometry) &&
|
|
27124
|
+
h(t[l].geometry) && Ge.splitLongitude(t[l]);
|
|
27125
27125
|
if (wS(t), s)
|
|
27126
27126
|
for (l = 0; l < p; ++l) {
|
|
27127
27127
|
const y = t[l];
|
|
27128
|
-
h(y.geometry) ? (
|
|
27128
|
+
h(y.geometry) ? (Ge.reorderForPostVertexCache(y.geometry), Ge.reorderForPreVertexCache(y.geometry)) : h(y.westHemisphereGeometry) && h(y.eastHemisphereGeometry) && (Ge.reorderForPostVertexCache(
|
|
27129
27129
|
y.westHemisphereGeometry
|
|
27130
|
-
),
|
|
27130
|
+
), Ge.reorderForPreVertexCache(
|
|
27131
27131
|
y.westHemisphereGeometry
|
|
27132
|
-
),
|
|
27132
|
+
), Ge.reorderForPostVertexCache(
|
|
27133
27133
|
y.eastHemisphereGeometry
|
|
27134
|
-
),
|
|
27134
|
+
), Ge.reorderForPreVertexCache(
|
|
27135
27135
|
y.eastHemisphereGeometry
|
|
27136
27136
|
));
|
|
27137
27137
|
}
|
|
27138
|
-
let g =
|
|
27138
|
+
let g = Ge.combineInstances(t);
|
|
27139
27139
|
for (p = g.length, l = 0; l < p; ++l) {
|
|
27140
27140
|
u = g[l];
|
|
27141
27141
|
const y = u.attributes;
|
|
27142
27142
|
if (o)
|
|
27143
27143
|
for (const x in y)
|
|
27144
|
-
y.hasOwnProperty(x) && y[x].componentDatatype === oe.DOUBLE &&
|
|
27144
|
+
y.hasOwnProperty(x) && y[x].componentDatatype === oe.DOUBLE && Ge.encodeAttribute(
|
|
27145
27145
|
u,
|
|
27146
27146
|
x,
|
|
27147
27147
|
`${x}3DHigh`,
|
|
@@ -27151,7 +27151,7 @@ function SS(e) {
|
|
|
27151
27151
|
for (const x in y)
|
|
27152
27152
|
if (y.hasOwnProperty(x) && y[x].componentDatatype === oe.DOUBLE) {
|
|
27153
27153
|
const E = `${x}3D`, T = `${x}2D`;
|
|
27154
|
-
|
|
27154
|
+
Ge.projectTo2D(
|
|
27155
27155
|
u,
|
|
27156
27156
|
x,
|
|
27157
27157
|
E,
|
|
@@ -27159,25 +27159,25 @@ function SS(e) {
|
|
|
27159
27159
|
n
|
|
27160
27160
|
), h(u.boundingSphere) && x === "position" && (u.boundingSphereCV = K.fromVertices(
|
|
27161
27161
|
u.attributes.position2D.values
|
|
27162
|
-
)),
|
|
27162
|
+
)), Ge.encodeAttribute(
|
|
27163
27163
|
u,
|
|
27164
27164
|
E,
|
|
27165
27165
|
`${E}High`,
|
|
27166
27166
|
`${E}Low`
|
|
27167
|
-
),
|
|
27167
|
+
), Ge.encodeAttribute(
|
|
27168
27168
|
u,
|
|
27169
27169
|
T,
|
|
27170
27170
|
`${T}High`,
|
|
27171
27171
|
`${T}Low`
|
|
27172
27172
|
);
|
|
27173
27173
|
}
|
|
27174
|
-
a &&
|
|
27174
|
+
a && Ge.compressVertices(u);
|
|
27175
27175
|
}
|
|
27176
27176
|
if (!i) {
|
|
27177
27177
|
let y = [];
|
|
27178
27178
|
for (p = g.length, l = 0; l < p; ++l)
|
|
27179
27179
|
u = g[l], y = y.concat(
|
|
27180
|
-
|
|
27180
|
+
Ge.fitToUnsignedShortIndices(u)
|
|
27181
27181
|
);
|
|
27182
27182
|
g = y;
|
|
27183
27183
|
}
|
|
@@ -27223,7 +27223,7 @@ Pn.combineGeometry = function(e) {
|
|
|
27223
27223
|
let t, n;
|
|
27224
27224
|
const i = e.instances, o = i.length;
|
|
27225
27225
|
let s, a, c = !1;
|
|
27226
|
-
o > 0 && (t = SS(e), t.length > 0 && (n =
|
|
27226
|
+
o > 0 && (t = SS(e), t.length > 0 && (n = Ge.createAttributeLocations(
|
|
27227
27227
|
t[0]
|
|
27228
27228
|
), e.createPickOffsets && (s = AS(i, t))), h(i[0].attributes) && h(i[0].attributes.offset) && (a = new Array(o), c = !0));
|
|
27229
27229
|
const l = new Array(o), u = new Array(o);
|
|
@@ -27335,14 +27335,14 @@ Pn.unpackCreateGeometryResults = function(e) {
|
|
|
27335
27335
|
for (i = 0; i < O; i++) {
|
|
27336
27336
|
const B = t[n[a++]], M = n[a++];
|
|
27337
27337
|
D = n[a++];
|
|
27338
|
-
const
|
|
27338
|
+
const G = n[a++] !== 0;
|
|
27339
27339
|
E = n[a++], T = oe.createTypedArray(M, E);
|
|
27340
27340
|
for (let P = 0; P < E; P++)
|
|
27341
27341
|
T[P] = n[a++];
|
|
27342
27342
|
A[B] = new zt({
|
|
27343
27343
|
componentDatatype: M,
|
|
27344
27344
|
componentsPerAttribute: D,
|
|
27345
|
-
normalize:
|
|
27345
|
+
normalize: G,
|
|
27346
27346
|
values: T
|
|
27347
27347
|
});
|
|
27348
27348
|
}
|
|
@@ -27352,7 +27352,7 @@ Pn.unpackCreateGeometryResults = function(e) {
|
|
|
27352
27352
|
for (I = St.createTypedArray(B, E), i = 0; i < E; i++)
|
|
27353
27353
|
I[i] = n[a++];
|
|
27354
27354
|
}
|
|
27355
|
-
o[s++] = new
|
|
27355
|
+
o[s++] = new ht({
|
|
27356
27356
|
primitiveType: l,
|
|
27357
27357
|
geometryType: u,
|
|
27358
27358
|
boundingSphere: p,
|
|
@@ -27452,7 +27452,7 @@ function qf(e) {
|
|
|
27452
27452
|
}
|
|
27453
27453
|
return i;
|
|
27454
27454
|
}
|
|
27455
|
-
function
|
|
27455
|
+
function Gf(e) {
|
|
27456
27456
|
const t = new Array(e[0]);
|
|
27457
27457
|
let n = 0, i = 1;
|
|
27458
27458
|
for (; i < e.length; )
|
|
@@ -27484,8 +27484,8 @@ Pn.unpackCombineGeometryResults = function(e) {
|
|
|
27484
27484
|
modelMatrix: e.modelMatrix,
|
|
27485
27485
|
pickOffsets: e.pickOffsets,
|
|
27486
27486
|
offsetInstanceExtend: e.offsetInstanceExtend,
|
|
27487
|
-
boundingSpheres:
|
|
27488
|
-
boundingSpheresCV:
|
|
27487
|
+
boundingSpheres: Gf(e.boundingSpheres),
|
|
27488
|
+
boundingSpheresCV: Gf(e.boundingSpheresCV)
|
|
27489
27489
|
};
|
|
27490
27490
|
};
|
|
27491
27491
|
const zS = {
|
|
@@ -27755,8 +27755,8 @@ function FS(e, t) {
|
|
|
27755
27755
|
for (y = 0; y < o; ++y) {
|
|
27756
27756
|
const A = i[y];
|
|
27757
27757
|
g = A.attributes;
|
|
27758
|
-
for (let
|
|
27759
|
-
x = s[
|
|
27758
|
+
for (let G = 0; G < a; ++G) {
|
|
27759
|
+
x = s[G], E = g[x];
|
|
27760
27760
|
const P = im(E.value), V = l[x];
|
|
27761
27761
|
D.setBatchedAttribute(y, V, P);
|
|
27762
27762
|
}
|
|
@@ -27789,7 +27789,7 @@ function MS(e) {
|
|
|
27789
27789
|
const o = e.indices;
|
|
27790
27790
|
Array.isArray(o) ? i = o.slice(0) : i = new o.constructor(o);
|
|
27791
27791
|
}
|
|
27792
|
-
return new
|
|
27792
|
+
return new ht({
|
|
27793
27793
|
attributes: n,
|
|
27794
27794
|
indices: i,
|
|
27795
27795
|
primitiveType: e.primitiveType,
|
|
@@ -27894,7 +27894,7 @@ De._updateColorAttribute = function(e, t, n) {
|
|
|
27894
27894
|
"$1czm_batchTable_color(batchId)$2"
|
|
27895
27895
|
), i;
|
|
27896
27896
|
};
|
|
27897
|
-
function
|
|
27897
|
+
function Hf(e) {
|
|
27898
27898
|
return `${ye.replaceMain(e, "czm_non_pick_main")}
|
|
27899
27899
|
out vec4 v_pickColor;
|
|
27900
27900
|
void main()
|
|
@@ -28059,7 +28059,7 @@ function Yf(e, t) {
|
|
|
28059
28059
|
`Appearance/Geometry mismatch. The appearance requires vertex shader attribute input '${i}', which was not computed as part of the Geometry. Use the appearance's vertexFormat property when constructing the geometry.`
|
|
28060
28060
|
);
|
|
28061
28061
|
}
|
|
28062
|
-
function
|
|
28062
|
+
function GS(e, t) {
|
|
28063
28063
|
return function() {
|
|
28064
28064
|
return e[t];
|
|
28065
28065
|
};
|
|
@@ -28069,7 +28069,7 @@ const pc = Math.max(
|
|
|
28069
28069
|
1
|
|
28070
28070
|
);
|
|
28071
28071
|
let Ps;
|
|
28072
|
-
const
|
|
28072
|
+
const HS = new Tt("combineGeometry");
|
|
28073
28073
|
function WS(e, t) {
|
|
28074
28074
|
let n, i, o, s;
|
|
28075
28075
|
const a = e._instanceIds;
|
|
@@ -28123,7 +28123,7 @@ function WS(e, t) {
|
|
|
28123
28123
|
} else if (e._state === Ct.CREATED) {
|
|
28124
28124
|
const c = [];
|
|
28125
28125
|
n = Array.isArray(e.geometryInstances) ? e.geometryInstances : [e.geometryInstances];
|
|
28126
|
-
const l = t.scene3DOnly, u = t.mapProjection, d =
|
|
28126
|
+
const l = t.scene3DOnly, u = t.mapProjection, d = HS.scheduleTask(
|
|
28127
28127
|
Pn.packCombineGeometryParameters(
|
|
28128
28128
|
{
|
|
28129
28129
|
createGeometryResults: e._createGeometryResults,
|
|
@@ -28358,9 +28358,9 @@ function QS(e, t, n) {
|
|
|
28358
28358
|
e,
|
|
28359
28359
|
s,
|
|
28360
28360
|
t.scene3DOnly
|
|
28361
|
-
), s =
|
|
28361
|
+
), s = Hf(s), s = De._updateColorAttribute(e, s, !1), s = jf(e, s), s = De._modifyShaderPosition(e, s, t.scene3DOnly);
|
|
28362
28362
|
let a = n.getFragmentShaderSource();
|
|
28363
|
-
a = Wf(a), e._sp =
|
|
28363
|
+
a = Wf(a), e._sp = it.replaceCache({
|
|
28364
28364
|
context: i,
|
|
28365
28365
|
shaderProgram: e._sp,
|
|
28366
28366
|
vertexShaderSource: s,
|
|
@@ -28372,7 +28372,7 @@ function QS(e, t, n) {
|
|
|
28372
28372
|
e,
|
|
28373
28373
|
s,
|
|
28374
28374
|
t.scene3DOnly
|
|
28375
|
-
), s =
|
|
28375
|
+
), s = Hf(s), s = De._updateColorAttribute(e, s, !0), s = jf(e, s), s = De._modifyShaderPosition(e, s, t.scene3DOnly), s = VS(s), a = e._depthFailAppearance.getFragmentShaderSource(), a = Wf(a), a = qS(a), e._spDepthFail = it.replaceCache({
|
|
28376
28376
|
context: i,
|
|
28377
28377
|
shaderProgram: e._spDepthFail,
|
|
28378
28378
|
vertexShaderSource: s,
|
|
@@ -28390,7 +28390,7 @@ function Kf(e, t, n, i) {
|
|
|
28390
28390
|
throw new C(
|
|
28391
28391
|
`Appearance and material have a uniform with the same name: ${l}`
|
|
28392
28392
|
);
|
|
28393
|
-
s[l] =
|
|
28393
|
+
s[l] = GS(
|
|
28394
28394
|
a,
|
|
28395
28395
|
l
|
|
28396
28396
|
);
|
|
@@ -28505,7 +28505,7 @@ De.prototype.update = function(e) {
|
|
|
28505
28505
|
const t = e.context;
|
|
28506
28506
|
if (h(this._batchTable) || FS(this, t), this._batchTable.attributes.length > 0) {
|
|
28507
28507
|
if (Ee.maximumVertexTextureImageUnits === 0)
|
|
28508
|
-
throw new
|
|
28508
|
+
throw new ft(
|
|
28509
28509
|
"Vertex texture fetch support is required to render primitives with per-instance attributes. The maximum number of vertex texture image units must be greater than zero."
|
|
28510
28510
|
);
|
|
28511
28511
|
this._batchTable.update(e);
|
|
@@ -29136,8 +29136,8 @@ function m1(e, t, n, i, o, s) {
|
|
|
29136
29136
|
B.x = D, B.y = O, B.z = 0, F.multiplyByPoint(l, B, B);
|
|
29137
29137
|
const M = o;
|
|
29138
29138
|
M.x = A, M.y = O, M.z = 0, F.multiplyByPoint(l, M, M), f.subtract(M, B, o);
|
|
29139
|
-
const
|
|
29140
|
-
|
|
29139
|
+
const G = s;
|
|
29140
|
+
G.x = D, G.y = I, G.z = 0, F.multiplyByPoint(l, G, G), f.subtract(G, B, s);
|
|
29141
29141
|
}
|
|
29142
29142
|
const _1 = new f(), g1 = new f(), y1 = new je();
|
|
29143
29143
|
Lt.getPlanarTextureCoordinateAttributes = function(e, t, n, i, o) {
|
|
@@ -29688,7 +29688,7 @@ function A1(e, t) {
|
|
|
29688
29688
|
s,
|
|
29689
29689
|
e.appearance
|
|
29690
29690
|
);
|
|
29691
|
-
if (e._spStencil =
|
|
29691
|
+
if (e._spStencil = it.replaceCache({
|
|
29692
29692
|
context: n,
|
|
29693
29693
|
shaderProgram: e._spStencil,
|
|
29694
29694
|
vertexShaderSource: l,
|
|
@@ -29703,7 +29703,7 @@ function A1(e, t) {
|
|
|
29703
29703
|
!1,
|
|
29704
29704
|
t.mapProjection
|
|
29705
29705
|
);
|
|
29706
|
-
if (e._spPick =
|
|
29706
|
+
if (e._spPick = it.replaceCache({
|
|
29707
29707
|
context: n,
|
|
29708
29708
|
shaderProgram: e._spPick,
|
|
29709
29709
|
vertexShaderSource: T,
|
|
@@ -29734,7 +29734,7 @@ function A1(e, t) {
|
|
|
29734
29734
|
e._spPick2D = D;
|
|
29735
29735
|
}
|
|
29736
29736
|
} else
|
|
29737
|
-
e._spPick =
|
|
29737
|
+
e._spPick = it.fromCache({
|
|
29738
29738
|
context: n,
|
|
29739
29739
|
vertexShaderSource: l,
|
|
29740
29740
|
fragmentShaderSource: u,
|
|
@@ -29743,7 +29743,7 @@ function A1(e, t) {
|
|
|
29743
29743
|
o = De._appendShowToShader(i, o), l = new ye({
|
|
29744
29744
|
defines: [c],
|
|
29745
29745
|
sources: [o]
|
|
29746
|
-
}), e._sp =
|
|
29746
|
+
}), e._sp = it.replaceCache({
|
|
29747
29747
|
context: n,
|
|
29748
29748
|
shaderProgram: e._sp,
|
|
29749
29749
|
vertexShaderSource: l,
|
|
@@ -29756,7 +29756,7 @@ function A1(e, t) {
|
|
|
29756
29756
|
!1,
|
|
29757
29757
|
t.mapProjection
|
|
29758
29758
|
);
|
|
29759
|
-
if (e._spColor =
|
|
29759
|
+
if (e._spColor = it.replaceCache({
|
|
29760
29760
|
context: n,
|
|
29761
29761
|
shaderProgram: e._spColor,
|
|
29762
29762
|
vertexShaderSource: y,
|
|
@@ -30539,37 +30539,37 @@ function V1(e, t, n, i) {
|
|
|
30539
30539
|
return n && t(e[0], e[s - 1], hu) && (o && (h(u) ? i.splice(p, 0, d) : i.push(s - 1)), h(u) ? u.length -= 1 : u = e.slice(0, -1)), h(u) ? u : e;
|
|
30540
30540
|
}
|
|
30541
30541
|
function q1(e) {
|
|
30542
|
-
const t = e._uSquared, n = e._ellipsoid.maximumRadius, i = e._ellipsoid.minimumRadius, o = (n - i) / n, s = Math.cos(e._startHeading), a = Math.sin(e._startHeading), c = (1 - o) * Math.tan(e._start.latitude), l = 1 / Math.sqrt(1 + c * c), u = l * c, d = Math.atan2(c, s), p = l * a, g = p * p, y = 1 - g, x = Math.sqrt(y), E = t / 4, T = E * E, D = T * E, A = T * T, O = 1 + E - 3 * T / 4 + 5 * D / 4 - 175 * A / 64, I = 1 - E + 15 * T / 8 - 35 * D / 8, B = 1 - 3 * E + 35 * T / 4, M = 1 - 5 * E,
|
|
30543
|
-
P.a = n, P.b = i, P.f = o, P.cosineHeading = s, P.sineHeading = a, P.tanU = c, P.cosineU = l, P.sineU = u, P.sigma = d, P.sineAlpha = p, P.sineSquaredAlpha = g, P.cosineSquaredAlpha = y, P.cosineAlpha = x, P.u2Over4 = E, P.u4Over16 = T, P.u6Over64 = D, P.u8Over256 = A, P.a0 = O, P.a1 = I, P.a2 = B, P.a3 = M, P.distanceRatio =
|
|
30542
|
+
const t = e._uSquared, n = e._ellipsoid.maximumRadius, i = e._ellipsoid.minimumRadius, o = (n - i) / n, s = Math.cos(e._startHeading), a = Math.sin(e._startHeading), c = (1 - o) * Math.tan(e._start.latitude), l = 1 / Math.sqrt(1 + c * c), u = l * c, d = Math.atan2(c, s), p = l * a, g = p * p, y = 1 - g, x = Math.sqrt(y), E = t / 4, T = E * E, D = T * E, A = T * T, O = 1 + E - 3 * T / 4 + 5 * D / 4 - 175 * A / 64, I = 1 - E + 15 * T / 8 - 35 * D / 8, B = 1 - 3 * E + 35 * T / 4, M = 1 - 5 * E, G = O * d - I * Math.sin(2 * d) * E / 2 - B * Math.sin(4 * d) * T / 16 - M * Math.sin(6 * d) * D / 48 - Math.sin(8 * d) * 5 * A / 512, P = e._constants;
|
|
30543
|
+
P.a = n, P.b = i, P.f = o, P.cosineHeading = s, P.sineHeading = a, P.tanU = c, P.cosineU = l, P.sineU = u, P.sigma = d, P.sineAlpha = p, P.sineSquaredAlpha = g, P.cosineSquaredAlpha = y, P.cosineAlpha = x, P.u2Over4 = E, P.u4Over16 = T, P.u6Over64 = D, P.u8Over256 = A, P.a0 = O, P.a1 = I, P.a2 = B, P.a3 = M, P.distanceRatio = G;
|
|
30544
30544
|
}
|
|
30545
|
-
function
|
|
30545
|
+
function G1(e, t) {
|
|
30546
30546
|
return e * t * (4 + e * (4 - 3 * t)) / 16;
|
|
30547
30547
|
}
|
|
30548
30548
|
function pm(e, t, n, i, o, s, a) {
|
|
30549
|
-
const c =
|
|
30549
|
+
const c = G1(e, n);
|
|
30550
30550
|
return (1 - c) * e * t * (i + c * o * (a + c * s * (2 * a * a - 1)));
|
|
30551
30551
|
}
|
|
30552
|
-
function
|
|
30552
|
+
function H1(e, t, n, i, o, s, a) {
|
|
30553
30553
|
const c = (t - n) / t, l = s - i, u = Math.atan((1 - c) * Math.tan(o)), d = Math.atan((1 - c) * Math.tan(a)), p = Math.cos(u), g = Math.sin(u), y = Math.cos(d), x = Math.sin(d), E = p * y, T = p * x, D = g * x, A = g * y;
|
|
30554
|
-
let O = l, I = S.TWO_PI, B = Math.cos(O), M = Math.sin(O),
|
|
30554
|
+
let O = l, I = S.TWO_PI, B = Math.cos(O), M = Math.sin(O), G, P, V, k, H;
|
|
30555
30555
|
do {
|
|
30556
30556
|
B = Math.cos(O), M = Math.sin(O);
|
|
30557
30557
|
const X = T - A * B;
|
|
30558
30558
|
V = Math.sqrt(
|
|
30559
30559
|
y * y * M * M + X * X
|
|
30560
|
-
), P = D + E * B,
|
|
30560
|
+
), P = D + E * B, G = Math.atan2(V, P);
|
|
30561
30561
|
let ie;
|
|
30562
|
-
V === 0 ? (ie = 0, k = 1) : (ie = E * M / V, k = 1 - ie * ie), I = O,
|
|
30562
|
+
V === 0 ? (ie = 0, k = 1) : (ie = E * M / V, k = 1 - ie * ie), I = O, H = P - 2 * D / k, isFinite(H) || (H = 0), O = l + pm(
|
|
30563
30563
|
c,
|
|
30564
30564
|
ie,
|
|
30565
30565
|
k,
|
|
30566
|
-
|
|
30566
|
+
G,
|
|
30567
30567
|
V,
|
|
30568
30568
|
P,
|
|
30569
|
-
|
|
30569
|
+
H
|
|
30570
30570
|
);
|
|
30571
30571
|
} while (Math.abs(O - I) > S.EPSILON12);
|
|
30572
|
-
const j = k * (t * t - n * n) / (n * n), r = 1 + j * (4096 + j * (j * (320 - 175 * j) - 768)) / 16384, b = j * (256 + j * (j * (74 - 47 * j) - 128)) / 1024, v =
|
|
30572
|
+
const j = k * (t * t - n * n) / (n * n), r = 1 + j * (4096 + j * (j * (320 - 175 * j) - 768)) / 16384, b = j * (256 + j * (j * (74 - 47 * j) - 128)) / 1024, v = H * H, z = b * V * (H + b * (P * (2 * v - 1) - b * H * (4 * V * V - 3) * (4 * v - 3) / 6) / 4), q = n * r * (G - z), W = Math.atan2(
|
|
30573
30573
|
y * M,
|
|
30574
30574
|
T - A * B
|
|
30575
30575
|
), $ = Math.atan2(p * M, T * B - A);
|
|
@@ -30590,7 +30590,7 @@ function mm(e, t, n, i) {
|
|
|
30590
30590
|
Math.abs(f.angleBetween(o, s)) - Math.PI
|
|
30591
30591
|
),
|
|
30592
30592
|
0.0125
|
|
30593
|
-
),
|
|
30593
|
+
), H1(
|
|
30594
30594
|
e,
|
|
30595
30595
|
i.maximumRadius,
|
|
30596
30596
|
i.minimumRadius,
|
|
@@ -30690,9 +30690,9 @@ Kr.prototype.interpolateUsingSurfaceDistance = function(e, t) {
|
|
|
30690
30690
|
let D = 2 * g * y * o / 3 + i * (1 - x + 7 * T / 4 - 15 * E / 4 + 579 * y / 64 - (T - 15 * E / 4 + 187 * y / 16) * o - (5 * E / 4 - 115 * y / 16) * s - 29 * y * a / 16) + (x / 2 - T + 71 * E / 32 - 85 * y / 16) * c + (5 * T / 16 - 5 * E / 4 + 383 * y / 96) * l - p * ((E - 11 * y / 2) * c + 5 * y * l / 2) + (29 * E / 96 - 29 * y / 16) * u + 539 * y * d / 1536;
|
|
30691
30691
|
const A = Math.asin(Math.sin(D) * n.cosineAlpha), O = Math.atan(n.a / n.b * Math.tan(A));
|
|
30692
30692
|
D = D - n.sigma;
|
|
30693
|
-
const I = Math.cos(2 * n.sigma + D), B = Math.sin(D), M = Math.cos(D),
|
|
30693
|
+
const I = Math.cos(2 * n.sigma + D), B = Math.sin(D), M = Math.cos(D), G = n.cosineU * M, P = n.sineU * B, k = Math.atan2(
|
|
30694
30694
|
B * n.sineHeading,
|
|
30695
|
-
|
|
30695
|
+
G - P * n.cosineHeading
|
|
30696
30696
|
) - pm(
|
|
30697
30697
|
n.f,
|
|
30698
30698
|
n.sineAlpha,
|
|
@@ -30714,8 +30714,8 @@ function j1(e, t, n) {
|
|
|
30714
30714
|
const i = e / n;
|
|
30715
30715
|
if (t === 0)
|
|
30716
30716
|
return i;
|
|
30717
|
-
const o = i * i, s = o * i, a = s * i, c = t, l = c * c, u = l * l, d = u * l, p = d * l, g = p * l, y = g * l, x = Math.sin(2 * i), E = Math.cos(2 * i), T = Math.sin(4 * i), D = Math.cos(4 * i), A = Math.sin(6 * i), O = Math.cos(6 * i), I = Math.sin(8 * i), B = Math.cos(8 * i), M = Math.sin(10 * i),
|
|
30718
|
-
return i + i * l / 4 + 7 * i * u / 64 + 15 * i * d / 256 + 579 * i * p / 16384 + 1515 * i * g / 65536 + 16837 * i * y / 1048576 + (3 * i * u / 16 + 45 * i * d / 256 - i * (32 * o - 561) * p / 4096 - i * (232 * o - 1677) * g / 16384 + i * (399985 - 90560 * o + 512 * a) * y / 5242880) * E + (21 * i * d / 256 + 483 * i * p / 4096 - i * (224 * o - 1969) * g / 16384 - i * (33152 * o - 112599) * y / 1048576) * D + (151 * i * p / 4096 + 4681 * i * g / 65536 + 1479 * i * y / 16384 - 453 * s * y / 32768) * O + (1097 * i * g / 65536 + 42783 * i * y / 1048576) * B + 8011 * i * y / 1048576 *
|
|
30717
|
+
const o = i * i, s = o * i, a = s * i, c = t, l = c * c, u = l * l, d = u * l, p = d * l, g = p * l, y = g * l, x = Math.sin(2 * i), E = Math.cos(2 * i), T = Math.sin(4 * i), D = Math.cos(4 * i), A = Math.sin(6 * i), O = Math.cos(6 * i), I = Math.sin(8 * i), B = Math.cos(8 * i), M = Math.sin(10 * i), G = Math.cos(10 * i), P = Math.sin(12 * i);
|
|
30718
|
+
return i + i * l / 4 + 7 * i * u / 64 + 15 * i * d / 256 + 579 * i * p / 16384 + 1515 * i * g / 65536 + 16837 * i * y / 1048576 + (3 * i * u / 16 + 45 * i * d / 256 - i * (32 * o - 561) * p / 4096 - i * (232 * o - 1677) * g / 16384 + i * (399985 - 90560 * o + 512 * a) * y / 5242880) * E + (21 * i * d / 256 + 483 * i * p / 4096 - i * (224 * o - 1969) * g / 16384 - i * (33152 * o - 112599) * y / 1048576) * D + (151 * i * p / 4096 + 4681 * i * g / 65536 + 1479 * i * y / 16384 - 453 * s * y / 32768) * O + (1097 * i * g / 65536 + 42783 * i * y / 1048576) * B + 8011 * i * y / 1048576 * G + (3 * l / 8 + 3 * u / 16 + 213 * d / 2048 - 3 * o * d / 64 + 255 * p / 4096 - 33 * o * p / 512 + 20861 * g / 524288 - 33 * o * g / 512 + a * g / 1024 + 28273 * y / 1048576 - 471 * o * y / 8192 + 9 * a * y / 4096) * x + (21 * u / 256 + 21 * d / 256 + 533 * p / 8192 - 21 * o * p / 512 + 197 * g / 4096 - 315 * o * g / 4096 + 584039 * y / 16777216 - 12517 * o * y / 131072 + 7 * a * y / 2048) * T + (151 * d / 6144 + 151 * p / 4096 + 5019 * g / 131072 - 453 * o * g / 16384 + 26965 * y / 786432 - 8607 * o * y / 131072) * A + (1097 * p / 131072 + 1097 * g / 65536 + 225797 * y / 10485760 - 1097 * o * y / 65536) * I + (8011 * g / 2621440 + 8011 * y / 1048576) * M + 293393 * y / 251658240 * P;
|
|
30719
30719
|
}
|
|
30720
30720
|
function Uo(e, t) {
|
|
30721
30721
|
if (e === 0)
|
|
@@ -31148,22 +31148,22 @@ Mi.createGeometry = function(e) {
|
|
|
31148
31148
|
O,
|
|
31149
31149
|
Ns
|
|
31150
31150
|
), h(A) && !f.equalsEpsilon(A, y, S.EPSILON7) && !f.equalsEpsilon(A, x, S.EPSILON7) && B.push(f.clone(A)))));
|
|
31151
|
-
let M = B.length,
|
|
31151
|
+
let M = B.length, G = new Array(M);
|
|
31152
31152
|
for (d = 0; d < M; d++) {
|
|
31153
31153
|
const se = ee.fromCartesian(
|
|
31154
31154
|
B[d],
|
|
31155
31155
|
i
|
|
31156
31156
|
);
|
|
31157
|
-
se.height = 0,
|
|
31157
|
+
se.height = 0, G[d] = se;
|
|
31158
31158
|
}
|
|
31159
|
-
if (
|
|
31160
|
-
|
|
31159
|
+
if (G = V1(
|
|
31160
|
+
G,
|
|
31161
31161
|
ee.equalsEpsilon
|
|
31162
|
-
), M =
|
|
31162
|
+
), M = G.length, M < 2)
|
|
31163
31163
|
return;
|
|
31164
|
-
const P = [], V = [], k = [],
|
|
31164
|
+
const P = [], V = [], k = [], H = [];
|
|
31165
31165
|
let j = aA, r = cA, b = lA, v = hA, z = fA;
|
|
31166
|
-
const q =
|
|
31166
|
+
const q = G[0], W = G[1], $ = G[M - 1];
|
|
31167
31167
|
for (j = $t(
|
|
31168
31168
|
i,
|
|
31169
31169
|
$,
|
|
@@ -31186,7 +31186,7 @@ Mi.createGeometry = function(e) {
|
|
|
31186
31186
|
l,
|
|
31187
31187
|
i,
|
|
31188
31188
|
z
|
|
31189
|
-
), f.pack(z, V, 0), f.pack(r, k, 0), f.pack(b,
|
|
31189
|
+
), f.pack(z, V, 0), f.pack(r, k, 0), f.pack(b, H, 0), P.push(q.latitude), P.push(q.longitude), Ec(
|
|
31190
31190
|
q,
|
|
31191
31191
|
W,
|
|
31192
31192
|
c,
|
|
@@ -31196,20 +31196,20 @@ Mi.createGeometry = function(e) {
|
|
|
31196
31196
|
i,
|
|
31197
31197
|
V,
|
|
31198
31198
|
k,
|
|
31199
|
-
|
|
31199
|
+
H,
|
|
31200
31200
|
P
|
|
31201
31201
|
), d = 1; d < M - 1; ++d) {
|
|
31202
31202
|
j = f.clone(r, j), r = f.clone(v, r);
|
|
31203
|
-
const se =
|
|
31204
|
-
$t(i, se, l, b), $t(i,
|
|
31203
|
+
const se = G[d];
|
|
31204
|
+
$t(i, se, l, b), $t(i, G[d + 1], c, v), bc(
|
|
31205
31205
|
j,
|
|
31206
31206
|
r,
|
|
31207
31207
|
b,
|
|
31208
31208
|
v,
|
|
31209
31209
|
z
|
|
31210
|
-
), u = V.length, f.pack(z, V, u), f.pack(r, k, u), f.pack(b,
|
|
31211
|
-
|
|
31212
|
-
|
|
31210
|
+
), u = V.length, f.pack(z, V, u), f.pack(r, k, u), f.pack(b, H, u), P.push(se.latitude), P.push(se.longitude), Ec(
|
|
31211
|
+
G[d],
|
|
31212
|
+
G[d + 1],
|
|
31213
31213
|
c,
|
|
31214
31214
|
l,
|
|
31215
31215
|
o,
|
|
@@ -31217,18 +31217,18 @@ Mi.createGeometry = function(e) {
|
|
|
31217
31217
|
i,
|
|
31218
31218
|
V,
|
|
31219
31219
|
k,
|
|
31220
|
-
|
|
31220
|
+
H,
|
|
31221
31221
|
P
|
|
31222
31222
|
);
|
|
31223
31223
|
}
|
|
31224
|
-
const X =
|
|
31224
|
+
const X = G[M - 1], ie = G[M - 2];
|
|
31225
31225
|
if (r = $t(
|
|
31226
31226
|
i,
|
|
31227
31227
|
X,
|
|
31228
31228
|
c,
|
|
31229
31229
|
r
|
|
31230
31230
|
), b = $t(i, X, l, b), n) {
|
|
31231
|
-
const se =
|
|
31231
|
+
const se = G[0];
|
|
31232
31232
|
j = $t(
|
|
31233
31233
|
i,
|
|
31234
31234
|
ie,
|
|
@@ -31254,7 +31254,7 @@ Mi.createGeometry = function(e) {
|
|
|
31254
31254
|
i,
|
|
31255
31255
|
z
|
|
31256
31256
|
);
|
|
31257
|
-
if (u = V.length, f.pack(z, V, u), f.pack(r, k, u), f.pack(b,
|
|
31257
|
+
if (u = V.length, f.pack(z, V, u), f.pack(r, k, u), f.pack(b, H, u), P.push(X.latitude), P.push(X.longitude), n) {
|
|
31258
31258
|
for (Ec(
|
|
31259
31259
|
X,
|
|
31260
31260
|
q,
|
|
@@ -31265,17 +31265,17 @@ Mi.createGeometry = function(e) {
|
|
|
31265
31265
|
i,
|
|
31266
31266
|
V,
|
|
31267
31267
|
k,
|
|
31268
|
-
|
|
31268
|
+
H,
|
|
31269
31269
|
P
|
|
31270
31270
|
), u = V.length, d = 0; d < 3; ++d)
|
|
31271
|
-
V[u + d] = V[d], k[u + d] = k[d],
|
|
31271
|
+
V[u + d] = V[d], k[u + d] = k[d], H[u + d] = H[d];
|
|
31272
31272
|
P.push(q.latitude), P.push(q.longitude);
|
|
31273
31273
|
}
|
|
31274
31274
|
return LA(
|
|
31275
31275
|
n,
|
|
31276
31276
|
a,
|
|
31277
31277
|
k,
|
|
31278
|
-
|
|
31278
|
+
H,
|
|
31279
31279
|
V,
|
|
31280
31280
|
P,
|
|
31281
31281
|
t
|
|
@@ -31422,19 +31422,19 @@ function LA(e, t, n, i, o, s, a) {
|
|
|
31422
31422
|
), I = new Float32Array(
|
|
31423
31423
|
g
|
|
31424
31424
|
);
|
|
31425
|
-
let B, M,
|
|
31426
|
-
a && (B = new Float32Array(g), M = new Float32Array(g),
|
|
31425
|
+
let B, M, G, P;
|
|
31426
|
+
a && (B = new Float32Array(g), M = new Float32Array(g), G = new Float32Array(g), P = new Float32Array(p * 2));
|
|
31427
31427
|
const V = s.length / 2;
|
|
31428
31428
|
let k = 0;
|
|
31429
|
-
const
|
|
31430
|
-
|
|
31429
|
+
const H = Tm;
|
|
31430
|
+
H.height = 0;
|
|
31431
31431
|
const j = bm;
|
|
31432
31432
|
j.height = 0;
|
|
31433
31433
|
let r = Tu, b = wc;
|
|
31434
31434
|
if (a)
|
|
31435
31435
|
for (l = 0, c = 1; c < V; c++)
|
|
31436
|
-
|
|
31437
|
-
|
|
31436
|
+
H.latitude = s[l], H.longitude = s[l + 1], j.latitude = s[l + 2], j.longitude = s[l + 3], r = t.project(
|
|
31437
|
+
H,
|
|
31438
31438
|
r
|
|
31439
31439
|
), b = t.project(
|
|
31440
31440
|
j,
|
|
@@ -31471,19 +31471,19 @@ function LA(e, t, n, i, o, s, a) {
|
|
|
31471
31471
|
Su
|
|
31472
31472
|
);
|
|
31473
31473
|
if (e) {
|
|
31474
|
-
const
|
|
31474
|
+
const mt = f.unpack(
|
|
31475
31475
|
n,
|
|
31476
31476
|
n.length - 6,
|
|
31477
31477
|
bu
|
|
31478
31478
|
);
|
|
31479
|
-
gu(ge,
|
|
31479
|
+
gu(ge, mt, me, Ce) && (ge = f.negate(
|
|
31480
31480
|
ge,
|
|
31481
31481
|
ge
|
|
31482
31482
|
));
|
|
31483
31483
|
}
|
|
31484
31484
|
let Ie = 0, Ve = 0, Ke = 0;
|
|
31485
31485
|
for (c = 0; c < d; c++) {
|
|
31486
|
-
const
|
|
31486
|
+
const mt = f.clone(me, bu), Qt = f.clone(Ce, Tu);
|
|
31487
31487
|
let Jt = f.clone(
|
|
31488
31488
|
ge,
|
|
31489
31489
|
xA
|
|
@@ -31499,15 +31499,15 @@ function LA(e, t, n, i, o, s, a) {
|
|
|
31499
31499
|
o,
|
|
31500
31500
|
l,
|
|
31501
31501
|
Su
|
|
31502
|
-
), se = gu(ge,
|
|
31502
|
+
), se = gu(ge, mt, me, Ce), H.latitude = s[W], H.longitude = s[W + 1], j.latitude = s[W + 2], j.longitude = s[W + 3];
|
|
31503
31503
|
let bn, lo, Si, Ai;
|
|
31504
31504
|
if (a) {
|
|
31505
|
-
const
|
|
31506
|
-
bn = t.project(
|
|
31505
|
+
const at = yA(H, j);
|
|
31506
|
+
bn = t.project(H, AA), lo = t.project(j, DA);
|
|
31507
31507
|
const fo = Ei(lo, bn, Du);
|
|
31508
|
-
fo.y = Math.abs(fo.y), Si = Sc, Ai = Ac,
|
|
31508
|
+
fo.y = Math.abs(fo.y), Si = Sc, Ai = Ac, at === 0 || f.dot(fo, f.UNIT_Y) > ym ? (Si = pr(
|
|
31509
31509
|
t,
|
|
31510
|
-
|
|
31510
|
+
H,
|
|
31511
31511
|
Jt,
|
|
31512
31512
|
bn,
|
|
31513
31513
|
Sc
|
|
@@ -31517,38 +31517,38 @@ function LA(e, t, n, i, o, s, a) {
|
|
|
31517
31517
|
ge,
|
|
31518
31518
|
lo,
|
|
31519
31519
|
Ac
|
|
31520
|
-
)) :
|
|
31520
|
+
)) : at === 1 ? (Ai = pr(
|
|
31521
31521
|
t,
|
|
31522
31522
|
j,
|
|
31523
31523
|
ge,
|
|
31524
31524
|
lo,
|
|
31525
31525
|
Ac
|
|
31526
31526
|
), Si.x = 0, Si.y = S.sign(
|
|
31527
|
-
|
|
31527
|
+
H.longitude - Math.abs(j.longitude)
|
|
31528
31528
|
), Si.z = 0) : (Si = pr(
|
|
31529
31529
|
t,
|
|
31530
|
-
|
|
31530
|
+
H,
|
|
31531
31531
|
Jt,
|
|
31532
31532
|
bn,
|
|
31533
31533
|
Sc
|
|
31534
31534
|
), Ai.x = 0, Ai.y = S.sign(
|
|
31535
|
-
|
|
31535
|
+
H.longitude - j.longitude
|
|
31536
31536
|
), Ai.z = 0);
|
|
31537
31537
|
}
|
|
31538
31538
|
const fh = f.distance(Qt, Ce), uh = je.fromCartesian(
|
|
31539
|
-
|
|
31539
|
+
mt,
|
|
31540
31540
|
PA
|
|
31541
31541
|
), Jr = f.subtract(
|
|
31542
31542
|
me,
|
|
31543
|
-
|
|
31543
|
+
mt,
|
|
31544
31544
|
OA
|
|
31545
31545
|
), v0 = f.normalize(Jr, Au);
|
|
31546
|
-
let
|
|
31547
|
-
|
|
31548
|
-
let ho = f.cross(v0,
|
|
31546
|
+
let Ho = f.subtract(Qt, mt, vA);
|
|
31547
|
+
Ho = f.normalize(Ho, Ho);
|
|
31548
|
+
let ho = f.cross(v0, Ho, Au);
|
|
31549
31549
|
ho = f.normalize(ho, ho);
|
|
31550
31550
|
let es = f.cross(
|
|
31551
|
-
|
|
31551
|
+
Ho,
|
|
31552
31552
|
Jt,
|
|
31553
31553
|
RA
|
|
31554
31554
|
);
|
|
@@ -31562,7 +31562,7 @@ function LA(e, t, n, i, o, s, a) {
|
|
|
31562
31562
|
);
|
|
31563
31563
|
ns = f.normalize(ns, ns);
|
|
31564
31564
|
const I0 = fh / z, R0 = Ie / z;
|
|
31565
|
-
let Aa = 0, Wo, is,
|
|
31565
|
+
let Aa = 0, Wo, is, Gi, dh = 0, ph = 0;
|
|
31566
31566
|
if (a) {
|
|
31567
31567
|
Aa = f.distance(bn, lo), Wo = je.fromCartesian(
|
|
31568
31568
|
bn,
|
|
@@ -31571,27 +31571,27 @@ function LA(e, t, n, i, o, s, a) {
|
|
|
31571
31571
|
lo,
|
|
31572
31572
|
bn,
|
|
31573
31573
|
Du
|
|
31574
|
-
),
|
|
31575
|
-
const
|
|
31576
|
-
|
|
31574
|
+
), Gi = f.normalize(is, NA);
|
|
31575
|
+
const at = Gi.x;
|
|
31576
|
+
Gi.x = Gi.y, Gi.y = -at, dh = Aa / k, ph = Ve / k;
|
|
31577
31577
|
}
|
|
31578
31578
|
for (q = 0; q < 8; q++) {
|
|
31579
|
-
const
|
|
31580
|
-
f.pack(uh.high, T,
|
|
31579
|
+
const at = ie + q * 4, fo = $ + q * 2, jo = at + 3, _h = q < 4 ? 1 : -1, os = q === 2 || q === 3 || q === 6 || q === 7 ? 1 : -1;
|
|
31580
|
+
f.pack(uh.high, T, at), T[jo] = Jr.x, f.pack(uh.low, D, at), D[jo] = Jr.y, f.pack(
|
|
31581
31581
|
es,
|
|
31582
31582
|
A,
|
|
31583
|
-
|
|
31583
|
+
at
|
|
31584
31584
|
), A[jo] = Jr.z, f.pack(
|
|
31585
31585
|
ns,
|
|
31586
31586
|
O,
|
|
31587
|
-
|
|
31587
|
+
at
|
|
31588
31588
|
), O[jo] = I0 * _h, f.pack(
|
|
31589
31589
|
ho,
|
|
31590
31590
|
I,
|
|
31591
|
-
|
|
31591
|
+
at
|
|
31592
31592
|
);
|
|
31593
|
-
let
|
|
31594
|
-
|
|
31593
|
+
let Hi = R0 * os;
|
|
31594
|
+
Hi === 0 && os < 0 && (Hi = 9), I[jo] = Hi, a && (B[at] = Wo.high.x, B[at + 1] = Wo.high.y, B[at + 2] = Wo.low.x, B[at + 3] = Wo.low.y, G[at] = -Si.y, G[at + 1] = Si.x, G[at + 2] = Ai.y, G[at + 3] = -Ai.x, M[at] = is.x, M[at + 1] = is.y, M[at + 2] = Gi.x, M[at + 3] = Gi.y, P[fo] = dh * _h, Hi = ph * os, Hi === 0 && os < 0 && (Hi = 9), P[fo + 1] = Hi);
|
|
31595
31595
|
}
|
|
31596
31596
|
const ii = wA, oi = SA, ri = TA, si = bA, z0 = ce.fromCartographicArray(
|
|
31597
31597
|
CA,
|
|
@@ -31601,7 +31601,7 @@ function LA(e, t, n, i, o, s, a) {
|
|
|
31601
31601
|
u
|
|
31602
31602
|
), Da = mh.minimumTerrainHeight, Oa = mh.maximumTerrainHeight;
|
|
31603
31603
|
Ke += Math.abs(Da), Ke += Math.abs(Oa), Eu(
|
|
31604
|
-
|
|
31604
|
+
mt,
|
|
31605
31605
|
Qt,
|
|
31606
31606
|
Da,
|
|
31607
31607
|
Oa,
|
|
@@ -31643,11 +31643,11 @@ function LA(e, t, n, i, o, s, a) {
|
|
|
31643
31643
|
), f.pack(si, E, X + 18), f.pack(ri, E, X + 21), W += 2, l += 3, $ += 16, X += 24, ie += 32, Ie += fh, Ve += Aa;
|
|
31644
31644
|
}
|
|
31645
31645
|
l = 0;
|
|
31646
|
-
let
|
|
31646
|
+
let st = 0;
|
|
31647
31647
|
for (c = 0; c < d; c++) {
|
|
31648
31648
|
for (q = 0; q < vu; q++)
|
|
31649
|
-
x[l + q] = wm[q] +
|
|
31650
|
-
|
|
31649
|
+
x[l + q] = wm[q] + st;
|
|
31650
|
+
st += 8, l += vu;
|
|
31651
31651
|
}
|
|
31652
31652
|
const ze = FA;
|
|
31653
31653
|
K.fromVertices(
|
|
@@ -31661,8 +31661,8 @@ function LA(e, t, n, i, o, s, a) {
|
|
|
31661
31661
|
3,
|
|
31662
31662
|
ze[1]
|
|
31663
31663
|
);
|
|
31664
|
-
const
|
|
31665
|
-
|
|
31664
|
+
const pt = K.fromBoundingSpheres(ze);
|
|
31665
|
+
pt.radius += Ke / (d * 2);
|
|
31666
31666
|
const xt = {
|
|
31667
31667
|
position: new zt({
|
|
31668
31668
|
componentDatatype: oe.DOUBLE,
|
|
@@ -31686,15 +31686,15 @@ function LA(e, t, n, i, o, s, a) {
|
|
|
31686
31686
|
I
|
|
31687
31687
|
)
|
|
31688
31688
|
};
|
|
31689
|
-
return a && (xt.startHiLo2D = Bi(B), xt.offsetAndRight2D = Bi(M), xt.startEndNormals2D = Bi(
|
|
31689
|
+
return a && (xt.startHiLo2D = Bi(B), xt.offsetAndRight2D = Bi(M), xt.startEndNormals2D = Bi(G), xt.texcoordNormalization2D = new zt({
|
|
31690
31690
|
componentDatatype: oe.FLOAT,
|
|
31691
31691
|
componentsPerAttribute: 2,
|
|
31692
31692
|
normalize: !1,
|
|
31693
31693
|
values: P
|
|
31694
|
-
})), new
|
|
31694
|
+
})), new ht({
|
|
31695
31695
|
attributes: xt,
|
|
31696
31696
|
indices: x,
|
|
31697
|
-
boundingSphere:
|
|
31697
|
+
boundingSphere: pt
|
|
31698
31698
|
});
|
|
31699
31699
|
}
|
|
31700
31700
|
function Bi(e) {
|
|
@@ -32389,7 +32389,7 @@ vec4 getPolylineWindowCoordinates(vec4 position, vec4 previous, vec4 next, float
|
|
|
32389
32389
|
`;
|
|
32390
32390
|
let ul = `${Sm}
|
|
32391
32391
|
${qA}`;
|
|
32392
|
-
const
|
|
32392
|
+
const GA = kp;
|
|
32393
32393
|
yt.isInternetExplorer() || (ul = `#define CLIP_POLYLINE
|
|
32394
32394
|
${ul}`);
|
|
32395
32395
|
function qi(e) {
|
|
@@ -32400,7 +32400,7 @@ function qi(e) {
|
|
|
32400
32400
|
ul
|
|
32401
32401
|
), this._fragmentShaderSource = _(
|
|
32402
32402
|
e.fragmentShaderSource,
|
|
32403
|
-
|
|
32403
|
+
GA
|
|
32404
32404
|
), this._renderState = Mt.getDefaultRenderState(
|
|
32405
32405
|
t,
|
|
32406
32406
|
n,
|
|
@@ -32486,11 +32486,11 @@ Object.defineProperties(qi.prototype, {
|
|
|
32486
32486
|
}
|
|
32487
32487
|
}
|
|
32488
32488
|
});
|
|
32489
|
-
qi.VERTEX_FORMAT =
|
|
32489
|
+
qi.VERTEX_FORMAT = rt.POSITION_ONLY;
|
|
32490
32490
|
qi.prototype.getFragmentShaderSource = Mt.prototype.getFragmentShaderSource;
|
|
32491
32491
|
qi.prototype.isTranslucent = Mt.prototype.isTranslucent;
|
|
32492
32492
|
qi.prototype.getRenderState = Mt.prototype.getRenderState;
|
|
32493
|
-
const
|
|
32493
|
+
const HA = `in vec3 position3DHigh;
|
|
32494
32494
|
in vec3 position3DLow;
|
|
32495
32495
|
in vec3 prevPosition3DHigh;
|
|
32496
32496
|
in vec3 prevPosition3DLow;
|
|
@@ -32550,7 +32550,7 @@ void main()
|
|
|
32550
32550
|
}
|
|
32551
32551
|
`;
|
|
32552
32552
|
let dl = `${Sm}
|
|
32553
|
-
${
|
|
32553
|
+
${HA}`;
|
|
32554
32554
|
const jA = WA;
|
|
32555
32555
|
yt.isInternetExplorer() || (dl = `#define CLIP_POLYLINE
|
|
32556
32556
|
${dl}`);
|
|
@@ -32651,7 +32651,7 @@ ${e}`), e;
|
|
|
32651
32651
|
}
|
|
32652
32652
|
}
|
|
32653
32653
|
});
|
|
32654
|
-
co.VERTEX_FORMAT =
|
|
32654
|
+
co.VERTEX_FORMAT = rt.POSITION_AND_ST;
|
|
32655
32655
|
co.prototype.getFragmentShaderSource = Mt.prototype.getFragmentShaderSource;
|
|
32656
32656
|
co.prototype.isTranslucent = Mt.prototype.isTranslucent;
|
|
32657
32657
|
co.prototype.getRenderState = Mt.prototype.getRenderState;
|
|
@@ -32831,7 +32831,7 @@ function YA(e, t, n) {
|
|
|
32831
32831
|
defines: g,
|
|
32832
32832
|
sources: [p, l]
|
|
32833
32833
|
});
|
|
32834
|
-
e._sp =
|
|
32834
|
+
e._sp = it.replaceCache({
|
|
32835
32835
|
context: i,
|
|
32836
32836
|
shaderProgram: o._sp,
|
|
32837
32837
|
vertexShaderSource: y,
|
|
@@ -33289,10 +33289,10 @@ const tD = {
|
|
|
33289
33289
|
*/
|
|
33290
33290
|
INERTIAL: 1
|
|
33291
33291
|
}, Ir = Object.freeze(tD);
|
|
33292
|
-
function
|
|
33292
|
+
function Go() {
|
|
33293
33293
|
C.throwInstantiationError();
|
|
33294
33294
|
}
|
|
33295
|
-
Object.defineProperties(
|
|
33295
|
+
Object.defineProperties(Go.prototype, {
|
|
33296
33296
|
/**
|
|
33297
33297
|
* Gets a value indicating if this property is constant. A property is considered
|
|
33298
33298
|
* constant if getValue always returns the same result for the current definition.
|
|
@@ -33325,11 +33325,11 @@ Object.defineProperties(Ho.prototype, {
|
|
|
33325
33325
|
get: C.throwInstantiationError
|
|
33326
33326
|
}
|
|
33327
33327
|
});
|
|
33328
|
-
|
|
33329
|
-
|
|
33330
|
-
|
|
33328
|
+
Go.prototype.getValue = C.throwInstantiationError;
|
|
33329
|
+
Go.prototype.getValueInReferenceFrame = C.throwInstantiationError;
|
|
33330
|
+
Go.prototype.equals = C.throwInstantiationError;
|
|
33331
33331
|
const zu = new L();
|
|
33332
|
-
|
|
33332
|
+
Go.convertToReferenceFrame = function(e, t, n, i, o) {
|
|
33333
33333
|
if (!h(t))
|
|
33334
33334
|
return t;
|
|
33335
33335
|
if (h(o) || (o = new f()), n === i)
|
|
@@ -33403,7 +33403,7 @@ oo.prototype.getValueInReferenceFrame = function(e, t, n) {
|
|
|
33403
33403
|
throw new C("time is required.");
|
|
33404
33404
|
if (!h(t))
|
|
33405
33405
|
throw new C("referenceFrame is required.");
|
|
33406
|
-
return
|
|
33406
|
+
return Go.convertToReferenceFrame(
|
|
33407
33407
|
e,
|
|
33408
33408
|
this._value,
|
|
33409
33409
|
this._referenceFrame,
|
|
@@ -35354,10 +35354,10 @@ qr.prototype.merge = function(e) {
|
|
|
35354
35354
|
e.textureCoordinates
|
|
35355
35355
|
);
|
|
35356
35356
|
};
|
|
35357
|
-
function
|
|
35357
|
+
function Gr(e) {
|
|
35358
35358
|
this._definitionChanged = new Pe(), 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._granularity = void 0, this._granularitySubscription = void 0, this._material = void 0, this._materialSubscription = void 0, this._depthFailMaterial = void 0, this._depthFailMaterialSubscription = void 0, this._arcType = void 0, this._arcTypeSubscription = void 0, this._clampToGround = void 0, this._clampToGroundSubscription = 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(_(e, _.EMPTY_OBJECT));
|
|
35359
35359
|
}
|
|
35360
|
-
Object.defineProperties(
|
|
35360
|
+
Object.defineProperties(Gr.prototype, {
|
|
35361
35361
|
/**
|
|
35362
35362
|
* Gets the event that is raised whenever a property or sub-property is changed or modified.
|
|
35363
35363
|
* @memberof PolylineGraphics.prototype
|
|
@@ -35462,10 +35462,10 @@ Object.defineProperties(Hr.prototype, {
|
|
|
35462
35462
|
*/
|
|
35463
35463
|
zIndex: N("zIndex")
|
|
35464
35464
|
});
|
|
35465
|
-
|
|
35466
|
-
return h(e) ? (e.show = this.show, e.positions = this.positions, e.width = this.width, e.granularity = this.granularity, e.material = this.material, e.depthFailMaterial = this.depthFailMaterial, e.arcType = this.arcType, e.clampToGround = this.clampToGround, e.shadows = this.shadows, e.distanceDisplayCondition = this.distanceDisplayCondition, e.classificationType = this.classificationType, e.zIndex = this.zIndex, e) : new
|
|
35465
|
+
Gr.prototype.clone = function(e) {
|
|
35466
|
+
return h(e) ? (e.show = this.show, e.positions = this.positions, e.width = this.width, e.granularity = this.granularity, e.material = this.material, e.depthFailMaterial = this.depthFailMaterial, e.arcType = this.arcType, e.clampToGround = this.clampToGround, e.shadows = this.shadows, e.distanceDisplayCondition = this.distanceDisplayCondition, e.classificationType = this.classificationType, e.zIndex = this.zIndex, e) : new Gr(this);
|
|
35467
35467
|
};
|
|
35468
|
-
|
|
35468
|
+
Gr.prototype.merge = function(e) {
|
|
35469
35469
|
if (!h(e))
|
|
35470
35470
|
throw new C("source is required.");
|
|
35471
35471
|
this.show = _(this.show, e.show), this.positions = _(this.positions, e.positions), this.width = _(this.width, e.width), this.granularity = _(this.granularity, e.granularity), this.material = _(this.material, e.material), this.depthFailMaterial = _(
|
|
@@ -35479,10 +35479,10 @@ Hr.prototype.merge = function(e) {
|
|
|
35479
35479
|
e.classificationType
|
|
35480
35480
|
), this.zIndex = _(this.zIndex, e.zIndex);
|
|
35481
35481
|
};
|
|
35482
|
-
function
|
|
35482
|
+
function Hr(e) {
|
|
35483
35483
|
this._definitionChanged = new Pe(), this._show = void 0, this._showSubscription = void 0, this._positions = void 0, this._positionsSubscription = void 0, this._shape = void 0, this._shapeSubscription = 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._distanceDisplayConditionSubsription = void 0, this.merge(_(e, _.EMPTY_OBJECT));
|
|
35484
35484
|
}
|
|
35485
|
-
Object.defineProperties(
|
|
35485
|
+
Object.defineProperties(Hr.prototype, {
|
|
35486
35486
|
/**
|
|
35487
35487
|
* Gets the event that is raised whenever a property or sub-property is changed or modified.
|
|
35488
35488
|
* @memberof PolylineVolumeGraphics.prototype
|
|
@@ -35583,10 +35583,10 @@ Object.defineProperties(Gr.prototype, {
|
|
|
35583
35583
|
"distanceDisplayCondition"
|
|
35584
35584
|
)
|
|
35585
35585
|
});
|
|
35586
|
-
|
|
35587
|
-
return h(e) ? (e.show = this.show, e.positions = this.positions, e.shape = this.shape, e.cornerType = this.cornerType, e.granularity = this.granularity, e.fill = this.fill, e.material = this.material, e.outline = this.outline, e.outlineColor = this.outlineColor, e.outlineWidth = this.outlineWidth, e.shadows = this.shadows, e.distanceDisplayCondition = this.distanceDisplayCondition, e) : new
|
|
35586
|
+
Hr.prototype.clone = function(e) {
|
|
35587
|
+
return h(e) ? (e.show = this.show, e.positions = this.positions, e.shape = this.shape, e.cornerType = this.cornerType, e.granularity = this.granularity, e.fill = this.fill, e.material = this.material, e.outline = this.outline, e.outlineColor = this.outlineColor, e.outlineWidth = this.outlineWidth, e.shadows = this.shadows, e.distanceDisplayCondition = this.distanceDisplayCondition, e) : new Hr(this);
|
|
35588
35588
|
};
|
|
35589
|
-
|
|
35589
|
+
Hr.prototype.merge = function(e) {
|
|
35590
35590
|
if (!h(e))
|
|
35591
35591
|
throw new C("source is required.");
|
|
35592
35592
|
this.show = _(this.show, e.show), this.positions = _(this.positions, e.positions), this.shape = _(this.shape, e.shape), this.cornerType = _(this.cornerType, e.cornerType), this.granularity = _(this.granularity, e.granularity), this.fill = _(this.fill, e.fill), this.material = _(this.material, e.material), this.outline = _(this.outline, e.outline), this.outlineColor = _(this.outlineColor, e.outlineColor), this.outlineWidth = _(this.outlineWidth, e.outlineWidth), this.shadows = _(this.shadows, e.shadows), this.distanceDisplayCondition = _(
|
|
@@ -36145,7 +36145,7 @@ Object.defineProperties(an.prototype, {
|
|
|
36145
36145
|
* @memberof Entity.prototype
|
|
36146
36146
|
* @type {PolylineGraphics|undefined}
|
|
36147
36147
|
*/
|
|
36148
|
-
polyline: Dt("polyline",
|
|
36148
|
+
polyline: Dt("polyline", Gr),
|
|
36149
36149
|
/**
|
|
36150
36150
|
* Gets or sets the polyline volume.
|
|
36151
36151
|
* @memberof Entity.prototype
|
|
@@ -36153,7 +36153,7 @@ Object.defineProperties(an.prototype, {
|
|
|
36153
36153
|
*/
|
|
36154
36154
|
polylineVolume: Dt(
|
|
36155
36155
|
"polylineVolume",
|
|
36156
|
-
|
|
36156
|
+
Hr
|
|
36157
36157
|
),
|
|
36158
36158
|
/**
|
|
36159
36159
|
* Gets or sets the bag of arbitrary properties associated with this entity.
|
|
@@ -37163,7 +37163,7 @@ function he(e, t) {
|
|
|
37163
37163
|
throw new C(
|
|
37164
37164
|
"distanceDisplayCondition.far must be greater than distanceDisplayCondition.near."
|
|
37165
37165
|
);
|
|
37166
|
-
s =
|
|
37166
|
+
s = ot.clone(
|
|
37167
37167
|
s
|
|
37168
37168
|
);
|
|
37169
37169
|
}
|
|
@@ -37618,12 +37618,12 @@ Object.defineProperties(he.prototype, {
|
|
|
37618
37618
|
return this._distanceDisplayCondition;
|
|
37619
37619
|
},
|
|
37620
37620
|
set: function(e) {
|
|
37621
|
-
if (!
|
|
37621
|
+
if (!ot.equals(e, this._distanceDisplayCondition)) {
|
|
37622
37622
|
if (h(e) && (m.typeOf.object("value", e), e.far <= e.near))
|
|
37623
37623
|
throw new C(
|
|
37624
37624
|
"far distance must be greater than near distance."
|
|
37625
37625
|
);
|
|
37626
|
-
this._distanceDisplayCondition =
|
|
37626
|
+
this._distanceDisplayCondition = ot.clone(
|
|
37627
37627
|
e,
|
|
37628
37628
|
this._distanceDisplayCondition
|
|
37629
37629
|
), Ye(this, FD);
|
|
@@ -37961,7 +37961,7 @@ he.prototype.equals = function(e) {
|
|
|
37961
37961
|
) && Te.equals(
|
|
37962
37962
|
this._pixelOffsetScaleByDistance,
|
|
37963
37963
|
e._pixelOffsetScaleByDistance
|
|
37964
|
-
) &&
|
|
37964
|
+
) && ot.equals(
|
|
37965
37965
|
this._distanceDisplayCondition,
|
|
37966
37966
|
e._distanceDisplayCondition
|
|
37967
37967
|
) && this._disableDepthTestDistance === e._disableDepthTestDistance && this._splitDirection === e._splitDirection;
|
|
@@ -37990,7 +37990,7 @@ const UD = {
|
|
|
37990
37990
|
* @constant
|
|
37991
37991
|
*/
|
|
37992
37992
|
OPAQUE_AND_TRANSLUCENT: 2
|
|
37993
|
-
},
|
|
37993
|
+
}, lt = Object.freeze(UD), kD = {
|
|
37994
37994
|
/**
|
|
37995
37995
|
* The font size in pixels
|
|
37996
37996
|
*
|
|
@@ -38244,7 +38244,7 @@ ei.prototype.addSubRegion = function(e, t) {
|
|
|
38244
38244
|
throw new C("subRegion is required.");
|
|
38245
38245
|
const n = this._idHash[e];
|
|
38246
38246
|
if (!h(n))
|
|
38247
|
-
throw new
|
|
38247
|
+
throw new ft(`image with id "${e}" not found in the atlas.`);
|
|
38248
38248
|
const i = this;
|
|
38249
38249
|
return Promise.resolve(n).then(function(o) {
|
|
38250
38250
|
if (o === -1)
|
|
@@ -38259,7 +38259,7 @@ ei.prototype.isDestroyed = function() {
|
|
|
38259
38259
|
ei.prototype.destroy = function() {
|
|
38260
38260
|
return this._texture = this._texture && this._texture.destroy(), et(this);
|
|
38261
38261
|
};
|
|
38262
|
-
const
|
|
38262
|
+
const GD = he.SHOW_INDEX, xr = he.POSITION_INDEX, Bm = he.PIXEL_OFFSET_INDEX, Nm = he.EYE_OFFSET_INDEX, HD = he.HORIZONTAL_ORIGIN_INDEX, WD = he.VERTICAL_ORIGIN_INDEX, jD = he.SCALE_INDEX, rr = he.IMAGE_INDEX_INDEX, Fm = he.COLOR_INDEX, YD = he.ROTATION_INDEX, XD = he.ALIGNED_AXIS_INDEX, Lm = he.SCALE_BY_DISTANCE_INDEX, Mm = he.TRANSLUCENCY_BY_DISTANCE_INDEX, Um = he.PIXEL_OFFSET_SCALE_BY_DISTANCE_INDEX, km = he.DISTANCE_DISPLAY_CONDITION, $D = he.DISABLE_DEPTH_DISTANCE, ZD = he.TEXTURE_COORDINATE_BOUNDS, Vm = he.SDF_INDEX, qm = he.SPLIT_DIRECTION_INDEX, nh = he.NUMBER_OF_PROPERTIES;
|
|
38263
38263
|
let Ue;
|
|
38264
38264
|
const KD = {
|
|
38265
38265
|
positionHighAndScale: 0,
|
|
@@ -38308,7 +38308,7 @@ function Kt(e) {
|
|
|
38308
38308
|
!1
|
|
38309
38309
|
), this.blendOption = _(
|
|
38310
38310
|
e.blendOption,
|
|
38311
|
-
|
|
38311
|
+
lt.OPAQUE_AND_TRANSLUCENT
|
|
38312
38312
|
), this._blendOption = void 0, this._mode = pe.SCENE3D, this._buffersUsage = [
|
|
38313
38313
|
Ae.STATIC_DRAW,
|
|
38314
38314
|
// SHOW_INDEX
|
|
@@ -38424,7 +38424,7 @@ Object.defineProperties(Kt.prototype, {
|
|
|
38424
38424
|
}
|
|
38425
38425
|
}
|
|
38426
38426
|
});
|
|
38427
|
-
function
|
|
38427
|
+
function Gm(e) {
|
|
38428
38428
|
const t = e.length;
|
|
38429
38429
|
for (let n = 0; n < t; ++n)
|
|
38430
38430
|
e[n] && e[n]._destroy();
|
|
@@ -38437,7 +38437,7 @@ Kt.prototype.remove = function(e) {
|
|
|
38437
38437
|
return this.contains(e) ? (this._billboards[e._index] = void 0, this._billboardsRemoved = !0, this._createVertexArray = !0, e._destroy(), !0) : !1;
|
|
38438
38438
|
};
|
|
38439
38439
|
Kt.prototype.removeAll = function() {
|
|
38440
|
-
|
|
38440
|
+
Gm(this._billboards), this._billboards = [], this._billboardsToUpdate = [], this._billboardsToUpdateIndex = 0, this._billboardsRemoved = !1, this._createVertexArray = !0;
|
|
38441
38441
|
};
|
|
38442
38442
|
function ih(e) {
|
|
38443
38443
|
if (e._billboardsRemoved) {
|
|
@@ -38590,7 +38590,7 @@ function nO(e, t, n, i, o, s) {
|
|
|
38590
38590
|
return new At(e, a, c, i);
|
|
38591
38591
|
}
|
|
38592
38592
|
const Rc = new je();
|
|
38593
|
-
function
|
|
38593
|
+
function Hm(e, t, n, i, o) {
|
|
38594
38594
|
let s;
|
|
38595
38595
|
const a = i[Ue.positionHighAndScale], c = i[Ue.positionLowAndRotation], l = o._getActualPosition();
|
|
38596
38596
|
e._mode === pe.SCENE3D && (K.expand(
|
|
@@ -38627,19 +38627,19 @@ function Zm(e, t, n, i, o) {
|
|
|
38627
38627
|
T = q.x, D = q.y, A = q.width, O = q.height;
|
|
38628
38628
|
}
|
|
38629
38629
|
const B = T + A, M = D + O;
|
|
38630
|
-
let
|
|
38630
|
+
let G = Math.floor(
|
|
38631
38631
|
S.clamp(l, -xn, xn) + xn
|
|
38632
38632
|
) * iO;
|
|
38633
|
-
|
|
38633
|
+
G += (y + 1) * oO, G += (x + 1) * rO, G += (E ? 1 : 0) * Wm;
|
|
38634
38634
|
let P = Math.floor(
|
|
38635
38635
|
S.clamp(u, -xn, xn) + xn
|
|
38636
38636
|
) * Yn, V = Math.floor(
|
|
38637
38637
|
S.clamp(p, -xn, xn) + xn
|
|
38638
38638
|
) * Yn;
|
|
38639
|
-
const k = (S.clamp(g, -xn, xn) + xn) * sO,
|
|
38640
|
-
(k -
|
|
38639
|
+
const k = (S.clamp(g, -xn, xn) + xn) * sO, H = Math.floor(k), j = Math.floor(
|
|
38640
|
+
(k - H) * Yn
|
|
38641
38641
|
);
|
|
38642
|
-
P +=
|
|
38642
|
+
P += H, V += j, En.x = T, En.y = D;
|
|
38643
38643
|
const r = be.compressTextureCoordinates(En);
|
|
38644
38644
|
En.x = B;
|
|
38645
38645
|
const b = be.compressTextureCoordinates(En);
|
|
@@ -38647,27 +38647,27 @@ function Zm(e, t, n, i, o) {
|
|
|
38647
38647
|
const v = be.compressTextureCoordinates(En);
|
|
38648
38648
|
En.x = T;
|
|
38649
38649
|
const z = be.compressTextureCoordinates(En);
|
|
38650
|
-
e._instanced ? (s = o._index, a(s,
|
|
38650
|
+
e._instanced ? (s = o._index, a(s, G, P, V, r)) : (s = o._index * 4, a(
|
|
38651
38651
|
s + 0,
|
|
38652
|
-
|
|
38652
|
+
G + jm,
|
|
38653
38653
|
P,
|
|
38654
38654
|
V,
|
|
38655
38655
|
r
|
|
38656
38656
|
), a(
|
|
38657
38657
|
s + 1,
|
|
38658
|
-
|
|
38658
|
+
G + Ym,
|
|
38659
38659
|
P,
|
|
38660
38660
|
V,
|
|
38661
38661
|
b
|
|
38662
38662
|
), a(
|
|
38663
38663
|
s + 2,
|
|
38664
|
-
|
|
38664
|
+
G + Xm,
|
|
38665
38665
|
P,
|
|
38666
38666
|
V,
|
|
38667
38667
|
v
|
|
38668
38668
|
), a(
|
|
38669
38669
|
s + 3,
|
|
38670
|
-
|
|
38670
|
+
G + $m,
|
|
38671
38671
|
P,
|
|
38672
38672
|
V,
|
|
38673
38673
|
z
|
|
@@ -38705,10 +38705,10 @@ function gl(e, t, n, i, o) {
|
|
|
38705
38705
|
let p = 0;
|
|
38706
38706
|
const g = o._imageIndex;
|
|
38707
38707
|
if (g !== -1) {
|
|
38708
|
-
const
|
|
38709
|
-
if (!h(
|
|
38708
|
+
const G = n[g];
|
|
38709
|
+
if (!h(G))
|
|
38710
38710
|
throw new C(`Invalid billboard image index: ${g}`);
|
|
38711
|
-
p =
|
|
38711
|
+
p = G.height;
|
|
38712
38712
|
}
|
|
38713
38713
|
const y = e._textureAtlas.texture.dimensions, x = Math.round(
|
|
38714
38714
|
_(o.height, y.y * p)
|
|
@@ -38849,7 +38849,7 @@ function i0(e, t, n, i, o) {
|
|
|
38849
38849
|
e._instanced ? (l = o._index, s(l, a)) : (l = o._index * 4, s(l + 0, a), s(l + 1, a), s(l + 2, a), s(l + 3, a));
|
|
38850
38850
|
}
|
|
38851
38851
|
function cO(e, t, n, i, o) {
|
|
38852
|
-
|
|
38852
|
+
Hm(
|
|
38853
38853
|
e,
|
|
38854
38854
|
t,
|
|
38855
38855
|
n,
|
|
@@ -39042,23 +39042,23 @@ Kt.prototype.update = function(e) {
|
|
|
39042
39042
|
this._billboardsToUpdateIndex = 0;
|
|
39043
39043
|
} else if (c > 0) {
|
|
39044
39044
|
const P = uO;
|
|
39045
|
-
P.length = 0, (l[xr] || l[YD] || l[jD]) && P.push(
|
|
39045
|
+
P.length = 0, (l[xr] || l[YD] || l[jD]) && P.push(Hm), (l[rr] || l[Bm] || l[HD] || l[WD] || l[GD]) && (P.push(Zm), this._instanced && P.push(yl)), (l[rr] || l[XD] || l[Mm]) && (P.push(Km), P.push(gl)), (l[rr] || l[Fm]) && P.push(gl), l[Nm] && P.push(yl), l[Lm] && P.push(Qm), l[Um] && P.push(Jm), (l[km] || l[$D] || l[rr] || l[xr]) && P.push(e0), (l[rr] || l[xr]) && P.push(t0), l[Vm] && P.push(n0), l[qm] && P.push(i0);
|
|
39046
39046
|
const V = P.length;
|
|
39047
39047
|
if (p = this._vaf.writers, c / n > 0.1) {
|
|
39048
39048
|
for (let k = 0; k < c; ++k) {
|
|
39049
|
-
const
|
|
39050
|
-
|
|
39049
|
+
const H = a[k];
|
|
39050
|
+
H._dirty = !1;
|
|
39051
39051
|
for (let j = 0; j < V; ++j)
|
|
39052
|
-
P[j](this, e, s, p,
|
|
39052
|
+
P[j](this, e, s, p, H);
|
|
39053
39053
|
}
|
|
39054
39054
|
this._vaf.commit(Ic(i));
|
|
39055
39055
|
} else {
|
|
39056
39056
|
for (let k = 0; k < c; ++k) {
|
|
39057
|
-
const
|
|
39058
|
-
|
|
39057
|
+
const H = a[k];
|
|
39058
|
+
H._dirty = !1;
|
|
39059
39059
|
for (let j = 0; j < V; ++j)
|
|
39060
|
-
P[j](this, e, s, p,
|
|
39061
|
-
this._instanced ? this._vaf.subCommit(
|
|
39060
|
+
P[j](this, e, s, p, H);
|
|
39061
|
+
this._instanced ? this._vaf.subCommit(H._index, 1) : this._vaf.subCommit(H._index * 4, 4);
|
|
39062
39062
|
}
|
|
39063
39063
|
this._vaf.endSubCommits();
|
|
39064
39064
|
}
|
|
@@ -39081,15 +39081,15 @@ Kt.prototype.update = function(e) {
|
|
|
39081
39081
|
), hO(this, e, x);
|
|
39082
39082
|
const T = this._blendOption !== this.blendOption;
|
|
39083
39083
|
if (this._blendOption = this.blendOption, T) {
|
|
39084
|
-
this._blendOption ===
|
|
39084
|
+
this._blendOption === lt.OPAQUE || this._blendOption === lt.OPAQUE_AND_TRANSLUCENT ? this._rsOpaque = ke.fromCache({
|
|
39085
39085
|
depthTest: {
|
|
39086
39086
|
enabled: !0,
|
|
39087
39087
|
func: R.LESS
|
|
39088
39088
|
},
|
|
39089
39089
|
depthMask: !0
|
|
39090
39090
|
}) : this._rsOpaque = void 0;
|
|
39091
|
-
const P = this._blendOption ===
|
|
39092
|
-
this._blendOption ===
|
|
39091
|
+
const P = this._blendOption === lt.TRANSLUCENT;
|
|
39092
|
+
this._blendOption === lt.TRANSLUCENT || this._blendOption === lt.OPAQUE_AND_TRANSLUCENT ? this._rsTranslucent = ke.fromCache({
|
|
39093
39093
|
depthTest: {
|
|
39094
39094
|
enabled: !0,
|
|
39095
39095
|
func: P ? R.LEQUAL : R.LESS
|
|
@@ -39116,10 +39116,10 @@ Kt.prototype.update = function(e) {
|
|
|
39116
39116
|
const P = 1 - hn.CUTOFF;
|
|
39117
39117
|
this._sdf && O.defines.push("SDF");
|
|
39118
39118
|
const V = h(this._batchTable) ? "VECTOR_TILE" : "";
|
|
39119
|
-
this._blendOption ===
|
|
39119
|
+
this._blendOption === lt.OPAQUE_AND_TRANSLUCENT && (I = new ye({
|
|
39120
39120
|
defines: ["OPAQUE", V],
|
|
39121
39121
|
sources: [A]
|
|
39122
|
-
}), this._shaderClampToGround && (M ? I.defines.push("VERTEX_DEPTH_CHECK") : I.defines.push("FRAGMENT_DEPTH_CHECK")), this._sdf && (I.defines.push("SDF"), I.defines.push(`SDF_EDGE ${P}`)), this._sp =
|
|
39122
|
+
}), this._shaderClampToGround && (M ? I.defines.push("VERTEX_DEPTH_CHECK") : I.defines.push("FRAGMENT_DEPTH_CHECK")), this._sdf && (I.defines.push("SDF"), I.defines.push(`SDF_EDGE ${P}`)), this._sp = it.replaceCache({
|
|
39123
39123
|
context: i,
|
|
39124
39124
|
shaderProgram: this._sp,
|
|
39125
39125
|
vertexShaderSource: O,
|
|
@@ -39128,25 +39128,25 @@ Kt.prototype.update = function(e) {
|
|
|
39128
39128
|
}), I = new ye({
|
|
39129
39129
|
defines: ["TRANSLUCENT", V],
|
|
39130
39130
|
sources: [A]
|
|
39131
|
-
}), this._shaderClampToGround && (M ? I.defines.push("VERTEX_DEPTH_CHECK") : I.defines.push("FRAGMENT_DEPTH_CHECK")), this._sdf && (I.defines.push("SDF"), I.defines.push(`SDF_EDGE ${P}`)), this._spTranslucent =
|
|
39131
|
+
}), this._shaderClampToGround && (M ? I.defines.push("VERTEX_DEPTH_CHECK") : I.defines.push("FRAGMENT_DEPTH_CHECK")), this._sdf && (I.defines.push("SDF"), I.defines.push(`SDF_EDGE ${P}`)), this._spTranslucent = it.replaceCache({
|
|
39132
39132
|
context: i,
|
|
39133
39133
|
shaderProgram: this._spTranslucent,
|
|
39134
39134
|
vertexShaderSource: O,
|
|
39135
39135
|
fragmentShaderSource: I,
|
|
39136
39136
|
attributeLocations: Ue
|
|
39137
|
-
})), this._blendOption ===
|
|
39137
|
+
})), this._blendOption === lt.OPAQUE && (I = new ye({
|
|
39138
39138
|
defines: [V],
|
|
39139
39139
|
sources: [A]
|
|
39140
|
-
}), this._shaderClampToGround && (M ? I.defines.push("VERTEX_DEPTH_CHECK") : I.defines.push("FRAGMENT_DEPTH_CHECK")), this._sdf && (I.defines.push("SDF"), I.defines.push(`SDF_EDGE ${P}`)), this._sp =
|
|
39140
|
+
}), this._shaderClampToGround && (M ? I.defines.push("VERTEX_DEPTH_CHECK") : I.defines.push("FRAGMENT_DEPTH_CHECK")), this._sdf && (I.defines.push("SDF"), I.defines.push(`SDF_EDGE ${P}`)), this._sp = it.replaceCache({
|
|
39141
39141
|
context: i,
|
|
39142
39142
|
shaderProgram: this._sp,
|
|
39143
39143
|
vertexShaderSource: O,
|
|
39144
39144
|
fragmentShaderSource: I,
|
|
39145
39145
|
attributeLocations: Ue
|
|
39146
|
-
})), this._blendOption ===
|
|
39146
|
+
})), this._blendOption === lt.TRANSLUCENT && (I = new ye({
|
|
39147
39147
|
defines: [V],
|
|
39148
39148
|
sources: [A]
|
|
39149
|
-
}), this._shaderClampToGround && (M ? I.defines.push("VERTEX_DEPTH_CHECK") : I.defines.push("FRAGMENT_DEPTH_CHECK")), this._sdf && (I.defines.push("SDF"), I.defines.push(`SDF_EDGE ${P}`)), this._spTranslucent =
|
|
39149
|
+
}), this._shaderClampToGround && (M ? I.defines.push("VERTEX_DEPTH_CHECK") : I.defines.push("FRAGMENT_DEPTH_CHECK")), this._sdf && (I.defines.push("SDF"), I.defines.push(`SDF_EDGE ${P}`)), this._spTranslucent = it.replaceCache({
|
|
39150
39150
|
context: i,
|
|
39151
39151
|
shaderProgram: this._spTranslucent,
|
|
39152
39152
|
vertexShaderSource: O,
|
|
@@ -39154,9 +39154,9 @@ Kt.prototype.update = function(e) {
|
|
|
39154
39154
|
attributeLocations: Ue
|
|
39155
39155
|
})), this._compiledShaderRotation = this._shaderRotation, this._compiledShaderAlignedAxis = this._shaderAlignedAxis, this._compiledShaderScaleByDistance = this._shaderScaleByDistance, this._compiledShaderTranslucencyByDistance = this._shaderTranslucencyByDistance, this._compiledShaderPixelOffsetScaleByDistance = this._shaderPixelOffsetScaleByDistance, this._compiledShaderDistanceDisplayCondition = this._shaderDistanceDisplayCondition, this._compiledShaderDisableDepthDistance = this._shaderDisableDepthDistance, this._compiledShaderClampToGround = this._shaderClampToGround, this._compiledSDF = this._sdf;
|
|
39156
39156
|
}
|
|
39157
|
-
const
|
|
39157
|
+
const G = e.commandList;
|
|
39158
39158
|
if (g.render || g.pick) {
|
|
39159
|
-
const P = this._colorCommands, V = this._blendOption ===
|
|
39159
|
+
const P = this._colorCommands, V = this._blendOption === lt.OPAQUE, k = this._blendOption === lt.OPAQUE_AND_TRANSLUCENT, H = this._vaf.va, j = H.length;
|
|
39160
39160
|
let r = this._uniforms, b;
|
|
39161
39161
|
h(this._batchTable) ? (r = this._batchTable.getUniformMapCallback()(r), b = this._batchTable.getPickId()) : b = "v_pickColor", P.length = j;
|
|
39162
39162
|
const v = k ? j * 2 : j;
|
|
@@ -39166,16 +39166,16 @@ Kt.prototype.update = function(e) {
|
|
|
39166
39166
|
const W = V || k && z % 2 === 0;
|
|
39167
39167
|
q.pass = W || !k ? Rt.OPAQUE : Rt.TRANSLUCENT, q.owner = this;
|
|
39168
39168
|
const $ = k ? Math.floor(z / 2) : z;
|
|
39169
|
-
q.boundingVolume = x, q.modelMatrix = E, q.count =
|
|
39169
|
+
q.boundingVolume = x, q.modelMatrix = E, q.count = H[$].indicesCount, q.shaderProgram = W ? this._sp : this._spTranslucent, q.uniformMap = r, q.vertexArray = H[$].va, q.renderState = W ? this._rsOpaque : this._rsTranslucent, q.debugShowBoundingVolume = this.debugShowBoundingVolume, q.pickId = b, this._instanced && (q.count = 6, q.instanceCount = n), G.push(q);
|
|
39170
39170
|
}
|
|
39171
|
-
this.debugShowTextureAtlas && (h(this.debugCommand) || (this.debugCommand = fO(this, e.context)),
|
|
39171
|
+
this.debugShowTextureAtlas && (h(this.debugCommand) || (this.debugCommand = fO(this, e.context)), G.push(this.debugCommand));
|
|
39172
39172
|
}
|
|
39173
39173
|
};
|
|
39174
39174
|
Kt.prototype.isDestroyed = function() {
|
|
39175
39175
|
return !1;
|
|
39176
39176
|
};
|
|
39177
39177
|
Kt.prototype.destroy = function() {
|
|
39178
|
-
return h(this._removeCallbackFunc) && (this._removeCallbackFunc(), this._removeCallbackFunc = void 0), this._textureAtlas = this._destroyTextureAtlas && this._textureAtlas && this._textureAtlas.destroy(), this._sp = this._sp && this._sp.destroy(), this._spTranslucent = this._spTranslucent && this._spTranslucent.destroy(), this._vaf = this._vaf && this._vaf.destroy(),
|
|
39178
|
+
return h(this._removeCallbackFunc) && (this._removeCallbackFunc(), this._removeCallbackFunc = void 0), this._textureAtlas = this._destroyTextureAtlas && this._textureAtlas && this._textureAtlas.destroy(), this._sp = this._sp && this._sp.destroy(), this._spTranslucent = this._spTranslucent && this._spTranslucent.destroy(), this._vaf = this._vaf && this._vaf.destroy(), Gm(this._billboards), et(this);
|
|
39179
39179
|
};
|
|
39180
39180
|
function dO(e, t, n, i, o) {
|
|
39181
39181
|
const s = e.measureText(t);
|
|
@@ -39266,27 +39266,27 @@ function _O(e, t) {
|
|
|
39266
39266
|
var M = l[x];
|
|
39267
39267
|
T[x] = M === 1 ? 0 : M === 0 ? Cr : Math.pow(Math.max(0, 0.5 - M), 2), D[x] = M === 1 ? Cr : M === 0 ? 0 : Math.pow(Math.max(0, M - 0.5), 2);
|
|
39268
39268
|
}
|
|
39269
|
-
|
|
39270
|
-
var
|
|
39269
|
+
Gu(T, s, a, A, O, B, I), Gu(D, s, a, A, O, B, I);
|
|
39270
|
+
var G = window.Float32Array ? new Float32Array(s * a) : new Array(s * a);
|
|
39271
39271
|
for (x = 0, E = s * a; x < E; x++)
|
|
39272
|
-
|
|
39273
|
-
return
|
|
39272
|
+
G[x] = Math.min(Math.max(1 - ((T[x] - D[x]) / i + n), 0), 1);
|
|
39273
|
+
return G;
|
|
39274
39274
|
}
|
|
39275
|
-
function
|
|
39275
|
+
function Gu(e, t, n, i, o, s, a) {
|
|
39276
39276
|
for (var c = 0; c < t; c++) {
|
|
39277
39277
|
for (var l = 0; l < n; l++)
|
|
39278
39278
|
i[l] = e[l * t + c];
|
|
39279
|
-
for (
|
|
39279
|
+
for (Hu(i, o, s, a, n), l = 0; l < n; l++)
|
|
39280
39280
|
e[l * t + c] = o[l];
|
|
39281
39281
|
}
|
|
39282
39282
|
for (l = 0; l < n; l++) {
|
|
39283
39283
|
for (c = 0; c < t; c++)
|
|
39284
39284
|
i[c] = e[l * t + c];
|
|
39285
|
-
for (
|
|
39285
|
+
for (Hu(i, o, s, a, t), c = 0; c < t; c++)
|
|
39286
39286
|
e[l * t + c] = Math.sqrt(o[c]);
|
|
39287
39287
|
}
|
|
39288
39288
|
}
|
|
39289
|
-
function
|
|
39289
|
+
function Hu(e, t, n, i, o) {
|
|
39290
39290
|
n[0] = 0, i[0] = -Cr, i[1] = +Cr;
|
|
39291
39291
|
for (var s = 1, a = 0; s < o; s++) {
|
|
39292
39292
|
for (var c = (e[s] + s * s - (e[n[a]] + n[a] * n[a])) / (2 * s - 2 * n[a]); c <= i[a]; )
|
|
@@ -39387,7 +39387,7 @@ function Bn(e, t) {
|
|
|
39387
39387
|
throw new C(
|
|
39388
39388
|
"distanceDisplayCondition.far must be greater than distanceDisplayCondition.near."
|
|
39389
39389
|
);
|
|
39390
|
-
s =
|
|
39390
|
+
s = ot.clone(
|
|
39391
39391
|
s
|
|
39392
39392
|
);
|
|
39393
39393
|
}
|
|
@@ -39991,8 +39991,8 @@ Object.defineProperties(Bn.prototype, {
|
|
|
39991
39991
|
set: function(e) {
|
|
39992
39992
|
if (h(e) && e.far <= e.near)
|
|
39993
39993
|
throw new C("far must be greater than near");
|
|
39994
|
-
if (!
|
|
39995
|
-
this._distanceDisplayCondition =
|
|
39994
|
+
if (!ot.equals(e, this._distanceDisplayCondition)) {
|
|
39995
|
+
this._distanceDisplayCondition = ot.clone(
|
|
39996
39996
|
e,
|
|
39997
39997
|
this._distanceDisplayCondition
|
|
39998
39998
|
);
|
|
@@ -40159,7 +40159,7 @@ Bn.prototype.equals = function(e) {
|
|
|
40159
40159
|
) && Te.equals(
|
|
40160
40160
|
this._pixelOffsetScaleByDistance,
|
|
40161
40161
|
e._pixelOffsetScaleByDistance
|
|
40162
|
-
) && Te.equals(this._scaleByDistance, e._scaleByDistance) &&
|
|
40162
|
+
) && Te.equals(this._scaleByDistance, e._scaleByDistance) && ot.equals(
|
|
40163
40163
|
this._distanceDisplayCondition,
|
|
40164
40164
|
e._distanceDisplayCondition
|
|
40165
40165
|
) && this._disableDepthTestDistance === e._disableDepthTestDistance && this._id === e._id;
|
|
@@ -40224,7 +40224,7 @@ function DO(e) {
|
|
|
40224
40224
|
var r0 = { exports: {} };
|
|
40225
40225
|
(function(e) {
|
|
40226
40226
|
function t() {
|
|
40227
|
-
var n = 0, i = 1, o = 2, s = 3, a = 4, c = 5, l = 6, u = 7, d = 8, p = 9, g = 10, y = 11, x = 12, E = 13, T = 14, D = 15, A = 16, O = 17, I = 0, B = 1, M = 2,
|
|
40227
|
+
var n = 0, i = 1, o = 2, s = 3, a = 4, c = 5, l = 6, u = 7, d = 8, p = 9, g = 10, y = 11, x = 12, E = 13, T = 14, D = 15, A = 16, O = 17, I = 0, B = 1, M = 2, G = 3, P = 4;
|
|
40228
40228
|
function V(r, b) {
|
|
40229
40229
|
return 55296 <= r.charCodeAt(b) && r.charCodeAt(b) <= 56319 && 56320 <= r.charCodeAt(b + 1) && r.charCodeAt(b + 1) <= 57343;
|
|
40230
40230
|
}
|
|
@@ -40241,7 +40241,7 @@ var r0 = { exports: {} };
|
|
|
40241
40241
|
}
|
|
40242
40242
|
return v;
|
|
40243
40243
|
}
|
|
40244
|
-
function
|
|
40244
|
+
function H(r, b, v) {
|
|
40245
40245
|
var z = [r].concat(b).concat([v]), q = z[z.length - 2], W = v, $ = z.lastIndexOf(T);
|
|
40246
40246
|
if ($ > 1 && z.slice(1, $).every(function(se) {
|
|
40247
40247
|
return se == s;
|
|
@@ -40253,7 +40253,7 @@ var r0 = { exports: {} };
|
|
|
40253
40253
|
}) && [x, a].indexOf(q) == -1)
|
|
40254
40254
|
return z.filter(function(se) {
|
|
40255
40255
|
return se == a;
|
|
40256
|
-
}).length % 2 == 1 ?
|
|
40256
|
+
}).length % 2 == 1 ? G : P;
|
|
40257
40257
|
if (q == n && W == i)
|
|
40258
40258
|
return I;
|
|
40259
40259
|
if (q == o || q == n || q == i)
|
|
@@ -40287,7 +40287,7 @@ var r0 = { exports: {} };
|
|
|
40287
40287
|
for (var v = j(k(r, b)), z = [], q = b + 1; q < r.length; q++)
|
|
40288
40288
|
if (!V(r, q - 1)) {
|
|
40289
40289
|
var W = j(k(r, q));
|
|
40290
|
-
if (
|
|
40290
|
+
if (H(v, z, W))
|
|
40291
40291
|
return q;
|
|
40292
40292
|
z.push(W);
|
|
40293
40293
|
}
|
|
@@ -41744,10 +41744,10 @@ function MO(e, t) {
|
|
|
41744
41744
|
const I = gO(O, {
|
|
41745
41745
|
cutoff: hn.CUTOFF,
|
|
41746
41746
|
radius: hn.RADIUS
|
|
41747
|
-
}), B = O.getContext("2d"), M = O.width,
|
|
41747
|
+
}), B = O.getContext("2d"), M = O.width, G = O.height, P = B.getImageData(0, 0, M, G);
|
|
41748
41748
|
for (let V = 0; V < M; V++)
|
|
41749
|
-
for (let k = 0; k <
|
|
41750
|
-
const
|
|
41749
|
+
for (let k = 0; k < G; k++) {
|
|
41750
|
+
const H = k * M + V, j = I[H] * 255, r = H * 4;
|
|
41751
41751
|
P.data[r + 0] = j, P.data[r + 1] = j, P.data[r + 2] = j, P.data[r + 3] = j;
|
|
41752
41752
|
}
|
|
41753
41753
|
B.putImageData(P, 0, 0), x !== " " && FO(
|
|
@@ -41791,19 +41791,19 @@ function kO(e) {
|
|
|
41791
41791
|
D,
|
|
41792
41792
|
x
|
|
41793
41793
|
);
|
|
41794
|
-
const M = (h(e._lineHeight) ? e._lineHeight : zO * e._fontSize) / e._relativeSize,
|
|
41795
|
-
let P = a, V = E +
|
|
41794
|
+
const M = (h(e._lineHeight) ? e._lineHeight : zO * e._fontSize) / e._relativeSize, G = M * (d - 1);
|
|
41795
|
+
let P = a, V = E + G;
|
|
41796
41796
|
h(y) && (P += x.x * 2, V += x.y * 2, y._labelHorizontalOrigin = D), Qe.x = B * T, Qe.y = 0;
|
|
41797
|
-
let k = !0,
|
|
41797
|
+
let k = !0, H = 0;
|
|
41798
41798
|
for (p = 0; p < g; ++p)
|
|
41799
41799
|
if (n.charAt(p) === `
|
|
41800
41800
|
`)
|
|
41801
|
-
++O,
|
|
41801
|
+
++O, H += M, I = c[O], B = Xu(
|
|
41802
41802
|
I,
|
|
41803
41803
|
D,
|
|
41804
41804
|
x
|
|
41805
41805
|
), Qe.x = B * T, k = !0;
|
|
41806
|
-
else if (i = t[p], o = i.dimensions, A === Je.TOP ? (Qe.y = o.height - u - x.y, Qe.y += hn.PADDING) : A === Je.CENTER ? Qe.y = (
|
|
41806
|
+
else if (i = t[p], o = i.dimensions, A === Je.TOP ? (Qe.y = o.height - u - x.y, Qe.y += hn.PADDING) : A === Je.CENTER ? Qe.y = (G + o.height - u) / 2 : A === Je.BASELINE ? (Qe.y = G, Qe.y -= hn.PADDING) : (Qe.y = G + l + x.y, Qe.y -= hn.PADDING), Qe.y = (Qe.y - o.descent - H) * T, k && (Qe.x -= hn.PADDING * T, k = !1), h(i.billboard) && (i.billboard._setTranslate(Qe), i.billboard._labelDimensions.x = P, i.billboard._labelDimensions.y = V, i.billboard._labelHorizontalOrigin = D), p < g - 1) {
|
|
41807
41807
|
const j = t[p + 1];
|
|
41808
41808
|
Qe.x += (o.width - o.minx + j.dimensions.minx) * T;
|
|
41809
41809
|
}
|
|
@@ -41842,7 +41842,7 @@ function Ln(e) {
|
|
|
41842
41842
|
!1
|
|
41843
41843
|
), this.blendOption = _(
|
|
41844
41844
|
e.blendOption,
|
|
41845
|
-
|
|
41845
|
+
lt.OPAQUE_AND_TRANSLUCENT
|
|
41846
41846
|
);
|
|
41847
41847
|
}
|
|
41848
41848
|
Object.defineProperties(Ln.prototype, {
|
|
@@ -41907,7 +41907,7 @@ Ln.prototype.update = function(e) {
|
|
|
41907
41907
|
const u = c._glyphs.length - l;
|
|
41908
41908
|
this._totalGlyphCount += u;
|
|
41909
41909
|
}
|
|
41910
|
-
const s = n.length > 0 ?
|
|
41910
|
+
const s = n.length > 0 ? lt.TRANSLUCENT : this.blendOption;
|
|
41911
41911
|
t.blendOption = s, n.blendOption = s, t._highlightColor = this._highlightColor, n._highlightColor = this._highlightColor, this._labelsToUpdate.length = 0, n.update(e), t.update(e);
|
|
41912
41912
|
};
|
|
41913
41913
|
Ln.prototype.isDestroyed = function() {
|
|
@@ -41943,7 +41943,7 @@ function Qr(e) {
|
|
|
41943
41943
|
}
|
|
41944
41944
|
}
|
|
41945
41945
|
function Xt(e) {
|
|
41946
|
-
this._owner = e, this._entities = new
|
|
41946
|
+
this._owner = e, this._entities = new Hn(), this._addedEntities = new Hn(), this._removedEntities = new Hn(), this._changedEntities = new Hn(), this._suspendCount = 0, this._collectionChanged = new Pe(), this._id = ti(), this._show = !0, this._firing = !1, this._refire = !1;
|
|
41947
41947
|
}
|
|
41948
41948
|
Xt.prototype.suspendEvents = function() {
|
|
41949
41949
|
this._suspendCount++;
|
|
@@ -42312,14 +42312,14 @@ ni.prototype.computeHorizonCullingPointFromRectangle = function(e, t, n) {
|
|
|
42312
42312
|
if (!(f.magnitude(o.center) < 0.1 * t.minimumRadius))
|
|
42313
42313
|
return this.computeHorizonCullingPoint(o.center, i, n);
|
|
42314
42314
|
};
|
|
42315
|
-
const
|
|
42315
|
+
const GO = new f();
|
|
42316
42316
|
function h0(e, t, n) {
|
|
42317
42317
|
if (h(t) && t < 0 && e.minimumRadius > -t) {
|
|
42318
42318
|
const i = f.fromElements(
|
|
42319
42319
|
e.radii.x + t,
|
|
42320
42320
|
e.radii.y + t,
|
|
42321
42321
|
e.radii.z + t,
|
|
42322
|
-
|
|
42322
|
+
GO
|
|
42323
42323
|
);
|
|
42324
42324
|
e = le.fromCartesian3(i, n);
|
|
42325
42325
|
}
|
|
@@ -42373,11 +42373,11 @@ function oh(e, t, n) {
|
|
|
42373
42373
|
), a = -f.dot(s, i);
|
|
42374
42374
|
return !(o < 0 ? a > 0 : a > o && a * a / f.magnitudeSquared(s) > o);
|
|
42375
42375
|
}
|
|
42376
|
-
const
|
|
42376
|
+
const HO = new f(), WO = new f();
|
|
42377
42377
|
function d0(e, t, n) {
|
|
42378
42378
|
const i = e.transformPositionToScaledSpace(
|
|
42379
42379
|
t,
|
|
42380
|
-
|
|
42380
|
+
HO
|
|
42381
42381
|
);
|
|
42382
42382
|
let o = f.magnitudeSquared(i), s = Math.sqrt(o);
|
|
42383
42383
|
const a = f.divideByScalar(
|
|
@@ -42431,7 +42431,7 @@ function ve(e, t) {
|
|
|
42431
42431
|
throw new C(
|
|
42432
42432
|
"distanceDisplayCondition.far must be greater than distanceDisplayCondition.near."
|
|
42433
42433
|
);
|
|
42434
|
-
o =
|
|
42434
|
+
o = ot.clone(
|
|
42435
42435
|
o
|
|
42436
42436
|
);
|
|
42437
42437
|
}
|
|
@@ -42650,7 +42650,7 @@ Object.defineProperties(ve.prototype, {
|
|
|
42650
42650
|
set: function(e) {
|
|
42651
42651
|
if (h(e) && e.far <= e.near)
|
|
42652
42652
|
throw new C("far must be greater than near");
|
|
42653
|
-
|
|
42653
|
+
ot.equals(this._distanceDisplayCondition, e) || (this._distanceDisplayCondition = ot.clone(
|
|
42654
42654
|
e,
|
|
42655
42655
|
this._distanceDisplayCondition
|
|
42656
42656
|
), cn(this, QO));
|
|
@@ -42789,7 +42789,7 @@ ve.prototype.equals = function(e) {
|
|
|
42789
42789
|
return this === e || h(e) && this._id === e._id && f.equals(this._position, e._position) && w.equals(this._color, e._color) && this._pixelSize === e._pixelSize && this._outlineWidth === e._outlineWidth && this._show === e._show && w.equals(this._outlineColor, e._outlineColor) && Te.equals(this._scaleByDistance, e._scaleByDistance) && Te.equals(
|
|
42790
42790
|
this._translucencyByDistance,
|
|
42791
42791
|
e._translucencyByDistance
|
|
42792
|
-
) &&
|
|
42792
|
+
) && ot.equals(
|
|
42793
42793
|
this._distanceDisplayCondition,
|
|
42794
42794
|
e._distanceDisplayCondition
|
|
42795
42795
|
) && this._disableDepthTestDistance === e._disableDepthTestDistance && this._splitDirection === e._splitDirection;
|
|
@@ -43029,7 +43029,7 @@ void main()
|
|
|
43029
43029
|
v_pickColor = pickColor;
|
|
43030
43030
|
v_splitDirection = distanceDisplayConditionAndDisableDepthAndSplitDirection.w;
|
|
43031
43031
|
}
|
|
43032
|
-
`, nv = ve.SHOW_INDEX, El = ve.POSITION_INDEX, g0 = ve.COLOR_INDEX, iv = ve.OUTLINE_COLOR_INDEX, ov = ve.OUTLINE_WIDTH_INDEX, rv = ve.PIXEL_SIZE_INDEX, y0 = ve.SCALE_BY_DISTANCE_INDEX, x0 = ve.TRANSLUCENCY_BY_DISTANCE_INDEX, C0 = ve.DISTANCE_DISPLAY_CONDITION_INDEX, sv = ve.DISABLE_DEPTH_DISTANCE_INDEX, av = ve.SPLIT_DIRECTION_INDEX, rh = ve.NUMBER_OF_PROPERTIES,
|
|
43032
|
+
`, nv = ve.SHOW_INDEX, El = ve.POSITION_INDEX, g0 = ve.COLOR_INDEX, iv = ve.OUTLINE_COLOR_INDEX, ov = ve.OUTLINE_WIDTH_INDEX, rv = ve.PIXEL_SIZE_INDEX, y0 = ve.SCALE_BY_DISTANCE_INDEX, x0 = ve.TRANSLUCENCY_BY_DISTANCE_INDEX, C0 = ve.DISTANCE_DISPLAY_CONDITION_INDEX, sv = ve.DISABLE_DEPTH_DISTANCE_INDEX, av = ve.SPLIT_DIRECTION_INDEX, rh = ve.NUMBER_OF_PROPERTIES, Gt = {
|
|
43033
43033
|
positionHighAndSize: 0,
|
|
43034
43034
|
positionLowAndOutline: 1,
|
|
43035
43035
|
compressedAttribute0: 2,
|
|
@@ -43047,7 +43047,7 @@ function pn(e) {
|
|
|
43047
43047
|
!1
|
|
43048
43048
|
), this.blendOption = _(
|
|
43049
43049
|
e.blendOption,
|
|
43050
|
-
|
|
43050
|
+
lt.OPAQUE_AND_TRANSLUCENT
|
|
43051
43051
|
), this._blendOption = void 0, this._mode = pe.SCENE3D, this._maxTotalPointSize = 1, this._buffersUsage = [
|
|
43052
43052
|
Ae.STATIC_DRAW,
|
|
43053
43053
|
// SHOW_INDEX
|
|
@@ -43141,37 +43141,37 @@ function cv(e, t, n) {
|
|
|
43141
43141
|
e,
|
|
43142
43142
|
[
|
|
43143
43143
|
{
|
|
43144
|
-
index:
|
|
43144
|
+
index: Gt.positionHighAndSize,
|
|
43145
43145
|
componentsPerAttribute: 4,
|
|
43146
43146
|
componentDatatype: oe.FLOAT,
|
|
43147
43147
|
usage: n[El]
|
|
43148
43148
|
},
|
|
43149
43149
|
{
|
|
43150
|
-
index:
|
|
43150
|
+
index: Gt.positionLowAndShow,
|
|
43151
43151
|
componentsPerAttribute: 4,
|
|
43152
43152
|
componentDatatype: oe.FLOAT,
|
|
43153
43153
|
usage: n[El]
|
|
43154
43154
|
},
|
|
43155
43155
|
{
|
|
43156
|
-
index:
|
|
43156
|
+
index: Gt.compressedAttribute0,
|
|
43157
43157
|
componentsPerAttribute: 4,
|
|
43158
43158
|
componentDatatype: oe.FLOAT,
|
|
43159
43159
|
usage: n[g0]
|
|
43160
43160
|
},
|
|
43161
43161
|
{
|
|
43162
|
-
index:
|
|
43162
|
+
index: Gt.compressedAttribute1,
|
|
43163
43163
|
componentsPerAttribute: 4,
|
|
43164
43164
|
componentDatatype: oe.FLOAT,
|
|
43165
43165
|
usage: n[x0]
|
|
43166
43166
|
},
|
|
43167
43167
|
{
|
|
43168
|
-
index:
|
|
43168
|
+
index: Gt.scaleByDistance,
|
|
43169
43169
|
componentsPerAttribute: 4,
|
|
43170
43170
|
componentDatatype: oe.FLOAT,
|
|
43171
43171
|
usage: n[y0]
|
|
43172
43172
|
},
|
|
43173
43173
|
{
|
|
43174
|
-
index:
|
|
43174
|
+
index: Gt.distanceDisplayConditionAndDisableDepthAndSplitDirection,
|
|
43175
43175
|
componentsPerAttribute: 4,
|
|
43176
43176
|
componentDatatype: oe.FLOAT,
|
|
43177
43177
|
usage: n[C0]
|
|
@@ -43193,9 +43193,9 @@ function T0(e, t, n, i) {
|
|
|
43193
43193
|
e._maxPixelSize,
|
|
43194
43194
|
a + c
|
|
43195
43195
|
);
|
|
43196
|
-
const l = n[
|
|
43196
|
+
const l = n[Gt.positionHighAndSize], u = Nc.high;
|
|
43197
43197
|
l(o, u.x, u.y, u.z, a);
|
|
43198
|
-
const d = n[
|
|
43198
|
+
const d = n[Gt.positionLowAndOutline], p = Nc.low;
|
|
43199
43199
|
d(o, p.x, p.y, p.z, c);
|
|
43200
43200
|
}
|
|
43201
43201
|
const Vs = 65536, mr = 256;
|
|
@@ -43206,7 +43206,7 @@ function b0(e, t, n, i) {
|
|
|
43206
43206
|
l = w.floatToByte(c.red), u = w.floatToByte(c.green), d = w.floatToByte(c.blue);
|
|
43207
43207
|
const g = l * Vs + u * mr + d;
|
|
43208
43208
|
l = w.floatToByte(a.red), u = w.floatToByte(a.green), d = w.floatToByte(a.blue);
|
|
43209
|
-
const y = l * Vs + u * mr + d, x = w.floatToByte(s.alpha) * Vs + w.floatToByte(c.alpha) * mr + w.floatToByte(a.alpha), E = n[
|
|
43209
|
+
const y = l * Vs + u * mr + d, x = w.floatToByte(s.alpha) * Vs + w.floatToByte(c.alpha) * mr + w.floatToByte(a.alpha), E = n[Gt.compressedAttribute0];
|
|
43210
43210
|
E(o, p, g, y, x);
|
|
43211
43211
|
}
|
|
43212
43212
|
function w0(e, t, n, i) {
|
|
@@ -43218,17 +43218,17 @@ function w0(e, t, n, i) {
|
|
|
43218
43218
|
i.color.alpha === 0 && i.outlineColor.alpha === 0 && (d = !1), a = S.clamp(a, 0, 1), a = a === 1 ? 255 : a * 255 | 0;
|
|
43219
43219
|
const p = (d ? 1 : 0) * mr + a;
|
|
43220
43220
|
l = S.clamp(l, 0, 1), l = l === 1 ? 255 : l * 255 | 0;
|
|
43221
|
-
const g = l, y = n[
|
|
43221
|
+
const g = l, y = n[Gt.compressedAttribute1];
|
|
43222
43222
|
y(o, p, g, s, c);
|
|
43223
43223
|
}
|
|
43224
43224
|
function S0(e, t, n, i) {
|
|
43225
|
-
const o = i._index, s = n[
|
|
43225
|
+
const o = i._index, s = n[Gt.scaleByDistance];
|
|
43226
43226
|
let a = 0, c = 1, l = 1, u = 1;
|
|
43227
43227
|
const d = i.scaleByDistance;
|
|
43228
43228
|
h(d) && (a = d.near, c = d.nearValue, l = d.far, u = d.farValue, (c !== 1 || u !== 1) && (e._shaderScaleByDistance = !0)), s(o, a, c, l, u);
|
|
43229
43229
|
}
|
|
43230
43230
|
function A0(e, t, n, i) {
|
|
43231
|
-
const o = i._index, s = n[
|
|
43231
|
+
const o = i._index, s = n[Gt.distanceDisplayConditionAndDisableDepthAndSplitDirection];
|
|
43232
43232
|
let a = 0, c = Number.MAX_VALUE;
|
|
43233
43233
|
const l = i.distanceDisplayCondition;
|
|
43234
43234
|
h(l) && (a = l.near, c = l.far, a *= a, c *= c, e._shaderDistanceDisplayCondition = !0);
|
|
@@ -43341,16 +43341,16 @@ pn.prototype.update = function(e) {
|
|
|
43341
43341
|
);
|
|
43342
43342
|
const M = B.length;
|
|
43343
43343
|
if (c = this._vaf.writers, o / n > 0.1) {
|
|
43344
|
-
for (let
|
|
43345
|
-
const P = i[
|
|
43344
|
+
for (let G = 0; G < o; ++G) {
|
|
43345
|
+
const P = i[G];
|
|
43346
43346
|
P._dirty = !1;
|
|
43347
43347
|
for (let V = 0; V < M; ++V)
|
|
43348
43348
|
B[V](this, l, c, P);
|
|
43349
43349
|
}
|
|
43350
43350
|
this._vaf.commit();
|
|
43351
43351
|
} else {
|
|
43352
|
-
for (let
|
|
43353
|
-
const P = i[
|
|
43352
|
+
for (let G = 0; G < o; ++G) {
|
|
43353
|
+
const P = i[G];
|
|
43354
43354
|
P._dirty = !1;
|
|
43355
43355
|
for (let V = 0; V < M; ++V)
|
|
43356
43356
|
B[V](this, l, c, P);
|
|
@@ -43376,13 +43376,13 @@ pn.prototype.update = function(e) {
|
|
|
43376
43376
|
this._boundingVolume
|
|
43377
43377
|
), fv(this, e, p);
|
|
43378
43378
|
const y = this._blendOption !== this.blendOption;
|
|
43379
|
-
this._blendOption = this.blendOption, y && (this._blendOption ===
|
|
43379
|
+
this._blendOption = this.blendOption, y && (this._blendOption === lt.OPAQUE || this._blendOption === lt.OPAQUE_AND_TRANSLUCENT ? this._rsOpaque = ke.fromCache({
|
|
43380
43380
|
depthTest: {
|
|
43381
43381
|
enabled: !0,
|
|
43382
43382
|
func: R.LEQUAL
|
|
43383
43383
|
},
|
|
43384
43384
|
depthMask: !0
|
|
43385
|
-
}) : this._rsOpaque = void 0, this._blendOption ===
|
|
43385
|
+
}) : this._rsOpaque = void 0, this._blendOption === lt.TRANSLUCENT || this._blendOption === lt.OPAQUE_AND_TRANSLUCENT ? this._rsTranslucent = ke.fromCache({
|
|
43386
43386
|
depthTest: {
|
|
43387
43387
|
enabled: !0,
|
|
43388
43388
|
func: R.LEQUAL
|
|
@@ -43393,51 +43393,51 @@ pn.prototype.update = function(e) {
|
|
|
43393
43393
|
let x, E;
|
|
43394
43394
|
(y || this._shaderScaleByDistance && !this._compiledShaderScaleByDistance || this._shaderTranslucencyByDistance && !this._compiledShaderTranslucencyByDistance || this._shaderDistanceDisplayCondition && !this._compiledShaderDistanceDisplayCondition || this._shaderDisableDepthDistance !== this._compiledShaderDisableDepthDistance) && (x = new ye({
|
|
43395
43395
|
sources: [tv]
|
|
43396
|
-
}), this._shaderScaleByDistance && x.defines.push("EYE_DISTANCE_SCALING"), this._shaderTranslucencyByDistance && x.defines.push("EYE_DISTANCE_TRANSLUCENCY"), this._shaderDistanceDisplayCondition && x.defines.push("DISTANCE_DISPLAY_CONDITION"), this._shaderDisableDepthDistance && x.defines.push("DISABLE_DEPTH_DISTANCE"), this._blendOption ===
|
|
43396
|
+
}), this._shaderScaleByDistance && x.defines.push("EYE_DISTANCE_SCALING"), this._shaderTranslucencyByDistance && x.defines.push("EYE_DISTANCE_TRANSLUCENCY"), this._shaderDistanceDisplayCondition && x.defines.push("DISTANCE_DISPLAY_CONDITION"), this._shaderDisableDepthDistance && x.defines.push("DISABLE_DEPTH_DISTANCE"), this._blendOption === lt.OPAQUE_AND_TRANSLUCENT && (E = new ye({
|
|
43397
43397
|
defines: ["OPAQUE"],
|
|
43398
43398
|
sources: [ks]
|
|
43399
|
-
}), this._sp =
|
|
43399
|
+
}), this._sp = it.replaceCache({
|
|
43400
43400
|
context: l,
|
|
43401
43401
|
shaderProgram: this._sp,
|
|
43402
43402
|
vertexShaderSource: x,
|
|
43403
43403
|
fragmentShaderSource: E,
|
|
43404
|
-
attributeLocations:
|
|
43404
|
+
attributeLocations: Gt
|
|
43405
43405
|
}), E = new ye({
|
|
43406
43406
|
defines: ["TRANSLUCENT"],
|
|
43407
43407
|
sources: [ks]
|
|
43408
|
-
}), this._spTranslucent =
|
|
43408
|
+
}), this._spTranslucent = it.replaceCache({
|
|
43409
43409
|
context: l,
|
|
43410
43410
|
shaderProgram: this._spTranslucent,
|
|
43411
43411
|
vertexShaderSource: x,
|
|
43412
43412
|
fragmentShaderSource: E,
|
|
43413
|
-
attributeLocations:
|
|
43414
|
-
})), this._blendOption ===
|
|
43413
|
+
attributeLocations: Gt
|
|
43414
|
+
})), this._blendOption === lt.OPAQUE && (E = new ye({
|
|
43415
43415
|
sources: [ks]
|
|
43416
|
-
}), this._sp =
|
|
43416
|
+
}), this._sp = it.replaceCache({
|
|
43417
43417
|
context: l,
|
|
43418
43418
|
shaderProgram: this._sp,
|
|
43419
43419
|
vertexShaderSource: x,
|
|
43420
43420
|
fragmentShaderSource: E,
|
|
43421
|
-
attributeLocations:
|
|
43422
|
-
})), this._blendOption ===
|
|
43421
|
+
attributeLocations: Gt
|
|
43422
|
+
})), this._blendOption === lt.TRANSLUCENT && (E = new ye({
|
|
43423
43423
|
sources: [ks]
|
|
43424
|
-
}), this._spTranslucent =
|
|
43424
|
+
}), this._spTranslucent = it.replaceCache({
|
|
43425
43425
|
context: l,
|
|
43426
43426
|
shaderProgram: this._spTranslucent,
|
|
43427
43427
|
vertexShaderSource: x,
|
|
43428
43428
|
fragmentShaderSource: E,
|
|
43429
|
-
attributeLocations:
|
|
43429
|
+
attributeLocations: Gt
|
|
43430
43430
|
})), this._compiledShaderScaleByDistance = this._shaderScaleByDistance, this._compiledShaderTranslucencyByDistance = this._shaderTranslucencyByDistance, this._compiledShaderDistanceDisplayCondition = this._shaderDistanceDisplayCondition, this._compiledShaderDisableDepthDistance = this._shaderDisableDepthDistance);
|
|
43431
43431
|
let T, D, A, O;
|
|
43432
43432
|
const I = e.commandList;
|
|
43433
43433
|
if (u.render || d) {
|
|
43434
|
-
const B = this._colorCommands, M = this._blendOption ===
|
|
43434
|
+
const B = this._colorCommands, M = this._blendOption === lt.OPAQUE, G = this._blendOption === lt.OPAQUE_AND_TRANSLUCENT;
|
|
43435
43435
|
T = this._vaf.va, D = T.length, B.length = D;
|
|
43436
|
-
const P =
|
|
43436
|
+
const P = G ? D * 2 : D;
|
|
43437
43437
|
for (O = 0; O < P; ++O) {
|
|
43438
|
-
const V = M ||
|
|
43439
|
-
A = B[O], h(A) || (A = B[O] = new Xe()), A.primitiveType =
|
|
43440
|
-
const k =
|
|
43438
|
+
const V = M || G && O % 2 === 0;
|
|
43439
|
+
A = B[O], h(A) || (A = B[O] = new Xe()), A.primitiveType = He.POINTS, A.pass = V || !G ? Rt.OPAQUE : Rt.TRANSLUCENT, A.owner = this;
|
|
43440
|
+
const k = G ? Math.floor(O / 2) : O;
|
|
43441
43441
|
A.boundingVolume = p, A.modelMatrix = g, A.shaderProgram = V ? this._sp : this._spTranslucent, A.uniformMap = this._uniforms, A.vertexArray = T[k].va, A.renderState = V ? this._rsOpaque : this._rsTranslucent, A.debugShowBoundingVolume = this.debugShowBoundingVolume, A.pickId = "v_pickColor", I.push(A);
|
|
43442
43442
|
}
|
|
43443
43443
|
}
|
|
@@ -43681,7 +43681,7 @@ function yv(e) {
|
|
|
43681
43681
|
D,
|
|
43682
43682
|
e
|
|
43683
43683
|
);
|
|
43684
|
-
let O, I, B, M,
|
|
43684
|
+
let O, I, B, M, G, P, V, k, H, j, r, b;
|
|
43685
43685
|
if (A.length > 0) {
|
|
43686
43686
|
const v = new ah(A.length, 64, Uint32Array);
|
|
43687
43687
|
for (let z = 0; z < A.length; ++z)
|
|
@@ -43704,11 +43704,11 @@ function yv(e) {
|
|
|
43704
43704
|
let $ = z.width = z.width * W, X = z.height = z.height * W;
|
|
43705
43705
|
$ = Math.max($, z.minimumWidth), X = Math.max(X, z.minimumHeight);
|
|
43706
43706
|
const ie = q.x - $ * 0.5, se = q.y - X * 0.5, me = q.x + $, Ce = q.y + X;
|
|
43707
|
-
for (
|
|
43708
|
-
V =
|
|
43707
|
+
for (G = v.range(ie, se, me, Ce), P = G.length, j = 0, H = [], I = 0; I < P; ++I)
|
|
43708
|
+
V = G[I], k = A[V], k.clustered || (++j, r = k.collection, b = k.index, H.push(r.get(b).id));
|
|
43709
43709
|
if (j >= d)
|
|
43710
|
-
for (id(z.position, j,
|
|
43711
|
-
A[
|
|
43710
|
+
for (id(z.position, j, H, e), g.push(z), I = 0; I < P; ++I)
|
|
43711
|
+
A[G[I]].clustered = !0;
|
|
43712
43712
|
}
|
|
43713
43713
|
for (B = A.length, O = 0; O < B; ++O) {
|
|
43714
43714
|
const z = A[O];
|
|
@@ -43727,15 +43727,15 @@ function yv(e) {
|
|
|
43727
43727
|
M,
|
|
43728
43728
|
_v
|
|
43729
43729
|
);
|
|
43730
|
-
|
|
43730
|
+
G = v.range(
|
|
43731
43731
|
M.x,
|
|
43732
43732
|
M.y,
|
|
43733
43733
|
M.x + M.width,
|
|
43734
43734
|
M.y + M.height
|
|
43735
|
-
), P =
|
|
43735
|
+
), P = G.length;
|
|
43736
43736
|
const $ = f.clone(q.position);
|
|
43737
|
-
for (j = 1,
|
|
43738
|
-
if (V =
|
|
43737
|
+
for (j = 1, H = [q.id], I = 0; I < P; ++I)
|
|
43738
|
+
if (V = G[I], k = A[V], !k.clustered) {
|
|
43739
43739
|
const X = k.collection.get(
|
|
43740
43740
|
k.index
|
|
43741
43741
|
), ie = nd(
|
|
@@ -43749,7 +43749,7 @@ function yv(e) {
|
|
|
43749
43749
|
X.position,
|
|
43750
43750
|
$,
|
|
43751
43751
|
$
|
|
43752
|
-
), xe.union(W, ie, W), ++j,
|
|
43752
|
+
), xe.union(W, ie, W), ++j, H.push(X.id);
|
|
43753
43753
|
}
|
|
43754
43754
|
if (j >= d) {
|
|
43755
43755
|
const X = f.multiplyByScalar(
|
|
@@ -43757,14 +43757,14 @@ function yv(e) {
|
|
|
43757
43757
|
1 / j,
|
|
43758
43758
|
$
|
|
43759
43759
|
);
|
|
43760
|
-
for (id(X, j,
|
|
43760
|
+
for (id(X, j, H, e), g.push({
|
|
43761
43761
|
position: X,
|
|
43762
43762
|
width: W.width,
|
|
43763
43763
|
height: W.height,
|
|
43764
43764
|
minimumWidth: M.width,
|
|
43765
43765
|
minimumHeight: M.height
|
|
43766
43766
|
}), I = 0; I < P; ++I)
|
|
43767
|
-
A[
|
|
43767
|
+
A[G[I]].clustered = !0;
|
|
43768
43768
|
} else
|
|
43769
43769
|
pv(q, e);
|
|
43770
43770
|
}
|
|
@@ -44109,28 +44109,29 @@ function Vc(e, t, n = 10, i = "#ba1919") {
|
|
|
44109
44109
|
}
|
|
44110
44110
|
};
|
|
44111
44111
|
}
|
|
44112
|
-
function Cv(e, t, n, i = new
|
|
44112
|
+
function Cv(e, t, n, i, o = new dt(
|
|
44113
44113
|
0,
|
|
44114
44114
|
0,
|
|
44115
44115
|
0
|
|
44116
|
-
),
|
|
44116
|
+
), s = 1) {
|
|
44117
44117
|
return {
|
|
44118
|
-
|
|
44119
|
-
|
|
44118
|
+
id: e,
|
|
44119
|
+
name: n,
|
|
44120
|
+
position: t,
|
|
44120
44121
|
orientation: _e.headingPitchRollQuaternion(
|
|
44121
|
-
|
|
44122
|
-
|
|
44122
|
+
t,
|
|
44123
|
+
o
|
|
44123
44124
|
),
|
|
44124
44125
|
model: {
|
|
44125
44126
|
show: !0,
|
|
44126
|
-
uri:
|
|
44127
|
-
scale:
|
|
44127
|
+
uri: i,
|
|
44128
|
+
scale: s,
|
|
44128
44129
|
heightReference: _i.NONE
|
|
44129
44130
|
}
|
|
44130
44131
|
};
|
|
44131
44132
|
}
|
|
44132
44133
|
function qc(e, t, n, i, o) {
|
|
44133
|
-
n || (n = new
|
|
44134
|
+
n || (n = new dt());
|
|
44134
44135
|
const s = _e.headingPitchRollQuaternion(
|
|
44135
44136
|
e,
|
|
44136
44137
|
n,
|
|
@@ -44147,7 +44148,7 @@ function qc(e, t, n, i, o) {
|
|
|
44147
44148
|
new f()
|
|
44148
44149
|
);
|
|
44149
44150
|
}
|
|
44150
|
-
function
|
|
44151
|
+
function Gc(e, t = 4) {
|
|
44151
44152
|
const n = [];
|
|
44152
44153
|
for (var i = 0; i < e.length - 1; i++)
|
|
44153
44154
|
n.push(
|
|
@@ -44167,7 +44168,7 @@ function Ev(e, t, n, i) {
|
|
|
44167
44168
|
var D = f.angleBetween(y, x);
|
|
44168
44169
|
o.push(e);
|
|
44169
44170
|
for (var A = 1; A < i - 1; A++) {
|
|
44170
|
-
var O = A * 1 / (i - 1), I = 1 - O, B = Math.sin(I * D) / Math.sin(D), M = Math.sin(O * D) / Math.sin(D),
|
|
44171
|
+
var O = A * 1 / (i - 1), I = 1 - O, B = Math.sin(I * D) / Math.sin(D), M = Math.sin(O * D) / Math.sin(D), G = f.multiplyByScalar(
|
|
44171
44172
|
y,
|
|
44172
44173
|
B,
|
|
44173
44174
|
new f()
|
|
@@ -44176,13 +44177,13 @@ function Ev(e, t, n, i) {
|
|
|
44176
44177
|
M,
|
|
44177
44178
|
new f()
|
|
44178
44179
|
), V = f.add(
|
|
44179
|
-
|
|
44180
|
+
G,
|
|
44180
44181
|
P,
|
|
44181
44182
|
new f()
|
|
44182
|
-
), k = O * Math.PI,
|
|
44183
|
+
), k = O * Math.PI, H = E * I + T * O + Math.sin(k) * g;
|
|
44183
44184
|
V = f.multiplyByScalar(
|
|
44184
44185
|
V,
|
|
44185
|
-
|
|
44186
|
+
H,
|
|
44186
44187
|
V
|
|
44187
44188
|
), o.push(V);
|
|
44188
44189
|
}
|
|
@@ -44192,35 +44193,35 @@ class bv {
|
|
|
44192
44193
|
// 类的构造函数,用于初始化属性
|
|
44193
44194
|
constructor(t, n, i) {
|
|
44194
44195
|
// 塔模型路径
|
|
44195
|
-
|
|
44196
|
+
_t(this, "towerModelUri");
|
|
44196
44197
|
//三维场景
|
|
44197
|
-
|
|
44198
|
-
|
|
44198
|
+
_t(this, "viewer");
|
|
44199
|
+
_t(this, "LineInfo");
|
|
44199
44200
|
// 模型集合
|
|
44200
|
-
|
|
44201
|
-
|
|
44201
|
+
_t(this, "dataSource2", new hh("myEntity2"));
|
|
44202
|
+
_t(this, "entityCollection2", this.dataSource2.entities);
|
|
44202
44203
|
// 塔集合
|
|
44203
|
-
|
|
44204
|
+
_t(this, "offsetTowers", []);
|
|
44204
44205
|
// 单根导线1
|
|
44205
|
-
|
|
44206
|
+
_t(this, "offsetLines11", []);
|
|
44206
44207
|
// 单根导线2
|
|
44207
|
-
|
|
44208
|
+
_t(this, "offsetLines12", []);
|
|
44208
44209
|
// 单根导线3
|
|
44209
|
-
|
|
44210
|
+
_t(this, "offsetLines13", []);
|
|
44210
44211
|
// 导线相序A
|
|
44211
|
-
|
|
44212
|
+
_t(this, "offsetArcLines1A", []);
|
|
44212
44213
|
// 导线相序B
|
|
44213
|
-
|
|
44214
|
+
_t(this, "offsetArcLines1B", []);
|
|
44214
44215
|
// 导线相序C
|
|
44215
|
-
|
|
44216
|
+
_t(this, "offsetArcLines1C", []);
|
|
44216
44217
|
this.towerModelUri = n, this.viewer = t, this.LineInfo = i;
|
|
44217
44218
|
}
|
|
44218
44219
|
//单回路线路加载
|
|
44219
44220
|
loadLineTower() {
|
|
44220
44221
|
this.LineInfo.towers.forEach((t) => {
|
|
44221
|
-
this.offsetTowers.push(f.fromDegrees(t
|
|
44222
|
+
this.offsetTowers.push(f.fromDegrees(t.Longitude, t.Latitude, t.Altitude - t.towerHeight));
|
|
44222
44223
|
}), this.offsetTowers.forEach((t, n) => {
|
|
44223
|
-
let i = new
|
|
44224
|
+
let i = new dt(S.toRadians(this.LineInfo.towers[n].Roll), 0, 0);
|
|
44224
44225
|
this.offsetLines11.push(qc(
|
|
44225
44226
|
t,
|
|
44226
44227
|
new f(
|
|
@@ -44246,9 +44247,9 @@ class bv {
|
|
|
44246
44247
|
),
|
|
44247
44248
|
i
|
|
44248
44249
|
));
|
|
44249
|
-
}), this.offsetArcLines1A =
|
|
44250
|
-
const i = S.toRadians(this.LineInfo.
|
|
44251
|
-
this.entityCollection2.add(Cv(t,
|
|
44250
|
+
}), this.offsetArcLines1A = Gc(this.offsetLines11), this.offsetArcLines1B = Gc(this.offsetLines12), this.offsetArcLines1C = Gc(this.offsetLines13), this.entityCollection2.add(Vc(this.offsetArcLines1A, "导线A", this.LineInfo.lineWidth, this.LineInfo.lineAColor)), this.entityCollection2.add(Vc(this.offsetArcLines1B, "导线B", this.LineInfo.lineWidth, this.LineInfo.lineBColor)), this.entityCollection2.add(Vc(this.offsetArcLines1C, "导线C", this.LineInfo.lineWidth, this.LineInfo.lineCColor)), this.offsetTowers.forEach((t, n) => {
|
|
44251
|
+
const i = S.toRadians(this.LineInfo.towers[n].Roll), o = new dt(i, S.toRadians(90), 0);
|
|
44252
|
+
this.entityCollection2.add(Cv(this.LineInfo.towers[n].id, t, this.LineInfo.towers[n].name, this.towerModelUri, o, this.LineInfo.towers[n].towerScale));
|
|
44252
44253
|
});
|
|
44253
44254
|
}
|
|
44254
44255
|
//加载渲染电力线路
|
|
@@ -44256,32 +44257,26 @@ class bv {
|
|
|
44256
44257
|
this.viewer.dataSources.add(this.dataSource2);
|
|
44257
44258
|
}
|
|
44258
44259
|
//移除渲染电力线路
|
|
44259
|
-
|
|
44260
|
+
RemoveLineModel() {
|
|
44260
44261
|
this.viewer.dataSources.remove(this.dataSource2);
|
|
44261
44262
|
}
|
|
44262
44263
|
}
|
|
44263
44264
|
class wv {
|
|
44264
44265
|
constructor() {
|
|
44265
44266
|
// 线路杆塔台账
|
|
44266
|
-
|
|
44267
|
-
//
|
|
44268
|
-
|
|
44269
|
-
//
|
|
44270
|
-
|
|
44271
|
-
//
|
|
44272
|
-
|
|
44273
|
-
// 杆塔C挂点位置
|
|
44274
|
-
tt(this, "TowerCPoint", []);
|
|
44275
|
-
// 塔缩放
|
|
44276
|
-
tt(this, "towerScale", 1);
|
|
44277
|
-
// 电线偏移高度,单位:米
|
|
44278
|
-
tt(this, "towerHeight", 42);
|
|
44267
|
+
_t(this, "towers", []);
|
|
44268
|
+
// 导线A挂点位置
|
|
44269
|
+
_t(this, "TowerAPoint", []);
|
|
44270
|
+
// 导线B挂点位置
|
|
44271
|
+
_t(this, "TowerBPoint", []);
|
|
44272
|
+
// 导线C挂点位置
|
|
44273
|
+
_t(this, "TowerCPoint", []);
|
|
44279
44274
|
// 导线颜色
|
|
44280
|
-
|
|
44281
|
-
|
|
44282
|
-
|
|
44275
|
+
_t(this, "lineAColor", "#FFFFFF");
|
|
44276
|
+
_t(this, "lineBColor", "#FFFFFF");
|
|
44277
|
+
_t(this, "lineCColor", "#FFFFFF");
|
|
44283
44278
|
// 导线宽度
|
|
44284
|
-
|
|
44279
|
+
_t(this, "lineWidth", 1);
|
|
44285
44280
|
}
|
|
44286
44281
|
}
|
|
44287
44282
|
export {
|