earthsdk3-cesium 3.6.0-beta.7 → 3.6.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/earthsdk3-cesium.iife.js +199 -199
- package/dist/earthsdk3-cesium.js +716 -695
- package/dist/earthsdk3-cesium.umd.cjs +55 -55
- package/dist/types/CzmObjects/base/InnerClass/CzmImagery/imageryProviderUtils.d.ts.map +1 -1
- package/dist/types/CzmObjects/general/CzmESPoi2D/fun.d.ts.map +1 -1
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/StyleManager.d.ts +5 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/StyleManager.d.ts.map +1 -1
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/index.d.ts.map +1 -1
- package/dist/types/utils/generalUtils/getImageInfo.d.ts +8 -0
- package/dist/types/utils/generalUtils/getImageInfo.d.ts.map +1 -0
- package/dist/types/utils/generalUtils/index.d.ts +1 -1
- package/dist/types/utils/generalUtils/index.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/types/utils/generalUtils/imgUrlToBase64.d.ts +0 -8
- package/dist/types/utils/generalUtils/imgUrlToBase64.d.ts.map +0 -1
package/dist/earthsdk3-cesium.js
CHANGED
|
@@ -3,7 +3,7 @@ var L1 = (t, i, e) => i in t ? z1(t, i, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var g = (t, i, e) => L1(t, typeof i != "symbol" ? i + "" : i, e);
|
|
4
4
|
import * as h from "cesium";
|
|
5
5
|
import { Cartesian3 as $s, Math as lp, WebMercatorTilingScheme as O1, Rectangle as B1, Event as V1, Credit as N1, DefaultProxy as U1, defined as G1, Resource as hp, ImageryLayerFeatureInfo as W1, Frozen as H1 } from "cesium";
|
|
6
|
-
import { createGuid as Ne, extendClassProps as ae, Destroyable as k, EngineObject as Yi, Event as q, getReactFuncs as
|
|
6
|
+
import { createGuid as Ne, extendClassProps as ae, Destroyable as k, EngineObject as Yi, Event as q, getReactFuncs as Di, createNextAnimateFrameEvent as F, react as U, cartesianDistance as $1, ObjResettingWithEvent as he, geoRhumbDistance as Bd, geoRhumbHeading as pr, geoRhumbDestination as Ot, geoNearestPointOnLine as q1, getDomEventCurrentTargetPos as Zt, geoDistance as Mi, ESSceneObject as oe, lbhToXyz as fr, xyzToLbh as lw, createProcessingFromAsyncFunc as ze, step as vi, reactArrayWithUndefined as K, getMinMaxCorner as yt, ESImageryLayer as bh, ESTerrainLayer as wa, ES3DTileset as _i, bind as M, geoHeading as xr, animateFrame as X1, geoDestination as Zo, min as nu, objsIterator as Dn, max as ru, getGeoBoundingSphereFromPositions as uf, pairToPromise as Y1, Vector as fi, ESGltfModel as ed, reactJsonWithUndefined as He, reactJson as Ue, reactArray as j, track as P, reactDeepArrayWithUndefined as hw, defaultGetLocalFilePath as Z1, ComplexImage as au, czmPixelFormats as Q1, HasOwner as Vd, reactPositionsSet as qr, setExtProp as td, getExtProp as pf, getMinMaxPosition as cw, PosFloatDiv as dw, DivPoi as uw, createNextMicroTaskEvent as K1, Transition as br, CanvasPrimitivesContext as J1, CanvasPoi as ff, DomElementEvent as mc, PointerClick as pw, PointerHover as j1, CanvasPrimitive as eP, fetchImage as tP, getColorHexStr as vc, getDrawRect as lu, drawTextBlock as vg, imageToCanvas as iP, setCanvasUniformColor as sP, ESJPickedResult as gr, createTimeoutWithStartValues as yg, reactPositions as je, reactArrayCollectionWithUndefined as oP, Player as nc, ESPoi2D as ot, ESWidget as fw, registerCreatedEventUpdate as Dt, debounce as nP, getDistancesFromPositions as ft, getDefaultValue as hu, ESPathImpl as gw, PlayerProperty as Nd, SmoothMoveController as rP, createEventsCallFunc as Jo, ESSceneObjectWithId as zi, ESClippingPlane as mw, ESGeoPolygon as Ud, nextAnimateFrame as Jt, ESPolygonFlattenedPlane as aP, registerEventUpdate as Hi, ESExcavate as rc, ESHole as Gd, ESBoxClipping as gf, defaultLocalFileServer as Ca, ESAlarm as wg, ESApertureEffect as Cg, geoArea as lP, geoCenterOfMass as hP, ESAreaMeasurement as cP, ESBlastParticleSystem as dP, ESCameraView as uP, ESCameraVisibleRange as _g, ESCar as pP, ESCityBasePoint as fP, ESClassification as vw, ESCzml as gP, ESDataMesh as kn, ColorStops as mP, sleep as yw, fetchArrayBuffer as cu, clampN180_180 as vP, clamp0_360 as yP, ESDirectionMeasurement as wP, inOrderRunning as CP, ESGeoLineString as ww, ESDistanceMeasurement as _P, ESFireParticleSystem as PP, ESVisualObject as id, GroupProperty as _e, EnumProperty as yi, NumberProperty as ce, StringProperty as Qo, Number4Property as ro, JsonProperty as Yt, NumberSliderProperty as Pg, FunctionProperty as mr, EvalStringProperty as sd, BooleanProperty as ue, LongStringProperty as xP, DateProperty as du, ESLocalVector2D as xg, reactPosition2Ds as bP, Number2sProperty as SP, ColorProperty as er, DashPatternProperty as Cw, ESLocalVector as bg, Number3sProperty as TP, ESObjectWithLocation as Sg, PositionProperty as EP, RotationProperty as AP, Number3Property as _w, ESGeoVector as ki, ESJEditingMode as Je, UriProperty as MP, Number2Property as IP, ESGeoDiv as RP, ESGeoDivTextPoi as DP, isJSON as kP, ESGeoJson as rt, toGeoJson as Pw, ESGeoRectangle as FP, ESHeightMeasurement as zP, ESHuman as Tg, ESImageLabel as LP, ESLocalSkyBox as Eg, ESLocationMeasurement as Ag, ESParticleSystemPrimitive as OP, ESPoi3D as BP, ESSubmergingAnalysis as Mo, ESTextLabel as VP, ESUEWidget as NP, ESUnrealActor as UP, ESVideoFusion as yc, ESViewShed as wc, ESLocalCircle as Mg, ESLocalPolygon as xw, ESLocalPolygonZ as bw, ESLocalRectangle as GP, ESNavigator as Fn, ESCustomDiv as Wd, createAnimateFrameWithStartValues as mf, ESPath as WP, ESPolygonFence as Sw, ESRectangle as HP, ESScale as na, ESDynamicWater as qs, ESEntityCluster as is, ESGeoWater as ws, ESPipeFence as $P, ESPipeline as qP, equalsN3 as Xr, ESPipeserTileset as XP, ESPit as YP, ESPolygonWithHole as ZP, clamp as cp, ESSunshineAnalysis as Tw, ESSurfaceAreaMeasurement as QP, ESViewerStatusBar as Ki, ESViewerStatusBarScale as Ji, ESVisibilityAnalysis as KP, ESVolumeMeasurement as JP, ESGeoExtrudedPolygon as Cc, ESHumanPoi as jP, ESRtsTileset as ex, ESRtsFeatureEditing as tx, ESMsTileset as ix, ESStaticMesh as sx, ESSkylineAnalysis as Ig, ESHeatMap as zn, ESGeoPoints as ra, getEventFromPromise as ox, Processing as ba, ObservableArray as nx, CursorInfo as rx, CursorFloatDiv as ax, createCancelablePromise as dp, createNextAnimateFrame as lx, getElementBounds as hx, ESViewer as up, StringsProperty as cx } from "earthsdk3";
|
|
7
7
|
import vf from "html2canvas";
|
|
8
8
|
import * as dx from "mvt-basic-render";
|
|
9
9
|
import ux from "delaunator";
|
|
@@ -139,7 +139,7 @@ function as(t, i) {
|
|
|
139
139
|
return ke(t, i);
|
|
140
140
|
throw new Error("toCartesian error: should not be here!");
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function aB(t, i) {
|
|
143
143
|
if (t instanceof h.Cartesian2)
|
|
144
144
|
return yx(t, i);
|
|
145
145
|
if (t instanceof h.Cartesian3)
|
|
@@ -148,7 +148,7 @@ function nB(t, i) {
|
|
|
148
148
|
return wx(t, i);
|
|
149
149
|
throw new Error("fromCartesian error: should not be here!");
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function lB(t, i) {
|
|
152
152
|
return i = i || new h.Cartographic(), i.longitude = h.Math.toRadians(t[0]), i.latitude = h.Math.toRadians(t[1]), i.height = t[2], i;
|
|
153
153
|
}
|
|
154
154
|
function Sr(t, i) {
|
|
@@ -157,49 +157,49 @@ function Sr(t, i) {
|
|
|
157
157
|
function de(t, i) {
|
|
158
158
|
return i = i || new h.Color(), i.red = t[0], i.green = t[1], i.blue = t[2], i.alpha = t[3], i;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function hB(t, i) {
|
|
161
161
|
return i = i || [0, 0, 0, 0], i[0] = t.red, i[1] = t.green, i[2] = t.blue, i[3] = t.alpha, i;
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function jo(t, i) {
|
|
164
164
|
return i = i || new h.NearFarScalar(), i.near = t[0], i.nearValue = t[1], i.far = t[2], i.farValue = t[3], i;
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function cB(t, i) {
|
|
167
167
|
return i = i || [0, 0, 0, 0], i[0] = t.near, i[1] = t.nearValue, i[2] = t.far, i[3] = t.farValue, i;
|
|
168
168
|
}
|
|
169
169
|
function Cx(t, i) {
|
|
170
170
|
return i = i || new h.HeadingPitchRoll(), i.heading = h.Math.toRadians(t[0] - 90), i.pitch = h.Math.toRadians(t[1]), i.roll = h.Math.toRadians(t[2]), i;
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function dB(t, i) {
|
|
173
173
|
return i = i || [0, 0, 0], i[0] = h.Math.toDegrees(t.heading + h.Math.PI_OVER_TWO), i[1] = h.Math.toDegrees(t.pitch), i[2] = h.Math.toDegrees(t.roll), i;
|
|
174
174
|
}
|
|
175
175
|
function Hd(t, i) {
|
|
176
176
|
return i = i || new h.DistanceDisplayCondition(), i.near = t[0], i.far = t[1], i;
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function uB(t, i) {
|
|
179
179
|
return i = i || [0, 0], i[0] = t.near, i[1] = t.far, i;
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function pB(t, i) {
|
|
182
182
|
return i = i || new h.Quaternion(), i.x = t[0], i.y = t[1], i.z = t[2], i.w = t[3], i;
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function fB(t, i) {
|
|
185
185
|
return i = i || [0, 0, 0, 0], i[0] = t.x, i[1] = t.y, i[2] = t.z, i[3] = t.w, i;
|
|
186
186
|
}
|
|
187
187
|
const _x = new h.HeadingPitchRoll(), Px = new h.Cartesian3();
|
|
188
|
-
function
|
|
188
|
+
function gB(t, i, e) {
|
|
189
189
|
const s = Cx(i, _x), o = Ve(t, Px);
|
|
190
190
|
return h.Transforms.headingPitchRollQuaternion(o, s, void 0, void 0, e);
|
|
191
191
|
}
|
|
192
192
|
function ht(t, i) {
|
|
193
193
|
return i = i || new h.Rectangle(), i.west = t[0] * Math.PI / 180, i.south = t[1] * Math.PI / 180, i.east = t[2] * Math.PI / 180, i.north = t[3] * Math.PI / 180, i;
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function mB(t, i) {
|
|
196
196
|
return i = i || [0, 0, 0, 0], i[0] = t.west, i[1] = t.south, i[2] = t.east, i[3] = t.north, i;
|
|
197
197
|
}
|
|
198
198
|
const xx = new h.Cartesian3();
|
|
199
199
|
function De(t, i) {
|
|
200
200
|
return i = i || new h.Ellipsoid(), h.Ellipsoid.fromCartesian3(h.Cartesian3.fromArray(t, void 0, xx), i);
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function vB(t, i) {
|
|
203
203
|
return i = i || [0, 0, 0], i[0] = t.radii.x, i[1] = t.radii.y, i[2] = t.radii.z, i;
|
|
204
204
|
}
|
|
205
205
|
function ns(t) {
|
|
@@ -360,7 +360,7 @@ function Ix(t, i, e, s) {
|
|
|
360
360
|
return Mx(t, i, e, s);
|
|
361
361
|
}
|
|
362
362
|
const co = h.Math.toDegrees;
|
|
363
|
-
function
|
|
363
|
+
function Li(t, i) {
|
|
364
364
|
const { longitude: e, latitude: s, height: o } = t.positionCartographic;
|
|
365
365
|
return i ? (i[0] = co(e), i[1] = co(s), i[2] = o, i) : [co(e), co(s), o];
|
|
366
366
|
}
|
|
@@ -418,7 +418,7 @@ class Yr extends k {
|
|
|
418
418
|
g(this, "_debug", this.disposeVar(U(!1)));
|
|
419
419
|
g(this, "_viewDistanceDebug", this.disposeVar(new Dx(this)));
|
|
420
420
|
this._czmViewer = e, this._positionReact = o;
|
|
421
|
-
const { positionReact: r, czmViewer: a } = this, [l, c, d] =
|
|
421
|
+
const { positionReact: r, czmViewer: a } = this, [l, c, d] = Di(s), [u, p, f] = Di(r), [m, v, y] = n ? Di(n) : [void 0, void 0, void 0], _ = () => {
|
|
422
422
|
let T = 1, E = Number.NEGATIVE_INFINITY;
|
|
423
423
|
const D = l(), B = u(), N = m ? m() : 0, G = a.getCurrentCameraInfo();
|
|
424
424
|
if (!D || !B || !G) {
|
|
@@ -501,7 +501,7 @@ function Tr(t, i, e, s) {
|
|
|
501
501
|
const o = Bd(t, e), n = pr(t, e), r = Math.cos(n * Math.PI / 180) * Math.cos(i * Math.PI / 180) + Math.sin(n * Math.PI / 180) * Math.sin(i * Math.PI / 180);
|
|
502
502
|
return r > 0 ? Ot(t, o, i, s) : Ot(t, o, i + 180, s), [r > 0 ? o : -o, s];
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function yB(t, i, e) {
|
|
505
505
|
const s = e * 0.1, o = [];
|
|
506
506
|
for (let n = -9; n < 10; ++n) {
|
|
507
507
|
const r = Ot(t, s * n, i);
|
|
@@ -509,7 +509,7 @@ function mB(t, i, e) {
|
|
|
509
509
|
}
|
|
510
510
|
return o;
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function wB(t, i) {
|
|
513
513
|
return q1(t, i).geometry.coordinates;
|
|
514
514
|
}
|
|
515
515
|
const Dg = new h.Cartesian3(), Fx = new h.Ray(), zx = new h.Plane(h.Cartesian3.UNIT_X, 0);
|
|
@@ -536,7 +536,7 @@ function Sh(t, i, e, s) {
|
|
|
536
536
|
} else
|
|
537
537
|
return;
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function Ln(t, i) {
|
|
540
540
|
i[0] = t[0], i[1] = t[1], i[2] = t[2];
|
|
541
541
|
}
|
|
542
542
|
function kg(t) {
|
|
@@ -545,39 +545,39 @@ function kg(t) {
|
|
|
545
545
|
}
|
|
546
546
|
const Fg = new h.Cartographic(), zg = new h.Cartesian3(), si = [0, 0, 0], Ys = [0, 0, 0], pu = new h.Cartesian2(), fu = new h.Cartesian3();
|
|
547
547
|
function Mw(t, i, e, s, o, n) {
|
|
548
|
-
o.constraintMode = "none",
|
|
548
|
+
o.constraintMode = "none", Ln([0, 0, 0], o.startDragPos), n = n || {}, as(Zt(t), pu);
|
|
549
549
|
const r = e.position;
|
|
550
550
|
if (!Ve(r, fu))
|
|
551
551
|
return;
|
|
552
552
|
const a = xo(i, fu, s);
|
|
553
553
|
if (a === void 0 || !Cf(i, fu, pu, zg) || !me(zg, si))
|
|
554
554
|
return;
|
|
555
|
-
const l = kg(si[2]) *
|
|
555
|
+
const l = kg(si[2]) * Mi(r, si);
|
|
556
556
|
if (!n.z && l < a && Math.abs(r[2] - si[2]) < e.dimensions[0] && si[2] > r[2])
|
|
557
|
-
return o.constraintMode = "z",
|
|
557
|
+
return o.constraintMode = "z", Ln(si, o.startDragPos), !0;
|
|
558
558
|
if (!Sh(i, pu, r[2], Fg) || !Sr(Fg, si))
|
|
559
559
|
return;
|
|
560
|
-
const c = kg(r[2]) *
|
|
560
|
+
const c = kg(r[2]) * Mi(r, si), d = e.dimensions[0];
|
|
561
561
|
if (!(c > 1.05 * d)) {
|
|
562
562
|
if (!n.zAxis && c > 0.95 * d && c <= 1.05 * d) {
|
|
563
|
-
o.constraintMode = "zAxis",
|
|
563
|
+
o.constraintMode = "zAxis", Ln(si, o.startDragPos);
|
|
564
564
|
return;
|
|
565
565
|
}
|
|
566
566
|
{
|
|
567
567
|
const [u, p] = Tr(r, e.heading + 90, si, Ys);
|
|
568
|
-
if (!n.x && u > 0 && p && (Ys[2] = r[2],
|
|
569
|
-
o.constraintMode = "x",
|
|
568
|
+
if (!n.x && u > 0 && p && (Ys[2] = r[2], Mi(Ys, si) < a)) {
|
|
569
|
+
o.constraintMode = "x", Ln(Ys, o.startDragPos);
|
|
570
570
|
return;
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
{
|
|
574
574
|
const [u, p] = Tr(r, e.heading, si, Ys);
|
|
575
|
-
if (!n.y && u > 0 && p && (Ys[2] = r[2],
|
|
576
|
-
o.constraintMode = "y",
|
|
575
|
+
if (!n.y && u > 0 && p && (Ys[2] = r[2], Mi(Ys, si) < a)) {
|
|
576
|
+
o.constraintMode = "y", Ln(Ys, o.startDragPos);
|
|
577
577
|
return;
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
|
-
n.xy || (o.constraintMode = "xy",
|
|
580
|
+
n.xy || (o.constraintMode = "xy", Ln(si, o.startDragPos));
|
|
581
581
|
}
|
|
582
582
|
}
|
|
583
583
|
async function Vx(t, i, e, s) {
|
|
@@ -615,7 +615,7 @@ function Iw(t, i) {
|
|
|
615
615
|
function vs(t, i) {
|
|
616
616
|
const e = U(void 0);
|
|
617
617
|
let s = "";
|
|
618
|
-
const [o, n, r] =
|
|
618
|
+
const [o, n, r] = Di(t), a = () => {
|
|
619
619
|
try {
|
|
620
620
|
const l = o() ?? i;
|
|
621
621
|
l ? s !== l.type ? (s = l.type, e.value = Ux(l)) : e.value && Iw(e.value, l) : (s = "", e.value = void 0);
|
|
@@ -637,7 +637,7 @@ function Rw(t, i) {
|
|
|
637
637
|
return r.height = (o.height + n.height) * 0.5, [r.longitude * s, r.latitude * s, r.height];
|
|
638
638
|
}
|
|
639
639
|
const Lg = new h.Cartesian4(), Wx = new h.Matrix4();
|
|
640
|
-
function
|
|
640
|
+
function CB() {
|
|
641
641
|
return { left: 0, top: 0, right: 0, bottom: 0, depth: 0 };
|
|
642
642
|
}
|
|
643
643
|
function Hx(t, i) {
|
|
@@ -712,7 +712,7 @@ function Zx(t, i, e, s) {
|
|
|
712
712
|
l = t[r], i(a, l, Og) ? (Ro(c) || (c = t.slice(0, r), d = r - 1, u = 0), o && s.push(r)) : (Ro(c) && (c.push(l), d = r, o && (u = s.length)), a = l);
|
|
713
713
|
return e && i(t[0], t[n - 1], Og) && (o && (Ro(c) ? s.splice(u, 0, d) : s.push(n - 1)), Ro(c) ? c.length -= 1 : c = t.slice(0, -1)), Ro(c) ? c : t;
|
|
714
714
|
}
|
|
715
|
-
const Ae = h.Cartesian3, Zr = h.Cartographic,
|
|
715
|
+
const Ae = h.Cartesian3, Zr = h.Cartographic, en = h.defined, Dw = h.DeveloperError, kw = h.Ellipsoid, Qx = h.EllipsoidGeodesic, Fw = h.EllipsoidRhumbLine, Kx = h.IntersectionTests, gp = h.Math, Kn = h.Matrix4, Bo = h.Plane, vt = {};
|
|
716
716
|
vt.numberOfPoints = function(t, i, e) {
|
|
717
717
|
const s = Ae.distance(t, i);
|
|
718
718
|
return Math.ceil(s / e);
|
|
@@ -733,7 +733,7 @@ vt.extractHeights = function(t, i) {
|
|
|
733
733
|
}
|
|
734
734
|
return s;
|
|
735
735
|
};
|
|
736
|
-
const jx = new
|
|
736
|
+
const jx = new Kn(), eb = new Ae(), Bg = new Ae(), tb = new Bo(Ae.UNIT_X, 0), Vg = new Ae(), ib = new Bo(Ae.UNIT_X, 0), sb = new Ae(), ob = new Ae(), Pf = [];
|
|
737
737
|
function zw(t, i, e) {
|
|
738
738
|
const s = Pf;
|
|
739
739
|
s.length = t;
|
|
@@ -794,17 +794,17 @@ function ab(t, i, e, s, o, n, r, a) {
|
|
|
794
794
|
}
|
|
795
795
|
vt.wrapLongitude = function(t, i) {
|
|
796
796
|
const e = [], s = [];
|
|
797
|
-
if (
|
|
798
|
-
i = i ??
|
|
799
|
-
const o =
|
|
797
|
+
if (en(t) && t.length > 0) {
|
|
798
|
+
i = i ?? Kn.IDENTITY;
|
|
799
|
+
const o = Kn.inverseTransformation(
|
|
800
800
|
i,
|
|
801
801
|
jx
|
|
802
|
-
), n =
|
|
802
|
+
), n = Kn.multiplyByPoint(
|
|
803
803
|
o,
|
|
804
804
|
Ae.ZERO,
|
|
805
805
|
eb
|
|
806
806
|
), r = Ae.normalize(
|
|
807
|
-
|
|
807
|
+
Kn.multiplyByPointAsVector(
|
|
808
808
|
o,
|
|
809
809
|
Ae.UNIT_Y,
|
|
810
810
|
Bg
|
|
@@ -815,7 +815,7 @@ vt.wrapLongitude = function(t, i) {
|
|
|
815
815
|
r,
|
|
816
816
|
tb
|
|
817
817
|
), l = Ae.normalize(
|
|
818
|
-
|
|
818
|
+
Kn.multiplyByPointAsVector(
|
|
819
819
|
o,
|
|
820
820
|
Ae.UNIT_X,
|
|
821
821
|
Vg
|
|
@@ -839,7 +839,7 @@ vt.wrapLongitude = function(t, i) {
|
|
|
839
839
|
a,
|
|
840
840
|
sb
|
|
841
841
|
);
|
|
842
|
-
if (
|
|
842
|
+
if (en(v)) {
|
|
843
843
|
const y = Ae.multiplyByScalar(
|
|
844
844
|
r,
|
|
845
845
|
5e-9,
|
|
@@ -862,9 +862,9 @@ vt.wrapLongitude = function(t, i) {
|
|
|
862
862
|
};
|
|
863
863
|
};
|
|
864
864
|
vt.generateArc = function(t) {
|
|
865
|
-
|
|
865
|
+
en(t) || (t = {});
|
|
866
866
|
const i = t.positions;
|
|
867
|
-
if (!
|
|
867
|
+
if (!en(i))
|
|
868
868
|
throw new Dw("options.positions is required.");
|
|
869
869
|
const e = i.length, s = t.ellipsoid ?? kw.WGS84;
|
|
870
870
|
let o = t.height ?? 0;
|
|
@@ -880,7 +880,7 @@ vt.generateArc = function(t) {
|
|
|
880
880
|
return [v.x, v.y, v.z];
|
|
881
881
|
}
|
|
882
882
|
let r = t.minDistance;
|
|
883
|
-
if (!
|
|
883
|
+
if (!en(r)) {
|
|
884
884
|
const v = t.granularity ?? gp.RADIANS_PER_DEGREE;
|
|
885
885
|
r = gp.chordLength(v, s.maximumRadius);
|
|
886
886
|
}
|
|
@@ -914,9 +914,9 @@ vt.generateArc = function(t) {
|
|
|
914
914
|
};
|
|
915
915
|
const Ng = new Zr(), lb = new Zr();
|
|
916
916
|
vt.generateRhumbArc = function(t) {
|
|
917
|
-
|
|
917
|
+
en(t) || (t = {});
|
|
918
918
|
const i = t.positions;
|
|
919
|
-
if (!
|
|
919
|
+
if (!en(i))
|
|
920
920
|
throw new Dw("options.positions is required.");
|
|
921
921
|
const e = i.length, s = t.ellipsoid ?? kw.WGS84;
|
|
922
922
|
let o = t.height ?? 0;
|
|
@@ -1073,7 +1073,7 @@ function gi(t, i) {
|
|
|
1073
1073
|
const { originPosition: e, originRotation: s, originScale: o, initialRotationMode: n } = t, r = Bw({ position: e, rotation: s, scale: o, initialRotationMode: n }), a = pb(r);
|
|
1074
1074
|
return [i.map((c) => mb(a, c)), r, a];
|
|
1075
1075
|
}
|
|
1076
|
-
function
|
|
1076
|
+
function tn(t, i) {
|
|
1077
1077
|
const { originPosition: e, originRotation: s, originScale: o, initialRotationMode: n } = t, r = Bw({ position: e, rotation: s, scale: o, initialRotationMode: n });
|
|
1078
1078
|
return [i.map((l) => Lo(r, l)), r];
|
|
1079
1079
|
}
|
|
@@ -1093,7 +1093,7 @@ function Vw(t, i) {
|
|
|
1093
1093
|
e = Vw(s, e);
|
|
1094
1094
|
}), e;
|
|
1095
1095
|
}
|
|
1096
|
-
function
|
|
1096
|
+
function Gi(t) {
|
|
1097
1097
|
return typeof t == "string" ? oe.context.getStrFromEnv(t) : new h.Resource({
|
|
1098
1098
|
url: oe.context.getStrFromEnv(t.url),
|
|
1099
1099
|
headers: t.headers,
|
|
@@ -1109,7 +1109,7 @@ function Ai(t) {
|
|
|
1109
1109
|
class Nw extends k {
|
|
1110
1110
|
constructor(i, e, s, o) {
|
|
1111
1111
|
if (super(), !i.viewer) return;
|
|
1112
|
-
const { scene: n } = i.viewer, [r, a, l] =
|
|
1112
|
+
const { scene: n } = i.viewer, [r, a, l] = Di(e), [c, d, u] = Di(s), p = new h.Cartesian3(), f = () => {
|
|
1113
1113
|
let m = r();
|
|
1114
1114
|
m && (m = [...m], i.editingHeightOffset && (m[2] -= i.editingHeightOffset), h.Cartesian3.fromDegrees(...m, void 0, p));
|
|
1115
1115
|
};
|
|
@@ -1234,7 +1234,7 @@ const Ug = ze(async (t, i) => {
|
|
|
1234
1234
|
Math.max(...n.map((l) => l[5]))
|
|
1235
1235
|
], e.tilesUrl.root.children = a), e;
|
|
1236
1236
|
});
|
|
1237
|
-
function
|
|
1237
|
+
function _B(t) {
|
|
1238
1238
|
return new Promise((i, e) => {
|
|
1239
1239
|
Ug.restart(void 0, t), Ug.completeEvent.don((s) => {
|
|
1240
1240
|
i(s);
|
|
@@ -1246,13 +1246,13 @@ class Uw extends k {
|
|
|
1246
1246
|
super();
|
|
1247
1247
|
g(this, "_center", this.disposeVar(K(void 0)));
|
|
1248
1248
|
g(this, "_radius", this.disposeVar(U(0)));
|
|
1249
|
-
const [s, o, n] =
|
|
1249
|
+
const [s, o, n] = Di(e);
|
|
1250
1250
|
{
|
|
1251
1251
|
const r = () => {
|
|
1252
1252
|
const a = s();
|
|
1253
1253
|
if (a) {
|
|
1254
1254
|
const { center: l, minPos: c, maxPos: d } = yt(a);
|
|
1255
|
-
this._center.value = l, this._radius.value =
|
|
1255
|
+
this._center.value = l, this._radius.value = Mi(c, d) / 2;
|
|
1256
1256
|
} else
|
|
1257
1257
|
this._center.value = void 0;
|
|
1258
1258
|
};
|
|
@@ -1490,7 +1490,7 @@ function Ab(t) {
|
|
|
1490
1490
|
}
|
|
1491
1491
|
return i = i || `"${oe.context.getStrFromEnv(e)}"`, i;
|
|
1492
1492
|
}
|
|
1493
|
-
function
|
|
1493
|
+
function PB(t) {
|
|
1494
1494
|
return t instanceof bh ? Tb(t) : t instanceof wa ? bb(t) : t instanceof _i ? Eb(t) : "getCzmCode目前只支持影像地形或瓦片";
|
|
1495
1495
|
}
|
|
1496
1496
|
function Gw(t, i) {
|
|
@@ -1743,7 +1743,7 @@ function Hw(t) {
|
|
|
1743
1743
|
return Math.abs(t[0]) == 180 && Math.abs(t[1]) == 90 && Math.abs(t[2]) == 180 && Math.abs(t[3]) == 90;
|
|
1744
1744
|
}
|
|
1745
1745
|
function Mt(t, i) {
|
|
1746
|
-
const [e] =
|
|
1746
|
+
const [e] = Di(i);
|
|
1747
1747
|
return M(t, i, (s) => {
|
|
1748
1748
|
const [o, n, r] = s ?? [0, 0, 0];
|
|
1749
1749
|
return [o + 90, n, r];
|
|
@@ -1779,7 +1779,7 @@ class Lb extends k {
|
|
|
1779
1779
|
r.splice(0, 3, ...n);
|
|
1780
1780
|
const l = xr(r, s);
|
|
1781
1781
|
this._currentHeading.value = l;
|
|
1782
|
-
const d =
|
|
1782
|
+
const d = Mi(r, s) / o;
|
|
1783
1783
|
await e.promise(new Promise((u) => {
|
|
1784
1784
|
e.disposer.dispose(X1(() => {
|
|
1785
1785
|
let p = Date.now() - a;
|
|
@@ -1835,10 +1835,10 @@ ${e};
|
|
|
1835
1835
|
class Ob extends k {
|
|
1836
1836
|
constructor(i, e, s, o) {
|
|
1837
1837
|
super();
|
|
1838
|
-
const [n, r, a] =
|
|
1838
|
+
const [n, r, a] = Di(e), [l, c, d] = Di(s), [u, p, f] = Di(o);
|
|
1839
1839
|
}
|
|
1840
1840
|
}
|
|
1841
|
-
function
|
|
1841
|
+
function xB(t, i) {
|
|
1842
1842
|
const e = document.createElement("a");
|
|
1843
1843
|
e.href = t;
|
|
1844
1844
|
const s = e.href, o = new Image();
|
|
@@ -1869,7 +1869,7 @@ function Hg(t, i = !1) {
|
|
|
1869
1869
|
const e = ad(t[0], i), s = ad(t[1], i), o = Tf(t[2]);
|
|
1870
1870
|
return [e, s, o];
|
|
1871
1871
|
}
|
|
1872
|
-
function
|
|
1872
|
+
function bB(t) {
|
|
1873
1873
|
return Math.abs(t) < 1e6 ? `${t.toFixed(2)} m²` : `${(t / 1e6).toFixed(2)} km²`;
|
|
1874
1874
|
}
|
|
1875
1875
|
function Qr(t, i = 48) {
|
|
@@ -1903,25 +1903,23 @@ function Kr(t, i) {
|
|
|
1903
1903
|
if (t)
|
|
1904
1904
|
return Object.prototype.hasOwnProperty.call(t, i) ? t[i] != null ? Object.assign({}, t[i]) : void 0 : Kr(t.childPickedInfo, i);
|
|
1905
1905
|
}
|
|
1906
|
-
function
|
|
1907
|
-
return new Promise((
|
|
1908
|
-
let
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
width:
|
|
1912
|
-
height:
|
|
1913
|
-
base64: i(
|
|
1906
|
+
function Ko(t, i = !0) {
|
|
1907
|
+
return new Promise((s, o) => {
|
|
1908
|
+
let n = new Image();
|
|
1909
|
+
n.src = t + "?v=" + Math.random(), n.crossOrigin = "Anonymous", n.onload = function() {
|
|
1910
|
+
s({
|
|
1911
|
+
width: n.width,
|
|
1912
|
+
height: n.height,
|
|
1913
|
+
base64: i ? e(n) : "",
|
|
1914
1914
|
url: t
|
|
1915
1915
|
});
|
|
1916
|
-
},
|
|
1917
|
-
|
|
1916
|
+
}, n.onerror = function(r) {
|
|
1917
|
+
o(new Error(`图片加载失败:${r}`));
|
|
1918
1918
|
};
|
|
1919
1919
|
});
|
|
1920
|
-
function
|
|
1921
|
-
let
|
|
1922
|
-
|
|
1923
|
-
let n = e.src.substring(e.src.lastIndexOf(".") + 1).toLowerCase();
|
|
1924
|
-
return s.toDataURL("image/" + n);
|
|
1920
|
+
function e(s) {
|
|
1921
|
+
let o = document.createElement("canvas");
|
|
1922
|
+
return o.width = s.width, o.height = s.height, o.getContext("2d").drawImage(s, 0, 0, s.width, s.height), o.toDataURL("image/png");
|
|
1925
1923
|
}
|
|
1926
1924
|
}
|
|
1927
1925
|
function Bb(t, i) {
|
|
@@ -1983,7 +1981,7 @@ function Bb(t, i) {
|
|
|
1983
1981
|
}, t.indexTypedArray = new Uint16Array([0, 1, 2, 0, 2, 3]);
|
|
1984
1982
|
}
|
|
1985
1983
|
function Vb(t) {
|
|
1986
|
-
const i = nu(
|
|
1984
|
+
const i = nu(Dn(t, ["0"])), e = nu(Dn(t, ["1"])), s = nu(Dn(t, ["2"])), o = ru(Dn(t, ["0"])), n = ru(Dn(t, ["1"])), r = ru(Dn(t, ["2"]));
|
|
1987
1985
|
return { minPos: [i, e, s], maxPos: [o, n, r] };
|
|
1988
1986
|
}
|
|
1989
1987
|
function $g(t, i) {
|
|
@@ -2013,7 +2011,7 @@ function $g(t, i) {
|
|
|
2013
2011
|
const _ = [...new Array(o).keys()], C = _.map((E) => [E, E + o + 1, E + o + 2, E, E + o + 2, E + 1]), b = _.map((E) => [E, E + o + 2, E + o + 1, E, E + 1, E + o + 2]), T = [...C, ...b].flat();
|
|
2014
2012
|
t.indexTypedArray = new Uint16Array(T);
|
|
2015
2013
|
}
|
|
2016
|
-
function
|
|
2014
|
+
function SB(t, i) {
|
|
2017
2015
|
for (let [e, { defaultValue: s, componentName: o, originPropName: n = e }] of Object.entries(i))
|
|
2018
2016
|
Reflect.has(t, e) ? console.error(`Prop(${e}) conflicts!`) : Object.defineProperties(t, {
|
|
2019
2017
|
[e]: {
|
|
@@ -2031,7 +2029,7 @@ function xB(t, i) {
|
|
|
2031
2029
|
}
|
|
2032
2030
|
});
|
|
2033
2031
|
}
|
|
2034
|
-
function
|
|
2032
|
+
function TB(t) {
|
|
2035
2033
|
const i = {};
|
|
2036
2034
|
for (let [e, { defaultValue: s }] of Object.entries(t))
|
|
2037
2035
|
i[e] = s;
|
|
@@ -2042,7 +2040,7 @@ function qg(t, i, e, s) {
|
|
|
2042
2040
|
return o.innerHTML = Qr(t), o.position = i, o.show = !0, o;
|
|
2043
2041
|
}
|
|
2044
2042
|
function Nb(t) {
|
|
2045
|
-
const [i, e, s] =
|
|
2043
|
+
const [i, e, s] = Di(t), o = U(void 0), n = () => {
|
|
2046
2044
|
const r = i();
|
|
2047
2045
|
o.value = r && uf(r);
|
|
2048
2046
|
};
|
|
@@ -2205,7 +2203,7 @@ function fe(t, i, e, s, o, n, r = "default") {
|
|
|
2205
2203
|
const a = t == null ? void 0 : t.camera;
|
|
2206
2204
|
return a && Yc(a, { position: i, viewDistance: e, rotation: s, duration: o && o * 1e3, cancelCallback: n }, r);
|
|
2207
2205
|
}
|
|
2208
|
-
async function
|
|
2206
|
+
async function Fi(t, i, e, s, o, n, r = !1) {
|
|
2209
2207
|
if (!t.viewer) return;
|
|
2210
2208
|
const a = Ef(t, o), l = [...Qi];
|
|
2211
2209
|
r && (l[0] = i.rotation[0] - 90);
|
|
@@ -3693,7 +3691,7 @@ const rr = class rr extends k {
|
|
|
3693
3691
|
this.scaleByDistanceChanged,
|
|
3694
3692
|
this.translucencyByDistanceChanged
|
|
3695
3693
|
)), l = () => {
|
|
3696
|
-
!r || !n || (r.show = (this.show ?? !0) && !!this.position, this.position && (r.position = Ve(this.position)), r.pixelSize = this.pixelSize ?? 1, r.color = de(this.color ?? rr.defaults.color), this.distanceDisplayCondition && (r.distanceDisplayCondition = Hd(this.distanceDisplayCondition)), r.outlineColor = de(this.outlineColor ?? rr.defaults.outlineColor), r.outlineWidth = this.outlineWidth ?? rr.defaults.outlineWidth, this.scaleByDistance && (r.scaleByDistance =
|
|
3694
|
+
!r || !n || (r.show = (this.show ?? !0) && !!this.position, this.position && (r.position = Ve(this.position)), r.pixelSize = this.pixelSize ?? 1, r.color = de(this.color ?? rr.defaults.color), this.distanceDisplayCondition && (r.distanceDisplayCondition = Hd(this.distanceDisplayCondition)), r.outlineColor = de(this.outlineColor ?? rr.defaults.outlineColor), r.outlineWidth = this.outlineWidth ?? rr.defaults.outlineWidth, this.scaleByDistance && (r.scaleByDistance = jo(this.scaleByDistance)), this.translucencyByDistance && (r.translucencyByDistance = jo(this.translucencyByDistance)));
|
|
3697
3695
|
};
|
|
3698
3696
|
l(), this.ad(a.don(l));
|
|
3699
3697
|
}
|
|
@@ -3748,7 +3746,7 @@ let qi = rr;
|
|
|
3748
3746
|
});
|
|
3749
3747
|
})(qi || (qi = {}));
|
|
3750
3748
|
ae(qi.prototype, qi.createDefaultProps);
|
|
3751
|
-
class
|
|
3749
|
+
class Oi extends k {
|
|
3752
3750
|
constructor(e, s) {
|
|
3753
3751
|
super();
|
|
3754
3752
|
g(this, "_flyToEvent", this.disposeVar(new q()));
|
|
@@ -3872,8 +3870,8 @@ class Bi extends k {
|
|
|
3872
3870
|
depthTest: void 0,
|
|
3873
3871
|
topOrBottom: "none"
|
|
3874
3872
|
});
|
|
3875
|
-
})(
|
|
3876
|
-
ae(
|
|
3873
|
+
})(Oi || (Oi = {}));
|
|
3874
|
+
ae(Oi.prototype, Oi.createDefaultProps);
|
|
3877
3875
|
class Eh extends k {
|
|
3878
3876
|
constructor(e, s) {
|
|
3879
3877
|
super();
|
|
@@ -4004,7 +4002,7 @@ class fs extends k {
|
|
|
4004
4002
|
super();
|
|
4005
4003
|
g(this, "_flyToEvent", this.disposeVar(new q()));
|
|
4006
4004
|
if (!e.viewer) return;
|
|
4007
|
-
const n = this.ad(new
|
|
4005
|
+
const n = this.ad(new Oi(e, s)), r = this.ad(new Eh(e, s));
|
|
4008
4006
|
this.dispose(P([n, "allowPicking"], [this, "allowPicking"])), this.dispose(P([r, "allowPicking"], [this, "allowPicking"]));
|
|
4009
4007
|
{
|
|
4010
4008
|
const a = () => {
|
|
@@ -4211,7 +4209,7 @@ g(ar, "defaults", {
|
|
|
4211
4209
|
color: [1, 1, 1, 0.5]
|
|
4212
4210
|
}
|
|
4213
4211
|
}), g(ar, "polygonHierarchyMd", wS);
|
|
4214
|
-
let
|
|
4212
|
+
let rn = ar;
|
|
4215
4213
|
((t) => {
|
|
4216
4214
|
t.createDefaultProps = () => ({
|
|
4217
4215
|
show: void 0,
|
|
@@ -4224,8 +4222,8 @@ let nn = ar;
|
|
|
4224
4222
|
// undfined时为1.0,A numeric Property specifying the width in pixels.
|
|
4225
4223
|
material: He(void 0)
|
|
4226
4224
|
});
|
|
4227
|
-
})(
|
|
4228
|
-
ae(
|
|
4225
|
+
})(rn || (rn = {}));
|
|
4226
|
+
ae(rn.prototype, rn.createDefaultProps);
|
|
4229
4227
|
class Ah extends k {
|
|
4230
4228
|
constructor(e, s) {
|
|
4231
4229
|
super();
|
|
@@ -4357,7 +4355,7 @@ class Mh extends k {
|
|
|
4357
4355
|
super();
|
|
4358
4356
|
g(this, "_flyToEvent", this.disposeVar(new q()));
|
|
4359
4357
|
if (!e.viewer) return;
|
|
4360
|
-
const n = this.ad(new
|
|
4358
|
+
const n = this.ad(new rn(e, s)), r = this.ad(new Ah(e, s));
|
|
4361
4359
|
this.dispose(P([n, "allowPicking"], [this, "allowPicking"])), this.dispose(P([r, "allowPicking"], [this, "allowPicking"])), this.dispose(P([n, "polygonHierarchy"], [this, "polygonHierarchy"])), this.dispose(P([r, "polygonHierarchy"], [this, "polygonHierarchy"])), this.dispose(P([n, "stRotation"], [this, "stRotation"])), this.dispose(P([r, "stRotation"], [this, "stRotation"])), this.dispose(P([n, "material"], [this, "material"])), this.dispose(P([r, "material"], [this, "material"]));
|
|
4362
4360
|
{
|
|
4363
4361
|
const a = () => {
|
|
@@ -5218,12 +5216,12 @@ let Qe = it;
|
|
|
5218
5216
|
});
|
|
5219
5217
|
})(Qe || (Qe = {}));
|
|
5220
5218
|
ae(Qe.prototype, Qe.createDefaultProps);
|
|
5221
|
-
class
|
|
5219
|
+
class AB extends dw {
|
|
5222
5220
|
constructor() {
|
|
5223
5221
|
super(), this.contentDiv.style.backgroundColor = "rgba(0, 0, 0, 0.8)", this.contentDiv.style.borderRadius = "3px", this.contentDiv.style.color = "rgb(255, 255, 255)", this.contentDiv.style.padding = "1px 5px 1px 5px", this.contentDiv.style.fontSize = "12px", this.contentDiv.style.whiteSpace = "nowrap", this.contentDiv.innerText = "未定义光标信息!", this.originRatioX = 0, this.originRatioY = 0, this.originOffsetX = -16;
|
|
5224
5222
|
}
|
|
5225
5223
|
}
|
|
5226
|
-
class
|
|
5224
|
+
class MB extends k {
|
|
5227
5225
|
constructor(e, s) {
|
|
5228
5226
|
super();
|
|
5229
5227
|
g(this, "_cursorDiv");
|
|
@@ -5412,7 +5410,7 @@ class Kw extends k {
|
|
|
5412
5410
|
return this._zOrderChanged || (this._zOrderChanged = new q()), this._zOrderChanged;
|
|
5413
5411
|
}
|
|
5414
5412
|
}
|
|
5415
|
-
class
|
|
5413
|
+
class IB extends k {
|
|
5416
5414
|
// status: CzmCanvasAndDivSwitchPoiStatus
|
|
5417
5415
|
constructor(e, s, o, n) {
|
|
5418
5416
|
super();
|
|
@@ -6729,7 +6727,7 @@ class QS extends k {
|
|
|
6729
6727
|
})), this.dispose(M([e, "selected"], [i, "selected"])), this.dispose(M([e, "hovered"], [i, "hovered"]));
|
|
6730
6728
|
}
|
|
6731
6729
|
}
|
|
6732
|
-
function
|
|
6730
|
+
function On(t, i, e, s, o) {
|
|
6733
6731
|
t.beginPath(), t.moveTo(i + s, e), t.arc(i, e, s, 0, 2 * Math.PI), t.fillStyle = o, t.fill();
|
|
6734
6732
|
}
|
|
6735
6733
|
function KS(t, i, e, s, o, n) {
|
|
@@ -6923,7 +6921,7 @@ class JS extends ff {
|
|
|
6923
6921
|
const [s, o] = this._winPos, n = e.globalAlpha;
|
|
6924
6922
|
e.globalAlpha = this.opacity;
|
|
6925
6923
|
const r = (this._radius.value ?? Qg) * this._scale.value;
|
|
6926
|
-
if (this.selected &&
|
|
6924
|
+
if (this.selected && On(e, s, o, r + 3, this._selectedStyle.value ?? "#F00"), this.actived && this._clickEvent && !this._clickEvent.empty && On(e, s, o, r + 1, this._fillStyle.value ?? "#FFF"), this._outlineStyle.value && (this.hovered ? On(e, s, o, r + 1, this._outlineStyle.value) : On(e, s, o, r + 1, this._outlineStyle.value)), On(e, s, o, r, this._fillStyle.value ?? "#FFF"), this._text.value) {
|
|
6927
6925
|
const a = this._font.value ?? "bold 10px Arial", l = this._fontStyle.value ?? "#000";
|
|
6928
6926
|
KS(e, s, o, this._text.value, a, l);
|
|
6929
6927
|
}
|
|
@@ -6939,10 +6937,10 @@ class JS extends ff {
|
|
|
6939
6937
|
if (!this._show)
|
|
6940
6938
|
return;
|
|
6941
6939
|
const [o, n] = this._winPos, r = (this._radius.value ?? Qg) * this._scale.value, a = s("default");
|
|
6942
|
-
|
|
6940
|
+
On(e, o, n, r, a);
|
|
6943
6941
|
}
|
|
6944
6942
|
}
|
|
6945
|
-
class
|
|
6943
|
+
class an extends k {
|
|
6946
6944
|
constructor(e, s) {
|
|
6947
6945
|
super();
|
|
6948
6946
|
g(this, "_pickedEvent", this.disposeVar(new q()));
|
|
@@ -6977,7 +6975,7 @@ class rn extends k {
|
|
|
6977
6975
|
return this._geoCanvasPoi;
|
|
6978
6976
|
}
|
|
6979
6977
|
}
|
|
6980
|
-
g(
|
|
6978
|
+
g(an, "defaults", {
|
|
6981
6979
|
viewDistanceRange: [1e3, 1e4, 3e4, 6e4]
|
|
6982
6980
|
});
|
|
6983
6981
|
((t) => {
|
|
@@ -7005,8 +7003,8 @@ g(rn, "defaults", {
|
|
|
7005
7003
|
viewDistanceDebug: !1,
|
|
7006
7004
|
pickOnClick: !1
|
|
7007
7005
|
});
|
|
7008
|
-
})(
|
|
7009
|
-
ae(
|
|
7006
|
+
})(an || (an = {}));
|
|
7007
|
+
ae(an.prototype, an.createDefaultProps);
|
|
7010
7008
|
class Dh extends k {
|
|
7011
7009
|
constructor(e, s) {
|
|
7012
7010
|
super();
|
|
@@ -7782,7 +7780,7 @@ const Ss = class Ss extends k {
|
|
|
7782
7780
|
if (!o)
|
|
7783
7781
|
return;
|
|
7784
7782
|
const n = this;
|
|
7785
|
-
e & Ss.ResetFlag.Position && (n.position =
|
|
7783
|
+
e & Ss.ResetFlag.Position && (n.position = Li(o.camera)), e & Ss.ResetFlag.Rotation && (n.rotation = Sa(o.camera)), e & Ss.ResetFlag.ViewDistance && (n.viewDistance = 0);
|
|
7786
7784
|
}
|
|
7787
7785
|
/**
|
|
7788
7786
|
* 飞入视角
|
|
@@ -8848,7 +8846,7 @@ class cT extends k {
|
|
|
8848
8846
|
return this._bottomPolyline;
|
|
8849
8847
|
}
|
|
8850
8848
|
}
|
|
8851
|
-
class
|
|
8849
|
+
class ln extends k {
|
|
8852
8850
|
constructor(e, s) {
|
|
8853
8851
|
super();
|
|
8854
8852
|
g(this, "_positions", this.disposeVar(je(void 0)));
|
|
@@ -8961,7 +8959,7 @@ class an extends k {
|
|
|
8961
8959
|
this._flyToEvent.emit(e);
|
|
8962
8960
|
}
|
|
8963
8961
|
}
|
|
8964
|
-
g(
|
|
8962
|
+
g(ln, "defaults", {
|
|
8965
8963
|
positions: []
|
|
8966
8964
|
});
|
|
8967
8965
|
((t) => {
|
|
@@ -8983,13 +8981,13 @@ g(an, "defaults", {
|
|
|
8983
8981
|
closeBottom: void 0
|
|
8984
8982
|
// textureCoordinates: reactJson({ positions: [] } as PolygonHierarchyType),//TODE
|
|
8985
8983
|
});
|
|
8986
|
-
})(
|
|
8987
|
-
ae(
|
|
8984
|
+
})(ln || (ln = {}));
|
|
8985
|
+
ae(ln.prototype, ln.createDefaultProps);
|
|
8988
8986
|
class sC extends k {
|
|
8989
8987
|
constructor(e, s, o, n) {
|
|
8990
8988
|
super();
|
|
8991
8989
|
g(this, "_czmInnerPolygonPrimitive");
|
|
8992
|
-
this._czmInnerPolygonPrimitive = this.disposeVar(new
|
|
8990
|
+
this._czmInnerPolygonPrimitive = this.disposeVar(new ln(s, e.id));
|
|
8993
8991
|
const r = this._czmInnerPolygonPrimitive;
|
|
8994
8992
|
{
|
|
8995
8993
|
const a = () => {
|
|
@@ -9179,7 +9177,7 @@ class fT extends k {
|
|
|
9179
9177
|
return this._bottomPolyline;
|
|
9180
9178
|
}
|
|
9181
9179
|
}
|
|
9182
|
-
class
|
|
9180
|
+
class hn extends k {
|
|
9183
9181
|
constructor(e, s) {
|
|
9184
9182
|
super();
|
|
9185
9183
|
g(this, "_flyToEvent", this.disposeVar(new q()));
|
|
@@ -9227,7 +9225,7 @@ class ln extends k {
|
|
|
9227
9225
|
return this._positionsCenter;
|
|
9228
9226
|
}
|
|
9229
9227
|
}
|
|
9230
|
-
g(
|
|
9228
|
+
g(hn, "defaults", {
|
|
9231
9229
|
positions: [],
|
|
9232
9230
|
viewDistanceRange: [1e3, 1e4, 3e4, 6e4]
|
|
9233
9231
|
});
|
|
@@ -9250,8 +9248,8 @@ g(ln, "defaults", {
|
|
|
9250
9248
|
depthTest: !1
|
|
9251
9249
|
//深度检测
|
|
9252
9250
|
});
|
|
9253
|
-
})(
|
|
9254
|
-
ae(
|
|
9251
|
+
})(hn || (hn = {}));
|
|
9252
|
+
ae(hn.prototype, hn.createDefaultProps);
|
|
9255
9253
|
class Fh extends k {
|
|
9256
9254
|
constructor(e, s) {
|
|
9257
9255
|
super();
|
|
@@ -9441,7 +9439,7 @@ g(Fd, "defaults", {
|
|
|
9441
9439
|
color: [1, 1, 1, 0.5]
|
|
9442
9440
|
}
|
|
9443
9441
|
});
|
|
9444
|
-
let
|
|
9442
|
+
let cn = Fd;
|
|
9445
9443
|
((t) => {
|
|
9446
9444
|
t.createDefaultProps = () => ({
|
|
9447
9445
|
show: void 0,
|
|
@@ -9451,8 +9449,8 @@ let hn = Fd;
|
|
|
9451
9449
|
rotation: void 0,
|
|
9452
9450
|
stRotation: void 0
|
|
9453
9451
|
});
|
|
9454
|
-
})(
|
|
9455
|
-
ae(
|
|
9452
|
+
})(cn || (cn = {}));
|
|
9453
|
+
ae(cn.prototype, cn.createDefaultProps);
|
|
9456
9454
|
class zh extends k {
|
|
9457
9455
|
constructor(e, s) {
|
|
9458
9456
|
super();
|
|
@@ -9557,7 +9555,7 @@ const Ia = class Ia extends k {
|
|
|
9557
9555
|
super();
|
|
9558
9556
|
g(this, "_flyToEvent", this.disposeVar(new q()));
|
|
9559
9557
|
if (!e.viewer) return;
|
|
9560
|
-
const n = this.ad(new Fh(e, s)), r = this.ad(new
|
|
9558
|
+
const n = this.ad(new Fh(e, s)), r = this.ad(new cn(e, s)), a = this.ad(new zh(e, s));
|
|
9561
9559
|
this.dispose(P([n, "allowPicking"], [this, "allowPicking"])), this.dispose(P([r, "allowPicking"], [this, "allowPicking"]));
|
|
9562
9560
|
{
|
|
9563
9561
|
const l = () => {
|
|
@@ -9741,7 +9739,7 @@ g(Ra, "defaults", {
|
|
|
9741
9739
|
ellipsoid: [6378137, 6378137, 6356752314245179e-9],
|
|
9742
9740
|
granularity: 1
|
|
9743
9741
|
});
|
|
9744
|
-
let
|
|
9742
|
+
let dn = Ra;
|
|
9745
9743
|
((t) => {
|
|
9746
9744
|
t.createDefaultProps = () => ({
|
|
9747
9745
|
show: void 0,
|
|
@@ -9756,8 +9754,8 @@ let cn = Ra;
|
|
|
9756
9754
|
ellipsoid: void 0,
|
|
9757
9755
|
granularity: void 0
|
|
9758
9756
|
});
|
|
9759
|
-
})(
|
|
9760
|
-
ae(
|
|
9757
|
+
})(dn || (dn = {}));
|
|
9758
|
+
ae(dn.prototype, dn.createDefaultProps);
|
|
9761
9759
|
const No = class No extends k {
|
|
9762
9760
|
constructor(e, s) {
|
|
9763
9761
|
super();
|
|
@@ -9862,7 +9860,7 @@ g(No, "defaults", {
|
|
|
9862
9860
|
ellipsoid: [6378137, 6378137, 6356752314245179e-9],
|
|
9863
9861
|
granularity: 1
|
|
9864
9862
|
});
|
|
9865
|
-
let
|
|
9863
|
+
let un = No;
|
|
9866
9864
|
((t) => {
|
|
9867
9865
|
t.createDefaultProps = () => ({
|
|
9868
9866
|
show: void 0,
|
|
@@ -9875,8 +9873,8 @@ let dn = No;
|
|
|
9875
9873
|
stRotation: void 0,
|
|
9876
9874
|
ellipsoid: void 0
|
|
9877
9875
|
});
|
|
9878
|
-
})(
|
|
9879
|
-
ae(
|
|
9876
|
+
})(un || (un = {}));
|
|
9877
|
+
ae(un.prototype, un.createDefaultProps);
|
|
9880
9878
|
const Da = class Da extends k {
|
|
9881
9879
|
constructor(e, s) {
|
|
9882
9880
|
super();
|
|
@@ -10003,7 +10001,7 @@ g(Da, "defaults", {
|
|
|
10003
10001
|
granularity: 1,
|
|
10004
10002
|
numberOfVerticalLines: 0
|
|
10005
10003
|
});
|
|
10006
|
-
let
|
|
10004
|
+
let pn = Da;
|
|
10007
10005
|
((t) => {
|
|
10008
10006
|
t.createDefaultProps = () => ({
|
|
10009
10007
|
show: !0,
|
|
@@ -10019,14 +10017,14 @@ let un = Da;
|
|
|
10019
10017
|
granularity: void 0,
|
|
10020
10018
|
numberOfVerticalLines: void 0
|
|
10021
10019
|
});
|
|
10022
|
-
})(
|
|
10023
|
-
ae(
|
|
10020
|
+
})(pn || (pn = {}));
|
|
10021
|
+
ae(pn.prototype, pn.createDefaultProps);
|
|
10024
10022
|
class Mr extends k {
|
|
10025
10023
|
constructor(e, s) {
|
|
10026
10024
|
super();
|
|
10027
10025
|
g(this, "_flyToEvent", this.disposeVar(new q()));
|
|
10028
10026
|
if (!e.viewer) return;
|
|
10029
|
-
const n = this.ad(new
|
|
10027
|
+
const n = this.ad(new dn(e, s)), r = this.ad(new un(e, s)), a = this.ad(new pn(e, s));
|
|
10030
10028
|
this.dispose(P([n, "allowPicking"], [this, "allowPicking"])), this.dispose(P([r, "allowPicking"], [this, "allowPicking"])), this.dispose(P([a, "allowPicking"], [this, "allowPicking"]));
|
|
10031
10029
|
{
|
|
10032
10030
|
const l = () => {
|
|
@@ -10402,8 +10400,8 @@ class Rr extends k {
|
|
|
10402
10400
|
outlineWidth: y.outlineWidth,
|
|
10403
10401
|
pixelSize: y.pixelSize,
|
|
10404
10402
|
position: y.position && Ve(y.position),
|
|
10405
|
-
scaleByDistance: y.scaleByDistance &&
|
|
10406
|
-
translucencyByDistance: y.translucencyByDistance &&
|
|
10403
|
+
scaleByDistance: y.scaleByDistance && jo(y.scaleByDistance),
|
|
10404
|
+
translucencyByDistance: y.translucencyByDistance && jo(y.translucencyByDistance)
|
|
10407
10405
|
});
|
|
10408
10406
|
}), h.PointPrimitiveCollection.prototype && (m.ESSceneObjectID = s)), m;
|
|
10409
10407
|
}, c = () => {
|
|
@@ -10683,7 +10681,7 @@ x.typeOf.number.equals = function(t, i, e, s) {
|
|
|
10683
10681
|
`${t} must be equal to ${i}, the actual values are ${e} and ${s}`
|
|
10684
10682
|
);
|
|
10685
10683
|
};
|
|
10686
|
-
var
|
|
10684
|
+
var sn = typeof globalThis < "u" || typeof globalThis < "u" ? globalThis : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
10687
10685
|
function Xd(t) {
|
|
10688
10686
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
10689
10687
|
}
|
|
@@ -11192,7 +11190,7 @@ R.midpoint = function(t, i, e) {
|
|
|
11192
11190
|
R.fromDegrees = function(t, i, e, s, o) {
|
|
11193
11191
|
return x.typeOf.number("longitude", t), x.typeOf.number("latitude", i), t = z.toRadians(t), i = z.toRadians(i), R.fromRadians(t, i, e, s, o);
|
|
11194
11192
|
};
|
|
11195
|
-
let Si = new R(),
|
|
11193
|
+
let Si = new R(), Bn = new R();
|
|
11196
11194
|
R._ellipsoidRadiiSquared = new R(
|
|
11197
11195
|
6378137 * 6378137,
|
|
11198
11196
|
6378137 * 6378137,
|
|
@@ -11201,9 +11199,9 @@ R._ellipsoidRadiiSquared = new R(
|
|
|
11201
11199
|
R.fromRadians = function(t, i, e, s, o) {
|
|
11202
11200
|
x.typeOf.number("longitude", t), x.typeOf.number("latitude", i), e = e ?? 0;
|
|
11203
11201
|
const n = A(s) ? s.radiiSquared : R._ellipsoidRadiiSquared, r = Math.cos(i);
|
|
11204
|
-
Si.x = r * Math.cos(t), Si.y = r * Math.sin(t), Si.z = Math.sin(i), Si = R.normalize(Si, Si), R.multiplyComponents(n, Si,
|
|
11205
|
-
const a = Math.sqrt(R.dot(Si,
|
|
11206
|
-
return
|
|
11202
|
+
Si.x = r * Math.cos(t), Si.y = r * Math.sin(t), Si.z = Math.sin(i), Si = R.normalize(Si, Si), R.multiplyComponents(n, Si, Bn);
|
|
11203
|
+
const a = Math.sqrt(R.dot(Si, Bn));
|
|
11204
|
+
return Bn = R.divideByScalar(Bn, a, Bn), Si = R.multiplyByScalar(Si, e, Si), A(o) || (o = new R()), R.add(Bn, Si, o);
|
|
11207
11205
|
};
|
|
11208
11206
|
R.fromDegreesArray = function(t, i, e) {
|
|
11209
11207
|
if (x.defined("coordinates", t), t.length < 2 || t.length % 2 !== 0)
|
|
@@ -12615,18 +12613,18 @@ Q.fromUniformScale = function(t, i) {
|
|
|
12615
12613
|
Q.fromRotation = function(t, i) {
|
|
12616
12614
|
return x.typeOf.object("rotation", t), A(i) || (i = new Q()), i[0] = t[0], i[1] = t[1], i[2] = t[2], i[3] = 0, i[4] = t[3], i[5] = t[4], i[6] = t[5], i[7] = 0, i[8] = t[6], i[9] = t[7], i[10] = t[8], i[11] = 0, i[12] = 0, i[13] = 0, i[14] = 0, i[15] = 1, i;
|
|
12617
12615
|
};
|
|
12618
|
-
const
|
|
12616
|
+
const Vn = new R(), Nn = new R(), ca = new R();
|
|
12619
12617
|
Q.fromCamera = function(t, i) {
|
|
12620
12618
|
x.typeOf.object("camera", t);
|
|
12621
12619
|
const e = t.position, s = t.direction, o = t.up;
|
|
12622
|
-
x.typeOf.object("camera.position", e), x.typeOf.object("camera.direction", s), x.typeOf.object("camera.up", o), R.normalize(s,
|
|
12623
|
-
R.cross(
|
|
12624
|
-
|
|
12620
|
+
x.typeOf.object("camera.position", e), x.typeOf.object("camera.direction", s), x.typeOf.object("camera.up", o), R.normalize(s, Vn), R.normalize(
|
|
12621
|
+
R.cross(Vn, o, Nn),
|
|
12622
|
+
Nn
|
|
12625
12623
|
), R.normalize(
|
|
12626
|
-
R.cross(
|
|
12624
|
+
R.cross(Nn, Vn, ca),
|
|
12627
12625
|
ca
|
|
12628
12626
|
);
|
|
12629
|
-
const n =
|
|
12627
|
+
const n = Nn.x, r = Nn.y, a = Nn.z, l = Vn.x, c = Vn.y, d = Vn.z, u = ca.x, p = ca.y, f = ca.z, m = e.x, v = e.y, y = e.z, _ = n * -m + r * -v + a * -y, C = u * -m + p * -v + f * -y, b = l * m + c * v + d * y;
|
|
12630
12628
|
return A(i) ? (i[0] = n, i[1] = u, i[2] = -l, i[3] = 0, i[4] = r, i[5] = p, i[6] = -c, i[7] = 0, i[8] = a, i[9] = f, i[10] = -d, i[11] = 0, i[12] = _, i[13] = C, i[14] = b, i[15] = 1, i) : new Q(
|
|
12631
12629
|
n,
|
|
12632
12630
|
r,
|
|
@@ -13159,7 +13157,7 @@ function Ff(t, i, e, s, o, n, r) {
|
|
|
13159
13157
|
const d = n + (s * et.SECONDS_PER_HOUR + o * et.SECONDS_PER_MINUTE + r * et.SECONDS_PER_MILLISECOND);
|
|
13160
13158
|
return d >= 43200 && (c -= 1), [c, d];
|
|
13161
13159
|
}
|
|
13162
|
-
const oE = /^(\d{4})$/, nE = /^(\d{4})-(\d{2})$/, rE = /^(\d{4})-?(\d{3})$/, aE = /^(\d{4})-?W(\d{2})-?(\d{1})?$/, lE = /^(\d{4})-?(\d{2})-?(\d{2})$/, zf = /([Z+\-])?(\d{2})?:?(\d{2})?$/, hE = /^(\d{2})(\.\d+)?/.source + zf.source, cE = /^(\d{2}):?(\d{2})(\.\d+)?/.source + zf.source, dE = /^(\d{2}):?(\d{2}):?(\d{2})(\.\d+)?/.source + zf.source,
|
|
13160
|
+
const oE = /^(\d{4})$/, nE = /^(\d{4})-(\d{2})$/, rE = /^(\d{4})-?(\d{3})$/, aE = /^(\d{4})-?W(\d{2})-?(\d{1})?$/, lE = /^(\d{4})-?(\d{2})-?(\d{2})$/, zf = /([Z+\-])?(\d{2})?:?(\d{2})?$/, hE = /^(\d{2})(\.\d+)?/.source + zf.source, cE = /^(\d{2}):?(\d{2})(\.\d+)?/.source + zf.source, dE = /^(\d{2}):?(\d{2}):?(\d{2})(\.\d+)?/.source + zf.source, Ui = "Invalid ISO 8601 date.";
|
|
13163
13161
|
function ie(t, i, e) {
|
|
13164
13162
|
this.dayNumber = void 0, this.secondsOfDay = void 0, t = t ?? 0, i = i ?? 0, e = e ?? Te.UTC;
|
|
13165
13163
|
const s = t | 0;
|
|
@@ -13195,17 +13193,17 @@ ie.fromDate = function(t, i) {
|
|
|
13195
13193
|
};
|
|
13196
13194
|
ie.fromIso8601 = function(t, i) {
|
|
13197
13195
|
if (typeof t != "string")
|
|
13198
|
-
throw new H(
|
|
13196
|
+
throw new H(Ui);
|
|
13199
13197
|
t = t.replace(",", ".");
|
|
13200
13198
|
let e = t.split("T"), s, o = 1, n = 1, r = 0, a = 0, l = 0, c = 0;
|
|
13201
13199
|
const d = e[0], u = e[1];
|
|
13202
13200
|
let p, f;
|
|
13203
13201
|
if (!A(d))
|
|
13204
|
-
throw new H(
|
|
13202
|
+
throw new H(Ui);
|
|
13205
13203
|
let m;
|
|
13206
13204
|
if (e = d.match(lE), e !== null) {
|
|
13207
13205
|
if (m = d.split("-").length - 1, m > 0 && m !== 2)
|
|
13208
|
-
throw new H(
|
|
13206
|
+
throw new H(Ui);
|
|
13209
13207
|
s = +e[1], o = +e[2], n = +e[3];
|
|
13210
13208
|
} else if (e = d.match(nE), e !== null)
|
|
13211
13209
|
s = +e[1], o = +e[2];
|
|
@@ -13215,36 +13213,36 @@ ie.fromIso8601 = function(t, i) {
|
|
|
13215
13213
|
let C;
|
|
13216
13214
|
if (e = d.match(rE), e !== null) {
|
|
13217
13215
|
if (s = +e[1], C = +e[2], f = Cp(s), C < 1 || f && C > 366 || !f && C > 365)
|
|
13218
|
-
throw new H(
|
|
13216
|
+
throw new H(Ui);
|
|
13219
13217
|
} else if (e = d.match(aE), e !== null) {
|
|
13220
13218
|
s = +e[1];
|
|
13221
13219
|
const b = +e[2], T = +e[3] || 0;
|
|
13222
13220
|
if (m = d.split("-").length - 1, m > 0 && (!A(e[3]) && m !== 1 || A(e[3]) && m !== 2))
|
|
13223
|
-
throw new H(
|
|
13221
|
+
throw new H(Ui);
|
|
13224
13222
|
const E = new Date(Date.UTC(s, 0, 4));
|
|
13225
13223
|
C = b * 7 + T - E.getUTCDay() - 3;
|
|
13226
13224
|
} else
|
|
13227
|
-
throw new H(
|
|
13225
|
+
throw new H(Ui);
|
|
13228
13226
|
p = new Date(Date.UTC(s, 0, 1)), p.setUTCDate(C), o = p.getUTCMonth() + 1, n = p.getUTCDate();
|
|
13229
13227
|
}
|
|
13230
13228
|
if (f = Cp(s), o < 1 || o > 12 || n < 1 || (o !== 2 || !f) && n > Ac[o - 1] || f && o === 2 && n > Mc)
|
|
13231
|
-
throw new H(
|
|
13229
|
+
throw new H(Ui);
|
|
13232
13230
|
let v;
|
|
13233
13231
|
if (A(u)) {
|
|
13234
13232
|
if (e = u.match(dE), e !== null) {
|
|
13235
13233
|
if (m = u.split(":").length - 1, m > 0 && m !== 2 && m !== 3)
|
|
13236
|
-
throw new H(
|
|
13234
|
+
throw new H(Ui);
|
|
13237
13235
|
r = +e[1], a = +e[2], l = +e[3], c = +(e[4] || 0) * 1e3, v = 5;
|
|
13238
13236
|
} else if (e = u.match(cE), e !== null) {
|
|
13239
13237
|
if (m = u.split(":").length - 1, m > 2)
|
|
13240
|
-
throw new H(
|
|
13238
|
+
throw new H(Ui);
|
|
13241
13239
|
r = +e[1], a = +e[2], l = +(e[3] || 0) * 60, v = 4;
|
|
13242
13240
|
} else if (e = u.match(hE), e !== null)
|
|
13243
13241
|
r = +e[1], a = +(e[2] || 0) * 60, v = 3;
|
|
13244
13242
|
else
|
|
13245
|
-
throw new H(
|
|
13243
|
+
throw new H(Ui);
|
|
13246
13244
|
if (a >= 60 || l >= 61 || r > 24 || r === 24 && (a > 0 || l > 0 || c > 0))
|
|
13247
|
-
throw new H(
|
|
13245
|
+
throw new H(Ui);
|
|
13248
13246
|
const C = e[v], b = +e[v + 1], T = +(e[v + 2] || 0);
|
|
13249
13247
|
switch (C) {
|
|
13250
13248
|
case "+":
|
|
@@ -13537,7 +13535,7 @@ var lm;
|
|
|
13537
13535
|
function uE() {
|
|
13538
13536
|
return lm || (lm = 1, function(t, i) {
|
|
13539
13537
|
(function(e) {
|
|
13540
|
-
var s = i && !i.nodeType && i, o = t && !t.nodeType && t, n = typeof
|
|
13538
|
+
var s = i && !i.nodeType && i, o = t && !t.nodeType && t, n = typeof sn == "object" && sn;
|
|
13541
13539
|
(n.global === n || n.window === n || n.self === n) && (e = n);
|
|
13542
13540
|
var r, a = 2147483647, l = 36, c = 1, d = 26, u = 38, p = 700, f = 72, m = 128, v = "-", y = /^xn--/, _ = /[^\x20-\x7E]/, C = /[\x2E\u3002\uFF0E\uFF61]/g, b = {
|
|
13543
13541
|
overflow: "Overflow: input needs wider integers to process",
|
|
@@ -13651,7 +13649,7 @@ function uE() {
|
|
|
13651
13649
|
r.hasOwnProperty(B) && (s[B] = r[B]);
|
|
13652
13650
|
else
|
|
13653
13651
|
e.punycode = r;
|
|
13654
|
-
})(
|
|
13652
|
+
})(sn);
|
|
13655
13653
|
}(_a, _a.exports)), _a.exports;
|
|
13656
13654
|
}
|
|
13657
13655
|
var xu = { exports: {} };
|
|
@@ -13673,7 +13671,7 @@ function pE() {
|
|
|
13673
13671
|
return hm || (hm = 1, function(t) {
|
|
13674
13672
|
(function(i, e) {
|
|
13675
13673
|
t.exports ? t.exports = e() : i.IPv6 = e(i);
|
|
13676
|
-
})(
|
|
13674
|
+
})(sn, function(i) {
|
|
13677
13675
|
var e = i && i.IPv6;
|
|
13678
13676
|
function s(n) {
|
|
13679
13677
|
var r = n.toLowerCase(), a = r.split(":"), l = a.length, c = 8;
|
|
@@ -13728,7 +13726,7 @@ function fE() {
|
|
|
13728
13726
|
return cm || (cm = 1, function(t) {
|
|
13729
13727
|
(function(i, e) {
|
|
13730
13728
|
t.exports ? t.exports = e() : i.SecondLevelDomains = e(i);
|
|
13731
|
-
})(
|
|
13729
|
+
})(sn, function(i) {
|
|
13732
13730
|
var e = i && i.SecondLevelDomains, s = {
|
|
13733
13731
|
// list of known Second Level Domains
|
|
13734
13732
|
// converted list of SLDs from https://github.com/gavingmiller/second-level-domains
|
|
@@ -13936,7 +13934,7 @@ function fE() {
|
|
|
13936
13934
|
(function(t) {
|
|
13937
13935
|
(function(i, e) {
|
|
13938
13936
|
t.exports ? t.exports = e(uE(), pE(), fE()) : i.URI = e(i.punycode, i.IPv6, i.SecondLevelDomains, i);
|
|
13939
|
-
})(
|
|
13937
|
+
})(sn, function(i, e, s, o) {
|
|
13940
13938
|
var n = o && o.URI;
|
|
13941
13939
|
function r(w, S) {
|
|
13942
13940
|
var I = arguments.length >= 1, O = arguments.length >= 2;
|
|
@@ -15149,10 +15147,10 @@ jr.prototype.raiseEvent = function() {
|
|
|
15149
15147
|
Pp(this, this._listeners, t, e);
|
|
15150
15148
|
this._toRemove.clear();
|
|
15151
15149
|
};
|
|
15152
|
-
function
|
|
15150
|
+
function In(t) {
|
|
15153
15151
|
x.typeOf.object("options", t), x.defined("options.comparator", t.comparator), this._comparator = t.comparator, this._array = [], this._length = 0, this._maximumLength = void 0;
|
|
15154
15152
|
}
|
|
15155
|
-
Object.defineProperties(
|
|
15153
|
+
Object.defineProperties(In.prototype, {
|
|
15156
15154
|
/**
|
|
15157
15155
|
* Gets the length of the heap.
|
|
15158
15156
|
*
|
|
@@ -15219,10 +15217,10 @@ function Of(t, i, e) {
|
|
|
15219
15217
|
const s = t[i];
|
|
15220
15218
|
t[i] = t[e], t[e] = s;
|
|
15221
15219
|
}
|
|
15222
|
-
|
|
15220
|
+
In.prototype.reserve = function(t) {
|
|
15223
15221
|
t = t ?? this._length, this._array.length = t;
|
|
15224
15222
|
};
|
|
15225
|
-
|
|
15223
|
+
In.prototype.heapify = function(t) {
|
|
15226
15224
|
t = t ?? 0;
|
|
15227
15225
|
const i = this._length, e = this._comparator, s = this._array;
|
|
15228
15226
|
let o = -1, n = !0;
|
|
@@ -15231,12 +15229,12 @@ Mn.prototype.heapify = function(t) {
|
|
|
15231
15229
|
a < i && e(s[a], s[t]) < 0 ? o = a : o = t, r < i && e(s[r], s[o]) < 0 && (o = r), o !== t ? (Of(s, o, t), t = o) : n = !1;
|
|
15232
15230
|
}
|
|
15233
15231
|
};
|
|
15234
|
-
|
|
15232
|
+
In.prototype.resort = function() {
|
|
15235
15233
|
const t = this._length;
|
|
15236
15234
|
for (let i = Math.ceil(t / 2); i >= 0; --i)
|
|
15237
15235
|
this.heapify(i);
|
|
15238
15236
|
};
|
|
15239
|
-
|
|
15237
|
+
In.prototype.insert = function(t) {
|
|
15240
15238
|
x.defined("element", t);
|
|
15241
15239
|
const i = this._array, e = this._comparator, s = this._maximumLength;
|
|
15242
15240
|
let o = this._length++;
|
|
@@ -15250,7 +15248,7 @@ Mn.prototype.insert = function(t) {
|
|
|
15250
15248
|
let n;
|
|
15251
15249
|
return A(s) && this._length > s && (n = i[s], this._length = s), n;
|
|
15252
15250
|
};
|
|
15253
|
-
|
|
15251
|
+
In.prototype.pop = function(t) {
|
|
15254
15252
|
if (t = t ?? 0, this._length === 0)
|
|
15255
15253
|
return;
|
|
15256
15254
|
x.typeOf.number.lessThan("index", t, this._length);
|
|
@@ -15270,7 +15268,7 @@ const Re = {
|
|
|
15270
15268
|
lastNumberOfActiveRequests: 0
|
|
15271
15269
|
};
|
|
15272
15270
|
let wr = 20;
|
|
15273
|
-
const Nt = new
|
|
15271
|
+
const Nt = new In({
|
|
15274
15272
|
comparator: AE
|
|
15275
15273
|
});
|
|
15276
15274
|
Nt.maximumLength = wr;
|
|
@@ -15318,7 +15316,7 @@ Object.defineProperties($e, {
|
|
|
15318
15316
|
if (t < wr)
|
|
15319
15317
|
for (; Nt.length > t; ) {
|
|
15320
15318
|
const i = Nt.pop();
|
|
15321
|
-
|
|
15319
|
+
on(i);
|
|
15322
15320
|
}
|
|
15323
15321
|
wr = t, Nt.maximumLength = t, Nt.reserve(t);
|
|
15324
15322
|
}
|
|
@@ -15355,7 +15353,7 @@ function vC(t) {
|
|
|
15355
15353
|
const i = mC(t);
|
|
15356
15354
|
return t.state = ct.ACTIVE, rs.push(t), ++Re.numberOfActiveRequests, ++Re.numberOfActiveRequestsEver, ++Os[t.serverKey], t.requestFunction().then(IE(t)).catch(RE(t)), i;
|
|
15357
15355
|
}
|
|
15358
|
-
function
|
|
15356
|
+
function on(t) {
|
|
15359
15357
|
const i = t.state === ct.ACTIVE;
|
|
15360
15358
|
if (t.state = ct.CANCELLED, ++Re.numberOfCancelledRequests, A(t.deferred)) {
|
|
15361
15359
|
const e = t.deferred;
|
|
@@ -15367,7 +15365,7 @@ $e.update = function() {
|
|
|
15367
15365
|
let t, i, e = 0;
|
|
15368
15366
|
const s = rs.length;
|
|
15369
15367
|
for (t = 0; t < s; ++t) {
|
|
15370
|
-
if (i = rs[t], i.cancelled &&
|
|
15368
|
+
if (i = rs[t], i.cancelled && on(i), i.state !== ct.ACTIVE) {
|
|
15371
15369
|
++e;
|
|
15372
15370
|
continue;
|
|
15373
15371
|
}
|
|
@@ -15385,11 +15383,11 @@ $e.update = function() {
|
|
|
15385
15383
|
let a = 0;
|
|
15386
15384
|
for (; a < r && Nt.length > 0; ) {
|
|
15387
15385
|
if (i = Nt.pop(), i.cancelled) {
|
|
15388
|
-
|
|
15386
|
+
on(i);
|
|
15389
15387
|
continue;
|
|
15390
15388
|
}
|
|
15391
15389
|
if (i.throttleByServer && !$e.serverHasOpenSlots(i.serverKey)) {
|
|
15392
|
-
|
|
15390
|
+
on(i);
|
|
15393
15391
|
continue;
|
|
15394
15392
|
}
|
|
15395
15393
|
vC(i), ++a;
|
|
@@ -15419,7 +15417,7 @@ $e.request = function(t) {
|
|
|
15419
15417
|
if (A(i)) {
|
|
15420
15418
|
if (i === t)
|
|
15421
15419
|
return;
|
|
15422
|
-
|
|
15420
|
+
on(i);
|
|
15423
15421
|
}
|
|
15424
15422
|
return mC(t);
|
|
15425
15423
|
};
|
|
@@ -15437,11 +15435,11 @@ function DE() {
|
|
|
15437
15435
|
$e.clearForSpecs = function() {
|
|
15438
15436
|
for (; Nt.length > 0; ) {
|
|
15439
15437
|
const i = Nt.pop();
|
|
15440
|
-
|
|
15438
|
+
on(i);
|
|
15441
15439
|
}
|
|
15442
15440
|
const t = rs.length;
|
|
15443
15441
|
for (let i = 0; i < t; ++i)
|
|
15444
|
-
|
|
15442
|
+
on(rs[i]);
|
|
15445
15443
|
rs.length = 0, Os = {}, Re.numberOfAttemptedRequests = 0, Re.numberOfActiveRequests = 0, Re.numberOfCancelledRequests = 0, Re.numberOfCancelledActiveRequests = 0, Re.numberOfFailedRequests = 0, Re.numberOfActiveRequestsEver = 0, Re.lastNumberOfActiveRequests = 0;
|
|
15446
15444
|
};
|
|
15447
15445
|
$e.numberOfActiveRequestsByServer = function(t) {
|
|
@@ -15515,9 +15513,9 @@ ne.createIfNeeded = function(t) {
|
|
|
15515
15513
|
url: t
|
|
15516
15514
|
});
|
|
15517
15515
|
};
|
|
15518
|
-
let
|
|
15516
|
+
let Un;
|
|
15519
15517
|
ne.supportsImageBitmapOptions = function() {
|
|
15520
|
-
return A(
|
|
15518
|
+
return A(Un) ? Un : typeof createImageBitmap != "function" ? (Un = Promise.resolve(!1), Un) : (Un = ne.fetchBlob({
|
|
15521
15519
|
url: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAABGdBTUEAAE4g3rEiDgAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADElEQVQI12Ng6GAAAAEUAIngE3ZiAAAAAElFTkSuQmCC"
|
|
15522
15520
|
}).then(function(i) {
|
|
15523
15521
|
const e = {
|
|
@@ -15539,7 +15537,7 @@ ne.supportsImageBitmapOptions = function() {
|
|
|
15539
15537
|
return e[1] !== s[1];
|
|
15540
15538
|
}).catch(function() {
|
|
15541
15539
|
return !1;
|
|
15542
|
-
}),
|
|
15540
|
+
}), Un);
|
|
15543
15541
|
};
|
|
15544
15542
|
Object.defineProperties(ne, {
|
|
15545
15543
|
/**
|
|
@@ -16461,7 +16459,7 @@ function PC() {
|
|
|
16461
16459
|
let t;
|
|
16462
16460
|
if (typeof CESIUM_BASE_URL < "u" ? t = CESIUM_BASE_URL : A((i = import.meta) == null ? void 0 : i.url) ? t = Lh(".", import.meta.url) : typeof define == "object" && A(define.amd) && !define.amd.toUrlUndefined && A(require.toUrl) ? t = Lh(
|
|
16463
16461
|
"..",
|
|
16464
|
-
|
|
16462
|
+
Bi("Core/buildModuleUrl.js")
|
|
16465
16463
|
) : t = UE(), !A(t))
|
|
16466
16464
|
throw new H(
|
|
16467
16465
|
"Unable to determine Cesium base URL automatically, try defining a global variable called CESIUM_BASE_URL."
|
|
@@ -16479,20 +16477,20 @@ function xC(t) {
|
|
|
16479
16477
|
}).url;
|
|
16480
16478
|
}
|
|
16481
16479
|
let Dc;
|
|
16482
|
-
function
|
|
16480
|
+
function Bi(t) {
|
|
16483
16481
|
return A(Dc) || (typeof define == "object" && A(define.amd) && !define.amd.toUrlUndefined && A(require.toUrl) ? Dc = GE : Dc = xC), Dc(t);
|
|
16484
16482
|
}
|
|
16485
|
-
|
|
16486
|
-
|
|
16487
|
-
|
|
16483
|
+
Bi._cesiumScriptRegex = CC;
|
|
16484
|
+
Bi._buildModuleUrlFromBaseUrl = xC;
|
|
16485
|
+
Bi._clearBaseResource = function() {
|
|
16488
16486
|
Vo = void 0;
|
|
16489
16487
|
};
|
|
16490
|
-
|
|
16488
|
+
Bi.setBaseUrl = function(t) {
|
|
16491
16489
|
Vo = ne.DEFAULT.getDerivedResource({
|
|
16492
16490
|
url: t
|
|
16493
16491
|
});
|
|
16494
16492
|
};
|
|
16495
|
-
|
|
16493
|
+
Bi.getCesiumBaseUrl = PC;
|
|
16496
16494
|
function bC(t, i, e) {
|
|
16497
16495
|
this.x = t, this.y = i, this.s = e;
|
|
16498
16496
|
}
|
|
@@ -16573,7 +16571,7 @@ function Sp(t, i) {
|
|
|
16573
16571
|
0: i
|
|
16574
16572
|
}
|
|
16575
16573
|
}) : e = new ne({
|
|
16576
|
-
url:
|
|
16574
|
+
url: Bi(`Assets/IAU2006_XYS/IAU2006_XYS_${i}.json`)
|
|
16577
16575
|
});
|
|
16578
16576
|
const o = e.fetchJson().then(function(n) {
|
|
16579
16577
|
t._chunkDownloadsInProgress[i] = !1;
|
|
@@ -16685,7 +16683,7 @@ ai.exitFullscreen = function() {
|
|
|
16685
16683
|
ai._names = st;
|
|
16686
16684
|
let Gt;
|
|
16687
16685
|
typeof navigator < "u" ? Gt = navigator : Gt = {};
|
|
16688
|
-
function
|
|
16686
|
+
function fn(t) {
|
|
16689
16687
|
const i = t.split(".");
|
|
16690
16688
|
for (let e = 0, s = i.length; e < s; ++e)
|
|
16691
16689
|
i[e] = parseInt(i[e], 10);
|
|
@@ -16695,7 +16693,7 @@ let kc, SC;
|
|
|
16695
16693
|
function Nf() {
|
|
16696
16694
|
if (!A(kc) && (kc = !1, !Qd())) {
|
|
16697
16695
|
const t = / Chrome\/([\.0-9]+)/.exec(Gt.userAgent);
|
|
16698
|
-
t !== null && (kc = !0, SC =
|
|
16696
|
+
t !== null && (kc = !0, SC = fn(t[1]));
|
|
16699
16697
|
}
|
|
16700
16698
|
return kc;
|
|
16701
16699
|
}
|
|
@@ -16706,7 +16704,7 @@ let Fc, TC;
|
|
|
16706
16704
|
function EC() {
|
|
16707
16705
|
if (!A(Fc) && (Fc = !1, !Nf() && !Qd() && / Safari\/[\.0-9]+/.test(Gt.userAgent))) {
|
|
16708
16706
|
const t = / Version\/([\.0-9]+)/.exec(Gt.userAgent);
|
|
16709
|
-
t !== null && (Fc = !0, TC =
|
|
16707
|
+
t !== null && (Fc = !0, TC = fn(t[1]));
|
|
16710
16708
|
}
|
|
16711
16709
|
return Fc;
|
|
16712
16710
|
}
|
|
@@ -16718,7 +16716,7 @@ function AC() {
|
|
|
16718
16716
|
if (!A(zc)) {
|
|
16719
16717
|
zc = !1;
|
|
16720
16718
|
const t = / AppleWebKit\/([\.0-9]+)(\+?)/.exec(Gt.userAgent);
|
|
16721
|
-
t !== null && (zc = !0, Tp =
|
|
16719
|
+
t !== null && (zc = !0, Tp = fn(t[1]), Tp.isNightly = !!t[2]);
|
|
16722
16720
|
}
|
|
16723
16721
|
return zc;
|
|
16724
16722
|
}
|
|
@@ -16730,9 +16728,9 @@ function MC() {
|
|
|
16730
16728
|
if (!A(ua)) {
|
|
16731
16729
|
ua = !1;
|
|
16732
16730
|
let t;
|
|
16733
|
-
Gt.appName === "Microsoft Internet Explorer" ? (t = /MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(Gt.userAgent), t !== null && (ua = !0, Ep =
|
|
16731
|
+
Gt.appName === "Microsoft Internet Explorer" ? (t = /MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(Gt.userAgent), t !== null && (ua = !0, Ep = fn(t[1]))) : Gt.appName === "Netscape" && (t = /Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(
|
|
16734
16732
|
Gt.userAgent
|
|
16735
|
-
), t !== null && (ua = !0, Ep =
|
|
16733
|
+
), t !== null && (ua = !0, Ep = fn(t[1])));
|
|
16736
16734
|
}
|
|
16737
16735
|
return ua;
|
|
16738
16736
|
}
|
|
@@ -16744,7 +16742,7 @@ function Qd() {
|
|
|
16744
16742
|
if (!A(Lc)) {
|
|
16745
16743
|
Lc = !1;
|
|
16746
16744
|
const t = / Edg\/([\.0-9]+)/.exec(Gt.userAgent);
|
|
16747
|
-
t !== null && (Lc = !0, IC =
|
|
16745
|
+
t !== null && (Lc = !0, IC = fn(t[1]));
|
|
16748
16746
|
}
|
|
16749
16747
|
return Lc;
|
|
16750
16748
|
}
|
|
@@ -16756,7 +16754,7 @@ function Kd() {
|
|
|
16756
16754
|
if (!A(Oc)) {
|
|
16757
16755
|
Oc = !1;
|
|
16758
16756
|
const t = /Firefox\/([\.0-9]+)/.exec(Gt.userAgent);
|
|
16759
|
-
t !== null && (Oc = !0, Uf =
|
|
16757
|
+
t !== null && (Oc = !0, Uf = fn(t[1]));
|
|
16760
16758
|
}
|
|
16761
16759
|
return Oc;
|
|
16762
16760
|
}
|
|
@@ -16817,8 +16815,8 @@ Object.defineProperties(Lt, {
|
|
|
16817
16815
|
}
|
|
16818
16816
|
}
|
|
16819
16817
|
});
|
|
16820
|
-
const
|
|
16821
|
-
typeof ArrayBuffer < "u" && (
|
|
16818
|
+
const Jn = [];
|
|
16819
|
+
typeof ArrayBuffer < "u" && (Jn.push(
|
|
16822
16820
|
Int8Array,
|
|
16823
16821
|
Uint8Array,
|
|
16824
16822
|
Int16Array,
|
|
@@ -16827,7 +16825,7 @@ typeof ArrayBuffer < "u" && (Kn.push(
|
|
|
16827
16825
|
Uint32Array,
|
|
16828
16826
|
Float32Array,
|
|
16829
16827
|
Float64Array
|
|
16830
|
-
), typeof Uint8ClampedArray < "u" &&
|
|
16828
|
+
), typeof Uint8ClampedArray < "u" && Jn.push(Uint8ClampedArray), typeof Uint8ClampedArray < "u" && Jn.push(Uint8ClampedArray), typeof BigInt64Array < "u" && Jn.push(BigInt64Array), typeof BigUint64Array < "u" && Jn.push(BigUint64Array));
|
|
16831
16829
|
const kt = {
|
|
16832
16830
|
isChrome: Nf,
|
|
16833
16831
|
chromeVersion: HE,
|
|
@@ -16848,7 +16846,7 @@ const kt = {
|
|
|
16848
16846
|
supportsImageRenderingPixelated: DC,
|
|
16849
16847
|
supportsWebP: Lt,
|
|
16850
16848
|
imageRenderingValue: jE,
|
|
16851
|
-
typedArrayTypes:
|
|
16849
|
+
typedArrayTypes: Jn
|
|
16852
16850
|
};
|
|
16853
16851
|
kt.supportsBasis = function(t) {
|
|
16854
16852
|
return kt.supportsWebAssembly() && t.context.supportsBasis;
|
|
@@ -17177,7 +17175,7 @@ const xe = {}, ku = {
|
|
|
17177
17175
|
north: "up",
|
|
17178
17176
|
south: "down"
|
|
17179
17177
|
}
|
|
17180
|
-
},
|
|
17178
|
+
}, Gn = {
|
|
17181
17179
|
north: [-1, 0, 0],
|
|
17182
17180
|
east: [0, 1, 0],
|
|
17183
17181
|
up: [0, 0, 1],
|
|
@@ -17208,22 +17206,22 @@ xe.localFrameToFixedFrameGenerator = function(t, i) {
|
|
|
17208
17206
|
throw new H("origin has a NaN component");
|
|
17209
17207
|
if (A(a) || (a = new Q()), R.equalsEpsilon(n, R.ZERO, z.EPSILON14))
|
|
17210
17208
|
R.unpack(
|
|
17211
|
-
|
|
17209
|
+
Gn[t],
|
|
17212
17210
|
0,
|
|
17213
17211
|
Qs
|
|
17214
17212
|
), R.unpack(
|
|
17215
|
-
|
|
17213
|
+
Gn[i],
|
|
17216
17214
|
0,
|
|
17217
17215
|
Ks
|
|
17218
17216
|
), R.unpack(
|
|
17219
|
-
|
|
17217
|
+
Gn[e],
|
|
17220
17218
|
0,
|
|
17221
17219
|
Js
|
|
17222
17220
|
);
|
|
17223
17221
|
else if (z.equalsEpsilon(n.x, 0, z.EPSILON14) && z.equalsEpsilon(n.y, 0, z.EPSILON14)) {
|
|
17224
17222
|
const l = z.sign(n.z);
|
|
17225
17223
|
R.unpack(
|
|
17226
|
-
|
|
17224
|
+
Gn[t],
|
|
17227
17225
|
0,
|
|
17228
17226
|
Qs
|
|
17229
17227
|
), t !== "east" && t !== "west" && R.multiplyByScalar(
|
|
@@ -17231,7 +17229,7 @@ xe.localFrameToFixedFrameGenerator = function(t, i) {
|
|
|
17231
17229
|
l,
|
|
17232
17230
|
Qs
|
|
17233
17231
|
), R.unpack(
|
|
17234
|
-
|
|
17232
|
+
Gn[i],
|
|
17235
17233
|
0,
|
|
17236
17234
|
Ks
|
|
17237
17235
|
), i !== "east" && i !== "west" && R.multiplyByScalar(
|
|
@@ -17239,7 +17237,7 @@ xe.localFrameToFixedFrameGenerator = function(t, i) {
|
|
|
17239
17237
|
l,
|
|
17240
17238
|
Ks
|
|
17241
17239
|
), R.unpack(
|
|
17242
|
-
|
|
17240
|
+
Gn[e],
|
|
17243
17241
|
0,
|
|
17244
17242
|
Js
|
|
17245
17243
|
), e !== "east" && e !== "west" && R.multiplyByScalar(
|
|
@@ -17880,7 +17878,7 @@ function Gf(t) {
|
|
|
17880
17878
|
if (_p(t))
|
|
17881
17879
|
r = t;
|
|
17882
17880
|
else if (!e) {
|
|
17883
|
-
const a =
|
|
17881
|
+
const a = Bi(
|
|
17884
17882
|
`${St._workerModulePrefix}/${s}.js`
|
|
17885
17883
|
);
|
|
17886
17884
|
_p(a) && (r = a);
|
|
@@ -17896,7 +17894,7 @@ function Gf(t) {
|
|
|
17896
17894
|
`;
|
|
17897
17895
|
return n = Ou(a), new Worker(n, o);
|
|
17898
17896
|
}
|
|
17899
|
-
if (n = t, e || (n =
|
|
17897
|
+
if (n = t, e || (n = Bi(
|
|
17900
17898
|
`${St._workerModulePrefix + s}.js`
|
|
17901
17899
|
)), !kt.supportsEsmWebWorkers())
|
|
17902
17900
|
throw new Rt(
|
|
@@ -17915,9 +17913,9 @@ async function WA(t, i) {
|
|
|
17915
17913
|
throw new Rt(
|
|
17916
17914
|
`This browser does not support Web Assembly, and no backup module was provided for ${t._workerPath}`
|
|
17917
17915
|
);
|
|
17918
|
-
return e.modulePath =
|
|
17916
|
+
return e.modulePath = Bi(i.fallbackModulePath), e;
|
|
17919
17917
|
}
|
|
17920
|
-
e.wasmBinaryFile =
|
|
17918
|
+
e.wasmBinaryFile = Bi(i.wasmBinaryFile);
|
|
17921
17919
|
const s = await ne.fetchArrayBuffer({
|
|
17922
17920
|
url: e.wasmBinaryFile
|
|
17923
17921
|
});
|
|
@@ -17951,7 +17949,7 @@ async function qA(t, i, e) {
|
|
|
17951
17949
|
return t._worker.postMessage(
|
|
17952
17950
|
{
|
|
17953
17951
|
id: o,
|
|
17954
|
-
baseUrl:
|
|
17952
|
+
baseUrl: Bi.getCesiumBaseUrl().url,
|
|
17955
17953
|
parameters: i,
|
|
17956
17954
|
canTransferArrayBuffer: s
|
|
17957
17955
|
},
|
|
@@ -18907,7 +18905,7 @@ async function sM(t, i, e) {
|
|
|
18907
18905
|
var s, o;
|
|
18908
18906
|
if (t.type === "WebMapTileServiceImageryProvider")
|
|
18909
18907
|
return new h.WebMapTileServiceImageryProvider({
|
|
18910
|
-
url:
|
|
18908
|
+
url: Gi(t.url),
|
|
18911
18909
|
// Resource | String The base URL for the WMTS GetTile operation (for KVP-encoded requests) or the tile-URL template (for RESTful requests). The tile-URL template should contain the following variables: {style}, {TileMatrixSet}, {TileMatrix}, {TileRow}, {TileCol}. The first two are optional if actual values are hardcoded or not required by the server. The {s} keyword may be used to specify subdomains.
|
|
18912
18910
|
format: t.format ?? "image/jpeg",
|
|
18913
18911
|
// String <optional> 'image/jpeg' The MIME type for images to retrieve from the server.
|
|
@@ -18946,7 +18944,7 @@ async function sM(t, i, e) {
|
|
|
18946
18944
|
});
|
|
18947
18945
|
if (t.type === "TileMapServiceImageryProvider")
|
|
18948
18946
|
return t.url ? await h.TileMapServiceImageryProvider.fromUrl(
|
|
18949
|
-
|
|
18947
|
+
Gi(t.url),
|
|
18950
18948
|
{
|
|
18951
18949
|
fileExtension: t.fileExtension,
|
|
18952
18950
|
// string; // String <optional> 'png' The file extension for images on the server.
|
|
@@ -18972,8 +18970,8 @@ async function sM(t, i, e) {
|
|
|
18972
18970
|
) : void 0;
|
|
18973
18971
|
if (t.type === "UrlTemplateImageryProvider") {
|
|
18974
18972
|
const n = t.customTags && iM(t.customTags);
|
|
18975
|
-
return
|
|
18976
|
-
url:
|
|
18973
|
+
return new h.UrlTemplateImageryProvider({
|
|
18974
|
+
url: Gi(t.url),
|
|
18977
18975
|
credit: t.credit,
|
|
18978
18976
|
// string; // Credit | String <optional> '' A credit for the data source, which is displayed on the canvas.
|
|
18979
18977
|
minimumLevel: t.minimumLevel,
|
|
@@ -19019,7 +19017,7 @@ async function sM(t, i, e) {
|
|
|
19019
19017
|
});
|
|
19020
19018
|
if (t.type === "ArcGisMapServerImageryProvider")
|
|
19021
19019
|
return t.url ? await h.ArcGisMapServerImageryProvider.fromUrl(
|
|
19022
|
-
|
|
19020
|
+
Gi(t.url),
|
|
19023
19021
|
{
|
|
19024
19022
|
// @ts-ignore
|
|
19025
19023
|
token: t.token,
|
|
@@ -19042,7 +19040,7 @@ async function sM(t, i, e) {
|
|
|
19042
19040
|
) : void 0;
|
|
19043
19041
|
if (t.type === "BingMapsImageryProvider")
|
|
19044
19042
|
return t.url ? await h.BingMapsImageryProvider.fromUrl(
|
|
19045
|
-
|
|
19043
|
+
Gi(t.url),
|
|
19046
19044
|
{
|
|
19047
19045
|
key: t.key,
|
|
19048
19046
|
tileProtocol: t.tileProtocol,
|
|
@@ -19054,7 +19052,7 @@ async function sM(t, i, e) {
|
|
|
19054
19052
|
) : void 0;
|
|
19055
19053
|
if (t.type === "GoogleEarthEnterpriseImageryProvider") {
|
|
19056
19054
|
if (!t.url) return;
|
|
19057
|
-
const n = await h.GoogleEarthEnterpriseMetadata.fromUrl(
|
|
19055
|
+
const n = await h.GoogleEarthEnterpriseMetadata.fromUrl(Gi(t.url));
|
|
19058
19056
|
return await h.GoogleEarthEnterpriseImageryProvider.fromMetadata(n, {
|
|
19059
19057
|
// tileDiscardPolicy: imageryProviderJson.tileDiscardPolicy,//TODO2
|
|
19060
19058
|
ellipsoid: t.ellipsoid && De(t.ellipsoid),
|
|
@@ -19119,7 +19117,7 @@ async function sM(t, i, e) {
|
|
|
19119
19117
|
});
|
|
19120
19118
|
if (t.type === "SingleTileImageryProvider")
|
|
19121
19119
|
return new h.SingleTileImageryProvider({
|
|
19122
|
-
url:
|
|
19120
|
+
url: Gi(t.url),
|
|
19123
19121
|
rectangle: t.rectangle && ht(t.rectangle),
|
|
19124
19122
|
// rectangle: [west: number, south: number, east: number, north: number]; // Rectangle <optional> Rectangle.MAX_VALUE The rectangle, in radians, covered by the image.
|
|
19125
19123
|
credit: t.credit,
|
|
@@ -19140,7 +19138,7 @@ async function sM(t, i, e) {
|
|
|
19140
19138
|
});
|
|
19141
19139
|
if (t.type === "WebMapServiceImageryProvider")
|
|
19142
19140
|
return new h.WebMapServiceImageryProvider({
|
|
19143
|
-
url:
|
|
19141
|
+
url: Gi(t.url),
|
|
19144
19142
|
layers: t.layers,
|
|
19145
19143
|
enablePickFeatures: t.enablePickFeatures,
|
|
19146
19144
|
rectangle: t.rectangle && ht(t.rectangle),
|
|
@@ -19240,13 +19238,13 @@ class rM extends h.WebMercatorTilingScheme {
|
|
|
19240
19238
|
};
|
|
19241
19239
|
}
|
|
19242
19240
|
}
|
|
19243
|
-
function
|
|
19241
|
+
function DB(t) {
|
|
19244
19242
|
if (t.type === "GeographicTilingScheme")
|
|
19245
19243
|
return "new Cesium.GeographicTilingScheme()";
|
|
19246
19244
|
if (t.type === "WebMercatorTilingScheme")
|
|
19247
19245
|
return "new Cesium.WebMercatorTilingScheme()";
|
|
19248
19246
|
}
|
|
19249
|
-
class
|
|
19247
|
+
class gn extends k {
|
|
19250
19248
|
constructor(e, s) {
|
|
19251
19249
|
super();
|
|
19252
19250
|
g(this, "_flyToEvent", this.disposeVar(new q()));
|
|
@@ -19361,7 +19359,7 @@ class fn extends k {
|
|
|
19361
19359
|
return this._layer.changed;
|
|
19362
19360
|
}
|
|
19363
19361
|
}
|
|
19364
|
-
g(
|
|
19362
|
+
g(gn, "defaults", {
|
|
19365
19363
|
show: !0,
|
|
19366
19364
|
rectangle: [-180, -90, 180, 90],
|
|
19367
19365
|
alpha: 1,
|
|
@@ -19438,13 +19436,13 @@ g(fn, "defaults", {
|
|
|
19438
19436
|
// customTags?: object;
|
|
19439
19437
|
targetID: void 0
|
|
19440
19438
|
});
|
|
19441
|
-
})(
|
|
19442
|
-
ae(
|
|
19439
|
+
})(gn || (gn = {}));
|
|
19440
|
+
ae(gn.prototype, gn.createDefaultProps);
|
|
19443
19441
|
const Xf = h.ApproximateTerrainHeights, aM = h.ComponentDatatype, It = h.defined, lM = h.destroyObject, kp = h.DeveloperError, hM = h.deprecationWarning, cM = h.GeometryInstance, dM = h.GeometryInstanceAttribute, uM = h.GroundPolylineGeometry, fa = h.DrawCommand, Tm = h.Pass, WC = h.RenderState, pM = h.ShaderProgram, ga = h.ShaderSource;
|
|
19444
19442
|
let Fp = h._shadersPolylineShadowVolumeFS;
|
|
19445
19443
|
const fM = h._shadersPolylineShadowVolumeMorphFS, gM = h._shadersPolylineShadowVolumeMorphVS;
|
|
19446
19444
|
let zp = h._shadersPolylineShadowVolumeVS;
|
|
19447
|
-
const HC = h.BlendingState, Lp = h.ClassificationType, mM = h.CullFace, $C = h.PolylineColorAppearance, vM = h.PolylineMaterialAppearance, js = h.Primitive, ir = h.SceneMode, Em = h.StencilConstants, Am = h.StencilFunction,
|
|
19445
|
+
const HC = h.BlendingState, Lp = h.ClassificationType, mM = h.CullFace, $C = h.PolylineColorAppearance, vM = h.PolylineMaterialAppearance, js = h.Primitive, ir = h.SceneMode, Em = h.StencilConstants, Am = h.StencilFunction, Wn = h.StencilOperation;
|
|
19448
19446
|
zp = zp.replace("width = width * max(0.0, czm_metersPerPixel(positionEC));", "");
|
|
19449
19447
|
Fp = Fp.replace("float halfMaxWidth = v_startPlaneNormalEcAndHalfWidth.w * czm_metersPerPixel(eyeCoordinate);", "float halfMaxWidth = v_startPlaneNormalEcAndHalfWidth.w;");
|
|
19450
19448
|
function Bs(t) {
|
|
@@ -19709,15 +19707,15 @@ function Mm(t) {
|
|
|
19709
19707
|
enabled: t,
|
|
19710
19708
|
frontFunction: Am.EQUAL,
|
|
19711
19709
|
frontOperation: {
|
|
19712
|
-
fail:
|
|
19713
|
-
zFail:
|
|
19714
|
-
zPass:
|
|
19710
|
+
fail: Wn.KEEP,
|
|
19711
|
+
zFail: Wn.KEEP,
|
|
19712
|
+
zPass: Wn.KEEP
|
|
19715
19713
|
},
|
|
19716
19714
|
backFunction: Am.EQUAL,
|
|
19717
19715
|
backOperation: {
|
|
19718
|
-
fail:
|
|
19719
|
-
zFail:
|
|
19720
|
-
zPass:
|
|
19716
|
+
fail: Wn.KEEP,
|
|
19717
|
+
zFail: Wn.KEEP,
|
|
19718
|
+
zPass: Wn.KEEP
|
|
19721
19719
|
},
|
|
19722
19720
|
reference: Em.CESIUM_3D_TILE_MASK,
|
|
19723
19721
|
mask: Em.CESIUM_3D_TILE_MASK
|
|
@@ -20024,7 +20022,7 @@ class Vh extends k {
|
|
|
20024
20022
|
g(this, "_flyToEvent", this.disposeVar(new q()));
|
|
20025
20023
|
g(this, "_currentDistance", this.disposeVar(U(0)));
|
|
20026
20024
|
g(this, "_ratio", this.disposeVar(Nd.createPlayingRatio([this, "currentTime"], [this, "duration"])));
|
|
20027
|
-
this._geoPath = this.disposeVar(new gw()), this._geoPolyline = this.disposeVar(new Ge(e)), this._geoCanvasPointPoi = this.disposeVar(new
|
|
20025
|
+
this._geoPath = this.disposeVar(new gw()), this._geoPolyline = this.disposeVar(new Ge(e)), this._geoCanvasPointPoi = this.disposeVar(new an(e)), this._player = this.disposeVar(new nc()), this._geoPolyline.show = !1, this.dispose(M([this._geoPolyline, "positions"], [this, "positions"])), this.dispose(P([this._geoPath, "currentTime"], [this, "currentDistance"])), this.dispose(P([this._geoPath, "leadTime"], [this, "leadTime"])), this.dispose(P([this._geoPath, "trailTime"], [this, "trailTime"])), this.dispose(P([this._geoPath, "show"], [this, "show"])), this.dispose(P([this._geoPath, "polylineShow"], [this, "polylineShow"])), this.dispose(P([this._geoPath, "currentPoiShow"], [this, "currentPoiShow"])), this.dispose(P([this._geoPath, "width"], [this, "width"])), this.dispose(P([this._geoPath, "ground"], [this, "ground"])), this.dispose(P([this._geoPath, "color"], [this, "color"])), this.dispose(P([this._geoPath, "hasDash"], [this, "hasDash"])), this.dispose(P([this._geoPath, "gapColor"], [this, "gapColor"])), this.dispose(P([this._geoPath, "dashLength"], [this, "dashLength"])), this.dispose(P([this._geoPath, "dashPattern"], [this, "dashPattern"])), this.dispose(P([this._geoPath, "hasArrow"], [this, "hasArrow"])), this.dispose(P([this._geoPath, "depthTest"], [this, "depthTest"])), this.dispose(P([this._geoPath, "arcType"], [this, "arcType"])), this.dispose(P([this._geoPath, "allowPicking"], [this, "allowPicking"]));
|
|
20028
20026
|
{
|
|
20029
20027
|
const s = () => {
|
|
20030
20028
|
this._geoCanvasPointPoi.show = (this.show ?? !0) && (this.currentPoiShow ?? !0);
|
|
@@ -20242,7 +20240,7 @@ class Ie extends Zi {
|
|
|
20242
20240
|
})), this.d(e.automaticLandingEvent.don(async (n) => {
|
|
20243
20241
|
const r = [e.position[0], e.position[1]], a = await s.getTerrainHeight(r);
|
|
20244
20242
|
a ? e.position = [...r, a] : console.warn("不存在相交"), e.collision = n;
|
|
20245
|
-
})), this.d(
|
|
20243
|
+
})), this.d(Jo([
|
|
20246
20244
|
e.minVisibleDistanceChanged,
|
|
20247
20245
|
e.maxVisibleDistanceChanged,
|
|
20248
20246
|
s.cameraChanged
|
|
@@ -20267,7 +20265,7 @@ class Ie extends Zi {
|
|
|
20267
20265
|
if (!e.show || !((n = s.viewer) != null && n.camera)) return;
|
|
20268
20266
|
const o = Ie.getInnerCzmObjects(this);
|
|
20269
20267
|
if (o.length != 0) {
|
|
20270
|
-
const r = ft([e.position,
|
|
20268
|
+
const r = ft([e.position, Li(s.viewer.camera)], "NONE")[0];
|
|
20271
20269
|
let a = !1;
|
|
20272
20270
|
e.minVisibleDistance < e.maxVisibleDistance ? a = e.minVisibleDistance < r && r < e.maxVisibleDistance : e.maxVisibleDistance == 0 && (a = r > e.minVisibleDistance), o.forEach((l) => {
|
|
20273
20271
|
if (l instanceof tt) return;
|
|
@@ -20360,14 +20358,14 @@ function EM(t, i, e) {
|
|
|
20360
20358
|
[l[0], l[1], l[2], l[3], l[0]]
|
|
20361
20359
|
], l[4]];
|
|
20362
20360
|
}
|
|
20363
|
-
class
|
|
20361
|
+
class mn extends k {
|
|
20364
20362
|
constructor(e, s) {
|
|
20365
20363
|
super();
|
|
20366
20364
|
g(this, "_id", this.disposeVar(U(Ne())));
|
|
20367
20365
|
g(this, "_flyToEvent", this.disposeVar(new q()));
|
|
20368
20366
|
g(this, "_polylines");
|
|
20369
20367
|
g(this, "_axis");
|
|
20370
|
-
s && (this.id = s), this._polylines = this.disposeVar(new
|
|
20368
|
+
s && (this.id = s), this._polylines = this.disposeVar(new Oi(e, s)), this._axis = this.disposeVar(new Ge(e, s)), this._axis.hasArrow = !0, this._axis.width = 10, this._polylines.arcType = this._axis.arcType = "NONE", this.dispose(this.flyToEvent.disposableOn((o) => {
|
|
20371
20369
|
if (!(e instanceof qe) || !e.actived) return;
|
|
20372
20370
|
if (!this.position) {
|
|
20373
20371
|
console.warn("CzmPlane warning: 没有位置,无法飞入!");
|
|
@@ -20430,7 +20428,7 @@ class gn extends k {
|
|
|
20430
20428
|
return this._axis;
|
|
20431
20429
|
}
|
|
20432
20430
|
}
|
|
20433
|
-
g(
|
|
20431
|
+
g(mn, "defaults", {
|
|
20434
20432
|
position: [116.39, 39.9, 100]
|
|
20435
20433
|
});
|
|
20436
20434
|
((t) => {
|
|
@@ -20446,8 +20444,8 @@ g(gn, "defaults", {
|
|
|
20446
20444
|
minSize: j([-100, -100]),
|
|
20447
20445
|
maxSize: j([100, 100])
|
|
20448
20446
|
});
|
|
20449
|
-
})(
|
|
20450
|
-
ae(
|
|
20447
|
+
})(mn || (mn = {}));
|
|
20448
|
+
ae(mn.prototype, mn.createDefaultProps);
|
|
20451
20449
|
class AM extends k {
|
|
20452
20450
|
constructor(e, s, o) {
|
|
20453
20451
|
super();
|
|
@@ -20542,13 +20540,13 @@ class IM extends k {
|
|
|
20542
20540
|
g(this, "_position", this.disposeVar(K(void 0)));
|
|
20543
20541
|
g(this, "_rotation", this.disposeVar(j([0, 0, 0])));
|
|
20544
20542
|
g(this, "_computedPlane", this.disposeVar(Ue(void 0)));
|
|
20545
|
-
this._planesResetting = s, this._planeId = o, this._sowi = this.disposeVar(new
|
|
20543
|
+
this._planesResetting = s, this._planeId = o, this._sowi = this.disposeVar(new zi()), this._sowi.id = this._planeId, this.disposeVar(new he(this.sowi.sceneObjectChanged, () => {
|
|
20546
20544
|
const { sceneObject: n } = this.sowi;
|
|
20547
20545
|
if (!n) return;
|
|
20548
20546
|
let r;
|
|
20549
20547
|
Dt(this, n, () => {
|
|
20550
20548
|
const a = e.getEngineObject(n);
|
|
20551
|
-
if (n instanceof mw && (r = a.czmPlane), !!r && r instanceof
|
|
20549
|
+
if (n instanceof mw && (r = a.czmPlane), !!r && r instanceof mn)
|
|
20552
20550
|
return new MM(this, r);
|
|
20553
20551
|
});
|
|
20554
20552
|
})), this.dispose(this.positionChanged.disposableOn(() => this._planesResetting.czmPlaneWrappersChanged.next())), this.dispose(this.rotationChanged.disposableOn(() => this._planesResetting.czmPlaneWrappersChanged.next()));
|
|
@@ -20706,7 +20704,7 @@ const ka = class ka extends Ie {
|
|
|
20706
20704
|
g(this, "_innerPositionReact", this.disposeVar(K(void 0)));
|
|
20707
20705
|
g(this, "_czmPlane");
|
|
20708
20706
|
g(this, "_tilesSceneObjectWithId");
|
|
20709
|
-
this._czmPlane = this.disposeVar(new
|
|
20707
|
+
this._czmPlane = this.disposeVar(new mn(s, e.id)), this._tilesSceneObjectWithId = this.disposeVar(new zi());
|
|
20710
20708
|
const o = this.ad(U(this.sceneObject.targetID));
|
|
20711
20709
|
if (this.ad(e.targetIDChanged.don(() => {
|
|
20712
20710
|
const a = oe.getSceneObject(e.targetID);
|
|
@@ -20750,7 +20748,7 @@ const ka = class ka extends Ie {
|
|
|
20750
20748
|
}
|
|
20751
20749
|
flyTo(e, s) {
|
|
20752
20750
|
const { sceneObject: o, czmViewer: n } = this;
|
|
20753
|
-
return n.actived ? o.flyToParam || o.flyInParam ? super.flyTo(e, s) : o.position ? (
|
|
20751
|
+
return n.actived ? o.flyToParam || o.flyInParam ? super.flyTo(e, s) : o.position ? (Fi(n, o, s, o.position, Math.max(o.width, o.height), e, !0), !0) : !1 : !1;
|
|
20754
20752
|
}
|
|
20755
20753
|
};
|
|
20756
20754
|
g(ka, "type", ka.register("ESCesiumViewer", mw.type, ka));
|
|
@@ -20827,7 +20825,7 @@ const Fa = class Fa extends k {
|
|
|
20827
20825
|
g(this, "_canvasCtx", this._canvas.getContext("2d"));
|
|
20828
20826
|
g(this, "_canvasChanged", this.disposeVar(new q()));
|
|
20829
20827
|
g(this, "_canvasGeoInfo", this.disposeVar(He(void 0)));
|
|
20830
|
-
this._geoPolygonWithId = this.disposeVar(new
|
|
20828
|
+
this._geoPolygonWithId = this.disposeVar(new zi()), this.dispose(P([this._geoPolygonWithId, "id"], [this, "geoPolygonId"])), this.disposeVar(new he(this.geoPolygonWithId.sceneObjectChanged, () => {
|
|
20831
20829
|
const { sceneObject: o } = this.geoPolygonWithId;
|
|
20832
20830
|
if (o && o instanceof Ud)
|
|
20833
20831
|
return new Fa.PolygonCanvasResetting(this, o);
|
|
@@ -20862,15 +20860,15 @@ const Fa = class Fa extends k {
|
|
|
20862
20860
|
}
|
|
20863
20861
|
};
|
|
20864
20862
|
g(Fa, "saveCanvasToClipboard", kM), g(Fa, "PolygonCanvasResetting", Op);
|
|
20865
|
-
let
|
|
20863
|
+
let vn = Fa;
|
|
20866
20864
|
((t) => {
|
|
20867
20865
|
t.createDefaultProps = () => ({
|
|
20868
20866
|
enabled: !0,
|
|
20869
20867
|
geoPolygonId: "",
|
|
20870
20868
|
canvasWidth: 512
|
|
20871
20869
|
});
|
|
20872
|
-
})(
|
|
20873
|
-
ae(
|
|
20870
|
+
})(vn || (vn = {}));
|
|
20871
|
+
ae(vn.prototype, vn.createDefaultProps);
|
|
20874
20872
|
function FM(t, i) {
|
|
20875
20873
|
return class extends k {
|
|
20876
20874
|
constructor(o, n) {
|
|
@@ -20999,7 +20997,7 @@ class LM extends k {
|
|
|
20999
20997
|
return this._customShader;
|
|
21000
20998
|
}
|
|
21001
20999
|
}
|
|
21002
|
-
class
|
|
21000
|
+
class yn extends k {
|
|
21003
21001
|
constructor(e, s) {
|
|
21004
21002
|
super();
|
|
21005
21003
|
g(this, "_id", this.disposeVar(U(Ne())));
|
|
@@ -21008,7 +21006,7 @@ class vn extends k {
|
|
|
21008
21006
|
g(this, "_polylines");
|
|
21009
21007
|
g(this, "_finalMatrix", this.disposeVar(U(void 0)));
|
|
21010
21008
|
g(this, "_czmTextureWithId");
|
|
21011
|
-
s && (this.id = s), this._czmTextureWithId = this.disposeVar(new
|
|
21009
|
+
s && (this.id = s), this._czmTextureWithId = this.disposeVar(new zi()), this._polylines = this.disposeVar(new Oi(e)), this._polylines.arcType = "NONE", this.dispose(P([this._czmTextureWithId, "id"], [this, "czmTextureId"])), this.dispose(this.flyToEvent.disposableOn((o) => {
|
|
21012
21010
|
if (!(e instanceof qe) || !e.actived) return;
|
|
21013
21011
|
if (!this.position) {
|
|
21014
21012
|
console.warn("CzmFlattenedPlane warning: 没有位置,无法飞入!");
|
|
@@ -21101,7 +21099,7 @@ class vn extends k {
|
|
|
21101
21099
|
return this._czmTextureWithId;
|
|
21102
21100
|
}
|
|
21103
21101
|
}
|
|
21104
|
-
g(
|
|
21102
|
+
g(yn, "defaults", {
|
|
21105
21103
|
position: [116.39, 39.9, 100]
|
|
21106
21104
|
});
|
|
21107
21105
|
((t) => {
|
|
@@ -21127,8 +21125,8 @@ g(vn, "defaults", {
|
|
|
21127
21125
|
sceneObjectIds: j([]),
|
|
21128
21126
|
czmTextureId: ""
|
|
21129
21127
|
});
|
|
21130
|
-
})(
|
|
21131
|
-
ae(
|
|
21128
|
+
})(yn || (yn = {}));
|
|
21129
|
+
ae(yn.prototype, yn.createDefaultProps);
|
|
21132
21130
|
class OM extends k {
|
|
21133
21131
|
constructor(i, e) {
|
|
21134
21132
|
super(), this._czmPolygonFlattenedPlane = i, this._czmFlattenedPlane = e;
|
|
@@ -21163,17 +21161,17 @@ class Uh extends k {
|
|
|
21163
21161
|
{
|
|
21164
21162
|
this._czmTexture = this.disposeVar(new tt(e, s)), this._polygon = this.disposeVar(new Ud(`${s}_polygon`)), e.add(this._polygon), this.ad(() => {
|
|
21165
21163
|
e.delete(this._polygon);
|
|
21166
|
-
}), this.dispose(P([this._polygon, "allowPicking"], [this, "allowPicking"])), this.dispose(P([this._polygon, "points"], [this, "positions"])), this.dispose(P([this._polygon, "show"], [this, "show"])), this._polygonCanvas = this.disposeVar(new
|
|
21164
|
+
}), this.dispose(P([this._polygon, "allowPicking"], [this, "allowPicking"])), this.dispose(P([this._polygon, "points"], [this, "positions"])), this.dispose(P([this._polygon, "show"], [this, "show"])), this._polygonCanvas = this.disposeVar(new vn(e, s)), this._polygonCanvas.geoPolygonWithId.sceneObject = this._polygon;
|
|
21167
21165
|
const o = () => {
|
|
21168
21166
|
this._czmTexture.copyFromCanvas(this._polygonCanvas.canvas);
|
|
21169
21167
|
};
|
|
21170
|
-
o(), this.dispose(this._polygonCanvas.canvasChanged.disposableOn(o)), this.dispose(this._czmTexture.readyEvent.disposableOn(o)), this._czmFlattenedPlaneWithId = this.disposeVar(new
|
|
21168
|
+
o(), this.dispose(this._polygonCanvas.canvasChanged.disposableOn(o)), this.dispose(this._czmTexture.readyEvent.disposableOn(o)), this._czmFlattenedPlaneWithId = this.disposeVar(new zi()), this.dispose(P([this._czmFlattenedPlaneWithId, "id"], [this, "czmFlattenedPlaneId"])), this._czmFlattendPlaneWithIdResetting = this.disposeVar(new he(this.czmFlattenedPlaneWithId.sceneObjectChanged, () => {
|
|
21171
21169
|
const { sceneObject: n } = this.czmFlattenedPlaneWithId;
|
|
21172
21170
|
if (!n) return;
|
|
21173
21171
|
let r;
|
|
21174
21172
|
Dt(this, n, () => {
|
|
21175
21173
|
const a = e.getEngineObject(n);
|
|
21176
|
-
if (n instanceof _i && (r = a.flattenedPlane), r instanceof
|
|
21174
|
+
if (n instanceof _i && (r = a.flattenedPlane), r instanceof yn)
|
|
21177
21175
|
return new OM(this, r);
|
|
21178
21176
|
});
|
|
21179
21177
|
}));
|
|
@@ -21324,17 +21322,17 @@ const za = class za extends ei {
|
|
|
21324
21322
|
}
|
|
21325
21323
|
};
|
|
21326
21324
|
g(za, "type", za.register("ESCesiumViewer", Ud.type, za));
|
|
21327
|
-
let
|
|
21325
|
+
let Vi = za, BM = class extends k {
|
|
21328
21326
|
constructor(i, e) {
|
|
21329
21327
|
super(), this._czmESPolygonFlattenedPlane = i, this._eS3DTileset = e, this._eS3DTileset.flattenedPlaneEnabled = !0, this._czmESPolygonFlattenedPlane.polygonFlattenedPlane.czmFlattenedPlaneId = this._eS3DTileset.flattenedPlaneId, this.dispose(() => this._eS3DTileset.flattenedPlaneEnabled = !1);
|
|
21330
21328
|
}
|
|
21331
21329
|
};
|
|
21332
|
-
const La = class La extends
|
|
21330
|
+
const La = class La extends Vi {
|
|
21333
21331
|
constructor(e, s) {
|
|
21334
21332
|
super(e, s);
|
|
21335
21333
|
g(this, "_polygonFlattenedPlane");
|
|
21336
21334
|
g(this, "_tilesSceneObjectWithId");
|
|
21337
|
-
this._polygonFlattenedPlane = this.disposeVar(new Uh(s, e.id)), this._tilesSceneObjectWithId = this.disposeVar(new
|
|
21335
|
+
this._polygonFlattenedPlane = this.disposeVar(new Uh(s, e.id)), this._tilesSceneObjectWithId = this.disposeVar(new zi());
|
|
21338
21336
|
const o = this.ad(U(this.sceneObject.targetID));
|
|
21339
21337
|
if (this.ad(e.targetIDChanged.don(() => {
|
|
21340
21338
|
const l = oe.getSceneObject(e.targetID);
|
|
@@ -22171,7 +22169,7 @@ const ui = class ui extends k {
|
|
|
22171
22169
|
const a = this.url;
|
|
22172
22170
|
if (a)
|
|
22173
22171
|
return new KM(a, this, e.viewer, e);
|
|
22174
|
-
})), this._clippingPlanesSceneObjectWithId = this.disposeVar(new
|
|
22172
|
+
})), this._clippingPlanesSceneObjectWithId = this.disposeVar(new zi()), this.dispose(P([this._clippingPlanesSceneObjectWithId, "id"], [this, "clippingPlanesId"])), this.ad(new jM(this.czmViewer, this));
|
|
22175
22173
|
const n = (a) => {
|
|
22176
22174
|
if (a && "computedClippingPlanes" in a && "computedClippingPlanesChanged" in a)
|
|
22177
22175
|
return new hI(this, a);
|
|
@@ -22186,7 +22184,7 @@ const ui = class ui extends k {
|
|
|
22186
22184
|
return a instanceof gf && Dt(this, a, () => {
|
|
22187
22185
|
l = e.getEngineObject(a).czmBoxClippingPlanes, c = n(l);
|
|
22188
22186
|
}), a instanceof _i && (l = s.clippingPlanes, c = n(l)), c;
|
|
22189
|
-
})), this._czmFlattenedPlaneWithId = this.disposeVar(new
|
|
22187
|
+
})), this._czmFlattenedPlaneWithId = this.disposeVar(new zi()), this.dispose(P([this._czmFlattenedPlaneWithId, "id"], [this, "czmFlattenedPlaneId"])), this.dispose(this.originChanged.disposableOn(() => {
|
|
22190
22188
|
this.origin && (this.position = this.origin);
|
|
22191
22189
|
}));
|
|
22192
22190
|
const r = () => {
|
|
@@ -22893,7 +22891,7 @@ const os = class os extends Zi {
|
|
|
22893
22891
|
g(this, "_styleColor", this.dv(U(void 0)));
|
|
22894
22892
|
g(this, "_highlightStyleColor", this.dv(U(void 0)));
|
|
22895
22893
|
g(this, "_styleVisable", this.dv(U(void 0)));
|
|
22896
|
-
this._flattenedPlane = this.dv(new
|
|
22894
|
+
this._flattenedPlane = this.dv(new yn(s, e.id)), this._czm3DTiles = this.dv(new Fe(s, this, e.id)), this._clippingPlanes = this.dv(new Nh(s, e.id));
|
|
22897
22895
|
const o = s.viewer;
|
|
22898
22896
|
if (!o) {
|
|
22899
22897
|
console.warn("viewer is undefined!");
|
|
@@ -23257,7 +23255,7 @@ const xI = {
|
|
|
23257
23255
|
return;
|
|
23258
23256
|
}
|
|
23259
23257
|
const { czmCustomPrimitive: n } = this;
|
|
23260
|
-
n.indexTypedArray = new Uint16Array([0, 1, 2, 0, 2, 3]), this.ad(P([n, "show"], [e, "show"])), this.ad(P([n, "allowPicking"], [e, "allowPicking"])), this.ad(Mt([n, "rotation"], [e, "rotation"])), this.ad(M([n, "position"], [e, "position"])), this.ad(P([n, "scale"], [e, "scale"])), this.ad(
|
|
23258
|
+
n.indexTypedArray = new Uint16Array([0, 1, 2, 0, 2, 3]), this.ad(P([n, "show"], [e, "show"])), this.ad(P([n, "allowPicking"], [e, "allowPicking"])), this.ad(Mt([n, "rotation"], [e, "rotation"])), this.ad(M([n, "position"], [e, "position"])), this.ad(P([n, "scale"], [e, "scale"])), this.ad(Jo(e.colorChanged, () => this.updateColor(), { immediate: !0 })), this.ad(Jo(e.modeChanged, () => this.updataMode(), { immediate: !0 })), this.ad(Jo(e.radiusChanged, () => this.updateRadius(), { immediate: !0 }));
|
|
23261
23259
|
}
|
|
23262
23260
|
get czmCustomPrimitive() {
|
|
23263
23261
|
return this._czmCustomPrimitive;
|
|
@@ -23341,7 +23339,7 @@ const bI = (t) => {
|
|
|
23341
23339
|
const e = t.length;
|
|
23342
23340
|
let s = 0;
|
|
23343
23341
|
for (let o = 0; o < e; ++o) {
|
|
23344
|
-
const n = (o + 1) % e, r =
|
|
23342
|
+
const n = (o + 1) % e, r = Mi(t[o], t[n]), a = Math.abs(t[o][2] - t[n][2]), l = Math.sqrt(r * r + a * a);
|
|
23345
23343
|
s += l, i.push(s);
|
|
23346
23344
|
}
|
|
23347
23345
|
}
|
|
@@ -23514,7 +23512,7 @@ g(Lr, "defaults", {
|
|
|
23514
23512
|
});
|
|
23515
23513
|
})(Lr || (Lr = {}));
|
|
23516
23514
|
ae(Lr.prototype, Lr.createDefaultProps);
|
|
23517
|
-
const Va = class Va extends
|
|
23515
|
+
const Va = class Va extends Vi {
|
|
23518
23516
|
constructor(e, s) {
|
|
23519
23517
|
super(e, s);
|
|
23520
23518
|
g(this, "_czmAreaMeasurement");
|
|
@@ -23674,7 +23672,7 @@ class Or extends k {
|
|
|
23674
23672
|
g(this, "_flyToEvent", this.disposeVar(new q()));
|
|
23675
23673
|
g(this, "_computedClippingPlanes", this.disposeVar(U(void 0)));
|
|
23676
23674
|
g(this, "_polylines");
|
|
23677
|
-
s && (this.id = s), this._polylines = this.disposeVar(new
|
|
23675
|
+
s && (this.id = s), this._polylines = this.disposeVar(new Oi(e, s)), this._polylines.arcType = "NONE", this.ad(this.flyToEvent.disposableOn((o) => {
|
|
23678
23676
|
if (!(e instanceof qe) || !e.actived) return;
|
|
23679
23677
|
if (!this.position) {
|
|
23680
23678
|
console.warn("CzmBoxClippingPlanes warning: 没有位置,无法飞入!");
|
|
@@ -23822,7 +23820,7 @@ const Ua = class Ua extends Ie {
|
|
|
23822
23820
|
// private _czmBoxClippingPlanes = this.disposeVar(new CzmBoxClippingPlanes());
|
|
23823
23821
|
g(this, "_czmBoxClippingPlanes");
|
|
23824
23822
|
g(this, "_tilesSceneObjectWithId");
|
|
23825
|
-
this._tilesSceneObjectWithId = this.disposeVar(new
|
|
23823
|
+
this._tilesSceneObjectWithId = this.disposeVar(new zi());
|
|
23826
23824
|
const o = this.ad(U(this.sceneObject.targetID));
|
|
23827
23825
|
if (this.ad(e.targetIDChanged.don(() => {
|
|
23828
23826
|
const a = oe.getSceneObject(e.targetID);
|
|
@@ -23874,7 +23872,7 @@ const Ua = class Ua extends Ie {
|
|
|
23874
23872
|
}
|
|
23875
23873
|
flyTo(e, s) {
|
|
23876
23874
|
const { sceneObject: o, czmViewer: n } = this;
|
|
23877
|
-
return !n.actived || !n.viewer ? !1 : o.flyToParam || o.flyInParam ? super.flyTo(e, s) : o.position ? (
|
|
23875
|
+
return !n.actived || !n.viewer ? !1 : o.flyToParam || o.flyInParam ? super.flyTo(e, s) : o.position ? (Fi(n, o, s, o.position, Math.max(...o.size), e, !0), !0) : !1;
|
|
23878
23876
|
}
|
|
23879
23877
|
};
|
|
23880
23878
|
g(Ua, "type", Ua.register("ESCesiumViewer", gf.type, Ua));
|
|
@@ -23991,7 +23989,7 @@ const Wa = class Wa extends Ie {
|
|
|
23991
23989
|
return super.flyTo(e, s), !0;
|
|
23992
23990
|
{
|
|
23993
23991
|
const r = Math.max(o.far, o.near) ?? _g.defaults.far;
|
|
23994
|
-
return o.position ? (
|
|
23992
|
+
return o.position ? (Fi(n, o, s, o.position, r, e), !0) : !1;
|
|
23995
23993
|
}
|
|
23996
23994
|
}
|
|
23997
23995
|
};
|
|
@@ -24150,7 +24148,7 @@ const Bu = {
|
|
|
24150
24148
|
}
|
|
24151
24149
|
};
|
|
24152
24150
|
g($a, "defaultParticlesImageUri", "${earthsdk3-assets-script-dir}/assets/img/particles.png");
|
|
24153
|
-
let
|
|
24151
|
+
let wn = $a;
|
|
24154
24152
|
((t) => {
|
|
24155
24153
|
t.createDefaultProps = () => ({
|
|
24156
24154
|
show: void 0,
|
|
@@ -24160,13 +24158,13 @@ let yn = $a;
|
|
|
24160
24158
|
color: K(void 0),
|
|
24161
24159
|
allowPicking: void 0
|
|
24162
24160
|
});
|
|
24163
|
-
})(
|
|
24164
|
-
ae(
|
|
24161
|
+
})(wn || (wn = {}));
|
|
24162
|
+
ae(wn.prototype, wn.createDefaultProps);
|
|
24165
24163
|
const qa = class qa extends Ie {
|
|
24166
24164
|
constructor(e, s) {
|
|
24167
24165
|
super(e, s);
|
|
24168
24166
|
g(this, "_czmCityBasePoint");
|
|
24169
|
-
if (this._czmCityBasePoint = this.disposeVar(new
|
|
24167
|
+
if (this._czmCityBasePoint = this.disposeVar(new wn(s, e.id)), !s.viewer) {
|
|
24170
24168
|
console.warn("viewer is undefined!");
|
|
24171
24169
|
return;
|
|
24172
24170
|
}
|
|
@@ -24183,7 +24181,7 @@ const qa = class qa extends Ie {
|
|
|
24183
24181
|
};
|
|
24184
24182
|
g(qa, "type", qa.register("ESCesiumViewer", fP.type, qa));
|
|
24185
24183
|
let Wm = qa;
|
|
24186
|
-
class
|
|
24184
|
+
class Cn extends k {
|
|
24187
24185
|
constructor(e, s) {
|
|
24188
24186
|
super();
|
|
24189
24187
|
g(this, "_flyToEvent", this.disposeVar(new q()));
|
|
@@ -24249,7 +24247,7 @@ class wn extends k {
|
|
|
24249
24247
|
return this._id.changed;
|
|
24250
24248
|
}
|
|
24251
24249
|
}
|
|
24252
|
-
g(
|
|
24250
|
+
g(Cn, "defaults", {
|
|
24253
24251
|
color: [1, 1, 1, 0.5]
|
|
24254
24252
|
});
|
|
24255
24253
|
((t) => {
|
|
@@ -24272,8 +24270,8 @@ g(wn, "defaults", {
|
|
|
24272
24270
|
classificationType: "BOTH"
|
|
24273
24271
|
// textureCoordinates: reactJson({ positions: [] } as PolygonHierarchyType),//TODE
|
|
24274
24272
|
});
|
|
24275
|
-
})(
|
|
24276
|
-
ae(
|
|
24273
|
+
})(Cn || (Cn = {}));
|
|
24274
|
+
ae(Cn.prototype, Cn.createDefaultProps);
|
|
24277
24275
|
class AI extends Vd {
|
|
24278
24276
|
constructor(i, e) {
|
|
24279
24277
|
if (super(i), !e) throw new Error("!czmViewer");
|
|
@@ -24297,7 +24295,7 @@ class AI extends Vd {
|
|
|
24297
24295
|
}),
|
|
24298
24296
|
attributes: {
|
|
24299
24297
|
color: h.ColorGeometryInstanceAttribute.fromColor(
|
|
24300
|
-
new h.Color(...s.color ??
|
|
24298
|
+
new h.Color(...s.color ?? Cn.defaults.color)
|
|
24301
24299
|
),
|
|
24302
24300
|
show: new h.ShowGeometryInstanceAttribute(!0)
|
|
24303
24301
|
},
|
|
@@ -24335,7 +24333,7 @@ class MI extends k {
|
|
|
24335
24333
|
constructor(e, s) {
|
|
24336
24334
|
super();
|
|
24337
24335
|
g(this, "_czmClassificationPolygonPrimitive");
|
|
24338
|
-
this._czmClassificationPolygonPrimitive = this.disposeVar(new
|
|
24336
|
+
this._czmClassificationPolygonPrimitive = this.disposeVar(new Cn(s, e.id));
|
|
24339
24337
|
const o = this._czmClassificationPolygonPrimitive;
|
|
24340
24338
|
{
|
|
24341
24339
|
const n = () => {
|
|
@@ -24370,7 +24368,7 @@ class Br extends k {
|
|
|
24370
24368
|
g(this, "_id", this.disposeVar(U(Ne())));
|
|
24371
24369
|
s && (this.id = s);
|
|
24372
24370
|
{
|
|
24373
|
-
const o = this.disposeVar(new
|
|
24371
|
+
const o = this.disposeVar(new hn(e, s));
|
|
24374
24372
|
this._helperPolygon = o, this.dispose(P([o, "show"], [this, "showHelper"], (n) => n));
|
|
24375
24373
|
{
|
|
24376
24374
|
const n = () => {
|
|
@@ -24690,7 +24688,7 @@ g(Ya, "defaults", {
|
|
|
24690
24688
|
defaultLoadFuncStr: jC,
|
|
24691
24689
|
defaultLoadFuncDocStr: RI
|
|
24692
24690
|
});
|
|
24693
|
-
let
|
|
24691
|
+
let _n = Ya;
|
|
24694
24692
|
((t) => {
|
|
24695
24693
|
t.createDefaultProps = () => ({
|
|
24696
24694
|
show: void 0,
|
|
@@ -24708,15 +24706,15 @@ let Cn = Ya;
|
|
|
24708
24706
|
shouldAnimate: void 0,
|
|
24709
24707
|
loadFuncStr: void 0
|
|
24710
24708
|
});
|
|
24711
|
-
})(
|
|
24712
|
-
ae(
|
|
24709
|
+
})(_n || (_n = {}));
|
|
24710
|
+
ae(_n.prototype, _n.createDefaultProps);
|
|
24713
24711
|
const Za = class Za extends Yi {
|
|
24714
24712
|
constructor(i, e) {
|
|
24715
24713
|
if (super(i, e), !e.viewer) {
|
|
24716
24714
|
console.warn("viewer is undefined!");
|
|
24717
24715
|
return;
|
|
24718
24716
|
}
|
|
24719
|
-
const o = this.disposeVar(new
|
|
24717
|
+
const o = this.disposeVar(new _n(e, i.id));
|
|
24720
24718
|
this.dispose(P([o, "show"], [i, "show"])), this.dispose(P([o, "allowPicking"], [i, "allowPicking"])), this.dispose(M([o, "uri"], [i, "url"])), this.dispose(M([o, "loadFuncStr"], [i, "loadFuncStr"])), this.dispose(M([o, "autoResetClock"], [i, "autoResetClock"])), this.dispose(M([o, "clockEnabled"], [i, "clockEnabled"])), this.dispose(M([o, "startTime"], [i, "startTime"])), this.dispose(M([o, "stopTime"], [i, "stopTime"])), this.dispose(M([o, "currentTime"], [i, "currentTime"])), this.dispose(M([o, "multiplier"], [i, "multiplier"])), this.dispose(M([o, "clockStep"], [i, "clockStep"])), this.dispose(M([o, "clockRange"], [i, "clockRange"])), this.dispose(M([o, "shouldAnimate"], [i, "shouldAnimate"])), this.dispose(i.flyToEvent.disposableOn((n) => {
|
|
24721
24719
|
e.actived && o.flyTo(n);
|
|
24722
24720
|
}));
|
|
@@ -24758,7 +24756,7 @@ const Qa = class Qa extends Ie {
|
|
|
24758
24756
|
{
|
|
24759
24757
|
r.uri = "", r.size = [1024, 1], r.enabled = !0;
|
|
24760
24758
|
const l = new mP(), c = () => {
|
|
24761
|
-
l.value = e.colorStops ??
|
|
24759
|
+
l.value = e.colorStops ?? kn.defaults.colorStops;
|
|
24762
24760
|
const d = l.getColorsInUint8(new Uint8Array(1024 * 4));
|
|
24763
24761
|
r.copyTexture({
|
|
24764
24762
|
source: {
|
|
@@ -24815,7 +24813,7 @@ const Qa = class Qa extends Ie {
|
|
|
24815
24813
|
{
|
|
24816
24814
|
const l = this.disposeVar(ze(async (d) => {
|
|
24817
24815
|
a.value = void 0;
|
|
24818
|
-
const u = e.url ??
|
|
24816
|
+
const u = e.url ?? kn.defaults.url;
|
|
24819
24817
|
if (!u) return;
|
|
24820
24818
|
await d.promise(yw(200));
|
|
24821
24819
|
const p = (e.maxTime ?? 23) | 0;
|
|
@@ -24839,7 +24837,7 @@ const Qa = class Qa extends Ie {
|
|
|
24839
24837
|
const { vertexBuffer: d, propBuffers: u, indexBuffer: p } = a.value, { minPos: f, maxPos: m } = yt(new l(d));
|
|
24840
24838
|
n.setLocalAxisedBoundingBox(f, m);
|
|
24841
24839
|
const v = (e.maxTime ?? 23) | 0;
|
|
24842
|
-
let y = (e.currentTime ??
|
|
24840
|
+
let y = (e.currentTime ?? kn.defaults.currentTime) / v;
|
|
24843
24841
|
y = y < 0 ? 0 : y > 1 ? 1 : y;
|
|
24844
24842
|
const _ = y * v;
|
|
24845
24843
|
let C = y * v | 0, b = _ - C;
|
|
@@ -24862,8 +24860,8 @@ const Qa = class Qa extends Ie {
|
|
|
24862
24860
|
id: `${r.id}`
|
|
24863
24861
|
},
|
|
24864
24862
|
u_stripMinMaxValue: [
|
|
24865
|
-
e.minPropValue ??
|
|
24866
|
-
e.maxPropValue ??
|
|
24863
|
+
e.minPropValue ?? kn.defaults.minPropValue,
|
|
24864
|
+
e.maxPropValue ?? kn.defaults.maxPropValue
|
|
24867
24865
|
],
|
|
24868
24866
|
u_ratio: b
|
|
24869
24867
|
};
|
|
@@ -24882,7 +24880,7 @@ const Qa = class Qa extends Ie {
|
|
|
24882
24880
|
return n.actived ? o.flyToParam || o.flyInParam ? super.flyTo(e, s) : (xi(n, o, s, e, r, !0), !0) : !1;
|
|
24883
24881
|
}
|
|
24884
24882
|
};
|
|
24885
|
-
g(Qa, "type", Qa.register("ESCesiumViewer",
|
|
24883
|
+
g(Qa, "type", Qa.register("ESCesiumViewer", kn.type, Qa));
|
|
24886
24884
|
let qm = Qa;
|
|
24887
24885
|
const Go = class Go extends k {
|
|
24888
24886
|
constructor(e, s) {
|
|
@@ -24965,7 +24963,7 @@ const Go = class Go extends k {
|
|
|
24965
24963
|
g(Go, "defaultTextFunc_度格式", (e) => `${e.toFixed(5)}°`), g(Go, "defaultTextFunc_度分格式", (e) => `${ad(e, !0)}`), g(Go, "defaultTextFunc_度分秒格式", (e) => `${ad(e, !1)}`), g(Go, "defaults", {
|
|
24966
24964
|
positions: []
|
|
24967
24965
|
});
|
|
24968
|
-
let
|
|
24966
|
+
let Pn = Go;
|
|
24969
24967
|
((t) => {
|
|
24970
24968
|
t.createDefaultProps = () => ({
|
|
24971
24969
|
show: !0,
|
|
@@ -24993,13 +24991,13 @@ let _n = Go;
|
|
|
24993
24991
|
angleMode: "-180~180",
|
|
24994
24992
|
strokeGround: !1
|
|
24995
24993
|
});
|
|
24996
|
-
})(
|
|
24997
|
-
ae(
|
|
24994
|
+
})(Pn || (Pn = {}));
|
|
24995
|
+
ae(Pn.prototype, Pn.createDefaultProps);
|
|
24998
24996
|
const Ka = class Ka extends ei {
|
|
24999
24997
|
constructor(e, s) {
|
|
25000
24998
|
super(e, s);
|
|
25001
24999
|
g(this, "_czmDirectionMeasurement");
|
|
25002
|
-
if (this._czmDirectionMeasurement = this.disposeVar(new
|
|
25000
|
+
if (this._czmDirectionMeasurement = this.disposeVar(new Pn(s, e.id)), !s.viewer) {
|
|
25003
25001
|
console.warn("viewer is undefined!");
|
|
25004
25002
|
return;
|
|
25005
25003
|
}
|
|
@@ -25323,12 +25321,12 @@ class zI extends k {
|
|
|
25323
25321
|
}
|
|
25324
25322
|
}
|
|
25325
25323
|
}
|
|
25326
|
-
const el = class el extends
|
|
25324
|
+
const el = class el extends Vi {
|
|
25327
25325
|
constructor(e, s) {
|
|
25328
25326
|
super(e, s);
|
|
25329
25327
|
g(this, "_czmPolygonClipping");
|
|
25330
25328
|
g(this, "_tilesSceneObjectWithId");
|
|
25331
|
-
this._czmPolygonClipping = this.ad(new Hh(s, e.id)), this._tilesSceneObjectWithId = this.disposeVar(new
|
|
25329
|
+
this._czmPolygonClipping = this.ad(new Hh(s, e.id)), this._tilesSceneObjectWithId = this.disposeVar(new zi());
|
|
25332
25330
|
const o = this.ad(U(this.sceneObject.targetID));
|
|
25333
25331
|
if (this.ad(e.targetIDChanged.don(() => {
|
|
25334
25332
|
const a = oe.getSceneObject(e.targetID);
|
|
@@ -25411,7 +25409,7 @@ class $h extends k {
|
|
|
25411
25409
|
g(this, "_flyToEvent", this.disposeVar(new q()));
|
|
25412
25410
|
g(this, "_currentDistance", this.disposeVar(U(0)));
|
|
25413
25411
|
g(this, "_ratio", this.disposeVar(Nd.createPlayingRatio([this, "currentTime"], [this, "duration"])));
|
|
25414
|
-
this._geoPath = this.disposeVar(new gw()), this._geoPolyline = this.disposeVar(new Ge(e, s)), this._geoCanvasPointPoi = this.disposeVar(new
|
|
25412
|
+
this._geoPath = this.disposeVar(new gw()), this._geoPolyline = this.disposeVar(new Ge(e, s)), this._geoCanvasPointPoi = this.disposeVar(new an(e, s)), this._player = this.disposeVar(new nc()), this.dispose(M([this._geoPolyline, "positions"], [this, "positions"])), this.dispose(P([this._geoPolyline, "width"], [this, "width"])), this.dispose(P([this._geoPolyline, "ground"], [this, "ground"])), this.dispose(P([this._geoPolyline, "color"], [this, "color"])), this.dispose(P([this._geoPolyline, "hasDash"], [this, "hasDash"])), this.dispose(P([this._geoPolyline, "gapColor"], [this, "gapColor"])), this.dispose(P([this._geoPolyline, "dashLength"], [this, "dashLength"])), this.dispose(P([this._geoPolyline, "dashPattern"], [this, "dashPattern"])), this.dispose(P([this._geoPolyline, "hasArrow"], [this, "hasArrow"])), this.dispose(P([this._geoPolyline, "depthTest"], [this, "depthTest"])), this.dispose(P([this._geoPolyline, "arcType"], [this, "arcType"])), this.dispose(P([this._geoPolyline, "show"], [this, "show"])), this.dispose(P([this._geoPolyline, "show"], [this, "polylineShow"])), this.dispose(P([this._geoPolyline, "allowPicking"], [this, "allowPicking"])), this.dispose(P([this._geoPath, "currentTime"], [this, "currentDistance"])), this.dispose(P([this._geoPath, "leadTime"], [this, "leadTime"])), this.dispose(P([this._geoPath, "trailTime"], [this, "trailTime"])), this.dispose(P([this._geoPath, "show"], [this, "show"])), this.dispose(P([this._geoPath, "currentPoiShow"], [this, "currentPoiShow"]));
|
|
25415
25413
|
{
|
|
25416
25414
|
const o = () => {
|
|
25417
25415
|
this._geoCanvasPointPoi.show = (this.show ?? !0) && (this.currentPoiShow ?? !0);
|
|
@@ -26057,7 +26055,7 @@ const hr = class hr extends xg {
|
|
|
26057
26055
|
new _e([], "czm", "czm"),
|
|
26058
26056
|
new ue([this, "loop"], "首尾相连", !0),
|
|
26059
26057
|
new ue([this, "hasDash"], "是否为虚线", !0),
|
|
26060
|
-
new
|
|
26058
|
+
new er([this, "gapColor"], "间隔颜色", [0, 0, 0, 0]),
|
|
26061
26059
|
new ce([this, "dashLength"], "虚线长度", 16),
|
|
26062
26060
|
new Cw([this, "dashPattern"], "虚线图案", 255),
|
|
26063
26061
|
new ue([this, "hasArrow"], "是否带箭头", !0),
|
|
@@ -26098,7 +26096,7 @@ const cr = class cr extends bg {
|
|
|
26098
26096
|
new _e([], "czm", "czm"),
|
|
26099
26097
|
new ue([this, "loop"], "首尾相连", !0),
|
|
26100
26098
|
new ue([this, "hasDash"], "是否为虚线", !0),
|
|
26101
|
-
new
|
|
26099
|
+
new er([this, "gapColor"], "间隔颜色", [0, 0, 0, 0]),
|
|
26102
26100
|
new ce([this, "dashLength"], "虚线长度", 16),
|
|
26103
26101
|
new Cw([this, "dashPattern"], "虚线图案", 255),
|
|
26104
26102
|
new ue([this, "hasArrow"], "是否带箭头", !0),
|
|
@@ -26793,7 +26791,7 @@ g(Xt, "createDefaultProps", () => ({
|
|
|
26793
26791
|
viewDistanceDebug: !1
|
|
26794
26792
|
})), g(Xt, "type", Xt.register("ESCustomPrimitive", Xt, { chsName: "ES自定义图元", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "ES自定义图元" })), g(Xt, "defaultRenderState", ev), g(Xt, "defaultVertexShaderSource", Km), g(Xt, "defaultFragmentShaderSource", Jm), g(Xt, "defaultUniformMap", tv), g(Xt, "defaultBoundingVolume", jm), g(Xt, "defaultAttribute", iv), g(Xt, "defaultIndexTypedArray", sv), g(Xt, "getMinMaxPosition", cw);
|
|
26795
26793
|
let Gp = Xt;
|
|
26796
|
-
const Ts = class Ts extends
|
|
26794
|
+
const Ts = class Ts extends ki {
|
|
26797
26795
|
constructor(e) {
|
|
26798
26796
|
super(e);
|
|
26799
26797
|
g(this, "editingBindMode", "lineString");
|
|
@@ -26845,7 +26843,7 @@ const Ts = class Ts extends Fi {
|
|
|
26845
26843
|
}
|
|
26846
26844
|
};
|
|
26847
26845
|
g(Ts, "createDefaultProps", () => ({
|
|
26848
|
-
...
|
|
26846
|
+
...ki.createDefaultProps(),
|
|
26849
26847
|
imageUrl: "${earthsdk3-assets-script-dir}/assets/img/signal.png",
|
|
26850
26848
|
repeat: 5,
|
|
26851
26849
|
bidirectional: 0,
|
|
@@ -26861,12 +26859,12 @@ g(Ts, "createDefaultProps", () => ({
|
|
|
26861
26859
|
speed: 1,
|
|
26862
26860
|
playing: !0
|
|
26863
26861
|
})), g(Ts, "type", Ts.register("ESSignalTransmission", Ts, { chsName: "信号传输器", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "信号传输器" })), g(Ts, "supportEditingModes", [
|
|
26864
|
-
...
|
|
26862
|
+
...ki.supportEditingModes,
|
|
26865
26863
|
Je.LineStringAppend,
|
|
26866
26864
|
Je.LineStringInsert
|
|
26867
26865
|
]);
|
|
26868
26866
|
let Wp = Ts;
|
|
26869
|
-
const Wo = class Wo extends
|
|
26867
|
+
const Wo = class Wo extends ki {
|
|
26870
26868
|
constructor(e) {
|
|
26871
26869
|
super(e);
|
|
26872
26870
|
g(this, "editingBindMode", "lineString");
|
|
@@ -26887,7 +26885,7 @@ const Wo = class Wo extends Fi {
|
|
|
26887
26885
|
}
|
|
26888
26886
|
};
|
|
26889
26887
|
g(Wo, "createDefaultProps", () => ({
|
|
26890
|
-
...
|
|
26888
|
+
...ki.createDefaultProps(),
|
|
26891
26889
|
width: 50,
|
|
26892
26890
|
// undfined时为1.0,A numeric Property specifying the width in pixels.
|
|
26893
26891
|
arcType: "GEODESIC",
|
|
@@ -26896,12 +26894,12 @@ g(Wo, "createDefaultProps", () => ({
|
|
|
26896
26894
|
repeat: [100, 1],
|
|
26897
26895
|
stroked: !0
|
|
26898
26896
|
})), g(Wo, "type", Wo.register("ESRoad", Wo, { chsName: "贴地道路", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "最大宽度到1000米" })), g(Wo, "supportEditingModes", [
|
|
26899
|
-
...
|
|
26897
|
+
...ki.supportEditingModes,
|
|
26900
26898
|
Je.LineStringAppend,
|
|
26901
26899
|
Je.LineStringInsert
|
|
26902
26900
|
]);
|
|
26903
26901
|
let Hp = Wo;
|
|
26904
|
-
const Ho = class Ho extends
|
|
26902
|
+
const Ho = class Ho extends ki {
|
|
26905
26903
|
constructor(e) {
|
|
26906
26904
|
super(e);
|
|
26907
26905
|
g(this, "_deprecated", [
|
|
@@ -26926,7 +26924,7 @@ const Ho = class Ho extends Fi {
|
|
|
26926
26924
|
}
|
|
26927
26925
|
};
|
|
26928
26926
|
g(Ho, "createDefaultProps", () => ({
|
|
26929
|
-
...
|
|
26927
|
+
...ki.createDefaultProps(),
|
|
26930
26928
|
ground: !1,
|
|
26931
26929
|
depth: 0,
|
|
26932
26930
|
stroked: !0,
|
|
@@ -26938,12 +26936,12 @@ g(Ho, "createDefaultProps", () => ({
|
|
|
26938
26936
|
ground: !1
|
|
26939
26937
|
})
|
|
26940
26938
|
})), g(Ho, "type", Ho.register("ESGeoSmoothPolygon", Ho, { chsName: "平滑多边形", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "平滑多边形" })), g(Ho, "supportEditingModes", [
|
|
26941
|
-
...
|
|
26939
|
+
...ki.supportEditingModes,
|
|
26942
26940
|
Je.CircularAppend,
|
|
26943
26941
|
Je.CircularInsert
|
|
26944
26942
|
]);
|
|
26945
26943
|
let Cd = Ho;
|
|
26946
|
-
const to = class to extends
|
|
26944
|
+
const to = class to extends ki {
|
|
26947
26945
|
constructor(e) {
|
|
26948
26946
|
super(e);
|
|
26949
26947
|
g(this, "_deprecated", [
|
|
@@ -27020,7 +27018,7 @@ const to = class to extends Fi {
|
|
|
27020
27018
|
}
|
|
27021
27019
|
};
|
|
27022
27020
|
g(to, "createDefaultProps", () => ({
|
|
27023
|
-
...
|
|
27021
|
+
...ki.createDefaultProps(),
|
|
27024
27022
|
currentPoiShow: !0,
|
|
27025
27023
|
ground: !1,
|
|
27026
27024
|
arcType: "GEODESIC",
|
|
@@ -27037,7 +27035,7 @@ g(to, "createDefaultProps", () => ({
|
|
|
27037
27035
|
trailTime: 0,
|
|
27038
27036
|
stroked: !0
|
|
27039
27037
|
})), g(to, "type", to.register("ESGeoBezierPath", to, { chsName: "贝塞尔曲线路径", tags: ["GeoObjects"], description: "贝塞尔曲线路径" })), g(to, "supportEditingModes", [
|
|
27040
|
-
...
|
|
27038
|
+
...ki.supportEditingModes,
|
|
27041
27039
|
Je.LineStringAppend,
|
|
27042
27040
|
Je.LineStringInsert
|
|
27043
27041
|
]);
|
|
@@ -27575,7 +27573,7 @@ ${i_}
|
|
|
27575
27573
|
c && (r = me(c));
|
|
27576
27574
|
}
|
|
27577
27575
|
if (!r || isNaN(r[0])) return;
|
|
27578
|
-
const a = ft([r,
|
|
27576
|
+
const a = ft([r, Li(s.viewer.camera)], "NONE")[0];
|
|
27579
27577
|
let l = !1;
|
|
27580
27578
|
this.minFeatureVisibleDistance < this.maxFeatureVisibleDistance ? l = this.minFeatureVisibleDistance < a && a < this.maxFeatureVisibleDistance : this.maxFeatureVisibleDistance == 0 ? l = a > this.minFeatureVisibleDistance : this.minFeatureVisibleDistance == 0 && (l = a < this.maxFeatureVisibleDistance), e.show = this.show && l;
|
|
27581
27579
|
}
|
|
@@ -27626,7 +27624,7 @@ g(at, "defaults", {
|
|
|
27626
27624
|
maxFeatureVisibleDistance: 0,
|
|
27627
27625
|
heightReferences: [["NONE", "NONE"], ["CLAMP_TO_GROUND", "CLAMP_TO_GROUND"], ["RELATIVE_TO_GROUND", "RELATIVE_TO_GROUND"]]
|
|
27628
27626
|
});
|
|
27629
|
-
let
|
|
27627
|
+
let xn = at;
|
|
27630
27628
|
((t) => {
|
|
27631
27629
|
t.createDefaultProps = () => ({
|
|
27632
27630
|
show: !0,
|
|
@@ -27671,8 +27669,8 @@ let Pn = at;
|
|
|
27671
27669
|
heightReference: "NONE",
|
|
27672
27670
|
classificationType: "TERRAIN"
|
|
27673
27671
|
});
|
|
27674
|
-
})(
|
|
27675
|
-
ae(
|
|
27672
|
+
})(xn || (xn = {}));
|
|
27673
|
+
ae(xn.prototype, xn.createDefaultProps);
|
|
27676
27674
|
const nl = class nl extends Zi {
|
|
27677
27675
|
constructor(e, s) {
|
|
27678
27676
|
super(e, s);
|
|
@@ -27685,7 +27683,7 @@ const nl = class nl extends Zi {
|
|
|
27685
27683
|
}
|
|
27686
27684
|
const n = Ct(o);
|
|
27687
27685
|
if (!n) return;
|
|
27688
|
-
const { screenManager: r } = n, a = this.disposeVar(new
|
|
27686
|
+
const { screenManager: r } = n, a = this.disposeVar(new xn(s, e.id));
|
|
27689
27687
|
{
|
|
27690
27688
|
const l = () => {
|
|
27691
27689
|
if (!e.features) return;
|
|
@@ -27841,7 +27839,7 @@ const nl = class nl extends Zi {
|
|
|
27841
27839
|
return fe(s.viewer, d, void 0, u, p), !0;
|
|
27842
27840
|
}
|
|
27843
27841
|
let c;
|
|
27844
|
-
a.defaultBoundingSphere && this._defaultPointsBoundingSphere ? c = h.BoundingSphere.fromBoundingSpheres([a.defaultBoundingSphere, this._defaultPointsBoundingSphere]) : a.defaultBoundingSphere ? c = a.defaultBoundingSphere : this._defaultPointsBoundingSphere && (c = this._defaultPointsBoundingSphere), c &&
|
|
27842
|
+
a.defaultBoundingSphere && this._defaultPointsBoundingSphere ? c = h.BoundingSphere.fromBoundingSpheres([a.defaultBoundingSphere, this._defaultPointsBoundingSphere]) : a.defaultBoundingSphere ? c = a.defaultBoundingSphere : this._defaultPointsBoundingSphere && (c = this._defaultPointsBoundingSphere), c && Fi(s, e, this.id, me(c.center), c.radius, l);
|
|
27845
27843
|
}));
|
|
27846
27844
|
{
|
|
27847
27845
|
const l = async (c, d, u) => {
|
|
@@ -27849,13 +27847,13 @@ const nl = class nl extends Zi {
|
|
|
27849
27847
|
const p = JSON.parse(JSON.stringify(this._getFeatureByIndexOrProperties(c, d)));
|
|
27850
27848
|
if (!(!p || !(p != null && p.positions)))
|
|
27851
27849
|
if (p.type == "Point" || p.type == "MultiPoint")
|
|
27852
|
-
|
|
27850
|
+
Fi(s, e, this.id, await this._calculateFeatureHeight(p.type == "MultiPoint" ? p.positions.flat() : p.positions, e.heightReference, s), 1e3, u);
|
|
27853
27851
|
else {
|
|
27854
27852
|
const f = p.type == "Polygon" || p.type == "MultiPolygon" || p.type == "MultiLineString";
|
|
27855
27853
|
let m = [];
|
|
27856
27854
|
f ? m = p.positions.flat(p.type == "MultiPolygon" ? 2 : 1).map((C) => this._calculateFeatureHeight(C, e.fillGround ? "CLAMP_TO_GROUND" : "NONE", s)) : m = p.positions.map((C) => this._calculateFeatureHeight(C, e.strokeGround ? "CLAMP_TO_GROUND" : "NONE", s));
|
|
27857
27855
|
const { minPos: v, maxPos: y, center: _ } = yt(m);
|
|
27858
|
-
|
|
27856
|
+
Fi(s, e, this.id, _, ft([v, y], "NONE")[0], u);
|
|
27859
27857
|
}
|
|
27860
27858
|
};
|
|
27861
27859
|
this.d(e.flyToFeatureEvent.don((c, d, u) => l(c, d, u))), this.d(e.flyToFeatureIndexEvent.don((c, d) => l(c, void 0, d)));
|
|
@@ -27967,7 +27965,7 @@ class Xh extends k {
|
|
|
27967
27965
|
super();
|
|
27968
27966
|
g(this, "_flyToEvent", this.disposeVar(new q()));
|
|
27969
27967
|
g(this, "_geoPolygon");
|
|
27970
|
-
this._geoPolygon = this.disposeVar(new
|
|
27968
|
+
this._geoPolygon = this.disposeVar(new hn(e, s));
|
|
27971
27969
|
const { geoPolygon: o } = this;
|
|
27972
27970
|
this.dispose(M([o, "allowPicking"], [this, "allowPicking"])), this.dispose(this.flyToEvent.disposableOn((r) => {
|
|
27973
27971
|
o.flyTo(r);
|
|
@@ -28168,7 +28166,7 @@ class Yh extends k {
|
|
|
28168
28166
|
if (this.positions)
|
|
28169
28167
|
if (this.positions.length >= 2)
|
|
28170
28168
|
if (this._middlePosition.value = [this.positions[0][0], this.positions[0][1], this.positions[1][2]], this._heightPosition.value = [this.positions[0][0], this.positions[0][1], 0.5 * (this.positions[1][2] + this.positions[0][2])], this.arcType === void 0 || this.arcType === "GEODESIC") {
|
|
28171
|
-
const r = this._surfaceDistance.value =
|
|
28169
|
+
const r = this._surfaceDistance.value = Mi(this.positions[0], this.positions[1]), a = this._height.value = this.positions[1][2] - this.positions[0][2];
|
|
28172
28170
|
this._distance.value = Math.sqrt(r * r + a * a);
|
|
28173
28171
|
} else if (this.arcType === "RHUMB") {
|
|
28174
28172
|
const r = this._surfaceDistance.value = Bd(this.positions[0], this.positions[1]), a = this._height.value = this.positions[1][2] - this.positions[0][2];
|
|
@@ -28511,7 +28509,7 @@ class hR extends k {
|
|
|
28511
28509
|
g(this, "_isPointEvent", !1);
|
|
28512
28510
|
g(this, "flyTo", (e, s) => {
|
|
28513
28511
|
if (this.czmGeoImageModel.position)
|
|
28514
|
-
return
|
|
28512
|
+
return Fi(this.czmViewer, this.sceneObject, s, this.sceneObject.position, Math.max(...this.czmGeoImageModel.size), e, !0);
|
|
28515
28513
|
this.czmGeoImageModel.flyTo(e && e * 1e3);
|
|
28516
28514
|
});
|
|
28517
28515
|
this.sceneObject = e, this.czmViewer = s, this._czmGeoImageModel = this.disposeVar(new vo(s, e.id));
|
|
@@ -28610,7 +28608,7 @@ const ul = class ul extends Zi {
|
|
|
28610
28608
|
constructor(e, s) {
|
|
28611
28609
|
super(e, s);
|
|
28612
28610
|
g(this, "_czmImagery");
|
|
28613
|
-
if (this._czmImagery = this.dv(new
|
|
28611
|
+
if (this._czmImagery = this.dv(new gn(s, e.id)), !s.viewer) {
|
|
28614
28612
|
console.warn("viewer is undefined!");
|
|
28615
28613
|
return;
|
|
28616
28614
|
}
|
|
@@ -28897,7 +28895,7 @@ const ut = class ut extends Ie {
|
|
|
28897
28895
|
return super.flyTo(e, s);
|
|
28898
28896
|
{
|
|
28899
28897
|
const r = o.size ?? Eg.defaults.size;
|
|
28900
|
-
return o.position ? (
|
|
28898
|
+
return o.position ? (Fi(n, o, s, o.position, r, e, !0), !0) : !1;
|
|
28901
28899
|
}
|
|
28902
28900
|
}
|
|
28903
28901
|
};
|
|
@@ -29014,10 +29012,10 @@ let Cv = pl;
|
|
|
29014
29012
|
async function pR(t) {
|
|
29015
29013
|
const i = ["Flag01", "Flag02", "Linear02", "ManAbnormal", "ManNormal", "P3D02", "P3D03", "P3D04", "P3D05", "P3D06", "P3D07", "Stranger", "WomanAbnormal", "WomanNormal"], e = ["CircularV05", "Diamond01"], s = ["Flag01", "Flag02", "Linear02", "Linear03", "ManAbnormal", "ManNormal", "P3D02", "P3D03", "P3D04", "P3D05", "P3D06", "P3D07", "Stranger", "WomanAbnormal", "WomanNormal"];
|
|
29016
29014
|
let o = [];
|
|
29017
|
-
const n = "${earthsdk3-assets-script-dir}/assets/img/ESPoi2D/", r = i.includes(t) ? void 0 : await
|
|
29015
|
+
const n = "${earthsdk3-assets-script-dir}/assets/img/ESPoi2D/", r = i.includes(t) ? void 0 : await Ko(oe.context.getStrFromEnv(n + `/${t}/icon.png`)), a = e.includes(t) ? void 0 : await Ko(oe.context.getStrFromEnv(n + `/${t}/anchor.png`));
|
|
29018
29016
|
for (let d = 1; d <= (_R[t] ?? 3); d++)
|
|
29019
|
-
o.push(await
|
|
29020
|
-
const l = s.includes(t) ? void 0 : await
|
|
29017
|
+
o.push(await Ko(oe.context.getStrFromEnv(n + `/${t}/textBox_0${d}.png`)));
|
|
29018
|
+
const l = s.includes(t) ? void 0 : await Ko(oe.context.getStrFromEnv(n + `/${t}/iconBox.png`)), c = o.filter((d) => d != null);
|
|
29021
29019
|
return { icon: r, anchor: a, iconBox: l, textBox: c };
|
|
29022
29020
|
}
|
|
29023
29021
|
function fR(t, i, e, s, o, n) {
|
|
@@ -29378,7 +29376,7 @@ const _R = {
|
|
|
29378
29376
|
visibleDistance(e, s) {
|
|
29379
29377
|
var o, n, r, a, l;
|
|
29380
29378
|
if ((o = s.viewer) != null && o.camera && e.show) {
|
|
29381
|
-
const c = ft([e.position,
|
|
29379
|
+
const c = ft([e.position, Li(s.viewer.camera)], "NONE")[0];
|
|
29382
29380
|
let d = !1;
|
|
29383
29381
|
e.minVisibleDistance < e.maxVisibleDistance ? d = e.minVisibleDistance < c && c < e.maxVisibleDistance : e.maxVisibleDistance == 0 && (d = c > e.minVisibleDistance);
|
|
29384
29382
|
const u = this.widgetComponent.obj, p = this.customWidgetComponent.obj;
|
|
@@ -29411,7 +29409,7 @@ const fl = class fl extends Ie {
|
|
|
29411
29409
|
visibleDistance(e, s) {
|
|
29412
29410
|
var o;
|
|
29413
29411
|
if ((o = s.viewer) != null && o.camera && e.show) {
|
|
29414
|
-
const n = ft([e.position,
|
|
29412
|
+
const n = ft([e.position, Li(s.viewer.camera)], "NONE")[0];
|
|
29415
29413
|
let r = !1;
|
|
29416
29414
|
if (e.minVisibleDistance < e.maxVisibleDistance ? r = e.minVisibleDistance < n && n < e.maxVisibleDistance : e.maxVisibleDistance == 0 && (r = n > e.minVisibleDistance), !this._czmModelPoi3D) return;
|
|
29417
29415
|
this._czmModelPoi3D.czmModel && (this._czmModelPoi3D.czmModel.show = e.show && r);
|
|
@@ -29715,7 +29713,7 @@ async function TR(t, i) {
|
|
|
29715
29713
|
if (t.type === "CesiumTerrainProvider") {
|
|
29716
29714
|
const e = SR(typeof t.url == "string" ? t.url : t.url.url);
|
|
29717
29715
|
return e ? await h.CesiumTerrainProvider.fromUrl(
|
|
29718
|
-
typeof e == "string" ?
|
|
29716
|
+
typeof e == "string" ? Gi(t.url) : e,
|
|
29719
29717
|
{
|
|
29720
29718
|
requestVertexNormals: t.requestVertexNormals,
|
|
29721
29719
|
requestWaterMask: t.requestWaterMask,
|
|
@@ -29735,7 +29733,7 @@ async function TR(t, i) {
|
|
|
29735
29733
|
);
|
|
29736
29734
|
} else {
|
|
29737
29735
|
if (t.type === "ArcGISTiledElevationTerrainProvider")
|
|
29738
|
-
return await h.ArcGISTiledElevationTerrainProvider.fromUrl(
|
|
29736
|
+
return await h.ArcGISTiledElevationTerrainProvider.fromUrl(Gi(t.url), {
|
|
29739
29737
|
// Cesium105.2自己的声明文件有问题 vtxf 20230525
|
|
29740
29738
|
// @ts-ignore
|
|
29741
29739
|
token: t.token,
|
|
@@ -29753,7 +29751,7 @@ async function TR(t, i) {
|
|
|
29753
29751
|
});
|
|
29754
29752
|
if (t.type === "VRTheWorldTerrainProvider")
|
|
29755
29753
|
return await h.VRTheWorldTerrainProvider.fromUrl(
|
|
29756
|
-
|
|
29754
|
+
Gi(t.url),
|
|
29757
29755
|
{
|
|
29758
29756
|
ellipsoid: t.ellipsoid && De(t.ellipsoid),
|
|
29759
29757
|
credit: t.credit
|
|
@@ -29943,7 +29941,7 @@ class MR extends k {
|
|
|
29943
29941
|
g(this, "_isPointEvent", !1);
|
|
29944
29942
|
g(this, "flyTo", (e, s) => {
|
|
29945
29943
|
if (this.czmImageModel.position)
|
|
29946
|
-
return
|
|
29944
|
+
return Fi(this._czmViewer, this.sceneObject, s, this.sceneObject.position, Math.max(...this.czmImageModel.size), e, !0);
|
|
29947
29945
|
this.czmImageModel.flyTo(e && e * 1e3);
|
|
29948
29946
|
});
|
|
29949
29947
|
this.sceneObject = e, this._czmViewer = s, this._czmTextLabel = this.disposeVar(new ks(s, e.id)), this._czmImageModel = this.disposeVar(new vo(s, e.id));
|
|
@@ -30747,7 +30745,7 @@ const Cl = class Cl extends Ie {
|
|
|
30747
30745
|
return super.flyTo(e, s);
|
|
30748
30746
|
{
|
|
30749
30747
|
const r = o.far ?? yc.defaults.far;
|
|
30750
|
-
return o.position ? (
|
|
30748
|
+
return o.position ? (Fi(n, o, s, o.position, r, e), !0) : !1;
|
|
30751
30749
|
}
|
|
30752
30750
|
}
|
|
30753
30751
|
};
|
|
@@ -31315,13 +31313,13 @@ const _l = class _l extends Ie {
|
|
|
31315
31313
|
return super.flyTo(e, s);
|
|
31316
31314
|
{
|
|
31317
31315
|
const r = o.far ?? wc.defaults.far;
|
|
31318
|
-
return o.position ? (
|
|
31316
|
+
return o.position ? (Fi(n, o, s, o.position, r, e), !0) : !1;
|
|
31319
31317
|
}
|
|
31320
31318
|
}
|
|
31321
31319
|
visibleDistance(e, s) {
|
|
31322
31320
|
var o;
|
|
31323
31321
|
if ((o = s.viewer) != null && o.camera && e.show) {
|
|
31324
|
-
const n = ft([e.position,
|
|
31322
|
+
const n = ft([e.position, Li(s.viewer.camera)], "NONE")[0];
|
|
31325
31323
|
let r = !1;
|
|
31326
31324
|
e.minVisibleDistance < e.maxVisibleDistance ? r = e.minVisibleDistance < n && n < e.maxVisibleDistance : e.maxVisibleDistance == 0 && (r = n > e.minVisibleDistance), this.czmViewShed && (this.czmViewShed.showHelper = r && (e.showFrustum ?? wc.defaults.showFrustum), this.czmViewShed.enabled = r && e.show && !!e.position);
|
|
31327
31325
|
}
|
|
@@ -31431,7 +31429,7 @@ const ZR = `
|
|
|
31431
31429
|
return;
|
|
31432
31430
|
const { screenManager: a } = r;
|
|
31433
31431
|
(async () => {
|
|
31434
|
-
const l = "${earthsdk3-assets-script-dir}/assets/img/Info/", c = await
|
|
31432
|
+
const l = "${earthsdk3-assets-script-dir}/assets/img/Info/", c = await Ko(oe.context.getStrFromEnv(l + "/InfoBackGround.png")), d = await Ko(oe.context.getStrFromEnv(l + "/InfoItemRowBackGround.png"));
|
|
31435
31433
|
{
|
|
31436
31434
|
this.ad(() => {
|
|
31437
31435
|
});
|
|
@@ -31746,7 +31744,7 @@ g(dr, "defaults", {
|
|
|
31746
31744
|
uri: "${earthsdk3-assets-script-dir}/assets/misc/bikeRide.kml",
|
|
31747
31745
|
clampToGround: !1
|
|
31748
31746
|
});
|
|
31749
|
-
let
|
|
31747
|
+
let bn = dr;
|
|
31750
31748
|
((t) => {
|
|
31751
31749
|
t.createDefaultProps = () => ({
|
|
31752
31750
|
show: !0,
|
|
@@ -31766,15 +31764,15 @@ let xn = dr;
|
|
|
31766
31764
|
shouldAnimate: void 0,
|
|
31767
31765
|
clampToGround: void 0
|
|
31768
31766
|
});
|
|
31769
|
-
})(
|
|
31770
|
-
ae(
|
|
31767
|
+
})(bn || (bn = {}));
|
|
31768
|
+
ae(bn.prototype, bn.createDefaultProps);
|
|
31771
31769
|
const xl = class xl extends Yi {
|
|
31772
31770
|
constructor(i, e) {
|
|
31773
31771
|
if (super(i, e), !e.viewer) {
|
|
31774
31772
|
console.warn("viewer is undefined!");
|
|
31775
31773
|
return;
|
|
31776
31774
|
}
|
|
31777
|
-
const o = this.disposeVar(new
|
|
31775
|
+
const o = this.disposeVar(new bn(e, i.id));
|
|
31778
31776
|
this.dispose(P([o, "show"], [i, "show"])), this.dispose(P([o, "allowPicking"], [i, "allowPicking"])), this.dispose(M([o, "data"], [i, "data"])), this.dispose(M([o, "uri"], [i, "uri"])), this.dispose(M([o, "loadFuncStr"], [i, "loadFuncStr"])), this.dispose(M([o, "autoResetClock"], [i, "autoResetClock"])), this.dispose(M([o, "clockEnabled"], [i, "clockEnabled"])), this.dispose(M([o, "startTime"], [i, "startTime"])), this.dispose(M([o, "stopTime"], [i, "stopTime"])), this.dispose(M([o, "currentTime"], [i, "currentTime"])), this.dispose(M([o, "multiplier"], [i, "multiplier"])), this.dispose(M([o, "clockStep"], [i, "clockStep"])), this.dispose(M([o, "clockRange"], [i, "clockRange"])), this.dispose(M([o, "shouldAnimate"], [i, "shouldAnimate"])), this.dispose(M([o, "clampToGround"], [i, "clampToGround"])), this.dispose(i.flyToEvent.disposableOn((n) => {
|
|
31779
31777
|
e.actived && o.flyTo(n && n * 1e3);
|
|
31780
31778
|
}));
|
|
@@ -31842,14 +31840,14 @@ const bl = class bl extends Ie {
|
|
|
31842
31840
|
visibleDistance(e, s) {
|
|
31843
31841
|
var o;
|
|
31844
31842
|
if ((o = s.viewer) != null && o.camera && e.show) {
|
|
31845
|
-
const n = ft([e.position,
|
|
31843
|
+
const n = ft([e.position, Li(s.viewer.camera)], "NONE")[0];
|
|
31846
31844
|
let r = !1;
|
|
31847
31845
|
e.minVisibleDistance < e.maxVisibleDistance ? r = e.minVisibleDistance < n && n < e.maxVisibleDistance : e.maxVisibleDistance == 0 && (r = n > e.minVisibleDistance), this._czmGeoCircle.show = e.show && e.filled && r, this._geoPolyline.show = e.show && e.stroked && r;
|
|
31848
31846
|
}
|
|
31849
31847
|
}
|
|
31850
31848
|
flyTo(e, s) {
|
|
31851
31849
|
const { sceneObject: o, czmViewer: n, czmGeoCircle: r } = this;
|
|
31852
|
-
return n.actived ? o.flyToParam || o.flyInParam ? super.flyTo(e, s) : o.position ? (
|
|
31850
|
+
return n.actived ? o.flyToParam || o.flyInParam ? super.flyTo(e, s) : o.position ? (Fi(n, o, s, o.position, o.radius, e, !0), !0) : !1 : !1;
|
|
31853
31851
|
}
|
|
31854
31852
|
};
|
|
31855
31853
|
g(bl, "type", bl.register("ESCesiumViewer", Mg.type, bl));
|
|
@@ -31915,7 +31913,7 @@ const Sl = class Sl extends Ie {
|
|
|
31915
31913
|
visibleDistance(e, s) {
|
|
31916
31914
|
var o;
|
|
31917
31915
|
if ((o = s.viewer) != null && o.camera && e.show) {
|
|
31918
|
-
const n = ft([e.position,
|
|
31916
|
+
const n = ft([e.position, Li(s.viewer.camera)], "NONE")[0];
|
|
31919
31917
|
let r = !1;
|
|
31920
31918
|
e.minVisibleDistance < e.maxVisibleDistance ? r = e.minVisibleDistance < n && n < e.maxVisibleDistance : e.maxVisibleDistance == 0 && (r = n > e.minVisibleDistance), this._czmESLocalLineStringZ.show = e.show && e.stroked && r;
|
|
31921
31919
|
}
|
|
@@ -31955,7 +31953,7 @@ const Tl = class Tl extends Ie {
|
|
|
31955
31953
|
console.warn("缩放属性(scale)不能设置值为0!");
|
|
31956
31954
|
return;
|
|
31957
31955
|
}
|
|
31958
|
-
const [l] =
|
|
31956
|
+
const [l] = tn({
|
|
31959
31957
|
originPosition: e.position,
|
|
31960
31958
|
originRotation: e.rotation,
|
|
31961
31959
|
originScale: e.scale
|
|
@@ -31978,7 +31976,7 @@ const Tl = class Tl extends Ie {
|
|
|
31978
31976
|
visibleDistance(e, s) {
|
|
31979
31977
|
var o;
|
|
31980
31978
|
if ((o = s.viewer) != null && o.camera && e.show) {
|
|
31981
|
-
const n = ft([e.position,
|
|
31979
|
+
const n = ft([e.position, Li(s.viewer.camera)], "NONE")[0];
|
|
31982
31980
|
let r = !1;
|
|
31983
31981
|
e.minVisibleDistance < e.maxVisibleDistance ? r = e.minVisibleDistance < n && n < e.maxVisibleDistance : e.maxVisibleDistance == 0 && (r = n > e.minVisibleDistance), this._czmGeoPolyline.show = e.show && e.stroked && r;
|
|
31984
31982
|
}
|
|
@@ -32039,7 +32037,7 @@ const Al = class Al extends Yf {
|
|
|
32039
32037
|
console.warn("缩放属性(scale)不能设置值为0!");
|
|
32040
32038
|
return;
|
|
32041
32039
|
}
|
|
32042
|
-
const [l] =
|
|
32040
|
+
const [l] = tn({
|
|
32043
32041
|
originPosition: e.position,
|
|
32044
32042
|
originRotation: e.rotation,
|
|
32045
32043
|
originScale: e.scale,
|
|
@@ -32139,20 +32137,20 @@ const Il = class Il extends Yi {
|
|
|
32139
32137
|
}
|
|
32140
32138
|
{
|
|
32141
32139
|
const m = () => {
|
|
32142
|
-
d.style.display = e.show ??
|
|
32140
|
+
d.style.display = e.show ?? Fn.defaults.show ? "block" : "none";
|
|
32143
32141
|
};
|
|
32144
32142
|
m(), e.dispose(e.showChanged.disposableOn(m));
|
|
32145
32143
|
}
|
|
32146
32144
|
{
|
|
32147
32145
|
const m = () => {
|
|
32148
|
-
d.style.width = `${e.cssSize ? e.cssSize :
|
|
32146
|
+
d.style.width = `${e.cssSize ? e.cssSize : Fn.defaults.cssSize}px`, d.style.height = `${e.cssSize ? e.cssSize : Fn.defaults.cssSize}px`;
|
|
32149
32147
|
};
|
|
32150
32148
|
m(), e.dispose(e.cssSizeChanged.disposableOn(m));
|
|
32151
32149
|
}
|
|
32152
32150
|
d.style.position = "fixed";
|
|
32153
32151
|
{
|
|
32154
32152
|
const m = () => {
|
|
32155
|
-
d.style.top = `${e.cssPosition ? e.cssPosition[0] :
|
|
32153
|
+
d.style.top = `${e.cssPosition ? e.cssPosition[0] : Fn.defaults.cssPosition[0]}px`, d.style.right = `${e.cssPosition ? e.cssPosition[1] : Fn.defaults.cssPosition[1]}px`;
|
|
32156
32154
|
};
|
|
32157
32155
|
m(), e.dispose(e.cssPositionChanged.disposableOn(m));
|
|
32158
32156
|
}
|
|
@@ -32177,7 +32175,7 @@ const Il = class Il extends Yi {
|
|
|
32177
32175
|
return this._customDiv;
|
|
32178
32176
|
}
|
|
32179
32177
|
};
|
|
32180
|
-
g(Il, "type", Il.register("ESCesiumViewer",
|
|
32178
|
+
g(Il, "type", Il.register("ESCesiumViewer", Fn.type, Il));
|
|
32181
32179
|
let Uv = Il;
|
|
32182
32180
|
const r2 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAEACAYAAADFkM5nAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA39pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ4IDc5LjE2NDAzNiwgMjAxOS8wOC8xMy0wMTowNjo1NyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozNzdjMTM2OS1jOWY2LTNhNGEtOWM3My01OTJmNWM0Mzg3NjYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RjJCQzhDNzQyRkFGMTFFRkIzRjJCNDE5M0I3OTE5MzYiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RjJCQzhDNzMyRkFGMTFFRkIzRjJCNDE5M0I3OTE5MzYiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOmE0ZWU5OWFlLTUyNmYtODY0ZC05OTk0LWQwMzE5MTdjZWUyZSIgc3RSZWY6ZG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjdiN2Q4YjQzLTM4ZDktZjI0ZS04MjIyLWI3MTdi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", a2 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAEACAYAAADFkM5nAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA39pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ4IDc5LjE2NDAzNiwgMjAxOS8wOC8xMy0wMTowNjo1NyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozNzdjMTM2OS1jOWY2LTNhNGEtOWM3My01OTJmNWM0Mzg3NjYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NkJCOEQ5RUQyRkIxMTFFRkIzRjJCNDE5M0I3OTE5MzYiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NkJCOEQ5RUMyRkIxMTFFRkIzRjJCNDE5M0I3OTE5MzYiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOmE0ZWU5OWFlLTUyNmYtODY0ZC05OTk0LWQwMzE5MTdjZWUyZSIgc3RSZWY6ZG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjdiN2Q4YjQzLTM4ZDktZjI0ZS04MjIyLWI3MTdi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", Rl = class Rl extends Wh {
|
|
32183
32181
|
// private _signal;
|
|
@@ -32187,7 +32185,7 @@ const r2 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAEACAYAAADFkM5nAA
|
|
|
32187
32185
|
console.warn("viewer is undefined!");
|
|
32188
32186
|
return;
|
|
32189
32187
|
}
|
|
32190
|
-
this.ad(
|
|
32188
|
+
this.ad(Jo([
|
|
32191
32189
|
i.strokeColorChanged,
|
|
32192
32190
|
i.strokeWidthChanged,
|
|
32193
32191
|
i.materialModeChanged,
|
|
@@ -32354,7 +32352,7 @@ g(Es, "defaults", {
|
|
|
32354
32352
|
textureMoveSpeed: [0, 0.3],
|
|
32355
32353
|
textureColor: [1, 1, 1, 1]
|
|
32356
32354
|
});
|
|
32357
|
-
let
|
|
32355
|
+
let Sn = Es;
|
|
32358
32356
|
((t) => {
|
|
32359
32357
|
t.createDefaultProps = () => ({
|
|
32360
32358
|
show: void 0,
|
|
@@ -32367,14 +32365,14 @@ let bn = Es;
|
|
|
32367
32365
|
textureMoveSpeed: K(void 0),
|
|
32368
32366
|
textureColor: K(void 0)
|
|
32369
32367
|
});
|
|
32370
|
-
})(
|
|
32371
|
-
ae(
|
|
32368
|
+
})(Sn || (Sn = {}));
|
|
32369
|
+
ae(Sn.prototype, Sn.createDefaultProps);
|
|
32372
32370
|
const Dl = class Dl extends ei {
|
|
32373
32371
|
constructor(e, s) {
|
|
32374
32372
|
super(e, s);
|
|
32375
32373
|
g(this, "_czmPolygonFence");
|
|
32376
32374
|
g(this, "_czmPolygon");
|
|
32377
|
-
if (this._czmPolygonFence = this.disposeVar(new
|
|
32375
|
+
if (this._czmPolygonFence = this.disposeVar(new Sn(s, e.id)), this._czmPolygon = this.dv(new Ud()), !s.viewer) {
|
|
32378
32376
|
console.warn("viewer is undefined!");
|
|
32379
32377
|
return;
|
|
32380
32378
|
}
|
|
@@ -32666,7 +32664,7 @@ g(io, "defaults", {
|
|
|
32666
32664
|
repeat: [100, 1],
|
|
32667
32665
|
allowPicking: !1
|
|
32668
32666
|
});
|
|
32669
|
-
let
|
|
32667
|
+
let Tn = io;
|
|
32670
32668
|
((t) => {
|
|
32671
32669
|
t.createDefaultProps = () => ({
|
|
32672
32670
|
show: void 0,
|
|
@@ -32681,13 +32679,13 @@ let Sn = io;
|
|
|
32681
32679
|
repeat: void 0,
|
|
32682
32680
|
allowPicking: void 0
|
|
32683
32681
|
});
|
|
32684
|
-
})(
|
|
32685
|
-
ae(
|
|
32682
|
+
})(Tn || (Tn = {}));
|
|
32683
|
+
ae(Tn.prototype, Tn.createDefaultProps);
|
|
32686
32684
|
const Fl = class Fl extends ei {
|
|
32687
32685
|
constructor(e, s) {
|
|
32688
32686
|
super(e, s);
|
|
32689
32687
|
g(this, "_czmESRoad");
|
|
32690
|
-
if (this._czmESRoad = this.disposeVar(new
|
|
32688
|
+
if (this._czmESRoad = this.disposeVar(new Tn(s, e.id)), !s.viewer) {
|
|
32691
32689
|
console.warn("viewer is undefined!");
|
|
32692
32690
|
return;
|
|
32693
32691
|
}
|
|
@@ -32883,7 +32881,7 @@ const Ol = class Ol extends Yf {
|
|
|
32883
32881
|
console.warn("缩放属性(scale)不能设置值为0");
|
|
32884
32882
|
return;
|
|
32885
32883
|
}
|
|
32886
|
-
const d = e.points.map((p) => [p[0], p[1], 0]), [u] =
|
|
32884
|
+
const d = e.points.map((p) => [p[0], p[1], 0]), [u] = tn({
|
|
32887
32885
|
originPosition: e.position,
|
|
32888
32886
|
originRotation: e.rotation,
|
|
32889
32887
|
originScale: e.scale,
|
|
@@ -32905,7 +32903,7 @@ const Ol = class Ol extends Yf {
|
|
|
32905
32903
|
visibleDistance(e, s) {
|
|
32906
32904
|
var o;
|
|
32907
32905
|
if ((o = s.viewer) != null && o.camera && e.show) {
|
|
32908
|
-
const n = ft([e.position,
|
|
32906
|
+
const n = ft([e.position, Li(s.viewer.camera)], "NONE")[0];
|
|
32909
32907
|
let r = !1;
|
|
32910
32908
|
e.minVisibleDistance < e.maxVisibleDistance ? r = e.minVisibleDistance < n && n < e.maxVisibleDistance : e.maxVisibleDistance == 0 && (r = n > e.minVisibleDistance), this.czmGeoPolyline && (this.czmGeoPolyline.show = e.show && e.stroked && r), this.czmWater && (this.czmWater.show = e.show && e.filled && r);
|
|
32911
32909
|
}
|
|
@@ -33183,7 +33181,7 @@ const Bl = class Bl extends Zi {
|
|
|
33183
33181
|
};
|
|
33184
33182
|
g(Bl, "type", Bl.register("ESCesiumViewer", Vp.type, Bl));
|
|
33185
33183
|
let Qv = Bl;
|
|
33186
|
-
const Vl = class Vl extends
|
|
33184
|
+
const Vl = class Vl extends Vi {
|
|
33187
33185
|
constructor(e, s) {
|
|
33188
33186
|
super(e, s);
|
|
33189
33187
|
//轮廓线
|
|
@@ -33281,7 +33279,7 @@ const Nl = class Nl extends Zi {
|
|
|
33281
33279
|
pointJson: [],
|
|
33282
33280
|
otherJson: []
|
|
33283
33281
|
});
|
|
33284
|
-
if (this._czmImagery = this.dv(new
|
|
33282
|
+
if (this._czmImagery = this.dv(new gn(s, e.id)), !s.viewer) {
|
|
33285
33283
|
console.warn("viewer is undefined!");
|
|
33286
33284
|
return;
|
|
33287
33285
|
}
|
|
@@ -33870,7 +33868,7 @@ const Wl = class Wl extends Gh {
|
|
|
33870
33868
|
};
|
|
33871
33869
|
g(Wl, "type", Wl.register("ESCesiumViewer", XP.type, Wl));
|
|
33872
33870
|
let ey = Wl;
|
|
33873
|
-
const Hl = class Hl extends
|
|
33871
|
+
const Hl = class Hl extends Vi {
|
|
33874
33872
|
constructor(e, s) {
|
|
33875
33873
|
super(e, s);
|
|
33876
33874
|
// 自定义图元
|
|
@@ -34063,7 +34061,7 @@ const Hl = class Hl extends Ni {
|
|
|
34063
34061
|
};
|
|
34064
34062
|
g(Hl, "type", Hl.register("ESCesiumViewer", YP.type, Hl));
|
|
34065
34063
|
let ty = Hl;
|
|
34066
|
-
const $l = class $l extends
|
|
34064
|
+
const $l = class $l extends Vi {
|
|
34067
34065
|
constructor(e, s) {
|
|
34068
34066
|
super(e, s);
|
|
34069
34067
|
g(this, "_czmPolygonPrimitive");
|
|
@@ -34124,7 +34122,7 @@ let iy = $l;
|
|
|
34124
34122
|
class c2 extends k {
|
|
34125
34123
|
constructor(i, e) {
|
|
34126
34124
|
super();
|
|
34127
|
-
const s = this.ad(new
|
|
34125
|
+
const s = this.ad(new ln(e, i.id));
|
|
34128
34126
|
this.dispose(P([s, "allowPicking"], [i, "allowPicking"]));
|
|
34129
34127
|
{
|
|
34130
34128
|
s.perPositionHeight = !0;
|
|
@@ -34271,7 +34269,7 @@ function p2(t, i, e) {
|
|
|
34271
34269
|
case "Point":
|
|
34272
34270
|
return Et(i).geometry;
|
|
34273
34271
|
case "LineString":
|
|
34274
|
-
return
|
|
34272
|
+
return Ii(i).geometry;
|
|
34275
34273
|
case "Polygon":
|
|
34276
34274
|
return bt(i).geometry;
|
|
34277
34275
|
case "MultiPoint":
|
|
@@ -34325,7 +34323,7 @@ function g2(t, i, e) {
|
|
|
34325
34323
|
return bt(s, i);
|
|
34326
34324
|
}), e);
|
|
34327
34325
|
}
|
|
34328
|
-
function
|
|
34326
|
+
function Ii(t, i, e) {
|
|
34329
34327
|
if (e === void 0 && (e = {}), t.length < 2)
|
|
34330
34328
|
throw new Error("coordinates must be an array of two or more positions");
|
|
34331
34329
|
var s = {
|
|
@@ -34336,7 +34334,7 @@ function Ri(t, i, e) {
|
|
|
34336
34334
|
}
|
|
34337
34335
|
function m2(t, i, e) {
|
|
34338
34336
|
return e === void 0 && (e = {}), di(t.map(function(s) {
|
|
34339
|
-
return
|
|
34337
|
+
return Ii(s, i);
|
|
34340
34338
|
}), e);
|
|
34341
34339
|
}
|
|
34342
34340
|
function di(t, i) {
|
|
@@ -34468,7 +34466,7 @@ const S2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
34468
34466
|
isObject: eg,
|
|
34469
34467
|
lengthToDegrees: w2,
|
|
34470
34468
|
lengthToRadians: jf,
|
|
34471
|
-
lineString:
|
|
34469
|
+
lineString: Ii,
|
|
34472
34470
|
lineStrings: m2,
|
|
34473
34471
|
multiLineString: Qf,
|
|
34474
34472
|
multiPoint: a_,
|
|
@@ -34531,7 +34529,7 @@ function ms(t, i, e) {
|
|
|
34531
34529
|
var s = Pd(t), o = Pd(i), n = Pa(o[1] - s[1]), r = Pa(o[0] - s[0]), a = Pa(s[1]), l = Pa(o[1]), c = Math.pow(Math.sin(n / 2), 2) + Math.pow(Math.sin(r / 2), 2) * Math.cos(a) * Math.cos(l);
|
|
34532
34530
|
return Jf(2 * Math.atan2(Math.sqrt(c), Math.sqrt(1 - c)), e.units);
|
|
34533
34531
|
}
|
|
34534
|
-
function
|
|
34532
|
+
function Rn(t, i, e) {
|
|
34535
34533
|
if (t !== null)
|
|
34536
34534
|
for (var s, o, n, r, a, l, c, d = 0, u = 0, p, f = t.type, m = f === "FeatureCollection", v = f === "Feature", y = m ? t.features.length : 1, _ = 0; _ < y; _++) {
|
|
34537
34535
|
c = m ? t.features[_].geometry : v ? t.geometry : t, p = c ? c.type === "GeometryCollection" : !1, a = p ? c.geometries.length : 1;
|
|
@@ -34608,7 +34606,7 @@ function In(t, i, e) {
|
|
|
34608
34606
|
break;
|
|
34609
34607
|
case "GeometryCollection":
|
|
34610
34608
|
for (s = 0; s < r.geometries.length; s++)
|
|
34611
|
-
if (
|
|
34609
|
+
if (Rn(r.geometries[s], i, e) === !1)
|
|
34612
34610
|
return !1;
|
|
34613
34611
|
break;
|
|
34614
34612
|
default:
|
|
@@ -34620,7 +34618,7 @@ function In(t, i, e) {
|
|
|
34620
34618
|
}
|
|
34621
34619
|
function A2(t, i, e, s) {
|
|
34622
34620
|
var o = e;
|
|
34623
|
-
return
|
|
34621
|
+
return Rn(
|
|
34624
34622
|
t,
|
|
34625
34623
|
function(n, r, a, l, c) {
|
|
34626
34624
|
r === 0 && e === void 0 ? o = n : o = i(
|
|
@@ -34668,7 +34666,7 @@ function I2(t, i, e) {
|
|
|
34668
34666
|
}
|
|
34669
34667
|
function R2(t) {
|
|
34670
34668
|
var i = [];
|
|
34671
|
-
return
|
|
34669
|
+
return Rn(t, function(e) {
|
|
34672
34670
|
i.push(e);
|
|
34673
34671
|
}), i;
|
|
34674
34672
|
}
|
|
@@ -34796,14 +34794,14 @@ function c_(t, i) {
|
|
|
34796
34794
|
var r = e.geometry.type;
|
|
34797
34795
|
if (!(r === "Point" || r === "MultiPoint")) {
|
|
34798
34796
|
var a, l = 0, c = 0, d = 0;
|
|
34799
|
-
if (
|
|
34797
|
+
if (Rn(
|
|
34800
34798
|
e,
|
|
34801
34799
|
function(u, p, f, m, v) {
|
|
34802
34800
|
if (a === void 0 || s > l || m > c || v > d) {
|
|
34803
34801
|
a = u, l = s, c = m, d = v, n = 0;
|
|
34804
34802
|
return;
|
|
34805
34803
|
}
|
|
34806
|
-
var y =
|
|
34804
|
+
var y = Ii(
|
|
34807
34805
|
[a, u],
|
|
34808
34806
|
e.properties
|
|
34809
34807
|
);
|
|
@@ -34852,7 +34850,7 @@ function u_(t, i) {
|
|
|
34852
34850
|
case "Polygon":
|
|
34853
34851
|
for (var a = 0; a < r.length; a++)
|
|
34854
34852
|
if (i(
|
|
34855
|
-
|
|
34853
|
+
Ii(r[a], e.properties),
|
|
34856
34854
|
s,
|
|
34857
34855
|
o,
|
|
34858
34856
|
a
|
|
@@ -34907,13 +34905,13 @@ function z2(t, i) {
|
|
|
34907
34905
|
case "MultiPoint":
|
|
34908
34906
|
return null;
|
|
34909
34907
|
case "LineString":
|
|
34910
|
-
return n < 0 && (n = l.length + n - 1),
|
|
34908
|
+
return n < 0 && (n = l.length + n - 1), Ii(
|
|
34911
34909
|
[l[n], l[n + 1]],
|
|
34912
34910
|
r,
|
|
34913
34911
|
i
|
|
34914
34912
|
);
|
|
34915
34913
|
case "Polygon":
|
|
34916
|
-
return o < 0 && (o = l.length + o), n < 0 && (n = l[o].length + n - 1),
|
|
34914
|
+
return o < 0 && (o = l.length + o), n < 0 && (n = l[o].length + n - 1), Ii(
|
|
34917
34915
|
[
|
|
34918
34916
|
l[o][n],
|
|
34919
34917
|
l[o][n + 1]
|
|
@@ -34922,7 +34920,7 @@ function z2(t, i) {
|
|
|
34922
34920
|
i
|
|
34923
34921
|
);
|
|
34924
34922
|
case "MultiLineString":
|
|
34925
|
-
return s < 0 && (s = l.length + s), n < 0 && (n = l[s].length + n - 1),
|
|
34923
|
+
return s < 0 && (s = l.length + s), n < 0 && (n = l[s].length + n - 1), Ii(
|
|
34926
34924
|
[
|
|
34927
34925
|
l[s][n],
|
|
34928
34926
|
l[s][n + 1]
|
|
@@ -34931,7 +34929,7 @@ function z2(t, i) {
|
|
|
34931
34929
|
i
|
|
34932
34930
|
);
|
|
34933
34931
|
case "MultiPolygon":
|
|
34934
|
-
return s < 0 && (s = l.length + s), o < 0 && (o = l[s].length + o), n < 0 && (n = l[s][o].length - n - 1),
|
|
34932
|
+
return s < 0 && (s = l.length + s), o < 0 && (o = l[s].length + o), n < 0 && (n = l[s][o].length - n - 1), Ii(
|
|
34935
34933
|
[
|
|
34936
34934
|
l[s][o][n],
|
|
34937
34935
|
l[s][o][n + 1]
|
|
@@ -34989,7 +34987,7 @@ function L2(t, i) {
|
|
|
34989
34987
|
const O2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
34990
34988
|
__proto__: null,
|
|
34991
34989
|
coordAll: R2,
|
|
34992
|
-
coordEach:
|
|
34990
|
+
coordEach: Rn,
|
|
34993
34991
|
coordReduce: A2,
|
|
34994
34992
|
featureEach: Ur,
|
|
34995
34993
|
featureReduce: I2,
|
|
@@ -35013,7 +35011,7 @@ function B2(t, i) {
|
|
|
35013
35011
|
}, 0);
|
|
35014
35012
|
}
|
|
35015
35013
|
function V2(t) {
|
|
35016
|
-
var i =
|
|
35014
|
+
var i = Ii(t), e = B2(i, { units: "meters" });
|
|
35017
35015
|
return e;
|
|
35018
35016
|
}
|
|
35019
35017
|
function* N2(t) {
|
|
@@ -35039,7 +35037,7 @@ function G2(t, i, e) {
|
|
|
35039
35037
|
};
|
|
35040
35038
|
}).filter((s) => !!s);
|
|
35041
35039
|
}
|
|
35042
|
-
const xa = h.ArcType, W2 = h.arrayRemoveDuplicates, H2 = h.BoundingSphere, mt = h.Cartesian3, hi = h.Color,
|
|
35040
|
+
const xa = h.ArcType, W2 = h.arrayRemoveDuplicates, H2 = h.BoundingSphere, mt = h.Cartesian3, hi = h.Color, Hn = h.ComponentDatatype, $2 = h.Frozen, mi = h.defined, Cr = h.DeveloperError, cs = h.Ellipsoid, q2 = h.Geometry, $n = h.GeometryAttribute, X2 = h.GeometryAttributes, Y2 = h.GeometryType, Z2 = h.IndexDatatype, p_ = h.Math, ma = h.PolylinePipeline, Q2 = h.PrimitiveType, Is = h.VertexFormat;
|
|
35043
35041
|
var f_ = [];
|
|
35044
35042
|
function K2(t, i, e, s, o) {
|
|
35045
35043
|
var n = f_;
|
|
@@ -35173,28 +35171,28 @@ Gr.createGeometry = function(t) {
|
|
|
35173
35171
|
}
|
|
35174
35172
|
}
|
|
35175
35173
|
var We = new X2();
|
|
35176
|
-
We.position = new
|
|
35177
|
-
componentDatatype:
|
|
35174
|
+
We.position = new $n({
|
|
35175
|
+
componentDatatype: Hn.DOUBLE,
|
|
35178
35176
|
componentsPerAttribute: 3,
|
|
35179
35177
|
values: L
|
|
35180
|
-
}), We.prevPosition = new
|
|
35181
|
-
componentDatatype:
|
|
35178
|
+
}), We.prevPosition = new $n({
|
|
35179
|
+
componentDatatype: Hn.DOUBLE,
|
|
35182
35180
|
componentsPerAttribute: 3,
|
|
35183
35181
|
values: V
|
|
35184
|
-
}), We.nextPosition = new
|
|
35185
|
-
componentDatatype:
|
|
35182
|
+
}), We.nextPosition = new $n({
|
|
35183
|
+
componentDatatype: Hn.DOUBLE,
|
|
35186
35184
|
componentsPerAttribute: 3,
|
|
35187
35185
|
values: w
|
|
35188
|
-
}), We.expandAndWidth = new
|
|
35189
|
-
componentDatatype:
|
|
35186
|
+
}), We.expandAndWidth = new $n({
|
|
35187
|
+
componentDatatype: Hn.FLOAT,
|
|
35190
35188
|
componentsPerAttribute: 2,
|
|
35191
35189
|
values: S
|
|
35192
|
-
}), e.st && (We.st = new
|
|
35193
|
-
componentDatatype:
|
|
35190
|
+
}), e.st && (We.st = new $n({
|
|
35191
|
+
componentDatatype: Hn.FLOAT,
|
|
35194
35192
|
componentsPerAttribute: 2,
|
|
35195
35193
|
values: I
|
|
35196
|
-
})), mi(O) && (We.color = new
|
|
35197
|
-
componentDatatype:
|
|
35194
|
+
})), mi(O) && (We.color = new $n({
|
|
35195
|
+
componentDatatype: Hn.UNSIGNED_BYTE,
|
|
35198
35196
|
componentsPerAttribute: 4,
|
|
35199
35197
|
values: O,
|
|
35200
35198
|
normalize: !0
|
|
@@ -35601,7 +35599,7 @@ let Us = so;
|
|
|
35601
35599
|
});
|
|
35602
35600
|
})(Us || (Us = {}));
|
|
35603
35601
|
ae(Us.prototype, Us.createDefaultProps);
|
|
35604
|
-
class
|
|
35602
|
+
class En extends k {
|
|
35605
35603
|
constructor(e, s) {
|
|
35606
35604
|
super();
|
|
35607
35605
|
g(this, "_flyToEvent", this.disposeVar(new q()));
|
|
@@ -35671,14 +35669,14 @@ class Tn extends k {
|
|
|
35671
35669
|
return this.player.ratioChanged;
|
|
35672
35670
|
}
|
|
35673
35671
|
}
|
|
35674
|
-
g(
|
|
35672
|
+
g(En, "defaults", {
|
|
35675
35673
|
loop: !0,
|
|
35676
35674
|
currentTime: 0,
|
|
35677
35675
|
duration: 3e3,
|
|
35678
35676
|
speed: 1,
|
|
35679
35677
|
playing: !0,
|
|
35680
35678
|
transmissionTime: 3e3
|
|
35681
|
-
}), g(
|
|
35679
|
+
}), g(En, "defaultImageUri", "${earthsdk3-assets-script-dir}/assets/img/signal.png");
|
|
35682
35680
|
((t) => {
|
|
35683
35681
|
t.createDefaultProps = () => ({
|
|
35684
35682
|
show: !0,
|
|
@@ -35703,13 +35701,13 @@ g(Tn, "defaults", {
|
|
|
35703
35701
|
speed: void 0,
|
|
35704
35702
|
playing: void 0
|
|
35705
35703
|
});
|
|
35706
|
-
})(
|
|
35707
|
-
ae(
|
|
35704
|
+
})(En || (En = {}));
|
|
35705
|
+
ae(En.prototype, En.createDefaultProps);
|
|
35708
35706
|
const ql = class ql extends ei {
|
|
35709
35707
|
constructor(e, s) {
|
|
35710
35708
|
super(e, s);
|
|
35711
35709
|
g(this, "_czmSignalTransmission");
|
|
35712
|
-
if (this._czmSignalTransmission = this.disposeVar(new
|
|
35710
|
+
if (this._czmSignalTransmission = this.disposeVar(new En(s, e.id)), !s.viewer) {
|
|
35713
35711
|
console.warn("viewer is undefined!");
|
|
35714
35712
|
return;
|
|
35715
35713
|
}
|
|
@@ -35738,7 +35736,7 @@ g(ql, "type", ql.register("ESCesiumViewer", Wp.type, ql));
|
|
|
35738
35736
|
let ay = ql;
|
|
35739
35737
|
function yo(t) {
|
|
35740
35738
|
var i = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
35741
|
-
return
|
|
35739
|
+
return Rn(t, function(e) {
|
|
35742
35740
|
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]);
|
|
35743
35741
|
}), i;
|
|
35744
35742
|
}
|
|
@@ -35747,7 +35745,7 @@ var v_ = { exports: {} };
|
|
|
35747
35745
|
(function(t, i) {
|
|
35748
35746
|
(function(e, s) {
|
|
35749
35747
|
t.exports = s();
|
|
35750
|
-
})(
|
|
35748
|
+
})(sn, function() {
|
|
35751
35749
|
function e(C, b, T, E, D) {
|
|
35752
35750
|
(function B(N, G, W, L, V) {
|
|
35753
35751
|
for (; L > W; ) {
|
|
@@ -36125,7 +36123,7 @@ function dD(t, i) {
|
|
|
36125
36123
|
function uD(t, i) {
|
|
36126
36124
|
i === void 0 && (i = {});
|
|
36127
36125
|
var e = 0, s = 0, o = 0;
|
|
36128
|
-
return
|
|
36126
|
+
return Rn(t, function(n) {
|
|
36129
36127
|
e += n[0], s += n[1], o++;
|
|
36130
36128
|
}, !0), Et([e / o, s / o], i.properties);
|
|
36131
36129
|
}
|
|
@@ -36158,7 +36156,7 @@ function pD(t, i) {
|
|
|
36158
36156
|
function fD(t, i) {
|
|
36159
36157
|
var e = [];
|
|
36160
36158
|
return t.reduce(function(s, o) {
|
|
36161
|
-
var n =
|
|
36159
|
+
var n = Ii([s, o], i);
|
|
36162
36160
|
return n.bbox = gD(s, o), e.push(n), o;
|
|
36163
36161
|
}), e;
|
|
36164
36162
|
}
|
|
@@ -36921,7 +36919,7 @@ function Zp(t) {
|
|
|
36921
36919
|
}
|
|
36922
36920
|
Zp.default = Zp;
|
|
36923
36921
|
ng.default = Zp;
|
|
36924
|
-
var ts = aD, T_ = __, E_ = wt,
|
|
36922
|
+
var ts = aD, T_ = __, E_ = wt, qn = ng.default, MD = E_.featureEach;
|
|
36925
36923
|
E_.coordEach;
|
|
36926
36924
|
T_.polygon;
|
|
36927
36925
|
var py = T_.featureCollection;
|
|
@@ -36929,19 +36927,19 @@ function A_(t) {
|
|
|
36929
36927
|
var i = new ts(t);
|
|
36930
36928
|
return i.insert = function(e) {
|
|
36931
36929
|
if (e.type !== "Feature") throw new Error("invalid feature");
|
|
36932
|
-
return e.bbox = e.bbox ? e.bbox :
|
|
36930
|
+
return e.bbox = e.bbox ? e.bbox : qn(e), ts.prototype.insert.call(this, e);
|
|
36933
36931
|
}, i.load = function(e) {
|
|
36934
36932
|
var s = [];
|
|
36935
36933
|
return Array.isArray(e) ? e.forEach(function(o) {
|
|
36936
36934
|
if (o.type !== "Feature") throw new Error("invalid features");
|
|
36937
|
-
o.bbox = o.bbox ? o.bbox :
|
|
36935
|
+
o.bbox = o.bbox ? o.bbox : qn(o), s.push(o);
|
|
36938
36936
|
}) : MD(e, function(o) {
|
|
36939
36937
|
if (o.type !== "Feature") throw new Error("invalid features");
|
|
36940
|
-
o.bbox = o.bbox ? o.bbox :
|
|
36938
|
+
o.bbox = o.bbox ? o.bbox : qn(o), s.push(o);
|
|
36941
36939
|
}), ts.prototype.load.call(this, s);
|
|
36942
36940
|
}, i.remove = function(e, s) {
|
|
36943
36941
|
if (e.type !== "Feature") throw new Error("invalid feature");
|
|
36944
|
-
return e.bbox = e.bbox ? e.bbox :
|
|
36942
|
+
return e.bbox = e.bbox ? e.bbox : qn(e), ts.prototype.remove.call(this, e, s);
|
|
36945
36943
|
}, i.clear = function() {
|
|
36946
36944
|
return ts.prototype.clear.call(this);
|
|
36947
36945
|
}, i.search = function(e) {
|
|
@@ -36961,8 +36959,8 @@ function A_(t) {
|
|
|
36961
36959
|
if (e.bbox) s = e.bbox;
|
|
36962
36960
|
else if (Array.isArray(e) && e.length === 4) s = e;
|
|
36963
36961
|
else if (Array.isArray(e) && e.length === 6) s = [e[0], e[1], e[3], e[4]];
|
|
36964
|
-
else if (e.type === "Feature") s =
|
|
36965
|
-
else if (e.type === "FeatureCollection") s =
|
|
36962
|
+
else if (e.type === "Feature") s = qn(e);
|
|
36963
|
+
else if (e.type === "FeatureCollection") s = qn(e);
|
|
36966
36964
|
else throw new Error("invalid geojson");
|
|
36967
36965
|
return {
|
|
36968
36966
|
minX: s[0],
|
|
@@ -37198,7 +37196,7 @@ function WD(t, i) {
|
|
|
37198
37196
|
}), di(n);
|
|
37199
37197
|
}
|
|
37200
37198
|
function D_(t, i) {
|
|
37201
|
-
return t.length > 1 ? Qf(t, i) :
|
|
37199
|
+
return t.length > 1 ? Qf(t, i) : Ii(t[0], i);
|
|
37202
37200
|
}
|
|
37203
37201
|
var gy = Object.prototype.toString, k_ = function(i) {
|
|
37204
37202
|
var e = gy.call(i), s = e === "[object Arguments]";
|
|
@@ -37446,17 +37444,17 @@ var $u = !!G_ && _y && _y(
|
|
|
37446
37444
|
return Xu;
|
|
37447
37445
|
}
|
|
37448
37446
|
}
|
|
37449
|
-
}() : Xu,
|
|
37447
|
+
}() : Xu, Xn = l3()(), xt = H_, X3 = N_, Y3 = V_, X_ = hg, uc = lg, jn = {}, Z3 = typeof Uint8Array > "u" || !xt ? Me : xt(Uint8Array), nn = {
|
|
37450
37448
|
__proto__: null,
|
|
37451
37449
|
"%AggregateError%": typeof AggregateError > "u" ? Me : AggregateError,
|
|
37452
37450
|
"%Array%": Array,
|
|
37453
37451
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? Me : ArrayBuffer,
|
|
37454
|
-
"%ArrayIteratorPrototype%":
|
|
37452
|
+
"%ArrayIteratorPrototype%": Xn && xt ? xt([][Symbol.iterator]()) : Me,
|
|
37455
37453
|
"%AsyncFromSyncIteratorPrototype%": Me,
|
|
37456
|
-
"%AsyncFunction%":
|
|
37457
|
-
"%AsyncGenerator%":
|
|
37458
|
-
"%AsyncGeneratorFunction%":
|
|
37459
|
-
"%AsyncIteratorPrototype%":
|
|
37454
|
+
"%AsyncFunction%": jn,
|
|
37455
|
+
"%AsyncGenerator%": jn,
|
|
37456
|
+
"%AsyncGeneratorFunction%": jn,
|
|
37457
|
+
"%AsyncIteratorPrototype%": jn,
|
|
37460
37458
|
"%Atomics%": typeof Atomics > "u" ? Me : Atomics,
|
|
37461
37459
|
"%BigInt%": typeof BigInt > "u" ? Me : BigInt,
|
|
37462
37460
|
"%BigInt64Array%": typeof BigInt64Array > "u" ? Me : BigInt64Array,
|
|
@@ -37477,16 +37475,16 @@ var $u = !!G_ && _y && _y(
|
|
|
37477
37475
|
"%Float64Array%": typeof Float64Array > "u" ? Me : Float64Array,
|
|
37478
37476
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? Me : FinalizationRegistry,
|
|
37479
37477
|
"%Function%": q_,
|
|
37480
|
-
"%GeneratorFunction%":
|
|
37478
|
+
"%GeneratorFunction%": jn,
|
|
37481
37479
|
"%Int8Array%": typeof Int8Array > "u" ? Me : Int8Array,
|
|
37482
37480
|
"%Int16Array%": typeof Int16Array > "u" ? Me : Int16Array,
|
|
37483
37481
|
"%Int32Array%": typeof Int32Array > "u" ? Me : Int32Array,
|
|
37484
37482
|
"%isFinite%": isFinite,
|
|
37485
37483
|
"%isNaN%": isNaN,
|
|
37486
|
-
"%IteratorPrototype%":
|
|
37484
|
+
"%IteratorPrototype%": Xn && xt ? xt(xt([][Symbol.iterator]())) : Me,
|
|
37487
37485
|
"%JSON%": typeof JSON == "object" ? JSON : Me,
|
|
37488
37486
|
"%Map%": typeof Map > "u" ? Me : Map,
|
|
37489
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !
|
|
37487
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !Xn || !xt ? Me : xt((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
37490
37488
|
"%Math%": Math,
|
|
37491
37489
|
"%Number%": Number,
|
|
37492
37490
|
"%Object%": D3,
|
|
@@ -37500,11 +37498,11 @@ var $u = !!G_ && _y && _y(
|
|
|
37500
37498
|
"%Reflect%": typeof Reflect > "u" ? Me : Reflect,
|
|
37501
37499
|
"%RegExp%": RegExp,
|
|
37502
37500
|
"%Set%": typeof Set > "u" ? Me : Set,
|
|
37503
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !
|
|
37501
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !Xn || !xt ? Me : xt((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
37504
37502
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? Me : SharedArrayBuffer,
|
|
37505
37503
|
"%String%": String,
|
|
37506
|
-
"%StringIteratorPrototype%":
|
|
37507
|
-
"%Symbol%":
|
|
37504
|
+
"%StringIteratorPrototype%": Xn && xt ? xt(""[Symbol.iterator]()) : Me,
|
|
37505
|
+
"%Symbol%": Xn ? Symbol : Me,
|
|
37508
37506
|
"%SyntaxError%": Wr,
|
|
37509
37507
|
"%ThrowTypeError%": q3,
|
|
37510
37508
|
"%TypedArray%": Z3,
|
|
@@ -37535,7 +37533,7 @@ if (xt)
|
|
|
37535
37533
|
null.error;
|
|
37536
37534
|
} catch (t) {
|
|
37537
37535
|
var Q3 = xt(xt(t));
|
|
37538
|
-
|
|
37536
|
+
nn["%Error.prototype%"] = Q3;
|
|
37539
37537
|
}
|
|
37540
37538
|
var K3 = function t(i) {
|
|
37541
37539
|
var e;
|
|
@@ -37552,7 +37550,7 @@ var K3 = function t(i) {
|
|
|
37552
37550
|
var o = t("%AsyncGenerator%");
|
|
37553
37551
|
o && xt && (e = xt(o.prototype));
|
|
37554
37552
|
}
|
|
37555
|
-
return
|
|
37553
|
+
return nn[i] = e, e;
|
|
37556
37554
|
}, Ty = {
|
|
37557
37555
|
__proto__: null,
|
|
37558
37556
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
@@ -37618,9 +37616,9 @@ var K3 = function t(i) {
|
|
|
37618
37616
|
}), o;
|
|
37619
37617
|
}, ok = function(i, e) {
|
|
37620
37618
|
var s = i, o;
|
|
37621
|
-
if (bd(Ty, s) && (o = Ty[s], s = "%" + o[0] + "%"), bd(
|
|
37622
|
-
var n =
|
|
37623
|
-
if (n ===
|
|
37619
|
+
if (bd(Ty, s) && (o = Ty[s], s = "%" + o[0] + "%"), bd(nn, s)) {
|
|
37620
|
+
var n = nn[s];
|
|
37621
|
+
if (n === jn && (n = K3(s)), typeof n > "u" && !e)
|
|
37624
37622
|
throw new _r("intrinsic " + i + " exists, but is not available. Please file an issue!");
|
|
37625
37623
|
return {
|
|
37626
37624
|
alias: o,
|
|
@@ -37642,8 +37640,8 @@ var K3 = function t(i) {
|
|
|
37642
37640
|
var p = s[d], f = Sd(p, 0, 1), m = Sd(p, -1);
|
|
37643
37641
|
if ((f === '"' || f === "'" || f === "`" || m === '"' || m === "'" || m === "`") && f !== m)
|
|
37644
37642
|
throw new Wr("property names with quotes must have matching quotes");
|
|
37645
|
-
if ((p === "constructor" || !u) && (l = !0), o += "." + p, r = "%" + o + "%", bd(
|
|
37646
|
-
a =
|
|
37643
|
+
if ((p === "constructor" || !u) && (l = !0), o += "." + p, r = "%" + o + "%", bd(nn, r))
|
|
37644
|
+
a = nn[r];
|
|
37647
37645
|
else if (a != null) {
|
|
37648
37646
|
if (!(p in a)) {
|
|
37649
37647
|
if (!e)
|
|
@@ -37655,7 +37653,7 @@ var K3 = function t(i) {
|
|
|
37655
37653
|
u = !!v, u && "get" in v && !("originalValue" in v.get) ? a = v.get : a = a[p];
|
|
37656
37654
|
} else
|
|
37657
37655
|
u = bd(a, p), a = a[p];
|
|
37658
|
-
u && !l && (
|
|
37656
|
+
u && !l && (nn[r] = a);
|
|
37659
37657
|
}
|
|
37660
37658
|
}
|
|
37661
37659
|
return a;
|
|
@@ -37676,19 +37674,19 @@ var K3 = function t(i) {
|
|
|
37676
37674
|
return iu(arguments);
|
|
37677
37675
|
}();
|
|
37678
37676
|
iu.isLegacyArguments = K_;
|
|
37679
|
-
var hk = lk ? iu : K_, Ay = tu, ck = B_,
|
|
37677
|
+
var hk = lk ? iu : K_, Ay = tu, ck = B_, Yn = ia, My = sa, ug = function(i, e, s) {
|
|
37680
37678
|
if (!i || typeof i != "object" && typeof i != "function")
|
|
37681
|
-
throw new
|
|
37679
|
+
throw new Yn("`obj` must be an object or a function`");
|
|
37682
37680
|
if (typeof e != "string" && typeof e != "symbol")
|
|
37683
|
-
throw new
|
|
37681
|
+
throw new Yn("`property` must be a string or a symbol`");
|
|
37684
37682
|
if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
|
|
37685
|
-
throw new
|
|
37683
|
+
throw new Yn("`nonEnumerable`, if provided, must be a boolean or null");
|
|
37686
37684
|
if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
|
|
37687
|
-
throw new
|
|
37685
|
+
throw new Yn("`nonWritable`, if provided, must be a boolean or null");
|
|
37688
37686
|
if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
|
|
37689
|
-
throw new
|
|
37687
|
+
throw new Yn("`nonConfigurable`, if provided, must be a boolean or null");
|
|
37690
37688
|
if (arguments.length > 6 && typeof arguments[6] != "boolean")
|
|
37691
|
-
throw new
|
|
37689
|
+
throw new Yn("`loose`, if provided, must be a boolean");
|
|
37692
37690
|
var o = arguments.length > 3 ? arguments[3] : null, n = arguments.length > 4 ? arguments[4] : null, r = arguments.length > 5 ? arguments[5] : null, a = arguments.length > 6 ? arguments[6] : !1, l = !!My && My(i, e);
|
|
37693
37691
|
if (Ay)
|
|
37694
37692
|
Ay(i, e, {
|
|
@@ -38571,15 +38569,15 @@ function BF(t, i) {
|
|
|
38571
38569
|
function gc(t) {
|
|
38572
38570
|
return new Float64Array(t);
|
|
38573
38571
|
}
|
|
38574
|
-
const VF = (3 + 16 * Rs) * Rs, NF = (2 + 12 * Rs) * Rs, UF = (9 + 64 * Rs) * Rs * Rs,
|
|
38572
|
+
const VF = (3 + 16 * Rs) * Rs, NF = (2 + 12 * Rs) * Rs, UF = (9 + 64 * Rs) * Rs * Rs, Zn = gc(4), jy = gc(8), e0 = gc(12), t0 = gc(16), $t = gc(4);
|
|
38575
38573
|
function GF(t, i, e, s, o, n, r) {
|
|
38576
38574
|
let a, l, c, d, u, p, f, m, v, y, _, C, b, T, E, D, B, N;
|
|
38577
38575
|
const G = t - o, W = e - o, L = i - n, V = s - n;
|
|
38578
|
-
T = G * V, p = Ft * G, f = p - (p - G), m = G - f, p = Ft * V, v = p - (p - V), y = V - v, E = m * y - (T - f * v - m * v - f * y), D = L * W, p = Ft * L, f = p - (p - L), m = L - f, p = Ft * W, v = p - (p - W), y = W - v, B = m * y - (D - f * v - m * v - f * y), _ = E - B, u = E - _,
|
|
38579
|
-
let w = BF(4,
|
|
38576
|
+
T = G * V, p = Ft * G, f = p - (p - G), m = G - f, p = Ft * V, v = p - (p - V), y = V - v, E = m * y - (T - f * v - m * v - f * y), D = L * W, p = Ft * L, f = p - (p - L), m = L - f, p = Ft * W, v = p - (p - W), y = W - v, B = m * y - (D - f * v - m * v - f * y), _ = E - B, u = E - _, Zn[0] = E - (_ + u) + (u - B), C = T + _, u = C - T, b = T - (C - u) + (_ - u), _ = b - D, u = b - _, Zn[1] = b - (_ + u) + (u - D), N = C + _, u = N - C, Zn[2] = C - (N - u) + (_ - u), Zn[3] = N;
|
|
38577
|
+
let w = BF(4, Zn), S = NF * r;
|
|
38580
38578
|
if (w >= S || -w >= S || (u = t - G, a = t - (G + u) + (u - o), u = e - W, c = e - (W + u) + (u - o), u = i - L, l = i - (L + u) + (u - n), u = s - V, d = s - (V + u) + (u - n), a === 0 && l === 0 && c === 0 && d === 0) || (S = UF * r + OF * Math.abs(w), w += G * d + V * a - (L * c + W * l), w >= S || -w >= S)) return w;
|
|
38581
38579
|
T = a * V, p = Ft * a, f = p - (p - a), m = a - f, p = Ft * V, v = p - (p - V), y = V - v, E = m * y - (T - f * v - m * v - f * y), D = l * W, p = Ft * l, f = p - (p - l), m = l - f, p = Ft * W, v = p - (p - W), y = W - v, B = m * y - (D - f * v - m * v - f * y), _ = E - B, u = E - _, $t[0] = E - (_ + u) + (u - B), C = T + _, u = C - T, b = T - (C - u) + (_ - u), _ = b - D, u = b - _, $t[1] = b - (_ + u) + (u - D), N = C + _, u = N - C, $t[2] = C - (N - u) + (_ - u), $t[3] = N;
|
|
38582
|
-
const I = Qu(4,
|
|
38580
|
+
const I = Qu(4, Zn, 4, $t, jy);
|
|
38583
38581
|
T = G * d, p = Ft * G, f = p - (p - G), m = G - f, p = Ft * d, v = p - (p - d), y = d - v, E = m * y - (T - f * v - m * v - f * y), D = L * c, p = Ft * L, f = p - (p - L), m = L - f, p = Ft * c, v = p - (p - c), y = c - v, B = m * y - (D - f * v - m * v - f * y), _ = E - B, u = E - _, $t[0] = E - (_ + u) + (u - B), C = T + _, u = C - T, b = T - (C - u) + (_ - u), _ = b - D, u = b - _, $t[1] = b - (_ + u) + (u - D), N = C + _, u = N - C, $t[2] = C - (N - u) + (_ - u), $t[3] = N;
|
|
38584
38582
|
const O = Qu(I, jy, 4, $t, e0);
|
|
38585
38583
|
T = a * d, p = Ft * a, f = p - (p - a), m = a - f, p = Ft * d, v = p - (p - d), y = d - v, E = m * y - (T - f * v - m * v - f * y), D = l * c, p = Ft * l, f = p - (p - l), m = l - f, p = Ft * c, v = p - (p - c), y = c - v, B = m * y - (D - f * v - m * v - f * y), _ = E - B, u = E - _, $t[0] = E - (_ + u) + (u - B), C = T + _, u = C - T, b = T - (C - u) + (_ - u), _ = b - D, u = b - _, $t[1] = b - (_ + u) + (u - D), N = C + _, u = N - C, $t[2] = C - (N - u) + (_ - u), $t[3] = N;
|
|
@@ -38688,10 +38686,10 @@ const Kh = new $F(), jc = (t, i) => t.x * i.y - t.y * i.x, f1 = (t, i) => t.x *
|
|
|
38688
38686
|
y: f
|
|
38689
38687
|
};
|
|
38690
38688
|
};
|
|
38691
|
-
class
|
|
38689
|
+
class Ai {
|
|
38692
38690
|
// for ordering sweep events in the sweep event queue
|
|
38693
38691
|
static compare(i, e) {
|
|
38694
|
-
const s =
|
|
38692
|
+
const s = Ai.comparePoints(i.point, e.point);
|
|
38695
38693
|
return s !== 0 ? s : (i.point !== e.point && i.link(e), i.isLeft !== e.isLeft ? i.isLeft ? 1 : -1 : fo.compare(i.segment, e.segment));
|
|
38696
38694
|
}
|
|
38697
38695
|
// for ordering points in sweep line order
|
|
@@ -38826,13 +38824,13 @@ class fo {
|
|
|
38826
38824
|
}
|
|
38827
38825
|
static fromRing(i, e, s) {
|
|
38828
38826
|
let o, n, r;
|
|
38829
|
-
const a =
|
|
38827
|
+
const a = Ai.comparePoints(i, e);
|
|
38830
38828
|
if (a < 0)
|
|
38831
38829
|
o = i, n = e, r = 1;
|
|
38832
38830
|
else if (a > 0)
|
|
38833
38831
|
o = e, n = i, r = -1;
|
|
38834
38832
|
else throw new Error(`Tried to create degenerate segment at [${i.x}, ${i.y}]`);
|
|
38835
|
-
const l = new
|
|
38833
|
+
const l = new Ai(o, !0), c = new Ai(n, !1);
|
|
38836
38834
|
return new fo(l, c, [s], [r]);
|
|
38837
38835
|
}
|
|
38838
38836
|
/* When a segment is split, the rightSE is replaced with a new sweep event */
|
|
@@ -38929,10 +38927,10 @@ class fo {
|
|
|
38929
38927
|
* Warning: input array of points is modified
|
|
38930
38928
|
*/
|
|
38931
38929
|
split(i) {
|
|
38932
|
-
const e = [], s = i.events !== void 0, o = new
|
|
38930
|
+
const e = [], s = i.events !== void 0, o = new Ai(i, !0), n = new Ai(i, !1), r = this.rightSE;
|
|
38933
38931
|
this.replaceRightSE(n), e.push(n), e.push(o);
|
|
38934
38932
|
const a = new fo(o, r, this.rings.slice(), this.windings.slice());
|
|
38935
|
-
return
|
|
38933
|
+
return Ai.comparePoints(a.leftSE.point, a.rightSE.point) > 0 && a.swapEvents(), Ai.comparePoints(this.leftSE.point, this.rightSE.point) > 0 && this.swapEvents(), s && (o.checkForConsuming(), n.checkForConsuming()), e;
|
|
38936
38934
|
}
|
|
38937
38935
|
/* Swap which event is left and right */
|
|
38938
38936
|
swapEvents() {
|
|
@@ -39222,7 +39220,7 @@ class Ed {
|
|
|
39222
39220
|
let i = this.events[0];
|
|
39223
39221
|
for (let o = 1, n = this.events.length; o < n; o++) {
|
|
39224
39222
|
const r = this.events[o];
|
|
39225
|
-
|
|
39223
|
+
Ai.compare(i, r) > 0 && (i = r);
|
|
39226
39224
|
}
|
|
39227
39225
|
let e = i.segment.prevInResult(), s = e ? e.prevInResult() : null;
|
|
39228
39226
|
for (; ; ) {
|
|
@@ -39314,7 +39312,7 @@ class JF {
|
|
|
39314
39312
|
}
|
|
39315
39313
|
if (c !== null || d !== null) {
|
|
39316
39314
|
let u = null;
|
|
39317
|
-
c === null ? u = d : d === null ? u = c : u =
|
|
39315
|
+
c === null ? u = d : d === null ? u = c : u = Ai.comparePoints(c, d) <= 0 ? c : d, this.queue.remove(e.rightSE), s.push(e.rightSE);
|
|
39318
39316
|
const p = e.split(u);
|
|
39319
39317
|
for (let f = 0, m = p.length; f < m; f++)
|
|
39320
39318
|
s.push(p[f]);
|
|
@@ -39369,7 +39367,7 @@ class ez {
|
|
|
39369
39367
|
for (let m = u + 1, v = o.length; m < v; m++)
|
|
39370
39368
|
if (nf(f.bbox, o[m].bbox) === null) return [];
|
|
39371
39369
|
}
|
|
39372
|
-
const n = new fg(
|
|
39370
|
+
const n = new fg(Ai.compare);
|
|
39373
39371
|
for (let u = 0, p = o.length; u < p; u++) {
|
|
39374
39372
|
const f = o[u].getSweepEvents();
|
|
39375
39373
|
for (let m = 0, v = f.length; m < v; m++)
|
|
@@ -39621,7 +39619,7 @@ function mz(t, i, e) {
|
|
|
39621
39619
|
const s = t[0] + (i[0] - t[0]) * e, o = t[1] + (i[1] - t[1]) * e, n = t[2] + (i[2] - t[2]) * e, r = t[3] + (i[3] - t[3]) * e;
|
|
39622
39620
|
return [s, o, n, r];
|
|
39623
39621
|
}
|
|
39624
|
-
const Xl = class Xl extends
|
|
39622
|
+
const Xl = class Xl extends Vi {
|
|
39625
39623
|
constructor(e, s) {
|
|
39626
39624
|
super(e, s);
|
|
39627
39625
|
g(this, "czmPointPrimitiveCollection");
|
|
@@ -39909,7 +39907,7 @@ g($o, "defaults", {
|
|
|
39909
39907
|
outlineWidth: 2,
|
|
39910
39908
|
outlineColor: [1, 1, 1, 1]
|
|
39911
39909
|
});
|
|
39912
|
-
let
|
|
39910
|
+
let An = $o;
|
|
39913
39911
|
((t) => {
|
|
39914
39912
|
t.createDefaultProps = () => ({
|
|
39915
39913
|
positions: K(void 0),
|
|
@@ -39932,8 +39930,8 @@ let En = $o;
|
|
|
39932
39930
|
*/
|
|
39933
39931
|
units: j(["SquareMeter_SquareKilometer", "MU_Hectare"])
|
|
39934
39932
|
});
|
|
39935
|
-
})(
|
|
39936
|
-
ae(
|
|
39933
|
+
})(An || (An = {}));
|
|
39934
|
+
ae(An.prototype, An.createDefaultProps);
|
|
39937
39935
|
async function vz(t) {
|
|
39938
39936
|
t.length % 3 !== 0 && console.warn("当前传入的索引不是3的倍数,可能不是三角片的索引!");
|
|
39939
39937
|
const i = t.length / 3 | 0, e = new Array(i * 6);
|
|
@@ -40103,11 +40101,11 @@ async function Ku(t, i, e, s, o, n, r, a) {
|
|
|
40103
40101
|
}
|
|
40104
40102
|
return { local: p, world: u, world_cartesian: f };
|
|
40105
40103
|
}
|
|
40106
|
-
const Yl = class Yl extends
|
|
40104
|
+
const Yl = class Yl extends Vi {
|
|
40107
40105
|
constructor(e, s) {
|
|
40108
40106
|
super(e, s);
|
|
40109
40107
|
g(this, "_czmAreaMeasurement");
|
|
40110
|
-
if (this._czmAreaMeasurement = this.disposeVar(new
|
|
40108
|
+
if (this._czmAreaMeasurement = this.disposeVar(new An(s, e.id)), !s.viewer) {
|
|
40111
40109
|
console.warn("viewer is undefined!");
|
|
40112
40110
|
return;
|
|
40113
40111
|
}
|
|
@@ -40364,8 +40362,8 @@ function Dz(t, i, e) {
|
|
|
40364
40362
|
const Kl = class Kl extends ei {
|
|
40365
40363
|
constructor(e, s) {
|
|
40366
40364
|
super(e, s);
|
|
40367
|
-
g(this, "_hideGeoPolylines", this.disposeVar(new
|
|
40368
|
-
g(this, "_visibleGeoPolylines", this.disposeVar(new
|
|
40365
|
+
g(this, "_hideGeoPolylines", this.disposeVar(new Oi(this.czmViewer, this.sceneObject.id)));
|
|
40366
|
+
g(this, "_visibleGeoPolylines", this.disposeVar(new Oi(this.czmViewer, this.sceneObject.id)));
|
|
40369
40367
|
const o = s.viewer;
|
|
40370
40368
|
if (!o) {
|
|
40371
40369
|
console.warn("viewer is undefined!");
|
|
@@ -40442,7 +40440,7 @@ class Jh extends k {
|
|
|
40442
40440
|
console.warn("viewer is undefined!");
|
|
40443
40441
|
return;
|
|
40444
40442
|
}
|
|
40445
|
-
const n = this.dv(new
|
|
40443
|
+
const n = this.dv(new Oi(e, s)), r = this.dv(new Oi(e, s));
|
|
40446
40444
|
this.excavationPolylines = n, this.fillPolylines = r;
|
|
40447
40445
|
const a = n;
|
|
40448
40446
|
a.color = [1, 1, 0, 1], this.d(P([a, "show"], [this, "show"])), a.show = !1, a.depthTest = !0;
|
|
@@ -40582,7 +40580,7 @@ class Jh extends k {
|
|
|
40582
40580
|
});
|
|
40583
40581
|
})(Jh || (Jh = {}));
|
|
40584
40582
|
ae(Jh.prototype, Jh.createDefaultProps);
|
|
40585
|
-
const Jl = class Jl extends
|
|
40583
|
+
const Jl = class Jl extends Vi {
|
|
40586
40584
|
constructor(e, s) {
|
|
40587
40585
|
super(e, s);
|
|
40588
40586
|
g(this, "_geoVolumeMeasurement");
|
|
@@ -40607,7 +40605,7 @@ const Jl = class Jl extends Ni {
|
|
|
40607
40605
|
};
|
|
40608
40606
|
g(Jl, "type", Jl.register("ESCesiumViewer", JP.type, Jl));
|
|
40609
40607
|
let w0 = Jl;
|
|
40610
|
-
const jl = class jl extends
|
|
40608
|
+
const jl = class jl extends Vi {
|
|
40611
40609
|
constructor(e, s) {
|
|
40612
40610
|
super(e, s);
|
|
40613
40611
|
g(this, "czmEntity");
|
|
@@ -41353,11 +41351,11 @@ const Bz = (t) => new Oz(t), rh = class rh extends Zi {
|
|
|
41353
41351
|
{
|
|
41354
41352
|
const c = () => {
|
|
41355
41353
|
const u = {
|
|
41356
|
-
radius: e.radius ??
|
|
41354
|
+
radius: e.radius ?? zn.defaults.radius,
|
|
41357
41355
|
// 热力图半径
|
|
41358
|
-
gradient: e.gradient ??
|
|
41356
|
+
gradient: e.gradient ?? zn.defaults.gradient,
|
|
41359
41357
|
// 热力图渐变
|
|
41360
|
-
blur: e.blur ??
|
|
41358
|
+
blur: e.blur ?? zn.defaults.blur,
|
|
41361
41359
|
// 热力图模糊
|
|
41362
41360
|
maxOpacity: 1,
|
|
41363
41361
|
minOpacity: 0
|
|
@@ -41383,7 +41381,7 @@ const Bz = (t) => new Oz(t), rh = class rh extends Zi {
|
|
|
41383
41381
|
return;
|
|
41384
41382
|
const y = n * m / f * v;
|
|
41385
41383
|
this.div.style.width = `${n}px`, this.div.style.height = `${y}px`, this.heatmap._renderer.setDimensions(n, y);
|
|
41386
|
-
const _ = f / n * (e.radius ??
|
|
41384
|
+
const _ = f / n * (e.radius ?? zn.defaults.radius) * 2, C = m / y * (e.radius ?? zn.defaults.radius) * 2;
|
|
41387
41385
|
this.onePixelRadius = Math.min(_, C), this.rectangle = [p[0] - _, p[1] - C, u[0] + _, u[1] + C], a = Vz(e.data, this.rectangle, n, y), r.emit();
|
|
41388
41386
|
}
|
|
41389
41387
|
};
|
|
@@ -41436,7 +41434,7 @@ const Bz = (t) => new Oz(t), rh = class rh extends Zi {
|
|
|
41436
41434
|
], e), !0) : !1 : !1;
|
|
41437
41435
|
}
|
|
41438
41436
|
};
|
|
41439
|
-
g(rh, "type", rh.register("ESCesiumViewer",
|
|
41437
|
+
g(rh, "type", rh.register("ESCesiumViewer", zn.type, rh));
|
|
41440
41438
|
let E0 = rh;
|
|
41441
41439
|
function Vz(t, i, e, s, o) {
|
|
41442
41440
|
return t.map((n) => ({
|
|
@@ -42642,7 +42640,7 @@ const Yo = class Yo extends k {
|
|
|
42642
42640
|
g(Yo, "defaults", {
|
|
42643
42641
|
positions: [[0, 0, 0], [0, 0, 1e6]]
|
|
42644
42642
|
});
|
|
42645
|
-
let
|
|
42643
|
+
let Mn = Yo;
|
|
42646
42644
|
((t) => {
|
|
42647
42645
|
t.createDefaultProps = () => ({
|
|
42648
42646
|
show: !0,
|
|
@@ -42651,8 +42649,8 @@ let An = Yo;
|
|
|
42651
42649
|
width: 10,
|
|
42652
42650
|
color: j([1, 0, 0, 1])
|
|
42653
42651
|
});
|
|
42654
|
-
})(
|
|
42655
|
-
ae(
|
|
42652
|
+
})(Mn || (Mn = {}));
|
|
42653
|
+
ae(Mn.prototype, Mn.createDefaultProps);
|
|
42656
42654
|
class Po extends Ci {
|
|
42657
42655
|
constructor(e) {
|
|
42658
42656
|
super();
|
|
@@ -42681,7 +42679,7 @@ class Po extends Ci {
|
|
|
42681
42679
|
const d = [0, 0, 0];
|
|
42682
42680
|
Ot(r, n, o, d), this._opInfo.targetPosition.value = d;
|
|
42683
42681
|
let u = this.scale[0], p = this.scale[1];
|
|
42684
|
-
const f =
|
|
42682
|
+
const f = Mi(d, this._opInfo.originPosition.value) - Mi(this._lastPosition, this._opInfo.originPosition.value);
|
|
42685
42683
|
this._lastPosition = [...d];
|
|
42686
42684
|
const m = this._opInfo.originDimensions.value[0] / 100;
|
|
42687
42685
|
f != 0 && this._opInfo.constraintMode.value === "y" && (f > 0 ? u += m : u -= m), f != 0 && this._opInfo.constraintMode.value === "x" && (f > 0 ? p += m : p -= m), u <= 0 && (u += m), p <= 0 && (p += m), this.scale = [u ?? 1, p ?? 1, this.scale[2] ?? 1];
|
|
@@ -42817,7 +42815,7 @@ class Po extends Ci {
|
|
|
42817
42815
|
return this._scaleAxis;
|
|
42818
42816
|
}
|
|
42819
42817
|
_createScaleAxis(e, s) {
|
|
42820
|
-
const o = this.ad(new
|
|
42818
|
+
const o = this.ad(new Mn(e));
|
|
42821
42819
|
return o.width = 10, this.ad(P([o, "show"], [this, "enabled"])), o;
|
|
42822
42820
|
}
|
|
42823
42821
|
}
|
|
@@ -42975,7 +42973,7 @@ g(no, "baseImageUrl", "${earthsdk3-assets-script-dir}/assets/img/"), g(no, "defa
|
|
|
42975
42973
|
firstControlPointImageUrl: no.baseImageUrl + "point-green.png",
|
|
42976
42974
|
otherControlPointImageUrl: no.baseImageUrl + "point-yellow.png"
|
|
42977
42975
|
});
|
|
42978
|
-
let
|
|
42976
|
+
let Ni = no;
|
|
42979
42977
|
((t) => {
|
|
42980
42978
|
t.createDefaultProps = () => ({
|
|
42981
42979
|
...Pi.createDefaultProps(),
|
|
@@ -42991,8 +42989,8 @@ let Ui = no;
|
|
|
42991
42989
|
hideCursorInfo: !1,
|
|
42992
42990
|
middlePointShow: !0
|
|
42993
42991
|
});
|
|
42994
|
-
})(
|
|
42995
|
-
ae(
|
|
42992
|
+
})(Ni || (Ni = {}));
|
|
42993
|
+
ae(Ni.prototype, Ni.createDefaultProps);
|
|
42996
42994
|
let Yz = 0;
|
|
42997
42995
|
class v1 extends k {
|
|
42998
42996
|
constructor(e, s) {
|
|
@@ -43019,7 +43017,7 @@ class v1 extends k {
|
|
|
43019
43017
|
{
|
|
43020
43018
|
const n = () => {
|
|
43021
43019
|
const r = e.editingPoints.indexOf(this) + 1;
|
|
43022
|
-
r !== 0 && (o.title = `控制点${r}`, r === 1 ? o.imageUri = e.firstControlPointImageUrl ??
|
|
43020
|
+
r !== 0 && (o.title = `控制点${r}`, r === 1 ? o.imageUri = e.firstControlPointImageUrl ?? Ni.defaults.firstControlPointImageUrl : o.imageUri = e.otherControlPointImageUrl ?? Ni.defaults.otherControlPointImageUrl);
|
|
43023
43021
|
};
|
|
43024
43022
|
n(), this.dispose(e.editingPoints.changedEvent.disposableOn(n));
|
|
43025
43023
|
}
|
|
@@ -43045,7 +43043,7 @@ class y1 extends v1 {
|
|
|
43045
43043
|
super(i, e);
|
|
43046
43044
|
}
|
|
43047
43045
|
}
|
|
43048
|
-
class gt extends
|
|
43046
|
+
class gt extends Ni {
|
|
43049
43047
|
constructor(e) {
|
|
43050
43048
|
super(e);
|
|
43051
43049
|
g(this, "_deletePreviousPointWhileAddingEvent", this.disposeVar(new q()));
|
|
@@ -43098,7 +43096,7 @@ class gt extends Ui {
|
|
|
43098
43096
|
}
|
|
43099
43097
|
((t) => {
|
|
43100
43098
|
t.createDefaultProps = () => ({
|
|
43101
|
-
...
|
|
43099
|
+
...Ni.createDefaultProps()
|
|
43102
43100
|
});
|
|
43103
43101
|
})(gt || (gt = {}));
|
|
43104
43102
|
ae(gt.prototype, gt.createDefaultProps);
|
|
@@ -43218,7 +43216,7 @@ class Md extends v1 {
|
|
|
43218
43216
|
}
|
|
43219
43217
|
}
|
|
43220
43218
|
}
|
|
43221
|
-
class Oe extends
|
|
43219
|
+
class Oe extends Ni {
|
|
43222
43220
|
//
|
|
43223
43221
|
constructor(e) {
|
|
43224
43222
|
super(e);
|
|
@@ -43291,7 +43289,7 @@ class Oe extends Ui {
|
|
|
43291
43289
|
}
|
|
43292
43290
|
((t) => {
|
|
43293
43291
|
t.createDefaultProps = () => ({
|
|
43294
|
-
...
|
|
43292
|
+
...Ni.createDefaultProps(),
|
|
43295
43293
|
moveWithFirstPosition: !1
|
|
43296
43294
|
});
|
|
43297
43295
|
})(Oe || (Oe = {}));
|
|
@@ -43412,7 +43410,7 @@ class jh extends gt {
|
|
|
43412
43410
|
return;
|
|
43413
43411
|
}
|
|
43414
43412
|
this.startPosition = this.positions[0], this.endPosition = this.positions[1];
|
|
43415
|
-
const s = xr(this.startPosition, this.endPosition), o =
|
|
43413
|
+
const s = xr(this.startPosition, this.endPosition), o = Mi(this.startPosition, this.endPosition);
|
|
43416
43414
|
if (o <= 0) {
|
|
43417
43415
|
this.rotation = [90, 0, 0], this.distance = 1;
|
|
43418
43416
|
return;
|
|
@@ -43466,7 +43464,7 @@ class $r extends Oe {
|
|
|
43466
43464
|
["delete", "删除当前控制点", "", Oe.baseImageUrl + "delete.png"],
|
|
43467
43465
|
["modify", "修改当前控制点", "", Oe.baseImageUrl + "modify.png"]
|
|
43468
43466
|
];
|
|
43469
|
-
const s =
|
|
43467
|
+
const s = Mi(this.startPosition, this.endPosition);
|
|
43470
43468
|
if (Math.abs(s) <= 0)
|
|
43471
43469
|
return this.rotation = [90, 0, 0], this.distance = 1;
|
|
43472
43470
|
const o = xr(this.startPosition, this.endPosition), n = this.endPosition[2] - this.startPosition[2], r = Math.atan(n / s) * 180 / Math.PI;
|
|
@@ -43655,10 +43653,10 @@ const dh = class dh extends ti {
|
|
|
43655
43653
|
const c = l;
|
|
43656
43654
|
if (Reflect.has(l, "position")) {
|
|
43657
43655
|
const d = gi({ originPosition: r }, [c.position])[0][0];
|
|
43658
|
-
c.position =
|
|
43656
|
+
c.position = tn({ originPosition: r }, [[d[0] + a[0], d[1] + a[1], d[2] + a[2]]])[0][0];
|
|
43659
43657
|
} else if (Reflect.has(c, "points") && c.points) {
|
|
43660
43658
|
const d = gi({ originPosition: r }, c.points)[0];
|
|
43661
|
-
c.points =
|
|
43659
|
+
c.points = tn({ originPosition: r }, d.map((u) => [u[0] + a[0], u[1] + a[1], u[2] + a[2]]))[0];
|
|
43662
43660
|
}
|
|
43663
43661
|
});
|
|
43664
43662
|
}
|
|
@@ -43683,7 +43681,7 @@ const dh = class dh extends ti {
|
|
|
43683
43681
|
}
|
|
43684
43682
|
var a = gi({ originPosition: r }, [n])[0][0];
|
|
43685
43683
|
const l = gi({ originPosition: r }, o.points)[0];
|
|
43686
|
-
o.points =
|
|
43684
|
+
o.points = tn({ originPosition: r }, l.map((c) => [c[0] + a[0], c[1] + a[1], c[2] + a[2]]))[0];
|
|
43687
43685
|
}));
|
|
43688
43686
|
} else
|
|
43689
43687
|
throw new Error(`TranslationEditingWrapper:${i.typeName} 坐标属性无法绑定平移编辑`);
|
|
@@ -44046,7 +44044,7 @@ class hL extends k {
|
|
|
44046
44044
|
class cL extends k {
|
|
44047
44045
|
constructor(e) {
|
|
44048
44046
|
super();
|
|
44049
|
-
g(this, "_clippingPlanesSceneObjectWithId", this.disposeVar(new
|
|
44047
|
+
g(this, "_clippingPlanesSceneObjectWithId", this.disposeVar(new zi()));
|
|
44050
44048
|
this.dispose(P([this._clippingPlanesSceneObjectWithId, "id"], [e, "sceneGlobeClippingPlanesId"])), this.disposeVar(new he(this._clippingPlanesSceneObjectWithId.sceneObjectChanged, () => {
|
|
44051
44049
|
const { sceneObject: s } = this._clippingPlanesSceneObjectWithId;
|
|
44052
44050
|
if (s)
|
|
@@ -44411,7 +44409,7 @@ h.Material._materialCache.addMaterial(h.Material.GlobeLevelMaterialType, {
|
|
|
44411
44409
|
const {
|
|
44412
44410
|
PrimitiveRenderResources: ML,
|
|
44413
44411
|
ModelUtility: IL,
|
|
44414
|
-
Cartesian3:
|
|
44412
|
+
Cartesian3: Ri,
|
|
44415
44413
|
Matrix4: sr,
|
|
44416
44414
|
ModelRenderResources: RL,
|
|
44417
44415
|
defined: DL,
|
|
@@ -44419,7 +44417,7 @@ const {
|
|
|
44419
44417
|
NodeRenderResources: kL,
|
|
44420
44418
|
BoundingSphere: bs,
|
|
44421
44419
|
ModelDrawCommands: FL
|
|
44422
|
-
} = h, zL = new
|
|
44420
|
+
} = h, zL = new Ri(), LL = new Ri(), w1 = new Ri(), C1 = new Ri();
|
|
44423
44421
|
class OL extends ML {
|
|
44424
44422
|
//@ts-ignore
|
|
44425
44423
|
constructor(i, e, s) {
|
|
@@ -44429,7 +44427,7 @@ class OL extends ML {
|
|
|
44429
44427
|
sr.multiplyByPoint(o, i.runtimeNode.instancingTranslationMin, w1),
|
|
44430
44428
|
sr.multiplyByPoint(o, i.runtimeNode.instancingTranslationMax, C1)
|
|
44431
44429
|
);
|
|
44432
|
-
this.positionMin =
|
|
44430
|
+
this.positionMin = Ri.clone(n.min, new Ri()), this.positionMax = Ri.clone(n.max, new Ri()), this.boundingSphere = bs.fromCornerPoints(this.positionMin, this.positionMax, new bs());
|
|
44433
44431
|
}
|
|
44434
44432
|
}
|
|
44435
44433
|
function BL() {
|
|
@@ -44440,12 +44438,12 @@ function BL() {
|
|
|
44440
44438
|
let o, n, r;
|
|
44441
44439
|
for (o = 0; o < s.length; o++)
|
|
44442
44440
|
s[o].process(e, i, t);
|
|
44443
|
-
const a =
|
|
44441
|
+
const a = Ri.fromElements(
|
|
44444
44442
|
Number.MAX_VALUE,
|
|
44445
44443
|
Number.MAX_VALUE,
|
|
44446
44444
|
Number.MAX_VALUE,
|
|
44447
44445
|
zL
|
|
44448
|
-
), l =
|
|
44446
|
+
), l = Ri.fromElements(
|
|
44449
44447
|
-Number.MAX_VALUE,
|
|
44450
44448
|
-Number.MAX_VALUE,
|
|
44451
44449
|
-Number.MAX_VALUE,
|
|
@@ -44497,11 +44495,11 @@ function BL() {
|
|
|
44497
44495
|
v.positionMax,
|
|
44498
44496
|
C1
|
|
44499
44497
|
);
|
|
44500
|
-
|
|
44498
|
+
Ri.minimumByComponent(
|
|
44501
44499
|
a,
|
|
44502
44500
|
y,
|
|
44503
44501
|
a
|
|
44504
|
-
),
|
|
44502
|
+
), Ri.maximumByComponent(
|
|
44505
44503
|
l,
|
|
44506
44504
|
_,
|
|
44507
44505
|
l
|
|
@@ -45897,7 +45895,7 @@ class f5 extends k {
|
|
|
45897
45895
|
p !== e.currentTime && (e.currentTime = p);
|
|
45898
45896
|
}));
|
|
45899
45897
|
{
|
|
45900
|
-
const u = new
|
|
45898
|
+
const u = new N5(d, e);
|
|
45901
45899
|
X0(d, u);
|
|
45902
45900
|
}
|
|
45903
45901
|
e.setStatus("Created"), e.setStatusLog("成功创建Cesium视口!"), s(d);
|
|
@@ -46527,7 +46525,8 @@ class A5 extends k {
|
|
|
46527
46525
|
this.remove(s);
|
|
46528
46526
|
}
|
|
46529
46527
|
}
|
|
46530
|
-
|
|
46528
|
+
const M5 = new h.Cartesian2();
|
|
46529
|
+
class I5 extends k {
|
|
46531
46530
|
constructor() {
|
|
46532
46531
|
super();
|
|
46533
46532
|
g(this, "defaultStyle", /* @__PURE__ */ new Map());
|
|
@@ -46536,8 +46535,9 @@ class M5 extends k {
|
|
|
46536
46535
|
async add(e) {
|
|
46537
46536
|
var o;
|
|
46538
46537
|
if (typeof e.mvtLayerJson.mainJson != "string" && ((o = e.mvtLayerJson.mainJson) != null && o.sprite)) {
|
|
46539
|
-
const n = e.mvtLayerJson.mainJson.sprite
|
|
46540
|
-
r
|
|
46538
|
+
const n = e.mvtLayerJson.mainJson.sprite;
|
|
46539
|
+
let r = await h.Resource.fetchJson({ url: n + ".json" });
|
|
46540
|
+
r = await R5(n + ".png", r), r && this.defaultSprite.set(e.sceneObject.id, [n + ".png", r]);
|
|
46541
46541
|
}
|
|
46542
46542
|
const s = e.mvtLayerJson.pointJson;
|
|
46543
46543
|
for (const n of s)
|
|
@@ -46558,6 +46558,11 @@ class M5 extends k {
|
|
|
46558
46558
|
* @param layerStyle MVTLayers的样式
|
|
46559
46559
|
* @returns 样式
|
|
46560
46560
|
*/
|
|
46561
|
+
/** //TODO
|
|
46562
|
+
* icon-allow-overlap 图标是否允许重叠
|
|
46563
|
+
* icon-color-brightness-max 图标最大亮度
|
|
46564
|
+
* icon-color-brightness-min 图标最小亮度
|
|
46565
|
+
*/
|
|
46561
46566
|
getStyleFromMVTLayers(e, s) {
|
|
46562
46567
|
const o = {
|
|
46563
46568
|
id: s.id,
|
|
@@ -46577,19 +46582,20 @@ class M5 extends k {
|
|
|
46577
46582
|
const { horizontalOrigin: l, verticalOrigin: c } = $0(n["icon-anchor"] ?? "center");
|
|
46578
46583
|
if (r.horizontalOrigin = l, r.verticalOrigin = c, Reflect.has(s, "paint")) {
|
|
46579
46584
|
const d = s.paint;
|
|
46580
|
-
r.color = h.Color.fromCssColorString(d["icon-color"] ?? "#
|
|
46585
|
+
r.color = h.Color.fromCssColorString(d["icon-color"] ?? "#000000").withAlpha(d["icon-opacity"] ?? 1);
|
|
46581
46586
|
}
|
|
46582
|
-
r.rotation = h.Math.toRadians(n["icon-rotate"] ?? 0), r.scale = n["icon-size"] ?? 1, r.show = (n.visibility ?? "visible") === "visible";
|
|
46587
|
+
r.rotation = h.Math.toRadians(n["icon-rotate"] ?? 0), r.scale = n["icon-size"] ?? 1, r.pixelOffset = h.Cartesian2.multiplyByScalar(h.Cartesian2.fromArray(n["icon-offset"] ?? [0, 0]), r.scale, M5), r.show = (n.visibility ?? "visible") === "visible";
|
|
46583
46588
|
}
|
|
46584
46589
|
if (Reflect.has(n, "text-field")) {
|
|
46585
46590
|
const r = o.labelStyle = {};
|
|
46586
46591
|
r.text = n["text-field"];
|
|
46587
46592
|
const { horizontalOrigin: a, verticalOrigin: l } = $0(n["text-anchor"] ?? "center");
|
|
46588
46593
|
if (r.horizontalOrigin = a, r.verticalOrigin = l, Reflect.has(s, "paint")) {
|
|
46589
|
-
const
|
|
46590
|
-
r.fillColor = h.Color.fromCssColorString(
|
|
46594
|
+
const d = s.paint;
|
|
46595
|
+
r.fillColor = h.Color.fromCssColorString(d["text-color"] ?? "#000000").withAlpha(d["text-opacity"] ?? 1);
|
|
46591
46596
|
}
|
|
46592
|
-
|
|
46597
|
+
const c = n["text-font"] ? typeof n["text-font"] == "string" ? [n["text-font"]] : n["text-font"] : ["Open Sans Regular", "Arial Unicode MS Regular"];
|
|
46598
|
+
r.font = `${n["text-size"] ?? 16}px ` + c.map((d) => `"${d}"`).join(", "), r.show = (n.visibility ?? "visible") === "visible";
|
|
46593
46599
|
}
|
|
46594
46600
|
}
|
|
46595
46601
|
return o;
|
|
@@ -46607,27 +46613,42 @@ function $0(t) {
|
|
|
46607
46613
|
i = h.HorizontalOrigin.RIGHT;
|
|
46608
46614
|
break;
|
|
46609
46615
|
case "top":
|
|
46610
|
-
e = h.VerticalOrigin.
|
|
46616
|
+
e = h.VerticalOrigin.TOP;
|
|
46611
46617
|
break;
|
|
46612
46618
|
case "bottom":
|
|
46613
|
-
e = h.VerticalOrigin.
|
|
46619
|
+
e = h.VerticalOrigin.BOTTOM;
|
|
46614
46620
|
break;
|
|
46615
46621
|
case "top-left":
|
|
46616
|
-
i = h.HorizontalOrigin.
|
|
46622
|
+
i = h.HorizontalOrigin.LEFT, e = h.VerticalOrigin.TOP;
|
|
46617
46623
|
break;
|
|
46618
46624
|
case "top-right":
|
|
46619
|
-
i = h.HorizontalOrigin.
|
|
46625
|
+
i = h.HorizontalOrigin.RIGHT, e = h.VerticalOrigin.TOP;
|
|
46620
46626
|
break;
|
|
46621
46627
|
case "bottom-left":
|
|
46622
|
-
i = h.HorizontalOrigin.
|
|
46628
|
+
i = h.HorizontalOrigin.LEFT, e = h.VerticalOrigin.BOTTOM;
|
|
46623
46629
|
break;
|
|
46624
46630
|
case "bottom-right":
|
|
46625
|
-
i = h.HorizontalOrigin.
|
|
46631
|
+
i = h.HorizontalOrigin.RIGHT, e = h.VerticalOrigin.BOTTOM;
|
|
46626
46632
|
break;
|
|
46627
46633
|
}
|
|
46628
46634
|
return { horizontalOrigin: i, verticalOrigin: e };
|
|
46629
46635
|
}
|
|
46630
|
-
|
|
46636
|
+
async function R5(t, i) {
|
|
46637
|
+
const { width: e, height: s } = await Ko(t, !1), o = {};
|
|
46638
|
+
for (const n in i)
|
|
46639
|
+
if (Object.prototype.hasOwnProperty.call(i, n)) {
|
|
46640
|
+
const r = i[n];
|
|
46641
|
+
o[n] = {
|
|
46642
|
+
width: r.width,
|
|
46643
|
+
height: r.height,
|
|
46644
|
+
x: r.x,
|
|
46645
|
+
y: s - r.y - r.height,
|
|
46646
|
+
pixelRatio: r.pixelRatio
|
|
46647
|
+
};
|
|
46648
|
+
}
|
|
46649
|
+
return o;
|
|
46650
|
+
}
|
|
46651
|
+
class D5 extends k {
|
|
46631
46652
|
constructor() {
|
|
46632
46653
|
super();
|
|
46633
46654
|
g(this, "callbacks", /* @__PURE__ */ new Map());
|
|
@@ -46643,15 +46664,15 @@ class I5 extends k {
|
|
|
46643
46664
|
(o = this.callbacks.get(s)) == null || o.forEach((n) => n(e.data));
|
|
46644
46665
|
}
|
|
46645
46666
|
}
|
|
46646
|
-
class
|
|
46667
|
+
class k5 extends k {
|
|
46647
46668
|
constructor(e) {
|
|
46648
46669
|
super();
|
|
46649
46670
|
g(this, "czmESMVTLayers", /* @__PURE__ */ new Map());
|
|
46650
46671
|
g(this, "tilesCache", new T5());
|
|
46651
46672
|
g(this, "tileLoader", new E5());
|
|
46652
46673
|
g(this, "tileRenderer");
|
|
46653
|
-
g(this, "styleManager", new
|
|
46654
|
-
g(this, "eventManager", new
|
|
46674
|
+
g(this, "styleManager", new I5());
|
|
46675
|
+
g(this, "eventManager", new D5());
|
|
46655
46676
|
g(this, "lastImageryTileMap", /* @__PURE__ */ new Map());
|
|
46656
46677
|
this.viewer = e;
|
|
46657
46678
|
const s = Ct(e);
|
|
@@ -46668,7 +46689,7 @@ class R5 extends k {
|
|
|
46668
46689
|
console.log(`ESMVTLayer${e.sceneObject.id}已经添加过,跳过本次添加`);
|
|
46669
46690
|
return;
|
|
46670
46691
|
}
|
|
46671
|
-
this.czmESMVTLayers.set(e.sceneObject.id, e), this.tileLoader.add(e), this.styleManager.add(e);
|
|
46692
|
+
this.czmESMVTLayers.set(e.sceneObject.id, e), this.tileLoader.add(e), this.styleManager.add(e), this.refreshVisibleTiles();
|
|
46672
46693
|
}
|
|
46673
46694
|
remove(e) {
|
|
46674
46695
|
this.czmESMVTLayers.delete(e.sceneObject.id), this.tileLoader.remove(e), this.styleManager.remove(e), this.tilesCache.remove(e);
|
|
@@ -46695,7 +46716,7 @@ class R5 extends k {
|
|
|
46695
46716
|
var s, o;
|
|
46696
46717
|
for (const n of this.czmESMVTLayers.keys()) {
|
|
46697
46718
|
const r = e.get(n) ?? /* @__PURE__ */ new Set(), a = this.lastImageryTileMap.get(n);
|
|
46698
|
-
if (a &&
|
|
46719
|
+
if (a && F5(r, a))
|
|
46699
46720
|
continue;
|
|
46700
46721
|
this.lastImageryTileMap.set(n, r);
|
|
46701
46722
|
const l = new Set(((s = this.tilesCache.get(n)) == null ? void 0 : s.keys()) ?? []), c = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Set();
|
|
@@ -46726,14 +46747,14 @@ class R5 extends k {
|
|
|
46726
46747
|
// }
|
|
46727
46748
|
// }
|
|
46728
46749
|
}
|
|
46729
|
-
function
|
|
46750
|
+
function F5(t, i) {
|
|
46730
46751
|
if (t.size !== i.size) return !1;
|
|
46731
46752
|
for (const e of t)
|
|
46732
46753
|
if (!i.has(e)) return !1;
|
|
46733
46754
|
return !0;
|
|
46734
46755
|
}
|
|
46735
46756
|
const D1 = ["label", "billboard", "rectangle"];
|
|
46736
|
-
class
|
|
46757
|
+
class z5 extends k {
|
|
46737
46758
|
constructor(e, s) {
|
|
46738
46759
|
super();
|
|
46739
46760
|
g(this, "id", Ne());
|
|
@@ -46760,7 +46781,7 @@ class k5 extends k {
|
|
|
46760
46781
|
this.label && (this.label.show = e), this.billboard && (this.billboard.show = e);
|
|
46761
46782
|
}
|
|
46762
46783
|
}
|
|
46763
|
-
class
|
|
46784
|
+
class L5 extends k {
|
|
46764
46785
|
constructor(e) {
|
|
46765
46786
|
super();
|
|
46766
46787
|
g(this, "objects", /* @__PURE__ */ new Map());
|
|
@@ -46916,7 +46937,7 @@ class F5 extends k {
|
|
|
46916
46937
|
/** 获取或创建 ScreenObject */
|
|
46917
46938
|
getOrCreateObject(e, s) {
|
|
46918
46939
|
let o = this.objects.get(e);
|
|
46919
|
-
return o || (o = new
|
|
46940
|
+
return o || (o = new z5(e, s), this.objects.set(e, o)), o;
|
|
46920
46941
|
}
|
|
46921
46942
|
/** 如果对象三种类型都没有了,则删除该 screenObject */
|
|
46922
46943
|
tryDeleteEmpty(e) {
|
|
@@ -46924,7 +46945,7 @@ class F5 extends k {
|
|
|
46924
46945
|
s && !s.label && !s.billboard && !s.rectangle && this.objects.delete(e);
|
|
46925
46946
|
}
|
|
46926
46947
|
}
|
|
46927
|
-
function
|
|
46948
|
+
function O5(t, i) {
|
|
46928
46949
|
const e = [Number.MAX_SAFE_INTEGER, Number.MAX_SAFE_INTEGER, Number.MIN_SAFE_INTEGER, Number.MIN_SAFE_INTEGER];
|
|
46929
46950
|
for (const s in i)
|
|
46930
46951
|
if (Object.prototype.hasOwnProperty.call(i, s) && D1.includes(s)) {
|
|
@@ -46941,7 +46962,7 @@ function z5(t, i) {
|
|
|
46941
46962
|
}
|
|
46942
46963
|
return new h.Rectangle(...e);
|
|
46943
46964
|
}
|
|
46944
|
-
class
|
|
46965
|
+
class B5 extends k {
|
|
46945
46966
|
// 阈值(可按需调整)
|
|
46946
46967
|
constructor(e) {
|
|
46947
46968
|
super();
|
|
@@ -46973,7 +46994,7 @@ class L5 extends k {
|
|
|
46973
46994
|
for (let e = 0; e < this.avoidanceLayers.length; e++) {
|
|
46974
46995
|
const s = this.screenManager.getLayer(this.avoidanceLayers[e]);
|
|
46975
46996
|
s.layerIsEffective() && s.objects.forEach((o, n) => {
|
|
46976
|
-
o.show(!
|
|
46997
|
+
o.show(!1);
|
|
46977
46998
|
});
|
|
46978
46999
|
}
|
|
46979
47000
|
this.forceRebuildNext = !0;
|
|
@@ -47029,7 +47050,7 @@ class L5 extends k {
|
|
|
47029
47050
|
if (o && h.Cartesian3.equalsEpsilon(o.worldPos, n, 1e-6))
|
|
47030
47051
|
r = o.rect, this.rectangleCollisionCheck.remove(s, r);
|
|
47031
47052
|
else {
|
|
47032
|
-
if (r =
|
|
47053
|
+
if (r = O5(this.screenManager.viewer, e), isNaN(r.width) || isNaN(r.height)) {
|
|
47033
47054
|
e.show(!1), this._cache.has(e.id.toString()) && this._cache.delete(e.id.toString());
|
|
47034
47055
|
return;
|
|
47035
47056
|
}
|
|
@@ -47057,7 +47078,7 @@ class q0 extends k {
|
|
|
47057
47078
|
this._collection[e._index] = void 0;
|
|
47058
47079
|
}
|
|
47059
47080
|
}
|
|
47060
|
-
class
|
|
47081
|
+
class V5 extends k {
|
|
47061
47082
|
constructor(e) {
|
|
47062
47083
|
super();
|
|
47063
47084
|
g(this, "layers", /* @__PURE__ */ new Map());
|
|
@@ -47071,12 +47092,12 @@ class O5 extends k {
|
|
|
47071
47092
|
/** 集合映射,方便统一处理 */
|
|
47072
47093
|
g(this, "collectionMap");
|
|
47073
47094
|
g(this, "_refreshEvent", this.ad(new q()));
|
|
47074
|
-
this.czmViewer = e, this.viewer = e.viewer, this.avoidanceManager = this.ad(new
|
|
47095
|
+
this.czmViewer = e, this.viewer = e.viewer, this.avoidanceManager = this.ad(new B5(this)), this.labelCollection = new h.LabelCollection({ scene: this.viewer.scene }), this.billboardCollection = new h.BillboardCollection({ scene: this.viewer.scene }), this.viewer.scene.primitives.add(this.labelCollection), this.viewer.scene.primitives.add(this.billboardCollection), this.collectionMap = {
|
|
47075
47096
|
label: this.labelCollection,
|
|
47076
47097
|
billboard: this.billboardCollection,
|
|
47077
47098
|
rectangle: this.rectangleCollection
|
|
47078
47099
|
// canvas: this.canvasCollection,
|
|
47079
|
-
}, this.ad(
|
|
47100
|
+
}, this.ad(Jo([
|
|
47080
47101
|
this.czmViewer.cameraChanged,
|
|
47081
47102
|
this.refreshEvent
|
|
47082
47103
|
], () => {
|
|
@@ -47093,7 +47114,7 @@ class O5 extends k {
|
|
|
47093
47114
|
}
|
|
47094
47115
|
getLayer(e) {
|
|
47095
47116
|
let s = this.layers.get(e);
|
|
47096
|
-
return s || (s = new
|
|
47117
|
+
return s || (s = new L5(this), this.layers.set(e, s), this.avoidanceManager.enable && this.avoidanceManager.updateAvoidanceLayer({ enabled: !0 })), s;
|
|
47097
47118
|
}
|
|
47098
47119
|
addLabel(e, s, o, n) {
|
|
47099
47120
|
const a = this.getLayer(s).addLabel(e, o, n);
|
|
@@ -47129,7 +47150,7 @@ function Ct(t) {
|
|
|
47129
47150
|
function X0(t, i) {
|
|
47130
47151
|
td(t, "_viewerExtensions", i);
|
|
47131
47152
|
}
|
|
47132
|
-
class
|
|
47153
|
+
class N5 extends k {
|
|
47133
47154
|
constructor(e, s) {
|
|
47134
47155
|
super();
|
|
47135
47156
|
g(this, "_imageriesManager");
|
|
@@ -47141,7 +47162,7 @@ class B5 extends k {
|
|
|
47141
47162
|
g(this, "_screenManager");
|
|
47142
47163
|
g(this, "_vectorTIlesManager");
|
|
47143
47164
|
this._viewer = e, this._czmViewer = s, this._imageriesManager = this.dv(new P5(this.viewer)), this._terrainManager = this.dv(new m5(this.viewer)), this._labelManager = this.dv(new v5(this.viewer)), this._poiContext = this.disposeVar(new WS(this._viewer)), this._cursorPositionInfo = this.disposeVar(new S5(this._viewer)), this.ad(s.viewerChanged.don(() => {
|
|
47144
|
-
this._pickingManager = this.dv(new x5(s)), this._screenManager = this.ad(new
|
|
47165
|
+
this._pickingManager = this.dv(new x5(s)), this._screenManager = this.ad(new V5(s)), this._vectorTIlesManager = this.ad(new k5(s.viewer)), this.ad(Jo(this.czmViewer.textAvoidanceChanged, () => {
|
|
47145
47166
|
this.screenManager.setRules({
|
|
47146
47167
|
avoidance: {
|
|
47147
47168
|
enabled: this.czmViewer.textAvoidance
|
|
@@ -47208,7 +47229,7 @@ function Q0(t, i) {
|
|
|
47208
47229
|
function K0(t, i) {
|
|
47209
47230
|
k1(t, -i, !0);
|
|
47210
47231
|
}
|
|
47211
|
-
class
|
|
47232
|
+
class U5 extends k {
|
|
47212
47233
|
constructor(e) {
|
|
47213
47234
|
super();
|
|
47214
47235
|
// static keyStatusMap: { [k: string]: CameraActionType; } = {
|
|
@@ -47339,12 +47360,12 @@ class Rd extends k {
|
|
|
47339
47360
|
return this._debug.changed;
|
|
47340
47361
|
}
|
|
47341
47362
|
}
|
|
47342
|
-
class
|
|
47363
|
+
class G5 extends k {
|
|
47343
47364
|
constructor(e) {
|
|
47344
47365
|
super();
|
|
47345
47366
|
g(this, "_keyStatus");
|
|
47346
47367
|
g(this, "_cameraOp");
|
|
47347
|
-
this._keyboardCameraController = e, this._keyStatus = this.dv(new Rd(this)), this._cameraOp = this.dv(new
|
|
47368
|
+
this._keyboardCameraController = e, this._keyStatus = this.dv(new Rd(this)), this._cameraOp = this.dv(new U5(this));
|
|
47348
47369
|
}
|
|
47349
47370
|
get keyboardCameraController() {
|
|
47350
47371
|
return this._keyboardCameraController;
|
|
@@ -47375,7 +47396,7 @@ const Ld = class Ld extends k {
|
|
|
47375
47396
|
g(this, "_abortEvent", this.dv(new q()));
|
|
47376
47397
|
this._firstPersonController = e, this.dv(new he(this.enabledChanged, () => {
|
|
47377
47398
|
if (this.enabled)
|
|
47378
|
-
return new
|
|
47399
|
+
return new G5(this);
|
|
47379
47400
|
}));
|
|
47380
47401
|
}
|
|
47381
47402
|
get firstPersonController() {
|
|
@@ -47461,7 +47482,7 @@ g(Ld, "defaultKeyStatusMap", {
|
|
|
47461
47482
|
KeyQ: "SwitchAlwaysWithCamera"
|
|
47462
47483
|
});
|
|
47463
47484
|
let Dd = Ld;
|
|
47464
|
-
function
|
|
47485
|
+
function W5(t, i) {
|
|
47465
47486
|
t.lookRight(h.Math.toRadians(i.movementX) * 0.1), t.lookDown(h.Math.toRadians(i.movementY) * 0.1);
|
|
47466
47487
|
const e = t.pitch, s = h.Math.clamp(e, -h.Math.PI_OVER_TWO, h.Math.PI_OVER_TWO);
|
|
47467
47488
|
s !== e && t.setView({
|
|
@@ -47473,14 +47494,14 @@ function U5(t, i) {
|
|
|
47473
47494
|
}
|
|
47474
47495
|
});
|
|
47475
47496
|
}
|
|
47476
|
-
class
|
|
47497
|
+
class H5 extends k {
|
|
47477
47498
|
constructor(i, e) {
|
|
47478
47499
|
super(), this._firstPersonController = i, this._mouseCameraController = e;
|
|
47479
47500
|
const { canvas: s } = this._firstPersonController.viewer;
|
|
47480
47501
|
{
|
|
47481
47502
|
const o = (n) => {
|
|
47482
47503
|
const { camera: r } = this._firstPersonController.viewer.scene;
|
|
47483
|
-
|
|
47504
|
+
W5(r, n);
|
|
47484
47505
|
};
|
|
47485
47506
|
s.addEventListener("pointermove", o), this.dispose(() => s.removeEventListener("pointermove", o));
|
|
47486
47507
|
}
|
|
@@ -47489,7 +47510,7 @@ class G5 extends k {
|
|
|
47489
47510
|
const Od = class Od extends k {
|
|
47490
47511
|
constructor(e) {
|
|
47491
47512
|
super();
|
|
47492
|
-
g(this, "_mouseMoving", this.dv(new
|
|
47513
|
+
g(this, "_mouseMoving", this.dv(new H5(this.firstPersonController, this.mouseCameraController)));
|
|
47493
47514
|
this._mouseCameraController = e;
|
|
47494
47515
|
const { viewer: s } = this.firstPersonController;
|
|
47495
47516
|
this.mouseCameraController.enableViewerOriginInputs(!1), this.dispose(() => this.mouseCameraController.enableViewerOriginInputs(!0)), Element.prototype.setPointerCapture = () => {
|
|
@@ -47521,7 +47542,7 @@ const Od = class Od extends k {
|
|
|
47521
47542
|
};
|
|
47522
47543
|
g(Od, "origin_setPointerCapture", Element.prototype.setPointerCapture);
|
|
47523
47544
|
let hf = Od;
|
|
47524
|
-
class
|
|
47545
|
+
class $5 extends k {
|
|
47525
47546
|
constructor(e) {
|
|
47526
47547
|
super();
|
|
47527
47548
|
g(this, "_enabled", this.dv(U(!1)));
|
|
@@ -47550,11 +47571,11 @@ class W5 extends k {
|
|
|
47550
47571
|
return this._mouseResetting;
|
|
47551
47572
|
}
|
|
47552
47573
|
}
|
|
47553
|
-
class
|
|
47574
|
+
class q5 extends k {
|
|
47554
47575
|
constructor(e) {
|
|
47555
47576
|
super();
|
|
47556
47577
|
g(this, "viewer");
|
|
47557
|
-
g(this, "_mouseCameraController", this.dv(new
|
|
47578
|
+
g(this, "_mouseCameraController", this.dv(new $5(this)));
|
|
47558
47579
|
g(this, "_keyboardCameraController", this.dv(new Dd(this)));
|
|
47559
47580
|
if (this._viewer = e, !this._viewer.viewer) throw new Error("Cesium.Viewer不存在!");
|
|
47560
47581
|
this.viewer = this._viewer.viewer;
|
|
@@ -47625,7 +47646,7 @@ function op(t, i, e, s = void 0) {
|
|
|
47625
47646
|
} else
|
|
47626
47647
|
n.lookUp(d);
|
|
47627
47648
|
}
|
|
47628
|
-
class
|
|
47649
|
+
class X5 extends k {
|
|
47629
47650
|
constructor(i, e) {
|
|
47630
47651
|
super();
|
|
47631
47652
|
const s = e.viewer;
|
|
@@ -47684,7 +47705,7 @@ class us extends k {
|
|
|
47684
47705
|
};
|
|
47685
47706
|
this.d(r);
|
|
47686
47707
|
const a = () => {
|
|
47687
|
-
r(), o.enabled && (n = new
|
|
47708
|
+
r(), o.enabled && (n = new X5(o, e));
|
|
47688
47709
|
};
|
|
47689
47710
|
a(), this.d(o.enabledChanged.don(a)), this.d(o.resetWithCameraEvent.don((l) => {
|
|
47690
47711
|
if (!e.actived) return;
|
|
@@ -47739,9 +47760,9 @@ class ic extends k {
|
|
|
47739
47760
|
s(), this.d(this._geoPolylinePath.currentPositionChanged.don(s)), this.d(this._geoPolylinePath.currentRotationChanged.don(s)), this.dispose(M([this._geoCameraController, "enabled"], [this, "enabled"])), this.dispose(M([this._geoCameraController, "viewDistance"], [this, "viewDistance"])), this.dispose(M([this._geoCameraController, "offsetHeight"], [this, "offsetHeight"])), this.dispose(M([this._geoCameraController, "offsetRotation"], [this, "offsetRotation"])), this.dispose(P([this._geoCameraController, "enabledRotationInput"], [this, "enabledRotationInput"])), this.dispose(P([this._geoCameraController, "enabledScaleInput"], [this, "enabledScaleInput"])), this.dv(new he(this.lineModeChanged, () => {
|
|
47740
47761
|
if (this.lineMode !== void 0) {
|
|
47741
47762
|
if (this.lineMode === "auto")
|
|
47742
|
-
return new
|
|
47763
|
+
return new Y5(this, e);
|
|
47743
47764
|
if (this.lineMode === "manual")
|
|
47744
|
-
return new
|
|
47765
|
+
return new Z5(this, e);
|
|
47745
47766
|
}
|
|
47746
47767
|
}));
|
|
47747
47768
|
}
|
|
@@ -47778,13 +47799,13 @@ class ic extends k {
|
|
|
47778
47799
|
});
|
|
47779
47800
|
})(ic || (ic = {}));
|
|
47780
47801
|
ae(ic.prototype, ic.createDefaultProps);
|
|
47781
|
-
class
|
|
47802
|
+
class Y5 extends k {
|
|
47782
47803
|
constructor(i, e) {
|
|
47783
47804
|
if (super(), !e.viewer) throw new Error("viewer is undefined");
|
|
47784
47805
|
i.offsetRotation = [-90, 0, 0];
|
|
47785
47806
|
}
|
|
47786
47807
|
}
|
|
47787
|
-
class
|
|
47808
|
+
class Z5 extends k {
|
|
47788
47809
|
constructor(i, e) {
|
|
47789
47810
|
if (super(), !e.viewer) throw new Error("viewer is undefined");
|
|
47790
47811
|
const o = (n) => {
|
|
@@ -47793,7 +47814,7 @@ class X5 extends k {
|
|
|
47793
47814
|
this.dispose(e.keyDownEvent.don(o)), this.dispose(e.keyUpEvent.don(o));
|
|
47794
47815
|
}
|
|
47795
47816
|
}
|
|
47796
|
-
class
|
|
47817
|
+
class Q5 extends k {
|
|
47797
47818
|
constructor(i, e) {
|
|
47798
47819
|
super();
|
|
47799
47820
|
const s = e.positionPropertyName ?? "position", o = e.positionChangedPropertyName ?? s + "Changed", n = e.rotationPropertyName ?? "rotation", r = e.rotationChangedPropertyName ?? n + "Changed", a = (e.positionTracking ?? !0) && Reflect.has(i, s) && Reflect.has(i, o), l = (e.rotationTracking ?? !0) && Reflect.has(i, n) && Reflect.has(i, r);
|
|
@@ -47817,10 +47838,10 @@ class Y5 extends k {
|
|
|
47817
47838
|
}
|
|
47818
47839
|
}
|
|
47819
47840
|
}
|
|
47820
|
-
class
|
|
47841
|
+
class K5 extends k {
|
|
47821
47842
|
constructor(i, e) {
|
|
47822
47843
|
super();
|
|
47823
|
-
const s = this.dv(new
|
|
47844
|
+
const s = this.dv(new zi());
|
|
47824
47845
|
s.id = i;
|
|
47825
47846
|
const o = this.dv(F(
|
|
47826
47847
|
e.enabledChanged,
|
|
@@ -47835,7 +47856,7 @@ class Z5 extends k {
|
|
|
47835
47856
|
this.disposeVar(new he(o, () => {
|
|
47836
47857
|
const { sceneObject: n } = s;
|
|
47837
47858
|
if (!(!e.enabled || !n))
|
|
47838
|
-
return new
|
|
47859
|
+
return new Q5(n, e);
|
|
47839
47860
|
}));
|
|
47840
47861
|
}
|
|
47841
47862
|
}
|
|
@@ -47845,7 +47866,7 @@ class sc extends k {
|
|
|
47845
47866
|
g(this, "_geoCameraController");
|
|
47846
47867
|
this._geoCameraController = this.dv(new us(e)), this.d(M([this._geoCameraController, "enabled"], [this, "enabled"])), this.dv(new he(this.sceneObjectIdChanged, () => {
|
|
47847
47868
|
if (this.sceneObjectId)
|
|
47848
|
-
return new
|
|
47869
|
+
return new K5(this.sceneObjectId, this);
|
|
47849
47870
|
}));
|
|
47850
47871
|
}
|
|
47851
47872
|
get geoCameraController() {
|
|
@@ -47865,7 +47886,7 @@ class sc extends k {
|
|
|
47865
47886
|
});
|
|
47866
47887
|
})(sc || (sc = {}));
|
|
47867
47888
|
ae(sc.prototype, sc.createDefaultProps);
|
|
47868
|
-
class
|
|
47889
|
+
class J5 extends k {
|
|
47869
47890
|
constructor(e) {
|
|
47870
47891
|
super();
|
|
47871
47892
|
/**
|
|
@@ -47951,7 +47972,7 @@ class Q5 extends k {
|
|
|
47951
47972
|
this._running && (this._eventDisposer && (this._eventDisposer(), this._eventDisposer = void 0), this._running = !1);
|
|
47952
47973
|
}
|
|
47953
47974
|
}
|
|
47954
|
-
class
|
|
47975
|
+
class j5 extends k {
|
|
47955
47976
|
constructor(e) {
|
|
47956
47977
|
super();
|
|
47957
47978
|
g(this, "_height", this.dv(U(1e7)));
|
|
@@ -47961,7 +47982,7 @@ class K5 extends k {
|
|
|
47961
47982
|
this._czmViewer = e;
|
|
47962
47983
|
const s = this._czmViewer.viewer;
|
|
47963
47984
|
if (!s) throw new Error("未初始化viewer");
|
|
47964
|
-
this._inner = this.dv(new
|
|
47985
|
+
this._inner = this.dv(new J5(s)), this._inner.leftDownCancel = !1;
|
|
47965
47986
|
{
|
|
47966
47987
|
const o = () => {
|
|
47967
47988
|
this._inner.height = this.height, this._inner.cycle = this.cycle, this._inner.latitude = this.latitude * Math.PI / 180;
|
|
@@ -48027,7 +48048,7 @@ class K5 extends k {
|
|
|
48027
48048
|
return this._inner.cancel();
|
|
48028
48049
|
}
|
|
48029
48050
|
}
|
|
48030
|
-
class
|
|
48051
|
+
class eO extends k {
|
|
48031
48052
|
constructor(e) {
|
|
48032
48053
|
super();
|
|
48033
48054
|
/**
|
|
@@ -48202,7 +48223,7 @@ class J5 extends k {
|
|
|
48202
48223
|
this.viewer.camera.lookAtTransform(h.Matrix4.IDENTITY), this._eventDisposer && (this._eventDisposer(), this._eventDisposer = void 0), this._running = !1;
|
|
48203
48224
|
}
|
|
48204
48225
|
}
|
|
48205
|
-
class
|
|
48226
|
+
class tO extends k {
|
|
48206
48227
|
constructor(e) {
|
|
48207
48228
|
super();
|
|
48208
48229
|
/**
|
|
@@ -48249,7 +48270,7 @@ class j5 extends k {
|
|
|
48249
48270
|
this._czmViewer = e;
|
|
48250
48271
|
const s = this._czmViewer.viewer;
|
|
48251
48272
|
if (!s) throw new Error("viewer is undefined");
|
|
48252
|
-
this._inner = this.dv(new
|
|
48273
|
+
this._inner = this.dv(new eO(s));
|
|
48253
48274
|
{
|
|
48254
48275
|
const o = () => {
|
|
48255
48276
|
this.inner.distance = this.distance, this.inner.cycle = this.cycle, this.inner.position = this.position, this.inner.heading = this.heading, this.inner.pitch = this.pitch;
|
|
@@ -48312,7 +48333,7 @@ class j5 extends k {
|
|
|
48312
48333
|
return this._inner.cancel();
|
|
48313
48334
|
}
|
|
48314
48335
|
}
|
|
48315
|
-
class
|
|
48336
|
+
class iO extends k {
|
|
48316
48337
|
constructor(e) {
|
|
48317
48338
|
super();
|
|
48318
48339
|
g(this, "_firstPersonController");
|
|
@@ -48323,7 +48344,7 @@ class eO extends k {
|
|
|
48323
48344
|
g(this, "_handler");
|
|
48324
48345
|
this._viewer = e;
|
|
48325
48346
|
{
|
|
48326
|
-
this._firstPersonController = this.dv(new
|
|
48347
|
+
this._firstPersonController = this.dv(new q5(e)), this.d(this._viewer.keyDownEvent.don((s) => this._firstPersonController.keyboardCameraController.keyDown(s))), this.d(this._viewer.keyUpEvent.don((s) => this._firstPersonController.keyboardCameraController.keyUp(s)));
|
|
48327
48348
|
{
|
|
48328
48349
|
const { subContainer: s } = this._viewer;
|
|
48329
48350
|
if (!s) throw new Error("_firstPersonControllerInit error!");
|
|
@@ -48335,7 +48356,7 @@ class eO extends k {
|
|
|
48335
48356
|
(s = this._viewer.subContainer) == null || s.focus();
|
|
48336
48357
|
}));
|
|
48337
48358
|
}
|
|
48338
|
-
this._rotateGlobe = this.dv(new
|
|
48359
|
+
this._rotateGlobe = this.dv(new j5(e)), this._rotatePoint = this.dv(new tO(e)), this._followController = this.dv(new sc(e)), this._pathCameraController = this.dv(new ic(e));
|
|
48339
48360
|
}
|
|
48340
48361
|
get firstPersonController() {
|
|
48341
48362
|
return this._firstPersonController;
|
|
@@ -48439,7 +48460,7 @@ class eO extends k {
|
|
|
48439
48460
|
]);
|
|
48440
48461
|
}
|
|
48441
48462
|
}
|
|
48442
|
-
const
|
|
48463
|
+
const sO = [
|
|
48443
48464
|
{
|
|
48444
48465
|
slice: -1,
|
|
48445
48466
|
brightness: 1,
|
|
@@ -49113,7 +49134,7 @@ const tO = [
|
|
|
49113
49134
|
]
|
|
49114
49135
|
}
|
|
49115
49136
|
];
|
|
49116
|
-
class
|
|
49137
|
+
class oO extends k {
|
|
49117
49138
|
constructor(e) {
|
|
49118
49139
|
super();
|
|
49119
49140
|
g(this, "_show", this.dv(U(!1)));
|
|
@@ -49139,7 +49160,7 @@ class iO extends k {
|
|
|
49139
49160
|
});
|
|
49140
49161
|
(() => {
|
|
49141
49162
|
o.removeAll();
|
|
49142
|
-
for (let a of
|
|
49163
|
+
for (let a of sO)
|
|
49143
49164
|
o.add(n(a));
|
|
49144
49165
|
})();
|
|
49145
49166
|
}
|
|
@@ -49206,7 +49227,7 @@ class oc extends k {
|
|
|
49206
49227
|
});
|
|
49207
49228
|
})(oc || (oc = {}));
|
|
49208
49229
|
ae(oc.prototype, oc.createDefaultProps);
|
|
49209
|
-
const
|
|
49230
|
+
const nO = `
|
|
49210
49231
|
float getDistance(sampler2D depthTexture, vec2 texCoords)
|
|
49211
49232
|
{
|
|
49212
49233
|
float depth = czm_unpackDepth(texture(depthTexture, texCoords));
|
|
@@ -49243,7 +49264,7 @@ const sO = `
|
|
|
49243
49264
|
out_FragColor = alphaBlend(finalFogColor, sceneColor);
|
|
49244
49265
|
}
|
|
49245
49266
|
`;
|
|
49246
|
-
class
|
|
49267
|
+
class rO extends k {
|
|
49247
49268
|
constructor(e) {
|
|
49248
49269
|
super();
|
|
49249
49270
|
g(this, "_show", this.dv(U(!1)));
|
|
@@ -49260,7 +49281,7 @@ class oO extends k {
|
|
|
49260
49281
|
const n = () => {
|
|
49261
49282
|
o(), (this.show ?? !0) && (this.postProcess || (this.postProcess = new h.PostProcessStage({
|
|
49262
49283
|
name: "earthsdk3_fog",
|
|
49263
|
-
fragmentShader:
|
|
49284
|
+
fragmentShader: nO,
|
|
49264
49285
|
uniforms: {
|
|
49265
49286
|
fogByDistance: new h.Cartesian4(10, 0, 1e3, 0.9),
|
|
49266
49287
|
//TODO:后续通过这里设置雾0~1的参数;
|
|
@@ -49280,7 +49301,7 @@ class oO extends k {
|
|
|
49280
49301
|
return this._show.changed;
|
|
49281
49302
|
}
|
|
49282
49303
|
}
|
|
49283
|
-
const
|
|
49304
|
+
const aO = `
|
|
49284
49305
|
uniform sampler2D colorTexture;
|
|
49285
49306
|
in vec2 v_textureCoordinates;
|
|
49286
49307
|
|
|
@@ -49308,7 +49329,7 @@ void main(void){
|
|
|
49308
49329
|
out_FragColor = mix(texture(colorTexture, v_textureCoordinates), vec4(c,1), 0.5);
|
|
49309
49330
|
}
|
|
49310
49331
|
`;
|
|
49311
|
-
class
|
|
49332
|
+
class lO extends k {
|
|
49312
49333
|
constructor(e) {
|
|
49313
49334
|
super();
|
|
49314
49335
|
g(this, "_show", this.dv(U(!1)));
|
|
@@ -49325,7 +49346,7 @@ class rO extends k {
|
|
|
49325
49346
|
const n = () => {
|
|
49326
49347
|
o(), (this.show ?? !0) && (this.rainPostProcess || (this.rainPostProcess = new h.PostProcessStage({
|
|
49327
49348
|
name: "earthsdk3_rain",
|
|
49328
|
-
fragmentShader:
|
|
49349
|
+
fragmentShader: aO
|
|
49329
49350
|
//TODO:后续需要0~1控制
|
|
49330
49351
|
}), s.scene.postProcessStages.add(this.rainPostProcess)));
|
|
49331
49352
|
};
|
|
@@ -49341,7 +49362,7 @@ class rO extends k {
|
|
|
49341
49362
|
return this._show.changed;
|
|
49342
49363
|
}
|
|
49343
49364
|
}
|
|
49344
|
-
const
|
|
49365
|
+
const hO = `
|
|
49345
49366
|
uniform sampler2D colorTexture; //输入的场景渲染照片
|
|
49346
49367
|
in vec2 v_textureCoordinates;
|
|
49347
49368
|
|
|
@@ -49372,7 +49393,7 @@ void main(void){
|
|
|
49372
49393
|
finalColor=(vec3(c)); //屏幕上雪的颜色
|
|
49373
49394
|
out_FragColor = mix(texture(colorTexture, v_textureCoordinates), vec4(finalColor,1), 0.5); //将雪和三维场景融合
|
|
49374
49395
|
}
|
|
49375
|
-
`,
|
|
49396
|
+
`, cO = `
|
|
49376
49397
|
#extension GL_OES_standard_derivatives : enable
|
|
49377
49398
|
uniform sampler2D colorTexture;
|
|
49378
49399
|
uniform sampler2D depthTexture;
|
|
@@ -49413,7 +49434,7 @@ void main() {
|
|
|
49413
49434
|
out_FragColor = mix(color, vec4(1.0), dotNumWC*alpha);
|
|
49414
49435
|
}
|
|
49415
49436
|
`;
|
|
49416
|
-
class
|
|
49437
|
+
class dO extends k {
|
|
49417
49438
|
constructor(e) {
|
|
49418
49439
|
super();
|
|
49419
49440
|
g(this, "_show", this.dv(U(!1)));
|
|
@@ -49443,10 +49464,10 @@ class hO extends k {
|
|
|
49443
49464
|
const c = () => {
|
|
49444
49465
|
r(), a(), (this.show ?? !0) && (o = new h.PostProcessStage({
|
|
49445
49466
|
name: "earthsdk3_snow",
|
|
49446
|
-
fragmentShader:
|
|
49467
|
+
fragmentShader: hO
|
|
49447
49468
|
}), s.scene.postProcessStages.add(o), n = new h.PostProcessStage({
|
|
49448
49469
|
name: "earthsdk3_snowCover",
|
|
49449
|
-
fragmentShader:
|
|
49470
|
+
fragmentShader: cO,
|
|
49450
49471
|
uniforms: {
|
|
49451
49472
|
alpha: this.alpha
|
|
49452
49473
|
}
|
|
@@ -49473,7 +49494,7 @@ class hO extends k {
|
|
|
49473
49494
|
return this._alpha.changed;
|
|
49474
49495
|
}
|
|
49475
49496
|
}
|
|
49476
|
-
class
|
|
49497
|
+
class uO extends k {
|
|
49477
49498
|
constructor(e) {
|
|
49478
49499
|
super();
|
|
49479
49500
|
g(this, "rain");
|
|
@@ -49483,7 +49504,7 @@ class cO extends k {
|
|
|
49483
49504
|
g(this, "depthOfField");
|
|
49484
49505
|
const s = e.viewer;
|
|
49485
49506
|
if (!s) throw new Error("Cesium.Viewer不存在!");
|
|
49486
|
-
const o = this.dv(new
|
|
49507
|
+
const o = this.dv(new lO(e)), n = this.dv(new oO(e)), r = this.dv(new dO(e)), a = this.dv(new rO(e)), l = this.dv(new oc(e));
|
|
49487
49508
|
this.rain = o, this.cloud = n, this.snow = r, this.fog = a, this.depthOfField = l;
|
|
49488
49509
|
{
|
|
49489
49510
|
const { scene: c } = s, d = () => {
|
|
@@ -49503,12 +49524,12 @@ class cO extends k {
|
|
|
49503
49524
|
}
|
|
49504
49525
|
}
|
|
49505
49526
|
}
|
|
49506
|
-
const cf = h.BoundingRectangle,
|
|
49527
|
+
const cf = h.BoundingRectangle, pO = h.Color, ho = h.defined, fO = h.destroyObject, j0 = h.DeveloperError, gO = h.RenderState, mO = h.ShaderSource, vO = h._shadersViewportQuadFS, yO = h.BlendingState, ew = h.Material;
|
|
49507
49528
|
function su(t) {
|
|
49508
49529
|
this.show = !0;
|
|
49509
49530
|
let i;
|
|
49510
49531
|
ho(i) || (i = new cf()), this.rectangle = cf.clone(i), ho(t) || (t = ew.fromType(ew.ColorType, {
|
|
49511
|
-
color: new
|
|
49532
|
+
color: new pO(1, 1, 1, 1)
|
|
49512
49533
|
})), this.material = t, this._material = void 0, this._overlayCommand = void 0, this._rs = void 0;
|
|
49513
49534
|
}
|
|
49514
49535
|
su.prototype.update = function(t) {
|
|
@@ -49519,8 +49540,8 @@ su.prototype.update = function(t) {
|
|
|
49519
49540
|
throw new j0("this.rectangle must be defined.");
|
|
49520
49541
|
this.rectangle.width = t.context.drawingBufferWidth, this.rectangle.height = t.context.drawingBufferHeight;
|
|
49521
49542
|
var i = this._rs;
|
|
49522
|
-
(!ho(i) || !cf.equals(i.viewport, this.rectangle)) && (this._rs =
|
|
49523
|
-
blending:
|
|
49543
|
+
(!ho(i) || !cf.equals(i.viewport, this.rectangle)) && (this._rs = gO.fromCache({
|
|
49544
|
+
blending: yO.ALPHA_BLEND,
|
|
49524
49545
|
viewport: this.rectangle
|
|
49525
49546
|
}), this._overlayCommand && (this._overlayCommand.renderState = this._rs));
|
|
49526
49547
|
var e = t.passes;
|
|
@@ -49528,8 +49549,8 @@ su.prototype.update = function(t) {
|
|
|
49528
49549
|
var s = t.context;
|
|
49529
49550
|
if (this._material !== this.material || !ho(this._overlayCommand)) {
|
|
49530
49551
|
this._material = this.material, ho(this._overlayCommand) && this._overlayCommand.shaderProgram.destroy();
|
|
49531
|
-
var o = new
|
|
49532
|
-
sources: [this._material.shaderSource,
|
|
49552
|
+
var o = new mO({
|
|
49553
|
+
sources: [this._material.shaderSource, vO]
|
|
49533
49554
|
});
|
|
49534
49555
|
this._overlayCommand = s.createViewportQuadCommand(o, {
|
|
49535
49556
|
renderState: this._rs,
|
|
@@ -49546,7 +49567,7 @@ su.prototype.isDestroyed = function() {
|
|
|
49546
49567
|
return !1;
|
|
49547
49568
|
};
|
|
49548
49569
|
su.prototype.destroy = function() {
|
|
49549
|
-
return ho(this._overlayCommand) && (this._overlayCommand.shaderProgram = this._overlayCommand.shaderProgram && this._overlayCommand.shaderProgram.destroy()),
|
|
49570
|
+
return ho(this._overlayCommand) && (this._overlayCommand.shaderProgram = this._overlayCommand.shaderProgram && this._overlayCommand.shaderProgram.destroy()), fO(this);
|
|
49550
49571
|
};
|
|
49551
49572
|
function tw(t) {
|
|
49552
49573
|
const { positiveX: i, negativeX: e, positiveY: s, negativeY: o, positiveZ: n, negativeZ: r } = t;
|
|
@@ -49563,7 +49584,7 @@ function tw(t) {
|
|
|
49563
49584
|
negativeZ: oe.context.getStrFromEnv(r)
|
|
49564
49585
|
};
|
|
49565
49586
|
}
|
|
49566
|
-
const
|
|
49587
|
+
const wO = `in vec3 v_outerPositionWC;
|
|
49567
49588
|
|
|
49568
49589
|
uniform vec3 u_hsbShift;
|
|
49569
49590
|
|
|
@@ -49642,15 +49663,15 @@ void main (void)
|
|
|
49642
49663
|
out_FragColor = color;
|
|
49643
49664
|
// ------------------ skybox vtxf end -------------------
|
|
49644
49665
|
}
|
|
49645
|
-
`, eo = h.Cartesian3, Ps = h.defined,
|
|
49666
|
+
`, eo = h.Cartesian3, Ps = h.defined, CO = h.destroyObject, _O = h.Ellipsoid, iw = h.EllipsoidGeometry, PO = h.GeometryPipeline, Qn = h.Math, As = h.Matrix4, xO = h.VertexFormat, bO = h.BufferUsage, SO = h.DrawCommand, TO = h.RenderState, EO = h.ShaderProgram, sw = h.ShaderSource, AO = h.VertexArray, ow = h._shadersAtmosphereCommon, nw = h._shadersSkyAtmosphereCommon, MO = h._shadersSkyAtmosphereVS, IO = h.Axis, RO = h.BlendingState, DO = h.CullFace, rw = h.SceneMode, Xc = h.Transforms, kO = h.Matrix3, aw = h.DeveloperError, FO = h.loadCubeMap, zO = h.CubeMap;
|
|
49646
49667
|
function oa(t, i) {
|
|
49647
|
-
t = t ??
|
|
49668
|
+
t = t ?? _O.WGS84, this.show = !0, this.sources = i, this.perFragmentAtmosphere = !1, this._ellipsoid = t;
|
|
49648
49669
|
const e = 1.025, s = eo.multiplyByScalar(
|
|
49649
49670
|
t.radii,
|
|
49650
49671
|
e,
|
|
49651
49672
|
new eo()
|
|
49652
49673
|
);
|
|
49653
|
-
this._scaleMatrix = As.fromScale(s), this._modelMatrix = new As(), this._command = new
|
|
49674
|
+
this._scaleMatrix = As.fromScale(s), this._modelMatrix = new As(), this._command = new SO({
|
|
49654
49675
|
owner: this,
|
|
49655
49676
|
modelMatrix: this._modelMatrix
|
|
49656
49677
|
}), this._spSkyFromSpace = void 0, this._spSkyFromAtmosphere = void 0, this._flags = void 0, this.atmosphereLightIntensity = 50, this.atmosphereRayleighCoefficient = new eo(55e-7, 13e-6, 284e-7), this.atmosphereMieCoefficient = new eo(21e-6, 21e-6, 21e-6), this.atmosphereRayleighScaleHeight = 1e4, this.atmosphereMieScaleHeight = 3200, this.atmosphereMieAnisotropy = 0.9, this.hueShift = 0, this.saturationShift = 0, this.brightnessShift = 0, this._hueSaturationBrightness = new eo();
|
|
@@ -49683,7 +49704,7 @@ function oa(t, i) {
|
|
|
49683
49704
|
return n.atmosphereMieAnisotropy;
|
|
49684
49705
|
},
|
|
49685
49706
|
u_rotateMatrix: function() {
|
|
49686
|
-
return n._scratchRoateMatrix = n._scratchRoateMatrix || new
|
|
49707
|
+
return n._scratchRoateMatrix = n._scratchRoateMatrix || new kO(), As.getMatrix3(n._eunMatrix || As.IDENTITY, n._scratchRoateMatrix);
|
|
49687
49708
|
},
|
|
49688
49709
|
u_cubeMap: function() {
|
|
49689
49710
|
return n._cubeMap;
|
|
@@ -49727,9 +49748,9 @@ oa.prototype.update = function(t, i) {
|
|
|
49727
49748
|
throw new aw(
|
|
49728
49749
|
"this.sources properties must all be the same type."
|
|
49729
49750
|
);
|
|
49730
|
-
typeof o.positiveX == "string" ?
|
|
49751
|
+
typeof o.positiveX == "string" ? FO(m, this._sources).then(function(v) {
|
|
49731
49752
|
s._cubeMap = s._cubeMap && s._cubeMap.destroy(), s._cubeMap = v;
|
|
49732
|
-
}) : (this._cubeMap = this._cubeMap && this._cubeMap.destroy(), this._cubeMap = new
|
|
49753
|
+
}) : (this._cubeMap = this._cubeMap && this._cubeMap.destroy(), this._cubeMap = new zO({
|
|
49733
49754
|
context: m,
|
|
49734
49755
|
source: o
|
|
49735
49756
|
}));
|
|
@@ -49740,7 +49761,7 @@ oa.prototype.update = function(t, i) {
|
|
|
49740
49761
|
np
|
|
49741
49762
|
), r = As.multiplyTransformation(
|
|
49742
49763
|
n,
|
|
49743
|
-
|
|
49764
|
+
IO.Y_UP_TO_Z_UP,
|
|
49744
49765
|
np
|
|
49745
49766
|
), a = As.multiply(
|
|
49746
49767
|
this._scaleMatrix,
|
|
@@ -49748,27 +49769,27 @@ oa.prototype.update = function(t, i) {
|
|
|
49748
49769
|
np
|
|
49749
49770
|
);
|
|
49750
49771
|
As.clone(a, this._modelMatrix);
|
|
49751
|
-
const l = t.context, c =
|
|
49772
|
+
const l = t.context, c = LO(this), d = t.globeTranslucencyState.translucent, u = this.perFragmentAtmosphere || d || !Ps(i) || !i.show, p = this._command;
|
|
49752
49773
|
if (Xc.eastUpNorthToFixedFrame = Xc.eastUpNorthToFixedFrame || Xc.localFrameToFixedFrameGenerator("east", "up"), this._eunMatrix = Xc.eastUpNorthToFixedFrame(t.camera._positionWC, void 0, this._eunMatrix), !Ps(p.vertexArray)) {
|
|
49753
49774
|
const m = iw.createGeometry(
|
|
49754
49775
|
new iw({
|
|
49755
49776
|
radii: new eo(1, 1, 1),
|
|
49756
49777
|
slicePartitions: 256,
|
|
49757
49778
|
stackPartitions: 256,
|
|
49758
|
-
vertexFormat:
|
|
49779
|
+
vertexFormat: xO.POSITION_ONLY
|
|
49759
49780
|
})
|
|
49760
49781
|
);
|
|
49761
|
-
p.vertexArray =
|
|
49782
|
+
p.vertexArray = AO.fromGeometry({
|
|
49762
49783
|
context: l,
|
|
49763
49784
|
geometry: m,
|
|
49764
|
-
attributeLocations:
|
|
49765
|
-
bufferUsage:
|
|
49766
|
-
}), p.renderState =
|
|
49785
|
+
attributeLocations: PO.createAttributeLocations(m),
|
|
49786
|
+
bufferUsage: bO.STATIC_DRAW
|
|
49787
|
+
}), p.renderState = TO.fromCache({
|
|
49767
49788
|
cull: {
|
|
49768
49789
|
enabled: !0,
|
|
49769
|
-
face:
|
|
49790
|
+
face: DO.FRONT
|
|
49770
49791
|
},
|
|
49771
|
-
blending:
|
|
49792
|
+
blending: RO.ALPHA_BLEND,
|
|
49772
49793
|
depthMask: !1
|
|
49773
49794
|
});
|
|
49774
49795
|
}
|
|
@@ -49779,12 +49800,12 @@ oa.prototype.update = function(t, i) {
|
|
|
49779
49800
|
c && m.push("COLOR_CORRECT"), u && m.push("PER_FRAGMENT_ATMOSPHERE"), d && m.push("GLOBE_TRANSLUCENT");
|
|
49780
49801
|
const v = new sw({
|
|
49781
49802
|
defines: m,
|
|
49782
|
-
sources: [ow, nw,
|
|
49803
|
+
sources: [ow, nw, MO]
|
|
49783
49804
|
}), y = new sw({
|
|
49784
49805
|
defines: m,
|
|
49785
|
-
sources: [ow, nw,
|
|
49806
|
+
sources: [ow, nw, wO]
|
|
49786
49807
|
});
|
|
49787
|
-
this._spSkyAtmosphere =
|
|
49808
|
+
this._spSkyAtmosphere = EO.fromCache({
|
|
49788
49809
|
context: l,
|
|
49789
49810
|
vertexShaderSource: v,
|
|
49790
49811
|
fragmentShaderSource: y
|
|
@@ -49793,19 +49814,19 @@ oa.prototype.update = function(t, i) {
|
|
|
49793
49814
|
if (Ps(this._cubeMap))
|
|
49794
49815
|
return p;
|
|
49795
49816
|
};
|
|
49796
|
-
function
|
|
49797
|
-
return !(
|
|
49817
|
+
function LO(t) {
|
|
49818
|
+
return !(Qn.equalsEpsilon(
|
|
49798
49819
|
t.hueShift,
|
|
49799
49820
|
0,
|
|
49800
|
-
|
|
49801
|
-
) &&
|
|
49821
|
+
Qn.EPSILON7
|
|
49822
|
+
) && Qn.equalsEpsilon(
|
|
49802
49823
|
t.saturationShift,
|
|
49803
49824
|
0,
|
|
49804
|
-
|
|
49805
|
-
) &&
|
|
49825
|
+
Qn.EPSILON7
|
|
49826
|
+
) && Qn.equalsEpsilon(
|
|
49806
49827
|
t.brightnessShift,
|
|
49807
49828
|
0,
|
|
49808
|
-
|
|
49829
|
+
Qn.EPSILON7
|
|
49809
49830
|
));
|
|
49810
49831
|
}
|
|
49811
49832
|
oa.prototype.isDestroyed = function() {
|
|
@@ -49813,7 +49834,7 @@ oa.prototype.isDestroyed = function() {
|
|
|
49813
49834
|
};
|
|
49814
49835
|
oa.prototype.destroy = function() {
|
|
49815
49836
|
const t = this._command;
|
|
49816
|
-
return t.vertexArray = t.vertexArray && t.vertexArray.destroy(), this._spSkyAtmosphere = this._spSkyAtmosphere && this._spSkyAtmosphere.destroy(), this._cubeMap = this._cubeMap && this._cubeMap.destroy(),
|
|
49837
|
+
return t.vertexArray = t.vertexArray && t.vertexArray.destroy(), this._spSkyAtmosphere = this._spSkyAtmosphere && this._spSkyAtmosphere.destroy(), this._cubeMap = this._cubeMap && this._cubeMap.destroy(), CO(this);
|
|
49817
49838
|
};
|
|
49818
49839
|
const ur = class ur extends k {
|
|
49819
49840
|
constructor(e, s) {
|
|
@@ -49825,7 +49846,7 @@ const ur = class ur extends k {
|
|
|
49825
49846
|
g(this, "_reu", (e, s) => Hi(this, e, s));
|
|
49826
49847
|
this._czmViewer = e, this._viewer = s;
|
|
49827
49848
|
const o = this.viewer, n = this.czmViewer, r = o.scene.screenSpaceCameraController;
|
|
49828
|
-
this._navigationManager = this.dv(new
|
|
49849
|
+
this._navigationManager = this.dv(new iO(n)), this._envManager = this.dv(new uO(n)), this.disposeVar(new he(this._czmViewer.xbsjUseBackgroundChanged, () => {
|
|
49829
49850
|
if (this._czmViewer.xbsjUseBackground)
|
|
49830
49851
|
return new ur.BackGroundResetting(this._czmViewer, this._viewer);
|
|
49831
49852
|
})), this.disposeVar(new he(this._czmViewer.xbsjLocalBoxSourcesChanged, () => {
|
|
@@ -49935,7 +49956,7 @@ const ur = class ur extends k {
|
|
|
49935
49956
|
yf(a.globe.clippingPlanes, m);
|
|
49936
49957
|
}), f("sceneGlobeClippingPolygons", (m) => {
|
|
49937
49958
|
a.globe.clippingPolygons = m ? wf(m) : void 0;
|
|
49938
|
-
}), p("sceneSunGlowFactor", (m) => a.sun && (a.sun.glowFactor = m)), p("moon", (m) => a.moon && (a.moon.show = m)), p("sceneMoonOnlySunLighting", (m) => a.moon && (a.moon.onlySunLighting = m)), p("sceneMoonTextureUrl", (m) => a.moon && (a.moon.textureUrl = oe.context.getStrFromEnv(m))), f("sceneSkyBoxShow", (m) => a._xbsjOriginSkyBox.show = m), p("sceneSkyBoxSources", (m) => a._xbsjOriginSkyBox.sources = m && tw(m)), f("atmosphere", (m) => o.scene._xbsjOriginSkyAtmosphere.show = m), f("sceneBackgroundColor", (m) => o.scene.backgroundColor = de(m)), p("sceneFogEnabled", (m) => a.fog.enabled = m), p("sceneFogDensity", (m) => a.fog.density = m), p("sceneFogScreenSpaceErrorFactor", (m) => a.fog.screenSpaceErrorFactor = m), p("sceneFogMinimumBrightness", (m) => a.fog.minimumBrightness = m), p("sceneDebugShowFramesPerSecond", (m) => a.debugShowFramesPerSecond = m), p("sceneDebugShowCommands", (m) => a.debugShowCommands = m), p("sceneDebugShowFrustums", (m) => a.debugShowFrustums = m), p("sceneDebugShowFrustumPlanes", (m) => a.debugShowFrustumPlanes = m), p("sceneDebugShowDepthFrustum", (m) => a.debugShowDepthFrustum = m), p("sceneGlobeUndergroundColor", (m) => c.undergroundColor = de(m)), p("sceneGlobeUndergroundColorAlphaByDistance", (m) => c.undergroundColorAlphaByDistance =
|
|
49959
|
+
}), p("sceneSunGlowFactor", (m) => a.sun && (a.sun.glowFactor = m)), p("moon", (m) => a.moon && (a.moon.show = m)), p("sceneMoonOnlySunLighting", (m) => a.moon && (a.moon.onlySunLighting = m)), p("sceneMoonTextureUrl", (m) => a.moon && (a.moon.textureUrl = oe.context.getStrFromEnv(m))), f("sceneSkyBoxShow", (m) => a._xbsjOriginSkyBox.show = m), p("sceneSkyBoxSources", (m) => a._xbsjOriginSkyBox.sources = m && tw(m)), f("atmosphere", (m) => o.scene._xbsjOriginSkyAtmosphere.show = m), f("sceneBackgroundColor", (m) => o.scene.backgroundColor = de(m)), p("sceneFogEnabled", (m) => a.fog.enabled = m), p("sceneFogDensity", (m) => a.fog.density = m), p("sceneFogScreenSpaceErrorFactor", (m) => a.fog.screenSpaceErrorFactor = m), p("sceneFogMinimumBrightness", (m) => a.fog.minimumBrightness = m), p("sceneDebugShowFramesPerSecond", (m) => a.debugShowFramesPerSecond = m), p("sceneDebugShowCommands", (m) => a.debugShowCommands = m), p("sceneDebugShowFrustums", (m) => a.debugShowFrustums = m), p("sceneDebugShowFrustumPlanes", (m) => a.debugShowFrustumPlanes = m), p("sceneDebugShowDepthFrustum", (m) => a.debugShowDepthFrustum = m), p("sceneGlobeUndergroundColor", (m) => c.undergroundColor = de(m)), p("sceneGlobeUndergroundColorAlphaByDistance", (m) => c.undergroundColorAlphaByDistance = jo(m)), p("sceneGlobeTranslucencyBackFaceAlphaByDistance", (m) => c.translucency.backFaceAlphaByDistance = m && jo(m)), f("sceneGlobeTranslucencyFrontFaceAlphaByDistance", (m) => c.translucency.frontFaceAlphaByDistance = m && jo(m)), p("sceneGlobeTranslucencyRectangle", (m) => c.translucency.rectangle = ht(m)), p("sceneSplitPosition", (m) => a.splitPosition = cp(m, 0, 1)), p("sceneSsccEnableCollisionDetection", (m) => a.screenSpaceCameraController.enableCollisionDetection = m), p("sceneSsccZoomFactor", (m) => a.screenSpaceCameraController._zoomFactor = m);
|
|
49939
49960
|
{
|
|
49940
49961
|
const m = () => {
|
|
49941
49962
|
o.cesiumInspector && (o.cesiumInspector.container.style.display = n.showCesiumInspector ?? !1 ? "block" : "none");
|
|
@@ -50017,12 +50038,12 @@ g(ur, "LocalSkyBoxResetting", class extends k {
|
|
|
50017
50038
|
}
|
|
50018
50039
|
});
|
|
50019
50040
|
let df = ur;
|
|
50020
|
-
function
|
|
50041
|
+
function OO(t, i, e, s, o) {
|
|
50021
50042
|
var n = h.Cartesian3.subtract(t, e, new h.Cartesian3()), r = h.Cartesian3.dot(n, i);
|
|
50022
50043
|
if (!(r <= 0))
|
|
50023
50044
|
return r * Math.tan(s * 0.5) * 2 / o;
|
|
50024
50045
|
}
|
|
50025
|
-
async function
|
|
50046
|
+
async function BO(t) {
|
|
50026
50047
|
const { viewer: i } = t;
|
|
50027
50048
|
if (!i) return;
|
|
50028
50049
|
const { width: e, height: s } = i.canvas, o = t.quickPickPosition([e * 0.5, s * 0.5]);
|
|
@@ -50034,14 +50055,14 @@ async function LO(t) {
|
|
|
50034
50055
|
const a = i.camera.positionWC, l = i.camera.directionWC, c = i.camera.frustum.fovy;
|
|
50035
50056
|
if (c === void 0) return;
|
|
50036
50057
|
const d = i.canvas.height;
|
|
50037
|
-
return [
|
|
50058
|
+
return [OO(r, l, a, c, d), n];
|
|
50038
50059
|
}
|
|
50039
|
-
const
|
|
50040
|
-
function
|
|
50041
|
-
return -Math.log2(t /
|
|
50060
|
+
const VO = h.Ellipsoid.WGS84.maximumRadius * 2 * Math.PI / 512;
|
|
50061
|
+
function NO(t) {
|
|
50062
|
+
return -Math.log2(t / VO);
|
|
50042
50063
|
}
|
|
50043
50064
|
var rp = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8];
|
|
50044
|
-
function
|
|
50065
|
+
function UO(t) {
|
|
50045
50066
|
const i = t | 0;
|
|
50046
50067
|
if (i < 1 || i > 1e8) return;
|
|
50047
50068
|
let e = -1;
|
|
@@ -50050,7 +50071,7 @@ function VO(t) {
|
|
|
50050
50071
|
const s = i / rp[e - 1] | 0;
|
|
50051
50072
|
return [s * rp[e - 1], s, e];
|
|
50052
50073
|
}
|
|
50053
|
-
class
|
|
50074
|
+
class GO extends k {
|
|
50054
50075
|
constructor() {
|
|
50055
50076
|
super();
|
|
50056
50077
|
// 比例尺的长度,单位是 像素
|
|
@@ -50068,7 +50089,7 @@ class NO extends k {
|
|
|
50068
50089
|
let s, o;
|
|
50069
50090
|
const { lengthInPixels: n, resolution: r } = this;
|
|
50070
50091
|
if (n && r) {
|
|
50071
|
-
const a =
|
|
50092
|
+
const a = UO(n * r);
|
|
50072
50093
|
if (a) {
|
|
50073
50094
|
const [l, c, d] = a;
|
|
50074
50095
|
o = l, s = l / r;
|
|
@@ -50127,23 +50148,23 @@ class NO extends k {
|
|
|
50127
50148
|
return this._computedLengthInStr.changed;
|
|
50128
50149
|
}
|
|
50129
50150
|
}
|
|
50130
|
-
class
|
|
50151
|
+
class WO extends k {
|
|
50131
50152
|
constructor(e) {
|
|
50132
50153
|
super();
|
|
50133
50154
|
g(this, "_enabled", this.dv(U(!0)));
|
|
50134
50155
|
g(this, "_resolution", this.dv(U(void 0)));
|
|
50135
50156
|
g(this, "_center", this.dv(U(void 0)));
|
|
50136
50157
|
g(this, "_zoom", this.dv(U(void 0)));
|
|
50137
|
-
g(this, "_legend", this.dv(new
|
|
50158
|
+
g(this, "_legend", this.dv(new GO()));
|
|
50138
50159
|
this._czmViewer = e;
|
|
50139
50160
|
{
|
|
50140
50161
|
const s = this.dv(ze(async (o) => {
|
|
50141
50162
|
let n, r, a;
|
|
50142
50163
|
await o.promise(yw(1e3));
|
|
50143
|
-
const l = await o.promise(
|
|
50164
|
+
const l = await o.promise(BO(this._czmViewer));
|
|
50144
50165
|
if (l) {
|
|
50145
50166
|
const [c, d] = l;
|
|
50146
|
-
n = c, r =
|
|
50167
|
+
n = c, r = NO(c), a = d;
|
|
50147
50168
|
}
|
|
50148
50169
|
this._resolution.value = n, this._zoom.value = r, this._center.value = a;
|
|
50149
50170
|
}));
|
|
@@ -50201,7 +50222,7 @@ class UO extends k {
|
|
|
50201
50222
|
return (this.legend.computedLengthInMeters ?? -1) / (this.legend.computedLengthInPixels ?? 1);
|
|
50202
50223
|
}
|
|
50203
50224
|
}
|
|
50204
|
-
function
|
|
50225
|
+
function ZB(t, i) {
|
|
50205
50226
|
try {
|
|
50206
50227
|
const e = h.Ellipsoid.WGS84, s = e.scaleToGeodeticSurface(t);
|
|
50207
50228
|
return i = h.Transforms.eastNorthUpToFixedFrame(s, e, i), i;
|
|
@@ -50209,7 +50230,7 @@ function XB(t, i) {
|
|
|
50209
50230
|
return h.Matrix4.clone(h.Matrix4.IDENTITY, i);
|
|
50210
50231
|
}
|
|
50211
50232
|
}
|
|
50212
|
-
const { combine:
|
|
50233
|
+
const { combine: HO } = h, { ShaderDestination: zo } = h, F1 = {
|
|
50213
50234
|
name: "FlattenedPipelineStage"
|
|
50214
50235
|
// Helps with debugging
|
|
50215
50236
|
};
|
|
@@ -50287,13 +50308,13 @@ F1.process = function(t, i, e) {
|
|
|
50287
50308
|
// }
|
|
50288
50309
|
// },
|
|
50289
50310
|
};
|
|
50290
|
-
t.uniformMap =
|
|
50311
|
+
t.uniformMap = HO(
|
|
50291
50312
|
o,
|
|
50292
50313
|
t.uniformMap
|
|
50293
50314
|
);
|
|
50294
50315
|
}
|
|
50295
50316
|
};
|
|
50296
|
-
function
|
|
50317
|
+
function $O() {
|
|
50297
50318
|
Object.defineProperties(h.Model.prototype, {
|
|
50298
50319
|
xbsjFlattened: {
|
|
50299
50320
|
get: function() {
|
|
@@ -50334,7 +50355,7 @@ function WO() {
|
|
|
50334
50355
|
}
|
|
50335
50356
|
});
|
|
50336
50357
|
}
|
|
50337
|
-
function
|
|
50358
|
+
function qO() {
|
|
50338
50359
|
Object.defineProperties(h.Cesium3DTileset.prototype, {
|
|
50339
50360
|
xbsjFlattened: {
|
|
50340
50361
|
get: function() {
|
|
@@ -50370,25 +50391,25 @@ function HO() {
|
|
|
50370
50391
|
}
|
|
50371
50392
|
});
|
|
50372
50393
|
}
|
|
50373
|
-
function
|
|
50394
|
+
function XO() {
|
|
50374
50395
|
const t = h.Model3DTileContent.prototype.update;
|
|
50375
50396
|
h.Model3DTileContent.prototype.update = function(i, e, ...s) {
|
|
50376
50397
|
const o = this._model;
|
|
50377
50398
|
return o.xbsjFlattened = i.xbsjFlattened, o.xbsjElevationMatrix = i.xbsjElevationMatrix, o.xbsjFlattenedBound = i.xbsjFlattenedBound, o.xbsjGetFlattenedTextureFunc = i.xbsjGetFlattenedTextureFunc, t.call(this, i, e, ...s);
|
|
50378
50399
|
};
|
|
50379
50400
|
}
|
|
50380
|
-
function
|
|
50401
|
+
function YO() {
|
|
50381
50402
|
const t = h.ModelSceneGraph.prototype.configurePipeline;
|
|
50382
50403
|
h.ModelSceneGraph.prototype.configurePipeline = function(i, ...e) {
|
|
50383
50404
|
const s = t.call(this, i, ...e), o = this._model, n = this.modelPipelineStages;
|
|
50384
50405
|
return o.xbsjFlattened && n.push(F1), s;
|
|
50385
50406
|
};
|
|
50386
50407
|
}
|
|
50387
|
-
WO();
|
|
50388
|
-
HO();
|
|
50389
50408
|
$O();
|
|
50390
50409
|
qO();
|
|
50391
|
-
|
|
50410
|
+
XO();
|
|
50411
|
+
YO();
|
|
50412
|
+
const ZO = () => ({
|
|
50392
50413
|
// 通用
|
|
50393
50414
|
createCesiumViewerFuncStr: void 0,
|
|
50394
50415
|
flashLighting: void 0,
|
|
@@ -50492,7 +50513,7 @@ const XO = () => ({
|
|
|
50492
50513
|
// firstPersonRotatingSpeed: 0.01,
|
|
50493
50514
|
// firstPersonAlwaysWithCamera: false,
|
|
50494
50515
|
// firstPersonKeyStatusMap: reactJson<{ [k: string]: CzmCameraActionType }>(KeyboardCameraController.defaultKeyStatusMap),
|
|
50495
|
-
}),
|
|
50516
|
+
}), QO = `
|
|
50496
50517
|
#### 示例代码1
|
|
50497
50518
|
\`\`\`
|
|
50498
50519
|
async function initCesiumViewer(container, czmViewer) {
|
|
@@ -50567,7 +50588,7 @@ async function initCesiumViewer(container, czmViewer) {
|
|
|
50567
50588
|
return viewer;
|
|
50568
50589
|
}
|
|
50569
50590
|
\`\`\`
|
|
50570
|
-
`,
|
|
50591
|
+
`, KO = `async function initCesiumViewer(container, czmViewer) {
|
|
50571
50592
|
const viewer = await XE2.g.defaultCreateCesiumViewerFunc(container, czmViewer);
|
|
50572
50593
|
|
|
50573
50594
|
// 若原Czm版权信息展示位置遮挡重要信息,可将以下语句解注释,在别的位置展示
|
|
@@ -50576,7 +50597,7 @@ async function initCesiumViewer(container, czmViewer) {
|
|
|
50576
50597
|
return viewer;
|
|
50577
50598
|
}
|
|
50578
50599
|
`;
|
|
50579
|
-
function
|
|
50600
|
+
function JO() {
|
|
50580
50601
|
const t = "https://gitee.com/mirrors/CesiumJS/blob/main/packages/engine/Source/Core/Ion.js#L7", e = ` 因浏览器同源策略限制,需要用户自行打开网址获取最新的token,点击确定自动打开网址,请不要拦截!
|
|
50581
50602
|
github地址:https://github.com/CesiumGS/cesium/blob/main/packages/engine/Source/Core/Ion.js#L7
|
|
50582
50603
|
gitee地址:${t}
|
|
@@ -50604,7 +50625,7 @@ const Pt = class Pt extends up {
|
|
|
50604
50625
|
this.ad(new cL(this)), this.ad(new dL(this)), this.dv(new he(this.viewerChanged, () => {
|
|
50605
50626
|
if (this.viewer)
|
|
50606
50627
|
return new gL(this);
|
|
50607
|
-
})), this._viewerLegend = this.dv(new
|
|
50628
|
+
})), this._viewerLegend = this.dv(new WO(this)), this._viewerInstance = this.dv(new he(this.viewerChanged, () => {
|
|
50608
50629
|
if (this.viewer)
|
|
50609
50630
|
return new df(this, this.viewer);
|
|
50610
50631
|
})), this.d(this.viewerChanged.don((o) => {
|
|
@@ -50673,7 +50694,7 @@ const Pt = class Pt extends up {
|
|
|
50673
50694
|
return;
|
|
50674
50695
|
const { camera: e } = this.viewer;
|
|
50675
50696
|
return {
|
|
50676
|
-
position:
|
|
50697
|
+
position: Li(e),
|
|
50677
50698
|
rotation: Sa(e)
|
|
50678
50699
|
};
|
|
50679
50700
|
}
|
|
@@ -50736,7 +50757,7 @@ const Pt = class Pt extends up {
|
|
|
50736
50757
|
if (!this.viewer) return;
|
|
50737
50758
|
const { camera: e } = this.viewer;
|
|
50738
50759
|
return {
|
|
50739
|
-
position:
|
|
50760
|
+
position: Li(e),
|
|
50740
50761
|
rotation: Sa(e)
|
|
50741
50762
|
};
|
|
50742
50763
|
}
|
|
@@ -50888,7 +50909,7 @@ const Pt = class Pt extends up {
|
|
|
50888
50909
|
}
|
|
50889
50910
|
//局部坐标转地理坐标
|
|
50890
50911
|
localPositionsToPositions(e, s) {
|
|
50891
|
-
return
|
|
50912
|
+
return tn(e, s);
|
|
50892
50913
|
}
|
|
50893
50914
|
isPointVisible(e) {
|
|
50894
50915
|
if (!this.viewer) return !1;
|
|
@@ -50904,7 +50925,7 @@ const Pt = class Pt extends up {
|
|
|
50904
50925
|
more: [
|
|
50905
50926
|
...e.more,
|
|
50906
50927
|
new _e([], "通用", "通用"),
|
|
50907
|
-
new sd([this, "createCesiumViewerFuncStr"], "CesiumViewer创建函数",
|
|
50928
|
+
new sd([this, "createCesiumViewerFuncStr"], "CesiumViewer创建函数", KO, QO, !0),
|
|
50908
50929
|
new mr([], () => Pt.getCesiumIonToken(), [], "获取官方token"),
|
|
50909
50930
|
new mr([], () => this.setCurrentDefaultAccessToken(), [], "重置为当前使用的Cesium版本的token"),
|
|
50910
50931
|
new mr([], () => this.setLatestDefaultAccessToken(), [], "最新token", "重置为当前Cesium官方的最新token"),
|
|
@@ -50933,14 +50954,14 @@ const Pt = class Pt extends up {
|
|
|
50933
50954
|
new ue([this, "sceneGlobeBackFaceCulling"]),
|
|
50934
50955
|
new ue([this, "sceneGlobeShowSkirts"]),
|
|
50935
50956
|
new ue([this, "sceneGlobeShowWaterEffect"]),
|
|
50936
|
-
new
|
|
50957
|
+
new er([this, "sceneGlobeBaseColor"]),
|
|
50937
50958
|
new ro([this, "sceneGlobeCartographicLimitRectangle"]),
|
|
50938
50959
|
new Yt([this, "sceneGlobeClippingPlanes"]),
|
|
50939
50960
|
new Qo([this, "sceneGlobeClippingPlanesId"]),
|
|
50940
50961
|
new Yt([this, "sceneGlobeClippingPolygons"]),
|
|
50941
50962
|
new cx([this, "sceneGlobeClippingPolygonsId"]),
|
|
50942
50963
|
new _e([], "underground", "underground"),
|
|
50943
|
-
new
|
|
50964
|
+
new er([this, "sceneGlobeUndergroundColor"], "sceneGlobeUndergroundColor", s.sceneGlobeUndergroundColor, !0),
|
|
50944
50965
|
new ro([this, "sceneGlobeUndergroundColorAlphaByDistance"], "sceneGlobeUndergroundColorAlphaByDistance", s.sceneGlobeUndergroundColorAlphaByDistance, !0),
|
|
50945
50966
|
new _e([], "Translucency", "Translucency"),
|
|
50946
50967
|
// new BooleanProperty([this, 'sceneGlobeTranslucencyEnabled'], '启用', d.sceneGlobeTranslucencyEnabled, true),
|
|
@@ -50962,10 +50983,10 @@ const Pt = class Pt extends up {
|
|
|
50962
50983
|
new _e([], "Background", "Background"),
|
|
50963
50984
|
new ue([this, "xbsjUseBackground"]),
|
|
50964
50985
|
new Qo([this, "xbsjBackgroundImageUri"]),
|
|
50965
|
-
new
|
|
50986
|
+
new er([this, "xbsjBackgroundColor"]),
|
|
50966
50987
|
new _e([], "SkyAtmosphere", "SkyAtmosphere"),
|
|
50967
50988
|
new Yt([this, "xbsjLocalBoxSources"], "xbsjLocalBoxSources", s.xbsjLocalBoxSources, void 0, !0),
|
|
50968
|
-
new
|
|
50989
|
+
new er([this, "sceneBackgroundColor"]),
|
|
50969
50990
|
new _e([], "Fog", "Fog"),
|
|
50970
50991
|
new ue([this, "sceneFogEnabled"], "sceneFogEnabled", s.sceneFogEnabled, !0),
|
|
50971
50992
|
new ce([this, "sceneFogDensity"], "sceneFogDensity", s.sceneFogDensity, !0),
|
|
@@ -51008,7 +51029,7 @@ const Pt = class Pt extends up {
|
|
|
51008
51029
|
};
|
|
51009
51030
|
}
|
|
51010
51031
|
};
|
|
51011
|
-
g(Pt, "type", Pt.register("ESCesiumViewer", Pt)), g(Pt, "getCesiumIonToken",
|
|
51032
|
+
g(Pt, "type", Pt.register("ESCesiumViewer", Pt)), g(Pt, "getCesiumIonToken", JO), g(Pt, "currentDefaultAccessToken", h.Ion.defaultAccessToken), g(Pt, "latestDefaultAccessToken"), g(Pt, "ObjectsToExcludeWrapper", fL), g(Pt, "defaults", {
|
|
51012
51033
|
...up.defaults,
|
|
51013
51034
|
flashLighting: !1,
|
|
51014
51035
|
resolutionScale: 1,
|
|
@@ -51067,13 +51088,13 @@ let qe = Pt;
|
|
|
51067
51088
|
((t) => {
|
|
51068
51089
|
t.createDefaultProps = () => ({
|
|
51069
51090
|
...up.createDefaultProps(),
|
|
51070
|
-
...
|
|
51091
|
+
...ZO()
|
|
51071
51092
|
});
|
|
51072
51093
|
})(qe || (qe = {}));
|
|
51073
51094
|
ae(qe.prototype, qe.createDefaultProps);
|
|
51074
51095
|
let ap;
|
|
51075
51096
|
try {
|
|
51076
|
-
const t = "earthsdk3-cesium", i = "3.6.0-beta.
|
|
51097
|
+
const t = "earthsdk3-cesium", i = "3.6.0-beta.9", e = "2025-11-27T03:19:13.000Z", s = "北京西部世界科技有限公司", o = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", n = "24b300a1097840722d4cb07aa9237e3b6ba62c73", a = ((Date.now() - 1764213553e3) / 36e5).toFixed(1), l = `%c🌏 ${t}%c ${i}.${n.slice(0, 8)}.${e} (距今${a}个小时)
|
|
51077
51098
|
%c${o ? o + `
|
|
51078
51099
|
` : ""}当前网站正在使用${t},此软件版权归${s}所有
|
|
51079
51100
|
`;
|
|
@@ -51087,7 +51108,7 @@ try {
|
|
|
51087
51108
|
},
|
|
51088
51109
|
// @ts-ignore
|
|
51089
51110
|
get gituri() {
|
|
51090
|
-
return GITURI_ && GITURI_.replace("${commitId}", "
|
|
51111
|
+
return GITURI_ && GITURI_.replace("${commitId}", "24b300a1097840722d4cb07aa9237e3b6ba62c73");
|
|
51091
51112
|
},
|
|
51092
51113
|
// @ts-ignore
|
|
51093
51114
|
get info() {
|
|
@@ -51095,7 +51116,7 @@ try {
|
|
|
51095
51116
|
},
|
|
51096
51117
|
// @ts-ignore
|
|
51097
51118
|
get date() {
|
|
51098
|
-
return "2025-11-
|
|
51119
|
+
return "2025-11-27T03:19:13.000Z";
|
|
51099
51120
|
},
|
|
51100
51121
|
// @ts-ignore
|
|
51101
51122
|
get author() {
|
|
@@ -51103,7 +51124,7 @@ try {
|
|
|
51103
51124
|
},
|
|
51104
51125
|
// @ts-ignore
|
|
51105
51126
|
get version() {
|
|
51106
|
-
return "3.6.0-beta.
|
|
51127
|
+
return "3.6.0-beta.9";
|
|
51107
51128
|
},
|
|
51108
51129
|
// @ts-ignore
|
|
51109
51130
|
get name() {
|
|
@@ -51111,7 +51132,7 @@ try {
|
|
|
51111
51132
|
},
|
|
51112
51133
|
// @ts-ignore
|
|
51113
51134
|
get commitId() {
|
|
51114
|
-
return "
|
|
51135
|
+
return "24b300a1097840722d4cb07aa9237e3b6ba62c73";
|
|
51115
51136
|
},
|
|
51116
51137
|
print() {
|
|
51117
51138
|
console.info(
|
|
@@ -51151,16 +51172,16 @@ export {
|
|
|
51151
51172
|
Uw as CurrentPositionsCenter,
|
|
51152
51173
|
Nw as CurrentScale,
|
|
51153
51174
|
Ob as CurrentSceneScalePoi,
|
|
51154
|
-
|
|
51155
|
-
|
|
51175
|
+
AB as CursorFloatDiv,
|
|
51176
|
+
MB as CursorInfo,
|
|
51156
51177
|
Fe as Czm3DTiles,
|
|
51157
51178
|
fp as CzmCameraChanged,
|
|
51158
|
-
|
|
51179
|
+
IB as CzmCanvasAndDivSwitchPoi,
|
|
51159
51180
|
Qw as CzmCanvasPoi,
|
|
51160
51181
|
Mr as CzmCircle,
|
|
51161
|
-
|
|
51162
|
-
|
|
51163
|
-
|
|
51182
|
+
un as CzmCircleGroundPrimitive,
|
|
51183
|
+
pn as CzmCircleOutlinePrimitive,
|
|
51184
|
+
dn as CzmCirclePrimitive,
|
|
51164
51185
|
Nh as CzmClippingPlanes,
|
|
51165
51186
|
Pe as CzmClock,
|
|
51166
51187
|
Qe as CzmCustomPrimitive,
|
|
@@ -51194,7 +51215,7 @@ export {
|
|
|
51194
51215
|
hv as CzmESGeoJson,
|
|
51195
51216
|
Wh as CzmESGeoLineString,
|
|
51196
51217
|
A0 as CzmESGeoPoints,
|
|
51197
|
-
|
|
51218
|
+
Vi as CzmESGeoPolygon,
|
|
51198
51219
|
Vs as CzmESGeoPolygonImpl,
|
|
51199
51220
|
cv as CzmESGeoRectangle,
|
|
51200
51221
|
dv as CzmESGeoSmoothPolygon,
|
|
@@ -51256,10 +51277,10 @@ export {
|
|
|
51256
51277
|
Zi as CzmESVisualObject,
|
|
51257
51278
|
w0 as CzmESVolumeMeasurement,
|
|
51258
51279
|
kv as CzmESWidget,
|
|
51259
|
-
|
|
51280
|
+
yn as CzmFlattenedPlane,
|
|
51260
51281
|
zr as CzmGlobeMaterial,
|
|
51261
51282
|
vo as CzmImageModel,
|
|
51262
|
-
|
|
51283
|
+
gn as CzmImagery,
|
|
51263
51284
|
Wt as CzmModelPrimitive,
|
|
51264
51285
|
Fs as CzmParticleSystemPrimitive,
|
|
51265
51286
|
Db as CzmPicking,
|
|
@@ -51270,17 +51291,17 @@ export {
|
|
|
51270
51291
|
Hh as CzmPolygonClipping,
|
|
51271
51292
|
Ah as CzmPolygonGroundPrimitive,
|
|
51272
51293
|
Ar as CzmPolygonGroundPrimitiveWithHeight,
|
|
51273
|
-
|
|
51274
|
-
|
|
51275
|
-
|
|
51294
|
+
rn as CzmPolygonPrimitive,
|
|
51295
|
+
ln as CzmPolygonPrimitiveWithHeight,
|
|
51296
|
+
hn as CzmPolygonWithHeight,
|
|
51276
51297
|
Ge as CzmPolyline,
|
|
51277
51298
|
Dh as CzmPolylineGroundPrimitive,
|
|
51278
51299
|
kh as CzmPolylinePrimitive,
|
|
51279
51300
|
fs as CzmPolylines,
|
|
51280
51301
|
Eh as CzmPolylinesGroundPrimitive,
|
|
51281
|
-
|
|
51302
|
+
Oi as CzmPolylinesPrimitive,
|
|
51282
51303
|
zs as CzmRectangle,
|
|
51283
|
-
|
|
51304
|
+
En as CzmSignalTransmission,
|
|
51284
51305
|
tt as CzmTexture,
|
|
51285
51306
|
pi as CzmView,
|
|
51286
51307
|
Yr as CzmViewDistanceRangeControl,
|
|
@@ -51304,7 +51325,7 @@ export {
|
|
|
51304
51325
|
Ds as GeoCanvasImagePoi,
|
|
51305
51326
|
Rh as GeoCanvasMenuPoi,
|
|
51306
51327
|
mo as GeoCanvasPoi,
|
|
51307
|
-
|
|
51328
|
+
an as GeoCanvasPointPoi,
|
|
51308
51329
|
pt as GeoCustomDivPoi,
|
|
51309
51330
|
Er as GeoDivSwitchPoi,
|
|
51310
51331
|
ks as GeoDivTextPoi,
|
|
@@ -51332,7 +51353,7 @@ export {
|
|
|
51332
51353
|
V0 as ScatterAppendEditingWrapper,
|
|
51333
51354
|
rL as ScatterModifyEditing,
|
|
51334
51355
|
N0 as ScatterModifyEditingWrapper,
|
|
51335
|
-
|
|
51356
|
+
V5 as ScreenManager,
|
|
51336
51357
|
gS as SharedTexturePool,
|
|
51337
51358
|
Lb as SmoothMoving,
|
|
51338
51359
|
m5 as TerrainManager,
|
|
@@ -51342,7 +51363,7 @@ export {
|
|
|
51342
51363
|
rM as ToWGS84WebMercatorTilingScheme,
|
|
51343
51364
|
_o as TranslationEditing,
|
|
51344
51365
|
rf as TranslationEditingWrapper,
|
|
51345
|
-
|
|
51366
|
+
N5 as ViewerExtensions,
|
|
51346
51367
|
ec as VisibilityAppendEditing,
|
|
51347
51368
|
U0 as VisibilityAppendEditingWrapper,
|
|
51348
51369
|
tc as VisibilityModifyEditing,
|
|
@@ -51353,11 +51374,11 @@ export {
|
|
|
51353
51374
|
Bs as XbsjGroundPolylinePrimitive,
|
|
51354
51375
|
af as _ESEditModeInstance,
|
|
51355
51376
|
ad as angleToHumanStr,
|
|
51356
|
-
|
|
51377
|
+
bB as areaToHumanStr,
|
|
51357
51378
|
Mt as bindNorthRotation,
|
|
51358
51379
|
Fb as calculateImageTiles,
|
|
51359
51380
|
Qb as capture,
|
|
51360
|
-
|
|
51381
|
+
xB as checkAndConvertImage,
|
|
51361
51382
|
Dz as computeCutPoint,
|
|
51362
51383
|
Ze as computeCzmModelMatrix,
|
|
51363
51384
|
Mw as computePickingInfoWithCoordinates,
|
|
@@ -51365,7 +51386,7 @@ export {
|
|
|
51365
51386
|
$d as createClippingPlaneCollection,
|
|
51366
51387
|
wf as createClippingPolygonCollection,
|
|
51367
51388
|
Nb as createGeoBoudingSphereReactFromPositions,
|
|
51368
|
-
|
|
51389
|
+
yB as createHelperLine,
|
|
51369
51390
|
qg as createInfoPoi,
|
|
51370
51391
|
$w as createInnerClassFromJson,
|
|
51371
51392
|
Qr as createInnerHtmlWithWhiteTextBlackBackground,
|
|
@@ -51383,44 +51404,45 @@ export {
|
|
|
51383
51404
|
xs as czmSubscribeAndEvaluate,
|
|
51384
51405
|
Qi as defaultFlyToRotation,
|
|
51385
51406
|
Tf as distanceToHumanStr,
|
|
51386
|
-
|
|
51407
|
+
SB as extendComponentProps,
|
|
51387
51408
|
fe as flyTo,
|
|
51388
|
-
|
|
51409
|
+
Fi as flyWithPosition,
|
|
51389
51410
|
ge as flyWithPositions,
|
|
51390
51411
|
xi as flyWithPrimitive,
|
|
51391
|
-
|
|
51412
|
+
aB as fromCartesian,
|
|
51392
51413
|
yx as fromCartesian2,
|
|
51393
51414
|
od as fromCartesian3,
|
|
51394
51415
|
wx as fromCartesian4,
|
|
51395
51416
|
Sr as fromCartographic,
|
|
51396
|
-
|
|
51397
|
-
|
|
51398
|
-
|
|
51399
|
-
|
|
51400
|
-
|
|
51401
|
-
|
|
51402
|
-
|
|
51417
|
+
hB as fromColor,
|
|
51418
|
+
uB as fromDistanceDisplayCondition,
|
|
51419
|
+
vB as fromEllipsoid,
|
|
51420
|
+
dB as fromHeadingPitchRoll,
|
|
51421
|
+
cB as fromNearFarScalar,
|
|
51422
|
+
fB as fromQuaternion,
|
|
51423
|
+
mB as fromRectangle,
|
|
51403
51424
|
db as generateCartesianArc,
|
|
51404
51425
|
Tr as geoNeareastPointOnRhumbLine,
|
|
51405
|
-
|
|
51426
|
+
wB as geoNeareastPointOnRhumbLine2,
|
|
51406
51427
|
Xw as geoPolylineToBezierSpline,
|
|
51407
|
-
|
|
51428
|
+
Li as getCameraPosition,
|
|
51408
51429
|
Sa as getCameraRotation,
|
|
51409
51430
|
Ix as getCameraTargetPos,
|
|
51410
51431
|
Xg as getCenterAndViewDistance,
|
|
51411
|
-
|
|
51412
|
-
|
|
51413
|
-
|
|
51432
|
+
PB as getCzmCode,
|
|
51433
|
+
TB as getDefaultComponentProps,
|
|
51434
|
+
CB as getDefaultWinPosAndDepth,
|
|
51414
51435
|
jb as getDetailedTerrainDistance,
|
|
51415
51436
|
qx as getDirectionVectorFromRotation,
|
|
51416
51437
|
Lw as getDistancesAndTimePosRotsFromPositions,
|
|
51417
|
-
|
|
51438
|
+
ZB as getElevationMatrix,
|
|
51418
51439
|
Rw as getEllipsoidGeodesicCenter,
|
|
51419
51440
|
Af as getFlyToCenterAndRotation,
|
|
51420
51441
|
iI as getFoveatedInterpolationCallback,
|
|
51421
51442
|
qw as getFuncFromStr,
|
|
51422
51443
|
Jb as getGroundTerrainDistance,
|
|
51423
51444
|
Kb as getGroundTerrainDistances,
|
|
51445
|
+
Ko as getImageInfo,
|
|
51424
51446
|
Cb as getIncludedAngleFromPositions,
|
|
51425
51447
|
pb as getInverseModelMatrix,
|
|
51426
51448
|
Vb as getMinMaxPosition,
|
|
@@ -51431,26 +51453,25 @@ export {
|
|
|
51431
51453
|
Aw as getQuaternion,
|
|
51432
51454
|
bx as getQuaternionWithXForwardZUp,
|
|
51433
51455
|
pp as getQuaternionWithYForwardZUp,
|
|
51434
|
-
|
|
51456
|
+
Gi as getResource,
|
|
51435
51457
|
xo as getSceneScaleForScreenPixelSize,
|
|
51436
51458
|
mS as getSharedTexturePool,
|
|
51437
|
-
|
|
51459
|
+
DB as getTilingSchemeStr,
|
|
51438
51460
|
Ct as getViewerExtensions,
|
|
51439
51461
|
$x as getWinPos,
|
|
51440
51462
|
Pb as getXbsjWaterMaterial,
|
|
51441
|
-
|
|
51442
|
-
|
|
51443
|
-
|
|
51444
|
-
|
|
51445
|
-
er as imgUrlToBase64,
|
|
51463
|
+
qO as hackCesium3DTileset,
|
|
51464
|
+
XO as hackCzmModel3DTileContent,
|
|
51465
|
+
$O as hackModel,
|
|
51466
|
+
YO as hackModelSceneGraph,
|
|
51446
51467
|
Lo as localPositionToPosition,
|
|
51447
|
-
|
|
51448
|
-
|
|
51468
|
+
tn as localPositionsToPositions,
|
|
51469
|
+
_B as merge3dTilesServer,
|
|
51449
51470
|
Cf as pickHeightPosition,
|
|
51450
51471
|
Vx as pickPosition,
|
|
51451
51472
|
Sh as pickVirtualEarth,
|
|
51452
51473
|
Nx as pickVirtualPlane,
|
|
51453
|
-
|
|
51474
|
+
gB as positionAndRotationToQuaternion,
|
|
51454
51475
|
me as positionFromCartesian,
|
|
51455
51476
|
Ve as positionToCartesian,
|
|
51456
51477
|
Hg as positionToHumanStr,
|
|
@@ -51468,14 +51489,14 @@ export {
|
|
|
51468
51489
|
ke as toCartesian2,
|
|
51469
51490
|
ps as toCartesian3,
|
|
51470
51491
|
Ew as toCartesian4,
|
|
51471
|
-
|
|
51492
|
+
lB as toCartographic,
|
|
51472
51493
|
Ww as toCoefficients,
|
|
51473
51494
|
de as toColor,
|
|
51474
51495
|
Hd as toDistanceDisplayCondition,
|
|
51475
51496
|
De as toEllipsoid,
|
|
51476
51497
|
Cx as toHeadingPitchRoll,
|
|
51477
|
-
|
|
51478
|
-
|
|
51498
|
+
jo as toNearFarScalar,
|
|
51499
|
+
pB as toQuaternion,
|
|
51479
51500
|
ht as toRectangle,
|
|
51480
51501
|
ko as toRgbaString,
|
|
51481
51502
|
Gw as updateEnvironmentMapManager,
|