earthsdk3-cesium 3.4.0-beta.8 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/earthsdk3-cesium.iife.js +17 -17
- package/dist/earthsdk3-cesium.js +643 -645
- package/dist/earthsdk3-cesium.umd.cjs +15 -15
- package/dist/types/CzmObjects/base/InnerClass/CzmImagery/index.d.ts +1 -0
- package/dist/types/CzmObjects/base/InnerClass/CzmImagery/index.d.ts.map +1 -1
- package/dist/types/CzmObjects/general/CzmES3DTileset/Czm3DTiles/getSimpleUpdateEvents.d.ts +1 -1
- package/dist/types/CzmObjects/general/CzmESEntityCluster/index.d.ts.map +1 -1
- package/dist/types/CzmObjects/general/CzmESGeoJson/CzmGeoJson.d.ts +1 -2
- package/dist/types/CzmObjects/general/CzmESGeoJson/CzmGeoJson.d.ts.map +1 -1
- package/dist/types/CzmObjects/general/CzmESImageryLayer/index.d.ts.map +1 -1
- package/dist/types/CzmObjects/general/CzmESKml/CzmKml.d.ts +1 -1
- package/dist/types/CzmObjects/general/CzmESKml/CzmKml.d.ts.map +1 -1
- package/dist/types/ESCesiumViewer/NavigationManager/index.d.ts.map +1 -1
- package/dist/types/ESCesiumViewer/ViewerExtensions/ImageriesManager.d.ts +1 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/ImageriesManager.d.ts.map +1 -1
- package/dist/types/ESObjects/ESKml.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/earthsdk3-cesium.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var m = (t, i, e) =>
|
|
1
|
+
var rP = Object.defineProperty;
|
|
2
|
+
var aP = (t, i, e) => i in t ? rP(t, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[i] = e;
|
|
3
|
+
var m = (t, i, e) => aP(t, typeof i != "symbol" ? i + "" : i, e);
|
|
4
4
|
import * as h from "cesium";
|
|
5
|
-
import { Cartesian3 as Bs, Math as Kp, WebMercatorTilingScheme as
|
|
6
|
-
import { createGuid as st, extendClassProps as ae, Destroyable as G, Event as $, getReactFuncs as bi, createNextAnimateFrameEvent as B, react as W, ObjResettingWithEvent as he, getDomEventCurrentTargetPos as Ht, createProcessingFromAsyncFunc as Ve, step as ui, reactArrayWithUndefined as K, bind as I, animateFrame as
|
|
7
|
-
import { EngineObject as Gi, cartesianDistance as
|
|
5
|
+
import { Cartesian3 as Bs, Math as Kp, WebMercatorTilingScheme as lP, Rectangle as hP, Event as cP, Credit as dP, DefaultProxy as uP, defined as pP, Resource as Ug, ImageryLayerFeatureInfo as fP } from "cesium";
|
|
6
|
+
import { createGuid as st, extendClassProps as ae, Destroyable as G, Event as $, getReactFuncs as bi, createNextAnimateFrameEvent as B, react as W, ObjResettingWithEvent as he, getDomEventCurrentTargetPos as Ht, createProcessingFromAsyncFunc as Ve, step as ui, reactArrayWithUndefined as K, bind as I, animateFrame as gP, min as Zd, objsIterator as _n, max as Qd, pairToPromise as mP, Vector as hi, reactJsonWithUndefined as He, reactJson as $e, reactArray as j, track as _, reactDeepArrayWithUndefined as dC, defaultGetLocalFilePath as vP, ComplexImage as Kd, czmPixelFormats as yP, HasOwner as Ed, reactPositionsSet as Er, setExtProp as $c, getExtProp as $f, getMinMaxPosition as uC, PosFloatDiv as pC, DivPoi as fC, createNextMicroTaskEvent as wP, Transition as lr, CanvasPrimitivesContext as CP, CanvasPoi as Xf, DomElementEvent as tc, PointerClick as gC, PointerHover as _P, CanvasPrimitive as PP, fetchImage as xP, createTimeoutWithStartValues as Gg, reactPositions as je, reactArrayCollectionWithUndefined as SP, debounce as bP, defaultLocalFileServer as ia, nextAnimateFrame as Xt, ColorStops as TP, sleep as mC, fetchArrayBuffer as Jd, createAnimateFrameWithStartValues as Yf, clamp as Xc, getEventFromPromise as AP, Processing as ra, ObservableArray as EP, CursorInfo as MP, CursorFloatDiv as IP, createCancelablePromise as Jp, createNextAnimateFrame as RP } from "xbsj-base";
|
|
7
|
+
import { EngineObject as Gi, cartesianDistance as DP, geoRhumbDistance as Md, geoRhumbHeading as jn, geoRhumbDestination as kt, geoNearestPointOnLine as kP, geoDistance as xi, ESSceneObject as oe, lbhToXyz as er, xyzToLbh as vC, getMinMaxCorner as wt, ESImageryLayer as rh, ESTerrainLayer as sa, ES3DTileset as gi, geoHeading as hr, geoDestination as Go, getGeoBoundingSphereFromPositions as Zf, ESGltfModel as Qf, ESJPickedResult as tr, Player as Uh, ESPoi2D as rt, ESWidget as yC, Destroyable as Be, registerCreatedEventUpdate as Mt, getDistancesFromPositions as vt, getDefaultValue as jd, ESPathImpl as wC, PlayerProperty as Id, SmoothMoveController as FP, registerEventUpdate as Oi, ESExcavate as Gh, ESHole as Rd, ESSceneObjectWithId as Ei, ESBoxClipping as Kf, ESGeoPolygon as Dd, ESPolygonFlattenedPlane as zP, ESClippingPlane as CC, ESAlarm as Wg, ESApertureEffect as LP, geoArea as OP, geoCenterOfMass as BP, ESAreaMeasurement as VP, ESBlastParticleSystem as NP, ESCameraView as UP, ESCameraVisibleRange as Hg, ESCar as GP, ESCityBasePoint as WP, ESClassification as _C, ESCzml as HP, ESDataMesh as Pn, clampN180_180 as qP, clamp0_360 as $P, ESDirectionMeasurement as XP, inOrderRunning as YP, ESGeoLineString as PC, ESDistanceMeasurement as ZP, ESFireParticleSystem as QP, ESVisualObject as Yc, GroupProperty as Pe, EnumProperty as Ti, NumberProperty as ce, StringProperty as Wo, Number4Property as js, JsonProperty as Wt, NumberSliderProperty as qg, FunctionProperty as ir, EvalStringProperty as Zc, BooleanProperty as ue, LongStringProperty as KP, DateProperty as eu, ESLocalVector2D as $g, reactPosition2Ds as JP, Number2sProperty as jP, ColorProperty as Vn, DashPatternProperty as xC, ESLocalVector as Xg, Number3sProperty as ex, ESObjectWithLocation as Yg, PositionProperty as tx, RotationProperty as ix, Number3Property as SC, ESGeoVector as Ai, ESJEditingMode as Je, UriProperty as sx, Number2Property as ox, ESGeoDiv as nx, ESGeoDivTextPoi as rx, isJSON as bC, ESGeoJson as TC, ESGeoRectangle as ax, ESHeightMeasurement as lx, ESHuman as Zg, ESImageLabel as hx, ESLocalSkyBox as Qg, ESLocationMeasurement as Kg, ESParticleSystemPrimitive as cx, ESPoi3D as dx, ESSubmergingAnalysis as Po, ESTextLabel as ux, ESUEWidget as px, ESUnrealActor as fx, ESVideoFusion as ic, ESViewShed as sc, ESLocalCircle as Jg, ESLocalPolygon as AC, ESLocalPolygonZ as EC, ESLocalRectangle as gx, ESNavigator as xn, ESCustomDiv as kd, ESPath as mx, ESPolygonFence as MC, ESRectangle as vx, ESScale as Gr, ESDynamicWater as Vs, ESEntityCluster as Oc, ESGeoWater as fs, ESPipeFence as yx, ESPipeline as wx, equalsN3 as Mr, ESPipeserTileset as Cx, ESPit as _x, ESPolygonWithHole as Px, ESSunshineAnalysis as xx, ESSurfaceAreaMeasurement as Sx, ESViewerStatusBar as qi, ESViewerStatusBarScale as $i, ESVisibilityAnalysis as bx, ESVolumeMeasurement as Tx, ESGeoExtrudedPolygon as oc, ESHumanPoi as Ax, ESRtsTileset as Ex, ESRtsFeatureEditing as Mx, ESMsTileset as Ix, ESStaticMesh as Rx, ESSkylineAnalysis as jg, ESHeatMap as Sn, ESGeoPoints as Wr, ESViewer as jp, StringsProperty as Dx } from "earthsdk3";
|
|
8
8
|
import Jf from "html2canvas";
|
|
9
9
|
import * as kx from "mvt-basic-render";
|
|
10
10
|
import Fx from "delaunator";
|
|
@@ -121,7 +121,7 @@ function ns(t, i) {
|
|
|
121
121
|
function Qc(t, i) {
|
|
122
122
|
return i = i || [0, 0, 0], i[0] = t.x, i[1] = t.y, i[2] = t.z, i;
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function IC(t, i) {
|
|
125
125
|
return i = i || new h.Cartesian4(), i.x = t[0], i.y = t[1], i.z = t[2], i.w = t[3], i;
|
|
126
126
|
}
|
|
127
127
|
function Vx(t, i) {
|
|
@@ -129,7 +129,7 @@ function Vx(t, i) {
|
|
|
129
129
|
}
|
|
130
130
|
function ji(t, i) {
|
|
131
131
|
if (t.length === 4)
|
|
132
|
-
return
|
|
132
|
+
return IC(t, i);
|
|
133
133
|
if (t.length === 3)
|
|
134
134
|
return ns(t, i);
|
|
135
135
|
if (t.length === 2)
|
|
@@ -268,12 +268,12 @@ function eg(t) {
|
|
|
268
268
|
});
|
|
269
269
|
}
|
|
270
270
|
function ef(t, i) {
|
|
271
|
-
return
|
|
271
|
+
return RC(t, h.Cartesian3.UNIT_Y, h.Cartesian3.UNIT_Z, h.Cartesian3.UNIT_X, i);
|
|
272
272
|
}
|
|
273
273
|
function Hx(t, i) {
|
|
274
|
-
return
|
|
274
|
+
return RC(t, h.Cartesian3.UNIT_X, h.Cartesian3.UNIT_Z, new h.Cartesian3(0, -1, 0), i);
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function RC(t, i, e, s, o) {
|
|
277
277
|
const [n, r, a] = t, l = h.Quaternion.fromAxisAngle(e, h.Math.toRadians(-n)), c = h.Quaternion.fromAxisAngle(s, h.Math.toRadians(r)), d = h.Quaternion.fromAxisAngle(i, h.Math.toRadians(a)), u = h.Quaternion.clone(h.Quaternion.IDENTITY, o);
|
|
278
278
|
return h.Quaternion.multiply(d, u, u), h.Quaternion.multiply(c, u, u), h.Quaternion.multiply(l, u, u), u;
|
|
279
279
|
}
|
|
@@ -422,7 +422,7 @@ class Ir extends G {
|
|
|
422
422
|
this._viewDistance.value = A, this._visibleAlpha.value = b;
|
|
423
423
|
return;
|
|
424
424
|
}
|
|
425
|
-
A =
|
|
425
|
+
A = DP(U.position, R) - (F ?? 0);
|
|
426
426
|
const [O, z, N, w] = M;
|
|
427
427
|
O > z || z > N || N > w ? console.error("viewDistanceRange存在问题,需要满足逐级增大的条件,否则不生效!") : A >= z && A <= N ? b = 1 : A <= O || A >= w ? b = 0 : A > O && A < z ? z - O <= 0 ? b = 0 : b = (A - O) / (z - O) : A > N && A < w ? (w <= N && (b = 0), b = (w - A) / (w - N)) : (b = 1, console.error("不应该运行至此!")), this._viewDistance.value = A, this._visibleAlpha.value = b;
|
|
428
428
|
};
|
|
@@ -496,18 +496,18 @@ function Yt(t) {
|
|
|
496
496
|
}
|
|
497
497
|
function cr(t, i, e, s) {
|
|
498
498
|
const o = Md(t, e), n = jn(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);
|
|
499
|
-
return r > 0 ?
|
|
499
|
+
return r > 0 ? kt(t, o, i, s) : kt(t, o, i + 180, s), [r > 0 ? o : -o, s];
|
|
500
500
|
}
|
|
501
501
|
function e5(t, i, e) {
|
|
502
502
|
const s = e * 0.1, o = [];
|
|
503
503
|
for (let n = -9; n < 10; ++n) {
|
|
504
|
-
const r =
|
|
504
|
+
const r = kt(t, s * n, i);
|
|
505
505
|
r && o.push(r);
|
|
506
506
|
}
|
|
507
507
|
return o;
|
|
508
508
|
}
|
|
509
509
|
function t5(t, i) {
|
|
510
|
-
return
|
|
510
|
+
return kP(t, i).geometry.coordinates;
|
|
511
511
|
}
|
|
512
512
|
const tm = new h.Cartesian3(), eS = new h.Ray(), tS = new h.Plane(h.Cartesian3.UNIT_X, 0);
|
|
513
513
|
function tg(t, i, e, s) {
|
|
@@ -541,7 +541,7 @@ function im(t) {
|
|
|
541
541
|
return (t + i) / i;
|
|
542
542
|
}
|
|
543
543
|
const sm = new h.Cartographic(), om = new h.Cartesian3(), Jt = [0, 0, 0], Us = [0, 0, 0], iu = new h.Cartesian2(), su = new h.Cartesian3();
|
|
544
|
-
function
|
|
544
|
+
function DC(t, i, e, s, o, n) {
|
|
545
545
|
o.constraintMode = "none", bn([0, 0, 0], o.startDragPos), n = n || {}, ji(Ht(t), iu);
|
|
546
546
|
const r = e.position;
|
|
547
547
|
if (!at(r, su))
|
|
@@ -598,7 +598,7 @@ function rS(t, i, e, s, o) {
|
|
|
598
598
|
}
|
|
599
599
|
function aS(t) {
|
|
600
600
|
const i = h.Material.fromType(t.type);
|
|
601
|
-
return
|
|
601
|
+
return kC(i, t), i;
|
|
602
602
|
}
|
|
603
603
|
function ri(t) {
|
|
604
604
|
return t && oe.context.getStrFromEnv(t) || h.Material.DefaultImageId;
|
|
@@ -606,7 +606,7 @@ function ri(t) {
|
|
|
606
606
|
function lS(t) {
|
|
607
607
|
return { x: t[0], y: t[1] };
|
|
608
608
|
}
|
|
609
|
-
function
|
|
609
|
+
function kC(t, i) {
|
|
610
610
|
i.type === "Color" ? t.uniforms.color = pe(i.color ?? [1, 1, 1, 1]) : i.type === "PolylineArrow" ? t.uniforms.color = pe(i.color ?? [1, 1, 1, 1]) : i.type === "PolylineDash" ? (t.uniforms.color = pe(i.color ?? [1, 1, 1, 1]), t.uniforms.gapColor = pe(i.gapColor ?? [0, 0, 0, 0]), t.uniforms.dashLength = i.dashLength ?? 16, t.uniforms.dashPattern = i.dashPattern ?? 255) : i.type === "PolylineGlow" ? (t.uniforms.color = pe(i.color ?? [1, 1, 1, 1]), t.uniforms.glowPower = i.glowPower ?? 0.25, t.uniforms.taperPower = i.taperPower ?? 1) : i.type === "PolylineOutline" ? (t.uniforms.color = pe(i.color ?? [1, 1, 1, 1]), t.uniforms.outlineColor = pe(i.outlineColor ?? [1, 0, 0, 1]), t.uniforms.outlineWidth = i.outlineWidth ?? 1) : i.type === "Image" ? (t.uniforms.image = ri(i.image), t.uniforms.repeat = Le(i.repeat ?? [1, 1]), t.uniforms.color = pe(i.color ?? [1, 1, 1, 1])) : i.type === "DiffuseMap" ? (t.uniforms.image = ri(i.image), t.uniforms.repeat = Le(i.repeat ?? [1, 1]), t.uniforms.channels = i.channels ?? "rgb") : i.type === "AlphaMap" ? (t.uniforms.image = ri(i.image), t.uniforms.repeat = Le(i.repeat ?? [1, 1]), t.uniforms.channel = i.channel ?? "a") : i.type === "SpecularMap" ? (t.uniforms.image = ri(i.image), t.uniforms.repeat = Le(i.repeat ?? [1, 1]), t.uniforms.channel = i.channel ?? "r") : i.type === "EmissionMap" ? (t.uniforms.image = ri(i.image), t.uniforms.repeat = Le(i.repeat ?? [1, 1]), t.uniforms.channels = i.channels ?? "rgb") : i.type === "BumpMap" ? (t.uniforms.image = ri(i.image), t.uniforms.repeat = Le(i.repeat ?? [1, 1]), t.uniforms.channel = i.channel ?? "r", t.uniforms.strength = i.strength ?? 0.8) : i.type === "NormalMap" ? (t.uniforms.image = ri(i.image), t.uniforms.repeat = Le(i.repeat ?? [1, 1]), t.uniforms.channels = i.channels ?? "rgb", t.uniforms.strength = i.strength ?? 0.8) : i.type === "Grid" ? (t.uniforms.color = pe(i.color ?? [0, 1, 0, 1]), t.uniforms.cellAlpha = i.cellAlpha ?? 0.1, t.uniforms.lineCount = Le(i.lineCount ?? [8, 8]), t.uniforms.lineThickness = Le(i.lineThickness ?? [1, 1]), t.uniforms.lineOffset = Le(i.lineOffset ?? [0, 0])) : i.type === "Stripe" ? (t.uniforms.evenColor = pe(i.evenColor ?? [1, 1, 1, 0.5]), t.uniforms.oddColor = pe(i.oddColor ?? [0, 0, 1, 0.5]), t.uniforms.horizontal = i.horizontal ?? !0, t.uniforms.offset = i.offset ?? 0, t.uniforms.repeat = i.repeat ?? 5) : i.type === "Checkerboard" ? (t.uniforms.lightColor = pe(i.lightColor ?? [1, 1, 1, 0.5]), t.uniforms.darkColor = pe(i.darkColor ?? [0, 0, 0, 0.5]), t.uniforms.repeat = Le(i.repeat ?? [5, 5])) : i.type === "Dot" ? (t.uniforms.lightColor = pe(i.lightColor ?? [1, 1, 0, 0.75]), t.uniforms.darkColor = pe(i.darkColor ?? [0, 1, 1, 0.75]), t.uniforms.repeat = Le(i.repeat ?? [5, 5])) : i.type === "Water" ? (t.uniforms.baseWaterColor = pe(i.baseWaterColor ?? [0.2, 0.3, 0.6, 1]), t.uniforms.blendColor = pe(i.blendColor ?? [0, 1, 0.699, 1]), t.uniforms.specularMap = ri(i.specularMap), t.uniforms.normalMap = ri(i.normalMap), t.uniforms.frequency = i.frequency ?? 10, t.uniforms.animationSpeed = i.animationSpeed ?? 0.01, t.uniforms.amplitude = i.amplitude ?? 1, t.uniforms.specularIntensity = i.specularIntensity ?? 0.5, t.uniforms.fadeFactor = i.fadeFactor ?? 1) : i.type === "RimLighting" ? (t.uniforms.color = pe(i.color ?? [1, 0, 0, 0.7]), t.uniforms.rimColor = pe(i.rimColor ?? [1, 1, 1, 0.4]), t.uniforms.width = i.width ?? 0.3) : i.type === "Fade" ? (t.uniforms.fadeInColor = pe(i.fadeInColor ?? [1, 0, 0, 1]), t.uniforms.fadeOutColor = pe(i.fadeOutColor ?? [0, 0, 0, 0]), t.uniforms.maximumDistance = i.maximumDistance ?? 0.5, t.uniforms.repeat = i.repeat ?? !0, t.uniforms.fadeDirection = lS(i.fadeDirection ?? [!0, !0]), t.uniforms.time = Le(i.time ?? [0.5, 0.5])) : i.type === "ElevationContour" ? (t.uniforms.color = pe(i.color ?? [1, 0, 0, 1]), t.uniforms.spacing = i.spacing ?? 100, t.uniforms.width = i.width ?? 1) : i.type === "ElevationRamp" ? (t.uniforms.image = ri(i.image), t.uniforms.minimumHeight = i.minimumHeight ?? 0, t.uniforms.maximumHeight = i.maximumHeight ?? 1e4) : i.type === "AspectRamp" ? t.uniforms.image = ri(i.image) : i.type === "ElevationBand" ? (t.uniforms.color = ri(i.colors), t.uniforms.heights = ri(i.heights)) : console.warn(`未知材质类型,无法更新 ${i.type}`);
|
|
611
611
|
}
|
|
612
612
|
function ds(t, i) {
|
|
@@ -615,7 +615,7 @@ function ds(t, i) {
|
|
|
615
615
|
const [o, n, r] = bi(t), a = () => {
|
|
616
616
|
try {
|
|
617
617
|
const l = o() ?? i;
|
|
618
|
-
l ? s !== l.type ? (s = l.type, e.value = aS(l)) : e.value &&
|
|
618
|
+
l ? s !== l.type ? (s = l.type, e.value = aS(l)) : e.value && kC(e.value, l) : (s = "", e.value = void 0);
|
|
619
619
|
} catch {
|
|
620
620
|
}
|
|
621
621
|
};
|
|
@@ -628,7 +628,7 @@ function yo(t) {
|
|
|
628
628
|
holes: e
|
|
629
629
|
};
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function FC(t, i) {
|
|
632
632
|
const e = Math.PI / 180, s = 1 / e, o = new h.Cartographic(t[0] * e, t[1] * e, t[2]), n = new h.Cartographic(i[0] * e, i[1] * e, i[2]), r = new h.EllipsoidGeodesic(o, n).interpolateUsingFraction(0.5, new h.Cartographic());
|
|
633
633
|
if (r)
|
|
634
634
|
return r.height = (o.height + n.height) * 0.5, [r.longitude * s, r.latitude * s, r.height];
|
|
@@ -709,7 +709,7 @@ function mS(t, i, e, s) {
|
|
|
709
709
|
l = t[r], i(a, l, rm) ? (So(c) || (c = t.slice(0, r), d = r - 1, u = 0), o && s.push(r)) : (So(c) && (c.push(l), d = r, o && (u = s.length)), a = l);
|
|
710
710
|
return e && i(t[0], t[n - 1], rm) && (o && (So(c) ? s.splice(u, 0, d) : s.push(n - 1)), So(c) ? c.length -= 1 : c = t.slice(0, -1)), So(c) ? c : t;
|
|
711
711
|
}
|
|
712
|
-
const Ie = h.Cartesian3, Rr = h.Cartographic, qo = h.defaultValue, $o = h.defined,
|
|
712
|
+
const Ie = h.Cartesian3, Rr = h.Cartographic, qo = h.defaultValue, $o = h.defined, zC = h.DeveloperError, LC = h.Ellipsoid, vS = h.EllipsoidGeodesic, OC = h.EllipsoidRhumbLine, yS = h.IntersectionTests, sf = h.Math, On = h.Matrix4, Ro = h.Plane, yt = {};
|
|
713
713
|
yt.numberOfPoints = function(t, i, e) {
|
|
714
714
|
const s = Ie.distance(t, i);
|
|
715
715
|
return Math.ceil(s / e);
|
|
@@ -731,7 +731,7 @@ yt.extractHeights = function(t, i) {
|
|
|
731
731
|
return s;
|
|
732
732
|
};
|
|
733
733
|
const CS = new On(), _S = new Ie(), am = new Ie(), PS = new Ro(Ie.UNIT_X, 0), lm = new Ie(), xS = new Ro(Ie.UNIT_X, 0), SS = new Ie(), bS = new Ie(), sg = [];
|
|
734
|
-
function
|
|
734
|
+
function BC(t, i, e) {
|
|
735
735
|
const s = sg;
|
|
736
736
|
s.length = t;
|
|
737
737
|
let o;
|
|
@@ -748,9 +748,9 @@ function OC(t, i, e) {
|
|
|
748
748
|
return s;
|
|
749
749
|
}
|
|
750
750
|
const Ld = new Rr(), Kc = new Rr(), lo = new Ie(), og = new Ie(), TS = new Ie(), ru = new vS();
|
|
751
|
-
let qr = new
|
|
751
|
+
let qr = new OC();
|
|
752
752
|
function AS(t, i, e, s, o, n, r, a) {
|
|
753
|
-
const l = s.scaleToGeodeticSurface(t, og), c = s.scaleToGeodeticSurface(i, TS), d = yt.numberOfPoints(t, i, e), u = s.cartesianToCartographic(l, Ld), p = s.cartesianToCartographic(c, Kc), f =
|
|
753
|
+
const l = s.scaleToGeodeticSurface(t, og), c = s.scaleToGeodeticSurface(i, TS), d = yt.numberOfPoints(t, i, e), u = s.cartesianToCartographic(l, Ld), p = s.cartesianToCartographic(c, Kc), f = BC(d, o, n);
|
|
754
754
|
ru.setEndPoints(u, p);
|
|
755
755
|
const g = ru.surfaceDistance / d;
|
|
756
756
|
let v = a;
|
|
@@ -773,8 +773,8 @@ function ES(t, i, e, s, o, n, r, a) {
|
|
|
773
773
|
e
|
|
774
774
|
);
|
|
775
775
|
l.height = 0, c.height = 0;
|
|
776
|
-
const u =
|
|
777
|
-
qr.ellipsoid.equals(s) || (qr = new
|
|
776
|
+
const u = BC(d, o, n);
|
|
777
|
+
qr.ellipsoid.equals(s) || (qr = new OC(void 0, void 0, s)), qr.setEndPoints(l, c);
|
|
778
778
|
const p = qr.surfaceDistance / d;
|
|
779
779
|
let f = a;
|
|
780
780
|
l.height = o;
|
|
@@ -862,8 +862,8 @@ yt.generateArc = function(t) {
|
|
|
862
862
|
$o(t) || (t = {});
|
|
863
863
|
const i = t.positions;
|
|
864
864
|
if (!$o(i))
|
|
865
|
-
throw new
|
|
866
|
-
const e = i.length, s = qo(t.ellipsoid,
|
|
865
|
+
throw new zC("options.positions is required.");
|
|
866
|
+
const e = i.length, s = qo(t.ellipsoid, LC.WGS84);
|
|
867
867
|
let o = qo(t.height, 0);
|
|
868
868
|
const n = Array.isArray(o);
|
|
869
869
|
if (e < 1)
|
|
@@ -917,8 +917,8 @@ yt.generateRhumbArc = function(t) {
|
|
|
917
917
|
$o(t) || (t = {});
|
|
918
918
|
const i = t.positions;
|
|
919
919
|
if (!$o(i))
|
|
920
|
-
throw new
|
|
921
|
-
const e = i.length, s = qo(t.ellipsoid,
|
|
920
|
+
throw new zC("options.positions is required.");
|
|
921
|
+
const e = i.length, s = qo(t.ellipsoid, LC.WGS84);
|
|
922
922
|
let o = qo(t.height, 0);
|
|
923
923
|
const n = Array.isArray(o);
|
|
924
924
|
if (e < 1)
|
|
@@ -1009,7 +1009,7 @@ function DS(t) {
|
|
|
1009
1009
|
return n;
|
|
1010
1010
|
}
|
|
1011
1011
|
}
|
|
1012
|
-
function
|
|
1012
|
+
function VC(t, i = "GEODESIC", e) {
|
|
1013
1013
|
const o = t.map(er).map((u) => h.Cartesian3.fromArray(u));
|
|
1014
1014
|
let n;
|
|
1015
1015
|
if (e > 0 && i !== "NONE") {
|
|
@@ -1037,13 +1037,13 @@ function BC(t, i = "GEODESIC", e) {
|
|
|
1037
1037
|
distances: a
|
|
1038
1038
|
};
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1040
|
+
function NC(t, i) {
|
|
1041
1041
|
i = i ?? new Array(16);
|
|
1042
1042
|
for (let e = 0; e < 16; ++e)
|
|
1043
1043
|
i[e] = t[e];
|
|
1044
1044
|
return i;
|
|
1045
1045
|
}
|
|
1046
|
-
function
|
|
1046
|
+
function UC(t, i) {
|
|
1047
1047
|
const e = h.Matrix4.clone(h.Matrix4.IDENTITY), { position: s, rotation: o, scale: n, initialRotationMode: r = "YForwardZUp" } = t;
|
|
1048
1048
|
if (s) {
|
|
1049
1049
|
const [a, l, c] = s;
|
|
@@ -1055,12 +1055,12 @@ function NC(t, i) {
|
|
|
1055
1055
|
const l = h.Matrix3.fromQuaternion(a);
|
|
1056
1056
|
h.Matrix4.multiply(e, h.Matrix4.fromRotationTranslation(l), e);
|
|
1057
1057
|
}
|
|
1058
|
-
return n && h.Matrix4.multiplyByScale(e, ji(n), e),
|
|
1058
|
+
return n && h.Matrix4.multiplyByScale(e, ji(n), e), NC(e, i);
|
|
1059
1059
|
}
|
|
1060
1060
|
const kS = new h.Matrix4();
|
|
1061
1061
|
function FS(t, i) {
|
|
1062
1062
|
const e = h.Matrix4.fromArray(t, 0, kS);
|
|
1063
|
-
return h.Matrix4.inverse(e, e),
|
|
1063
|
+
return h.Matrix4.inverse(e, e), NC(e, i);
|
|
1064
1064
|
}
|
|
1065
1065
|
const zS = new h.Matrix4(), LS = new h.Cartesian3();
|
|
1066
1066
|
function OS(t, i, e) {
|
|
@@ -1073,11 +1073,11 @@ function Mo(t, i, e) {
|
|
|
1073
1073
|
return e = e || [0, 0, 0], e[0] = h.Math.toDegrees(c.longitude), e[1] = h.Math.toDegrees(c.latitude), e[2] = c.height, e;
|
|
1074
1074
|
}
|
|
1075
1075
|
function ci(t, i) {
|
|
1076
|
-
const { originPosition: e, originRotation: s, originScale: o, initialRotationMode: n } = t, r =
|
|
1076
|
+
const { originPosition: e, originRotation: s, originScale: o, initialRotationMode: n } = t, r = UC({ position: e, rotation: s, scale: o, initialRotationMode: n }), a = FS(r);
|
|
1077
1077
|
return [i.map((c) => OS(a, c)), r, a];
|
|
1078
1078
|
}
|
|
1079
1079
|
function Xo(t, i) {
|
|
1080
|
-
const { originPosition: e, originRotation: s, originScale: o, initialRotationMode: n } = t, r =
|
|
1080
|
+
const { originPosition: e, originRotation: s, originScale: o, initialRotationMode: n } = t, r = UC({ position: e, rotation: s, scale: o, initialRotationMode: n });
|
|
1081
1081
|
return [i.map((l) => Mo(r, l)), r];
|
|
1082
1082
|
}
|
|
1083
1083
|
function US(t) {
|
|
@@ -1090,10 +1090,10 @@ function US(t) {
|
|
|
1090
1090
|
}
|
|
1091
1091
|
return i;
|
|
1092
1092
|
}
|
|
1093
|
-
function
|
|
1093
|
+
function GC(t, i) {
|
|
1094
1094
|
let e = i || [];
|
|
1095
1095
|
return t.positions && (e[e.length] ?? (e[e.length] = []), e[e.length - 1].push(...t.positions.map((s) => we(s)))), t.holes && t.holes.forEach((s) => {
|
|
1096
|
-
e =
|
|
1096
|
+
e = GC(s, e);
|
|
1097
1097
|
}), e;
|
|
1098
1098
|
}
|
|
1099
1099
|
function _i(t) {
|
|
@@ -1109,7 +1109,7 @@ function _i(t) {
|
|
|
1109
1109
|
parseUrl: t.parseUrl
|
|
1110
1110
|
});
|
|
1111
1111
|
}
|
|
1112
|
-
class
|
|
1112
|
+
class WC extends G {
|
|
1113
1113
|
constructor(i, e, s, o) {
|
|
1114
1114
|
if (super(), !i.viewer) return;
|
|
1115
1115
|
const { scene: n } = i.viewer, [r, a, l] = bi(e), [c, d, u] = bi(s), p = new h.Cartesian3(), f = () => {
|
|
@@ -1244,7 +1244,7 @@ function s5(t) {
|
|
|
1244
1244
|
});
|
|
1245
1245
|
});
|
|
1246
1246
|
}
|
|
1247
|
-
class
|
|
1247
|
+
class HC extends G {
|
|
1248
1248
|
constructor(e) {
|
|
1249
1249
|
super();
|
|
1250
1250
|
m(this, "_center", this.disposeVar(K(void 0)));
|
|
@@ -1377,7 +1377,7 @@ const HS = (t, i) => {
|
|
|
1377
1377
|
let e = !0;
|
|
1378
1378
|
return t.primitives.forEach((s) => {
|
|
1379
1379
|
const o = i[s.material.name] ?? i.default;
|
|
1380
|
-
o != null && (Reflect.has(o, "baseColorFactor") && o.baseColorFactor && (s.material.metallicRoughness.baseColorFactor =
|
|
1380
|
+
o != null && (Reflect.has(o, "baseColorFactor") && o.baseColorFactor && (s.material.metallicRoughness.baseColorFactor = IC(o.baseColorFactor)), Reflect.has(o, "alphaMode") && (s.material.alphaMode = o.alphaMode), Reflect.has(o, "doubleSided") && (s.material.doubleSided = o.doubleSided), Reflect.has(o, "unlit") && (s.material.unlit = o.unlit), Reflect.has(o, "emissiveFactor") && o.emissiveFactor && (s.material.emissiveFactor = ns(o.emissiveFactor)), Reflect.has(o, "metallicFactor") && (s.material.metallicRoughness.metallicFactor = o.metallicFactor), Reflect.has(o, "roughnessFactor") && (s.material.metallicRoughness.roughnessFactor = o.roughnessFactor), Reflect.has(o, "baseColorTexture") && o.baseColorTexture != null && (s.material.metallicRoughness.baseColorTexture ? (s.material.metallicRoughness.baseColorTexture.texture = o.baseColorTexture.texture, s.material.metallicRoughness.baseColorTexture.transform = o.baseColorTexture.transform) : e = !1), Reflect.has(o, "normalTexture") && s.material.metallicRoughness.baseColorTexture && (s.material.normalTexture = o.normalTexture), Reflect.has(o, "metallicRoughnessTexture") && (s.material.metallicRoughness.metallicRoughnessTexture = o.metallicRoughnessTexture));
|
|
1381
1381
|
}), e;
|
|
1382
1382
|
};
|
|
1383
1383
|
function Jc(t, i) {
|
|
@@ -1412,7 +1412,7 @@ async function sr(t, i, e) {
|
|
|
1412
1412
|
1
|
|
1413
1413
|
), h.Resource.createIfNeeded(i.value).fetchImage().then((a) => {
|
|
1414
1414
|
if (!t) return;
|
|
1415
|
-
const l =
|
|
1415
|
+
const l = JC(t.scene.context, a, {
|
|
1416
1416
|
flipY: !1,
|
|
1417
1417
|
minificationFilter: e == null ? void 0 : e.minFilter,
|
|
1418
1418
|
magnificationFilter: e == null ? void 0 : e.magFilter
|
|
@@ -1490,11 +1490,11 @@ function ZS(t) {
|
|
|
1490
1490
|
function o5(t) {
|
|
1491
1491
|
return t instanceof rh ? XS(t) : t instanceof sa ? qS(t) : t instanceof gi ? YS(t) : "getCzmCode目前只支持影像地形或瓦片";
|
|
1492
1492
|
}
|
|
1493
|
-
function
|
|
1493
|
+
function qC(t, i) {
|
|
1494
1494
|
var e, s, o, n, r, a, l, c, d;
|
|
1495
1495
|
t.atmosphereScatteringIntensity = ((e = i.environmentMapManager) == null ? void 0 : e.atmosphereScatteringIntensity) ?? Oe.defaults.environmentMapManager.atmosphereScatteringIntensity, t.brightness = ((s = i.environmentMapManager) == null ? void 0 : s.brightness) ?? Oe.defaults.environmentMapManager.brightness, t.enabled = ((o = i.environmentMapManager) == null ? void 0 : o.enabled) ?? Oe.defaults.environmentMapManager.enabled, t.gamma = ((n = i.environmentMapManager) == null ? void 0 : n.gamma) ?? Oe.defaults.environmentMapManager.gamma, t.groundAlbedo = ((r = i.environmentMapManager) == null ? void 0 : r.groundAlbedo) ?? Oe.defaults.environmentMapManager.groundAlbedo, t.groundColor = pe(((a = i.environmentMapManager) == null ? void 0 : a.groundColor) ?? Oe.defaults.environmentMapManager.groundColor), t.maximumPositionEpsilon = ((l = i.environmentMapManager) == null ? void 0 : l.maximumPositionEpsilon) ?? Oe.defaults.environmentMapManager.maximumPositionEpsilon, t.maximumSecondsDifference = ((c = i.environmentMapManager) == null ? void 0 : c.maximumSecondsDifference) ?? Oe.defaults.environmentMapManager.maximumSecondsDifference, t.saturation = ((d = i.environmentMapManager) == null ? void 0 : d.saturation) ?? Oe.defaults.environmentMapManager.saturation, t.reset();
|
|
1496
1496
|
}
|
|
1497
|
-
function
|
|
1497
|
+
function $C(t) {
|
|
1498
1498
|
if (!Array.isArray(t) || t.length !== 9) {
|
|
1499
1499
|
console.warn("toCoefficients error.");
|
|
1500
1500
|
return;
|
|
@@ -1692,7 +1692,7 @@ class jS extends G {
|
|
|
1692
1692
|
function To(t) {
|
|
1693
1693
|
return `rgba(${t[0] * 255},${t[1] * 255},${t[2] * 255},${t[3]})`;
|
|
1694
1694
|
}
|
|
1695
|
-
function
|
|
1695
|
+
function XC(t) {
|
|
1696
1696
|
return Math.abs(t[0]) == 180 && Math.abs(t[1]) == 90 && Math.abs(t[2]) == 180 && Math.abs(t[3]) == 90;
|
|
1697
1697
|
}
|
|
1698
1698
|
function Tt(t, i) {
|
|
@@ -1706,7 +1706,7 @@ function Tt(t, i) {
|
|
|
1706
1706
|
return [Math.abs(o - 90) < 1e-9 ? 0 : o - 90, n, r];
|
|
1707
1707
|
});
|
|
1708
1708
|
}
|
|
1709
|
-
function
|
|
1709
|
+
function YC(t, i, e) {
|
|
1710
1710
|
const s = new i(e), o = ["id", "type"];
|
|
1711
1711
|
for (const n in t)
|
|
1712
1712
|
if (Object.prototype.hasOwnProperty.call(t, n)) {
|
|
@@ -1734,7 +1734,7 @@ class eb extends G {
|
|
|
1734
1734
|
this._currentHeading.value = l;
|
|
1735
1735
|
const d = xi(r, s) / o;
|
|
1736
1736
|
await e.promise(new Promise((u) => {
|
|
1737
|
-
e.disposer.dispose(
|
|
1737
|
+
e.disposer.dispose(gP(() => {
|
|
1738
1738
|
let p = Date.now() - a;
|
|
1739
1739
|
p = p < 0 ? 0 : p, p = p > o ? o : p;
|
|
1740
1740
|
const f = p * d, g = Go(r, f, l);
|
|
@@ -1765,7 +1765,7 @@ class eb extends G {
|
|
|
1765
1765
|
this._processing.cancel();
|
|
1766
1766
|
}
|
|
1767
1767
|
}
|
|
1768
|
-
function
|
|
1768
|
+
function ZC(t, i) {
|
|
1769
1769
|
const e = t.trim();
|
|
1770
1770
|
if (e) {
|
|
1771
1771
|
try {
|
|
@@ -2102,7 +2102,7 @@ function lb(t, i) {
|
|
|
2102
2102
|
a(l);
|
|
2103
2103
|
return a(r.duration), o;
|
|
2104
2104
|
}
|
|
2105
|
-
function
|
|
2105
|
+
function QC(t, i, e) {
|
|
2106
2106
|
return lb(t, {
|
|
2107
2107
|
resolution: i,
|
|
2108
2108
|
sharpness: e
|
|
@@ -2155,7 +2155,7 @@ function Bc(t, i) {
|
|
|
2155
2155
|
x === t._currentFlight && (t.cancelFlight(), t._currentFlight && (console.error("cancelFlight后_currentFlight不应该存在!"), y("cancelFlight后_currentFlight不应该存在!")));
|
|
2156
2156
|
};
|
|
2157
2157
|
});
|
|
2158
|
-
return
|
|
2158
|
+
return mP([v, C]);
|
|
2159
2159
|
}
|
|
2160
2160
|
function me(t, i, e, s, o, n) {
|
|
2161
2161
|
const r = t == null ? void 0 : t.camera;
|
|
@@ -2215,7 +2215,7 @@ async function vi(t, i, e, s, o, n = !1) {
|
|
|
2215
2215
|
function fb(t, i) {
|
|
2216
2216
|
if (i instanceof Ze && i.nativePrimitive && i.nativePrimitive.boundingVolume)
|
|
2217
2217
|
return mm(t, i.nativePrimitive.boundingVolume);
|
|
2218
|
-
if (i instanceof
|
|
2218
|
+
if (i instanceof Bt && i.primitive)
|
|
2219
2219
|
return mm(t, i.primitive.boundingSphere);
|
|
2220
2220
|
}
|
|
2221
2221
|
function mm(t, i) {
|
|
@@ -2439,7 +2439,7 @@ class Cb extends G {
|
|
|
2439
2439
|
}
|
|
2440
2440
|
update() {
|
|
2441
2441
|
const i = this.owner.owner.owner.owner, { primitive: e } = this.owner;
|
|
2442
|
-
if (e.activeAnimations.animateWhilePaused = i.activeAnimationsAnimateWhilePaused ??
|
|
2442
|
+
if (e.activeAnimations.animateWhilePaused = i.activeAnimationsAnimateWhilePaused ?? Bt.defaults.activeAnimationsAnimateWhilePaused, e.activeAnimations.removeAll(), i.activeAnimations)
|
|
2443
2443
|
for (let s of i.activeAnimations)
|
|
2444
2444
|
e.activeAnimations.add({
|
|
2445
2445
|
name: s.name,
|
|
@@ -2457,7 +2457,7 @@ class Cb extends G {
|
|
|
2457
2457
|
}
|
|
2458
2458
|
}
|
|
2459
2459
|
const _b = [6378137, 6378137, 6356752314245179e-9];
|
|
2460
|
-
var
|
|
2460
|
+
var Lt;
|
|
2461
2461
|
((t) => {
|
|
2462
2462
|
t.heightReferencePropsMap = {
|
|
2463
2463
|
NONE: h.HeightReference.NONE,
|
|
@@ -2505,7 +2505,7 @@ var Ot;
|
|
|
2505
2505
|
TRANSLUCENT: h.BlendOption.TRANSLUCENT,
|
|
2506
2506
|
OPAQUE_AND_TRANSLUCENT: h.BlendOption.OPAQUE_AND_TRANSLUCENT
|
|
2507
2507
|
};
|
|
2508
|
-
})(
|
|
2508
|
+
})(Lt || (Lt = {}));
|
|
2509
2509
|
const cg = {
|
|
2510
2510
|
river: {
|
|
2511
2511
|
// 颜色提高亮度
|
|
@@ -2592,19 +2592,19 @@ class Pb extends G {
|
|
|
2592
2592
|
}
|
|
2593
2593
|
update() {
|
|
2594
2594
|
const { visibleAlpha: e, finalShow: s, finalSpecularEnvironmentMapsReact: o } = this.owner.owner.owner, n = this.owner.owner.owner, { primitive: r } = this, a = s;
|
|
2595
|
-
r.show = a, r.clampAnimations = n.clampAnimations ?? !0, r.shadows =
|
|
2595
|
+
r.show = a, r.clampAnimations = n.clampAnimations ?? !0, r.shadows = Lt.shadowPropsMap[n.shadows ?? "DISABLED"], r.debugShowBoundingVolume = n.debugShowBoundingVolume ?? !1, r.debugWireframe = n.debugWireframe ?? !1, r.backFaceCulling = n.backFaceCulling ?? !0, r.heightReference = n.heightReference ? Lt.heightReferencePropsMap[n.heightReference] : Lt.heightReferencePropsMap.NONE, r.distanceDisplayCondition = Fd(n.distanceDisplayCondition ?? [0, Number.MAX_VALUE]);
|
|
2596
2596
|
{
|
|
2597
2597
|
const c = n.color ?? [1, 1, 1, 1];
|
|
2598
2598
|
c[3] *= e;
|
|
2599
2599
|
const d = pe(c);
|
|
2600
2600
|
r.color = d;
|
|
2601
2601
|
}
|
|
2602
|
-
r.colorBlendMode =
|
|
2602
|
+
r.colorBlendMode = Lt.colorBlendModeType[n.colorBlendMode ?? "HIGHLIGHT"], r.silhouetteColor = n.silhouetteColor && pe(n.silhouetteColor) || h.Color.RED, r.silhouetteSize = n.silhouetteSize ?? 0, r.colorBlendAmount = n.colorBlendAmount ?? 0.5, r.lightColor = (n.lightColor && ns(n.lightColor)) ?? void 0;
|
|
2603
2603
|
const l = r.imageBasedLighting;
|
|
2604
|
-
l && (l.imageBasedLightingFactor = Le(n.imageBasedLightingFactor ??
|
|
2604
|
+
l && (l.imageBasedLightingFactor = Le(n.imageBasedLightingFactor ?? Bt.defaults.imageBasedLightingFactor), l.sphericalHarmonicCoefficients = n.sphericalHarmonicCoefficients && $C(n.sphericalHarmonicCoefficients), l.specularEnvironmentMaps = o.value), r.environmentMapManager && qC(r.environmentMapManager, n), r.minimumPixelSize = n.nativeMinimumPixelSize, r.maximumScale = n.nativeMaximumScale, r.scale = n.nativeScale, this._nativePrimitiveReady && this._nativePrimitiveReady.update();
|
|
2605
2605
|
}
|
|
2606
2606
|
}
|
|
2607
|
-
const rc = new h.Cartesian3(), xb = new h.HeadingPitchRoll(), vm = new h.Matrix3(), Sb = new h.Quaternion(), ac = h.ModelComponents.Attribute, bb = h.ModelComponents.FeatureIdAttribute,
|
|
2607
|
+
const rc = new h.Cartesian3(), xb = new h.HeadingPitchRoll(), vm = new h.Matrix3(), Sb = new h.Quaternion(), ac = h.ModelComponents.Attribute, bb = h.ModelComponents.FeatureIdAttribute, KC = h.ModelComponents.Instances;
|
|
2608
2608
|
function Tb(t, i, e, s) {
|
|
2609
2609
|
if (!s || s.length === 0) {
|
|
2610
2610
|
const U = i.nodes, O = U.length;
|
|
@@ -2620,7 +2620,7 @@ function Tb(t, i, e, s) {
|
|
|
2620
2620
|
const r = new Float32Array(3 * n), a = new Float32Array(4 * n), l = new Float32Array(3 * n), c = new Float32Array(n), d = new Array(4), u = new Array(3), p = h.BoundingSphere.fromPoints(s.map((U) => at(U.position))), f = h.Matrix4.inverse(h.Transforms.northWestUpToFixedFrame(p.center), new h.Matrix4());
|
|
2621
2621
|
for (o = 0; o < n; o++)
|
|
2622
2622
|
h.Matrix4.multiplyByPoint(f, at(s[o].position), rc), r[3 * o + 0] = rc.x, r[3 * o + 1] = rc.y, r[3 * o + 2] = rc.z, h.Matrix3.fromHeadingPitchRoll(h.HeadingPitchRoll.fromDegrees(...s[o].rotation ?? [0, 0, 0], xb), vm), h.Quaternion.pack(h.Quaternion.fromRotationMatrix(vm, Sb), d, 0), a[4 * o + 0] = d[0], a[4 * o + 1] = d[1], a[4 * o + 2] = d[2], a[4 * o + 3] = d[3], h.Cartesian3.pack(h.Cartesian3.fromArray(s[o].scale ?? [1, 1, 1]), u, 0), l[3 * o + 0] = u[1], l[3 * o + 1] = u[0], l[3 * o + 2] = u[2], c[o] = o;
|
|
2623
|
-
const g = new
|
|
2623
|
+
const g = new KC();
|
|
2624
2624
|
g.transformInWorldSpace = !0, t._buffers || (t._buffers = []);
|
|
2625
2625
|
const v = t._buffers, C = new ac();
|
|
2626
2626
|
C.name = "Instance Translation", C.semantic = h.InstanceAttributeSemantic.TRANSLATION, C.componentDatatype = h.ComponentDatatype.FLOAT, C.type = h.AttributeType.VEC3, C.count = n, C.typedArray = r, g.attributes.push(C);
|
|
@@ -2686,7 +2686,7 @@ function Ab(t, i) {
|
|
|
2686
2686
|
i.structuralMetadata = s;
|
|
2687
2687
|
}
|
|
2688
2688
|
function Eb(t) {
|
|
2689
|
-
const i = new
|
|
2689
|
+
const i = new KC();
|
|
2690
2690
|
i.transformInWorldSpace = t.transformInWorldSpace;
|
|
2691
2691
|
const e = t.attributes, s = e.length;
|
|
2692
2692
|
for (let o = 0; o < s; o++) {
|
|
@@ -2769,16 +2769,16 @@ class Mb extends G {
|
|
|
2769
2769
|
incrementallyLoadTextures: s.incrementallyLoadTextures,
|
|
2770
2770
|
asynchronous: s.asynchronous,
|
|
2771
2771
|
clampAnimations: s.clampAnimations,
|
|
2772
|
-
shadows: s.shadows &&
|
|
2772
|
+
shadows: s.shadows && Lt.shadowPropsMap[s.shadows],
|
|
2773
2773
|
debugShowBoundingVolume: s.debugShowBoundingVolume,
|
|
2774
2774
|
debugWireframe: s.debugWireframe,
|
|
2775
2775
|
backFaceCulling: s.backFaceCulling,
|
|
2776
2776
|
showOutline: s.showOutline,
|
|
2777
|
-
heightReference: s.heightReference &&
|
|
2777
|
+
heightReference: s.heightReference && Lt.heightReferencePropsMap[s.heightReference],
|
|
2778
2778
|
distanceDisplayCondition: s.distanceDisplayCondition && Fd(s.distanceDisplayCondition),
|
|
2779
2779
|
color: C,
|
|
2780
2780
|
scene: f.scene,
|
|
2781
|
-
colorBlendMode: s.colorBlendMode &&
|
|
2781
|
+
colorBlendMode: s.colorBlendMode && Lt.colorBlendModeType[s.colorBlendMode],
|
|
2782
2782
|
credit: s.credit,
|
|
2783
2783
|
silhouetteColor: s.silhouetteColor && pe(s.silhouetteColor),
|
|
2784
2784
|
colorBlendAmount: s.colorBlendAmount,
|
|
@@ -3089,7 +3089,7 @@ const au = {
|
|
|
3089
3089
|
* 打开本地目录,加载本地gltf数据,注意只能打开gltf文件所在目录
|
|
3090
3090
|
*/
|
|
3091
3091
|
async openLocalDir() {
|
|
3092
|
-
const e = await
|
|
3092
|
+
const e = await vP(["gltf", "glb"], "gltf");
|
|
3093
3093
|
this.url = e;
|
|
3094
3094
|
}
|
|
3095
3095
|
/**
|
|
@@ -3186,7 +3186,7 @@ m(Hn, "defaultUrl", "${earthsdk3-assets-script-dir}/assets/glb/building.glb"), m
|
|
|
3186
3186
|
viewDistanceRange: [1e3, 1e4, 3e4, 6e4],
|
|
3187
3187
|
imageBasedLightingFactor: [1, 1]
|
|
3188
3188
|
});
|
|
3189
|
-
let
|
|
3189
|
+
let Bt = Hn;
|
|
3190
3190
|
((t) => {
|
|
3191
3191
|
t.createDefaultProps = () => ({
|
|
3192
3192
|
show: void 0,
|
|
@@ -3255,8 +3255,8 @@ let Vt = Hn;
|
|
|
3255
3255
|
opaquePass: "OPAQUE",
|
|
3256
3256
|
instances: K(void 0)
|
|
3257
3257
|
});
|
|
3258
|
-
})(
|
|
3259
|
-
ae(
|
|
3258
|
+
})(Bt || (Bt = {}));
|
|
3259
|
+
ae(Bt.prototype, Bt.createDefaultProps);
|
|
3260
3260
|
const Rb = {
|
|
3261
3261
|
id: "e80d8802-e7dc-40d6-8cff-cfe3a12c8763",
|
|
3262
3262
|
type: "CzmCustomPrimitive",
|
|
@@ -3384,7 +3384,7 @@ class Db extends G {
|
|
|
3384
3384
|
this.nativeTexture.copyFrom(e);
|
|
3385
3385
|
}
|
|
3386
3386
|
}
|
|
3387
|
-
function
|
|
3387
|
+
function JC(t, i, e) {
|
|
3388
3388
|
var s;
|
|
3389
3389
|
return h.defined(i.internalFormat) ? s = new h.Texture({
|
|
3390
3390
|
context: t,
|
|
@@ -3479,7 +3479,7 @@ class Fb {
|
|
|
3479
3479
|
let e;
|
|
3480
3480
|
return this._loadingMap.has(i) ? e = this._loadingMap.get(i) : (e = new Promise((s, o) => {
|
|
3481
3481
|
h.Resource.createIfNeeded(i).fetchImage().then((n) => {
|
|
3482
|
-
const r =
|
|
3482
|
+
const r = JC(this._context, n), a = new hh(r);
|
|
3483
3483
|
this._map.set(i, a), this._loadingMap.delete(i), s(a);
|
|
3484
3484
|
}).catch(() => {
|
|
3485
3485
|
console.error("loading image error!"), this._loadingMap.delete(i), o();
|
|
@@ -3587,7 +3587,7 @@ const qn = class qn extends G {
|
|
|
3587
3587
|
m(qn, "types", Kd.types), m(qn, "suffixTypes", Kd.suffixTypes), m(qn, "defaults", {
|
|
3588
3588
|
size: [256, 256],
|
|
3589
3589
|
uriType: "img",
|
|
3590
|
-
czmPixelFormats:
|
|
3590
|
+
czmPixelFormats: yP,
|
|
3591
3591
|
uriTypes: qn.types
|
|
3592
3592
|
});
|
|
3593
3593
|
let it = qn;
|
|
@@ -5235,7 +5235,7 @@ class aT extends G {
|
|
|
5235
5235
|
this._winPosFromCartesian = s || this.disposeVar(new ig(o, !0, n));
|
|
5236
5236
|
let r = 0, a = Number.POSITIVE_INFINITY;
|
|
5237
5237
|
this.dispose(this._near.changed.disposableOn((c) => r = c * c)), this.dispose(this._far.changed.disposableOn((c) => a = c * c));
|
|
5238
|
-
const l = this.disposeVar(
|
|
5238
|
+
const l = this.disposeVar(wP(this._near.changed, this._far.changed, this._show.changed, this._winPosFromCartesian.changed, n.changed));
|
|
5239
5239
|
this.dispose(l.disposableOn(() => {
|
|
5240
5240
|
if (!this.show) {
|
|
5241
5241
|
this._actualShow.value = !1;
|
|
@@ -5279,7 +5279,7 @@ class aT extends G {
|
|
|
5279
5279
|
return this._far.value;
|
|
5280
5280
|
}
|
|
5281
5281
|
}
|
|
5282
|
-
class
|
|
5282
|
+
class jC extends aT {
|
|
5283
5283
|
constructor(e, s, o) {
|
|
5284
5284
|
super(s, o);
|
|
5285
5285
|
m(this, "_canvasPoi");
|
|
@@ -5316,7 +5316,7 @@ class JC extends aT {
|
|
|
5316
5316
|
return this._zOrderChanged || (this._zOrderChanged = new $()), this._zOrderChanged;
|
|
5317
5317
|
}
|
|
5318
5318
|
}
|
|
5319
|
-
class
|
|
5319
|
+
class e_ extends G {
|
|
5320
5320
|
constructor(e, s, o) {
|
|
5321
5321
|
super();
|
|
5322
5322
|
m(this, "_divPoi");
|
|
@@ -5381,7 +5381,7 @@ class u5 extends G {
|
|
|
5381
5381
|
m(this, "_statusChanged");
|
|
5382
5382
|
this._czmPoisContext = o;
|
|
5383
5383
|
const { viewer: r, cameraChanged: a } = this._czmPoisContext;
|
|
5384
|
-
this._winPosFromCartesian = n || this.disposeVar(new ig(r, !0, a)), this._czmCanvasPoi = new
|
|
5384
|
+
this._winPosFromCartesian = n || this.disposeVar(new ig(r, !0, a)), this._czmCanvasPoi = new jC(e, this._czmPoisContext, this._winPosFromCartesian), this.dispose(() => this._czmCanvasPoi.destroy()), this._czmDivPoi = new e_(s, this._czmPoisContext, this._winPosFromCartesian), this.dispose(() => this._czmDivPoi.destroy()), this._switchTransition = new lr(300), this.dispose(this._switchTransition.currentChanged.disposableOn((l, c) => {
|
|
5385
5385
|
this._updateShow(), this._czmCanvasPoi.canvasPoi.opacity = 1 - c, this._czmDivPoi.divPoi.floatDiv.opacity = c;
|
|
5386
5386
|
})), this._updateShow();
|
|
5387
5387
|
}
|
|
@@ -5446,7 +5446,7 @@ class lT extends G {
|
|
|
5446
5446
|
n.style.position = "absolute", n.style.left = "0px", n.style.top = "0px", n.style.width = "100%", n.style.height = "100%", n.style.pointerEvents = "none", o.appendChild(n), this.dispose(() => {
|
|
5447
5447
|
o.removeChild(n);
|
|
5448
5448
|
});
|
|
5449
|
-
const r = new
|
|
5449
|
+
const r = new CP();
|
|
5450
5450
|
this._canvasPrimitivesContext = r, this.dispose(() => {
|
|
5451
5451
|
this._canvasPrimitivesContext.destroy();
|
|
5452
5452
|
}), n.appendChild(r.element);
|
|
@@ -5503,14 +5503,14 @@ class lT extends G {
|
|
|
5503
5503
|
const g = r.pick(u, p, 1, 1);
|
|
5504
5504
|
if (g.length > 0) {
|
|
5505
5505
|
const v = g[0].poi;
|
|
5506
|
-
v instanceof
|
|
5506
|
+
v instanceof PP && (f = v);
|
|
5507
5507
|
}
|
|
5508
5508
|
c(f);
|
|
5509
5509
|
});
|
|
5510
5510
|
if (this.dispose(d), this.dispose(this._outEvent.disposableOn((u, p, f) => {
|
|
5511
5511
|
c(void 0);
|
|
5512
5512
|
})), this._useInnerInteraction) {
|
|
5513
|
-
const u = this._viewer.canvas.parentElement, p = this.disposeVar(tc.create(u, "pointerdown")), f = this.disposeVar(tc.create(u, "pointermove")), g = this.disposeVar(tc.create(u, "pointerup")), v = this.disposeVar(tc.create(u, "pointerout")), C = this.disposeVar(new gC()), P = this.disposeVar(new
|
|
5513
|
+
const u = this._viewer.canvas.parentElement, p = this.disposeVar(tc.create(u, "pointerdown")), f = this.disposeVar(tc.create(u, "pointermove")), g = this.disposeVar(tc.create(u, "pointerup")), v = this.disposeVar(tc.create(u, "pointerout")), C = this.disposeVar(new gC()), P = this.disposeVar(new _P());
|
|
5514
5514
|
this.dispose(p.disposableOn((y) => C.pointerDown(y))), this.dispose(f.disposableOn((y) => C.pointerMove(y))), this.dispose(g.disposableOn((y) => C.pointerUp(y))), this.dispose(v.disposableOn((y) => C.pointerOut(y))), this.dispose(p.disposableOn((y) => P.pointerDown(y))), this.dispose(f.disposableOn((y) => P.pointerMove(y))), this.dispose(g.disposableOn((y) => P.pointerUp(y))), this.dispose(v.disposableOn((y) => P.pointerOut(y))), this.dispose(C.clickEvent.disposableOn((y) => {
|
|
5515
5515
|
const [x, b] = Ht(y);
|
|
5516
5516
|
y.button === 0 ? this._clickEvent.emit(x, b, y) : y.button === 2 && this._clickEvent.emit(x, b, y);
|
|
@@ -5710,7 +5710,7 @@ class hT extends G {
|
|
|
5710
5710
|
constructor(e, s, o, n, r) {
|
|
5711
5711
|
super();
|
|
5712
5712
|
m(this, "czmCanvasPoi");
|
|
5713
|
-
const a = this.czmCanvasPoi = this.disposeVar(new
|
|
5713
|
+
const a = this.czmCanvasPoi = this.disposeVar(new jC(s, o));
|
|
5714
5714
|
this.disposeVar(r(a.canvasPoi, e.visibleAlphaChanged));
|
|
5715
5715
|
{
|
|
5716
5716
|
const l = () => {
|
|
@@ -5765,7 +5765,7 @@ class cT extends G {
|
|
|
5765
5765
|
};
|
|
5766
5766
|
o(), this.dispose(s.disposableOn(o));
|
|
5767
5767
|
const n = this.disposeVar(oe.context.createEnvStrReact([i, "imageUri"], "${earthsdk3-assets-script-dir}/assets/img/location.png")), r = this.disposeVar(Ve(async (c, d) => {
|
|
5768
|
-
const u = await c.promise(
|
|
5768
|
+
const u = await c.promise(xP(d));
|
|
5769
5769
|
e.image = u;
|
|
5770
5770
|
})), a = () => {
|
|
5771
5771
|
if (!n.value)
|
|
@@ -5995,7 +5995,7 @@ class Es extends G {
|
|
|
5995
5995
|
}));
|
|
5996
5996
|
{
|
|
5997
5997
|
const n = () => {
|
|
5998
|
-
const r =
|
|
5998
|
+
const r = ZC(this.clickFuncStr, ["event"]);
|
|
5999
5999
|
r && (this.clickFunc = r);
|
|
6000
6000
|
};
|
|
6001
6001
|
n(), this.dispose(this.clickFuncStrChanged.disposableOn(n));
|
|
@@ -6232,10 +6232,10 @@ const of = `class MyDiv {
|
|
|
6232
6232
|
\`\`\`
|
|
6233
6233
|
${of}
|
|
6234
6234
|
\`\`\`
|
|
6235
|
-
`,
|
|
6235
|
+
`, t_ = `<div style="width: 300px; height: 50px; background: rgba(120, 120, 0, 0.7); color: white; font-size: 30px; line-height: 50px; border: 1px solid white;">Hello world!</div>
|
|
6236
6236
|
`, mT = `示例代码:
|
|
6237
6237
|
\`\`\`
|
|
6238
|
-
${
|
|
6238
|
+
${t_}
|
|
6239
6239
|
\`\`\`
|
|
6240
6240
|
`;
|
|
6241
6241
|
class pt extends G {
|
|
@@ -6263,7 +6263,7 @@ class pt extends G {
|
|
|
6263
6263
|
a.add(this), this.ad(() => {
|
|
6264
6264
|
a.delete(this);
|
|
6265
6265
|
});
|
|
6266
|
-
const l = this._czmDivPoi = this.disposeVar(new
|
|
6266
|
+
const l = this._czmDivPoi = this.disposeVar(new e_(pC, r));
|
|
6267
6267
|
{
|
|
6268
6268
|
const C = () => {
|
|
6269
6269
|
const { contentDiv: P } = l.divPoi.floatDiv;
|
|
@@ -6414,7 +6414,7 @@ m(pt, "defaulInstanceClassStr", of), m(pt, "instanceClassStrReadMe", wm), m(pt,
|
|
|
6414
6414
|
position: [116.39, 39.9, 0],
|
|
6415
6415
|
instanceClassStr: of,
|
|
6416
6416
|
instanceClassStrReadMe: wm,
|
|
6417
|
-
innerHTML:
|
|
6417
|
+
innerHTML: t_,
|
|
6418
6418
|
innerHTMLReadMe: mT,
|
|
6419
6419
|
viewDistanceRange: [1e3, 1e4, 3e4, 6e4],
|
|
6420
6420
|
zOrder: 0
|
|
@@ -7222,7 +7222,7 @@ class We extends G {
|
|
|
7222
7222
|
m(this, "_czmViewVisibleDistanceRangeControl");
|
|
7223
7223
|
m(this, "_id", this.disposeVar(W(st())));
|
|
7224
7224
|
m(this, "_positionsCenter");
|
|
7225
|
-
s && (this.id = s), this._positionsCenter = this.ad(new
|
|
7225
|
+
s && (this.id = s), this._positionsCenter = this.ad(new HC(this.positionsReact)), this._czmViewVisibleDistanceRangeControl = this.disposeVar(new Ir(
|
|
7226
7226
|
e,
|
|
7227
7227
|
[this, "viewDistanceRange"],
|
|
7228
7228
|
this._positionsCenter.centerReact
|
|
@@ -7297,13 +7297,13 @@ class _T extends G {
|
|
|
7297
7297
|
const s = this.disposeVar(new gh(i, e.id));
|
|
7298
7298
|
this.dispose(_([s, "allowPicking"], [e, "allowPicking"])), this.dispose(_([s, "depthTest"], [e, "depthTest"]));
|
|
7299
7299
|
const o = this.disposeVar(B(
|
|
7300
|
-
...
|
|
7300
|
+
...o_(e),
|
|
7301
7301
|
e.czmViewVisibleDistanceRangeControl.visibleAlphaChanged
|
|
7302
7302
|
));
|
|
7303
7303
|
{
|
|
7304
7304
|
const n = () => {
|
|
7305
7305
|
const { visibleAlpha: r } = e.czmViewVisibleDistanceRangeControl;
|
|
7306
|
-
s.show = e.show && r > 0, s.arcType = e.arcType, s.width = e.width, s.positions =
|
|
7306
|
+
s.show = e.show && r > 0, s.arcType = e.arcType, s.width = e.width, s.positions = s_(e), s.material = i_(e);
|
|
7307
7307
|
};
|
|
7308
7308
|
n(), this.dispose(o.disposableOn(n));
|
|
7309
7309
|
}
|
|
@@ -7318,13 +7318,13 @@ class PT extends G {
|
|
|
7318
7318
|
const s = this.disposeVar(new mh(i, e.id));
|
|
7319
7319
|
this.dispose(_([s, "allowPicking"], [e, "allowPicking"])), this.dispose(_([s, "depthTest"], [e, "depthTest"]));
|
|
7320
7320
|
const o = this.disposeVar(B(
|
|
7321
|
-
...
|
|
7321
|
+
...o_(e),
|
|
7322
7322
|
e.czmViewVisibleDistanceRangeControl.visibleAlphaChanged
|
|
7323
7323
|
));
|
|
7324
7324
|
{
|
|
7325
7325
|
const n = () => {
|
|
7326
7326
|
const { visibleAlpha: r } = e.czmViewVisibleDistanceRangeControl;
|
|
7327
|
-
s.show = e.show && r > 0, s.arcType = e.arcType, s.width = e.width, s.positions =
|
|
7327
|
+
s.show = e.show && r > 0, s.arcType = e.arcType, s.width = e.width, s.positions = s_(e), s.material = i_(e);
|
|
7328
7328
|
};
|
|
7329
7329
|
n(), this.dispose(o.disposableOn(n));
|
|
7330
7330
|
}
|
|
@@ -7333,7 +7333,7 @@ class PT extends G {
|
|
|
7333
7333
|
}));
|
|
7334
7334
|
}
|
|
7335
7335
|
}
|
|
7336
|
-
function
|
|
7336
|
+
function i_(t) {
|
|
7337
7337
|
const i = t.color, e = t.gapColor;
|
|
7338
7338
|
let s;
|
|
7339
7339
|
return t.hasDash ? s = {
|
|
@@ -7350,10 +7350,10 @@ function t_(t) {
|
|
|
7350
7350
|
color: i
|
|
7351
7351
|
}, s;
|
|
7352
7352
|
}
|
|
7353
|
-
function
|
|
7353
|
+
function s_(t) {
|
|
7354
7354
|
return t.loop && t.positions && t.positions.length >= 3 ? [...t.positions, t.positions[0]] : t.positions;
|
|
7355
7355
|
}
|
|
7356
|
-
function
|
|
7356
|
+
function o_(t) {
|
|
7357
7357
|
return [
|
|
7358
7358
|
t.showChanged,
|
|
7359
7359
|
t.positionsChanged,
|
|
@@ -7590,7 +7590,7 @@ let Is = Qi;
|
|
|
7590
7590
|
((t) => {
|
|
7591
7591
|
t.createDefaultProps = () => ({
|
|
7592
7592
|
emitter: He(void 0),
|
|
7593
|
-
bursts:
|
|
7593
|
+
bursts: SP(void 0),
|
|
7594
7594
|
position: K(void 0),
|
|
7595
7595
|
// 经度纬度高度,度为单
|
|
7596
7596
|
translation: K(void 0),
|
|
@@ -7635,7 +7635,7 @@ class ST extends G {
|
|
|
7635
7635
|
m(this, "_model");
|
|
7636
7636
|
m(this, "_geoPoint");
|
|
7637
7637
|
m(this, "_geoAxis");
|
|
7638
|
-
this._model = this.disposeVar(new
|
|
7638
|
+
this._model = this.disposeVar(new Bt(s, e.id)), this._geoPoint = this.disposeVar(new Ni(s, e.id)), this._geoAxis = this.disposeVar(new We(s, e.id)), this._geoAxis.hasArrow = !0, this._geoAxis.width = 10;
|
|
7639
7639
|
{
|
|
7640
7640
|
this._model.url = "${earthsdk3-assets-script-dir}/assets/glb/camera1/camera1.gltf", this._model.localRotation = [90, 0, 0], this._model.allowPicking = !1, this._model.pixelSize = 30;
|
|
7641
7641
|
{
|
|
@@ -7801,7 +7801,7 @@ let li = _s;
|
|
|
7801
7801
|
});
|
|
7802
7802
|
})(li || (li = {}));
|
|
7803
7803
|
ae(li.prototype, li.createDefaultProps);
|
|
7804
|
-
function
|
|
7804
|
+
function n_(t, i) {
|
|
7805
7805
|
let e = [0, 0];
|
|
7806
7806
|
if (!t || !i) return e;
|
|
7807
7807
|
const s = t.cloneNode(!0);
|
|
@@ -7853,7 +7853,7 @@ class Io extends G {
|
|
|
7853
7853
|
});
|
|
7854
7854
|
this._sceneObject = e, this._czmViewer = s, this._widgetInfo = o, this._drawWidget = n, this._czmGeoCustomDivPoi = this.disposeVar(new pt(s, e.id));
|
|
7855
7855
|
let a = this.sceneObject = this._sceneObject;
|
|
7856
|
-
this._czmViewer, this.widgetInfo = this._widgetInfo, a instanceof rt && (this.defaultAnchor =
|
|
7856
|
+
this._czmViewer, this.widgetInfo = this._widgetInfo, a instanceof rt && (this.defaultAnchor = n_(this.widgetInfo, a.mode));
|
|
7857
7857
|
const { czmGeoCustomDivPoi: l } = this;
|
|
7858
7858
|
this.d(_([l, "zOrder"], [a, "zOrder"])), this.dispose(_([l, "show"], [a, "show"])), this.dispose(I([l, "position"], [a, "position"])), a instanceof yC && this.dispose(_([l, "opacity"], [a, "opacity"]));
|
|
7859
7859
|
{
|
|
@@ -7941,7 +7941,7 @@ class nf extends Be {
|
|
|
7941
7941
|
});
|
|
7942
7942
|
this._sceneObject = e, this._czmViewer = s, this._widgetInfo = o, this._drawWidget = n, this._czmCustomPrimitive = this.disposeVar(new Ze(s, e.id)), this._czmTexture = this.ad(new it(s));
|
|
7943
7943
|
let a = this.sceneObject = this._sceneObject, l = this.czmViewer = this._czmViewer;
|
|
7944
|
-
this.widgetInfo = this._widgetInfo, a instanceof rt && (this.defaultAnchor =
|
|
7944
|
+
this.widgetInfo = this._widgetInfo, a instanceof rt && (this.defaultAnchor = n_(this.widgetInfo, a.mode));
|
|
7945
7945
|
const { czmTexture: c } = this, { czmCustomPrimitive: d } = this;
|
|
7946
7946
|
d.localRotation = [-90, 0, 0], this.dispose(I([d, "position"], [a, "position"]));
|
|
7947
7947
|
{
|
|
@@ -8966,7 +8966,7 @@ m(Ko, "defaults", {
|
|
|
8966
8966
|
});
|
|
8967
8967
|
})(Ko || (Ko = {}));
|
|
8968
8968
|
ae(Ko.prototype, Ko.createDefaultProps);
|
|
8969
|
-
class
|
|
8969
|
+
class r_ extends G {
|
|
8970
8970
|
constructor(e, s, o, n) {
|
|
8971
8971
|
super();
|
|
8972
8972
|
m(this, "_czmInnerPolygonPrimitive");
|
|
@@ -9003,7 +9003,7 @@ class n_ extends G {
|
|
|
9003
9003
|
return this._czmInnerPolygonPrimitive;
|
|
9004
9004
|
}
|
|
9005
9005
|
}
|
|
9006
|
-
class
|
|
9006
|
+
class a_ extends G {
|
|
9007
9007
|
constructor(e, s, o) {
|
|
9008
9008
|
super();
|
|
9009
9009
|
m(this, "_geoPolyline");
|
|
@@ -9116,7 +9116,7 @@ class zT extends G {
|
|
|
9116
9116
|
m(this, "_innerPolygon");
|
|
9117
9117
|
m(this, "_bottomPolyline");
|
|
9118
9118
|
const o = e.ground;
|
|
9119
|
-
this._innerPolygon = this.disposeVar(new
|
|
9119
|
+
this._innerPolygon = this.disposeVar(new r_(e, s, !0, o)), this._bottomPolyline = this.disposeVar(new a_(e, s, o)), this.disposeVar(new kT(e, s)), this.disposeVar(new FT(e, s)), this.dispose(e.flyToEvent.disposableOn((n) => {
|
|
9120
9120
|
if (e.viewDistanceRange) {
|
|
9121
9121
|
const r = e.positionsCenter.center, a = (e.viewDistanceRange[1] + e.viewDistanceRange[2]) / 2;
|
|
9122
9122
|
me(s.viewer, r, a, void 0, n);
|
|
@@ -9141,7 +9141,7 @@ class LT extends G {
|
|
|
9141
9141
|
m(this, "_innerPolygon");
|
|
9142
9142
|
m(this, "_bottomPolyline");
|
|
9143
9143
|
const o = e.ground;
|
|
9144
|
-
this._innerPolygon = this.disposeVar(new
|
|
9144
|
+
this._innerPolygon = this.disposeVar(new r_(e, s, !1, o)), this._bottomPolyline = this.disposeVar(new a_(e, s, o)), this.dispose(e.flyToEvent.disposableOn((n) => {
|
|
9145
9145
|
if (e.viewDistanceRange) {
|
|
9146
9146
|
const r = e.positionsCenter.center, a = (e.viewDistanceRange[1] + e.viewDistanceRange[2]) / 2;
|
|
9147
9147
|
me(s.viewer, r, a, void 0, n);
|
|
@@ -9168,7 +9168,7 @@ class Jo extends G {
|
|
|
9168
9168
|
m(this, "_czmViewVisibleDistanceRangeControl");
|
|
9169
9169
|
m(this, "_id", this.disposeVar(W(st())));
|
|
9170
9170
|
m(this, "_positionsCenter");
|
|
9171
|
-
this._positionsCenter = this.ad(new
|
|
9171
|
+
this._positionsCenter = this.ad(new HC(this.positionsReact)), this._czmViewVisibleDistanceRangeControl = this.disposeVar(new Ir(
|
|
9172
9172
|
e,
|
|
9173
9173
|
[this, "viewDistanceRange"],
|
|
9174
9174
|
this._positionsCenter.centerReact
|
|
@@ -10137,7 +10137,7 @@ class ed extends G {
|
|
|
10137
10137
|
p(), g();
|
|
10138
10138
|
};
|
|
10139
10139
|
v();
|
|
10140
|
-
let C =
|
|
10140
|
+
let C = bP(v, 500);
|
|
10141
10141
|
const P = this.dv(B(
|
|
10142
10142
|
this.waterColorChanged,
|
|
10143
10143
|
this.frequencyChanged,
|
|
@@ -10371,7 +10371,7 @@ class fr extends G {
|
|
|
10371
10371
|
show: this.show ?? !0,
|
|
10372
10372
|
// modelMatrix: getModelMatrix(),//TODO(ysp)
|
|
10373
10373
|
debugShowBoundingVolume: this.debugShowBoundingVolume ?? !1,
|
|
10374
|
-
blendOption: (this.blendOption &&
|
|
10374
|
+
blendOption: (this.blendOption && Lt.blendOptionType[this.blendOption]) ?? h.BlendOption.OPAQUE_AND_TRANSLUCENT
|
|
10375
10375
|
});
|
|
10376
10376
|
return this.pointPrimitiveOptions && (this.pointPrimitiveOptions.forEach((C) => {
|
|
10377
10377
|
g.add({
|
|
@@ -10396,7 +10396,7 @@ class fr extends G {
|
|
|
10396
10396
|
this.debugShowBoundingVolumeChanged,
|
|
10397
10397
|
this.blendOptionChanged
|
|
10398
10398
|
)), u = () => {
|
|
10399
|
-
r && (r.show = this.show ?? !0, r.debugShowBoundingVolume = this.debugShowBoundingVolume ?? !1, r.blendOption = (this.blendOption &&
|
|
10399
|
+
r && (r.show = this.show ?? !0, r.debugShowBoundingVolume = this.debugShowBoundingVolume ?? !1, r.blendOption = (this.blendOption && Lt.blendOptionType[this.blendOption]) ?? h.BlendOption.OPAQUE_AND_TRANSLUCENT);
|
|
10400
10400
|
};
|
|
10401
10401
|
this.d(d.don(u));
|
|
10402
10402
|
const p = this.dv(B(this.pointPrimitiveOptionsChanged));
|
|
@@ -10716,7 +10716,7 @@ function GT() {
|
|
|
10716
10716
|
}, hu = t, hu;
|
|
10717
10717
|
}
|
|
10718
10718
|
var WT = GT();
|
|
10719
|
-
const
|
|
10719
|
+
const l_ = /* @__PURE__ */ Od(WT), L = {};
|
|
10720
10720
|
L.EPSILON1 = 0.1;
|
|
10721
10721
|
L.EPSILON2 = 0.01;
|
|
10722
10722
|
L.EPSILON3 = 1e-3;
|
|
@@ -10914,14 +10914,14 @@ L.previousPowerOfTwo = function(t) {
|
|
|
10914
10914
|
L.clamp = function(t, i, e) {
|
|
10915
10915
|
return S.typeOf.number("value", t), S.typeOf.number("min", i), S.typeOf.number("max", e), t < i ? i : t > e ? e : t;
|
|
10916
10916
|
};
|
|
10917
|
-
let
|
|
10917
|
+
let h_ = new l_();
|
|
10918
10918
|
L.setRandomNumberSeed = function(t) {
|
|
10919
10919
|
if (!E(t))
|
|
10920
10920
|
throw new q("seed is required.");
|
|
10921
|
-
|
|
10921
|
+
h_ = new l_(t);
|
|
10922
10922
|
};
|
|
10923
10923
|
L.nextRandomNumber = function() {
|
|
10924
|
-
return
|
|
10924
|
+
return h_.random();
|
|
10925
10925
|
};
|
|
10926
10926
|
L.randomBetween = function(t, i) {
|
|
10927
10927
|
return L.nextRandomNumber() * (i - t) + t;
|
|
@@ -11264,7 +11264,7 @@ k.prototype.toString = function() {
|
|
|
11264
11264
|
return `(${this.x}, ${this.y}, ${this.z})`;
|
|
11265
11265
|
};
|
|
11266
11266
|
const qT = new k(), $T = new k();
|
|
11267
|
-
function
|
|
11267
|
+
function c_(t, i, e, s, o) {
|
|
11268
11268
|
if (!E(t))
|
|
11269
11269
|
throw new q("cartesian is required.");
|
|
11270
11270
|
if (!E(i))
|
|
@@ -11316,7 +11316,7 @@ Ae._ellipsoidOneOverRadiiSquared = new k(
|
|
|
11316
11316
|
);
|
|
11317
11317
|
Ae._ellipsoidCenterToleranceSquared = L.EPSILON1;
|
|
11318
11318
|
Ae.fromCartesian = function(t, i, e) {
|
|
11319
|
-
const s = E(i) ? i.oneOverRadii : Ae._ellipsoidOneOverRadii, o = E(i) ? i.oneOverRadiiSquared : Ae._ellipsoidOneOverRadiiSquared, n = E(i) ? i._centerToleranceSquared : Ae._ellipsoidCenterToleranceSquared, r =
|
|
11319
|
+
const s = E(i) ? i.oneOverRadii : Ae._ellipsoidOneOverRadii, o = E(i) ? i.oneOverRadiiSquared : Ae._ellipsoidOneOverRadiiSquared, n = E(i) ? i._centerToleranceSquared : Ae._ellipsoidCenterToleranceSquared, r = c_(
|
|
11320
11320
|
t,
|
|
11321
11321
|
s,
|
|
11322
11322
|
o,
|
|
@@ -11540,7 +11540,7 @@ re.prototype.equalsEpsilon = function(t, i, e) {
|
|
|
11540
11540
|
re.prototype.toString = function() {
|
|
11541
11541
|
return `(${this.x}, ${this.y})`;
|
|
11542
11542
|
};
|
|
11543
|
-
function
|
|
11543
|
+
function d_(t, i, e, s) {
|
|
11544
11544
|
i = i ?? 0, e = e ?? 0, s = s ?? 0, S.typeOf.number.greaterThanOrEquals("x", i, 0), S.typeOf.number.greaterThanOrEquals("y", e, 0), S.typeOf.number.greaterThanOrEquals("z", s, 0), t._radii = new k(i, e, s), t._radiiSquared = new k(i * i, e * e, s * s), t._radiiToTheFourth = new k(
|
|
11545
11545
|
i * i * i * i,
|
|
11546
11546
|
e * e * e * e,
|
|
@@ -11556,7 +11556,7 @@ function c_(t, i, e, s) {
|
|
|
11556
11556
|
), t._minimumRadius = Math.min(i, e, s), t._maximumRadius = Math.max(i, e, s), t._centerToleranceSquared = L.EPSILON1, t._radiiSquared.z !== 0 && (t._squaredXOverSquaredZ = t._radiiSquared.x / t._radiiSquared.z);
|
|
11557
11557
|
}
|
|
11558
11558
|
function ye(t, i, e) {
|
|
11559
|
-
this._radii = void 0, this._radiiSquared = void 0, this._radiiToTheFourth = void 0, this._oneOverRadii = void 0, this._oneOverRadiiSquared = void 0, this._minimumRadius = void 0, this._maximumRadius = void 0, this._centerToleranceSquared = void 0, this._squaredXOverSquaredZ = void 0,
|
|
11559
|
+
this._radii = void 0, this._radiiSquared = void 0, this._radiiToTheFourth = void 0, this._oneOverRadii = void 0, this._oneOverRadiiSquared = void 0, this._minimumRadius = void 0, this._maximumRadius = void 0, this._centerToleranceSquared = void 0, this._squaredXOverSquaredZ = void 0, d_(this, t, i, e);
|
|
11560
11560
|
}
|
|
11561
11561
|
Object.defineProperties(ye.prototype, {
|
|
11562
11562
|
/**
|
|
@@ -11644,7 +11644,7 @@ ye.clone = function(t, i) {
|
|
|
11644
11644
|
return E(i) ? (k.clone(e, i._radii), k.clone(t._radiiSquared, i._radiiSquared), k.clone(t._radiiToTheFourth, i._radiiToTheFourth), k.clone(t._oneOverRadii, i._oneOverRadii), k.clone(t._oneOverRadiiSquared, i._oneOverRadiiSquared), i._minimumRadius = t._minimumRadius, i._maximumRadius = t._maximumRadius, i._centerToleranceSquared = t._centerToleranceSquared, i) : new ye(e.x, e.y, e.z);
|
|
11645
11645
|
};
|
|
11646
11646
|
ye.fromCartesian3 = function(t, i) {
|
|
11647
|
-
return E(i) || (i = new ye()), E(t) &&
|
|
11647
|
+
return E(i) || (i = new ye()), E(t) && d_(i, t.x, t.y, t.z), i;
|
|
11648
11648
|
};
|
|
11649
11649
|
ye.WGS84 = Object.freeze(
|
|
11650
11650
|
new ye(6378137, 6378137, 6356752314245179e-9)
|
|
@@ -11741,7 +11741,7 @@ ye.prototype.cartesianArrayToCartographicArray = function(t, i) {
|
|
|
11741
11741
|
return i;
|
|
11742
11742
|
};
|
|
11743
11743
|
ye.prototype.scaleToGeodeticSurface = function(t, i) {
|
|
11744
|
-
return
|
|
11744
|
+
return c_(
|
|
11745
11745
|
t,
|
|
11746
11746
|
this._oneOverRadii,
|
|
11747
11747
|
this._oneOverRadiiSquared,
|
|
@@ -12387,12 +12387,12 @@ se.prototype.equalsEpsilon = function(t, i, e) {
|
|
|
12387
12387
|
se.prototype.toString = function() {
|
|
12388
12388
|
return `(${this.x}, ${this.y}, ${this.z}, ${this.w})`;
|
|
12389
12389
|
};
|
|
12390
|
-
const dg = new Float32Array(1),
|
|
12390
|
+
const dg = new Float32Array(1), Ft = new Uint8Array(dg.buffer), fA = new Uint32Array([287454020]), gA = new Uint8Array(fA.buffer), u_ = gA[0] === 68;
|
|
12391
12391
|
se.packFloat = function(t, i) {
|
|
12392
|
-
return S.typeOf.number("value", t), E(i) || (i = new se()), dg[0] = t,
|
|
12392
|
+
return S.typeOf.number("value", t), E(i) || (i = new se()), dg[0] = t, u_ ? (i.x = Ft[0], i.y = Ft[1], i.z = Ft[2], i.w = Ft[3]) : (i.x = Ft[3], i.y = Ft[2], i.z = Ft[1], i.w = Ft[0]), i;
|
|
12393
12393
|
};
|
|
12394
12394
|
se.unpackFloat = function(t) {
|
|
12395
|
-
return S.typeOf.object("packedFloat", t),
|
|
12395
|
+
return S.typeOf.object("packedFloat", t), u_ ? (Ft[0] = t.x, Ft[1] = t.y, Ft[2] = t.z, Ft[3] = t.w) : (Ft[0] = t.w, Ft[1] = t.z, Ft[2] = t.y, Ft[3] = t.x), dg[0];
|
|
12396
12396
|
};
|
|
12397
12397
|
const us = {};
|
|
12398
12398
|
us.EMPTY_OBJECT = Object.freeze({});
|
|
@@ -13054,7 +13054,7 @@ const bA = {
|
|
|
13054
13054
|
* @constant
|
|
13055
13055
|
*/
|
|
13056
13056
|
TAI: 1
|
|
13057
|
-
}, Me = Object.freeze(TA),
|
|
13057
|
+
}, Me = Object.freeze(TA), p_ = new pg(), fc = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], gc = 29;
|
|
13058
13058
|
function fg(t, i) {
|
|
13059
13059
|
return ie.compare(t.julianDate, i.julianDate);
|
|
13060
13060
|
}
|
|
@@ -13284,7 +13284,7 @@ ie.toGregorianDate = function(t, i) {
|
|
|
13284
13284
|
ie.toDate = function(t) {
|
|
13285
13285
|
if (!E(t))
|
|
13286
13286
|
throw new q("julianDate is required.");
|
|
13287
|
-
const i = ie.toGregorianDate(t,
|
|
13287
|
+
const i = ie.toGregorianDate(t, p_);
|
|
13288
13288
|
let e = i.second;
|
|
13289
13289
|
return i.isLeapSecond && (e -= 1), new Date(
|
|
13290
13290
|
Date.UTC(
|
|
@@ -13301,7 +13301,7 @@ ie.toDate = function(t) {
|
|
|
13301
13301
|
ie.toIso8601 = function(t, i) {
|
|
13302
13302
|
if (!E(t))
|
|
13303
13303
|
throw new q("julianDate is required.");
|
|
13304
|
-
const e = ie.toGregorianDate(t,
|
|
13304
|
+
const e = ie.toGregorianDate(t, p_);
|
|
13305
13305
|
let s = e.year, o = e.month, n = e.day, r = e.hour;
|
|
13306
13306
|
const a = e.minute, l = e.second, c = e.millisecond;
|
|
13307
13307
|
s === 1e4 && o === 1 && n === 1 && r === 0 && a === 0 && l === 0 && c === 0 && (s = 9999, o = 12, n = 31, r = 24);
|
|
@@ -14881,7 +14881,7 @@ function Vm(t, i, e) {
|
|
|
14881
14881
|
return o.drawImage(t, 0, 0, i, e), o.getImageData(0, 0, i, e).data;
|
|
14882
14882
|
}
|
|
14883
14883
|
const XA = /^blob:/i;
|
|
14884
|
-
function
|
|
14884
|
+
function f_(t) {
|
|
14885
14885
|
return S.typeOf.string("uri", t), XA.test(t);
|
|
14886
14886
|
}
|
|
14887
14887
|
let Xi;
|
|
@@ -14891,7 +14891,7 @@ function hf(t) {
|
|
|
14891
14891
|
return Xi.href = t, Xi.href = Xi.href, e !== Xi.protocol || i !== Xi.host;
|
|
14892
14892
|
}
|
|
14893
14893
|
const YA = /^data:/i;
|
|
14894
|
-
function
|
|
14894
|
+
function g_(t) {
|
|
14895
14895
|
return S.typeOf.string("uri", t), YA.test(t);
|
|
14896
14896
|
}
|
|
14897
14897
|
function ZA(t) {
|
|
@@ -15220,11 +15220,11 @@ const De = {
|
|
|
15220
15220
|
lastNumberOfActiveRequests: 0
|
|
15221
15221
|
};
|
|
15222
15222
|
let nr = 20;
|
|
15223
|
-
const
|
|
15223
|
+
const zt = new Cn({
|
|
15224
15224
|
comparator: sE
|
|
15225
15225
|
});
|
|
15226
|
-
|
|
15227
|
-
|
|
15226
|
+
zt.maximumLength = nr;
|
|
15227
|
+
zt.reserve(nr);
|
|
15228
15228
|
const Ji = [];
|
|
15229
15229
|
let ks = {};
|
|
15230
15230
|
const oE = typeof document < "u" ? new Ds(document.location.href) : new Ds(), Vd = new zr();
|
|
@@ -15266,15 +15266,15 @@ Object.defineProperties(qe, {
|
|
|
15266
15266
|
},
|
|
15267
15267
|
set: function(t) {
|
|
15268
15268
|
if (t < nr)
|
|
15269
|
-
for (;
|
|
15270
|
-
const i =
|
|
15269
|
+
for (; zt.length > t; ) {
|
|
15270
|
+
const i = zt.pop();
|
|
15271
15271
|
Yo(i);
|
|
15272
15272
|
}
|
|
15273
|
-
nr = t,
|
|
15273
|
+
nr = t, zt.maximumLength = t, zt.reserve(t);
|
|
15274
15274
|
}
|
|
15275
15275
|
}
|
|
15276
15276
|
});
|
|
15277
|
-
function
|
|
15277
|
+
function m_(t) {
|
|
15278
15278
|
E(t.priorityFunction) && (t.priority = t.priorityFunction());
|
|
15279
15279
|
}
|
|
15280
15280
|
qe.serverHasOpenSlots = function(t, i) {
|
|
@@ -15283,9 +15283,9 @@ qe.serverHasOpenSlots = function(t, i) {
|
|
|
15283
15283
|
return ks[t] + i <= e;
|
|
15284
15284
|
};
|
|
15285
15285
|
qe.heapHasOpenSlots = function(t) {
|
|
15286
|
-
return
|
|
15286
|
+
return zt.length + t <= nr;
|
|
15287
15287
|
};
|
|
15288
|
-
function
|
|
15288
|
+
function v_(t) {
|
|
15289
15289
|
return t.state === dt.UNISSUED && (t.state = dt.ISSUED, t.deferred = Hh()), t.deferred.promise;
|
|
15290
15290
|
}
|
|
15291
15291
|
function nE(t) {
|
|
@@ -15301,8 +15301,8 @@ function rE(t) {
|
|
|
15301
15301
|
t.state !== dt.CANCELLED && (++De.numberOfFailedRequests, --De.numberOfActiveRequests, --ks[t.serverKey], Vd.raiseEvent(i), t.state = dt.FAILED, t.deferred.reject(i));
|
|
15302
15302
|
};
|
|
15303
15303
|
}
|
|
15304
|
-
function
|
|
15305
|
-
const i =
|
|
15304
|
+
function y_(t) {
|
|
15305
|
+
const i = v_(t);
|
|
15306
15306
|
return t.state = dt.ACTIVE, Ji.push(t), ++De.numberOfActiveRequests, ++De.numberOfActiveRequestsEver, ++ks[t.serverKey], t.requestFunction().then(nE(t)).catch(rE(t)), i;
|
|
15307
15307
|
}
|
|
15308
15308
|
function Yo(t) {
|
|
@@ -15324,17 +15324,17 @@ qe.update = function() {
|
|
|
15324
15324
|
e > 0 && (Ji[t - e] = i);
|
|
15325
15325
|
}
|
|
15326
15326
|
Ji.length -= e;
|
|
15327
|
-
const o =
|
|
15327
|
+
const o = zt.internalArray, n = zt.length;
|
|
15328
15328
|
for (t = 0; t < n; ++t)
|
|
15329
|
-
|
|
15330
|
-
|
|
15329
|
+
m_(o[t]);
|
|
15330
|
+
zt.resort();
|
|
15331
15331
|
const r = Math.max(
|
|
15332
15332
|
qe.maximumRequests - Ji.length,
|
|
15333
15333
|
0
|
|
15334
15334
|
);
|
|
15335
15335
|
let a = 0;
|
|
15336
|
-
for (; a < r &&
|
|
15337
|
-
if (i =
|
|
15336
|
+
for (; a < r && zt.length > 0; ) {
|
|
15337
|
+
if (i = zt.pop(), i.cancelled) {
|
|
15338
15338
|
Yo(i);
|
|
15339
15339
|
continue;
|
|
15340
15340
|
}
|
|
@@ -15342,7 +15342,7 @@ qe.update = function() {
|
|
|
15342
15342
|
Yo(i);
|
|
15343
15343
|
continue;
|
|
15344
15344
|
}
|
|
15345
|
-
|
|
15345
|
+
y_(i), ++a;
|
|
15346
15346
|
}
|
|
15347
15347
|
aE();
|
|
15348
15348
|
};
|
|
@@ -15356,22 +15356,22 @@ qe.getServerKey = function(t) {
|
|
|
15356
15356
|
return E(s) || (ks[e] = 0), e;
|
|
15357
15357
|
};
|
|
15358
15358
|
qe.request = function(t) {
|
|
15359
|
-
if (S.typeOf.object("request", t), S.typeOf.string("request.url", t.url), S.typeOf.func("request.requestFunction", t.requestFunction),
|
|
15359
|
+
if (S.typeOf.object("request", t), S.typeOf.string("request.url", t.url), S.typeOf.func("request.requestFunction", t.requestFunction), g_(t.url) || f_(t.url))
|
|
15360
15360
|
return Vd.raiseEvent(), t.state = dt.RECEIVED, t.requestFunction();
|
|
15361
15361
|
if (++De.numberOfAttemptedRequests, E(t.serverKey) || (t.serverKey = qe.getServerKey(t.url)), qe.throttleRequests && t.throttleByServer && !qe.serverHasOpenSlots(t.serverKey))
|
|
15362
15362
|
return;
|
|
15363
15363
|
if (!qe.throttleRequests || !t.throttle)
|
|
15364
|
-
return
|
|
15364
|
+
return y_(t);
|
|
15365
15365
|
if (Ji.length >= qe.maximumRequests)
|
|
15366
15366
|
return;
|
|
15367
|
-
|
|
15368
|
-
const i =
|
|
15367
|
+
m_(t);
|
|
15368
|
+
const i = zt.insert(t);
|
|
15369
15369
|
if (E(i)) {
|
|
15370
15370
|
if (i === t)
|
|
15371
15371
|
return;
|
|
15372
15372
|
Yo(i);
|
|
15373
15373
|
}
|
|
15374
|
-
return
|
|
15374
|
+
return v_(t);
|
|
15375
15375
|
};
|
|
15376
15376
|
function aE() {
|
|
15377
15377
|
qe.debugShowStatistics && (De.numberOfActiveRequests === 0 && De.lastNumberOfActiveRequests > 0 && (De.numberOfAttemptedRequests > 0 && (console.log(
|
|
@@ -15385,8 +15385,8 @@ function aE() {
|
|
|
15385
15385
|
), De.numberOfFailedRequests = 0)), De.lastNumberOfActiveRequests = De.numberOfActiveRequests);
|
|
15386
15386
|
}
|
|
15387
15387
|
qe.clearForSpecs = function() {
|
|
15388
|
-
for (;
|
|
15389
|
-
const i =
|
|
15388
|
+
for (; zt.length > 0; ) {
|
|
15389
|
+
const i = zt.pop();
|
|
15390
15390
|
Yo(i);
|
|
15391
15391
|
}
|
|
15392
15392
|
const t = Ji.length;
|
|
@@ -15397,7 +15397,7 @@ qe.clearForSpecs = function() {
|
|
|
15397
15397
|
qe.numberOfActiveRequestsByServer = function(t) {
|
|
15398
15398
|
return ks[t];
|
|
15399
15399
|
};
|
|
15400
|
-
qe.requestHeap =
|
|
15400
|
+
qe.requestHeap = zt;
|
|
15401
15401
|
const Lr = {};
|
|
15402
15402
|
let mr = {};
|
|
15403
15403
|
Lr.add = function(t, i) {
|
|
@@ -15442,7 +15442,7 @@ Lr.contains = function(t) {
|
|
|
15442
15442
|
Lr.clear = function() {
|
|
15443
15443
|
mr = {};
|
|
15444
15444
|
};
|
|
15445
|
-
const
|
|
15445
|
+
const w_ = function() {
|
|
15446
15446
|
try {
|
|
15447
15447
|
const t = new XMLHttpRequest();
|
|
15448
15448
|
return t.open("GET", "#", !0), t.responseType = "blob", t.responseType === "blob";
|
|
@@ -15500,7 +15500,7 @@ Object.defineProperties(ne, {
|
|
|
15500
15500
|
*/
|
|
15501
15501
|
isBlobSupported: {
|
|
15502
15502
|
get: function() {
|
|
15503
|
-
return
|
|
15503
|
+
return w_;
|
|
15504
15504
|
}
|
|
15505
15505
|
}
|
|
15506
15506
|
});
|
|
@@ -15566,7 +15566,7 @@ Object.defineProperties(ne.prototype, {
|
|
|
15566
15566
|
*/
|
|
15567
15567
|
isDataUri: {
|
|
15568
15568
|
get: function() {
|
|
15569
|
-
return
|
|
15569
|
+
return g_(this._url);
|
|
15570
15570
|
}
|
|
15571
15571
|
},
|
|
15572
15572
|
/**
|
|
@@ -15577,7 +15577,7 @@ Object.defineProperties(ne.prototype, {
|
|
|
15577
15577
|
*/
|
|
15578
15578
|
isBlobUri: {
|
|
15579
15579
|
get: function() {
|
|
15580
|
-
return
|
|
15580
|
+
return f_(this._url);
|
|
15581
15581
|
}
|
|
15582
15582
|
},
|
|
15583
15583
|
/**
|
|
@@ -15733,7 +15733,7 @@ ne.fetchBlob = function(t) {
|
|
|
15733
15733
|
ne.prototype.fetchImage = function(t) {
|
|
15734
15734
|
t = t ?? us.EMPTY_OBJECT;
|
|
15735
15735
|
const i = t.preferImageBitmap ?? !1, e = t.preferBlob ?? !1, s = t.flipY ?? !1, o = t.skipColorSpaceConversion ?? !1;
|
|
15736
|
-
if (yg(this.request), !
|
|
15736
|
+
if (yg(this.request), !w_ || this.isDataUri || this.isBlobUri || !this.hasHeaders && !e)
|
|
15737
15737
|
return cf({
|
|
15738
15738
|
resource: this,
|
|
15739
15739
|
flipY: s,
|
|
@@ -15846,9 +15846,9 @@ ne.prototype.fetchJsonp = function(t) {
|
|
|
15846
15846
|
do
|
|
15847
15847
|
i = `loadJsonp${L.nextRandomNumber().toString().substring(2, 8)}`;
|
|
15848
15848
|
while (E(window[i]));
|
|
15849
|
-
return
|
|
15849
|
+
return C_(this, t, i);
|
|
15850
15850
|
};
|
|
15851
|
-
function
|
|
15851
|
+
function C_(t, i, e) {
|
|
15852
15852
|
const s = {};
|
|
15853
15853
|
s[i] = e, t.setQueryParameters(s);
|
|
15854
15854
|
const o = t.request, n = t.url;
|
|
@@ -15867,7 +15867,7 @@ function w_(t, i, e) {
|
|
|
15867
15867
|
if (E(r))
|
|
15868
15868
|
return r.catch(function(a) {
|
|
15869
15869
|
return o.state !== dt.FAILED ? Promise.reject(a) : t.retryOnError(a).then(function(l) {
|
|
15870
|
-
return l ? (o.state = dt.UNISSUED, o.deferred = void 0,
|
|
15870
|
+
return l ? (o.state = dt.UNISSUED, o.deferred = void 0, C_(t, i, e)) : Promise.reject(a);
|
|
15871
15871
|
});
|
|
15872
15872
|
});
|
|
15873
15873
|
}
|
|
@@ -16386,21 +16386,21 @@ bt.prototype.equalsEpsilon = function(t, i, e) {
|
|
|
16386
16386
|
bt.prototype.toString = function() {
|
|
16387
16387
|
return `(${this.heading}, ${this.pitch}, ${this.roll})`;
|
|
16388
16388
|
};
|
|
16389
|
-
const
|
|
16389
|
+
const __ = /((?:.*\/)|^)Cesium\.js(?:\?|\#|$)/;
|
|
16390
16390
|
function mE() {
|
|
16391
16391
|
const t = document.getElementsByTagName("script");
|
|
16392
16392
|
for (let i = 0, e = t.length; i < e; ++i) {
|
|
16393
|
-
const s = t[i].getAttribute("src"), o =
|
|
16393
|
+
const s = t[i].getAttribute("src"), o = __.exec(s);
|
|
16394
16394
|
if (o !== null)
|
|
16395
16395
|
return o[1];
|
|
16396
16396
|
}
|
|
16397
16397
|
}
|
|
16398
16398
|
let vc;
|
|
16399
|
-
function
|
|
16399
|
+
function P_(t) {
|
|
16400
16400
|
return typeof document > "u" ? t : (E(vc) || (vc = document.createElement("a")), vc.href = t, vc.href);
|
|
16401
16401
|
}
|
|
16402
16402
|
let Do;
|
|
16403
|
-
function
|
|
16403
|
+
function x_() {
|
|
16404
16404
|
var i;
|
|
16405
16405
|
if (E(Do))
|
|
16406
16406
|
return Do;
|
|
@@ -16413,23 +16413,23 @@ function P_() {
|
|
|
16413
16413
|
"Unable to determine Cesium base URL automatically, try defining a global variable called CESIUM_BASE_URL."
|
|
16414
16414
|
);
|
|
16415
16415
|
return Do = new ne({
|
|
16416
|
-
url:
|
|
16416
|
+
url: P_(t)
|
|
16417
16417
|
}), Do.appendForwardSlash(), Do;
|
|
16418
16418
|
}
|
|
16419
16419
|
function vE(t) {
|
|
16420
|
-
return
|
|
16420
|
+
return P_(require.toUrl(`../${t}`));
|
|
16421
16421
|
}
|
|
16422
|
-
function
|
|
16423
|
-
return
|
|
16422
|
+
function S_(t) {
|
|
16423
|
+
return x_().getDerivedResource({
|
|
16424
16424
|
url: t
|
|
16425
16425
|
}).url;
|
|
16426
16426
|
}
|
|
16427
16427
|
let yc;
|
|
16428
16428
|
function Ri(t) {
|
|
16429
|
-
return E(yc) || (typeof define == "object" && E(define.amd) && !define.amd.toUrlUndefined && E(require.toUrl) ? yc = vE : yc =
|
|
16429
|
+
return E(yc) || (typeof define == "object" && E(define.amd) && !define.amd.toUrlUndefined && E(require.toUrl) ? yc = vE : yc = S_), yc(t);
|
|
16430
16430
|
}
|
|
16431
|
-
Ri._cesiumScriptRegex =
|
|
16432
|
-
Ri._buildModuleUrlFromBaseUrl =
|
|
16431
|
+
Ri._cesiumScriptRegex = __;
|
|
16432
|
+
Ri._buildModuleUrlFromBaseUrl = S_;
|
|
16433
16433
|
Ri._clearBaseResource = function() {
|
|
16434
16434
|
Do = void 0;
|
|
16435
16435
|
};
|
|
@@ -16438,8 +16438,8 @@ Ri.setBaseUrl = function(t) {
|
|
|
16438
16438
|
url: t
|
|
16439
16439
|
});
|
|
16440
16440
|
};
|
|
16441
|
-
Ri.getCesiumBaseUrl =
|
|
16442
|
-
function
|
|
16441
|
+
Ri.getCesiumBaseUrl = x_;
|
|
16442
|
+
function b_(t, i, e) {
|
|
16443
16443
|
this.x = t, this.y = i, this.s = e;
|
|
16444
16444
|
}
|
|
16445
16445
|
function wg(t) {
|
|
@@ -16495,7 +16495,7 @@ wg.prototype.computeXysRadians = function(t, i, e) {
|
|
|
16495
16495
|
const c = this._samples;
|
|
16496
16496
|
if (E(c[r * 3]) || (uf(this, r / this._samplesPerXysFile | 0), l = !0), E(c[a * 3]) || (uf(this, a / this._samplesPerXysFile | 0), l = !0), l)
|
|
16497
16497
|
return;
|
|
16498
|
-
E(e) ? (e.x = 0, e.y = 0, e.s = 0) : e = new
|
|
16498
|
+
E(e) ? (e.x = 0, e.y = 0, e.s = 0) : e = new b_(0, 0, 0);
|
|
16499
16499
|
const d = s - r * this._stepSizeDays, u = this._work, p = this._denominators, f = this._coef, g = this._xTable;
|
|
16500
16500
|
let v, C;
|
|
16501
16501
|
for (v = 0; v <= n; ++v)
|
|
@@ -16629,86 +16629,86 @@ ii.exitFullscreen = function() {
|
|
|
16629
16629
|
ii.supportsFullscreen() && document[nt.exitFullscreen]();
|
|
16630
16630
|
};
|
|
16631
16631
|
ii._names = nt;
|
|
16632
|
-
let
|
|
16633
|
-
typeof navigator < "u" ?
|
|
16632
|
+
let Ot;
|
|
16633
|
+
typeof navigator < "u" ? Ot = navigator : Ot = {};
|
|
16634
16634
|
function on(t) {
|
|
16635
16635
|
const i = t.split(".");
|
|
16636
16636
|
for (let e = 0, s = i.length; e < s; ++e)
|
|
16637
16637
|
i[e] = parseInt(i[e], 10);
|
|
16638
16638
|
return i;
|
|
16639
16639
|
}
|
|
16640
|
-
let wc,
|
|
16640
|
+
let wc, T_;
|
|
16641
16641
|
function Cg() {
|
|
16642
16642
|
if (!E(wc) && (wc = !1, !Nd())) {
|
|
16643
|
-
const t = / Chrome\/([\.0-9]+)/.exec(
|
|
16644
|
-
t !== null && (wc = !0,
|
|
16643
|
+
const t = / Chrome\/([\.0-9]+)/.exec(Ot.userAgent);
|
|
16644
|
+
t !== null && (wc = !0, T_ = on(t[1]));
|
|
16645
16645
|
}
|
|
16646
16646
|
return wc;
|
|
16647
16647
|
}
|
|
16648
16648
|
function wE() {
|
|
16649
|
-
return Cg() &&
|
|
16649
|
+
return Cg() && T_;
|
|
16650
16650
|
}
|
|
16651
|
-
let Cc,
|
|
16652
|
-
function
|
|
16653
|
-
if (!E(Cc) && (Cc = !1, !Cg() && !Nd() && / Safari\/[\.0-9]+/.test(
|
|
16654
|
-
const t = / Version\/([\.0-9]+)/.exec(
|
|
16655
|
-
t !== null && (Cc = !0,
|
|
16651
|
+
let Cc, A_;
|
|
16652
|
+
function E_() {
|
|
16653
|
+
if (!E(Cc) && (Cc = !1, !Cg() && !Nd() && / Safari\/[\.0-9]+/.test(Ot.userAgent))) {
|
|
16654
|
+
const t = / Version\/([\.0-9]+)/.exec(Ot.userAgent);
|
|
16655
|
+
t !== null && (Cc = !0, A_ = on(t[1]));
|
|
16656
16656
|
}
|
|
16657
16657
|
return Cc;
|
|
16658
16658
|
}
|
|
16659
16659
|
function CE() {
|
|
16660
|
-
return
|
|
16660
|
+
return E_() && A_;
|
|
16661
16661
|
}
|
|
16662
16662
|
let _c, pf;
|
|
16663
|
-
function
|
|
16663
|
+
function M_() {
|
|
16664
16664
|
if (!E(_c)) {
|
|
16665
16665
|
_c = !1;
|
|
16666
|
-
const t = / AppleWebKit\/([\.0-9]+)(\+?)/.exec(
|
|
16666
|
+
const t = / AppleWebKit\/([\.0-9]+)(\+?)/.exec(Ot.userAgent);
|
|
16667
16667
|
t !== null && (_c = !0, pf = on(t[1]), pf.isNightly = !!t[2]);
|
|
16668
16668
|
}
|
|
16669
16669
|
return _c;
|
|
16670
16670
|
}
|
|
16671
16671
|
function _E() {
|
|
16672
|
-
return
|
|
16672
|
+
return M_() && pf;
|
|
16673
16673
|
}
|
|
16674
16674
|
let Zr, ff;
|
|
16675
|
-
function
|
|
16675
|
+
function I_() {
|
|
16676
16676
|
if (!E(Zr)) {
|
|
16677
16677
|
Zr = !1;
|
|
16678
16678
|
let t;
|
|
16679
|
-
|
|
16680
|
-
|
|
16679
|
+
Ot.appName === "Microsoft Internet Explorer" ? (t = /MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(Ot.userAgent), t !== null && (Zr = !0, ff = on(t[1]))) : Ot.appName === "Netscape" && (t = /Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(
|
|
16680
|
+
Ot.userAgent
|
|
16681
16681
|
), t !== null && (Zr = !0, ff = on(t[1])));
|
|
16682
16682
|
}
|
|
16683
16683
|
return Zr;
|
|
16684
16684
|
}
|
|
16685
16685
|
function PE() {
|
|
16686
|
-
return
|
|
16686
|
+
return I_() && ff;
|
|
16687
16687
|
}
|
|
16688
|
-
let Pc,
|
|
16688
|
+
let Pc, R_;
|
|
16689
16689
|
function Nd() {
|
|
16690
16690
|
if (!E(Pc)) {
|
|
16691
16691
|
Pc = !1;
|
|
16692
|
-
const t = / Edg\/([\.0-9]+)/.exec(
|
|
16693
|
-
t !== null && (Pc = !0,
|
|
16692
|
+
const t = / Edg\/([\.0-9]+)/.exec(Ot.userAgent);
|
|
16693
|
+
t !== null && (Pc = !0, R_ = on(t[1]));
|
|
16694
16694
|
}
|
|
16695
16695
|
return Pc;
|
|
16696
16696
|
}
|
|
16697
16697
|
function xE() {
|
|
16698
|
-
return Nd() &&
|
|
16698
|
+
return Nd() && R_;
|
|
16699
16699
|
}
|
|
16700
16700
|
let xc, _g;
|
|
16701
16701
|
function Ud() {
|
|
16702
16702
|
if (!E(xc)) {
|
|
16703
16703
|
xc = !1;
|
|
16704
|
-
const t = /Firefox\/([\.0-9]+)/.exec(
|
|
16704
|
+
const t = /Firefox\/([\.0-9]+)/.exec(Ot.userAgent);
|
|
16705
16705
|
t !== null && (xc = !0, _g = on(t[1]));
|
|
16706
16706
|
}
|
|
16707
16707
|
return xc;
|
|
16708
16708
|
}
|
|
16709
16709
|
let pu;
|
|
16710
16710
|
function SE() {
|
|
16711
|
-
return E(pu) || (pu = /Windows/i.test(
|
|
16711
|
+
return E(pu) || (pu = /Windows/i.test(Ot.appVersion)), pu;
|
|
16712
16712
|
}
|
|
16713
16713
|
let fu;
|
|
16714
16714
|
function bE() {
|
|
@@ -16719,10 +16719,10 @@ function TE() {
|
|
|
16719
16719
|
}
|
|
16720
16720
|
let gu;
|
|
16721
16721
|
function AE() {
|
|
16722
|
-
return E(gu) || (gu = !Ud() && typeof PointerEvent < "u" && (!E(
|
|
16722
|
+
return E(gu) || (gu = !Ud() && typeof PointerEvent < "u" && (!E(Ot.pointerEnabled) || Ot.pointerEnabled)), gu;
|
|
16723
16723
|
}
|
|
16724
|
-
let
|
|
16725
|
-
function
|
|
16724
|
+
let D_, Sc;
|
|
16725
|
+
function k_() {
|
|
16726
16726
|
if (!E(Sc)) {
|
|
16727
16727
|
const t = document.createElement("canvas");
|
|
16728
16728
|
t.setAttribute(
|
|
@@ -16730,36 +16730,36 @@ function D_() {
|
|
|
16730
16730
|
"image-rendering: -moz-crisp-edges;image-rendering: pixelated;"
|
|
16731
16731
|
);
|
|
16732
16732
|
const i = t.style.imageRendering;
|
|
16733
|
-
Sc = E(i) && i !== "", Sc && (
|
|
16733
|
+
Sc = E(i) && i !== "", Sc && (D_ = i);
|
|
16734
16734
|
}
|
|
16735
16735
|
return Sc;
|
|
16736
16736
|
}
|
|
16737
16737
|
function EE() {
|
|
16738
|
-
return
|
|
16738
|
+
return k_() ? D_ : void 0;
|
|
16739
16739
|
}
|
|
16740
|
-
function
|
|
16741
|
-
if (!
|
|
16740
|
+
function Dt() {
|
|
16741
|
+
if (!Dt.initialized)
|
|
16742
16742
|
throw new q(
|
|
16743
16743
|
"You must call FeatureDetection.supportsWebP.initialize and wait for the promise to resolve before calling FeatureDetection.supportsWebP"
|
|
16744
16744
|
);
|
|
16745
|
-
return
|
|
16745
|
+
return Dt._result;
|
|
16746
16746
|
}
|
|
16747
|
-
|
|
16748
|
-
|
|
16749
|
-
|
|
16750
|
-
return E(
|
|
16747
|
+
Dt._promise = void 0;
|
|
16748
|
+
Dt._result = void 0;
|
|
16749
|
+
Dt.initialize = function() {
|
|
16750
|
+
return E(Dt._promise) || (Dt._promise = new Promise((t) => {
|
|
16751
16751
|
const i = new Image();
|
|
16752
16752
|
i.onload = function() {
|
|
16753
|
-
|
|
16753
|
+
Dt._result = i.width > 0 && i.height > 0, t(Dt._result);
|
|
16754
16754
|
}, i.onerror = function() {
|
|
16755
|
-
|
|
16755
|
+
Dt._result = !1, t(Dt._result);
|
|
16756
16756
|
}, i.src = "data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA";
|
|
16757
|
-
})),
|
|
16757
|
+
})), Dt._promise;
|
|
16758
16758
|
};
|
|
16759
|
-
Object.defineProperties(
|
|
16759
|
+
Object.defineProperties(Dt, {
|
|
16760
16760
|
initialized: {
|
|
16761
16761
|
get: function() {
|
|
16762
|
-
return E(
|
|
16762
|
+
return E(Dt._result);
|
|
16763
16763
|
}
|
|
16764
16764
|
}
|
|
16765
16765
|
});
|
|
@@ -16777,11 +16777,11 @@ typeof ArrayBuffer < "u" && (Bn.push(
|
|
|
16777
16777
|
const It = {
|
|
16778
16778
|
isChrome: Cg,
|
|
16779
16779
|
chromeVersion: wE,
|
|
16780
|
-
isSafari:
|
|
16780
|
+
isSafari: E_,
|
|
16781
16781
|
safariVersion: CE,
|
|
16782
|
-
isWebkit:
|
|
16782
|
+
isWebkit: M_,
|
|
16783
16783
|
webkitVersion: _E,
|
|
16784
|
-
isInternetExplorer:
|
|
16784
|
+
isInternetExplorer: I_,
|
|
16785
16785
|
internetExplorerVersion: PE,
|
|
16786
16786
|
isEdge: Nd,
|
|
16787
16787
|
edgeVersion: xE,
|
|
@@ -16789,10 +16789,10 @@ const It = {
|
|
|
16789
16789
|
firefoxVersion: TE,
|
|
16790
16790
|
isWindows: SE,
|
|
16791
16791
|
isIPadOrIOS: bE,
|
|
16792
|
-
hardwareConcurrency:
|
|
16792
|
+
hardwareConcurrency: Ot.hardwareConcurrency ?? 3,
|
|
16793
16793
|
supportsPointerEvents: AE,
|
|
16794
|
-
supportsImageRenderingPixelated:
|
|
16795
|
-
supportsWebP:
|
|
16794
|
+
supportsImageRenderingPixelated: k_,
|
|
16795
|
+
supportsWebP: Dt,
|
|
16796
16796
|
imageRenderingValue: EE,
|
|
16797
16797
|
typedArrayTypes: Bn
|
|
16798
16798
|
};
|
|
@@ -17040,13 +17040,13 @@ ee.squad = function(t, i, e, s, o, n) {
|
|
|
17040
17040
|
const r = ee.slerp(t, i, o, la), a = ee.slerp(e, s, o, Un);
|
|
17041
17041
|
return ee.slerp(r, a, 2 * o * (1 - o), n);
|
|
17042
17042
|
};
|
|
17043
|
-
const kE = new ee(),
|
|
17043
|
+
const kE = new ee(), F_ = 1.9011074535173003, rd = It.supportsTypedArrays() ? new Float32Array(8) : [], ad = It.supportsTypedArrays() ? new Float32Array(8) : [], gs = It.supportsTypedArrays() ? new Float32Array(8) : [], ms = It.supportsTypedArrays() ? new Float32Array(8) : [];
|
|
17044
17044
|
for (let t = 0; t < 7; ++t) {
|
|
17045
17045
|
const i = t + 1, e = 2 * i + 1;
|
|
17046
17046
|
rd[t] = 1 / (i * e), ad[t] = i / e;
|
|
17047
17047
|
}
|
|
17048
|
-
rd[7] =
|
|
17049
|
-
ad[7] =
|
|
17048
|
+
rd[7] = F_ / (8 * 17);
|
|
17049
|
+
ad[7] = F_ * 8 / 17;
|
|
17050
17050
|
ee.fastSlerp = function(t, i, e, s) {
|
|
17051
17051
|
S.typeOf.object("start", t), S.typeOf.object("end", i), S.typeOf.number("t", e), S.typeOf.object("result", s);
|
|
17052
17052
|
let o = ee.dot(t, i), n;
|
|
@@ -17342,7 +17342,7 @@ Se.computeIcrfToMoonFixedMatrix = function(t, i) {
|
|
|
17342
17342
|
if (E(e))
|
|
17343
17343
|
return Y.transpose(e, i);
|
|
17344
17344
|
};
|
|
17345
|
-
const iM = new
|
|
17345
|
+
const iM = new b_(0, 0, 0), sM = new ug(
|
|
17346
17346
|
0,
|
|
17347
17347
|
0,
|
|
17348
17348
|
0,
|
|
@@ -17413,7 +17413,7 @@ Se.rotationMatrixFromPositionVelocity = function(t, i, e, s) {
|
|
|
17413
17413
|
const r = k.cross(n, i, aM);
|
|
17414
17414
|
return k.normalize(r, r), k.cross(i, r, n), k.negate(n, n), k.normalize(n, n), E(s) || (s = new Y()), s[0] = i.x, s[1] = i.y, s[2] = i.z, s[3] = n.x, s[4] = n.y, s[5] = n.z, s[6] = r.x, s[7] = r.y, s[8] = r.z, s;
|
|
17415
17415
|
};
|
|
17416
|
-
const
|
|
17416
|
+
const z_ = new Z(
|
|
17417
17417
|
0,
|
|
17418
17418
|
0,
|
|
17419
17419
|
1,
|
|
@@ -17430,7 +17430,7 @@ const F_ = new Z(
|
|
|
17430
17430
|
0,
|
|
17431
17431
|
0,
|
|
17432
17432
|
1
|
|
17433
|
-
),
|
|
17433
|
+
), L_ = new Ae(), mf = new k(), lM = new k(), hM = new Y(), vf = new Z(), O_ = new Z();
|
|
17434
17434
|
Se.basisTo2D = function(t, i, e) {
|
|
17435
17435
|
if (!E(t))
|
|
17436
17436
|
throw new q("projection is required.");
|
|
@@ -17448,7 +17448,7 @@ Se.basisTo2D = function(t, i, e) {
|
|
|
17448
17448
|
else {
|
|
17449
17449
|
const d = o.cartesianToCartographic(
|
|
17450
17450
|
s,
|
|
17451
|
-
|
|
17451
|
+
L_
|
|
17452
17452
|
);
|
|
17453
17453
|
n = t.project(
|
|
17454
17454
|
d,
|
|
@@ -17464,8 +17464,8 @@ Se.basisTo2D = function(t, i, e) {
|
|
|
17464
17464
|
s,
|
|
17465
17465
|
o,
|
|
17466
17466
|
vf
|
|
17467
|
-
), a = Z.inverseTransformation(r,
|
|
17468
|
-
return Z.multiply(
|
|
17467
|
+
), a = Z.inverseTransformation(r, O_), l = Z.getMatrix3(i, hM), c = Z.multiplyByMatrix3(a, l, e);
|
|
17468
|
+
return Z.multiply(z_, c, e), Z.setTranslation(e, n, e), e;
|
|
17469
17469
|
};
|
|
17470
17470
|
Se.ellipsoidTo2DModelMatrix = function(t, i, e) {
|
|
17471
17471
|
if (!E(t))
|
|
@@ -17478,9 +17478,9 @@ Se.ellipsoidTo2DModelMatrix = function(t, i, e) {
|
|
|
17478
17478
|
i,
|
|
17479
17479
|
s,
|
|
17480
17480
|
vf
|
|
17481
|
-
), n = Z.inverseTransformation(o,
|
|
17481
|
+
), n = Z.inverseTransformation(o, O_), r = s.cartesianToCartographic(
|
|
17482
17482
|
i,
|
|
17483
|
-
|
|
17483
|
+
L_
|
|
17484
17484
|
), a = t.project(
|
|
17485
17485
|
r,
|
|
17486
17486
|
mf
|
|
@@ -17495,7 +17495,7 @@ Se.ellipsoidTo2DModelMatrix = function(t, i, e) {
|
|
|
17495
17495
|
a,
|
|
17496
17496
|
vf
|
|
17497
17497
|
);
|
|
17498
|
-
return Z.multiply(
|
|
17498
|
+
return Z.multiply(z_, n, e), Z.multiply(l, e, e), e;
|
|
17499
17499
|
};
|
|
17500
17500
|
function fe(t, i, e, s) {
|
|
17501
17501
|
this.west = t ?? 0, this.south = i ?? 0, this.east = e ?? 0, this.north = s ?? 0;
|
|
@@ -17783,7 +17783,7 @@ function vM(t, i) {
|
|
|
17783
17783
|
typeof t[s] == "function" && (t[s] = e);
|
|
17784
17784
|
t.isDestroyed = mM;
|
|
17785
17785
|
}
|
|
17786
|
-
function
|
|
17786
|
+
function B_() {
|
|
17787
17787
|
if (!E(xt._canTransferArrayBuffer)) {
|
|
17788
17788
|
const t = Pg("transferTypedArrayTest");
|
|
17789
17789
|
t.postMessage = t.webkitPostMessage ?? t.postMessage;
|
|
@@ -17886,7 +17886,7 @@ const wM = (t, i, e, s) => {
|
|
|
17886
17886
|
return o;
|
|
17887
17887
|
}, CM = [];
|
|
17888
17888
|
async function _M(t, i, e) {
|
|
17889
|
-
const s = await Promise.resolve(
|
|
17889
|
+
const s = await Promise.resolve(B_());
|
|
17890
17890
|
E(e) ? s || (e.length = 0) : e = CM;
|
|
17891
17891
|
const o = t._nextID++, n = new Promise((r, a) => {
|
|
17892
17892
|
t._worker.addEventListener(
|
|
@@ -17924,7 +17924,7 @@ xt.prototype.initWebAssemblyModule = async function(t) {
|
|
|
17924
17924
|
const e = this._worker = Pg(this._workerPath), s = await yM(
|
|
17925
17925
|
this,
|
|
17926
17926
|
t
|
|
17927
|
-
), o = await Promise.resolve(
|
|
17927
|
+
), o = await Promise.resolve(B_());
|
|
17928
17928
|
let n;
|
|
17929
17929
|
const r = s.wasmBinary;
|
|
17930
17930
|
E(r) && o && (n = [r]);
|
|
@@ -18099,28 +18099,28 @@ bs.transcode = function(t, i) {
|
|
|
18099
18099
|
throw e;
|
|
18100
18100
|
});
|
|
18101
18101
|
};
|
|
18102
|
-
function
|
|
18102
|
+
function V_(t, i) {
|
|
18103
18103
|
if (!E(t) || !E(i))
|
|
18104
18104
|
throw new q("identifier and message are required.");
|
|
18105
18105
|
qh(t, i);
|
|
18106
18106
|
}
|
|
18107
|
-
function
|
|
18108
|
-
return
|
|
18107
|
+
function N_(t, i) {
|
|
18108
|
+
return V_(
|
|
18109
18109
|
"defaultValue",
|
|
18110
18110
|
"defaultValue has been deprecated and will be removed in Cesium 1.134. Use the nullish coalescing operator instead: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing"
|
|
18111
18111
|
), t ?? i;
|
|
18112
18112
|
}
|
|
18113
|
-
Object.defineProperty(
|
|
18113
|
+
Object.defineProperty(N_, "EMPTY_OBJECT", {
|
|
18114
18114
|
get: function() {
|
|
18115
|
-
return
|
|
18115
|
+
return V_(
|
|
18116
18116
|
"defaultValue.EMPTY_OBJECT",
|
|
18117
18117
|
"defaultValue.EMPTY_OBJECT has been deprecated and will be removed in Cesium 1.134. Use Frozen.EMPTY_OBJECT instead"
|
|
18118
18118
|
), us.EMPTY_OBJECT;
|
|
18119
18119
|
}
|
|
18120
18120
|
});
|
|
18121
|
-
let
|
|
18122
|
-
|
|
18123
|
-
|
|
18121
|
+
let U_;
|
|
18122
|
+
G_.setKTX2SupportedFormats = function(t, i, e, s, o, n) {
|
|
18123
|
+
U_ = {
|
|
18124
18124
|
s3tc: t,
|
|
18125
18125
|
pvrtc: i,
|
|
18126
18126
|
astc: e,
|
|
@@ -18129,11 +18129,11 @@ U_.setKTX2SupportedFormats = function(t, i, e, s, o, n) {
|
|
|
18129
18129
|
bc7: n
|
|
18130
18130
|
};
|
|
18131
18131
|
};
|
|
18132
|
-
function
|
|
18132
|
+
function G_(t) {
|
|
18133
18133
|
S.defined("resourceOrUrlOrBuffer", t);
|
|
18134
18134
|
let i;
|
|
18135
18135
|
return t instanceof ArrayBuffer || ArrayBuffer.isView(t) ? i = Promise.resolve(t) : i = ne.createIfNeeded(t).fetchArrayBuffer(), i.then(function(e) {
|
|
18136
|
-
return bs.transcode(e,
|
|
18136
|
+
return bs.transcode(e, U_);
|
|
18137
18137
|
});
|
|
18138
18138
|
}
|
|
18139
18139
|
function Or() {
|
|
@@ -18266,7 +18266,7 @@ const SM = /\.ktx2$/i;
|
|
|
18266
18266
|
Or.loadImage = function(t, i) {
|
|
18267
18267
|
S.defined("url", i);
|
|
18268
18268
|
const e = ne.createIfNeeded(i);
|
|
18269
|
-
return SM.test(e.url) ?
|
|
18269
|
+
return SM.test(e.url) ? G_(e) : E(t) && E(t.tileDiscardPolicy) ? e.fetchImage({
|
|
18270
18270
|
preferBlob: !0,
|
|
18271
18271
|
preferImageBitmap: !0,
|
|
18272
18272
|
flipY: !0
|
|
@@ -18283,9 +18283,9 @@ var ld = 3.141592653589793 * 3e3 / 180, St = 3.141592653589793, hd = 6378245, cd
|
|
|
18283
18283
|
return [a, l];
|
|
18284
18284
|
}, xg = function(o, s) {
|
|
18285
18285
|
var s = +s, o = +o;
|
|
18286
|
-
if (
|
|
18286
|
+
if (q_(o, s))
|
|
18287
18287
|
return [o, s];
|
|
18288
|
-
var n =
|
|
18288
|
+
var n = W_(o - 105, s - 35), r = H_(o - 105, s - 35), a = s / 180 * St, l = Math.sin(a);
|
|
18289
18289
|
l = 1 - cd * l * l;
|
|
18290
18290
|
var c = Math.sqrt(l);
|
|
18291
18291
|
n = n * 180 / (hd * (1 - cd) / (l * c) * St), r = r * 180 / (hd / c * Math.cos(a) * St);
|
|
@@ -18293,21 +18293,21 @@ var ld = 3.141592653589793 * 3e3 / 180, St = 3.141592653589793, hd = 6378245, cd
|
|
|
18293
18293
|
return [u, d];
|
|
18294
18294
|
}, Sg = function(o, s) {
|
|
18295
18295
|
var s = +s, o = +o;
|
|
18296
|
-
if (
|
|
18296
|
+
if (q_(o, s))
|
|
18297
18297
|
return [o, s];
|
|
18298
|
-
var n =
|
|
18298
|
+
var n = W_(o - 105, s - 35), r = H_(o - 105, s - 35), a = s / 180 * St, l = Math.sin(a);
|
|
18299
18299
|
l = 1 - cd * l * l;
|
|
18300
18300
|
var c = Math.sqrt(l);
|
|
18301
18301
|
n = n * 180 / (hd * (1 - cd) / (l * c) * St), r = r * 180 / (hd / c * Math.cos(a) * St);
|
|
18302
18302
|
var d = s + n, u = o + r;
|
|
18303
18303
|
return [o * 2 - u, s * 2 - d];
|
|
18304
|
-
},
|
|
18304
|
+
}, W_ = function(o, s) {
|
|
18305
18305
|
var s = +s, o = +o, n = -100 + 2 * o + 3 * s + 0.2 * s * s + 0.1 * o * s + 0.2 * Math.sqrt(Math.abs(o));
|
|
18306
18306
|
return n += (20 * Math.sin(6 * o * St) + 20 * Math.sin(2 * o * St)) * 2 / 3, n += (20 * Math.sin(s * St) + 40 * Math.sin(s / 3 * St)) * 2 / 3, n += (160 * Math.sin(s / 12 * St) + 320 * Math.sin(s * St / 30)) * 2 / 3, n;
|
|
18307
|
-
},
|
|
18307
|
+
}, H_ = function(o, s) {
|
|
18308
18308
|
var s = +s, o = +o, n = 300 + o + 2 * s + 0.1 * o * o + 0.1 * o * s + 0.1 * Math.sqrt(Math.abs(o));
|
|
18309
18309
|
return n += (20 * Math.sin(6 * o * St) + 20 * Math.sin(2 * o * St)) * 2 / 3, n += (20 * Math.sin(o * St) + 40 * Math.sin(o / 3 * St)) * 2 / 3, n += (150 * Math.sin(o / 12 * St) + 300 * Math.sin(o / 30 * St)) * 2 / 3, n;
|
|
18310
|
-
},
|
|
18310
|
+
}, q_ = function(o, s) {
|
|
18311
18311
|
var s = +s, o = +o;
|
|
18312
18312
|
return !(o > 73.66 && o < 135.05 && s > 3.86 && s < 53.55);
|
|
18313
18313
|
};
|
|
@@ -18431,7 +18431,7 @@ Xe.prototype.getZoomUnits = function(t) {
|
|
|
18431
18431
|
return Math.pow(2, 18 - t);
|
|
18432
18432
|
};
|
|
18433
18433
|
function _o(t) {
|
|
18434
|
-
t = t || {}, this._ellipsoid =
|
|
18434
|
+
t = t || {}, this._ellipsoid = N_(t.ellipsoid, ye.WGS84);
|
|
18435
18435
|
var i = !0;
|
|
18436
18436
|
E(t.wgs84) && (i = t.wgs84), this._projection = new ni(this._ellipsoid);
|
|
18437
18437
|
var e = new Xe();
|
|
@@ -18704,10 +18704,10 @@ class Tg {
|
|
|
18704
18704
|
m(this, "_style");
|
|
18705
18705
|
m(this, "_accessToken");
|
|
18706
18706
|
m(this, "_enablePickFeatures");
|
|
18707
|
-
this.ready = !1, this.tilingScheme = i.tilingScheme ?? new
|
|
18707
|
+
this.ready = !1, this.tilingScheme = i.tilingScheme ?? new lP(), this.rectangle = i.rectangle ?? this.tilingScheme.rectangle, this.rectangle = hP.intersection(
|
|
18708
18708
|
this.rectangle,
|
|
18709
18709
|
this.tilingScheme.rectangle
|
|
18710
|
-
), this.tileSize = this.tileWidth = this.tileHeight = i.tileSize || 256, this.maximumLevel = i.maximumLevel ?? 18, this.minimumLevel = i.minimumLevel ?? 0, this.tileDiscardPolicy = void 0, this._error = new
|
|
18710
|
+
), this.tileSize = this.tileWidth = this.tileHeight = i.tileSize || 256, this.maximumLevel = i.maximumLevel ?? 18, this.minimumLevel = i.minimumLevel ?? 0, this.tileDiscardPolicy = void 0, this._error = new cP(), this.credit = new dP(i.credit || "", !1), this.proxy = new uP(""), this.hasAlphaChannel = i.hasAlphaChannel ?? !0, this.sourceFilter = i.sourceFilter, this._accessToken = i.accessToken, this._enablePickFeatures = i.enablePickFeatures ?? !0, this.layerStyle = i.layerStyle ?? [], pP(i.style) && (this.readyPromise = this._build(i.style, i).then(() => !0));
|
|
18711
18711
|
}
|
|
18712
18712
|
/**
|
|
18713
18713
|
* get mapbox style json obj
|
|
@@ -18825,7 +18825,7 @@ class Tg {
|
|
|
18825
18825
|
l = this.sourceFilter ? this.sourceFilter(l) : l;
|
|
18826
18826
|
const c = [], d = Kp.toDegrees(o), u = Kp.toDegrees(n);
|
|
18827
18827
|
return l.forEach((p) => {
|
|
18828
|
-
const f = new
|
|
18828
|
+
const f = new fP();
|
|
18829
18829
|
f.data = this.mapboxRenderer.queryRenderedFeatures({
|
|
18830
18830
|
source: p,
|
|
18831
18831
|
renderedZoom: s,
|
|
@@ -19228,7 +19228,9 @@ class nn extends G {
|
|
|
19228
19228
|
if (!n)
|
|
19229
19229
|
return;
|
|
19230
19230
|
const { imageriesManager: r } = n;
|
|
19231
|
-
r.add(this), this.dispose(() =>
|
|
19231
|
+
r.add(this), this.dispose(() => {
|
|
19232
|
+
r.has(this) && r.delete(this);
|
|
19233
|
+
});
|
|
19232
19234
|
const a = () => {
|
|
19233
19235
|
this.layer && (this.layer = void 0);
|
|
19234
19236
|
};
|
|
@@ -19300,7 +19302,7 @@ class nn extends G {
|
|
|
19300
19302
|
return;
|
|
19301
19303
|
const { viewer: C } = e;
|
|
19302
19304
|
C && C.camera.flyTo({
|
|
19303
|
-
destination: this.rectangle &&
|
|
19305
|
+
destination: this.rectangle && !XC(this.rectangle) ? ct(this.rectangle) : h.Camera.DEFAULT_VIEW_RECTANGLE,
|
|
19304
19306
|
duration: v
|
|
19305
19307
|
});
|
|
19306
19308
|
}));
|
|
@@ -19400,19 +19402,20 @@ m(nn, "defaults", {
|
|
|
19400
19402
|
zIndex: 0,
|
|
19401
19403
|
// 非原始Czm属性,为了设置影像的层级关系而添加
|
|
19402
19404
|
hasAlphaChannel: void 0,
|
|
19403
|
-
pickFeaturesUrl: void 0
|
|
19405
|
+
pickFeaturesUrl: void 0,
|
|
19404
19406
|
// enablePickFeatures: undefined as boolean | undefined,
|
|
19405
19407
|
// urlSchemeZeroPadding?: Object,
|
|
19406
19408
|
// getFeatureInfoFormats?: Array<any>;// Array.<GetFeatureInfoFormat>
|
|
19407
19409
|
// customTags?: object;
|
|
19410
|
+
targetID: void 0
|
|
19408
19411
|
});
|
|
19409
19412
|
})(nn || (nn = {}));
|
|
19410
19413
|
ae(nn.prototype, nn.createDefaultProps);
|
|
19411
|
-
const Ag = h.ApproximateTerrainHeights, zM = h.ComponentDatatype, Yi = h.defaultValue, At = h.defined, LM = h.destroyObject, Cf = h.DeveloperError, OM = h.deprecationWarning, BM = h.GeometryInstance, VM = h.GeometryInstanceAttribute, NM = h.GroundPolylineGeometry, Kr = h.DrawCommand, ev = h.Pass,
|
|
19414
|
+
const Ag = h.ApproximateTerrainHeights, zM = h.ComponentDatatype, Yi = h.defaultValue, At = h.defined, LM = h.destroyObject, Cf = h.DeveloperError, OM = h.deprecationWarning, BM = h.GeometryInstance, VM = h.GeometryInstanceAttribute, NM = h.GroundPolylineGeometry, Kr = h.DrawCommand, ev = h.Pass, $_ = h.RenderState, UM = h.ShaderProgram, Jr = h.ShaderSource;
|
|
19412
19415
|
let _f = h._shadersPolylineShadowVolumeFS;
|
|
19413
19416
|
const GM = h._shadersPolylineShadowVolumeMorphFS, WM = h._shadersPolylineShadowVolumeMorphVS;
|
|
19414
19417
|
let Pf = h._shadersPolylineShadowVolumeVS;
|
|
19415
|
-
const
|
|
19418
|
+
const X_ = h.BlendingState, xf = h.ClassificationType, HM = h.CullFace, Y_ = h.PolylineColorAppearance, qM = h.PolylineMaterialAppearance, $s = h.Primitive, Gn = h.SceneMode, tv = h.StencilConstants, iv = h.StencilFunction, Dn = h.StencilOperation;
|
|
19416
19419
|
Pf = Pf.replace("width = width * max(0.0, czm_metersPerPixel(positionEC));", "");
|
|
19417
19420
|
_f = _f.replace("float halfMaxWidth = v_startPlaneNormalEcAndHalfWidth.w * czm_metersPerPixel(eyeCoordinate);", "float halfMaxWidth = v_startPlaneNormalEcAndHalfWidth.w;");
|
|
19418
19421
|
function Fs(t) {
|
|
@@ -19450,7 +19453,7 @@ function Fs(t) {
|
|
|
19450
19453
|
const n = this._error;
|
|
19451
19454
|
At(n) ? o(n) : s(this);
|
|
19452
19455
|
};
|
|
19453
|
-
}), this._primitive = void 0, this._sp = void 0, this._sp2D = void 0, this._spMorph = void 0, this._renderState = sv(!1), this._renderState3DTiles = sv(!0), this._renderStateMorph =
|
|
19456
|
+
}), this._primitive = void 0, this._sp = void 0, this._sp2D = void 0, this._spMorph = void 0, this._renderState = sv(!1), this._renderState3DTiles = sv(!0), this._renderStateMorph = $_.fromCache({
|
|
19454
19457
|
cull: {
|
|
19455
19458
|
enabled: !0,
|
|
19456
19459
|
face: HM.FRONT
|
|
@@ -19459,7 +19462,7 @@ function Fs(t) {
|
|
|
19459
19462
|
depthTest: {
|
|
19460
19463
|
enabled: !0
|
|
19461
19464
|
},
|
|
19462
|
-
blending:
|
|
19465
|
+
blending: X_.PRE_MULTIPLIED_ALPHA_BLEND,
|
|
19463
19466
|
depthMask: !1
|
|
19464
19467
|
});
|
|
19465
19468
|
}
|
|
@@ -19678,12 +19681,12 @@ function $M(t, i, e) {
|
|
|
19678
19681
|
t._spMorph = C;
|
|
19679
19682
|
}
|
|
19680
19683
|
function sv(t) {
|
|
19681
|
-
return
|
|
19684
|
+
return $_.fromCache({
|
|
19682
19685
|
cull: {
|
|
19683
19686
|
enabled: !0
|
|
19684
19687
|
// prevent double-draw. Geometry is "inverted" (reversed winding order) so we're drawing backfaces.
|
|
19685
19688
|
},
|
|
19686
|
-
blending:
|
|
19689
|
+
blending: X_.PRE_MULTIPLIED_ALPHA_BLEND,
|
|
19687
19690
|
depthMask: !1,
|
|
19688
19691
|
stencilTest: {
|
|
19689
19692
|
enabled: t,
|
|
@@ -19707,7 +19710,7 @@ function sv(t) {
|
|
|
19707
19710
|
function XM(t, i, e, s, o, n) {
|
|
19708
19711
|
const r = t._primitive, a = r._va.length;
|
|
19709
19712
|
o.length = a, n.length = a;
|
|
19710
|
-
const c = i instanceof
|
|
19713
|
+
const c = i instanceof Y_ ? {} : e._uniforms, d = r._batchTable.getUniformMapCallback()(
|
|
19711
19714
|
c
|
|
19712
19715
|
);
|
|
19713
19716
|
for (let u = 0; u < a; u++) {
|
|
@@ -19838,7 +19841,7 @@ Fs.prototype.update = function(t) {
|
|
|
19838
19841
|
);
|
|
19839
19842
|
}, this._primitive = new $s(s);
|
|
19840
19843
|
}
|
|
19841
|
-
if (this.appearance instanceof
|
|
19844
|
+
if (this.appearance instanceof Y_ && !this._hasPerInstanceColors)
|
|
19842
19845
|
throw new Cf(
|
|
19843
19846
|
"All GeometryInstances must have color attributes to use PolylineColorAppearance with GroundPolylinePrimitive."
|
|
19844
19847
|
);
|
|
@@ -20015,7 +20018,7 @@ class xh extends G {
|
|
|
20015
20018
|
{
|
|
20016
20019
|
const s = () => {
|
|
20017
20020
|
if (this.positions) {
|
|
20018
|
-
const n = this.granularity * Math.PI / 180, r =
|
|
20021
|
+
const n = this.granularity * Math.PI / 180, r = VC(this.positions, this.arcType ?? "GEODESIC", n);
|
|
20019
20022
|
if (r) {
|
|
20020
20023
|
this._geoPath.timePosRots = r.timePosRots, this.rotationRadius.some((a) => a > 0) ? (this._geoPath.addAroundPoints(this.rotationRadius, !0), this._geoPath.computeRotIfUndefinedUsingLerp(!0), this._geoPath.rotLerpMode = "Lerp") : (this._geoPath.computeRotIfUndefinedUsingPrevLine(!0), this._geoPath.rotLerpMode = this.rotLerpMode);
|
|
20021
20024
|
return;
|
|
@@ -20185,7 +20188,7 @@ class Re extends Wi {
|
|
|
20185
20188
|
constructor(e, s) {
|
|
20186
20189
|
super(e, s);
|
|
20187
20190
|
m(this, "_smoothMoving");
|
|
20188
|
-
if (this._smoothMoving = this.disposeVar(new
|
|
20191
|
+
if (this._smoothMoving = this.disposeVar(new FP(this.czmViewer)), this.d(this._smoothMoving.currentPositionChanged.don((n) => {
|
|
20189
20192
|
n && (this.sceneObject.position = n);
|
|
20190
20193
|
})), this.d(this._smoothMoving.currentRotationChanged.don((n) => {
|
|
20191
20194
|
n && this._smoothMoving.isRotating && (this.sceneObject.rotation = n);
|
|
@@ -20496,7 +20499,7 @@ class nI extends G {
|
|
|
20496
20499
|
}
|
|
20497
20500
|
}
|
|
20498
20501
|
function rI(t, i) {
|
|
20499
|
-
t.show = i.show ?? !0, t.colorBlendMode = h.Cesium3DTileColorBlendMode[i.colorBlendMode ?? "HIGHLIGHT"], t.shadows = (i.shadows &&
|
|
20502
|
+
t.show = i.show ?? !0, t.colorBlendMode = h.Cesium3DTileColorBlendMode[i.colorBlendMode ?? "HIGHLIGHT"], t.shadows = (i.shadows && Lt.shadowPropsMap[i.shadows]) ?? Lt.shadowPropsMap.ENABLED, t.maximumScreenSpaceError = i.maximumScreenSpaceError ?? 16, t.maximumMemoryUsage = i.maximumMemoryUsage ?? Oe.defaults.maximumMemoryUsage, t.cacheBytes = i.cacheBytes ?? Oe.defaults.cacheBytes, t.maximumCacheOverflowBytes = i.maximumCacheOverflowBytes ?? Oe.defaults.maximumCacheOverflowBytes, t.cullRequestsWhileMoving = i.cullRequestsWhileMoving ?? !0, t.cullRequestsWhileMovingMultiplier = i.cullRequestsWhileMovingMultiplier ?? 60, t.preloadWhenHidden = i.preloadWhenHidden ?? !1, t.preloadFlightDestinations = i.preloadFlightDestinations ?? !0, t.preferLeaves = i.preferLeaves ?? !1, t.dynamicScreenSpaceError = i.dynamicScreenSpaceError ?? !1, t.dynamicScreenSpaceErrorDensity = i.dynamicScreenSpaceErrorDensity ?? 278e-5, t.dynamicScreenSpaceErrorFactor = i.dynamicScreenSpaceErrorFactor ?? 4, t.dynamicScreenSpaceErrorHeightFalloff = i.dynamicScreenSpaceErrorHeightFalloff ?? 0.25, t.progressiveResolutionHeightFraction = i.progressiveResolutionHeightFraction ?? 0.3, t.foveatedScreenSpaceError = i.foveatedScreenSpaceError ?? !0, t.foveatedConeSize = i.foveatedConeSize ?? 0.1, t.foveatedMinimumScreenSpaceErrorRelaxation = i.foveatedMinimumScreenSpaceErrorRelaxation ?? 0, t.foveatedTimeDelay = i.foveatedTimeDelay ?? 0.2, t.skipLevelOfDetail = i.skipLevelOfDetail ?? !1, t.baseScreenSpaceError = i.baseScreenSpaceError ?? 1024, t.skipScreenSpaceErrorFactor = i.skipScreenSpaceErrorFactor ?? 16, t.skipLevels = i.skipLevels ?? 1, t.immediatelyLoadDesiredLevelOfDetail = i.immediatelyLoadDesiredLevelOfDetail ?? !1, t.loadSiblings = i.loadSiblings ?? !1, t.lightColor = (i.lightColor && ji(i.lightColor)) ?? Oe.defaults.lightColor, t.backFaceCulling = i.backFaceCulling ?? !0, t.showOutline = i.showOutline ?? !0, t.outlineColor = pe(i.outlineColor ?? Oe.defaults.outlineColor), t.featureIdLabel = i.featureIdLabel ?? Oe.defaults.featureIdLabel, t.instanceFeatureIdLabel = i.instanceFeatureIdLabel ?? Oe.defaults.instanceFeatureIdLabel, t.showCreditsOnScreen = i.showCreditsOnScreen ?? !1, t.splitDirection = h.SplitDirection[i.splitDirection ?? Oe.defaults.splitDirection], t.debugFreezeFrame = i.debugFreezeFrame ?? !1, t.debugColorizeTiles = i.debugColorizeTiles ?? !1, t.debugWireframe = i.debugWireframe ?? !1, t.debugShowBoundingVolume = i.debugShowBoundingVolume ?? !1, t.debugShowContentBoundingVolume = i.debugShowContentBoundingVolume ?? !1, t.debugShowViewerRequestVolume = i.debugShowViewerRequestVolume ?? !1, t.debugShowGeometricError = i.debugShowGeometricError ?? !1, t.debugShowRenderingStatistics = i.debugShowRenderingStatistics ?? !1, t.debugShowMemoryUsage = i.debugShowMemoryUsage ?? !1, t.debugShowUrl = i.debugShowUrl ?? !1;
|
|
20500
20503
|
}
|
|
20501
20504
|
function aI(t) {
|
|
20502
20505
|
return [
|
|
@@ -20573,7 +20576,7 @@ function hI(t, i) {
|
|
|
20573
20576
|
var s, o, n;
|
|
20574
20577
|
t.imageBasedLighting.imageBasedLightingFactor = Le(((s = i.imageBasedLighting) == null ? void 0 : s.imageBasedLightingFactor) ?? [1, 1]), t.imageBasedLighting.specularEnvironmentMaps = (o = i.imageBasedLighting) == null ? void 0 : o.specularEnvironmentMaps;
|
|
20575
20578
|
const e = (n = i.imageBasedLighting) == null ? void 0 : n.sphericalHarmonicCoefficients;
|
|
20576
|
-
t.imageBasedLighting.sphericalHarmonicCoefficients = e &&
|
|
20579
|
+
t.imageBasedLighting.sphericalHarmonicCoefficients = e && $C(e);
|
|
20577
20580
|
}
|
|
20578
20581
|
class cI extends Be {
|
|
20579
20582
|
constructor(e, s, o, n) {
|
|
@@ -20614,7 +20617,7 @@ class cI extends Be {
|
|
|
20614
20617
|
}), Oi(this, a.imageBasedLightingChanged, () => {
|
|
20615
20618
|
hI(r, a);
|
|
20616
20619
|
}), Oi(this, a.environmentMapManagerChanged, () => {
|
|
20617
|
-
|
|
20620
|
+
qC(r.environmentMapManager, a);
|
|
20618
20621
|
});
|
|
20619
20622
|
let c = [], d, u, p = !0, f = () => {
|
|
20620
20623
|
var C;
|
|
@@ -20732,7 +20735,7 @@ async function uI(t, i, e) {
|
|
|
20732
20735
|
s,
|
|
20733
20736
|
{
|
|
20734
20737
|
show: t.show,
|
|
20735
|
-
shadows: t.shadows &&
|
|
20738
|
+
shadows: t.shadows && Lt.shadowPropsMap[t.shadows],
|
|
20736
20739
|
maximumScreenSpaceError: t.maximumScreenSpaceError,
|
|
20737
20740
|
// Cesium 1.110以下版本仍然可以通过这个属性来控制
|
|
20738
20741
|
// @ts-ignore
|
|
@@ -20761,7 +20764,7 @@ async function uI(t, i, e) {
|
|
|
20761
20764
|
skipLevels: t.skipLevels,
|
|
20762
20765
|
immediatelyLoadDesiredLevelOfDetail: t.immediatelyLoadDesiredLevelOfDetail,
|
|
20763
20766
|
loadSiblings: t.loadSiblings,
|
|
20764
|
-
classificationType:
|
|
20767
|
+
classificationType: Lt.classificationTypeMap[t.classificationType ?? Oe.defaults.classificationType],
|
|
20765
20768
|
lightColor: t.lightColor && ns(t.lightColor),
|
|
20766
20769
|
backFaceCulling: t.backFaceCulling ?? Oe.defaults.backFaceCulling,
|
|
20767
20770
|
showOutline: t.showOutline ?? Oe.defaults.showOutline,
|
|
@@ -20910,7 +20913,7 @@ function yI(t) {
|
|
|
20910
20913
|
}
|
|
20911
20914
|
return i || h.Math.lerp;
|
|
20912
20915
|
}
|
|
20913
|
-
const
|
|
20916
|
+
const Z_ = `
|
|
20914
20917
|
// shader定义请参见文档:https://github.com/CesiumGS/cesium/tree/main/Documentation/CustomShaderGuide#customshader-documentation
|
|
20915
20918
|
class CityShaderInstance extends xbsj['xr-base-utils'].Destroyable {
|
|
20916
20919
|
constructor(sceneObject, viewer) {
|
|
@@ -20946,7 +20949,7 @@ shader定义请参见文档:https://github.com/CesiumGS/cesium/tree/main/Docum
|
|
|
20946
20949
|
|
|
20947
20950
|
## 示例1 默认纯色示例
|
|
20948
20951
|
\`\`\`
|
|
20949
|
-
${
|
|
20952
|
+
${Z_}
|
|
20950
20953
|
\`\`\`
|
|
20951
20954
|
|
|
20952
20955
|
## 示例2 数字城市示例
|
|
@@ -21053,7 +21056,7 @@ class CityShaderInstance extends xbsj['xr-base-utils'].Destroyable {
|
|
|
21053
21056
|
return (1.0 - time) * p + time * q;
|
|
21054
21057
|
};`, PI = {
|
|
21055
21058
|
color: "vec4(1,0,0,1)"
|
|
21056
|
-
},
|
|
21059
|
+
}, Q_ = {
|
|
21057
21060
|
planes: [{ normal: [1, 0, 0], distance: 0 }],
|
|
21058
21061
|
enabled: !0,
|
|
21059
21062
|
modelMatrix: [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1],
|
|
@@ -21061,8 +21064,8 @@ class CityShaderInstance extends xbsj['xr-base-utils'].Destroyable {
|
|
|
21061
21064
|
edgeColor: [1, 1, 1, 1],
|
|
21062
21065
|
edgeWidth: 2
|
|
21063
21066
|
};
|
|
21064
|
-
`${JSON.stringify(
|
|
21065
|
-
const
|
|
21067
|
+
`${JSON.stringify(Q_, void 0, " ")}`;
|
|
21068
|
+
const K_ = {
|
|
21066
21069
|
attenuation: !1,
|
|
21067
21070
|
geometricErrorScale: 1,
|
|
21068
21071
|
maximumAttenuation: 16,
|
|
@@ -21073,8 +21076,8 @@ const Q_ = {
|
|
|
21073
21076
|
backFaceCulling: !1,
|
|
21074
21077
|
normalShading: !0
|
|
21075
21078
|
};
|
|
21076
|
-
`${JSON.stringify(
|
|
21077
|
-
const
|
|
21079
|
+
`${JSON.stringify(K_, void 0, " ")}`;
|
|
21080
|
+
const J_ = {
|
|
21078
21081
|
imageBasedLightingFactor: [1, 1],
|
|
21079
21082
|
luminanceAtZenith: 2,
|
|
21080
21083
|
sphericalHarmonicCoefficients: [
|
|
@@ -21101,7 +21104,7 @@ const K_ = {
|
|
|
21101
21104
|
groundColor: [0.44313725490196076, 0.44313725490196076, 0.27058823529411763, 1],
|
|
21102
21105
|
groundAlbedo: 0.31
|
|
21103
21106
|
};
|
|
21104
|
-
`${JSON.stringify(
|
|
21107
|
+
`${JSON.stringify(J_, void 0, " ")}`;
|
|
21105
21108
|
const SI = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
|
|
21106
21109
|
let bI = class extends Be {
|
|
21107
21110
|
constructor(i, e) {
|
|
@@ -21332,7 +21335,7 @@ const ai = class ai extends Be {
|
|
|
21332
21335
|
this.url = s;
|
|
21333
21336
|
}
|
|
21334
21337
|
};
|
|
21335
|
-
m(ai, "defaultCustomShaderInstanceClassStr",
|
|
21338
|
+
m(ai, "defaultCustomShaderInstanceClassStr", Z_), m(ai, "customShaderInstanceClassStrMd", wI), m(ai, "styleMd", CI), m(ai, "defaultFoveatedInterpolationCallbackStr", _I), m(ai, "defaultStyleJson", PI), m(ai, "defaultFoveatedInterpolationCallback", h.Math.lerp), m(ai, "defaults", {
|
|
21336
21339
|
// 构造函数中使用的参数,和cesium源码中的构造参数顺序保持一致
|
|
21337
21340
|
url: "",
|
|
21338
21341
|
show: !0,
|
|
@@ -21367,12 +21370,12 @@ m(ai, "defaultCustomShaderInstanceClassStr", Y_), m(ai, "customShaderInstanceCla
|
|
|
21367
21370
|
skipLevels: 1,
|
|
21368
21371
|
immediatelyLoadDesiredLevelOfDetail: !1,
|
|
21369
21372
|
loadSiblings: !1,
|
|
21370
|
-
clippingPlanes:
|
|
21373
|
+
clippingPlanes: Q_,
|
|
21371
21374
|
classificationType: "NONE",
|
|
21372
21375
|
ellipsoid: _b,
|
|
21373
|
-
pointCloudShading:
|
|
21376
|
+
pointCloudShading: K_,
|
|
21374
21377
|
lightColor: void 0,
|
|
21375
|
-
imageBasedLighting:
|
|
21378
|
+
imageBasedLighting: J_,
|
|
21376
21379
|
environmentMapManager: xI,
|
|
21377
21380
|
backFaceCulling: !0,
|
|
21378
21381
|
enableShowOutline: !0,
|
|
@@ -22145,7 +22148,7 @@ const ma = class ma extends Di {
|
|
|
22145
22148
|
return n.actived ? o.flyToParam || o.flyInParam ? super.flyTo(e, s) : r.positions ? (ve(n, o, s, r.positions, e), !0) : !1 : !1;
|
|
22146
22149
|
}
|
|
22147
22150
|
};
|
|
22148
|
-
m(ma, "type", ma.register("ESCesiumViewer",
|
|
22151
|
+
m(ma, "type", ma.register("ESCesiumViewer", zP.type, ma));
|
|
22149
22152
|
let av = ma;
|
|
22150
22153
|
function DI(t, i, e) {
|
|
22151
22154
|
const s = t, o = i, n = (o[0] - s[0] + (o[1] - s[1])) / 4, r = [
|
|
@@ -22779,7 +22782,7 @@ class qI extends G {
|
|
|
22779
22782
|
this._featureMap.has(e) && (this._featureMap.delete(e), this.strokeSilhouette.selected = this.selected);
|
|
22780
22783
|
}
|
|
22781
22784
|
}
|
|
22782
|
-
let
|
|
22785
|
+
let j_ = [1, 1, 1];
|
|
22783
22786
|
class $I extends G {
|
|
22784
22787
|
constructor(e, s) {
|
|
22785
22788
|
super();
|
|
@@ -22788,7 +22791,7 @@ class $I extends G {
|
|
|
22788
22791
|
uniforms: {
|
|
22789
22792
|
u_baseColor: {
|
|
22790
22793
|
type: h.UniformType.VEC3,
|
|
22791
|
-
value: h.Cartesian3.fromArray(
|
|
22794
|
+
value: h.Cartesian3.fromArray(j_)
|
|
22792
22795
|
}
|
|
22793
22796
|
},
|
|
22794
22797
|
//lightingModel: Cesium.LightingModel.UNLIT,
|
|
@@ -23041,7 +23044,7 @@ const Ki = class Ki extends Wi {
|
|
|
23041
23044
|
{
|
|
23042
23045
|
const l = () => {
|
|
23043
23046
|
const c = e.materialMode ?? gi.defaults.materialMode;
|
|
23044
|
-
|
|
23047
|
+
j_ = e.materialParams.baseColor ?? [1, 1, 1], c === "normal" ? n.customShaderInstanceClass = void 0 : c === "technology" && (n.customShaderInstanceClass = void 0, n.customShaderInstanceClass = $I);
|
|
23045
23048
|
};
|
|
23046
23049
|
this.d(e.materialModeChanged.don((c) => {
|
|
23047
23050
|
l();
|
|
@@ -23148,7 +23151,7 @@ const ya = class ya extends Re {
|
|
|
23148
23151
|
return;
|
|
23149
23152
|
}
|
|
23150
23153
|
const n = oe.context.getStrFromEnv("${earthsdk3-assets-script-dir}/assets/glb/warning/warning_b.glb"), r = oe.context.getStrFromEnv("${earthsdk3-assets-script-dir}/assets/glb/warning/warning_a.glb");
|
|
23151
|
-
this._czmModelPrimitive = this.dv(new
|
|
23154
|
+
this._czmModelPrimitive = this.dv(new Bt(this.czmViewer, this.sceneObject.id));
|
|
23152
23155
|
const a = this._czmModelPrimitive;
|
|
23153
23156
|
this.d(a.readyEvent.don((l) => {
|
|
23154
23157
|
e.readyEvent.emit(l);
|
|
@@ -23317,7 +23320,7 @@ const wa = class wa extends Re {
|
|
|
23317
23320
|
return !n.actived || !n.viewer ? !1 : o.flyToParam || o.flyInParam ? (super.flyTo(e, s), !0) : (vi(n, o, s, e, r, !0), !0);
|
|
23318
23321
|
}
|
|
23319
23322
|
};
|
|
23320
|
-
m(wa, "type", wa.register("ESCesiumViewer",
|
|
23323
|
+
m(wa, "type", wa.register("ESCesiumViewer", LP.type, wa));
|
|
23321
23324
|
let cv = wa;
|
|
23322
23325
|
const KI = (t) => {
|
|
23323
23326
|
const i = [];
|
|
@@ -23330,12 +23333,12 @@ const KI = (t) => {
|
|
|
23330
23333
|
}
|
|
23331
23334
|
}
|
|
23332
23335
|
return i;
|
|
23333
|
-
}, j_ = (t) => {
|
|
23334
|
-
let i;
|
|
23335
|
-
return t ? (t.length < 3 ? i = 0 : i = LP(t), i) : 0;
|
|
23336
23336
|
}, e1 = (t) => {
|
|
23337
23337
|
let i;
|
|
23338
|
-
return t ? (t.length < 3 ? i =
|
|
23338
|
+
return t ? (t.length < 3 ? i = 0 : i = OP(t), i) : 0;
|
|
23339
|
+
}, t1 = (t) => {
|
|
23340
|
+
let i;
|
|
23341
|
+
return t ? (t.length < 3 ? i = void 0 : i = BP(t), i) : void 0;
|
|
23339
23342
|
};
|
|
23340
23343
|
function JI(t, i, e) {
|
|
23341
23344
|
const s = [];
|
|
@@ -23371,7 +23374,7 @@ class wr extends G {
|
|
|
23371
23374
|
s && (this.id = s);
|
|
23372
23375
|
{
|
|
23373
23376
|
const o = () => {
|
|
23374
|
-
this._distances.value = KI(this.positions), this._area.value =
|
|
23377
|
+
this._distances.value = KI(this.positions), this._area.value = e1(this.positions), this._centerOfMass.value = t1(this.positions);
|
|
23375
23378
|
};
|
|
23376
23379
|
o();
|
|
23377
23380
|
const n = this.dv(B(this.positionsChanged));
|
|
@@ -23570,7 +23573,7 @@ const Ca = class Ca extends Di {
|
|
|
23570
23573
|
return n.actived ? o.flyInParam ? super.flyIn(e, s) : r.positions ? (ve(n, o, s, r.positions, e), !0) : !1 : !1;
|
|
23571
23574
|
}
|
|
23572
23575
|
};
|
|
23573
|
-
m(Ca, "type", Ca.register("ESCesiumViewer",
|
|
23576
|
+
m(Ca, "type", Ca.register("ESCesiumViewer", VP.type, Ca));
|
|
23574
23577
|
let dv = Ca;
|
|
23575
23578
|
const _a = class _a extends Re {
|
|
23576
23579
|
constructor(e, s) {
|
|
@@ -23626,7 +23629,7 @@ const _a = class _a extends Re {
|
|
|
23626
23629
|
}
|
|
23627
23630
|
}
|
|
23628
23631
|
};
|
|
23629
|
-
m(_a, "type", _a.register("ESCesiumViewer",
|
|
23632
|
+
m(_a, "type", _a.register("ESCesiumViewer", NP.type, _a));
|
|
23630
23633
|
let uv = _a;
|
|
23631
23634
|
function jI(t, i, e) {
|
|
23632
23635
|
const s = t, o = i, n = [
|
|
@@ -23888,7 +23891,7 @@ const xa = class xa extends Re {
|
|
|
23888
23891
|
return n.actived ? o.flyToParam || o.flyInParam ? super.flyTo(e, s) : (r.flyTo(e), o.flyOverEvent.emit(s, "over", n), !0) : !1;
|
|
23889
23892
|
}
|
|
23890
23893
|
};
|
|
23891
|
-
m(xa, "type", xa.register("ESCesiumViewer",
|
|
23894
|
+
m(xa, "type", xa.register("ESCesiumViewer", UP.type, xa));
|
|
23892
23895
|
let fv = xa;
|
|
23893
23896
|
const Sa = class Sa extends Re {
|
|
23894
23897
|
constructor(e, s) {
|
|
@@ -23989,7 +23992,7 @@ const ba = class ba extends Re {
|
|
|
23989
23992
|
console.warn("viewer is undefined!");
|
|
23990
23993
|
return;
|
|
23991
23994
|
}
|
|
23992
|
-
this._czmModelPrimitive = this.disposeVar(new
|
|
23995
|
+
this._czmModelPrimitive = this.disposeVar(new Bt(s, e.id));
|
|
23993
23996
|
const n = this._czmModelPrimitive;
|
|
23994
23997
|
this.dispose(_([n, "show"], [e, "show"])), this.dispose(I([n, "position"], [e, "position"])), this.dispose(Tt([n, "rotation"], [e, "rotation"])), this.dispose(I([n, "scale"], [e, "scale"]));
|
|
23995
23998
|
{
|
|
@@ -24018,7 +24021,7 @@ const ba = class ba extends Re {
|
|
|
24018
24021
|
return n.actived ? o.flyToParam || o.flyInParam ? (super.flyTo(e, s), !0) : (r && vi(n, o, s, e, r, !0), !!r) : !1;
|
|
24019
24022
|
}
|
|
24020
24023
|
};
|
|
24021
|
-
m(ba, "type", ba.register("ESCesiumViewer",
|
|
24024
|
+
m(ba, "type", ba.register("ESCesiumViewer", GP.type, ba));
|
|
24022
24025
|
let mv = ba;
|
|
24023
24026
|
const Tu = {
|
|
24024
24027
|
depthTest: {
|
|
@@ -24165,7 +24168,7 @@ const Aa = class Aa extends Re {
|
|
|
24165
24168
|
return n.actived ? o.flyToParam || o.flyInParam ? super.flyTo(e, s) : (vi(n, o, s, e, r.cylinderCustomPrimitive, !0), !0) : !1;
|
|
24166
24169
|
}
|
|
24167
24170
|
};
|
|
24168
|
-
m(Aa, "type", Aa.register("ESCesiumViewer",
|
|
24171
|
+
m(Aa, "type", Aa.register("ESCesiumViewer", WP.type, Aa));
|
|
24169
24172
|
let vv = Aa;
|
|
24170
24173
|
class cn extends G {
|
|
24171
24174
|
constructor(e, s) {
|
|
@@ -24296,7 +24299,7 @@ class t2 extends Ed {
|
|
|
24296
24299
|
allowPicking: s.allowPicking,
|
|
24297
24300
|
compressVertices: !1,
|
|
24298
24301
|
// 提升效率
|
|
24299
|
-
classificationType:
|
|
24302
|
+
classificationType: Lt.classificationTypeMap[s.classificationType]
|
|
24300
24303
|
});
|
|
24301
24304
|
h.ClassificationPrimitive.prototype && (r.ESSceneObjectID = i.id);
|
|
24302
24305
|
{
|
|
@@ -24647,7 +24650,7 @@ const s2 = [
|
|
|
24647
24650
|
}
|
|
24648
24651
|
}]
|
|
24649
24652
|
\`\`\`
|
|
24650
|
-
`,
|
|
24653
|
+
`, i1 = `(dataSource) => {
|
|
24651
24654
|
var entities = dataSource.entities.values;
|
|
24652
24655
|
|
|
24653
24656
|
for (var i = 0; i < entities.length; i++) {
|
|
@@ -24664,12 +24667,12 @@ const s2 = [
|
|
|
24664
24667
|
}
|
|
24665
24668
|
`, n2 = `data 路径都可以使用下面回调函数
|
|
24666
24669
|
\`\`\`
|
|
24667
|
-
${
|
|
24670
|
+
${i1}
|
|
24668
24671
|
\`\`\`
|
|
24669
24672
|
|
|
24670
|
-
`,
|
|
24671
|
-
new Date(
|
|
24672
|
-
new Date(
|
|
24673
|
+
`, s1 = Date.now();
|
|
24674
|
+
new Date(s1).toISOString();
|
|
24675
|
+
new Date(s1 + 24 * 60 * 60 * 1e3).toISOString();
|
|
24673
24676
|
const Ma = class Ma extends G {
|
|
24674
24677
|
constructor(e, s) {
|
|
24675
24678
|
super();
|
|
@@ -24708,31 +24711,30 @@ const Ma = class Ma extends G {
|
|
|
24708
24711
|
const l = this.disposeVar(W(void 0));
|
|
24709
24712
|
{
|
|
24710
24713
|
const c = () => {
|
|
24711
|
-
|
|
24712
|
-
|
|
24713
|
-
if (this.uri)
|
|
24714
|
-
|
|
24715
|
-
|
|
24716
|
-
|
|
24717
|
-
|
|
24718
|
-
|
|
24719
|
-
|
|
24720
|
-
|
|
24721
|
-
|
|
24722
|
-
|
|
24723
|
-
|
|
24724
|
-
|
|
24725
|
-
|
|
24726
|
-
|
|
24727
|
-
|
|
24728
|
-
l.value = this.data ?? u();
|
|
24714
|
+
var p;
|
|
24715
|
+
if (this.uri)
|
|
24716
|
+
if (this.uri && typeof this.uri != "string")
|
|
24717
|
+
(p = h.Resource.fetchXML({
|
|
24718
|
+
url: this.uri.url,
|
|
24719
|
+
headers: this.uri.headers,
|
|
24720
|
+
queryParameters: this.uri.queryParameters,
|
|
24721
|
+
templateValues: this.uri.templateValues,
|
|
24722
|
+
proxy: this.uri.proxy,
|
|
24723
|
+
retryCallback: this.uri.retryCallback,
|
|
24724
|
+
retryAttempts: this.uri.retryAttempts,
|
|
24725
|
+
request: this.uri.request
|
|
24726
|
+
})) == null || p.then((f) => f);
|
|
24727
|
+
else
|
|
24728
|
+
return oe.context.getStrFromEnv(this.uri);
|
|
24729
|
+
}, d = () => {
|
|
24730
|
+
l.value = this.data ?? c();
|
|
24729
24731
|
};
|
|
24730
|
-
|
|
24731
|
-
const
|
|
24732
|
+
d();
|
|
24733
|
+
const u = this.disposeVar(B(
|
|
24732
24734
|
this.uriChanged,
|
|
24733
24735
|
this.dataChanged
|
|
24734
24736
|
));
|
|
24735
|
-
this.dispose(
|
|
24737
|
+
this.dispose(u.disposableOn(d));
|
|
24736
24738
|
}
|
|
24737
24739
|
{
|
|
24738
24740
|
const c = this.disposeVar(Ve(async (p) => {
|
|
@@ -24820,7 +24822,7 @@ m(Ma, "defaults", {
|
|
|
24820
24822
|
clockRange: xe.defaults.clockRange,
|
|
24821
24823
|
shouldAnimate: xe.defaults.shouldAnimate,
|
|
24822
24824
|
uri: "${earthsdk3-assets-script-dir}/assets/misc/simple.czml",
|
|
24823
|
-
defaultLoadFuncStr:
|
|
24825
|
+
defaultLoadFuncStr: i1,
|
|
24824
24826
|
defaultLoadFuncDocStr: n2
|
|
24825
24827
|
});
|
|
24826
24828
|
let dn = Ma;
|
|
@@ -24856,7 +24858,7 @@ const Ia = class Ia extends Gi {
|
|
|
24856
24858
|
}));
|
|
24857
24859
|
}
|
|
24858
24860
|
};
|
|
24859
|
-
m(Ia, "type", Ia.register("ESCesiumViewer",
|
|
24861
|
+
m(Ia, "type", Ia.register("ESCesiumViewer", HP.type, Ia));
|
|
24860
24862
|
let wv = Ia;
|
|
24861
24863
|
async function r2(t, i) {
|
|
24862
24864
|
const e = Jd(t + "index.bin"), s = Jd(t + "vertex.bin"), o = [...new Array(i).keys()].map(
|
|
@@ -24891,7 +24893,7 @@ const Ra = class Ra extends Re {
|
|
|
24891
24893
|
const { czmCustomPrimitive: n } = this, { czmTexture: r } = this;
|
|
24892
24894
|
{
|
|
24893
24895
|
r.uri = "", r.size = [1024, 1], r.enabled = !0;
|
|
24894
|
-
const l = new
|
|
24896
|
+
const l = new TP(), c = () => {
|
|
24895
24897
|
l.value = e.colorStops ?? Pn.defaults.colorStops;
|
|
24896
24898
|
const d = l.getColorsInUint8(new Uint8Array(1024 * 4));
|
|
24897
24899
|
r.copyTexture({
|
|
@@ -25030,7 +25032,7 @@ const zo = class zo extends G {
|
|
|
25030
25032
|
const a = () => {
|
|
25031
25033
|
if (this.positions && this.positions.length >= 2) {
|
|
25032
25034
|
let c = 0;
|
|
25033
|
-
this.arcType === void 0 || this.arcType === "GEODESIC" ? c = hr(this.positions[0], this.positions[1]) : this.arcType === "RHUMB" ? c = jn(this.positions[0], this.positions[1]) : this.arcType === "NONE" ? c = hr(this.positions[0], this.positions[1]) : console.warn(`未知的arcType: ${this.arcType},导致距离无法计算!`), this._heading.value = this.angleMode === "-180~180" ?
|
|
25035
|
+
this.arcType === void 0 || this.arcType === "GEODESIC" ? c = hr(this.positions[0], this.positions[1]) : this.arcType === "RHUMB" ? c = jn(this.positions[0], this.positions[1]) : this.arcType === "NONE" ? c = hr(this.positions[0], this.positions[1]) : console.warn(`未知的arcType: ${this.arcType},导致距离无法计算!`), this._heading.value = this.angleMode === "-180~180" ? qP(c) : $P(c);
|
|
25034
25036
|
}
|
|
25035
25037
|
};
|
|
25036
25038
|
a();
|
|
@@ -25184,7 +25186,7 @@ const Da = class Da extends Zt {
|
|
|
25184
25186
|
return n.actived ? o.flyInParam ? super.flyIn(e, s) : r.positions ? (ve(n, o, s, r.positions, e), !0) : !1 : !1;
|
|
25185
25187
|
}
|
|
25186
25188
|
};
|
|
25187
|
-
m(Da, "type", Da.register("ESCesiumViewer",
|
|
25189
|
+
m(Da, "type", Da.register("ESCesiumViewer", XP.type, Da));
|
|
25188
25190
|
let _v = Da;
|
|
25189
25191
|
class Pr extends G {
|
|
25190
25192
|
constructor(e, s) {
|
|
@@ -25229,7 +25231,7 @@ class Pr extends G {
|
|
|
25229
25231
|
})), a.push(g);
|
|
25230
25232
|
}
|
|
25231
25233
|
};
|
|
25232
|
-
c(), this.dispose(this.distancesChanged.disposableOn(() =>
|
|
25234
|
+
c(), this.dispose(this.distancesChanged.disposableOn(() => YP(c)));
|
|
25233
25235
|
}
|
|
25234
25236
|
}
|
|
25235
25237
|
get pickedEvent() {
|
|
@@ -25380,7 +25382,7 @@ const Fa = class Fa extends Ah {
|
|
|
25380
25382
|
return n.actived ? o.flyInParam ? super.flyIn(e, s) : r.positions ? (ve(n, o, s, r.positions, e), !0) : !1 : !1;
|
|
25381
25383
|
}
|
|
25382
25384
|
};
|
|
25383
|
-
m(Fa, "type", Fa.register("ESCesiumViewer",
|
|
25385
|
+
m(Fa, "type", Fa.register("ESCesiumViewer", ZP.type, Fa));
|
|
25384
25386
|
let Pv = Fa;
|
|
25385
25387
|
class Eh extends G {
|
|
25386
25388
|
constructor(e, s) {
|
|
@@ -25533,7 +25535,7 @@ const La = class La extends Re {
|
|
|
25533
25535
|
}
|
|
25534
25536
|
}
|
|
25535
25537
|
};
|
|
25536
|
-
m(La, "type", La.register("ESCesiumViewer",
|
|
25538
|
+
m(La, "type", La.register("ESCesiumViewer", QP.type, La));
|
|
25537
25539
|
let Sv = La;
|
|
25538
25540
|
class Mh extends G {
|
|
25539
25541
|
constructor(e, s) {
|
|
@@ -25556,7 +25558,7 @@ class Mh extends G {
|
|
|
25556
25558
|
{
|
|
25557
25559
|
const o = () => {
|
|
25558
25560
|
if (this.positions) {
|
|
25559
|
-
const r = this.granularity * Math.PI / 180, a =
|
|
25561
|
+
const r = this.granularity * Math.PI / 180, a = VC(this.positions, this.arcType ?? "GEODESIC", r);
|
|
25560
25562
|
if (a) {
|
|
25561
25563
|
this._geoPath.timePosRots = a.timePosRots, this.rotationRadius.some((l) => l > 0) ? (this._geoPath.addAroundPoints(this.rotationRadius, !0), this._geoPath.computeRotIfUndefinedUsingLerp(!0), this._geoPath.rotLerpMode = "Lerp") : (this._geoPath.computeRotIfUndefinedUsingPrevLine(!0), this._geoPath.rotLerpMode = this.rotLerpMode);
|
|
25562
25564
|
return;
|
|
@@ -25732,7 +25734,7 @@ class Ih extends G {
|
|
|
25732
25734
|
const o = this.disposeVar(B(this.positionsChanged, this.resolutionChanged, this.sharpnessChanged)), n = () => {
|
|
25733
25735
|
try {
|
|
25734
25736
|
if (this.positions && this.positions.length >= 2) {
|
|
25735
|
-
const r =
|
|
25737
|
+
const r = QC(this.positions, this.resolution, this.sharpness);
|
|
25736
25738
|
this._geoPolylinePath.positions = r;
|
|
25737
25739
|
} else
|
|
25738
25740
|
this._geoPolylinePath.positions = void 0;
|
|
@@ -25966,7 +25968,7 @@ const u2 = (t) => {
|
|
|
25966
25968
|
if (t >= e)
|
|
25967
25969
|
return s;
|
|
25968
25970
|
return 20;
|
|
25969
|
-
}, p2 = async (t, i, e) => (await fetch(`
|
|
25971
|
+
}, p2 = async (t, i, e) => (await fetch(`http://abc.gggis.com:13001/xyzinfo/${e}/${t}/${i}`)).json(), f2 = async (t) => {
|
|
25970
25972
|
var c;
|
|
25971
25973
|
const i = (c = t.getCurrentCameraInfo()) == null ? void 0 : c.position;
|
|
25972
25974
|
if (!i) return;
|
|
@@ -25989,7 +25991,7 @@ class g2 extends Be {
|
|
|
25989
25991
|
{
|
|
25990
25992
|
const r = () => {
|
|
25991
25993
|
const a = e.currentDate ? e.currentDate : 0;
|
|
25992
|
-
s.url = `
|
|
25994
|
+
s.url = `http://abc.gggis.com:13001/timetile/tms/${a}/tilemapresource.xml`;
|
|
25993
25995
|
};
|
|
25994
25996
|
r(), this.d(e.currentDateChanged.don(r));
|
|
25995
25997
|
}
|
|
@@ -26037,7 +26039,7 @@ m(Yn, "createDefaultProps", () => ({
|
|
|
26037
26039
|
rectangle: j([-180, -90, 180, 90])
|
|
26038
26040
|
})), m(Yn, "type", Yn.register("ESGeHistoryImagery", Yn, { chsName: "谷歌历史影像", tags: ["ESObjects", "_ES_Impl_UE"], description: "ESGeHistoryImagery" }));
|
|
26039
26041
|
let Tf = Yn;
|
|
26040
|
-
const
|
|
26042
|
+
const o1 = `async (dataSource, viewer) => {
|
|
26041
26043
|
viewer.clock.shouldAnimate = false;
|
|
26042
26044
|
const rider = dataSource.entities.getById("tour");
|
|
26043
26045
|
await viewer.flyTo(rider)
|
|
@@ -26081,7 +26083,7 @@ const s1 = `async (dataSource, viewer) => {
|
|
|
26081
26083
|
|
|
26082
26084
|
该路径可以使用下面回调函数
|
|
26083
26085
|
\`\`\`
|
|
26084
|
-
${
|
|
26086
|
+
${o1}
|
|
26085
26087
|
\`\`\`
|
|
26086
26088
|
|
|
26087
26089
|
${w2}
|
|
@@ -26097,7 +26099,7 @@ ${C2}
|
|
|
26097
26099
|
\`\`\`
|
|
26098
26100
|
${v2}
|
|
26099
26101
|
\`\`\`
|
|
26100
|
-
`, Au = Date.now(),
|
|
26102
|
+
`, Au = Date.now(), Nt = class Nt extends oe {
|
|
26101
26103
|
constructor(e) {
|
|
26102
26104
|
super(e);
|
|
26103
26105
|
m(this, "_flyToEvent", this.disposeVar(new $()));
|
|
@@ -26122,17 +26124,17 @@ ${v2}
|
|
|
26122
26124
|
defaultMenu: "basic",
|
|
26123
26125
|
basic: [
|
|
26124
26126
|
...e.basic,
|
|
26125
|
-
new
|
|
26126
|
-
new Wt([this, "uri"], "路径",
|
|
26127
|
-
new ue([this, "autoResetClock"], "自动设置时钟",
|
|
26128
|
-
new ue([this, "clockEnabled"], "启用",
|
|
26129
|
-
new ue([this, "shouldAnimate"], "是否启用动画",
|
|
26130
|
-
new eu([this, "startTime"], "开始时间",
|
|
26131
|
-
new eu([this, "stopTime"], "结束时间",
|
|
26132
|
-
new eu([this, "currentTime"], "当前时间",
|
|
26133
|
-
new ce([this, "multiplier"], "倍速",
|
|
26134
|
-
new Ti([this, "clockStep"], [["TICK_DEPENDENT", "TICK_DEPENDENT"], ["SYSTEM_CLOCK_MULTIPLIER", "SYSTEM_CLOCK_MULTIPLIER"], ["SYSTEM_CLOCK", "SYSTEM_CLOCK"]], "clockStep",
|
|
26135
|
-
new Ti([this, "clockRange"], [["UNBOUNDED", "UNBOUNDED"], ["CLAMPED", "CLAMPED"], ["LOOP_STOP", "LOOP_STOP"]], "clockRange",
|
|
26127
|
+
new KP([this, "data"], "数据", void 0, void 0, !0),
|
|
26128
|
+
new Wt([this, "uri"], "路径", "${earthsdk3-assets-script-dir}/assets/misc/bikeRide.kml", void 0, !0),
|
|
26129
|
+
new ue([this, "autoResetClock"], "自动设置时钟", Nt.defaults.autoResetClock),
|
|
26130
|
+
new ue([this, "clockEnabled"], "启用", Nt.defaults.clockEnabled),
|
|
26131
|
+
new ue([this, "shouldAnimate"], "是否启用动画", Nt.defaults.shouldAnimate),
|
|
26132
|
+
new eu([this, "startTime"], "开始时间", Nt.defaults.startTime, !0),
|
|
26133
|
+
new eu([this, "stopTime"], "结束时间", Nt.defaults.stopTime),
|
|
26134
|
+
new eu([this, "currentTime"], "当前时间", Nt.defaults.currentTime, !0),
|
|
26135
|
+
new ce([this, "multiplier"], "倍速", Nt.defaults.multiplier),
|
|
26136
|
+
new Ti([this, "clockStep"], [["TICK_DEPENDENT", "TICK_DEPENDENT"], ["SYSTEM_CLOCK_MULTIPLIER", "SYSTEM_CLOCK_MULTIPLIER"], ["SYSTEM_CLOCK", "SYSTEM_CLOCK"]], "clockStep", Nt.defaults.clockStep),
|
|
26137
|
+
new Ti([this, "clockRange"], [["UNBOUNDED", "UNBOUNDED"], ["CLAMPED", "CLAMPED"], ["LOOP_STOP", "LOOP_STOP"]], "clockRange", Nt.defaults.clockRange)
|
|
26136
26138
|
],
|
|
26137
26139
|
general: [
|
|
26138
26140
|
...e.general,
|
|
@@ -26144,17 +26146,17 @@ ${v2}
|
|
|
26144
26146
|
...e.more,
|
|
26145
26147
|
new Pe([], "通用", "通用"),
|
|
26146
26148
|
new ir(["number"], (s) => this.flyTo(s), [1e3], "飞入"),
|
|
26147
|
-
new Zc([this, "loadFuncStr"], "loadFnStr",
|
|
26149
|
+
new Zc([this, "loadFuncStr"], "loadFnStr", o1, _2, !0),
|
|
26148
26150
|
new ir([], () => this.resetClock(), [], "根据当前加载的数据重设时钟")
|
|
26149
26151
|
]
|
|
26150
26152
|
};
|
|
26151
26153
|
}
|
|
26152
26154
|
};
|
|
26153
|
-
m(
|
|
26155
|
+
m(Nt, "createDefaultProps", () => ({
|
|
26154
26156
|
...oe.createDefaultProps(),
|
|
26155
26157
|
show: !0,
|
|
26156
26158
|
// boolean} [show=true] A boolean Property specifying the visibility
|
|
26157
|
-
uri:
|
|
26159
|
+
uri: void 0,
|
|
26158
26160
|
allowPicking: !1,
|
|
26159
26161
|
loadFuncStr: void 0,
|
|
26160
26162
|
data: void 0,
|
|
@@ -26168,8 +26170,8 @@ m(Dt, "createDefaultProps", () => ({
|
|
|
26168
26170
|
clockRange: "UNBOUNDED",
|
|
26169
26171
|
shouldAnimate: !1,
|
|
26170
26172
|
clampToGround: !1
|
|
26171
|
-
})), m(
|
|
26172
|
-
let Af =
|
|
26173
|
+
})), m(Nt, "type", Nt.register("ESKml", Nt, { chsName: "ESKml", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "Kml数据加载" }));
|
|
26174
|
+
let Af = Nt;
|
|
26173
26175
|
const Zn = class Zn extends $g {
|
|
26174
26176
|
constructor(i) {
|
|
26175
26177
|
super(i);
|
|
@@ -26181,7 +26183,7 @@ const Zn = class Zn extends $g {
|
|
|
26181
26183
|
more: [
|
|
26182
26184
|
...i.more,
|
|
26183
26185
|
new Pe([], "折线", "折线"),
|
|
26184
|
-
new
|
|
26186
|
+
new jP([this, "points"], "本地位置数组", void 0, !0),
|
|
26185
26187
|
new Pe([], "czm", "czm"),
|
|
26186
26188
|
new ue([this, "loop"], "首尾相连", !0),
|
|
26187
26189
|
new ue([this, "hasDash"], "是否为虚线", !0),
|
|
@@ -26196,7 +26198,7 @@ const Zn = class Zn extends $g {
|
|
|
26196
26198
|
};
|
|
26197
26199
|
m(Zn, "createDefaultProps", () => ({
|
|
26198
26200
|
...$g.createDefaultProps(),
|
|
26199
|
-
points:
|
|
26201
|
+
points: JP(void 0),
|
|
26200
26202
|
loop: !0,
|
|
26201
26203
|
hasDash: !0,
|
|
26202
26204
|
gapColor: j([0, 0, 0, 0]),
|
|
@@ -26222,7 +26224,7 @@ const Qn = class Qn extends Xg {
|
|
|
26222
26224
|
more: [
|
|
26223
26225
|
...i.more,
|
|
26224
26226
|
new Pe([], "通用", "通用"),
|
|
26225
|
-
new
|
|
26227
|
+
new ex([this, "points"], "本地位置数组", void 0, !0),
|
|
26226
26228
|
new Pe([], "czm", "czm"),
|
|
26227
26229
|
new ue([this, "loop"], "首尾相连", !0),
|
|
26228
26230
|
new ue([this, "hasDash"], "是否为虚线", !0),
|
|
@@ -26859,8 +26861,8 @@ export type IndexJsonType = {
|
|
|
26859
26861
|
this.setLocalAxisedBoundingBox(n, r);
|
|
26860
26862
|
}, ["position"], "自动计算包围盒"),
|
|
26861
26863
|
new Pe([], "本地变换", "本地变换"),
|
|
26862
|
-
new
|
|
26863
|
-
new
|
|
26864
|
+
new tx([this, "localPosition"], "本地偏移", void 0, !0),
|
|
26865
|
+
new ix([this, "localRotation"], "本地姿态", void 0, !0),
|
|
26864
26866
|
new SC([this, "localScale"], "本地缩放", [1, 1, 1], !0),
|
|
26865
26867
|
new Wt([this, "localModelMatrix"], "本地模型矩阵", void 0, void 0, !0),
|
|
26866
26868
|
new Pe([], "调试", "调试"),
|
|
@@ -26958,7 +26960,7 @@ const Ps = class Ps extends Ai {
|
|
|
26958
26960
|
new Ti([this, "arcType"], [["直线", "NONE"], ["地理直线", "GEODESIC"], ["地理恒向线", "RHUMB"]], "弧线类型", "GEODESIC"),
|
|
26959
26961
|
new ue([this, "brightening"], "变亮"),
|
|
26960
26962
|
new ue([this, "depthTest"], "深度监测"),
|
|
26961
|
-
new
|
|
26963
|
+
new sx([this, "imageUrl"], "图片路径", Ps.defaults.imageUrl, !0),
|
|
26962
26964
|
new ce([this, "repeat"], "图像重复次数"),
|
|
26963
26965
|
new Ti([this, "bidirectional"], [["正向", 0], ["反向", 1], ["双向", 2], ["无", 3]], "运动方向", 0),
|
|
26964
26966
|
new Pe([], "播放器", "播放器"),
|
|
@@ -27009,7 +27011,7 @@ const Lo = class Lo extends Ai {
|
|
|
27009
27011
|
new ce([this, "width"], "线宽"),
|
|
27010
27012
|
new Ti([this, "arcType"], [["直线", "NONE"], ["地理直线", "GEODESIC"], ["地理恒向线", "RHUMB"]], "弧线类型", "GEODESIC"),
|
|
27011
27013
|
new Wo([this, "imageUrl"], "道路图片"),
|
|
27012
|
-
new
|
|
27014
|
+
new ox([this, "repeat"], "重复次数")
|
|
27013
27015
|
]
|
|
27014
27016
|
};
|
|
27015
27017
|
}
|
|
@@ -27322,7 +27324,7 @@ const Ba = class Ba extends Re {
|
|
|
27322
27324
|
return n.actived ? o.flyToParam || o.flyInParam ? super.flyTo(e, s) : (r.position && me(n.viewer, r.position, 1e3, Hi, e), o.flyOverEvent.emit(s, "over", n), !0) : !1;
|
|
27323
27325
|
}
|
|
27324
27326
|
};
|
|
27325
|
-
m(Ba, "type", Ba.register("ESCesiumViewer",
|
|
27327
|
+
m(Ba, "type", Ba.register("ESCesiumViewer", nx.type, Ba));
|
|
27326
27328
|
let zv = Ba;
|
|
27327
27329
|
const Va = class Va extends Re {
|
|
27328
27330
|
constructor(e, s) {
|
|
@@ -27343,7 +27345,7 @@ const Va = class Va extends Re {
|
|
|
27343
27345
|
return n.actived ? o.flyToParam || o.flyInParam ? super.flyTo(e, s) : (r.flyTo(e), o.flyOverEvent.emit(s, "over", n), !0) : !1;
|
|
27344
27346
|
}
|
|
27345
27347
|
};
|
|
27346
|
-
m(Va, "type", Va.register("ESCesiumViewer",
|
|
27348
|
+
m(Va, "type", Va.register("ESCesiumViewer", rx.type, Va));
|
|
27347
27349
|
let Lv = Va;
|
|
27348
27350
|
const k2 = {
|
|
27349
27351
|
type: "FeatureCollection",
|
|
@@ -27447,7 +27449,7 @@ const k2 = {
|
|
|
27447
27449
|
]
|
|
27448
27450
|
}
|
|
27449
27451
|
\`\`\`
|
|
27450
|
-
`,
|
|
27452
|
+
`, n1 = `// dataSource
|
|
27451
27453
|
(dataSource) => {
|
|
27452
27454
|
if (dataSource) {
|
|
27453
27455
|
dataSource.show = true;
|
|
@@ -27473,11 +27475,11 @@ const k2 = {
|
|
|
27473
27475
|
}
|
|
27474
27476
|
}
|
|
27475
27477
|
}
|
|
27476
|
-
`,
|
|
27478
|
+
`, r1 = "${earthsdk3-assets-script-dir}/assets/misc/2.geojson", z2 = `${r1}
|
|
27477
27479
|
|
|
27478
27480
|
该路径可以使用下面回调函数
|
|
27479
27481
|
\`\`\`
|
|
27480
|
-
${
|
|
27482
|
+
${n1}
|
|
27481
27483
|
\`\`\`
|
|
27482
27484
|
`, lt = class lt extends G {
|
|
27483
27485
|
constructor(e, s) {
|
|
@@ -27503,7 +27505,7 @@ ${o1}
|
|
|
27503
27505
|
});
|
|
27504
27506
|
{
|
|
27505
27507
|
const r = this.dv(Ve(async (c) => {
|
|
27506
|
-
this.dataSource && n(), this.url && (typeof this.url == "object" ? this._data = this.url :
|
|
27508
|
+
this.dataSource && n(), this.url && (typeof this.url == "object" ? this._data = this.url : bC(this.url) ? this._data = JSON.parse(this.url) : await fetch(oe.context.getStrFromEnv(this.url)).then((d) => d.json()).then((d) => {
|
|
27507
27509
|
this._data = d;
|
|
27508
27510
|
}).catch((d) => {
|
|
27509
27511
|
console.warn("ESGeoJson数据加载失败", d);
|
|
@@ -27562,7 +27564,7 @@ ${o1}
|
|
|
27562
27564
|
p.label.backgroundColor = new h.ConstantProperty(new h.Color(...this.textBackgroundColor ?? lt.defaults.textBackgroundColor)), p.label.font = new h.ConstantProperty(`${this.textFontStyle} ${this.textFontWeight} ${C}px ${this.textFontFamily ?? lt.defaults.textFontFamily}`), p.label.horizontalOrigin = new h.ConstantProperty(h.HorizontalOrigin.LEFT), p.label.verticalOrigin = new h.ConstantProperty(h.VerticalOrigin.TOP), p.label.eyeOffset = new h.ConstantProperty(h.Cartesian3.fromArray([0, 0, -1]));
|
|
27563
27565
|
const y = this.textAnchor ?? lt.defaults.textAnchor;
|
|
27564
27566
|
p.label.pixelOffset = new h.ConstantProperty(h.Cartesian2.fromArray([
|
|
27565
|
-
-y[0] * ((this.textBackgroundColor ? -14 :
|
|
27567
|
+
-y[0] * ((this.textBackgroundColor ? -14 : 0) + this._getTextPixelWidth(p.label.text.getValue(h.JulianDate.now()), p.label.font.getValue(h.JulianDate.now()))) + P[0],
|
|
27566
27568
|
-y[1] * ((this.textBackgroundColor ? 10 : 0) + C) + P[1]
|
|
27567
27569
|
]));
|
|
27568
27570
|
}
|
|
@@ -27666,20 +27668,9 @@ ${o1}
|
|
|
27666
27668
|
set dataSource(e) {
|
|
27667
27669
|
this._dataSource.value = e;
|
|
27668
27670
|
}
|
|
27669
|
-
|
|
27670
|
-
|
|
27671
|
-
|
|
27672
|
-
} catch {
|
|
27673
|
-
return !1;
|
|
27674
|
-
}
|
|
27675
|
-
}
|
|
27676
|
-
_countBytes(e) {
|
|
27677
|
-
let s = 0;
|
|
27678
|
-
for (let o = 0; o < e.length; o++) {
|
|
27679
|
-
const n = e.charCodeAt(o);
|
|
27680
|
-
n <= 127 ? s += 1 : n <= 2047 ? s += 2 : n <= 65535 ? s += 3 : s += 4;
|
|
27681
|
-
}
|
|
27682
|
-
return s;
|
|
27671
|
+
_getTextPixelWidth(e, s = "16px sans-serif") {
|
|
27672
|
+
const n = document.createElement("canvas").getContext("2d");
|
|
27673
|
+
return n.font = s, n.measureText(e).width;
|
|
27683
27674
|
}
|
|
27684
27675
|
_isEntityShow(e, s) {
|
|
27685
27676
|
var o;
|
|
@@ -27707,8 +27698,8 @@ ${o1}
|
|
|
27707
27698
|
m(lt, "defaults", {
|
|
27708
27699
|
show: !0,
|
|
27709
27700
|
allowPicking: !0,
|
|
27710
|
-
url:
|
|
27711
|
-
defaultLoadFuncStr:
|
|
27701
|
+
url: r1,
|
|
27702
|
+
defaultLoadFuncStr: n1,
|
|
27712
27703
|
defaultLoadFuncDocStr: z2,
|
|
27713
27704
|
data: k2,
|
|
27714
27705
|
dataMd: F2,
|
|
@@ -27853,7 +27844,7 @@ const Na = class Na extends Wi {
|
|
|
27853
27844
|
return e == "NONE" ? o[2] = o[2] ?? 0 : e == "CLAMP_TO_GROUND" || !o[2] ? o[2] = await s.getTerrainHeight(o) ?? 0 : o[2] += await s.getTerrainHeight(o) ?? 0, o;
|
|
27854
27845
|
}
|
|
27855
27846
|
};
|
|
27856
|
-
m(Na, "type", Na.register("ESCesiumViewer",
|
|
27847
|
+
m(Na, "type", Na.register("ESCesiumViewer", TC.type, Na));
|
|
27857
27848
|
let Ov = Na;
|
|
27858
27849
|
const Ua = class Ua extends Zt {
|
|
27859
27850
|
constructor(e, s) {
|
|
@@ -27915,7 +27906,7 @@ const Ua = class Ua extends Zt {
|
|
|
27915
27906
|
return n.actived ? o.flyInParam ? super.flyIn(e, s) : o.points ? (ve(n, o, s, o.points, e), !0) : !1 : !1;
|
|
27916
27907
|
}
|
|
27917
27908
|
};
|
|
27918
|
-
m(Ua, "type", Ua.register("ESCesiumViewer",
|
|
27909
|
+
m(Ua, "type", Ua.register("ESCesiumViewer", ax.type, Ua));
|
|
27919
27910
|
let Bv = Ua;
|
|
27920
27911
|
class Rh extends G {
|
|
27921
27912
|
constructor(e, s) {
|
|
@@ -27929,7 +27920,7 @@ class Rh extends G {
|
|
|
27929
27920
|
})), this.dispose(I([o, "show"], [this, "show"])), this.dispose(I([o, "fill"], [this, "filled"])), this.dispose(I([o, "strokeGround"], [this, "strokeGround"])), this.dispose(I([o, "ground"], [this, "ground"])), this.dispose(I([o, "outline"], [this, "outline"])), this.dispose(I([o, "outlineColor"], [this, "outlineColor"])), this.dispose(I([o, "outlineWidth"], [this, "outlineWidth"])), this.dispose(I([o, "color"], [this, "color"])), this.dispose(I([o, "depth"], [this, "depth"]));
|
|
27930
27921
|
const n = () => {
|
|
27931
27922
|
if (this.positions && this.positions.length >= 2) {
|
|
27932
|
-
const r =
|
|
27923
|
+
const r = QC([...this.positions, this.positions[0]]);
|
|
27933
27924
|
o.positions = r;
|
|
27934
27925
|
} else
|
|
27935
27926
|
o.positions = void 0;
|
|
@@ -28016,7 +28007,7 @@ const Wa = class Wa extends Re {
|
|
|
28016
28007
|
console.warn("viewer is undefined!");
|
|
28017
28008
|
return;
|
|
28018
28009
|
}
|
|
28019
|
-
this._czmModel = this.dv(new
|
|
28010
|
+
this._czmModel = this.dv(new Bt(s, e.id));
|
|
28020
28011
|
const n = this._czmModel;
|
|
28021
28012
|
this.d(n.readyEvent.don((a) => {
|
|
28022
28013
|
n.gltf.animations && (n.activeAnimationsJson = n.gltf.animations.map((l, c) => ({
|
|
@@ -28295,7 +28286,7 @@ const Ha = class Ha extends Zt {
|
|
|
28295
28286
|
return n.actived ? o.flyInParam ? super.flyIn(e, s) : r.positions ? (ve(n, o, s, r.positions, e), !0) : !1 : !1;
|
|
28296
28287
|
}
|
|
28297
28288
|
};
|
|
28298
|
-
m(Ha, "type", Ha.register("ESCesiumViewer",
|
|
28289
|
+
m(Ha, "type", Ha.register("ESCesiumViewer", lx.type, Ha));
|
|
28299
28290
|
let Gv = Ha;
|
|
28300
28291
|
const Eu = {
|
|
28301
28292
|
czmAnimationsStand: [{
|
|
@@ -28325,7 +28316,7 @@ const Eu = {
|
|
|
28325
28316
|
console.warn("viewer is undefined!");
|
|
28326
28317
|
return;
|
|
28327
28318
|
}
|
|
28328
|
-
this._czmModelPrimitive = this.disposeVar(new
|
|
28319
|
+
this._czmModelPrimitive = this.disposeVar(new Bt(s, this.sceneObject.id));
|
|
28329
28320
|
const n = this._czmModelPrimitive;
|
|
28330
28321
|
this.dispose(_([n, "show"], [e, "show"])), this.dispose(I([n, "position"], [e, "position"])), this.dispose(Tt([n, "rotation"], [e, "rotation"])), this.dispose(I([n, "scale"], [e, "scale"]));
|
|
28331
28322
|
{
|
|
@@ -28541,7 +28532,7 @@ const $a = class $a extends Wd {
|
|
|
28541
28532
|
return n.actived ? o.flyToParam || o.flyInParam ? super.flyTo(e, s) : (r && r.obj && r.obj.flyTo(e, s), o.flyOverEvent.emit(s, "over", n), !0) : !1;
|
|
28542
28533
|
}
|
|
28543
28534
|
};
|
|
28544
|
-
m($a, "type", $a.register("ESCesiumViewer",
|
|
28535
|
+
m($a, "type", $a.register("ESCesiumViewer", hx.type, $a));
|
|
28545
28536
|
let Hv = $a;
|
|
28546
28537
|
function B2(t) {
|
|
28547
28538
|
switch (t) {
|
|
@@ -28639,7 +28630,7 @@ const Xa = class Xa extends Wi {
|
|
|
28639
28630
|
));
|
|
28640
28631
|
this.d(l.don(a));
|
|
28641
28632
|
}
|
|
28642
|
-
this.d(_([n, "show"], [e, "show"])), this.d(I([n, "alpha"], [e, "opacity"])), this.d(I([n, "alpha"], [e, "czmAlpha"])), this.d(_([n, "splitDirection"], [e, "splitDirection"])), this.d(_([n, "brightness"], [e, "czmBrightness"])), this.d(_([n, "contrast"], [e, "czmContrast"])), this.d(_([n, "hue"], [e, "czmHue"])), this.d(_([n, "saturation"], [e, "czmSaturation"])), this.d(_([n, "gamma"], [e, "czmGamma"])), this.d(_([n, "rectangle"], [e, "rectangle"])), this.d(_([n, "zIndex"], [e, "zIndex"]));
|
|
28633
|
+
this.d(_([n, "show"], [e, "show"])), this.d(I([n, "alpha"], [e, "opacity"])), this.d(I([n, "alpha"], [e, "czmAlpha"])), this.d(_([n, "splitDirection"], [e, "splitDirection"])), this.d(_([n, "brightness"], [e, "czmBrightness"])), this.d(_([n, "contrast"], [e, "czmContrast"])), this.d(_([n, "hue"], [e, "czmHue"])), this.d(_([n, "saturation"], [e, "czmSaturation"])), this.d(_([n, "gamma"], [e, "czmGamma"])), this.d(_([n, "rectangle"], [e, "rectangle"])), this.d(_([n, "zIndex"], [e, "zIndex"])), this.ad(_([n, "targetID"], [e, "targetID"]));
|
|
28643
28634
|
}
|
|
28644
28635
|
get czmImagery() {
|
|
28645
28636
|
return this._czmImagery;
|
|
@@ -28960,7 +28951,7 @@ const Ya = class Ya extends Re {
|
|
|
28960
28951
|
}
|
|
28961
28952
|
}
|
|
28962
28953
|
};
|
|
28963
|
-
m(Ya, "type", Ya.register("ESCesiumViewer",
|
|
28954
|
+
m(Ya, "type", Ya.register("ESCesiumViewer", cx.type, Ya));
|
|
28964
28955
|
let Yv = Ya;
|
|
28965
28956
|
async function U2(t) {
|
|
28966
28957
|
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"];
|
|
@@ -29371,13 +29362,13 @@ const Za = class Za extends Re {
|
|
|
29371
29362
|
return n.actived ? o.flyToParam || o.flyInParam ? super.flyTo(e, s) : this._czmModelPoi3D ? (this._czmModelPoi3D.flyTo(e, s), !0) : !1 : !1;
|
|
29372
29363
|
}
|
|
29373
29364
|
};
|
|
29374
|
-
m(Za, "type", Za.register("ESCesiumViewer",
|
|
29365
|
+
m(Za, "type", Za.register("ESCesiumViewer", dx.type, Za));
|
|
29375
29366
|
let Qv = Za;
|
|
29376
29367
|
class J2 extends G {
|
|
29377
29368
|
constructor(e, s, o) {
|
|
29378
29369
|
super();
|
|
29379
29370
|
m(this, "czmModel");
|
|
29380
|
-
this._sceneObject = e, this._czmViewer = s, this._modelUrl = o, this.czmModel = this.ad(new
|
|
29371
|
+
this._sceneObject = e, this._czmViewer = s, this._modelUrl = o, this.czmModel = this.ad(new Bt(this._czmViewer, this._sceneObject.id)), this.d(this.czmModel.readyEvent.don((l) => {
|
|
29381
29372
|
this.czmModel.gltf.animations && (this.czmModel.activeAnimationsJson = this.czmModel.gltf.animations.map((c, d) => ({
|
|
29382
29373
|
index: d,
|
|
29383
29374
|
loop: "REPEAT",
|
|
@@ -29645,14 +29636,14 @@ const Qa = class Qa extends Re {
|
|
|
29645
29636
|
};
|
|
29646
29637
|
m(Qa, "type", Qa.register("ESCesiumViewer", Po.type, Qa));
|
|
29647
29638
|
let Kv = Qa;
|
|
29648
|
-
const { getStrFromEnv:
|
|
29639
|
+
const { getStrFromEnv: a1 } = oe.context;
|
|
29649
29640
|
function j2(t) {
|
|
29650
29641
|
let i;
|
|
29651
29642
|
if (t.startsWith("ion://")) {
|
|
29652
29643
|
const s = +t.substring(6);
|
|
29653
29644
|
Number.isFinite(s) && (i = h.IonResource.fromAssetId(s));
|
|
29654
29645
|
} else
|
|
29655
|
-
i =
|
|
29646
|
+
i = a1(t);
|
|
29656
29647
|
return i;
|
|
29657
29648
|
}
|
|
29658
29649
|
async function eR(t, i) {
|
|
@@ -29674,7 +29665,7 @@ async function eR(t, i) {
|
|
|
29674
29665
|
}
|
|
29675
29666
|
) : void 0;
|
|
29676
29667
|
} else if (t.type === "GoogleEarthEnterpriseTerrainProvider") {
|
|
29677
|
-
const e = await h.GoogleEarthEnterpriseMetadata.fromUrl(
|
|
29668
|
+
const e = await h.GoogleEarthEnterpriseMetadata.fromUrl(a1(t.url));
|
|
29678
29669
|
return await h.GoogleEarthEnterpriseTerrainProvider.fromMetadata(
|
|
29679
29670
|
e,
|
|
29680
29671
|
{
|
|
@@ -29809,7 +29800,7 @@ const Ka = class Ka extends Wi {
|
|
|
29809
29800
|
if (!o.actived) return !1;
|
|
29810
29801
|
const { viewer: r } = o;
|
|
29811
29802
|
return r ? (r.camera.flyTo({
|
|
29812
|
-
destination: n.rectangle &&
|
|
29803
|
+
destination: n.rectangle && !XC(n.rectangle) ? ct(n.rectangle) : h.Camera.DEFAULT_VIEW_RECTANGLE,
|
|
29813
29804
|
duration: e
|
|
29814
29805
|
//单位是秒
|
|
29815
29806
|
}), !0) : !1;
|
|
@@ -30011,7 +30002,7 @@ const Ja = class Ja extends Wd {
|
|
|
30011
30002
|
return n.actived ? o.flyToParam || o.flyInParam ? super.flyTo(e, s) : (r && r.obj && r.obj.flyTo(e, s), o.flyOverEvent.emit(s, "over", n), !0) : !1;
|
|
30012
30003
|
}
|
|
30013
30004
|
};
|
|
30014
|
-
m(Ja, "type", Ja.register("ESCesiumViewer",
|
|
30005
|
+
m(Ja, "type", Ja.register("ESCesiumViewer", ux.type, Ja));
|
|
30015
30006
|
let jv = Ja;
|
|
30016
30007
|
const ja = class ja extends Re {
|
|
30017
30008
|
constructor(e, s) {
|
|
@@ -30037,7 +30028,7 @@ const ja = class ja extends Re {
|
|
|
30037
30028
|
return n.actived ? o.flyToParam || o.flyInParam ? super.flyTo(e, s) : r.position ? (me(this.czmViewer.viewer, r.position, 1e3, Hi, e), !0) : (r.flyTo(e && e * 1e3), o.flyOverEvent.emit(s, "over", n), !0) : !1;
|
|
30038
30029
|
}
|
|
30039
30030
|
};
|
|
30040
|
-
m(ja, "type", ja.register("ESCesiumViewer",
|
|
30031
|
+
m(ja, "type", ja.register("ESCesiumViewer", px.type, ja));
|
|
30041
30032
|
let e0 = ja;
|
|
30042
30033
|
const el = class el extends Re {
|
|
30043
30034
|
constructor(e, s) {
|
|
@@ -30058,7 +30049,7 @@ const el = class el extends Re {
|
|
|
30058
30049
|
return n.actived ? o.flyToParam || o.flyInParam ? super.flyTo(e, s) : (r.flyTo(e), o.flyOverEvent.emit(s, "over", n), !0) : !1;
|
|
30059
30050
|
}
|
|
30060
30051
|
};
|
|
30061
|
-
m(el, "type", el.register("ESCesiumViewer",
|
|
30052
|
+
m(el, "type", el.register("ESCesiumViewer", fx.type, el));
|
|
30062
30053
|
let t0 = el;
|
|
30063
30054
|
var oR = h.Primitive._modifyShaderPosition;
|
|
30064
30055
|
h.Primitive._modifyShaderPosition = function(t, s, e) {
|
|
@@ -30940,7 +30931,7 @@ function CR() {
|
|
|
30940
30931
|
return h.Matrix3.multiply(t, i, e), e;
|
|
30941
30932
|
}
|
|
30942
30933
|
const _R = CR();
|
|
30943
|
-
class
|
|
30934
|
+
class l1 {
|
|
30944
30935
|
_updateFov() {
|
|
30945
30936
|
this._fovH < 0 || this._fovV < 0 || (this.frustum.aspectRatio = Math.tan(this._fovH * 0.5) / Math.tan(this._fovV * 0.5), this.frustum.fov = this._fovH > this._fovV ? this._fovH : this._fovV);
|
|
30946
30937
|
}
|
|
@@ -30979,7 +30970,7 @@ class a1 {
|
|
|
30979
30970
|
return this._debugCameraPrimitive = this._debugCameraPrimitive && this._debugCameraPrimitive.destroy(), this._viewshedShadowMap = this._viewshedShadowMap && this._viewshedShadowMap.destroy(), h.destroyObject(this);
|
|
30980
30971
|
}
|
|
30981
30972
|
}
|
|
30982
|
-
Object.defineProperties(
|
|
30973
|
+
Object.defineProperties(l1.prototype, {
|
|
30983
30974
|
/**
|
|
30984
30975
|
* 视锥体
|
|
30985
30976
|
* @type {Cesium.Frustum}
|
|
@@ -31199,7 +31190,7 @@ const il = class il extends Re {
|
|
|
31199
31190
|
console.warn("viewer is undefined!");
|
|
31200
31191
|
return;
|
|
31201
31192
|
}
|
|
31202
|
-
this._czmViewShed = this.disposeVar(new
|
|
31193
|
+
this._czmViewShed = this.disposeVar(new l1(o.scene));
|
|
31203
31194
|
const n = this._czmViewShed;
|
|
31204
31195
|
n.ESSceneObjectID = e.id, o.scene.primitives.add(n), this.dispose(() => o.scene.primitives.remove(n));
|
|
31205
31196
|
{
|
|
@@ -31458,7 +31449,7 @@ const SR = `<?xml version="1.0" encoding="utf-8" ?>
|
|
|
31458
31449
|
</Placemark>
|
|
31459
31450
|
</Folder>
|
|
31460
31451
|
\`\`\`
|
|
31461
|
-
`,
|
|
31452
|
+
`, h1 = `async (dataSource, viewer) => {
|
|
31462
31453
|
viewer.clock.shouldAnimate = false;
|
|
31463
31454
|
const rider = dataSource.entities.getById("tour");
|
|
31464
31455
|
await viewer.flyTo(rider)
|
|
@@ -31502,7 +31493,7 @@ const SR = `<?xml version="1.0" encoding="utf-8" ?>
|
|
|
31502
31493
|
|
|
31503
31494
|
该路径可以使用下面回调函数
|
|
31504
31495
|
\`\`\`
|
|
31505
|
-
${
|
|
31496
|
+
${h1}
|
|
31506
31497
|
\`\`\`
|
|
31507
31498
|
|
|
31508
31499
|
${MR}
|
|
@@ -31562,31 +31553,30 @@ const Kn = class Kn extends G {
|
|
|
31562
31553
|
const c = this.dv(W(void 0));
|
|
31563
31554
|
{
|
|
31564
31555
|
const d = () => {
|
|
31565
|
-
|
|
31566
|
-
|
|
31567
|
-
if (this.uri)
|
|
31568
|
-
|
|
31569
|
-
|
|
31570
|
-
|
|
31571
|
-
|
|
31572
|
-
|
|
31573
|
-
|
|
31574
|
-
|
|
31575
|
-
|
|
31576
|
-
|
|
31577
|
-
|
|
31578
|
-
|
|
31579
|
-
|
|
31580
|
-
|
|
31581
|
-
|
|
31582
|
-
c.value = (this.data && DR(this.data)) ?? p();
|
|
31556
|
+
var f;
|
|
31557
|
+
if (this.uri)
|
|
31558
|
+
if (this.uri && typeof this.uri != "string")
|
|
31559
|
+
(f = h.Resource.fetchXML({
|
|
31560
|
+
url: this.uri.url,
|
|
31561
|
+
headers: this.uri.headers,
|
|
31562
|
+
queryParameters: this.uri.queryParameters,
|
|
31563
|
+
templateValues: this.uri.templateValues,
|
|
31564
|
+
proxy: this.uri.proxy,
|
|
31565
|
+
retryCallback: this.uri.retryCallback,
|
|
31566
|
+
retryAttempts: this.uri.retryAttempts,
|
|
31567
|
+
request: this.uri.request
|
|
31568
|
+
})) == null || f.then((g) => g);
|
|
31569
|
+
else
|
|
31570
|
+
return oe.context.getStrFromEnv(this.uri);
|
|
31571
|
+
}, u = () => {
|
|
31572
|
+
c.value = (this.data && DR(this.data)) ?? d();
|
|
31583
31573
|
};
|
|
31584
|
-
|
|
31585
|
-
const
|
|
31574
|
+
u();
|
|
31575
|
+
const p = this.dv(B(
|
|
31586
31576
|
this.uriChanged,
|
|
31587
31577
|
this.dataChanged
|
|
31588
31578
|
));
|
|
31589
|
-
this.d(
|
|
31579
|
+
this.d(p.don(u));
|
|
31590
31580
|
}
|
|
31591
31581
|
{
|
|
31592
31582
|
const d = this.dv(Ve(async (f) => {
|
|
@@ -31667,7 +31657,7 @@ const Kn = class Kn extends G {
|
|
|
31667
31657
|
m(Kn, "defaults", {
|
|
31668
31658
|
show: !0,
|
|
31669
31659
|
allowPicking: !0,
|
|
31670
|
-
defaultLoadFuncStr:
|
|
31660
|
+
defaultLoadFuncStr: h1,
|
|
31671
31661
|
defaultLoadFuncDocStr: RR,
|
|
31672
31662
|
data: SR,
|
|
31673
31663
|
dataMd: bR,
|
|
@@ -31689,9 +31679,9 @@ let fn = Kn;
|
|
|
31689
31679
|
show: !0,
|
|
31690
31680
|
// boolean} [show=true] A boolean Property specifying the visibility
|
|
31691
31681
|
uri: void 0,
|
|
31682
|
+
data: void 0,
|
|
31692
31683
|
allowPicking: void 0,
|
|
31693
31684
|
loadFuncStr: void 0,
|
|
31694
|
-
data: void 0,
|
|
31695
31685
|
autoResetClock: void 0,
|
|
31696
31686
|
clockEnabled: void 0,
|
|
31697
31687
|
startTime: void 0,
|
|
@@ -31931,7 +31921,7 @@ const ll = class ll extends Eg {
|
|
|
31931
31921
|
constructor(e, s) {
|
|
31932
31922
|
super(e, s);
|
|
31933
31923
|
m(this, "_czmESLocalPolygon");
|
|
31934
|
-
if (this._czmESLocalPolygon = this.disposeVar(new
|
|
31924
|
+
if (this._czmESLocalPolygon = this.disposeVar(new EC(e.id)), !s.viewer) {
|
|
31935
31925
|
console.warn("viewer is undefined!");
|
|
31936
31926
|
return;
|
|
31937
31927
|
}
|
|
@@ -31956,7 +31946,7 @@ const ll = class ll extends Eg {
|
|
|
31956
31946
|
return n.actived ? o.flyToParam || o.flyInParam ? super.flyTo(e, s) : (r.flyTo(e), o.flyOverEvent.emit(s, "over", n), !0) : !1;
|
|
31957
31947
|
}
|
|
31958
31948
|
};
|
|
31959
|
-
m(ll, "type", ll.register("ESCesiumViewer",
|
|
31949
|
+
m(ll, "type", ll.register("ESCesiumViewer", AC.type, ll));
|
|
31960
31950
|
let u0 = ll;
|
|
31961
31951
|
const hl = class hl extends Eg {
|
|
31962
31952
|
constructor(e, s) {
|
|
@@ -32003,13 +31993,13 @@ const hl = class hl extends Eg {
|
|
|
32003
31993
|
return n.actived ? o.flyToParam || o.flyInParam ? super.flyTo(e, s) : r.positions ? (ve(n, o, s, r.positions, e), !0) : !1 : !1;
|
|
32004
31994
|
}
|
|
32005
31995
|
};
|
|
32006
|
-
m(hl, "type", hl.register("ESCesiumViewer",
|
|
31996
|
+
m(hl, "type", hl.register("ESCesiumViewer", EC.type, hl));
|
|
32007
31997
|
let p0 = hl;
|
|
32008
31998
|
const cl = class cl extends Re {
|
|
32009
31999
|
constructor(e, s) {
|
|
32010
32000
|
super(e, s);
|
|
32011
32001
|
m(this, "_czmLocalRectangle");
|
|
32012
|
-
if (this._czmLocalRectangle = this.disposeVar(new
|
|
32002
|
+
if (this._czmLocalRectangle = this.disposeVar(new AC(e.id)), !s.viewer) {
|
|
32013
32003
|
console.warn("viewer is undefined!");
|
|
32014
32004
|
return;
|
|
32015
32005
|
}
|
|
@@ -32048,7 +32038,7 @@ const cl = class cl extends Re {
|
|
|
32048
32038
|
return n.actived ? o.flyToParam || o.flyInParam ? super.flyTo(e, s) : (r.flyTo(e), o.flyOverEvent.emit(s, "over", n), !0) : !1;
|
|
32049
32039
|
}
|
|
32050
32040
|
};
|
|
32051
|
-
m(cl, "type", cl.register("ESCesiumViewer",
|
|
32041
|
+
m(cl, "type", cl.register("ESCesiumViewer", gx.type, cl));
|
|
32052
32042
|
let f0 = cl;
|
|
32053
32043
|
const dl = class dl extends Gi {
|
|
32054
32044
|
constructor(e, s) {
|
|
@@ -32173,7 +32163,7 @@ const FR = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAEACAYAAADFkM5nAA
|
|
|
32173
32163
|
return n.actived ? o.flyInParam ? super.flyIn(e, s) : r.positions ? (ve(n, o, s, r.positions, e), !0) : !1 : !1;
|
|
32174
32164
|
}
|
|
32175
32165
|
};
|
|
32176
|
-
m(ul, "type", ul.register("ESCesiumViewer",
|
|
32166
|
+
m(ul, "type", ul.register("ESCesiumViewer", mx.type, ul));
|
|
32177
32167
|
let m0 = ul;
|
|
32178
32168
|
const xs = class xs extends G {
|
|
32179
32169
|
constructor(e, s) {
|
|
@@ -32434,7 +32424,7 @@ const pl = class pl extends Zt {
|
|
|
32434
32424
|
return n.actived ? o.flyInParam ? super.flyIn(e, s) : (vi(n, o, s, e, r.czmCustomPrimitive), !0) : !1;
|
|
32435
32425
|
}
|
|
32436
32426
|
};
|
|
32437
|
-
m(pl, "type", pl.register("ESCesiumViewer",
|
|
32427
|
+
m(pl, "type", pl.register("ESCesiumViewer", MC.type, pl));
|
|
32438
32428
|
let v0 = pl;
|
|
32439
32429
|
const fl = class fl extends Zt {
|
|
32440
32430
|
constructor(e, s) {
|
|
@@ -32505,7 +32495,7 @@ const fl = class fl extends Zt {
|
|
|
32505
32495
|
return !1;
|
|
32506
32496
|
}
|
|
32507
32497
|
};
|
|
32508
|
-
m(fl, "type", fl.register("ESCesiumViewer",
|
|
32498
|
+
m(fl, "type", fl.register("ESCesiumViewer", vx.type, fl));
|
|
32509
32499
|
let y0 = fl;
|
|
32510
32500
|
const Zs = class Zs extends G {
|
|
32511
32501
|
constructor(e, s) {
|
|
@@ -32927,7 +32917,7 @@ const wl = class wl extends Wi {
|
|
|
32927
32917
|
this.urlData = c;
|
|
32928
32918
|
}).catch((c) => {
|
|
32929
32919
|
console.warn("ESEntityCluster数据加载失败", c);
|
|
32930
|
-
}) : typeof e.url == "object" ? this.urlData = e.url :
|
|
32920
|
+
}) : typeof e.url == "object" ? this.urlData = e.url : bC(e.url) ? this.urlData = JSON.parse(e.url) : fetch(oe.getStrFromEnv(e.url)).then((c) => c.json()).then((c) => {
|
|
32931
32921
|
this.urlData = c;
|
|
32932
32922
|
}).catch((c) => {
|
|
32933
32923
|
console.warn("ESEntityCluster数据加载失败", c);
|
|
@@ -34442,10 +34432,10 @@ function KR(t, i, e) {
|
|
|
34442
34432
|
};
|
|
34443
34433
|
}).filter((s) => !!s);
|
|
34444
34434
|
}
|
|
34445
|
-
const na = h.ArcType, JR = h.arrayRemoveDuplicates, jR = h.BoundingSphere, mt = h.Cartesian3, oi = h.Color, kn = h.ComponentDatatype, eD = h.Frozen, di = h.defined, rr = h.DeveloperError, is = h.Ellipsoid, tD = h.Geometry, Fn = h.GeometryAttribute, iD = h.GeometryAttributes, sD = h.GeometryType, oD = h.IndexDatatype,
|
|
34446
|
-
var
|
|
34435
|
+
const na = h.ArcType, JR = h.arrayRemoveDuplicates, jR = h.BoundingSphere, mt = h.Cartesian3, oi = h.Color, kn = h.ComponentDatatype, eD = h.Frozen, di = h.defined, rr = h.DeveloperError, is = h.Ellipsoid, tD = h.Geometry, Fn = h.GeometryAttribute, iD = h.GeometryAttributes, sD = h.GeometryType, oD = h.IndexDatatype, c1 = h.Math, jr = h.PolylinePipeline, nD = h.PrimitiveType, Ts = h.VertexFormat;
|
|
34436
|
+
var d1 = [];
|
|
34447
34437
|
function rD(t, i, e, s, o) {
|
|
34448
|
-
var n =
|
|
34438
|
+
var n = d1;
|
|
34449
34439
|
n.length = o;
|
|
34450
34440
|
var r, a = e.red, l = e.green, c = e.blue, d = e.alpha, u = s.red, p = s.green, f = s.blue, g = s.alpha;
|
|
34451
34441
|
if (oi.equals(e, s)) {
|
|
@@ -34467,7 +34457,7 @@ function br(t) {
|
|
|
34467
34457
|
throw new rr("width must be a number");
|
|
34468
34458
|
if (di(e) && (o && e.length < i.length || !o && e.length < i.length - 1))
|
|
34469
34459
|
throw new rr("colors has an invalid length.");
|
|
34470
|
-
this._positions = i, this._colors = e, this._width = s, this._colorsPerVertex = o, this._vertexFormat = Ts.clone(t.vertexFormat ?? Ts.DEFAULT), this._arcType = t.arcType ?? na.GEODESIC, this._granularity = t.granularity ??
|
|
34460
|
+
this._positions = i, this._colors = e, this._width = s, this._colorsPerVertex = o, this._vertexFormat = Ts.clone(t.vertexFormat ?? Ts.DEFAULT), this._arcType = t.arcType ?? na.GEODESIC, this._granularity = t.granularity ?? c1.RADIANS_PER_DEGREE, this._ellipsoid = is.clone(t.ellipsoid ?? is.WGS84), this._workerName = "createPolylineGeometry";
|
|
34471
34461
|
var n = 1 + i.length * mt.packedLength;
|
|
34472
34462
|
n += di(e) ? 1 + e.length * oi.packedLength : 1, this.packedLength = n + is.packedLength + Ts.packedLength + 4;
|
|
34473
34463
|
}
|
|
@@ -34485,11 +34475,11 @@ br.pack = function(t, i, e) {
|
|
|
34485
34475
|
oi.pack(r[s], i, e);
|
|
34486
34476
|
return is.pack(t._ellipsoid, i, e), e += is.packedLength, Ts.pack(t._vertexFormat, i, e), e += Ts.packedLength, i[e++] = t._width, i[e++] = t._colorsPerVertex ? 1 : 0, i[e++] = t._arcType, i[e] = t._granularity, i;
|
|
34487
34477
|
};
|
|
34488
|
-
var
|
|
34478
|
+
var u1 = is.clone(is.UNIT_SPHERE), p1 = new Ts(), Ao = {
|
|
34489
34479
|
positions: void 0,
|
|
34490
34480
|
colors: void 0,
|
|
34491
|
-
ellipsoid:
|
|
34492
|
-
vertexFormat:
|
|
34481
|
+
ellipsoid: u1,
|
|
34482
|
+
vertexFormat: p1,
|
|
34493
34483
|
width: void 0,
|
|
34494
34484
|
colorsPerVertex: void 0,
|
|
34495
34485
|
arcType: void 0,
|
|
@@ -34506,9 +34496,9 @@ br.unpack = function(t, i, e) {
|
|
|
34506
34496
|
var r = o > 0 ? new Array(o) : void 0;
|
|
34507
34497
|
for (s = 0; s < o; ++s, i += oi.packedLength)
|
|
34508
34498
|
r[s] = oi.unpack(t, i);
|
|
34509
|
-
var a = is.unpack(t, i,
|
|
34499
|
+
var a = is.unpack(t, i, u1);
|
|
34510
34500
|
i += is.packedLength;
|
|
34511
|
-
var l = Ts.unpack(t, i,
|
|
34501
|
+
var l = Ts.unpack(t, i, p1);
|
|
34512
34502
|
i += Ts.packedLength;
|
|
34513
34503
|
var c = t[i++], d = t[i++] === 1, u = t[i++], p = t[i];
|
|
34514
34504
|
return di(e) ? (e._positions = n, e._colors = r, e._ellipsoid = is.clone(a, e._ellipsoid), e._vertexFormat = Ts.clone(l, e._vertexFormat), e._width = c, e._colorsPerVertex = d, e._arcType = u, e._granularity = p, e) : (Ao.positions = n, Ao.colors = r, Ao.width = c, Ao.colorsPerVertex = d, Ao.arcType = u, Ao.granularity = p, new br(Ao));
|
|
@@ -34520,7 +34510,7 @@ br.createGeometry = function(t) {
|
|
|
34520
34510
|
return;
|
|
34521
34511
|
if (n === na.GEODESIC || n === na.RHUMB) {
|
|
34522
34512
|
var f, g;
|
|
34523
|
-
n === na.GEODESIC ? (f =
|
|
34513
|
+
n === na.GEODESIC ? (f = c1.chordLength(r, a.maximumRadius), g = jr.numberOfPoints) : (f = r, g = jr.numberOfPointsRhumbLine);
|
|
34524
34514
|
var v = jr.extractHeights(u, a);
|
|
34525
34515
|
if (di(s)) {
|
|
34526
34516
|
var C = 1;
|
|
@@ -34537,7 +34527,7 @@ br.createGeometry = function(t) {
|
|
|
34537
34527
|
for (c = 0; c < M; ++c)
|
|
34538
34528
|
P[y++] = oi.clone(A);
|
|
34539
34529
|
}
|
|
34540
|
-
P[y] = oi.clone(s[s.length - 1]), s = P,
|
|
34530
|
+
P[y] = oi.clone(s[s.length - 1]), s = P, d1.length = 0;
|
|
34541
34531
|
}
|
|
34542
34532
|
n === na.GEODESIC ? u = jr.generateCartesianArc({
|
|
34543
34533
|
positions: u,
|
|
@@ -34872,7 +34862,7 @@ function (result, this, instanceIndex, frameState) {
|
|
|
34872
34862
|
}
|
|
34873
34863
|
{
|
|
34874
34864
|
const f = () => {
|
|
34875
|
-
const g =
|
|
34865
|
+
const g = ZC(this.routePathCallbackStr, [
|
|
34876
34866
|
"result",
|
|
34877
34867
|
"this",
|
|
34878
34868
|
"instanceIndex",
|
|
@@ -35396,7 +35386,7 @@ function wD(t) {
|
|
|
35396
35386
|
throw new Error("geojson is required");
|
|
35397
35387
|
switch (t.type) {
|
|
35398
35388
|
case "Feature":
|
|
35399
|
-
return
|
|
35389
|
+
return f1(t);
|
|
35400
35390
|
case "FeatureCollection":
|
|
35401
35391
|
return CD(t);
|
|
35402
35392
|
case "Point":
|
|
@@ -35411,7 +35401,7 @@ function wD(t) {
|
|
|
35411
35401
|
throw new Error("unknown GeoJSON type");
|
|
35412
35402
|
}
|
|
35413
35403
|
}
|
|
35414
|
-
function
|
|
35404
|
+
function f1(t) {
|
|
35415
35405
|
var i = { type: "Feature" };
|
|
35416
35406
|
return Object.keys(t).forEach(function(e) {
|
|
35417
35407
|
switch (e) {
|
|
@@ -35422,15 +35412,15 @@ function p1(t) {
|
|
|
35422
35412
|
default:
|
|
35423
35413
|
i[e] = t[e];
|
|
35424
35414
|
}
|
|
35425
|
-
}), i.properties =
|
|
35415
|
+
}), i.properties = g1(t.properties), i.geometry = Mg(t.geometry), i;
|
|
35426
35416
|
}
|
|
35427
|
-
function
|
|
35417
|
+
function g1(t) {
|
|
35428
35418
|
var i = {};
|
|
35429
35419
|
return t && Object.keys(t).forEach(function(e) {
|
|
35430
35420
|
var s = t[e];
|
|
35431
35421
|
typeof s == "object" ? s === null ? i[e] = null : Array.isArray(s) ? i[e] = s.map(function(o) {
|
|
35432
35422
|
return o;
|
|
35433
|
-
}) : i[e] =
|
|
35423
|
+
}) : i[e] = g1(s) : i[e] = s;
|
|
35434
35424
|
}), i;
|
|
35435
35425
|
}
|
|
35436
35426
|
function CD(t) {
|
|
@@ -35444,19 +35434,19 @@ function CD(t) {
|
|
|
35444
35434
|
i[e] = t[e];
|
|
35445
35435
|
}
|
|
35446
35436
|
}), i.features = t.features.map(function(e) {
|
|
35447
|
-
return
|
|
35437
|
+
return f1(e);
|
|
35448
35438
|
}), i;
|
|
35449
35439
|
}
|
|
35450
35440
|
function Mg(t) {
|
|
35451
35441
|
var i = { type: t.type };
|
|
35452
35442
|
return t.bbox && (i.bbox = t.bbox), t.type === "GeometryCollection" ? (i.geometries = t.geometries.map(function(e) {
|
|
35453
35443
|
return Mg(e);
|
|
35454
|
-
}), i) : (i.coordinates =
|
|
35444
|
+
}), i) : (i.coordinates = m1(t.coordinates), i);
|
|
35455
35445
|
}
|
|
35456
|
-
function
|
|
35446
|
+
function m1(t) {
|
|
35457
35447
|
var i = t;
|
|
35458
35448
|
return typeof i[0] != "object" ? i.slice() : i.map(function(e) {
|
|
35459
|
-
return
|
|
35449
|
+
return m1(e);
|
|
35460
35450
|
});
|
|
35461
35451
|
}
|
|
35462
35452
|
function N0(t, i) {
|
|
@@ -35566,7 +35556,7 @@ function SD(t, i) {
|
|
|
35566
35556
|
return [r, a, l, c];
|
|
35567
35557
|
}
|
|
35568
35558
|
var Fc = { exports: {} }, Ru = {}, H0;
|
|
35569
|
-
function
|
|
35559
|
+
function v1() {
|
|
35570
35560
|
return H0 || (H0 = 1, function(t) {
|
|
35571
35561
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.earthRadius = 63710088e-1, t.factors = {
|
|
35572
35562
|
centimeters: t.earthRadius * 100,
|
|
@@ -35835,10 +35825,10 @@ function m1() {
|
|
|
35835
35825
|
}(Ru)), Ru;
|
|
35836
35826
|
}
|
|
35837
35827
|
var gt = {}, q0;
|
|
35838
|
-
function
|
|
35828
|
+
function y1() {
|
|
35839
35829
|
if (q0) return gt;
|
|
35840
35830
|
q0 = 1, Object.defineProperty(gt, "__esModule", { value: !0 });
|
|
35841
|
-
var t = /* @__PURE__ */
|
|
35831
|
+
var t = /* @__PURE__ */ v1();
|
|
35842
35832
|
function i(y, x, b) {
|
|
35843
35833
|
if (y !== null)
|
|
35844
35834
|
for (var A, M, R, F, U, O, z, N = 0, w = 0, T, D = y.type, V = D === "FeatureCollection", H = D === "Feature", J = V ? y.features.length : 1, X = 0; X < J; X++) {
|
|
@@ -36300,7 +36290,7 @@ var zc = {}, $0;
|
|
|
36300
36290
|
function bD() {
|
|
36301
36291
|
if ($0) return zc;
|
|
36302
36292
|
$0 = 1, Object.defineProperty(zc, "__esModule", { value: !0 });
|
|
36303
|
-
var t = /* @__PURE__ */
|
|
36293
|
+
var t = /* @__PURE__ */ y1();
|
|
36304
36294
|
function i(e) {
|
|
36305
36295
|
var s = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
36306
36296
|
return t.coordEach(e, function(o) {
|
|
@@ -36313,7 +36303,7 @@ var X0;
|
|
|
36313
36303
|
function TD() {
|
|
36314
36304
|
if (X0) return Fc.exports;
|
|
36315
36305
|
X0 = 1;
|
|
36316
|
-
var t = vD(), i = /* @__PURE__ */
|
|
36306
|
+
var t = vD(), i = /* @__PURE__ */ v1(), e = /* @__PURE__ */ y1(), s = bD().default, o = e.featureEach;
|
|
36317
36307
|
e.coordEach, i.polygon;
|
|
36318
36308
|
var n = i.featureCollection;
|
|
36319
36309
|
function r(a) {
|
|
@@ -36478,7 +36468,7 @@ function ID(t, i) {
|
|
|
36478
36468
|
function RD(t, i) {
|
|
36479
36469
|
var e, s = !1;
|
|
36480
36470
|
for (e = 0; e < i.coordinates.length; e++)
|
|
36481
|
-
if (
|
|
36471
|
+
if (C1(i.coordinates[e], t.coordinates)) {
|
|
36482
36472
|
s = !0;
|
|
36483
36473
|
break;
|
|
36484
36474
|
}
|
|
@@ -36487,7 +36477,7 @@ function RD(t, i) {
|
|
|
36487
36477
|
function DD(t, i) {
|
|
36488
36478
|
for (var e = 0; e < t.coordinates.length; e++) {
|
|
36489
36479
|
for (var s = !1, o = 0; o < i.coordinates.length; o++)
|
|
36490
|
-
|
|
36480
|
+
C1(t.coordinates[e], i.coordinates[o]) && (s = !0);
|
|
36491
36481
|
if (!s)
|
|
36492
36482
|
return !1;
|
|
36493
36483
|
}
|
|
@@ -36521,7 +36511,7 @@ function zD(t, i) {
|
|
|
36521
36511
|
}
|
|
36522
36512
|
function LD(t, i) {
|
|
36523
36513
|
var e = vn(i), s = vn(t);
|
|
36524
|
-
if (!
|
|
36514
|
+
if (!w1(e, s))
|
|
36525
36515
|
return !1;
|
|
36526
36516
|
for (var o = !1, n = 0; n < t.coordinates.length - 1; n++) {
|
|
36527
36517
|
if (!qt(t.coordinates[n], i))
|
|
@@ -36537,23 +36527,23 @@ function LD(t, i) {
|
|
|
36537
36527
|
}
|
|
36538
36528
|
function OD(t, i) {
|
|
36539
36529
|
var e = vn(t), s = vn(i);
|
|
36540
|
-
if (!
|
|
36530
|
+
if (!w1(s, e))
|
|
36541
36531
|
return !1;
|
|
36542
36532
|
for (var o = 0; o < t.coordinates[0].length; o++)
|
|
36543
36533
|
if (!qt(t.coordinates[0][o], i))
|
|
36544
36534
|
return !1;
|
|
36545
36535
|
return !0;
|
|
36546
36536
|
}
|
|
36547
|
-
function
|
|
36537
|
+
function w1(t, i) {
|
|
36548
36538
|
return !(t[0] > i[0] || t[2] < i[2] || t[1] > i[1] || t[3] < i[3]);
|
|
36549
36539
|
}
|
|
36550
|
-
function
|
|
36540
|
+
function C1(t, i) {
|
|
36551
36541
|
return t[0] === i[0] && t[1] === i[1];
|
|
36552
36542
|
}
|
|
36553
36543
|
function BD(t, i) {
|
|
36554
36544
|
return [(t[0] + i[0]) / 2, (t[1] + i[1]) / 2];
|
|
36555
36545
|
}
|
|
36556
|
-
function
|
|
36546
|
+
function _1(t, i, e) {
|
|
36557
36547
|
e === void 0 && (e = {}), e.mask && !e.units && (e.units = "kilometers");
|
|
36558
36548
|
for (var s = [], o = t[0], n = t[1], r = t[2], a = t[3], l = i / cs([o, n], [r, n], e), c = l * (r - o), d = i / cs([o, n], [o, a], e), u = d * (a - n), p = r - o, f = a - n, g = Math.floor(p / c), v = Math.floor(f / u), C = (p - g * c) / 2, P = (f - v * u) / 2, y = o + C; y <= r; ) {
|
|
36559
36549
|
for (var x = n + P; x <= a; ) {
|
|
@@ -36579,20 +36569,20 @@ function Ff(t, i) {
|
|
|
36579
36569
|
function VD(t, i) {
|
|
36580
36570
|
i === void 0 && (i = {});
|
|
36581
36571
|
var e = hs(t), s = e.coordinates, o = i.properties ? i.properties : t.type === "Feature" ? t.properties : {};
|
|
36582
|
-
return
|
|
36572
|
+
return P1(s, o);
|
|
36583
36573
|
}
|
|
36584
36574
|
function ND(t, i) {
|
|
36585
36575
|
i === void 0 && (i = {});
|
|
36586
36576
|
var e = hs(t), s = e.coordinates, o = i.properties ? i.properties : t.type === "Feature" ? t.properties : {}, n = [];
|
|
36587
36577
|
return s.forEach(function(r) {
|
|
36588
|
-
n.push(
|
|
36578
|
+
n.push(P1(r, o));
|
|
36589
36579
|
}), ls(n);
|
|
36590
36580
|
}
|
|
36591
|
-
function
|
|
36581
|
+
function P1(t, i) {
|
|
36592
36582
|
return t.length > 1 ? VR(t, i) : Hd(t[0], i);
|
|
36593
36583
|
}
|
|
36594
36584
|
var Du, Z0;
|
|
36595
|
-
function
|
|
36585
|
+
function x1() {
|
|
36596
36586
|
if (Z0) return Du;
|
|
36597
36587
|
Z0 = 1;
|
|
36598
36588
|
var t = Object.prototype.toString;
|
|
@@ -36607,7 +36597,7 @@ function UD() {
|
|
|
36607
36597
|
Q0 = 1;
|
|
36608
36598
|
var t;
|
|
36609
36599
|
if (!Object.keys) {
|
|
36610
|
-
var i = Object.prototype.hasOwnProperty, e = Object.prototype.toString, s =
|
|
36600
|
+
var i = Object.prototype.hasOwnProperty, e = Object.prototype.toString, s = x1(), o = Object.prototype.propertyIsEnumerable, n = !o.call({ toString: null }, "toString"), r = o.call(function() {
|
|
36611
36601
|
}, "prototype"), a = [
|
|
36612
36602
|
"toString",
|
|
36613
36603
|
"toLocaleString",
|
|
@@ -36690,10 +36680,10 @@ function UD() {
|
|
|
36690
36680
|
return ku = t, ku;
|
|
36691
36681
|
}
|
|
36692
36682
|
var Fu, K0;
|
|
36693
|
-
function
|
|
36683
|
+
function S1() {
|
|
36694
36684
|
if (K0) return Fu;
|
|
36695
36685
|
K0 = 1;
|
|
36696
|
-
var t = Array.prototype.slice, i =
|
|
36686
|
+
var t = Array.prototype.slice, i = x1(), e = Object.keys, s = e ? function(r) {
|
|
36697
36687
|
return e(r);
|
|
36698
36688
|
} : UD(), o = Object.keys;
|
|
36699
36689
|
return s.shim = function() {
|
|
@@ -36711,7 +36701,7 @@ function x1() {
|
|
|
36711
36701
|
}, Fu = s, Fu;
|
|
36712
36702
|
}
|
|
36713
36703
|
var zu, J0;
|
|
36714
|
-
function
|
|
36704
|
+
function b1() {
|
|
36715
36705
|
return J0 || (J0 = 1, zu = function() {
|
|
36716
36706
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
36717
36707
|
return !1;
|
|
@@ -36744,17 +36734,17 @@ var Lu, j0;
|
|
|
36744
36734
|
function Rg() {
|
|
36745
36735
|
if (j0) return Lu;
|
|
36746
36736
|
j0 = 1;
|
|
36747
|
-
var t =
|
|
36737
|
+
var t = b1();
|
|
36748
36738
|
return Lu = function() {
|
|
36749
36739
|
return t() && !!Symbol.toStringTag;
|
|
36750
36740
|
}, Lu;
|
|
36751
36741
|
}
|
|
36752
36742
|
var Ou, ey;
|
|
36753
|
-
function
|
|
36743
|
+
function T1() {
|
|
36754
36744
|
return ey || (ey = 1, Ou = Object), Ou;
|
|
36755
36745
|
}
|
|
36756
36746
|
var Bu, ty;
|
|
36757
|
-
function
|
|
36747
|
+
function A1() {
|
|
36758
36748
|
return ty || (ty = 1, Bu = Error), Bu;
|
|
36759
36749
|
}
|
|
36760
36750
|
var Vu, iy;
|
|
@@ -36770,7 +36760,7 @@ function HD() {
|
|
|
36770
36760
|
return oy || (oy = 1, Uu = ReferenceError), Uu;
|
|
36771
36761
|
}
|
|
36772
36762
|
var Gu, ny;
|
|
36773
|
-
function
|
|
36763
|
+
function E1() {
|
|
36774
36764
|
return ny || (ny = 1, Gu = SyntaxError), Gu;
|
|
36775
36765
|
}
|
|
36776
36766
|
var Wu, ry;
|
|
@@ -36854,20 +36844,20 @@ var ip, wy;
|
|
|
36854
36844
|
function t3() {
|
|
36855
36845
|
if (wy) return ip;
|
|
36856
36846
|
wy = 1;
|
|
36857
|
-
var t = typeof Symbol < "u" && Symbol, i =
|
|
36847
|
+
var t = typeof Symbol < "u" && Symbol, i = b1();
|
|
36858
36848
|
return ip = function() {
|
|
36859
36849
|
return typeof t != "function" || typeof Symbol != "function" || typeof t("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : i();
|
|
36860
36850
|
}, ip;
|
|
36861
36851
|
}
|
|
36862
36852
|
var sp, Cy;
|
|
36863
|
-
function
|
|
36853
|
+
function M1() {
|
|
36864
36854
|
return Cy || (Cy = 1, sp = typeof Reflect < "u" && Reflect.getPrototypeOf || null), sp;
|
|
36865
36855
|
}
|
|
36866
36856
|
var op, _y;
|
|
36867
|
-
function
|
|
36857
|
+
function I1() {
|
|
36868
36858
|
if (_y) return op;
|
|
36869
36859
|
_y = 1;
|
|
36870
|
-
var t = /* @__PURE__ */
|
|
36860
|
+
var t = /* @__PURE__ */ T1();
|
|
36871
36861
|
return op = t.getPrototypeOf || null, op;
|
|
36872
36862
|
}
|
|
36873
36863
|
var np, Py;
|
|
@@ -36935,7 +36925,7 @@ function s3() {
|
|
|
36935
36925
|
return Ty || (Ty = 1, hp = typeof Reflect < "u" && Reflect && Reflect.apply), hp;
|
|
36936
36926
|
}
|
|
36937
36927
|
var cp, Ay;
|
|
36938
|
-
function
|
|
36928
|
+
function R1() {
|
|
36939
36929
|
if (Ay) return cp;
|
|
36940
36930
|
Ay = 1;
|
|
36941
36931
|
var t = Xh(), i = kg(), e = Dg(), s = s3();
|
|
@@ -36945,7 +36935,7 @@ var dp, Ey;
|
|
|
36945
36935
|
function Fg() {
|
|
36946
36936
|
if (Ey) return dp;
|
|
36947
36937
|
Ey = 1;
|
|
36948
|
-
var t = Xh(), i = /* @__PURE__ */ Br(), e = Dg(), s =
|
|
36938
|
+
var t = Xh(), i = /* @__PURE__ */ Br(), e = Dg(), s = R1();
|
|
36949
36939
|
return dp = function(n) {
|
|
36950
36940
|
if (n.length < 1 || typeof n[0] != "function")
|
|
36951
36941
|
throw new i("a function is required");
|
|
@@ -36977,10 +36967,10 @@ function o3() {
|
|
|
36977
36967
|
) : !1, up;
|
|
36978
36968
|
}
|
|
36979
36969
|
var pp, Iy;
|
|
36980
|
-
function
|
|
36970
|
+
function D1() {
|
|
36981
36971
|
if (Iy) return pp;
|
|
36982
36972
|
Iy = 1;
|
|
36983
|
-
var t =
|
|
36973
|
+
var t = M1(), i = I1(), e = /* @__PURE__ */ o3();
|
|
36984
36974
|
return pp = t ? function(o) {
|
|
36985
36975
|
return t(o);
|
|
36986
36976
|
} : i ? function(o) {
|
|
@@ -36992,17 +36982,17 @@ function R1() {
|
|
|
36992
36982
|
} : null, pp;
|
|
36993
36983
|
}
|
|
36994
36984
|
var fp, Ry;
|
|
36995
|
-
function
|
|
36985
|
+
function k1() {
|
|
36996
36986
|
if (Ry) return fp;
|
|
36997
36987
|
Ry = 1;
|
|
36998
36988
|
var t = Function.prototype.call, i = Object.prototype.hasOwnProperty, e = Xh();
|
|
36999
36989
|
return fp = e.call(t, i), fp;
|
|
37000
36990
|
}
|
|
37001
36991
|
var gp, Dy;
|
|
37002
|
-
function
|
|
36992
|
+
function F1() {
|
|
37003
36993
|
if (Dy) return gp;
|
|
37004
36994
|
Dy = 1;
|
|
37005
|
-
var t, i = /* @__PURE__ */
|
|
36995
|
+
var t, i = /* @__PURE__ */ T1(), e = /* @__PURE__ */ A1(), s = /* @__PURE__ */ GD(), o = /* @__PURE__ */ WD(), n = /* @__PURE__ */ HD(), r = /* @__PURE__ */ E1(), a = /* @__PURE__ */ Br(), l = /* @__PURE__ */ qD(), c = /* @__PURE__ */ $D(), d = /* @__PURE__ */ XD(), u = /* @__PURE__ */ YD(), p = /* @__PURE__ */ ZD(), f = /* @__PURE__ */ QD(), g = /* @__PURE__ */ KD(), v = /* @__PURE__ */ jD(), C = Function, P = function(Te) {
|
|
37006
36996
|
try {
|
|
37007
36997
|
return C('"use strict"; return (' + Te + ").constructor;")();
|
|
37008
36998
|
} catch {
|
|
@@ -37019,7 +37009,7 @@ function k1() {
|
|
|
37019
37009
|
return b;
|
|
37020
37010
|
}
|
|
37021
37011
|
}
|
|
37022
|
-
}() : b, M = t3()(), R =
|
|
37012
|
+
}() : b, M = t3()(), R = D1(), F = I1(), U = M1(), O = kg(), z = Dg(), N = {}, w = typeof Uint8Array > "u" || !R ? t : R(Uint8Array), T = {
|
|
37023
37013
|
__proto__: null,
|
|
37024
37014
|
"%AggregateError%": typeof AggregateError > "u" ? t : AggregateError,
|
|
37025
37015
|
"%Array%": Array,
|
|
@@ -37179,7 +37169,7 @@ function k1() {
|
|
|
37179
37169
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
37180
37170
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
37181
37171
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
37182
|
-
}, J = Xh(), X = /* @__PURE__ */
|
|
37172
|
+
}, J = Xh(), X = /* @__PURE__ */ k1(), Q = J.call(z, Array.prototype.concat), te = J.call(O, Array.prototype.splice), le = J.call(z, String.prototype.replace), ge = J.call(z, String.prototype.slice), be = J.call(z, RegExp.prototype.exec), Ee = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Fe = /\\(\\)?/g, Qe = function(de) {
|
|
37183
37173
|
var Ce = ge(de, 0, 1), _e = ge(de, -1);
|
|
37184
37174
|
if (Ce === "%" && _e !== "%")
|
|
37185
37175
|
throw new r("invalid intrinsic syntax, expected closing `%`");
|
|
@@ -37239,7 +37229,7 @@ var mp, ky;
|
|
|
37239
37229
|
function zg() {
|
|
37240
37230
|
if (ky) return mp;
|
|
37241
37231
|
ky = 1;
|
|
37242
|
-
var t = /* @__PURE__ */
|
|
37232
|
+
var t = /* @__PURE__ */ F1(), i = Fg(), e = i([t("%String.prototype.indexOf%")]);
|
|
37243
37233
|
return mp = function(o, n) {
|
|
37244
37234
|
var r = (
|
|
37245
37235
|
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
@@ -37268,7 +37258,7 @@ var yp, zy;
|
|
|
37268
37258
|
function Lg() {
|
|
37269
37259
|
if (zy) return yp;
|
|
37270
37260
|
zy = 1;
|
|
37271
|
-
var t = /* @__PURE__ */ $d(), i = /* @__PURE__ */
|
|
37261
|
+
var t = /* @__PURE__ */ $d(), i = /* @__PURE__ */ E1(), e = /* @__PURE__ */ Br(), s = /* @__PURE__ */ Vr();
|
|
37272
37262
|
return yp = function(n, r, a) {
|
|
37273
37263
|
if (!n || typeof n != "object" && typeof n != "function")
|
|
37274
37264
|
throw new e("`obj` must be an object or a function`");
|
|
@@ -37317,7 +37307,7 @@ var Cp, Oy;
|
|
|
37317
37307
|
function Yh() {
|
|
37318
37308
|
if (Oy) return Cp;
|
|
37319
37309
|
Oy = 1;
|
|
37320
|
-
var t =
|
|
37310
|
+
var t = S1(), i = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", e = Object.prototype.toString, s = Array.prototype.concat, o = /* @__PURE__ */ Lg(), n = function(c) {
|
|
37321
37311
|
return typeof c == "function" && e.call(c) === "[object Function]";
|
|
37322
37312
|
}, r = /* @__PURE__ */ Og()(), a = function(c, d, u, p) {
|
|
37323
37313
|
if (d in c) {
|
|
@@ -37340,7 +37330,7 @@ var _p = { exports: {} }, Pp, By;
|
|
|
37340
37330
|
function r3() {
|
|
37341
37331
|
if (By) return Pp;
|
|
37342
37332
|
By = 1;
|
|
37343
|
-
var t = /* @__PURE__ */
|
|
37333
|
+
var t = /* @__PURE__ */ F1(), i = /* @__PURE__ */ Lg(), e = /* @__PURE__ */ Og()(), s = /* @__PURE__ */ Vr(), o = /* @__PURE__ */ Br(), n = t("%Math.floor%");
|
|
37344
37334
|
return Pp = function(a, l) {
|
|
37345
37335
|
if (typeof a != "function")
|
|
37346
37336
|
throw new o("`fn` is not a function");
|
|
@@ -37370,13 +37360,13 @@ var xp, Vy;
|
|
|
37370
37360
|
function a3() {
|
|
37371
37361
|
if (Vy) return xp;
|
|
37372
37362
|
Vy = 1;
|
|
37373
|
-
var t = Xh(), i = kg(), e =
|
|
37363
|
+
var t = Xh(), i = kg(), e = R1();
|
|
37374
37364
|
return xp = function() {
|
|
37375
37365
|
return e(t, i, arguments);
|
|
37376
37366
|
}, xp;
|
|
37377
37367
|
}
|
|
37378
37368
|
var Ny;
|
|
37379
|
-
function
|
|
37369
|
+
function z1() {
|
|
37380
37370
|
return Ny || (Ny = 1, function(t) {
|
|
37381
37371
|
var i = /* @__PURE__ */ r3(), e = /* @__PURE__ */ $d(), s = Fg(), o = a3();
|
|
37382
37372
|
t.exports = function(r) {
|
|
@@ -37390,7 +37380,7 @@ function F1() {
|
|
|
37390
37380
|
}(_p)), _p.exports;
|
|
37391
37381
|
}
|
|
37392
37382
|
var Sp, Uy;
|
|
37393
|
-
function
|
|
37383
|
+
function L1() {
|
|
37394
37384
|
if (Uy) return Sp;
|
|
37395
37385
|
Uy = 1;
|
|
37396
37386
|
var t = function(i) {
|
|
@@ -37401,10 +37391,10 @@ function z1() {
|
|
|
37401
37391
|
}, Sp;
|
|
37402
37392
|
}
|
|
37403
37393
|
var bp, Gy;
|
|
37404
|
-
function
|
|
37394
|
+
function O1() {
|
|
37405
37395
|
if (Gy) return bp;
|
|
37406
37396
|
Gy = 1;
|
|
37407
|
-
var t =
|
|
37397
|
+
var t = L1();
|
|
37408
37398
|
return bp = function() {
|
|
37409
37399
|
return typeof Object.is == "function" ? Object.is : t;
|
|
37410
37400
|
}, bp;
|
|
@@ -37413,7 +37403,7 @@ var Tp, Wy;
|
|
|
37413
37403
|
function l3() {
|
|
37414
37404
|
if (Wy) return Tp;
|
|
37415
37405
|
Wy = 1;
|
|
37416
|
-
var t =
|
|
37406
|
+
var t = O1(), i = Yh();
|
|
37417
37407
|
return Tp = function() {
|
|
37418
37408
|
var s = t();
|
|
37419
37409
|
return i(Object, { is: s }, {
|
|
@@ -37427,7 +37417,7 @@ var Ap, Hy;
|
|
|
37427
37417
|
function h3() {
|
|
37428
37418
|
if (Hy) return Ap;
|
|
37429
37419
|
Hy = 1;
|
|
37430
|
-
var t = Yh(), i =
|
|
37420
|
+
var t = Yh(), i = z1(), e = L1(), s = O1(), o = l3(), n = i(s(), Object);
|
|
37431
37421
|
return t(n, {
|
|
37432
37422
|
getPolyfill: s,
|
|
37433
37423
|
implementation: e,
|
|
@@ -37438,7 +37428,7 @@ var Ep, qy;
|
|
|
37438
37428
|
function c3() {
|
|
37439
37429
|
if (qy) return Ep;
|
|
37440
37430
|
qy = 1;
|
|
37441
|
-
var t = /* @__PURE__ */ zg(), i = Rg()(), e = /* @__PURE__ */
|
|
37431
|
+
var t = /* @__PURE__ */ zg(), i = Rg()(), e = /* @__PURE__ */ k1(), s = /* @__PURE__ */ Vr(), o;
|
|
37442
37432
|
if (i) {
|
|
37443
37433
|
var n = t("RegExp.prototype.exec"), r = {}, a = function() {
|
|
37444
37434
|
throw r;
|
|
@@ -37530,7 +37520,7 @@ function u3() {
|
|
|
37530
37520
|
}, Ip;
|
|
37531
37521
|
}
|
|
37532
37522
|
var Rp, Yy;
|
|
37533
|
-
function
|
|
37523
|
+
function B1() {
|
|
37534
37524
|
if (Yy) return Rp;
|
|
37535
37525
|
Yy = 1;
|
|
37536
37526
|
var t = u3(), i = /* @__PURE__ */ Br(), e = Object;
|
|
@@ -37542,10 +37532,10 @@ function O1() {
|
|
|
37542
37532
|
}, "get flags", !0), Rp;
|
|
37543
37533
|
}
|
|
37544
37534
|
var Dp, Zy;
|
|
37545
|
-
function
|
|
37535
|
+
function V1() {
|
|
37546
37536
|
if (Zy) return Dp;
|
|
37547
37537
|
Zy = 1;
|
|
37548
|
-
var t =
|
|
37538
|
+
var t = B1(), i = Yh().supportsDescriptors, e = Object.getOwnPropertyDescriptor;
|
|
37549
37539
|
return Dp = function() {
|
|
37550
37540
|
if (i && /a/mig.flags === "gim") {
|
|
37551
37541
|
var o = e(RegExp.prototype, "flags");
|
|
@@ -37570,7 +37560,7 @@ var kp, Qy;
|
|
|
37570
37560
|
function p3() {
|
|
37571
37561
|
if (Qy) return kp;
|
|
37572
37562
|
Qy = 1;
|
|
37573
|
-
var t = Yh().supportsDescriptors, i =
|
|
37563
|
+
var t = Yh().supportsDescriptors, i = V1(), e = /* @__PURE__ */ Vr(), s = Object.defineProperty, o = /* @__PURE__ */ A1(), n = D1(), r = /a/;
|
|
37574
37564
|
return kp = function() {
|
|
37575
37565
|
if (!t || !n)
|
|
37576
37566
|
throw new o("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");
|
|
@@ -37586,7 +37576,7 @@ var Fp, Ky;
|
|
|
37586
37576
|
function f3() {
|
|
37587
37577
|
if (Ky) return Fp;
|
|
37588
37578
|
Ky = 1;
|
|
37589
|
-
var t = Yh(), i =
|
|
37579
|
+
var t = Yh(), i = z1(), e = B1(), s = V1(), o = p3(), n = i(s());
|
|
37590
37580
|
return t(n, {
|
|
37591
37581
|
getPolyfill: s,
|
|
37592
37582
|
implementation: e,
|
|
@@ -37612,7 +37602,7 @@ var Lp, jy;
|
|
|
37612
37602
|
function m3() {
|
|
37613
37603
|
if (jy) return Lp;
|
|
37614
37604
|
jy = 1;
|
|
37615
|
-
var t =
|
|
37605
|
+
var t = S1(), i = /* @__PURE__ */ n3(), e = h3(), s = c3(), o = f3(), n = /* @__PURE__ */ g3(), r = Date.prototype.getTime;
|
|
37616
37606
|
function a(u, p, f) {
|
|
37617
37607
|
var g = f || {};
|
|
37618
37608
|
return (g.strict ? e(u, p) : u === p) ? !0 : !u || !p || typeof u != "object" && typeof p != "object" ? g.strict ? e(u, p) : u == p : d(u, p, g);
|
|
@@ -38273,19 +38263,19 @@ function z3(t, i) {
|
|
|
38273
38263
|
function Zh(t) {
|
|
38274
38264
|
return new Float64Array(t);
|
|
38275
38265
|
}
|
|
38276
|
-
const L3 = (3 + 16 * As) * As, O3 = (2 + 12 * As) * As, B3 = (9 + 64 * As) * As * As, zn = Zh(4), ow = Zh(8), nw = Zh(12), rw = Zh(16),
|
|
38266
|
+
const L3 = (3 + 16 * As) * As, O3 = (2 + 12 * As) * As, B3 = (9 + 64 * As) * As * As, zn = Zh(4), ow = Zh(8), nw = Zh(12), rw = Zh(16), Vt = Zh(4);
|
|
38277
38267
|
function V3(t, i, e, s, o, n, r) {
|
|
38278
38268
|
let a, l, c, d, u, p, f, g, v, C, P, y, x, b, A, M, R, F;
|
|
38279
38269
|
const U = t - o, O = e - o, z = i - n, N = s - n;
|
|
38280
38270
|
b = U * N, p = Rt * U, f = p - (p - U), g = U - f, p = Rt * N, v = p - (p - N), C = N - v, A = g * C - (b - f * v - g * v - f * C), M = z * O, p = Rt * z, f = p - (p - z), g = z - f, p = Rt * O, v = p - (p - O), C = O - v, R = g * C - (M - f * v - g * v - f * C), P = A - R, u = A - P, zn[0] = A - (P + u) + (u - R), y = b + P, u = y - b, x = b - (y - u) + (P - u), P = x - M, u = x - P, zn[1] = x - (P + u) + (u - M), F = y + P, u = F - y, zn[2] = y - (F - u) + (P - u), zn[3] = F;
|
|
38281
38271
|
let w = z3(4, zn), T = O3 * r;
|
|
38282
38272
|
if (w >= T || -w >= T || (u = t - U, a = t - (U + u) + (u - o), u = e - O, c = e - (O + u) + (u - o), u = i - z, l = i - (z + u) + (u - n), u = s - N, d = s - (N + u) + (u - n), a === 0 && l === 0 && c === 0 && d === 0) || (T = B3 * r + F3 * Math.abs(w), w += U * d + N * a - (z * c + O * l), w >= T || -w >= T)) return w;
|
|
38283
|
-
b = a * N, p = Rt * a, f = p - (p - a), g = a - f, p = Rt * N, v = p - (p - N), C = N - v, A = g * C - (b - f * v - g * v - f * C), M = l * O, p = Rt * l, f = p - (p - l), g = l - f, p = Rt * O, v = p - (p - O), C = O - v, R = g * C - (M - f * v - g * v - f * C), P = A - R, u = A - P,
|
|
38284
|
-
const D = Vp(4, zn, 4,
|
|
38285
|
-
b = U * d, p = Rt * U, f = p - (p - U), g = U - f, p = Rt * d, v = p - (p - d), C = d - v, A = g * C - (b - f * v - g * v - f * C), M = z * c, p = Rt * z, f = p - (p - z), g = z - f, p = Rt * c, v = p - (p - c), C = c - v, R = g * C - (M - f * v - g * v - f * C), P = A - R, u = A - P,
|
|
38286
|
-
const V = Vp(D, ow, 4,
|
|
38287
|
-
b = a * d, p = Rt * a, f = p - (p - a), g = a - f, p = Rt * d, v = p - (p - d), C = d - v, A = g * C - (b - f * v - g * v - f * C), M = l * c, p = Rt * l, f = p - (p - l), g = l - f, p = Rt * c, v = p - (p - c), C = c - v, R = g * C - (M - f * v - g * v - f * C), P = A - R, u = A - P,
|
|
38288
|
-
const H = Vp(V, nw, 4,
|
|
38273
|
+
b = a * N, p = Rt * a, f = p - (p - a), g = a - f, p = Rt * N, v = p - (p - N), C = N - v, A = g * C - (b - f * v - g * v - f * C), M = l * O, p = Rt * l, f = p - (p - l), g = l - f, p = Rt * O, v = p - (p - O), C = O - v, R = g * C - (M - f * v - g * v - f * C), P = A - R, u = A - P, Vt[0] = A - (P + u) + (u - R), y = b + P, u = y - b, x = b - (y - u) + (P - u), P = x - M, u = x - P, Vt[1] = x - (P + u) + (u - M), F = y + P, u = F - y, Vt[2] = y - (F - u) + (P - u), Vt[3] = F;
|
|
38274
|
+
const D = Vp(4, zn, 4, Vt, ow);
|
|
38275
|
+
b = U * d, p = Rt * U, f = p - (p - U), g = U - f, p = Rt * d, v = p - (p - d), C = d - v, A = g * C - (b - f * v - g * v - f * C), M = z * c, p = Rt * z, f = p - (p - z), g = z - f, p = Rt * c, v = p - (p - c), C = c - v, R = g * C - (M - f * v - g * v - f * C), P = A - R, u = A - P, Vt[0] = A - (P + u) + (u - R), y = b + P, u = y - b, x = b - (y - u) + (P - u), P = x - M, u = x - P, Vt[1] = x - (P + u) + (u - M), F = y + P, u = F - y, Vt[2] = y - (F - u) + (P - u), Vt[3] = F;
|
|
38276
|
+
const V = Vp(D, ow, 4, Vt, nw);
|
|
38277
|
+
b = a * d, p = Rt * a, f = p - (p - a), g = a - f, p = Rt * d, v = p - (p - d), C = d - v, A = g * C - (b - f * v - g * v - f * C), M = l * c, p = Rt * l, f = p - (p - l), g = l - f, p = Rt * c, v = p - (p - c), C = c - v, R = g * C - (M - f * v - g * v - f * C), P = A - R, u = A - P, Vt[0] = A - (P + u) + (u - R), y = b + P, u = y - b, x = b - (y - u) + (P - u), P = x - M, u = x - P, Vt[1] = x - (P + u) + (u - M), F = y + P, u = F - y, Vt[2] = y - (F - u) + (P - u), Vt[3] = F;
|
|
38278
|
+
const H = Vp(V, nw, 4, Vt, rw);
|
|
38289
38279
|
return rw[H - 1];
|
|
38290
38280
|
}
|
|
38291
38281
|
function N3(t, i, e, s, o, n) {
|
|
@@ -38347,10 +38337,10 @@ class lw {
|
|
|
38347
38337
|
return o !== null && aw(e.key, o.key) === 0 ? (this.tree.remove(i), o.key) : i;
|
|
38348
38338
|
}
|
|
38349
38339
|
}
|
|
38350
|
-
const kh = new G3(), qc = (t, i) => t.x * i.y - t.y * i.x,
|
|
38340
|
+
const kh = new G3(), qc = (t, i) => t.x * i.y - t.y * i.x, N1 = (t, i) => t.x * i.x + t.y * i.y, hw = (t, i, e) => {
|
|
38351
38341
|
const s = N3(t.x, t.y, i.x, i.y, e.x, e.y);
|
|
38352
38342
|
return s > 0 ? -1 : s < 0 ? 1 : 0;
|
|
38353
|
-
}, md = (t) => Math.sqrt(
|
|
38343
|
+
}, md = (t) => Math.sqrt(N1(t, t)), W3 = (t, i, e) => {
|
|
38354
38344
|
const s = {
|
|
38355
38345
|
x: i.x - t.x,
|
|
38356
38346
|
y: i.y - t.y
|
|
@@ -38367,7 +38357,7 @@ const kh = new G3(), qc = (t, i) => t.x * i.y - t.y * i.x, V1 = (t, i) => t.x *
|
|
|
38367
38357
|
x: e.x - t.x,
|
|
38368
38358
|
y: e.y - t.y
|
|
38369
38359
|
};
|
|
38370
|
-
return
|
|
38360
|
+
return N1(o, s) / md(o) / md(s);
|
|
38371
38361
|
}, cw = (t, i, e) => i.y === 0 ? null : {
|
|
38372
38362
|
x: t.x + i.x / i.y * (e - t.y),
|
|
38373
38363
|
y: e
|
|
@@ -39273,7 +39263,7 @@ function hk(t, i, e) {
|
|
|
39273
39263
|
switch (s) {
|
|
39274
39264
|
case "point":
|
|
39275
39265
|
case "points":
|
|
39276
|
-
a =
|
|
39266
|
+
a = _1(r, i, e);
|
|
39277
39267
|
break;
|
|
39278
39268
|
case "square":
|
|
39279
39269
|
case "squares":
|
|
@@ -39404,7 +39394,7 @@ const Ml = class Ml extends Di {
|
|
|
39404
39394
|
};
|
|
39405
39395
|
m(Ml, "type", Ml.register("ESCesiumViewer", xx.type, Ml));
|
|
39406
39396
|
let vw = Ml;
|
|
39407
|
-
const
|
|
39397
|
+
const U1 = (t = 0) => new Promise((i) => setTimeout(i, t)), Bo = class Bo extends G {
|
|
39408
39398
|
constructor(e, s) {
|
|
39409
39399
|
super();
|
|
39410
39400
|
m(this, "_pickedEvent", this.disposeVar(new $()));
|
|
@@ -39479,7 +39469,7 @@ void main()
|
|
|
39479
39469
|
`), 24));
|
|
39480
39470
|
};
|
|
39481
39471
|
r(), this.d(this.totalAreaChanged.don(r)), this.d(this.unitsChanged.don(r)), this.d(_([this._geoDivPoi, "show"], [this, "show"])), this.d(this.positionsChanged.don(() => {
|
|
39482
|
-
this._geoDivPoi && (this.positions && this.positions.length >= 3 ? this._geoDivPoi.position =
|
|
39472
|
+
this._geoDivPoi && (this.positions && this.positions.length >= 3 ? this._geoDivPoi.position = t1(this.positions) : this._geoDivPoi.position = void 0);
|
|
39483
39473
|
}));
|
|
39484
39474
|
const a = async () => {
|
|
39485
39475
|
if ((!this.positions || this.positions.length < 3) && this.customPrimitive) {
|
|
@@ -39638,7 +39628,7 @@ async function fk(t) {
|
|
|
39638
39628
|
t.length % 3 !== 0 && console.warn("当前传入的索引不是3的倍数,可能不是三角片的索引!");
|
|
39639
39629
|
const i = t.length / 3 | 0, e = new Array(i * 6);
|
|
39640
39630
|
for (let s = 0; s < i; ++s)
|
|
39641
|
-
await
|
|
39631
|
+
await U1(), e[s * 6 + 0] = t[s * 3 + 0], e[s * 6 + 1] = t[s * 3 + 1], e[s * 6 + 2] = t[s * 3 + 2], e[s * 6 + 3] = t[s * 3 + 1], e[s * 6 + 4] = t[s * 3 + 2], e[s * 6 + 5] = t[s * 3 + 0];
|
|
39642
39632
|
return e;
|
|
39643
39633
|
}
|
|
39644
39634
|
function gk(t) {
|
|
@@ -39778,7 +39768,7 @@ async function Np(t, i, e, s, o, n, r, a) {
|
|
|
39778
39768
|
});
|
|
39779
39769
|
var c = ar(l, i), d = new h.Cartesian3(-1 * s.x, -1 * s.y, -1 * s.z), u = [], p = [], f = [];
|
|
39780
39770
|
for (let x = 0; x < c.length; ++x) {
|
|
39781
|
-
await
|
|
39771
|
+
await U1();
|
|
39782
39772
|
var g = c[x], v = new h.Ray(g, d), C = void 0;
|
|
39783
39773
|
try {
|
|
39784
39774
|
C = o.pickFromRay(v);
|
|
@@ -40169,7 +40159,7 @@ class Fh extends G {
|
|
|
40169
40159
|
...this.positions.map((N) => [N[0], N[1]])
|
|
40170
40160
|
]
|
|
40171
40161
|
]
|
|
40172
|
-
}, A = [v, C, P, y], M = this.gridWidth, U =
|
|
40162
|
+
}, A = [v, C, P, y], M = this.gridWidth, U = _1(A, M, { units: "meters", mask: b }).features.map((N) => N.geometry.coordinates), O = h.Math.toRadians;
|
|
40173
40163
|
return U.map((N) => new h.Cartographic(O(N[0]), O(N[1])));
|
|
40174
40164
|
}, d = () => {
|
|
40175
40165
|
a.positions = [], l.positions = [], this.area = 0, this.cutVolume = 0, this.fillVolume = 0, this.cutAndFillVolume = 0, a.depthTest = !0;
|
|
@@ -40200,7 +40190,7 @@ class Fh extends G {
|
|
|
40200
40190
|
this.gridPoints.forEach((y) => {
|
|
40201
40191
|
const x = this.positions;
|
|
40202
40192
|
y[2] > x[0][2] ? (g += this.gridWidth * this.gridWidth * (y[2] - x[0][2]), v.push([y, [y[0], y[1], x[0][2]]])) : (C += this.gridWidth * this.gridWidth * (x[0][2] - y[2]), P.push([y, [y[0], y[1], x[0][2]]]));
|
|
40203
|
-
}), a.positions = v, l.positions = P, a.show = !0, l.show = !0, this.area =
|
|
40193
|
+
}), a.positions = v, l.positions = P, a.show = !0, l.show = !0, this.area = e1(this.positions), this.cutVolume = g, this.fillVolume = C, this.cutAndFillVolume = C - g, p && clearTimeout(p), p = setTimeout(() => {
|
|
40204
40194
|
a.depthTest = !1;
|
|
40205
40195
|
}, 200);
|
|
40206
40196
|
};
|
|
@@ -40785,7 +40775,7 @@ class Dk {
|
|
|
40785
40775
|
m(this, "_yField");
|
|
40786
40776
|
m(this, "_valueField");
|
|
40787
40777
|
m(this, "_cfgRadius");
|
|
40788
|
-
this._coordinator = new
|
|
40778
|
+
this._coordinator = new G1(), this._data = {}, this._radi = {}, this._min = 0, this._max = 1, this._xField = i.xField || i.defaultXField || si.defaultXField, this._yField = i.yField || i.defaultYField || si.defaultYField, this._valueField = i.valueField || i.defaultValueField || si.defaultValueField, i.radius && (this._cfgRadius = i.radius);
|
|
40789
40779
|
}
|
|
40790
40780
|
_organiseData(i, e) {
|
|
40791
40781
|
const s = i[this._xField], o = i[this._yField], n = i[this._valueField] || 1, r = i.radius || this._cfgRadius || si.defaultRadius;
|
|
@@ -40965,7 +40955,7 @@ class kk {
|
|
|
40965
40955
|
return this.canvas.toDataURL();
|
|
40966
40956
|
}
|
|
40967
40957
|
}
|
|
40968
|
-
class
|
|
40958
|
+
class G1 {
|
|
40969
40959
|
constructor() {
|
|
40970
40960
|
m(this, "cStore");
|
|
40971
40961
|
this.cStore = {};
|
|
@@ -40983,7 +40973,7 @@ class Fk {
|
|
|
40983
40973
|
m(this, "_coordinator");
|
|
40984
40974
|
m(this, "_renderer");
|
|
40985
40975
|
m(this, "_store");
|
|
40986
|
-
if (this._config = { ...si, ...i }, this._coordinator = new
|
|
40976
|
+
if (this._config = { ...si, ...i }, this._coordinator = new G1(), this._config.plugin) {
|
|
40987
40977
|
const e = si.plugins[this._config.plugin];
|
|
40988
40978
|
if (!e)
|
|
40989
40979
|
throw new Error(`Plugin '${this._config.plugin}' not found. Maybe it was not registered.`);
|
|
@@ -41292,7 +41282,7 @@ class Ok extends G {
|
|
|
41292
41282
|
class Bk extends G {
|
|
41293
41283
|
constructor(i, e, s) {
|
|
41294
41284
|
super(), this._owner = i;
|
|
41295
|
-
const { czmViewer: o } = this._owner, n = nS(o, e, this._owner.placeEditing.virtualHeight), [r] =
|
|
41285
|
+
const { czmViewer: o } = this._owner, n = nS(o, e, this._owner.placeEditing.virtualHeight), [r] = AP(n);
|
|
41296
41286
|
this.dispose(r.disposableOn(s));
|
|
41297
41287
|
}
|
|
41298
41288
|
}
|
|
@@ -41341,9 +41331,9 @@ const Ci = class Ci extends G {
|
|
|
41341
41331
|
heading: l = Ci.defaults.heading
|
|
41342
41332
|
} = this, [c, d, u] = a, { dimensions: p = Ci.defaults.dimensions } = this;
|
|
41343
41333
|
o.positions = [a, [c, d, u + p[2]]];
|
|
41344
|
-
const f =
|
|
41334
|
+
const f = kt(a, p[0], 90 + l);
|
|
41345
41335
|
f && (e.positions = [a, f]);
|
|
41346
|
-
const g =
|
|
41336
|
+
const g = kt(a, p[1], 0 + l);
|
|
41347
41337
|
g && (s.positions = [a, g]);
|
|
41348
41338
|
};
|
|
41349
41339
|
n();
|
|
@@ -41462,16 +41452,16 @@ const Ks = class Ks extends fi {
|
|
|
41462
41452
|
const o = () => {
|
|
41463
41453
|
const r = this._opInfo.originPosition.value, a = this._opInfo.originHeading.value, l = this._opInfo.originDimensions.value[0], c = [];
|
|
41464
41454
|
for (let d = -4; d < 5; ++d) {
|
|
41465
|
-
const u =
|
|
41455
|
+
const u = kt(r, l * 0.2 * d, a + 90);
|
|
41466
41456
|
if (u) {
|
|
41467
|
-
const p =
|
|
41457
|
+
const p = kt(u, l, a + 180), f = kt(u, l, a);
|
|
41468
41458
|
p && f && c.push([p, u, f]);
|
|
41469
41459
|
}
|
|
41470
41460
|
}
|
|
41471
41461
|
for (let d = -4; d < 5; ++d) {
|
|
41472
|
-
const u =
|
|
41462
|
+
const u = kt(r, l * 0.2 * d, a);
|
|
41473
41463
|
if (u) {
|
|
41474
|
-
const p =
|
|
41464
|
+
const p = kt(u, l, a - 90), f = kt(u, l, a + 90);
|
|
41475
41465
|
p && f && c.push([p, u, f]);
|
|
41476
41466
|
}
|
|
41477
41467
|
}
|
|
@@ -41513,7 +41503,7 @@ const Ks = class Ks extends fi {
|
|
|
41513
41503
|
)), n = () => {
|
|
41514
41504
|
const r = this._opInfo.originPosition.value, a = this._opInfo.originDimensions.value[0], l = [], c = 32;
|
|
41515
41505
|
for (let d = 0; d <= c; ++d) {
|
|
41516
|
-
const u =
|
|
41506
|
+
const u = kt(r, a, d * 360 / c);
|
|
41517
41507
|
u && l.push(u);
|
|
41518
41508
|
}
|
|
41519
41509
|
s.positions = [l];
|
|
@@ -41528,7 +41518,7 @@ const Ks = class Ks extends fi {
|
|
|
41528
41518
|
if (!lh(e.viewer.scene, c, this._opInfo.originPosition.value[2], a)) return;
|
|
41529
41519
|
ah(a, r), this._opInfo.constraintMode.value === "x" ? cr(this._opInfo.originPosition.value, this._opInfo.originHeading.value + 90, r, r) : this._opInfo.constraintMode.value === "y" ? cr(this._opInfo.originPosition.value, this._opInfo.originHeading.value, r, r) : this._opInfo.constraintMode.value === "xy" || console.warn("should not be here!"), this._opInfo.movingPosition.value = r;
|
|
41530
41520
|
const d = [0, 0, 0];
|
|
41531
|
-
|
|
41521
|
+
kt(r, n, o, d), this._opInfo.targetPosition.value = d;
|
|
41532
41522
|
});
|
|
41533
41523
|
})));
|
|
41534
41524
|
m(this, "_pickingZProcessing", (e) => this.ad(new ra(() => {
|
|
@@ -41559,7 +41549,7 @@ const Ks = class Ks extends fi {
|
|
|
41559
41549
|
})));
|
|
41560
41550
|
if (!e.viewer) return;
|
|
41561
41551
|
const s = this.ad(j([1, 1, 1]));
|
|
41562
|
-
this.ad(e.dblclickEvent.don(() => this.enabled = !1)), this.ad(new
|
|
41552
|
+
this.ad(e.dblclickEvent.don(() => this.enabled = !1)), this.ad(new WC(e, this.positionReact, s, this.axisPixelSize));
|
|
41563
41553
|
{
|
|
41564
41554
|
this.ad(this._opInfo.targetPosition.changed.don((n) => {
|
|
41565
41555
|
if (this._opInfo.moved) {
|
|
@@ -41629,7 +41619,7 @@ const Ks = class Ks extends fi {
|
|
|
41629
41619
|
heading: o.heading ?? Ks.defaults.heading,
|
|
41630
41620
|
dimensions: o.dimensions ?? Ks.defaults.dimensions
|
|
41631
41621
|
};
|
|
41632
|
-
e.viewer &&
|
|
41622
|
+
e.viewer && DC(
|
|
41633
41623
|
x,
|
|
41634
41624
|
e.viewer.scene,
|
|
41635
41625
|
b,
|
|
@@ -41971,7 +41961,7 @@ m(Tr, "defaults", {
|
|
|
41971
41961
|
})(Tr || (Tr = {}));
|
|
41972
41962
|
ae(Tr.prototype, Tr.createDefaultProps);
|
|
41973
41963
|
function Gk(t) {
|
|
41974
|
-
return
|
|
41964
|
+
return YC({
|
|
41975
41965
|
type: "CzmCustomPrimitive",
|
|
41976
41966
|
allowPicking: !0,
|
|
41977
41967
|
pixelSize: 100,
|
|
@@ -42022,7 +42012,7 @@ function Gk(t) {
|
|
|
42022
42012
|
}, Ze, t);
|
|
42023
42013
|
}
|
|
42024
42014
|
function Wk(t) {
|
|
42025
|
-
return
|
|
42015
|
+
return YC({
|
|
42026
42016
|
type: "CzmCustomPrimitive",
|
|
42027
42017
|
allowPicking: !0,
|
|
42028
42018
|
position: [
|
|
@@ -42234,7 +42224,7 @@ const No = class No extends fi {
|
|
|
42234
42224
|
return this._rotatorRunningResetting;
|
|
42235
42225
|
}
|
|
42236
42226
|
_createCameraModel(e) {
|
|
42237
|
-
this._czmCameraModel = new
|
|
42227
|
+
this._czmCameraModel = new Bt(e), this._czmCameraModel.url = "${earthsdk3-assets-script-dir}/assets/glb/camera1/camera1.gltf", this._czmCameraModel.localRotation = [90, 0, 0], this._czmCameraModel.allowPicking = !1, this._czmCameraModel.opaquePass = "OVERLAY", this.dispose(_([this._czmCameraModel, "pixelSize"], [this, "pixelSize"], (s) => s * 0.1)), this.dispose(_([this._czmCameraModel, "position"], [this, "position"])), this.dispose(_([this._czmCameraModel, "rotation"], [this, "rotation"]));
|
|
42238
42228
|
{
|
|
42239
42229
|
const s = () => {
|
|
42240
42230
|
const o = Ye({
|
|
@@ -42379,7 +42369,7 @@ class mo extends fi {
|
|
|
42379
42369
|
return;
|
|
42380
42370
|
ah(a, r), this._opInfo.constraintMode.value === "x" ? cr(this._opInfo.originPosition.value, this._opInfo.originHeading.value, r, r) : this._opInfo.constraintMode.value === "y" ? cr(this._opInfo.originPosition.value, this._opInfo.originHeading.value + 90, r, r) : this._opInfo.constraintMode.value === "xy" || console.warn("should not be here!"), this._opInfo.movingPosition.value = r, this._lastPosition || (this._lastPosition = [...this._opInfo.draggingStartPosition.value]);
|
|
42381
42371
|
const d = [0, 0, 0];
|
|
42382
|
-
|
|
42372
|
+
kt(r, n, o, d), this._opInfo.targetPosition.value = d;
|
|
42383
42373
|
let u = this.scale[0], p = this.scale[1];
|
|
42384
42374
|
const f = xi(d, this._opInfo.originPosition.value) - xi(this._lastPosition, this._opInfo.originPosition.value);
|
|
42385
42375
|
this._lastPosition = [...d];
|
|
@@ -42411,7 +42401,7 @@ class mo extends fi {
|
|
|
42411
42401
|
const s = e.viewer;
|
|
42412
42402
|
if (!s) return;
|
|
42413
42403
|
const { scene: o } = s;
|
|
42414
|
-
this.ad(new
|
|
42404
|
+
this.ad(new WC(e, this.positionReact, this._opInfo.originDimensions, this.axisPixelSize)), this.ad(e.dblclickEvent.don(() => {
|
|
42415
42405
|
this.enabled = !1;
|
|
42416
42406
|
})), this._scaleAxis = {
|
|
42417
42407
|
zAxis: this._createScaleAxis(e, "zAxis"),
|
|
@@ -42433,9 +42423,9 @@ class mo extends fi {
|
|
|
42433
42423
|
l.startPosition = c.startPosition = d.startPosition = a;
|
|
42434
42424
|
const [u, p, f] = a;
|
|
42435
42425
|
l.stopPosition = [u, p, f + this._opInfo.originDimensions.value[2]];
|
|
42436
|
-
const g =
|
|
42426
|
+
const g = kt(a, this._opInfo.originDimensions.value[0], 90);
|
|
42437
42427
|
g && (d.stopPosition = g);
|
|
42438
|
-
const v =
|
|
42428
|
+
const v = kt(a, this._opInfo.originDimensions.value[1], 0);
|
|
42439
42429
|
v && (c.stopPosition = v);
|
|
42440
42430
|
};
|
|
42441
42431
|
n();
|
|
@@ -42476,7 +42466,7 @@ class mo extends fi {
|
|
|
42476
42466
|
dimensions: this._opInfo.originDimensions.value,
|
|
42477
42467
|
heading: 0
|
|
42478
42468
|
};
|
|
42479
|
-
|
|
42469
|
+
DC(
|
|
42480
42470
|
p,
|
|
42481
42471
|
o,
|
|
42482
42472
|
f,
|
|
@@ -42534,7 +42524,7 @@ ae(mo.prototype, mo.createDefaultProps);
|
|
|
42534
42524
|
const Js = class Js extends mi {
|
|
42535
42525
|
constructor(e) {
|
|
42536
42526
|
super();
|
|
42537
|
-
m(this, "_editingPoints", this.disposeVar(new
|
|
42527
|
+
m(this, "_editingPoints", this.disposeVar(new EP()));
|
|
42538
42528
|
m(this, "_cancelEvent", this.disposeVar(new $()));
|
|
42539
42529
|
m(this, "_currentProcess");
|
|
42540
42530
|
m(this, "_menuPoiEnabled", this.disposeVar(W(!1)));
|
|
@@ -42650,7 +42640,7 @@ const Js = class Js extends mi {
|
|
|
42650
42640
|
}
|
|
42651
42641
|
}
|
|
42652
42642
|
_createCursorInfo(e) {
|
|
42653
|
-
const s = this._cursorInfo = this.ad(new
|
|
42643
|
+
const s = this._cursorInfo = this.ad(new MP(e.container, IP));
|
|
42654
42644
|
this.dispose(this.statusChanged.disposableOn(() => {
|
|
42655
42645
|
const o = this.status;
|
|
42656
42646
|
if (s) {
|
|
@@ -42694,7 +42684,7 @@ let ki = Js;
|
|
|
42694
42684
|
})(ki || (ki = {}));
|
|
42695
42685
|
ae(ki.prototype, ki.createDefaultProps);
|
|
42696
42686
|
let qk = 0;
|
|
42697
|
-
class
|
|
42687
|
+
class W1 extends G {
|
|
42698
42688
|
constructor(e, s) {
|
|
42699
42689
|
super();
|
|
42700
42690
|
m(this, "_position", this.disposeVar(K(void 0)));
|
|
@@ -42740,7 +42730,7 @@ class G1 extends G {
|
|
|
42740
42730
|
return this._menuPoi;
|
|
42741
42731
|
}
|
|
42742
42732
|
}
|
|
42743
|
-
class
|
|
42733
|
+
class H1 extends W1 {
|
|
42744
42734
|
constructor(i, e) {
|
|
42745
42735
|
super(i, e);
|
|
42746
42736
|
}
|
|
@@ -42771,7 +42761,7 @@ class ft extends ki {
|
|
|
42771
42761
|
}
|
|
42772
42762
|
resetPositions(e) {
|
|
42773
42763
|
if (!super.resetPositions(e)) return !0;
|
|
42774
|
-
const s = e ? e.map((o) => new
|
|
42764
|
+
const s = e ? e.map((o) => new H1(this, o)) : [];
|
|
42775
42765
|
return this.editingPoints.splice(0, this.editingPoints.length, ...s), !0;
|
|
42776
42766
|
}
|
|
42777
42767
|
_addingEditingProcessing() {
|
|
@@ -42807,7 +42797,7 @@ class $k extends G {
|
|
|
42807
42797
|
super();
|
|
42808
42798
|
m(this, "_overEvent", this.disposeVar(new $()));
|
|
42809
42799
|
const { placeEditing: o } = e;
|
|
42810
|
-
let n = new
|
|
42800
|
+
let n = new H1(e, void 0);
|
|
42811
42801
|
e.editingPoints.splice(s, 0, n);
|
|
42812
42802
|
const r = () => {
|
|
42813
42803
|
(e.debug ?? ft.defaults.debug) && console.log("delete currentPosEditor");
|
|
@@ -42865,7 +42855,7 @@ class Qk extends ft {
|
|
|
42865
42855
|
super(i), this.loop = !0;
|
|
42866
42856
|
}
|
|
42867
42857
|
}
|
|
42868
|
-
class wd extends
|
|
42858
|
+
class wd extends W1 {
|
|
42869
42859
|
constructor(i, e) {
|
|
42870
42860
|
super(i, e);
|
|
42871
42861
|
{
|
|
@@ -42896,7 +42886,7 @@ class wd extends G1 {
|
|
|
42896
42886
|
if (!c) return o();
|
|
42897
42887
|
const d = (f = a.get((r + 1) % l)) == null ? void 0 : f.position;
|
|
42898
42888
|
if (!d) return o();
|
|
42899
|
-
const u =
|
|
42889
|
+
const u = FC(c, d);
|
|
42900
42890
|
if (!u) return o();
|
|
42901
42891
|
u[2] -= i.czmViewer.editingHeightOffset ?? 0, s.position = u;
|
|
42902
42892
|
const p = l < (i.maxPointsNum ?? Ue.defaults.maxPointsNum);
|
|
@@ -42961,7 +42951,7 @@ class Ue extends ki {
|
|
|
42961
42951
|
let c = r % this.editingPoints.length;
|
|
42962
42952
|
const u = this.editingPoints.get(c).position;
|
|
42963
42953
|
if (!u) return;
|
|
42964
|
-
const p =
|
|
42954
|
+
const p = FC(l, u);
|
|
42965
42955
|
if (!p) return;
|
|
42966
42956
|
p && (p[2] += this.czmViewer.editingHeightOffset ?? 0);
|
|
42967
42957
|
let f = new wd(this, p);
|
|
@@ -43604,7 +43594,7 @@ const oh = class oh extends Qt {
|
|
|
43604
43594
|
if (super(i, e, !0), !e.viewer) return;
|
|
43605
43595
|
const s = this.currentEditing = this.ad(new oF(e));
|
|
43606
43596
|
if (Reflect.has(i, "points")) {
|
|
43607
|
-
const n = i, r = Reflect.has(n, "extrudedHeight"), a = Reflect.has(n, "height"), l = Reflect.has(n, "perPositionHeight") ? n.perPositionHeight : !r, c = n instanceof _C || n instanceof
|
|
43597
|
+
const n = i, r = Reflect.has(n, "extrudedHeight"), a = Reflect.has(n, "height"), l = Reflect.has(n, "perPositionHeight") ? n.perPositionHeight : !r, c = n instanceof _C || n instanceof MC;
|
|
43608
43598
|
let d = wt(n.points).center, u = [...d], p = c ? n.points[0][2] : 0;
|
|
43609
43599
|
l ? r ? u[2] = n.extrudedHeight : u[2] = n.height + p : (a && (d[2] = n.height), r && (u[2] = n.extrudedHeight)), s.startPosition = d, s.distance = u[2] - d[2], s.moveWithFirstPosition = !1;
|
|
43610
43600
|
let f = [...d];
|
|
@@ -44123,15 +44113,15 @@ const {
|
|
|
44123
44113
|
NodeRenderResources: IF,
|
|
44124
44114
|
BoundingSphere: Cs,
|
|
44125
44115
|
ModelDrawCommands: RF
|
|
44126
|
-
} = h, DF = new Si(), kF = new Si(),
|
|
44116
|
+
} = h, DF = new Si(), kF = new Si(), q1 = new Si(), $1 = new Si();
|
|
44127
44117
|
class FF extends TF {
|
|
44128
44118
|
//@ts-ignore
|
|
44129
44119
|
constructor(i, e, s) {
|
|
44130
44120
|
if (super(i, e), !i.runtimeNode.instancingTranslationMin || !i.runtimeNode.instancingTranslationMax) return;
|
|
44131
44121
|
const o = Wn.inverse(s, new Wn()), n = AF.getPositionMinMax(
|
|
44132
44122
|
e.primitive,
|
|
44133
|
-
Wn.multiplyByPoint(o, i.runtimeNode.instancingTranslationMin,
|
|
44134
|
-
Wn.multiplyByPoint(o, i.runtimeNode.instancingTranslationMax,
|
|
44123
|
+
Wn.multiplyByPoint(o, i.runtimeNode.instancingTranslationMin, q1),
|
|
44124
|
+
Wn.multiplyByPoint(o, i.runtimeNode.instancingTranslationMax, $1)
|
|
44135
44125
|
);
|
|
44136
44126
|
this.positionMin = Si.clone(n.min, new Si()), this.positionMax = Si.clone(n.max, new Si()), this.boundingSphere = Cs.fromCornerPoints(this.positionMin, this.positionMax, new Cs());
|
|
44137
44127
|
}
|
|
@@ -44194,12 +44184,12 @@ function zF() {
|
|
|
44194
44184
|
p,
|
|
44195
44185
|
//@ts-ignore
|
|
44196
44186
|
v.positionMin,
|
|
44197
|
-
|
|
44187
|
+
q1
|
|
44198
44188
|
), P = Wn.multiplyByPoint(
|
|
44199
44189
|
p,
|
|
44200
44190
|
//@ts-ignore
|
|
44201
44191
|
v.positionMax,
|
|
44202
|
-
|
|
44192
|
+
$1
|
|
44203
44193
|
);
|
|
44204
44194
|
Si.minimumByComponent(
|
|
44205
44195
|
a,
|
|
@@ -44360,9 +44350,9 @@ const to = {
|
|
|
44360
44350
|
}, {
|
|
44361
44351
|
Attribute: VF,
|
|
44362
44352
|
Indices: NF,
|
|
44363
|
-
FeatureIdAttribute:
|
|
44364
|
-
FeatureIdTexture:
|
|
44365
|
-
FeatureIdImplicitRange:
|
|
44353
|
+
FeatureIdAttribute: X1,
|
|
44354
|
+
FeatureIdTexture: Y1,
|
|
44355
|
+
FeatureIdImplicitRange: Z1,
|
|
44366
44356
|
MorphTarget: UF,
|
|
44367
44357
|
Primitive: GF,
|
|
44368
44358
|
Instances: WF,
|
|
@@ -44571,7 +44561,7 @@ function uz(t, i, e, s) {
|
|
|
44571
44561
|
if (u && !Sz(U))
|
|
44572
44562
|
continue;
|
|
44573
44563
|
U === h.VertexAttributeSemantic.FEATURE_ID && (f = !0);
|
|
44574
|
-
const O =
|
|
44564
|
+
const O = Q1(
|
|
44575
44565
|
t,
|
|
44576
44566
|
R,
|
|
44577
44567
|
F,
|
|
@@ -44787,14 +44777,14 @@ function Sz(t) {
|
|
|
44787
44777
|
);
|
|
44788
44778
|
return i || e || s;
|
|
44789
44779
|
}
|
|
44790
|
-
function
|
|
44780
|
+
function Q1(t, i, e, s, o, n, r, a, l) {
|
|
44791
44781
|
const c = e.modelSemantic, d = (
|
|
44792
44782
|
//@ts-ignore
|
|
44793
44783
|
c === h.VertexAttributeSemantic.POSITION
|
|
44794
44784
|
), u = (
|
|
44795
44785
|
//@ts-ignore
|
|
44796
44786
|
c === h.VertexAttributeSemantic.FEATURE_ID
|
|
44797
|
-
), p = d && !r && t._loadAttributesFor2D && !l.scene3DOnly, f = d && t._enablePick && !l.context.webgl2, g = t._loadForClassification && u, v = t._loadAttributesAsTypedArray, C = !v, P = v || p || f || g, b =
|
|
44787
|
+
), p = d && !r && t._loadAttributesFor2D && !l.scene3DOnly, f = d && t._enablePick && !l.context.webgl2, g = t._loadForClassification && u, v = t._loadAttributesAsTypedArray, C = !v, P = v || p || f || g, b = K1(
|
|
44798
44788
|
t,
|
|
44799
44789
|
i,
|
|
44800
44790
|
e,
|
|
@@ -44817,7 +44807,7 @@ function bz(t, i, e, s, o) {
|
|
|
44817
44807
|
//@ts-ignore
|
|
44818
44808
|
VertexAttributeSemantic,
|
|
44819
44809
|
d
|
|
44820
|
-
), f =
|
|
44810
|
+
), f = Q1(
|
|
44821
44811
|
t,
|
|
44822
44812
|
u,
|
|
44823
44813
|
p,
|
|
@@ -44866,7 +44856,7 @@ function Az(t, i, e, s) {
|
|
|
44866
44856
|
r,
|
|
44867
44857
|
s,
|
|
44868
44858
|
a
|
|
44869
|
-
) : h.defined(r.attribute) ? l =
|
|
44859
|
+
) : h.defined(r.attribute) ? l = J1(r, a) : l = j1(r, a), i.featureIds.push(l);
|
|
44870
44860
|
}
|
|
44871
44861
|
}
|
|
44872
44862
|
function Ez(t, i, e, s) {
|
|
@@ -44878,12 +44868,12 @@ function Ez(t, i, e, s) {
|
|
|
44878
44868
|
const c = r[l], d = c.featureTable, u = t._sortedPropertyTableIds.indexOf(d), p = o[d].count, f = `featureId_${n}`;
|
|
44879
44869
|
n++;
|
|
44880
44870
|
let g;
|
|
44881
|
-
h.defined(c.featureIds.attribute) ? g =
|
|
44871
|
+
h.defined(c.featureIds.attribute) ? g = eP(
|
|
44882
44872
|
c,
|
|
44883
44873
|
u,
|
|
44884
44874
|
p,
|
|
44885
44875
|
f
|
|
44886
|
-
) : g =
|
|
44876
|
+
) : g = tP(
|
|
44887
44877
|
c,
|
|
44888
44878
|
u,
|
|
44889
44879
|
p,
|
|
@@ -45074,7 +45064,7 @@ function Vz(t, i, e, s, o) {
|
|
|
45074
45064
|
//@ts-ignore
|
|
45075
45065
|
c === h.InstanceAttributeSemantic.TRANSLATION
|
|
45076
45066
|
), p = t._loadAttributesAsTypedArray || r && d || !o.context.instancedArrays, f = t._enablePick && !o.context.webgl2, g = !p, v = t._loadAttributesFor2D && !o.scene3DOnly;
|
|
45077
|
-
return
|
|
45067
|
+
return K1(
|
|
45078
45068
|
t,
|
|
45079
45069
|
i,
|
|
45080
45070
|
l,
|
|
@@ -45091,7 +45081,7 @@ function Nz(t, i) {
|
|
|
45091
45081
|
for (let s = 0; s < e.length; s++) {
|
|
45092
45082
|
const o = e[s], n = `instanceFeatureId_${s}`;
|
|
45093
45083
|
let r;
|
|
45094
|
-
h.defined(o.attribute) ? r =
|
|
45084
|
+
h.defined(o.attribute) ? r = J1(o, n) : r = j1(o, n), t.featureIds.push(r);
|
|
45095
45085
|
}
|
|
45096
45086
|
}
|
|
45097
45087
|
function Uz(t, i, e, s) {
|
|
@@ -45100,12 +45090,12 @@ function Uz(t, i, e, s) {
|
|
|
45100
45090
|
for (let r = 0; r < n.length; ++r) {
|
|
45101
45091
|
const a = n[r], l = a.featureTable, c = s.indexOf(l), d = o[l].count, u = `instanceFeatureId_${r}`;
|
|
45102
45092
|
let p;
|
|
45103
|
-
h.defined(a.featureIds.attribute) ? p =
|
|
45093
|
+
h.defined(a.featureIds.attribute) ? p = eP(
|
|
45104
45094
|
a,
|
|
45105
45095
|
c,
|
|
45106
45096
|
d,
|
|
45107
45097
|
u
|
|
45108
|
-
) : p =
|
|
45098
|
+
) : p = tP(
|
|
45109
45099
|
a,
|
|
45110
45100
|
c,
|
|
45111
45101
|
d,
|
|
@@ -45127,8 +45117,8 @@ function Cd(t, i, e) {
|
|
|
45127
45117
|
}
|
|
45128
45118
|
return Qz(i, s);
|
|
45129
45119
|
}
|
|
45130
|
-
function
|
|
45131
|
-
const c = t.gltfJson, d = c.accessors[i], u = d.bufferView, p = e.gltfSemantic, f = e.renamedSemantic, g = e.modelSemantic, v = h.defined(g) ?
|
|
45120
|
+
function K1(t, i, e, s, o, n, r, a, l) {
|
|
45121
|
+
const c = t.gltfJson, d = c.accessors[i], u = d.bufferView, p = e.gltfSemantic, f = e.renamedSemantic, g = e.modelSemantic, v = h.defined(g) ? iP(f) : void 0, P = Kz(
|
|
45132
45122
|
c,
|
|
45133
45123
|
i,
|
|
45134
45124
|
p,
|
|
@@ -45186,7 +45176,7 @@ function Gz(t, i, e, s, o, n, r) {
|
|
|
45186
45176
|
});
|
|
45187
45177
|
}
|
|
45188
45178
|
function Wz(t, i, e, s) {
|
|
45189
|
-
const o = new
|
|
45179
|
+
const o = new Y1();
|
|
45190
45180
|
o.featureCount = i.featureCount, o.nullFeatureId = i.nullFeatureId, o.propertyTableId = i.propertyTable, o.label = i.label, o.positionalLabel = s;
|
|
45191
45181
|
const n = i.texture;
|
|
45192
45182
|
o.textureReader = $t(
|
|
@@ -45202,26 +45192,26 @@ function Wz(t, i, e, s) {
|
|
|
45202
45192
|
}).join("");
|
|
45203
45193
|
return o.textureReader.channels = a, o;
|
|
45204
45194
|
}
|
|
45205
|
-
function
|
|
45206
|
-
const e = new
|
|
45195
|
+
function J1(t, i) {
|
|
45196
|
+
const e = new X1();
|
|
45207
45197
|
return e.featureCount = t.featureCount, e.nullFeatureId = t.nullFeatureId, e.propertyTableId = t.propertyTable, e.setIndex = t.attribute, e.label = t.label, e.positionalLabel = i, e;
|
|
45208
45198
|
}
|
|
45209
|
-
function
|
|
45210
|
-
const e = new
|
|
45199
|
+
function j1(t, i) {
|
|
45200
|
+
const e = new Z1();
|
|
45211
45201
|
return e.propertyTableId = t.propertyTable, e.featureCount = t.featureCount, e.nullFeatureId = t.nullFeatureId, e.label = t.label, e.positionalLabel = i, e.offset = 0, e.repeat = 1, e;
|
|
45212
45202
|
}
|
|
45213
|
-
function j1(t, i, e, s) {
|
|
45214
|
-
const o = new $1(), n = t.featureIds;
|
|
45215
|
-
return o.featureCount = e, o.propertyTableId = i, o.setIndex = tP(n.attribute), o.positionalLabel = s, o;
|
|
45216
|
-
}
|
|
45217
45203
|
function eP(t, i, e, s) {
|
|
45218
|
-
const o = new
|
|
45204
|
+
const o = new X1(), n = t.featureIds;
|
|
45205
|
+
return o.featureCount = e, o.propertyTableId = i, o.setIndex = iP(n.attribute), o.positionalLabel = s, o;
|
|
45206
|
+
}
|
|
45207
|
+
function tP(t, i, e, s) {
|
|
45208
|
+
const o = new Z1(), n = t.featureIds;
|
|
45219
45209
|
o.propertyTableId = i, o.featureCount = e, o.offset = n.constant ?? 0;
|
|
45220
45210
|
const r = n.divisor ?? 0;
|
|
45221
45211
|
return o.repeat = r === 0 ? void 0 : r, o.positionalLabel = s, o;
|
|
45222
45212
|
}
|
|
45223
45213
|
function Hz(t, i, e, s, o, n) {
|
|
45224
|
-
const r = new
|
|
45214
|
+
const r = new Y1(), a = i.featureIds, l = a.texture;
|
|
45225
45215
|
return r.featureCount = o, r.propertyTableId = e, r.textureReader = $t(
|
|
45226
45216
|
t,
|
|
45227
45217
|
l,
|
|
@@ -45263,7 +45253,7 @@ async function Zz(t, i, e, s, o) {
|
|
|
45263
45253
|
const { gltfJson: n } = t;
|
|
45264
45254
|
if (await i.load(), t.isDestroyed())
|
|
45265
45255
|
return;
|
|
45266
|
-
const r =
|
|
45256
|
+
const r = sP(
|
|
45267
45257
|
n,
|
|
45268
45258
|
e,
|
|
45269
45259
|
i.typedArray
|
|
@@ -45277,7 +45267,7 @@ function Qz(t, i) {
|
|
|
45277
45267
|
const s = h.AttributeType.getMathType(e);
|
|
45278
45268
|
return i.fill(s.clone(s.ZERO));
|
|
45279
45269
|
}
|
|
45280
|
-
function
|
|
45270
|
+
function iP(t) {
|
|
45281
45271
|
const e = /^\w+_(\d+)$/.exec(t);
|
|
45282
45272
|
if (e !== null)
|
|
45283
45273
|
return parseInt(e[1]);
|
|
@@ -45353,7 +45343,7 @@ function eL(t, i, e, s) {
|
|
|
45353
45343
|
function tL(t, i, e, s, o, n) {
|
|
45354
45344
|
if (o && (e.buffer = s.buffer), n) {
|
|
45355
45345
|
const r = s.typedArray;
|
|
45356
|
-
e.typedArray =
|
|
45346
|
+
e.typedArray = sP(
|
|
45357
45347
|
t,
|
|
45358
45348
|
i,
|
|
45359
45349
|
r
|
|
@@ -45368,7 +45358,7 @@ function iL(t, i) {
|
|
|
45368
45358
|
const o = t.path.toUpperCase();
|
|
45369
45359
|
return e.path = $F[o], e;
|
|
45370
45360
|
}
|
|
45371
|
-
function
|
|
45361
|
+
function sP(t, i, e) {
|
|
45372
45362
|
let s = i.byteOffset;
|
|
45373
45363
|
const o = h.getAccessorByteStride(t, i), n = i.count, r = h.numberOfComponentsForType(i.type), a = i.componentType, l = h.ComponentDatatype.getSizeInBytes(a), c = l * r, d = n * r;
|
|
45374
45364
|
if (o === c)
|
|
@@ -45552,7 +45542,7 @@ class uL extends G {
|
|
|
45552
45542
|
constructor(e) {
|
|
45553
45543
|
super();
|
|
45554
45544
|
m(this, "_terrainMap", /* @__PURE__ */ new Map());
|
|
45555
|
-
m(this, "_nextAnimateFrame", this.dv(
|
|
45545
|
+
m(this, "_nextAnimateFrame", this.dv(RP()));
|
|
45556
45546
|
m(this, "selectedTerrain");
|
|
45557
45547
|
this._viewer = e;
|
|
45558
45548
|
const s = this._viewer, o = s.scene.globe.terrainProviderChanged.addEventListener(() => {
|
|
@@ -45770,6 +45760,12 @@ class yL extends G {
|
|
|
45770
45760
|
}
|
|
45771
45761
|
this.czmImageryWrappers.add(new vL(e, this));
|
|
45772
45762
|
}
|
|
45763
|
+
has(e) {
|
|
45764
|
+
for (let s of this.czmImageryWrappers)
|
|
45765
|
+
if (s.imagery === e)
|
|
45766
|
+
return !0;
|
|
45767
|
+
return !1;
|
|
45768
|
+
}
|
|
45773
45769
|
delete(e) {
|
|
45774
45770
|
for (const s of this.czmImageryWrappers)
|
|
45775
45771
|
if (s.imagery === e) {
|
|
@@ -45865,10 +45861,10 @@ class wL extends G {
|
|
|
45865
45861
|
coordinates: Qc(U.position.getValue(F))
|
|
45866
45862
|
};
|
|
45867
45863
|
});
|
|
45868
|
-
} else if (y instanceof
|
|
45864
|
+
} else if (y instanceof TC) {
|
|
45869
45865
|
const F = new h.JulianDate();
|
|
45870
45866
|
if (!v.id.entityCollection) return;
|
|
45871
|
-
const U = v.id.polygon ? "Polygon" : v.id.polyline ? "LineString" : "Point", O = ((R = v.id.properties) == null ? void 0 : R.getValue(F)) ?? {}, z = U == "Point" ? we(v.id.position.getValue(F)) : U == "LineString" ? v.id.polyline.positions.getValue(F).map((N) => we(N)) :
|
|
45867
|
+
const U = v.id.polygon ? "Polygon" : v.id.polyline ? "LineString" : "Point", O = ((R = v.id.properties) == null ? void 0 : R.getValue(F)) ?? {}, z = U == "Point" ? we(v.id.position.getValue(F)) : U == "LineString" ? v.id.polyline.positions.getValue(F).map((N) => we(N)) : GC(v.id.polygon.hierarchy.getValue(F));
|
|
45872
45868
|
x = y.pickedInfoType == "FeatureCollection" ? {
|
|
45873
45869
|
type: "Feature",
|
|
45874
45870
|
geometry: {
|
|
@@ -46037,7 +46033,7 @@ class PL extends G {
|
|
|
46037
46033
|
}
|
|
46038
46034
|
}
|
|
46039
46035
|
var Kw = new h.Cartesian3(), Jw = new h.Cartesian3();
|
|
46040
|
-
function
|
|
46036
|
+
function oP(t, i, e) {
|
|
46041
46037
|
let s = h.Matrix4.clone(t.transform);
|
|
46042
46038
|
t.lookAtTransform(h.Matrix4.IDENTITY);
|
|
46043
46039
|
var o = t.positionCartographic.height, n = t.positionWC, r = h.Cartesian3.normalize(n, Kw), a = h.Cartesian3.dot(t.direction, r);
|
|
@@ -46056,10 +46052,10 @@ function sP(t, i, e) {
|
|
|
46056
46052
|
h.Cartesian3.fromRadians(f, g, o, void 0, t.position), t.lookAtTransform(s);
|
|
46057
46053
|
}
|
|
46058
46054
|
function jw(t, i) {
|
|
46059
|
-
|
|
46055
|
+
oP(t, i, !1);
|
|
46060
46056
|
}
|
|
46061
46057
|
function eC(t, i) {
|
|
46062
|
-
|
|
46058
|
+
oP(t, -i, !0);
|
|
46063
46059
|
}
|
|
46064
46060
|
class xL extends G {
|
|
46065
46061
|
constructor(e) {
|
|
@@ -47212,10 +47208,12 @@ class BL extends G {
|
|
|
47212
47208
|
this.resetNavigation(), this._changedMouseEvent("Map");
|
|
47213
47209
|
}
|
|
47214
47210
|
changeToWalk(e, s = 4.2, o = 1.6) {
|
|
47215
|
-
this.resetNavigation()
|
|
47216
|
-
const n = this._viewer.
|
|
47217
|
-
this.
|
|
47218
|
-
|
|
47211
|
+
this.resetNavigation();
|
|
47212
|
+
const n = this._viewer.navigationMode != "Walk";
|
|
47213
|
+
this._changedMouseEvent("Walk");
|
|
47214
|
+
const r = this._viewer.getCameraInfo(), a = [(r == null ? void 0 : r.rotation[0]) ?? 0, 0, 0];
|
|
47215
|
+
this._viewer.getHeightByLonLat(e[0], e[1]).then((l) => {
|
|
47216
|
+
n ? this._viewer.flyIn([e[0], e[1], (l ?? 0) + o], a) : this._viewer.viewer && (this._viewer.viewer.camera.position = h.Cartesian3.fromDegrees(e[0], e[1], (l ?? 0) + o)), this.firstPersonController.keyboardEnabled = !0, this.firstPersonController.keyboardCameraController.speed = 6e-3, this.firstPersonController.keyboardCameraController.rotateSpeed = 0.05, this.firstPersonController.keyboardCameraController.keyStatusMap = {
|
|
47219
47217
|
ShiftLeft: "WithCamera",
|
|
47220
47218
|
ShiftRight: "WithCamera",
|
|
47221
47219
|
KeyW: "MoveForward",
|
|
@@ -49056,11 +49054,11 @@ function R5(t, i) {
|
|
|
49056
49054
|
return h.Matrix4.clone(h.Matrix4.IDENTITY, i);
|
|
49057
49055
|
}
|
|
49058
49056
|
}
|
|
49059
|
-
const { combine: A4 } = h, { ShaderDestination: Eo } = h,
|
|
49057
|
+
const { combine: A4 } = h, { ShaderDestination: Eo } = h, nP = {
|
|
49060
49058
|
name: "FlattenedPipelineStage"
|
|
49061
49059
|
// Helps with debugging
|
|
49062
49060
|
};
|
|
49063
|
-
|
|
49061
|
+
nP.process = function(t, i, e) {
|
|
49064
49062
|
if (i.xbsjFlattened) {
|
|
49065
49063
|
const s = t.shaderBuilder;
|
|
49066
49064
|
s.addDefine(
|
|
@@ -49228,7 +49226,7 @@ function R4() {
|
|
|
49228
49226
|
const t = h.ModelSceneGraph.prototype.configurePipeline;
|
|
49229
49227
|
h.ModelSceneGraph.prototype.configurePipeline = function(i, ...e) {
|
|
49230
49228
|
const s = t.call(this, i, ...e), o = this._model, n = this.modelPipelineStages;
|
|
49231
|
-
return o.xbsjFlattened && n.push(
|
|
49229
|
+
return o.xbsjFlattened && n.push(nP), s;
|
|
49232
49230
|
};
|
|
49233
49231
|
}
|
|
49234
49232
|
E4();
|
|
@@ -49902,7 +49900,7 @@ let Ge = Pt;
|
|
|
49902
49900
|
ae(Ge.prototype, Ge.createDefaultProps);
|
|
49903
49901
|
let Qp;
|
|
49904
49902
|
try {
|
|
49905
|
-
const t = "earthsdk3-cesium", i = "3.4.0
|
|
49903
|
+
const t = "earthsdk3-cesium", i = "3.4.0", e = "2025-09-12T07:06:00.000Z", s = "北京西部世界科技有限公司", o = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", n = "7bb817c2218c8ba03b2c728ade4fc430cfee47dd", a = ((Date.now() - 175766076e4) / 36e5).toFixed(1), l = `%c🌏 ${t}%c ${i}.${n.slice(0, 8)}.${e} (距今${a}个小时)
|
|
49906
49904
|
%c${o ? o + `
|
|
49907
49905
|
` : ""}当前网站正在使用${t},此软件版权归${s}所有
|
|
49908
49906
|
`;
|
|
@@ -49916,7 +49914,7 @@ try {
|
|
|
49916
49914
|
},
|
|
49917
49915
|
// @ts-ignore
|
|
49918
49916
|
get gituri() {
|
|
49919
|
-
return GITURI_ && GITURI_.replace("${commitId}", "
|
|
49917
|
+
return GITURI_ && GITURI_.replace("${commitId}", "7bb817c2218c8ba03b2c728ade4fc430cfee47dd");
|
|
49920
49918
|
},
|
|
49921
49919
|
// @ts-ignore
|
|
49922
49920
|
get info() {
|
|
@@ -49924,7 +49922,7 @@ try {
|
|
|
49924
49922
|
},
|
|
49925
49923
|
// @ts-ignore
|
|
49926
49924
|
get date() {
|
|
49927
|
-
return "2025-09-
|
|
49925
|
+
return "2025-09-12T07:06:00.000Z";
|
|
49928
49926
|
},
|
|
49929
49927
|
// @ts-ignore
|
|
49930
49928
|
get author() {
|
|
@@ -49932,7 +49930,7 @@ try {
|
|
|
49932
49930
|
},
|
|
49933
49931
|
// @ts-ignore
|
|
49934
49932
|
get version() {
|
|
49935
|
-
return "3.4.0
|
|
49933
|
+
return "3.4.0";
|
|
49936
49934
|
},
|
|
49937
49935
|
// @ts-ignore
|
|
49938
49936
|
get name() {
|
|
@@ -49940,7 +49938,7 @@ try {
|
|
|
49940
49938
|
},
|
|
49941
49939
|
// @ts-ignore
|
|
49942
49940
|
get commitId() {
|
|
49943
|
-
return "
|
|
49941
|
+
return "7bb817c2218c8ba03b2c728ade4fc430cfee47dd";
|
|
49944
49942
|
},
|
|
49945
49943
|
print() {
|
|
49946
49944
|
console.info(
|
|
@@ -49977,15 +49975,15 @@ export {
|
|
|
49977
49975
|
Nw as CircularAppendEditingWrapper,
|
|
49978
49976
|
tF as CircularInsertEditing,
|
|
49979
49977
|
Uw as CircularInsertEditingWrapper,
|
|
49980
|
-
|
|
49981
|
-
|
|
49978
|
+
HC as CurrentPositionsCenter,
|
|
49979
|
+
WC as CurrentScale,
|
|
49982
49980
|
tb as CurrentSceneScalePoi,
|
|
49983
49981
|
c5 as CursorFloatDiv,
|
|
49984
49982
|
d5 as CursorInfo,
|
|
49985
49983
|
Oe as Czm3DTiles,
|
|
49986
49984
|
tf as CzmCameraChanged,
|
|
49987
49985
|
u5 as CzmCanvasAndDivSwitchPoi,
|
|
49988
|
-
|
|
49986
|
+
jC as CzmCanvasPoi,
|
|
49989
49987
|
ur as CzmCircle,
|
|
49990
49988
|
tn as CzmCircleGroundPrimitive,
|
|
49991
49989
|
sn as CzmCircleOutlinePrimitive,
|
|
@@ -49993,7 +49991,7 @@ export {
|
|
|
49993
49991
|
bh as CzmClippingPlanes,
|
|
49994
49992
|
xe as CzmClock,
|
|
49995
49993
|
Ze as CzmCustomPrimitive,
|
|
49996
|
-
|
|
49994
|
+
e_ as CzmDivPoi,
|
|
49997
49995
|
Th as CzmES3DTileset,
|
|
49998
49996
|
hv as CzmESAlarm,
|
|
49999
49997
|
cv as CzmESApertureEffect,
|
|
@@ -50089,7 +50087,7 @@ export {
|
|
|
50089
50087
|
yr as CzmGlobeMaterial,
|
|
50090
50088
|
co as CzmImageModel,
|
|
50091
50089
|
nn as CzmImagery,
|
|
50092
|
-
|
|
50090
|
+
Bt as CzmModelPrimitive,
|
|
50093
50091
|
Is as CzmParticleSystemPrimitive,
|
|
50094
50092
|
jS as CzmPicking,
|
|
50095
50093
|
Ni as CzmPoint,
|
|
@@ -50187,21 +50185,21 @@ export {
|
|
|
50187
50185
|
n5 as checkAndConvertImage,
|
|
50188
50186
|
Mk as computeCutPoint,
|
|
50189
50187
|
Ye as computeCzmModelMatrix,
|
|
50190
|
-
|
|
50188
|
+
DC as computePickingInfoWithCoordinates,
|
|
50191
50189
|
Qp as copyright,
|
|
50192
50190
|
zd as createClippingPlaneCollection,
|
|
50193
50191
|
eg as createClippingPolygonCollection,
|
|
50194
50192
|
ob as createGeoBoudingSphereReactFromPositions,
|
|
50195
50193
|
e5 as createHelperLine,
|
|
50196
50194
|
gm as createInfoPoi,
|
|
50197
|
-
|
|
50195
|
+
YC as createInnerClassFromJson,
|
|
50198
50196
|
Dr as createInnerHtmlWithWhiteTextBlackBackground,
|
|
50199
50197
|
aS as createMaterialFromJson,
|
|
50200
50198
|
ds as createMaterialRef,
|
|
50201
50199
|
nF as createMoveObjectsProcessing,
|
|
50202
50200
|
yo as createPolygonHierarchy,
|
|
50203
50201
|
sr as createTexture,
|
|
50204
|
-
|
|
50202
|
+
JC as createTextureFromImage,
|
|
50205
50203
|
ys as createTilingSchema,
|
|
50206
50204
|
Bc as czmFlyTo,
|
|
50207
50205
|
ng as czmModelActiveAnimationsWithVisible,
|
|
@@ -50228,7 +50226,7 @@ export {
|
|
|
50228
50226
|
DS as generateCartesianArc,
|
|
50229
50227
|
cr as geoNeareastPointOnRhumbLine,
|
|
50230
50228
|
t5 as geoNeareastPointOnRhumbLine2,
|
|
50231
|
-
|
|
50229
|
+
QC as geoPolylineToBezierSpline,
|
|
50232
50230
|
Mi as getCameraPosition,
|
|
50233
50231
|
aa as getCameraRotation,
|
|
50234
50232
|
Qx as getCameraTargetPos,
|
|
@@ -50238,22 +50236,22 @@ export {
|
|
|
50238
50236
|
i5 as getDefaultWinPosAndDepth,
|
|
50239
50237
|
yb as getDetailedTerrainDistance,
|
|
50240
50238
|
uS as getDirectionVectorFromRotation,
|
|
50241
|
-
|
|
50239
|
+
VC as getDistancesAndTimePosRotsFromPositions,
|
|
50242
50240
|
R5 as getElevationMatrix,
|
|
50243
|
-
|
|
50241
|
+
FC as getEllipsoidGeodesicCenter,
|
|
50244
50242
|
hg as getFlyToCenterAndRotation,
|
|
50245
50243
|
yI as getFoveatedInterpolationCallback,
|
|
50246
|
-
|
|
50244
|
+
ZC as getFuncFromStr,
|
|
50247
50245
|
vb as getGroundTerrainDistance,
|
|
50248
50246
|
mb as getGroundTerrainDistances,
|
|
50249
50247
|
US as getIncludedAngleFromPositions,
|
|
50250
50248
|
FS as getInverseModelMatrix,
|
|
50251
50249
|
sb as getMinMaxPosition,
|
|
50252
|
-
|
|
50250
|
+
UC as getModelMatrixFromPosition,
|
|
50253
50251
|
kr as getObjectProperties,
|
|
50254
50252
|
wo as getPointerEventButton,
|
|
50255
|
-
|
|
50256
|
-
|
|
50253
|
+
GC as getPolygonPointsFromHierarchy,
|
|
50254
|
+
RC as getQuaternion,
|
|
50257
50255
|
Hx as getQuaternionWithXForwardZUp,
|
|
50258
50256
|
ef as getQuaternionWithYForwardZUp,
|
|
50259
50257
|
_i as getResource,
|
|
@@ -50282,7 +50280,7 @@ export {
|
|
|
50282
50280
|
OS as positionToLocalPosition,
|
|
50283
50281
|
ci as positionsToLocalPositions,
|
|
50284
50282
|
Yt as positionsToUniqueCartesians,
|
|
50285
|
-
|
|
50283
|
+
XC as rectangleIsGlobal,
|
|
50286
50284
|
rg as rpToap,
|
|
50287
50285
|
jf as setClippingPlaneCollection,
|
|
50288
50286
|
fm as setCylinderGeometry,
|
|
@@ -50292,9 +50290,9 @@ export {
|
|
|
50292
50290
|
ji as toCartesian,
|
|
50293
50291
|
Le as toCartesian2,
|
|
50294
50292
|
ns as toCartesian3,
|
|
50295
|
-
|
|
50293
|
+
IC as toCartesian4,
|
|
50296
50294
|
H4 as toCartographic,
|
|
50297
|
-
|
|
50295
|
+
$C as toCoefficients,
|
|
50298
50296
|
pe as toColor,
|
|
50299
50297
|
Fd as toDistanceDisplayCondition,
|
|
50300
50298
|
ke as toEllipsoid,
|
|
@@ -50303,7 +50301,7 @@ export {
|
|
|
50303
50301
|
Z4 as toQuaternion,
|
|
50304
50302
|
ct as toRectangle,
|
|
50305
50303
|
To as toRgbaString,
|
|
50306
|
-
|
|
50307
|
-
|
|
50304
|
+
qC as updateEnvironmentMapManager,
|
|
50305
|
+
kC as updateMaterialFromJson,
|
|
50308
50306
|
cS as winPosAndDepthEqual
|
|
50309
50307
|
};
|