earthsdk3-cesium 3.6.0-beta.1 → 3.6.0-beta.2
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.js
CHANGED
|
@@ -2,9 +2,9 @@ var D1 = Object.defineProperty;
|
|
|
2
2
|
var k1 = (t, i, e) => i in t ? D1(t, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[i] = e;
|
|
3
3
|
var m = (t, i, e) => k1(t, typeof i != "symbol" ? i + "" : i, e);
|
|
4
4
|
import * as h from "cesium";
|
|
5
|
-
import { Cartesian3 as Wo, Math as ap, WebMercatorTilingScheme as F1, Rectangle as z1, Event as L1, Credit as O1, DefaultProxy as B1, defined as V1, Resource as
|
|
6
|
-
import { createGuid as Qe, extendClassProps as ae, Destroyable as L, EngineObject as qi, Event as q, getReactFuncs as Mi, createNextAnimateFrameEvent as F, react as U, cartesianDistance as G1, ObjResettingWithEvent as he, geoRhumbDistance as Od, geoRhumbHeading as hr, geoRhumbDestination as Ft, geoNearestPointOnLine as W1, getDomEventCurrentTargetPos as qt, geoDistance as Ti, ESSceneObject as oe, lbhToXyz as cr, xyzToLbh as nw, createProcessingFromAsyncFunc as Fe, step as fi, reactArrayWithUndefined as Q, getMinMaxCorner as mt, ESImageryLayer as _h, ESTerrainLayer as ga, ES3DTileset as vi, bind as M, geoHeading as wr, animateFrame as H1, geoDestination as $s, min as su, objsIterator as En, max as nu, getGeoBoundingSphereFromPositions as
|
|
7
|
-
import
|
|
5
|
+
import { Cartesian3 as Wo, Math as ap, WebMercatorTilingScheme as F1, Rectangle as z1, Event as L1, Credit as O1, DefaultProxy as B1, defined as V1, Resource as fg, ImageryLayerFeatureInfo as N1, Frozen as U1 } from "cesium";
|
|
6
|
+
import { createGuid as Qe, extendClassProps as ae, Destroyable as L, EngineObject as qi, Event as q, getReactFuncs as Mi, createNextAnimateFrameEvent as F, react as U, cartesianDistance as G1, ObjResettingWithEvent as he, geoRhumbDistance as Od, geoRhumbHeading as hr, geoRhumbDestination as Ft, geoNearestPointOnLine as W1, getDomEventCurrentTargetPos as qt, geoDistance as Ti, ESSceneObject as oe, lbhToXyz as cr, xyzToLbh as nw, createProcessingFromAsyncFunc as Fe, step as fi, reactArrayWithUndefined as Q, getMinMaxCorner as mt, ESImageryLayer as _h, ESTerrainLayer as ga, ES3DTileset as vi, bind as M, geoHeading as wr, animateFrame as H1, geoDestination as $s, min as su, objsIterator as En, max as nu, getGeoBoundingSphereFromPositions as hf, pairToPromise as $1, Vector as di, ESGltfModel as jc, reactJsonWithUndefined as Ge, reactJson as Be, reactArray as j, track as C, reactDeepArrayWithUndefined as rw, defaultGetLocalFilePath as q1, ComplexImage as ru, czmPixelFormats as X1, HasOwner as Bd, reactPositionsSet as Gr, setExtProp as ed, getExtProp as cf, getMinMaxPosition as aw, PosFloatDiv as lw, DivPoi as hw, createNextMicroTaskEvent as Y1, Transition as Cr, CanvasPrimitivesContext as Z1, CanvasPoi as df, DomElementEvent as pc, PointerClick as cw, PointerHover as Q1, CanvasPrimitive as K1, fetchImage as J1, getColorHexStr as fc, getDrawRect as au, drawTextBlock as gg, imageToCanvas as j1, setCanvasUniformColor as eP, ESJPickedResult as dr, createTimeoutWithStartValues as mg, reactPositions as Ke, reactArrayCollectionWithUndefined as tP, Player as ic, ESPoi2D as ot, ESWidget as dw, registerCreatedEventUpdate as Mt, debounce as iP, getDistancesFromPositions as ut, getDefaultValue as lu, ESPathImpl as uw, PlayerProperty as Vd, SmoothMoveController as oP, ESSceneObjectWithId as Di, ESClippingPlane as pw, ESGeoPolygon as Nd, nextAnimateFrame as Zt, ESPolygonFlattenedPlane as sP, registerEventUpdate as Ui, ESExcavate as oc, ESHole as Ud, ESBoxClipping as uf, defaultLocalFileServer as ma, ESAlarm as vg, ESApertureEffect as yg, createEventsCallFunc as $c, geoArea as nP, geoCenterOfMass as rP, ESAreaMeasurement as aP, ESBlastParticleSystem as lP, ESCameraView as hP, ESCameraVisibleRange as wg, ESCar as cP, ESCityBasePoint as dP, ESClassification as fw, ESCzml as uP, ESDataMesh as An, ColorStops as pP, sleep as gw, fetchArrayBuffer as hu, clampN180_180 as fP, clamp0_360 as gP, ESDirectionMeasurement as mP, inOrderRunning as vP, ESGeoLineString as mw, ESDistanceMeasurement as yP, ESFireParticleSystem as wP, ESVisualObject as td, GroupProperty as ye, EnumProperty as Ii, NumberProperty as ce, StringProperty as qs, Number4Property as ss, JsonProperty as $t, NumberSliderProperty as Cg, FunctionProperty as ur, EvalStringProperty as id, BooleanProperty as ue, LongStringProperty as CP, DateProperty as cu, ESLocalVector2D as _g, reactPosition2Ds as _P, Number2sProperty as PP, ColorProperty as Zn, DashPatternProperty as vw, ESLocalVector as Pg, Number3sProperty as xP, ESObjectWithLocation as xg, PositionProperty as SP, RotationProperty as bP, Number3Property as yw, ESGeoVector as Ri, ESJEditingMode as Ye, UriProperty as TP, Number2Property as EP, ESGeoDiv as AP, ESGeoDivTextPoi as MP, isJSON as ww, ESGeoJson as Cw, ESGeoRectangle as IP, ESHeightMeasurement as RP, ESHuman as Sg, ESImageLabel as DP, ESLocalSkyBox as bg, ESLocationMeasurement as Tg, ESParticleSystemPrimitive as kP, ESPoi3D as FP, ESSubmergingAnalysis as bs, ESTextLabel as zP, ESUEWidget as LP, ESUnrealActor as OP, ESVideoFusion as gc, ESViewShed as mc, ESLocalCircle as Eg, ESLocalPolygon as _w, ESLocalPolygonZ as Pw, ESLocalRectangle as BP, ESNavigator as Mn, ESCustomDiv as Gd, createAnimateFrameWithStartValues as pf, ESPath as VP, ESPolygonFence as xw, ESRectangle as NP, ESScale as ta, ESDynamicWater as Ho, ESEntityCluster as qc, ESGeoWater as mo, ESPipeFence as UP, ESPipeline as GP, equalsN3 as Wr, ESPipeserTileset as WP, ESPit as HP, ESPolygonWithHole as $P, clamp as lp, ESSunshineAnalysis as Sw, ESSurfaceAreaMeasurement as qP, ESViewerStatusBar as Zi, ESViewerStatusBarScale as Qi, ESVisibilityAnalysis as XP, ESVolumeMeasurement as YP, ESGeoExtrudedPolygon as vc, ESHumanPoi as ZP, ESRtsTileset as QP, ESRtsFeatureEditing as KP, ESMsTileset as JP, ESStaticMesh as jP, ESSkylineAnalysis as Ag, ESHeatMap as In, ESGeoPoints as ia, getEventFromPromise as ex, Processing as Ca, ObservableArray as tx, CursorInfo as ix, CursorFloatDiv as ox, createCancelablePromise as hp, createNextAnimateFrame as sx, ESViewer as cp, StringsProperty as nx } from "earthsdk3";
|
|
7
|
+
import ff from "html2canvas";
|
|
8
8
|
import * as rx from "mvt-basic-render";
|
|
9
9
|
import ax from "delaunator";
|
|
10
10
|
import lx from "earcut";
|
|
@@ -244,7 +244,7 @@ function Hd(t, i) {
|
|
|
244
244
|
edgeWidth: a
|
|
245
245
|
});
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function gf(t, i, e) {
|
|
248
248
|
const o = i;
|
|
249
249
|
if (!o) {
|
|
250
250
|
t.removeAll(), t.enabled = !1;
|
|
@@ -256,7 +256,7 @@ function mf(t, i, e) {
|
|
|
256
256
|
let s = o.modelMatrix && h.Matrix4.fromArray(o.modelMatrix) || h.Matrix4.clone(h.Matrix4.IDENTITY, new h.Matrix4());
|
|
257
257
|
e && h.Matrix4.multiply(e, s, s), t.enabled = o.enabled ?? !0, t.modelMatrix = s, t.unionClippingRegions = o.unionClippingRegions ?? !1, t.edgeColor = de(o.edgeColor ?? [1, 1, 1, 1]), t.edgeWidth = o.edgeWidth ?? 2;
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function mf(t) {
|
|
260
260
|
const { polygons: i, enabled: e, inverse: o } = t;
|
|
261
261
|
return new h.ClippingPolygonCollection({
|
|
262
262
|
polygons: i && i.map((s) => new h.ClippingPolygon({
|
|
@@ -266,7 +266,7 @@ function vf(t) {
|
|
|
266
266
|
inverse: o
|
|
267
267
|
});
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function dp(t, i) {
|
|
270
270
|
return Tw(t, h.Cartesian3.UNIT_Y, h.Cartesian3.UNIT_Z, h.Cartesian3.UNIT_X, i);
|
|
271
271
|
}
|
|
272
272
|
function vx(t, i) {
|
|
@@ -305,7 +305,7 @@ function qe(t, i) {
|
|
|
305
305
|
h.Matrix4.multiply(h.Matrix4.fromRotationTranslation(n), o, o);
|
|
306
306
|
}
|
|
307
307
|
if (t.localRotation) {
|
|
308
|
-
const s =
|
|
308
|
+
const s = dp(t.localRotation), n = h.Matrix3.fromQuaternion(s);
|
|
309
309
|
h.Matrix4.multiply(h.Matrix4.fromRotationTranslation(n), o, o);
|
|
310
310
|
}
|
|
311
311
|
if (t.localPosition) {
|
|
@@ -325,7 +325,7 @@ function qe(t, i) {
|
|
|
325
325
|
h.Matrix4.multiply(a, o, o);
|
|
326
326
|
}
|
|
327
327
|
if (t.rotation) {
|
|
328
|
-
const s =
|
|
328
|
+
const s = dp(t.rotation), n = h.Matrix3.fromQuaternion(s);
|
|
329
329
|
h.Matrix4.multiply(h.Matrix4.fromRotationTranslation(n), o, o);
|
|
330
330
|
}
|
|
331
331
|
if (t.position) {
|
|
@@ -364,7 +364,7 @@ function _a(t, i) {
|
|
|
364
364
|
const { heading: e, pitch: o, roll: s } = t;
|
|
365
365
|
return i ? (i[0] = ls(e), i[1] = ls(o), i[2] = ls(s), i) : [e, o, s].map(ls);
|
|
366
366
|
}
|
|
367
|
-
class
|
|
367
|
+
class up extends L {
|
|
368
368
|
constructor(e) {
|
|
369
369
|
super();
|
|
370
370
|
m(this, "_originViewMatrix", new h.Matrix4());
|
|
@@ -509,7 +509,7 @@ function HO(t, i) {
|
|
|
509
509
|
return W1(t, i).geometry.coordinates;
|
|
510
510
|
}
|
|
511
511
|
const Ig = new h.Cartesian3(), Ex = new h.Ray(), Ax = new h.Plane(h.Cartesian3.UNIT_X, 0);
|
|
512
|
-
function
|
|
512
|
+
function vf(t, i, e, o) {
|
|
513
513
|
const s = h.Cartesian3.normalize(i, Ig), n = h.Cartesian3.cross(t.camera.right, s, Ig);
|
|
514
514
|
h.Cartesian3.normalize(n, n);
|
|
515
515
|
const r = h.Plane.fromPointNormal(i, n, Ax), a = t.camera.getPickRay(e, Ex);
|
|
@@ -546,7 +546,7 @@ function Ew(t, i, e, o, s, n) {
|
|
|
546
546
|
if (!Ze(r, pu))
|
|
547
547
|
return;
|
|
548
548
|
const a = ws(i, pu, o);
|
|
549
|
-
if (a === void 0 || !
|
|
549
|
+
if (a === void 0 || !vf(i, pu, uu, kg) || !ve(kg, ei))
|
|
550
550
|
return;
|
|
551
551
|
const l = Rg(ei[2]) * Ti(r, ei);
|
|
552
552
|
if (!n.z && l < a && Math.abs(r[2] - ei[2]) < e.dimensions[0] && ei[2] > r[2])
|
|
@@ -649,7 +649,7 @@ function Bx(t, i, e) {
|
|
|
649
649
|
return e ? (e.left = c, e.top = p, e.right = u, e.bottom = d, e.depth = f) : e = { left: c, top: p, right: u, bottom: d, depth: f }, e;
|
|
650
650
|
}
|
|
651
651
|
const Ts = { left: 0, top: 0, right: 0, bottom: 0, depth: 0 };
|
|
652
|
-
class
|
|
652
|
+
class yf extends L {
|
|
653
653
|
constructor(e, o = !0, s) {
|
|
654
654
|
super();
|
|
655
655
|
m(this, "_cartesian", new h.Cartesian3());
|
|
@@ -658,7 +658,7 @@ class wf extends L {
|
|
|
658
658
|
m(this, "_changedEvent", new q());
|
|
659
659
|
// valid: boolean, winPos: WinPosAndDepth
|
|
660
660
|
m(this, "_enabled", !0);
|
|
661
|
-
this._viewer = e, s = s || this.disposeVar(new
|
|
661
|
+
this._viewer = e, s = s || this.disposeVar(new up(this._viewer.scene)), this.dispose(s.changed.disposableOn(() => this._updateWinPos())), this.dispose(() => {
|
|
662
662
|
this._changedEvent.empty || console.warn("WinPosFromCartesian需要销毁,但是changed事件仍有监听,代码未必有错,但是说明代码不严谨。");
|
|
663
663
|
}), this.enabled = o;
|
|
664
664
|
}
|
|
@@ -708,7 +708,7 @@ function Gx(t, i, e, o) {
|
|
|
708
708
|
l = t[r], i(a, l, zg) ? (Es(c) || (c = t.slice(0, r), d = r - 1, u = 0), s && o.push(r)) : (Es(c) && (c.push(l), d = r, s && (u = o.length)), a = l);
|
|
709
709
|
return e && i(t[0], t[n - 1], zg) && (s && (Es(c) ? o.splice(u, 0, d) : o.push(n - 1)), Es(c) ? c.length -= 1 : c = t.slice(0, -1)), Es(c) ? c : t;
|
|
710
710
|
}
|
|
711
|
-
const Te = h.Cartesian3, $r = h.Cartographic, Ys = h.defined, Iw = h.DeveloperError, Rw = h.Ellipsoid, Wx = h.EllipsoidGeodesic, Dw = h.EllipsoidRhumbLine, Hx = h.IntersectionTests,
|
|
711
|
+
const Te = h.Cartesian3, $r = h.Cartographic, Ys = h.defined, Iw = h.DeveloperError, Rw = h.Ellipsoid, Wx = h.EllipsoidGeodesic, Dw = h.EllipsoidRhumbLine, Hx = h.IntersectionTests, pp = h.Math, qn = h.Matrix4, Fs = h.Plane, gt = {};
|
|
712
712
|
gt.numberOfPoints = function(t, i, e) {
|
|
713
713
|
const o = Te.distance(t, i);
|
|
714
714
|
return Math.ceil(o / e);
|
|
@@ -729,9 +729,9 @@ gt.extractHeights = function(t, i) {
|
|
|
729
729
|
}
|
|
730
730
|
return o;
|
|
731
731
|
};
|
|
732
|
-
const qx = new qn(), Xx = new Te(), Lg = new Te(), Yx = new Fs(Te.UNIT_X, 0), Og = new Te(), Zx = new Fs(Te.UNIT_X, 0), Qx = new Te(), Kx = new Te(),
|
|
732
|
+
const qx = new qn(), Xx = new Te(), Lg = new Te(), Yx = new Fs(Te.UNIT_X, 0), Og = new Te(), Zx = new Fs(Te.UNIT_X, 0), Qx = new Te(), Kx = new Te(), wf = [];
|
|
733
733
|
function kw(t, i, e) {
|
|
734
|
-
const o =
|
|
734
|
+
const o = wf;
|
|
735
735
|
o.length = t;
|
|
736
736
|
let s;
|
|
737
737
|
if (i === e) {
|
|
@@ -746,10 +746,10 @@ function kw(t, i, e) {
|
|
|
746
746
|
}
|
|
747
747
|
return o;
|
|
748
748
|
}
|
|
749
|
-
const $d = new $r(), sd = new $r(), us = new Te(),
|
|
749
|
+
const $d = new $r(), sd = new $r(), us = new Te(), Cf = new Te(), Jx = new Te(), mu = new Wx();
|
|
750
750
|
let sa = new Dw();
|
|
751
751
|
function jx(t, i, e, o, s, n, r, a) {
|
|
752
|
-
const l = o.scaleToGeodeticSurface(t,
|
|
752
|
+
const l = o.scaleToGeodeticSurface(t, Cf), c = o.scaleToGeodeticSurface(i, Jx), d = gt.numberOfPoints(t, i, e), u = o.cartesianToCartographic(l, $d), p = o.cartesianToCartographic(c, sd), f = kw(d, s, n);
|
|
753
753
|
mu.setEndPoints(u, p);
|
|
754
754
|
const g = mu.surfaceDistance / d;
|
|
755
755
|
let v = a;
|
|
@@ -868,7 +868,7 @@ gt.generateArc = function(t) {
|
|
|
868
868
|
if (e < 1)
|
|
869
869
|
return [];
|
|
870
870
|
if (e === 1) {
|
|
871
|
-
const v = o.scaleToGeodeticSurface(i[0],
|
|
871
|
+
const v = o.scaleToGeodeticSurface(i[0], Cf);
|
|
872
872
|
if (s = n ? s[0] : s, s !== 0) {
|
|
873
873
|
const _ = o.geodeticSurfaceNormal(v, us);
|
|
874
874
|
Te.multiplyByScalar(_, s, _), Te.add(v, _, v);
|
|
@@ -877,8 +877,8 @@ gt.generateArc = function(t) {
|
|
|
877
877
|
}
|
|
878
878
|
let r = t.minDistance;
|
|
879
879
|
if (!Ys(r)) {
|
|
880
|
-
const v = t.granularity ??
|
|
881
|
-
r =
|
|
880
|
+
const v = t.granularity ?? pp.RADIANS_PER_DEGREE;
|
|
881
|
+
r = pp.chordLength(v, o.maximumRadius);
|
|
882
882
|
}
|
|
883
883
|
let a = 0, l;
|
|
884
884
|
for (l = 0; l < e - 1; l++)
|
|
@@ -902,7 +902,7 @@ gt.generateArc = function(t) {
|
|
|
902
902
|
u
|
|
903
903
|
);
|
|
904
904
|
}
|
|
905
|
-
|
|
905
|
+
wf.length = 0;
|
|
906
906
|
const p = i[e - 1], f = o.cartesianToCartographic(p, $d);
|
|
907
907
|
f.height = n ? s[e - 1] : s;
|
|
908
908
|
const g = o.cartographicToCartesian(f, us);
|
|
@@ -920,14 +920,14 @@ gt.generateRhumbArc = function(t) {
|
|
|
920
920
|
if (e < 1)
|
|
921
921
|
return [];
|
|
922
922
|
if (e === 1) {
|
|
923
|
-
const P = o.scaleToGeodeticSurface(i[0],
|
|
923
|
+
const P = o.scaleToGeodeticSurface(i[0], Cf);
|
|
924
924
|
if (s = n ? s[0] : s, s !== 0) {
|
|
925
925
|
const w = o.geodeticSurfaceNormal(P, us);
|
|
926
926
|
Te.multiplyByScalar(w, s, w), Te.add(P, w, P);
|
|
927
927
|
}
|
|
928
928
|
return [P.x, P.y, P.z];
|
|
929
929
|
}
|
|
930
|
-
const r = t.granularity ??
|
|
930
|
+
const r = t.granularity ?? pp.RADIANS_PER_DEGREE;
|
|
931
931
|
let a = 0, l, c = o.cartesianToCartographic(
|
|
932
932
|
i[0],
|
|
933
933
|
Bg
|
|
@@ -952,7 +952,7 @@ gt.generateRhumbArc = function(t) {
|
|
|
952
952
|
f
|
|
953
953
|
);
|
|
954
954
|
}
|
|
955
|
-
|
|
955
|
+
wf.length = 0;
|
|
956
956
|
const g = i[e - 1], v = o.cartesianToCartographic(g, $d);
|
|
957
957
|
v.height = n ? s[e - 1] : s;
|
|
958
958
|
const _ = o.cartographicToCartesian(v, us);
|
|
@@ -1044,7 +1044,7 @@ function Lw(t, i) {
|
|
|
1044
1044
|
}
|
|
1045
1045
|
if (s) {
|
|
1046
1046
|
const a = new h.Quaternion();
|
|
1047
|
-
r === "YForwardZUp" ?
|
|
1047
|
+
r === "YForwardZUp" ? dp(s, a) : r === "XForwardZUp" && vx(s, a);
|
|
1048
1048
|
const l = h.Matrix3.fromQuaternion(a);
|
|
1049
1049
|
h.Matrix4.multiply(e, h.Matrix4.fromRotationTranslation(l), e);
|
|
1050
1050
|
}
|
|
@@ -1495,7 +1495,7 @@ function Uw(t) {
|
|
|
1495
1495
|
const i = new h.Cartesian3(...t[0]), e = new h.Cartesian3(...t[1]), o = new h.Cartesian3(...t[2]), s = new h.Cartesian3(...t[3]), n = new h.Cartesian3(...t[4]), r = new h.Cartesian3(...t[5]), a = new h.Cartesian3(...t[6]), l = new h.Cartesian3(...t[7]), c = new h.Cartesian3(...t[8]);
|
|
1496
1496
|
return [i, e, o, s, n, r, a, l, c];
|
|
1497
1497
|
}
|
|
1498
|
-
class
|
|
1498
|
+
class _f extends L {
|
|
1499
1499
|
/**
|
|
1500
1500
|
* 构造函数:初始化时绑定场景 preUpdate 事件,实现动画执行逻辑的实时更新
|
|
1501
1501
|
* @param viewer Cesium.Viewer 实例,提供场景(scene)、相机(camera)、视锥体(frustum)等环境信息
|
|
@@ -1794,7 +1794,7 @@ function YO(t, i) {
|
|
|
1794
1794
|
i(o, !1), e.remove(), s.onload = s.onerror = null;
|
|
1795
1795
|
}, s.src = o;
|
|
1796
1796
|
}
|
|
1797
|
-
function
|
|
1797
|
+
function Pf(t) {
|
|
1798
1798
|
if (!(t.startsWith("./") || t.startsWith("../") || t.startsWith("/"))) return t;
|
|
1799
1799
|
const i = document.createElement("a");
|
|
1800
1800
|
i.href = t;
|
|
@@ -1808,11 +1808,11 @@ function rd(t, i = !1) {
|
|
|
1808
1808
|
const r = n | 0, l = ((n - r) * 60).toFixed(3);
|
|
1809
1809
|
return `${e}${s}°${r}′${l}″`;
|
|
1810
1810
|
}
|
|
1811
|
-
function
|
|
1811
|
+
function xf(t) {
|
|
1812
1812
|
return Math.abs(t) < 1e3 ? `${t.toFixed(2)} m` : `${(t / 1e3).toFixed(2)} km`;
|
|
1813
1813
|
}
|
|
1814
1814
|
function Gg(t, i = !1) {
|
|
1815
|
-
const e = rd(t[0], i), o = rd(t[1], i), s =
|
|
1815
|
+
const e = rd(t[0], i), o = rd(t[1], i), s = xf(t[2]);
|
|
1816
1816
|
return [e, o, s];
|
|
1817
1817
|
}
|
|
1818
1818
|
function ZO(t) {
|
|
@@ -1990,7 +1990,7 @@ function Hg(t, i, e, o) {
|
|
|
1990
1990
|
function IS(t) {
|
|
1991
1991
|
const [i, e, o] = Mi(t), s = U(void 0), n = () => {
|
|
1992
1992
|
const r = i();
|
|
1993
|
-
s.value = r &&
|
|
1993
|
+
s.value = r && hf(r);
|
|
1994
1994
|
};
|
|
1995
1995
|
return n(), s.dispose(o.disposableOn(n)), s;
|
|
1996
1996
|
}
|
|
@@ -2153,9 +2153,9 @@ function fe(t, i, e, o, s, n, r = "default") {
|
|
|
2153
2153
|
}
|
|
2154
2154
|
async function Wi(t, i, e, o, s, n, r = !1) {
|
|
2155
2155
|
if (!t.viewer) return;
|
|
2156
|
-
const a =
|
|
2156
|
+
const a = Sf(t, s), l = [...Yi];
|
|
2157
2157
|
r && (l[0] = i.rotation[0] - 90);
|
|
2158
|
-
const { position: c, rotation: d } =
|
|
2158
|
+
const { position: c, rotation: d } = bf(o, l, a);
|
|
2159
2159
|
let u = await t.flyTo({
|
|
2160
2160
|
distance: 0,
|
|
2161
2161
|
heading: d[0],
|
|
@@ -2167,11 +2167,11 @@ async function Wi(t, i, e, o, s, n, r = !1) {
|
|
|
2167
2167
|
return i.flyOverEvent.emit(e, u ? "over" : u == null ? "error" : "cancelled", t), u ?? !1;
|
|
2168
2168
|
}
|
|
2169
2169
|
async function ge(t, i, e, o, s, n = !1) {
|
|
2170
|
-
const r =
|
|
2170
|
+
const r = hf(o);
|
|
2171
2171
|
if (r && r.center && r.radius && t.viewer) {
|
|
2172
|
-
const a =
|
|
2172
|
+
const a = Sf(t, r.radius), l = [...Yi];
|
|
2173
2173
|
n && (l[0] = i.rotation[0] - 90);
|
|
2174
|
-
const { position: c, rotation: d } =
|
|
2174
|
+
const { position: c, rotation: d } = bf(r.center, l, a);
|
|
2175
2175
|
let u = await t.flyTo({
|
|
2176
2176
|
distance: 0,
|
|
2177
2177
|
heading: d[0],
|
|
@@ -2189,7 +2189,7 @@ async function wi(t, i, e, o, s, n = !1) {
|
|
|
2189
2189
|
if (r != null) {
|
|
2190
2190
|
const [a, l] = r, c = [...Yi];
|
|
2191
2191
|
n && (c[0] = i.rotation[0] - 90);
|
|
2192
|
-
const { position: d, rotation: u } =
|
|
2192
|
+
const { position: d, rotation: u } = bf(a, c, l);
|
|
2193
2193
|
let p = await t.flyTo({
|
|
2194
2194
|
distance: 0,
|
|
2195
2195
|
heading: u[0],
|
|
@@ -2221,14 +2221,14 @@ function $g(t, i) {
|
|
|
2221
2221
|
e = Math.max(n, r, a);
|
|
2222
2222
|
}
|
|
2223
2223
|
if (!(!o || e === void 0 || !t.viewer))
|
|
2224
|
-
return e =
|
|
2224
|
+
return e = Sf(t, e), [o, e];
|
|
2225
2225
|
}
|
|
2226
|
-
function
|
|
2226
|
+
function Sf(t, i) {
|
|
2227
2227
|
if (i = Math.abs(i), i == 0 && (i = 1), !t.viewer) return i;
|
|
2228
2228
|
const e = i / ((t.flyToBoundingSize ?? 256) * 0.5 / (t.viewer.canvas.width / 2) * Math.tan(h.Math.toRadians(t.fov / 2)));
|
|
2229
2229
|
return Math.sqrt(i * i + e * e);
|
|
2230
2230
|
}
|
|
2231
|
-
function
|
|
2231
|
+
function bf(t, i, e) {
|
|
2232
2232
|
const o = new h.Cartesian3(
|
|
2233
2233
|
-e * Math.cos(h.Math.toRadians(i[1])) * Math.cos(h.Math.toRadians(i[0] - 90)),
|
|
2234
2234
|
e * Math.cos(h.Math.toRadians(i[1])) * Math.sin(h.Math.toRadians(i[0] - 90)),
|
|
@@ -2496,7 +2496,7 @@ var Bt;
|
|
|
2496
2496
|
OPAQUE_AND_TRANSLUCENT: h.BlendOption.OPAQUE_AND_TRANSLUCENT
|
|
2497
2497
|
};
|
|
2498
2498
|
})(Bt || (Bt = {}));
|
|
2499
|
-
const
|
|
2499
|
+
const Tf = {
|
|
2500
2500
|
river: {
|
|
2501
2501
|
// 颜色提高亮度
|
|
2502
2502
|
waterColor: [95 / 255, 115 / 255, 70 / 255, 1],
|
|
@@ -4590,7 +4590,7 @@ class Eh extends bb {
|
|
|
4590
4590
|
}
|
|
4591
4591
|
V[N] = b;
|
|
4592
4592
|
let Z;
|
|
4593
|
-
const K = p && p[N] ?
|
|
4593
|
+
const K = p && p[N] ? cf(p[N], "_originAttribute") : void 0;
|
|
4594
4594
|
K && Ib(K, y) ? (Z = p[N], delete p[N], G[N] = Z) : K && K.typedArray !== y.typedArray && K.typedArray.byteLength === y.typedArray.byteLength && K.usage === y.usage ? (Z = p[N], Z.copyFromArrayView(y.typedArray), delete p[N], G[N] = Z, ed(G[N], "_originAttribute", y)) : (Z = h.Buffer.createVertexBuffer({ context: n, typedArray: R, usage: $ }), Z.vertexArrayDestroyable = !1, G[N] = Z, ed(G[N], "_originAttribute", y)), W.push({
|
|
4595
4595
|
index: b,
|
|
4596
4596
|
vertexBuffer: Z,
|
|
@@ -5222,7 +5222,7 @@ class Db extends L {
|
|
|
5222
5222
|
m(this, "_actualShow", this.disposeVar(U(!1)));
|
|
5223
5223
|
this._czmPoisContext = e;
|
|
5224
5224
|
const { viewer: s, cameraChanged: n } = this._czmPoisContext;
|
|
5225
|
-
this._winPosFromCartesian = o || this.disposeVar(new
|
|
5225
|
+
this._winPosFromCartesian = o || this.disposeVar(new yf(s, !0, n));
|
|
5226
5226
|
let r = 0, a = Number.POSITIVE_INFINITY;
|
|
5227
5227
|
this.dispose(this._near.changed.disposableOn((c) => r = c * c)), this.dispose(this._far.changed.disposableOn((c) => a = c * c));
|
|
5228
5228
|
const l = this.disposeVar(Y1(this._near.changed, this._far.changed, this._show.changed, this._winPosFromCartesian.changed, n.changed));
|
|
@@ -5318,7 +5318,7 @@ class Zw extends L {
|
|
|
5318
5318
|
m(this, "depth", 0);
|
|
5319
5319
|
this._czmPoisContext = o;
|
|
5320
5320
|
const { viewer: n, divContainer: r, cameraChanged: a } = this._czmPoisContext;
|
|
5321
|
-
this._winPosFromCartesian = s || this.disposeVar(new
|
|
5321
|
+
this._winPosFromCartesian = s || this.disposeVar(new yf(n, !0, a)), this._divPoi = new hw(e, r), this.dispose(() => this._divPoi.destroy()), this.dispose(this._winPosFromCartesian.changed.disposableOn((l, c) => {
|
|
5322
5322
|
this._occludedByEarth = !l || this._czmPoisContext.isPointOccludedByEarth(this._winPosFromCartesian.cartesian);
|
|
5323
5323
|
const { left: d, top: u, depth: p } = c, { floatDiv: f } = this._divPoi;
|
|
5324
5324
|
f.winPos = [d, u], this.depth = Math.round((1 - p) * 1e11), f.element.style.zIndex = `${this.zOrder || this.depth}`, this._updateShow();
|
|
@@ -5371,7 +5371,7 @@ class tB extends L {
|
|
|
5371
5371
|
m(this, "_statusChanged");
|
|
5372
5372
|
this._czmPoisContext = s;
|
|
5373
5373
|
const { viewer: r, cameraChanged: a } = this._czmPoisContext;
|
|
5374
|
-
this._winPosFromCartesian = n || this.disposeVar(new
|
|
5374
|
+
this._winPosFromCartesian = n || this.disposeVar(new yf(r, !0, a)), this._czmCanvasPoi = new Yw(e, this._czmPoisContext, this._winPosFromCartesian), this.dispose(() => this._czmCanvasPoi.destroy()), this._czmDivPoi = new Zw(o, this._czmPoisContext, this._winPosFromCartesian), this.dispose(() => this._czmDivPoi.destroy()), this._switchTransition = new Cr(300), this.dispose(this._switchTransition.currentChanged.disposableOn((l, c) => {
|
|
5375
5375
|
this._updateShow(), this._czmCanvasPoi.canvasPoi.opacity = 1 - c, this._czmDivPoi.divPoi.floatDiv.opacity = c;
|
|
5376
5376
|
})), this._updateShow();
|
|
5377
5377
|
}
|
|
@@ -5429,7 +5429,7 @@ class kb extends L {
|
|
|
5429
5429
|
m(this, "_moveEvent", this.disposeVar(new q()));
|
|
5430
5430
|
m(this, "_outEvent", this.disposeVar(new q()));
|
|
5431
5431
|
m(this, "_cameraChanged");
|
|
5432
|
-
this._viewer = e, this._useInnerInteraction = o, this._cameraChanged = new
|
|
5432
|
+
this._viewer = e, this._useInnerInteraction = o, this._cameraChanged = new up(this._viewer.scene);
|
|
5433
5433
|
const s = this._viewer.canvas.parentElement;
|
|
5434
5434
|
this._divContainer = s;
|
|
5435
5435
|
const n = document.createElement("div");
|
|
@@ -5441,7 +5441,7 @@ class kb extends L {
|
|
|
5441
5441
|
this._canvasPrimitivesContext.destroy();
|
|
5442
5442
|
}), n.appendChild(r.element);
|
|
5443
5443
|
{
|
|
5444
|
-
const u = new h.EllipsoidalOccluder(h.Ellipsoid.WGS84, new h.Cartesian3()), p = new
|
|
5444
|
+
const u = new h.EllipsoidalOccluder(h.Ellipsoid.WGS84, new h.Cartesian3()), p = new up(this._viewer.scene);
|
|
5445
5445
|
this.dispose(() => p.destroy());
|
|
5446
5446
|
const f = () => u.cameraPosition = this._viewer.camera.positionWC;
|
|
5447
5447
|
this.dispose(p.changed.disposableOn(f)), f();
|
|
@@ -5479,7 +5479,7 @@ class kb extends L {
|
|
|
5479
5479
|
const f = r.pick(u, p, 1, 1);
|
|
5480
5480
|
if (f.length > 0) {
|
|
5481
5481
|
const { poi: g, tag: v } = f[0];
|
|
5482
|
-
g instanceof
|
|
5482
|
+
g instanceof df && (g.actived = !0, a = g);
|
|
5483
5483
|
}
|
|
5484
5484
|
})), this.dispose(this._upEvent.disposableOn(() => {
|
|
5485
5485
|
a && (a.actived = !1, a = void 0);
|
|
@@ -5780,10 +5780,10 @@ class zb extends L {
|
|
|
5780
5780
|
}
|
|
5781
5781
|
function Lb(t, i) {
|
|
5782
5782
|
const [e, o, s] = i, n = `${e}-${o}-${s}`;
|
|
5783
|
-
let r =
|
|
5783
|
+
let r = cf(t, n);
|
|
5784
5784
|
return r || (r = j1(t), eP(r, i), ed(t, n, r)), r;
|
|
5785
5785
|
}
|
|
5786
|
-
class Ob extends
|
|
5786
|
+
class Ob extends df {
|
|
5787
5787
|
constructor(e, o, s = [32, 32], n = [0.5, 1, 0, 0], r = "#F00F") {
|
|
5788
5788
|
super(e);
|
|
5789
5789
|
m(this, "_tooltip", "");
|
|
@@ -5919,9 +5919,9 @@ class Ob extends uf {
|
|
|
5919
5919
|
e.drawImage(this._image, a, l, n, r);
|
|
5920
5920
|
} else
|
|
5921
5921
|
e.fillStyle = this._fgColorHexStr, e.fillRect(a, l, n, r);
|
|
5922
|
-
if (this._title !== "" &&
|
|
5922
|
+
if (this._title !== "" && gg(e, o + 20, s - 16, [0, 0.5, 0, 0], this._title, "14px Arial", 4, this._fgColorHexStr, this._bgColorHexStr), e.globalAlpha = u, this._hovered && this._tooltip !== "") {
|
|
5923
5923
|
const p = e.globalAlpha;
|
|
5924
|
-
e.globalAlpha = this._tooltipAlpha,
|
|
5924
|
+
e.globalAlpha = this._tooltipAlpha, gg(e, (a + c) * 0.5, l - 5, [0.5, 1, 0, 0], this._tooltip, "12px Arial", 4, this._fgColorHexStr, this._bgColorHexStr), e.globalAlpha = p;
|
|
5925
5925
|
}
|
|
5926
5926
|
}
|
|
5927
5927
|
drawForPick(e, o) {
|
|
@@ -6044,7 +6044,7 @@ class Ah extends L {
|
|
|
6044
6044
|
}));
|
|
6045
6045
|
const n = this.disposeVar(new Cr(100));
|
|
6046
6046
|
n.reset(0);
|
|
6047
|
-
const r = this.disposeVar(
|
|
6047
|
+
const r = this.disposeVar(mg(() => n.target = 0, 1e3)), a = this.disposeVar(mg(() => n.target = 1, 1e3)), l = this.disposeVar(new Io(e));
|
|
6048
6048
|
l.originRatioAndOffset = [0.5, 0.5, 0, 0], this.dispose(C([l, "tooltip"], [o, "title"]));
|
|
6049
6049
|
{
|
|
6050
6050
|
const g = () => {
|
|
@@ -6157,7 +6157,7 @@ class Ah extends L {
|
|
|
6157
6157
|
});
|
|
6158
6158
|
})(Ah || (Ah = {}));
|
|
6159
6159
|
ae(Ah.prototype, Ah.createDefaultProps);
|
|
6160
|
-
const
|
|
6160
|
+
const fp = `class MyDiv {
|
|
6161
6161
|
// container是Poi的div
|
|
6162
6162
|
// geoCustomDivPoi指向当前的GeoCustomDivPoi场景对象
|
|
6163
6163
|
// viewer指定当前的视口
|
|
@@ -6190,7 +6190,7 @@ const gp = `class MyDiv {
|
|
|
6190
6190
|
}
|
|
6191
6191
|
}`, Xg = `示例代码:
|
|
6192
6192
|
\`\`\`
|
|
6193
|
-
${
|
|
6193
|
+
${fp}
|
|
6194
6194
|
\`\`\`
|
|
6195
6195
|
`, Qw = `<div style="width: 300px; height: 50px; background: rgba(120, 120, 0, 0.7); color: white; font-size: 30px; line-height: 50px; border: 1px solid white;">Hello world!</div>
|
|
6196
6196
|
`, Bb = `示例代码:
|
|
@@ -6370,9 +6370,9 @@ class dt extends L {
|
|
|
6370
6370
|
return this._czmViewVisibleDistanceRangeControl.visibleAlphaChanged;
|
|
6371
6371
|
}
|
|
6372
6372
|
}
|
|
6373
|
-
m(dt, "defaulInstanceClassStr",
|
|
6373
|
+
m(dt, "defaulInstanceClassStr", fp), m(dt, "instanceClassStrReadMe", Xg), m(dt, "defaults", {
|
|
6374
6374
|
position: [116.39, 39.9, 0],
|
|
6375
|
-
instanceClassStr:
|
|
6375
|
+
instanceClassStr: fp,
|
|
6376
6376
|
instanceClassStrReadMe: Xg,
|
|
6377
6377
|
innerHTML: Qw,
|
|
6378
6378
|
innerHTMLReadMe: Bb,
|
|
@@ -6685,7 +6685,7 @@ function Ub(t, i, e, o, s, n) {
|
|
|
6685
6685
|
t.fillStyle = n, t.fillText(o, i - a * 0.5, e + d * 0.5 - c);
|
|
6686
6686
|
}
|
|
6687
6687
|
const Yg = 6;
|
|
6688
|
-
class Gb extends
|
|
6688
|
+
class Gb extends df {
|
|
6689
6689
|
constructor(e) {
|
|
6690
6690
|
super(e);
|
|
6691
6691
|
m(this, "_scale", U(1));
|
|
@@ -7893,7 +7893,7 @@ class ks extends L {
|
|
|
7893
7893
|
return this._defaultAnchor.changed;
|
|
7894
7894
|
}
|
|
7895
7895
|
}
|
|
7896
|
-
class
|
|
7896
|
+
class gp extends L {
|
|
7897
7897
|
constructor(e, o, s, n, r = !0) {
|
|
7898
7898
|
super();
|
|
7899
7899
|
// 自定义div内容
|
|
@@ -7986,7 +7986,7 @@ class mp extends L {
|
|
|
7986
7986
|
try {
|
|
7987
7987
|
if (this._drawWidget) {
|
|
7988
7988
|
const p = this.widgetInfo.cloneNode(!0);
|
|
7989
|
-
p.style.position = "fixed", p.style.zIndex = "-1", p.style.top = "0px", document.body.contains(p) || (document.body.appendChild(p), this.domSize = p.getBoundingClientRect()),
|
|
7989
|
+
p.style.position = "fixed", p.style.zIndex = "-1", p.style.top = "0px", document.body.contains(p) || (document.body.appendChild(p), this.domSize = p.getBoundingClientRect()), ff(p, {
|
|
7990
7990
|
backgroundColor: null,
|
|
7991
7991
|
allowTaint: !0,
|
|
7992
7992
|
useCORS: !0,
|
|
@@ -12084,11 +12084,11 @@ function IT(t) {
|
|
|
12084
12084
|
}
|
|
12085
12085
|
return Math.sqrt(i);
|
|
12086
12086
|
}
|
|
12087
|
-
const
|
|
12087
|
+
const mp = [1, 0, 0], vp = [2, 2, 1];
|
|
12088
12088
|
function RT(t) {
|
|
12089
12089
|
let i = 0;
|
|
12090
12090
|
for (let e = 0; e < 3; ++e) {
|
|
12091
|
-
const o = t[X.getElementIndex(
|
|
12091
|
+
const o = t[X.getElementIndex(vp[e], mp[e])];
|
|
12092
12092
|
i += 2 * o * o;
|
|
12093
12093
|
}
|
|
12094
12094
|
return Math.sqrt(i);
|
|
@@ -12098,12 +12098,12 @@ function DT(t, i) {
|
|
|
12098
12098
|
let o = 0, s = 1;
|
|
12099
12099
|
for (let c = 0; c < 3; ++c) {
|
|
12100
12100
|
const d = Math.abs(
|
|
12101
|
-
t[X.getElementIndex(
|
|
12101
|
+
t[X.getElementIndex(vp[c], mp[c])]
|
|
12102
12102
|
);
|
|
12103
12103
|
d > o && (s = c, o = d);
|
|
12104
12104
|
}
|
|
12105
12105
|
let n = 1, r = 0;
|
|
12106
|
-
const a =
|
|
12106
|
+
const a = mp[s], l = vp[s];
|
|
12107
12107
|
if (Math.abs(t[X.getElementIndex(l, a)]) > e) {
|
|
12108
12108
|
const c = t[X.getElementIndex(l, l)], d = t[X.getElementIndex(a, a)], u = t[X.getElementIndex(l, a)], p = (c - d) / 2 / u;
|
|
12109
12109
|
let f;
|
|
@@ -12374,12 +12374,12 @@ se.prototype.equalsEpsilon = function(t, i, e) {
|
|
|
12374
12374
|
se.prototype.toString = function() {
|
|
12375
12375
|
return `(${this.x}, ${this.y}, ${this.z}, ${this.w})`;
|
|
12376
12376
|
};
|
|
12377
|
-
const
|
|
12377
|
+
const Ef = new Float32Array(1), zt = new Uint8Array(Ef.buffer), zT = new Uint32Array([287454020]), LT = new Uint8Array(zT.buffer), lC = LT[0] === 68;
|
|
12378
12378
|
se.packFloat = function(t, i) {
|
|
12379
|
-
return x.typeOf.number("value", t), A(i) || (i = new se()),
|
|
12379
|
+
return x.typeOf.number("value", t), A(i) || (i = new se()), Ef[0] = t, lC ? (i.x = zt[0], i.y = zt[1], i.z = zt[2], i.w = zt[3]) : (i.x = zt[3], i.y = zt[2], i.z = zt[1], i.w = zt[0]), i;
|
|
12380
12380
|
};
|
|
12381
12381
|
se.unpackFloat = function(t) {
|
|
12382
|
-
return x.typeOf.object("packedFloat", t), lC ? (zt[0] = t.x, zt[1] = t.y, zt[2] = t.z, zt[3] = t.w) : (zt[0] = t.w, zt[1] = t.z, zt[2] = t.y, zt[3] = t.x),
|
|
12382
|
+
return x.typeOf.object("packedFloat", t), lC ? (zt[0] = t.x, zt[1] = t.y, zt[2] = t.z, zt[3] = t.w) : (zt[0] = t.w, zt[1] = t.z, zt[2] = t.y, zt[3] = t.x), Ef[0];
|
|
12383
12383
|
};
|
|
12384
12384
|
const Go = {};
|
|
12385
12385
|
Go.EMPTY_OBJECT = Object.freeze({});
|
|
@@ -12923,16 +12923,16 @@ function sc(t, i, e) {
|
|
|
12923
12923
|
}
|
|
12924
12924
|
return ~(s + 1);
|
|
12925
12925
|
}
|
|
12926
|
-
function
|
|
12926
|
+
function Af(t, i, e, o, s) {
|
|
12927
12927
|
this.xPoleWander = t, this.yPoleWander = i, this.xPoleOffset = e, this.yPoleOffset = o, this.ut1MinusUtc = s;
|
|
12928
12928
|
}
|
|
12929
|
-
function
|
|
12929
|
+
function yp(t) {
|
|
12930
12930
|
if (t === null || isNaN(t))
|
|
12931
12931
|
throw new H("year is required and must be a number.");
|
|
12932
12932
|
return t % 4 === 0 && t % 100 !== 0 || t % 400 === 0;
|
|
12933
12933
|
}
|
|
12934
12934
|
const sm = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
12935
|
-
function
|
|
12935
|
+
function Mf(t, i, e, o, s, n, r, a) {
|
|
12936
12936
|
t = t ?? 1, i = i ?? 1, e = e ?? 1, o = o ?? 0, s = s ?? 0, n = n ?? 0, r = r ?? 0, a = a ?? !1, v(), _(), this.year = t, this.month = i, this.day = e, this.hour = o, this.minute = s, this.second = n, this.millisecond = r, this.isLeapSecond = a;
|
|
12937
12937
|
function v() {
|
|
12938
12938
|
x.typeOf.number.greaterThanOrEquals("Year", t, 1), x.typeOf.number.lessThanOrEquals("Year", t, 9999), x.typeOf.number.greaterThanOrEquals("Month", i, 1), x.typeOf.number.lessThanOrEquals("Month", i, 12), x.typeOf.number.greaterThanOrEquals("Day", e, 1), x.typeOf.number.lessThanOrEquals("Day", e, 31), x.typeOf.number.greaterThanOrEquals("Hour", o, 0), x.typeOf.number.lessThanOrEquals("Hour", o, 23), x.typeOf.number.greaterThanOrEquals("Minute", s, 0), x.typeOf.number.lessThanOrEquals("Minute", s, 59), x.typeOf.bool("IsLeapSecond", a), x.typeOf.number.greaterThanOrEquals("Second", n, 0), x.typeOf.number.lessThanOrEquals(
|
|
@@ -12950,7 +12950,7 @@ function If(t, i, e, o, s, n, r, a) {
|
|
|
12950
12950
|
);
|
|
12951
12951
|
}
|
|
12952
12952
|
function _() {
|
|
12953
|
-
const P = i === 2 &&
|
|
12953
|
+
const P = i === 2 && yp(t) ? sm[i - 1] + 1 : sm[i - 1];
|
|
12954
12954
|
if (e > P)
|
|
12955
12955
|
throw new H("Month and Day represents invalid date");
|
|
12956
12956
|
}
|
|
@@ -13041,8 +13041,8 @@ const qT = {
|
|
|
13041
13041
|
* @constant
|
|
13042
13042
|
*/
|
|
13043
13043
|
TAI: 1
|
|
13044
|
-
}, Se = Object.freeze(XT), hC = new
|
|
13045
|
-
function
|
|
13044
|
+
}, Se = Object.freeze(XT), hC = new Mf(), bc = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Tc = 29;
|
|
13045
|
+
function If(t, i) {
|
|
13046
13046
|
return ie.compare(t.julianDate, i.julianDate);
|
|
13047
13047
|
}
|
|
13048
13048
|
const Ar = new ze();
|
|
@@ -13052,7 +13052,7 @@ function Xd(t) {
|
|
|
13052
13052
|
let e = sc(
|
|
13053
13053
|
i,
|
|
13054
13054
|
Ar,
|
|
13055
|
-
|
|
13055
|
+
If
|
|
13056
13056
|
);
|
|
13057
13057
|
e < 0 && (e = ~e), e >= i.length && (e = i.length - 1);
|
|
13058
13058
|
let o = i[e].offset;
|
|
@@ -13067,7 +13067,7 @@ function nm(t, i) {
|
|
|
13067
13067
|
let o = sc(
|
|
13068
13068
|
e,
|
|
13069
13069
|
Ar,
|
|
13070
|
-
|
|
13070
|
+
If
|
|
13071
13071
|
);
|
|
13072
13072
|
if (o < 0 && (o = ~o), o === 0)
|
|
13073
13073
|
return ie.addSeconds(t, -e[0].offset, i);
|
|
@@ -13098,23 +13098,23 @@ function Ps(t, i, e) {
|
|
|
13098
13098
|
const o = i / Je.SECONDS_PER_DAY | 0;
|
|
13099
13099
|
return t += o, i -= Je.SECONDS_PER_DAY * o, i < 0 && (t--, i += Je.SECONDS_PER_DAY), e.dayNumber = t, e.secondsOfDay = i, e;
|
|
13100
13100
|
}
|
|
13101
|
-
function
|
|
13101
|
+
function Rf(t, i, e, o, s, n, r) {
|
|
13102
13102
|
const a = (i - 14) / 12 | 0, l = t + 4800 + a;
|
|
13103
13103
|
let c = (1461 * l / 4 | 0) + (367 * (i - 2 - 12 * a) / 12 | 0) - (3 * ((l + 100) / 100 | 0) / 4 | 0) + e - 32075;
|
|
13104
13104
|
o = o - 12, o < 0 && (o += 24);
|
|
13105
13105
|
const d = n + (o * Je.SECONDS_PER_HOUR + s * Je.SECONDS_PER_MINUTE + r * Je.SECONDS_PER_MILLISECOND);
|
|
13106
13106
|
return d >= 43200 && (c -= 1), [c, d];
|
|
13107
13107
|
}
|
|
13108
|
-
const YT = /^(\d{4})$/, ZT = /^(\d{4})-(\d{2})$/, QT = /^(\d{4})-?(\d{3})$/, KT = /^(\d{4})-?W(\d{2})-?(\d{1})?$/, JT = /^(\d{4})-?(\d{2})-?(\d{2})$/,
|
|
13108
|
+
const YT = /^(\d{4})$/, ZT = /^(\d{4})-(\d{2})$/, QT = /^(\d{4})-?(\d{3})$/, KT = /^(\d{4})-?W(\d{2})-?(\d{1})?$/, JT = /^(\d{4})-?(\d{2})-?(\d{2})$/, Df = /([Z+\-])?(\d{2})?:?(\d{2})?$/, jT = /^(\d{2})(\.\d+)?/.source + Df.source, eE = /^(\d{2}):?(\d{2})(\.\d+)?/.source + Df.source, tE = /^(\d{2}):?(\d{2}):?(\d{2})(\.\d+)?/.source + Df.source, Vi = "Invalid ISO 8601 date.";
|
|
13109
13109
|
function ie(t, i, e) {
|
|
13110
13110
|
this.dayNumber = void 0, this.secondsOfDay = void 0, t = t ?? 0, i = i ?? 0, e = e ?? Se.UTC;
|
|
13111
13111
|
const o = t | 0;
|
|
13112
13112
|
i = i + (t - o) * Je.SECONDS_PER_DAY, Ps(o, i, this), e === Se.UTC && Xd(this);
|
|
13113
13113
|
}
|
|
13114
13114
|
ie.fromGregorianDate = function(t, i) {
|
|
13115
|
-
if (!(t instanceof
|
|
13115
|
+
if (!(t instanceof Mf))
|
|
13116
13116
|
throw new H("date must be a valid GregorianDate.");
|
|
13117
|
-
const e =
|
|
13117
|
+
const e = Rf(
|
|
13118
13118
|
t.year,
|
|
13119
13119
|
t.month,
|
|
13120
13120
|
t.day,
|
|
@@ -13128,7 +13128,7 @@ ie.fromGregorianDate = function(t, i) {
|
|
|
13128
13128
|
ie.fromDate = function(t, i) {
|
|
13129
13129
|
if (!(t instanceof Date) || isNaN(t.getTime()))
|
|
13130
13130
|
throw new H("date must be a valid JavaScript Date.");
|
|
13131
|
-
const e =
|
|
13131
|
+
const e = Rf(
|
|
13132
13132
|
t.getUTCFullYear(),
|
|
13133
13133
|
t.getUTCMonth() + 1,
|
|
13134
13134
|
t.getUTCDate(),
|
|
@@ -13160,7 +13160,7 @@ ie.fromIso8601 = function(t, i) {
|
|
|
13160
13160
|
else {
|
|
13161
13161
|
let w;
|
|
13162
13162
|
if (e = d.match(QT), e !== null) {
|
|
13163
|
-
if (o = +e[1], w = +e[2], f =
|
|
13163
|
+
if (o = +e[1], w = +e[2], f = yp(o), w < 1 || f && w > 366 || !f && w > 365)
|
|
13164
13164
|
throw new H(Vi);
|
|
13165
13165
|
} else if (e = d.match(KT), e !== null) {
|
|
13166
13166
|
o = +e[1];
|
|
@@ -13173,7 +13173,7 @@ ie.fromIso8601 = function(t, i) {
|
|
|
13173
13173
|
throw new H(Vi);
|
|
13174
13174
|
p = new Date(Date.UTC(o, 0, 1)), p.setUTCDate(w), s = p.getUTCMonth() + 1, n = p.getUTCDate();
|
|
13175
13175
|
}
|
|
13176
|
-
if (f =
|
|
13176
|
+
if (f = yp(o), s < 1 || s > 12 || n < 1 || (s !== 2 || !f) && n > bc[s - 1] || f && s === 2 && n > Tc)
|
|
13177
13177
|
throw new H(Vi);
|
|
13178
13178
|
let v;
|
|
13179
13179
|
if (A(u)) {
|
|
@@ -13221,7 +13221,7 @@ ie.fromIso8601 = function(t, i) {
|
|
|
13221
13221
|
r += 24, n--;
|
|
13222
13222
|
for (; n < 1; )
|
|
13223
13223
|
s--, s < 1 && (s += 12, o--), p = f && s === 2 ? Tc : bc[s - 1], n += p;
|
|
13224
|
-
const P =
|
|
13224
|
+
const P = Rf(
|
|
13225
13225
|
o,
|
|
13226
13226
|
s,
|
|
13227
13227
|
n,
|
|
@@ -13257,7 +13257,7 @@ ie.toGregorianDate = function(t, i) {
|
|
|
13257
13257
|
g = g - v * Je.SECONDS_PER_MINUTE;
|
|
13258
13258
|
let _ = g | 0;
|
|
13259
13259
|
const P = (g - _) / Je.SECONDS_PER_MILLISECOND;
|
|
13260
|
-
return f += 12, f > 23 && (f -= 24), e && (_ += 1), A(i) ? (i.year = p, i.month = u, i.day = d, i.hour = f, i.minute = v, i.second = _, i.millisecond = P, i.isLeapSecond = e, i) : new
|
|
13260
|
+
return f += 12, f > 23 && (f -= 24), e && (_ += 1), A(i) ? (i.year = p, i.month = u, i.day = d, i.hour = f, i.minute = v, i.second = _, i.millisecond = P, i.isLeapSecond = e, i) : new Mf(
|
|
13261
13261
|
p,
|
|
13262
13262
|
u,
|
|
13263
13263
|
d,
|
|
@@ -13347,7 +13347,7 @@ ie.computeTaiMinusUtc = function(t) {
|
|
|
13347
13347
|
let e = sc(
|
|
13348
13348
|
i,
|
|
13349
13349
|
Ar,
|
|
13350
|
-
|
|
13350
|
+
If
|
|
13351
13351
|
);
|
|
13352
13352
|
return e < 0 && (e = ~e, --e, e < 0 && (e = 0)), i[e].offset;
|
|
13353
13353
|
};
|
|
@@ -14867,7 +14867,7 @@ function dC(t) {
|
|
|
14867
14867
|
return x.typeOf.string("uri", t), hE.test(t);
|
|
14868
14868
|
}
|
|
14869
14869
|
let Ki;
|
|
14870
|
-
function
|
|
14870
|
+
function wp(t) {
|
|
14871
14871
|
A(Ki) || (Ki = document.createElement("a")), Ki.href = globalThis.location.href;
|
|
14872
14872
|
const i = Ki.host, e = Ki.protocol;
|
|
14873
14873
|
return Ki.href = t, Ki.href = Ki.href, e !== Ki.protocol || i !== Ki.host;
|
|
@@ -15044,23 +15044,23 @@ Object.defineProperties(Zr.prototype, {
|
|
|
15044
15044
|
Zr.prototype.addEventListener = function(t, i) {
|
|
15045
15045
|
x.typeOf.func("listener", t);
|
|
15046
15046
|
const e = this, o = e._invokingListeners ? e._toAdd : e._listeners;
|
|
15047
|
-
return
|
|
15047
|
+
return kf(this, o, t, i) && e._listenerCount++, function() {
|
|
15048
15048
|
e.removeEventListener(t, i);
|
|
15049
15049
|
};
|
|
15050
15050
|
};
|
|
15051
|
-
function
|
|
15051
|
+
function kf(t, i, e, o) {
|
|
15052
15052
|
i.has(e) || i.set(e, /* @__PURE__ */ new Set());
|
|
15053
15053
|
const s = i.get(e);
|
|
15054
15054
|
return s.has(o) ? !1 : (s.add(o), !0);
|
|
15055
15055
|
}
|
|
15056
15056
|
Zr.prototype.removeEventListener = function(t, i) {
|
|
15057
15057
|
x.typeOf.func("listener", t);
|
|
15058
|
-
const e =
|
|
15058
|
+
const e = Cp(
|
|
15059
15059
|
this,
|
|
15060
15060
|
this._listeners,
|
|
15061
15061
|
t,
|
|
15062
15062
|
i
|
|
15063
|
-
), o =
|
|
15063
|
+
), o = Cp(
|
|
15064
15064
|
this,
|
|
15065
15065
|
this._toAdd,
|
|
15066
15066
|
t,
|
|
@@ -15068,12 +15068,12 @@ Zr.prototype.removeEventListener = function(t, i) {
|
|
|
15068
15068
|
), s = e || o;
|
|
15069
15069
|
return s && this._listenerCount--, s;
|
|
15070
15070
|
};
|
|
15071
|
-
function
|
|
15071
|
+
function Cp(t, i, e, o) {
|
|
15072
15072
|
const s = i.get(e);
|
|
15073
15073
|
if (!s || !s.has(o))
|
|
15074
15074
|
return !1;
|
|
15075
15075
|
if (t._invokingListeners) {
|
|
15076
|
-
if (!
|
|
15076
|
+
if (!kf(t, t._toRemove, e, o))
|
|
15077
15077
|
return !1;
|
|
15078
15078
|
} else
|
|
15079
15079
|
s.delete(o), s.size === 0 && i.delete(e);
|
|
@@ -15088,11 +15088,11 @@ Zr.prototype.raiseEvent = function() {
|
|
|
15088
15088
|
this._invokingListeners = !1;
|
|
15089
15089
|
for (const [t, i] of this._toAdd.entries())
|
|
15090
15090
|
for (const e of i)
|
|
15091
|
-
|
|
15091
|
+
kf(this, this._listeners, t, e);
|
|
15092
15092
|
this._toAdd.clear();
|
|
15093
15093
|
for (const [t, i] of this._toRemove.entries())
|
|
15094
15094
|
for (const e of i)
|
|
15095
|
-
|
|
15095
|
+
Cp(this, this._listeners, t, e);
|
|
15096
15096
|
this._toRemove.clear();
|
|
15097
15097
|
};
|
|
15098
15098
|
function bn(t) {
|
|
@@ -15161,7 +15161,7 @@ Object.defineProperties(bn.prototype, {
|
|
|
15161
15161
|
}
|
|
15162
15162
|
}
|
|
15163
15163
|
});
|
|
15164
|
-
function
|
|
15164
|
+
function Ff(t, i, e) {
|
|
15165
15165
|
const o = t[i];
|
|
15166
15166
|
t[i] = t[e], t[e] = o;
|
|
15167
15167
|
}
|
|
@@ -15174,7 +15174,7 @@ bn.prototype.heapify = function(t) {
|
|
|
15174
15174
|
let s = -1, n = !0;
|
|
15175
15175
|
for (; n; ) {
|
|
15176
15176
|
const r = 2 * (t + 1), a = r - 1;
|
|
15177
|
-
a < i && e(o[a], o[t]) < 0 ? s = a : s = t, r < i && e(o[r], o[s]) < 0 && (s = r), s !== t ? (
|
|
15177
|
+
a < i && e(o[a], o[t]) < 0 ? s = a : s = t, r < i && e(o[r], o[s]) < 0 && (s = r), s !== t ? (Ff(o, s, t), t = s) : n = !1;
|
|
15178
15178
|
}
|
|
15179
15179
|
};
|
|
15180
15180
|
bn.prototype.resort = function() {
|
|
@@ -15189,7 +15189,7 @@ bn.prototype.insert = function(t) {
|
|
|
15189
15189
|
for (s < i.length ? i[s] = t : i.push(t); s !== 0; ) {
|
|
15190
15190
|
const r = Math.floor((s - 1) / 2);
|
|
15191
15191
|
if (e(i[s], i[r]) < 0)
|
|
15192
|
-
|
|
15192
|
+
Ff(i, s, r), s = r;
|
|
15193
15193
|
else
|
|
15194
15194
|
break;
|
|
15195
15195
|
}
|
|
@@ -15201,7 +15201,7 @@ bn.prototype.pop = function(t) {
|
|
|
15201
15201
|
return;
|
|
15202
15202
|
x.typeOf.number.lessThan("index", t, this._length);
|
|
15203
15203
|
const i = this._array, e = i[t];
|
|
15204
|
-
return
|
|
15204
|
+
return Ff(i, t, --this._length), this.heapify(t), i[this._length] = void 0, e;
|
|
15205
15205
|
};
|
|
15206
15206
|
function yE(t, i) {
|
|
15207
15207
|
return t.priority - i.priority;
|
|
@@ -15586,7 +15586,7 @@ Object.defineProperties(ne.prototype, {
|
|
|
15586
15586
|
*/
|
|
15587
15587
|
isCrossOriginUrl: {
|
|
15588
15588
|
get: function() {
|
|
15589
|
-
return
|
|
15589
|
+
return wp(this._url);
|
|
15590
15590
|
}
|
|
15591
15591
|
},
|
|
15592
15592
|
/**
|
|
@@ -15731,8 +15731,8 @@ ne.fetchBlob = function(t) {
|
|
|
15731
15731
|
ne.prototype.fetchImage = function(t) {
|
|
15732
15732
|
t = t ?? Go.EMPTY_OBJECT;
|
|
15733
15733
|
const i = t.preferImageBitmap ?? !1, e = t.preferBlob ?? !1, o = t.flipY ?? !1, s = t.skipColorSpaceConversion ?? !1;
|
|
15734
|
-
if (
|
|
15735
|
-
return
|
|
15734
|
+
if (zf(this.request), !mC || this.isDataUri || this.isBlobUri || !this.hasHeaders && !e)
|
|
15735
|
+
return _p({
|
|
15736
15736
|
resource: this,
|
|
15737
15737
|
flipY: o,
|
|
15738
15738
|
skipColorSpaceConversion: s,
|
|
@@ -15756,7 +15756,7 @@ ne.prototype.fetchImage = function(t) {
|
|
|
15756
15756
|
const u = globalThis.URL.createObjectURL(d);
|
|
15757
15757
|
return l = new ne({
|
|
15758
15758
|
url: u
|
|
15759
|
-
}),
|
|
15759
|
+
}), _p({
|
|
15760
15760
|
resource: l,
|
|
15761
15761
|
flipY: o,
|
|
15762
15762
|
skipColorSpaceConversion: s,
|
|
@@ -15769,7 +15769,7 @@ ne.prototype.fetchImage = function(t) {
|
|
|
15769
15769
|
return A(l) && globalThis.URL.revokeObjectURL(l.url), d.blob = c, Promise.reject(d);
|
|
15770
15770
|
});
|
|
15771
15771
|
};
|
|
15772
|
-
function
|
|
15772
|
+
function _p(t) {
|
|
15773
15773
|
const i = t.resource, e = t.flipY, o = t.skipColorSpaceConversion, s = t.preferImageBitmap, n = i.request;
|
|
15774
15774
|
n.url = i.url, n.requestFunction = function() {
|
|
15775
15775
|
let a = !1;
|
|
@@ -15788,7 +15788,7 @@ function Pp(t) {
|
|
|
15788
15788
|
if (A(r))
|
|
15789
15789
|
return r.catch(function(a) {
|
|
15790
15790
|
return n.state !== lt.FAILED ? Promise.reject(a) : i.retryOnError(a).then(function(l) {
|
|
15791
|
-
return l ? (n.state = lt.UNISSUED, n.deferred = void 0,
|
|
15791
|
+
return l ? (n.state = lt.UNISSUED, n.deferred = void 0, _p({
|
|
15792
15792
|
resource: i,
|
|
15793
15793
|
flipY: e,
|
|
15794
15794
|
skipColorSpaceConversion: o,
|
|
@@ -15839,7 +15839,7 @@ ne.fetchXML = function(t) {
|
|
|
15839
15839
|
return new ne(t).fetchXML();
|
|
15840
15840
|
};
|
|
15841
15841
|
ne.prototype.fetchJsonp = function(t) {
|
|
15842
|
-
t = t ?? "callback",
|
|
15842
|
+
t = t ?? "callback", zf(this.request);
|
|
15843
15843
|
let i;
|
|
15844
15844
|
do
|
|
15845
15845
|
i = `loadJsonp${k.nextRandomNumber().toString().substring(2, 8)}`;
|
|
@@ -15874,7 +15874,7 @@ ne.fetchJsonp = function(t) {
|
|
|
15874
15874
|
};
|
|
15875
15875
|
ne.prototype._makeRequest = function(t) {
|
|
15876
15876
|
const i = this;
|
|
15877
|
-
|
|
15877
|
+
zf(i.request);
|
|
15878
15878
|
const e = i.request, o = i.url;
|
|
15879
15879
|
e.url = o, e.requestFunction = function() {
|
|
15880
15880
|
const n = t.responseType, r = cs(t.headers, i.headers), a = t.overrideMimeType, l = t.method, c = t.data, d = nc(), u = ne._Implementations.loadWithXhr(
|
|
@@ -15900,7 +15900,7 @@ ne.prototype._makeRequest = function(t) {
|
|
|
15900
15900
|
});
|
|
15901
15901
|
});
|
|
15902
15902
|
};
|
|
15903
|
-
function
|
|
15903
|
+
function zf(t) {
|
|
15904
15904
|
if (t.state === lt.ISSUED || t.state === lt.ACTIVE)
|
|
15905
15905
|
throw new At("The Resource is already being fetched.");
|
|
15906
15906
|
t.state = lt.UNISSUED, t.deferred = void 0;
|
|
@@ -16212,13 +16212,13 @@ zh.fromUrl = async function(t, i) {
|
|
|
16212
16212
|
};
|
|
16213
16213
|
zh.NONE = Object.freeze({
|
|
16214
16214
|
compute: function(t, i) {
|
|
16215
|
-
return A(i) ? (i.xPoleWander = 0, i.yPoleWander = 0, i.xPoleOffset = 0, i.yPoleOffset = 0, i.ut1MinusUtc = 0) : i = new
|
|
16215
|
+
return A(i) ? (i.xPoleWander = 0, i.yPoleWander = 0, i.xPoleOffset = 0, i.yPoleOffset = 0, i.ut1MinusUtc = 0) : i = new Af(0, 0, 0, 0, 0), i;
|
|
16216
16216
|
}
|
|
16217
16217
|
});
|
|
16218
16218
|
zh.prototype.compute = function(t, i) {
|
|
16219
16219
|
if (!A(this._samples))
|
|
16220
16220
|
return;
|
|
16221
|
-
if (A(i) || (i = new
|
|
16221
|
+
if (A(i) || (i = new Af(0, 0, 0, 0, 0)), this._samples.length === 0)
|
|
16222
16222
|
return i.xPoleWander = 0, i.yPoleWander = 0, i.xPoleOffset = 0, i.yPoleOffset = 0, i.ut1MinusUtc = 0, i;
|
|
16223
16223
|
const e = this._dates, o = this._lastIndex;
|
|
16224
16224
|
let s = 0, n = 0;
|
|
@@ -16442,7 +16442,7 @@ zi.getCesiumBaseUrl = CC;
|
|
|
16442
16442
|
function PC(t, i, e) {
|
|
16443
16443
|
this.x = t, this.y = i, this.s = e;
|
|
16444
16444
|
}
|
|
16445
|
-
function
|
|
16445
|
+
function Lf(t) {
|
|
16446
16446
|
t = t ?? Go.EMPTY_OBJECT, this._xysFileUrlTemplate = ne.createIfNeeded(
|
|
16447
16447
|
t.xysFileUrlTemplate
|
|
16448
16448
|
), this._interpolationOrder = t.interpolationOrder ?? 9, this._sampleZeroJulianEphemerisDate = t.sampleZeroJulianEphemerisDate ?? 24423965e-1, this._sampleZeroDateTT = new ie(
|
|
@@ -16460,27 +16460,27 @@ function Of(t) {
|
|
|
16460
16460
|
this._work = new Array(i + 1), this._coef = new Array(i + 1);
|
|
16461
16461
|
}
|
|
16462
16462
|
const kE = new ie(0, 0, Se.TAI);
|
|
16463
|
-
function
|
|
16463
|
+
function Pp(t, i, e) {
|
|
16464
16464
|
const o = kE;
|
|
16465
16465
|
return o.dayNumber = i, o.secondsOfDay = e, ie.daysDifference(o, t._sampleZeroDateTT);
|
|
16466
16466
|
}
|
|
16467
|
-
|
|
16468
|
-
const s =
|
|
16467
|
+
Lf.prototype.preload = function(t, i, e, o) {
|
|
16468
|
+
const s = Pp(
|
|
16469
16469
|
this,
|
|
16470
16470
|
t,
|
|
16471
16471
|
i
|
|
16472
|
-
), n =
|
|
16472
|
+
), n = Pp(this, e, o);
|
|
16473
16473
|
let r = s / this._stepSizeDays - this._interpolationOrder / 2 | 0;
|
|
16474
16474
|
r < 0 && (r = 0);
|
|
16475
16475
|
let a = n / this._stepSizeDays - this._interpolationOrder / 2 | 0 + this._interpolationOrder;
|
|
16476
16476
|
a >= this._totalSamples && (a = this._totalSamples - 1);
|
|
16477
16477
|
const l = r / this._samplesPerXysFile | 0, c = a / this._samplesPerXysFile | 0, d = [];
|
|
16478
16478
|
for (let u = l; u <= c; ++u)
|
|
16479
|
-
d.push(
|
|
16479
|
+
d.push(xp(this, u));
|
|
16480
16480
|
return Promise.all(d);
|
|
16481
16481
|
};
|
|
16482
|
-
|
|
16483
|
-
const o =
|
|
16482
|
+
Lf.prototype.computeXysRadians = function(t, i, e) {
|
|
16483
|
+
const o = Pp(this, t, i);
|
|
16484
16484
|
if (o < 0)
|
|
16485
16485
|
return;
|
|
16486
16486
|
const s = o / this._stepSizeDays | 0;
|
|
@@ -16493,7 +16493,7 @@ Of.prototype.computeXysRadians = function(t, i, e) {
|
|
|
16493
16493
|
a >= this._totalSamples && (a = this._totalSamples - 1, r = a - n, r < 0 && (r = 0));
|
|
16494
16494
|
let l = !1;
|
|
16495
16495
|
const c = this._samples;
|
|
16496
|
-
if (A(c[r * 3]) || (
|
|
16496
|
+
if (A(c[r * 3]) || (xp(this, r / this._samplesPerXysFile | 0), l = !0), A(c[a * 3]) || (xp(this, a / this._samplesPerXysFile | 0), l = !0), l)
|
|
16497
16497
|
return;
|
|
16498
16498
|
A(e) ? (e.x = 0, e.y = 0, e.s = 0) : e = new PC(0, 0, 0);
|
|
16499
16499
|
const d = o - r * this._stepSizeDays, u = this._work, p = this._denominators, f = this._coef, g = this._xTable;
|
|
@@ -16509,7 +16509,7 @@ Of.prototype.computeXysRadians = function(t, i, e) {
|
|
|
16509
16509
|
}
|
|
16510
16510
|
return e;
|
|
16511
16511
|
};
|
|
16512
|
-
function
|
|
16512
|
+
function xp(t, i) {
|
|
16513
16513
|
if (t._chunkDownloadsInProgress[i])
|
|
16514
16514
|
return t._chunkDownloadsInProgress[i];
|
|
16515
16515
|
let e;
|
|
@@ -16638,7 +16638,7 @@ function ln(t) {
|
|
|
16638
16638
|
return i;
|
|
16639
16639
|
}
|
|
16640
16640
|
let Ic, xC;
|
|
16641
|
-
function
|
|
16641
|
+
function Of() {
|
|
16642
16642
|
if (!A(Ic) && (Ic = !1, !Zd())) {
|
|
16643
16643
|
const t = / Chrome\/([\.0-9]+)/.exec(Vt.userAgent);
|
|
16644
16644
|
t !== null && (Ic = !0, xC = ln(t[1]));
|
|
@@ -16646,11 +16646,11 @@ function Bf() {
|
|
|
16646
16646
|
return Ic;
|
|
16647
16647
|
}
|
|
16648
16648
|
function FE() {
|
|
16649
|
-
return
|
|
16649
|
+
return Of() && xC;
|
|
16650
16650
|
}
|
|
16651
16651
|
let Rc, SC;
|
|
16652
16652
|
function bC() {
|
|
16653
|
-
if (!A(Rc) && (Rc = !1, !
|
|
16653
|
+
if (!A(Rc) && (Rc = !1, !Of() && !Zd() && / Safari\/[\.0-9]+/.test(Vt.userAgent))) {
|
|
16654
16654
|
const t = / Version\/([\.0-9]+)/.exec(Vt.userAgent);
|
|
16655
16655
|
t !== null && (Rc = !0, SC = ln(t[1]));
|
|
16656
16656
|
}
|
|
@@ -16659,31 +16659,31 @@ function bC() {
|
|
|
16659
16659
|
function zE() {
|
|
16660
16660
|
return bC() && SC;
|
|
16661
16661
|
}
|
|
16662
|
-
let Dc,
|
|
16662
|
+
let Dc, Sp;
|
|
16663
16663
|
function TC() {
|
|
16664
16664
|
if (!A(Dc)) {
|
|
16665
16665
|
Dc = !1;
|
|
16666
16666
|
const t = / AppleWebKit\/([\.0-9]+)(\+?)/.exec(Vt.userAgent);
|
|
16667
|
-
t !== null && (Dc = !0,
|
|
16667
|
+
t !== null && (Dc = !0, Sp = ln(t[1]), Sp.isNightly = !!t[2]);
|
|
16668
16668
|
}
|
|
16669
16669
|
return Dc;
|
|
16670
16670
|
}
|
|
16671
16671
|
function LE() {
|
|
16672
|
-
return TC() &&
|
|
16672
|
+
return TC() && Sp;
|
|
16673
16673
|
}
|
|
16674
|
-
let la,
|
|
16674
|
+
let la, bp;
|
|
16675
16675
|
function EC() {
|
|
16676
16676
|
if (!A(la)) {
|
|
16677
16677
|
la = !1;
|
|
16678
16678
|
let t;
|
|
16679
|
-
Vt.appName === "Microsoft Internet Explorer" ? (t = /MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(Vt.userAgent), t !== null && (la = !0,
|
|
16679
|
+
Vt.appName === "Microsoft Internet Explorer" ? (t = /MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(Vt.userAgent), t !== null && (la = !0, bp = ln(t[1]))) : Vt.appName === "Netscape" && (t = /Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(
|
|
16680
16680
|
Vt.userAgent
|
|
16681
|
-
), t !== null && (la = !0,
|
|
16681
|
+
), t !== null && (la = !0, bp = ln(t[1])));
|
|
16682
16682
|
}
|
|
16683
16683
|
return la;
|
|
16684
16684
|
}
|
|
16685
16685
|
function OE() {
|
|
16686
|
-
return EC() &&
|
|
16686
|
+
return EC() && bp;
|
|
16687
16687
|
}
|
|
16688
16688
|
let kc, AC;
|
|
16689
16689
|
function Zd() {
|
|
@@ -16697,12 +16697,12 @@ function Zd() {
|
|
|
16697
16697
|
function BE() {
|
|
16698
16698
|
return Zd() && AC;
|
|
16699
16699
|
}
|
|
16700
|
-
let Fc,
|
|
16700
|
+
let Fc, Bf;
|
|
16701
16701
|
function Qd() {
|
|
16702
16702
|
if (!A(Fc)) {
|
|
16703
16703
|
Fc = !1;
|
|
16704
16704
|
const t = /Firefox\/([\.0-9]+)/.exec(Vt.userAgent);
|
|
16705
|
-
t !== null && (Fc = !0,
|
|
16705
|
+
t !== null && (Fc = !0, Bf = ln(t[1]));
|
|
16706
16706
|
}
|
|
16707
16707
|
return Fc;
|
|
16708
16708
|
}
|
|
@@ -16715,7 +16715,7 @@ function NE() {
|
|
|
16715
16715
|
return A(bu) || (bu = navigator.platform === "iPhone" || navigator.platform === "iPod" || navigator.platform === "iPad"), bu;
|
|
16716
16716
|
}
|
|
16717
16717
|
function UE() {
|
|
16718
|
-
return Qd() &&
|
|
16718
|
+
return Qd() && Bf;
|
|
16719
16719
|
}
|
|
16720
16720
|
let Tu;
|
|
16721
16721
|
function GE() {
|
|
@@ -16775,7 +16775,7 @@ typeof ArrayBuffer < "u" && (Xn.push(
|
|
|
16775
16775
|
Float64Array
|
|
16776
16776
|
), typeof Uint8ClampedArray < "u" && Xn.push(Uint8ClampedArray), typeof Uint8ClampedArray < "u" && Xn.push(Uint8ClampedArray), typeof BigInt64Array < "u" && Xn.push(BigInt64Array), typeof BigUint64Array < "u" && Xn.push(BigUint64Array));
|
|
16777
16777
|
const It = {
|
|
16778
|
-
isChrome:
|
|
16778
|
+
isChrome: Of,
|
|
16779
16779
|
chromeVersion: FE,
|
|
16780
16780
|
isSafari: bC,
|
|
16781
16781
|
safariVersion: zE,
|
|
@@ -16824,7 +16824,7 @@ It.supportsWebgl2 = function(t) {
|
|
|
16824
16824
|
return x.defined("scene", t), t.context.webgl2;
|
|
16825
16825
|
};
|
|
16826
16826
|
It.supportsEsmWebWorkers = function() {
|
|
16827
|
-
return !Qd() || parseInt(
|
|
16827
|
+
return !Qd() || parseInt(Bf) >= 114;
|
|
16828
16828
|
};
|
|
16829
16829
|
function ee(t, i, e, o) {
|
|
16830
16830
|
this.x = t ?? 0, this.y = i ?? 0, this.z = e ?? 0, this.w = o ?? 0;
|
|
@@ -17307,11 +17307,11 @@ Ce.computeTemeToPseudoFixedMatrix = function(t, i) {
|
|
|
17307
17307
|
1
|
|
17308
17308
|
);
|
|
17309
17309
|
};
|
|
17310
|
-
Ce.iau2006XysData = new
|
|
17310
|
+
Ce.iau2006XysData = new Lf();
|
|
17311
17311
|
Ce.earthOrientationParameters = zh.NONE;
|
|
17312
|
-
const
|
|
17312
|
+
const Tp = 32.184, uA = 2451545;
|
|
17313
17313
|
Ce.preloadIcrfFixed = function(t) {
|
|
17314
|
-
const i = t.start.dayNumber, e = t.start.secondsOfDay +
|
|
17314
|
+
const i = t.start.dayNumber, e = t.start.secondsOfDay + Tp, o = t.stop.dayNumber, s = t.stop.secondsOfDay + Tp;
|
|
17315
17315
|
return Ce.iau2006XysData.preload(
|
|
17316
17316
|
i,
|
|
17317
17317
|
e,
|
|
@@ -17342,7 +17342,7 @@ Ce.computeIcrfToMoonFixedMatrix = function(t, i) {
|
|
|
17342
17342
|
if (A(e))
|
|
17343
17343
|
return X.transpose(e, i);
|
|
17344
17344
|
};
|
|
17345
|
-
const vA = new PC(0, 0, 0), yA = new
|
|
17345
|
+
const vA = new PC(0, 0, 0), yA = new Af(
|
|
17346
17346
|
0,
|
|
17347
17347
|
0,
|
|
17348
17348
|
0,
|
|
@@ -17356,7 +17356,7 @@ Ce.computeFixedToIcrfMatrix = function(t, i) {
|
|
|
17356
17356
|
const e = Ce.earthOrientationParameters.compute(t, yA);
|
|
17357
17357
|
if (!A(e))
|
|
17358
17358
|
return;
|
|
17359
|
-
const o = t.dayNumber, s = t.secondsOfDay +
|
|
17359
|
+
const o = t.dayNumber, s = t.secondsOfDay + Tp, n = Ce.iau2006XysData.computeXysRadians(
|
|
17360
17360
|
o,
|
|
17361
17361
|
s,
|
|
17362
17362
|
vA
|
|
@@ -17430,7 +17430,7 @@ const DC = new Y(
|
|
|
17430
17430
|
0,
|
|
17431
17431
|
0,
|
|
17432
17432
|
1
|
|
17433
|
-
), kC = new xe(),
|
|
17433
|
+
), kC = new xe(), Ep = new I(), xA = new I(), SA = new X(), Ap = new Y(), FC = new Y();
|
|
17434
17434
|
Ce.basisTo2D = function(t, i, e) {
|
|
17435
17435
|
if (!A(t))
|
|
17436
17436
|
throw new H("projection is required.");
|
|
@@ -17443,7 +17443,7 @@ Ce.basisTo2D = function(t, i, e) {
|
|
|
17443
17443
|
if (I.equals(o, I.ZERO))
|
|
17444
17444
|
n = I.clone(
|
|
17445
17445
|
I.ZERO,
|
|
17446
|
-
|
|
17446
|
+
Ep
|
|
17447
17447
|
);
|
|
17448
17448
|
else {
|
|
17449
17449
|
const d = s.cartesianToCartographic(
|
|
@@ -17452,7 +17452,7 @@ Ce.basisTo2D = function(t, i, e) {
|
|
|
17452
17452
|
);
|
|
17453
17453
|
n = t.project(
|
|
17454
17454
|
d,
|
|
17455
|
-
|
|
17455
|
+
Ep
|
|
17456
17456
|
), I.fromElements(
|
|
17457
17457
|
n.z,
|
|
17458
17458
|
n.x,
|
|
@@ -17463,7 +17463,7 @@ Ce.basisTo2D = function(t, i, e) {
|
|
|
17463
17463
|
const r = Ce.eastNorthUpToFixedFrame(
|
|
17464
17464
|
o,
|
|
17465
17465
|
s,
|
|
17466
|
-
|
|
17466
|
+
Ap
|
|
17467
17467
|
), a = Y.inverseTransformation(r, FC), l = Y.getMatrix3(i, SA), c = Y.multiplyByMatrix3(a, l, e);
|
|
17468
17468
|
return Y.multiply(DC, c, e), Y.setTranslation(e, n, e), e;
|
|
17469
17469
|
};
|
|
@@ -17477,13 +17477,13 @@ Ce.ellipsoidTo2DModelMatrix = function(t, i, e) {
|
|
|
17477
17477
|
const o = t.ellipsoid, s = Ce.eastNorthUpToFixedFrame(
|
|
17478
17478
|
i,
|
|
17479
17479
|
o,
|
|
17480
|
-
|
|
17480
|
+
Ap
|
|
17481
17481
|
), n = Y.inverseTransformation(s, FC), r = o.cartesianToCartographic(
|
|
17482
17482
|
i,
|
|
17483
17483
|
kC
|
|
17484
17484
|
), a = t.project(
|
|
17485
17485
|
r,
|
|
17486
|
-
|
|
17486
|
+
Ep
|
|
17487
17487
|
);
|
|
17488
17488
|
I.fromElements(
|
|
17489
17489
|
a.z,
|
|
@@ -17493,7 +17493,7 @@ Ce.ellipsoidTo2DModelMatrix = function(t, i, e) {
|
|
|
17493
17493
|
);
|
|
17494
17494
|
const l = Y.fromTranslation(
|
|
17495
17495
|
a,
|
|
17496
|
-
|
|
17496
|
+
Ap
|
|
17497
17497
|
);
|
|
17498
17498
|
return Y.multiply(DC, n, e), Y.multiply(l, e, e), e;
|
|
17499
17499
|
};
|
|
@@ -17568,9 +17568,9 @@ pe.fromCartesianArray = function(t, i, e) {
|
|
|
17568
17568
|
}
|
|
17569
17569
|
return s - o > r - n && (o = n, s = r, s > k.PI && (s = s - k.TWO_PI), o > k.PI && (o = o - k.TWO_PI)), A(e) ? (e.west = o, e.south = a, e.east = s, e.north = l, e) : new pe(o, a, s, l);
|
|
17570
17570
|
};
|
|
17571
|
-
const bA = new I(), TA = new I(), EA = new I(), AA = new I(), MA = new I(),
|
|
17572
|
-
for (let t = 0; t <
|
|
17573
|
-
|
|
17571
|
+
const bA = new I(), TA = new I(), EA = new I(), AA = new I(), MA = new I(), Mp = new Array(5);
|
|
17572
|
+
for (let t = 0; t < Mp.length; ++t)
|
|
17573
|
+
Mp[t] = new I();
|
|
17574
17574
|
pe.fromBoundingSphere = function(t, i, e) {
|
|
17575
17575
|
x.typeOf.object("boundingSphere", t);
|
|
17576
17576
|
const o = t.center, s = t.radius;
|
|
@@ -17592,7 +17592,7 @@ pe.fromBoundingSphere = function(t, i, e) {
|
|
|
17592
17592
|
EA
|
|
17593
17593
|
);
|
|
17594
17594
|
I.normalize(a, a), I.multiplyByScalar(a, s, a), I.multiplyByScalar(r, s, r);
|
|
17595
|
-
const l = I.negate(a, MA), c = I.negate(r, AA), d =
|
|
17595
|
+
const l = I.negate(a, MA), c = I.negate(r, AA), d = Mp;
|
|
17596
17596
|
let u = d[0];
|
|
17597
17597
|
return I.add(o, a, u), u = d[1], I.add(o, c, u), u = d[2], I.add(o, l, u), u = d[3], I.add(o, r, u), d[4] = o, pe.fromCartesianArray(d, i, e);
|
|
17598
17598
|
};
|
|
@@ -17785,7 +17785,7 @@ function DA(t, i) {
|
|
|
17785
17785
|
}
|
|
17786
17786
|
function zC() {
|
|
17787
17787
|
if (!A(Pt._canTransferArrayBuffer)) {
|
|
17788
|
-
const t =
|
|
17788
|
+
const t = Vf("transferTypedArrayTest");
|
|
17789
17789
|
t.postMessage = t.webkitPostMessage ?? t.postMessage;
|
|
17790
17790
|
const i = 99, e = new Int8Array([i]);
|
|
17791
17791
|
try {
|
|
@@ -17807,7 +17807,7 @@ function zC() {
|
|
|
17807
17807
|
}
|
|
17808
17808
|
return Pt._canTransferArrayBuffer;
|
|
17809
17809
|
}
|
|
17810
|
-
const
|
|
17810
|
+
const Ip = new Zr();
|
|
17811
17811
|
function Lu(t) {
|
|
17812
17812
|
let i;
|
|
17813
17813
|
try {
|
|
@@ -17820,16 +17820,16 @@ function Lu(t) {
|
|
|
17820
17820
|
}
|
|
17821
17821
|
return (globalThis.URL || globalThis.webkitURL).createObjectURL(i);
|
|
17822
17822
|
}
|
|
17823
|
-
function
|
|
17823
|
+
function Vf(t) {
|
|
17824
17824
|
const i = new Fo(t), e = i.scheme().length !== 0 && i.fragment().length === 0, o = t.replace(/\.js$/, ""), s = {};
|
|
17825
17825
|
let n, r;
|
|
17826
|
-
if (
|
|
17826
|
+
if (wp(t))
|
|
17827
17827
|
r = t;
|
|
17828
17828
|
else if (!e) {
|
|
17829
17829
|
const a = zi(
|
|
17830
17830
|
`${Pt._workerModulePrefix}/${o}.js`
|
|
17831
17831
|
);
|
|
17832
|
-
|
|
17832
|
+
wp(a) && (r = a);
|
|
17833
17833
|
}
|
|
17834
17834
|
if (r) {
|
|
17835
17835
|
const a = `import "${r}";`;
|
|
@@ -17877,9 +17877,9 @@ const FA = (t, i, e, o) => {
|
|
|
17877
17877
|
if (n.id === i) {
|
|
17878
17878
|
if (A(n.error)) {
|
|
17879
17879
|
let r = n.error;
|
|
17880
|
-
r.name === "RuntimeError" ? (r = new At(n.error.message), r.stack = n.error.stack) : r.name === "DeveloperError" ? (r = new H(n.error.message), r.stack = n.error.stack) : r.name === "Error" && (r = new Error(n.error.message), r.stack = n.error.stack),
|
|
17880
|
+
r.name === "RuntimeError" ? (r = new At(n.error.message), r.stack = n.error.stack) : r.name === "DeveloperError" ? (r = new H(n.error.message), r.stack = n.error.stack) : r.name === "Error" && (r = new Error(n.error.message), r.stack = n.error.stack), Ip.raiseEvent(r), o(r);
|
|
17881
17881
|
} else
|
|
17882
|
-
|
|
17882
|
+
Ip.raiseEvent(), e(n.result);
|
|
17883
17883
|
t.removeEventListener("message", s);
|
|
17884
17884
|
}
|
|
17885
17885
|
};
|
|
@@ -17914,14 +17914,14 @@ async function OA(t, i, e) {
|
|
|
17914
17914
|
}
|
|
17915
17915
|
}
|
|
17916
17916
|
Pt.prototype.scheduleTask = function(t, i) {
|
|
17917
|
-
if (A(this._worker) || (this._worker =
|
|
17917
|
+
if (A(this._worker) || (this._worker = Vf(this._workerPath)), !(this._activeTasks >= this._maximumActiveTasks))
|
|
17918
17918
|
return OA(this, t, i);
|
|
17919
17919
|
};
|
|
17920
17920
|
Pt.prototype.initWebAssemblyModule = async function(t) {
|
|
17921
17921
|
if (A(this._webAssemblyPromise))
|
|
17922
17922
|
return this._webAssemblyPromise;
|
|
17923
17923
|
const i = async () => {
|
|
17924
|
-
const e = this._worker =
|
|
17924
|
+
const e = this._worker = Vf(this._workerPath), o = await kA(
|
|
17925
17925
|
this,
|
|
17926
17926
|
t
|
|
17927
17927
|
), s = await Promise.resolve(zC());
|
|
@@ -17949,7 +17949,7 @@ Pt.prototype.isDestroyed = function() {
|
|
|
17949
17949
|
Pt.prototype.destroy = function() {
|
|
17950
17950
|
return A(this._worker) && this._worker.terminate(), DA(this);
|
|
17951
17951
|
};
|
|
17952
|
-
Pt.taskCompletedEvent =
|
|
17952
|
+
Pt.taskCompletedEvent = Ip;
|
|
17953
17953
|
Pt._defaultWorkerModulePrefix = "Workers/";
|
|
17954
17954
|
Pt._workerModulePrefix = Pt._defaultWorkerModulePrefix;
|
|
17955
17955
|
Pt._canTransferArrayBuffer = void 0;
|
|
@@ -18252,7 +18252,7 @@ var gd = 3.141592653589793 * 3e3 / 180, xt = 3.141592653589793, md = 6378245, vd
|
|
|
18252
18252
|
}, Pm = function(s, o) {
|
|
18253
18253
|
var o = +o, s = +s, n = Math.sqrt(s * s + o * o) + 2e-5 * Math.sin(o * gd), r = Math.atan2(o, s) + 3e-6 * Math.cos(s * gd), a = n * Math.cos(r) + 65e-4, l = n * Math.sin(r) + 6e-3;
|
|
18254
18254
|
return [a, l];
|
|
18255
|
-
},
|
|
18255
|
+
}, Nf = function(s, o) {
|
|
18256
18256
|
var o = +o, s = +s;
|
|
18257
18257
|
if (NC(s, o))
|
|
18258
18258
|
return [s, o];
|
|
@@ -18262,7 +18262,7 @@ var gd = 3.141592653589793 * 3e3 / 180, xt = 3.141592653589793, md = 6378245, vd
|
|
|
18262
18262
|
n = n * 180 / (md * (1 - vd) / (l * c) * xt), r = r * 180 / (md / c * Math.cos(a) * xt);
|
|
18263
18263
|
var d = o + n, u = s + r;
|
|
18264
18264
|
return [u, d];
|
|
18265
|
-
},
|
|
18265
|
+
}, Uf = function(s, o) {
|
|
18266
18266
|
var o = +o, s = +s;
|
|
18267
18267
|
if (NC(s, o))
|
|
18268
18268
|
return [s, o];
|
|
@@ -18282,10 +18282,10 @@ var gd = 3.141592653589793 * 3e3 / 180, xt = 3.141592653589793, md = 6378245, vd
|
|
|
18282
18282
|
var o = +o, s = +s;
|
|
18283
18283
|
return !(s > 73.66 && s < 135.05 && o > 3.86 && o < 53.55);
|
|
18284
18284
|
};
|
|
18285
|
-
function
|
|
18285
|
+
function Gf(t, i) {
|
|
18286
18286
|
this.x = t || 0, this.y = i || 0, this.x = this.x, this.y = this.y;
|
|
18287
18287
|
}
|
|
18288
|
-
|
|
18288
|
+
Gf.prototype.equals = function(t) {
|
|
18289
18289
|
return t && t.x == this.x && t.y == this.y;
|
|
18290
18290
|
};
|
|
18291
18291
|
function $i(t, i) {
|
|
@@ -18376,7 +18376,7 @@ He.prototype.lngLatToMercator = function(t) {
|
|
|
18376
18376
|
};
|
|
18377
18377
|
He.prototype.lngLatToPoint = function(t) {
|
|
18378
18378
|
var i = He.convertLL2MC(t);
|
|
18379
|
-
return new
|
|
18379
|
+
return new Gf(i.lng, i.lat);
|
|
18380
18380
|
};
|
|
18381
18381
|
He.prototype.mercatorToLngLat = function(t) {
|
|
18382
18382
|
return He.convertMC2LL(t);
|
|
@@ -18389,7 +18389,7 @@ He.prototype.PointToPixel = function(t, i, e, o, s) {
|
|
|
18389
18389
|
if (t) {
|
|
18390
18390
|
t = this.lngLatToMercator(t, s);
|
|
18391
18391
|
var n = this.getZoomUnits(i), r = Math.round((t.lng - e.lng) / n + o[Twidth] / 2), a = Math.round((e.lat - t.lat) / n + o[Theight] / 2);
|
|
18392
|
-
return new
|
|
18392
|
+
return new Gf(r, a);
|
|
18393
18393
|
}
|
|
18394
18394
|
};
|
|
18395
18395
|
He.prototype.PixelToPoint = function(t, i, e, o, s) {
|
|
@@ -18408,10 +18408,10 @@ function xs(t) {
|
|
|
18408
18408
|
var e = new He();
|
|
18409
18409
|
this._projection.project = function(r) {
|
|
18410
18410
|
var a = {};
|
|
18411
|
-
return i ? (a =
|
|
18411
|
+
return i ? (a = Nf(k.toDegrees(r.longitude), k.toDegrees(r.latitude)), a = Pm(a[0], a[1])) : a = Pm(k.toDegrees(r.longitude), k.toDegrees(r.latitude)), a[0] = Math.min(a[0], 180), a[0] = Math.max(a[0], -180), a[1] = Math.min(a[1], 74.000022), a[1] = Math.max(a[1], -71.988531), a = e.lngLatToPoint(new $i(a[0], a[1])), new re(a.x, a.y);
|
|
18412
18412
|
}, this._projection.unproject = function(r) {
|
|
18413
18413
|
var a = e.mercatorToLngLat(new $i(r.x, r.y));
|
|
18414
|
-
return a[0] = (a[0] + 180) % 360 - 180, i ? (a = _m(a.lng, a.lat), a =
|
|
18414
|
+
return a[0] = (a[0] + 180) % 360 - 180, i ? (a = _m(a.lng, a.lat), a = Uf(a[0], a[1])) : a = _m(a.lng, a.lat), new xe(k.toRadians(a[0]), k.toRadians(a[1]));
|
|
18415
18415
|
}, this._rectangleSouthwestInMeters = new re(-2003772637e-2, -1170804166e-2), this._rectangleNortheastInMeters = new re(2003772637e-2, 1247410417e-2);
|
|
18416
18416
|
var o = this._projection.unproject(this._rectangleSouthwestInMeters), s = this._projection.unproject(this._rectangleNortheastInMeters);
|
|
18417
18417
|
this._rectangle = new pe(o.longitude, o.latitude, s.longitude, s.latitude), this.levelWidth = [];
|
|
@@ -18633,7 +18633,7 @@ class GA extends h.UrlTemplateImageryProvider {
|
|
|
18633
18633
|
}
|
|
18634
18634
|
}
|
|
18635
18635
|
const WA = document.createElement("canvas");
|
|
18636
|
-
class
|
|
18636
|
+
class Wf {
|
|
18637
18637
|
/**
|
|
18638
18638
|
* create a MVTImageryProvider Object
|
|
18639
18639
|
* @param {MVTImageryProviderOptions} options MVTImageryProvider options as follow:
|
|
@@ -18707,12 +18707,12 @@ class Hf {
|
|
|
18707
18707
|
}), e.showCanvas && this.mapboxRenderer.showCanvasForDebug(), await this.mapboxRenderer._style.loadedPromise, this.readyPromise = Promise.resolve(!0), this.ready = !0;
|
|
18708
18708
|
}
|
|
18709
18709
|
static async fromUrl(i, e = {}) {
|
|
18710
|
-
const o = new
|
|
18710
|
+
const o = new Wf(e);
|
|
18711
18711
|
return await o._build(i, e), o;
|
|
18712
18712
|
}
|
|
18713
18713
|
_preLoad(i, e) {
|
|
18714
18714
|
let o = i;
|
|
18715
|
-
if (typeof i == "string" && (i.endsWith(".json") || i.startsWith("mapbox://") ? i = new
|
|
18715
|
+
if (typeof i == "string" && (i.endsWith(".json") || i.startsWith("mapbox://") ? i = new fg({
|
|
18716
18716
|
url: i
|
|
18717
18717
|
}) : (i = {
|
|
18718
18718
|
version: 8,
|
|
@@ -18724,7 +18724,7 @@ class Hf {
|
|
|
18724
18724
|
}
|
|
18725
18725
|
},
|
|
18726
18726
|
layers: this.layerStyle
|
|
18727
|
-
}, o = i)), i instanceof
|
|
18727
|
+
}, o = i)), i instanceof fg) {
|
|
18728
18728
|
const s = "https://api.mapbox.com/";
|
|
18729
18729
|
i.url.startsWith("mapbox://") && (i.url = i.url.replace("mapbox://", s)), this._accessToken && i.appendQueryParameters({
|
|
18730
18730
|
access_token: this._accessToken
|
|
@@ -19130,7 +19130,7 @@ async function qA(t, i) {
|
|
|
19130
19130
|
indexTimeID: t.indexTimeID
|
|
19131
19131
|
});
|
|
19132
19132
|
if (t.type === "MVTImageryProvider")
|
|
19133
|
-
return t.url ? await
|
|
19133
|
+
return t.url ? await Wf.fromUrl(t.url, {
|
|
19134
19134
|
maximumLevel: t.maximumLevel,
|
|
19135
19135
|
minimumLevel: t.minimumLevel,
|
|
19136
19136
|
tileSize: t.tileSize,
|
|
@@ -19153,10 +19153,10 @@ class YA extends h.WebMercatorTilingScheme {
|
|
|
19153
19153
|
var e = this._projection;
|
|
19154
19154
|
e.s_project = e.project, e.project = function(n) {
|
|
19155
19155
|
var r = {};
|
|
19156
|
-
return r =
|
|
19156
|
+
return r = Uf(h.Math.toDegrees(n.longitude), h.Math.toDegrees(n.latitude)), e.s_project(new h.Cartographic(h.Math.toRadians(r[0]), h.Math.toRadians(r[1])));
|
|
19157
19157
|
}, e.s_unproject = e.unproject, e.unproject = function(n) {
|
|
19158
19158
|
var r = e.s_unproject(n), a = {};
|
|
19159
|
-
return a =
|
|
19159
|
+
return a = Nf(h.Math.toDegrees(r.longitude), h.Math.toDegrees(r.latitude)), new h.Cartographic(h.Math.toRadians(a[0]), h.Math.toRadians(a[1]));
|
|
19160
19160
|
};
|
|
19161
19161
|
var o = this._projection.unproject(this._rectangleSouthwestInMeters), s = this._projection.unproject(this._rectangleNortheastInMeters);
|
|
19162
19162
|
this._rectangle = new h.Rectangle(
|
|
@@ -19173,10 +19173,10 @@ class ZA extends h.WebMercatorTilingScheme {
|
|
|
19173
19173
|
var e = this._projection;
|
|
19174
19174
|
e.s_project = e.project, e.project = function(o) {
|
|
19175
19175
|
var s = {};
|
|
19176
|
-
return s =
|
|
19176
|
+
return s = Nf(h.Math.toDegrees(o.longitude), h.Math.toDegrees(o.latitude)), e.s_project(new h.Cartographic(h.Math.toRadians(s[0]), h.Math.toRadians(s[1])));
|
|
19177
19177
|
}, e.s_unproject = e.unproject, e.unproject = function(o) {
|
|
19178
19178
|
var s = e.s_unproject(o), n = {};
|
|
19179
|
-
return n =
|
|
19179
|
+
return n = Uf(h.Math.toDegrees(s.longitude), h.Math.toDegrees(s.latitude)), new h.Cartographic(h.Math.toRadians(n[0]), h.Math.toRadians(n[1]));
|
|
19180
19180
|
};
|
|
19181
19181
|
}
|
|
19182
19182
|
}
|
|
@@ -19382,17 +19382,17 @@ m(hn, "defaults", {
|
|
|
19382
19382
|
});
|
|
19383
19383
|
})(hn || (hn = {}));
|
|
19384
19384
|
ae(hn.prototype, hn.createDefaultProps);
|
|
19385
|
-
const
|
|
19386
|
-
let
|
|
19385
|
+
const Hf = h.ApproximateTerrainHeights, QA = h.ComponentDatatype, Tt = h.defined, KA = h.destroyObject, Rp = h.DeveloperError, JA = h.deprecationWarning, jA = h.GeometryInstance, eM = h.GeometryInstanceAttribute, tM = h.GroundPolylineGeometry, ca = h.DrawCommand, Sm = h.Pass, UC = h.RenderState, iM = h.ShaderProgram, da = h.ShaderSource;
|
|
19386
|
+
let Dp = h._shadersPolylineShadowVolumeFS;
|
|
19387
19387
|
const oM = h._shadersPolylineShadowVolumeMorphFS, sM = h._shadersPolylineShadowVolumeMorphVS;
|
|
19388
|
-
let
|
|
19389
|
-
const GC = h.BlendingState,
|
|
19390
|
-
|
|
19391
|
-
|
|
19388
|
+
let kp = h._shadersPolylineShadowVolumeVS;
|
|
19389
|
+
const GC = h.BlendingState, Fp = h.ClassificationType, nM = h.CullFace, WC = h.PolylineColorAppearance, rM = h.PolylineMaterialAppearance, Ko = h.Primitive, Jn = h.SceneMode, bm = h.StencilConstants, Tm = h.StencilFunction, Bn = h.StencilOperation;
|
|
19390
|
+
kp = kp.replace("width = width * max(0.0, czm_metersPerPixel(positionEC));", "");
|
|
19391
|
+
Dp = Dp.replace("float halfMaxWidth = v_startPlaneNormalEcAndHalfWidth.w * czm_metersPerPixel(eyeCoordinate);", "float halfMaxWidth = v_startPlaneNormalEcAndHalfWidth.w;");
|
|
19392
19392
|
function Lo(t) {
|
|
19393
19393
|
t = t ?? h.Frozen.EMPTY_OBJECT, this.geometryInstances = t.geometryInstances, this._hasPerInstanceColors = !0;
|
|
19394
19394
|
let i = t.appearance;
|
|
19395
|
-
Tt(i) || (i = new rM()), this.appearance = i, this.show = t.show ?? !0, this.classificationType = t.classificationType ??
|
|
19395
|
+
Tt(i) || (i = new rM()), this.appearance = i, this.show = t.show ?? !0, this.classificationType = t.classificationType ?? Fp.BOTH, this.debugShowBoundingVolume = t.debugShowBoundingVolume ?? !1, this._debugShowShadowVolume = t.debugShowShadowVolume ?? !1, this._primitiveOptions = {
|
|
19396
19396
|
geometryInstances: void 0,
|
|
19397
19397
|
appearance: void 0,
|
|
19398
19398
|
vertexCacheOptimize: !1,
|
|
@@ -19536,12 +19536,12 @@ Object.defineProperties(Lo.prototype, {
|
|
|
19536
19536
|
}
|
|
19537
19537
|
});
|
|
19538
19538
|
Lo.initializeTerrainHeights = function() {
|
|
19539
|
-
return
|
|
19539
|
+
return Hf.initialize();
|
|
19540
19540
|
};
|
|
19541
19541
|
function aM(t, i, e) {
|
|
19542
19542
|
const o = i.context, s = t._primitive, n = s._attributeLocations;
|
|
19543
19543
|
let r = s._batchTable.getVertexShaderCallback()(
|
|
19544
|
-
|
|
19544
|
+
kp
|
|
19545
19545
|
);
|
|
19546
19546
|
r = Ko._appendShowToShader(s, r), r = Ko._appendDistanceDisplayConditionToShader(s, r), r = Ko._modifyShaderPosition(
|
|
19547
19547
|
t,
|
|
@@ -19560,7 +19560,7 @@ function aM(t, i, e) {
|
|
|
19560
19560
|
i.scene3DOnly
|
|
19561
19561
|
);
|
|
19562
19562
|
let l = s._batchTable.getVertexShaderCallback()(
|
|
19563
|
-
|
|
19563
|
+
Dp
|
|
19564
19564
|
);
|
|
19565
19565
|
const c = [
|
|
19566
19566
|
`GLOBE_MINIMUM_ALTITUDE ${i.mapProjection.ellipsoid.minimumRadius.toFixed(
|
|
@@ -19612,7 +19612,7 @@ function aM(t, i, e) {
|
|
|
19612
19612
|
if (!Tt(_)) {
|
|
19613
19613
|
const P = new da({
|
|
19614
19614
|
defines: c.concat([
|
|
19615
|
-
`MAX_TERRAIN_HEIGHT ${
|
|
19615
|
+
`MAX_TERRAIN_HEIGHT ${Hf._defaultMaxTerrainHeight.toFixed(
|
|
19616
19616
|
1
|
|
19617
19617
|
)}`
|
|
19618
19618
|
]),
|
|
@@ -19709,7 +19709,7 @@ function hM(t, i, e, o, s, n, r) {
|
|
|
19709
19709
|
Ko._updateBoundingVolumes(a, i, s);
|
|
19710
19710
|
let l;
|
|
19711
19711
|
i.mode === Jn.SCENE3D ? l = a._boundingSphereWC : i.mode === Jn.COLUMBUS_VIEW ? l = a._boundingSphereCV : i.mode === Jn.SCENE2D && Tt(a._boundingSphere2D) ? l = a._boundingSphere2D : Tt(a._boundingSphereMorph) && (l = a._boundingSphereMorph);
|
|
19712
|
-
const c = i.mode === Jn.MORPHING, d = t.classificationType, u = d !==
|
|
19712
|
+
const c = i.mode === Jn.MORPHING, d = t.classificationType, u = d !== Fp.CESIUM_3D_TILE, p = d !== Fp.TERRAIN && !c;
|
|
19713
19713
|
let f;
|
|
19714
19714
|
const g = i.passes;
|
|
19715
19715
|
if (g.render || g.pick && a.allowPicking) {
|
|
@@ -19739,9 +19739,9 @@ function hM(t, i, e, o, s, n, r) {
|
|
|
19739
19739
|
Lo.prototype.update = function(t) {
|
|
19740
19740
|
if (!Tt(this._primitive) && !Tt(this.geometryInstances))
|
|
19741
19741
|
return;
|
|
19742
|
-
if (
|
|
19742
|
+
if (!Hf.initialized) {
|
|
19743
19743
|
if (!this.asynchronous)
|
|
19744
|
-
throw new
|
|
19744
|
+
throw new Rp(
|
|
19745
19745
|
"For synchronous GroundPolylinePrimitives, you must call GroundPolylinePrimitives.initializeTerrainHeights() and wait for the returned promise to resolve."
|
|
19746
19746
|
);
|
|
19747
19747
|
Lo.initializeTerrainHeights();
|
|
@@ -19801,7 +19801,7 @@ Lo.prototype.update = function(t) {
|
|
|
19801
19801
|
}, this._primitive = new Ko(o);
|
|
19802
19802
|
}
|
|
19803
19803
|
if (this.appearance instanceof WC && !this._hasPerInstanceColors)
|
|
19804
|
-
throw new
|
|
19804
|
+
throw new Rp(
|
|
19805
19805
|
"All GeometryInstances must have color attributes to use PolylineColorAppearance with GroundPolylinePrimitive."
|
|
19806
19806
|
);
|
|
19807
19807
|
this._primitive.appearance = this.appearance, this._primitive.show = this.show, this._primitive.debugShowBoundingVolume = this.debugShowBoundingVolume, this._primitive.update(t), t.afterRender.push(() => {
|
|
@@ -19810,7 +19810,7 @@ Lo.prototype.update = function(t) {
|
|
|
19810
19810
|
};
|
|
19811
19811
|
Lo.prototype.getGeometryInstanceAttributes = function(t) {
|
|
19812
19812
|
if (!Tt(this._primitive))
|
|
19813
|
-
throw new
|
|
19813
|
+
throw new Rp(
|
|
19814
19814
|
"must call update before calling getGeometryInstanceAttributes"
|
|
19815
19815
|
);
|
|
19816
19816
|
return this._primitive.getGeometryInstanceAttributes(t);
|
|
@@ -20281,7 +20281,7 @@ class Jd extends Me {
|
|
|
20281
20281
|
return this._lastHoverResult.changed;
|
|
20282
20282
|
}
|
|
20283
20283
|
}
|
|
20284
|
-
class
|
|
20284
|
+
class $f extends Me {
|
|
20285
20285
|
constructor(i, e) {
|
|
20286
20286
|
if (super(i, e), !e.viewer) {
|
|
20287
20287
|
console.warn("viewer is undefined!");
|
|
@@ -20761,7 +20761,7 @@ m(Fd, "toMercatorPos", function(i) {
|
|
|
20761
20761
|
const [e, o, s] = i;
|
|
20762
20762
|
return [e, o / Math.cos(o * Math.PI / 180), s];
|
|
20763
20763
|
});
|
|
20764
|
-
let
|
|
20764
|
+
let zp = Fd;
|
|
20765
20765
|
const Ia = class Ia extends L {
|
|
20766
20766
|
constructor(e, o) {
|
|
20767
20767
|
super();
|
|
@@ -20805,7 +20805,7 @@ const Ia = class Ia extends L {
|
|
|
20805
20805
|
return this._canvasGeoInfo.changed;
|
|
20806
20806
|
}
|
|
20807
20807
|
};
|
|
20808
|
-
m(Ia, "saveCanvasToClipboard", PM), m(Ia, "PolygonCanvasResetting",
|
|
20808
|
+
m(Ia, "saveCanvasToClipboard", PM), m(Ia, "PolygonCanvasResetting", zp);
|
|
20809
20809
|
let dn = Ia;
|
|
20810
20810
|
((t) => {
|
|
20811
20811
|
t.createDefaultProps = () => ({
|
|
@@ -21365,7 +21365,7 @@ class MM extends L {
|
|
|
21365
21365
|
i.clippingPlanes = Hd(e.clippingPlanes ?? { enabled: !1 }, r);
|
|
21366
21366
|
return;
|
|
21367
21367
|
}
|
|
21368
|
-
|
|
21368
|
+
gf(i.clippingPlanes, e.clippingPlanes, r);
|
|
21369
21369
|
};
|
|
21370
21370
|
s();
|
|
21371
21371
|
const n = this.disposeVar(F(
|
|
@@ -21393,7 +21393,7 @@ class IM extends L {
|
|
|
21393
21393
|
o.clippingPlanes = Hd(s.clippingPlanes ?? { enabled: !1 });
|
|
21394
21394
|
return;
|
|
21395
21395
|
}
|
|
21396
|
-
|
|
21396
|
+
gf(o.clippingPlanes, s.clippingPlanes);
|
|
21397
21397
|
};
|
|
21398
21398
|
n(), this.dispose(s.clippingPlanesChanged.disposableOn(n));
|
|
21399
21399
|
}
|
|
@@ -21411,7 +21411,7 @@ class RM extends L {
|
|
|
21411
21411
|
const { tileset: o, czmCzm3DTiles: s } = this;
|
|
21412
21412
|
{
|
|
21413
21413
|
const n = () => {
|
|
21414
|
-
o.clippingPolygons = s.clippingPolygons ?
|
|
21414
|
+
o.clippingPolygons = s.clippingPolygons ? mf(s.clippingPolygons) : new h.ClippingPolygonCollection();
|
|
21415
21415
|
};
|
|
21416
21416
|
n(), this.dispose(s.clippingPolygonsChanged.disposableOn(n));
|
|
21417
21417
|
}
|
|
@@ -21763,7 +21763,7 @@ async function VM(t, i, e) {
|
|
|
21763
21763
|
ellipsoid: Re(t.ellipsoid ?? ke.defaults.ellipsoid),
|
|
21764
21764
|
modelMatrix: t.modelMatrix && h.Matrix4.fromArray(t.modelMatrix),
|
|
21765
21765
|
clippingPlanes: t.clippingPlanes && Hd(t.clippingPlanes),
|
|
21766
|
-
clippingPolygons: t.clippingPolygons &&
|
|
21766
|
+
clippingPolygons: t.clippingPolygons && mf(t.clippingPolygons),
|
|
21767
21767
|
imageBasedLighting: t.imageBasedLighting && BM(t.imageBasedLighting),
|
|
21768
21768
|
splitDirection: h.SplitDirection[t.splitDirection ?? ke.defaults.splitDirection],
|
|
21769
21769
|
modelUpAxis: t.modelUpAxis && h.Axis[t.modelUpAxis],
|
|
@@ -22127,7 +22127,7 @@ const hi = class hi extends L {
|
|
|
22127
22127
|
return;
|
|
22128
22128
|
}
|
|
22129
22129
|
let l, c;
|
|
22130
|
-
return a instanceof
|
|
22130
|
+
return a instanceof uf && Mt(this, a, () => {
|
|
22131
22131
|
l = e.getEngineObject(a).czmBoxClippingPlanes, c = n(l);
|
|
22132
22132
|
}), a instanceof vi && (l = o.clippingPlanes, c = n(l)), c;
|
|
22133
22133
|
})), this._czmFlattenedPlaneWithId = this.disposeVar(new Di()), this.dispose(C([this._czmFlattenedPlaneWithId, "id"], [this, "czmFlattenedPlaneId"])), this.dispose(this.originChanged.disposableOn(() => {
|
|
@@ -23136,7 +23136,7 @@ const ka = class ka extends Me {
|
|
|
23136
23136
|
}
|
|
23137
23137
|
{
|
|
23138
23138
|
const l = () => {
|
|
23139
|
-
const d = e.radius ??
|
|
23139
|
+
const d = e.radius ?? vg.defaults.radius;
|
|
23140
23140
|
a.scale = [d * e.scale[0], d * e.scale[1], d * e.scale[2]];
|
|
23141
23141
|
};
|
|
23142
23142
|
l();
|
|
@@ -23155,7 +23155,7 @@ const ka = class ka extends Me {
|
|
|
23155
23155
|
return !n.actived || !n.viewer ? !1 : s.flyToParam || s.flyInParam ? super.flyTo(e, o) : (r && wi(n, s, o, e, r, !0), !0);
|
|
23156
23156
|
}
|
|
23157
23157
|
};
|
|
23158
|
-
m(ka, "type", ka.register("ESCesiumViewer",
|
|
23158
|
+
m(ka, "type", ka.register("ESCesiumViewer", vg.type, ka));
|
|
23159
23159
|
let km = ka;
|
|
23160
23160
|
const uI = {
|
|
23161
23161
|
scan: (
|
|
@@ -23209,7 +23209,7 @@ const uI = {
|
|
|
23209
23209
|
}
|
|
23210
23210
|
updateColor() {
|
|
23211
23211
|
this.czmCustomPrimitive.uniformMap = {
|
|
23212
|
-
u_color: this.sceneObject.color ??
|
|
23212
|
+
u_color: this.sceneObject.color ?? yg.defaults.color
|
|
23213
23213
|
};
|
|
23214
23214
|
}
|
|
23215
23215
|
updataMode() {
|
|
@@ -23278,7 +23278,7 @@ const uI = {
|
|
|
23278
23278
|
return !n.actived || !n.viewer ? !1 : s.flyToParam || s.flyInParam ? (super.flyTo(e, o), !0) : (wi(n, s, o, e, r, !0), !0);
|
|
23279
23279
|
}
|
|
23280
23280
|
};
|
|
23281
|
-
m(Fa, "type", Fa.register("ESCesiumViewer",
|
|
23281
|
+
m(Fa, "type", Fa.register("ESCesiumViewer", yg.type, Fa));
|
|
23282
23282
|
let Fm = Fa;
|
|
23283
23283
|
const pI = (t) => {
|
|
23284
23284
|
const i = [];
|
|
@@ -23822,7 +23822,7 @@ const Oa = class Oa extends Me {
|
|
|
23822
23822
|
return !n.actived || !n.viewer ? !1 : s.flyToParam || s.flyInParam ? super.flyTo(e, o) : s.position ? (Wi(n, s, o, s.position, Math.max(...s.size), e, !0), !0) : !1;
|
|
23823
23823
|
}
|
|
23824
23824
|
};
|
|
23825
|
-
m(Oa, "type", Oa.register("ESCesiumViewer",
|
|
23825
|
+
m(Oa, "type", Oa.register("ESCesiumViewer", uf.type, Oa));
|
|
23826
23826
|
let Om = Oa;
|
|
23827
23827
|
const Ba = class Ba extends Me {
|
|
23828
23828
|
constructor(e, o) {
|
|
@@ -23935,12 +23935,12 @@ const Va = class Va extends Me {
|
|
|
23935
23935
|
if (s.flyToParam || s.flyInParam)
|
|
23936
23936
|
return super.flyTo(e, o), !0;
|
|
23937
23937
|
{
|
|
23938
|
-
const r = Math.max(s.far, s.near) ??
|
|
23938
|
+
const r = Math.max(s.far, s.near) ?? wg.defaults.far;
|
|
23939
23939
|
return s.position ? (Wi(n, s, o, s.position, r, e), !0) : !1;
|
|
23940
23940
|
}
|
|
23941
23941
|
}
|
|
23942
23942
|
};
|
|
23943
|
-
m(Va, "type", Va.register("ESCesiumViewer",
|
|
23943
|
+
m(Va, "type", Va.register("ESCesiumViewer", wg.type, Va));
|
|
23944
23944
|
let Vm = Va;
|
|
23945
23945
|
const Na = class Na extends Me {
|
|
23946
23946
|
constructor(e, o) {
|
|
@@ -25034,7 +25034,7 @@ class zr extends L {
|
|
|
25034
25034
|
}
|
|
25035
25035
|
const d = this.distances.length;
|
|
25036
25036
|
for (let u = 0; u < d; ++u) {
|
|
25037
|
-
const p = this.distances[u], f = this.positions[u + 1], g = Hg(`长度: ${
|
|
25037
|
+
const p = this.distances[u], f = this.positions[u + 1], g = Hg(`长度: ${xf(p)}`, f, e, o);
|
|
25038
25038
|
g.dispose(C([g, "show"], [this, "show"])), g.dispose(C([g, "shadowDom"], [this, "shadowDom"])), g.dispose(C([g, "cssAllInitial"], [this, "cssAllInitial"])), this.ad(g.pickedEvent.don((v) => {
|
|
25039
25039
|
_s(v) === 0 && this.pickedEvent.emit(v);
|
|
25040
25040
|
})), a.push(g);
|
|
@@ -25688,8 +25688,8 @@ const bI = [["256", 256], ["512", 512], ["1024", 1024]], TI = [["LEFT", "LEFT"],
|
|
|
25688
25688
|
new $t([this, "style"], "样式配置", oi.defaults.style),
|
|
25689
25689
|
new ce([this, "zIndex"], "层级序号", oi.defaults.zIndex),
|
|
25690
25690
|
new Ii([this, "tileSize"], bI, "瓦片大小", 256),
|
|
25691
|
-
new
|
|
25692
|
-
new
|
|
25691
|
+
new Cg([this, "maximumLevel"], 1, [1, 24], "最大层级", oi.defaults.maximumLevel),
|
|
25692
|
+
new Cg([this, "minimumLevel"], 1, [0, 24], "最小层级", oi.defaults.minimumLevel),
|
|
25693
25693
|
new Ii([this, "scheme"], [["tms", "tms"], ["xyz", "xyz"]], "影像类型", oi.defaults.scheme)
|
|
25694
25694
|
],
|
|
25695
25695
|
more: [
|
|
@@ -25748,7 +25748,7 @@ m(oi, "createDefaultProps", () => ({
|
|
|
25748
25748
|
/** czm 伽马值 */
|
|
25749
25749
|
czmGamma: 1
|
|
25750
25750
|
})), m(oi, "type", oi.register("ESMVTLayer", oi, { chsName: "矢量瓦片图层", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "用于加载矢量瓦片图层。" }));
|
|
25751
|
-
let
|
|
25751
|
+
let Lp = oi;
|
|
25752
25752
|
const EI = (t) => {
|
|
25753
25753
|
const i = [
|
|
25754
25754
|
{ maxAlt: 25e7, level: 0 },
|
|
@@ -25847,7 +25847,7 @@ m(sr, "createDefaultProps", () => ({
|
|
|
25847
25847
|
zIndex: 0,
|
|
25848
25848
|
rectangle: j([-180, -90, 180, 90])
|
|
25849
25849
|
})), m(sr, "type", sr.register("ESGeHistoryImagery", sr, { chsName: "谷歌历史影像", tags: ["ESObjects", "_ES_Impl_UE"], description: "ESGeHistoryImagery" }));
|
|
25850
|
-
let
|
|
25850
|
+
let Op = sr;
|
|
25851
25851
|
const jC = `async (dataSource, viewer) => {
|
|
25852
25852
|
viewer.clock.shouldAnimate = false;
|
|
25853
25853
|
const rider = dataSource.entities.getById("tour");
|
|
@@ -25980,8 +25980,8 @@ m(Wt, "createDefaultProps", () => ({
|
|
|
25980
25980
|
shouldAnimate: !1,
|
|
25981
25981
|
clampToGround: !1
|
|
25982
25982
|
})), m(Wt, "type", Wt.register("ESKml", Wt, { chsName: "ESKml", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "Kml数据加载" }));
|
|
25983
|
-
let
|
|
25984
|
-
const nr = class nr extends
|
|
25983
|
+
let Bp = Wt;
|
|
25984
|
+
const nr = class nr extends _g {
|
|
25985
25985
|
constructor(i) {
|
|
25986
25986
|
super(i);
|
|
25987
25987
|
}
|
|
@@ -26006,7 +26006,7 @@ const nr = class nr extends Pg {
|
|
|
26006
26006
|
}
|
|
26007
26007
|
};
|
|
26008
26008
|
m(nr, "createDefaultProps", () => ({
|
|
26009
|
-
...
|
|
26009
|
+
..._g.createDefaultProps(),
|
|
26010
26010
|
points: _P(void 0),
|
|
26011
26011
|
loop: !0,
|
|
26012
26012
|
hasDash: !0,
|
|
@@ -26021,8 +26021,8 @@ m(nr, "createDefaultProps", () => ({
|
|
|
26021
26021
|
//深度检测
|
|
26022
26022
|
stroked: !0
|
|
26023
26023
|
})), m(nr, "type", nr.register("ESLocalLineString", nr, { chsName: "局部2D坐标折线", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "ESLocalLineString" }));
|
|
26024
|
-
let
|
|
26025
|
-
const rr = class rr extends
|
|
26024
|
+
let Vp = nr;
|
|
26025
|
+
const rr = class rr extends Pg {
|
|
26026
26026
|
constructor(i) {
|
|
26027
26027
|
super(i);
|
|
26028
26028
|
}
|
|
@@ -26047,7 +26047,7 @@ const rr = class rr extends xg {
|
|
|
26047
26047
|
}
|
|
26048
26048
|
};
|
|
26049
26049
|
m(rr, "createDefaultProps", () => ({
|
|
26050
|
-
...
|
|
26050
|
+
...Pg.createDefaultProps(),
|
|
26051
26051
|
points: Ke(void 0),
|
|
26052
26052
|
loop: !0,
|
|
26053
26053
|
width: void 0,
|
|
@@ -26542,7 +26542,7 @@ export type IndexJsonType = {
|
|
|
26542
26542
|
array: number[];
|
|
26543
26543
|
}
|
|
26544
26544
|
\`\`\`
|
|
26545
|
-
`, Ht = class Ht extends
|
|
26545
|
+
`, Ht = class Ht extends xg {
|
|
26546
26546
|
constructor(e) {
|
|
26547
26547
|
super(e);
|
|
26548
26548
|
m(this, "_attributes", this.disposeVar(U(void 0)));
|
|
@@ -26689,7 +26689,7 @@ export type IndexJsonType = {
|
|
|
26689
26689
|
}
|
|
26690
26690
|
};
|
|
26691
26691
|
m(Ht, "createDefaultProps", () => ({
|
|
26692
|
-
...
|
|
26692
|
+
...xg.createDefaultProps(),
|
|
26693
26693
|
maximumScale: void 0,
|
|
26694
26694
|
minimumScale: void 0,
|
|
26695
26695
|
pixelSize: void 0,
|
|
@@ -26731,7 +26731,7 @@ m(Ht, "createDefaultProps", () => ({
|
|
|
26731
26731
|
viewDistanceRange: Q(void 0),
|
|
26732
26732
|
viewDistanceDebug: !1
|
|
26733
26733
|
})), m(Ht, "type", Ht.register("ESCustomPrimitive", Ht, { chsName: "ES自定义图元", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "ES自定义图元" })), m(Ht, "defaultRenderState", Jm), m(Ht, "defaultVertexShaderSource", Zm), m(Ht, "defaultFragmentShaderSource", Qm), m(Ht, "defaultUniformMap", jm), m(Ht, "defaultBoundingVolume", Km), m(Ht, "defaultAttribute", ev), m(Ht, "defaultIndexTypedArray", tv), m(Ht, "getMinMaxPosition", aw);
|
|
26734
|
-
let
|
|
26734
|
+
let Np = Ht;
|
|
26735
26735
|
const So = class So extends Ri {
|
|
26736
26736
|
constructor(e) {
|
|
26737
26737
|
super(e);
|
|
@@ -26804,7 +26804,7 @@ m(So, "createDefaultProps", () => ({
|
|
|
26804
26804
|
Ye.LineStringAppend,
|
|
26805
26805
|
Ye.LineStringInsert
|
|
26806
26806
|
]);
|
|
26807
|
-
let
|
|
26807
|
+
let Up = So;
|
|
26808
26808
|
const Vs = class Vs extends Ri {
|
|
26809
26809
|
constructor(e) {
|
|
26810
26810
|
super(e);
|
|
@@ -26839,7 +26839,7 @@ m(Vs, "createDefaultProps", () => ({
|
|
|
26839
26839
|
Ye.LineStringAppend,
|
|
26840
26840
|
Ye.LineStringInsert
|
|
26841
26841
|
]);
|
|
26842
|
-
let
|
|
26842
|
+
let Gp = Vs;
|
|
26843
26843
|
const Ns = class Ns extends Ri {
|
|
26844
26844
|
constructor(e) {
|
|
26845
26845
|
super(e);
|
|
@@ -26980,7 +26980,7 @@ m(jo, "createDefaultProps", () => ({
|
|
|
26980
26980
|
Ye.LineStringAppend,
|
|
26981
26981
|
Ye.LineStringInsert
|
|
26982
26982
|
]);
|
|
26983
|
-
let
|
|
26983
|
+
let Wp = jo;
|
|
26984
26984
|
const Ja = class Ja extends Xi {
|
|
26985
26985
|
constructor(e, o) {
|
|
26986
26986
|
super(e, o);
|
|
@@ -27038,7 +27038,7 @@ const Ja = class Ja extends Xi {
|
|
|
27038
27038
|
return n.actived ? s.flyInParam ? super.flyIn(e, o) : r.positions ? (ge(n, s, o, r.positions, e), !0) : !1 : !1;
|
|
27039
27039
|
}
|
|
27040
27040
|
};
|
|
27041
|
-
m(Ja, "type", Ja.register("ESCesiumViewer",
|
|
27041
|
+
m(Ja, "type", Ja.register("ESCesiumViewer", Wp.type, Ja));
|
|
27042
27042
|
let sv = Ja;
|
|
27043
27043
|
const ja = class ja extends Me {
|
|
27044
27044
|
constructor(e, o) {
|
|
@@ -27827,7 +27827,7 @@ const sl = class sl extends Me {
|
|
|
27827
27827
|
loop: "REPEAT",
|
|
27828
27828
|
animationTime: "(duration) => Date.now() / 1000 / duration * 2"
|
|
27829
27829
|
})), e.czmModelReadyEvent.emit(a), e.readyEvent.emit(a);
|
|
27830
|
-
})), this.ad(new
|
|
27830
|
+
})), this.ad(new _f(s, this._czmModel)), this.d(C([n, "show"], [e, "show"])), this.d(C([n, "color"], [e, "czmColor"])), this.d(C([n, "nativeMaximumScale"], [e, "czmMaximumScale"])), this.d(C([n, "nativeMinimumPixelSize"], [e, "czmMinimumPixelSize"])), this.d(M([n, "position"], [e, "position"])), this.d(C([n, "nativeScale"], [e, "czmNativeScale"])), this.d(C([n, "scale"], [e, "scale"])), this.ad(C([n, "imageBasedLightingFactor"], [e, "czmImageBasedLightingFactor"])), this.d(C([n, "environmentMapManager"], [e, "czmEnvironmentMapManager"]));
|
|
27831
27831
|
{
|
|
27832
27832
|
const a = (l) => {
|
|
27833
27833
|
e.czmEnvironmentMapManager = e.czmEnvironmentMapManager ? { ...e.czmEnvironmentMapManager, atmosphereScatteringIntensity: l } : { atmosphereScatteringIntensity: l };
|
|
@@ -27879,7 +27879,7 @@ const sl = class sl extends Me {
|
|
|
27879
27879
|
}
|
|
27880
27880
|
const r = () => {
|
|
27881
27881
|
var a;
|
|
27882
|
-
n.url = oe.context.getStrFromEnv(
|
|
27882
|
+
n.url = oe.context.getStrFromEnv(Pf(typeof e.url == "string" ? e.url : ((a = e.url) == null ? void 0 : a.url) ?? jc.defaults.url));
|
|
27883
27883
|
};
|
|
27884
27884
|
r(), this.d(e.urlChanged.don(r)), this.d(e.setNodePositionEvent.don((a, l) => {
|
|
27885
27885
|
n.setNodeTranslation(a, l);
|
|
@@ -27968,7 +27968,7 @@ class $h extends L {
|
|
|
27968
27968
|
}
|
|
27969
27969
|
{
|
|
27970
27970
|
const l = () => {
|
|
27971
|
-
a.innerHTML = qr(`高度: ${
|
|
27971
|
+
a.innerHTML = qr(`高度: ${xf(this.height)}`, 0);
|
|
27972
27972
|
};
|
|
27973
27973
|
l(), this.dispose(this.heightChanged.disposableOn(l));
|
|
27974
27974
|
}
|
|
@@ -28181,7 +28181,7 @@ const Vu = {
|
|
|
28181
28181
|
e.showChanged,
|
|
28182
28182
|
e.animationChanged
|
|
28183
28183
|
));
|
|
28184
|
-
this.dispose(g.disposableOn(() => f())), this.ad(new
|
|
28184
|
+
this.dispose(g.disposableOn(() => f())), this.ad(new _f(s, n));
|
|
28185
28185
|
}
|
|
28186
28186
|
get czmModelPrimitive() {
|
|
28187
28187
|
return this._czmModelPrimitive;
|
|
@@ -28212,7 +28212,7 @@ class KI extends L {
|
|
|
28212
28212
|
{
|
|
28213
28213
|
const n = (d) => {
|
|
28214
28214
|
let u = d;
|
|
28215
|
-
return d.includes("inner://") && (u = "${earthsdk3-assets-script-dir}/assets/img/points/" + d.split("inner://")[1]), oe.context.getStrFromEnv(
|
|
28215
|
+
return d.includes("inner://") && (u = "${earthsdk3-assets-script-dir}/assets/img/points/" + d.split("inner://")[1]), oe.context.getStrFromEnv(Pf(u));
|
|
28216
28216
|
}, r = () => {
|
|
28217
28217
|
const d = n(typeof e.url == "string" ? e.url : e.url.url);
|
|
28218
28218
|
if (s.imageUri = d, e.sizeByContent) {
|
|
@@ -28296,7 +28296,7 @@ class JI extends L {
|
|
|
28296
28296
|
});
|
|
28297
28297
|
const r = e.sizeByContent, l = ((p) => {
|
|
28298
28298
|
let f = p;
|
|
28299
|
-
return p.includes("inner://") && (f = "${earthsdk3-assets-script-dir}/assets/img/points/" + p.split("inner://")[1]), oe.context.getStrFromEnv(
|
|
28299
|
+
return p.includes("inner://") && (f = "${earthsdk3-assets-script-dir}/assets/img/points/" + p.split("inner://")[1]), oe.context.getStrFromEnv(Pf(f));
|
|
28300
28300
|
})(typeof s.sceneObject.url == "string" ? s.sceneObject.url : s.sceneObject.url.url), c = new Image();
|
|
28301
28301
|
c.src = l, c.onload = () => {
|
|
28302
28302
|
if (r)
|
|
@@ -28980,10 +28980,10 @@ const c2 = {
|
|
|
28980
28980
|
));
|
|
28981
28981
|
this.customWidgetComponent = this.disposeVar(new he(c, () => {
|
|
28982
28982
|
if (!(!l || e.mode != "Custom"))
|
|
28983
|
-
return e.screenRender ? new ks(e, o, l[1], !0, !1) : new
|
|
28983
|
+
return e.screenRender ? new ks(e, o, l[1], !0, !1) : new gp(e, o, l[1], !0, !1);
|
|
28984
28984
|
}, !1)), this.widgetComponent = this.disposeVar(new he(c, () => {
|
|
28985
28985
|
if (l)
|
|
28986
|
-
return e.screenRender ? new ks(e, o, l instanceof HTMLDivElement ? l : l[0], !0, !1) : new
|
|
28986
|
+
return e.screenRender ? new ks(e, o, l instanceof HTMLDivElement ? l : l[0], !0, !1) : new gp(e, o, l instanceof HTMLDivElement ? l : l[0], !0, !1);
|
|
28987
28987
|
}, !1)), this.widgetComponent.objChanged.don(() => {
|
|
28988
28988
|
e.minVisibleDistanceChanged.emit();
|
|
28989
28989
|
});
|
|
@@ -29189,7 +29189,7 @@ class p2 extends L {
|
|
|
29189
29189
|
loop: "REPEAT",
|
|
29190
29190
|
animationTime: "(duration) => Date.now() / 1000 / duration * 2"
|
|
29191
29191
|
}))), this._updateMaterial(this._sceneObject, this.czmModel);
|
|
29192
|
-
})), this.ad(new
|
|
29192
|
+
})), this.ad(new _f(o.viewer, this.czmModel));
|
|
29193
29193
|
const n = this._sceneObject, r = this.czmModel;
|
|
29194
29194
|
r.url = this._modelUrl, this.d(M([r, "position"], [n, "position"])), this.d(bt([r, "rotation"], [n, "rotation"])), this.d(C([r, "scale"], [n, "scale"])), this.d(C([r, "show"], [n, "show"]));
|
|
29195
29195
|
{
|
|
@@ -29210,7 +29210,7 @@ class p2 extends L {
|
|
|
29210
29210
|
<span style="display: inline-block;white-space: nowrap;text-overflow: ellipsis;overflow: hidden;width: 512px;">${n}</span>
|
|
29211
29211
|
</div>`, document.body.contains(s) || document.body.appendChild(s);
|
|
29212
29212
|
try {
|
|
29213
|
-
const l = await
|
|
29213
|
+
const l = await ff(s, { backgroundColor: null, allowTaint: !1, useCORS: !0 });
|
|
29214
29214
|
document.body.contains(s) && document.body.removeChild(s), o.setMaterial({
|
|
29215
29215
|
Text: {
|
|
29216
29216
|
baseColorTexture: {
|
|
@@ -29372,7 +29372,7 @@ const dl = class dl extends Me {
|
|
|
29372
29372
|
flowSpeed: e.flowSpeed ?? bs.defaults.flowSpeed
|
|
29373
29373
|
});
|
|
29374
29374
|
else {
|
|
29375
|
-
const p = Object.assign({},
|
|
29375
|
+
const p = Object.assign({}, Tf[e.waterType]);
|
|
29376
29376
|
p.frequency && (p.frequency /= 10), p.waveVelocity && (p.waveVelocity /= 100), p.amplitude && (p.amplitude *= 10), this.updateWater(p);
|
|
29377
29377
|
}
|
|
29378
29378
|
};
|
|
@@ -29705,7 +29705,7 @@ class y2 extends L {
|
|
|
29705
29705
|
const s = this._czmViewer, n = this._czmTextLabel;
|
|
29706
29706
|
n.originRatioAndOffset = [1e3, 0, 0, 0], this.dispose(n.divCreatedEvent.disposableOn((l) => {
|
|
29707
29707
|
const c = setTimeout(() => {
|
|
29708
|
-
|
|
29708
|
+
ff(l, {
|
|
29709
29709
|
backgroundColor: null,
|
|
29710
29710
|
allowTaint: !1,
|
|
29711
29711
|
useCORS: !0,
|
|
@@ -31182,7 +31182,7 @@ const B2 = `
|
|
|
31182
31182
|
const l = this.dv(F(e.screenRenderChanged, e.infoChanged));
|
|
31183
31183
|
this.widgetTemp = this.disposeVar(new he(l, () => {
|
|
31184
31184
|
const c = O2(e, a, r);
|
|
31185
|
-
return e.screenRender ? new ks(e, o, c, Object.keys(e.info).length != 0) : new
|
|
31185
|
+
return e.screenRender ? new ks(e, o, c, Object.keys(e.info).length != 0) : new gp(e, o, c, Object.keys(e.info).length != 0);
|
|
31186
31186
|
}));
|
|
31187
31187
|
}
|
|
31188
31188
|
})();
|
|
@@ -31521,7 +31521,7 @@ const wl = class wl extends qi {
|
|
|
31521
31521
|
}));
|
|
31522
31522
|
}
|
|
31523
31523
|
};
|
|
31524
|
-
m(wl, "type", wl.register("ESCesiumViewer",
|
|
31524
|
+
m(wl, "type", wl.register("ESCesiumViewer", Bp.type, wl));
|
|
31525
31525
|
let Dv = wl;
|
|
31526
31526
|
const Cl = class Cl extends Me {
|
|
31527
31527
|
constructor(e, o) {
|
|
@@ -31666,7 +31666,7 @@ const _l = class _l extends Me {
|
|
|
31666
31666
|
return n.actived ? s.flyToParam || s.flyInParam ? super.flyTo(e, o) : (r.points && r.flyTo(e), !0) : !1;
|
|
31667
31667
|
}
|
|
31668
31668
|
};
|
|
31669
|
-
m(_l, "type", _l.register("ESCesiumViewer",
|
|
31669
|
+
m(_l, "type", _l.register("ESCesiumViewer", Vp.type, _l));
|
|
31670
31670
|
let Fv = _l;
|
|
31671
31671
|
const Pl = class Pl extends Me {
|
|
31672
31672
|
constructor(e, o) {
|
|
@@ -31731,7 +31731,7 @@ const Pl = class Pl extends Me {
|
|
|
31731
31731
|
};
|
|
31732
31732
|
m(Pl, "type", Pl.register("ESCesiumViewer", yd.type, Pl));
|
|
31733
31733
|
let zv = Pl;
|
|
31734
|
-
const xl = class xl extends
|
|
31734
|
+
const xl = class xl extends $f {
|
|
31735
31735
|
constructor(e, o) {
|
|
31736
31736
|
super(e, o);
|
|
31737
31737
|
m(this, "_czmESLocalPolygon");
|
|
@@ -31762,7 +31762,7 @@ const xl = class xl extends qf {
|
|
|
31762
31762
|
};
|
|
31763
31763
|
m(xl, "type", xl.register("ESCesiumViewer", _w.type, xl));
|
|
31764
31764
|
let Lv = xl;
|
|
31765
|
-
const Sl = class Sl extends
|
|
31765
|
+
const Sl = class Sl extends $f {
|
|
31766
31766
|
constructor(e, o) {
|
|
31767
31767
|
super(e, o);
|
|
31768
31768
|
m(this, "_czmGeoPolygon");
|
|
@@ -31906,7 +31906,7 @@ const Tl = class Tl extends qi {
|
|
|
31906
31906
|
const g = () => p.src = e.imgUrl;
|
|
31907
31907
|
g(), e.dispose(e.imgUrlChanged.disposableOn(g));
|
|
31908
31908
|
}
|
|
31909
|
-
const f =
|
|
31909
|
+
const f = pf(() => {
|
|
31910
31910
|
const g = o.getCameraInfo(), v = g == null ? void 0 : g.rotation[0];
|
|
31911
31911
|
p.style.transform = `rotate(-${v}deg)`;
|
|
31912
31912
|
});
|
|
@@ -32455,7 +32455,7 @@ const Il = class Il extends Kt {
|
|
|
32455
32455
|
return n.actived ? s.flyInParam ? super.flyIn(e, o) : r.positions ? (ge(n, s, o, r.positions, e), !0) : !1 : !1;
|
|
32456
32456
|
}
|
|
32457
32457
|
};
|
|
32458
|
-
m(Il, "type", Il.register("ESCesiumViewer",
|
|
32458
|
+
m(Il, "type", Il.register("ESCesiumViewer", Gp.type, Il));
|
|
32459
32459
|
let Wv = Il;
|
|
32460
32460
|
const Rl = class Rl extends qi {
|
|
32461
32461
|
constructor(e, o) {
|
|
@@ -32553,9 +32553,9 @@ const Dl = class Dl extends Me {
|
|
|
32553
32553
|
return n.actived ? s.flyToParam || s.flyInParam ? super.flyTo(e, o) : (wi(n, s, o, e, r, !0), !0) : !1;
|
|
32554
32554
|
}
|
|
32555
32555
|
};
|
|
32556
|
-
m(Dl, "type", Dl.register("ESCesiumViewer",
|
|
32556
|
+
m(Dl, "type", Dl.register("ESCesiumViewer", Np.type, Dl));
|
|
32557
32557
|
let $v = Dl;
|
|
32558
|
-
const kl = class kl extends
|
|
32558
|
+
const kl = class kl extends $f {
|
|
32559
32559
|
constructor(e, o) {
|
|
32560
32560
|
super(e, o);
|
|
32561
32561
|
m(this, "czmGeoPolyline");
|
|
@@ -32590,7 +32590,7 @@ const kl = class kl extends qf {
|
|
|
32590
32590
|
flowSpeed: e.flowSpeed ?? Ho.defaults.flowSpeed
|
|
32591
32591
|
});
|
|
32592
32592
|
else {
|
|
32593
|
-
const d = Object.assign({},
|
|
32593
|
+
const d = Object.assign({}, Tf[e.waterType]);
|
|
32594
32594
|
d.frequency && (d.frequency /= 10), d.waveVelocity && (d.waveVelocity /= 100), d.amplitude && (d.amplitude *= 100), this.updateWater(d);
|
|
32595
32595
|
}
|
|
32596
32596
|
};
|
|
@@ -32867,7 +32867,7 @@ const zl = class zl extends Xi {
|
|
|
32867
32867
|
return s.actived ? o.flyInParam ? super.flyIn(i, e) : (o.esImageryLayer.flyTo(i && i), o.flyOverEvent.emit(e, "over", s), !0) : !1;
|
|
32868
32868
|
}
|
|
32869
32869
|
};
|
|
32870
|
-
m(zl, "type", zl.register("ESCesiumViewer",
|
|
32870
|
+
m(zl, "type", zl.register("ESCesiumViewer", Op.type, zl));
|
|
32871
32871
|
let Yv = zl;
|
|
32872
32872
|
const Ll = class Ll extends Li {
|
|
32873
32873
|
constructor(e, o) {
|
|
@@ -32908,7 +32908,7 @@ const Ll = class Ll extends Li {
|
|
|
32908
32908
|
waterImage: e.waterImage ?? mo.defaults.waterImage
|
|
32909
32909
|
});
|
|
32910
32910
|
else {
|
|
32911
|
-
const d = Object.assign({},
|
|
32911
|
+
const d = Object.assign({}, Tf[e.waterType]);
|
|
32912
32912
|
d.frequency && (d.frequency /= 10), d.waveVelocity && (d.waveVelocity /= 100), d.amplitude && (d.amplitude *= 100), this.updateWater(d);
|
|
32913
32913
|
}
|
|
32914
32914
|
};
|
|
@@ -33006,7 +33006,7 @@ const Ol = class Ol extends Xi {
|
|
|
33006
33006
|
return n.actived ? s.flyInParam ? super.flyIn(e, o) : (r.flyTo(e && e), s.flyOverEvent.emit(o, "over", n), !0) : !1;
|
|
33007
33007
|
}
|
|
33008
33008
|
};
|
|
33009
|
-
m(Ol, "type", Ol.register("ESCesiumViewer",
|
|
33009
|
+
m(Ol, "type", Ol.register("ESCesiumViewer", Lp.type, Ol));
|
|
33010
33010
|
let Qv = Ol;
|
|
33011
33011
|
class K2 extends L {
|
|
33012
33012
|
constructor(i, e) {
|
|
@@ -33487,7 +33487,7 @@ class J2 extends L {
|
|
|
33487
33487
|
return n;
|
|
33488
33488
|
}
|
|
33489
33489
|
}
|
|
33490
|
-
function
|
|
33490
|
+
function Hp(t, i, e = "children", o = "dragType") {
|
|
33491
33491
|
const s = [];
|
|
33492
33492
|
return t.forEach((n) => {
|
|
33493
33493
|
if (n[o] && n[o] === "layer") {
|
|
@@ -33499,7 +33499,7 @@ function $p(t, i, e = "children", o = "dragType") {
|
|
|
33499
33499
|
i === "color" ? delete r.visable : delete r.color, s.push(r);
|
|
33500
33500
|
}
|
|
33501
33501
|
if (n[e] && n[e].length) {
|
|
33502
|
-
const r =
|
|
33502
|
+
const r = Hp(n[e], i, e, o);
|
|
33503
33503
|
r.length && s.push(...r);
|
|
33504
33504
|
}
|
|
33505
33505
|
}), s;
|
|
@@ -33514,7 +33514,7 @@ const Nl = class Nl extends Vh {
|
|
|
33514
33514
|
try {
|
|
33515
33515
|
let r = [];
|
|
33516
33516
|
typeof n == "string" ? r = JSON.parse(n) : r = n;
|
|
33517
|
-
const l =
|
|
33517
|
+
const l = Hp(r, "visable").map((c) => {
|
|
33518
33518
|
const d = typeof c.id == "string" ? `'${c.id}'` : `'${c.id.toString()}'`;
|
|
33519
33519
|
return [`\${${s}} === ` + d, c.visable.toString()];
|
|
33520
33520
|
});
|
|
@@ -33526,7 +33526,7 @@ const Nl = class Nl extends Vh {
|
|
|
33526
33526
|
try {
|
|
33527
33527
|
let r = [];
|
|
33528
33528
|
typeof n == "string" ? r = JSON.parse(n) : r = n;
|
|
33529
|
-
const l =
|
|
33529
|
+
const l = Hp(r, "color").map((c) => {
|
|
33530
33530
|
const d = typeof c.id == "string" ? `'${c.id}'` : `'${c.id.toString()}'`;
|
|
33531
33531
|
return [`\${${s}} === ` + d, c.color];
|
|
33532
33532
|
});
|
|
@@ -33891,7 +33891,7 @@ class eR extends L {
|
|
|
33891
33891
|
}
|
|
33892
33892
|
}
|
|
33893
33893
|
}
|
|
33894
|
-
var Dt = 63710088e-1,
|
|
33894
|
+
var Dt = 63710088e-1, qf = {
|
|
33895
33895
|
centimeters: Dt * 100,
|
|
33896
33896
|
centimetres: Dt * 100,
|
|
33897
33897
|
degrees: Dt / 111325,
|
|
@@ -33923,7 +33923,7 @@ var Dt = 63710088e-1, Xf = {
|
|
|
33923
33923
|
nauticalmiles: 1 / 1852,
|
|
33924
33924
|
radians: 1 / Dt,
|
|
33925
33925
|
yards: 1.0936133
|
|
33926
|
-
},
|
|
33926
|
+
}, $p = {
|
|
33927
33927
|
acres: 247105e-9,
|
|
33928
33928
|
centimeters: 1e4,
|
|
33929
33929
|
centimetres: 1e4,
|
|
@@ -33955,9 +33955,9 @@ function iR(t, i, e) {
|
|
|
33955
33955
|
case "MultiPoint":
|
|
33956
33956
|
return n_(i).geometry;
|
|
33957
33957
|
case "MultiLineString":
|
|
33958
|
-
return
|
|
33958
|
+
return Xf(i).geometry;
|
|
33959
33959
|
case "MultiPolygon":
|
|
33960
|
-
return
|
|
33960
|
+
return Yf(i).geometry;
|
|
33961
33961
|
default:
|
|
33962
33962
|
throw new Error(t + " is invalid");
|
|
33963
33963
|
}
|
|
@@ -34022,7 +34022,7 @@ function li(t, i) {
|
|
|
34022
34022
|
var e = { type: "FeatureCollection" };
|
|
34023
34023
|
return i.id && (e.id = i.id), i.bbox && (e.bbox = i.bbox), e.features = t, e;
|
|
34024
34024
|
}
|
|
34025
|
-
function
|
|
34025
|
+
function Xf(t, i, e) {
|
|
34026
34026
|
e === void 0 && (e = {});
|
|
34027
34027
|
var o = {
|
|
34028
34028
|
type: "MultiLineString",
|
|
@@ -34038,7 +34038,7 @@ function n_(t, i, e) {
|
|
|
34038
34038
|
};
|
|
34039
34039
|
return Ci(o, i, e);
|
|
34040
34040
|
}
|
|
34041
|
-
function
|
|
34041
|
+
function Yf(t, i, e) {
|
|
34042
34042
|
e === void 0 && (e = {});
|
|
34043
34043
|
var o = {
|
|
34044
34044
|
type: "MultiPolygon",
|
|
@@ -34060,22 +34060,22 @@ function aR(t, i) {
|
|
|
34060
34060
|
var e = Math.pow(10, i || 0);
|
|
34061
34061
|
return Math.round(t * e) / e;
|
|
34062
34062
|
}
|
|
34063
|
-
function
|
|
34063
|
+
function Zf(t, i) {
|
|
34064
34064
|
i === void 0 && (i = "kilometers");
|
|
34065
|
-
var e =
|
|
34065
|
+
var e = qf[i];
|
|
34066
34066
|
if (!e)
|
|
34067
34067
|
throw new Error(i + " units is invalid");
|
|
34068
34068
|
return t * e;
|
|
34069
34069
|
}
|
|
34070
|
-
function
|
|
34070
|
+
function Qf(t, i) {
|
|
34071
34071
|
i === void 0 && (i = "kilometers");
|
|
34072
|
-
var e =
|
|
34072
|
+
var e = qf[i];
|
|
34073
34073
|
if (!e)
|
|
34074
34074
|
throw new Error(i + " units is invalid");
|
|
34075
34075
|
return t / e;
|
|
34076
34076
|
}
|
|
34077
34077
|
function lR(t, i) {
|
|
34078
|
-
return r_(
|
|
34078
|
+
return r_(Qf(t, i));
|
|
34079
34079
|
}
|
|
34080
34080
|
function hR(t) {
|
|
34081
34081
|
var i = t % 360;
|
|
@@ -34092,15 +34092,15 @@ function ya(t) {
|
|
|
34092
34092
|
function cR(t, i, e) {
|
|
34093
34093
|
if (i === void 0 && (i = "kilometers"), e === void 0 && (e = "kilometers"), !(t >= 0))
|
|
34094
34094
|
throw new Error("length must be a positive number");
|
|
34095
|
-
return Qf(
|
|
34095
|
+
return Zf(Qf(t, i), e);
|
|
34096
34096
|
}
|
|
34097
34097
|
function dR(t, i, e) {
|
|
34098
34098
|
if (i === void 0 && (i = "meters"), e === void 0 && (e = "kilometers"), !(t >= 0))
|
|
34099
34099
|
throw new Error("area must be a positive number");
|
|
34100
|
-
var o =
|
|
34100
|
+
var o = $p[i];
|
|
34101
34101
|
if (!o)
|
|
34102
34102
|
throw new Error("invalid original units");
|
|
34103
|
-
var s =
|
|
34103
|
+
var s = $p[e];
|
|
34104
34104
|
if (!s)
|
|
34105
34105
|
throw new Error("invalid final units");
|
|
34106
34106
|
return t / o * s;
|
|
@@ -34108,7 +34108,7 @@ function dR(t, i, e) {
|
|
|
34108
34108
|
function Cd(t) {
|
|
34109
34109
|
return !isNaN(t) && t !== null && !Array.isArray(t);
|
|
34110
34110
|
}
|
|
34111
|
-
function
|
|
34111
|
+
function Kf(t) {
|
|
34112
34112
|
return !!t && t.constructor === Object;
|
|
34113
34113
|
}
|
|
34114
34114
|
function uR(t) {
|
|
@@ -34131,32 +34131,32 @@ function pR(t) {
|
|
|
34131
34131
|
}
|
|
34132
34132
|
const fR = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
34133
34133
|
__proto__: null,
|
|
34134
|
-
areaFactors:
|
|
34134
|
+
areaFactors: $p,
|
|
34135
34135
|
bearingToAzimuth: hR,
|
|
34136
34136
|
convertArea: dR,
|
|
34137
34137
|
convertLength: cR,
|
|
34138
34138
|
degreesToRadians: ya,
|
|
34139
34139
|
earthRadius: Dt,
|
|
34140
|
-
factors:
|
|
34140
|
+
factors: qf,
|
|
34141
34141
|
feature: Ci,
|
|
34142
34142
|
featureCollection: li,
|
|
34143
34143
|
geometry: iR,
|
|
34144
34144
|
geometryCollection: rR,
|
|
34145
34145
|
isNumber: Cd,
|
|
34146
|
-
isObject:
|
|
34146
|
+
isObject: Kf,
|
|
34147
34147
|
lengthToDegrees: lR,
|
|
34148
|
-
lengthToRadians:
|
|
34148
|
+
lengthToRadians: Qf,
|
|
34149
34149
|
lineString: Ei,
|
|
34150
34150
|
lineStrings: nR,
|
|
34151
|
-
multiLineString:
|
|
34151
|
+
multiLineString: Xf,
|
|
34152
34152
|
multiPoint: n_,
|
|
34153
|
-
multiPolygon:
|
|
34153
|
+
multiPolygon: Yf,
|
|
34154
34154
|
point: Et,
|
|
34155
34155
|
points: oR,
|
|
34156
34156
|
polygon: _t,
|
|
34157
34157
|
polygons: sR,
|
|
34158
34158
|
radiansToDegrees: r_,
|
|
34159
|
-
radiansToLength:
|
|
34159
|
+
radiansToLength: Zf,
|
|
34160
34160
|
round: aR,
|
|
34161
34161
|
unitsFactors: tR,
|
|
34162
34162
|
validateBBox: uR,
|
|
@@ -34207,7 +34207,7 @@ function mR(t, i) {
|
|
|
34207
34207
|
function po(t, i, e) {
|
|
34208
34208
|
e === void 0 && (e = {});
|
|
34209
34209
|
var o = _d(t), s = _d(i), n = ya(s[1] - o[1]), r = ya(s[0] - o[0]), a = ya(o[1]), l = ya(s[1]), c = Math.pow(Math.sin(n / 2), 2) + Math.pow(Math.sin(r / 2), 2) * Math.cos(a) * Math.cos(l);
|
|
34210
|
-
return
|
|
34210
|
+
return Zf(2 * Math.atan2(Math.sqrt(c), Math.sqrt(1 - c)), e.units);
|
|
34211
34211
|
}
|
|
34212
34212
|
function Tn(t, i, e) {
|
|
34213
34213
|
if (t !== null)
|
|
@@ -34350,7 +34350,7 @@ function CR(t) {
|
|
|
34350
34350
|
i.push(e);
|
|
34351
34351
|
}), i;
|
|
34352
34352
|
}
|
|
34353
|
-
function
|
|
34353
|
+
function Jf(t, i) {
|
|
34354
34354
|
var e, o, s, n, r, a, l, c, d, u, p = 0, f = t.type === "FeatureCollection", g = t.type === "Feature", v = f ? t.features.length : 1;
|
|
34355
34355
|
for (e = 0; e < v; e++) {
|
|
34356
34356
|
for (a = f ? t.features[e].geometry : g ? t.geometry : t, c = f ? t.features[e].properties : g ? t.properties : {}, d = f ? t.features[e].bbox : g ? t.bbox : void 0, u = f ? t.features[e].id : g ? t.id : void 0, l = a ? a.type === "GeometryCollection" : !1, r = l ? a.geometries.length : 1, s = 0; s < r; s++) {
|
|
@@ -34403,7 +34403,7 @@ function jf(t, i) {
|
|
|
34403
34403
|
}
|
|
34404
34404
|
function _R(t, i, e) {
|
|
34405
34405
|
var o = e;
|
|
34406
|
-
return
|
|
34406
|
+
return Jf(
|
|
34407
34407
|
t,
|
|
34408
34408
|
function(s, n, r, a, l) {
|
|
34409
34409
|
n === 0 && e === void 0 ? o = s : o = i(
|
|
@@ -34418,7 +34418,7 @@ function _R(t, i, e) {
|
|
|
34418
34418
|
), o;
|
|
34419
34419
|
}
|
|
34420
34420
|
function Bo(t, i) {
|
|
34421
|
-
|
|
34421
|
+
Jf(t, function(e, o, s, n, r) {
|
|
34422
34422
|
var a = e === null ? null : e.type;
|
|
34423
34423
|
switch (a) {
|
|
34424
34424
|
case null:
|
|
@@ -34557,7 +34557,7 @@ function xR(t, i, e) {
|
|
|
34557
34557
|
), o;
|
|
34558
34558
|
}
|
|
34559
34559
|
function SR(t, i) {
|
|
34560
|
-
if (i = i || {}, !
|
|
34560
|
+
if (i = i || {}, !Kf(i)) throw new Error("options is invalid");
|
|
34561
34561
|
var e = i.featureIndex || 0, o = i.multiFeatureIndex || 0, s = i.geometryIndex || 0, n = i.segmentIndex || 0, r = i.properties, a;
|
|
34562
34562
|
switch (t.type) {
|
|
34563
34563
|
case "FeatureCollection":
|
|
@@ -34621,7 +34621,7 @@ function SR(t, i) {
|
|
|
34621
34621
|
throw new Error("geojson is invalid");
|
|
34622
34622
|
}
|
|
34623
34623
|
function bR(t, i) {
|
|
34624
|
-
if (i = i || {}, !
|
|
34624
|
+
if (i = i || {}, !Kf(i)) throw new Error("options is invalid");
|
|
34625
34625
|
var e = i.featureIndex || 0, o = i.multiFeatureIndex || 0, s = i.geometryIndex || 0, n = i.coordIndex || 0, r = i.properties, a;
|
|
34626
34626
|
switch (t.type) {
|
|
34627
34627
|
case "FeatureCollection":
|
|
@@ -34675,7 +34675,7 @@ const TR = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
34675
34675
|
findSegment: SR,
|
|
34676
34676
|
flattenEach: Bo,
|
|
34677
34677
|
flattenReduce: PR,
|
|
34678
|
-
geomEach:
|
|
34678
|
+
geomEach: Jf,
|
|
34679
34679
|
geomReduce: _R,
|
|
34680
34680
|
lineEach: c_,
|
|
34681
34681
|
lineReduce: xR,
|
|
@@ -35059,7 +35059,7 @@ class XR extends L {
|
|
|
35059
35059
|
if (!o)
|
|
35060
35060
|
return u;
|
|
35061
35061
|
u.repeat = (p.repeat ?? 1) * o.repeat;
|
|
35062
|
-
const f = p.startTime ?? o.startTime, g = p.transmissionTime ?? o.transmissionTime ?? o.duration ?? Vo.defaults.duration, v = o.currentTime ?? Vo.defaults.currentTime, _ =
|
|
35062
|
+
const f = p.startTime ?? o.startTime, g = p.transmissionTime ?? o.transmissionTime ?? o.duration ?? Vo.defaults.duration, v = o.currentTime ?? Vo.defaults.currentTime, _ = lp((v - f) / g, 0, 1);
|
|
35063
35063
|
u.timeRatio = _ / u.repeat;
|
|
35064
35064
|
const P = p.color ?? o.color, w = p.bgColor ?? o.bgColor;
|
|
35065
35065
|
return u.color.splice(0, 4, ...P), u.bgColor.splice(0, 4, ...w), u.bidirectional = p.bidirectional ?? o.bidirectional, (o.routePathCallback && o.routePathCallback(u, c, d)) ?? u;
|
|
@@ -35412,7 +35412,7 @@ const Wl = class Wl extends Kt {
|
|
|
35412
35412
|
return n.actived ? s.flyInParam ? super.flyIn(e, o) : r.positions ? (ge(n, s, o, r.positions, e), !0) : !1 : !1;
|
|
35413
35413
|
}
|
|
35414
35414
|
};
|
|
35415
|
-
m(Wl, "type", Wl.register("ESCesiumViewer",
|
|
35415
|
+
m(Wl, "type", Wl.register("ESCesiumViewer", Up.type, Wl));
|
|
35416
35416
|
let r0 = Wl;
|
|
35417
35417
|
function Pn(t) {
|
|
35418
35418
|
var i = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
@@ -35680,7 +35680,7 @@ function JR(t) {
|
|
|
35680
35680
|
case "MultiLineString":
|
|
35681
35681
|
case "MultiPolygon":
|
|
35682
35682
|
case "GeometryCollection":
|
|
35683
|
-
return
|
|
35683
|
+
return jf(t);
|
|
35684
35684
|
default:
|
|
35685
35685
|
throw new Error("unknown GeoJSON type");
|
|
35686
35686
|
}
|
|
@@ -35696,7 +35696,7 @@ function m_(t) {
|
|
|
35696
35696
|
default:
|
|
35697
35697
|
i[e] = t[e];
|
|
35698
35698
|
}
|
|
35699
|
-
}), i.properties = v_(t.properties), i.geometry =
|
|
35699
|
+
}), i.properties = v_(t.properties), i.geometry = jf(t.geometry), i;
|
|
35700
35700
|
}
|
|
35701
35701
|
function v_(t) {
|
|
35702
35702
|
var i = {};
|
|
@@ -35721,10 +35721,10 @@ function jR(t) {
|
|
|
35721
35721
|
return m_(e);
|
|
35722
35722
|
}), i;
|
|
35723
35723
|
}
|
|
35724
|
-
function
|
|
35724
|
+
function jf(t) {
|
|
35725
35725
|
var i = { type: t.type };
|
|
35726
35726
|
return t.bbox && (i.bbox = t.bbox), t.type === "GeometryCollection" ? (i.geometries = t.geometries.map(function(e) {
|
|
35727
|
-
return
|
|
35727
|
+
return jf(e);
|
|
35728
35728
|
}), i) : (i.coordinates = y_(t.coordinates), i);
|
|
35729
35729
|
}
|
|
35730
35730
|
function y_(t) {
|
|
@@ -35839,7 +35839,7 @@ function oD(t, i) {
|
|
|
35839
35839
|
var e = t[0], o = t[1], s = i[0], n = i[1], r = e < s ? e : s, a = o < n ? o : n, l = e > s ? e : s, c = o > n ? o : n;
|
|
35840
35840
|
return [r, a, l, c];
|
|
35841
35841
|
}
|
|
35842
|
-
var
|
|
35842
|
+
var eg = { exports: {} }, w_ = {};
|
|
35843
35843
|
(function(t) {
|
|
35844
35844
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.earthRadius = 63710088e-1, t.factors = {
|
|
35845
35845
|
centimeters: t.earthRadius * 100,
|
|
@@ -36251,7 +36251,7 @@ function lD(t) {
|
|
|
36251
36251
|
i.push(e);
|
|
36252
36252
|
}), i;
|
|
36253
36253
|
}
|
|
36254
|
-
function
|
|
36254
|
+
function tg(t, i) {
|
|
36255
36255
|
var e, o, s, n, r, a, l, c, d, u, p = 0, f = t.type === "FeatureCollection", g = t.type === "Feature", v = f ? t.features.length : 1;
|
|
36256
36256
|
for (e = 0; e < v; e++) {
|
|
36257
36257
|
for (a = f ? t.features[e].geometry : g ? t.geometry : t, c = f ? t.features[e].properties : g ? t.properties : {}, d = f ? t.features[e].bbox : g ? t.bbox : void 0, u = f ? t.features[e].id : g ? t.id : void 0, l = a ? a.type === "GeometryCollection" : !1, r = l ? a.geometries.length : 1, s = 0; s < r; s++) {
|
|
@@ -36304,7 +36304,7 @@ function ig(t, i) {
|
|
|
36304
36304
|
}
|
|
36305
36305
|
function hD(t, i, e) {
|
|
36306
36306
|
var o = e;
|
|
36307
|
-
return
|
|
36307
|
+
return tg(
|
|
36308
36308
|
t,
|
|
36309
36309
|
function(s, n, r, a, l) {
|
|
36310
36310
|
n === 0 && e === void 0 ? o = s : o = i(
|
|
@@ -36319,7 +36319,7 @@ function hD(t, i, e) {
|
|
|
36319
36319
|
), o;
|
|
36320
36320
|
}
|
|
36321
36321
|
function jd(t, i) {
|
|
36322
|
-
|
|
36322
|
+
tg(t, function(e, o, s, n, r) {
|
|
36323
36323
|
var a = e === null ? null : e.type;
|
|
36324
36324
|
switch (a) {
|
|
36325
36325
|
case null:
|
|
@@ -36574,7 +36574,7 @@ vt.findPoint = fD;
|
|
|
36574
36574
|
vt.findSegment = pD;
|
|
36575
36575
|
vt.flattenEach = jd;
|
|
36576
36576
|
vt.flattenReduce = cD;
|
|
36577
|
-
vt.geomEach =
|
|
36577
|
+
vt.geomEach = tg;
|
|
36578
36578
|
vt.geomReduce = hD;
|
|
36579
36579
|
vt.lineEach = x_;
|
|
36580
36580
|
vt.lineReduce = uD;
|
|
@@ -36582,19 +36582,19 @@ vt.propEach = C_;
|
|
|
36582
36582
|
vt.propReduce = rD;
|
|
36583
36583
|
vt.segmentEach = P_;
|
|
36584
36584
|
vt.segmentReduce = dD;
|
|
36585
|
-
var
|
|
36585
|
+
var ig = {};
|
|
36586
36586
|
const gD = /* @__PURE__ */ oC(TR);
|
|
36587
|
-
Object.defineProperty(
|
|
36587
|
+
Object.defineProperty(ig, "__esModule", { value: !0 });
|
|
36588
36588
|
var mD = gD;
|
|
36589
|
-
function
|
|
36589
|
+
function qp(t) {
|
|
36590
36590
|
var i = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
36591
36591
|
return mD.coordEach(t, function(e) {
|
|
36592
36592
|
i[0] > e[0] && (i[0] = e[0]), i[1] > e[1] && (i[1] = e[1]), i[2] < e[0] && (i[2] = e[0]), i[3] < e[1] && (i[3] = e[1]);
|
|
36593
36593
|
}), i;
|
|
36594
36594
|
}
|
|
36595
|
-
|
|
36596
|
-
|
|
36597
|
-
var ji = QR, S_ = w_, b_ = vt, Un =
|
|
36595
|
+
qp.default = qp;
|
|
36596
|
+
ig.default = qp;
|
|
36597
|
+
var ji = QR, S_ = w_, b_ = vt, Un = ig.default, vD = b_.featureEach;
|
|
36598
36598
|
b_.coordEach;
|
|
36599
36599
|
S_.polygon;
|
|
36600
36600
|
var u0 = S_.featureCollection;
|
|
@@ -36645,11 +36645,11 @@ function T_(t) {
|
|
|
36645
36645
|
};
|
|
36646
36646
|
}, i;
|
|
36647
36647
|
}
|
|
36648
|
-
|
|
36649
|
-
|
|
36650
|
-
var yD =
|
|
36648
|
+
eg.exports = T_;
|
|
36649
|
+
eg.exports.default = T_;
|
|
36650
|
+
var yD = eg.exports;
|
|
36651
36651
|
const wD = /* @__PURE__ */ qd(yD);
|
|
36652
|
-
function
|
|
36652
|
+
function og(t, i) {
|
|
36653
36653
|
var e = {}, o = [];
|
|
36654
36654
|
if (t.type === "LineString" && (t = Ci(t)), i.type === "LineString" && (i = Ci(i)), t.type === "Feature" && i.type === "Feature" && t.geometry !== null && i.geometry !== null && t.geometry.type === "LineString" && i.geometry.type === "LineString" && t.geometry.coordinates.length === 2 && i.geometry.coordinates.length === 2) {
|
|
36655
36655
|
var s = p0(t, i);
|
|
@@ -36846,7 +36846,7 @@ function M_(t, i, e) {
|
|
|
36846
36846
|
}
|
|
36847
36847
|
return li(o);
|
|
36848
36848
|
}
|
|
36849
|
-
function
|
|
36849
|
+
function Xp(t, i) {
|
|
36850
36850
|
i === void 0 && (i = {});
|
|
36851
36851
|
var e = uo(t);
|
|
36852
36852
|
switch (!i.properties && t.type === "Feature" && (i.properties = t.properties), e.type) {
|
|
@@ -36871,7 +36871,7 @@ function RD(t, i) {
|
|
|
36871
36871
|
}), li(n);
|
|
36872
36872
|
}
|
|
36873
36873
|
function I_(t, i) {
|
|
36874
|
-
return t.length > 1 ?
|
|
36874
|
+
return t.length > 1 ? Xf(t, i) : Ei(t[0], i);
|
|
36875
36875
|
}
|
|
36876
36876
|
var f0 = Object.prototype.toString, R_ = function(i) {
|
|
36877
36877
|
var e = f0.call(i), o = e === "[object Arguments]";
|
|
@@ -37006,7 +37006,7 @@ var D_ = Zc, k_ = function() {
|
|
|
37006
37006
|
return !1;
|
|
37007
37007
|
}
|
|
37008
37008
|
return !0;
|
|
37009
|
-
}, zD = k_,
|
|
37009
|
+
}, zD = k_, sg = function() {
|
|
37010
37010
|
return zD() && !!Symbol.toStringTag;
|
|
37011
37011
|
}, F_ = Object, z_ = Error, LD = EvalError, OD = RangeError, BD = ReferenceError, L_ = SyntaxError, Jr = TypeError, VD = URIError, ND = Math.abs, UD = Math.floor, GD = Math.max, WD = Math.min, HD = Math.pow, $D = Math.round, qD = Number.isNaN || function(i) {
|
|
37012
37012
|
return i !== i;
|
|
@@ -37073,11 +37073,11 @@ var O_ = typeof Reflect < "u" && Reflect.getPrototypeOf || null, KD = F_, B_ = K
|
|
|
37073
37073
|
c.prototype = e.prototype, s.prototype = new c(), c.prototype = null;
|
|
37074
37074
|
}
|
|
37075
37075
|
return s;
|
|
37076
|
-
}, n3 = s3, lc = Function.prototype.bind || n3,
|
|
37076
|
+
}, n3 = s3, lc = Function.prototype.bind || n3, ng = Function.prototype.call, rg = Function.prototype.apply, r3 = typeof Reflect < "u" && Reflect && Reflect.apply, a3 = lc, l3 = rg, h3 = ng, c3 = r3, V_ = c3 || a3.call(h3, l3), d3 = lc, u3 = Jr, p3 = ng, f3 = V_, ag = function(i) {
|
|
37077
37077
|
if (i.length < 1 || typeof i[0] != "function")
|
|
37078
37078
|
throw new u3("a function is required");
|
|
37079
37079
|
return f3(d3, p3, i);
|
|
37080
|
-
}, g3 =
|
|
37080
|
+
}, g3 = ag, C0 = jr, N_;
|
|
37081
37081
|
try {
|
|
37082
37082
|
N_ = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
37083
37083
|
[].__proto__ === Array.prototype;
|
|
@@ -37119,7 +37119,7 @@ var Hu = !!N_ && C0 && C0(
|
|
|
37119
37119
|
return qu;
|
|
37120
37120
|
}
|
|
37121
37121
|
}
|
|
37122
|
-
}() : qu, Gn = QD()(), Ct = G_, z3 = B_, L3 = O_, $_ =
|
|
37122
|
+
}() : qu, Gn = QD()(), Ct = G_, z3 = B_, L3 = O_, $_ = rg, hc = ng, Yn = {}, O3 = typeof Uint8Array > "u" || !Ct ? Ae : Ct(Uint8Array), Js = {
|
|
37123
37123
|
__proto__: null,
|
|
37124
37124
|
"%AggregateError%": typeof AggregateError > "u" ? Ae : AggregateError,
|
|
37125
37125
|
"%Array%": Array,
|
|
@@ -37332,7 +37332,7 @@ var V3 = function t(i) {
|
|
|
37332
37332
|
}
|
|
37333
37333
|
}
|
|
37334
37334
|
return a;
|
|
37335
|
-
}, X_ = q_, Y_ =
|
|
37335
|
+
}, X_ = q_, Y_ = ag, X3 = Y_([X_("%String.prototype.indexOf%")]), lg = function(i, e) {
|
|
37336
37336
|
var o = (
|
|
37337
37337
|
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
37338
37338
|
X_(i, !!e)
|
|
@@ -37341,15 +37341,15 @@ var V3 = function t(i) {
|
|
|
37341
37341
|
/** @type {const} */
|
|
37342
37342
|
[o]
|
|
37343
37343
|
) : o;
|
|
37344
|
-
}, Y3 =
|
|
37345
|
-
return Y3 && i && typeof i == "object" && Symbol.toStringTag in i ? !1 :
|
|
37344
|
+
}, Y3 = sg(), Z3 = lg, Yp = Z3("Object.prototype.toString"), tu = function(i) {
|
|
37345
|
+
return Y3 && i && typeof i == "object" && Symbol.toStringTag in i ? !1 : Yp(i) === "[object Arguments]";
|
|
37346
37346
|
}, Z_ = function(i) {
|
|
37347
|
-
return tu(i) ? !0 : i !== null && typeof i == "object" && "length" in i && typeof i.length == "number" && i.length >= 0 &&
|
|
37347
|
+
return tu(i) ? !0 : i !== null && typeof i == "object" && "length" in i && typeof i.length == "number" && i.length >= 0 && Yp(i) !== "[object Array]" && "callee" in i && Yp(i.callee) === "[object Function]";
|
|
37348
37348
|
}, Q3 = function() {
|
|
37349
37349
|
return tu(arguments);
|
|
37350
37350
|
}();
|
|
37351
37351
|
tu.isLegacyArguments = Z_;
|
|
37352
|
-
var K3 = Q3 ? tu : Z_, E0 = eu, J3 = L_, Wn = Jr, A0 = jr,
|
|
37352
|
+
var K3 = Q3 ? tu : Z_, E0 = eu, J3 = L_, Wn = Jr, A0 = jr, hg = function(i, e, o) {
|
|
37353
37353
|
if (!i || typeof i != "object" && typeof i != "function")
|
|
37354
37354
|
throw new Wn("`obj` must be an object or a function`");
|
|
37355
37355
|
if (typeof e != "string" && typeof e != "symbol")
|
|
@@ -37374,21 +37374,21 @@ var K3 = Q3 ? tu : Z_, E0 = eu, J3 = L_, Wn = Jr, A0 = jr, cg = function(i, e, o
|
|
|
37374
37374
|
i[e] = o;
|
|
37375
37375
|
else
|
|
37376
37376
|
throw new J3("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
37377
|
-
},
|
|
37378
|
-
return !!
|
|
37377
|
+
}, Zp = eu, Q_ = function() {
|
|
37378
|
+
return !!Zp;
|
|
37379
37379
|
};
|
|
37380
37380
|
Q_.hasArrayLengthDefineBug = function() {
|
|
37381
|
-
if (!
|
|
37381
|
+
if (!Zp)
|
|
37382
37382
|
return null;
|
|
37383
37383
|
try {
|
|
37384
|
-
return
|
|
37384
|
+
return Zp([], "length", { value: 1 }).length !== 1;
|
|
37385
37385
|
} catch {
|
|
37386
37386
|
return !0;
|
|
37387
37387
|
}
|
|
37388
37388
|
};
|
|
37389
|
-
var
|
|
37389
|
+
var cg = Q_, j3 = D_, ek = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", tk = Object.prototype.toString, ik = Array.prototype.concat, M0 = hg, ok = function(t) {
|
|
37390
37390
|
return typeof t == "function" && tk.call(t) === "[object Function]";
|
|
37391
|
-
}, K_ =
|
|
37391
|
+
}, K_ = cg(), sk = function(t, i, e, o) {
|
|
37392
37392
|
if (i in t) {
|
|
37393
37393
|
if (o === !0) {
|
|
37394
37394
|
if (t[i] === e)
|
|
@@ -37404,7 +37404,7 @@ var dg = Q_, j3 = D_, ek = typeof Symbol == "function" && typeof Symbol("foo") =
|
|
|
37404
37404
|
sk(t, o[s], i[o[s]], e[o[s]]);
|
|
37405
37405
|
};
|
|
37406
37406
|
J_.supportsDescriptors = !!K_;
|
|
37407
|
-
var dc = J_, j_ = { exports: {} }, nk = q_, I0 =
|
|
37407
|
+
var dc = J_, j_ = { exports: {} }, nk = q_, I0 = hg, rk = cg(), R0 = jr, D0 = Jr, ak = nk("%Math.floor%"), lk = function(i, e) {
|
|
37408
37408
|
if (typeof i != "function")
|
|
37409
37409
|
throw new D0("`fn` is not a function");
|
|
37410
37410
|
if (typeof e != "number" || e < 0 || e > 4294967295 || ak(e) !== e)
|
|
@@ -37427,11 +37427,11 @@ var dc = J_, j_ = { exports: {} }, nk = q_, I0 = cg, rk = dg(), R0 = jr, D0 = Jr
|
|
|
37427
37427
|
"length",
|
|
37428
37428
|
e
|
|
37429
37429
|
)), i;
|
|
37430
|
-
}, hk = lc, ck =
|
|
37430
|
+
}, hk = lc, ck = rg, dk = V_, uk = function() {
|
|
37431
37431
|
return dk(hk, ck, arguments);
|
|
37432
37432
|
};
|
|
37433
37433
|
(function(t) {
|
|
37434
|
-
var i = lk, e = eu, o =
|
|
37434
|
+
var i = lk, e = eu, o = ag, s = uk;
|
|
37435
37435
|
t.exports = function(r) {
|
|
37436
37436
|
var a = o(arguments), l = r.length - (arguments.length - 1);
|
|
37437
37437
|
return i(
|
|
@@ -37460,7 +37460,7 @@ vk(s1, {
|
|
|
37460
37460
|
implementation: wk,
|
|
37461
37461
|
shim: Ck
|
|
37462
37462
|
});
|
|
37463
|
-
var _k = s1, F0 =
|
|
37463
|
+
var _k = s1, F0 = lg, Pk = sg(), xk = W_, Sk = jr, Qp;
|
|
37464
37464
|
if (Pk) {
|
|
37465
37465
|
var bk = F0("RegExp.prototype.exec"), z0 = {}, Xu = function() {
|
|
37466
37466
|
throw z0;
|
|
@@ -37468,7 +37468,7 @@ if (Pk) {
|
|
|
37468
37468
|
toString: Xu,
|
|
37469
37469
|
valueOf: Xu
|
|
37470
37470
|
};
|
|
37471
|
-
typeof Symbol.toPrimitive == "symbol" && (L0[Symbol.toPrimitive] = Xu),
|
|
37471
|
+
typeof Symbol.toPrimitive == "symbol" && (L0[Symbol.toPrimitive] = Xu), Qp = function(i) {
|
|
37472
37472
|
if (!i || typeof i != "object")
|
|
37473
37473
|
return !1;
|
|
37474
37474
|
var e = (
|
|
@@ -37494,11 +37494,11 @@ if (Pk) {
|
|
|
37494
37494
|
};
|
|
37495
37495
|
} else {
|
|
37496
37496
|
var Tk = F0("Object.prototype.toString"), Ek = "[object RegExp]";
|
|
37497
|
-
|
|
37497
|
+
Qp = function(i) {
|
|
37498
37498
|
return !i || typeof i != "object" && typeof i != "function" ? !1 : Tk(i) === Ek;
|
|
37499
37499
|
};
|
|
37500
37500
|
}
|
|
37501
|
-
var Ak =
|
|
37501
|
+
var Ak = Qp, Xh = function() {
|
|
37502
37502
|
return typeof (function() {
|
|
37503
37503
|
}).name == "string";
|
|
37504
37504
|
}, xa = Object.getOwnPropertyDescriptor;
|
|
@@ -37520,7 +37520,7 @@ Xh.boundFunctionsHaveNames = function() {
|
|
|
37520
37520
|
return Xh() && typeof Mk == "function" && (function() {
|
|
37521
37521
|
}).bind().name !== "";
|
|
37522
37522
|
};
|
|
37523
|
-
var Ik = Xh, O0 =
|
|
37523
|
+
var Ik = Xh, O0 = hg, Rk = cg(), Dk = Ik.functionsHaveConfigurableNames(), kk = Jr, Fk = function(i, e) {
|
|
37524
37524
|
if (typeof i != "function")
|
|
37525
37525
|
throw new kk("`fn` is not a function");
|
|
37526
37526
|
var o = arguments.length > 2 && !!arguments[2];
|
|
@@ -37575,13 +37575,13 @@ Yk(l1, {
|
|
|
37575
37575
|
implementation: Qk,
|
|
37576
37576
|
shim: Kk
|
|
37577
37577
|
});
|
|
37578
|
-
var Jk = l1, h1 =
|
|
37578
|
+
var Jk = l1, h1 = lg, jk = h1("Date.prototype.getDay"), eF = function(i) {
|
|
37579
37579
|
try {
|
|
37580
37580
|
return jk(i), !0;
|
|
37581
37581
|
} catch {
|
|
37582
37582
|
return !1;
|
|
37583
37583
|
}
|
|
37584
|
-
}, tF = h1("Object.prototype.toString"), iF = "[object Date]", oF =
|
|
37584
|
+
}, tF = h1("Object.prototype.toString"), iF = "[object Date]", oF = sg(), sF = function(i) {
|
|
37585
37585
|
return typeof i != "object" || i === null ? !1 : oF ? eF(i) : tF(i) === iF;
|
|
37586
37586
|
}, V0 = D_, N0 = K3, U0 = _k, G0 = Ak, W0 = Jk, H0 = sF, $0 = Date.prototype.getTime;
|
|
37587
37587
|
function c1(t, i, e) {
|
|
@@ -37685,7 +37685,7 @@ function Y0(t, i) {
|
|
|
37685
37685
|
return !1;
|
|
37686
37686
|
}
|
|
37687
37687
|
function hF(t, i) {
|
|
37688
|
-
var e =
|
|
37688
|
+
var e = og(t, i);
|
|
37689
37689
|
return e.features.length > 0;
|
|
37690
37690
|
}
|
|
37691
37691
|
function Z0(t, i) {
|
|
@@ -37694,7 +37694,7 @@ function Z0(t, i) {
|
|
|
37694
37694
|
if (Xt(s, t))
|
|
37695
37695
|
return !0;
|
|
37696
37696
|
}
|
|
37697
|
-
var n =
|
|
37697
|
+
var n = og(i, Xp(t));
|
|
37698
37698
|
return n.features.length > 0;
|
|
37699
37699
|
}
|
|
37700
37700
|
function cF(t, i) {
|
|
@@ -37708,7 +37708,7 @@ function cF(t, i) {
|
|
|
37708
37708
|
if (Xt(a, t))
|
|
37709
37709
|
return !0;
|
|
37710
37710
|
}
|
|
37711
|
-
var l =
|
|
37711
|
+
var l = og(Xp(t), Xp(i));
|
|
37712
37712
|
return l.features.length > 0;
|
|
37713
37713
|
}
|
|
37714
37714
|
function dF(t, i, e) {
|
|
@@ -37970,15 +37970,15 @@ function K0(t, i, e) {
|
|
|
37970
37970
|
function _F(t, i, e) {
|
|
37971
37971
|
return i === null ? t : (t === null || (i = ns(t.key, i, e), i.left = t), i);
|
|
37972
37972
|
}
|
|
37973
|
-
function
|
|
37973
|
+
function Kp(t, i, e, o, s) {
|
|
37974
37974
|
if (t) {
|
|
37975
37975
|
o("" + i + (e ? "└── " : "├── ") + s(t) + `
|
|
37976
37976
|
`);
|
|
37977
37977
|
var n = i + (e ? " " : "│ ");
|
|
37978
|
-
t.left &&
|
|
37978
|
+
t.left && Kp(t.left, n, !1, o, s), t.right && Kp(t.right, n, !0, o, s);
|
|
37979
37979
|
}
|
|
37980
37980
|
}
|
|
37981
|
-
var
|
|
37981
|
+
var dg = (
|
|
37982
37982
|
/** @class */
|
|
37983
37983
|
function() {
|
|
37984
37984
|
function t(i) {
|
|
@@ -38114,11 +38114,11 @@ var ug = (
|
|
|
38114
38114
|
}, t.prototype.load = function(i, e, o) {
|
|
38115
38115
|
e === void 0 && (e = []), o === void 0 && (o = !1);
|
|
38116
38116
|
var s = i.length, n = this._comparator;
|
|
38117
|
-
if (o &&
|
|
38118
|
-
this._root =
|
|
38117
|
+
if (o && ef(i, e, 0, s - 1, n), this._root === null)
|
|
38118
|
+
this._root = Jp(i, e, 0, s), this._size = s;
|
|
38119
38119
|
else {
|
|
38120
38120
|
var r = SF(this.toList(), PF(i, e), n);
|
|
38121
|
-
s = this._size + s, this._root =
|
|
38121
|
+
s = this._size + s, this._root = jp({ head: r }, 0, s);
|
|
38122
38122
|
}
|
|
38123
38123
|
return this;
|
|
38124
38124
|
}, t.prototype.isEmpty = function() {
|
|
@@ -38140,7 +38140,7 @@ var ug = (
|
|
|
38140
38140
|
return String(o.key);
|
|
38141
38141
|
});
|
|
38142
38142
|
var e = [];
|
|
38143
|
-
return
|
|
38143
|
+
return Kp(this._root, "", !0, function(o) {
|
|
38144
38144
|
return e.push(o);
|
|
38145
38145
|
}, i), e.join("");
|
|
38146
38146
|
}, t.prototype.update = function(i, e, o) {
|
|
@@ -38174,11 +38174,11 @@ var ug = (
|
|
|
38174
38174
|
}, t;
|
|
38175
38175
|
}()
|
|
38176
38176
|
);
|
|
38177
|
-
function
|
|
38177
|
+
function Jp(t, i, e, o) {
|
|
38178
38178
|
var s = o - e;
|
|
38179
38179
|
if (s > 0) {
|
|
38180
38180
|
var n = e + Math.floor(s / 2), r = t[n], a = i[n], l = new gs(r, a);
|
|
38181
|
-
return l.left =
|
|
38181
|
+
return l.left = Jp(t, i, e, n), l.right = Jp(t, i, n + 1, o), l;
|
|
38182
38182
|
}
|
|
38183
38183
|
return null;
|
|
38184
38184
|
}
|
|
@@ -38192,11 +38192,11 @@ function xF(t) {
|
|
|
38192
38192
|
i ? (e.push(i), i = i.left) : e.length > 0 ? (i = n = n.next = e.pop(), i = i.right) : o = !0;
|
|
38193
38193
|
return n.next = null, s.next;
|
|
38194
38194
|
}
|
|
38195
|
-
function
|
|
38195
|
+
function jp(t, i, e) {
|
|
38196
38196
|
var o = e - i;
|
|
38197
38197
|
if (o > 0) {
|
|
38198
|
-
var s = i + Math.floor(o / 2), n =
|
|
38199
|
-
return r.left = n, t.head = t.head.next, r.right =
|
|
38198
|
+
var s = i + Math.floor(o / 2), n = jp(t, i, s), r = t.head;
|
|
38199
|
+
return r.left = n, t.head = t.head.next, r.right = jp(t, s + 1, e), r;
|
|
38200
38200
|
}
|
|
38201
38201
|
return null;
|
|
38202
38202
|
}
|
|
@@ -38205,7 +38205,7 @@ function SF(t, i, e) {
|
|
|
38205
38205
|
e(n.key, r.key) < 0 ? (s.next = n, n = n.next) : (s.next = r, r = r.next), s = s.next;
|
|
38206
38206
|
return n !== null ? s.next = n : r !== null && (s.next = r), o.next;
|
|
38207
38207
|
}
|
|
38208
|
-
function
|
|
38208
|
+
function ef(t, i, e, o, s) {
|
|
38209
38209
|
if (!(e >= o)) {
|
|
38210
38210
|
for (var n = t[e + o >> 1], r = e - 1, a = o + 1; ; ) {
|
|
38211
38211
|
do
|
|
@@ -38219,7 +38219,7 @@ function tf(t, i, e, o, s) {
|
|
|
38219
38219
|
var l = t[r];
|
|
38220
38220
|
t[r] = t[a], t[a] = l, l = i[r], i[r] = i[a], i[a] = l;
|
|
38221
38221
|
}
|
|
38222
|
-
|
|
38222
|
+
ef(t, i, e, a, s), ef(t, i, a + 1, o, s);
|
|
38223
38223
|
}
|
|
38224
38224
|
}
|
|
38225
38225
|
const Mo = 11102230246251565e-32, Rt = 134217729, bF = (3 + 8 * Mo) * Mo;
|
|
@@ -38263,7 +38263,7 @@ function RF(t, i, e, o, s, n) {
|
|
|
38263
38263
|
const r = (i - n) * (e - s), a = (t - s) * (o - n), l = r - a, c = Math.abs(r + a);
|
|
38264
38264
|
return Math.abs(l) >= EF * c ? l : -IF(t, i, e, o, s, n, c);
|
|
38265
38265
|
}
|
|
38266
|
-
const fa = (t, i) => t.ll.x <= i.x && i.x <= t.ur.x && t.ll.y <= i.y && i.y <= t.ur.y,
|
|
38266
|
+
const fa = (t, i) => t.ll.x <= i.x && i.x <= t.ur.x && t.ll.y <= i.y && i.y <= t.ur.y, tf = (t, i) => {
|
|
38267
38267
|
if (i.ur.x < t.ll.x || t.ur.x < i.ll.x || i.ur.y < t.ll.y || t.ur.y < i.ll.y) return null;
|
|
38268
38268
|
const e = t.ll.x < i.ll.x ? i.ll.x : t.ll.x, o = t.ur.x < i.ur.x ? t.ur.x : i.ur.x, s = t.ll.y < i.ll.y ? i.ll.y : t.ll.y, n = t.ur.y < i.ur.y ? t.ur.y : i.ur.y;
|
|
38269
38269
|
return {
|
|
@@ -38301,7 +38301,7 @@ class kF {
|
|
|
38301
38301
|
}
|
|
38302
38302
|
class iy {
|
|
38303
38303
|
constructor() {
|
|
38304
|
-
this.tree = new
|
|
38304
|
+
this.tree = new dg(), this.round(0);
|
|
38305
38305
|
}
|
|
38306
38306
|
// Note: this can rounds input values backwards or forwards.
|
|
38307
38307
|
// You might ask, why not restrict this to just rounding
|
|
@@ -38574,7 +38574,7 @@ class ds {
|
|
|
38574
38574
|
* Else, return null.
|
|
38575
38575
|
*/
|
|
38576
38576
|
getIntersection(i) {
|
|
38577
|
-
const e = this.bbox(), o = i.bbox(), s =
|
|
38577
|
+
const e = this.bbox(), o = i.bbox(), s = tf(e, o);
|
|
38578
38578
|
if (s === null) return null;
|
|
38579
38579
|
const n = this.leftSE.point, r = this.rightSE.point, a = i.leftSE.point, l = i.rightSE.point, c = fa(e, a) && this.comparePoint(a) === 0, d = fa(o, n) && i.comparePoint(n) === 0, u = fa(e, l) && this.comparePoint(l) === 0, p = fa(o, r) && i.comparePoint(r) === 0;
|
|
38580
38580
|
if (d && c)
|
|
@@ -38953,7 +38953,7 @@ class VF {
|
|
|
38953
38953
|
class NF {
|
|
38954
38954
|
constructor(i) {
|
|
38955
38955
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ds.compare;
|
|
38956
|
-
this.queue = i, this.tree = new
|
|
38956
|
+
this.queue = i, this.tree = new dg(e), this.segments = [];
|
|
38957
38957
|
}
|
|
38958
38958
|
process(i) {
|
|
38959
38959
|
const e = i.segment, o = [];
|
|
@@ -39034,15 +39034,15 @@ class GF {
|
|
|
39034
39034
|
const u = s[0];
|
|
39035
39035
|
let p = 1;
|
|
39036
39036
|
for (; p < s.length; )
|
|
39037
|
-
|
|
39037
|
+
tf(s[p].bbox, u.bbox) !== null ? p++ : s.splice(p, 1);
|
|
39038
39038
|
}
|
|
39039
39039
|
if (Gi.type === "intersection")
|
|
39040
39040
|
for (let u = 0, p = s.length; u < p; u++) {
|
|
39041
39041
|
const f = s[u];
|
|
39042
39042
|
for (let g = u + 1, v = s.length; g < v; g++)
|
|
39043
|
-
if (
|
|
39043
|
+
if (tf(f.bbox, s[g].bbox) === null) return [];
|
|
39044
39044
|
}
|
|
39045
|
-
const n = new
|
|
39045
|
+
const n = new dg(bi.compare);
|
|
39046
39046
|
for (let u = 0, p = s.length; u < p; u++) {
|
|
39047
39047
|
const f = s[u].getSweepEvents();
|
|
39048
39048
|
for (let g = 0, v = f.length; g < v; g++)
|
|
@@ -39099,7 +39099,7 @@ var XF = {
|
|
|
39099
39099
|
function Ed(t, i, e) {
|
|
39100
39100
|
e === void 0 && (e = {});
|
|
39101
39101
|
var o = uo(t), s = uo(i), n = XF.intersection(o.coordinates, s.coordinates);
|
|
39102
|
-
return n.length === 0 ? null : n.length === 1 ? _t(n[0], e.properties) :
|
|
39102
|
+
return n.length === 0 ? null : n.length === 1 ? _t(n[0], e.properties) : Yf(n, e.properties);
|
|
39103
39103
|
}
|
|
39104
39104
|
function YF(t, i, e) {
|
|
39105
39105
|
e === void 0 && (e = {});
|
|
@@ -39878,7 +39878,7 @@ const ql = class ql extends qi {
|
|
|
39878
39878
|
g.innerText = `Cesium 版本 : ${h.VERSION} `;
|
|
39879
39879
|
let v;
|
|
39880
39880
|
const _ = () => {
|
|
39881
|
-
e.show ? (d.style.display = "flex", v = this.disposeVar(
|
|
39881
|
+
e.show ? (d.style.display = "flex", v = this.disposeVar(pf(
|
|
39882
39882
|
() => {
|
|
39883
39883
|
var E;
|
|
39884
39884
|
let P = "", w = "";
|
|
@@ -39989,7 +39989,7 @@ const Xl = class Xl extends qi {
|
|
|
39989
39989
|
{
|
|
39990
39990
|
let V;
|
|
39991
39991
|
const G = () => {
|
|
39992
|
-
e.show ? (d.style.display = "block", V = this.disposeVar(
|
|
39992
|
+
e.show ? (d.style.display = "block", V = this.disposeVar(pf(
|
|
39993
39993
|
() => {
|
|
39994
39994
|
var y;
|
|
39995
39995
|
let W = "";
|
|
@@ -41509,7 +41509,7 @@ const is = class is extends mi {
|
|
|
41509
41509
|
return e.pointerMoveEvent.don((n) => {
|
|
41510
41510
|
if (!n.pointerEvent || !e.viewer) return;
|
|
41511
41511
|
const r = oo(qt(n.pointerEvent));
|
|
41512
|
-
if (!
|
|
41512
|
+
if (!vf(e.viewer.scene, Ze(this._opInfo.originPosition.value), r, o)) return;
|
|
41513
41513
|
const a = this._opInfo.originPosition.value[2] - this._opInfo.draggingStartPosition.value[2];
|
|
41514
41514
|
if (ve(o, s)) {
|
|
41515
41515
|
this._opInfo.movingPosition.value = s;
|
|
@@ -41681,7 +41681,7 @@ ae(vs.prototype, vs.createDefaultProps);
|
|
|
41681
41681
|
function Ay(t, i, e) {
|
|
41682
41682
|
t.xAxisColor = [1, 0, 0, 0.99], t.yAxisColor = [0, 1, 0, 0.99], t.zAxisColor = [0, 0, 1, 0.99], i === "x" ? t.xAxisColor = e ? [1, 1, 0, 0.8] : [1, 1, 0, 0.99] : i === "y" ? t.yAxisColor = e ? [1, 1, 0, 0.8] : [1, 1, 0, 0.99] : i === "z" ? t.zAxisColor = e ? [1, 1, 0, 0.8] : [1, 1, 0, 0.99] : i === "xy" && (t.xAxisColor = e ? [1, 1, 0, 0.8] : [1, 1, 0, 0.99], t.yAxisColor = e ? [1, 1, 0, 0.8] : [1, 1, 0, 0.99]);
|
|
41683
41683
|
}
|
|
41684
|
-
class
|
|
41684
|
+
class ug extends Bd {
|
|
41685
41685
|
constructor(e) {
|
|
41686
41686
|
super(e);
|
|
41687
41687
|
m(this, "_valid", !1);
|
|
@@ -41717,7 +41717,7 @@ class pg extends Bd {
|
|
|
41717
41717
|
return kx(this.scene, o, this.normal, s);
|
|
41718
41718
|
}
|
|
41719
41719
|
}
|
|
41720
|
-
class Iz extends
|
|
41720
|
+
class Iz extends ug {
|
|
41721
41721
|
constructor(i) {
|
|
41722
41722
|
super(i);
|
|
41723
41723
|
{
|
|
@@ -41737,7 +41737,7 @@ class Iz extends pg {
|
|
|
41737
41737
|
}
|
|
41738
41738
|
}
|
|
41739
41739
|
}
|
|
41740
|
-
class Rz extends
|
|
41740
|
+
class Rz extends ug {
|
|
41741
41741
|
constructor(i) {
|
|
41742
41742
|
super(i);
|
|
41743
41743
|
const e = () => {
|
|
@@ -41765,7 +41765,7 @@ class Rz extends pg {
|
|
|
41765
41765
|
e(), this.dispose(this.sceneObject.positionChanged.disposableOn(e)), this.dispose(this.sceneObject.rotationChanged.disposableOn(e)), this.dispose(this.sceneObject.selfRotationChanged.disposableOn(e));
|
|
41766
41766
|
}
|
|
41767
41767
|
}
|
|
41768
|
-
class Dz extends
|
|
41768
|
+
class Dz extends ug {
|
|
41769
41769
|
constructor(i) {
|
|
41770
41770
|
super(i);
|
|
41771
41771
|
const e = () => {
|
|
@@ -42365,7 +42365,7 @@ class ys extends mi {
|
|
|
42365
42365
|
return e.pointerMoveEvent.disposableOn((n) => {
|
|
42366
42366
|
if (!n.pointerEvent || !e.viewer) return;
|
|
42367
42367
|
const r = oo(qt(n.pointerEvent));
|
|
42368
|
-
if (!
|
|
42368
|
+
if (!vf(e.viewer.scene, Ze(this._opInfo.originPosition.value), r, o))
|
|
42369
42369
|
return;
|
|
42370
42370
|
this._lastPosition || (this._lastPosition = [...this._opInfo.draggingStartPosition.value]);
|
|
42371
42371
|
const a = this._opInfo.originPosition.value[2] - this._opInfo.draggingStartPosition.value[2];
|
|
@@ -43363,7 +43363,7 @@ const lh = class lh extends Jt {
|
|
|
43363
43363
|
}
|
|
43364
43364
|
};
|
|
43365
43365
|
m(lh, "type", lh.registerEditing("ESCesiumViewer", Ye.Translation, lh));
|
|
43366
|
-
let
|
|
43366
|
+
let of = lh;
|
|
43367
43367
|
const hh = class hh extends Jt {
|
|
43368
43368
|
constructor(i, e) {
|
|
43369
43369
|
super(i, e, !0);
|
|
@@ -43684,7 +43684,7 @@ const yt = class yt extends L {
|
|
|
43684
43684
|
}
|
|
43685
43685
|
};
|
|
43686
43686
|
m(yt, "KEY_ESCAPE", "Escape"), m(yt, "KEY_SPACE", "Space"), m(yt, "MOUSE_LEFT", 0), m(yt, "esEditModeInstance");
|
|
43687
|
-
let
|
|
43687
|
+
let sf = yt;
|
|
43688
43688
|
function Qz() {
|
|
43689
43689
|
const t = Fe(async (i, e, o, s) => {
|
|
43690
43690
|
e.editingEvent.emit({ objectIDs: o.map((l) => l.parentID), editingID: s, type: "start" });
|
|
@@ -43696,7 +43696,7 @@ function Qz() {
|
|
|
43696
43696
|
l.code == "Escape" && n();
|
|
43697
43697
|
};
|
|
43698
43698
|
i.disposer.ad(e.keyDownEvent.don(r));
|
|
43699
|
-
const a = new
|
|
43699
|
+
const a = new of(o, e);
|
|
43700
43700
|
i.disposer.ad(() => {
|
|
43701
43701
|
!a.isDestroyed() && a.destroy();
|
|
43702
43702
|
}), await i.promise(new Promise((l) => {
|
|
@@ -43712,7 +43712,7 @@ class Kz extends L {
|
|
|
43712
43712
|
super(), this._czmViewer = i, Mt(this, e, () => {
|
|
43713
43713
|
let o;
|
|
43714
43714
|
const s = i.getEngineObject(e);
|
|
43715
|
-
e instanceof
|
|
43715
|
+
e instanceof uf && (o = s.czmBoxClippingPlanes), !(!o || !("computedClippingPlanes" in o) || !("computedClippingPlanesChanged" in o)) && (this.dispose(C([this._czmViewer, "sceneGlobeClippingPlanes"], [o, "computedClippingPlanes"])), this.dispose(() => this._czmViewer.sceneGlobeClippingPlanes = void 0));
|
|
43716
43716
|
});
|
|
43717
43717
|
}
|
|
43718
43718
|
}
|
|
@@ -44224,7 +44224,7 @@ const Ch = class Ch extends L {
|
|
|
44224
44224
|
};
|
|
44225
44225
|
//@ts-ignore
|
|
44226
44226
|
m(Ch, "oldUpdate", h.ParticleSystem.prototype.update);
|
|
44227
|
-
let
|
|
44227
|
+
let nf = Ch;
|
|
44228
44228
|
function EL() {
|
|
44229
44229
|
if (h.ParticleSystem.prototype.timeStamp !== void 0) {
|
|
44230
44230
|
console.warn("fixParticleSystem已经执行过!");
|
|
@@ -44531,7 +44531,7 @@ function o4(t, i, e, o) {
|
|
|
44531
44531
|
for (const D in g) {
|
|
44532
44532
|
if (!g.hasOwnProperty(D))
|
|
44533
44533
|
continue;
|
|
44534
|
-
const B = g[D], V =
|
|
44534
|
+
const B = g[D], V = pg(
|
|
44535
44535
|
t,
|
|
44536
44536
|
//@ts-ignore
|
|
44537
44537
|
h.VertexAttributeSemantic,
|
|
@@ -44737,7 +44737,7 @@ const f4 = {
|
|
|
44737
44737
|
renamedSemantic: void 0,
|
|
44738
44738
|
modelSemantic: void 0
|
|
44739
44739
|
};
|
|
44740
|
-
function
|
|
44740
|
+
function pg(t, i, e) {
|
|
44741
44741
|
let o = e;
|
|
44742
44742
|
t._renameBatchIdSemantic && (e === "_BATCHID" || e === "BATCHID") && (o = "_FEATURE_ID_0");
|
|
44743
44743
|
const s = i.fromGltfSemantic(o), n = f4;
|
|
@@ -44781,7 +44781,7 @@ function m4(t, i, e, o, s) {
|
|
|
44781
44781
|
for (const d in i) {
|
|
44782
44782
|
if (!i.hasOwnProperty(d))
|
|
44783
44783
|
continue;
|
|
44784
|
-
const u = i[d], p =
|
|
44784
|
+
const u = i[d], p = pg(
|
|
44785
44785
|
t,
|
|
44786
44786
|
//@ts-ignore
|
|
44787
44787
|
VertexAttributeSemantic,
|
|
@@ -45029,7 +45029,7 @@ function M4(t) {
|
|
|
45029
45029
|
return h.defined(t.scenes) && h.defined(t.scene) && (i = t.scenes[t.scene].nodes), i = i ?? t.nodes, i = h.defined(i) ? i : [], i;
|
|
45030
45030
|
}
|
|
45031
45031
|
function I4(t, i, e, o, s) {
|
|
45032
|
-
const n = t.gltfJson.accessors, r = h.defined(e.ROTATION), a = h.defined(e.TRANSLATION) && h.defined(n[e.TRANSLATION].min) && h.defined(n[e.TRANSLATION].max), l =
|
|
45032
|
+
const n = t.gltfJson.accessors, r = h.defined(e.ROTATION), a = h.defined(e.TRANSLATION) && h.defined(n[e.TRANSLATION].min) && h.defined(n[e.TRANSLATION].max), l = pg(
|
|
45033
45033
|
t,
|
|
45034
45034
|
//@ts-ignore
|
|
45035
45035
|
h.InstanceAttributeSemantic,
|
|
@@ -45548,7 +45548,7 @@ class t5 extends L {
|
|
|
45548
45548
|
e.setStatus("Creating"), e.setStatusLog("正在创建Cesium视口...");
|
|
45549
45549
|
const c = sL;
|
|
45550
45550
|
await a.promise(e5());
|
|
45551
|
-
const d = await a.promise(
|
|
45551
|
+
const d = await a.promise(hp(c(l, s)));
|
|
45552
45552
|
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(() => {
|
|
45553
45553
|
if (e.currentTime === void 0) return;
|
|
45554
45554
|
const u = h.JulianDate.fromDate(new Date(e.currentTime));
|
|
@@ -45992,10 +45992,10 @@ class u5 extends L {
|
|
|
45992
45992
|
const c = o.disposeVar(Fe(async (d) => {
|
|
45993
45993
|
if (r.pickingManager && a.value)
|
|
45994
45994
|
if (this.quickPickPosition) {
|
|
45995
|
-
const u = await d.promise(
|
|
45995
|
+
const u = await d.promise(hp(r.pickingManager.quickPickPosition(a.value)));
|
|
45996
45996
|
this._cursorPosition.value = u;
|
|
45997
45997
|
} else {
|
|
45998
|
-
const u = await d.promise(
|
|
45998
|
+
const u = await d.promise(hp(r.pickingManager.pickPosition(a.value)));
|
|
45999
45999
|
this._cursorPosition.value = u;
|
|
46000
46000
|
}
|
|
46001
46001
|
}));
|
|
@@ -46022,7 +46022,7 @@ class u5 extends L {
|
|
|
46022
46022
|
}
|
|
46023
46023
|
}
|
|
46024
46024
|
function Bi(t) {
|
|
46025
|
-
return
|
|
46025
|
+
return cf(t, "_viewerExtensions");
|
|
46026
46026
|
}
|
|
46027
46027
|
function Hy(t, i) {
|
|
46028
46028
|
ed(t, "_viewerExtensions", i);
|
|
@@ -46402,7 +46402,7 @@ const Ld = class Ld extends L {
|
|
|
46402
46402
|
}
|
|
46403
46403
|
};
|
|
46404
46404
|
m(Ld, "origin_setPointerCapture", Element.prototype.setPointerCapture);
|
|
46405
|
-
let
|
|
46405
|
+
let rf = Ld;
|
|
46406
46406
|
class y5 extends L {
|
|
46407
46407
|
constructor(e) {
|
|
46408
46408
|
super();
|
|
@@ -46412,7 +46412,7 @@ class y5 extends L {
|
|
|
46412
46412
|
});
|
|
46413
46413
|
m(this, "_mouseResetting", this.dv(new he(this.enabledChanged, () => {
|
|
46414
46414
|
if (this.enabled)
|
|
46415
|
-
return new
|
|
46415
|
+
return new rf(this);
|
|
46416
46416
|
})));
|
|
46417
46417
|
this._firstPersonController = e;
|
|
46418
46418
|
}
|
|
@@ -48385,11 +48385,11 @@ class V5 extends L {
|
|
|
48385
48385
|
}
|
|
48386
48386
|
}
|
|
48387
48387
|
}
|
|
48388
|
-
const
|
|
48388
|
+
const af = h.BoundingRectangle, N5 = h.Color, as = h.defined, U5 = h.destroyObject, Qy = h.DeveloperError, G5 = h.RenderState, W5 = h.ShaderSource, H5 = h._shadersViewportQuadFS, $5 = h.BlendingState, Ky = h.Material;
|
|
48389
48389
|
function iu(t) {
|
|
48390
48390
|
this.show = !0;
|
|
48391
48391
|
let i;
|
|
48392
|
-
as(i) || (i = new
|
|
48392
|
+
as(i) || (i = new af()), this.rectangle = af.clone(i), as(t) || (t = Ky.fromType(Ky.ColorType, {
|
|
48393
48393
|
color: new N5(1, 1, 1, 1)
|
|
48394
48394
|
})), this.material = t, this._material = void 0, this._overlayCommand = void 0, this._rs = void 0;
|
|
48395
48395
|
}
|
|
@@ -48401,7 +48401,7 @@ iu.prototype.update = function(t) {
|
|
|
48401
48401
|
throw new Qy("this.rectangle must be defined.");
|
|
48402
48402
|
this.rectangle.width = t.context.drawingBufferWidth, this.rectangle.height = t.context.drawingBufferHeight;
|
|
48403
48403
|
var i = this._rs;
|
|
48404
|
-
(!as(i) || !
|
|
48404
|
+
(!as(i) || !af.equals(i.viewport, this.rectangle)) && (this._rs = G5.fromCache({
|
|
48405
48405
|
blending: $5.ALPHA_BLEND,
|
|
48406
48406
|
viewport: this.rectangle
|
|
48407
48407
|
}), this._overlayCommand && (this._overlayCommand.renderState = this._rs));
|
|
@@ -48808,16 +48808,16 @@ const lr = class lr extends L {
|
|
|
48808
48808
|
p("splitPosition", (g) => s.scene.splitPosition = g), p("resolutionScale", (g) => s.resolutionScale = g), p("msaaSamples", (g) => s.scene.msaaSamples = g), f("shadows", (g) => s.shadows = g), p("scenePpsfxaaEnabled", (g) => a.postProcessStages.fxaa.enabled = g), f("scenePpsAmbientOcclusionEnabled", (g) => a.postProcessStages.ambientOcclusion.enabled = g), f("scenePpsAmbientOcclusionAmbientOcclusionOnly", (g) => a.postProcessStages.ambientOcclusion.uniforms.ambientOcclusionOnly = g), f("scenePpsAmbientOcclusionIntensity", (g) => a.postProcessStages.ambientOcclusion.uniforms.intensity = g), f("scenePpsAmbientOcclusionBias", (g) => a.postProcessStages.ambientOcclusion.uniforms.bias = g), f("scenePpsAmbientOcclusionLengthCap", (g) => a.postProcessStages.ambientOcclusion.uniforms.lengthCap = g), f("scenePpsAmbientOcclusionStepSize", (g) => a.postProcessStages.ambientOcclusion.uniforms.stepSize = g), f("scenePpsAmbientOcclusionBlurStepSize", (g) => a.postProcessStages.ambientOcclusion.uniforms.blurStepSize = g), f("scenePpsBloomEnabled", (g) => a.postProcessStages.bloom.enabled = g), f("scenePpsBloomGlowOnly", (g) => a.postProcessStages.bloom.uniforms.glowOnly = g), f("scenePpsBloomContrast", (g) => a.postProcessStages.bloom.uniforms.contrast = g), f("scenePpsBloomBrightness", (g) => a.postProcessStages.bloom.uniforms.brightness = g), f("scenePpsBloomDelta", (g) => a.postProcessStages.bloom.uniforms.delta = g), f("scenePpsBloomSigma", (g) => a.postProcessStages.bloom.uniforms.sigma = g), f("scenePpsBloomStepSize", (g) => a.postProcessStages.bloom.uniforms.stepSize = g), p("globeShow", (g) => a.globe.show = g), p("depthTestAgainstTerrain", (g) => {
|
|
48809
48809
|
a.globe.depthTestAgainstTerrain = g;
|
|
48810
48810
|
}), a.globe.translucency.enabled = !0, p("terrainOpacity", (g) => {
|
|
48811
|
-
a.globe.translucency.frontFaceAlpha = a.globe.translucency.backFaceAlpha =
|
|
48811
|
+
a.globe.translucency.frontFaceAlpha = a.globe.translucency.backFaceAlpha = lp(g, 0, 1);
|
|
48812
48812
|
}), p("sceneGlobeShadows", (g) => a.globe.shadows = h.ShadowMode[g]), f("sceneGlobeTerrainExaggeration", (g) => a.globe.terrainExaggeration = g), f("sceneGlobeTerrainExaggerationRelativeHeight", (g) => a.globe.terrainExaggerationRelativeHeight = g), f("sceneGlobeVerticalExaggeration", (g) => a.globe.verticalExaggeration = g), f("sceneGlobeVerticalExaggerationRelativeHeight", (g) => a.globe.verticalExaggerationRelativeHeight = g), f("sceneGlobeBackFaceCulling", (g) => a.globe.backFaceCulling = g), f("sceneGlobeShowSkirts", (g) => a.globe.showSkirts = g), f("sceneGlobeShowWaterEffect", (g) => a.globe.showWaterEffect = g), f("sceneGlobeBaseColor", (g) => a.globe.baseColor = de(g)), f("sceneGlobeCartographicLimitRectangle", (g) => a.globe.cartographicLimitRectangle = at(g)), f("sceneGlobeClippingPlanes", (g) => {
|
|
48813
48813
|
if (!a.globe.clippingPlanes) {
|
|
48814
48814
|
a.globe.clippingPlanes = Hd(g ?? { enabled: !1 });
|
|
48815
48815
|
return;
|
|
48816
48816
|
}
|
|
48817
|
-
|
|
48817
|
+
gf(a.globe.clippingPlanes, g);
|
|
48818
48818
|
}), f("sceneGlobeClippingPolygons", (g) => {
|
|
48819
|
-
a.globe.clippingPolygons = g ?
|
|
48820
|
-
}), p("sceneSunGlowFactor", (g) => a.sun && (a.sun.glowFactor = g)), p("moon", (g) => a.moon && (a.moon.show = g)), p("sceneMoonOnlySunLighting", (g) => a.moon && (a.moon.onlySunLighting = g)), p("sceneMoonTextureUrl", (g) => a.moon && (a.moon.textureUrl = oe.context.getStrFromEnv(g))), f("sceneSkyBoxShow", (g) => a._xbsjOriginSkyBox.show = g), p("sceneSkyBoxSources", (g) => a._xbsjOriginSkyBox.sources = g && Jy(g)), f("atmosphere", (g) => s.scene._xbsjOriginSkyAtmosphere.show = g), f("sceneBackgroundColor", (g) => s.scene.backgroundColor = de(g)), p("sceneFogEnabled", (g) => a.fog.enabled = g), p("sceneFogDensity", (g) => a.fog.density = g), p("sceneFogScreenSpaceErrorFactor", (g) => a.fog.screenSpaceErrorFactor = g), p("sceneFogMinimumBrightness", (g) => a.fog.minimumBrightness = g), p("sceneDebugShowFramesPerSecond", (g) => a.debugShowFramesPerSecond = g), p("sceneDebugShowCommands", (g) => a.debugShowCommands = g), p("sceneDebugShowFrustums", (g) => a.debugShowFrustums = g), p("sceneDebugShowFrustumPlanes", (g) => a.debugShowFrustumPlanes = g), p("sceneDebugShowDepthFrustum", (g) => a.debugShowDepthFrustum = g), p("sceneGlobeUndergroundColor", (g) => c.undergroundColor = de(g)), p("sceneGlobeUndergroundColorAlphaByDistance", (g) => c.undergroundColorAlphaByDistance = Xs(g)), p("sceneGlobeTranslucencyBackFaceAlphaByDistance", (g) => c.translucency.backFaceAlphaByDistance = g && Xs(g)), f("sceneGlobeTranslucencyFrontFaceAlphaByDistance", (g) => c.translucency.frontFaceAlphaByDistance = g && Xs(g)), p("sceneGlobeTranslucencyRectangle", (g) => c.translucency.rectangle = at(g)), p("sceneSplitPosition", (g) => a.splitPosition =
|
|
48819
|
+
a.globe.clippingPolygons = g ? mf(g) : void 0;
|
|
48820
|
+
}), p("sceneSunGlowFactor", (g) => a.sun && (a.sun.glowFactor = g)), p("moon", (g) => a.moon && (a.moon.show = g)), p("sceneMoonOnlySunLighting", (g) => a.moon && (a.moon.onlySunLighting = g)), p("sceneMoonTextureUrl", (g) => a.moon && (a.moon.textureUrl = oe.context.getStrFromEnv(g))), f("sceneSkyBoxShow", (g) => a._xbsjOriginSkyBox.show = g), p("sceneSkyBoxSources", (g) => a._xbsjOriginSkyBox.sources = g && Jy(g)), f("atmosphere", (g) => s.scene._xbsjOriginSkyAtmosphere.show = g), f("sceneBackgroundColor", (g) => s.scene.backgroundColor = de(g)), p("sceneFogEnabled", (g) => a.fog.enabled = g), p("sceneFogDensity", (g) => a.fog.density = g), p("sceneFogScreenSpaceErrorFactor", (g) => a.fog.screenSpaceErrorFactor = g), p("sceneFogMinimumBrightness", (g) => a.fog.minimumBrightness = g), p("sceneDebugShowFramesPerSecond", (g) => a.debugShowFramesPerSecond = g), p("sceneDebugShowCommands", (g) => a.debugShowCommands = g), p("sceneDebugShowFrustums", (g) => a.debugShowFrustums = g), p("sceneDebugShowFrustumPlanes", (g) => a.debugShowFrustumPlanes = g), p("sceneDebugShowDepthFrustum", (g) => a.debugShowDepthFrustum = g), p("sceneGlobeUndergroundColor", (g) => c.undergroundColor = de(g)), p("sceneGlobeUndergroundColorAlphaByDistance", (g) => c.undergroundColorAlphaByDistance = Xs(g)), p("sceneGlobeTranslucencyBackFaceAlphaByDistance", (g) => c.translucency.backFaceAlphaByDistance = g && Xs(g)), f("sceneGlobeTranslucencyFrontFaceAlphaByDistance", (g) => c.translucency.frontFaceAlphaByDistance = g && Xs(g)), p("sceneGlobeTranslucencyRectangle", (g) => c.translucency.rectangle = at(g)), p("sceneSplitPosition", (g) => a.splitPosition = lp(g, 0, 1)), p("sceneSsccEnableCollisionDetection", (g) => a.screenSpaceCameraController.enableCollisionDetection = g), p("sceneSsccZoomFactor", (g) => a.screenSpaceCameraController._zoomFactor = g);
|
|
48821
48821
|
{
|
|
48822
48822
|
const g = () => {
|
|
48823
48823
|
s.cesiumInspector && (s.cesiumInspector.container.style.display = n.showCesiumInspector ?? !1 ? "block" : "none");
|
|
@@ -48835,7 +48835,7 @@ const lr = class lr extends L {
|
|
|
48835
48835
|
}
|
|
48836
48836
|
this.ad(new he(n.particleGlobalControlChanged, () => {
|
|
48837
48837
|
if (!n.particleGlobalControl)
|
|
48838
|
-
return new
|
|
48838
|
+
return new nf();
|
|
48839
48839
|
}));
|
|
48840
48840
|
}
|
|
48841
48841
|
}
|
|
@@ -48898,7 +48898,7 @@ m(lr, "LocalSkyBoxResetting", class extends L {
|
|
|
48898
48898
|
return this._skyAtmosphere;
|
|
48899
48899
|
}
|
|
48900
48900
|
});
|
|
48901
|
-
let
|
|
48901
|
+
let lf = lr;
|
|
48902
48902
|
function cO(t, i, e, o, s) {
|
|
48903
48903
|
var n = h.Cartesian3.subtract(t, e, new h.Cartesian3()), r = h.Cartesian3.dot(n, i);
|
|
48904
48904
|
if (!(r <= 0))
|
|
@@ -49467,7 +49467,7 @@ function bO() {
|
|
|
49467
49467
|
const o = globalThis.prompt(e, t);
|
|
49468
49468
|
o && globalThis.open(o, "_blank");
|
|
49469
49469
|
}
|
|
49470
|
-
const wt = class wt extends
|
|
49470
|
+
const wt = class wt extends cp {
|
|
49471
49471
|
constructor(e) {
|
|
49472
49472
|
super(e);
|
|
49473
49473
|
/**
|
|
@@ -49480,7 +49480,7 @@ const wt = class wt extends dp {
|
|
|
49480
49480
|
m(this, "pickCustomAttachedInfo");
|
|
49481
49481
|
m(this, "_fps", this.dv(U(0)));
|
|
49482
49482
|
m(this, "_notSupportEditingCount", this.disposeVar(U(0)));
|
|
49483
|
-
m(this, "_editingSystem",
|
|
49483
|
+
m(this, "_editingSystem", sf);
|
|
49484
49484
|
m(this, "_moveObjectsProcess", this.ad(Qz()));
|
|
49485
49485
|
if (e.type !== "ESCesiumViewer") throw new Error("option.type must be ESCesiumViewer");
|
|
49486
49486
|
this.ad(new Jz(this)), this.ad(new jz(this)), this.dv(new he(this.viewerChanged, () => {
|
|
@@ -49488,7 +49488,7 @@ const wt = class wt extends dp {
|
|
|
49488
49488
|
return new oL(this);
|
|
49489
49489
|
})), this._viewerLegend = this.dv(new mO(this)), this._viewerInstance = this.dv(new he(this.viewerChanged, () => {
|
|
49490
49490
|
if (this.viewer)
|
|
49491
|
-
return new
|
|
49491
|
+
return new lf(this, this.viewer);
|
|
49492
49492
|
})), this.d(this.viewerChanged.don((s) => {
|
|
49493
49493
|
this.viewer && (this.viewer.scene.globe.baseColor = de([1, 1, 1, 1]));
|
|
49494
49494
|
}));
|
|
@@ -49604,7 +49604,7 @@ const wt = class wt extends dp {
|
|
|
49604
49604
|
[e[0], e[3], 0],
|
|
49605
49605
|
[e[2], e[3], 0],
|
|
49606
49606
|
[e[2], e[1], 0]
|
|
49607
|
-
], r =
|
|
49607
|
+
], r = hf(n);
|
|
49608
49608
|
if (!r) return;
|
|
49609
49609
|
const { center: a, radius: l } = r, c = {
|
|
49610
49610
|
position: a,
|
|
@@ -49623,12 +49623,8 @@ const wt = class wt extends dp {
|
|
|
49623
49623
|
};
|
|
49624
49624
|
}
|
|
49625
49625
|
transformFlyParam(e, o) {
|
|
49626
|
-
if (!(e instanceof lp)) {
|
|
49627
|
-
console.warn("flyInParam转换为flyToParam失败,sceneObject不是ESObjectWithLocation类型!");
|
|
49628
|
-
return;
|
|
49629
|
-
}
|
|
49630
49626
|
if ("position" in o) {
|
|
49631
|
-
const s = h.Cartesian3.fromDegrees(...e
|
|
49627
|
+
const s = h.Cartesian3.fromDegrees(...e), n = h.Transforms.eastNorthUpToFixedFrame(s), r = h.Matrix4.inverse(n, new h.Matrix4()), a = h.Matrix4.multiplyByPoint(r, Ze(o.position), new h.Cartesian3()), l = h.Cartesian3.magnitude(a);
|
|
49632
49628
|
let c = -Math.asin(a.z / l);
|
|
49633
49629
|
c = h.Math.toDegrees(c);
|
|
49634
49630
|
let d = h.Math.PI_OVER_TWO - Math.atan(a.y / a.x);
|
|
@@ -49643,9 +49639,7 @@ const wt = class wt extends dp {
|
|
|
49643
49639
|
pDelta: p
|
|
49644
49640
|
};
|
|
49645
49641
|
} else {
|
|
49646
|
-
|
|
49647
|
-
return;
|
|
49648
|
-
const s = Ze(e.position);
|
|
49642
|
+
const s = Ze(e);
|
|
49649
49643
|
let n = {
|
|
49650
49644
|
heading: h.Math.toRadians(o.heading),
|
|
49651
49645
|
pitch: h.Math.toRadians(o.pitch),
|
|
@@ -49895,7 +49889,7 @@ const wt = class wt extends dp {
|
|
|
49895
49889
|
}
|
|
49896
49890
|
};
|
|
49897
49891
|
m(wt, "type", wt.register("ESCesiumViewer", wt)), m(wt, "getCesiumIonToken", bO), m(wt, "currentDefaultAccessToken", h.Ion.defaultAccessToken), m(wt, "latestDefaultAccessToken"), m(wt, "ObjectsToExcludeWrapper", iL), m(wt, "defaults", {
|
|
49898
|
-
...
|
|
49892
|
+
...cp.defaults,
|
|
49899
49893
|
flashLighting: !1,
|
|
49900
49894
|
resolutionScale: 1,
|
|
49901
49895
|
msaaSamples: 4,
|
|
@@ -49952,14 +49946,14 @@ m(wt, "type", wt.register("ESCesiumViewer", wt)), m(wt, "getCesiumIonToken", bO)
|
|
|
49952
49946
|
let We = wt;
|
|
49953
49947
|
((t) => {
|
|
49954
49948
|
t.createDefaultProps = () => ({
|
|
49955
|
-
...
|
|
49949
|
+
...cp.createDefaultProps(),
|
|
49956
49950
|
...PO()
|
|
49957
49951
|
});
|
|
49958
49952
|
})(We || (We = {}));
|
|
49959
49953
|
ae(We.prototype, We.createDefaultProps);
|
|
49960
49954
|
let rp;
|
|
49961
49955
|
try {
|
|
49962
|
-
const t = "earthsdk3-cesium", i = "3.6.0-beta.
|
|
49956
|
+
const t = "earthsdk3-cesium", i = "3.6.0-beta.2", e = "2025-11-04T01:23:15.000Z", o = "北京西部世界科技有限公司", s = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", n = "f6d4ad1b6c90e73a10773f1031f3f517c5694e3a", a = ((Date.now() - 1762219395e3) / 36e5).toFixed(1), l = `%c🌏 ${t}%c ${i}.${n.slice(0, 8)}.${e} (距今${a}个小时)
|
|
49963
49957
|
%c${s ? s + `
|
|
49964
49958
|
` : ""}当前网站正在使用${t},此软件版权归${o}所有
|
|
49965
49959
|
`;
|
|
@@ -49973,7 +49967,7 @@ try {
|
|
|
49973
49967
|
},
|
|
49974
49968
|
// @ts-ignore
|
|
49975
49969
|
get gituri() {
|
|
49976
|
-
return GITURI_ && GITURI_.replace("${commitId}", "
|
|
49970
|
+
return GITURI_ && GITURI_.replace("${commitId}", "f6d4ad1b6c90e73a10773f1031f3f517c5694e3a");
|
|
49977
49971
|
},
|
|
49978
49972
|
// @ts-ignore
|
|
49979
49973
|
get info() {
|
|
@@ -49981,7 +49975,7 @@ try {
|
|
|
49981
49975
|
},
|
|
49982
49976
|
// @ts-ignore
|
|
49983
49977
|
get date() {
|
|
49984
|
-
return "2025-
|
|
49978
|
+
return "2025-11-04T01:23:15.000Z";
|
|
49985
49979
|
},
|
|
49986
49980
|
// @ts-ignore
|
|
49987
49981
|
get author() {
|
|
@@ -49989,7 +49983,7 @@ try {
|
|
|
49989
49983
|
},
|
|
49990
49984
|
// @ts-ignore
|
|
49991
49985
|
get version() {
|
|
49992
|
-
return "3.6.0-beta.
|
|
49986
|
+
return "3.6.0-beta.2";
|
|
49993
49987
|
},
|
|
49994
49988
|
// @ts-ignore
|
|
49995
49989
|
get name() {
|
|
@@ -49997,7 +49991,7 @@ try {
|
|
|
49997
49991
|
},
|
|
49998
49992
|
// @ts-ignore
|
|
49999
49993
|
get commitId() {
|
|
50000
|
-
return "
|
|
49994
|
+
return "f6d4ad1b6c90e73a10773f1031f3f517c5694e3a";
|
|
50001
49995
|
},
|
|
50002
49996
|
print() {
|
|
50003
49997
|
console.info(
|
|
@@ -50040,7 +50034,7 @@ export {
|
|
|
50040
50034
|
jO as CursorFloatDiv,
|
|
50041
50035
|
eB as CursorInfo,
|
|
50042
50036
|
ke as Czm3DTiles,
|
|
50043
|
-
|
|
50037
|
+
up as CzmCameraChanged,
|
|
50044
50038
|
tB as CzmCanvasAndDivSwitchPoi,
|
|
50045
50039
|
Yw as CzmCanvasPoi,
|
|
50046
50040
|
br as CzmCircle,
|
|
@@ -50102,7 +50096,7 @@ export {
|
|
|
50102
50096
|
Ov as CzmESLocalPolygonZ,
|
|
50103
50097
|
Bv as CzmESLocalRectangle,
|
|
50104
50098
|
mv as CzmESLocalSkyBox,
|
|
50105
|
-
|
|
50099
|
+
$f as CzmESLocalVector,
|
|
50106
50100
|
vv as CzmESLocationMeasurement,
|
|
50107
50101
|
Qv as CzmESMVTLayer,
|
|
50108
50102
|
xy as CzmESMsTileset,
|
|
@@ -50177,16 +50171,16 @@ export {
|
|
|
50177
50171
|
Ur as DoublePointsModifyEditing,
|
|
50178
50172
|
ky as DoublePointsModifyEditingWrapper,
|
|
50179
50173
|
We as ESCesiumViewer,
|
|
50180
|
-
|
|
50181
|
-
|
|
50182
|
-
|
|
50174
|
+
Np as ESCustomPrimitive,
|
|
50175
|
+
Op as ESGeHistoryImagery,
|
|
50176
|
+
Wp as ESGeoBezierPath,
|
|
50183
50177
|
wd as ESGeoSmoothPolygon,
|
|
50184
|
-
|
|
50185
|
-
|
|
50178
|
+
Bp as ESKml,
|
|
50179
|
+
Vp as ESLocalLineString,
|
|
50186
50180
|
yd as ESLocalLineStringZ,
|
|
50187
|
-
|
|
50188
|
-
|
|
50189
|
-
|
|
50181
|
+
Lp as ESMVTLayer,
|
|
50182
|
+
Gp as ESRoad,
|
|
50183
|
+
Up as ESSignalTransmission,
|
|
50190
50184
|
Io as GeoCanvasImagePoi,
|
|
50191
50185
|
Ah as GeoCanvasMenuPoi,
|
|
50192
50186
|
ps as GeoCanvasPoi,
|
|
@@ -50226,17 +50220,17 @@ export {
|
|
|
50226
50220
|
YA as ToGCJ02WebMercatorTilingScheme,
|
|
50227
50221
|
ZA as ToWGS84WebMercatorTilingScheme,
|
|
50228
50222
|
vs as TranslationEditing,
|
|
50229
|
-
|
|
50223
|
+
of as TranslationEditingWrapper,
|
|
50230
50224
|
p5 as ViewerExtensions,
|
|
50231
50225
|
Kh as VisibilityAppendEditing,
|
|
50232
50226
|
Ny as VisibilityAppendEditingWrapper,
|
|
50233
50227
|
Jh as VisibilityModifyEditing,
|
|
50234
50228
|
Uy as VisibilityModifyEditingWrapper,
|
|
50235
50229
|
ks as Widget2D,
|
|
50236
|
-
|
|
50237
|
-
|
|
50230
|
+
gp as Widget3D,
|
|
50231
|
+
yf as WinPosFromCartesian,
|
|
50238
50232
|
Lo as XbsjGroundPolylinePrimitive,
|
|
50239
|
-
|
|
50233
|
+
sf as _ESEditModeInstance,
|
|
50240
50234
|
rd as angleToHumanStr,
|
|
50241
50235
|
ZO as areaToHumanStr,
|
|
50242
50236
|
bt as bindNorthRotation,
|
|
@@ -50247,7 +50241,7 @@ export {
|
|
|
50247
50241
|
Ew as computePickingInfoWithCoordinates,
|
|
50248
50242
|
rp as copyright,
|
|
50249
50243
|
Hd as createClippingPlaneCollection,
|
|
50250
|
-
|
|
50244
|
+
mf as createClippingPolygonCollection,
|
|
50251
50245
|
IS as createGeoBoudingSphereReactFromPositions,
|
|
50252
50246
|
WO as createHelperLine,
|
|
50253
50247
|
Hg as createInfoPoi,
|
|
@@ -50261,10 +50255,10 @@ export {
|
|
|
50261
50255
|
Xw as createTextureFromImage,
|
|
50262
50256
|
Co as createTilingSchema,
|
|
50263
50257
|
Xc as czmFlyTo,
|
|
50264
|
-
|
|
50258
|
+
_f as czmModelActiveAnimationsWithVisible,
|
|
50265
50259
|
_o as czmSubscribeAndEvaluate,
|
|
50266
50260
|
Yi as defaultFlyToRotation,
|
|
50267
|
-
|
|
50261
|
+
xf as distanceToHumanStr,
|
|
50268
50262
|
QO as extendComponentProps,
|
|
50269
50263
|
fe as flyTo,
|
|
50270
50264
|
Wi as flyWithPosition,
|
|
@@ -50298,7 +50292,7 @@ export {
|
|
|
50298
50292
|
Fw as getDistancesAndTimePosRotsFromPositions,
|
|
50299
50293
|
CB as getElevationMatrix,
|
|
50300
50294
|
Mw as getEllipsoidGeodesicCenter,
|
|
50301
|
-
|
|
50295
|
+
bf as getFlyToCenterAndRotation,
|
|
50302
50296
|
$M as getFoveatedInterpolationCallback,
|
|
50303
50297
|
Hw as getFuncFromStr,
|
|
50304
50298
|
GS as getGroundTerrainDistance,
|
|
@@ -50312,7 +50306,7 @@ export {
|
|
|
50312
50306
|
Ow as getPolygonPointsFromHierarchy,
|
|
50313
50307
|
Tw as getQuaternion,
|
|
50314
50308
|
vx as getQuaternionWithXForwardZUp,
|
|
50315
|
-
|
|
50309
|
+
dp as getQuaternionWithYForwardZUp,
|
|
50316
50310
|
Si as getResource,
|
|
50317
50311
|
ws as getSceneScaleForScreenPixelSize,
|
|
50318
50312
|
rb as getSharedTexturePool,
|
|
@@ -50328,7 +50322,7 @@ export {
|
|
|
50328
50322
|
Ds as localPositionToPosition,
|
|
50329
50323
|
Zs as localPositionsToPositions,
|
|
50330
50324
|
qO as merge3dTilesServer,
|
|
50331
|
-
|
|
50325
|
+
vf as pickHeightPosition,
|
|
50332
50326
|
Dx as pickPosition,
|
|
50333
50327
|
Ph as pickVirtualEarth,
|
|
50334
50328
|
kx as pickVirtualPlane,
|
|
@@ -50340,8 +50334,8 @@ export {
|
|
|
50340
50334
|
ui as positionsToLocalPositions,
|
|
50341
50335
|
Qt as positionsToUniqueCartesians,
|
|
50342
50336
|
Gw as rectangleIsGlobal,
|
|
50343
|
-
|
|
50344
|
-
|
|
50337
|
+
Pf as rpToap,
|
|
50338
|
+
gf as setClippingPlaneCollection,
|
|
50345
50339
|
Wg as setCylinderGeometry,
|
|
50346
50340
|
nd as setModelMaterial,
|
|
50347
50341
|
AS as setRectangleGeometry,
|