earthsdk3-cesium 3.6.0-beta.3 → 3.6.0-beta.4
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/earthsdk3-cesium.iife.js +15 -15
- package/dist/earthsdk3-cesium.js +720 -708
- package/dist/earthsdk3-cesium.umd.cjs +65 -65
- package/dist/types/CzmObjects/general/CzmESGeoJson/CzmGeoJson.d.ts.map +1 -1
- package/dist/types/CzmObjects/general/CzmESGeoJson/index.d.ts +1 -1
- package/dist/types/CzmObjects/general/CzmESGeoJson/index.d.ts.map +1 -1
- package/dist/types/ESCesiumViewer/ViewerExtensions/PickingManager.d.ts.map +1 -1
- package/dist/types/ESCesiumViewer/initCesiumViewer/fixBillboard.d.ts +2 -0
- package/dist/types/ESCesiumViewer/initCesiumViewer/fixBillboard.d.ts.map +1 -0
- package/package.json +2 -2
package/dist/earthsdk3-cesium.js
CHANGED
|
@@ -134,7 +134,7 @@ function as(t, i) {
|
|
|
134
134
|
return ke(t, i);
|
|
135
135
|
throw new Error("toCartesian error: should not be here!");
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function nB(t, i) {
|
|
138
138
|
if (t instanceof h.Cartesian2)
|
|
139
139
|
return yx(t, i);
|
|
140
140
|
if (t instanceof h.Cartesian3)
|
|
@@ -143,7 +143,7 @@ function oB(t, i) {
|
|
|
143
143
|
return wx(t, i);
|
|
144
144
|
throw new Error("fromCartesian error: should not be here!");
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function rB(t, i) {
|
|
147
147
|
return i = i || new h.Cartographic(), i.longitude = h.Math.toRadians(t[0]), i.latitude = h.Math.toRadians(t[1]), i.height = t[2], i;
|
|
148
148
|
}
|
|
149
149
|
function Sr(t, i) {
|
|
@@ -152,49 +152,49 @@ function Sr(t, i) {
|
|
|
152
152
|
function de(t, i) {
|
|
153
153
|
return i = i || new h.Color(), i.red = t[0], i.green = t[1], i.blue = t[2], i.alpha = t[3], i;
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function aB(t, i) {
|
|
156
156
|
return i = i || [0, 0, 0, 0], i[0] = t.red, i[1] = t.green, i[2] = t.blue, i[3] = t.alpha, i;
|
|
157
157
|
}
|
|
158
158
|
function Ko(t, i) {
|
|
159
159
|
return i = i || new h.NearFarScalar(), i.near = t[0], i.nearValue = t[1], i.far = t[2], i.farValue = t[3], i;
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function lB(t, i) {
|
|
162
162
|
return i = i || [0, 0, 0, 0], i[0] = t.near, i[1] = t.nearValue, i[2] = t.far, i[3] = t.farValue, i;
|
|
163
163
|
}
|
|
164
164
|
function Cx(t, i) {
|
|
165
165
|
return i = i || new h.HeadingPitchRoll(), i.heading = h.Math.toRadians(t[0] - 90), i.pitch = h.Math.toRadians(t[1]), i.roll = h.Math.toRadians(t[2]), i;
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function hB(t, i) {
|
|
168
168
|
return i = i || [0, 0, 0], i[0] = h.Math.toDegrees(t.heading + h.Math.PI_OVER_TWO), i[1] = h.Math.toDegrees(t.pitch), i[2] = h.Math.toDegrees(t.roll), i;
|
|
169
169
|
}
|
|
170
170
|
function Hd(t, i) {
|
|
171
171
|
return i = i || new h.DistanceDisplayCondition(), i.near = t[0], i.far = t[1], i;
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function cB(t, i) {
|
|
174
174
|
return i = i || [0, 0], i[0] = t.near, i[1] = t.far, i;
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function dB(t, i) {
|
|
177
177
|
return i = i || new h.Quaternion(), i.x = t[0], i.y = t[1], i.z = t[2], i.w = t[3], i;
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function uB(t, i) {
|
|
180
180
|
return i = i || [0, 0, 0, 0], i[0] = t.x, i[1] = t.y, i[2] = t.z, i[3] = t.w, i;
|
|
181
181
|
}
|
|
182
182
|
const _x = new h.HeadingPitchRoll(), Px = new h.Cartesian3();
|
|
183
|
-
function
|
|
183
|
+
function pB(t, i, e) {
|
|
184
184
|
const s = Cx(i, _x), o = Ve(t, Px);
|
|
185
185
|
return h.Transforms.headingPitchRollQuaternion(o, s, void 0, void 0, e);
|
|
186
186
|
}
|
|
187
187
|
function ht(t, i) {
|
|
188
188
|
return i = i || new h.Rectangle(), i.west = t[0] * Math.PI / 180, i.south = t[1] * Math.PI / 180, i.east = t[2] * Math.PI / 180, i.north = t[3] * Math.PI / 180, i;
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function fB(t, i) {
|
|
191
191
|
return i = i || [0, 0, 0, 0], i[0] = t.west, i[1] = t.south, i[2] = t.east, i[3] = t.north, i;
|
|
192
192
|
}
|
|
193
193
|
const xx = new h.Cartesian3();
|
|
194
194
|
function De(t, i) {
|
|
195
195
|
return i = i || new h.Ellipsoid(), h.Ellipsoid.fromCartesian3(h.Cartesian3.fromArray(t, void 0, xx), i);
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function gB(t, i) {
|
|
198
198
|
return i = i || [0, 0, 0], i[0] = t.radii.x, i[1] = t.radii.y, i[2] = t.radii.z, i;
|
|
199
199
|
}
|
|
200
200
|
function ns(t) {
|
|
@@ -415,14 +415,14 @@ class Yr extends k {
|
|
|
415
415
|
this._czmViewer = e, this._positionReact = o;
|
|
416
416
|
const { positionReact: r, czmViewer: a } = this, [l, c, d] = ki(s), [u, p, f] = ki(r), [m, v, y] = n ? ki(n) : [void 0, void 0, void 0], _ = () => {
|
|
417
417
|
let T = 1, E = Number.NEGATIVE_INFINITY;
|
|
418
|
-
const D = l(), B = u(),
|
|
418
|
+
const D = l(), B = u(), N = m ? m() : 0, G = a.getCurrentCameraInfo();
|
|
419
419
|
if (!D || !B || !G) {
|
|
420
420
|
this._viewDistance.value = E, this._visibleAlpha.value = T;
|
|
421
421
|
return;
|
|
422
422
|
}
|
|
423
|
-
E = $1(G.position, B) - (
|
|
424
|
-
const [W,
|
|
425
|
-
W >
|
|
423
|
+
E = $1(G.position, B) - (N ?? 0);
|
|
424
|
+
const [W, L, V, w] = D;
|
|
425
|
+
W > L || L > V || V > w ? console.error("viewDistanceRange存在问题,需要满足逐级增大的条件,否则不生效!") : E >= L && E <= V ? T = 1 : E <= W || E >= w ? T = 0 : E > W && E < L ? L - W <= 0 ? T = 0 : T = (E - W) / (L - W) : E > V && E < w ? (w <= V && (T = 0), T = (w - E) / (w - V)) : (T = 1, console.error("不应该运行至此!")), this._viewDistance.value = E, this._visibleAlpha.value = T;
|
|
426
426
|
};
|
|
427
427
|
_();
|
|
428
428
|
const C = [
|
|
@@ -496,7 +496,7 @@ function Tr(t, i, e, s) {
|
|
|
496
496
|
const o = Bd(t, e), n = pr(t, e), r = Math.cos(n * Math.PI / 180) * Math.cos(i * Math.PI / 180) + Math.sin(n * Math.PI / 180) * Math.sin(i * Math.PI / 180);
|
|
497
497
|
return r > 0 ? Ot(t, o, i, s) : Ot(t, o, i + 180, s), [r > 0 ? o : -o, s];
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function mB(t, i, e) {
|
|
500
500
|
const s = e * 0.1, o = [];
|
|
501
501
|
for (let n = -9; n < 10; ++n) {
|
|
502
502
|
const r = Ot(t, s * n, i);
|
|
@@ -504,7 +504,7 @@ function gB(t, i, e) {
|
|
|
504
504
|
}
|
|
505
505
|
return o;
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function vB(t, i) {
|
|
508
508
|
return q1(t, i).geometry.coordinates;
|
|
509
509
|
}
|
|
510
510
|
const Dg = new h.Cartesian3(), Fx = new h.Ray(), zx = new h.Plane(h.Cartesian3.UNIT_X, 0);
|
|
@@ -632,7 +632,7 @@ function Rw(t, i) {
|
|
|
632
632
|
return r.height = (o.height + n.height) * 0.5, [r.longitude * s, r.latitude * s, r.height];
|
|
633
633
|
}
|
|
634
634
|
const Lg = new h.Cartesian4(), Wx = new h.Matrix4();
|
|
635
|
-
function
|
|
635
|
+
function yB() {
|
|
636
636
|
return { left: 0, top: 0, right: 0, bottom: 0, depth: 0 };
|
|
637
637
|
}
|
|
638
638
|
function Hx(t, i) {
|
|
@@ -1229,7 +1229,7 @@ const Ug = ze(async (t, i) => {
|
|
|
1229
1229
|
Math.max(...n.map((l) => l[5]))
|
|
1230
1230
|
], e.tilesUrl.root.children = a), e;
|
|
1231
1231
|
});
|
|
1232
|
-
function
|
|
1232
|
+
function wB(t) {
|
|
1233
1233
|
return new Promise((i, e) => {
|
|
1234
1234
|
Ug.restart(void 0, t), Ug.completeEvent.don((s) => {
|
|
1235
1235
|
i(s);
|
|
@@ -1480,7 +1480,7 @@ function Ab(t) {
|
|
|
1480
1480
|
}
|
|
1481
1481
|
return i = i || `"${oe.context.getStrFromEnv(e)}"`, i;
|
|
1482
1482
|
}
|
|
1483
|
-
function
|
|
1483
|
+
function CB(t) {
|
|
1484
1484
|
return t instanceof bh ? Tb(t) : t instanceof wa ? bb(t) : t instanceof _i ? Eb(t) : "getCzmCode目前只支持影像地形或瓦片";
|
|
1485
1485
|
}
|
|
1486
1486
|
function Gw(t, i) {
|
|
@@ -1556,8 +1556,8 @@ class Db extends k {
|
|
|
1556
1556
|
c.jobScheduler.disableThisFrame(), c.updateFrameState(), v.invertClassification = !1, v.passes.pick = !0, v.passes.offscreen = !0, v.tilesetPassState = Rb, y.update(v), c.updateEnvironment(), c.updateAndExecuteCommands(b, Mb), c.resolveFramebuffers(b);
|
|
1557
1557
|
let { depths: T, positions: E } = this.pickPositions(u, f, c, e, s);
|
|
1558
1558
|
return r && ((D = this.frustumPrimitives) == null || D.add(this.getFrustumOutline(_.camera))), a && E && E.forEach((B) => {
|
|
1559
|
-
var
|
|
1560
|
-
(
|
|
1559
|
+
var N;
|
|
1560
|
+
(N = this.pointPrimitives) == null || N.add({
|
|
1561
1561
|
pixelSize: 5,
|
|
1562
1562
|
color: h.Color.GREEN,
|
|
1563
1563
|
position: B
|
|
@@ -1575,10 +1575,10 @@ class Db extends k {
|
|
|
1575
1575
|
for (let _ = 0, C = y.length; _ < C; _++) {
|
|
1576
1576
|
const b = y[_];
|
|
1577
1577
|
if (h.defined(b) && b > 0 && b < 1) {
|
|
1578
|
-
const T = d.frustumCommandsList[m], E = T.near * (_ !== 0 ? o.opaqueFrustumNearOffset : 1), D = T.far, B = E + b * (D - E),
|
|
1579
|
-
h.Cartesian3.multiplyByScalar(u.up, W, f), h.Cartesian3.add(f, u.position,
|
|
1578
|
+
const T = d.frustumCommandsList[m], E = T.near * (_ !== 0 ? o.opaqueFrustumNearOffset : 1), D = T.far, B = E + b * (D - E), N = Math.floor(_ / d.viewport.width), G = _ % d.viewport.width, W = (N - d.viewport.height / 2) * (r / d.viewport.height), L = (G - d.viewport.width / 2) * (n / d.viewport.width), V = new h.Cartesian3();
|
|
1579
|
+
h.Cartesian3.multiplyByScalar(u.up, W, f), h.Cartesian3.add(f, u.position, V), h.Cartesian3.multiplyByScalar(u.right, L, f), h.Cartesian3.add(f, V, V);
|
|
1580
1580
|
const w = h.Ray.clone(e);
|
|
1581
|
-
w.origin =
|
|
1581
|
+
w.origin = V;
|
|
1582
1582
|
const S = h.Ray.getPoint(w, B);
|
|
1583
1583
|
!a[_] && (a[_] = b), !l[_] && (l[_] = S);
|
|
1584
1584
|
}
|
|
@@ -1829,7 +1829,7 @@ class Ob extends k {
|
|
|
1829
1829
|
const [n, r, a] = ki(e), [l, c, d] = ki(s), [u, p, f] = ki(o);
|
|
1830
1830
|
}
|
|
1831
1831
|
}
|
|
1832
|
-
function
|
|
1832
|
+
function _B(t, i) {
|
|
1833
1833
|
const e = document.createElement("a");
|
|
1834
1834
|
e.href = t;
|
|
1835
1835
|
const s = e.href, o = new Image();
|
|
@@ -1860,7 +1860,7 @@ function Hg(t, i = !1) {
|
|
|
1860
1860
|
const e = ad(t[0], i), s = ad(t[1], i), o = Tf(t[2]);
|
|
1861
1861
|
return [e, s, o];
|
|
1862
1862
|
}
|
|
1863
|
-
function
|
|
1863
|
+
function PB(t) {
|
|
1864
1864
|
return Math.abs(t) < 1e6 ? `${t.toFixed(2)} m²` : `${(t / 1e6).toFixed(2)} km²`;
|
|
1865
1865
|
}
|
|
1866
1866
|
function Qr(t, i = 48) {
|
|
@@ -2004,7 +2004,7 @@ function $g(t, i) {
|
|
|
2004
2004
|
const _ = [...new Array(o).keys()], C = _.map((E) => [E, E + o + 1, E + o + 2, E, E + o + 2, E + 1]), b = _.map((E) => [E, E + o + 2, E + o + 1, E, E + 1, E + o + 2]), T = [...C, ...b].flat();
|
|
2005
2005
|
t.indexTypedArray = new Uint16Array(T);
|
|
2006
2006
|
}
|
|
2007
|
-
function
|
|
2007
|
+
function xB(t, i) {
|
|
2008
2008
|
for (let [e, { defaultValue: s, componentName: o, originPropName: n = e }] of Object.entries(i))
|
|
2009
2009
|
Reflect.has(t, e) ? console.error(`Prop(${e}) conflicts!`) : Object.defineProperties(t, {
|
|
2010
2010
|
[e]: {
|
|
@@ -2022,7 +2022,7 @@ function PB(t, i) {
|
|
|
2022
2022
|
}
|
|
2023
2023
|
});
|
|
2024
2024
|
}
|
|
2025
|
-
function
|
|
2025
|
+
function bB(t) {
|
|
2026
2026
|
const i = {};
|
|
2027
2027
|
for (let [e, { defaultValue: s }] of Object.entries(t))
|
|
2028
2028
|
i[e] = s;
|
|
@@ -2643,9 +2643,9 @@ const Pc = new h.Cartesian3(), oS = new h.HeadingPitchRoll(), Yg = new h.Matrix3
|
|
|
2643
2643
|
function aS(t, i, e, s) {
|
|
2644
2644
|
if (!s || s.length === 0) {
|
|
2645
2645
|
const G = i.nodes, W = G.length;
|
|
2646
|
-
for (let
|
|
2647
|
-
const
|
|
2648
|
-
|
|
2646
|
+
for (let L = 0; L < W; L++) {
|
|
2647
|
+
const V = G[L];
|
|
2648
|
+
V.primitives.length > 0 && (V.instances = void 0);
|
|
2649
2649
|
}
|
|
2650
2650
|
return;
|
|
2651
2651
|
}
|
|
@@ -2674,10 +2674,10 @@ function aS(t, i, e, s) {
|
|
|
2674
2674
|
const E = new rS();
|
|
2675
2675
|
E.propertyTableId = 0, E.setIndex = 0, E.positionalLabel = "instanceFeatureId_0", m.featureIds.push(E);
|
|
2676
2676
|
const D = i.nodes, B = D.length;
|
|
2677
|
-
let
|
|
2677
|
+
let N = !1;
|
|
2678
2678
|
for (o = 0; o < B; o++) {
|
|
2679
2679
|
const G = D[o];
|
|
2680
|
-
G.primitives.length > 0 && (G.instances =
|
|
2680
|
+
G.primitives.length > 0 && (G.instances = N ? hS(m) : m, N = !0);
|
|
2681
2681
|
}
|
|
2682
2682
|
}
|
|
2683
2683
|
function lS(t, i) {
|
|
@@ -4625,29 +4625,29 @@ class Ih extends zS {
|
|
|
4625
4625
|
const { attributes: D, indexTypedArray: B } = this;
|
|
4626
4626
|
if (r && D) {
|
|
4627
4627
|
r = !1;
|
|
4628
|
-
const
|
|
4629
|
-
let
|
|
4630
|
-
for (let [
|
|
4631
|
-
const S =
|
|
4628
|
+
const N = {}, G = {}, W = [];
|
|
4629
|
+
let L = 0;
|
|
4630
|
+
for (let [V, w] of Object.entries(D)) {
|
|
4631
|
+
const S = L++, { typedArray: I, componentsPerAttribute: O, usage: $ = h.BufferUsage.STATIC_DRAW, normalize: J = !1 } = w;
|
|
4632
4632
|
if (!I) {
|
|
4633
|
-
console.warn(`CzmCustomPrimitive attribute[${
|
|
4633
|
+
console.warn(`CzmCustomPrimitive attribute[${V}] typedeArray is undefined!`);
|
|
4634
4634
|
continue;
|
|
4635
4635
|
}
|
|
4636
|
-
V
|
|
4636
|
+
N[V] = S;
|
|
4637
4637
|
let Z;
|
|
4638
|
-
const Y = p && p[
|
|
4639
|
-
Y && NS(Y, w) ? (Z = p[
|
|
4638
|
+
const Y = p && p[V] ? pf(p[V], "_originAttribute") : void 0;
|
|
4639
|
+
Y && NS(Y, w) ? (Z = p[V], delete p[V], G[V] = Z) : Y && Y.typedArray !== w.typedArray && Y.typedArray.byteLength === w.typedArray.byteLength && Y.usage === w.usage ? (Z = p[V], Z.copyFromArrayView(w.typedArray), delete p[V], G[V] = Z, td(G[V], "_originAttribute", w)) : (Z = h.Buffer.createVertexBuffer({ context: n, typedArray: I, usage: $ }), Z.vertexArrayDestroyable = !1, G[V] = Z, td(G[V], "_originAttribute", w)), W.push({
|
|
4640
4640
|
index: S,
|
|
4641
4641
|
vertexBuffer: Z,
|
|
4642
|
-
componentsPerAttribute:
|
|
4642
|
+
componentsPerAttribute: O,
|
|
4643
4643
|
normalize: J,
|
|
4644
4644
|
componentDatatype: LS(I)
|
|
4645
4645
|
});
|
|
4646
4646
|
}
|
|
4647
4647
|
if (p)
|
|
4648
|
-
for (let
|
|
4649
|
-
|
|
4650
|
-
(!f || f.length !== W.length || f.some((
|
|
4648
|
+
for (let V of Object.values(p))
|
|
4649
|
+
V.destroy();
|
|
4650
|
+
(!f || f.length !== W.length || f.some((V, w) => !VS(V, W[w]))) && (l = !0), p = G, f = W, N && (!u || !BS(N, u)) && (u = N, c = !0, l = !0);
|
|
4651
4651
|
}
|
|
4652
4652
|
if (a && (a = !1, m && (m.destroy(), m = void 0), m = B ? h.Buffer.createIndexBuffer({
|
|
4653
4653
|
context: n,
|
|
@@ -4662,11 +4662,11 @@ class Ih extends zS {
|
|
|
4662
4662
|
indexBuffer: m
|
|
4663
4663
|
}), _ ? _.vertexArray = v : d = !0)), c) {
|
|
4664
4664
|
c = !1;
|
|
4665
|
-
const
|
|
4665
|
+
const N = b.obj;
|
|
4666
4666
|
let G;
|
|
4667
|
-
if (
|
|
4668
|
-
const { red: W, green:
|
|
4669
|
-
G = `const vec4 xbsjPickColor220823 = ${`vec4(${W.toFixed(6)}, ${
|
|
4667
|
+
if (N) {
|
|
4668
|
+
const { red: W, green: L, blue: V, alpha: w } = N.color;
|
|
4669
|
+
G = `const vec4 xbsjPickColor220823 = ${`vec4(${W.toFixed(6)}, ${L.toFixed(6)}, ${V.toFixed(6)}, ${w.toFixed(6)})`};
|
|
4670
4670
|
`;
|
|
4671
4671
|
} else
|
|
4672
4672
|
G = "";
|
|
@@ -5209,12 +5209,12 @@ let Qe = it;
|
|
|
5209
5209
|
});
|
|
5210
5210
|
})(Qe || (Qe = {}));
|
|
5211
5211
|
ae(Qe.prototype, Qe.createDefaultProps);
|
|
5212
|
-
class
|
|
5212
|
+
class TB extends dw {
|
|
5213
5213
|
constructor() {
|
|
5214
5214
|
super(), this.contentDiv.style.backgroundColor = "rgba(0, 0, 0, 0.8)", this.contentDiv.style.borderRadius = "3px", this.contentDiv.style.color = "rgb(255, 255, 255)", this.contentDiv.style.padding = "1px 5px 1px 5px", this.contentDiv.style.fontSize = "12px", this.contentDiv.style.whiteSpace = "nowrap", this.contentDiv.innerText = "未定义光标信息!", this.originRatioX = 0, this.originRatioY = 0, this.originOffsetX = -16;
|
|
5215
5215
|
}
|
|
5216
5216
|
}
|
|
5217
|
-
class
|
|
5217
|
+
class EB extends k {
|
|
5218
5218
|
constructor(e, s) {
|
|
5219
5219
|
super();
|
|
5220
5220
|
g(this, "_cursorDiv");
|
|
@@ -5403,7 +5403,7 @@ class Kw extends k {
|
|
|
5403
5403
|
return this._zOrderChanged || (this._zOrderChanged = new q()), this._zOrderChanged;
|
|
5404
5404
|
}
|
|
5405
5405
|
}
|
|
5406
|
-
class
|
|
5406
|
+
class AB extends k {
|
|
5407
5407
|
// status: CzmCanvasAndDivSwitchPoiStatus
|
|
5408
5408
|
constructor(e, s, o, n) {
|
|
5409
5409
|
super();
|
|
@@ -6134,8 +6134,8 @@ class Rh extends k {
|
|
|
6134
6134
|
return;
|
|
6135
6135
|
const v = m.length, y = 50, _ = 0, C = -(v * y * Math.PI / 180) * 0.5;
|
|
6136
6136
|
for (let b = 0; b < v; ++b) {
|
|
6137
|
-
const [T, E, D, B] = m[b],
|
|
6138
|
-
|
|
6137
|
+
const [T, E, D, B] = m[b], N = C + y * (b + 0.5) * Math.PI / 180, G = Math.sin(N) * _, W = Math.cos(N) * _, L = new Ds(e);
|
|
6138
|
+
L.imageUri = B, L.tooltip = E, L.bgColor = [0, 0, 0, 0.6], L.fgColor = [1, 1, 1, 1], L.size = [24, 24], L.dispose(P([L, "position"], [s, "position"])), L.originRatioAndOffset = [0.5, 0.5, -G, W], L.show = !1, L.opacity = 0, L.dispose(L.opacityChanged.disposableOn((V) => L.show = (V ?? 1) > 0)), L.dispose(L.clickEvent.disposableOn((V) => s.commandEvent.emit(T, V))), L.dispose(L.hoveredChanged.disposableOn((V) => V ? r.cancel() : r.restart())), L.dispose(n.currentChanged.disposableOn((V) => L.enabled = V === 1)), u.push(L);
|
|
6139
6139
|
}
|
|
6140
6140
|
};
|
|
6141
6141
|
f(), this.dispose(s.commandsChanged.disposableOn(f)), this.dispose(l.hoveredChanged.disposableOn((m) => m ? r.cancel() : r.restart())), this.dispose(l.hoveredChanged.disposableOn((m) => m ? s.enabled && a.restart() : a.cancel())), this.dispose(n.currentChanged.disposableOn((m) => {
|
|
@@ -10232,7 +10232,7 @@ class Ir extends k {
|
|
|
10232
10232
|
specularIntensity: this.specularIntensity
|
|
10233
10233
|
};
|
|
10234
10234
|
if (this.blendColor && (T.blendColor = de(this.blendColor)), this.specularMap && (T.specularMap = a(this.specularMap)), this.points && this.points.length >= 1) {
|
|
10235
|
-
const { maxPos: B, minPos:
|
|
10235
|
+
const { maxPos: B, minPos: N } = yt(this.points), G = ft([N, [B[0], B[1], N[2]]], "GEODESIC")[0], W = ft([N, [N[0], B[1], B[2]]], "GEODESIC")[0];
|
|
10236
10236
|
this.baseWaterImage && (this.baseWaterImage.url && (T.baseWaterImage = a(this.baseWaterImage.url)), this.baseWaterImage.uDis && (T.repeatX = G / this.baseWaterImage.uDis), this.baseWaterImage.vDis && (T.repeatY = W / this.baseWaterImage.vDis)), T.flowSpeed = this.flowSpeed / (((D = this.baseWaterImage) == null ? void 0 : D.uDis) ?? G);
|
|
10237
10237
|
}
|
|
10238
10238
|
if (this._primitive && this._primitive.appearance) {
|
|
@@ -10267,7 +10267,7 @@ class Ir extends k {
|
|
|
10267
10267
|
h.BoundingSphere.fromPoints(T, b);
|
|
10268
10268
|
}, p = () => {
|
|
10269
10269
|
if (!this.points || this.points.length < 3) return;
|
|
10270
|
-
const { minPos: b } = yt(this.points), [T] = gi({ originPosition: b }, this.points), { minPos: E, maxPos: D } = yt(T), B = D[0] - E[0],
|
|
10270
|
+
const { minPos: b } = yt(this.points), [T] = gi({ originPosition: b }, this.points), { minPos: E, maxPos: D } = yt(T), B = D[0] - E[0], N = D[1] - E[1], G = { positions: this.points }, W = new h.PolygonGeometry({
|
|
10271
10271
|
polygonHierarchy: xo(G),
|
|
10272
10272
|
vertexFormat: h.VertexFormat.DEFAULT,
|
|
10273
10273
|
stRotation: this.stRotation && h.Math.toRadians(this.stRotation),
|
|
@@ -10277,9 +10277,9 @@ class Ir extends k {
|
|
|
10277
10277
|
st: new h.GeometryAttribute({
|
|
10278
10278
|
componentDatatype: h.ComponentDatatype.FLOAT,
|
|
10279
10279
|
componentsPerAttribute: 2,
|
|
10280
|
-
values: new Float32Array(T.map((
|
|
10281
|
-
h.Math.clamp(
|
|
10282
|
-
h.Math.clamp(
|
|
10280
|
+
values: new Float32Array(T.map((V) => [
|
|
10281
|
+
h.Math.clamp(V[0] / B, 0, 1),
|
|
10282
|
+
h.Math.clamp(V[1] / N, 0, 1)
|
|
10283
10283
|
]).flat())
|
|
10284
10284
|
})
|
|
10285
10285
|
}
|
|
@@ -11313,16 +11313,16 @@ function lC(t, i, e, s, o) {
|
|
|
11313
11313
|
return isFinite(v) ? R.clone(y, o) : void 0;
|
|
11314
11314
|
const _ = e.x, C = e.y, b = e.z, T = xT;
|
|
11315
11315
|
T.x = y.x * _ * 2, T.y = y.y * C * 2, T.z = y.z * b * 2;
|
|
11316
|
-
let E = (1 - v) * R.magnitude(t) / (0.5 * R.magnitude(T)), D = 0, B,
|
|
11316
|
+
let E = (1 - v) * R.magnitude(t) / (0.5 * R.magnitude(T)), D = 0, B, N, G, W, L, V, w, S, I, O, $;
|
|
11317
11317
|
do {
|
|
11318
|
-
E -= D, G = 1 / (1 + E * _), W = 1 / (1 + E * C),
|
|
11319
|
-
const J = -2 *
|
|
11318
|
+
E -= D, G = 1 / (1 + E * _), W = 1 / (1 + E * C), L = 1 / (1 + E * b), V = G * G, w = W * W, S = L * L, I = V * G, O = w * W, $ = S * L, B = u * V + p * w + f * S - 1, N = u * I * _ + p * O * C + f * $ * b;
|
|
11319
|
+
const J = -2 * N;
|
|
11320
11320
|
D = B / J;
|
|
11321
11321
|
} while (Math.abs(B) > z.EPSILON12);
|
|
11322
|
-
return A(o) ? (o.x = n * G, o.y = r * W, o.z = a *
|
|
11322
|
+
return A(o) ? (o.x = n * G, o.y = r * W, o.z = a * L, o) : new R(
|
|
11323
11323
|
n * G,
|
|
11324
11324
|
r * W,
|
|
11325
|
-
a *
|
|
11325
|
+
a * L
|
|
11326
11326
|
);
|
|
11327
11327
|
}
|
|
11328
11328
|
function Se(t, i, e) {
|
|
@@ -12549,8 +12549,8 @@ Q.fromRotationTranslation = function(t, i, e) {
|
|
|
12549
12549
|
};
|
|
12550
12550
|
Q.fromTranslationQuaternionRotationScale = function(t, i, e, s) {
|
|
12551
12551
|
x.typeOf.object("translation", t), x.typeOf.object("rotation", i), x.typeOf.object("scale", e), A(s) || (s = new Q());
|
|
12552
|
-
const o = e.x, n = e.y, r = e.z, a = i.x * i.x, l = i.x * i.y, c = i.x * i.z, d = i.x * i.w, u = i.y * i.y, p = i.y * i.z, f = i.y * i.w, m = i.z * i.z, v = i.z * i.w, y = i.w * i.w, _ = a - u - m + y, C = 2 * (l - v), b = 2 * (c + f), T = 2 * (l + v), E = -a + u - m + y, D = 2 * (p - d), B = 2 * (c - f),
|
|
12553
|
-
return s[0] = _ * o, s[1] = T * o, s[2] = B * o, s[3] = 0, s[4] = C * n, s[5] = E * n, s[6] =
|
|
12552
|
+
const o = e.x, n = e.y, r = e.z, a = i.x * i.x, l = i.x * i.y, c = i.x * i.z, d = i.x * i.w, u = i.y * i.y, p = i.y * i.z, f = i.y * i.w, m = i.z * i.z, v = i.z * i.w, y = i.w * i.w, _ = a - u - m + y, C = 2 * (l - v), b = 2 * (c + f), T = 2 * (l + v), E = -a + u - m + y, D = 2 * (p - d), B = 2 * (c - f), N = 2 * (p + d), G = -a - u + m + y;
|
|
12553
|
+
return s[0] = _ * o, s[1] = T * o, s[2] = B * o, s[3] = 0, s[4] = C * n, s[5] = E * n, s[6] = N * n, s[7] = 0, s[8] = b * r, s[9] = D * r, s[10] = G * r, s[11] = 0, s[12] = t.x, s[13] = t.y, s[14] = t.z, s[15] = 1, s;
|
|
12554
12554
|
};
|
|
12555
12555
|
Q.fromTranslationRotationScale = function(t, i) {
|
|
12556
12556
|
return x.typeOf.object("translationRotationScale", t), Q.fromTranslationQuaternionRotationScale(
|
|
@@ -12752,7 +12752,7 @@ Q.getRotation = function(t, i) {
|
|
|
12752
12752
|
};
|
|
12753
12753
|
Q.multiply = function(t, i, e) {
|
|
12754
12754
|
x.typeOf.object("left", t), x.typeOf.object("right", i), x.typeOf.object("result", e);
|
|
12755
|
-
const s = t[0], o = t[1], n = t[2], r = t[3], a = t[4], l = t[5], c = t[6], d = t[7], u = t[8], p = t[9], f = t[10], m = t[11], v = t[12], y = t[13], _ = t[14], C = t[15], b = i[0], T = i[1], E = i[2], D = i[3], B = i[4],
|
|
12755
|
+
const s = t[0], o = t[1], n = t[2], r = t[3], a = t[4], l = t[5], c = t[6], d = t[7], u = t[8], p = t[9], f = t[10], m = t[11], v = t[12], y = t[13], _ = t[14], C = t[15], b = i[0], T = i[1], E = i[2], D = i[3], B = i[4], N = i[5], G = i[6], W = i[7], L = i[8], V = i[9], w = i[10], S = i[11], I = i[12], O = i[13], $ = i[14], J = i[15], Z = s * b + a * T + u * E + v * D, Y = o * b + l * T + p * E + y * D, te = n * b + c * T + f * E + _ * D, le = r * b + d * T + m * E + C * D, ye = s * B + a * N + u * G + v * W, we = o * B + l * N + p * G + y * W, Ce = n * B + c * N + f * G + _ * W, Ee = r * B + d * N + m * G + C * W, Ke = s * L + a * V + u * w + v * S, nt = o * L + l * V + p * w + y * S, We = n * L + c * V + f * w + _ * S, be = r * L + d * V + m * w + C * S, Ye = s * I + a * O + u * $ + v * J, dt = o * I + l * O + p * $ + y * J, Ht = n * I + c * O + f * $ + _ * J, ii = r * I + d * O + m * $ + C * J;
|
|
12756
12756
|
return e[0] = Z, e[1] = Y, e[2] = te, e[3] = le, e[4] = ye, e[5] = we, e[6] = Ce, e[7] = Ee, e[8] = Ke, e[9] = nt, e[10] = We, e[11] = be, e[12] = Ye, e[13] = dt, e[14] = Ht, e[15] = ii, e;
|
|
12757
12757
|
};
|
|
12758
12758
|
Q.add = function(t, i, e) {
|
|
@@ -12763,13 +12763,13 @@ Q.subtract = function(t, i, e) {
|
|
|
12763
12763
|
};
|
|
12764
12764
|
Q.multiplyTransformation = function(t, i, e) {
|
|
12765
12765
|
x.typeOf.object("left", t), x.typeOf.object("right", i), x.typeOf.object("result", e);
|
|
12766
|
-
const s = t[0], o = t[1], n = t[2], r = t[4], a = t[5], l = t[6], c = t[8], d = t[9], u = t[10], p = t[12], f = t[13], m = t[14], v = i[0], y = i[1], _ = i[2], C = i[4], b = i[5], T = i[6], E = i[8], D = i[9], B = i[10],
|
|
12767
|
-
return e[0] =
|
|
12766
|
+
const s = t[0], o = t[1], n = t[2], r = t[4], a = t[5], l = t[6], c = t[8], d = t[9], u = t[10], p = t[12], f = t[13], m = t[14], v = i[0], y = i[1], _ = i[2], C = i[4], b = i[5], T = i[6], E = i[8], D = i[9], B = i[10], N = i[12], G = i[13], W = i[14], L = s * v + r * y + c * _, V = o * v + a * y + d * _, w = n * v + l * y + u * _, S = s * C + r * b + c * T, I = o * C + a * b + d * T, O = n * C + l * b + u * T, $ = s * E + r * D + c * B, J = o * E + a * D + d * B, Z = n * E + l * D + u * B, Y = s * N + r * G + c * W + p, te = o * N + a * G + d * W + f, le = n * N + l * G + u * W + m;
|
|
12767
|
+
return e[0] = L, e[1] = V, e[2] = w, e[3] = 0, e[4] = S, e[5] = I, e[6] = O, e[7] = 0, e[8] = $, e[9] = J, e[10] = Z, e[11] = 0, e[12] = Y, e[13] = te, e[14] = le, e[15] = 1, e;
|
|
12768
12768
|
};
|
|
12769
12769
|
Q.multiplyByMatrix3 = function(t, i, e) {
|
|
12770
12770
|
x.typeOf.object("matrix", t), x.typeOf.object("rotation", i), x.typeOf.object("result", e);
|
|
12771
|
-
const s = t[0], o = t[1], n = t[2], r = t[4], a = t[5], l = t[6], c = t[8], d = t[9], u = t[10], p = i[0], f = i[1], m = i[2], v = i[3], y = i[4], _ = i[5], C = i[6], b = i[7], T = i[8], E = s * p + r * f + c * m, D = o * p + a * f + d * m, B = n * p + l * f + u * m,
|
|
12772
|
-
return e[0] = E, e[1] = D, e[2] = B, e[3] = 0, e[4] =
|
|
12771
|
+
const s = t[0], o = t[1], n = t[2], r = t[4], a = t[5], l = t[6], c = t[8], d = t[9], u = t[10], p = i[0], f = i[1], m = i[2], v = i[3], y = i[4], _ = i[5], C = i[6], b = i[7], T = i[8], E = s * p + r * f + c * m, D = o * p + a * f + d * m, B = n * p + l * f + u * m, N = s * v + r * y + c * _, G = o * v + a * y + d * _, W = n * v + l * y + u * _, L = s * C + r * b + c * T, V = o * C + a * b + d * T, w = n * C + l * b + u * T;
|
|
12772
|
+
return e[0] = E, e[1] = D, e[2] = B, e[3] = 0, e[4] = N, e[5] = G, e[6] = W, e[7] = 0, e[8] = L, e[9] = V, e[10] = w, e[11] = 0, e[12] = t[12], e[13] = t[13], e[14] = t[14], e[15] = t[15], e;
|
|
12773
12773
|
};
|
|
12774
12774
|
Q.multiplyByTranslation = function(t, i, e) {
|
|
12775
12775
|
x.typeOf.object("matrix", t), x.typeOf.object("translation", i), x.typeOf.object("result", e);
|
|
@@ -12832,11 +12832,11 @@ const KT = new X(), JT = new X(), jT = new se(), eE = new se(0, 0, 0, 1);
|
|
|
12832
12832
|
Q.inverse = function(t, i) {
|
|
12833
12833
|
x.typeOf.object("matrix", t), x.typeOf.object("result", i);
|
|
12834
12834
|
const e = t[0], s = t[4], o = t[8], n = t[12], r = t[1], a = t[5], l = t[9], c = t[13], d = t[2], u = t[6], p = t[10], f = t[14], m = t[3], v = t[7], y = t[11], _ = t[15];
|
|
12835
|
-
let C = p * _, b = f * y, T = u * _, E = f * v, D = u * y, B = p * v,
|
|
12836
|
-
const S = C * a + E * l + D * c - (b * a + T * l + B * c), I = b * r +
|
|
12837
|
-
C = o * c, b = n * l, T = s * c, E = n * a, D = s * l, B = o * a,
|
|
12838
|
-
const le = C * v + E * y + D * _ - (b * v + T * y + B * _), ye = b * m +
|
|
12839
|
-
let be = e * S + s * I + o *
|
|
12835
|
+
let C = p * _, b = f * y, T = u * _, E = f * v, D = u * y, B = p * v, N = d * _, G = f * m, W = d * y, L = p * m, V = d * v, w = u * m;
|
|
12836
|
+
const S = C * a + E * l + D * c - (b * a + T * l + B * c), I = b * r + N * l + L * c - (C * r + G * l + W * c), O = T * r + G * a + V * c - (E * r + N * a + w * c), $ = B * r + W * a + w * l - (D * r + L * a + V * l), J = b * s + T * o + B * n - (C * s + E * o + D * n), Z = C * e + G * o + W * n - (b * e + N * o + L * n), Y = E * e + N * s + w * n - (T * e + G * s + V * n), te = D * e + L * s + V * o - (B * e + W * s + w * o);
|
|
12837
|
+
C = o * c, b = n * l, T = s * c, E = n * a, D = s * l, B = o * a, N = e * c, G = n * r, W = e * l, L = o * r, V = e * a, w = s * r;
|
|
12838
|
+
const le = C * v + E * y + D * _ - (b * v + T * y + B * _), ye = b * m + N * y + L * _ - (C * m + G * y + W * _), we = T * m + G * v + V * _ - (E * m + N * v + w * _), Ce = B * m + W * v + w * y - (D * m + L * v + V * y), Ee = T * p + B * f + b * u - (D * f + C * u + E * p), Ke = W * f + C * d + G * p - (N * p + L * f + b * d), nt = N * u + w * f + E * d - (V * f + T * d + G * u), We = V * p + D * d + L * u - (W * u + w * p + B * d);
|
|
12839
|
+
let be = e * S + s * I + o * O + n * $;
|
|
12840
12840
|
if (Math.abs(be) < z.EPSILON21) {
|
|
12841
12841
|
if (X.equalsEpsilon(
|
|
12842
12842
|
Q.getMatrix3(t, KT),
|
|
@@ -12851,7 +12851,7 @@ Q.inverse = function(t, i) {
|
|
|
12851
12851
|
"matrix is not invertible because its determinate is zero."
|
|
12852
12852
|
);
|
|
12853
12853
|
}
|
|
12854
|
-
return be = 1 / be, i[0] = S * be, i[1] = I * be, i[2] =
|
|
12854
|
+
return be = 1 / be, i[0] = S * be, i[1] = I * be, i[2] = O * be, i[3] = $ * be, i[4] = J * be, i[5] = Z * be, i[6] = Y * be, i[7] = te * be, i[8] = le * be, i[9] = ye * be, i[10] = we * be, i[11] = Ce * be, i[12] = Ee * be, i[13] = Ke * be, i[14] = nt * be, i[15] = We * be, i;
|
|
12855
12855
|
};
|
|
12856
12856
|
Q.inverseTransformation = function(t, i) {
|
|
12857
12857
|
x.typeOf.object("matrix", t), x.typeOf.object("result", i);
|
|
@@ -13535,7 +13535,7 @@ function uE() {
|
|
|
13535
13535
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
13536
13536
|
"invalid-input": "Invalid input"
|
|
13537
13537
|
}, T = l - c, E = Math.floor, D = String.fromCharCode, B;
|
|
13538
|
-
function
|
|
13538
|
+
function N(Y) {
|
|
13539
13539
|
throw new RangeError(b[Y]);
|
|
13540
13540
|
}
|
|
13541
13541
|
function G(Y, te) {
|
|
@@ -13549,12 +13549,12 @@ function uE() {
|
|
|
13549
13549
|
var we = Y.split("."), Ce = G(we, te).join(".");
|
|
13550
13550
|
return ye + Ce;
|
|
13551
13551
|
}
|
|
13552
|
-
function
|
|
13552
|
+
function L(Y) {
|
|
13553
13553
|
for (var te = [], le = 0, ye = Y.length, we, Ce; le < ye; )
|
|
13554
13554
|
we = Y.charCodeAt(le++), we >= 55296 && we <= 56319 && le < ye ? (Ce = Y.charCodeAt(le++), (Ce & 64512) == 56320 ? te.push(((we & 1023) << 10) + (Ce & 1023) + 65536) : (te.push(we), le--)) : te.push(we);
|
|
13555
13555
|
return te;
|
|
13556
13556
|
}
|
|
13557
|
-
function
|
|
13557
|
+
function V(Y) {
|
|
13558
13558
|
return G(Y, function(te) {
|
|
13559
13559
|
var le = "";
|
|
13560
13560
|
return te > 65535 && (te -= 65536, le += D(te >>> 10 & 1023 | 55296), te = 56320 | te & 1023), le += D(te), le;
|
|
@@ -13572,26 +13572,26 @@ function uE() {
|
|
|
13572
13572
|
Y = E(Y / T);
|
|
13573
13573
|
return E(ye + (T + 1) * Y / (Y + u));
|
|
13574
13574
|
}
|
|
13575
|
-
function
|
|
13575
|
+
function O(Y) {
|
|
13576
13576
|
var te = [], le = Y.length, ye, we = 0, Ce = m, Ee = f, Ke, nt, We, be, Ye, dt, Ht, ii, Eo;
|
|
13577
13577
|
for (Ke = Y.lastIndexOf(v), Ke < 0 && (Ke = 0), nt = 0; nt < Ke; ++nt)
|
|
13578
|
-
Y.charCodeAt(nt) >= 128 &&
|
|
13578
|
+
Y.charCodeAt(nt) >= 128 && N("not-basic"), te.push(Y.charCodeAt(nt));
|
|
13579
13579
|
for (We = Ke > 0 ? Ke + 1 : 0; We < le; ) {
|
|
13580
|
-
for (be = we, Ye = 1, dt = l; We >= le &&
|
|
13581
|
-
Eo = l - ii, Ye > E(a / Eo) &&
|
|
13582
|
-
ye = te.length + 1, Ee = I(we - be, ye, be == 0), E(we / ye) > a - Ce &&
|
|
13580
|
+
for (be = we, Ye = 1, dt = l; We >= le && N("invalid-input"), Ht = w(Y.charCodeAt(We++)), (Ht >= l || Ht > E((a - we) / Ye)) && N("overflow"), we += Ht * Ye, ii = dt <= Ee ? c : dt >= Ee + d ? d : dt - Ee, !(Ht < ii); dt += l)
|
|
13581
|
+
Eo = l - ii, Ye > E(a / Eo) && N("overflow"), Ye *= Eo;
|
|
13582
|
+
ye = te.length + 1, Ee = I(we - be, ye, be == 0), E(we / ye) > a - Ce && N("overflow"), Ce += E(we / ye), we %= ye, te.splice(we++, 0, Ce);
|
|
13583
13583
|
}
|
|
13584
|
-
return
|
|
13584
|
+
return V(te);
|
|
13585
13585
|
}
|
|
13586
13586
|
function $(Y) {
|
|
13587
13587
|
var te, le, ye, we, Ce, Ee, Ke, nt, We, be, Ye, dt = [], Ht, ii, Eo, ou;
|
|
13588
|
-
for (Y =
|
|
13588
|
+
for (Y = L(Y), Ht = Y.length, te = m, le = 0, Ce = f, Ee = 0; Ee < Ht; ++Ee)
|
|
13589
13589
|
Ye = Y[Ee], Ye < 128 && dt.push(D(Ye));
|
|
13590
13590
|
for (ye = we = dt.length, we && dt.push(v); ye < Ht; ) {
|
|
13591
13591
|
for (Ke = a, Ee = 0; Ee < Ht; ++Ee)
|
|
13592
13592
|
Ye = Y[Ee], Ye >= te && Ye < Ke && (Ke = Ye);
|
|
13593
|
-
for (ii = ye + 1, Ke - te > E((a - le) / ii) &&
|
|
13594
|
-
if (Ye = Y[Ee], Ye < te && ++le > a &&
|
|
13593
|
+
for (ii = ye + 1, Ke - te > E((a - le) / ii) && N("overflow"), le += (Ke - te) * ii, te = Ke, Ee = 0; Ee < Ht; ++Ee)
|
|
13594
|
+
if (Ye = Y[Ee], Ye < te && ++le > a && N("overflow"), Ye == te) {
|
|
13595
13595
|
for (nt = le, We = l; be = We <= Ce ? c : We >= Ce + d ? d : We - Ce, !(nt < be); We += l)
|
|
13596
13596
|
ou = nt - be, Eo = l - be, dt.push(
|
|
13597
13597
|
D(S(be + ou % Eo, 0))
|
|
@@ -13604,7 +13604,7 @@ function uE() {
|
|
|
13604
13604
|
}
|
|
13605
13605
|
function J(Y) {
|
|
13606
13606
|
return W(Y, function(te) {
|
|
13607
|
-
return y.test(te) ?
|
|
13607
|
+
return y.test(te) ? O(te.slice(4).toLowerCase()) : te;
|
|
13608
13608
|
});
|
|
13609
13609
|
}
|
|
13610
13610
|
function Z(Y) {
|
|
@@ -13627,10 +13627,10 @@ function uE() {
|
|
|
13627
13627
|
* @type Object
|
|
13628
13628
|
*/
|
|
13629
13629
|
ucs2: {
|
|
13630
|
-
decode:
|
|
13631
|
-
encode:
|
|
13630
|
+
decode: L,
|
|
13631
|
+
encode: V
|
|
13632
13632
|
},
|
|
13633
|
-
decode:
|
|
13633
|
+
decode: O,
|
|
13634
13634
|
encode: $,
|
|
13635
13635
|
toASCII: Z,
|
|
13636
13636
|
toUnicode: J
|
|
@@ -13930,9 +13930,9 @@ function fE() {
|
|
|
13930
13930
|
})(en, function(i, e, s, o) {
|
|
13931
13931
|
var n = o && o.URI;
|
|
13932
13932
|
function r(w, S) {
|
|
13933
|
-
var I = arguments.length >= 1,
|
|
13933
|
+
var I = arguments.length >= 1, O = arguments.length >= 2;
|
|
13934
13934
|
if (!(this instanceof r))
|
|
13935
|
-
return I ?
|
|
13935
|
+
return I ? O ? new r(w, S) : new r(w) : new r();
|
|
13936
13936
|
if (w === void 0) {
|
|
13937
13937
|
if (I)
|
|
13938
13938
|
throw new TypeError("undefined is not a valid argument for URI");
|
|
@@ -13957,30 +13957,30 @@ function fE() {
|
|
|
13957
13957
|
return u(w) === "Array";
|
|
13958
13958
|
}
|
|
13959
13959
|
function f(w, S) {
|
|
13960
|
-
var I = {},
|
|
13960
|
+
var I = {}, O, $;
|
|
13961
13961
|
if (u(S) === "RegExp")
|
|
13962
13962
|
I = null;
|
|
13963
13963
|
else if (p(S))
|
|
13964
|
-
for (
|
|
13965
|
-
I[S[
|
|
13964
|
+
for (O = 0, $ = S.length; O < $; O++)
|
|
13965
|
+
I[S[O]] = !0;
|
|
13966
13966
|
else
|
|
13967
13967
|
I[S] = !0;
|
|
13968
|
-
for (
|
|
13969
|
-
var J = I && I[w[
|
|
13970
|
-
J && (w.splice(
|
|
13968
|
+
for (O = 0, $ = w.length; O < $; O++) {
|
|
13969
|
+
var J = I && I[w[O]] !== void 0 || !I && S.test(w[O]);
|
|
13970
|
+
J && (w.splice(O, 1), $--, O--);
|
|
13971
13971
|
}
|
|
13972
13972
|
return w;
|
|
13973
13973
|
}
|
|
13974
13974
|
function m(w, S) {
|
|
13975
|
-
var I,
|
|
13975
|
+
var I, O;
|
|
13976
13976
|
if (p(S)) {
|
|
13977
|
-
for (I = 0,
|
|
13977
|
+
for (I = 0, O = S.length; I < O; I++)
|
|
13978
13978
|
if (!m(w, S[I]))
|
|
13979
13979
|
return !1;
|
|
13980
13980
|
return !0;
|
|
13981
13981
|
}
|
|
13982
13982
|
var $ = u(S);
|
|
13983
|
-
for (I = 0,
|
|
13983
|
+
for (I = 0, O = w.length; I < O; I++)
|
|
13984
13984
|
if ($ === "RegExp") {
|
|
13985
13985
|
if (typeof w[I] == "string" && w[I].match(S))
|
|
13986
13986
|
return !0;
|
|
@@ -13992,7 +13992,7 @@ function fE() {
|
|
|
13992
13992
|
if (!p(w) || !p(S) || w.length !== S.length)
|
|
13993
13993
|
return !1;
|
|
13994
13994
|
w.sort(), S.sort();
|
|
13995
|
-
for (var I = 0,
|
|
13995
|
+
for (var I = 0, O = w.length; I < O; I++)
|
|
13996
13996
|
if (w[I] !== S[I])
|
|
13997
13997
|
return !1;
|
|
13998
13998
|
return !0;
|
|
@@ -14176,8 +14176,8 @@ function fE() {
|
|
|
14176
14176
|
var b = { encode: "encode", decode: "decode" }, T, E = function(w, S) {
|
|
14177
14177
|
return function(I) {
|
|
14178
14178
|
try {
|
|
14179
|
-
return r[S](I + "").replace(r.characters[w][S].expression, function(
|
|
14180
|
-
return r.characters[w][S].map[
|
|
14179
|
+
return r[S](I + "").replace(r.characters[w][S].expression, function(O) {
|
|
14180
|
+
return r.characters[w][S].map[O];
|
|
14181
14181
|
});
|
|
14182
14182
|
} catch {
|
|
14183
14183
|
return I;
|
|
@@ -14187,12 +14187,12 @@ function fE() {
|
|
|
14187
14187
|
for (T in b)
|
|
14188
14188
|
r[T + "PathSegment"] = E("pathname", b[T]), r[T + "UrnPathSegment"] = E("urnpath", b[T]);
|
|
14189
14189
|
var D = function(w, S, I) {
|
|
14190
|
-
return function(
|
|
14190
|
+
return function(O) {
|
|
14191
14191
|
var $;
|
|
14192
14192
|
I ? $ = function(te) {
|
|
14193
14193
|
return r[S](r[I](te));
|
|
14194
14194
|
} : $ = r[S];
|
|
14195
|
-
for (var J = (
|
|
14195
|
+
for (var J = (O + "").split(w), Z = 0, Y = J.length; Z < Y; Z++)
|
|
14196
14196
|
J[Z] = $(J[Z]);
|
|
14197
14197
|
return J.join(w);
|
|
14198
14198
|
};
|
|
@@ -14204,9 +14204,9 @@ function fE() {
|
|
|
14204
14204
|
}), w = w.replace(r.leading_whitespace_expression, ""), w = w.replace(r.ascii_tab_whitespace, ""), I = w.indexOf("#"), I > -1 && (S.fragment = w.substring(I + 1) || null, w = w.substring(0, I)), I = w.indexOf("?"), I > -1 && (S.query = w.substring(I + 1) || null, w = w.substring(0, I)), w = w.replace(/^(https?|ftp|wss?)?:+[/\\]*/i, "$1://"), w = w.replace(/^[/\\]{2,}/i, "//"), w.substring(0, 2) === "//" ? (S.protocol = null, w = w.substring(2), w = r.parseAuthority(w, S)) : (I = w.indexOf(":"), I > -1 && (S.protocol = w.substring(0, I) || null, S.protocol && !S.protocol.match(r.protocol_expression) ? S.protocol = void 0 : w.substring(I + 1, I + 3).replace(/\\/g, "/") === "//" ? (w = w.substring(I + 3), w = r.parseAuthority(w, S)) : (w = w.substring(I + 1), S.urn = !0))), S.path = w, S;
|
|
14205
14205
|
}, r.parseHost = function(w, S) {
|
|
14206
14206
|
w || (w = ""), w = w.replace(/\\/g, "/");
|
|
14207
|
-
var I = w.indexOf("/"),
|
|
14207
|
+
var I = w.indexOf("/"), O, $;
|
|
14208
14208
|
if (I === -1 && (I = w.length), w.charAt(0) === "[")
|
|
14209
|
-
|
|
14209
|
+
O = w.indexOf("]"), S.hostname = w.substring(1, O) || null, S.port = w.substring(O + 2, I) || null, S.port === "/" && (S.port = null);
|
|
14210
14210
|
else {
|
|
14211
14211
|
var J = w.indexOf(":"), Z = w.indexOf("/"), Y = w.indexOf(":", J + 1);
|
|
14212
14212
|
Y !== -1 && (Z === -1 || Y < Z) ? (S.hostname = w.substring(0, I) || null, S.port = null) : ($ = w.substring(0, I).split(":"), S.hostname = $[0] || null, S.port = $[1] || null);
|
|
@@ -14215,8 +14215,8 @@ function fE() {
|
|
|
14215
14215
|
}, r.parseAuthority = function(w, S) {
|
|
14216
14216
|
return w = r.parseUserinfo(w, S), r.parseHost(w, S);
|
|
14217
14217
|
}, r.parseUserinfo = function(w, S) {
|
|
14218
|
-
var I = w,
|
|
14219
|
-
|
|
14218
|
+
var I = w, O = w.indexOf("\\");
|
|
14219
|
+
O !== -1 && (w = w.replace(/\\/g, "/"));
|
|
14220
14220
|
var $ = w.indexOf("/"), J = w.lastIndexOf("@", $ > -1 ? $ : w.length - 1), Z;
|
|
14221
14221
|
return J > -1 && ($ === -1 || J < $) ? (Z = w.substring(0, J).split(":"), S.username = Z[0] ? r.decode(Z[0]) : null, Z.shift(), S.password = Z[0] ? r.decode(Z.join(":")) : null, w = I.substring(J + 1)) : (S.username = null, S.password = null), w;
|
|
14222
14222
|
}, r.parseQuery = function(w, S) {
|
|
@@ -14224,8 +14224,8 @@ function fE() {
|
|
|
14224
14224
|
return {};
|
|
14225
14225
|
if (w = w.replace(/&+/g, "&").replace(/^\?*&*|&+$/g, ""), !w)
|
|
14226
14226
|
return {};
|
|
14227
|
-
for (var I = {},
|
|
14228
|
-
J =
|
|
14227
|
+
for (var I = {}, O = w.split("&"), $ = O.length, J, Z, Y, te = 0; te < $; te++)
|
|
14228
|
+
J = O[te].split("="), Z = r.decodeQuery(J.shift(), S), Y = J.length ? r.decodeQuery(J.join("="), S) : null, Z !== "__proto__" && (c.call(I, Z) ? ((typeof I[Z] == "string" || I[Z] === null) && (I[Z] = [I[Z]]), I[Z].push(Y)) : I[Z] = Y);
|
|
14229
14229
|
return I;
|
|
14230
14230
|
}, r.build = function(w) {
|
|
14231
14231
|
var S = "", I = !1;
|
|
@@ -14242,20 +14242,20 @@ function fE() {
|
|
|
14242
14242
|
var S = "";
|
|
14243
14243
|
return w.username && (S += r.encode(w.username)), w.password && (S += ":" + r.encode(w.password)), S && (S += "@"), S;
|
|
14244
14244
|
}, r.buildQuery = function(w, S, I) {
|
|
14245
|
-
var
|
|
14245
|
+
var O = "", $, J, Z, Y;
|
|
14246
14246
|
for (J in w)
|
|
14247
14247
|
if (J !== "__proto__" && c.call(w, J))
|
|
14248
14248
|
if (p(w[J]))
|
|
14249
14249
|
for ($ = {}, Z = 0, Y = w[J].length; Z < Y; Z++)
|
|
14250
|
-
w[J][Z] !== void 0 && $[w[J][Z] + ""] === void 0 && (
|
|
14251
|
-
else w[J] !== void 0 && (
|
|
14252
|
-
return
|
|
14250
|
+
w[J][Z] !== void 0 && $[w[J][Z] + ""] === void 0 && (O += "&" + r.buildQueryParameter(J, w[J][Z], I), S !== !0 && ($[w[J][Z] + ""] = !0));
|
|
14251
|
+
else w[J] !== void 0 && (O += "&" + r.buildQueryParameter(J, w[J], I));
|
|
14252
|
+
return O.substring(1);
|
|
14253
14253
|
}, r.buildQueryParameter = function(w, S, I) {
|
|
14254
14254
|
return r.encodeQuery(w, I) + (S !== null ? "=" + r.encodeQuery(S, I) : "");
|
|
14255
14255
|
}, r.addQuery = function(w, S, I) {
|
|
14256
14256
|
if (typeof S == "object")
|
|
14257
|
-
for (var
|
|
14258
|
-
c.call(S,
|
|
14257
|
+
for (var O in S)
|
|
14258
|
+
c.call(S, O) && r.addQuery(w, O, S[O]);
|
|
14259
14259
|
else if (typeof S == "string") {
|
|
14260
14260
|
if (w[S] === void 0) {
|
|
14261
14261
|
w[S] = I;
|
|
@@ -14266,17 +14266,17 @@ function fE() {
|
|
|
14266
14266
|
throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");
|
|
14267
14267
|
}, r.setQuery = function(w, S, I) {
|
|
14268
14268
|
if (typeof S == "object")
|
|
14269
|
-
for (var
|
|
14270
|
-
c.call(S,
|
|
14269
|
+
for (var O in S)
|
|
14270
|
+
c.call(S, O) && r.setQuery(w, O, S[O]);
|
|
14271
14271
|
else if (typeof S == "string")
|
|
14272
14272
|
w[S] = I === void 0 ? null : I;
|
|
14273
14273
|
else
|
|
14274
14274
|
throw new TypeError("URI.setQuery() accepts an object, string as the name parameter");
|
|
14275
14275
|
}, r.removeQuery = function(w, S, I) {
|
|
14276
|
-
var
|
|
14276
|
+
var O, $, J;
|
|
14277
14277
|
if (p(S))
|
|
14278
|
-
for (
|
|
14279
|
-
w[S[
|
|
14278
|
+
for (O = 0, $ = S.length; O < $; O++)
|
|
14279
|
+
w[S[O]] = void 0;
|
|
14280
14280
|
else if (u(S) === "RegExp")
|
|
14281
14281
|
for (J in w)
|
|
14282
14282
|
S.test(J) && (w[J] = void 0);
|
|
@@ -14287,7 +14287,7 @@ function fE() {
|
|
|
14287
14287
|
I !== void 0 ? u(I) === "RegExp" ? !p(w[S]) && I.test(w[S]) ? w[S] = void 0 : w[S] = f(w[S], I) : w[S] === String(I) && (!p(I) || I.length === 1) ? w[S] = void 0 : p(w[S]) && (w[S] = f(w[S], I)) : w[S] = void 0;
|
|
14288
14288
|
else
|
|
14289
14289
|
throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");
|
|
14290
|
-
}, r.hasQuery = function(w, S, I,
|
|
14290
|
+
}, r.hasQuery = function(w, S, I, O) {
|
|
14291
14291
|
switch (u(S)) {
|
|
14292
14292
|
case "String":
|
|
14293
14293
|
break;
|
|
@@ -14315,20 +14315,20 @@ function fE() {
|
|
|
14315
14315
|
case "Array":
|
|
14316
14316
|
if (!p(w[S]))
|
|
14317
14317
|
return !1;
|
|
14318
|
-
var Y =
|
|
14318
|
+
var Y = O ? m : v;
|
|
14319
14319
|
return Y(w[S], I);
|
|
14320
14320
|
case "RegExp":
|
|
14321
|
-
return p(w[S]) ?
|
|
14321
|
+
return p(w[S]) ? O ? m(w[S], I) : !1 : !!(w[S] && w[S].match(I));
|
|
14322
14322
|
case "Number":
|
|
14323
14323
|
I = String(I);
|
|
14324
14324
|
case "String":
|
|
14325
|
-
return p(w[S]) ?
|
|
14325
|
+
return p(w[S]) ? O ? m(w[S], I) : !1 : w[S] === I;
|
|
14326
14326
|
default:
|
|
14327
14327
|
throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter");
|
|
14328
14328
|
}
|
|
14329
14329
|
}, r.joinPaths = function() {
|
|
14330
|
-
for (var w = [], S = [], I = 0,
|
|
14331
|
-
var $ = new r(arguments[
|
|
14330
|
+
for (var w = [], S = [], I = 0, O = 0; O < arguments.length; O++) {
|
|
14331
|
+
var $ = new r(arguments[O]);
|
|
14332
14332
|
w.push($);
|
|
14333
14333
|
for (var J = $.segment(), Z = 0; Z < J.length; Z++)
|
|
14334
14334
|
typeof J[Z] == "string" && S.push(J[Z]), J[Z] && I++;
|
|
@@ -14338,18 +14338,18 @@ function fE() {
|
|
|
14338
14338
|
var Y = new r("").segment(S);
|
|
14339
14339
|
return (w[0].path() === "" || w[0].path().slice(0, 1) === "/") && Y.path("/" + Y.path()), Y.normalize();
|
|
14340
14340
|
}, r.commonPath = function(w, S) {
|
|
14341
|
-
var I = Math.min(w.length, S.length),
|
|
14342
|
-
for (
|
|
14343
|
-
if (w.charAt(
|
|
14344
|
-
|
|
14341
|
+
var I = Math.min(w.length, S.length), O;
|
|
14342
|
+
for (O = 0; O < I; O++)
|
|
14343
|
+
if (w.charAt(O) !== S.charAt(O)) {
|
|
14344
|
+
O--;
|
|
14345
14345
|
break;
|
|
14346
14346
|
}
|
|
14347
|
-
return
|
|
14347
|
+
return O < 1 ? w.charAt(0) === S.charAt(0) && w.charAt(0) === "/" ? "/" : "" : ((w.charAt(O) !== "/" || S.charAt(O) !== "/") && (O = w.substring(0, O).lastIndexOf("/")), w.substring(0, O + 1));
|
|
14348
14348
|
}, r.withinString = function(w, S, I) {
|
|
14349
14349
|
I || (I = {});
|
|
14350
|
-
var
|
|
14351
|
-
for (
|
|
14352
|
-
var te =
|
|
14350
|
+
var O = I.start || r.findUri.start, $ = I.end || r.findUri.end, J = I.trim || r.findUri.trim, Z = I.parens || r.findUri.parens, Y = /[a-z0-9-]=["']?$/i;
|
|
14351
|
+
for (O.lastIndex = 0; ; ) {
|
|
14352
|
+
var te = O.exec(w);
|
|
14353
14353
|
if (!te)
|
|
14354
14354
|
break;
|
|
14355
14355
|
var le = te.index;
|
|
@@ -14369,16 +14369,16 @@ function fE() {
|
|
|
14369
14369
|
we = le + Ce.length;
|
|
14370
14370
|
var We = S(Ce, le, we, w);
|
|
14371
14371
|
if (We === void 0) {
|
|
14372
|
-
|
|
14372
|
+
O.lastIndex = we;
|
|
14373
14373
|
continue;
|
|
14374
14374
|
}
|
|
14375
|
-
We = String(We), w = w.slice(0, le) + We + w.slice(we),
|
|
14375
|
+
We = String(We), w = w.slice(0, le) + We + w.slice(we), O.lastIndex = le + We.length;
|
|
14376
14376
|
}
|
|
14377
14377
|
}
|
|
14378
|
-
return
|
|
14378
|
+
return O.lastIndex = 0, w;
|
|
14379
14379
|
}, r.ensureValidHostname = function(w, S) {
|
|
14380
|
-
var I = !!w,
|
|
14381
|
-
if (
|
|
14380
|
+
var I = !!w, O = !!S, $ = !1;
|
|
14381
|
+
if (O && ($ = m(r.hostProtocols, S)), $ && !I)
|
|
14382
14382
|
throw new TypeError("Hostname cannot be empty, if protocol is " + S);
|
|
14383
14383
|
if (w && w.match(r.invalid_hostname_characters)) {
|
|
14384
14384
|
if (!i)
|
|
@@ -14412,12 +14412,12 @@ function fE() {
|
|
|
14412
14412
|
return S === void 0 ? this._parts[w] || "" : (this._parts[w] = S || null, this.build(!I), this);
|
|
14413
14413
|
};
|
|
14414
14414
|
}
|
|
14415
|
-
function
|
|
14416
|
-
return function(I,
|
|
14417
|
-
return I === void 0 ? this._parts[w] || "" : (I !== null && (I = I + "", I.charAt(0) === S && (I = I.substring(1))), this._parts[w] = I, this.build(!
|
|
14415
|
+
function N(w, S) {
|
|
14416
|
+
return function(I, O) {
|
|
14417
|
+
return I === void 0 ? this._parts[w] || "" : (I !== null && (I = I + "", I.charAt(0) === S && (I = I.substring(1))), this._parts[w] = I, this.build(!O), this);
|
|
14418
14418
|
};
|
|
14419
14419
|
}
|
|
14420
|
-
l.protocol = B("protocol"), l.username = B("username"), l.password = B("password"), l.hostname = B("hostname"), l.port = B("port"), l.query =
|
|
14420
|
+
l.protocol = B("protocol"), l.username = B("username"), l.password = B("password"), l.hostname = B("hostname"), l.port = B("port"), l.query = N("query", "?"), l.fragment = N("fragment", "#"), l.search = function(w, S) {
|
|
14421
14421
|
var I = this.query(w, S);
|
|
14422
14422
|
return typeof I == "string" && I.length ? "?" + I : I;
|
|
14423
14423
|
}, l.hash = function(w, S) {
|
|
@@ -14434,15 +14434,15 @@ function fE() {
|
|
|
14434
14434
|
if (w === void 0)
|
|
14435
14435
|
return this.toString();
|
|
14436
14436
|
this._string = "", this._parts = r._parts();
|
|
14437
|
-
var
|
|
14437
|
+
var O = w instanceof r, $ = typeof w == "object" && (w.hostname || w.path || w.pathname);
|
|
14438
14438
|
if (w.nodeName) {
|
|
14439
14439
|
var J = r.getDomAttribute(w);
|
|
14440
14440
|
w = w[J] || "", $ = !1;
|
|
14441
14441
|
}
|
|
14442
|
-
if (!
|
|
14442
|
+
if (!O && $ && w.pathname !== void 0 && (w = w.toString()), typeof w == "string" || w instanceof String)
|
|
14443
14443
|
this._parts = r.parse(String(w), this._parts);
|
|
14444
|
-
else if (
|
|
14445
|
-
var Z =
|
|
14444
|
+
else if (O || $) {
|
|
14445
|
+
var Z = O ? w._parts : w;
|
|
14446
14446
|
for (I in Z)
|
|
14447
14447
|
I !== "query" && c.call(this._parts, I) && (this._parts[I] = Z[I]);
|
|
14448
14448
|
Z.query && this.query(Z.query, !1);
|
|
@@ -14450,8 +14450,8 @@ function fE() {
|
|
|
14450
14450
|
throw new TypeError("invalid input");
|
|
14451
14451
|
return this.build(!S), this;
|
|
14452
14452
|
}, l.is = function(w) {
|
|
14453
|
-
var S = !1, I = !1,
|
|
14454
|
-
switch (this._parts.hostname && (te = !1, I = r.ip4_expression.test(this._parts.hostname),
|
|
14453
|
+
var S = !1, I = !1, O = !1, $ = !1, J = !1, Z = !1, Y = !1, te = !this._parts.urn;
|
|
14454
|
+
switch (this._parts.hostname && (te = !1, I = r.ip4_expression.test(this._parts.hostname), O = r.ip6_expression.test(this._parts.hostname), S = I || O, $ = !S, J = $ && s && s.has(this._parts.hostname), Z = $ && r.idn_expression.test(this._parts.hostname), Y = $ && r.punycode_expression.test(this._parts.hostname)), w.toLowerCase()) {
|
|
14455
14455
|
case "relative":
|
|
14456
14456
|
return te;
|
|
14457
14457
|
case "absolute":
|
|
@@ -14470,7 +14470,7 @@ function fE() {
|
|
|
14470
14470
|
case "ip6":
|
|
14471
14471
|
case "ipv6":
|
|
14472
14472
|
case "inet6":
|
|
14473
|
-
return
|
|
14473
|
+
return O;
|
|
14474
14474
|
case "idn":
|
|
14475
14475
|
return Z;
|
|
14476
14476
|
case "url":
|
|
@@ -14482,7 +14482,7 @@ function fE() {
|
|
|
14482
14482
|
}
|
|
14483
14483
|
return null;
|
|
14484
14484
|
};
|
|
14485
|
-
var G = l.protocol, W = l.port,
|
|
14485
|
+
var G = l.protocol, W = l.port, L = l.hostname;
|
|
14486
14486
|
l.protocol = function(w, S) {
|
|
14487
14487
|
if (w && (w = w.replace(/:(\/\/)?$/, ""), !w.match(r.protocol_expression)))
|
|
14488
14488
|
throw new TypeError('Protocol "' + w + `" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]`);
|
|
@@ -14493,18 +14493,18 @@ function fE() {
|
|
|
14493
14493
|
if (this._parts.urn)
|
|
14494
14494
|
return w === void 0 ? "" : this;
|
|
14495
14495
|
if (w !== void 0) {
|
|
14496
|
-
var I = { preventInvalidHostname: this._parts.preventInvalidHostname },
|
|
14497
|
-
if (
|
|
14496
|
+
var I = { preventInvalidHostname: this._parts.preventInvalidHostname }, O = r.parseHost(w, I);
|
|
14497
|
+
if (O !== "/")
|
|
14498
14498
|
throw new TypeError('Hostname "' + w + '" contains characters other than [A-Z0-9.-]');
|
|
14499
14499
|
w = I.hostname, this._parts.preventInvalidHostname && r.ensureValidHostname(w, this._parts.protocol);
|
|
14500
14500
|
}
|
|
14501
|
-
return
|
|
14501
|
+
return L.call(this, w, S);
|
|
14502
14502
|
}, l.origin = function(w, S) {
|
|
14503
14503
|
if (this._parts.urn)
|
|
14504
14504
|
return w === void 0 ? "" : this;
|
|
14505
14505
|
if (w === void 0) {
|
|
14506
|
-
var I = this.protocol(),
|
|
14507
|
-
return
|
|
14506
|
+
var I = this.protocol(), O = this.authority();
|
|
14507
|
+
return O ? (I ? I + "://" : "") + this.authority() : "";
|
|
14508
14508
|
} else {
|
|
14509
14509
|
var $ = r(w);
|
|
14510
14510
|
return this.protocol($.protocol()).authority($.authority()).build(!S), this;
|
|
@@ -14547,7 +14547,7 @@ function fE() {
|
|
|
14547
14547
|
var I = this._parts.hostname.length - this.domain().length - 1;
|
|
14548
14548
|
return this._parts.hostname.substring(0, I) || "";
|
|
14549
14549
|
} else {
|
|
14550
|
-
var
|
|
14550
|
+
var O = this._parts.hostname.length - this.domain().length, $ = this._parts.hostname.substring(0, O), J = new RegExp("^" + d($));
|
|
14551
14551
|
if (w && w.charAt(w.length - 1) !== "." && (w += "."), w.indexOf(":") !== -1)
|
|
14552
14552
|
throw new TypeError("Domains cannot contain colons");
|
|
14553
14553
|
return w && r.ensureValidHostname(w, this._parts.protocol), this._parts.hostname = this._parts.hostname.replace(J, w), this.build(!S), this;
|
|
@@ -14561,8 +14561,8 @@ function fE() {
|
|
|
14561
14561
|
var I = this._parts.hostname.match(/\./g);
|
|
14562
14562
|
if (I && I.length < 2)
|
|
14563
14563
|
return this._parts.hostname;
|
|
14564
|
-
var
|
|
14565
|
-
return
|
|
14564
|
+
var O = this._parts.hostname.length - this.tld(S).length - 1;
|
|
14565
|
+
return O = this._parts.hostname.lastIndexOf(".", O - 1) + 1, this._parts.hostname.substring(O) || "";
|
|
14566
14566
|
} else {
|
|
14567
14567
|
if (!w)
|
|
14568
14568
|
throw new TypeError("cannot set domain empty");
|
|
@@ -14582,8 +14582,8 @@ function fE() {
|
|
|
14582
14582
|
if (typeof w == "boolean" && (S = w, w = void 0), w === void 0) {
|
|
14583
14583
|
if (!this._parts.hostname || this.is("IP"))
|
|
14584
14584
|
return "";
|
|
14585
|
-
var I = this._parts.hostname.lastIndexOf("."),
|
|
14586
|
-
return S !== !0 && s && s.list[
|
|
14585
|
+
var I = this._parts.hostname.lastIndexOf("."), O = this._parts.hostname.substring(I + 1);
|
|
14586
|
+
return S !== !0 && s && s.list[O.toLowerCase()] && s.get(this._parts.hostname) || O;
|
|
14587
14587
|
} else {
|
|
14588
14588
|
var $;
|
|
14589
14589
|
if (w)
|
|
@@ -14608,8 +14608,8 @@ function fE() {
|
|
|
14608
14608
|
return "";
|
|
14609
14609
|
if (this._parts.path === "/")
|
|
14610
14610
|
return "/";
|
|
14611
|
-
var I = this._parts.path.length - this.filename().length - 1,
|
|
14612
|
-
return w ? r.decodePath(
|
|
14611
|
+
var I = this._parts.path.length - this.filename().length - 1, O = this._parts.path.substring(0, I) || (this._parts.hostname ? "/" : "");
|
|
14612
|
+
return w ? r.decodePath(O) : O;
|
|
14613
14613
|
} else {
|
|
14614
14614
|
var $ = this._parts.path.length - this.filename().length, J = this._parts.path.substring(0, $), Z = new RegExp("^" + d(J));
|
|
14615
14615
|
return this.is("relative") || (w || (w = "/"), w.charAt(0) !== "/" && (w = "/" + w)), w && w.charAt(w.length - 1) !== "/" && (w += "/"), w = r.recodePath(w), this._parts.path = this._parts.path.replace(Z, w), this.build(!S), this;
|
|
@@ -14620,8 +14620,8 @@ function fE() {
|
|
|
14620
14620
|
if (typeof w != "string") {
|
|
14621
14621
|
if (!this._parts.path || this._parts.path === "/")
|
|
14622
14622
|
return "";
|
|
14623
|
-
var I = this._parts.path.lastIndexOf("/"),
|
|
14624
|
-
return w ? r.decodePathSegment(
|
|
14623
|
+
var I = this._parts.path.lastIndexOf("/"), O = this._parts.path.substring(I + 1);
|
|
14624
|
+
return w ? r.decodePathSegment(O) : O;
|
|
14625
14625
|
} else {
|
|
14626
14626
|
var $ = !1;
|
|
14627
14627
|
w.charAt(0) === "/" && (w = w.substring(1)), w.match(/\.?\//) && ($ = !0);
|
|
@@ -14634,8 +14634,8 @@ function fE() {
|
|
|
14634
14634
|
if (w === void 0 || w === !0) {
|
|
14635
14635
|
if (!this._parts.path || this._parts.path === "/")
|
|
14636
14636
|
return "";
|
|
14637
|
-
var I = this.filename(),
|
|
14638
|
-
return
|
|
14637
|
+
var I = this.filename(), O = I.lastIndexOf("."), $, J;
|
|
14638
|
+
return O === -1 ? "" : ($ = I.substring(O + 1), J = /^[a-z0-9%]+$/i.test($) ? $ : "", w ? r.decodePathSegment(J) : J);
|
|
14639
14639
|
} else {
|
|
14640
14640
|
w.charAt(0) === "." && (w = w.substring(1));
|
|
14641
14641
|
var Z = this.suffix(), Y;
|
|
@@ -14649,7 +14649,7 @@ function fE() {
|
|
|
14649
14649
|
return Y && (w = r.recodePath(w), this._parts.path = this._parts.path.replace(Y, w)), this.build(!S), this;
|
|
14650
14650
|
}
|
|
14651
14651
|
}, l.segment = function(w, S, I) {
|
|
14652
|
-
var
|
|
14652
|
+
var O = this._parts.urn ? ":" : "/", $ = this.path(), J = $.substring(0, 1) === "/", Z = $.split(O);
|
|
14653
14653
|
if (w !== void 0 && typeof w != "number" && (I = S, S = w, w = void 0), w !== void 0 && typeof w != "number")
|
|
14654
14654
|
throw new Error('Bad segment "' + w + '", must be 0-based integer');
|
|
14655
14655
|
if (J && Z.shift(), w < 0 && (w = Math.max(Z.length + w, 0)), S === void 0)
|
|
@@ -14662,16 +14662,16 @@ function fE() {
|
|
|
14662
14662
|
} else (S || typeof S == "string") && (S = y(S), Z[Z.length - 1] === "" ? Z[Z.length - 1] = S : Z.push(S));
|
|
14663
14663
|
else
|
|
14664
14664
|
S ? Z[w] = y(S) : Z.splice(w, 1);
|
|
14665
|
-
return J && Z.unshift(""), this.path(Z.join(
|
|
14665
|
+
return J && Z.unshift(""), this.path(Z.join(O), I);
|
|
14666
14666
|
}, l.segmentCoded = function(w, S, I) {
|
|
14667
|
-
var
|
|
14667
|
+
var O, $, J;
|
|
14668
14668
|
if (typeof w != "number" && (I = S, S = w, w = void 0), S === void 0) {
|
|
14669
|
-
if (
|
|
14670
|
-
|
|
14669
|
+
if (O = this.segment(w, S, I), !p(O))
|
|
14670
|
+
O = O !== void 0 ? r.decode(O) : void 0;
|
|
14671
14671
|
else
|
|
14672
|
-
for ($ = 0, J =
|
|
14673
|
-
|
|
14674
|
-
return
|
|
14672
|
+
for ($ = 0, J = O.length; $ < J; $++)
|
|
14673
|
+
O[$] = r.decode(O[$]);
|
|
14674
|
+
return O;
|
|
14675
14675
|
}
|
|
14676
14676
|
if (!p(S))
|
|
14677
14677
|
S = typeof S == "string" || S instanceof String ? r.encode(S) : S;
|
|
@@ -14680,33 +14680,33 @@ function fE() {
|
|
|
14680
14680
|
S[$] = r.encode(S[$]);
|
|
14681
14681
|
return this.segment(w, S, I);
|
|
14682
14682
|
};
|
|
14683
|
-
var
|
|
14683
|
+
var V = l.query;
|
|
14684
14684
|
return l.query = function(w, S) {
|
|
14685
14685
|
if (w === !0)
|
|
14686
14686
|
return r.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
|
|
14687
14687
|
if (typeof w == "function") {
|
|
14688
|
-
var I = r.parseQuery(this._parts.query, this._parts.escapeQuerySpace),
|
|
14689
|
-
return this._parts.query = r.buildQuery(
|
|
14690
|
-
} else return w !== void 0 && typeof w != "string" ? (this._parts.query = r.buildQuery(w, this._parts.duplicateQueryParameters, this._parts.escapeQuerySpace), this.build(!S), this) :
|
|
14688
|
+
var I = r.parseQuery(this._parts.query, this._parts.escapeQuerySpace), O = w.call(this, I);
|
|
14689
|
+
return this._parts.query = r.buildQuery(O || I, this._parts.duplicateQueryParameters, this._parts.escapeQuerySpace), this.build(!S), this;
|
|
14690
|
+
} else return w !== void 0 && typeof w != "string" ? (this._parts.query = r.buildQuery(w, this._parts.duplicateQueryParameters, this._parts.escapeQuerySpace), this.build(!S), this) : V.call(this, w, S);
|
|
14691
14691
|
}, l.setQuery = function(w, S, I) {
|
|
14692
|
-
var
|
|
14692
|
+
var O = r.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
|
|
14693
14693
|
if (typeof w == "string" || w instanceof String)
|
|
14694
|
-
|
|
14694
|
+
O[w] = S !== void 0 ? S : null;
|
|
14695
14695
|
else if (typeof w == "object")
|
|
14696
14696
|
for (var $ in w)
|
|
14697
|
-
c.call(w, $) && (
|
|
14697
|
+
c.call(w, $) && (O[$] = w[$]);
|
|
14698
14698
|
else
|
|
14699
14699
|
throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");
|
|
14700
|
-
return this._parts.query = r.buildQuery(
|
|
14700
|
+
return this._parts.query = r.buildQuery(O, this._parts.duplicateQueryParameters, this._parts.escapeQuerySpace), typeof w != "string" && (I = S), this.build(!I), this;
|
|
14701
14701
|
}, l.addQuery = function(w, S, I) {
|
|
14702
|
-
var
|
|
14703
|
-
return r.addQuery(
|
|
14702
|
+
var O = r.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
|
|
14703
|
+
return r.addQuery(O, w, S === void 0 ? null : S), this._parts.query = r.buildQuery(O, this._parts.duplicateQueryParameters, this._parts.escapeQuerySpace), typeof w != "string" && (I = S), this.build(!I), this;
|
|
14704
14704
|
}, l.removeQuery = function(w, S, I) {
|
|
14705
|
-
var
|
|
14706
|
-
return r.removeQuery(
|
|
14705
|
+
var O = r.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
|
|
14706
|
+
return r.removeQuery(O, w, S), this._parts.query = r.buildQuery(O, this._parts.duplicateQueryParameters, this._parts.escapeQuerySpace), typeof w != "string" && (I = S), this.build(!I), this;
|
|
14707
14707
|
}, l.hasQuery = function(w, S, I) {
|
|
14708
|
-
var
|
|
14709
|
-
return r.hasQuery(
|
|
14708
|
+
var O = r.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
|
|
14709
|
+
return r.hasQuery(O, w, S, I);
|
|
14710
14710
|
}, l.setSearch = l.setQuery, l.addSearch = l.addQuery, l.removeSearch = l.removeQuery, l.hasSearch = l.hasQuery, l.normalize = function() {
|
|
14711
14711
|
return this._parts.urn ? this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build() : this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build();
|
|
14712
14712
|
}, l.normalizeProtocol = function(w) {
|
|
@@ -14724,15 +14724,15 @@ function fE() {
|
|
|
14724
14724
|
if (this._parts.path === "/")
|
|
14725
14725
|
return this;
|
|
14726
14726
|
S = r.recodePath(S);
|
|
14727
|
-
var I,
|
|
14728
|
-
for (S.charAt(0) !== "/" && (I = !0, S = "/" + S), (S.slice(-3) === "/.." || S.slice(-2) === "/.") && (S += "/"), S = S.replace(/(\/(\.\/)+)|(\/\.$)/g, "/").replace(/\/{2,}/g, "/"), I && (
|
|
14727
|
+
var I, O = "", $, J;
|
|
14728
|
+
for (S.charAt(0) !== "/" && (I = !0, S = "/" + S), (S.slice(-3) === "/.." || S.slice(-2) === "/.") && (S += "/"), S = S.replace(/(\/(\.\/)+)|(\/\.$)/g, "/").replace(/\/{2,}/g, "/"), I && (O = S.substring(1).match(/^(\.\.\/)+/) || "", O && (O = O[0])); $ = S.search(/\/\.\.(\/|$)/), $ !== -1; ) {
|
|
14729
14729
|
if ($ === 0) {
|
|
14730
14730
|
S = S.substring(3);
|
|
14731
14731
|
continue;
|
|
14732
14732
|
}
|
|
14733
14733
|
J = S.substring(0, $).lastIndexOf("/"), J === -1 && (J = $), S = S.substring(0, J) + S.substring($ + 3);
|
|
14734
14734
|
}
|
|
14735
|
-
return I && this.is("relative") && (S =
|
|
14735
|
+
return I && this.is("relative") && (S = O + S.substring(1)), this._parts.path = S, this.build(!w), this;
|
|
14736
14736
|
}, l.normalizePathname = l.normalizePath, l.normalizeQuery = function(w) {
|
|
14737
14737
|
return typeof this._parts.query == "string" && (this._parts.query.length ? this.query(r.parseQuery(this._parts.query, this._parts.escapeQuerySpace)) : this._parts.query = null, this.build(!w)), this;
|
|
14738
14738
|
}, l.normalizeFragment = function(w) {
|
|
@@ -14760,33 +14760,33 @@ function fE() {
|
|
|
14760
14760
|
w.username("").password("").normalize();
|
|
14761
14761
|
var S = "";
|
|
14762
14762
|
if (w._parts.protocol && (S += w._parts.protocol + "://"), w._parts.hostname && (w.is("punycode") && i ? (S += i.toUnicode(w._parts.hostname), w._parts.port && (S += ":" + w._parts.port)) : S += w.host()), w._parts.hostname && w._parts.path && w._parts.path.charAt(0) !== "/" && (S += "/"), S += w.path(!0), w._parts.query) {
|
|
14763
|
-
for (var I = "",
|
|
14764
|
-
var Z = ($[
|
|
14763
|
+
for (var I = "", O = 0, $ = w._parts.query.split("&"), J = $.length; O < J; O++) {
|
|
14764
|
+
var Z = ($[O] || "").split("=");
|
|
14765
14765
|
I += "&" + r.decodeQuery(Z[0], this._parts.escapeQuerySpace).replace(/&/g, "%26"), Z[1] !== void 0 && (I += "=" + r.decodeQuery(Z[1], this._parts.escapeQuerySpace).replace(/&/g, "%26"));
|
|
14766
14766
|
}
|
|
14767
14767
|
S += "?" + I.substring(1);
|
|
14768
14768
|
}
|
|
14769
14769
|
return S += r.decodeQuery(w.hash(), !0), S;
|
|
14770
14770
|
}, l.absoluteTo = function(w) {
|
|
14771
|
-
var S = this.clone(), I = ["protocol", "username", "password", "hostname", "port"],
|
|
14771
|
+
var S = this.clone(), I = ["protocol", "username", "password", "hostname", "port"], O, $, J;
|
|
14772
14772
|
if (this._parts.urn)
|
|
14773
14773
|
throw new Error("URNs do not have any generally defined hierarchical components");
|
|
14774
14774
|
if (w instanceof r || (w = new r(w)), S._parts.protocol || (S._parts.protocol = w._parts.protocol, this._parts.hostname))
|
|
14775
14775
|
return S;
|
|
14776
14776
|
for ($ = 0; J = I[$]; $++)
|
|
14777
14777
|
S._parts[J] = w._parts[J];
|
|
14778
|
-
return S._parts.path ? (S._parts.path.substring(-2) === ".." && (S._parts.path += "/"), S.path().charAt(0) !== "/" && (
|
|
14778
|
+
return S._parts.path ? (S._parts.path.substring(-2) === ".." && (S._parts.path += "/"), S.path().charAt(0) !== "/" && (O = w.directory(), O = O || (w.path().indexOf("/") === 0 ? "/" : ""), S._parts.path = (O ? O + "/" : "") + S._parts.path, S.normalizePath())) : (S._parts.path = w._parts.path, S._parts.query || (S._parts.query = w._parts.query)), S.build(), S;
|
|
14779
14779
|
}, l.relativeTo = function(w) {
|
|
14780
|
-
var S = this.clone().normalize(), I,
|
|
14780
|
+
var S = this.clone().normalize(), I, O, $, J, Z;
|
|
14781
14781
|
if (S._parts.urn)
|
|
14782
14782
|
throw new Error("URNs do not have any generally defined hierarchical components");
|
|
14783
|
-
if (w = new r(w).normalize(), I = S._parts,
|
|
14783
|
+
if (w = new r(w).normalize(), I = S._parts, O = w._parts, J = S.path(), Z = w.path(), J.charAt(0) !== "/")
|
|
14784
14784
|
throw new Error("URI is already relative");
|
|
14785
14785
|
if (Z.charAt(0) !== "/")
|
|
14786
14786
|
throw new Error("Cannot calculate a URI relative to another relative URI");
|
|
14787
|
-
if (I.protocol ===
|
|
14787
|
+
if (I.protocol === O.protocol && (I.protocol = null), I.username !== O.username || I.password !== O.password || I.protocol !== null || I.username !== null || I.password !== null)
|
|
14788
14788
|
return S.build();
|
|
14789
|
-
if (I.hostname ===
|
|
14789
|
+
if (I.hostname === O.hostname && I.port === O.port)
|
|
14790
14790
|
I.hostname = null, I.port = null;
|
|
14791
14791
|
else
|
|
14792
14792
|
return S.build();
|
|
@@ -14794,21 +14794,21 @@ function fE() {
|
|
|
14794
14794
|
return I.path = "", S.build();
|
|
14795
14795
|
if ($ = r.commonPath(J, Z), !$)
|
|
14796
14796
|
return S.build();
|
|
14797
|
-
var Y =
|
|
14797
|
+
var Y = O.path.substring($.length).replace(/[^\/]*$/, "").replace(/.*?\//g, "../");
|
|
14798
14798
|
return I.path = Y + I.path.substring($.length) || "./", S.build();
|
|
14799
14799
|
}, l.equals = function(w) {
|
|
14800
|
-
var S = this.clone(), I = new r(w),
|
|
14800
|
+
var S = this.clone(), I = new r(w), O = {}, $ = {}, J = {}, Z, Y, te;
|
|
14801
14801
|
if (S.normalize(), I.normalize(), S.toString() === I.toString())
|
|
14802
14802
|
return !0;
|
|
14803
14803
|
if (Z = S.query(), Y = I.query(), S.query(""), I.query(""), S.toString() !== I.toString() || Z.length !== Y.length)
|
|
14804
14804
|
return !1;
|
|
14805
|
-
|
|
14806
|
-
for (te in
|
|
14807
|
-
if (c.call(
|
|
14808
|
-
if (p(
|
|
14809
|
-
if (!v(
|
|
14805
|
+
O = r.parseQuery(Z, this._parts.escapeQuerySpace), $ = r.parseQuery(Y, this._parts.escapeQuerySpace);
|
|
14806
|
+
for (te in O)
|
|
14807
|
+
if (c.call(O, te)) {
|
|
14808
|
+
if (p(O[te])) {
|
|
14809
|
+
if (!v(O[te], $[te]))
|
|
14810
14810
|
return !1;
|
|
14811
|
-
} else if (
|
|
14811
|
+
} else if (O[te] !== $[te])
|
|
14812
14812
|
return !1;
|
|
14813
14813
|
J[te] = !0;
|
|
14814
14814
|
}
|
|
@@ -17416,8 +17416,8 @@ xe.computeFixedToIcrfMatrix = function(t, i) {
|
|
|
17416
17416
|
const _ = X.fromRotationZ(y, Lu), C = X.multiply(u, _, zu), b = Math.cos(e.xPoleWander), T = Math.cos(e.yPoleWander), E = Math.sin(e.xPoleWander), D = Math.sin(e.yPoleWander);
|
|
17417
17417
|
let B = s - PA + o / et.SECONDS_PER_DAY;
|
|
17418
17418
|
B /= 36525;
|
|
17419
|
-
const
|
|
17420
|
-
return
|
|
17419
|
+
const N = -47e-6 * B * z.RADIANS_PER_DEGREE / 3600, G = Math.cos(N), W = Math.sin(N), L = Lu;
|
|
17420
|
+
return L[0] = b * G, L[1] = b * W, L[2] = E, L[3] = -T * W + D * E * G, L[4] = T * G + D * E * W, L[5] = -D * b, L[6] = -D * W - T * E * G, L[7] = D * G - T * E * W, L[8] = T * b, X.multiply(C, L, i);
|
|
17421
17421
|
};
|
|
17422
17422
|
const MA = new se();
|
|
17423
17423
|
xe.pointToWindowCoordinates = function(t, i, e, s) {
|
|
@@ -19241,7 +19241,7 @@ class rM extends h.WebMercatorTilingScheme {
|
|
|
19241
19241
|
};
|
|
19242
19242
|
}
|
|
19243
19243
|
}
|
|
19244
|
-
function
|
|
19244
|
+
function IB(t) {
|
|
19245
19245
|
if (t.type === "GeographicTilingScheme")
|
|
19246
19246
|
return "new Cesium.GeographicTilingScheme()";
|
|
19247
19247
|
if (t.type === "WebMercatorTilingScheme")
|
|
@@ -23923,7 +23923,7 @@ const Wa = class Wa extends Ie {
|
|
|
23923
23923
|
this.dispose(P([n, "show"], [e, "show"])), this.dispose(P([n, "allowPicking"], [e, "allowPicking"])), this.dispose(P([n, "rotation"], [e, "rotation"])), this.dispose(P([n, "position"], [e, "position"])), this.dispose(P([n, "scale"], [e, "scale"]));
|
|
23924
23924
|
{
|
|
23925
23925
|
const a = () => {
|
|
23926
|
-
const c = e.far * Math.tan(Math.PI * (e.fov / 360)) * 2, d = c / e.aspectRatio, u = e.far, p = e.near * Math.tan(Math.PI * (e.fov / 360)) * 2, f = p / e.aspectRatio, m = e.near, v = [m, -p / 2, -f / 2], y = [m, -p / 2, f / 2], _ = [m, p / 2, f / 2], C = [m, p / 2, -f / 2], b = [u, -c / 2, -d / 2], T = [u, -c / 2, d / 2], E = [u, c / 2, d / 2], D = [u, c / 2, -d / 2], B = [...v, ...y, ..._, ...C, ...b, ...T, ...E, ...D],
|
|
23926
|
+
const c = e.far * Math.tan(Math.PI * (e.fov / 360)) * 2, d = c / e.aspectRatio, u = e.far, p = e.near * Math.tan(Math.PI * (e.fov / 360)) * 2, f = p / e.aspectRatio, m = e.near, v = [m, -p / 2, -f / 2], y = [m, -p / 2, f / 2], _ = [m, p / 2, f / 2], C = [m, p / 2, -f / 2], b = [u, -c / 2, -d / 2], T = [u, -c / 2, d / 2], E = [u, c / 2, d / 2], D = [u, c / 2, -d / 2], B = [...v, ...y, ..._, ...C, ...b, ...T, ...E, ...D], N = [
|
|
23927
23927
|
0,
|
|
23928
23928
|
4,
|
|
23929
23929
|
5,
|
|
@@ -23948,7 +23948,7 @@ const Wa = class Wa extends Ie {
|
|
|
23948
23948
|
3,
|
|
23949
23949
|
4,
|
|
23950
23950
|
0
|
|
23951
|
-
], G = [...
|
|
23951
|
+
], G = [...N, ...N.reverse()], W = [1, 0], L = [1, 1], V = [1, 0], w = [1, 1], S = [0, 0], I = [0, 1], O = [0, 0], $ = [0, 1], J = [...W, ...L, ...V, ...w, ...S, ...I, ...O, ...$];
|
|
23952
23952
|
n.indexTypedArray = new Uint16Array(G), n.attributes = {
|
|
23953
23953
|
position: {
|
|
23954
23954
|
typedArray: new Float32Array(B),
|
|
@@ -27559,24 +27559,27 @@ ${i_}
|
|
|
27559
27559
|
}
|
|
27560
27560
|
_isEntityShow(e, s) {
|
|
27561
27561
|
var o;
|
|
27562
|
-
if (this.minFeatureVisibleDistance == 0 && this.maxFeatureVisibleDistance == 0
|
|
27562
|
+
if (this.minFeatureVisibleDistance == 0 && this.maxFeatureVisibleDistance == 0)
|
|
27563
27563
|
e.show = this.show;
|
|
27564
|
-
|
|
27565
|
-
|
|
27566
|
-
|
|
27567
|
-
|
|
27564
|
+
else if ((o = s.viewer) != null && o.camera) {
|
|
27565
|
+
if (!this.show) {
|
|
27566
|
+
e.show = this.show;
|
|
27567
|
+
return;
|
|
27568
|
+
}
|
|
27569
|
+
const n = h.JulianDate.now();
|
|
27570
|
+
let r;
|
|
27568
27571
|
if (e.polygon && e.polygon.hierarchy)
|
|
27569
|
-
|
|
27572
|
+
r = yt(e.polygon.hierarchy.getValue(n).positions.map((c) => me(c))).center;
|
|
27570
27573
|
else if (e.polyline && e.polyline.positions)
|
|
27571
|
-
|
|
27574
|
+
r = yt(e.polyline.positions.getValue(n).map((c) => me(c))).center;
|
|
27572
27575
|
else if (e.position) {
|
|
27573
|
-
const
|
|
27574
|
-
|
|
27576
|
+
const c = e.position.getValue(n);
|
|
27577
|
+
c && (r = me(c));
|
|
27575
27578
|
}
|
|
27576
|
-
if (!
|
|
27577
|
-
const
|
|
27578
|
-
let
|
|
27579
|
-
this.minFeatureVisibleDistance < this.maxFeatureVisibleDistance ?
|
|
27579
|
+
if (!r || isNaN(r[0])) return;
|
|
27580
|
+
const a = ft([r, Oi(s.viewer.camera)], "NONE")[0];
|
|
27581
|
+
let l = !1;
|
|
27582
|
+
this.minFeatureVisibleDistance < this.maxFeatureVisibleDistance ? l = this.minFeatureVisibleDistance < a && a < this.maxFeatureVisibleDistance : this.maxFeatureVisibleDistance == 0 ? l = a > this.minFeatureVisibleDistance : this.minFeatureVisibleDistance == 0 && (l = a < this.maxFeatureVisibleDistance), e.show = this.show && l;
|
|
27580
27583
|
}
|
|
27581
27584
|
}
|
|
27582
27585
|
};
|
|
@@ -27699,7 +27702,7 @@ const nl = class nl extends Zi {
|
|
|
27699
27702
|
};
|
|
27700
27703
|
l(), this.ad(e.featuresChanged.don(l));
|
|
27701
27704
|
}
|
|
27702
|
-
this.ad(P([a, "show"], [e, "show"])), this.ad(P([a, "allowPicking"], [e, "allowPicking"])), this.ad(P([a, "loadFuncStr"], [e, "loadFuncStr"])), this.ad(P([a, "stroked"], [e, "stroked"])), this.ad(P([a, "strokeWidth"], [e, "strokeWidth"])), this.ad(P([a, "strokeWidthType"], [e, "strokeWidthType"])), this.ad(P([a, "strokeColor"], [e, "strokeColor"])), this.ad(P([a, "strokeMaterial"], [e, "strokeMaterial"])), this.ad(P([a, "strokeMaterialParams"], [e, "strokeMaterialParams"])), this.ad(P([a, "strokeGround"], [e, "strokeGround"])), this.ad(P([a, "filled"], [e, "filled"])), this.ad(P([a, "fillColor"], [e, "fillColor"])), this.ad(P([a, "fillMaterial"], [e, "fillMaterial"])), this.ad(P([a, "fillMaterialParams"], [e, "fillMaterialParams"])), this.ad(P([a, "fillGround"], [e, "fillGround"])), this.ad(P([a, "minFeatureVisibleDistance"], [e, "minFeatureVisibleDistance"])), this.ad(P([a, "maxFeatureVisibleDistance"], [e, "maxFeatureVisibleDistance"])), this.ad(P([a, "heightReference"], [e, "heightReference"]));
|
|
27705
|
+
this.ad(P([a, "show"], [e, "show"])), this.ad(P([a, "allowPicking"], [e, "allowPicking"])), this.ad(P([a, "loadFuncStr"], [e, "loadFuncStr"])), this.ad(P([a, "stroked"], [e, "stroked"])), this.ad(P([a, "strokeWidth"], [e, "strokeWidth"])), this.ad(P([a, "strokeWidthType"], [e, "strokeWidthType"])), this.ad(P([a, "strokeColor"], [e, "strokeColor"])), this.ad(P([a, "strokeMaterial"], [e, "strokeMaterial"])), this.ad(P([a, "strokeMaterialParams"], [e, "strokeMaterialParams"])), this.ad(P([a, "strokeGround"], [e, "strokeGround"])), this.ad(P([a, "filled"], [e, "filled"])), this.ad(P([a, "fillColor"], [e, "fillColor"])), this.ad(P([a, "fillMaterial"], [e, "fillMaterial"])), this.ad(P([a, "fillMaterialParams"], [e, "fillMaterialParams"])), this.ad(P([a, "fillGround"], [e, "fillGround"])), this.ad(P([a, "minFeatureVisibleDistance"], [e, "minFeatureVisibleDistance"])), this.ad(P([a, "maxFeatureVisibleDistance"], [e, "maxFeatureVisibleDistance"])), this.ad(P([a, "heightReference"], [e, "heightReference"])), this.ad(P([a, "classificationType"], [e, "classificationType"]));
|
|
27703
27706
|
{
|
|
27704
27707
|
const l = () => {
|
|
27705
27708
|
!this.pointFeatures || this.pointFeatures.features.length == 0 || (this._defaultPointsBoundingSphere = h.BoundingSphere.fromPoints(this.pointFeatures.features.map((c) => (c.geometry.type == "Point" ? [c.geometry.coordinates] : c.geometry.coordinates).map((u) => Ve(u))).flat(1 / 0)));
|
|
@@ -27738,14 +27741,15 @@ const nl = class nl extends Zi {
|
|
|
27738
27741
|
this.pointFeatures.features.forEach((y, _) => {
|
|
27739
27742
|
const C = e.textProperty && e.textProperty !== "" && (y != null && y.properties) && y.properties[e.textProperty] ? y.properties[e.textProperty] : e.textDefaultText ?? rt.defaults.textDefaultText;
|
|
27740
27743
|
v.pixelOffset = h.Cartesian2.fromArray([
|
|
27741
|
-
-m[0] * ((e.textBackgroundColor ? -14 :
|
|
27744
|
+
-m[0] * ((e.textBackgroundColor ? -14 : 0) + this._getTextPixelWidth(C, v.font)) + f[0],
|
|
27742
27745
|
-m[1] * ((e.textBackgroundColor ? 10 : 0) + p) + f[1]
|
|
27743
27746
|
]), (y.geometry.type == "Point" ? [y.geometry.coordinates] : y.geometry.coordinates).forEach((T, E) => {
|
|
27744
27747
|
const D = {
|
|
27745
27748
|
index: `${_}${E}`,
|
|
27746
27749
|
name: C,
|
|
27747
27750
|
position: T,
|
|
27748
|
-
zOrder: e.zIndex ?? rt.defaults.zIndex
|
|
27751
|
+
zOrder: e.zIndex ?? rt.defaults.zIndex,
|
|
27752
|
+
properties: y.properties
|
|
27749
27753
|
}, B = r.addLabel(e.id, e.typeName, v, D);
|
|
27750
27754
|
l.id = B.id, l.layer = B.layer, l.screenObjectIds.push(B.screenObjectId);
|
|
27751
27755
|
});
|
|
@@ -27809,7 +27813,8 @@ const nl = class nl extends Zi {
|
|
|
27809
27813
|
index: `${C}${E}`,
|
|
27810
27814
|
name: "",
|
|
27811
27815
|
position: T,
|
|
27812
|
-
zOrder: e.zIndex ?? rt.defaults.zIndex
|
|
27816
|
+
zOrder: e.zIndex ?? rt.defaults.zIndex,
|
|
27817
|
+
properties: _.properties
|
|
27813
27818
|
}, B = r.addImage(e.id, e.typeName, y, D);
|
|
27814
27819
|
l.id = B.id, l.layer = B.layer, l.screenObjectIds.push(B.screenObjectId);
|
|
27815
27820
|
});
|
|
@@ -27831,7 +27836,7 @@ const nl = class nl extends Zi {
|
|
|
27831
27836
|
));
|
|
27832
27837
|
this.ad(u.don(d));
|
|
27833
27838
|
}
|
|
27834
|
-
this.ad(
|
|
27839
|
+
this.ad(e.flyToEvent.disposableOn((l) => {
|
|
27835
27840
|
if (!s.actived) return;
|
|
27836
27841
|
if (e.flyInParam) {
|
|
27837
27842
|
const { position: d, rotation: u, flyDuration: p } = e.flyInParam;
|
|
@@ -27890,13 +27895,9 @@ const nl = class nl extends Zi {
|
|
|
27890
27895
|
const n = [...e];
|
|
27891
27896
|
return s == "NONE" ? n[2] = n[2] ?? 0 : s == "CLAMP_TO_GROUND" || !n[2] ? n[2] = await o.getTerrainHeight(n) ?? 0 : n[2] += await o.getTerrainHeight(n) ?? 0, n;
|
|
27892
27897
|
}
|
|
27893
|
-
|
|
27894
|
-
|
|
27895
|
-
|
|
27896
|
-
const n = e.charCodeAt(o);
|
|
27897
|
-
n <= 127 ? s += 1 : n <= 2047 ? s += 2 : n <= 65535 ? s += 3 : s += 4;
|
|
27898
|
-
}
|
|
27899
|
-
return s;
|
|
27898
|
+
_getTextPixelWidth(e, s = "16px sans-serif") {
|
|
27899
|
+
const n = document.createElement("canvas").getContext("2d");
|
|
27900
|
+
return n.font = s, n.measureText(e).width;
|
|
27900
27901
|
}
|
|
27901
27902
|
};
|
|
27902
27903
|
g(nl, "type", nl.register("ESCesiumViewer", rt.type, nl));
|
|
@@ -28721,7 +28722,7 @@ class dR extends k {
|
|
|
28721
28722
|
}));
|
|
28722
28723
|
{
|
|
28723
28724
|
const c = () => {
|
|
28724
|
-
const u = r.size / 2, p = n[0].map((
|
|
28725
|
+
const u = r.size / 2, p = n[0].map((L) => L * u), f = n[1].map((L) => L * u), m = n[2].map((L) => L * u), v = n[3].map((L) => L * u), y = [
|
|
28725
28726
|
...p,
|
|
28726
28727
|
...f,
|
|
28727
28728
|
...m,
|
|
@@ -28750,15 +28751,15 @@ class dR extends k {
|
|
|
28750
28751
|
}, l.uri = oe.context.getStrFromEnv(`\${earthsdk3-assets-script-dir}/assets/img/skybox/${r.mode}/${o}.${r.mode != "blueSky" ? "png" : "jpg"}`);
|
|
28751
28752
|
const B = s.getCameraInfo();
|
|
28752
28753
|
if (B != null) {
|
|
28753
|
-
const
|
|
28754
|
+
const V = ft(
|
|
28754
28755
|
[r.position, B.position],
|
|
28755
28756
|
"NONE"
|
|
28756
28757
|
)[0] / (r.size / 2 * r.autoOpacityFactor);
|
|
28757
|
-
this.changeOpacity(r.autoFollow ? 1 :
|
|
28758
|
+
this.changeOpacity(r.autoFollow ? 1 : V);
|
|
28758
28759
|
}
|
|
28759
|
-
const
|
|
28760
|
-
if (!
|
|
28761
|
-
const { min: G, max: W } =
|
|
28760
|
+
const N = a.computeLocalAxisedBoundingBoxFromAttribute("position");
|
|
28761
|
+
if (!N) return;
|
|
28762
|
+
const { min: G, max: W } = N;
|
|
28762
28763
|
a.setLocalAxisedBoundingBox(G, W);
|
|
28763
28764
|
};
|
|
28764
28765
|
c();
|
|
@@ -32240,8 +32241,8 @@ const Es = class Es extends k {
|
|
|
32240
32241
|
const u = l.length, p = [...l, ...l.map((C) => [C[0], C[1], C[2] + (this.height ?? Es.defaults.height)])], f = l.reduce((C, b, T, E) => {
|
|
32241
32242
|
if (T === 0)
|
|
32242
32243
|
return C.push(0), C;
|
|
32243
|
-
const D = T - 1, B = E[D],
|
|
32244
|
-
return C.push(C[D] +
|
|
32244
|
+
const D = T - 1, B = E[D], N = Math.sqrt((B[0] - b[0]) * (B[0] - b[0]) + (B[1] - b[1]) * (B[1] - b[1]));
|
|
32245
|
+
return C.push(C[D] + N), C;
|
|
32245
32246
|
}, []);
|
|
32246
32247
|
n.value = f[u - 1];
|
|
32247
32248
|
const m = f.map((C) => C / n.value), v = [...m.map((C) => [C, 0]), ...m.map((C) => [C, 1])];
|
|
@@ -33034,12 +33035,12 @@ const Be = class Be extends Zi {
|
|
|
33034
33035
|
_();
|
|
33035
33036
|
});
|
|
33036
33037
|
const C = () => {
|
|
33037
|
-
var
|
|
33038
|
+
var L, V, w;
|
|
33038
33039
|
if (_(), !e.show || !Be.clusterImageAttribute) return;
|
|
33039
|
-
const E = e.style ?? is.defaults.style, D = Be.clusterImageAttribute[((
|
|
33040
|
+
const E = e.style ?? is.defaults.style, D = Be.clusterImageAttribute[((L = E.nonCluster) == null ? void 0 : L.mode) ?? "SquareH01"], B = [
|
|
33040
33041
|
-D.anchorPixelOffset[0] + D.textPixelOffset[0],
|
|
33041
33042
|
-D.anchorPixelOffset[1] - D.textPixelOffset[1]
|
|
33042
|
-
],
|
|
33043
|
+
], N = {
|
|
33043
33044
|
...a,
|
|
33044
33045
|
pixelOffset: new h.Cartesian2(B[0] * Be.scaleFactor, B[1] * Be.scaleFactor),
|
|
33045
33046
|
heightReference: h.HeightReference[(e.heightReference ?? is.defaults.heightReference).toUpperCase()]
|
|
@@ -33055,10 +33056,10 @@ const Be = class Be extends Zi {
|
|
|
33055
33056
|
for (let S = 0; S < d.clustering._clusterLabelCollection._labels.length; S++) {
|
|
33056
33057
|
const I = d.clustering._clusterLabelCollection._labels[S];
|
|
33057
33058
|
if (!Be.clusterImageAttribute) continue;
|
|
33058
|
-
const
|
|
33059
|
+
const O = I.text, $ = me(I.position), J = {
|
|
33059
33060
|
//@ts-ignore
|
|
33060
33061
|
index: I.id.map((Ee) => d.entities.values.length - 1 - d.clustering._collectionIndicesByEntity[Ee.id].billboardIndex).sort((Ee, Ke) => Ee - Ke),
|
|
33061
|
-
name:
|
|
33062
|
+
name: O,
|
|
33062
33063
|
position: $
|
|
33063
33064
|
}, Z = this.getClusterStyle(E.cluster ?? is.defaults.style.cluster, I.id.length).mode, Y = Be.clusterImageAttribute[Z], te = [
|
|
33064
33065
|
-Y.anchorPixelOffset[0] + Y.textPixelOffset[0],
|
|
@@ -33081,12 +33082,12 @@ const Be = class Be extends Zi {
|
|
|
33081
33082
|
}
|
|
33082
33083
|
for (let S = 0; S < d.entities.values.length; S++) {
|
|
33083
33084
|
const I = d.entities.values[S];
|
|
33084
|
-
if (W.has(I.id) || !this.pointFeatures || !s.isPointVisible(me((
|
|
33085
|
-
const
|
|
33085
|
+
if (W.has(I.id) || !this.pointFeatures || !s.isPointVisible(me((V = I.position) == null ? void 0 : V.getValue()))) continue;
|
|
33086
|
+
const O = this.getNthValue(S), $ = (O == null ? void 0 : O.coordinates) ?? (O == null ? void 0 : O.geometry.coordinates), J = (O == null ? void 0 : O.name) ?? ((w = O.properties) == null ? void 0 : w.name) ?? (S + 1).toString(), Z = {
|
|
33086
33087
|
index: S,
|
|
33087
33088
|
name: J,
|
|
33088
33089
|
position: $
|
|
33089
|
-
}, Y = r.addImage(e.id, e.typeName, G, Z), te = r.addLabel(e.id, e.typeName,
|
|
33090
|
+
}, Y = r.addImage(e.id, e.typeName, G, Z), te = r.addLabel(e.id, e.typeName, N, Z);
|
|
33090
33091
|
y.id = Y.id, y.layer = Y.layer, y.screenObjectIds.push(Y.screenObjectId), v.id = te.id, v.layer = te.layer, v.screenObjectIds.push(te.screenObjectId);
|
|
33091
33092
|
}
|
|
33092
33093
|
};
|
|
@@ -33788,14 +33789,14 @@ class h2 extends k {
|
|
|
33788
33789
|
}
|
|
33789
33790
|
h.Cartesian3.normalize(D, D), h.Cartesian3.multiplyByScalar(D, o, D);
|
|
33790
33791
|
for (let B = 0; B <= n; B++) {
|
|
33791
|
-
let
|
|
33792
|
+
let N = h.Quaternion.fromAxisAngle(b, B * 2 * Math.PI / n), G = h.Matrix3.fromQuaternion(N), W = h.Matrix4.fromRotationTranslation(G, h.Cartesian3.ZERO);
|
|
33792
33793
|
h.Matrix4.multiplyByTranslation(W, D, W);
|
|
33793
|
-
const
|
|
33794
|
-
h.Cartesian3.add(y,
|
|
33795
|
-
const
|
|
33794
|
+
const L = h.Matrix4.getTranslation(W, new h.Cartesian3());
|
|
33795
|
+
h.Cartesian3.add(y, L, L);
|
|
33796
|
+
const V = h.Cartesian3.add(L, C, new h.Cartesian3());
|
|
33796
33797
|
r.push(
|
|
33797
|
-
c(
|
|
33798
|
-
c(
|
|
33798
|
+
c(L),
|
|
33799
|
+
c(V)
|
|
33799
33800
|
), a.push(m, B / n, v, B / n);
|
|
33800
33801
|
}
|
|
33801
33802
|
}
|
|
@@ -33906,7 +33907,7 @@ const Hl = class Hl extends Ni {
|
|
|
33906
33907
|
const c = (p, f, m, v, y) => {
|
|
33907
33908
|
p.position = f;
|
|
33908
33909
|
const _ = m.flat();
|
|
33909
|
-
let C = v == "bottom" ? px(_, null, 3) : this._triangleIndices(m.length), b = [], T = -1 / 0, E = 1 / 0, D = -1 / 0, B = 1 / 0,
|
|
33910
|
+
let C = v == "bottom" ? px(_, null, 3) : this._triangleIndices(m.length), b = [], T = -1 / 0, E = 1 / 0, D = -1 / 0, B = 1 / 0, N = 0;
|
|
33910
33911
|
if (v == "bottom") {
|
|
33911
33912
|
for (let S = 0; S < m.length; S++)
|
|
33912
33913
|
D = D > m[S][0] ? D : m[S][0], B = B < m[S][0] ? B : m[S][0], T = T > m[S][1] ? T : m[S][1], E = E < m[S][1] ? E : m[S][1];
|
|
@@ -33918,7 +33919,7 @@ const Hl = class Hl extends Ni {
|
|
|
33918
33919
|
this._width += this._getDistance(m[S], m[S - 1 < 0 ? 0 : S - 1]), T = T > m[S][2] ? T : m[S][2], E = E < m[S][2] ? E : m[S][2];
|
|
33919
33920
|
this._height = T - E;
|
|
33920
33921
|
for (let S = 0; S < m.length; S++)
|
|
33921
|
-
|
|
33922
|
+
N += this._getDistance(m[S], m[S - 1 < 0 ? 0 : S - 1]), b.push(N / this._width, (m[S][2] - E) / this._height);
|
|
33922
33923
|
}
|
|
33923
33924
|
p.indexTypedArray = new Uint16Array(y ? C : C.reverse()), p.attributes = {
|
|
33924
33925
|
position: {
|
|
@@ -33943,10 +33944,10 @@ const Hl = class Hl extends Ni {
|
|
|
33943
33944
|
out_FragColor = imageColor * u_color;
|
|
33944
33945
|
}
|
|
33945
33946
|
`;
|
|
33946
|
-
const
|
|
33947
|
-
if (!
|
|
33948
|
-
const { min:
|
|
33949
|
-
p.setLocalAxisedBoundingBox(
|
|
33947
|
+
const L = p.computeLocalAxisedBoundingBoxFromAttribute("position");
|
|
33948
|
+
if (!L) return;
|
|
33949
|
+
const { min: V, max: w } = L;
|
|
33950
|
+
p.setLocalAxisedBoundingBox(V, w);
|
|
33950
33951
|
}, d = async () => {
|
|
33951
33952
|
if (e.points && e.points.length > 2) {
|
|
33952
33953
|
const { minPos: p, center: f } = yt(e.points), m = p[2] - e.depth;
|
|
@@ -35128,9 +35129,9 @@ Gr.createGeometry = function(t) {
|
|
|
35128
35129
|
for (l = 0; l < p - 1; ++l) {
|
|
35129
35130
|
var b = u[l], T = u[l + 1], E = s[l], D = m(b, T, f);
|
|
35130
35131
|
if (o && l < y) {
|
|
35131
|
-
var B = s[l + 1],
|
|
35132
|
+
var B = s[l + 1], N = K2(b, T, E, B, D), G = N.length;
|
|
35132
35133
|
for (c = 0; c < G; ++c)
|
|
35133
|
-
_[C++] =
|
|
35134
|
+
_[C++] = N[c];
|
|
35134
35135
|
} else
|
|
35135
35136
|
for (c = 0; c < D; ++c)
|
|
35136
35137
|
_[C++] = hi.clone(E);
|
|
@@ -35150,7 +35151,7 @@ Gr.createGeometry = function(t) {
|
|
|
35150
35151
|
});
|
|
35151
35152
|
}
|
|
35152
35153
|
p = u.length;
|
|
35153
|
-
var W = p * 4 - 4,
|
|
35154
|
+
var W = p * 4 - 4, L = new Float64Array(W * 3), V = new Float64Array(W * 3), w = new Float64Array(W * 3), S = new Float32Array(W * 2), I = e.st ? new Float32Array(W * 2) : void 0, O = mi(s) ? new Uint8Array(W * 4) : void 0, $ = 0, J = 0, Z = 0, Y = 0, te;
|
|
35154
35155
|
let le = [0];
|
|
35155
35156
|
{
|
|
35156
35157
|
for (l = 0; l < p - 1; l++) {
|
|
@@ -35162,14 +35163,14 @@ Gr.createGeometry = function(t) {
|
|
|
35162
35163
|
for (c = 0; c < p; ++c) {
|
|
35163
35164
|
c === 0 ? (te = sy, mt.subtract(u[0], u[1], te), mt.add(u[0], te, te)) : te = u[c - 1], mt.clone(te, ny), mt.clone(u[c], oy), c === p - 1 ? (te = sy, mt.subtract(u[p - 1], u[p - 2], te), mt.add(u[p - 1], te, te)) : te = u[c + 1], mt.clone(te, ry);
|
|
35164
35165
|
var ye, we;
|
|
35165
|
-
mi(
|
|
35166
|
+
mi(O) && (c !== 0 && !o ? ye = s[c - 1] : ye = s[c], c !== p - 1 && (we = s[c]));
|
|
35166
35167
|
var Ce = c === 0 ? 2 : 0, Ee = c === p - 1 ? 2 : 4;
|
|
35167
35168
|
for (d = Ce; d < Ee; ++d) {
|
|
35168
|
-
mt.pack(oy,
|
|
35169
|
+
mt.pack(oy, L, $), mt.pack(ny, V, $), mt.pack(ry, w, $), $ += 3;
|
|
35169
35170
|
var Ke = d - 2 < 0 ? -1 : 1;
|
|
35170
|
-
if (S[J++] = 2 * (d % 2) - 1, S[J++] = Ke * i, e.st && (I[Z++] = le[c], I[Z++] = Math.max(S[J - 2], 0)), mi(
|
|
35171
|
+
if (S[J++] = 2 * (d % 2) - 1, S[J++] = Ke * i, e.st && (I[Z++] = le[c], I[Z++] = Math.max(S[J - 2], 0)), mi(O)) {
|
|
35171
35172
|
var nt = d < 2 ? ye : we;
|
|
35172
|
-
|
|
35173
|
+
O[Y++] = hi.floatToByte(nt.red), O[Y++] = hi.floatToByte(nt.green), O[Y++] = hi.floatToByte(nt.blue), O[Y++] = hi.floatToByte(nt.alpha);
|
|
35173
35174
|
}
|
|
35174
35175
|
}
|
|
35175
35176
|
}
|
|
@@ -35177,11 +35178,11 @@ Gr.createGeometry = function(t) {
|
|
|
35177
35178
|
We.position = new Hn({
|
|
35178
35179
|
componentDatatype: Wn.DOUBLE,
|
|
35179
35180
|
componentsPerAttribute: 3,
|
|
35180
|
-
values:
|
|
35181
|
+
values: L
|
|
35181
35182
|
}), We.prevPosition = new Hn({
|
|
35182
35183
|
componentDatatype: Wn.DOUBLE,
|
|
35183
35184
|
componentsPerAttribute: 3,
|
|
35184
|
-
values:
|
|
35185
|
+
values: V
|
|
35185
35186
|
}), We.nextPosition = new Hn({
|
|
35186
35187
|
componentDatatype: Wn.DOUBLE,
|
|
35187
35188
|
componentsPerAttribute: 3,
|
|
@@ -35194,10 +35195,10 @@ Gr.createGeometry = function(t) {
|
|
|
35194
35195
|
componentDatatype: Wn.FLOAT,
|
|
35195
35196
|
componentsPerAttribute: 2,
|
|
35196
35197
|
values: I
|
|
35197
|
-
})), mi(
|
|
35198
|
+
})), mi(O) && (We.color = new Hn({
|
|
35198
35199
|
componentDatatype: Wn.UNSIGNED_BYTE,
|
|
35199
35200
|
componentsPerAttribute: 4,
|
|
35200
|
-
values:
|
|
35201
|
+
values: O,
|
|
35201
35202
|
normalize: !0
|
|
35202
35203
|
}));
|
|
35203
35204
|
var be = Z2.createTypedArray(W, p * 6 - 6), Ye = 0, dt = 0, Ht = p - 1;
|
|
@@ -35750,18 +35751,18 @@ var v_ = { exports: {} };
|
|
|
35750
35751
|
t.exports = s();
|
|
35751
35752
|
})(en, function() {
|
|
35752
35753
|
function e(C, b, T, E, D) {
|
|
35753
|
-
(function B(
|
|
35754
|
-
for (;
|
|
35755
|
-
if (
|
|
35756
|
-
var w =
|
|
35757
|
-
B(
|
|
35754
|
+
(function B(N, G, W, L, V) {
|
|
35755
|
+
for (; L > W; ) {
|
|
35756
|
+
if (L - W > 600) {
|
|
35757
|
+
var w = L - W + 1, S = G - W + 1, I = Math.log(w), O = 0.5 * Math.exp(2 * I / 3), $ = 0.5 * Math.sqrt(I * O * (w - O) / w) * (S - w / 2 < 0 ? -1 : 1), J = Math.max(W, Math.floor(G - S * O / w + $)), Z = Math.min(L, Math.floor(G + (w - S) * O / w + $));
|
|
35758
|
+
B(N, G, J, Z, V);
|
|
35758
35759
|
}
|
|
35759
|
-
var Y =
|
|
35760
|
-
for (s(
|
|
35761
|
-
for (s(
|
|
35762
|
-
for (; N
|
|
35760
|
+
var Y = N[G], te = W, le = L;
|
|
35761
|
+
for (s(N, W, G), V(N[L], Y) > 0 && s(N, W, L); te < le; ) {
|
|
35762
|
+
for (s(N, te, le), te++, le--; V(N[te], Y) < 0; ) te++;
|
|
35763
|
+
for (; V(N[le], Y) > 0; ) le--;
|
|
35763
35764
|
}
|
|
35764
|
-
N
|
|
35765
|
+
V(N[W], Y) === 0 ? s(N, W, le) : s(N, ++le, L), le <= G && (W = le + 1), G <= le && (L = le - 1);
|
|
35765
35766
|
}
|
|
35766
35767
|
})(C, b, T || 0, E || C.length - 1, D || o);
|
|
35767
35768
|
}
|
|
@@ -35786,8 +35787,8 @@ var v_ = { exports: {} };
|
|
|
35786
35787
|
function l(C, b, T, E, D) {
|
|
35787
35788
|
D || (D = y(null)), D.minX = 1 / 0, D.minY = 1 / 0, D.maxX = -1 / 0, D.maxY = -1 / 0;
|
|
35788
35789
|
for (var B = b; B < T; B++) {
|
|
35789
|
-
var
|
|
35790
|
-
c(D, C.leaf ? E(
|
|
35790
|
+
var N = C.children[B];
|
|
35791
|
+
c(D, C.leaf ? E(N) : N);
|
|
35791
35792
|
}
|
|
35792
35793
|
return D;
|
|
35793
35794
|
}
|
|
@@ -35817,8 +35818,8 @@ var v_ = { exports: {} };
|
|
|
35817
35818
|
}
|
|
35818
35819
|
function _(C, b, T, E, D) {
|
|
35819
35820
|
for (var B = [b, T]; B.length; ) if (!((T = B.pop()) - (b = B.pop()) <= E)) {
|
|
35820
|
-
var
|
|
35821
|
-
e(C,
|
|
35821
|
+
var N = b + Math.ceil((T - b) / E / 2) * E;
|
|
35822
|
+
e(C, N, b, T, D), B.push(b, N, N, T);
|
|
35822
35823
|
}
|
|
35823
35824
|
}
|
|
35824
35825
|
return n.prototype.all = function() {
|
|
@@ -35828,8 +35829,8 @@ var v_ = { exports: {} };
|
|
|
35828
35829
|
if (!v(C, b)) return T;
|
|
35829
35830
|
for (var E = this.toBBox, D = []; b; ) {
|
|
35830
35831
|
for (var B = 0; B < b.children.length; B++) {
|
|
35831
|
-
var
|
|
35832
|
-
v(C, G) && (b.leaf ? T.push(
|
|
35832
|
+
var N = b.children[B], G = b.leaf ? E(N) : N;
|
|
35833
|
+
v(C, G) && (b.leaf ? T.push(N) : m(C, G) ? this._all(N, T) : D.push(N));
|
|
35833
35834
|
}
|
|
35834
35835
|
b = D.pop();
|
|
35835
35836
|
}
|
|
@@ -35871,12 +35872,12 @@ var v_ = { exports: {} };
|
|
|
35871
35872
|
return this.data = y([]), this;
|
|
35872
35873
|
}, n.prototype.remove = function(C, b) {
|
|
35873
35874
|
if (!C) return this;
|
|
35874
|
-
for (var T, E, D, B = this.data,
|
|
35875
|
+
for (var T, E, D, B = this.data, N = this.toBBox(C), G = [], W = []; B || G.length; ) {
|
|
35875
35876
|
if (B || (B = G.pop(), E = G[G.length - 1], T = W.pop(), D = !0), B.leaf) {
|
|
35876
|
-
var
|
|
35877
|
-
if (
|
|
35877
|
+
var L = r(C, B.children, b);
|
|
35878
|
+
if (L !== -1) return B.children.splice(L, 1), G.push(B), this._condense(G), this;
|
|
35878
35879
|
}
|
|
35879
|
-
D || B.leaf || !m(B,
|
|
35880
|
+
D || B.leaf || !m(B, N) ? E ? (T++, B = E.children[T], D = !1) : B = null : (G.push(B), W.push(T), T = 0, E = B, B = B.children[0]);
|
|
35880
35881
|
}
|
|
35881
35882
|
return this;
|
|
35882
35883
|
}, n.prototype.toBBox = function(C) {
|
|
@@ -35893,27 +35894,27 @@ var v_ = { exports: {} };
|
|
|
35893
35894
|
for (var T = []; C; ) C.leaf ? b.push.apply(b, C.children) : T.push.apply(T, C.children), C = T.pop();
|
|
35894
35895
|
return b;
|
|
35895
35896
|
}, n.prototype._build = function(C, b, T, E) {
|
|
35896
|
-
var D, B = T - b + 1,
|
|
35897
|
-
if (B <=
|
|
35898
|
-
E || (E = Math.ceil(Math.log(B) / Math.log(
|
|
35899
|
-
var G = Math.ceil(B /
|
|
35897
|
+
var D, B = T - b + 1, N = this._maxEntries;
|
|
35898
|
+
if (B <= N) return a(D = y(C.slice(b, T + 1)), this.toBBox), D;
|
|
35899
|
+
E || (E = Math.ceil(Math.log(B) / Math.log(N)), N = Math.ceil(B / Math.pow(N, E - 1))), (D = y([])).leaf = !1, D.height = E;
|
|
35900
|
+
var G = Math.ceil(B / N), W = G * Math.ceil(Math.sqrt(N));
|
|
35900
35901
|
_(C, b, T, W, this.compareMinX);
|
|
35901
|
-
for (var
|
|
35902
|
-
var
|
|
35903
|
-
_(C,
|
|
35904
|
-
for (var w =
|
|
35905
|
-
var S = Math.min(w + G - 1,
|
|
35902
|
+
for (var L = b; L <= T; L += W) {
|
|
35903
|
+
var V = Math.min(L + W - 1, T);
|
|
35904
|
+
_(C, L, V, G, this.compareMinY);
|
|
35905
|
+
for (var w = L; w <= V; w += G) {
|
|
35906
|
+
var S = Math.min(w + G - 1, V);
|
|
35906
35907
|
D.children.push(this._build(C, w, S, E - 1));
|
|
35907
35908
|
}
|
|
35908
35909
|
}
|
|
35909
35910
|
return a(D, this.toBBox), D;
|
|
35910
35911
|
}, n.prototype._chooseSubtree = function(C, b, T, E) {
|
|
35911
35912
|
for (; E.push(b), !b.leaf && E.length - 1 !== T; ) {
|
|
35912
|
-
for (var D = 1 / 0, B = 1 / 0,
|
|
35913
|
-
var W = b.children[G],
|
|
35914
|
-
|
|
35913
|
+
for (var D = 1 / 0, B = 1 / 0, N = void 0, G = 0; G < b.children.length; G++) {
|
|
35914
|
+
var W = b.children[G], L = p(W), V = (w = C, S = W, (Math.max(S.maxX, w.maxX) - Math.min(S.minX, w.minX)) * (Math.max(S.maxY, w.maxY) - Math.min(S.minY, w.minY)) - L);
|
|
35915
|
+
V < B ? (B = V, D = L < D ? L : D, N = W) : V === B && L < D && (D = L, N = W);
|
|
35915
35916
|
}
|
|
35916
|
-
b =
|
|
35917
|
+
b = N || b.children[0];
|
|
35917
35918
|
}
|
|
35918
35919
|
var w, S;
|
|
35919
35920
|
return b;
|
|
@@ -35924,14 +35925,14 @@ var v_ = { exports: {} };
|
|
|
35924
35925
|
}, n.prototype._split = function(C, b) {
|
|
35925
35926
|
var T = C[b], E = T.children.length, D = this._minEntries;
|
|
35926
35927
|
this._chooseSplitAxis(T, D, E);
|
|
35927
|
-
var B = this._chooseSplitIndex(T, D, E),
|
|
35928
|
-
|
|
35928
|
+
var B = this._chooseSplitIndex(T, D, E), N = y(T.children.splice(B, T.children.length - B));
|
|
35929
|
+
N.height = T.height, N.leaf = T.leaf, a(T, this.toBBox), a(N, this.toBBox), b ? C[b - 1].children.push(N) : this._splitRoot(T, N);
|
|
35929
35930
|
}, n.prototype._splitRoot = function(C, b) {
|
|
35930
35931
|
this.data = y([C, b]), this.data.height = C.height + 1, this.data.leaf = !1, a(this.data, this.toBBox);
|
|
35931
35932
|
}, n.prototype._chooseSplitIndex = function(C, b, T) {
|
|
35932
|
-
for (var E, D, B,
|
|
35933
|
-
var I = l(C, 0, S, this.toBBox),
|
|
35934
|
-
$ <
|
|
35933
|
+
for (var E, D, B, N, G, W, L, V = 1 / 0, w = 1 / 0, S = b; S <= T - b; S++) {
|
|
35934
|
+
var I = l(C, 0, S, this.toBBox), O = l(C, S, T, this.toBBox), $ = (D = I, B = O, N = void 0, G = void 0, W = void 0, L = void 0, N = Math.max(D.minX, B.minX), G = Math.max(D.minY, B.minY), W = Math.min(D.maxX, B.maxX), L = Math.min(D.maxY, B.maxY), Math.max(0, W - N) * Math.max(0, L - G)), J = p(I) + p(O);
|
|
35935
|
+
$ < V ? (V = $, E = S, w = J < w ? J : w) : $ === V && J < w && (w = J, E = S);
|
|
35935
35936
|
}
|
|
35936
35937
|
return E || T - b;
|
|
35937
35938
|
}, n.prototype._chooseSplitAxis = function(C, b, T) {
|
|
@@ -35939,13 +35940,13 @@ var v_ = { exports: {} };
|
|
|
35939
35940
|
this._allDistMargin(C, b, T, E) < this._allDistMargin(C, b, T, D) && C.children.sort(E);
|
|
35940
35941
|
}, n.prototype._allDistMargin = function(C, b, T, E) {
|
|
35941
35942
|
C.children.sort(E);
|
|
35942
|
-
for (var D = this.toBBox, B = l(C, 0, b, D),
|
|
35943
|
-
var
|
|
35944
|
-
c(B, C.leaf ? D(
|
|
35943
|
+
for (var D = this.toBBox, B = l(C, 0, b, D), N = l(C, T - b, T, D), G = f(B) + f(N), W = b; W < T - b; W++) {
|
|
35944
|
+
var L = C.children[W];
|
|
35945
|
+
c(B, C.leaf ? D(L) : L), G += f(B);
|
|
35945
35946
|
}
|
|
35946
|
-
for (var
|
|
35947
|
-
var w = C.children[
|
|
35948
|
-
c(
|
|
35947
|
+
for (var V = T - b - 1; V >= b; V--) {
|
|
35948
|
+
var w = C.children[V];
|
|
35949
|
+
c(N, C.leaf ? D(w) : w), G += f(N);
|
|
35949
35950
|
}
|
|
35950
35951
|
return G;
|
|
35951
35952
|
}, n.prototype._adjustParentBBoxes = function(C, b, T) {
|
|
@@ -36212,219 +36213,219 @@ var sg = { exports: {} }, __ = {};
|
|
|
36212
36213
|
millimetres: 1e6,
|
|
36213
36214
|
yards: 1.195990046
|
|
36214
36215
|
};
|
|
36215
|
-
function i(
|
|
36216
|
+
function i(L, V, w) {
|
|
36216
36217
|
w === void 0 && (w = {});
|
|
36217
36218
|
var S = { type: "Feature" };
|
|
36218
|
-
return (w.id === 0 || w.id) && (S.id = w.id), w.bbox && (S.bbox = w.bbox), S.properties =
|
|
36219
|
+
return (w.id === 0 || w.id) && (S.id = w.id), w.bbox && (S.bbox = w.bbox), S.properties = V || {}, S.geometry = L, S;
|
|
36219
36220
|
}
|
|
36220
36221
|
t.feature = i;
|
|
36221
|
-
function e(
|
|
36222
|
-
switch (
|
|
36222
|
+
function e(L, V, w) {
|
|
36223
|
+
switch (L) {
|
|
36223
36224
|
case "Point":
|
|
36224
|
-
return s(
|
|
36225
|
+
return s(V).geometry;
|
|
36225
36226
|
case "LineString":
|
|
36226
|
-
return a(
|
|
36227
|
+
return a(V).geometry;
|
|
36227
36228
|
case "Polygon":
|
|
36228
|
-
return n(
|
|
36229
|
+
return n(V).geometry;
|
|
36229
36230
|
case "MultiPoint":
|
|
36230
|
-
return u(
|
|
36231
|
+
return u(V).geometry;
|
|
36231
36232
|
case "MultiLineString":
|
|
36232
|
-
return d(
|
|
36233
|
+
return d(V).geometry;
|
|
36233
36234
|
case "MultiPolygon":
|
|
36234
|
-
return p(
|
|
36235
|
+
return p(V).geometry;
|
|
36235
36236
|
default:
|
|
36236
|
-
throw new Error(
|
|
36237
|
+
throw new Error(L + " is invalid");
|
|
36237
36238
|
}
|
|
36238
36239
|
}
|
|
36239
36240
|
t.geometry = e;
|
|
36240
|
-
function s(
|
|
36241
|
-
if (w === void 0 && (w = {}), !
|
|
36241
|
+
function s(L, V, w) {
|
|
36242
|
+
if (w === void 0 && (w = {}), !L)
|
|
36242
36243
|
throw new Error("coordinates is required");
|
|
36243
|
-
if (!Array.isArray(
|
|
36244
|
+
if (!Array.isArray(L))
|
|
36244
36245
|
throw new Error("coordinates must be an Array");
|
|
36245
|
-
if (
|
|
36246
|
+
if (L.length < 2)
|
|
36246
36247
|
throw new Error("coordinates must be at least 2 numbers long");
|
|
36247
|
-
if (!B(
|
|
36248
|
+
if (!B(L[0]) || !B(L[1]))
|
|
36248
36249
|
throw new Error("coordinates must contain numbers");
|
|
36249
36250
|
var S = {
|
|
36250
36251
|
type: "Point",
|
|
36251
|
-
coordinates:
|
|
36252
|
+
coordinates: L
|
|
36252
36253
|
};
|
|
36253
|
-
return i(S,
|
|
36254
|
+
return i(S, V, w);
|
|
36254
36255
|
}
|
|
36255
36256
|
t.point = s;
|
|
36256
|
-
function o(
|
|
36257
|
-
return w === void 0 && (w = {}), c(
|
|
36258
|
-
return s(S,
|
|
36257
|
+
function o(L, V, w) {
|
|
36258
|
+
return w === void 0 && (w = {}), c(L.map(function(S) {
|
|
36259
|
+
return s(S, V);
|
|
36259
36260
|
}), w);
|
|
36260
36261
|
}
|
|
36261
36262
|
t.points = o;
|
|
36262
|
-
function n(
|
|
36263
|
+
function n(L, V, w) {
|
|
36263
36264
|
w === void 0 && (w = {});
|
|
36264
|
-
for (var S = 0, I =
|
|
36265
|
-
var
|
|
36266
|
-
if (
|
|
36265
|
+
for (var S = 0, I = L; S < I.length; S++) {
|
|
36266
|
+
var O = I[S];
|
|
36267
|
+
if (O.length < 4)
|
|
36267
36268
|
throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");
|
|
36268
|
-
for (var $ = 0; $ <
|
|
36269
|
-
if (
|
|
36269
|
+
for (var $ = 0; $ < O[O.length - 1].length; $++)
|
|
36270
|
+
if (O[O.length - 1][$] !== O[0][$])
|
|
36270
36271
|
throw new Error("First and last Position are not equivalent.");
|
|
36271
36272
|
}
|
|
36272
36273
|
var J = {
|
|
36273
36274
|
type: "Polygon",
|
|
36274
|
-
coordinates:
|
|
36275
|
+
coordinates: L
|
|
36275
36276
|
};
|
|
36276
|
-
return i(J,
|
|
36277
|
+
return i(J, V, w);
|
|
36277
36278
|
}
|
|
36278
36279
|
t.polygon = n;
|
|
36279
|
-
function r(
|
|
36280
|
-
return w === void 0 && (w = {}), c(
|
|
36281
|
-
return n(S,
|
|
36280
|
+
function r(L, V, w) {
|
|
36281
|
+
return w === void 0 && (w = {}), c(L.map(function(S) {
|
|
36282
|
+
return n(S, V);
|
|
36282
36283
|
}), w);
|
|
36283
36284
|
}
|
|
36284
36285
|
t.polygons = r;
|
|
36285
|
-
function a(
|
|
36286
|
-
if (w === void 0 && (w = {}),
|
|
36286
|
+
function a(L, V, w) {
|
|
36287
|
+
if (w === void 0 && (w = {}), L.length < 2)
|
|
36287
36288
|
throw new Error("coordinates must be an array of two or more positions");
|
|
36288
36289
|
var S = {
|
|
36289
36290
|
type: "LineString",
|
|
36290
|
-
coordinates:
|
|
36291
|
+
coordinates: L
|
|
36291
36292
|
};
|
|
36292
|
-
return i(S,
|
|
36293
|
+
return i(S, V, w);
|
|
36293
36294
|
}
|
|
36294
36295
|
t.lineString = a;
|
|
36295
|
-
function l(
|
|
36296
|
-
return w === void 0 && (w = {}), c(
|
|
36297
|
-
return a(S,
|
|
36296
|
+
function l(L, V, w) {
|
|
36297
|
+
return w === void 0 && (w = {}), c(L.map(function(S) {
|
|
36298
|
+
return a(S, V);
|
|
36298
36299
|
}), w);
|
|
36299
36300
|
}
|
|
36300
36301
|
t.lineStrings = l;
|
|
36301
|
-
function c(
|
|
36302
|
-
|
|
36302
|
+
function c(L, V) {
|
|
36303
|
+
V === void 0 && (V = {});
|
|
36303
36304
|
var w = { type: "FeatureCollection" };
|
|
36304
|
-
return
|
|
36305
|
+
return V.id && (w.id = V.id), V.bbox && (w.bbox = V.bbox), w.features = L, w;
|
|
36305
36306
|
}
|
|
36306
36307
|
t.featureCollection = c;
|
|
36307
|
-
function d(
|
|
36308
|
+
function d(L, V, w) {
|
|
36308
36309
|
w === void 0 && (w = {});
|
|
36309
36310
|
var S = {
|
|
36310
36311
|
type: "MultiLineString",
|
|
36311
|
-
coordinates:
|
|
36312
|
+
coordinates: L
|
|
36312
36313
|
};
|
|
36313
|
-
return i(S,
|
|
36314
|
+
return i(S, V, w);
|
|
36314
36315
|
}
|
|
36315
36316
|
t.multiLineString = d;
|
|
36316
|
-
function u(
|
|
36317
|
+
function u(L, V, w) {
|
|
36317
36318
|
w === void 0 && (w = {});
|
|
36318
36319
|
var S = {
|
|
36319
36320
|
type: "MultiPoint",
|
|
36320
|
-
coordinates:
|
|
36321
|
+
coordinates: L
|
|
36321
36322
|
};
|
|
36322
|
-
return i(S,
|
|
36323
|
+
return i(S, V, w);
|
|
36323
36324
|
}
|
|
36324
36325
|
t.multiPoint = u;
|
|
36325
|
-
function p(
|
|
36326
|
+
function p(L, V, w) {
|
|
36326
36327
|
w === void 0 && (w = {});
|
|
36327
36328
|
var S = {
|
|
36328
36329
|
type: "MultiPolygon",
|
|
36329
|
-
coordinates:
|
|
36330
|
+
coordinates: L
|
|
36330
36331
|
};
|
|
36331
|
-
return i(S,
|
|
36332
|
+
return i(S, V, w);
|
|
36332
36333
|
}
|
|
36333
36334
|
t.multiPolygon = p;
|
|
36334
|
-
function f(
|
|
36335
|
+
function f(L, V, w) {
|
|
36335
36336
|
w === void 0 && (w = {});
|
|
36336
36337
|
var S = {
|
|
36337
36338
|
type: "GeometryCollection",
|
|
36338
|
-
geometries:
|
|
36339
|
+
geometries: L
|
|
36339
36340
|
};
|
|
36340
|
-
return i(S,
|
|
36341
|
+
return i(S, V, w);
|
|
36341
36342
|
}
|
|
36342
36343
|
t.geometryCollection = f;
|
|
36343
|
-
function m(
|
|
36344
|
-
if (
|
|
36344
|
+
function m(L, V) {
|
|
36345
|
+
if (V === void 0 && (V = 0), V && !(V >= 0))
|
|
36345
36346
|
throw new Error("precision must be a positive number");
|
|
36346
|
-
var w = Math.pow(10,
|
|
36347
|
-
return Math.round(
|
|
36347
|
+
var w = Math.pow(10, V || 0);
|
|
36348
|
+
return Math.round(L * w) / w;
|
|
36348
36349
|
}
|
|
36349
36350
|
t.round = m;
|
|
36350
|
-
function v(
|
|
36351
|
-
|
|
36352
|
-
var w = t.factors[
|
|
36351
|
+
function v(L, V) {
|
|
36352
|
+
V === void 0 && (V = "kilometers");
|
|
36353
|
+
var w = t.factors[V];
|
|
36353
36354
|
if (!w)
|
|
36354
|
-
throw new Error(
|
|
36355
|
-
return
|
|
36355
|
+
throw new Error(V + " units is invalid");
|
|
36356
|
+
return L * w;
|
|
36356
36357
|
}
|
|
36357
36358
|
t.radiansToLength = v;
|
|
36358
|
-
function y(
|
|
36359
|
-
|
|
36360
|
-
var w = t.factors[
|
|
36359
|
+
function y(L, V) {
|
|
36360
|
+
V === void 0 && (V = "kilometers");
|
|
36361
|
+
var w = t.factors[V];
|
|
36361
36362
|
if (!w)
|
|
36362
|
-
throw new Error(
|
|
36363
|
-
return
|
|
36363
|
+
throw new Error(V + " units is invalid");
|
|
36364
|
+
return L / w;
|
|
36364
36365
|
}
|
|
36365
36366
|
t.lengthToRadians = y;
|
|
36366
|
-
function _(
|
|
36367
|
-
return b(y(
|
|
36367
|
+
function _(L, V) {
|
|
36368
|
+
return b(y(L, V));
|
|
36368
36369
|
}
|
|
36369
36370
|
t.lengthToDegrees = _;
|
|
36370
|
-
function C(
|
|
36371
|
-
var
|
|
36372
|
-
return
|
|
36371
|
+
function C(L) {
|
|
36372
|
+
var V = L % 360;
|
|
36373
|
+
return V < 0 && (V += 360), V;
|
|
36373
36374
|
}
|
|
36374
36375
|
t.bearingToAzimuth = C;
|
|
36375
|
-
function b(
|
|
36376
|
-
var
|
|
36377
|
-
return
|
|
36376
|
+
function b(L) {
|
|
36377
|
+
var V = L % (2 * Math.PI);
|
|
36378
|
+
return V * 180 / Math.PI;
|
|
36378
36379
|
}
|
|
36379
36380
|
t.radiansToDegrees = b;
|
|
36380
|
-
function T(
|
|
36381
|
-
var
|
|
36382
|
-
return
|
|
36381
|
+
function T(L) {
|
|
36382
|
+
var V = L % 360;
|
|
36383
|
+
return V * Math.PI / 180;
|
|
36383
36384
|
}
|
|
36384
36385
|
t.degreesToRadians = T;
|
|
36385
|
-
function E(
|
|
36386
|
-
if (
|
|
36386
|
+
function E(L, V, w) {
|
|
36387
|
+
if (V === void 0 && (V = "kilometers"), w === void 0 && (w = "kilometers"), !(L >= 0))
|
|
36387
36388
|
throw new Error("length must be a positive number");
|
|
36388
|
-
return v(y(
|
|
36389
|
+
return v(y(L, V), w);
|
|
36389
36390
|
}
|
|
36390
36391
|
t.convertLength = E;
|
|
36391
|
-
function D(
|
|
36392
|
-
if (
|
|
36392
|
+
function D(L, V, w) {
|
|
36393
|
+
if (V === void 0 && (V = "meters"), w === void 0 && (w = "kilometers"), !(L >= 0))
|
|
36393
36394
|
throw new Error("area must be a positive number");
|
|
36394
|
-
var S = t.areaFactors[
|
|
36395
|
+
var S = t.areaFactors[V];
|
|
36395
36396
|
if (!S)
|
|
36396
36397
|
throw new Error("invalid original units");
|
|
36397
36398
|
var I = t.areaFactors[w];
|
|
36398
36399
|
if (!I)
|
|
36399
36400
|
throw new Error("invalid final units");
|
|
36400
|
-
return
|
|
36401
|
+
return L / S * I;
|
|
36401
36402
|
}
|
|
36402
36403
|
t.convertArea = D;
|
|
36403
|
-
function B(
|
|
36404
|
-
return !isNaN(
|
|
36404
|
+
function B(L) {
|
|
36405
|
+
return !isNaN(L) && L !== null && !Array.isArray(L);
|
|
36405
36406
|
}
|
|
36406
36407
|
t.isNumber = B;
|
|
36407
|
-
function
|
|
36408
|
-
return !!
|
|
36408
|
+
function N(L) {
|
|
36409
|
+
return !!L && L.constructor === Object;
|
|
36409
36410
|
}
|
|
36410
|
-
t.isObject =
|
|
36411
|
-
function G(
|
|
36412
|
-
if (!
|
|
36411
|
+
t.isObject = N;
|
|
36412
|
+
function G(L) {
|
|
36413
|
+
if (!L)
|
|
36413
36414
|
throw new Error("bbox is required");
|
|
36414
|
-
if (!Array.isArray(
|
|
36415
|
+
if (!Array.isArray(L))
|
|
36415
36416
|
throw new Error("bbox must be an Array");
|
|
36416
|
-
if (
|
|
36417
|
+
if (L.length !== 4 && L.length !== 6)
|
|
36417
36418
|
throw new Error("bbox must be an Array of 4 or 6 numbers");
|
|
36418
|
-
|
|
36419
|
-
if (!B(
|
|
36419
|
+
L.forEach(function(V) {
|
|
36420
|
+
if (!B(V))
|
|
36420
36421
|
throw new Error("bbox must only contain numbers");
|
|
36421
36422
|
});
|
|
36422
36423
|
}
|
|
36423
36424
|
t.validateBBox = G;
|
|
36424
|
-
function W(
|
|
36425
|
-
if (!
|
|
36425
|
+
function W(L) {
|
|
36426
|
+
if (!L)
|
|
36426
36427
|
throw new Error("id is required");
|
|
36427
|
-
if (["string", "number"].indexOf(typeof
|
|
36428
|
+
if (["string", "number"].indexOf(typeof L) === -1)
|
|
36428
36429
|
throw new Error("id must be a number or a string");
|
|
36429
36430
|
}
|
|
36430
36431
|
t.validateId = W;
|
|
@@ -37280,8 +37281,8 @@ function WD() {
|
|
|
37280
37281
|
for (var D in f)
|
|
37281
37282
|
!(b && D === "prototype") && i.call(f, D) && C.push(String(D));
|
|
37282
37283
|
if (n)
|
|
37283
|
-
for (var B = u(f),
|
|
37284
|
-
!(B && a[
|
|
37284
|
+
for (var B = u(f), N = 0; N < a.length; ++N)
|
|
37285
|
+
!(B && a[N] === "constructor") && i.call(f, a[N]) && C.push(a[N]);
|
|
37285
37286
|
return C;
|
|
37286
37287
|
};
|
|
37287
37288
|
}
|
|
@@ -38569,17 +38570,17 @@ function gc(t) {
|
|
|
38569
38570
|
}
|
|
38570
38571
|
const BF = (3 + 16 * Rs) * Rs, VF = (2 + 12 * Rs) * Rs, NF = (9 + 64 * Rs) * Rs * Rs, Yn = gc(4), jy = gc(8), e0 = gc(12), t0 = gc(16), $t = gc(4);
|
|
38571
38572
|
function UF(t, i, e, s, o, n, r) {
|
|
38572
|
-
let a, l, c, d, u, p, f, m, v, y, _, C, b, T, E, D, B,
|
|
38573
|
-
const G = t - o, W = e - o,
|
|
38574
|
-
T = G *
|
|
38573
|
+
let a, l, c, d, u, p, f, m, v, y, _, C, b, T, E, D, B, N;
|
|
38574
|
+
const G = t - o, W = e - o, L = i - n, V = s - n;
|
|
38575
|
+
T = G * V, p = Ft * G, f = p - (p - G), m = G - f, p = Ft * V, v = p - (p - V), y = V - v, E = m * y - (T - f * v - m * v - f * y), D = L * W, p = Ft * L, f = p - (p - L), m = L - f, p = Ft * W, v = p - (p - W), y = W - v, B = m * y - (D - f * v - m * v - f * y), _ = E - B, u = E - _, Yn[0] = E - (_ + u) + (u - B), C = T + _, u = C - T, b = T - (C - u) + (_ - u), _ = b - D, u = b - _, Yn[1] = b - (_ + u) + (u - D), N = C + _, u = N - C, Yn[2] = C - (N - u) + (_ - u), Yn[3] = N;
|
|
38575
38576
|
let w = OF(4, Yn), S = VF * r;
|
|
38576
|
-
if (w >= S || -w >= S || (u = t - G, a = t - (G + u) + (u - o), u = e - W, c = e - (W + u) + (u - o), u = i -
|
|
38577
|
-
T = a *
|
|
38577
|
+
if (w >= S || -w >= S || (u = t - G, a = t - (G + u) + (u - o), u = e - W, c = e - (W + u) + (u - o), u = i - L, l = i - (L + u) + (u - n), u = s - V, d = s - (V + u) + (u - n), a === 0 && l === 0 && c === 0 && d === 0) || (S = NF * r + LF * Math.abs(w), w += G * d + V * a - (L * c + W * l), w >= S || -w >= S)) return w;
|
|
38578
|
+
T = a * V, p = Ft * a, f = p - (p - a), m = a - f, p = Ft * V, v = p - (p - V), y = V - v, E = m * y - (T - f * v - m * v - f * y), D = l * W, p = Ft * l, f = p - (p - l), m = l - f, p = Ft * W, v = p - (p - W), y = W - v, B = m * y - (D - f * v - m * v - f * y), _ = E - B, u = E - _, $t[0] = E - (_ + u) + (u - B), C = T + _, u = C - T, b = T - (C - u) + (_ - u), _ = b - D, u = b - _, $t[1] = b - (_ + u) + (u - D), N = C + _, u = N - C, $t[2] = C - (N - u) + (_ - u), $t[3] = N;
|
|
38578
38579
|
const I = Qu(4, Yn, 4, $t, jy);
|
|
38579
|
-
T = G * d, p = Ft * G, f = p - (p - G), m = G - f, p = Ft * d, v = p - (p - d), y = d - v, E = m * y - (T - f * v - m * v - f * y), D =
|
|
38580
|
-
const
|
|
38581
|
-
T = a * d, p = Ft * a, f = p - (p - a), m = a - f, p = Ft * d, v = p - (p - d), y = d - v, E = m * y - (T - f * v - m * v - f * y), D = l * c, p = Ft * l, f = p - (p - l), m = l - f, p = Ft * c, v = p - (p - c), y = c - v, B = m * y - (D - f * v - m * v - f * y), _ = E - B, u = E - _, $t[0] = E - (_ + u) + (u - B), C = T + _, u = C - T, b = T - (C - u) + (_ - u), _ = b - D, u = b - _, $t[1] = b - (_ + u) + (u - D),
|
|
38582
|
-
const $ = Qu(
|
|
38580
|
+
T = G * d, p = Ft * G, f = p - (p - G), m = G - f, p = Ft * d, v = p - (p - d), y = d - v, E = m * y - (T - f * v - m * v - f * y), D = L * c, p = Ft * L, f = p - (p - L), m = L - f, p = Ft * c, v = p - (p - c), y = c - v, B = m * y - (D - f * v - m * v - f * y), _ = E - B, u = E - _, $t[0] = E - (_ + u) + (u - B), C = T + _, u = C - T, b = T - (C - u) + (_ - u), _ = b - D, u = b - _, $t[1] = b - (_ + u) + (u - D), N = C + _, u = N - C, $t[2] = C - (N - u) + (_ - u), $t[3] = N;
|
|
38581
|
+
const O = Qu(I, jy, 4, $t, e0);
|
|
38582
|
+
T = a * d, p = Ft * a, f = p - (p - a), m = a - f, p = Ft * d, v = p - (p - d), y = d - v, E = m * y - (T - f * v - m * v - f * y), D = l * c, p = Ft * l, f = p - (p - l), m = l - f, p = Ft * c, v = p - (p - c), y = c - v, B = m * y - (D - f * v - m * v - f * y), _ = E - B, u = E - _, $t[0] = E - (_ + u) + (u - B), C = T + _, u = C - T, b = T - (C - u) + (_ - u), _ = b - D, u = b - _, $t[1] = b - (_ + u) + (u - D), N = C + _, u = N - C, $t[2] = C - (N - u) + (_ - u), $t[3] = N;
|
|
38583
|
+
const $ = Qu(O, e0, 4, $t, t0);
|
|
38583
38584
|
return t0[$ - 1];
|
|
38584
38585
|
}
|
|
38585
38586
|
function GF(t, i, e, s, o, n) {
|
|
@@ -39426,23 +39427,23 @@ function Ad(t, i, e) {
|
|
|
39426
39427
|
}
|
|
39427
39428
|
function nz(t, i, e) {
|
|
39428
39429
|
e === void 0 && (e = {});
|
|
39429
|
-
var s = JSON.stringify(e.properties || {}), o = t[0], n = t[1], r = t[2], a = t[3], l = (n + a) / 2, c = (o + r) / 2, d = i * 2 / ms([o, l], [r, l], e), u = d * (r - o), p = i * 2 / ms([c, n], [c, a], e), f = p * (a - n), m = u / 2, v = m * 2, y = Math.sqrt(3) / 2 * f, _ = r - o, C = a - n, b = 3 / 4 * v, T = y, E = (_ - v) / (v - m / 2), D = Math.floor(E), B = (D * b - m / 2 - _) / 2 - m / 2 + b / 2,
|
|
39430
|
+
var s = JSON.stringify(e.properties || {}), o = t[0], n = t[1], r = t[2], a = t[3], l = (n + a) / 2, c = (o + r) / 2, d = i * 2 / ms([o, l], [r, l], e), u = d * (r - o), p = i * 2 / ms([c, n], [c, a], e), f = p * (a - n), m = u / 2, v = m * 2, y = Math.sqrt(3) / 2 * f, _ = r - o, C = a - n, b = 3 / 4 * v, T = y, E = (_ - v) / (v - m / 2), D = Math.floor(E), B = (D * b - m / 2 - _) / 2 - m / 2 + b / 2, N = Math.floor((C - y) / y), G = (C - N * y) / 2, W = N * y - C > y / 2;
|
|
39430
39431
|
W && (G -= y / 4);
|
|
39431
|
-
for (var
|
|
39432
|
+
for (var L = [], V = [], w = 0; w < 6; w++) {
|
|
39432
39433
|
var S = 2 * Math.PI / 6 * w;
|
|
39433
|
-
|
|
39434
|
+
L.push(Math.cos(S)), V.push(Math.sin(S));
|
|
39434
39435
|
}
|
|
39435
|
-
for (var I = [],
|
|
39436
|
-
for (var $ = 0; $ <=
|
|
39437
|
-
var J =
|
|
39436
|
+
for (var I = [], O = 0; O <= D; O++)
|
|
39437
|
+
for (var $ = 0; $ <= N; $++) {
|
|
39438
|
+
var J = O % 2 === 1;
|
|
39438
39439
|
if (!($ === 0 && J) && !($ === 0 && W)) {
|
|
39439
|
-
var Z =
|
|
39440
|
+
var Z = O * b + o - B, Y = $ * T + n + G;
|
|
39440
39441
|
if (J && (Y -= y / 2), e.triangles === !0)
|
|
39441
|
-
az([Z, Y], u / 2, f / 2, JSON.parse(s),
|
|
39442
|
+
az([Z, Y], u / 2, f / 2, JSON.parse(s), L, V).forEach(function(le) {
|
|
39442
39443
|
e.mask ? Ad(e.mask, le) && I.push(le) : I.push(le);
|
|
39443
39444
|
});
|
|
39444
39445
|
else {
|
|
39445
|
-
var te = rz([Z, Y], u / 2, f / 2, JSON.parse(s),
|
|
39446
|
+
var te = rz([Z, Y], u / 2, f / 2, JSON.parse(s), L, V);
|
|
39446
39447
|
e.mask ? Ad(e.mask, te) && I.push(te) : I.push(te);
|
|
39447
39448
|
}
|
|
39448
39449
|
}
|
|
@@ -39801,35 +39802,35 @@ void main()
|
|
|
39801
39802
|
var T = p0(v), E = h.Matrix4.fromTranslation(T, new h.Matrix4());
|
|
39802
39803
|
b = h.Matrix4.multiply(Z, E, E), C = h.Matrix4.inverse(b, new h.Matrix4());
|
|
39803
39804
|
}
|
|
39804
|
-
var D = Pr(f, b), B = [],
|
|
39805
|
+
var D = Pr(f, b), B = [], N = [], G = _z(D);
|
|
39805
39806
|
if (d && c > 0) {
|
|
39806
39807
|
var W = Cz(D);
|
|
39807
39808
|
const Z = Math.max(W.maxy - W.miny, W.maxx - W.minx);
|
|
39808
|
-
var
|
|
39809
|
-
const Y = await Ku(
|
|
39810
|
-
var
|
|
39811
|
-
const te = await Ku(
|
|
39812
|
-
|
|
39809
|
+
var L = Sz(G, W, c);
|
|
39810
|
+
const Y = await Ku(L, C, b, m, o.scene, u, p, Z);
|
|
39811
|
+
var V = Tz(D, c);
|
|
39812
|
+
const te = await Ku(V, C, b, m, o.scene, u, p, Z);
|
|
39813
|
+
N.push(...Y.world_cartesian), B.push(...Y.local), N.push(...te.world_cartesian), B.push(...te.local);
|
|
39813
39814
|
for (let le = 0; le < D.length; ++le) {
|
|
39814
39815
|
const ye = D[le];
|
|
39815
39816
|
var w = await Ku([ye], C, b, m, o.scene, u, p, Z);
|
|
39816
39817
|
if (w.local.length > 0)
|
|
39817
|
-
B.push(...w.local),
|
|
39818
|
+
B.push(...w.local), N.push(...w.world_cartesian);
|
|
39818
39819
|
else {
|
|
39819
39820
|
const we = [ye.x, ye.y, ye.z + u];
|
|
39820
39821
|
B.push(we);
|
|
39821
39822
|
var S = Pr([h.Cartesian3.fromArray(we)], C);
|
|
39822
39823
|
for (let Ce = 0; Ce < S.length; ++Ce)
|
|
39823
|
-
|
|
39824
|
+
N.push(S[Ce]);
|
|
39824
39825
|
}
|
|
39825
39826
|
}
|
|
39826
39827
|
} else {
|
|
39827
39828
|
const Z = D.map((Y) => h.Cartesian3.fromArray([Y.x, Y.y, Y.z + Z]));
|
|
39828
|
-
B = Z,
|
|
39829
|
+
B = Z, N = Pr(Z, C);
|
|
39829
39830
|
}
|
|
39830
39831
|
var I = Pz(B, G);
|
|
39831
|
-
const
|
|
39832
|
-
this.totalArea =
|
|
39832
|
+
const O = xz(N, I);
|
|
39833
|
+
this.totalArea = O;
|
|
39833
39834
|
const $ = [];
|
|
39834
39835
|
B.forEach((Z) => {
|
|
39835
39836
|
const Y = [Z.x, Z.y, Z.z];
|
|
@@ -40207,13 +40208,13 @@ const Zl = class Zl extends Yi {
|
|
|
40207
40208
|
let _ = "", C = "";
|
|
40208
40209
|
const b = c.getCameraInfo();
|
|
40209
40210
|
if (b) {
|
|
40210
|
-
const D = (
|
|
40211
|
+
const D = (N, G) => b.position[N].toFixed(G), B = (N, G) => b.rotation[N].toFixed(G);
|
|
40211
40212
|
_ = `帧率:${c.getFPS()}FPS 经度: ${D(0, 5)}° 纬度: ${D(1, 5)}° 高度: ${D(2, 2)}米 偏航角: ${B(0, 2)}° 俯仰角: ${B(1, 2)}° 翻滚角:${B(2, 2)}° `;
|
|
40212
40213
|
}
|
|
40213
40214
|
p.innerText = _;
|
|
40214
40215
|
const T = (E = c.extensions) == null ? void 0 : E.cursorPositionInfo.cursorPosition;
|
|
40215
40216
|
if (T) {
|
|
40216
|
-
const D = (B,
|
|
40217
|
+
const D = (B, N) => T[B].toFixed(N);
|
|
40217
40218
|
C = `鼠标位置:${D(0, 5)}° ${D(1, 5)}° ${D(2, 2)}m`;
|
|
40218
40219
|
} else
|
|
40219
40220
|
C = "暂时无法获取鼠标位置...";
|
|
@@ -40266,22 +40267,22 @@ const Ql = class Ql extends Yi {
|
|
|
40266
40267
|
const b = document.createElement("span");
|
|
40267
40268
|
v.appendChild(b);
|
|
40268
40269
|
{
|
|
40269
|
-
const
|
|
40270
|
+
const N = () => {
|
|
40270
40271
|
u.style.height = (e.height ?? Ji.defaults.height) + "px", u.style.lineHeight = (e.height ?? Ji.defaults.height) + "px";
|
|
40271
40272
|
};
|
|
40272
|
-
this.dispose(e.heightChanged.disposableOn(
|
|
40273
|
+
this.dispose(e.heightChanged.disposableOn(N)), N();
|
|
40273
40274
|
}
|
|
40274
40275
|
{
|
|
40275
|
-
const
|
|
40276
|
+
const N = () => {
|
|
40276
40277
|
u.style.fontSize = (e.fontSize ?? Ji.defaults.fontSize) + "px";
|
|
40277
40278
|
};
|
|
40278
|
-
this.dispose(e.fontSizeChanged.disposableOn(
|
|
40279
|
+
this.dispose(e.fontSizeChanged.disposableOn(N)), N();
|
|
40279
40280
|
}
|
|
40280
40281
|
{
|
|
40281
|
-
const
|
|
40282
|
+
const N = () => {
|
|
40282
40283
|
e.bgColor ? u.style.background = `rgba(${e.bgColor[0] * 255},${e.bgColor[1] * 255},${e.bgColor[2] * 255},${e.bgColor[3]})` : u.style.background = `rgba(${Ji.defaults.bgColor[0]},${Ji.defaults.bgColor[1]},${Ji.defaults.bgColor[2]},${Ji.defaults.bgColor[3]})`;
|
|
40283
40284
|
};
|
|
40284
|
-
this.dispose(e.bgColorChanged.disposableOn(
|
|
40285
|
+
this.dispose(e.bgColorChanged.disposableOn(N)), N();
|
|
40285
40286
|
}
|
|
40286
40287
|
p.style.display = "flex", f.style.fontWeight = "bold", f.style.padding = "0 0 0 25px";
|
|
40287
40288
|
let T = "EarthSDK";
|
|
@@ -40289,8 +40290,8 @@ const Ql = class Ql extends Yi {
|
|
|
40289
40290
|
let E = "——免费开源地球可视化开发包";
|
|
40290
40291
|
m.innerText = E, v.style.width = "550px", y.style.position = "fixed", y.style.width = "125px", y.style.height = "30px", y.style.padding = "0 5px", y.style.display = "flex", y.style.justifyContent = "flex-end", y.style.pointerEvents = "auto", y.style.zIndex = "101", _.style.width = "125px", _.style.display = "inline-block", _.style.textAlign = "center", _.style.fontSize = "14px", _.style.fontWeight = "lighter", _.style.lineHeight = "30px", _.style.color = "#fff", _.innerHTML = "1000km", C.style.borderRight = "1px solid #fff", C.style.borderLeft = "1px solid #fff", C.style.borderBottom = "1px solid #fff", C.style.position = "absolute", C.style.height = "10px", C.style.top = "15px", C.style.width = "75px", C.style.right = `${60 / 2}px`, b.style.display = "flex", b.style.zIndex = "101", b.style.justifyContent = "flex-end", b.style.right = "0";
|
|
40291
40292
|
const D = () => {
|
|
40292
|
-
const
|
|
40293
|
-
if (e.show === !1 ||
|
|
40293
|
+
const N = s.viewerLegend.legend.computedLengthInMeters;
|
|
40294
|
+
if (e.show === !1 || N && N > 1e6)
|
|
40294
40295
|
y.style.display = "none";
|
|
40295
40296
|
else {
|
|
40296
40297
|
y.style.display = "block";
|
|
@@ -40299,8 +40300,8 @@ const Ql = class Ql extends Yi {
|
|
|
40299
40300
|
const W = s.viewerLegend.legend.computedLengthInPixels;
|
|
40300
40301
|
if (W) {
|
|
40301
40302
|
C.style.width = `${W}px`;
|
|
40302
|
-
const
|
|
40303
|
-
C.style.left = `${
|
|
40303
|
+
const L = (135 - W) / 2;
|
|
40304
|
+
C.style.left = `${L}px`;
|
|
40304
40305
|
}
|
|
40305
40306
|
}
|
|
40306
40307
|
};
|
|
@@ -40310,26 +40311,26 @@ const Ql = class Ql extends Yi {
|
|
|
40310
40311
|
}, 200);
|
|
40311
40312
|
this.dispose(() => clearInterval(B));
|
|
40312
40313
|
{
|
|
40313
|
-
let
|
|
40314
|
+
let N;
|
|
40314
40315
|
const G = () => {
|
|
40315
|
-
e.show ? (d.style.display = "block",
|
|
40316
|
+
e.show ? (d.style.display = "block", N = this.disposeVar(mf(
|
|
40316
40317
|
() => {
|
|
40317
40318
|
var w;
|
|
40318
40319
|
let W = "";
|
|
40319
|
-
const
|
|
40320
|
-
if (
|
|
40321
|
-
const S = (I,
|
|
40320
|
+
const L = c.getCameraInfo();
|
|
40321
|
+
if (L) {
|
|
40322
|
+
const S = (I, O) => L.position[I].toFixed(O);
|
|
40322
40323
|
W += `帧率:${c.getFPS()}FPS 相机: ${S(2, 2)}米 `;
|
|
40323
40324
|
}
|
|
40324
|
-
const
|
|
40325
|
-
if (
|
|
40326
|
-
const S = (I,
|
|
40325
|
+
const V = (w = c.extensions) == null ? void 0 : w.cursorPositionInfo.cursorPosition;
|
|
40326
|
+
if (V) {
|
|
40327
|
+
const S = (I, O) => V[I].toFixed(O);
|
|
40327
40328
|
W += `位置:${S(0, 5)}° ${S(1, 5)}° ${S(2, 2)}米`;
|
|
40328
40329
|
} else
|
|
40329
40330
|
W += "暂时无法获取鼠标位置...";
|
|
40330
40331
|
b.innerText = W;
|
|
40331
40332
|
}
|
|
40332
|
-
)),
|
|
40333
|
+
)), N.start()) : (d.style.display = "none", N.destroy());
|
|
40333
40334
|
};
|
|
40334
40335
|
this.dispose(e.showChanged.disposableOn(G)), G();
|
|
40335
40336
|
}
|
|
@@ -40462,11 +40463,11 @@ class Jh extends k {
|
|
|
40462
40463
|
type: "Polygon",
|
|
40463
40464
|
coordinates: [
|
|
40464
40465
|
[
|
|
40465
|
-
...this.positions.map((
|
|
40466
|
+
...this.positions.map((V) => [V[0], V[1]])
|
|
40466
40467
|
]
|
|
40467
40468
|
]
|
|
40468
|
-
}, E = [v, y, _, C], D = this.gridWidth, G = R_(E, D, { units: "meters", mask: T }).features.map((
|
|
40469
|
-
return G.map((
|
|
40469
|
+
}, E = [v, y, _, C], D = this.gridWidth, G = R_(E, D, { units: "meters", mask: T }).features.map((V) => V.geometry.coordinates), W = h.Math.toRadians;
|
|
40470
|
+
return G.map((V) => new h.Cartographic(W(V[0]), W(V[1])));
|
|
40470
40471
|
}, d = () => {
|
|
40471
40472
|
a.positions = [], l.positions = [], this.area = 0, this.cutVolume = 0, this.fillVolume = 0, this.cutAndFillVolume = 0, a.depthTest = !0;
|
|
40472
40473
|
}, u = this.dv(ze(async (f) => {
|
|
@@ -40478,7 +40479,7 @@ class Jh extends k {
|
|
|
40478
40479
|
v === _ - 1 ? b = m.slice(v * y) : b = m.slice(v * y, (v + 1) * y);
|
|
40479
40480
|
const T = o.scene.sampleHeightMostDetailed(b), E = await f.promise(T);
|
|
40480
40481
|
if (v === _ - 1 ? this.progress = Math.round(this.progress + 100 / _) : this.progress += 100 / _, E && E.length) {
|
|
40481
|
-
const D = h.Math.toDegrees, B = E.filter((
|
|
40482
|
+
const D = h.Math.toDegrees, B = E.filter((N) => N != null).map((N) => [D(N.longitude), D(N.latitude), N.height]);
|
|
40482
40483
|
C.push(...B);
|
|
40483
40484
|
}
|
|
40484
40485
|
v++;
|
|
@@ -41946,8 +41947,8 @@ const oo = class oo extends Ci {
|
|
|
41946
41947
|
T.disposer.dispose((p(), this.positionChanged.don(p))), T.disposer.dispose((f(), this.headingChanged.don(f))), T.disposer.dispose((m(), s.changed.don(m))), T.disposer.dispose(e.pointerMoveEvent.don((E) => {
|
|
41947
41948
|
E.pointerEvent && y(E.pointerEvent);
|
|
41948
41949
|
})), await vi(T, (E) => new Promise((D, B) => {
|
|
41949
|
-
E.disposer.dispose(B), E.disposer.dispose(e.pointerDownEvent.don((
|
|
41950
|
-
|
|
41950
|
+
E.disposer.dispose(B), E.disposer.dispose(e.pointerDownEvent.don((N) => {
|
|
41951
|
+
N.pointerEvent && y(N.pointerEvent), N.pointerEvent && N.pointerEvent.button === 0 && v.constraintMode !== "none" && D();
|
|
41951
41952
|
}));
|
|
41952
41953
|
}));
|
|
41953
41954
|
}), this._opInfo.step.value = !1, await vi(b, async (T) => {
|
|
@@ -44265,19 +44266,19 @@ function CL(t) {
|
|
|
44265
44266
|
), m = new n(), v = new n();
|
|
44266
44267
|
d.prototype.createMesh = function(y) {
|
|
44267
44268
|
y = y ?? H1.EMPTY_OBJECT;
|
|
44268
|
-
const _ = y.tilingScheme, C = y.x, b = y.y, T = y.level, E = y.exaggeration ?? 1, D = y.exaggerationRelativeHeight ?? 0, B = y.throttle ?? !0,
|
|
44269
|
+
const _ = y.tilingScheme, C = y.x, b = y.y, T = y.level, E = y.exaggeration ?? 1, D = y.exaggerationRelativeHeight ?? 0, B = y.throttle ?? !0, N = _.ellipsoid;
|
|
44269
44270
|
_.tileXYToNativeRectangle(C, b, T, m), _.tileXYToRectangle(C, b, T, v);
|
|
44270
|
-
const G =
|
|
44271
|
+
const G = N.cartographicToCartesian(
|
|
44271
44272
|
n.center(v)
|
|
44272
44273
|
);
|
|
44273
44274
|
this._skirtHeight = 6378137 * 0.3;
|
|
44274
|
-
const
|
|
44275
|
+
const L = (B ? f : p).scheduleTask({
|
|
44275
44276
|
buffer: this._buffer,
|
|
44276
44277
|
nativeRectangle: m,
|
|
44277
44278
|
rectangle: n.clone(v),
|
|
44278
44279
|
// vtxf 20230804
|
|
44279
44280
|
relativeToCenter: G,
|
|
44280
|
-
ellipsoid:
|
|
44281
|
+
ellipsoid: N,
|
|
44281
44282
|
skirtHeight: this._skirtHeight,
|
|
44282
44283
|
exaggeration: E,
|
|
44283
44284
|
exaggerationRelativeHeight: D,
|
|
@@ -44285,11 +44286,11 @@ function CL(t) {
|
|
|
44285
44286
|
negativeAltitudeExponentBias: this._negativeAltitudeExponentBias,
|
|
44286
44287
|
negativeElevationThreshold: this._negativeElevationThreshold
|
|
44287
44288
|
});
|
|
44288
|
-
if (!s(
|
|
44289
|
+
if (!s(L))
|
|
44289
44290
|
return;
|
|
44290
|
-
const
|
|
44291
|
-
return
|
|
44292
|
-
return
|
|
44291
|
+
const V = this;
|
|
44292
|
+
return L.then(function(w) {
|
|
44293
|
+
return V._mesh = new c(
|
|
44293
44294
|
G,
|
|
44294
44295
|
new Float32Array(w.vertices),
|
|
44295
44296
|
new Uint16Array(w.indices),
|
|
@@ -44306,7 +44307,7 @@ function CL(t) {
|
|
|
44306
44307
|
w.southIndicesEastToWest,
|
|
44307
44308
|
w.eastIndicesNorthToSouth,
|
|
44308
44309
|
w.northIndicesWestToEast
|
|
44309
|
-
),
|
|
44310
|
+
), V._minimumHeight = w.minimumHeight, V._maximumHeight = w.maximumHeight, V._buffer = void 0, V._mesh;
|
|
44310
44311
|
});
|
|
44311
44312
|
};
|
|
44312
44313
|
}
|
|
@@ -44854,19 +44855,19 @@ function f4(t, i, e, s) {
|
|
|
44854
44855
|
for (const D in m) {
|
|
44855
44856
|
if (!m.hasOwnProperty(D))
|
|
44856
44857
|
continue;
|
|
44857
|
-
const B = m[D],
|
|
44858
|
+
const B = m[D], N = mg(
|
|
44858
44859
|
t,
|
|
44859
44860
|
//@ts-ignore
|
|
44860
44861
|
h.VertexAttributeSemantic,
|
|
44861
44862
|
D
|
|
44862
|
-
), G =
|
|
44863
|
+
), G = N.modelSemantic;
|
|
44863
44864
|
if (u && !T4(G))
|
|
44864
44865
|
continue;
|
|
44865
44866
|
G === h.VertexAttributeSemantic.FEATURE_ID && (f = !0);
|
|
44866
44867
|
const W = b1(
|
|
44867
44868
|
t,
|
|
44868
44869
|
B,
|
|
44869
|
-
|
|
44870
|
+
N,
|
|
44870
44871
|
i,
|
|
44871
44872
|
p,
|
|
44872
44873
|
d,
|
|
@@ -45829,6 +45830,17 @@ h.Material._materialCache.addMaterial(h.Material.XbsjPolylineArrow, {
|
|
|
45829
45830
|
},
|
|
45830
45831
|
translucent: !0
|
|
45831
45832
|
});
|
|
45833
|
+
function d5() {
|
|
45834
|
+
Object.defineProperties(h.Billboard.prototype, {
|
|
45835
|
+
_positionFromParent: {
|
|
45836
|
+
get() {
|
|
45837
|
+
return !1;
|
|
45838
|
+
},
|
|
45839
|
+
set(t) {
|
|
45840
|
+
}
|
|
45841
|
+
}
|
|
45842
|
+
});
|
|
45843
|
+
}
|
|
45832
45844
|
vL();
|
|
45833
45845
|
yL();
|
|
45834
45846
|
wL();
|
|
@@ -45841,16 +45853,17 @@ OL();
|
|
|
45841
45853
|
BL();
|
|
45842
45854
|
NL();
|
|
45843
45855
|
l4();
|
|
45856
|
+
d5();
|
|
45844
45857
|
h.Camera.DEFAULT_VIEW_RECTANGLE = h.Rectangle.fromDegrees(
|
|
45845
45858
|
70,
|
|
45846
45859
|
5,
|
|
45847
45860
|
140,
|
|
45848
45861
|
55
|
|
45849
45862
|
);
|
|
45850
|
-
function
|
|
45863
|
+
function u5() {
|
|
45851
45864
|
return new Promise((t, i) => h.GroundPolylinePrimitive.initializeTerrainHeights().then(t));
|
|
45852
45865
|
}
|
|
45853
|
-
class
|
|
45866
|
+
class p5 extends k {
|
|
45854
45867
|
constructor(i, e, s, o) {
|
|
45855
45868
|
super();
|
|
45856
45869
|
const n = () => {
|
|
@@ -45870,7 +45883,7 @@ class u5 extends k {
|
|
|
45870
45883
|
const r = this.dv(ze(async (a, l) => {
|
|
45871
45884
|
e.setStatus("Creating"), e.setStatusLog("正在创建Cesium视口...");
|
|
45872
45885
|
const c = gL;
|
|
45873
|
-
await a.promise(
|
|
45886
|
+
await a.promise(u5());
|
|
45874
45887
|
const d = await a.promise(dp(c(l, o)));
|
|
45875
45888
|
d.scene._xbsjOriginSkyAtmosphere = d.scene.skyAtmosphere, d.scene._xbsjOriginSkyBox = d.scene.skyBox, d.scene.renderError.removeEventListener(d.cesiumWidget._onRenderError), d.clockViewModel.currentTime = h.JulianDate.fromDate(new Date(e.currentTime)), this.dispose(e.currentTimeChanged.disposableOn(() => {
|
|
45876
45889
|
if (e.currentTime === void 0) return;
|
|
@@ -45881,7 +45894,7 @@ class u5 extends k {
|
|
|
45881
45894
|
p !== e.currentTime && (e.currentTime = p);
|
|
45882
45895
|
}));
|
|
45883
45896
|
{
|
|
45884
|
-
const u = new
|
|
45897
|
+
const u = new B5(d, e);
|
|
45885
45898
|
X0(d, u);
|
|
45886
45899
|
}
|
|
45887
45900
|
e.setStatus("Created"), e.setStatusLog("成功创建Cesium视口!"), s(d);
|
|
@@ -45891,8 +45904,8 @@ class u5 extends k {
|
|
|
45891
45904
|
});
|
|
45892
45905
|
}
|
|
45893
45906
|
}
|
|
45894
|
-
const
|
|
45895
|
-
class
|
|
45907
|
+
const f5 = new h.EllipsoidTerrainProvider();
|
|
45908
|
+
class g5 extends k {
|
|
45896
45909
|
constructor(e) {
|
|
45897
45910
|
super();
|
|
45898
45911
|
g(this, "_terrainMap", /* @__PURE__ */ new Map());
|
|
@@ -45909,7 +45922,7 @@ class f5 extends k {
|
|
|
45909
45922
|
let n = Number.MIN_SAFE_INTEGER;
|
|
45910
45923
|
for (let r of this._terrainMap.keys())
|
|
45911
45924
|
r.sceneObject.activate = !1, (r.sceneObject.show ?? !0) && r.sceneObject.zIndex >= n && (this.selectedTerrain && console.warn(`存在多个terrain,只能显示一个,当前terrian:${this.selectedTerrain.sceneObject.name}(${this.selectedTerrain.sceneObject.id}), 即将被替换成${r.sceneObject.name}(${r.sceneObject.id})`), n = r.sceneObject.zIndex, this.selectedTerrain = r);
|
|
45912
|
-
this.selectedTerrain && !this.selectedTerrain.provider && (this.selectedTerrain.sceneObject.activate = !0, this.selectedTerrain.sceneObject.activateEvent.emit()), s.scene.terrainProvider = (this.selectedTerrain && this.selectedTerrain.provider) ??
|
|
45925
|
+
this.selectedTerrain && !this.selectedTerrain.provider && (this.selectedTerrain.sceneObject.activate = !0, this.selectedTerrain.sceneObject.activateEvent.emit()), s.scene.terrainProvider = (this.selectedTerrain && this.selectedTerrain.provider) ?? f5;
|
|
45913
45926
|
}));
|
|
45914
45927
|
}
|
|
45915
45928
|
_makeDirty() {
|
|
@@ -45945,7 +45958,7 @@ class f5 extends k {
|
|
|
45945
45958
|
s(), this._terrainMap.delete(e), this.selectedTerrain === e && (this.selectedTerrain = void 0), this._makeDirty();
|
|
45946
45959
|
}
|
|
45947
45960
|
}
|
|
45948
|
-
class
|
|
45961
|
+
class m5 extends k {
|
|
45949
45962
|
constructor(e) {
|
|
45950
45963
|
super();
|
|
45951
45964
|
// 存储全部的label,销毁的时候用于清空监听
|
|
@@ -46004,7 +46017,7 @@ class g5 extends k {
|
|
|
46004
46017
|
});
|
|
46005
46018
|
}
|
|
46006
46019
|
}
|
|
46007
|
-
class
|
|
46020
|
+
class v5 extends k {
|
|
46008
46021
|
constructor(e) {
|
|
46009
46022
|
super();
|
|
46010
46023
|
g(this, "_czmImageryLayerWrappers", /* @__PURE__ */ new Set());
|
|
@@ -46035,7 +46048,7 @@ class m5 extends k {
|
|
|
46035
46048
|
this._zIndexChangedEvent.emit();
|
|
46036
46049
|
}
|
|
46037
46050
|
}
|
|
46038
|
-
class
|
|
46051
|
+
class y5 extends k {
|
|
46039
46052
|
constructor(e) {
|
|
46040
46053
|
super();
|
|
46041
46054
|
g(this, "_imageryLayer");
|
|
@@ -46052,13 +46065,13 @@ class v5 extends k {
|
|
|
46052
46065
|
return this._czmImageryWrapper;
|
|
46053
46066
|
}
|
|
46054
46067
|
}
|
|
46055
|
-
class
|
|
46068
|
+
class w5 extends k {
|
|
46056
46069
|
constructor(e) {
|
|
46057
46070
|
super();
|
|
46058
46071
|
g(this, "_objResetting");
|
|
46059
46072
|
this._czmImageryWrapper = e, this._objResetting = this.dv(new he(this.czmImageryWrapper.imagery.showChanged, () => {
|
|
46060
46073
|
if (this.czmImageryWrapper.imagery.show ?? !0)
|
|
46061
|
-
return new
|
|
46074
|
+
return new y5(this.czmImageryWrapper);
|
|
46062
46075
|
}));
|
|
46063
46076
|
}
|
|
46064
46077
|
get czmImageryWrapper() {
|
|
@@ -46068,13 +46081,13 @@ class y5 extends k {
|
|
|
46068
46081
|
return this._objResetting;
|
|
46069
46082
|
}
|
|
46070
46083
|
}
|
|
46071
|
-
class
|
|
46084
|
+
class C5 extends k {
|
|
46072
46085
|
constructor(e, s) {
|
|
46073
46086
|
super();
|
|
46074
46087
|
g(this, "_czmImageryLayerWrapperObjResetting");
|
|
46075
46088
|
this._imagery = e, this._manager = s, this._czmImageryLayerWrapperObjResetting = this.dv(new he(this.imagery.layerChanged, () => {
|
|
46076
46089
|
if (this.imagery.layer)
|
|
46077
|
-
return new
|
|
46090
|
+
return new w5(this);
|
|
46078
46091
|
}));
|
|
46079
46092
|
}
|
|
46080
46093
|
get imagery() {
|
|
@@ -46087,13 +46100,13 @@ class w5 extends k {
|
|
|
46087
46100
|
return this._czmImageryLayerWrapperObjResetting;
|
|
46088
46101
|
}
|
|
46089
46102
|
}
|
|
46090
|
-
class
|
|
46103
|
+
class _5 extends k {
|
|
46091
46104
|
constructor(e) {
|
|
46092
46105
|
super();
|
|
46093
46106
|
g(this, "_czmImageryWrappers", /* @__PURE__ */ new Set());
|
|
46094
46107
|
// private _czmImageryLayersManager = this.dv(new CzmImageryLayersManager(this.viewer))
|
|
46095
46108
|
g(this, "_czmImageryLayersManager");
|
|
46096
|
-
this._viewer = e, this._czmImageryLayersManager = this.dv(new
|
|
46109
|
+
this._viewer = e, this._czmImageryLayersManager = this.dv(new v5(this.viewer));
|
|
46097
46110
|
}
|
|
46098
46111
|
get czmImageryWrappers() {
|
|
46099
46112
|
return this._czmImageryWrappers;
|
|
@@ -46110,7 +46123,7 @@ class C5 extends k {
|
|
|
46110
46123
|
console.warn("imageriesManager add error: has already added!", e);
|
|
46111
46124
|
return;
|
|
46112
46125
|
}
|
|
46113
|
-
this.czmImageryWrappers.add(new
|
|
46126
|
+
this.czmImageryWrappers.add(new C5(e, this));
|
|
46114
46127
|
}
|
|
46115
46128
|
has(e) {
|
|
46116
46129
|
for (let s of this.czmImageryWrappers)
|
|
@@ -46127,7 +46140,7 @@ class C5 extends k {
|
|
|
46127
46140
|
console.warn("imageriesManager delete error!", e);
|
|
46128
46141
|
}
|
|
46129
46142
|
}
|
|
46130
|
-
class
|
|
46143
|
+
class P5 extends k {
|
|
46131
46144
|
constructor(e) {
|
|
46132
46145
|
super();
|
|
46133
46146
|
g(this, "_pause", this.disposeVar(U(!1)));
|
|
@@ -46179,9 +46192,9 @@ class _5 extends k {
|
|
|
46179
46192
|
e.pickCustomAttachedInfo = p;
|
|
46180
46193
|
try {
|
|
46181
46194
|
(async () => {
|
|
46182
|
-
var E, D, B,
|
|
46195
|
+
var E, D, B, N;
|
|
46183
46196
|
let v = s.scene.pick(ke(d), u && u[0], u && u[1]);
|
|
46184
|
-
!v && h.defined(s.scene.globe) && (v = await
|
|
46197
|
+
!v && h.defined(s.scene.globe) && (v = await x5(s, ke(d)));
|
|
46185
46198
|
let y;
|
|
46186
46199
|
if (v && v instanceof h.Cesium3DTileFeature) {
|
|
46187
46200
|
y = {};
|
|
@@ -46198,7 +46211,7 @@ class _5 extends k {
|
|
|
46198
46211
|
v = (E = document.elementFromPoint(d[0] + G, d[1] + W)) == null ? void 0 : E.closest("[data-es-scene-object-id]");
|
|
46199
46212
|
}
|
|
46200
46213
|
let _;
|
|
46201
|
-
v && (v.id && v.id instanceof h.Entity && v.id.ESSceneObjectID ? _ = v.id.ESSceneObjectID : v.
|
|
46214
|
+
v && (v.id && v.id instanceof h.Entity && v.id.ESSceneObjectID ? _ = v.id.ESSceneObjectID : v.primitive && v.primitive.ESSceneObjectID ? _ = v.primitive.ESSceneObjectID : v.collection && v.collection.ESSceneObjectID ? _ = v.collection.ESSceneObjectID : Array.isArray(v) && v[0] instanceof h.ImageryLayerFeatureInfo ? _ = v[0].imageryLayer.ESSceneObjectID : v instanceof HTMLElement && (_ = v.dataset.esSceneObjectId));
|
|
46202
46215
|
let C = _ ? oe.getSceneObject(_) : void 0;
|
|
46203
46216
|
C && C.parentID && (C = oe.getSceneObject(C.parentID));
|
|
46204
46217
|
let b = {};
|
|
@@ -46210,28 +46223,27 @@ class _5 extends k {
|
|
|
46210
46223
|
properties: (D = v.id.properties) == null ? void 0 : D.getValue(G),
|
|
46211
46224
|
coordinates: od(v.id.position.getValue(G))
|
|
46212
46225
|
} : (B = v.id) == null ? void 0 : B.map((W) => {
|
|
46213
|
-
var
|
|
46226
|
+
var L;
|
|
46214
46227
|
return {
|
|
46215
46228
|
name: W.id,
|
|
46216
|
-
properties: (
|
|
46229
|
+
properties: (L = W.properties) == null ? void 0 : L.getValue(G),
|
|
46217
46230
|
coordinates: od(W.position.getValue(G))
|
|
46218
46231
|
};
|
|
46219
46232
|
});
|
|
46220
46233
|
} else if (C instanceof rt) {
|
|
46221
46234
|
const G = new h.JulianDate();
|
|
46222
|
-
|
|
46223
|
-
|
|
46224
|
-
b = C.pickedInfoType == "FeatureCollection" || C.pickedInfoType == "Feature" ? {
|
|
46235
|
+
let W, L, V;
|
|
46236
|
+
v.id.entityCollection ? (W = v.id.polygon ? "Polygon" : v.id.polyline ? "LineString" : "Point", V = ((N = v.id.properties) == null ? void 0 : N.getValue(G)) ?? {}, L = W == "Point" ? me(v.id.position.getValue(G)) : W == "LineString" ? v.id.polyline.positions.getValue(G).map((w) => me(w)) : Vw(v.id.polygon.hierarchy.getValue(G))) : (v.primitive instanceof h.Billboard || v.primitive instanceof h.Label) && (W = "Point", typeof v.id == "object" && (V = v.id), L = me(v.primitive.position)), b = C.pickedInfoType == "FeatureCollection" || C.pickedInfoType == "Feature" ? {
|
|
46225
46237
|
type: "Feature",
|
|
46226
46238
|
geometry: {
|
|
46227
46239
|
type: W,
|
|
46228
|
-
coordinates:
|
|
46240
|
+
coordinates: L
|
|
46229
46241
|
},
|
|
46230
|
-
properties:
|
|
46242
|
+
properties: V
|
|
46231
46243
|
} : {
|
|
46232
46244
|
type: W,
|
|
46233
|
-
coordinates:
|
|
46234
|
-
properties:
|
|
46245
|
+
coordinates: L,
|
|
46246
|
+
properties: V
|
|
46235
46247
|
};
|
|
46236
46248
|
} else if (C instanceof ed) {
|
|
46237
46249
|
let G;
|
|
@@ -46282,7 +46294,7 @@ class _5 extends k {
|
|
|
46282
46294
|
});
|
|
46283
46295
|
}
|
|
46284
46296
|
}
|
|
46285
|
-
function
|
|
46297
|
+
function x5(t, i) {
|
|
46286
46298
|
const e = t.scene, s = e.camera.getPickRay(i);
|
|
46287
46299
|
if (!s) return;
|
|
46288
46300
|
const o = e.imageryLayers.pickImageryLayerFeatures(
|
|
@@ -46292,7 +46304,7 @@ function P5(t, i) {
|
|
|
46292
46304
|
if (h.defined(o))
|
|
46293
46305
|
return o;
|
|
46294
46306
|
}
|
|
46295
|
-
class
|
|
46307
|
+
class b5 extends k {
|
|
46296
46308
|
constructor(e) {
|
|
46297
46309
|
super();
|
|
46298
46310
|
g(this, "_enabled", this.disposeVar(U(!1)));
|
|
@@ -46344,7 +46356,7 @@ class x5 extends k {
|
|
|
46344
46356
|
return this._cursorPosition.changed;
|
|
46345
46357
|
}
|
|
46346
46358
|
}
|
|
46347
|
-
class
|
|
46359
|
+
class S5 extends k {
|
|
46348
46360
|
constructor() {
|
|
46349
46361
|
super();
|
|
46350
46362
|
g(this, "cache", /* @__PURE__ */ new Map());
|
|
@@ -46379,7 +46391,7 @@ class b5 extends k {
|
|
|
46379
46391
|
n && (s ? (n.delete(s), n.size === 0 && this.cache.delete(o)) : this.cache.delete(o), this.deleteTile(o, s));
|
|
46380
46392
|
}
|
|
46381
46393
|
}
|
|
46382
|
-
class
|
|
46394
|
+
class T5 extends k {
|
|
46383
46395
|
constructor() {
|
|
46384
46396
|
super();
|
|
46385
46397
|
/**
|
|
@@ -46429,12 +46441,12 @@ class S5 extends k {
|
|
|
46429
46441
|
const T = new fx(b), E = new gx(T);
|
|
46430
46442
|
for (const D in E.layers)
|
|
46431
46443
|
if (Object.prototype.hasOwnProperty.call(E.layers, D)) {
|
|
46432
|
-
const B = E.layers[D],
|
|
46444
|
+
const B = E.layers[D], N = [];
|
|
46433
46445
|
for (let G = 0; G < B.length; G++) {
|
|
46434
46446
|
const W = B.feature(G);
|
|
46435
|
-
|
|
46447
|
+
N.push(W.toGeoJSON(n, r, o));
|
|
46436
46448
|
}
|
|
46437
|
-
(f = c.sources.get(y)) == null || f.set(D,
|
|
46449
|
+
(f = c.sources.get(y)) == null || f.set(D, N);
|
|
46438
46450
|
}
|
|
46439
46451
|
} catch (b) {
|
|
46440
46452
|
console.error(`Failed to load tile ${s}:`, b);
|
|
@@ -46443,7 +46455,7 @@ class S5 extends k {
|
|
|
46443
46455
|
return (m = this.pendingRequests.get(e)) == null || m.delete(s), ((v = this.pendingRequests.get(e)) == null ? void 0 : v.size) === 0 && this.pendingRequests.delete(e), c;
|
|
46444
46456
|
}
|
|
46445
46457
|
}
|
|
46446
|
-
class
|
|
46458
|
+
class E5 extends k {
|
|
46447
46459
|
constructor(e, s) {
|
|
46448
46460
|
super();
|
|
46449
46461
|
/**
|
|
@@ -46498,7 +46510,7 @@ class T5 extends k {
|
|
|
46498
46510
|
this.remove(s);
|
|
46499
46511
|
}
|
|
46500
46512
|
}
|
|
46501
|
-
class
|
|
46513
|
+
class A5 extends k {
|
|
46502
46514
|
constructor() {
|
|
46503
46515
|
super();
|
|
46504
46516
|
g(this, "defaultStyle", /* @__PURE__ */ new Map());
|
|
@@ -46506,7 +46518,7 @@ class E5 extends k {
|
|
|
46506
46518
|
add(e) {
|
|
46507
46519
|
const s = e.sceneObject.id, o = e.mvtLayerJson.pointJson;
|
|
46508
46520
|
for (const n of o)
|
|
46509
|
-
this.setDefaultStyle(s, `${n.source}-${n["source-layer"]}`,
|
|
46521
|
+
this.setDefaultStyle(s, `${n.source}-${n["source-layer"]}`, M5(n));
|
|
46510
46522
|
}
|
|
46511
46523
|
remove(e) {
|
|
46512
46524
|
const s = e.sceneObject.id;
|
|
@@ -46521,7 +46533,7 @@ class E5 extends k {
|
|
|
46521
46533
|
return ((n = this.defaultStyle.get(e)) == null ? void 0 : n.get(`${s}-${o}`)) ?? {};
|
|
46522
46534
|
}
|
|
46523
46535
|
}
|
|
46524
|
-
function
|
|
46536
|
+
function M5(t) {
|
|
46525
46537
|
const i = {
|
|
46526
46538
|
labelStyle: {},
|
|
46527
46539
|
billboardStyle: {},
|
|
@@ -46583,7 +46595,7 @@ function $0(t) {
|
|
|
46583
46595
|
}
|
|
46584
46596
|
return { horizontalOrigin: i, verticalOrigin: e };
|
|
46585
46597
|
}
|
|
46586
|
-
class
|
|
46598
|
+
class I5 extends k {
|
|
46587
46599
|
constructor() {
|
|
46588
46600
|
super();
|
|
46589
46601
|
g(this, "callbacks", /* @__PURE__ */ new Map());
|
|
@@ -46599,19 +46611,19 @@ class M5 extends k {
|
|
|
46599
46611
|
(o = this.callbacks.get(s)) == null || o.forEach((n) => n(e.data));
|
|
46600
46612
|
}
|
|
46601
46613
|
}
|
|
46602
|
-
class
|
|
46614
|
+
class R5 extends k {
|
|
46603
46615
|
constructor(e) {
|
|
46604
46616
|
super();
|
|
46605
46617
|
g(this, "czmESMVTLayers", /* @__PURE__ */ new Map());
|
|
46606
|
-
g(this, "tilesCache", new
|
|
46607
|
-
g(this, "tileLoader", new
|
|
46618
|
+
g(this, "tilesCache", new S5());
|
|
46619
|
+
g(this, "tileLoader", new T5());
|
|
46608
46620
|
g(this, "tileRenderer");
|
|
46609
|
-
g(this, "styleManager", new
|
|
46610
|
-
g(this, "eventManager", new
|
|
46621
|
+
g(this, "styleManager", new A5());
|
|
46622
|
+
g(this, "eventManager", new I5());
|
|
46611
46623
|
g(this, "lastImageryTileMap", /* @__PURE__ */ new Map());
|
|
46612
46624
|
this.viewer = e;
|
|
46613
46625
|
const s = Ct(e);
|
|
46614
|
-
s && (this.tileRenderer = new
|
|
46626
|
+
s && (this.tileRenderer = new E5(s.screenManager, this.styleManager)), this.ad(this.tilesCache.deleteTileEvent.don((n, r) => {
|
|
46615
46627
|
this.tileRenderer.remove(n, r);
|
|
46616
46628
|
}));
|
|
46617
46629
|
const o = e.scene.preUpdate.addEventListener(
|
|
@@ -46651,7 +46663,7 @@ class I5 extends k {
|
|
|
46651
46663
|
var o;
|
|
46652
46664
|
for await (const n of this.czmESMVTLayers.keys()) {
|
|
46653
46665
|
const r = e.get(n) ?? /* @__PURE__ */ new Set(), a = this.lastImageryTileMap.get(n);
|
|
46654
|
-
if (a &&
|
|
46666
|
+
if (a && D5(r, a))
|
|
46655
46667
|
continue;
|
|
46656
46668
|
this.lastImageryTileMap.set(n, r);
|
|
46657
46669
|
const l = new Set(((o = this.tilesCache.get(n)) == null ? void 0 : o.keys()) ?? []);
|
|
@@ -46679,14 +46691,14 @@ class I5 extends k {
|
|
|
46679
46691
|
// }
|
|
46680
46692
|
// }
|
|
46681
46693
|
}
|
|
46682
|
-
function
|
|
46694
|
+
function D5(t, i) {
|
|
46683
46695
|
if (t.size !== i.size) return !1;
|
|
46684
46696
|
for (const e of t)
|
|
46685
46697
|
if (!i.has(e)) return !1;
|
|
46686
46698
|
return !0;
|
|
46687
46699
|
}
|
|
46688
46700
|
const D1 = ["label", "billboard", "rectangle"];
|
|
46689
|
-
class
|
|
46701
|
+
class k5 extends k {
|
|
46690
46702
|
constructor(e, s) {
|
|
46691
46703
|
super();
|
|
46692
46704
|
g(this, "id", Ne());
|
|
@@ -46713,7 +46725,7 @@ class D5 extends k {
|
|
|
46713
46725
|
this.label && (this.label.show = e), this.billboard && (this.billboard.show = e);
|
|
46714
46726
|
}
|
|
46715
46727
|
}
|
|
46716
|
-
class
|
|
46728
|
+
class F5 extends k {
|
|
46717
46729
|
constructor(e) {
|
|
46718
46730
|
super();
|
|
46719
46731
|
g(this, "objects", /* @__PURE__ */ new Map());
|
|
@@ -46750,7 +46762,7 @@ class k5 extends k {
|
|
|
46750
46762
|
const l = this.screenManager.labelCollection.add({
|
|
46751
46763
|
...s,
|
|
46752
46764
|
position: r,
|
|
46753
|
-
id: n,
|
|
46765
|
+
id: o.properties ?? n,
|
|
46754
46766
|
text: o.name
|
|
46755
46767
|
});
|
|
46756
46768
|
return l.ESSceneObjectID = e, a.label = l, a.zOrder = o.zOrder, n;
|
|
@@ -46774,7 +46786,7 @@ class k5 extends k {
|
|
|
46774
46786
|
const l = this.screenManager.billboardCollection.add({
|
|
46775
46787
|
...s,
|
|
46776
46788
|
position: r,
|
|
46777
|
-
id: n
|
|
46789
|
+
id: o.properties ?? n
|
|
46778
46790
|
});
|
|
46779
46791
|
return l.ESSceneObjectID = e, a.billboard = l, a.zOrder = o.zOrder, n;
|
|
46780
46792
|
}
|
|
@@ -46798,7 +46810,7 @@ class k5 extends k {
|
|
|
46798
46810
|
const c = this.screenManager.rectangleCollection.add({
|
|
46799
46811
|
...hx(s.element),
|
|
46800
46812
|
...s,
|
|
46801
|
-
id: r,
|
|
46813
|
+
id: o.properties ?? r,
|
|
46802
46814
|
position: a,
|
|
46803
46815
|
callback: n
|
|
46804
46816
|
});
|
|
@@ -46863,7 +46875,7 @@ class k5 extends k {
|
|
|
46863
46875
|
/** 获取或创建 ScreenObject */
|
|
46864
46876
|
getOrCreateObject(e, s) {
|
|
46865
46877
|
let o = this.objects.get(e);
|
|
46866
|
-
return o || (o = new
|
|
46878
|
+
return o || (o = new k5(e, s), this.objects.set(e, o)), o;
|
|
46867
46879
|
}
|
|
46868
46880
|
/** 如果对象三种类型都没有了,则删除该 screenObject */
|
|
46869
46881
|
tryDeleteEmpty(e) {
|
|
@@ -46871,7 +46883,7 @@ class k5 extends k {
|
|
|
46871
46883
|
s && !s.label && !s.billboard && !s.rectangle && this.objects.delete(e);
|
|
46872
46884
|
}
|
|
46873
46885
|
}
|
|
46874
|
-
function
|
|
46886
|
+
function z5(t, i) {
|
|
46875
46887
|
const e = [Number.MAX_SAFE_INTEGER, Number.MAX_SAFE_INTEGER, Number.MIN_SAFE_INTEGER, Number.MIN_SAFE_INTEGER];
|
|
46876
46888
|
for (const s in i)
|
|
46877
46889
|
if (Object.prototype.hasOwnProperty.call(i, s) && D1.includes(s)) {
|
|
@@ -46888,7 +46900,7 @@ function F5(t, i) {
|
|
|
46888
46900
|
}
|
|
46889
46901
|
return new h.Rectangle(...e);
|
|
46890
46902
|
}
|
|
46891
|
-
class
|
|
46903
|
+
class L5 extends k {
|
|
46892
46904
|
// 阈值(可按需调整)
|
|
46893
46905
|
constructor(e) {
|
|
46894
46906
|
super();
|
|
@@ -46976,7 +46988,7 @@ class z5 extends k {
|
|
|
46976
46988
|
if (o && h.Cartesian3.equalsEpsilon(o.worldPos, n, 1e-6))
|
|
46977
46989
|
r = o.rect, this.rectangleCollisionCheck.remove(s, r);
|
|
46978
46990
|
else {
|
|
46979
|
-
if (r =
|
|
46991
|
+
if (r = z5(this.screenManager.viewer, e), isNaN(r.width) || isNaN(r.height)) {
|
|
46980
46992
|
e.show(!1), this._cache.has(e.id.toString()) && this._cache.delete(e.id.toString());
|
|
46981
46993
|
return;
|
|
46982
46994
|
}
|
|
@@ -47004,7 +47016,7 @@ class q0 extends k {
|
|
|
47004
47016
|
this._collection[e._index] = void 0;
|
|
47005
47017
|
}
|
|
47006
47018
|
}
|
|
47007
|
-
class
|
|
47019
|
+
class O5 extends k {
|
|
47008
47020
|
constructor(e) {
|
|
47009
47021
|
super();
|
|
47010
47022
|
g(this, "layers", /* @__PURE__ */ new Map());
|
|
@@ -47018,7 +47030,7 @@ class L5 extends k {
|
|
|
47018
47030
|
/** 集合映射,方便统一处理 */
|
|
47019
47031
|
g(this, "collectionMap");
|
|
47020
47032
|
g(this, "_refreshEvent", this.ad(new q()));
|
|
47021
|
-
this.czmViewer = e, this.viewer = e.viewer, this.avoidanceManager = this.ad(new
|
|
47033
|
+
this.czmViewer = e, this.viewer = e.viewer, this.avoidanceManager = this.ad(new L5(this)), this.labelCollection = new h.LabelCollection({ scene: this.viewer.scene }), this.billboardCollection = new h.BillboardCollection({ scene: this.viewer.scene }), this.viewer.scene.primitives.add(this.labelCollection), this.viewer.scene.primitives.add(this.billboardCollection), this.collectionMap = {
|
|
47022
47034
|
label: this.labelCollection,
|
|
47023
47035
|
billboard: this.billboardCollection,
|
|
47024
47036
|
rectangle: this.rectangleCollection
|
|
@@ -47040,7 +47052,7 @@ class L5 extends k {
|
|
|
47040
47052
|
}
|
|
47041
47053
|
getLayer(e) {
|
|
47042
47054
|
let s = this.layers.get(e);
|
|
47043
|
-
return s || (s = new
|
|
47055
|
+
return s || (s = new F5(this), this.layers.set(e, s), this.avoidanceManager.enable && this.avoidanceManager.updateAvoidanceLayer({ enabled: !0 })), s;
|
|
47044
47056
|
}
|
|
47045
47057
|
addLabel(e, s, o, n) {
|
|
47046
47058
|
const a = this.getLayer(s).addLabel(e, o, n);
|
|
@@ -47076,7 +47088,7 @@ function Ct(t) {
|
|
|
47076
47088
|
function X0(t, i) {
|
|
47077
47089
|
td(t, "_viewerExtensions", i);
|
|
47078
47090
|
}
|
|
47079
|
-
class
|
|
47091
|
+
class B5 extends k {
|
|
47080
47092
|
constructor(e, s) {
|
|
47081
47093
|
super();
|
|
47082
47094
|
g(this, "_imageriesManager");
|
|
@@ -47087,8 +47099,8 @@ class O5 extends k {
|
|
|
47087
47099
|
g(this, "_cursorPositionInfo");
|
|
47088
47100
|
g(this, "_screenManager");
|
|
47089
47101
|
g(this, "_vectorTIlesManager");
|
|
47090
|
-
this._viewer = e, this._czmViewer = s, this._imageriesManager = this.dv(new
|
|
47091
|
-
this._pickingManager = this.dv(new
|
|
47102
|
+
this._viewer = e, this._czmViewer = s, this._imageriesManager = this.dv(new _5(this.viewer)), this._terrainManager = this.dv(new g5(this.viewer)), this._labelManager = this.dv(new m5(this.viewer)), this._poiContext = this.disposeVar(new WS(this._viewer)), this._cursorPositionInfo = this.disposeVar(new b5(this._viewer)), this.ad(s.viewerChanged.don(() => {
|
|
47103
|
+
this._pickingManager = this.dv(new P5(s)), this._screenManager = this.ad(new O5(s)), this._vectorTIlesManager = this.ad(new R5(s.viewer)), this.ad(Qo(this.czmViewer.textAvoidanceChanged, () => {
|
|
47092
47104
|
this.screenManager.setRules({
|
|
47093
47105
|
avoidance: {
|
|
47094
47106
|
enabled: this.czmViewer.textAvoidance
|
|
@@ -47155,7 +47167,7 @@ function Q0(t, i) {
|
|
|
47155
47167
|
function K0(t, i) {
|
|
47156
47168
|
k1(t, -i, !0);
|
|
47157
47169
|
}
|
|
47158
|
-
class
|
|
47170
|
+
class V5 extends k {
|
|
47159
47171
|
constructor(e) {
|
|
47160
47172
|
super();
|
|
47161
47173
|
// static keyStatusMap: { [k: string]: CameraActionType; } = {
|
|
@@ -47286,12 +47298,12 @@ class Rd extends k {
|
|
|
47286
47298
|
return this._debug.changed;
|
|
47287
47299
|
}
|
|
47288
47300
|
}
|
|
47289
|
-
class
|
|
47301
|
+
class N5 extends k {
|
|
47290
47302
|
constructor(e) {
|
|
47291
47303
|
super();
|
|
47292
47304
|
g(this, "_keyStatus");
|
|
47293
47305
|
g(this, "_cameraOp");
|
|
47294
|
-
this._keyboardCameraController = e, this._keyStatus = this.dv(new Rd(this)), this._cameraOp = this.dv(new
|
|
47306
|
+
this._keyboardCameraController = e, this._keyStatus = this.dv(new Rd(this)), this._cameraOp = this.dv(new V5(this));
|
|
47295
47307
|
}
|
|
47296
47308
|
get keyboardCameraController() {
|
|
47297
47309
|
return this._keyboardCameraController;
|
|
@@ -47322,7 +47334,7 @@ const Ld = class Ld extends k {
|
|
|
47322
47334
|
g(this, "_abortEvent", this.dv(new q()));
|
|
47323
47335
|
this._firstPersonController = e, this.dv(new he(this.enabledChanged, () => {
|
|
47324
47336
|
if (this.enabled)
|
|
47325
|
-
return new
|
|
47337
|
+
return new N5(this);
|
|
47326
47338
|
}));
|
|
47327
47339
|
}
|
|
47328
47340
|
get firstPersonController() {
|
|
@@ -47408,7 +47420,7 @@ g(Ld, "defaultKeyStatusMap", {
|
|
|
47408
47420
|
KeyQ: "SwitchAlwaysWithCamera"
|
|
47409
47421
|
});
|
|
47410
47422
|
let Dd = Ld;
|
|
47411
|
-
function
|
|
47423
|
+
function U5(t, i) {
|
|
47412
47424
|
t.lookRight(h.Math.toRadians(i.movementX) * 0.1), t.lookDown(h.Math.toRadians(i.movementY) * 0.1);
|
|
47413
47425
|
const e = t.pitch, s = h.Math.clamp(e, -h.Math.PI_OVER_TWO, h.Math.PI_OVER_TWO);
|
|
47414
47426
|
s !== e && t.setView({
|
|
@@ -47420,14 +47432,14 @@ function N5(t, i) {
|
|
|
47420
47432
|
}
|
|
47421
47433
|
});
|
|
47422
47434
|
}
|
|
47423
|
-
class
|
|
47435
|
+
class G5 extends k {
|
|
47424
47436
|
constructor(i, e) {
|
|
47425
47437
|
super(), this._firstPersonController = i, this._mouseCameraController = e;
|
|
47426
47438
|
const { canvas: s } = this._firstPersonController.viewer;
|
|
47427
47439
|
{
|
|
47428
47440
|
const o = (n) => {
|
|
47429
47441
|
const { camera: r } = this._firstPersonController.viewer.scene;
|
|
47430
|
-
|
|
47442
|
+
U5(r, n);
|
|
47431
47443
|
};
|
|
47432
47444
|
s.addEventListener("pointermove", o), this.dispose(() => s.removeEventListener("pointermove", o));
|
|
47433
47445
|
}
|
|
@@ -47436,7 +47448,7 @@ class U5 extends k {
|
|
|
47436
47448
|
const Od = class Od extends k {
|
|
47437
47449
|
constructor(e) {
|
|
47438
47450
|
super();
|
|
47439
|
-
g(this, "_mouseMoving", this.dv(new
|
|
47451
|
+
g(this, "_mouseMoving", this.dv(new G5(this.firstPersonController, this.mouseCameraController)));
|
|
47440
47452
|
this._mouseCameraController = e;
|
|
47441
47453
|
const { viewer: s } = this.firstPersonController;
|
|
47442
47454
|
this.mouseCameraController.enableViewerOriginInputs(!1), this.dispose(() => this.mouseCameraController.enableViewerOriginInputs(!0)), Element.prototype.setPointerCapture = () => {
|
|
@@ -47468,7 +47480,7 @@ const Od = class Od extends k {
|
|
|
47468
47480
|
};
|
|
47469
47481
|
g(Od, "origin_setPointerCapture", Element.prototype.setPointerCapture);
|
|
47470
47482
|
let hf = Od;
|
|
47471
|
-
class
|
|
47483
|
+
class W5 extends k {
|
|
47472
47484
|
constructor(e) {
|
|
47473
47485
|
super();
|
|
47474
47486
|
g(this, "_enabled", this.dv(U(!1)));
|
|
@@ -47497,11 +47509,11 @@ class G5 extends k {
|
|
|
47497
47509
|
return this._mouseResetting;
|
|
47498
47510
|
}
|
|
47499
47511
|
}
|
|
47500
|
-
class
|
|
47512
|
+
class H5 extends k {
|
|
47501
47513
|
constructor(e) {
|
|
47502
47514
|
super();
|
|
47503
47515
|
g(this, "viewer");
|
|
47504
|
-
g(this, "_mouseCameraController", this.dv(new
|
|
47516
|
+
g(this, "_mouseCameraController", this.dv(new W5(this)));
|
|
47505
47517
|
g(this, "_keyboardCameraController", this.dv(new Dd(this)));
|
|
47506
47518
|
if (this._viewer = e, !this._viewer.viewer) throw new Error("Cesium.Viewer不存在!");
|
|
47507
47519
|
this.viewer = this._viewer.viewer;
|
|
@@ -47572,7 +47584,7 @@ function op(t, i, e, s = void 0) {
|
|
|
47572
47584
|
} else
|
|
47573
47585
|
n.lookUp(d);
|
|
47574
47586
|
}
|
|
47575
|
-
class
|
|
47587
|
+
class $5 extends k {
|
|
47576
47588
|
constructor(i, e) {
|
|
47577
47589
|
super();
|
|
47578
47590
|
const s = e.viewer;
|
|
@@ -47631,7 +47643,7 @@ class us extends k {
|
|
|
47631
47643
|
};
|
|
47632
47644
|
this.d(r);
|
|
47633
47645
|
const a = () => {
|
|
47634
|
-
r(), o.enabled && (n = new
|
|
47646
|
+
r(), o.enabled && (n = new $5(o, e));
|
|
47635
47647
|
};
|
|
47636
47648
|
a(), this.d(o.enabledChanged.don(a)), this.d(o.resetWithCameraEvent.don((l) => {
|
|
47637
47649
|
if (!e.actived) return;
|
|
@@ -47686,9 +47698,9 @@ class ic extends k {
|
|
|
47686
47698
|
s(), this.d(this._geoPolylinePath.currentPositionChanged.don(s)), this.d(this._geoPolylinePath.currentRotationChanged.don(s)), this.dispose(M([this._geoCameraController, "enabled"], [this, "enabled"])), this.dispose(M([this._geoCameraController, "viewDistance"], [this, "viewDistance"])), this.dispose(M([this._geoCameraController, "offsetHeight"], [this, "offsetHeight"])), this.dispose(M([this._geoCameraController, "offsetRotation"], [this, "offsetRotation"])), this.dispose(P([this._geoCameraController, "enabledRotationInput"], [this, "enabledRotationInput"])), this.dispose(P([this._geoCameraController, "enabledScaleInput"], [this, "enabledScaleInput"])), this.dv(new he(this.lineModeChanged, () => {
|
|
47687
47699
|
if (this.lineMode !== void 0) {
|
|
47688
47700
|
if (this.lineMode === "auto")
|
|
47689
|
-
return new $5(this, e);
|
|
47690
|
-
if (this.lineMode === "manual")
|
|
47691
47701
|
return new q5(this, e);
|
|
47702
|
+
if (this.lineMode === "manual")
|
|
47703
|
+
return new X5(this, e);
|
|
47692
47704
|
}
|
|
47693
47705
|
}));
|
|
47694
47706
|
}
|
|
@@ -47725,13 +47737,13 @@ class ic extends k {
|
|
|
47725
47737
|
});
|
|
47726
47738
|
})(ic || (ic = {}));
|
|
47727
47739
|
ae(ic.prototype, ic.createDefaultProps);
|
|
47728
|
-
class
|
|
47740
|
+
class q5 extends k {
|
|
47729
47741
|
constructor(i, e) {
|
|
47730
47742
|
if (super(), !e.viewer) throw new Error("viewer is undefined");
|
|
47731
47743
|
i.offsetRotation = [-90, 0, 0];
|
|
47732
47744
|
}
|
|
47733
47745
|
}
|
|
47734
|
-
class
|
|
47746
|
+
class X5 extends k {
|
|
47735
47747
|
constructor(i, e) {
|
|
47736
47748
|
if (super(), !e.viewer) throw new Error("viewer is undefined");
|
|
47737
47749
|
const o = (n) => {
|
|
@@ -47740,7 +47752,7 @@ class q5 extends k {
|
|
|
47740
47752
|
this.dispose(e.keyDownEvent.don(o)), this.dispose(e.keyUpEvent.don(o));
|
|
47741
47753
|
}
|
|
47742
47754
|
}
|
|
47743
|
-
class
|
|
47755
|
+
class Y5 extends k {
|
|
47744
47756
|
constructor(i, e) {
|
|
47745
47757
|
super();
|
|
47746
47758
|
const s = e.positionPropertyName ?? "position", o = e.positionChangedPropertyName ?? s + "Changed", n = e.rotationPropertyName ?? "rotation", r = e.rotationChangedPropertyName ?? n + "Changed", a = (e.positionTracking ?? !0) && Reflect.has(i, s) && Reflect.has(i, o), l = (e.rotationTracking ?? !0) && Reflect.has(i, n) && Reflect.has(i, r);
|
|
@@ -47764,7 +47776,7 @@ class X5 extends k {
|
|
|
47764
47776
|
}
|
|
47765
47777
|
}
|
|
47766
47778
|
}
|
|
47767
|
-
class
|
|
47779
|
+
class Z5 extends k {
|
|
47768
47780
|
constructor(i, e) {
|
|
47769
47781
|
super();
|
|
47770
47782
|
const s = this.dv(new Li());
|
|
@@ -47782,7 +47794,7 @@ class Y5 extends k {
|
|
|
47782
47794
|
this.disposeVar(new he(o, () => {
|
|
47783
47795
|
const { sceneObject: n } = s;
|
|
47784
47796
|
if (!(!e.enabled || !n))
|
|
47785
|
-
return new
|
|
47797
|
+
return new Y5(n, e);
|
|
47786
47798
|
}));
|
|
47787
47799
|
}
|
|
47788
47800
|
}
|
|
@@ -47792,7 +47804,7 @@ class sc extends k {
|
|
|
47792
47804
|
g(this, "_geoCameraController");
|
|
47793
47805
|
this._geoCameraController = this.dv(new us(e)), this.d(M([this._geoCameraController, "enabled"], [this, "enabled"])), this.dv(new he(this.sceneObjectIdChanged, () => {
|
|
47794
47806
|
if (this.sceneObjectId)
|
|
47795
|
-
return new
|
|
47807
|
+
return new Z5(this.sceneObjectId, this);
|
|
47796
47808
|
}));
|
|
47797
47809
|
}
|
|
47798
47810
|
get geoCameraController() {
|
|
@@ -47812,7 +47824,7 @@ class sc extends k {
|
|
|
47812
47824
|
});
|
|
47813
47825
|
})(sc || (sc = {}));
|
|
47814
47826
|
ae(sc.prototype, sc.createDefaultProps);
|
|
47815
|
-
class
|
|
47827
|
+
class Q5 extends k {
|
|
47816
47828
|
constructor(e) {
|
|
47817
47829
|
super();
|
|
47818
47830
|
/**
|
|
@@ -47898,7 +47910,7 @@ class Z5 extends k {
|
|
|
47898
47910
|
this._running && (this._eventDisposer && (this._eventDisposer(), this._eventDisposer = void 0), this._running = !1);
|
|
47899
47911
|
}
|
|
47900
47912
|
}
|
|
47901
|
-
class
|
|
47913
|
+
class K5 extends k {
|
|
47902
47914
|
constructor(e) {
|
|
47903
47915
|
super();
|
|
47904
47916
|
g(this, "_height", this.dv(U(1e7)));
|
|
@@ -47908,7 +47920,7 @@ class Q5 extends k {
|
|
|
47908
47920
|
this._czmViewer = e;
|
|
47909
47921
|
const s = this._czmViewer.viewer;
|
|
47910
47922
|
if (!s) throw new Error("未初始化viewer");
|
|
47911
|
-
this._inner = this.dv(new
|
|
47923
|
+
this._inner = this.dv(new Q5(s)), this._inner.leftDownCancel = !1;
|
|
47912
47924
|
{
|
|
47913
47925
|
const o = () => {
|
|
47914
47926
|
this._inner.height = this.height, this._inner.cycle = this.cycle, this._inner.latitude = this.latitude * Math.PI / 180;
|
|
@@ -47974,7 +47986,7 @@ class Q5 extends k {
|
|
|
47974
47986
|
return this._inner.cancel();
|
|
47975
47987
|
}
|
|
47976
47988
|
}
|
|
47977
|
-
class
|
|
47989
|
+
class J5 extends k {
|
|
47978
47990
|
constructor(e) {
|
|
47979
47991
|
super();
|
|
47980
47992
|
/**
|
|
@@ -48149,7 +48161,7 @@ class K5 extends k {
|
|
|
48149
48161
|
this.viewer.camera.lookAtTransform(h.Matrix4.IDENTITY), this._eventDisposer && (this._eventDisposer(), this._eventDisposer = void 0), this._running = !1;
|
|
48150
48162
|
}
|
|
48151
48163
|
}
|
|
48152
|
-
class
|
|
48164
|
+
class j5 extends k {
|
|
48153
48165
|
constructor(e) {
|
|
48154
48166
|
super();
|
|
48155
48167
|
/**
|
|
@@ -48196,7 +48208,7 @@ class J5 extends k {
|
|
|
48196
48208
|
this._czmViewer = e;
|
|
48197
48209
|
const s = this._czmViewer.viewer;
|
|
48198
48210
|
if (!s) throw new Error("viewer is undefined");
|
|
48199
|
-
this._inner = this.dv(new
|
|
48211
|
+
this._inner = this.dv(new J5(s));
|
|
48200
48212
|
{
|
|
48201
48213
|
const o = () => {
|
|
48202
48214
|
this.inner.distance = this.distance, this.inner.cycle = this.cycle, this.inner.position = this.position, this.inner.heading = this.heading, this.inner.pitch = this.pitch;
|
|
@@ -48259,7 +48271,7 @@ class J5 extends k {
|
|
|
48259
48271
|
return this._inner.cancel();
|
|
48260
48272
|
}
|
|
48261
48273
|
}
|
|
48262
|
-
class
|
|
48274
|
+
class eO extends k {
|
|
48263
48275
|
constructor(e) {
|
|
48264
48276
|
super();
|
|
48265
48277
|
g(this, "_firstPersonController");
|
|
@@ -48270,7 +48282,7 @@ class j5 extends k {
|
|
|
48270
48282
|
g(this, "_handler");
|
|
48271
48283
|
this._viewer = e;
|
|
48272
48284
|
{
|
|
48273
|
-
this._firstPersonController = this.dv(new
|
|
48285
|
+
this._firstPersonController = this.dv(new H5(e)), this.d(this._viewer.keyDownEvent.don((s) => this._firstPersonController.keyboardCameraController.keyDown(s))), this.d(this._viewer.keyUpEvent.don((s) => this._firstPersonController.keyboardCameraController.keyUp(s)));
|
|
48274
48286
|
{
|
|
48275
48287
|
const { subContainer: s } = this._viewer;
|
|
48276
48288
|
if (!s) throw new Error("_firstPersonControllerInit error!");
|
|
@@ -48282,7 +48294,7 @@ class j5 extends k {
|
|
|
48282
48294
|
(s = this._viewer.subContainer) == null || s.focus();
|
|
48283
48295
|
}));
|
|
48284
48296
|
}
|
|
48285
|
-
this._rotateGlobe = this.dv(new
|
|
48297
|
+
this._rotateGlobe = this.dv(new K5(e)), this._rotatePoint = this.dv(new j5(e)), this._followController = this.dv(new sc(e)), this._pathCameraController = this.dv(new ic(e));
|
|
48286
48298
|
}
|
|
48287
48299
|
get firstPersonController() {
|
|
48288
48300
|
return this._firstPersonController;
|
|
@@ -48386,7 +48398,7 @@ class j5 extends k {
|
|
|
48386
48398
|
]);
|
|
48387
48399
|
}
|
|
48388
48400
|
}
|
|
48389
|
-
const
|
|
48401
|
+
const tO = [
|
|
48390
48402
|
{
|
|
48391
48403
|
slice: -1,
|
|
48392
48404
|
brightness: 1,
|
|
@@ -49060,7 +49072,7 @@ const eO = [
|
|
|
49060
49072
|
]
|
|
49061
49073
|
}
|
|
49062
49074
|
];
|
|
49063
|
-
class
|
|
49075
|
+
class iO extends k {
|
|
49064
49076
|
constructor(e) {
|
|
49065
49077
|
super();
|
|
49066
49078
|
g(this, "_show", this.dv(U(!1)));
|
|
@@ -49086,7 +49098,7 @@ class tO extends k {
|
|
|
49086
49098
|
});
|
|
49087
49099
|
(() => {
|
|
49088
49100
|
o.removeAll();
|
|
49089
|
-
for (let a of
|
|
49101
|
+
for (let a of tO)
|
|
49090
49102
|
o.add(n(a));
|
|
49091
49103
|
})();
|
|
49092
49104
|
}
|
|
@@ -49153,7 +49165,7 @@ class oc extends k {
|
|
|
49153
49165
|
});
|
|
49154
49166
|
})(oc || (oc = {}));
|
|
49155
49167
|
ae(oc.prototype, oc.createDefaultProps);
|
|
49156
|
-
const
|
|
49168
|
+
const sO = `
|
|
49157
49169
|
float getDistance(sampler2D depthTexture, vec2 texCoords)
|
|
49158
49170
|
{
|
|
49159
49171
|
float depth = czm_unpackDepth(texture(depthTexture, texCoords));
|
|
@@ -49190,7 +49202,7 @@ const iO = `
|
|
|
49190
49202
|
out_FragColor = alphaBlend(finalFogColor, sceneColor);
|
|
49191
49203
|
}
|
|
49192
49204
|
`;
|
|
49193
|
-
class
|
|
49205
|
+
class oO extends k {
|
|
49194
49206
|
constructor(e) {
|
|
49195
49207
|
super();
|
|
49196
49208
|
g(this, "_show", this.dv(U(!1)));
|
|
@@ -49207,7 +49219,7 @@ class sO extends k {
|
|
|
49207
49219
|
const n = () => {
|
|
49208
49220
|
o(), (this.show ?? !0) && (this.postProcess || (this.postProcess = new h.PostProcessStage({
|
|
49209
49221
|
name: "earthsdk3_fog",
|
|
49210
|
-
fragmentShader:
|
|
49222
|
+
fragmentShader: sO,
|
|
49211
49223
|
uniforms: {
|
|
49212
49224
|
fogByDistance: new h.Cartesian4(10, 0, 1e3, 0.9),
|
|
49213
49225
|
//TODO:后续通过这里设置雾0~1的参数;
|
|
@@ -49227,7 +49239,7 @@ class sO extends k {
|
|
|
49227
49239
|
return this._show.changed;
|
|
49228
49240
|
}
|
|
49229
49241
|
}
|
|
49230
|
-
const
|
|
49242
|
+
const nO = `
|
|
49231
49243
|
uniform sampler2D colorTexture;
|
|
49232
49244
|
in vec2 v_textureCoordinates;
|
|
49233
49245
|
|
|
@@ -49255,7 +49267,7 @@ void main(void){
|
|
|
49255
49267
|
out_FragColor = mix(texture(colorTexture, v_textureCoordinates), vec4(c,1), 0.5);
|
|
49256
49268
|
}
|
|
49257
49269
|
`;
|
|
49258
|
-
class
|
|
49270
|
+
class rO extends k {
|
|
49259
49271
|
constructor(e) {
|
|
49260
49272
|
super();
|
|
49261
49273
|
g(this, "_show", this.dv(U(!1)));
|
|
@@ -49272,7 +49284,7 @@ class nO extends k {
|
|
|
49272
49284
|
const n = () => {
|
|
49273
49285
|
o(), (this.show ?? !0) && (this.rainPostProcess || (this.rainPostProcess = new h.PostProcessStage({
|
|
49274
49286
|
name: "earthsdk3_rain",
|
|
49275
|
-
fragmentShader:
|
|
49287
|
+
fragmentShader: nO
|
|
49276
49288
|
//TODO:后续需要0~1控制
|
|
49277
49289
|
}), s.scene.postProcessStages.add(this.rainPostProcess)));
|
|
49278
49290
|
};
|
|
@@ -49288,7 +49300,7 @@ class nO extends k {
|
|
|
49288
49300
|
return this._show.changed;
|
|
49289
49301
|
}
|
|
49290
49302
|
}
|
|
49291
|
-
const
|
|
49303
|
+
const aO = `
|
|
49292
49304
|
uniform sampler2D colorTexture; //输入的场景渲染照片
|
|
49293
49305
|
in vec2 v_textureCoordinates;
|
|
49294
49306
|
|
|
@@ -49319,7 +49331,7 @@ void main(void){
|
|
|
49319
49331
|
finalColor=(vec3(c)); //屏幕上雪的颜色
|
|
49320
49332
|
out_FragColor = mix(texture(colorTexture, v_textureCoordinates), vec4(finalColor,1), 0.5); //将雪和三维场景融合
|
|
49321
49333
|
}
|
|
49322
|
-
`,
|
|
49334
|
+
`, lO = `
|
|
49323
49335
|
#extension GL_OES_standard_derivatives : enable
|
|
49324
49336
|
uniform sampler2D colorTexture;
|
|
49325
49337
|
uniform sampler2D depthTexture;
|
|
@@ -49360,7 +49372,7 @@ void main() {
|
|
|
49360
49372
|
out_FragColor = mix(color, vec4(1.0), dotNumWC*alpha);
|
|
49361
49373
|
}
|
|
49362
49374
|
`;
|
|
49363
|
-
class
|
|
49375
|
+
class hO extends k {
|
|
49364
49376
|
constructor(e) {
|
|
49365
49377
|
super();
|
|
49366
49378
|
g(this, "_show", this.dv(U(!1)));
|
|
@@ -49390,10 +49402,10 @@ class lO extends k {
|
|
|
49390
49402
|
const c = () => {
|
|
49391
49403
|
r(), a(), (this.show ?? !0) && (o = new h.PostProcessStage({
|
|
49392
49404
|
name: "earthsdk3_snow",
|
|
49393
|
-
fragmentShader:
|
|
49405
|
+
fragmentShader: aO
|
|
49394
49406
|
}), s.scene.postProcessStages.add(o), n = new h.PostProcessStage({
|
|
49395
49407
|
name: "earthsdk3_snowCover",
|
|
49396
|
-
fragmentShader:
|
|
49408
|
+
fragmentShader: lO,
|
|
49397
49409
|
uniforms: {
|
|
49398
49410
|
alpha: this.alpha
|
|
49399
49411
|
}
|
|
@@ -49420,7 +49432,7 @@ class lO extends k {
|
|
|
49420
49432
|
return this._alpha.changed;
|
|
49421
49433
|
}
|
|
49422
49434
|
}
|
|
49423
|
-
class
|
|
49435
|
+
class cO extends k {
|
|
49424
49436
|
constructor(e) {
|
|
49425
49437
|
super();
|
|
49426
49438
|
g(this, "rain");
|
|
@@ -49430,7 +49442,7 @@ class hO extends k {
|
|
|
49430
49442
|
g(this, "depthOfField");
|
|
49431
49443
|
const s = e.viewer;
|
|
49432
49444
|
if (!s) throw new Error("Cesium.Viewer不存在!");
|
|
49433
|
-
const o = this.dv(new
|
|
49445
|
+
const o = this.dv(new rO(e)), n = this.dv(new iO(e)), r = this.dv(new hO(e)), a = this.dv(new oO(e)), l = this.dv(new oc(e));
|
|
49434
49446
|
this.rain = o, this.cloud = n, this.snow = r, this.fog = a, this.depthOfField = l;
|
|
49435
49447
|
{
|
|
49436
49448
|
const { scene: c } = s, d = () => {
|
|
@@ -49450,12 +49462,12 @@ class hO extends k {
|
|
|
49450
49462
|
}
|
|
49451
49463
|
}
|
|
49452
49464
|
}
|
|
49453
|
-
const cf = h.BoundingRectangle,
|
|
49465
|
+
const cf = h.BoundingRectangle, dO = h.Color, ho = h.defined, uO = h.destroyObject, j0 = h.DeveloperError, pO = h.RenderState, fO = h.ShaderSource, gO = h._shadersViewportQuadFS, mO = h.BlendingState, ew = h.Material;
|
|
49454
49466
|
function su(t) {
|
|
49455
49467
|
this.show = !0;
|
|
49456
49468
|
let i;
|
|
49457
49469
|
ho(i) || (i = new cf()), this.rectangle = cf.clone(i), ho(t) || (t = ew.fromType(ew.ColorType, {
|
|
49458
|
-
color: new
|
|
49470
|
+
color: new dO(1, 1, 1, 1)
|
|
49459
49471
|
})), this.material = t, this._material = void 0, this._overlayCommand = void 0, this._rs = void 0;
|
|
49460
49472
|
}
|
|
49461
49473
|
su.prototype.update = function(t) {
|
|
@@ -49466,8 +49478,8 @@ su.prototype.update = function(t) {
|
|
|
49466
49478
|
throw new j0("this.rectangle must be defined.");
|
|
49467
49479
|
this.rectangle.width = t.context.drawingBufferWidth, this.rectangle.height = t.context.drawingBufferHeight;
|
|
49468
49480
|
var i = this._rs;
|
|
49469
|
-
(!ho(i) || !cf.equals(i.viewport, this.rectangle)) && (this._rs =
|
|
49470
|
-
blending:
|
|
49481
|
+
(!ho(i) || !cf.equals(i.viewport, this.rectangle)) && (this._rs = pO.fromCache({
|
|
49482
|
+
blending: mO.ALPHA_BLEND,
|
|
49471
49483
|
viewport: this.rectangle
|
|
49472
49484
|
}), this._overlayCommand && (this._overlayCommand.renderState = this._rs));
|
|
49473
49485
|
var e = t.passes;
|
|
@@ -49475,8 +49487,8 @@ su.prototype.update = function(t) {
|
|
|
49475
49487
|
var s = t.context;
|
|
49476
49488
|
if (this._material !== this.material || !ho(this._overlayCommand)) {
|
|
49477
49489
|
this._material = this.material, ho(this._overlayCommand) && this._overlayCommand.shaderProgram.destroy();
|
|
49478
|
-
var o = new
|
|
49479
|
-
sources: [this._material.shaderSource,
|
|
49490
|
+
var o = new fO({
|
|
49491
|
+
sources: [this._material.shaderSource, gO]
|
|
49480
49492
|
});
|
|
49481
49493
|
this._overlayCommand = s.createViewportQuadCommand(o, {
|
|
49482
49494
|
renderState: this._rs,
|
|
@@ -49493,7 +49505,7 @@ su.prototype.isDestroyed = function() {
|
|
|
49493
49505
|
return !1;
|
|
49494
49506
|
};
|
|
49495
49507
|
su.prototype.destroy = function() {
|
|
49496
|
-
return ho(this._overlayCommand) && (this._overlayCommand.shaderProgram = this._overlayCommand.shaderProgram && this._overlayCommand.shaderProgram.destroy()),
|
|
49508
|
+
return ho(this._overlayCommand) && (this._overlayCommand.shaderProgram = this._overlayCommand.shaderProgram && this._overlayCommand.shaderProgram.destroy()), uO(this);
|
|
49497
49509
|
};
|
|
49498
49510
|
function tw(t) {
|
|
49499
49511
|
const { positiveX: i, negativeX: e, positiveY: s, negativeY: o, positiveZ: n, negativeZ: r } = t;
|
|
@@ -49510,7 +49522,7 @@ function tw(t) {
|
|
|
49510
49522
|
negativeZ: oe.context.getStrFromEnv(r)
|
|
49511
49523
|
};
|
|
49512
49524
|
}
|
|
49513
|
-
const
|
|
49525
|
+
const vO = `in vec3 v_outerPositionWC;
|
|
49514
49526
|
|
|
49515
49527
|
uniform vec3 u_hsbShift;
|
|
49516
49528
|
|
|
@@ -49589,15 +49601,15 @@ void main (void)
|
|
|
49589
49601
|
out_FragColor = color;
|
|
49590
49602
|
// ------------------ skybox vtxf end -------------------
|
|
49591
49603
|
}
|
|
49592
|
-
`, eo = h.Cartesian3, Ps = h.defined,
|
|
49604
|
+
`, eo = h.Cartesian3, Ps = h.defined, yO = h.destroyObject, wO = h.Ellipsoid, iw = h.EllipsoidGeometry, CO = h.GeometryPipeline, Zn = h.Math, As = h.Matrix4, _O = h.VertexFormat, PO = h.BufferUsage, xO = h.DrawCommand, bO = h.RenderState, SO = h.ShaderProgram, sw = h.ShaderSource, TO = h.VertexArray, ow = h._shadersAtmosphereCommon, nw = h._shadersSkyAtmosphereCommon, EO = h._shadersSkyAtmosphereVS, AO = h.Axis, MO = h.BlendingState, IO = h.CullFace, rw = h.SceneMode, Xc = h.Transforms, RO = h.Matrix3, aw = h.DeveloperError, DO = h.loadCubeMap, kO = h.CubeMap;
|
|
49593
49605
|
function oa(t, i) {
|
|
49594
|
-
t = t ??
|
|
49606
|
+
t = t ?? wO.WGS84, this.show = !0, this.sources = i, this.perFragmentAtmosphere = !1, this._ellipsoid = t;
|
|
49595
49607
|
const e = 1.025, s = eo.multiplyByScalar(
|
|
49596
49608
|
t.radii,
|
|
49597
49609
|
e,
|
|
49598
49610
|
new eo()
|
|
49599
49611
|
);
|
|
49600
|
-
this._scaleMatrix = As.fromScale(s), this._modelMatrix = new As(), this._command = new
|
|
49612
|
+
this._scaleMatrix = As.fromScale(s), this._modelMatrix = new As(), this._command = new xO({
|
|
49601
49613
|
owner: this,
|
|
49602
49614
|
modelMatrix: this._modelMatrix
|
|
49603
49615
|
}), this._spSkyFromSpace = void 0, this._spSkyFromAtmosphere = void 0, this._flags = void 0, this.atmosphereLightIntensity = 50, this.atmosphereRayleighCoefficient = new eo(55e-7, 13e-6, 284e-7), this.atmosphereMieCoefficient = new eo(21e-6, 21e-6, 21e-6), this.atmosphereRayleighScaleHeight = 1e4, this.atmosphereMieScaleHeight = 3200, this.atmosphereMieAnisotropy = 0.9, this.hueShift = 0, this.saturationShift = 0, this.brightnessShift = 0, this._hueSaturationBrightness = new eo();
|
|
@@ -49630,7 +49642,7 @@ function oa(t, i) {
|
|
|
49630
49642
|
return n.atmosphereMieAnisotropy;
|
|
49631
49643
|
},
|
|
49632
49644
|
u_rotateMatrix: function() {
|
|
49633
|
-
return n._scratchRoateMatrix = n._scratchRoateMatrix || new
|
|
49645
|
+
return n._scratchRoateMatrix = n._scratchRoateMatrix || new RO(), As.getMatrix3(n._eunMatrix || As.IDENTITY, n._scratchRoateMatrix);
|
|
49634
49646
|
},
|
|
49635
49647
|
u_cubeMap: function() {
|
|
49636
49648
|
return n._cubeMap;
|
|
@@ -49674,9 +49686,9 @@ oa.prototype.update = function(t, i) {
|
|
|
49674
49686
|
throw new aw(
|
|
49675
49687
|
"this.sources properties must all be the same type."
|
|
49676
49688
|
);
|
|
49677
|
-
typeof o.positiveX == "string" ?
|
|
49689
|
+
typeof o.positiveX == "string" ? DO(m, this._sources).then(function(v) {
|
|
49678
49690
|
s._cubeMap = s._cubeMap && s._cubeMap.destroy(), s._cubeMap = v;
|
|
49679
|
-
}) : (this._cubeMap = this._cubeMap && this._cubeMap.destroy(), this._cubeMap = new
|
|
49691
|
+
}) : (this._cubeMap = this._cubeMap && this._cubeMap.destroy(), this._cubeMap = new kO({
|
|
49680
49692
|
context: m,
|
|
49681
49693
|
source: o
|
|
49682
49694
|
}));
|
|
@@ -49687,7 +49699,7 @@ oa.prototype.update = function(t, i) {
|
|
|
49687
49699
|
np
|
|
49688
49700
|
), r = As.multiplyTransformation(
|
|
49689
49701
|
n,
|
|
49690
|
-
|
|
49702
|
+
AO.Y_UP_TO_Z_UP,
|
|
49691
49703
|
np
|
|
49692
49704
|
), a = As.multiply(
|
|
49693
49705
|
this._scaleMatrix,
|
|
@@ -49695,27 +49707,27 @@ oa.prototype.update = function(t, i) {
|
|
|
49695
49707
|
np
|
|
49696
49708
|
);
|
|
49697
49709
|
As.clone(a, this._modelMatrix);
|
|
49698
|
-
const l = t.context, c =
|
|
49710
|
+
const l = t.context, c = FO(this), d = t.globeTranslucencyState.translucent, u = this.perFragmentAtmosphere || d || !Ps(i) || !i.show, p = this._command;
|
|
49699
49711
|
if (Xc.eastUpNorthToFixedFrame = Xc.eastUpNorthToFixedFrame || Xc.localFrameToFixedFrameGenerator("east", "up"), this._eunMatrix = Xc.eastUpNorthToFixedFrame(t.camera._positionWC, void 0, this._eunMatrix), !Ps(p.vertexArray)) {
|
|
49700
49712
|
const m = iw.createGeometry(
|
|
49701
49713
|
new iw({
|
|
49702
49714
|
radii: new eo(1, 1, 1),
|
|
49703
49715
|
slicePartitions: 256,
|
|
49704
49716
|
stackPartitions: 256,
|
|
49705
|
-
vertexFormat:
|
|
49717
|
+
vertexFormat: _O.POSITION_ONLY
|
|
49706
49718
|
})
|
|
49707
49719
|
);
|
|
49708
|
-
p.vertexArray =
|
|
49720
|
+
p.vertexArray = TO.fromGeometry({
|
|
49709
49721
|
context: l,
|
|
49710
49722
|
geometry: m,
|
|
49711
|
-
attributeLocations:
|
|
49712
|
-
bufferUsage:
|
|
49713
|
-
}), p.renderState =
|
|
49723
|
+
attributeLocations: CO.createAttributeLocations(m),
|
|
49724
|
+
bufferUsage: PO.STATIC_DRAW
|
|
49725
|
+
}), p.renderState = bO.fromCache({
|
|
49714
49726
|
cull: {
|
|
49715
49727
|
enabled: !0,
|
|
49716
|
-
face:
|
|
49728
|
+
face: IO.FRONT
|
|
49717
49729
|
},
|
|
49718
|
-
blending:
|
|
49730
|
+
blending: MO.ALPHA_BLEND,
|
|
49719
49731
|
depthMask: !1
|
|
49720
49732
|
});
|
|
49721
49733
|
}
|
|
@@ -49726,12 +49738,12 @@ oa.prototype.update = function(t, i) {
|
|
|
49726
49738
|
c && m.push("COLOR_CORRECT"), u && m.push("PER_FRAGMENT_ATMOSPHERE"), d && m.push("GLOBE_TRANSLUCENT");
|
|
49727
49739
|
const v = new sw({
|
|
49728
49740
|
defines: m,
|
|
49729
|
-
sources: [ow, nw,
|
|
49741
|
+
sources: [ow, nw, EO]
|
|
49730
49742
|
}), y = new sw({
|
|
49731
49743
|
defines: m,
|
|
49732
|
-
sources: [ow, nw,
|
|
49744
|
+
sources: [ow, nw, vO]
|
|
49733
49745
|
});
|
|
49734
|
-
this._spSkyAtmosphere =
|
|
49746
|
+
this._spSkyAtmosphere = SO.fromCache({
|
|
49735
49747
|
context: l,
|
|
49736
49748
|
vertexShaderSource: v,
|
|
49737
49749
|
fragmentShaderSource: y
|
|
@@ -49740,7 +49752,7 @@ oa.prototype.update = function(t, i) {
|
|
|
49740
49752
|
if (Ps(this._cubeMap))
|
|
49741
49753
|
return p;
|
|
49742
49754
|
};
|
|
49743
|
-
function
|
|
49755
|
+
function FO(t) {
|
|
49744
49756
|
return !(Zn.equalsEpsilon(
|
|
49745
49757
|
t.hueShift,
|
|
49746
49758
|
0,
|
|
@@ -49760,7 +49772,7 @@ oa.prototype.isDestroyed = function() {
|
|
|
49760
49772
|
};
|
|
49761
49773
|
oa.prototype.destroy = function() {
|
|
49762
49774
|
const t = this._command;
|
|
49763
|
-
return t.vertexArray = t.vertexArray && t.vertexArray.destroy(), this._spSkyAtmosphere = this._spSkyAtmosphere && this._spSkyAtmosphere.destroy(), this._cubeMap = this._cubeMap && this._cubeMap.destroy(),
|
|
49775
|
+
return t.vertexArray = t.vertexArray && t.vertexArray.destroy(), this._spSkyAtmosphere = this._spSkyAtmosphere && this._spSkyAtmosphere.destroy(), this._cubeMap = this._cubeMap && this._cubeMap.destroy(), yO(this);
|
|
49764
49776
|
};
|
|
49765
49777
|
const ur = class ur extends k {
|
|
49766
49778
|
constructor(e, s) {
|
|
@@ -49772,7 +49784,7 @@ const ur = class ur extends k {
|
|
|
49772
49784
|
g(this, "_reu", (e, s) => Hi(this, e, s));
|
|
49773
49785
|
this._czmViewer = e, this._viewer = s;
|
|
49774
49786
|
const o = this.viewer, n = this.czmViewer, r = o.scene.screenSpaceCameraController;
|
|
49775
|
-
this._navigationManager = this.dv(new
|
|
49787
|
+
this._navigationManager = this.dv(new eO(n)), this._envManager = this.dv(new cO(n)), this.disposeVar(new he(this._czmViewer.xbsjUseBackgroundChanged, () => {
|
|
49776
49788
|
if (this._czmViewer.xbsjUseBackground)
|
|
49777
49789
|
return new ur.BackGroundResetting(this._czmViewer, this._viewer);
|
|
49778
49790
|
})), this.disposeVar(new he(this._czmViewer.xbsjLocalBoxSourcesChanged, () => {
|
|
@@ -49964,12 +49976,12 @@ g(ur, "LocalSkyBoxResetting", class extends k {
|
|
|
49964
49976
|
}
|
|
49965
49977
|
});
|
|
49966
49978
|
let df = ur;
|
|
49967
|
-
function
|
|
49979
|
+
function zO(t, i, e, s, o) {
|
|
49968
49980
|
var n = h.Cartesian3.subtract(t, e, new h.Cartesian3()), r = h.Cartesian3.dot(n, i);
|
|
49969
49981
|
if (!(r <= 0))
|
|
49970
49982
|
return r * Math.tan(s * 0.5) * 2 / o;
|
|
49971
49983
|
}
|
|
49972
|
-
async function
|
|
49984
|
+
async function LO(t) {
|
|
49973
49985
|
const { viewer: i } = t;
|
|
49974
49986
|
if (!i) return;
|
|
49975
49987
|
const { width: e, height: s } = i.canvas, o = t.quickPickPosition([e * 0.5, s * 0.5]);
|
|
@@ -49981,14 +49993,14 @@ async function zO(t) {
|
|
|
49981
49993
|
const a = i.camera.positionWC, l = i.camera.directionWC, c = i.camera.frustum.fovy;
|
|
49982
49994
|
if (c === void 0) return;
|
|
49983
49995
|
const d = i.canvas.height;
|
|
49984
|
-
return [
|
|
49996
|
+
return [zO(r, l, a, c, d), n];
|
|
49985
49997
|
}
|
|
49986
|
-
const
|
|
49987
|
-
function
|
|
49988
|
-
return -Math.log2(t /
|
|
49998
|
+
const OO = h.Ellipsoid.WGS84.maximumRadius * 2 * Math.PI / 512;
|
|
49999
|
+
function BO(t) {
|
|
50000
|
+
return -Math.log2(t / OO);
|
|
49989
50001
|
}
|
|
49990
50002
|
var rp = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8];
|
|
49991
|
-
function
|
|
50003
|
+
function VO(t) {
|
|
49992
50004
|
const i = t | 0;
|
|
49993
50005
|
if (i < 1 || i > 1e8) return;
|
|
49994
50006
|
let e = -1;
|
|
@@ -49997,7 +50009,7 @@ function BO(t) {
|
|
|
49997
50009
|
const s = i / rp[e - 1] | 0;
|
|
49998
50010
|
return [s * rp[e - 1], s, e];
|
|
49999
50011
|
}
|
|
50000
|
-
class
|
|
50012
|
+
class NO extends k {
|
|
50001
50013
|
constructor() {
|
|
50002
50014
|
super();
|
|
50003
50015
|
// 比例尺的长度,单位是 像素
|
|
@@ -50015,7 +50027,7 @@ class VO extends k {
|
|
|
50015
50027
|
let s, o;
|
|
50016
50028
|
const { lengthInPixels: n, resolution: r } = this;
|
|
50017
50029
|
if (n && r) {
|
|
50018
|
-
const a =
|
|
50030
|
+
const a = VO(n * r);
|
|
50019
50031
|
if (a) {
|
|
50020
50032
|
const [l, c, d] = a;
|
|
50021
50033
|
o = l, s = l / r;
|
|
@@ -50074,23 +50086,23 @@ class VO extends k {
|
|
|
50074
50086
|
return this._computedLengthInStr.changed;
|
|
50075
50087
|
}
|
|
50076
50088
|
}
|
|
50077
|
-
class
|
|
50089
|
+
class UO extends k {
|
|
50078
50090
|
constructor(e) {
|
|
50079
50091
|
super();
|
|
50080
50092
|
g(this, "_enabled", this.dv(U(!0)));
|
|
50081
50093
|
g(this, "_resolution", this.dv(U(void 0)));
|
|
50082
50094
|
g(this, "_center", this.dv(U(void 0)));
|
|
50083
50095
|
g(this, "_zoom", this.dv(U(void 0)));
|
|
50084
|
-
g(this, "_legend", this.dv(new
|
|
50096
|
+
g(this, "_legend", this.dv(new NO()));
|
|
50085
50097
|
this._czmViewer = e;
|
|
50086
50098
|
{
|
|
50087
50099
|
const s = this.dv(ze(async (o) => {
|
|
50088
50100
|
let n, r, a;
|
|
50089
50101
|
await o.promise(yw(1e3));
|
|
50090
|
-
const l = await o.promise(
|
|
50102
|
+
const l = await o.promise(LO(this._czmViewer));
|
|
50091
50103
|
if (l) {
|
|
50092
50104
|
const [c, d] = l;
|
|
50093
|
-
n = c, r =
|
|
50105
|
+
n = c, r = BO(c), a = d;
|
|
50094
50106
|
}
|
|
50095
50107
|
this._resolution.value = n, this._zoom.value = r, this._center.value = a;
|
|
50096
50108
|
}));
|
|
@@ -50148,7 +50160,7 @@ class NO extends k {
|
|
|
50148
50160
|
return (this.legend.computedLengthInMeters ?? -1) / (this.legend.computedLengthInPixels ?? 1);
|
|
50149
50161
|
}
|
|
50150
50162
|
}
|
|
50151
|
-
function
|
|
50163
|
+
function XB(t, i) {
|
|
50152
50164
|
try {
|
|
50153
50165
|
const e = h.Ellipsoid.WGS84, s = e.scaleToGeodeticSurface(t);
|
|
50154
50166
|
return i = h.Transforms.eastNorthUpToFixedFrame(s, e, i), i;
|
|
@@ -50156,7 +50168,7 @@ function qB(t, i) {
|
|
|
50156
50168
|
return h.Matrix4.clone(h.Matrix4.IDENTITY, i);
|
|
50157
50169
|
}
|
|
50158
50170
|
}
|
|
50159
|
-
const { combine:
|
|
50171
|
+
const { combine: GO } = h, { ShaderDestination: Fo } = h, F1 = {
|
|
50160
50172
|
name: "FlattenedPipelineStage"
|
|
50161
50173
|
// Helps with debugging
|
|
50162
50174
|
};
|
|
@@ -50234,13 +50246,13 @@ F1.process = function(t, i, e) {
|
|
|
50234
50246
|
// }
|
|
50235
50247
|
// },
|
|
50236
50248
|
};
|
|
50237
|
-
t.uniformMap =
|
|
50249
|
+
t.uniformMap = GO(
|
|
50238
50250
|
o,
|
|
50239
50251
|
t.uniformMap
|
|
50240
50252
|
);
|
|
50241
50253
|
}
|
|
50242
50254
|
};
|
|
50243
|
-
function
|
|
50255
|
+
function WO() {
|
|
50244
50256
|
Object.defineProperties(h.Model.prototype, {
|
|
50245
50257
|
xbsjFlattened: {
|
|
50246
50258
|
get: function() {
|
|
@@ -50281,7 +50293,7 @@ function GO() {
|
|
|
50281
50293
|
}
|
|
50282
50294
|
});
|
|
50283
50295
|
}
|
|
50284
|
-
function
|
|
50296
|
+
function HO() {
|
|
50285
50297
|
Object.defineProperties(h.Cesium3DTileset.prototype, {
|
|
50286
50298
|
xbsjFlattened: {
|
|
50287
50299
|
get: function() {
|
|
@@ -50317,25 +50329,25 @@ function WO() {
|
|
|
50317
50329
|
}
|
|
50318
50330
|
});
|
|
50319
50331
|
}
|
|
50320
|
-
function
|
|
50332
|
+
function $O() {
|
|
50321
50333
|
const t = h.Model3DTileContent.prototype.update;
|
|
50322
50334
|
h.Model3DTileContent.prototype.update = function(i, e, ...s) {
|
|
50323
50335
|
const o = this._model;
|
|
50324
50336
|
return o.xbsjFlattened = i.xbsjFlattened, o.xbsjElevationMatrix = i.xbsjElevationMatrix, o.xbsjFlattenedBound = i.xbsjFlattenedBound, o.xbsjGetFlattenedTextureFunc = i.xbsjGetFlattenedTextureFunc, t.call(this, i, e, ...s);
|
|
50325
50337
|
};
|
|
50326
50338
|
}
|
|
50327
|
-
function
|
|
50339
|
+
function qO() {
|
|
50328
50340
|
const t = h.ModelSceneGraph.prototype.configurePipeline;
|
|
50329
50341
|
h.ModelSceneGraph.prototype.configurePipeline = function(i, ...e) {
|
|
50330
50342
|
const s = t.call(this, i, ...e), o = this._model, n = this.modelPipelineStages;
|
|
50331
50343
|
return o.xbsjFlattened && n.push(F1), s;
|
|
50332
50344
|
};
|
|
50333
50345
|
}
|
|
50334
|
-
GO();
|
|
50335
50346
|
WO();
|
|
50336
50347
|
HO();
|
|
50337
50348
|
$O();
|
|
50338
|
-
|
|
50349
|
+
qO();
|
|
50350
|
+
const XO = () => ({
|
|
50339
50351
|
// 通用
|
|
50340
50352
|
createCesiumViewerFuncStr: void 0,
|
|
50341
50353
|
flashLighting: void 0,
|
|
@@ -50439,7 +50451,7 @@ const qO = () => ({
|
|
|
50439
50451
|
// firstPersonRotatingSpeed: 0.01,
|
|
50440
50452
|
// firstPersonAlwaysWithCamera: false,
|
|
50441
50453
|
// firstPersonKeyStatusMap: reactJson<{ [k: string]: CzmCameraActionType }>(KeyboardCameraController.defaultKeyStatusMap),
|
|
50442
|
-
}),
|
|
50454
|
+
}), YO = `
|
|
50443
50455
|
#### 示例代码1
|
|
50444
50456
|
\`\`\`
|
|
50445
50457
|
async function initCesiumViewer(container, czmViewer) {
|
|
@@ -50514,7 +50526,7 @@ async function initCesiumViewer(container, czmViewer) {
|
|
|
50514
50526
|
return viewer;
|
|
50515
50527
|
}
|
|
50516
50528
|
\`\`\`
|
|
50517
|
-
`,
|
|
50529
|
+
`, ZO = `async function initCesiumViewer(container, czmViewer) {
|
|
50518
50530
|
const viewer = await XE2.g.defaultCreateCesiumViewerFunc(container, czmViewer);
|
|
50519
50531
|
|
|
50520
50532
|
// 若原Czm版权信息展示位置遮挡重要信息,可将以下语句解注释,在别的位置展示
|
|
@@ -50523,7 +50535,7 @@ async function initCesiumViewer(container, czmViewer) {
|
|
|
50523
50535
|
return viewer;
|
|
50524
50536
|
}
|
|
50525
50537
|
`;
|
|
50526
|
-
function
|
|
50538
|
+
function QO() {
|
|
50527
50539
|
const t = "https://gitee.com/mirrors/CesiumJS/blob/main/packages/engine/Source/Core/Ion.js#L7", e = ` 因浏览器同源策略限制,需要用户自行打开网址获取最新的token,点击确定自动打开网址,请不要拦截!
|
|
50528
50540
|
github地址:https://github.com/CesiumGS/cesium/blob/main/packages/engine/Source/Core/Ion.js#L7
|
|
50529
50541
|
gitee地址:${t}
|
|
@@ -50551,7 +50563,7 @@ const Pt = class Pt extends up {
|
|
|
50551
50563
|
this.ad(new hL(this)), this.ad(new cL(this)), this.dv(new he(this.viewerChanged, () => {
|
|
50552
50564
|
if (this.viewer)
|
|
50553
50565
|
return new fL(this);
|
|
50554
|
-
})), this._viewerLegend = this.dv(new
|
|
50566
|
+
})), this._viewerLegend = this.dv(new UO(this)), this._viewerInstance = this.dv(new he(this.viewerChanged, () => {
|
|
50555
50567
|
if (this.viewer)
|
|
50556
50568
|
return new df(this, this.viewer);
|
|
50557
50569
|
})), this.d(this.viewerChanged.don((o) => {
|
|
@@ -50562,7 +50574,7 @@ const Pt = class Pt extends up {
|
|
|
50562
50574
|
this.viewerChanged.emit(o);
|
|
50563
50575
|
})), this.dv(new he(this.subContainerChanged, () => {
|
|
50564
50576
|
if (this.setStatus("Raw"), this.setStatusLog(""), !!this.subContainer)
|
|
50565
|
-
return new
|
|
50577
|
+
return new p5(this.subContainer, this, (o) => this._viewer.value = o, s.options);
|
|
50566
50578
|
}));
|
|
50567
50579
|
}
|
|
50568
50580
|
get disabledInputStack() {
|
|
@@ -50851,7 +50863,7 @@ const Pt = class Pt extends up {
|
|
|
50851
50863
|
more: [
|
|
50852
50864
|
...e.more,
|
|
50853
50865
|
new _e([], "通用", "通用"),
|
|
50854
|
-
new sd([this, "createCesiumViewerFuncStr"], "CesiumViewer创建函数",
|
|
50866
|
+
new sd([this, "createCesiumViewerFuncStr"], "CesiumViewer创建函数", ZO, YO, !0),
|
|
50855
50867
|
new mr([], () => Pt.getCesiumIonToken(), [], "获取官方token"),
|
|
50856
50868
|
new mr([], () => this.setCurrentDefaultAccessToken(), [], "重置为当前使用的Cesium版本的token"),
|
|
50857
50869
|
new mr([], () => this.setLatestDefaultAccessToken(), [], "最新token", "重置为当前Cesium官方的最新token"),
|
|
@@ -50955,7 +50967,7 @@ const Pt = class Pt extends up {
|
|
|
50955
50967
|
};
|
|
50956
50968
|
}
|
|
50957
50969
|
};
|
|
50958
|
-
g(Pt, "type", Pt.register("ESCesiumViewer", Pt)), g(Pt, "getCesiumIonToken",
|
|
50970
|
+
g(Pt, "type", Pt.register("ESCesiumViewer", Pt)), g(Pt, "getCesiumIonToken", QO), g(Pt, "currentDefaultAccessToken", h.Ion.defaultAccessToken), g(Pt, "latestDefaultAccessToken"), g(Pt, "ObjectsToExcludeWrapper", pL), g(Pt, "defaults", {
|
|
50959
50971
|
...up.defaults,
|
|
50960
50972
|
flashLighting: !1,
|
|
50961
50973
|
resolutionScale: 1,
|
|
@@ -51014,13 +51026,13 @@ let qe = Pt;
|
|
|
51014
51026
|
((t) => {
|
|
51015
51027
|
t.createDefaultProps = () => ({
|
|
51016
51028
|
...up.createDefaultProps(),
|
|
51017
|
-
...
|
|
51029
|
+
...XO()
|
|
51018
51030
|
});
|
|
51019
51031
|
})(qe || (qe = {}));
|
|
51020
51032
|
ae(qe.prototype, qe.createDefaultProps);
|
|
51021
51033
|
let ap;
|
|
51022
51034
|
try {
|
|
51023
|
-
const t = "earthsdk3-cesium", i = "3.6.0-beta.
|
|
51035
|
+
const t = "earthsdk3-cesium", i = "3.6.0-beta.4", e = "2025-11-18T09:13:53.000Z", s = "北京西部世界科技有限公司", o = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", n = "4a9c24099a441199e22c1cf61db58dd0d2fa26ec", a = ((Date.now() - 1763457233e3) / 36e5).toFixed(1), l = `%c🌏 ${t}%c ${i}.${n.slice(0, 8)}.${e} (距今${a}个小时)
|
|
51024
51036
|
%c${o ? o + `
|
|
51025
51037
|
` : ""}当前网站正在使用${t},此软件版权归${s}所有
|
|
51026
51038
|
`;
|
|
@@ -51034,7 +51046,7 @@ try {
|
|
|
51034
51046
|
},
|
|
51035
51047
|
// @ts-ignore
|
|
51036
51048
|
get gituri() {
|
|
51037
|
-
return GITURI_ && GITURI_.replace("${commitId}", "
|
|
51049
|
+
return GITURI_ && GITURI_.replace("${commitId}", "4a9c24099a441199e22c1cf61db58dd0d2fa26ec");
|
|
51038
51050
|
},
|
|
51039
51051
|
// @ts-ignore
|
|
51040
51052
|
get info() {
|
|
@@ -51042,7 +51054,7 @@ try {
|
|
|
51042
51054
|
},
|
|
51043
51055
|
// @ts-ignore
|
|
51044
51056
|
get date() {
|
|
51045
|
-
return "2025-11-
|
|
51057
|
+
return "2025-11-18T09:13:53.000Z";
|
|
51046
51058
|
},
|
|
51047
51059
|
// @ts-ignore
|
|
51048
51060
|
get author() {
|
|
@@ -51050,7 +51062,7 @@ try {
|
|
|
51050
51062
|
},
|
|
51051
51063
|
// @ts-ignore
|
|
51052
51064
|
get version() {
|
|
51053
|
-
return "3.6.0-beta.
|
|
51065
|
+
return "3.6.0-beta.4";
|
|
51054
51066
|
},
|
|
51055
51067
|
// @ts-ignore
|
|
51056
51068
|
get name() {
|
|
@@ -51058,7 +51070,7 @@ try {
|
|
|
51058
51070
|
},
|
|
51059
51071
|
// @ts-ignore
|
|
51060
51072
|
get commitId() {
|
|
51061
|
-
return "
|
|
51073
|
+
return "4a9c24099a441199e22c1cf61db58dd0d2fa26ec";
|
|
51062
51074
|
},
|
|
51063
51075
|
print() {
|
|
51064
51076
|
console.info(
|
|
@@ -51098,11 +51110,11 @@ export {
|
|
|
51098
51110
|
Uw as CurrentPositionsCenter,
|
|
51099
51111
|
Nw as CurrentScale,
|
|
51100
51112
|
Ob as CurrentSceneScalePoi,
|
|
51101
|
-
|
|
51102
|
-
|
|
51113
|
+
TB as CursorFloatDiv,
|
|
51114
|
+
EB as CursorInfo,
|
|
51103
51115
|
Fe as Czm3DTiles,
|
|
51104
51116
|
fp as CzmCameraChanged,
|
|
51105
|
-
|
|
51117
|
+
AB as CzmCanvasAndDivSwitchPoi,
|
|
51106
51118
|
Qw as CzmCanvasPoi,
|
|
51107
51119
|
Mr as CzmCircle,
|
|
51108
51120
|
cn as CzmCircleGroundPrimitive,
|
|
@@ -51260,13 +51272,13 @@ export {
|
|
|
51260
51272
|
W0 as HeightModifyEditingWrapper,
|
|
51261
51273
|
lR as ImageLabel2D,
|
|
51262
51274
|
hR as ImageLabel3D,
|
|
51263
|
-
|
|
51264
|
-
|
|
51275
|
+
_5 as ImageriesManager,
|
|
51276
|
+
m5 as LabelManager,
|
|
51265
51277
|
Kz as LineStringAppendEditing,
|
|
51266
51278
|
O0 as LineStringAppendEditingWrapper,
|
|
51267
51279
|
iL as LineStringInsertEditing,
|
|
51268
51280
|
B0 as LineStringInsertEditingWrapper,
|
|
51269
|
-
|
|
51281
|
+
P5 as PickingManager,
|
|
51270
51282
|
Gs as PlaceEditing,
|
|
51271
51283
|
I0 as PlaceEditingWrapper,
|
|
51272
51284
|
Vh as PolylinePath,
|
|
@@ -51279,17 +51291,17 @@ export {
|
|
|
51279
51291
|
V0 as ScatterAppendEditingWrapper,
|
|
51280
51292
|
nL as ScatterModifyEditing,
|
|
51281
51293
|
N0 as ScatterModifyEditingWrapper,
|
|
51282
|
-
|
|
51294
|
+
O5 as ScreenManager,
|
|
51283
51295
|
gS as SharedTexturePool,
|
|
51284
51296
|
Lb as SmoothMoving,
|
|
51285
|
-
|
|
51297
|
+
g5 as TerrainManager,
|
|
51286
51298
|
AR as TextLabel2D,
|
|
51287
51299
|
MR as TextLabel3D,
|
|
51288
51300
|
nM as ToGCJ02WebMercatorTilingScheme,
|
|
51289
51301
|
rM as ToWGS84WebMercatorTilingScheme,
|
|
51290
51302
|
Co as TranslationEditing,
|
|
51291
51303
|
rf as TranslationEditingWrapper,
|
|
51292
|
-
|
|
51304
|
+
B5 as ViewerExtensions,
|
|
51293
51305
|
ec as VisibilityAppendEditing,
|
|
51294
51306
|
U0 as VisibilityAppendEditingWrapper,
|
|
51295
51307
|
tc as VisibilityModifyEditing,
|
|
@@ -51300,11 +51312,11 @@ export {
|
|
|
51300
51312
|
Bs as XbsjGroundPolylinePrimitive,
|
|
51301
51313
|
af as _ESEditModeInstance,
|
|
51302
51314
|
ad as angleToHumanStr,
|
|
51303
|
-
|
|
51315
|
+
PB as areaToHumanStr,
|
|
51304
51316
|
At as bindNorthRotation,
|
|
51305
51317
|
Fb as calculateImageTiles,
|
|
51306
51318
|
Qb as capture,
|
|
51307
|
-
|
|
51319
|
+
_B as checkAndConvertImage,
|
|
51308
51320
|
Rz as computeCutPoint,
|
|
51309
51321
|
Ze as computeCzmModelMatrix,
|
|
51310
51322
|
Mw as computePickingInfoWithCoordinates,
|
|
@@ -51312,7 +51324,7 @@ export {
|
|
|
51312
51324
|
$d as createClippingPlaneCollection,
|
|
51313
51325
|
wf as createClippingPolygonCollection,
|
|
51314
51326
|
Nb as createGeoBoudingSphereReactFromPositions,
|
|
51315
|
-
|
|
51327
|
+
mB as createHelperLine,
|
|
51316
51328
|
qg as createInfoPoi,
|
|
51317
51329
|
$w as createInnerClassFromJson,
|
|
51318
51330
|
Qr as createInnerHtmlWithWhiteTextBlackBackground,
|
|
@@ -51330,38 +51342,38 @@ export {
|
|
|
51330
51342
|
xs as czmSubscribeAndEvaluate,
|
|
51331
51343
|
Qi as defaultFlyToRotation,
|
|
51332
51344
|
Tf as distanceToHumanStr,
|
|
51333
|
-
|
|
51345
|
+
xB as extendComponentProps,
|
|
51334
51346
|
fe as flyTo,
|
|
51335
51347
|
zi as flyWithPosition,
|
|
51336
51348
|
ge as flyWithPositions,
|
|
51337
51349
|
xi as flyWithPrimitive,
|
|
51338
|
-
|
|
51350
|
+
nB as fromCartesian,
|
|
51339
51351
|
yx as fromCartesian2,
|
|
51340
51352
|
od as fromCartesian3,
|
|
51341
51353
|
wx as fromCartesian4,
|
|
51342
51354
|
Sr as fromCartographic,
|
|
51343
|
-
|
|
51344
|
-
|
|
51345
|
-
|
|
51346
|
-
|
|
51347
|
-
|
|
51348
|
-
|
|
51349
|
-
|
|
51355
|
+
aB as fromColor,
|
|
51356
|
+
cB as fromDistanceDisplayCondition,
|
|
51357
|
+
gB as fromEllipsoid,
|
|
51358
|
+
hB as fromHeadingPitchRoll,
|
|
51359
|
+
lB as fromNearFarScalar,
|
|
51360
|
+
uB as fromQuaternion,
|
|
51361
|
+
fB as fromRectangle,
|
|
51350
51362
|
db as generateCartesianArc,
|
|
51351
51363
|
Tr as geoNeareastPointOnRhumbLine,
|
|
51352
|
-
|
|
51364
|
+
vB as geoNeareastPointOnRhumbLine2,
|
|
51353
51365
|
Xw as geoPolylineToBezierSpline,
|
|
51354
51366
|
Oi as getCameraPosition,
|
|
51355
51367
|
Sa as getCameraRotation,
|
|
51356
51368
|
Ix as getCameraTargetPos,
|
|
51357
51369
|
Xg as getCenterAndViewDistance,
|
|
51358
|
-
|
|
51359
|
-
|
|
51360
|
-
|
|
51370
|
+
CB as getCzmCode,
|
|
51371
|
+
bB as getDefaultComponentProps,
|
|
51372
|
+
yB as getDefaultWinPosAndDepth,
|
|
51361
51373
|
jb as getDetailedTerrainDistance,
|
|
51362
51374
|
qx as getDirectionVectorFromRotation,
|
|
51363
51375
|
Lw as getDistancesAndTimePosRotsFromPositions,
|
|
51364
|
-
|
|
51376
|
+
XB as getElevationMatrix,
|
|
51365
51377
|
Rw as getEllipsoidGeodesicCenter,
|
|
51366
51378
|
Af as getFlyToCenterAndRotation,
|
|
51367
51379
|
iI as getFoveatedInterpolationCallback,
|
|
@@ -51381,23 +51393,23 @@ export {
|
|
|
51381
51393
|
Ai as getResource,
|
|
51382
51394
|
Po as getSceneScaleForScreenPixelSize,
|
|
51383
51395
|
mS as getSharedTexturePool,
|
|
51384
|
-
|
|
51396
|
+
IB as getTilingSchemeStr,
|
|
51385
51397
|
Ct as getViewerExtensions,
|
|
51386
51398
|
$x as getWinPos,
|
|
51387
51399
|
Pb as getXbsjWaterMaterial,
|
|
51388
|
-
|
|
51389
|
-
|
|
51390
|
-
|
|
51391
|
-
|
|
51400
|
+
HO as hackCesium3DTileset,
|
|
51401
|
+
$O as hackCzmModel3DTileContent,
|
|
51402
|
+
WO as hackModel,
|
|
51403
|
+
qO as hackModelSceneGraph,
|
|
51392
51404
|
er as imgUrlToBase64,
|
|
51393
51405
|
zo as localPositionToPosition,
|
|
51394
51406
|
jo as localPositionsToPositions,
|
|
51395
|
-
|
|
51407
|
+
wB as merge3dTilesServer,
|
|
51396
51408
|
Cf as pickHeightPosition,
|
|
51397
51409
|
Vx as pickPosition,
|
|
51398
51410
|
Sh as pickVirtualEarth,
|
|
51399
51411
|
Nx as pickVirtualPlane,
|
|
51400
|
-
|
|
51412
|
+
pB as positionAndRotationToQuaternion,
|
|
51401
51413
|
me as positionFromCartesian,
|
|
51402
51414
|
Ve as positionToCartesian,
|
|
51403
51415
|
Hg as positionToHumanStr,
|
|
@@ -51415,14 +51427,14 @@ export {
|
|
|
51415
51427
|
ke as toCartesian2,
|
|
51416
51428
|
ps as toCartesian3,
|
|
51417
51429
|
Ew as toCartesian4,
|
|
51418
|
-
|
|
51430
|
+
rB as toCartographic,
|
|
51419
51431
|
Ww as toCoefficients,
|
|
51420
51432
|
de as toColor,
|
|
51421
51433
|
Hd as toDistanceDisplayCondition,
|
|
51422
51434
|
De as toEllipsoid,
|
|
51423
51435
|
Cx as toHeadingPitchRoll,
|
|
51424
51436
|
Ko as toNearFarScalar,
|
|
51425
|
-
|
|
51437
|
+
dB as toQuaternion,
|
|
51426
51438
|
ht as toRectangle,
|
|
51427
51439
|
Do as toRgbaString,
|
|
51428
51440
|
Gw as updateEnvironmentMapManager,
|