@reearth/core 0.0.7-alpha.67 → 0.0.7-alpha.69
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/core.js +259 -241
- package/dist/core.umd.cjs +27 -27
- package/package.json +1 -1
- package/src/engines/Cesium/core/Imagery.test.ts +120 -5
- package/src/engines/Cesium/core/Imagery.tsx +82 -9
- package/src/engines/Cesium/index.tsx +3 -1
package/dist/core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as gy from "react";
|
|
2
|
-
import ea, { forwardRef as no, useRef as de, useCallback as se, useImperativeHandle as Ka, useState as ot, useEffect as
|
|
2
|
+
import ea, { forwardRef as no, useRef as de, useCallback as se, useImperativeHandle as Ka, useState as ot, useEffect as Ie, useMemo as he, useReducer as lW, useDebugValue as uW, useContext as wi, createContext as Qo, useLayoutEffect as Ur, memo as Fi, Component as $G, createElement as cp, Suspense as hW, useId as dW, Fragment as eO, useInsertionEffect as tO } from "react";
|
|
3
3
|
import * as De from "cesium";
|
|
4
4
|
import { Color as rn, Math as yt, Event as f2, ImageryLayer as Fb, PolylineGraphics as fW, BoxGraphics as pW, PlaneGraphics as mW, Viewer as gW, ScreenSpaceEventHandler as td, Fog as eC, Sun as tC, Moon as nC, ScreenSpaceEventType as zt, SceneMode as Go, Primitive as mm, GeoJsonDataSource as yW, CzmlDataSource as bW, KmlDataSource as _W, BillboardGraphics as nO, ModelGraphics as vW, EllipseGraphics as wW, EllipsoidGraphics as xW, PolygonGraphics as SW, PointGraphics as iO, LabelGraphics as TW, CustomDataSource as EW, Cesium3DTileset as Mh, BillboardCollection as CW, Cesium3DTilesetGraphics as RW, Cesium3DTilesTerrainProvider as iC, CesiumWidget as IW, ClassificationPrimitive as MW, CloudCollection as LW, CorridorGraphics as PW, CylinderGraphics as GW, Entity as Wr, Google2DImageryProvider as rC, GroundPolylinePrimitive as OW, GroundPrimitive as nd, LabelCollection as rO, Model as vs, ParticleSystem as VW, PathGraphics as FW, PointPrimitiveCollection as AW, PolylineCollection as zW, PolylineVolumeGraphics as NW, PostProcessStage as lp, PostProcessStageComposite as Ff, RectangleGraphics as XW, TimeDynamicPointCloud as ZW, WallGraphics as kW, PostProcessStageLibrary as qc, ClassificationType as fh, HeightReference as Sg, Rectangle as kc, EntityCluster as WW, HorizontalOrigin as Pa, VerticalOrigin as Ic, Cartesian3 as pe, ClockRange as w1, JulianDate as wn, ClockStep as p2, KeyboardEventModifier as Ga, CameraEventType as vr, Cartographic as vn, EllipsoidTerrainProvider as yy, sampleTerrainMostDetailed as UW, IntersectionTests as by, Ray as zc, PerspectiveFrustum as ms, OrthographicOffCenterFrustum as DW, Matrix4 as Zn, BoundingSphere as jx, HeadingPitchRange as BW, Cartesian2 as It, Plane as Po, Quaternion as Oa, Matrix3 as Mc, ColorBlendMode as x1, ShadowMode as jm, Cesium3DTileColorBlendMode as S1, CesiumTerrainProvider as T1, IonResource as _y, UrlTemplateImageryProvider as Af, OpenStreetMapImageryProvider as oC, IonImageryProvider as xd, IonWorldImageryStyle as E1, DiscardEmptyTileImagePolicy as YW, TextureMinificationFilter as HW, TextureMagnificationFilter as jW, SceneTransforms as KW, DistanceDisplayCondition as oO, WebMercatorTilingScheme as sO, Cesium3DTileFeature as ta, Cesium3DTilePointFeature as gm, PropertyBag as JW, TimeIntervalCollection as QW, TimeInterval as qW, Iso8601 as $W, CallbackProperty as Bi, ColorMaterialProperty as eU, ArcType as up, ImageryLayerFeatureInfo as aO, Axis as ph, HeadingPitchRoll as Xl, Transforms as Lh, TranslationRotationScale as cO, PolylineDashMaterialProperty as lO, PerInstanceColorAppearance as tU, Material as Ab, VertexFormat as nU, GeometryAttribute as iU, ComponentDatatype as rU, FrustumGeometry as sC, GeometryInstance as uO, PolygonGeometry as oU, EllipsoidSurfaceAppearance as aC, Intersect as sU, CustomShader as hO, CustomShaderTranslucencyMode as dO, LightingModel as fO, CustomShaderMode as pO, ImageBasedLighting as mO, EasingFunction as C1, PolygonHierarchy as m2, Credit as aU, WindingOrder as g2, TileMapServiceImageryProvider as cU, WebMapServiceImageryProvider as lU, ClippingPlane as zf, ClippingPlaneCollection as cC, Cesium3DTileStyle as gO, createGooglePhotorealistic3DTileset as uU, Camera as hU, EllipsoidGeodesic as lC, PerspectiveOffCenterFrustum as dU, BoundingRectangle as vy, Ellipsoid as Tg, SunLight as fU, DirectionalLight as pU, PostProcessStageSampleMode as uC } from "cesium";
|
|
5
5
|
import "react-dom";
|
|
@@ -751,7 +751,7 @@ function zU(e, t, n, i) {
|
|
|
751
751
|
}
|
|
752
752
|
const NU = (e) => {
|
|
753
753
|
const t = de(void 0), [n, i] = ot();
|
|
754
|
-
return
|
|
754
|
+
return Ie(() => {
|
|
755
755
|
if (!e) {
|
|
756
756
|
i(void 0), t.current && (t.current.src = "");
|
|
757
757
|
return;
|
|
@@ -833,13 +833,13 @@ const UU = (e = []) => {
|
|
|
833
833
|
},
|
|
834
834
|
[s, e.length]
|
|
835
835
|
);
|
|
836
|
-
return
|
|
836
|
+
return Ie(() => {
|
|
837
837
|
if (o.current !== void 0 && (clearTimeout(o.current), o.current = void 0), t <= 0 || t >= e.length + 1) return;
|
|
838
838
|
const c = e?.[t - 1], l = Array.isArray(c) ? c[r.current ? 1 : 0] : c;
|
|
839
839
|
o.current = window.setTimeout(() => {
|
|
840
840
|
o.current = void 0, s();
|
|
841
841
|
}, l ?? 0);
|
|
842
|
-
}, [s, e, t]),
|
|
842
|
+
}, [s, e, t]), Ie(
|
|
843
843
|
() => () => {
|
|
844
844
|
o.current && (clearTimeout(o.current), o.current = void 0);
|
|
845
845
|
},
|
|
@@ -946,7 +946,7 @@ function YU({
|
|
|
946
946
|
timelineManagerRef: t
|
|
947
947
|
}),
|
|
948
948
|
[t]
|
|
949
|
-
),
|
|
949
|
+
), Ie(() => {
|
|
950
950
|
r && o.engine && o.layers && o.sketch && o.spatialId && r?.();
|
|
951
951
|
}, [r, o]);
|
|
952
952
|
const [f, p] = ot({}), m = se(
|
|
@@ -1471,7 +1471,7 @@ function Jx(e, t) {
|
|
|
1471
1471
|
() => [r.get(e), r, e]
|
|
1472
1472
|
);
|
|
1473
1473
|
let l = o;
|
|
1474
|
-
if ((s !== r || a !== e) && (c(), l = r.get(e)),
|
|
1474
|
+
if ((s !== r || a !== e) && (c(), l = r.get(e)), Ie(() => {
|
|
1475
1475
|
const u = r.sub(e, () => {
|
|
1476
1476
|
if (i)
|
|
1477
1477
|
try {
|
|
@@ -10211,7 +10211,7 @@ function ZK() {
|
|
|
10211
10211
|
z.pending_buf[z.pending++] = ge >>> 8 & 255, z.pending_buf[z.pending++] = 255 & ge;
|
|
10212
10212
|
}
|
|
10213
10213
|
function ie(z, ge) {
|
|
10214
|
-
var le, Q, Y = z.max_chain_length, $ = z.strstart, ce = z.prev_length, be = z.nice_match, q = z.strstart > z.w_size - X ? z.strstart - (z.w_size - X) : 0, ue = z.window,
|
|
10214
|
+
var le, Q, Y = z.max_chain_length, $ = z.strstart, ce = z.prev_length, be = z.nice_match, q = z.strstart > z.w_size - X ? z.strstart - (z.w_size - X) : 0, ue = z.window, Me = z.w_mask, we = z.prev, Ue = z.strstart + A, Ye = ue[$ + ce - 1], Qe = ue[$ + ce];
|
|
10215
10215
|
z.prev_length >= z.good_match && (Y >>= 2), be > z.lookahead && (be = z.lookahead);
|
|
10216
10216
|
do
|
|
10217
10217
|
if (ue[(le = ge) + ce] === Qe && ue[le + ce - 1] === Ye && ue[le] === ue[$] && ue[++le] === ue[$ + 1]) {
|
|
@@ -10224,11 +10224,11 @@ function ZK() {
|
|
|
10224
10224
|
Ye = ue[$ + ce - 1], Qe = ue[$ + ce];
|
|
10225
10225
|
}
|
|
10226
10226
|
}
|
|
10227
|
-
while ((ge = we[ge &
|
|
10227
|
+
while ((ge = we[ge & Me]) > q && --Y != 0);
|
|
10228
10228
|
return ce <= z.lookahead ? ce : z.lookahead;
|
|
10229
10229
|
}
|
|
10230
10230
|
function Ee(z) {
|
|
10231
|
-
var ge, le, Q, Y, $, ce, be, q, ue,
|
|
10231
|
+
var ge, le, Q, Y, $, ce, be, q, ue, Me, we = z.w_size;
|
|
10232
10232
|
do {
|
|
10233
10233
|
if (Y = z.window_size - z.lookahead - z.strstart, z.strstart >= we + (we - X)) {
|
|
10234
10234
|
for (s.arraySet(z.window, z.window, we, we, 0), z.match_start -= we, z.strstart -= we, z.block_start -= we, ge = le = z.hash_size; Q = z.head[--ge], z.head[ge] = we <= Q ? Q - we : 0, --le; ) ;
|
|
@@ -10236,7 +10236,7 @@ function ZK() {
|
|
|
10236
10236
|
Y += we;
|
|
10237
10237
|
}
|
|
10238
10238
|
if (z.strm.avail_in === 0) break;
|
|
10239
|
-
if (ce = z.strm, be = z.window, q = z.strstart + z.lookahead, ue = Y,
|
|
10239
|
+
if (ce = z.strm, be = z.window, q = z.strstart + z.lookahead, ue = Y, Me = void 0, Me = ce.avail_in, ue < Me && (Me = ue), le = Me === 0 ? 0 : (ce.avail_in -= Me, s.arraySet(be, ce.input, ce.next_in, Me, q), ce.state.wrap === 1 ? ce.adler = c(ce.adler, be, Me, q) : ce.state.wrap === 2 && (ce.adler = l(ce.adler, be, Me, q)), ce.next_in += Me, ce.total_in += Me, Me), z.lookahead += le, z.lookahead + z.insert >= P) for ($ = z.strstart - z.insert, z.ins_h = z.window[$], z.ins_h = (z.ins_h << z.hash_shift ^ z.window[$ + 1]) & z.hash_mask; z.insert && (z.ins_h = (z.ins_h << z.hash_shift ^ z.window[$ + P - 1]) & z.hash_mask, z.prev[$ & z.w_mask] = z.head[z.ins_h], z.head[z.ins_h] = $, $++, z.insert--, !(z.lookahead + z.insert < P)); ) ;
|
|
10240
10240
|
} while (z.lookahead < X && z.strm.avail_in !== 0);
|
|
10241
10241
|
}
|
|
10242
10242
|
function ve(z, ge) {
|
|
@@ -10350,16 +10350,16 @@ function ZK() {
|
|
|
10350
10350
|
if (Q.status === 666 && z.avail_in !== 0) return D(z, -5);
|
|
10351
10351
|
if (z.avail_in !== 0 || Q.lookahead !== 0 || ge !== h && Q.status !== 666) {
|
|
10352
10352
|
var be = Q.strategy === 2 ? (function(q, ue) {
|
|
10353
|
-
for (var
|
|
10353
|
+
for (var Me; ; ) {
|
|
10354
10354
|
if (q.lookahead === 0 && (Ee(q), q.lookahead === 0)) {
|
|
10355
10355
|
if (ue === h) return w;
|
|
10356
10356
|
break;
|
|
10357
10357
|
}
|
|
10358
|
-
if (q.match_length = 0,
|
|
10358
|
+
if (q.match_length = 0, Me = a._tr_tally(q, 0, q.window[q.strstart]), q.lookahead--, q.strstart++, Me && (W(q, !1), q.strm.avail_out === 0)) return w;
|
|
10359
10359
|
}
|
|
10360
10360
|
return q.insert = 0, ue === d ? (W(q, !0), q.strm.avail_out === 0 ? N : k) : q.last_lit && (W(q, !1), q.strm.avail_out === 0) ? w : R;
|
|
10361
10361
|
})(Q, ge) : Q.strategy === 3 ? (function(q, ue) {
|
|
10362
|
-
for (var
|
|
10362
|
+
for (var Me, we, Ue, Ye, Qe = q.window; ; ) {
|
|
10363
10363
|
if (q.lookahead <= A) {
|
|
10364
10364
|
if (Ee(q), q.lookahead <= A && ue === h) return w;
|
|
10365
10365
|
if (q.lookahead === 0) break;
|
|
@@ -10371,7 +10371,7 @@ function ZK() {
|
|
|
10371
10371
|
while (we === Qe[++Ue] && we === Qe[++Ue] && we === Qe[++Ue] && we === Qe[++Ue] && we === Qe[++Ue] && we === Qe[++Ue] && we === Qe[++Ue] && we === Qe[++Ue] && Ue < Ye);
|
|
10372
10372
|
q.match_length = A - (Ye - Ue), q.match_length > q.lookahead && (q.match_length = q.lookahead);
|
|
10373
10373
|
}
|
|
10374
|
-
if (q.match_length >= P ? (
|
|
10374
|
+
if (q.match_length >= P ? (Me = a._tr_tally(q, 1, q.match_length - P), q.lookahead -= q.match_length, q.strstart += q.match_length, q.match_length = 0) : (Me = a._tr_tally(q, 0, q.window[q.strstart]), q.lookahead--, q.strstart++), Me && (W(q, !1), q.strm.avail_out === 0)) return w;
|
|
10375
10375
|
}
|
|
10376
10376
|
return q.insert = 0, ue === d ? (W(q, !0), q.strm.avail_out === 0 ? N : k) : q.last_lit && (W(q, !1), q.strm.avail_out === 0) ? w : R;
|
|
10377
10377
|
})(Q, ge) : o[Q.level].func(Q, ge);
|
|
@@ -10383,9 +10383,9 @@ function ZK() {
|
|
|
10383
10383
|
var ge;
|
|
10384
10384
|
return z && z.state ? (ge = z.state.status) !== I && ge !== 69 && ge !== 73 && ge !== 91 && ge !== 103 && ge !== x && ge !== 666 ? D(z, p) : (z.state = null, ge === x ? D(z, -3) : f) : p;
|
|
10385
10385
|
}, r.deflateSetDictionary = function(z, ge) {
|
|
10386
|
-
var le, Q, Y, $, ce, be, q, ue,
|
|
10386
|
+
var le, Q, Y, $, ce, be, q, ue, Me = ge.length;
|
|
10387
10387
|
if (!z || !z.state || ($ = (le = z.state).wrap) === 2 || $ === 1 && le.status !== I || le.lookahead) return p;
|
|
10388
|
-
for ($ === 1 && (z.adler = c(z.adler, ge,
|
|
10388
|
+
for ($ === 1 && (z.adler = c(z.adler, ge, Me, 0)), le.wrap = 0, Me >= le.w_size && ($ === 0 && (K(le.head), le.strstart = 0, le.block_start = 0, le.insert = 0), ue = new s.Buf8(le.w_size), s.arraySet(ue, ge, Me - le.w_size, le.w_size, 0), ge = ue, Me = le.w_size), ce = z.avail_in, be = z.next_in, q = z.input, z.avail_in = Me, z.next_in = 0, z.input = ge, Ee(le); le.lookahead >= P; ) {
|
|
10389
10389
|
for (Q = le.strstart, Y = le.lookahead - (P - 1); le.ins_h = (le.ins_h << le.hash_shift ^ le.window[Q + P - 1]) & le.hash_mask, le.prev[Q & le.w_mask] = le.head[le.ins_h], le.head[le.ins_h] = Q, Q++, --Y; ) ;
|
|
10390
10390
|
le.strstart = Q, le.lookahead = P - 1, Ee(le);
|
|
10391
10391
|
}
|
|
@@ -10945,8 +10945,8 @@ function ZK() {
|
|
|
10945
10945
|
return ce >>> 1;
|
|
10946
10946
|
}
|
|
10947
10947
|
function ve(Y, $, ce) {
|
|
10948
|
-
var be, q, ue = new Array(y + 1),
|
|
10949
|
-
for (be = 1; be <= y; be++) ue[be] =
|
|
10948
|
+
var be, q, ue = new Array(y + 1), Me = 0;
|
|
10949
|
+
for (be = 1; be <= y; be++) ue[be] = Me = Me + ce[be - 1] << 1;
|
|
10950
10950
|
for (q = 0; q <= $; q++) {
|
|
10951
10951
|
var we = Y[2 * q + 1];
|
|
10952
10952
|
we !== 0 && (Y[2 * q] = Ee(ue[we]++, we));
|
|
@@ -10971,14 +10971,14 @@ function ZK() {
|
|
|
10971
10971
|
Y.heap[ce] = be;
|
|
10972
10972
|
}
|
|
10973
10973
|
function tt(Y, $, ce) {
|
|
10974
|
-
var be, q, ue,
|
|
10975
|
-
if (Y.last_lit !== 0) for (; be = Y.pending_buf[Y.d_buf + 2 * we] << 8 | Y.pending_buf[Y.d_buf + 2 * we + 1], q = Y.pending_buf[Y.l_buf + we], we++, be === 0 ? ie(Y, q, $) : (ie(Y, (ue = w[q]) + h + 1, $), (
|
|
10974
|
+
var be, q, ue, Me, we = 0;
|
|
10975
|
+
if (Y.last_lit !== 0) for (; be = Y.pending_buf[Y.d_buf + 2 * we] << 8 | Y.pending_buf[Y.d_buf + 2 * we + 1], q = Y.pending_buf[Y.l_buf + we], we++, be === 0 ? ie(Y, q, $) : (ie(Y, (ue = w[q]) + h + 1, $), (Me = G[ue]) !== 0 && J(Y, q -= R[ue], Me), ie(Y, ue = W(--be), ce), (Me = V[ue]) !== 0 && J(Y, be -= B[ue], Me)), we < Y.last_lit; ) ;
|
|
10976
10976
|
ie(Y, S, $);
|
|
10977
10977
|
}
|
|
10978
10978
|
function rt(Y, $) {
|
|
10979
|
-
var ce, be, q, ue = $.dyn_tree,
|
|
10979
|
+
var ce, be, q, ue = $.dyn_tree, Me = $.stat_desc.static_tree, we = $.stat_desc.has_stree, Ue = $.stat_desc.elems, Ye = -1;
|
|
10980
10980
|
for (Y.heap_len = 0, Y.heap_max = m, ce = 0; ce < Ue; ce++) ue[2 * ce] !== 0 ? (Y.heap[++Y.heap_len] = Ye = ce, Y.depth[ce] = 0) : ue[2 * ce + 1] = 0;
|
|
10981
|
-
for (; Y.heap_len < 2; ) ue[2 * (q = Y.heap[++Y.heap_len] = Ye < 2 ? ++Ye : 0)] = 1, Y.depth[q] = 0, Y.opt_len--, we && (Y.static_len -=
|
|
10981
|
+
for (; Y.heap_len < 2; ) ue[2 * (q = Y.heap[++Y.heap_len] = Ye < 2 ? ++Ye : 0)] = 1, Y.depth[q] = 0, Y.opt_len--, we && (Y.static_len -= Me[2 * q + 1]);
|
|
10982
10982
|
for ($.max_code = Ye, ce = Y.heap_len >> 1; 1 <= ce; ce--) ke(Y, ue, ce);
|
|
10983
10983
|
for (q = Ue; ce = Y.heap[1], Y.heap[1] = Y.heap[Y.heap_len--], ke(Y, ue, 1), be = Y.heap[1], Y.heap[--Y.heap_max] = ce, Y.heap[--Y.heap_max] = be, ue[2 * q] = ue[2 * ce] + ue[2 * be], Y.depth[q] = (Y.depth[ce] >= Y.depth[be] ? Y.depth[ce] : Y.depth[be]) + 1, ue[2 * ce + 1] = ue[2 * be + 1] = q, Y.heap[1] = q++, ke(Y, ue, 1), 2 <= Y.heap_len; ) ;
|
|
10984
10984
|
Y.heap[--Y.heap_max] = Y.heap[1], (function(Qe, Wt) {
|
|
@@ -10995,47 +10995,47 @@ function ZK() {
|
|
|
10995
10995
|
})(Y, $), ve(ue, Ye, Y.bl_count);
|
|
10996
10996
|
}
|
|
10997
10997
|
function z(Y, $, ce) {
|
|
10998
|
-
var be, q, ue = -1,
|
|
10999
|
-
for (
|
|
10998
|
+
var be, q, ue = -1, Me = $[1], we = 0, Ue = 7, Ye = 4;
|
|
10999
|
+
for (Me === 0 && (Ue = 138, Ye = 3), $[2 * (ce + 1) + 1] = 65535, be = 0; be <= ce; be++) q = Me, Me = $[2 * (be + 1) + 1], ++we < Ue && q === Me || (we < Ye ? Y.bl_tree[2 * q] += we : q !== 0 ? (q !== ue && Y.bl_tree[2 * q]++, Y.bl_tree[2 * E]++) : we <= 10 ? Y.bl_tree[2 * C]++ : Y.bl_tree[2 * M]++, ue = q, Ye = (we = 0) === Me ? (Ue = 138, 3) : q === Me ? (Ue = 6, 3) : (Ue = 7, 4));
|
|
11000
11000
|
}
|
|
11001
11001
|
function ge(Y, $, ce) {
|
|
11002
|
-
var be, q, ue = -1,
|
|
11003
|
-
for (
|
|
11002
|
+
var be, q, ue = -1, Me = $[1], we = 0, Ue = 7, Ye = 4;
|
|
11003
|
+
for (Me === 0 && (Ue = 138, Ye = 3), be = 0; be <= ce; be++) if (q = Me, Me = $[2 * (be + 1) + 1], !(++we < Ue && q === Me)) {
|
|
11004
11004
|
if (we < Ye) for (; ie(Y, q, Y.bl_tree), --we != 0; ) ;
|
|
11005
11005
|
else q !== 0 ? (q !== ue && (ie(Y, q, Y.bl_tree), we--), ie(Y, E, Y.bl_tree), J(Y, we - 3, 2)) : we <= 10 ? (ie(Y, C, Y.bl_tree), J(Y, we - 3, 3)) : (ie(Y, M, Y.bl_tree), J(Y, we - 11, 7));
|
|
11006
|
-
ue = q, Ye = (we = 0) ===
|
|
11006
|
+
ue = q, Ye = (we = 0) === Me ? (Ue = 138, 3) : q === Me ? (Ue = 6, 3) : (Ue = 7, 4);
|
|
11007
11007
|
}
|
|
11008
11008
|
}
|
|
11009
11009
|
c(B);
|
|
11010
11010
|
var le = !1;
|
|
11011
11011
|
function Q(Y, $, ce, be) {
|
|
11012
|
-
J(Y, (l << 1) + (be ? 1 : 0), 3), (function(q, ue,
|
|
11013
|
-
Oe(q), j(q,
|
|
11012
|
+
J(Y, (l << 1) + (be ? 1 : 0), 3), (function(q, ue, Me, we) {
|
|
11013
|
+
Oe(q), j(q, Me), j(q, ~Me), o.arraySet(q.pending_buf, q.window, ue, Me, q.pending), q.pending += Me;
|
|
11014
11014
|
})(Y, $, ce);
|
|
11015
11015
|
}
|
|
11016
11016
|
r._tr_init = function(Y) {
|
|
11017
11017
|
le || ((function() {
|
|
11018
|
-
var $, ce, be, q, ue,
|
|
11018
|
+
var $, ce, be, q, ue, Me = new Array(y + 1);
|
|
11019
11019
|
for (q = be = 0; q < u - 1; q++) for (R[q] = be, $ = 0; $ < 1 << G[q]; $++) w[be++] = q;
|
|
11020
11020
|
for (w[be - 1] = q, q = ue = 0; q < 16; q++) for (B[q] = ue, $ = 0; $ < 1 << V[q]; $++) x[ue++] = q;
|
|
11021
11021
|
for (ue >>= 7; q < f; q++) for (B[q] = ue << 7, $ = 0; $ < 1 << V[q] - 7; $++) x[256 + ue++] = q;
|
|
11022
|
-
for (ce = 0; ce <= y; ce++)
|
|
11023
|
-
for ($ = 0; $ <= 143; ) X[2 * $ + 1] = 8, $++,
|
|
11024
|
-
for (; $ <= 255; ) X[2 * $ + 1] = 9, $++,
|
|
11025
|
-
for (; $ <= 279; ) X[2 * $ + 1] = 7, $++,
|
|
11026
|
-
for (; $ <= 287; ) X[2 * $ + 1] = 8, $++,
|
|
11027
|
-
for (ve(X, d + 1,
|
|
11022
|
+
for (ce = 0; ce <= y; ce++) Me[ce] = 0;
|
|
11023
|
+
for ($ = 0; $ <= 143; ) X[2 * $ + 1] = 8, $++, Me[8]++;
|
|
11024
|
+
for (; $ <= 255; ) X[2 * $ + 1] = 9, $++, Me[9]++;
|
|
11025
|
+
for (; $ <= 279; ) X[2 * $ + 1] = 7, $++, Me[7]++;
|
|
11026
|
+
for (; $ <= 287; ) X[2 * $ + 1] = 8, $++, Me[8]++;
|
|
11027
|
+
for (ve(X, d + 1, Me), $ = 0; $ < f; $++) I[2 * $ + 1] = 5, I[2 * $] = Ee($, 5);
|
|
11028
11028
|
N = new K(X, G, h + 1, d, y), k = new K(I, V, 0, f, y), D = new K(new Array(0), P, 0, p, v);
|
|
11029
11029
|
})(), le = !0), Y.l_desc = new F(Y.dyn_ltree, N), Y.d_desc = new F(Y.dyn_dtree, k), Y.bl_desc = new F(Y.bl_tree, D), Y.bi_buf = 0, Y.bi_valid = 0, Ne(Y);
|
|
11030
11030
|
}, r._tr_stored_block = Q, r._tr_flush_block = function(Y, $, ce, be) {
|
|
11031
|
-
var q, ue,
|
|
11031
|
+
var q, ue, Me = 0;
|
|
11032
11032
|
0 < Y.level ? (Y.strm.data_type === 2 && (Y.strm.data_type = (function(we) {
|
|
11033
11033
|
var Ue, Ye = 4093624447;
|
|
11034
11034
|
for (Ue = 0; Ue <= 31; Ue++, Ye >>>= 1) if (1 & Ye && we.dyn_ltree[2 * Ue] !== 0) return s;
|
|
11035
11035
|
if (we.dyn_ltree[18] !== 0 || we.dyn_ltree[20] !== 0 || we.dyn_ltree[26] !== 0) return a;
|
|
11036
11036
|
for (Ue = 32; Ue < h; Ue++) if (we.dyn_ltree[2 * Ue] !== 0) return a;
|
|
11037
11037
|
return s;
|
|
11038
|
-
})(Y)), rt(Y, Y.l_desc), rt(Y, Y.d_desc),
|
|
11038
|
+
})(Y)), rt(Y, Y.l_desc), rt(Y, Y.d_desc), Me = (function(we) {
|
|
11039
11039
|
var Ue;
|
|
11040
11040
|
for (z(we, we.dyn_ltree, we.l_desc.max_code), z(we, we.dyn_dtree, we.d_desc.max_code), rt(we, we.bl_desc), Ue = p - 1; 3 <= Ue && we.bl_tree[2 * A[Ue] + 1] === 0; Ue--) ;
|
|
11041
11041
|
return we.opt_len += 3 * (Ue + 1) + 5 + 5 + 4, Ue;
|
|
@@ -11043,7 +11043,7 @@ function ZK() {
|
|
|
11043
11043
|
var Wt;
|
|
11044
11044
|
for (J(we, Ue - 257, 5), J(we, Ye - 1, 5), J(we, Qe - 4, 4), Wt = 0; Wt < Qe; Wt++) J(we, we.bl_tree[2 * A[Wt] + 1], 3);
|
|
11045
11045
|
ge(we, we.dyn_ltree, Ue - 1), ge(we, we.dyn_dtree, Ye - 1);
|
|
11046
|
-
})(Y, Y.l_desc.max_code + 1, Y.d_desc.max_code + 1,
|
|
11046
|
+
})(Y, Y.l_desc.max_code + 1, Y.d_desc.max_code + 1, Me + 1), tt(Y, Y.dyn_ltree, Y.dyn_dtree)), Ne(Y), be && Oe(Y);
|
|
11047
11047
|
}, r._tr_tally = function(Y, $, ce) {
|
|
11048
11048
|
return Y.pending_buf[Y.d_buf + 2 * Y.last_lit] = $ >>> 8 & 255, Y.pending_buf[Y.d_buf + 2 * Y.last_lit + 1] = 255 & $, Y.pending_buf[Y.l_buf + Y.last_lit] = 255 & ce, Y.last_lit++, $ === 0 ? Y.dyn_ltree[2 * ce]++ : (Y.matches++, $--, Y.dyn_ltree[2 * (w[ce] + h + 1)]++, Y.dyn_dtree[2 * W($)]++), Y.last_lit === Y.lit_bufsize - 1;
|
|
11049
11049
|
}, r._tr_align = function(Y) {
|
|
@@ -16584,7 +16584,7 @@ function fte({
|
|
|
16584
16584
|
return Ur(() => {
|
|
16585
16585
|
const g = e?.type === "simple" ? e.data : void 0, v = co(g, "csv", "jsonProperties", "value");
|
|
16586
16586
|
Sr(v, y.current) || !g?.url && !g?.value || (p(), y.current = v);
|
|
16587
|
-
}, [e, p]),
|
|
16587
|
+
}, [e, p]), Ie(
|
|
16588
16588
|
() => () => {
|
|
16589
16589
|
_O(() => {
|
|
16590
16590
|
s?.originalFeatures.forEach((g) => {
|
|
@@ -16615,7 +16615,7 @@ function pte({
|
|
|
16615
16615
|
selectedFeatureId: i
|
|
16616
16616
|
}) {
|
|
16617
16617
|
const r = e?.type === "simple" ? e.events?.select : void 0;
|
|
16618
|
-
|
|
16618
|
+
Ie(() => {
|
|
16619
16619
|
if (!(!t || !r) && r.openUrl) {
|
|
16620
16620
|
const o = r.openUrl.urlKey ? (i ? n?.features.find((s) => s.id === i)?.properties : n?.properties)?.[r.openUrl.urlKey] : r.openUrl.url;
|
|
16621
16621
|
typeof o == "string" && o && window.open(o, "_blank", "noreferrer");
|
|
@@ -16817,7 +16817,7 @@ function Tte({
|
|
|
16817
16817
|
[h]
|
|
16818
16818
|
)
|
|
16819
16819
|
), V = de(G);
|
|
16820
|
-
|
|
16820
|
+
Ie(() => {
|
|
16821
16821
|
V.current = G;
|
|
16822
16822
|
}, [G]);
|
|
16823
16823
|
const P = he(() => gC(
|
|
@@ -16906,18 +16906,18 @@ function Tte({
|
|
|
16906
16906
|
}
|
|
16907
16907
|
);
|
|
16908
16908
|
q && ue.data && (ue.data.value = q);
|
|
16909
|
-
const
|
|
16910
|
-
...ce.compat &&
|
|
16909
|
+
const Me = $?.property, we = H1({
|
|
16910
|
+
...ce.compat && Me ? {
|
|
16911
16911
|
type: ce.type === "group" ? "group" : "item",
|
|
16912
16912
|
extensionId: ce.compat.extensionId,
|
|
16913
16913
|
property: {
|
|
16914
16914
|
default: {
|
|
16915
16915
|
...ce.compat.property?.default || {},
|
|
16916
|
-
...
|
|
16916
|
+
...Me.default || {}
|
|
16917
16917
|
}
|
|
16918
16918
|
}
|
|
16919
16919
|
} : {},
|
|
16920
|
-
...!ce.compat &&
|
|
16920
|
+
...!ce.compat && Me ? { property: Me } : {},
|
|
16921
16921
|
...ue
|
|
16922
16922
|
});
|
|
16923
16923
|
if (!we) return;
|
|
@@ -16946,12 +16946,12 @@ function Tte({
|
|
|
16946
16946
|
}), J = se(
|
|
16947
16947
|
(...Y) => {
|
|
16948
16948
|
Y.find((q) => q === i?.layerId) && B(), E((q) => {
|
|
16949
|
-
const ue = [],
|
|
16949
|
+
const ue = [], Me = y9(q, (we) => Y.includes(we.id) ? (ue.push(we), !0) : !1);
|
|
16950
16950
|
return ue.map((we) => we.id).forEach((we) => {
|
|
16951
16951
|
c.delete(we), h.delete(we), d.delete(we), m(we);
|
|
16952
16952
|
}), C.current = C.current.filter(
|
|
16953
16953
|
(we) => !ue.find((Ue) => Ue.id === we.id)
|
|
16954
|
-
),
|
|
16954
|
+
), Me;
|
|
16955
16955
|
});
|
|
16956
16956
|
const be = N.current.filter((q) => !Y.includes(q.id));
|
|
16957
16957
|
N.current = be, u(be);
|
|
@@ -17069,7 +17069,7 @@ function Tte({
|
|
|
17069
17069
|
j,
|
|
17070
17070
|
le
|
|
17071
17071
|
]
|
|
17072
|
-
),
|
|
17072
|
+
), Ie(() => {
|
|
17073
17073
|
a?.();
|
|
17074
17074
|
}, [a]);
|
|
17075
17075
|
const Q = de([]);
|
|
@@ -17084,7 +17084,7 @@ function Tte({
|
|
|
17084
17084
|
});
|
|
17085
17085
|
const be = N.current.filter((q) => !$?.includes(q.id));
|
|
17086
17086
|
N.current = be, u(be), Q.current = g;
|
|
17087
|
-
}, [h, c, d, u, m, g]),
|
|
17087
|
+
}, [h, c, d, u, m, g]), Ie(() => {
|
|
17088
17088
|
!r || r.current === wO || (r.current = uf);
|
|
17089
17089
|
}, [M, l, f, r]), { atomMap: h, flattenedLayers: M, isHidden: y };
|
|
17090
17090
|
}
|
|
@@ -19663,7 +19663,7 @@ function Bne(e, ...[t]) {
|
|
|
19663
19663
|
}, [n]), o = Wne.useSyncExternalStore(r, i, i), s = "status" in o ? o : void 0;
|
|
19664
19664
|
if (s?.status === "error")
|
|
19665
19665
|
throw s.error;
|
|
19666
|
-
return
|
|
19666
|
+
return Ie(() => (n.start(), () => {
|
|
19667
19667
|
Une(n);
|
|
19668
19668
|
}), [n]), [o, n.send, n];
|
|
19669
19669
|
}
|
|
@@ -19674,7 +19674,7 @@ function iw(e, t, n) {
|
|
|
19674
19674
|
const i = de(t);
|
|
19675
19675
|
i.current = t;
|
|
19676
19676
|
const r = de(n);
|
|
19677
|
-
|
|
19677
|
+
Ie(() => {
|
|
19678
19678
|
if (typeof window > "u")
|
|
19679
19679
|
return;
|
|
19680
19680
|
const o = (a) => {
|
|
@@ -20722,7 +20722,7 @@ const Qne = ({
|
|
|
20722
20722
|
), F = se(() => {
|
|
20723
20723
|
N.current?.();
|
|
20724
20724
|
}, [N]), W = de(!1);
|
|
20725
|
-
return
|
|
20725
|
+
return Ie(() => {
|
|
20726
20726
|
W.current || !t.current || (W.current = !0, t.current?.onMouseDown(k), t.current?.onMouseMove(D), t.current?.onMouseUp(B), t.current?.onDoubleClick(K), t.current?.onRightClick(F));
|
|
20727
20727
|
}, [t, k, D, B, K, F]), {};
|
|
20728
20728
|
};
|
|
@@ -21044,29 +21044,29 @@ function tie({
|
|
|
21044
21044
|
}
|
|
21045
21045
|
}), iw("keyup", (je) => {
|
|
21046
21046
|
S !== void 0 && je.code === "Space" && (o?.("sketch"), P(!1), Gr.current && (Gr.current = !1));
|
|
21047
|
-
}),
|
|
21047
|
+
}), Ie(() => {
|
|
21048
21048
|
S === void 0 && !p && (v({ type: "ABORT" }), ke.current?.(void 0));
|
|
21049
21049
|
}, [S, p, v]);
|
|
21050
|
-
const
|
|
21051
|
-
|
|
21050
|
+
const Me = de(C);
|
|
21051
|
+
Me.current = C;
|
|
21052
21052
|
const we = de(o);
|
|
21053
21053
|
we.current = o;
|
|
21054
21054
|
const Ue = de(s);
|
|
21055
21055
|
Ue.current = s;
|
|
21056
21056
|
const Ye = de(i);
|
|
21057
|
-
Ye.current = i,
|
|
21057
|
+
Ye.current = i, Ie(() => {
|
|
21058
21058
|
(p || S) && Ye.current !== "sketch" && we.current?.("sketch");
|
|
21059
21059
|
}, [S, p]);
|
|
21060
21060
|
const Qe = de(ve);
|
|
21061
21061
|
Qe.current = ve;
|
|
21062
21062
|
const Wt = de(be);
|
|
21063
|
-
Wt.current = be,
|
|
21064
|
-
Ue.current?.(S,
|
|
21063
|
+
Wt.current = be, Ie(() => {
|
|
21064
|
+
Ue.current?.(S, Me.current), Qe.current && Wt.current(), S === void 0 && we.current?.(
|
|
21065
21065
|
Ye.current === "sketch" ? "default" : Ye.current
|
|
21066
21066
|
);
|
|
21067
21067
|
}, [S]);
|
|
21068
21068
|
const Be = de(S);
|
|
21069
|
-
Be.current = S,
|
|
21069
|
+
Be.current = S, Ie(() => {
|
|
21070
21070
|
Gr.current || i !== "sketch" && Qe.current && Wt.current();
|
|
21071
21071
|
}, [i, E]);
|
|
21072
21072
|
const Ct = de([]), Yt = se((je) => {
|
|
@@ -21080,7 +21080,7 @@ function tie({
|
|
|
21080
21080
|
() => !!g.context.catchedExtrudedPoint,
|
|
21081
21081
|
[g.context.catchedExtrudedPoint]
|
|
21082
21082
|
), ti = de(!1);
|
|
21083
|
-
|
|
21083
|
+
Ie(() => {
|
|
21084
21084
|
if (Ct.current.forEach((je) => {
|
|
21085
21085
|
je(p);
|
|
21086
21086
|
}), p) yn.current = p;
|
|
@@ -21143,7 +21143,7 @@ function tie({
|
|
|
21143
21143
|
be,
|
|
21144
21144
|
q
|
|
21145
21145
|
]
|
|
21146
|
-
),
|
|
21146
|
+
), Ie(() => {
|
|
21147
21147
|
y?.();
|
|
21148
21148
|
}, [y]);
|
|
21149
21149
|
const Rt = se(() => {
|
|
@@ -21182,11 +21182,11 @@ function tie({
|
|
|
21182
21182
|
},
|
|
21183
21183
|
[g.context.controlPoints, v, w]
|
|
21184
21184
|
), Gr = de(!1), Ki = de(g);
|
|
21185
|
-
return Ki.current = g,
|
|
21185
|
+
return Ki.current = g, Ie(() => window.addEventListener("keydown", (je) => {
|
|
21186
21186
|
je.code === "Space" && Ki.current.matches("editing") ? (Gr.current = !0, o?.("move")) : je.code === "Delete" && Ki.current.matches("editing") && gi.current();
|
|
21187
|
-
}), [o]),
|
|
21187
|
+
}), [o]), Ie(() => window.addEventListener("keyup", (je) => {
|
|
21188
21188
|
je.code === "Space" && Gr.current && (o?.("sketch"), Gr.current = !1);
|
|
21189
|
-
}), [o]),
|
|
21189
|
+
}), [o]), Ie(() => {
|
|
21190
21190
|
ve || we.current?.("default");
|
|
21191
21191
|
}, [ve]), {
|
|
21192
21192
|
state: g,
|
|
@@ -21767,7 +21767,7 @@ const die = ({
|
|
|
21767
21767
|
}, []);
|
|
21768
21768
|
return Ur(() => ((async () => (A.current && (await A.current, A.current = void 0), P.current = I()))(), () => {
|
|
21769
21769
|
x(), A.current = w();
|
|
21770
|
-
}), [I, w, x]),
|
|
21770
|
+
}), [I, w, x]), Ie(() => {
|
|
21771
21771
|
(async () => {
|
|
21772
21772
|
P.current && await P.current;
|
|
21773
21773
|
const R = m3(h);
|
|
@@ -23689,7 +23689,7 @@ const Coe = [
|
|
|
23689
23689
|
setCesiumPropsAfterCreate: !0
|
|
23690
23690
|
}), sc = ({ action: e, modifier: t, type: n }) => {
|
|
23691
23691
|
const i = si();
|
|
23692
|
-
return
|
|
23692
|
+
return Ie(() => {
|
|
23693
23693
|
if (!(!i.screenSpaceEventHandler || i.screenSpaceEventHandler.isDestroyed())) {
|
|
23694
23694
|
if (e)
|
|
23695
23695
|
return i.screenSpaceEventHandler.setInputAction(e, n, t), () => {
|
|
@@ -26344,13 +26344,13 @@ const dw = (e) => {
|
|
|
26344
26344
|
const J = se(() => {
|
|
26345
26345
|
j.current();
|
|
26346
26346
|
}, []);
|
|
26347
|
-
|
|
26347
|
+
Ie(() => {
|
|
26348
26348
|
D.current || !t.current || (D.current = !0, t.current.onMouseUp(K), t.current.onMouseMove(W), t.current.onRightClick(J));
|
|
26349
26349
|
}, [t, K, W, J]);
|
|
26350
26350
|
const ie = de(a);
|
|
26351
26351
|
ie.current = a;
|
|
26352
26352
|
const Ee = de(x);
|
|
26353
|
-
Ee.current = x,
|
|
26353
|
+
Ee.current = x, Ie(() => {
|
|
26354
26354
|
Oe.current || r !== "spatialId" && ie.current !== "idle" && Ee.current();
|
|
26355
26355
|
}, [r]);
|
|
26356
26356
|
const ve = de([]), Ne = se((me) => {
|
|
@@ -26366,16 +26366,16 @@ const dw = (e) => {
|
|
|
26366
26366
|
[X, Ne, x]
|
|
26367
26367
|
);
|
|
26368
26368
|
const Oe = de(!1);
|
|
26369
|
-
return
|
|
26369
|
+
return Ie(() => {
|
|
26370
26370
|
const me = (ke) => {
|
|
26371
26371
|
ke.code === "Space" && ie.current !== "idle" && (Oe.current = !0, o?.("move"));
|
|
26372
26372
|
};
|
|
26373
26373
|
return window.addEventListener("keydown", me), () => {
|
|
26374
26374
|
window.removeEventListener("keydown", me);
|
|
26375
26375
|
};
|
|
26376
|
-
}, [o]),
|
|
26376
|
+
}, [o]), Ie(() => window.addEventListener("keyup", (me) => {
|
|
26377
26377
|
me.code === "Space" && Oe.current && (Oe.current = !1, o?.("spatialId"));
|
|
26378
|
-
}), [o]),
|
|
26378
|
+
}), [o]), Ie(() => {
|
|
26379
26379
|
s?.();
|
|
26380
26380
|
}, [s]), {
|
|
26381
26381
|
spatialIdSpaces: l,
|
|
@@ -26734,7 +26734,7 @@ const r4 = Qo(void 0), PXe = () => {
|
|
|
26734
26734
|
clusterLabels: !0,
|
|
26735
26735
|
clusterPoints: !0
|
|
26736
26736
|
}), []);
|
|
26737
|
-
return
|
|
26737
|
+
return Ie(() => {
|
|
26738
26738
|
const l = ea.Children.count(t) < i, u = c?.clusterEvent.addEventListener(
|
|
26739
26739
|
(h, d) => {
|
|
26740
26740
|
d.label.font = vO(r, { fontSize: 30 }), d.label.horizontalOrigin = r.textAlign === "right" ? Pa.LEFT : r.textAlign === "left" ? Pa.RIGHT : Pa.CENTER, d.label.verticalOrigin = Ic.CENTER, d.label.fillColor = rn.fromCssColorString(
|
|
@@ -27284,7 +27284,7 @@ function $ae({
|
|
|
27284
27284
|
() => Cc(e?.globe?.baseColor),
|
|
27285
27285
|
[e?.globe?.baseColor]
|
|
27286
27286
|
), o = de(null);
|
|
27287
|
-
return
|
|
27287
|
+
return Ie(() => {
|
|
27288
27288
|
let s = !1;
|
|
27289
27289
|
return i.then((a) => {
|
|
27290
27290
|
s || o.current !== a && (o.current = a, n?.());
|
|
@@ -59579,12 +59579,12 @@ function a1e(e, t, n, i, r, o, s) {
|
|
|
59579
59579
|
rt,
|
|
59580
59580
|
qbe
|
|
59581
59581
|
), ue = b.normalize(q, Y5);
|
|
59582
|
-
let
|
|
59583
|
-
|
|
59584
|
-
let we = b.cross(ue,
|
|
59582
|
+
let Me = b.subtract(z, rt, $be);
|
|
59583
|
+
Me = b.normalize(Me, Me);
|
|
59584
|
+
let we = b.cross(ue, Me, Y5);
|
|
59585
59585
|
we = b.normalize(we, we);
|
|
59586
59586
|
let Ue = b.cross(
|
|
59587
|
-
|
|
59587
|
+
Me,
|
|
59588
59588
|
ge,
|
|
59589
59589
|
t1e
|
|
59590
59590
|
);
|
|
@@ -68287,44 +68287,62 @@ function _2e({
|
|
|
68287
68287
|
cesiumIonAccessToken: t,
|
|
68288
68288
|
customProvider: n,
|
|
68289
68289
|
presets: Uu
|
|
68290
|
-
});
|
|
68291
|
-
return
|
|
68290
|
+
}), h = de(/* @__PURE__ */ new Map());
|
|
68291
|
+
return Ie(() => {
|
|
68292
68292
|
if (!r || !o) return;
|
|
68293
|
-
let
|
|
68294
|
-
const
|
|
68293
|
+
let d = !1;
|
|
68294
|
+
const f = new Set(l?.map((y) => y.id) || []);
|
|
68295
|
+
h.current.forEach(({ layer: y }, g) => {
|
|
68296
|
+
f.has(g) || (r.contains(y) && r.remove(y), h.current.delete(g));
|
|
68297
|
+
});
|
|
68298
|
+
const p = new Array(l?.length || 0).fill(
|
|
68295
68299
|
null
|
|
68296
|
-
),
|
|
68297
|
-
|
|
68298
|
-
if (!
|
|
68299
|
-
const
|
|
68300
|
-
if (
|
|
68301
|
-
const
|
|
68302
|
-
|
|
68300
|
+
), m = () => {
|
|
68301
|
+
d || o.isDestroyed() || (p.forEach((y, g) => {
|
|
68302
|
+
if (!y) return;
|
|
68303
|
+
const v = r.indexOf(y);
|
|
68304
|
+
if (v === -1) return;
|
|
68305
|
+
const S = p.slice(0, g).filter((E) => E !== null).length;
|
|
68306
|
+
v !== S && (r.remove(y, !1), r.add(y, S));
|
|
68303
68307
|
}), o.requestRender());
|
|
68304
68308
|
};
|
|
68305
|
-
return l?.forEach((
|
|
68306
|
-
const E = u[
|
|
68307
|
-
if (!
|
|
68308
|
-
|
|
68309
|
-
|
|
68310
|
-
|
|
68311
|
-
|
|
68312
|
-
|
|
68313
|
-
|
|
68314
|
-
|
|
68315
|
-
|
|
68316
|
-
|
|
68317
|
-
|
|
68309
|
+
return l?.forEach((y, g) => {
|
|
68310
|
+
const { id: v, zoomLevel: S, opacity: E, heatmap: C } = y, M = h.current.get(v), G = u[v]?.[3];
|
|
68311
|
+
if (!G) return;
|
|
68312
|
+
if (M) {
|
|
68313
|
+
const P = M.tile;
|
|
68314
|
+
if (M.provider === G && P.type === y.type && P.url === y.url && P.cesiumIonAssetId === y.cesiumIonAssetId && P.zoomLevel?.[0] === S?.[0] && P.zoomLevel?.[1] === S?.[1] && P.heatmap === C) {
|
|
68315
|
+
const I = E ?? 1;
|
|
68316
|
+
M.layer.alpha !== I && (M.layer.alpha = I, o.requestRender()), M.tile = y, M.provider = G, p[g] = M.layer, m();
|
|
68317
|
+
return;
|
|
68318
|
+
}
|
|
68319
|
+
r.contains(M.layer) && r.remove(M.layer), h.current.delete(v);
|
|
68320
|
+
}
|
|
68321
|
+
const V = (P) => {
|
|
68322
|
+
if (!P || d || o.isDestroyed()) return;
|
|
68323
|
+
const A = new Fb(P, {
|
|
68324
|
+
minimumTerrainLevel: S?.[0],
|
|
68325
|
+
maximumTerrainLevel: S?.[1],
|
|
68326
|
+
alpha: E,
|
|
68327
|
+
colorToAlpha: C ? rn.WHITE : void 0,
|
|
68328
|
+
colorToAlphaThreshold: C ? 1 : void 0,
|
|
68329
|
+
magnificationFilter: C ? jW.LINEAR : void 0,
|
|
68330
|
+
minificationFilter: C ? HW.NEAREST : void 0
|
|
68318
68331
|
});
|
|
68319
|
-
r.add(
|
|
68332
|
+
r.add(A), p[g] = A, h.current.set(v, { layer: A, tile: y, provider: G }), m();
|
|
68320
68333
|
};
|
|
68321
|
-
|
|
68334
|
+
G instanceof Promise ? G.then(V).catch((P) => console.error("Failed to load imagery provider:", P)) : V(G);
|
|
68322
68335
|
}), o.requestRender(), i?.(), () => {
|
|
68323
|
-
|
|
68324
|
-
|
|
68325
|
-
|
|
68336
|
+
d = !0;
|
|
68337
|
+
};
|
|
68338
|
+
}, [u, l, r, o, i]), Ie(() => {
|
|
68339
|
+
const d = h.current;
|
|
68340
|
+
return () => {
|
|
68341
|
+
!r || !o || o.isDestroyed() || (d.forEach(({ layer: f }) => {
|
|
68342
|
+
r.contains(f) && r.remove(f);
|
|
68343
|
+
}), d.clear());
|
|
68326
68344
|
};
|
|
68327
|
-
}, [
|
|
68345
|
+
}, [r, o]), null;
|
|
68328
68346
|
}
|
|
68329
68347
|
function v2e({
|
|
68330
68348
|
tiles: e = [],
|
|
@@ -68414,7 +68432,7 @@ const iN = (e, t, n) => {
|
|
|
68414
68432
|
}, [e, !!n && n.unmountOnExit, s]), u = se(() => {
|
|
68415
68433
|
r(e ? "entering" : "exiting"), o.current = setTimeout(l, t), s.current = Date.now() + t;
|
|
68416
68434
|
}, [e, t, l, o, s]);
|
|
68417
|
-
return
|
|
68435
|
+
return Ie(() => {
|
|
68418
68436
|
if (e ? i === "entered" : i === "exited" || i === "unmounted") {
|
|
68419
68437
|
s.current = void 0;
|
|
68420
68438
|
return;
|
|
@@ -68434,12 +68452,12 @@ function x2e({
|
|
|
68434
68452
|
mountOnEnter: !0,
|
|
68435
68453
|
unmountOnExit: !0
|
|
68436
68454
|
}), { type: l, image: u, imageScale: h } = t?.indicator ?? {}, [d, f, p] = JS({ image: u, imageSize: h });
|
|
68437
|
-
return
|
|
68455
|
+
return Ie(() => {
|
|
68438
68456
|
!l || l === "default" ? i?.selectionIndicator.viewModel.selectionIndicatorElement.removeAttribute("hidden") : i?.selectionIndicator.viewModel.selectionIndicatorElement.setAttribute(
|
|
68439
68457
|
"hidden",
|
|
68440
68458
|
"true"
|
|
68441
68459
|
);
|
|
68442
|
-
}, [l, i, i?.selectionIndicator]),
|
|
68460
|
+
}, [l, i, i?.selectionIndicator]), Ie(() => {
|
|
68443
68461
|
if (!i) return;
|
|
68444
68462
|
const m = () => {
|
|
68445
68463
|
if (i.isDestroyed()) return;
|
|
@@ -69681,7 +69699,7 @@ const UT = Fi(
|
|
|
69681
69699
|
E != null ? (S.position = E, S.show = !0) : S.show = !1;
|
|
69682
69700
|
}), p?.requestRender());
|
|
69683
69701
|
}, [e, t, i, u, h, p]), y = de(m);
|
|
69684
|
-
return y.current = m,
|
|
69702
|
+
return y.current = m, Ie(() => {
|
|
69685
69703
|
if (!p || !o)
|
|
69686
69704
|
return;
|
|
69687
69705
|
const g = [], v = d.map((E) => {
|
|
@@ -69713,7 +69731,7 @@ const UT = Fi(
|
|
|
69713
69731
|
return () => {
|
|
69714
69732
|
f.current = void 0, p.isDestroyed() || p?.postRender.addEventListener(S);
|
|
69715
69733
|
};
|
|
69716
|
-
}, [r, d, p, o, s, a]),
|
|
69734
|
+
}, [r, d, p, o, s, a]), Ie(() => {
|
|
69717
69735
|
m();
|
|
69718
69736
|
}, [m]), null;
|
|
69719
69737
|
}
|
|
@@ -69736,7 +69754,7 @@ function owe(e, t) {
|
|
|
69736
69754
|
}
|
|
69737
69755
|
function lN(e) {
|
|
69738
69756
|
const [t, n] = ot(), i = de(void 0);
|
|
69739
|
-
return i.current == null && (i.current = e.create()),
|
|
69757
|
+
return i.current == null && (i.current = e.create()), Ie(() => {
|
|
69740
69758
|
i.current == null && (i.current = e.create(), n(i.current));
|
|
69741
69759
|
const r = i.current, o = owe(e, r);
|
|
69742
69760
|
return () => {
|
|
@@ -69857,13 +69875,13 @@ const lwe = ({ imageryProvider: e, imageriesAtom: t, style: n, labelCollection:
|
|
|
69857
69875
|
a(p);
|
|
69858
69876
|
});
|
|
69859
69877
|
const { labelCollection: c, scene: l } = si(), u = de(!1), h = he(() => c ?? (l ? new rO({ scene: l }) : void 0), [l, c]);
|
|
69860
|
-
|
|
69878
|
+
Ie(() => {
|
|
69861
69879
|
!c && l && !u.current && (l.primitives.add(h), u.current = !0);
|
|
69862
69880
|
}, [c, h, l]);
|
|
69863
69881
|
const d = de(0);
|
|
69864
69882
|
return $l((f) => {
|
|
69865
69883
|
h && d.current !== h._labelsToUpdate.length && (f.requestRender(), d.current = h._labelsToUpdate.length);
|
|
69866
|
-
}),
|
|
69884
|
+
}), Ie(() => () => {
|
|
69867
69885
|
l?.isDestroyed() || l?.requestRender();
|
|
69868
69886
|
}, [l]), /* @__PURE__ */ ae.jsxs(ae.Fragment, { children: [
|
|
69869
69887
|
/* @__PURE__ */ ae.jsx(
|
|
@@ -69904,7 +69922,7 @@ const lwe = ({ imageryProvider: e, imageriesAtom: t, style: n, labelCollection:
|
|
|
69904
69922
|
);
|
|
69905
69923
|
uN.displayName = "LabelImageryLayers";
|
|
69906
69924
|
function hwe({ onMount: e, onUnmount: t }) {
|
|
69907
|
-
return
|
|
69925
|
+
return Ie(() => (e?.(), () => t?.()), [e, t]), null;
|
|
69908
69926
|
}
|
|
69909
69927
|
var dwe = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date, hN = /* @__PURE__ */ new Set(), Hw = typeof process == "object" && process ? process : {}, dN = (e, t, n, i) => {
|
|
69910
69928
|
typeof Hw.emitWarning == "function" ? Hw.emitWarning(e, t, n, i) : console.error(`[${n}] ${t}: ${e}`);
|
|
@@ -70806,7 +70824,7 @@ const Mwe = {
|
|
|
70806
70824
|
)
|
|
70807
70825
|
)
|
|
70808
70826
|
);
|
|
70809
|
-
|
|
70827
|
+
Ie(() => {
|
|
70810
70828
|
d.current = i;
|
|
70811
70829
|
}, [i]);
|
|
70812
70830
|
const p = se(
|
|
@@ -70825,9 +70843,9 @@ const Mwe = {
|
|
|
70825
70843
|
},
|
|
70826
70844
|
[l, t, e]
|
|
70827
70845
|
), g = he(() => new td(u?.scene.canvas), [u]);
|
|
70828
|
-
return
|
|
70846
|
+
return Ie(() => {
|
|
70829
70847
|
g.setInputAction(p, zt.LEFT_DOWN), g.setInputAction(m, zt.MOUSE_MOVE), g.setInputAction(y, zt.LEFT_UP);
|
|
70830
|
-
}, [g, p, m, y]),
|
|
70848
|
+
}, [g, p, m, y]), Ie(() => () => g.destroy(), [g]), {
|
|
70831
70849
|
cbp: h,
|
|
70832
70850
|
outlineColor: f
|
|
70833
70851
|
};
|
|
@@ -71151,7 +71169,7 @@ const kwe = ({
|
|
|
71151
71169
|
E(j ?? 0), M.current = !1;
|
|
71152
71170
|
}));
|
|
71153
71171
|
}, [v, r, C]), { requestRender: V } = pi();
|
|
71154
|
-
|
|
71172
|
+
Ie(() => {
|
|
71155
71173
|
VM(C, e, S, t, v), V?.(), G();
|
|
71156
71174
|
}, [
|
|
71157
71175
|
e,
|
|
@@ -71235,8 +71253,8 @@ const kwe = ({
|
|
|
71235
71253
|
),
|
|
71236
71254
|
z,
|
|
71237
71255
|
new pe()
|
|
71238
|
-
), q = pe.multiplyByScalar(ke, z / 2, new pe()), ue = le.z < 0,
|
|
71239
|
-
!v &&
|
|
71256
|
+
), q = pe.multiplyByScalar(ke, z / 2, new pe()), ue = le.z < 0, Me = z > 0;
|
|
71257
|
+
!v && Me && ue && vn.fromCartesian(
|
|
71240
71258
|
C.translation,
|
|
71241
71259
|
void 0,
|
|
71242
71260
|
new vn()
|
|
@@ -71316,7 +71334,7 @@ const kwe = ({
|
|
|
71316
71334
|
), K = se(() => {
|
|
71317
71335
|
r && (N.current = void 0, D.current = void 0, eh(r, !0));
|
|
71318
71336
|
}, [r]);
|
|
71319
|
-
|
|
71337
|
+
Ie(() => {
|
|
71320
71338
|
document.body.style.cursor = g || "default";
|
|
71321
71339
|
}, [g]);
|
|
71322
71340
|
const F = he(() => ol(n?.interval), [n?.interval]), W = he(
|
|
@@ -71375,7 +71393,7 @@ const kwe = ({
|
|
|
71375
71393
|
!1
|
|
71376
71394
|
)
|
|
71377
71395
|
);
|
|
71378
|
-
|
|
71396
|
+
Ie(() => {
|
|
71379
71397
|
y.current = i;
|
|
71380
71398
|
}, [i]);
|
|
71381
71399
|
const [v] = ot(
|
|
@@ -71419,16 +71437,16 @@ const kwe = ({
|
|
|
71419
71437
|
},
|
|
71420
71438
|
[h, t, d, f]
|
|
71421
71439
|
);
|
|
71422
|
-
|
|
71440
|
+
Ie(() => {
|
|
71423
71441
|
pe.clone(
|
|
71424
71442
|
new pe(c?.width, c?.length, c?.height),
|
|
71425
71443
|
v
|
|
71426
71444
|
);
|
|
71427
71445
|
}, [c, v]);
|
|
71428
71446
|
const A = he(() => new td(p?.scene.canvas), [p]);
|
|
71429
|
-
return
|
|
71447
|
+
return Ie(() => {
|
|
71430
71448
|
A.setInputAction(G, zt.LEFT_DOWN), A.setInputAction(V, zt.MOUSE_MOVE), A.setInputAction(P, zt.LEFT_UP);
|
|
71431
|
-
}, [A, G, V, P]),
|
|
71449
|
+
}, [A, G, V, P]), Ie(() => () => A.destroy(), [A]), {
|
|
71432
71450
|
entitiesPosition: m,
|
|
71433
71451
|
pointOutlineColorCb: g,
|
|
71434
71452
|
cesiumDimensionsCallbackProperty: S,
|
|
@@ -71578,7 +71596,7 @@ const kwe = ({
|
|
|
71578
71596
|
!1
|
|
71579
71597
|
)
|
|
71580
71598
|
);
|
|
71581
|
-
return
|
|
71599
|
+
return Ie(() => {
|
|
71582
71600
|
l.current = t;
|
|
71583
71601
|
}, [t]), {
|
|
71584
71602
|
cbRef: o,
|
|
@@ -71996,7 +72014,7 @@ function ixe({ isVisible: e, property: t, geometry: n, layer: i, feature: r }) {
|
|
|
71996
72014
|
}),
|
|
71997
72015
|
[s]
|
|
71998
72016
|
);
|
|
71999
|
-
return
|
|
72017
|
+
return Ie(() => {
|
|
72000
72018
|
!f.current || f.current.cesiumElement?.isDestroyed() || d?.();
|
|
72001
72019
|
}), Ur(() => {
|
|
72002
72020
|
!f.current || f.current.cesiumElement?.isDestroyed() || Ko(f.current.cesiumElement, {
|
|
@@ -74828,7 +74846,7 @@ const qN = Fi(
|
|
|
74828
74846
|
}),
|
|
74829
74847
|
id: e?.id
|
|
74830
74848
|
})), [r, e?.id])[0];
|
|
74831
|
-
return
|
|
74849
|
+
return Ie(() => {
|
|
74832
74850
|
if (h?.isDestroyed())
|
|
74833
74851
|
return;
|
|
74834
74852
|
const y = (
|
|
@@ -74850,9 +74868,9 @@ const qN = Fi(
|
|
|
74850
74868
|
featureId: t?.id,
|
|
74851
74869
|
originalProperties: n
|
|
74852
74870
|
});
|
|
74853
|
-
}, [e?.id, t?.id, n]),
|
|
74871
|
+
}, [e?.id, t?.id, n]), Ie(() => {
|
|
74854
74872
|
f.uniforms.image = i.image;
|
|
74855
|
-
}, [i.image, f]), Object.assign(f.uniforms, co(i, ["width", "height"])),
|
|
74873
|
+
}, [i.image, f]), Object.assign(f.uniforms, co(i, ["width", "height"])), Ie(() => {
|
|
74856
74874
|
f.uniforms.colorMap = o != null ? sm(o) : sm(TN);
|
|
74857
74875
|
}, [o, f]), Object.assign(
|
|
74858
74876
|
f.uniforms,
|
|
@@ -74914,16 +74932,16 @@ const FEe = Fi(function({ property: t, isVisible: n, layer: i, feature: r }) {
|
|
|
74914
74932
|
N?.up || pe.ONE
|
|
74915
74933
|
).computeVisibility(E) !== sU.OUTSIDE;
|
|
74916
74934
|
}, V = de(null);
|
|
74917
|
-
|
|
74935
|
+
Ie(() => {
|
|
74918
74936
|
V.current && V.current.sendToBack();
|
|
74919
74937
|
}, []), $l(() => {
|
|
74920
74938
|
const N = G();
|
|
74921
74939
|
N !== C && (M(N), v?.onLayerVisibility && i?.id && v.onLayerVisibility({ layerId: i.id }));
|
|
74922
|
-
}),
|
|
74940
|
+
}), Ie(() => () => {
|
|
74923
74941
|
g?.isDestroyed() || g?.requestRender();
|
|
74924
74942
|
}, [g]);
|
|
74925
74943
|
const [P, A] = ot(), X = t?.maxValue == null && t?.minValue == null;
|
|
74926
|
-
|
|
74944
|
+
Ie(() => {
|
|
74927
74945
|
!C || !o || IEe(o, X).then((N) => {
|
|
74928
74946
|
A(N);
|
|
74929
74947
|
}).catch(() => {
|
|
@@ -75047,7 +75065,7 @@ function XEe({ property: e, id: t, isVisible: n, geometry: i, layer: r, feature:
|
|
|
75047
75065
|
$?.isFeatureSelected && typeof r?.marker?.selectedFeatureColor == "string" ? r.marker?.selectedFeatureColor : d
|
|
75048
75066
|
),
|
|
75049
75067
|
[d, r, $?.isFeatureSelected]
|
|
75050
|
-
), q = he(() => Cc(f), [f]), ue = he(() => Cc(y?.color), [y?.color]),
|
|
75068
|
+
), q = he(() => Cc(f), [f]), ue = he(() => Cc(y?.color), [y?.color]), Me = he(
|
|
75051
75069
|
() => Cc(E),
|
|
75052
75070
|
[E]
|
|
75053
75071
|
), we = he(
|
|
@@ -75058,7 +75076,7 @@ function XEe({ property: e, id: t, isVisible: n, geometry: i, layer: r, feature:
|
|
|
75058
75076
|
() => sl(e?.near, e?.far),
|
|
75059
75077
|
[e?.near, e?.far]
|
|
75060
75078
|
), Qe = he(() => String(g), [g]);
|
|
75061
|
-
return
|
|
75079
|
+
return Ie(() => {
|
|
75062
75080
|
a?.();
|
|
75063
75081
|
}), !Ne || !n || !c ? null : /* @__PURE__ */ ae.jsxs(ae.Fragment, { children: [
|
|
75064
75082
|
Oe && /* @__PURE__ */ ae.jsx(
|
|
@@ -75128,7 +75146,7 @@ function XEe({ property: e, id: t, isVisible: n, geometry: i, layer: r, feature:
|
|
|
75128
75146
|
font: vO(y, { fontSize: 30 }),
|
|
75129
75147
|
text: Qe,
|
|
75130
75148
|
showBackground: S,
|
|
75131
|
-
backgroundColor:
|
|
75149
|
+
backgroundColor: Me,
|
|
75132
75150
|
backgroundPadding: we,
|
|
75133
75151
|
heightReference: Va(F),
|
|
75134
75152
|
distanceDisplayCondition: Ye
|
|
@@ -75296,9 +75314,9 @@ function WEe({
|
|
|
75296
75314
|
const me = ve?.get(Oe);
|
|
75297
75315
|
me instanceof vs && me.id && me.id.id === e && (me.imageBasedLighting = j, Ee.current = !1, ie?.());
|
|
75298
75316
|
}
|
|
75299
|
-
}),
|
|
75317
|
+
}), Ie(() => {
|
|
75300
75318
|
j && (Ee.current = !0);
|
|
75301
|
-
}, [j]),
|
|
75319
|
+
}, [j]), Ie(() => {
|
|
75302
75320
|
ie?.();
|
|
75303
75321
|
}), (c ? s : !s) || !t || !h || !N ? null : /* @__PURE__ */ ae.jsx(
|
|
75304
75322
|
$r,
|
|
@@ -75358,7 +75376,7 @@ function jEe({ isSelected: e, camera: t }) {
|
|
|
75358
75376
|
const l = de(!1);
|
|
75359
75377
|
l.current = n?.reason === "storytelling";
|
|
75360
75378
|
const u = de(void 0);
|
|
75361
|
-
|
|
75379
|
+
Ie(() => {
|
|
75362
75380
|
if ((s ?? 0) > 1 && o === 1 && u.current)
|
|
75363
75381
|
i?.(u.current, {
|
|
75364
75382
|
duration: nX,
|
|
@@ -75382,7 +75400,7 @@ function jEe({ isSelected: e, camera: t }) {
|
|
|
75382
75400
|
}
|
|
75383
75401
|
);
|
|
75384
75402
|
}
|
|
75385
|
-
}, [i, r, o, s]),
|
|
75403
|
+
}, [i, r, o, s]), Ie(() => {
|
|
75386
75404
|
if (!e && l.current) {
|
|
75387
75405
|
const f = u.current?.fov ?? nL;
|
|
75388
75406
|
i?.({ fov: f }, { duration: 0 });
|
|
@@ -75609,7 +75627,7 @@ function rCe({
|
|
|
75609
75627
|
() => v !== void 0 ? { extrudedHeight: v } : void 0,
|
|
75610
75628
|
[v]
|
|
75611
75629
|
);
|
|
75612
|
-
return
|
|
75630
|
+
return Ie(() => {
|
|
75613
75631
|
c?.();
|
|
75614
75632
|
}), !t || !a || !l ? null : /* @__PURE__ */ ae.jsxs(ae.Fragment, { children: [
|
|
75615
75633
|
/* @__PURE__ */ ae.jsx(
|
|
@@ -75680,7 +75698,7 @@ function sCe({ id: e, isVisible: t, property: n, geometry: i, layer: r, feature:
|
|
|
75680
75698
|
() => sl(n?.near, n?.far),
|
|
75681
75699
|
[n?.near, n?.far]
|
|
75682
75700
|
);
|
|
75683
|
-
return
|
|
75701
|
+
return Ie(() => {
|
|
75684
75702
|
c?.();
|
|
75685
75703
|
}), !t || !a || !s ? null : /* @__PURE__ */ ae.jsx(
|
|
75686
75704
|
$r,
|
|
@@ -85531,7 +85549,7 @@ let bx = yx;
|
|
|
85531
85549
|
ct(bx, "maximumTasks", 50), ct(bx, "maximumTasksPerImagery", 6);
|
|
85532
85550
|
const g1 = (e, t, n) => {
|
|
85533
85551
|
const { hideIndicator: i } = n ?? {}, { viewer: r } = si(), o = n?.alpha;
|
|
85534
|
-
|
|
85552
|
+
Ie(() => {
|
|
85535
85553
|
if (!e || !r) return;
|
|
85536
85554
|
const s = r.imageryLayers, a = s.addImageryProvider(e);
|
|
85537
85555
|
return Object.assign(a, {
|
|
@@ -85598,7 +85616,7 @@ const IOe = ({
|
|
|
85598
85616
|
layer: n
|
|
85599
85617
|
}) => {
|
|
85600
85618
|
const { show: i = !0, minimumLevel: r, maximumLevel: o, credit: s } = t ?? {}, { type: a, url: c } = y1(n), [l, u] = ot();
|
|
85601
|
-
|
|
85619
|
+
Ie(() => {
|
|
85602
85620
|
if (!e || !i || !c || a !== "tms") return;
|
|
85603
85621
|
(async () => u(
|
|
85604
85622
|
await cU.fromUrl(c, {
|
|
@@ -85972,11 +85990,11 @@ function NOe({
|
|
|
85972
85990
|
() => l ? rn.fromCssColorString(l) : void 0,
|
|
85973
85991
|
[l]
|
|
85974
85992
|
);
|
|
85975
|
-
return
|
|
85993
|
+
return Ie(() => {
|
|
85976
85994
|
y && g.current.forEach((x) => {
|
|
85977
85995
|
lP(x.raw, n, z2, y.clock.currentTime);
|
|
85978
85996
|
});
|
|
85979
|
-
}, [n, y]),
|
|
85997
|
+
}, [n, y]), Ie(
|
|
85980
85998
|
() => () => {
|
|
85981
85999
|
_O(() => {
|
|
85982
86000
|
r?.(Array.from(v.current.values()));
|
|
@@ -86048,7 +86066,7 @@ const XOe = {
|
|
|
86048
86066
|
return t.current = e, t;
|
|
86049
86067
|
}, uP = (e) => {
|
|
86050
86068
|
const t = de(e), n = se(() => t.current, []);
|
|
86051
|
-
return
|
|
86069
|
+
return Ie(() => {
|
|
86052
86070
|
t.current = e;
|
|
86053
86071
|
}, [e]), n;
|
|
86054
86072
|
};
|
|
@@ -86149,11 +86167,11 @@ const DOe = [
|
|
|
86149
86167
|
roll: h,
|
|
86150
86168
|
disabledSelection: d
|
|
86151
86169
|
} = e || {}, { viewer: f } = si(), p = de(!1), m = de(!1), y = de(void 0), [g, v] = ot(o);
|
|
86152
|
-
|
|
86170
|
+
Ie(() => {
|
|
86153
86171
|
n && !g && v(o);
|
|
86154
86172
|
}, [g, o, n]);
|
|
86155
86173
|
const [S, E] = ot({ width: s, height: a, length: c, heading: l, pitch: u, roll: h });
|
|
86156
|
-
|
|
86174
|
+
Ie(() => {
|
|
86157
86175
|
n && !S && E({ width: s, height: a, length: c, heading: l, pitch: u, roll: h });
|
|
86158
86176
|
}, [S, s, a, c, l, u, h, n]);
|
|
86159
86177
|
const [C, M] = ot({
|
|
@@ -86329,9 +86347,9 @@ const DOe = [
|
|
|
86329
86347
|
},
|
|
86330
86348
|
[t]
|
|
86331
86349
|
), k = he(() => new td(f?.scene.canvas), [f]);
|
|
86332
|
-
|
|
86350
|
+
Ie(() => {
|
|
86333
86351
|
k.setInputAction(V, zt.LEFT_DOWN), k.setInputAction(R, zt.MOUSE_MOVE), k.setInputAction(P, zt.LEFT_UP);
|
|
86334
|
-
}, [k, V, R, P]),
|
|
86352
|
+
}, [k, V, R, P]), Ie(
|
|
86335
86353
|
() => () => {
|
|
86336
86354
|
requestAnimationFrame(() => {
|
|
86337
86355
|
k.isDestroyed() || k.destroy();
|
|
@@ -86387,7 +86405,7 @@ const YOe = ({
|
|
|
86387
86405
|
isTilesetReady: u
|
|
86388
86406
|
}) => {
|
|
86389
86407
|
const [h, d] = ot(0), f = he(() => i ?? 100, [i]), p = he(() => r ?? 10, [r]), [m, y] = ot(!1), { requestRender: g } = pi();
|
|
86390
|
-
|
|
86408
|
+
Ie(() => {
|
|
86391
86409
|
(async () => {
|
|
86392
86410
|
if (!a?.current || !u) return;
|
|
86393
86411
|
if (!e || !t || t?.length < 2) {
|
|
@@ -86442,7 +86460,7 @@ const YOe = ({
|
|
|
86442
86460
|
c,
|
|
86443
86461
|
u,
|
|
86444
86462
|
g
|
|
86445
|
-
]),
|
|
86463
|
+
]), Ie(() => {
|
|
86446
86464
|
l.unionClippingRegions = n === "outside";
|
|
86447
86465
|
}, [l, n, e]);
|
|
86448
86466
|
const v = he(
|
|
@@ -86587,7 +86605,7 @@ const YOe = ({
|
|
|
86587
86605
|
y
|
|
86588
86606
|
]
|
|
86589
86607
|
), S = de(v);
|
|
86590
|
-
S.current = v,
|
|
86608
|
+
S.current = v, Ie(
|
|
86591
86609
|
() => t.current?.tileLoad.addEventListener(
|
|
86592
86610
|
(w) => S.current(w)
|
|
86593
86611
|
),
|
|
@@ -86601,16 +86619,16 @@ const YOe = ({
|
|
|
86601
86619
|
},
|
|
86602
86620
|
[n, o, l]
|
|
86603
86621
|
), C = de(E);
|
|
86604
|
-
C.current = E,
|
|
86622
|
+
C.current = E, Ie(
|
|
86605
86623
|
() => t.current?.tileUnload.addEventListener(
|
|
86606
86624
|
(w) => C.current(w)
|
|
86607
86625
|
),
|
|
86608
86626
|
[t, u]
|
|
86609
|
-
),
|
|
86627
|
+
), Ie(() => {
|
|
86610
86628
|
f.current = i;
|
|
86611
86629
|
}, [i]);
|
|
86612
86630
|
const M = he(() => Bs(i)?.["3dtiles"], [i]), G = Pwe(M, tVe), V = l ? 0 : i?.layer._updateStyle, P = de(V), A = de(void 0);
|
|
86613
|
-
|
|
86631
|
+
Ie(() => {
|
|
86614
86632
|
A.current = Date.now();
|
|
86615
86633
|
}, [G, V]);
|
|
86616
86634
|
const X = se(
|
|
@@ -86639,7 +86657,7 @@ const YOe = ({
|
|
|
86639
86657
|
},
|
|
86640
86658
|
[X, V]
|
|
86641
86659
|
), { requestRender: x } = pi();
|
|
86642
|
-
|
|
86660
|
+
Ie(() => {
|
|
86643
86661
|
(async () => {
|
|
86644
86662
|
const R = Date.now();
|
|
86645
86663
|
await I(R), x?.();
|
|
@@ -86724,7 +86742,7 @@ const YOe = ({
|
|
|
86724
86742
|
edgeColor: ri(v)
|
|
86725
86743
|
})
|
|
86726
86744
|
);
|
|
86727
|
-
|
|
86745
|
+
Ie(
|
|
86728
86746
|
() => () => {
|
|
86729
86747
|
ue(
|
|
86730
86748
|
new cC({
|
|
@@ -86743,7 +86761,7 @@ const YOe = ({
|
|
|
86743
86761
|
[]
|
|
86744
86762
|
// eslint-disable-line react-hooks/exhaustive-deps
|
|
86745
86763
|
);
|
|
86746
|
-
const { drawClippingEnabled:
|
|
86764
|
+
const { drawClippingEnabled: Me, drawClippingEdgeProps: we } = YOe({
|
|
86747
86765
|
...E?.draw,
|
|
86748
86766
|
tilesetRef: h,
|
|
86749
86767
|
viewer: u,
|
|
@@ -86764,7 +86782,7 @@ const YOe = ({
|
|
|
86764
86782
|
const [Be] = ot(() => /* @__PURE__ */ new Map());
|
|
86765
86783
|
Ur(() => {
|
|
86766
86784
|
tt(!1), me(!1), Y.current !== le && (h.current = void 0, Y.current = void 0, z(!1)), Ue.records.clear(), Qe.current = [], Be.clear();
|
|
86767
|
-
}, [le, Ue, Be]),
|
|
86785
|
+
}, [le, Ue, Be]), Ie(() => {
|
|
86768
86786
|
!h.current || !Ne || !Oe || Object.assign(h.current, {
|
|
86769
86787
|
onSelectFeature: (ut) => {
|
|
86770
86788
|
const Rt = Lt(ut);
|
|
@@ -86799,7 +86817,7 @@ const YOe = ({
|
|
|
86799
86817
|
},
|
|
86800
86818
|
[B, u]
|
|
86801
86819
|
);
|
|
86802
|
-
|
|
86820
|
+
Ie(() => {
|
|
86803
86821
|
if (E?.draw) return;
|
|
86804
86822
|
const ut = X || (A ? [A.lng, A.lat, A.height ?? 0] : void 0), Rt = pe.fromDegrees(ut?.[0] || 0, ut?.[1] || 0, ut?.[2] || 0);
|
|
86805
86823
|
(async () => {
|
|
@@ -86832,11 +86850,11 @@ const YOe = ({
|
|
|
86832
86850
|
Ct,
|
|
86833
86851
|
E?.draw,
|
|
86834
86852
|
Oe
|
|
86835
|
-
]),
|
|
86853
|
+
]), Ie(() => {
|
|
86836
86854
|
E?.draw || (q.enabled = N);
|
|
86837
|
-
}, [q, N, E?.draw]),
|
|
86855
|
+
}, [q, N, E?.draw]), Ie(() => {
|
|
86838
86856
|
E?.draw || (q.unionClippingRegions = k === "outside");
|
|
86839
|
-
}, [q, k, E?.draw]),
|
|
86857
|
+
}, [q, k, E?.draw]), Ie(() => {
|
|
86840
86858
|
E?.draw || (q.removeAll(), ce?.forEach(
|
|
86841
86859
|
(ut) => q.add(
|
|
86842
86860
|
new zf(
|
|
@@ -86845,7 +86863,7 @@ const YOe = ({
|
|
|
86845
86863
|
)
|
|
86846
86864
|
)
|
|
86847
86865
|
));
|
|
86848
|
-
}, [ce, q, be, E?.draw]),
|
|
86866
|
+
}, [ce, q, be, E?.draw]), Ie(() => {
|
|
86849
86867
|
if (!g) {
|
|
86850
86868
|
F(void 0);
|
|
86851
86869
|
return;
|
|
@@ -86859,7 +86877,7 @@ const YOe = ({
|
|
|
86859
86877
|
const Rt = await ut.json(), gi = new gO(Rt);
|
|
86860
86878
|
F(gi);
|
|
86861
86879
|
})();
|
|
86862
|
-
}, [g]),
|
|
86880
|
+
}, [g]), Ie(() => {
|
|
86863
86881
|
K && h.current && Oe && (h.current.style = K);
|
|
86864
86882
|
}, [K, Oe]);
|
|
86865
86883
|
const Ri = he(() => j !== "google-photorealistic" || !n ? null : Ee === "reearth" ? ge || W || null : (async () => {
|
|
@@ -86908,9 +86926,9 @@ const YOe = ({
|
|
|
86908
86926
|
},
|
|
86909
86927
|
[le]
|
|
86910
86928
|
);
|
|
86911
|
-
return
|
|
86929
|
+
return Ie(() => {
|
|
86912
86930
|
!ke || !rt || me(!0);
|
|
86913
|
-
}, [ke, rt]),
|
|
86931
|
+
}, [ke, rt]), Ie(() => (f?.(), () => {
|
|
86914
86932
|
f?.();
|
|
86915
86933
|
}), [j, f]), {
|
|
86916
86934
|
tilesetKey: le,
|
|
@@ -86918,7 +86936,7 @@ const YOe = ({
|
|
|
86918
86936
|
ref: Ye,
|
|
86919
86937
|
style: K,
|
|
86920
86938
|
clippingPlanes: q,
|
|
86921
|
-
drawClippingEnabled:
|
|
86939
|
+
drawClippingEnabled: Me,
|
|
86922
86940
|
drawClippingEdgeProps: we,
|
|
86923
86941
|
builtinBoxProps: D,
|
|
86924
86942
|
imageBasedLighting: ti,
|
|
@@ -87069,11 +87087,11 @@ function hVe({
|
|
|
87069
87087
|
),
|
|
87070
87088
|
[r?.type, r?.url, r?.layers, r?.provider, r?.serviceTokens?.googleMapApiKey]
|
|
87071
87089
|
), { requestRender: h } = pi();
|
|
87072
|
-
|
|
87090
|
+
Ie(() => {
|
|
87073
87091
|
setTimeout(() => {
|
|
87074
87092
|
h?.();
|
|
87075
87093
|
}, 300);
|
|
87076
|
-
}),
|
|
87094
|
+
}), Ie(() => () => h?.(), [h]);
|
|
87077
87095
|
const d = (p, m) => {
|
|
87078
87096
|
if (!aVe(p)) return null;
|
|
87079
87097
|
const y = !!i.viewerProperty?.scene?.imageBasedLighting?.sphericalHarmonicCoefficients, g = !!i.viewerProperty?.scene?.imageBasedLighting?.specularEnvironmentMaps, v = e.layer.visible !== !1 && !t && !(n?.layerId === e.id && n?.feature?.id === m?.id), S = u + Qf(
|
|
@@ -87149,7 +87167,7 @@ function fVe(e, t, n) {
|
|
|
87149
87167
|
cartesianArray: l
|
|
87150
87168
|
};
|
|
87151
87169
|
}, [n?.targetWidth, n?.targetLength, i]), [o, s] = ot();
|
|
87152
|
-
return
|
|
87170
|
+
return Ie(() => {
|
|
87153
87171
|
const a = e.current?.cesiumElement;
|
|
87154
87172
|
if (!a || a.isDestroyed() || !n?.targetArea || !i) return;
|
|
87155
87173
|
const c = new hU(a.scene);
|
|
@@ -87174,7 +87192,7 @@ function fVe(e, t, n) {
|
|
|
87174
87192
|
d / 2 + u
|
|
87175
87193
|
);
|
|
87176
87194
|
s(p);
|
|
87177
|
-
}, [e, n, i]),
|
|
87195
|
+
}, [e, n, i]), Ie(() => {
|
|
87178
87196
|
const a = e?.current?.cesiumElement, c = Oo(e?.current?.cesiumElement);
|
|
87179
87197
|
!a || a.isDestroyed() || !c || !n?.enabled || !r || a.camera.setView({
|
|
87180
87198
|
destination: gVe(c, r),
|
|
@@ -87261,9 +87279,9 @@ const pVe = new lO({
|
|
|
87261
87279
|
}, [c]), u = se(() => {
|
|
87262
87280
|
c();
|
|
87263
87281
|
}, [c]);
|
|
87264
|
-
|
|
87282
|
+
Ie(() => {
|
|
87265
87283
|
n && !a.current.includes(n) && (r.flyTo(n, { duration: 0 }), a.current = []);
|
|
87266
|
-
}, [n, r]),
|
|
87284
|
+
}, [n, r]), Ie(() => {
|
|
87267
87285
|
if (!e.current?.cesiumElement) return;
|
|
87268
87286
|
const v = !!(i & Dn.CAMERA_MOVE), S = !!(i & Dn.CAMERA_ZOOM), E = !!(i & Dn.CAMERA_TILT), C = !!(i & Dn.CAMERA_LOOK);
|
|
87269
87287
|
e.current.cesiumElement.scene.screenSpaceCameraController.enableTranslate = v, e.current.cesiumElement.scene.screenSpaceCameraController.enableRotate = v, e.current.cesiumElement.scene.screenSpaceCameraController.enableLook = C, e.current.cesiumElement.scene.screenSpaceCameraController.enableTilt = E, e.current.cesiumElement.scene.screenSpaceCameraController.enableZoom = S;
|
|
@@ -87288,7 +87306,7 @@ const pVe = new lO({
|
|
|
87288
87306
|
},
|
|
87289
87307
|
[o]
|
|
87290
87308
|
);
|
|
87291
|
-
return
|
|
87309
|
+
return Ie(() => {
|
|
87292
87310
|
const v = e.current?.cesiumElement;
|
|
87293
87311
|
if (v)
|
|
87294
87312
|
return v.scene.preRender.addEventListener(g);
|
|
@@ -88680,17 +88698,17 @@ const s9e = ({
|
|
|
88680
88698
|
const a = e.current?.cesiumElement;
|
|
88681
88699
|
!t?.current || !a || a.isDestroyed() || (a.scene.requestRender(), t.current === uf && (t.current = _2));
|
|
88682
88700
|
}, [e, t]), s = de(void 0);
|
|
88683
|
-
|
|
88701
|
+
Ie(() => {
|
|
88684
88702
|
s.current = o;
|
|
88685
|
-
}, [o]),
|
|
88703
|
+
}, [o]), Ie(() => {
|
|
88686
88704
|
const a = e.current?.cesiumElement;
|
|
88687
88705
|
if (!(!a || a.isDestroyed()))
|
|
88688
88706
|
return a.scene.postUpdate.addEventListener(() => {
|
|
88689
88707
|
s.current?.();
|
|
88690
88708
|
});
|
|
88691
|
-
}, [e]),
|
|
88709
|
+
}, [e]), Ie(() => {
|
|
88692
88710
|
t && (t.current = uf);
|
|
88693
|
-
}, [r, t]),
|
|
88711
|
+
}, [r, t]), Ie(() => {
|
|
88694
88712
|
const a = e.current?.cesiumElement;
|
|
88695
88713
|
!a || a.isDestroyed() || t && (t.current = n || i ? wO : t.current === uf ? uf : _2);
|
|
88696
88714
|
}, [e, n, i, t]);
|
|
@@ -88828,7 +88846,7 @@ const p9e = ({
|
|
|
88828
88846
|
},
|
|
88829
88847
|
[e, i]
|
|
88830
88848
|
), s = de(void 0);
|
|
88831
|
-
return
|
|
88849
|
+
return Ie(() => {
|
|
88832
88850
|
const a = e.current?.cesiumElement;
|
|
88833
88851
|
if (!(!a || a.isDestroyed()))
|
|
88834
88852
|
return s.current = new xE(a, {
|
|
@@ -89145,17 +89163,17 @@ const E9e = ({
|
|
|
89145
89163
|
),
|
|
89146
89164
|
[]
|
|
89147
89165
|
);
|
|
89148
|
-
return
|
|
89166
|
+
return Ie(() => {
|
|
89149
89167
|
if (!e.current?.cesiumElement || !a) return;
|
|
89150
89168
|
const l = e.current.cesiumElement.scene.globe;
|
|
89151
89169
|
return l.material = new Hv(), () => {
|
|
89152
89170
|
l.material = void 0;
|
|
89153
89171
|
};
|
|
89154
|
-
}, [e, a]),
|
|
89172
|
+
}, [e, a]), Ie(() => {
|
|
89155
89173
|
if (!e.current?.cesiumElement || !a) return;
|
|
89156
89174
|
const l = e.current.cesiumElement.scene.globe;
|
|
89157
89175
|
l.material instanceof Hv && (l.material.uniforms.minHeight = r ?? l.material.uniforms.minHeight, l.material.uniforms.maxHeight = i ?? l.material.uniforms.maxHeight, l.material.uniforms.logarithmic = o ?? l.material.uniforms.logarithmic);
|
|
89158
|
-
}, [e, a, i, r, o]),
|
|
89176
|
+
}, [e, a, i, r, o]), Ie(() => {
|
|
89159
89177
|
if (!e.current?.cesiumElement || !a || !s) return;
|
|
89160
89178
|
const l = e.current.cesiumElement.scene.globe;
|
|
89161
89179
|
l.material instanceof Hv && (l.material.uniforms.colorMap = sm(s));
|
|
@@ -89188,7 +89206,7 @@ const I9e = ({
|
|
|
89188
89206
|
cesium: e,
|
|
89189
89207
|
terrain: s
|
|
89190
89208
|
});
|
|
89191
|
-
|
|
89209
|
+
Ie(() => {
|
|
89192
89210
|
if (!e.current?.cesiumElement || !r) return;
|
|
89193
89211
|
const m = e.current.cesiumElement.scene.globe;
|
|
89194
89212
|
m.vertexShadowDarkness = n ?? m.vertexShadowDarkness;
|
|
@@ -89230,10 +89248,10 @@ const I9e = ({
|
|
|
89230
89248
|
d,
|
|
89231
89249
|
c
|
|
89232
89250
|
]);
|
|
89233
|
-
|
|
89251
|
+
Ie(() => {
|
|
89234
89252
|
if (e.current?.cesiumElement)
|
|
89235
89253
|
return e.current.cesiumElement.scene.postRender.addEventListener(p);
|
|
89236
|
-
}, [e, p]),
|
|
89254
|
+
}, [e, p]), Ie(() => {
|
|
89237
89255
|
if (!e.current?.cesiumElement || !l && !h) return;
|
|
89238
89256
|
const m = e.current.cesiumElement.scene, y = m.globe;
|
|
89239
89257
|
return f.current = !0, m.requestRender(), () => {
|
|
@@ -89315,7 +89333,7 @@ const I9e = ({
|
|
|
89315
89333
|
onLayerSelectWithRectEnd: M,
|
|
89316
89334
|
featureFlags: c
|
|
89317
89335
|
});
|
|
89318
|
-
|
|
89336
|
+
Ie(() => {
|
|
89319
89337
|
const q = I?.current?.cesiumElement?.shadowMap;
|
|
89320
89338
|
if (!q) return;
|
|
89321
89339
|
q.softShadows = t?.scene?.shadow?.shadowMap?.softShadows ?? !1, q.darkness = t?.scene?.shadow?.shadowMap?.darkness ?? 0.3, q.size = t?.scene?.shadow?.shadowMap?.size ?? 2048, q.maximumDistance = t?.scene?.shadow?.shadowMap?.maximumDistance ?? 5e3, q.fadingEnabled = !0, q.normalOffset = !0;
|
|
@@ -89326,7 +89344,7 @@ const I9e = ({
|
|
|
89326
89344
|
normalShading: !0,
|
|
89327
89345
|
normalShadingSmooth: 0.3,
|
|
89328
89346
|
depthBias: 1e-4
|
|
89329
|
-
},
|
|
89347
|
+
}, Me = {
|
|
89330
89348
|
polygonOffsetFactor: 1.1,
|
|
89331
89349
|
polygonOffsetUnits: 4,
|
|
89332
89350
|
normalOffsetScale: 0.1 * 100,
|
|
@@ -89341,7 +89359,7 @@ const I9e = ({
|
|
|
89341
89359
|
normalShadingSmooth: 0.1,
|
|
89342
89360
|
depthBias: 5e-4
|
|
89343
89361
|
};
|
|
89344
|
-
q._terrainBias && Object.assign(q._terrainBias, ue), q._primitiveBias && Object.assign(q._primitiveBias,
|
|
89362
|
+
q._terrainBias && Object.assign(q._terrainBias, ue), q._primitiveBias && Object.assign(q._primitiveBias, Me), q._pointBias && Object.assign(q._pointBias, we);
|
|
89345
89363
|
}, [
|
|
89346
89364
|
t?.scene?.shadow?.shadowMap?.softShadows,
|
|
89347
89365
|
t?.scene?.shadow?.shadowMap?.darkness,
|
|
@@ -89349,17 +89367,17 @@ const I9e = ({
|
|
|
89349
89367
|
t?.scene?.shadow?.shadowMap?.maximumDistance
|
|
89350
89368
|
]);
|
|
89351
89369
|
const N = de(void 0), k = de(void 0);
|
|
89352
|
-
|
|
89370
|
+
Ie(() => {
|
|
89353
89371
|
const q = I.current?.cesiumElement;
|
|
89354
89372
|
if (!q || q.isDestroyed() || k.current === i?.featureId && i?.featureId !== void 0)
|
|
89355
89373
|
return;
|
|
89356
89374
|
const ue = Lt(N.current);
|
|
89357
89375
|
if (!ue?.featureId && ue?.layerId && i?.layerId && ue?.layerId === i.layerId || ue?.featureId && i?.featureId && ue?.featureId === i.featureId)
|
|
89358
89376
|
return;
|
|
89359
|
-
const
|
|
89360
|
-
if (N.current ===
|
|
89361
|
-
const we = Lt(
|
|
89362
|
-
if (
|
|
89377
|
+
const Me = Ys(q, void 0, i?.featureId) || Ys(q, i?.layerId);
|
|
89378
|
+
if (N.current === Me) return;
|
|
89379
|
+
const we = Lt(Me);
|
|
89380
|
+
if (Me instanceof Wr && !we?.hideIndicator ? q.selectedEntity = Me : q.selectedEntity = void 0, N.current = Me, !Me && i?.featureId) {
|
|
89363
89381
|
const Ue = [], Ye = a?.current?.findAll(
|
|
89364
89382
|
(Qe) => Qe.type === "simple" && !!Qe.data?.type && Ue.includes(Qe.data?.type)
|
|
89365
89383
|
);
|
|
@@ -89377,16 +89395,16 @@ const I9e = ({
|
|
|
89377
89395
|
}
|
|
89378
89396
|
}
|
|
89379
89397
|
if (!we?.unselectable) {
|
|
89380
|
-
if (
|
|
89381
|
-
const Ue = Lt(
|
|
89398
|
+
if (Me && Me instanceof ta) {
|
|
89399
|
+
const Ue = Lt(Me);
|
|
89382
89400
|
if (Ue) {
|
|
89383
|
-
const Ye = jv(
|
|
89401
|
+
const Ye = jv(Me);
|
|
89384
89402
|
y?.(
|
|
89385
89403
|
Ue.layerId,
|
|
89386
89404
|
String(Ue.featureId),
|
|
89387
89405
|
Ye.length ? {
|
|
89388
89406
|
defaultInfobox: {
|
|
89389
|
-
title:
|
|
89407
|
+
title: Me.getProperty("name"),
|
|
89390
89408
|
content: {
|
|
89391
89409
|
type: "table",
|
|
89392
89410
|
value: Ye
|
|
@@ -89398,16 +89416,16 @@ const I9e = ({
|
|
|
89398
89416
|
}
|
|
89399
89417
|
return;
|
|
89400
89418
|
}
|
|
89401
|
-
if (
|
|
89419
|
+
if (Me) {
|
|
89402
89420
|
const Ue = we?.layerId ? a?.current?.overriddenLayers().find((Ye) => Ye.id === we.layerId) ?? a?.current?.findById(we.layerId) : void 0;
|
|
89403
89421
|
y?.(
|
|
89404
89422
|
we?.layerId,
|
|
89405
89423
|
we?.featureId,
|
|
89406
|
-
|
|
89424
|
+
Me instanceof Wr && (Me.description || Me.properties) ? {
|
|
89407
89425
|
defaultInfobox: {
|
|
89408
|
-
title:
|
|
89426
|
+
title: Me.name,
|
|
89409
89427
|
content: Sv(
|
|
89410
|
-
|
|
89428
|
+
Me,
|
|
89411
89429
|
I.current?.cesiumElement?.clock.currentTime ?? new wn(),
|
|
89412
89430
|
we?.layerId ? Ue?.infobox?.property?.defaultContent : void 0
|
|
89413
89431
|
)
|
|
@@ -89437,13 +89455,13 @@ const I9e = ({
|
|
|
89437
89455
|
terrain: t?.terrain
|
|
89438
89456
|
});
|
|
89439
89457
|
const B = se(
|
|
89440
|
-
(q, ue,
|
|
89458
|
+
(q, ue, Me) => {
|
|
89441
89459
|
if (w.mouseEventCallbacks[q]?.length > 0) {
|
|
89442
89460
|
const we = I.current?.cesiumElement;
|
|
89443
89461
|
if (!we || we.isDestroyed()) return;
|
|
89444
89462
|
const Ue = wx(we, ue);
|
|
89445
89463
|
if (!Ue) return;
|
|
89446
|
-
const Ye = P9e(
|
|
89464
|
+
const Ye = P9e(Me);
|
|
89447
89465
|
Ye && (Ue.layerId = Ye), w.mouseEventCallbacks[q].forEach((Qe) => Qe(Ue));
|
|
89448
89466
|
}
|
|
89449
89467
|
},
|
|
@@ -89473,18 +89491,18 @@ const I9e = ({
|
|
|
89473
89491
|
}
|
|
89474
89492
|
};
|
|
89475
89493
|
return Object.keys(q).forEach((ue) => {
|
|
89476
|
-
ue !== "wheel" && (q[ue] = (
|
|
89477
|
-
B(ue,
|
|
89494
|
+
ue !== "wheel" && (q[ue] = (Me, we) => {
|
|
89495
|
+
B(ue, Me, we);
|
|
89478
89496
|
});
|
|
89479
89497
|
}), q;
|
|
89480
89498
|
}, [B, K]), W = se(
|
|
89481
89499
|
async (q, ue) => {
|
|
89482
89500
|
if (F.click?.(q, ue), !(c & Dn.SINGLE_SELECTION)) return;
|
|
89483
|
-
const
|
|
89484
|
-
if (!
|
|
89501
|
+
const Me = I.current?.cesiumElement;
|
|
89502
|
+
if (!Me || Me.isDestroyed()) return;
|
|
89485
89503
|
k.current = void 0;
|
|
89486
|
-
const we = Ys(
|
|
89487
|
-
if ((!we || we instanceof Wr && Ue?.hideIndicator) && (
|
|
89504
|
+
const we = Ys(Me, void 0, i?.featureId) || Ys(Me, i?.layerId), Ue = Lt(we);
|
|
89505
|
+
if ((!we || we instanceof Wr && Ue?.hideIndicator) && (Me.selectedEntity = void 0), ue && "id" in ue && ue.id instanceof Wr && u4(ue.id)) {
|
|
89488
89506
|
const Ye = Lt(ue.id), Qe = Ye?.layerId ? a?.current?.overriddenLayers().find((Wt) => Wt.id === Ye.layerId) ?? a?.current?.findById(Ye.layerId) : void 0;
|
|
89489
89507
|
y?.(
|
|
89490
89508
|
Ye?.layerId,
|
|
@@ -89494,12 +89512,12 @@ const I9e = ({
|
|
|
89494
89512
|
title: Qe?.title ?? ue.id.name,
|
|
89495
89513
|
content: Sv(
|
|
89496
89514
|
ue.id,
|
|
89497
|
-
|
|
89515
|
+
Me.clock.currentTime ?? new wn(),
|
|
89498
89516
|
Ye?.layerId ? Qe?.infobox?.property?.defaultContent : void 0
|
|
89499
89517
|
)
|
|
89500
89518
|
}
|
|
89501
89519
|
} : void 0
|
|
89502
|
-
), N.current = ue.id, ue.id instanceof Wr && !Ye?.hideIndicator ?
|
|
89520
|
+
), N.current = ue.id, ue.id instanceof Wr && !Ye?.hideIndicator ? Me.selectedEntity = ue.id : Me.selectedEntity = void 0;
|
|
89503
89521
|
return;
|
|
89504
89522
|
}
|
|
89505
89523
|
if (ue && (ue instanceof ta || ue instanceof gm)) {
|
|
@@ -89534,7 +89552,7 @@ const I9e = ({
|
|
|
89534
89552
|
return;
|
|
89535
89553
|
}
|
|
89536
89554
|
if (ue === void 0 && q.position) {
|
|
89537
|
-
const Ye =
|
|
89555
|
+
const Ye = Me.scene, Qe = Ye.camera.getPickRay(q.position);
|
|
89538
89556
|
if (Qe) {
|
|
89539
89557
|
const Be = (await Ye.imageryLayers.pickImageryLayerFeatures(Qe, Ye))?.findLast((Yt) => {
|
|
89540
89558
|
const Et = Yt?.data?.appearanceType;
|
|
@@ -89543,13 +89561,13 @@ const I9e = ({
|
|
|
89543
89561
|
if (Ct && Be?.data?.feature?.[Ct]?.show !== !1) {
|
|
89544
89562
|
const Yt = Lt(Be.imageryLayer), Et = Be.position;
|
|
89545
89563
|
Et && requestAnimationFrame(() => {
|
|
89546
|
-
Yt?.hideIndicator || (
|
|
89564
|
+
Yt?.hideIndicator || (Me.selectedEntity = new Wr({
|
|
89547
89565
|
position: vn.toCartesian(Et)
|
|
89548
89566
|
}));
|
|
89549
89567
|
});
|
|
89550
89568
|
const yn = Yt?.layerId ? a?.current?.overriddenLayers().find((ei) => ei.id === Yt.layerId) ?? a?.current?.findById(Yt.layerId) : void 0, Ri = Sv(
|
|
89551
89569
|
Be.data.feature ?? Be,
|
|
89552
|
-
|
|
89570
|
+
Me.clock.currentTime ?? new wn(),
|
|
89553
89571
|
Yt?.layerId ? yn?.infobox?.property?.defaultContent : void 0
|
|
89554
89572
|
);
|
|
89555
89573
|
k.current = Be.data.featureId, y?.(
|
|
@@ -89569,7 +89587,7 @@ const I9e = ({
|
|
|
89569
89587
|
}
|
|
89570
89588
|
}
|
|
89571
89589
|
}
|
|
89572
|
-
|
|
89590
|
+
Me.selectedEntity = void 0, y?.();
|
|
89573
89591
|
},
|
|
89574
89592
|
[
|
|
89575
89593
|
y,
|
|
@@ -89580,12 +89598,12 @@ const I9e = ({
|
|
|
89580
89598
|
i?.layerId
|
|
89581
89599
|
]
|
|
89582
89600
|
);
|
|
89583
|
-
|
|
89601
|
+
Ie(() => {
|
|
89584
89602
|
if (dVe())
|
|
89585
89603
|
return pP(I.current?.cesiumElement), () => {
|
|
89586
89604
|
pP(void 0);
|
|
89587
89605
|
};
|
|
89588
|
-
}, [I.current?.cesiumElement]),
|
|
89606
|
+
}, [I.current?.cesiumElement]), Ie(() => {
|
|
89589
89607
|
const q = I.current?.cesiumElement;
|
|
89590
89608
|
!q || q.isDestroyed() || q.scene.requestRender();
|
|
89591
89609
|
});
|
|
@@ -89630,13 +89648,13 @@ const I9e = ({
|
|
|
89630
89648
|
ie
|
|
89631
89649
|
]
|
|
89632
89650
|
);
|
|
89633
|
-
|
|
89651
|
+
Ie(() => {
|
|
89634
89652
|
const q = I.current?.cesiumElement?.scene.globe;
|
|
89635
89653
|
if (q) {
|
|
89636
89654
|
const ue = q._surface;
|
|
89637
89655
|
ue && (ue.tileProvider._debug.wireframe = t?.debug?.showGlobeWireframe ?? !1);
|
|
89638
89656
|
}
|
|
89639
|
-
}, [t?.debug?.showGlobeWireframe]),
|
|
89657
|
+
}, [t?.debug?.showGlobeWireframe]), Ie(() => {
|
|
89640
89658
|
n && l?.current?.commit({
|
|
89641
89659
|
cmd: "SET_TIME",
|
|
89642
89660
|
payload: {
|
|
@@ -90586,11 +90604,11 @@ function $9e(e, t) {
|
|
|
90586
90604
|
const Um = Fi(
|
|
90587
90605
|
no(({ entities: e, ...t }, n) => {
|
|
90588
90606
|
const { viewer: i } = si(), r = i?.scene, o = i?.entities, s = e ?? o, [a, c] = ot(() => new po(t));
|
|
90589
|
-
return
|
|
90607
|
+
return Ie(() => {
|
|
90590
90608
|
c(new po(t));
|
|
90591
|
-
}, [t.id]),
|
|
90609
|
+
}, [t.id]), Ie(() => (s?.add(a), () => {
|
|
90592
90610
|
s?.remove(a), r?.requestRender();
|
|
90593
|
-
}), [r, s, a]),
|
|
90611
|
+
}), [r, s, a]), Ie(() => $9e(n, a), [n, a]), Object.assign(a, Tc(t, "id")), r?.requestRender(), null;
|
|
90594
90612
|
})
|
|
90595
90613
|
), e4e = {
|
|
90596
90614
|
padding: "5px",
|
|
@@ -90603,7 +90621,7 @@ function vZ(e) {
|
|
|
90603
90621
|
const t = de(null);
|
|
90604
90622
|
return t.current === null && (t.current = e()), t.current;
|
|
90605
90623
|
}
|
|
90606
|
-
const t4e = typeof window < "u", n4e = t4e ? Ur :
|
|
90624
|
+
const t4e = typeof window < "u", n4e = t4e ? Ur : Ie, SE = /* @__PURE__ */ Qo(null);
|
|
90607
90625
|
function TE(e, t) {
|
|
90608
90626
|
e.indexOf(t) === -1 && e.push(t);
|
|
90609
90627
|
}
|
|
@@ -94394,7 +94412,7 @@ function zze(e = !0) {
|
|
|
94394
94412
|
if (t === null)
|
|
94395
94413
|
return [!0, null];
|
|
94396
94414
|
const { isPresent: n, onExitComplete: i, register: r } = t, o = dW();
|
|
94397
|
-
|
|
94415
|
+
Ie(() => {
|
|
94398
94416
|
if (e)
|
|
94399
94417
|
return r(o);
|
|
94400
94418
|
}, [e]);
|
|
@@ -94699,7 +94717,7 @@ function iNe(e, t, n, i, r, o) {
|
|
|
94699
94717
|
const g = n[ck], v = de(!!g && typeof window < "u" && !window.MotionHandoffIsComplete?.(g) && window.MotionHasOptimisedAnimation?.(g));
|
|
94700
94718
|
return n4e(() => {
|
|
94701
94719
|
f.current = !0, p && (y.current = !0, window.MotionIsMounted = !0, p.updateFeatures(), p.scheduleRenderMicrotask(), v.current && p.animationState && p.animationState.animateChanges());
|
|
94702
|
-
}),
|
|
94720
|
+
}), Ie(() => {
|
|
94703
94721
|
p && (!v.current && p.animationState && p.animationState.animateChanges(), v.current && (queueMicrotask(() => {
|
|
94704
94722
|
window.MotionHandoffMarkAsComplete?.(g);
|
|
94705
94723
|
}), v.current = !1), p.enteringChildren = void 0);
|
|
@@ -95543,7 +95561,7 @@ function jG(e) {
|
|
|
95543
95561
|
const t = vZ(() => ou(e)), { isStatic: n } = wi(JE);
|
|
95544
95562
|
if (n) {
|
|
95545
95563
|
const [, i] = ot(e);
|
|
95546
|
-
|
|
95564
|
+
Ie(() => t.on("change", i), []);
|
|
95547
95565
|
}
|
|
95548
95566
|
return t;
|
|
95549
95567
|
}
|
|
@@ -96310,7 +96328,7 @@ const iXe = ({
|
|
|
96310
96328
|
useWebVR: !!n?.scene?.vr || void 0,
|
|
96311
96329
|
debugShowFramesPerSecond: !!n?.debug?.showFramesPerSecond,
|
|
96312
96330
|
verticalExaggerationRelativeHeight: n?.scene?.verticalExaggerationRelativeHeight,
|
|
96313
|
-
verticalExaggeration: n?.scene?.verticalExaggeration
|
|
96331
|
+
verticalExaggeration: n?.terrain?.enabled ? n?.scene?.verticalExaggeration : 1
|
|
96314
96332
|
}
|
|
96315
96333
|
),
|
|
96316
96334
|
/* @__PURE__ */ ae.jsx(Aoe, { show: n?.sky?.skyBox?.show ?? !0 }),
|
|
@@ -96373,7 +96391,7 @@ function cXe({ error: e, resetErrorBoundary: t }) {
|
|
|
96373
96391
|
/* @__PURE__ */ ae.jsx("p", { children: /* @__PURE__ */ ae.jsx("button", { style: { color: "#fff" }, onClick: t, children: "Retry" }) })
|
|
96374
96392
|
] });
|
|
96375
96393
|
}
|
|
96376
|
-
const lXe = "0.0.7-alpha.
|
|
96394
|
+
const lXe = "0.0.7-alpha.69", uXe = ({ viewerProperty: e }) => {
|
|
96377
96395
|
const t = de(e);
|
|
96378
96396
|
t.current = e;
|
|
96379
96397
|
const n = he(
|
|
@@ -96387,7 +96405,7 @@ const lXe = "0.0.7-alpha.67", uXe = ({ viewerProperty: e }) => {
|
|
|
96387
96405
|
}),
|
|
96388
96406
|
[]
|
|
96389
96407
|
);
|
|
96390
|
-
|
|
96408
|
+
Ie(() => {
|
|
96391
96409
|
window.reearth_core = n;
|
|
96392
96410
|
}, [n]);
|
|
96393
96411
|
}, hXe = 768, dXe = ({ wrapperRef: e }) => {
|
|
@@ -96397,7 +96415,7 @@ const lXe = "0.0.7-alpha.67", uXe = ({ viewerProperty: e }) => {
|
|
|
96397
96415
|
isMobile: void 0,
|
|
96398
96416
|
query: t
|
|
96399
96417
|
});
|
|
96400
|
-
return
|
|
96418
|
+
return Ie(() => {
|
|
96401
96419
|
const r = new ResizeObserver((o) => {
|
|
96402
96420
|
const [s] = o;
|
|
96403
96421
|
let a, c;
|
|
@@ -96458,7 +96476,7 @@ function pXe({
|
|
|
96458
96476
|
t || "default",
|
|
96459
96477
|
s
|
|
96460
96478
|
);
|
|
96461
|
-
|
|
96479
|
+
Ie(() => {
|
|
96462
96480
|
X === "default" && h?.current?.engine?.setCursor("auto");
|
|
96463
96481
|
}, [X]);
|
|
96464
96482
|
const x = Kx[X ?? "default"], w = de(void 0), R = se((Be) => {
|
|
@@ -96508,10 +96526,10 @@ function pXe({
|
|
|
96508
96526
|
},
|
|
96509
96527
|
[l]
|
|
96510
96528
|
);
|
|
96511
|
-
|
|
96529
|
+
Ie(() => {
|
|
96512
96530
|
n && (h.current?.engine?.lookAtLayer(n), a?.(void 0));
|
|
96513
96531
|
}, [n, a]);
|
|
96514
|
-
const [
|
|
96532
|
+
const [Me, we] = ot(!1), Ue = se(() => {
|
|
96515
96533
|
we(!0);
|
|
96516
96534
|
}, []), Ye = se(
|
|
96517
96535
|
(Be, Ct, Yt) => {
|
|
@@ -96572,7 +96590,7 @@ function pXe({
|
|
|
96572
96590
|
selectedFeature: y,
|
|
96573
96591
|
camera: M,
|
|
96574
96592
|
featureFlags: x,
|
|
96575
|
-
isLayerDragging:
|
|
96593
|
+
isLayerDragging: Me,
|
|
96576
96594
|
timelineManagerRef: C,
|
|
96577
96595
|
cameraForceHorizontalRoll: V,
|
|
96578
96596
|
coreContextValue: Qe,
|
|
@@ -96602,7 +96620,7 @@ function qG(e, t) {
|
|
|
96602
96620
|
},
|
|
96603
96621
|
[t]
|
|
96604
96622
|
);
|
|
96605
|
-
return
|
|
96623
|
+
return Ie(() => {
|
|
96606
96624
|
i(e);
|
|
96607
96625
|
}, [e]), [n, r];
|
|
96608
96626
|
}
|