@reearth/core 0.0.7-alpha.41 → 0.0.7-alpha.42
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 +153 -153
- package/dist/core.umd.cjs +2 -2
- package/package.json +1 -1
- package/src/engines/Cesium/core/presets.ts +1 -1
package/dist/core.js
CHANGED
|
@@ -400,7 +400,7 @@ function requireReactJsxRuntime_development() {
|
|
|
400
400
|
ref: !0,
|
|
401
401
|
__self: !0,
|
|
402
402
|
__source: !0
|
|
403
|
-
}, Hf,
|
|
403
|
+
}, Hf, xf;
|
|
404
404
|
function wf(al) {
|
|
405
405
|
if (Xd.call(al, "ref")) {
|
|
406
406
|
var tf = Object.getOwnPropertyDescriptor(al, "ref").get;
|
|
@@ -420,7 +420,7 @@ function requireReactJsxRuntime_development() {
|
|
|
420
420
|
function Nf(al, tf) {
|
|
421
421
|
typeof al.ref == "string" && Pf.current;
|
|
422
422
|
}
|
|
423
|
-
function
|
|
423
|
+
function vf(al, tf) {
|
|
424
424
|
{
|
|
425
425
|
var lf = function() {
|
|
426
426
|
Hf || (Hf = !0, se("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", tf));
|
|
@@ -434,7 +434,7 @@ function requireReactJsxRuntime_development() {
|
|
|
434
434
|
function Ff(al, tf) {
|
|
435
435
|
{
|
|
436
436
|
var lf = function() {
|
|
437
|
-
|
|
437
|
+
xf || (xf = !0, se("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", tf));
|
|
438
438
|
};
|
|
439
439
|
lf.isReactWarning = !0, Object.defineProperty(al, "ref", {
|
|
440
440
|
get: lf,
|
|
@@ -484,7 +484,7 @@ function requireReactJsxRuntime_development() {
|
|
|
484
484
|
}
|
|
485
485
|
if (Vf || Gf) {
|
|
486
486
|
var Zf = typeof al == "function" ? al.displayName || al.name || "Unknown" : al;
|
|
487
|
-
Vf &&
|
|
487
|
+
Vf && vf(Mf, Zf), Gf && Ff(Mf, Zf);
|
|
488
488
|
}
|
|
489
489
|
return Uf(al, Vf, Gf, Lf, yf, Pf.current, Mf);
|
|
490
490
|
}
|
|
@@ -4502,7 +4502,7 @@ function log2(t) {
|
|
|
4502
4502
|
return Math$1.log2(t);
|
|
4503
4503
|
}
|
|
4504
4504
|
const rgbParenthesesMatcher$1 = /^rgba?\(\s*([0-9.]+%?)\s*,\s*([0-9.]+%?)\s*,\s*([0-9.]+%?)(?:\s*,\s*([0-9.]+))?\s*\)$/i, hslParenthesesMatcher$1 = /^hsla?\(\s*([0-9.]+)\s*,\s*([0-9.]+%)\s*,\s*([0-9.]+%)(?:\s*,\s*([0-9.]+))?\s*\)$/i;
|
|
4505
|
-
let Color$2 = class
|
|
4505
|
+
let Color$2 = class vp {
|
|
4506
4506
|
constructor(n, o, s, c) {
|
|
4507
4507
|
Rf(this, "red");
|
|
4508
4508
|
Rf(this, "green");
|
|
@@ -4523,19 +4523,19 @@ let Color$2 = class xp {
|
|
|
4523
4523
|
return o;
|
|
4524
4524
|
let s = rgbaMatcher$1.exec(n);
|
|
4525
4525
|
if (s !== null) {
|
|
4526
|
-
const c = new
|
|
4526
|
+
const c = new vp();
|
|
4527
4527
|
return c.red = parseInt(s[1], 16) / 15, c.green = parseInt(s[2], 16) / 15, c.blue = parseInt(s[3], 16) / 15, c.alpha = parseInt(defaultValue$1(s[4], "f"), 16) / 15, c;
|
|
4528
4528
|
}
|
|
4529
4529
|
if (s = rrggbbaaMatcher$1.exec(n), s !== null) {
|
|
4530
|
-
const c = new
|
|
4530
|
+
const c = new vp();
|
|
4531
4531
|
return c.red = parseInt(s[1], 16) / 255, c.green = parseInt(s[2], 16) / 255, c.blue = parseInt(s[3], 16) / 255, c.alpha = parseInt(defaultValue$1(s[4], "ff"), 16) / 255, c;
|
|
4532
4532
|
}
|
|
4533
4533
|
if (s = rgbParenthesesMatcher$1.exec(n), s !== null) {
|
|
4534
|
-
const c = new
|
|
4534
|
+
const c = new vp();
|
|
4535
4535
|
return c.red = parseFloat(s[1]) / (s[1].substr(-1) === "%" ? 100 : 255), c.green = parseFloat(s[2]) / (s[2].substr(-1) === "%" ? 100 : 255), c.blue = parseFloat(s[3]) / (s[3].substr(-1) === "%" ? 100 : 255), c.alpha = parseFloat(defaultValue$1(s[4], "1.0")), c;
|
|
4536
4536
|
}
|
|
4537
4537
|
if (s = hslParenthesesMatcher$1.exec(n), s !== null)
|
|
4538
|
-
return
|
|
4538
|
+
return vp.fromHsl(
|
|
4539
4539
|
parseFloat(s[1]) / 360,
|
|
4540
4540
|
parseFloat(s[2]) / 100,
|
|
4541
4541
|
parseFloat(s[3]) / 100,
|
|
@@ -4545,30 +4545,30 @@ let Color$2 = class xp {
|
|
|
4545
4545
|
static fromHsl(n, o, s, c) {
|
|
4546
4546
|
if (n = defaultValue$1(n, 0) % 1, o = defaultValue$1(o, 0), s = defaultValue$1(s, 0), c = defaultValue$1(c, 1), n && o && s && c) {
|
|
4547
4547
|
let d = s, h = s, p = s;
|
|
4548
|
-
const y = new
|
|
4548
|
+
const y = new vp();
|
|
4549
4549
|
if (o !== 0) {
|
|
4550
4550
|
let S;
|
|
4551
4551
|
s < 0.5 ? S = s * (1 + o) : S = s + o - s * o;
|
|
4552
4552
|
const P = 2 * s - S;
|
|
4553
4553
|
d = hue2rgb$1(P, S, n + 1 / 3), h = hue2rgb$1(P, S, n), p = hue2rgb$1(P, S, n - 1 / 3);
|
|
4554
4554
|
}
|
|
4555
|
-
return typeof y > "u" ? new
|
|
4555
|
+
return typeof y > "u" ? new vp(d, h, p, c) : (y.red = d, y.green = h, y.blue = p, y.alpha = c, y);
|
|
4556
4556
|
}
|
|
4557
4557
|
}
|
|
4558
4558
|
toCssHexString() {
|
|
4559
|
-
let n =
|
|
4559
|
+
let n = vp.floatToByte(this.red).toString(16);
|
|
4560
4560
|
n.length < 2 && (n = `0${n}`);
|
|
4561
|
-
let o =
|
|
4561
|
+
let o = vp.floatToByte(this.green).toString(16);
|
|
4562
4562
|
o.length < 2 && (o = `0${o}`);
|
|
4563
|
-
let s =
|
|
4563
|
+
let s = vp.floatToByte(this.blue).toString(16);
|
|
4564
4564
|
if (s.length < 2 && (s = `0${s}`), this.alpha < 1) {
|
|
4565
|
-
let c =
|
|
4565
|
+
let c = vp.floatToByte(this.alpha).toString(16);
|
|
4566
4566
|
return c.length < 2 && (c = `0${c}`), `#${n}${o}${s}${c}`;
|
|
4567
4567
|
}
|
|
4568
4568
|
return `#${n}${o}${s}`.toUpperCase();
|
|
4569
4569
|
}
|
|
4570
4570
|
static fromBytes(n, o, s, c) {
|
|
4571
|
-
return n = this.byteToFloat(defaultValue$1(n, 255)), o =
|
|
4571
|
+
return n = this.byteToFloat(defaultValue$1(n, 255)), o = vp.byteToFloat(defaultValue$1(o, 255)), s = vp.byteToFloat(defaultValue$1(s, 255)), c = vp.byteToFloat(defaultValue$1(c, 255)), new vp(n, o, s, c);
|
|
4572
4572
|
}
|
|
4573
4573
|
};
|
|
4574
4574
|
function getColor(t) {
|
|
@@ -10766,11 +10766,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
10766
10766
|
for (nf = _f; cf = pd.heap[1], pd.heap[1] = pd.heap[pd.heap_len--], gf(pd, df, 1), sf = pd.heap[1], pd.heap[--pd.heap_max] = cf, pd.heap[--pd.heap_max] = sf, df[2 * nf] = df[2 * cf] + df[2 * sf], pd.depth[nf] = (pd.depth[cf] >= pd.depth[sf] ? pd.depth[cf] : pd.depth[sf]) + 1, df[2 * cf + 1] = df[2 * sf + 1] = nf, pd.heap[1] = nf++, gf(pd, df, 1), 2 <= pd.heap_len; )
|
|
10767
10767
|
;
|
|
10768
10768
|
pd.heap[--pd.heap_max] = pd.heap[1], function(Af, Hf) {
|
|
10769
|
-
var
|
|
10769
|
+
var xf, wf, Yf, Nf, vf, Ff, Uf = Hf.dyn_tree, Wf = Hf.max_code, Qf = Hf.stat_desc.static_tree, ep = Hf.stat_desc.has_stree, Bf = Hf.stat_desc.extra_bits, tp = Hf.stat_desc.extra_base, qf = Hf.stat_desc.max_length, ip = 0;
|
|
10770
10770
|
for (Nf = 0; Nf <= nt; Nf++)
|
|
10771
10771
|
Af.bl_count[Nf] = 0;
|
|
10772
|
-
for (Uf[2 * Af.heap[Af.heap_max] + 1] = 0,
|
|
10773
|
-
qf < (Nf = Uf[2 * Uf[2 * (wf = Af.heap[
|
|
10772
|
+
for (Uf[2 * Af.heap[Af.heap_max] + 1] = 0, xf = Af.heap_max + 1; xf < W; xf++)
|
|
10773
|
+
qf < (Nf = Uf[2 * Uf[2 * (wf = Af.heap[xf]) + 1] + 1] + 1) && (Nf = qf, ip++), Uf[2 * wf + 1] = Nf, Wf < wf || (Af.bl_count[Nf]++, vf = 0, tp <= wf && (vf = Bf[wf - tp]), Ff = Uf[2 * wf], Af.opt_len += Ff * (Nf + vf), ep && (Af.static_len += Ff * (Qf[2 * wf + 1] + vf)));
|
|
10774
10774
|
if (ip !== 0) {
|
|
10775
10775
|
do {
|
|
10776
10776
|
for (Nf = qf - 1; Af.bl_count[Nf] === 0; )
|
|
@@ -10779,7 +10779,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
10779
10779
|
} while (0 < ip);
|
|
10780
10780
|
for (Nf = qf; Nf !== 0; Nf--)
|
|
10781
10781
|
for (wf = Af.bl_count[Nf]; wf !== 0; )
|
|
10782
|
-
Wf < (Yf = Af.heap[--
|
|
10782
|
+
Wf < (Yf = Af.heap[--xf]) || (Uf[2 * Yf + 1] !== Nf && (Af.opt_len += (Nf - Uf[2 * Yf + 1]) * Uf[2 * Yf], Uf[2 * Yf + 1] = Nf), wf--);
|
|
10783
10783
|
}
|
|
10784
10784
|
}(pd, Zd), ff(df, Pf, pd.bl_count);
|
|
10785
10785
|
}
|
|
@@ -14848,7 +14848,7 @@ function useHooks$a({
|
|
|
14848
14848
|
[y]
|
|
14849
14849
|
), lt = useRef(S), _i = useCallback(
|
|
14850
14850
|
(Xd, gd) => {
|
|
14851
|
-
var Af, Hf,
|
|
14851
|
+
var Af, Hf, xf, wf, Yf;
|
|
14852
14852
|
const pd = y.get(Xd);
|
|
14853
14853
|
if (!pd)
|
|
14854
14854
|
return;
|
|
@@ -14869,7 +14869,7 @@ function useHooks$a({
|
|
|
14869
14869
|
extensionId: pd.compat.extensionId,
|
|
14870
14870
|
property: {
|
|
14871
14871
|
default: {
|
|
14872
|
-
...((
|
|
14872
|
+
...((xf = pd.compat.property) == null ? void 0 : xf.default) || {},
|
|
14873
14873
|
...nf.default || {}
|
|
14874
14874
|
}
|
|
14875
14875
|
}
|
|
@@ -14881,8 +14881,8 @@ function useHooks$a({
|
|
|
14881
14881
|
return;
|
|
14882
14882
|
pd.type === "simple" && ((wf = pd.data) != null && wf.value) && // If data isn't cachable, reuse layer id for performance.
|
|
14883
14883
|
DATA_CACHE_KEYS.some((Nf) => {
|
|
14884
|
-
var
|
|
14885
|
-
return !((
|
|
14884
|
+
var vf;
|
|
14885
|
+
return !((vf = pd.data) != null && vf[Nf]);
|
|
14886
14886
|
}) && Object.isExtensible(pd.data.value) && df.type === "simple" && ((Yf = df == null ? void 0 : df.data) != null && Yf.value) && (df.data.value.id = Xd);
|
|
14887
14887
|
const Cf = { id: Xd, ...omit(df, "id", "type", "children") }, pf = lt.current, _f = pf.findIndex((Nf) => Nf.id === Xd), Pf = _f < 0 ? [...pf, Cf] : [
|
|
14888
14888
|
...pf.slice(0, _f),
|
|
@@ -19973,15 +19973,15 @@ function useHooks$9({
|
|
|
19973
19973
|
Pf.current === "sketch" ? "default" : Pf.current
|
|
19974
19974
|
));
|
|
19975
19975
|
}, [mt]);
|
|
19976
|
-
const
|
|
19977
|
-
|
|
19976
|
+
const xf = useRef(mt);
|
|
19977
|
+
xf.current = mt, useEffect(() => {
|
|
19978
19978
|
rp.current || s !== "sketch" && Af.current && Hf.current();
|
|
19979
19979
|
}, [s, kt]);
|
|
19980
19980
|
const wf = useRef([]), Yf = useCallback((rf) => {
|
|
19981
19981
|
wf.current.push(rf);
|
|
19982
19982
|
}, []), Nf = useRef(Yf);
|
|
19983
19983
|
Nf.current = Yf;
|
|
19984
|
-
const
|
|
19984
|
+
const vf = useRef(void 0), Ff = useMemo(
|
|
19985
19985
|
() => Pe.context.catchedControlPointIndex,
|
|
19986
19986
|
[Pe.context.catchedControlPointIndex]
|
|
19987
19987
|
), Uf = useMemo(
|
|
@@ -19993,7 +19993,7 @@ function useHooks$9({
|
|
|
19993
19993
|
if (wf.current.forEach((bf) => {
|
|
19994
19994
|
bf(z);
|
|
19995
19995
|
}), z)
|
|
19996
|
-
|
|
19996
|
+
vf.current = z;
|
|
19997
19997
|
else {
|
|
19998
19998
|
if (Wf.current) {
|
|
19999
19999
|
Wf.current = !1;
|
|
@@ -20006,12 +20006,12 @@ function useHooks$9({
|
|
|
20006
20006
|
}
|
|
20007
20007
|
]), setTimeout(() => {
|
|
20008
20008
|
var bf, If, Xf;
|
|
20009
|
-
|
|
20009
|
+
vf.current && ((Xf = o.current) == null || Xf.selectFeatures([
|
|
20010
20010
|
{
|
|
20011
|
-
layerId: (bf =
|
|
20012
|
-
featureId: [(If =
|
|
20011
|
+
layerId: (bf = vf.current) == null ? void 0 : bf.layerId,
|
|
20012
|
+
featureId: [(If = vf.current) == null ? void 0 : If.feature.id]
|
|
20013
20013
|
}
|
|
20014
|
-
])),
|
|
20014
|
+
])), vf.current = void 0;
|
|
20015
20015
|
}, 50);
|
|
20016
20016
|
}
|
|
20017
20017
|
}, [o, z, wf]);
|
|
@@ -20582,7 +20582,7 @@ function Gt$1() {
|
|
|
20582
20582
|
ref: !0,
|
|
20583
20583
|
__self: !0,
|
|
20584
20584
|
__source: !0
|
|
20585
|
-
}, Hf,
|
|
20585
|
+
}, Hf, xf;
|
|
20586
20586
|
function wf(al) {
|
|
20587
20587
|
if (Xd.call(al, "ref")) {
|
|
20588
20588
|
var tf = Object.getOwnPropertyDescriptor(al, "ref").get;
|
|
@@ -20602,7 +20602,7 @@ function Gt$1() {
|
|
|
20602
20602
|
function Nf(al, tf) {
|
|
20603
20603
|
typeof al.ref == "string" && Pf.current;
|
|
20604
20604
|
}
|
|
20605
|
-
function
|
|
20605
|
+
function vf(al, tf) {
|
|
20606
20606
|
{
|
|
20607
20607
|
var lf = function() {
|
|
20608
20608
|
Hf || (Hf = !0, se("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", tf));
|
|
@@ -20616,7 +20616,7 @@ function Gt$1() {
|
|
|
20616
20616
|
function Ff(al, tf) {
|
|
20617
20617
|
{
|
|
20618
20618
|
var lf = function() {
|
|
20619
|
-
|
|
20619
|
+
xf || (xf = !0, se("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", tf));
|
|
20620
20620
|
};
|
|
20621
20621
|
lf.isReactWarning = !0, Object.defineProperty(al, "ref", {
|
|
20622
20622
|
get: lf,
|
|
@@ -20666,7 +20666,7 @@ function Gt$1() {
|
|
|
20666
20666
|
}
|
|
20667
20667
|
if (Vf || Gf) {
|
|
20668
20668
|
var Zf = typeof al == "function" ? al.displayName || al.name || "Unknown" : al;
|
|
20669
|
-
Vf &&
|
|
20669
|
+
Vf && vf(Mf, Zf), Gf && Ff(Mf, Zf);
|
|
20670
20670
|
}
|
|
20671
20671
|
return Uf(al, Vf, Gf, Lf, yf, Pf.current, Mf);
|
|
20672
20672
|
}
|
|
@@ -41564,8 +41564,8 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
|
|
|
41564
41564
|
endPlaneNormalScratch
|
|
41565
41565
|
);
|
|
41566
41566
|
Af = Cartesian3.normalize(Af, Af);
|
|
41567
|
-
const Hf = cf / ba,
|
|
41568
|
-
let wf = 0, Yf, Nf,
|
|
41567
|
+
const Hf = cf / ba, xf = uf / ba;
|
|
41568
|
+
let wf = 0, Yf, Nf, vf, Ff = 0, Uf = 0;
|
|
41569
41569
|
if (h) {
|
|
41570
41570
|
wf = Cartesian3.distance(Xd, gd), Yf = EncodedCartesian3.fromCartesian(
|
|
41571
41571
|
Xd,
|
|
@@ -41574,9 +41574,9 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
|
|
|
41574
41574
|
gd,
|
|
41575
41575
|
Xd,
|
|
41576
41576
|
forwardOffset2DScratch
|
|
41577
|
-
),
|
|
41578
|
-
const rf =
|
|
41579
|
-
|
|
41577
|
+
), vf = Cartesian3.normalize(Nf, right2DScratch);
|
|
41578
|
+
const rf = vf.x;
|
|
41579
|
+
vf.x = vf.y, vf.y = -rf, Ff = wf / La, Uf = ff / La;
|
|
41580
41580
|
}
|
|
41581
41581
|
for (Sc = 0; Sc < 8; Sc++) {
|
|
41582
41582
|
const rf = Nl + Sc * 4, bf = Xs + Sc * 2, If = rf + 3, Xf = Sc < 4 ? 1 : -1, jf = Sc === 2 || Sc === 3 || Sc === 6 || Sc === 7 ? 1 : -1;
|
|
@@ -41593,8 +41593,8 @@ function generateGeometryAttributes(t, n, o, s, c, d, h) {
|
|
|
41593
41593
|
kt,
|
|
41594
41594
|
rf
|
|
41595
41595
|
);
|
|
41596
|
-
let np =
|
|
41597
|
-
np === 0 && jf < 0 && (np = 9), kt[If] = np, h && (mn[rf] = Yf.high.x, mn[rf + 1] = Yf.high.y, mn[rf + 2] = Yf.low.x, mn[rf + 3] = Yf.low.y, zi[rf] = -pd.y, zi[rf + 1] = pd.x, zi[rf + 2] = Zd.y, zi[rf + 3] = -Zd.x, pi[rf] = Nf.x, pi[rf + 1] = Nf.y, pi[rf + 2] =
|
|
41596
|
+
let np = xf * jf;
|
|
41597
|
+
np === 0 && jf < 0 && (np = 9), kt[If] = np, h && (mn[rf] = Yf.high.x, mn[rf + 1] = Yf.high.y, mn[rf + 2] = Yf.low.x, mn[rf + 3] = Yf.low.y, zi[rf] = -pd.y, zi[rf + 1] = pd.x, zi[rf + 2] = Zd.y, zi[rf + 3] = -Zd.x, pi[rf] = Nf.x, pi[rf + 1] = Nf.y, pi[rf + 2] = vf.x, pi[rf + 3] = vf.y, Sa[bf] = Ff * Xf, np = Uf * jf, np === 0 && jf < 0 && (np = 9), Sa[bf + 1] = np);
|
|
41598
41598
|
}
|
|
41599
41599
|
const Wf = adjustHeightStartBottomScratch, Qf = adjustHeightEndBottomScratch, ep = adjustHeightStartTopScratch, Bf = adjustHeightEndTopScratch, tp = Rectangle.fromCartographicArray(
|
|
41600
41600
|
getHeightCartographics,
|
|
@@ -64347,7 +64347,7 @@ const tiles = {
|
|
|
64347
64347
|
accessToken: t
|
|
64348
64348
|
}).catch(console.error),
|
|
64349
64349
|
open_street_map: () => new OpenStreetMapImageryProvider({
|
|
64350
|
-
url: "https://tile.openstreetmap.org
|
|
64350
|
+
url: "https://tile.openstreetmap.org",
|
|
64351
64351
|
credit: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
|
|
64352
64352
|
}),
|
|
64353
64353
|
black_marble: ({ cesiumIonAccessToken: t } = {}) => IonImageryProvider.fromAssetId(3812, {
|
|
@@ -66163,7 +66163,7 @@ const Up = class Up {
|
|
|
66163
66163
|
Hp = new WeakMap(), // private constructor
|
|
66164
66164
|
Jf(Up, Hp, !1);
|
|
66165
66165
|
let Stack = Up;
|
|
66166
|
-
var wp, _p, Vp, Rp, $p, hp, Mp, fp, sp, $f,
|
|
66166
|
+
var wp, _p, Vp, Rp, $p, hp, Mp, fp, sp, $f, xp, Ep, Cp, gp, Pp, yp, Gp, Dp, Ip, Lp, Xp, Sp, qp, ig, Wp, Np, _m, Tp, tg, lg, Zp, Yp, Om, Op, kp, Fp, zp, Am, rg, jp, qm, Kp, eg, ap, lp, Dm, ag, Bp, Qp;
|
|
66167
66167
|
const og = class og {
|
|
66168
66168
|
constructor(n) {
|
|
66169
66169
|
Jf(this, qp);
|
|
@@ -66250,7 +66250,7 @@ const og = class og {
|
|
|
66250
66250
|
Jf(this, fp, void 0);
|
|
66251
66251
|
Jf(this, sp, void 0);
|
|
66252
66252
|
Jf(this, $f, void 0);
|
|
66253
|
-
Jf(this,
|
|
66253
|
+
Jf(this, xp, void 0);
|
|
66254
66254
|
Jf(this, Ep, void 0);
|
|
66255
66255
|
Jf(this, Cp, void 0);
|
|
66256
66256
|
Jf(this, gp, void 0);
|
|
@@ -66294,7 +66294,7 @@ const og = class og {
|
|
|
66294
66294
|
}
|
|
66295
66295
|
if (nt !== void 0 && typeof nt != "function")
|
|
66296
66296
|
throw new TypeError("fetchMethod must be a function if specified");
|
|
66297
|
-
if (zf(this, $p, nt), zf(this, Xp, !!nt), zf(this, fp, /* @__PURE__ */ new Map()), zf(this, sp, new Array(o).fill(void 0)), zf(this, $f, new Array(o).fill(void 0)), zf(this,
|
|
66297
|
+
if (zf(this, $p, nt), zf(this, Xp, !!nt), zf(this, fp, /* @__PURE__ */ new Map()), zf(this, sp, new Array(o).fill(void 0)), zf(this, $f, new Array(o).fill(void 0)), zf(this, xp, new pi(o)), zf(this, Ep, new pi(o)), zf(this, Cp, 0), zf(this, gp, 0), zf(this, Pp, Stack.create(o)), zf(this, hp, 0), zf(this, Mp, 0), typeof S == "function" && zf(this, Vp, S), typeof P == "function" ? (zf(this, Rp, P), zf(this, yp, [])) : (zf(this, Rp, void 0), zf(this, yp, void 0)), zf(this, Lp, !!ef(this, Vp)), zf(this, Sp, !!ef(this, Rp)), this.noDisposeOnSet = !!L, this.noUpdateTTL = !!F, this.noDeleteOnFetchRejection = !!Pe, this.allowStaleOnFetchRejection = !!mt, this.allowStaleOnFetchAbort = !!kt, this.ignoreFetchAbort = !!mn, this.maxEntrySize !== 0) {
|
|
66298
66298
|
if (ef(this, _p) !== 0 && !isPosInt(ef(this, _p)))
|
|
66299
66299
|
throw new TypeError("maxSize must be a positive integer if specified");
|
|
66300
66300
|
if (!isPosInt(this.maxEntrySize))
|
|
@@ -66331,7 +66331,7 @@ const og = class og {
|
|
|
66331
66331
|
keyMap: ef(n, fp),
|
|
66332
66332
|
keyList: ef(n, sp),
|
|
66333
66333
|
valList: ef(n, $f),
|
|
66334
|
-
next: ef(n,
|
|
66334
|
+
next: ef(n, xp),
|
|
66335
66335
|
prev: ef(n, Ep),
|
|
66336
66336
|
get head() {
|
|
66337
66337
|
return ef(n, Cp);
|
|
@@ -66571,7 +66571,7 @@ const og = class og {
|
|
|
66571
66571
|
return y && (y.set = "miss", y.maxEntrySizeExceeded = !0), this.delete(n), this;
|
|
66572
66572
|
let L = ef(this, hp) === 0 ? void 0 : ef(this, fp).get(n);
|
|
66573
66573
|
if (L === void 0)
|
|
66574
|
-
L = ef(this, hp) === 0 ? ef(this, gp) : ef(this, Pp).length !== 0 ? ef(this, Pp).pop() : ef(this, hp) === ef(this, wp) ? kf(this, jp, qm).call(this, !1) : ef(this, hp), ef(this, sp)[L] = n, ef(this, $f)[L] = o, ef(this, fp).set(n, L), ef(this,
|
|
66574
|
+
L = ef(this, hp) === 0 ? ef(this, gp) : ef(this, Pp).length !== 0 ? ef(this, Pp).pop() : ef(this, hp) === ef(this, wp) ? kf(this, jp, qm).call(this, !1) : ef(this, hp), ef(this, sp)[L] = n, ef(this, $f)[L] = o, ef(this, fp).set(n, L), ef(this, xp)[ef(this, gp)] = L, ef(this, Ep)[L] = ef(this, gp), zf(this, gp, L), jm(this, hp)._++, ef(this, Yp).call(this, L, P, y), y && (y.set = "add"), S = !1;
|
|
66575
66575
|
else {
|
|
66576
66576
|
kf(this, Bp, Qp).call(this, L);
|
|
66577
66577
|
const W = ef(this, $f)[L];
|
|
@@ -66744,7 +66744,7 @@ const og = class og {
|
|
|
66744
66744
|
else {
|
|
66745
66745
|
ef(this, Zp).call(this, p);
|
|
66746
66746
|
const y = ef(this, $f)[p];
|
|
66747
|
-
kf(this, ap, lp).call(this, y) ? y.__abortController.abort(new Error("deleted")) : (ef(this, Lp) || ef(this, Sp)) && (ef(this, Lp) && ((s = ef(this, Vp)) == null || s.call(this, y, n, "delete")), ef(this, Sp) && ((c = ef(this, yp)) == null || c.push([y, n, "delete"]))), ef(this, fp).delete(n), ef(this, sp)[p] = void 0, ef(this, $f)[p] = void 0, p === ef(this, gp) ? zf(this, gp, ef(this, Ep)[p]) : p === ef(this, Cp) ? zf(this, Cp, ef(this,
|
|
66747
|
+
kf(this, ap, lp).call(this, y) ? y.__abortController.abort(new Error("deleted")) : (ef(this, Lp) || ef(this, Sp)) && (ef(this, Lp) && ((s = ef(this, Vp)) == null || s.call(this, y, n, "delete")), ef(this, Sp) && ((c = ef(this, yp)) == null || c.push([y, n, "delete"]))), ef(this, fp).delete(n), ef(this, sp)[p] = void 0, ef(this, $f)[p] = void 0, p === ef(this, gp) ? zf(this, gp, ef(this, Ep)[p]) : p === ef(this, Cp) ? zf(this, Cp, ef(this, xp)[p]) : (ef(this, xp)[ef(this, Ep)[p]] = ef(this, xp)[p], ef(this, Ep)[ef(this, xp)[p]] = ef(this, Ep)[p]), jm(this, hp)._--, ef(this, Pp).push(p);
|
|
66748
66748
|
}
|
|
66749
66749
|
}
|
|
66750
66750
|
if (ef(this, Sp) && ((d = ef(this, yp)) != null && d.length)) {
|
|
@@ -66777,7 +66777,7 @@ const og = class og {
|
|
|
66777
66777
|
}
|
|
66778
66778
|
}
|
|
66779
66779
|
};
|
|
66780
|
-
wp = new WeakMap(), _p = new WeakMap(), Vp = new WeakMap(), Rp = new WeakMap(), $p = new WeakMap(), hp = new WeakMap(), Mp = new WeakMap(), fp = new WeakMap(), sp = new WeakMap(), $f = new WeakMap(),
|
|
66780
|
+
wp = new WeakMap(), _p = new WeakMap(), Vp = new WeakMap(), Rp = new WeakMap(), $p = new WeakMap(), hp = new WeakMap(), Mp = new WeakMap(), fp = new WeakMap(), sp = new WeakMap(), $f = new WeakMap(), xp = new WeakMap(), Ep = new WeakMap(), Cp = new WeakMap(), gp = new WeakMap(), Pp = new WeakMap(), yp = new WeakMap(), Gp = new WeakMap(), Dp = new WeakMap(), Ip = new WeakMap(), Lp = new WeakMap(), Xp = new WeakMap(), Sp = new WeakMap(), qp = new WeakSet(), ig = function() {
|
|
66781
66781
|
const n = new ZeroArray(ef(this, wp)), o = new ZeroArray(ef(this, wp));
|
|
66782
66782
|
zf(this, Ip, n), zf(this, Dp, o), zf(this, _m, (d, h, p = perf.now()) => {
|
|
66783
66783
|
if (o[d] = h !== 0 ? p : 0, n[d] = h, h !== 0 && this.ttlAutopurge) {
|
|
@@ -66839,13 +66839,13 @@ wp = new WeakMap(), _p = new WeakMap(), Vp = new WeakMap(), Rp = new WeakMap(),
|
|
|
66839
66839
|
}, Fp = new WeakSet(), zp = function* ({ allowStale: n = this.allowStale } = {}) {
|
|
66840
66840
|
if (ef(this, hp))
|
|
66841
66841
|
for (let o = ef(this, Cp); !(!kf(this, Am, rg).call(this, o) || ((n || !ef(this, Tp).call(this, o)) && (yield o), o === ef(this, gp))); )
|
|
66842
|
-
o = ef(this,
|
|
66842
|
+
o = ef(this, xp)[o];
|
|
66843
66843
|
}, Am = new WeakSet(), rg = function(n) {
|
|
66844
66844
|
return n !== void 0 && ef(this, fp).get(ef(this, sp)[n]) === n;
|
|
66845
66845
|
}, jp = new WeakSet(), qm = function(n) {
|
|
66846
66846
|
var d, h;
|
|
66847
66847
|
const o = ef(this, Cp), s = ef(this, sp)[o], c = ef(this, $f)[o];
|
|
66848
|
-
return ef(this, Xp) && kf(this, ap, lp).call(this, c) ? c.__abortController.abort(new Error("evicted")) : (ef(this, Lp) || ef(this, Sp)) && (ef(this, Lp) && ((d = ef(this, Vp)) == null || d.call(this, c, s, "evict")), ef(this, Sp) && ((h = ef(this, yp)) == null || h.push([c, s, "evict"]))), ef(this, Zp).call(this, o), n && (ef(this, sp)[o] = void 0, ef(this, $f)[o] = void 0, ef(this, Pp).push(o)), ef(this, hp) === 1 ? (zf(this, Cp, zf(this, gp, 0)), ef(this, Pp).length = 0) : zf(this, Cp, ef(this,
|
|
66848
|
+
return ef(this, Xp) && kf(this, ap, lp).call(this, c) ? c.__abortController.abort(new Error("evicted")) : (ef(this, Lp) || ef(this, Sp)) && (ef(this, Lp) && ((d = ef(this, Vp)) == null || d.call(this, c, s, "evict")), ef(this, Sp) && ((h = ef(this, yp)) == null || h.push([c, s, "evict"]))), ef(this, Zp).call(this, o), n && (ef(this, sp)[o] = void 0, ef(this, $f)[o] = void 0, ef(this, Pp).push(o)), ef(this, hp) === 1 ? (zf(this, Cp, zf(this, gp, 0)), ef(this, Pp).length = 0) : zf(this, Cp, ef(this, xp)[o]), ef(this, fp).delete(s), jm(this, hp)._--, o;
|
|
66849
66849
|
}, Kp = new WeakSet(), eg = function(n, o, s, c) {
|
|
66850
66850
|
const d = o === void 0 ? void 0 : ef(this, $f)[o];
|
|
66851
66851
|
if (kf(this, ap, lp).call(this, d))
|
|
@@ -66890,9 +66890,9 @@ wp = new WeakMap(), _p = new WeakMap(), Vp = new WeakMap(), Rp = new WeakMap(),
|
|
|
66890
66890
|
const o = n;
|
|
66891
66891
|
return !!o && o instanceof Promise && o.hasOwnProperty("__staleWhileFetching") && o.__abortController instanceof AbortController;
|
|
66892
66892
|
}, Dm = new WeakSet(), ag = function(n, o) {
|
|
66893
|
-
ef(this, Ep)[o] = n, ef(this,
|
|
66893
|
+
ef(this, Ep)[o] = n, ef(this, xp)[n] = o;
|
|
66894
66894
|
}, Bp = new WeakSet(), Qp = function(n) {
|
|
66895
|
-
n !== ef(this, gp) && (n === ef(this, Cp) ? zf(this, Cp, ef(this,
|
|
66895
|
+
n !== ef(this, gp) && (n === ef(this, Cp) ? zf(this, Cp, ef(this, xp)[n]) : kf(this, Dm, ag).call(this, ef(this, Ep)[n], ef(this, xp)[n]), kf(this, Dm, ag).call(this, ef(this, gp), n), zf(this, gp, n));
|
|
66896
66896
|
};
|
|
66897
66897
|
let LRUCache = og;
|
|
66898
66898
|
const SIDE_PLANES = [
|
|
@@ -71695,24 +71695,24 @@ function Marker({ property: t, id: n, isVisible: o, geometry: s, layer: c, featu
|
|
|
71695
71695
|
), Xd = useMemo(() => {
|
|
71696
71696
|
if (Wa)
|
|
71697
71697
|
return Wa;
|
|
71698
|
-
const
|
|
71698
|
+
const xf = 15, wf = (of ? Ef : P) / 2 + xf, Yf = (of ? Sf : P) / 2 + xf;
|
|
71699
71699
|
return new Cartesian2$1(
|
|
71700
71700
|
se.includes("left") || se.includes("right") ? wf * (se.includes("left") ? -1 : 1) : 0,
|
|
71701
71701
|
se.includes("top") || se.includes("bottom") ? Yf * (se.includes("top") ? -1 : 1) : 0
|
|
71702
71702
|
);
|
|
71703
71703
|
}, [of, Ef, P, Sf, se, Wa]), gd = useMemo(() => Color$3.WHITE.withAlpha(0.4), []), pd = useRef(null), Zd = getTag((Hf = pd.current) == null ? void 0 : Hf.cesiumElement), cf = useMemo(
|
|
71704
71704
|
() => {
|
|
71705
|
-
var
|
|
71705
|
+
var xf, wf;
|
|
71706
71706
|
return toColor$1(
|
|
71707
|
-
Zd != null && Zd.isFeatureSelected && typeof ((
|
|
71707
|
+
Zd != null && Zd.isFeatureSelected && typeof ((xf = c == null ? void 0 : c.marker) == null ? void 0 : xf.selectedFeatureColor) == "string" ? (wf = c.marker) == null ? void 0 : wf.selectedFeatureColor : ma
|
|
71708
71708
|
);
|
|
71709
71709
|
},
|
|
71710
71710
|
[ma, c, Zd == null ? void 0 : Zd.isFeatureSelected]
|
|
71711
71711
|
), sf = useMemo(
|
|
71712
71712
|
() => {
|
|
71713
|
-
var
|
|
71713
|
+
var xf, wf;
|
|
71714
71714
|
return toColor$1(
|
|
71715
|
-
Zd != null && Zd.isFeatureSelected && typeof ((
|
|
71715
|
+
Zd != null && Zd.isFeatureSelected && typeof ((xf = c == null ? void 0 : c.marker) == null ? void 0 : xf.selectedFeatureColor) == "string" ? (wf = c.marker) == null ? void 0 : wf.selectedFeatureColor : F
|
|
71716
71716
|
);
|
|
71717
71717
|
},
|
|
71718
71718
|
[F, c, Zd == null ? void 0 : Zd.isFeatureSelected]
|
|
@@ -82606,7 +82606,7 @@ const useDrawClipping = ({
|
|
|
82606
82606
|
onComputedFeatureFetch: y,
|
|
82607
82607
|
onLayerFetch: S
|
|
82608
82608
|
}) => {
|
|
82609
|
-
var Af, Hf,
|
|
82609
|
+
var Af, Hf, xf, wf, Yf, Nf;
|
|
82610
82610
|
const { viewer: P } = $e$1(), L = useRef(), { onLayerLoad: F, updateCredits: N } = useContext(), z = useRef(d == null ? void 0 : d.id);
|
|
82611
82611
|
z.current = d == null ? void 0 : d.id;
|
|
82612
82612
|
const {
|
|
@@ -82632,8 +82632,8 @@ const useDrawClipping = ({
|
|
|
82632
82632
|
builtinBoxProps: Sc,
|
|
82633
82633
|
allowEnterGround: ms
|
|
82634
82634
|
} = useClippingBox({ clipping: mt, boxId: n }), [Xs, yu] = useState(), { url: Nl, type: pu, idProperty: Ru, googleMapApiKey: Vd } = useData(d), Gd = !mn && !!Ru, [uf, ff] = useState(!1), mf = useRef(lt), hf = useMemo(() => {
|
|
82635
|
-
var
|
|
82636
|
-
return (!((
|
|
82635
|
+
var vf, Ff;
|
|
82636
|
+
return (!((vf = mf.current) != null && vf.length) || !((Ff = mf.current) != null && Ff.every(
|
|
82637
82637
|
(Uf, Wf) => {
|
|
82638
82638
|
var Qf, ep, Bf, tp, qf, ip;
|
|
82639
82639
|
return ((Qf = Uf.normal) == null ? void 0 : Qf.x) === ((ep = lt == null ? void 0 : lt[Wf].normal) == null ? void 0 : ep.x) && ((Bf = Uf.normal) == null ? void 0 : Bf.y) === ((tp = lt == null ? void 0 : lt[Wf].normal) == null ? void 0 : tp.y) && ((qf = Uf.normal) == null ? void 0 : qf.z) === ((ip = lt == null ? void 0 : lt[Wf].normal) == null ? void 0 : ip.z) && Uf.distance === (lt == null ? void 0 : lt[Wf].distance);
|
|
@@ -82642,11 +82642,11 @@ const useDrawClipping = ({
|
|
|
82642
82642
|
}, [lt]), of = ba === "inside" ? -1 : 1, [gf, Ef] = useState(
|
|
82643
82643
|
() => new ClippingPlaneCollection({
|
|
82644
82644
|
planes: hf == null ? void 0 : hf.map(
|
|
82645
|
-
(
|
|
82645
|
+
(vf) => {
|
|
82646
82646
|
var Ff, Uf, Wf;
|
|
82647
82647
|
return new ClippingPlane(
|
|
82648
|
-
new Cartesian3$1((Ff =
|
|
82649
|
-
(
|
|
82648
|
+
new Cartesian3$1((Ff = vf.normal) == null ? void 0 : Ff.x, (Uf = vf.normal) == null ? void 0 : Uf.y, (Wf = vf.normal) == null ? void 0 : Wf.z),
|
|
82649
|
+
(vf.distance || 0) * of
|
|
82650
82650
|
);
|
|
82651
82651
|
}
|
|
82652
82652
|
),
|
|
@@ -82660,11 +82660,11 @@ const useDrawClipping = ({
|
|
|
82660
82660
|
Ef(
|
|
82661
82661
|
new ClippingPlaneCollection({
|
|
82662
82662
|
planes: hf == null ? void 0 : hf.map(
|
|
82663
|
-
(
|
|
82663
|
+
(vf) => {
|
|
82664
82664
|
var Ff, Uf, Wf;
|
|
82665
82665
|
return new ClippingPlane(
|
|
82666
|
-
new Cartesian3$1((Ff =
|
|
82667
|
-
(
|
|
82666
|
+
new Cartesian3$1((Ff = vf.normal) == null ? void 0 : Ff.x, (Uf = vf.normal) == null ? void 0 : Uf.y, (Wf = vf.normal) == null ? void 0 : Wf.z),
|
|
82667
|
+
(vf.distance || 0) * of
|
|
82668
82668
|
);
|
|
82669
82669
|
}
|
|
82670
82670
|
),
|
|
@@ -82684,12 +82684,12 @@ const useDrawClipping = ({
|
|
|
82684
82684
|
clippingPlanes: gf,
|
|
82685
82685
|
isTilesetReady: uf
|
|
82686
82686
|
}), [af] = useState(() => new TilesetFeatureIndex()), Xd = useCallback(
|
|
82687
|
-
(
|
|
82688
|
-
|
|
82687
|
+
(vf) => {
|
|
82688
|
+
vf != null && vf.cesiumElement && attachTag(vf.cesiumElement, {
|
|
82689
82689
|
layerId: (d == null ? void 0 : d.id) || t,
|
|
82690
82690
|
featureIndex: Gd ? af : void 0,
|
|
82691
82691
|
appearanceType: "3dtiles"
|
|
82692
|
-
}), d != null && d.id && (
|
|
82692
|
+
}), d != null && d.id && (vf != null && vf.cesiumElement) && ((vf == null ? void 0 : vf.cesiumElement)[layerIdField] = d.id), L.current = vf == null ? void 0 : vf.cesiumElement;
|
|
82693
82693
|
},
|
|
82694
82694
|
[t, d == null ? void 0 : d.id, af, Gd]
|
|
82695
82695
|
), gd = useRef([]), pd = useRef(kt);
|
|
@@ -82697,15 +82697,15 @@ const useDrawClipping = ({
|
|
|
82697
82697
|
const [Zd] = useState(() => /* @__PURE__ */ new Map());
|
|
82698
82698
|
useEffect(() => {
|
|
82699
82699
|
!L.current || !Gd || !uf || Object.assign(L.current, {
|
|
82700
|
-
onSelectFeature: (
|
|
82701
|
-
const Ff = getTag(
|
|
82702
|
-
Ff != null && Ff.featureId && (gd.current.push(Ff.featureId), Zd.set(Ff.featureId,
|
|
82700
|
+
onSelectFeature: (vf) => {
|
|
82701
|
+
const Ff = getTag(vf);
|
|
82702
|
+
Ff != null && Ff.featureId && (gd.current.push(Ff.featureId), Zd.set(Ff.featureId, vf.color)), pd.current && (vf.color = toColor(pd.current) ?? vf.color);
|
|
82703
82703
|
},
|
|
82704
|
-
onUnselectFeature: (
|
|
82705
|
-
const Ff = getTag(
|
|
82704
|
+
onUnselectFeature: (vf) => {
|
|
82705
|
+
const Ff = getTag(vf);
|
|
82706
82706
|
Ff != null && Ff.featureId && (gd.current = gd.current.filter(
|
|
82707
82707
|
(Uf) => Uf !== Ff.featureId
|
|
82708
|
-
)),
|
|
82708
|
+
)), vf.color = Zd.get((Ff == null ? void 0 : Ff.featureId) ?? "") ?? DEFAULT_FEATURE_COLOR;
|
|
82709
82709
|
}
|
|
82710
82710
|
});
|
|
82711
82711
|
}, [Zd, af, Gd, uf]), useFeature({
|
|
@@ -82722,8 +82722,8 @@ const useDrawClipping = ({
|
|
|
82722
82722
|
isTilesetReady: uf
|
|
82723
82723
|
});
|
|
82724
82724
|
const [cf, sf] = useState(0), nf = useRef(!1), df = useCallback(
|
|
82725
|
-
(
|
|
82726
|
-
nf.current || !P || ms || (nf.current = !0, sampleTerrainHeightFromCartesian(P.scene,
|
|
82725
|
+
(vf) => {
|
|
82726
|
+
nf.current || !P || ms || (nf.current = !0, sampleTerrainHeightFromCartesian(P.scene, vf).then((Ff) => {
|
|
82727
82727
|
sf(Ff ?? 0), nf.current = !1;
|
|
82728
82728
|
}));
|
|
82729
82729
|
},
|
|
@@ -82732,7 +82732,7 @@ const useDrawClipping = ({
|
|
|
82732
82732
|
useEffect(() => {
|
|
82733
82733
|
if (mt != null && mt.draw)
|
|
82734
82734
|
return;
|
|
82735
|
-
const
|
|
82735
|
+
const vf = La || (fa ? [fa.lng, fa.lat, fa.height ?? 0] : void 0), Ff = Cartesian3$1.fromDegrees((vf == null ? void 0 : vf[0]) || 0, (vf == null ? void 0 : vf[1]) || 0, (vf == null ? void 0 : vf[2]) || 0);
|
|
82736
82736
|
(async () => {
|
|
82737
82737
|
if (!L.current || !uf)
|
|
82738
82738
|
return;
|
|
@@ -82769,12 +82769,12 @@ const useDrawClipping = ({
|
|
|
82769
82769
|
mt != null && mt.draw || (gf.unionClippingRegions = ba === "outside");
|
|
82770
82770
|
}, [gf, ba, mt == null ? void 0 : mt.draw]), useEffect(() => {
|
|
82771
82771
|
mt != null && mt.draw || (gf.removeAll(), hf == null || hf.forEach(
|
|
82772
|
-
(
|
|
82772
|
+
(vf) => {
|
|
82773
82773
|
var Ff, Uf, Wf;
|
|
82774
82774
|
return gf.add(
|
|
82775
82775
|
new ClippingPlane(
|
|
82776
|
-
new Cartesian3$1((Ff =
|
|
82777
|
-
(
|
|
82776
|
+
new Cartesian3$1((Ff = vf.normal) == null ? void 0 : Ff.x, (Uf = vf.normal) == null ? void 0 : Uf.y, (Wf = vf.normal) == null ? void 0 : Wf.z),
|
|
82777
|
+
(vf.distance || 0) * of
|
|
82778
82778
|
)
|
|
82779
82779
|
);
|
|
82780
82780
|
}
|
|
@@ -82785,8 +82785,8 @@ const useDrawClipping = ({
|
|
|
82785
82785
|
return;
|
|
82786
82786
|
}
|
|
82787
82787
|
(async () => {
|
|
82788
|
-
const
|
|
82789
|
-
|
|
82788
|
+
const vf = await fetch(nt);
|
|
82789
|
+
vf.ok && yu(new Cesium3DTileStyle(await vf.json()));
|
|
82790
82790
|
})();
|
|
82791
82791
|
}, [nt]);
|
|
82792
82792
|
const Cf = useMemo(() => pu !== "google-photorealistic" || !o ? null : (async () => {
|
|
@@ -82803,21 +82803,21 @@ const useDrawClipping = ({
|
|
|
82803
82803
|
var Qf, ep, Bf, tp, qf, ip, rp, Tf, rf, bf;
|
|
82804
82804
|
if (!(s != null && s.specularEnvironmentMaps) && !(s != null && s.sphericalHarmonicCoefficients) && !((ep = (Qf = c == null ? void 0 : c.scene) == null ? void 0 : Qf.imageBasedLighting) != null && ep.specularEnvironmentMaps) && !((tp = (Bf = c == null ? void 0 : c.scene) == null ? void 0 : Bf.imageBasedLighting) != null && tp.sphericalHarmonicCoefficients))
|
|
82805
82805
|
return;
|
|
82806
|
-
const
|
|
82806
|
+
const vf = new ImageBasedLighting(), Ff = (s == null ? void 0 : s.specularEnvironmentMaps) ?? ((ip = (qf = c == null ? void 0 : c.scene) == null ? void 0 : qf.imageBasedLighting) == null ? void 0 : ip.specularEnvironmentMaps), Uf = (s == null ? void 0 : s.imageBasedLightIntensity) ?? ((Tf = (rp = c == null ? void 0 : c.scene) == null ? void 0 : rp.imageBasedLighting) == null ? void 0 : Tf.intensity), Wf = arrayToCartecian3(
|
|
82807
82807
|
(s == null ? void 0 : s.sphericalHarmonicCoefficients) ?? ((bf = (rf = c == null ? void 0 : c.scene) == null ? void 0 : rf.imageBasedLighting) == null ? void 0 : bf.sphericalHarmonicCoefficients),
|
|
82808
82808
|
Uf
|
|
82809
82809
|
);
|
|
82810
|
-
return Ff && (
|
|
82810
|
+
return Ff && (vf.specularEnvironmentMaps = Ff), Wf && (vf.sphericalHarmonicCoefficients = Wf), vf;
|
|
82811
82811
|
}, [
|
|
82812
82812
|
s == null ? void 0 : s.specularEnvironmentMaps,
|
|
82813
82813
|
s == null ? void 0 : s.sphericalHarmonicCoefficients,
|
|
82814
82814
|
s == null ? void 0 : s.imageBasedLightIntensity,
|
|
82815
82815
|
(Hf = (Af = c == null ? void 0 : c.scene) == null ? void 0 : Af.imageBasedLighting) == null ? void 0 : Hf.specularEnvironmentMaps,
|
|
82816
|
-
(wf = (
|
|
82816
|
+
(wf = (xf = c == null ? void 0 : c.scene) == null ? void 0 : xf.imageBasedLighting) == null ? void 0 : wf.sphericalHarmonicCoefficients,
|
|
82817
82817
|
(Nf = (Yf = c == null ? void 0 : c.scene) == null ? void 0 : Yf.imageBasedLighting) == null ? void 0 : Nf.intensity
|
|
82818
82818
|
]), Pf = useCallback(
|
|
82819
|
-
(
|
|
82820
|
-
ff(!0), S == null || S({ properties:
|
|
82819
|
+
(vf) => {
|
|
82820
|
+
ff(!0), S == null || S({ properties: vf.properties }), F == null || F({ layerId: z.current });
|
|
82821
82821
|
},
|
|
82822
82822
|
[S, F]
|
|
82823
82823
|
);
|
|
@@ -84875,7 +84875,7 @@ const useIBL = ({
|
|
|
84875
84875
|
onMount: fa,
|
|
84876
84876
|
onCreditsUpdate: La
|
|
84877
84877
|
}) => {
|
|
84878
|
-
var sf, nf, df, Cf, pf, _f, Pf, Af, Hf,
|
|
84878
|
+
var sf, nf, df, Cf, pf, _f, Pf, Af, Hf, xf, wf, Yf, Nf, vf, Ff, Uf, Wf, Qf, ep, Bf, tp, qf, ip, rp;
|
|
84879
84879
|
const Ra = useRef(null), ma = typeof (d == null ? void 0 : d.cesiumIonAccessToken) == "string" && d.cesiumIonAccessToken ? d.cesiumIonAccessToken : Ion.defaultAccessToken, yt = useEngineRef(t, Ra), lt = useLayerSelectWithRect({
|
|
84880
84880
|
cesium: Ra,
|
|
84881
84881
|
engineAPI: yt,
|
|
@@ -84917,7 +84917,7 @@ const useIBL = ({
|
|
|
84917
84917
|
(df = (nf = (sf = n == null ? void 0 : n.scene) == null ? void 0 : sf.shadow) == null ? void 0 : nf.shadowMap) == null ? void 0 : df.softShadows,
|
|
84918
84918
|
(_f = (pf = (Cf = n == null ? void 0 : n.scene) == null ? void 0 : Cf.shadow) == null ? void 0 : pf.shadowMap) == null ? void 0 : _f.darkness,
|
|
84919
84919
|
(Hf = (Af = (Pf = n == null ? void 0 : n.scene) == null ? void 0 : Pf.shadow) == null ? void 0 : Af.shadowMap) == null ? void 0 : Hf.size,
|
|
84920
|
-
(Yf = (wf = (
|
|
84920
|
+
(Yf = (wf = (xf = n == null ? void 0 : n.scene) == null ? void 0 : xf.shadow) == null ? void 0 : wf.shadowMap) == null ? void 0 : Yf.maximumDistance
|
|
84921
84921
|
]);
|
|
84922
84922
|
const _i = useRef(), ba = useRef();
|
|
84923
84923
|
useEffect(() => {
|
|
@@ -85003,7 +85003,7 @@ const useIBL = ({
|
|
|
85003
85003
|
) : void 0;
|
|
85004
85004
|
},
|
|
85005
85005
|
[
|
|
85006
|
-
(
|
|
85006
|
+
(vf = (Nf = n == null ? void 0 : n.scene) == null ? void 0 : Nf.imageBasedLighting) == null ? void 0 : vf.sphericalHarmonicCoefficients,
|
|
85007
85007
|
(Uf = (Ff = n == null ? void 0 : n.scene) == null ? void 0 : Ff.imageBasedLighting) == null ? void 0 : Uf.intensity
|
|
85008
85008
|
]
|
|
85009
85009
|
);
|
|
@@ -91122,7 +91122,7 @@ const Cesium = ({
|
|
|
91122
91122
|
onLayerLoad: lt,
|
|
91123
91123
|
onCreditsUpdate: _i
|
|
91124
91124
|
}, ba) => {
|
|
91125
|
-
var gd, pd, Zd, cf, sf, nf, df, Cf, pf, _f, Pf, Af, Hf,
|
|
91125
|
+
var gd, pd, Zd, cf, sf, nf, df, Cf, pf, _f, Pf, Af, Hf, xf, wf, Yf, Nf, vf, Ff, Uf, Wf, Qf, ep, Bf, tp, qf, ip, rp, Tf, rf, bf, If, Xf, jf, np, up, dp, pp, mp, al, tf, lf;
|
|
91126
91126
|
const {
|
|
91127
91127
|
cesium: Sc,
|
|
91128
91128
|
mouseEventHandles: ms,
|
|
@@ -91320,12 +91320,12 @@ const Cesium = ({
|
|
|
91320
91320
|
msaaSamples: Vd,
|
|
91321
91321
|
useDepthPicking: !1,
|
|
91322
91322
|
useWebVR: !!((Hf = o == null ? void 0 : o.scene) != null && Hf.vr) || void 0,
|
|
91323
|
-
debugShowFramesPerSecond: !!((
|
|
91323
|
+
debugShowFramesPerSecond: !!((xf = o == null ? void 0 : o.debug) != null && xf.showFramesPerSecond),
|
|
91324
91324
|
verticalExaggerationRelativeHeight: (wf = o == null ? void 0 : o.scene) == null ? void 0 : wf.verticalExaggerationRelativeHeight,
|
|
91325
91325
|
verticalExaggeration: (Yf = o == null ? void 0 : o.scene) == null ? void 0 : Yf.verticalExaggeration
|
|
91326
91326
|
}
|
|
91327
91327
|
),
|
|
91328
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Oa$1, { show: ((
|
|
91328
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Oa$1, { show: ((vf = (Nf = o == null ? void 0 : o.sky) == null ? void 0 : Nf.skyBox) == null ? void 0 : vf.show) ?? !0 }),
|
|
91329
91329
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Vs, { enabled: ((Uf = (Ff = o == null ? void 0 : o.sky) == null ? void 0 : Ff.fog) == null ? void 0 : Uf.enabled) ?? !0, density: (Qf = (Wf = o == null ? void 0 : o.sky) == null ? void 0 : Wf.fog) == null ? void 0 : Qf.density }),
|
|
91330
91330
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Ga$1, { show: ((Bf = (ep = o == null ? void 0 : o.sky) == null ? void 0 : ep.sun) == null ? void 0 : Bf.show) ?? !0 }),
|
|
91331
91331
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ea, { show: ((qf = (tp = o == null ? void 0 : o.sky) == null ? void 0 : tp.moon) == null ? void 0 : qf.show) ?? !0 }),
|
|
@@ -91375,7 +91375,7 @@ function Error$1({ error: t, resetErrorBoundary: n }) {
|
|
|
91375
91375
|
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("button", { style: { color: "#fff" }, onClick: n, children: "Retry" }) })
|
|
91376
91376
|
] });
|
|
91377
91377
|
}
|
|
91378
|
-
const version = "0.0.7-alpha.
|
|
91378
|
+
const version = "0.0.7-alpha.42", useCoreAPI = ({ viewerProperty: t }) => {
|
|
91379
91379
|
const n = useRef(t);
|
|
91380
91380
|
n.current = t;
|
|
91381
91381
|
const o = useMemo(
|
|
@@ -91444,94 +91444,94 @@ function useHooks({
|
|
|
91444
91444
|
const F = useRef(null), N = useViewport({
|
|
91445
91445
|
wrapperRef: F
|
|
91446
91446
|
}), [z, W] = useState({}), [nt, Pe] = useState(), [se, mt] = useState(), kt = useCallback(
|
|
91447
|
-
async (
|
|
91447
|
+
async (xf, wf, Yf, Nf, vf) => {
|
|
91448
91448
|
var Qf, ep, Bf, tp, qf, ip, rp, Tf, rf, bf, If;
|
|
91449
91449
|
const Ff = ((Qf = z.layer) == null ? void 0 : Qf.layer.type) === "simple" && ((tp = (Bf = (ep = z.layer) == null ? void 0 : ep.layer) == null ? void 0 : Bf.data) == null ? void 0 : tp.isSketchLayer);
|
|
91450
|
-
if (z.layerId ===
|
|
91450
|
+
if (z.layerId === xf && z.featureId === wf && !Ff)
|
|
91451
91451
|
return;
|
|
91452
|
-
const Uf = await (Yf == null ? void 0 : Yf()), Wf =
|
|
91452
|
+
const Uf = await (Yf == null ? void 0 : Yf()), Wf = xf && wf ? (Ff ? (qf = Uf == null ? void 0 : Uf.features) == null ? void 0 : qf.find((Xf) => Xf.id === wf) : (Tf = (ip = L.current) == null ? void 0 : (rp = ip.engine).findComputedFeatureById) == null ? void 0 : Tf.call(rp, xf, wf)) ?? (vf == null ? void 0 : vf.feature) : void 0;
|
|
91453
91453
|
Pe(
|
|
91454
|
-
|
|
91454
|
+
xf && wf ? (If = (rf = L.current) == null ? void 0 : (bf = rf.engine).findFeatureById) == null ? void 0 : If.call(bf, xf, wf) : void 0
|
|
91455
91455
|
), mt(Wf), W(
|
|
91456
|
-
(Xf) => Xf.layerId ===
|
|
91457
|
-
), c == null || c(
|
|
91456
|
+
(Xf) => Xf.layerId === xf && Xf.featureId === wf ? Xf : { layerId: xf, featureId: wf, layer: Uf, reason: Nf }
|
|
91457
|
+
), c == null || c(xf, Yf, Wf, Nf);
|
|
91458
91458
|
},
|
|
91459
91459
|
[z, c]
|
|
91460
|
-
), mn = useRef(), [pi, zi] = useValue(t, d), [Sa, fa] = useState(!1), La = useCallback((
|
|
91461
|
-
fa(!!
|
|
91460
|
+
), mn = useRef(), [pi, zi] = useValue(t, d), [Sa, fa] = useState(!1), La = useCallback((xf) => {
|
|
91461
|
+
fa(!!xf);
|
|
91462
91462
|
}, []), [Ra, ma] = useValue(
|
|
91463
91463
|
n || "default",
|
|
91464
91464
|
h
|
|
91465
91465
|
);
|
|
91466
91466
|
useEffect(() => {
|
|
91467
|
-
var
|
|
91468
|
-
Ra === "default" && ((wf = (
|
|
91467
|
+
var xf, wf;
|
|
91468
|
+
Ra === "default" && ((wf = (xf = L == null ? void 0 : L.current) == null ? void 0 : xf.engine) == null || wf.setCursor("auto"));
|
|
91469
91469
|
}, [Ra]);
|
|
91470
|
-
const yt = INTERACTION_MODES[Ra ?? "default"], lt = useRef(), _i = useCallback((
|
|
91471
|
-
lt.current =
|
|
91472
|
-
}, []), ba = useCallback((
|
|
91470
|
+
const yt = INTERACTION_MODES[Ra ?? "default"], lt = useRef(), _i = useCallback((xf) => {
|
|
91471
|
+
lt.current = xf;
|
|
91472
|
+
}, []), ba = useCallback((xf) => {
|
|
91473
91473
|
var wf;
|
|
91474
|
-
(wf = lt.current) == null || wf.call(lt,
|
|
91475
|
-
}, []), Sc = useRef(), ms = useCallback((
|
|
91476
|
-
Sc.current =
|
|
91477
|
-
}, []), Xs = useCallback((
|
|
91474
|
+
(wf = lt.current) == null || wf.call(lt, xf);
|
|
91475
|
+
}, []), Sc = useRef(), ms = useCallback((xf) => {
|
|
91476
|
+
Sc.current = xf;
|
|
91477
|
+
}, []), Xs = useCallback((xf) => {
|
|
91478
91478
|
var wf;
|
|
91479
|
-
(wf = Sc.current) == null || wf.call(Sc,
|
|
91480
|
-
}, []), yu = useRef(), Nl = useCallback((
|
|
91481
|
-
yu.current =
|
|
91482
|
-
}, []), pu = useCallback((
|
|
91479
|
+
(wf = Sc.current) == null || wf.call(Sc, xf);
|
|
91480
|
+
}, []), yu = useRef(), Nl = useCallback((xf) => {
|
|
91481
|
+
yu.current = xf;
|
|
91482
|
+
}, []), pu = useCallback((xf) => {
|
|
91483
91483
|
var wf;
|
|
91484
|
-
(wf = yu.current) == null || wf.call(yu,
|
|
91485
|
-
}, []), Ru = useRef(), Vd = useCallback((
|
|
91486
|
-
Ru.current =
|
|
91487
|
-
}, []), Gd = useCallback((
|
|
91484
|
+
(wf = yu.current) == null || wf.call(yu, xf);
|
|
91485
|
+
}, []), Ru = useRef(), Vd = useCallback((xf) => {
|
|
91486
|
+
Ru.current = xf;
|
|
91487
|
+
}, []), Gd = useCallback((xf) => {
|
|
91488
91488
|
var wf;
|
|
91489
|
-
(wf = Ru.current) == null || wf.call(Ru,
|
|
91490
|
-
}, []), uf = useRef(), ff = useCallback((
|
|
91491
|
-
uf.current =
|
|
91492
|
-
}, []), mf = useCallback((
|
|
91489
|
+
(wf = Ru.current) == null || wf.call(Ru, xf);
|
|
91490
|
+
}, []), uf = useRef(), ff = useCallback((xf) => {
|
|
91491
|
+
uf.current = xf;
|
|
91492
|
+
}, []), mf = useCallback((xf) => {
|
|
91493
91493
|
var wf;
|
|
91494
|
-
(wf = uf.current) == null || wf.call(uf,
|
|
91495
|
-
}, []), hf = useRef(), of = useCallback((
|
|
91496
|
-
hf.current =
|
|
91497
|
-
}, []), gf = useCallback((
|
|
91494
|
+
(wf = uf.current) == null || wf.call(uf, xf);
|
|
91495
|
+
}, []), hf = useRef(), of = useCallback((xf) => {
|
|
91496
|
+
hf.current = xf;
|
|
91497
|
+
}, []), gf = useCallback((xf) => {
|
|
91498
91498
|
var wf;
|
|
91499
|
-
(wf = hf.current) == null || wf.call(hf,
|
|
91500
|
-
}, []), Ef = useRef([]), Sf = useCallback((
|
|
91501
|
-
Ef.current.push(
|
|
91502
|
-
}, []), Wa = useCallback((
|
|
91503
|
-
Ef.current.forEach((wf) => wf(
|
|
91504
|
-
}, []), af = useRef([]), Xd = useCallback((
|
|
91505
|
-
af.current.push(
|
|
91506
|
-
}, []), gd = useCallback((
|
|
91507
|
-
af.current.forEach((wf) => wf(
|
|
91508
|
-
}, []), pd = useRef([]), Zd = useCallback((
|
|
91509
|
-
pd.current.push(
|
|
91499
|
+
(wf = hf.current) == null || wf.call(hf, xf);
|
|
91500
|
+
}, []), Ef = useRef([]), Sf = useCallback((xf) => {
|
|
91501
|
+
Ef.current.push(xf);
|
|
91502
|
+
}, []), Wa = useCallback((xf) => {
|
|
91503
|
+
Ef.current.forEach((wf) => wf(xf));
|
|
91504
|
+
}, []), af = useRef([]), Xd = useCallback((xf) => {
|
|
91505
|
+
af.current.push(xf);
|
|
91506
|
+
}, []), gd = useCallback((xf) => {
|
|
91507
|
+
af.current.forEach((wf) => wf(xf));
|
|
91508
|
+
}, []), pd = useRef([]), Zd = useCallback((xf) => {
|
|
91509
|
+
pd.current.push(xf);
|
|
91510
91510
|
}, []), cf = useCallback(
|
|
91511
|
-
(
|
|
91512
|
-
pd.current.forEach((wf) => wf(
|
|
91511
|
+
(xf) => {
|
|
91512
|
+
pd.current.forEach((wf) => wf(xf));
|
|
91513
91513
|
},
|
|
91514
91514
|
[]
|
|
91515
|
-
), sf = useRef([]), nf = useCallback((
|
|
91516
|
-
sf.current.push(
|
|
91515
|
+
), sf = useRef([]), nf = useCallback((xf) => {
|
|
91516
|
+
sf.current.push(xf);
|
|
91517
91517
|
}, []), df = useCallback(
|
|
91518
|
-
(
|
|
91519
|
-
sf.current.forEach((Yf) => Yf(
|
|
91518
|
+
(xf, wf) => {
|
|
91519
|
+
sf.current.forEach((Yf) => Yf(xf)), S == null || S(xf, wf);
|
|
91520
91520
|
},
|
|
91521
91521
|
[S]
|
|
91522
91522
|
);
|
|
91523
91523
|
useEffect(() => {
|
|
91524
|
-
var
|
|
91525
|
-
o && ((wf = (
|
|
91524
|
+
var xf, wf;
|
|
91525
|
+
o && ((wf = (xf = L.current) == null ? void 0 : xf.engine) == null || wf.lookAtLayer(o), p == null || p(void 0));
|
|
91526
91526
|
}, [o, p]);
|
|
91527
91527
|
const [Cf, pf] = useState(!1), _f = useCallback(() => {
|
|
91528
91528
|
pf(!0);
|
|
91529
91529
|
}, []), Pf = useCallback(
|
|
91530
|
-
(
|
|
91530
|
+
(xf, wf, Yf) => {
|
|
91531
91531
|
var Ff;
|
|
91532
91532
|
pf(!1);
|
|
91533
|
-
const Nf = (Ff = L.current) == null ? void 0 : Ff.layers.findById(
|
|
91534
|
-
Yf && Nf && Nf.propertyId &&
|
|
91533
|
+
const Nf = (Ff = L.current) == null ? void 0 : Ff.layers.findById(xf), vf = Nf != null && Nf.property.default.location ? "default.location" : Nf != null && Nf.property.default.position ? "default.position" : void 0;
|
|
91534
|
+
Yf && Nf && Nf.propertyId && vf && (y == null || y(Nf.propertyId, vf, Yf));
|
|
91535
91535
|
},
|
|
91536
91536
|
[y, L]
|
|
91537
91537
|
), Af = useMemo(
|