@reearth/core 0.0.7-alpha.28 → 0.0.7-alpha.29
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 +57 -57
- package/dist/core.umd.cjs +9 -9
- package/package.json +1 -1
- package/src/engines/Cesium/hooks.ts +2 -2
package/dist/core.js
CHANGED
|
@@ -305,8 +305,8 @@ function requireReactJsxRuntime_development() {
|
|
|
305
305
|
} finally {
|
|
306
306
|
hf = !1, cf.current = Of, Gd(), Error.prepareStackTrace = If;
|
|
307
307
|
}
|
|
308
|
-
var bp = al ? al.displayName || al.name : "",
|
|
309
|
-
return typeof al == "function" && mf.set(al,
|
|
308
|
+
var bp = al ? al.displayName || al.name : "", dp = bp ? gf(bp) : "";
|
|
309
|
+
return typeof al == "function" && mf.set(al, dp), dp;
|
|
310
310
|
}
|
|
311
311
|
function Rf(al, tf, lf) {
|
|
312
312
|
return Vf(al, !1);
|
|
@@ -635,8 +635,8 @@ Check the top-level render call using <` + lf + ">.");
|
|
|
635
635
|
function up(al, tf, lf) {
|
|
636
636
|
return ep(al, tf, lf, !1);
|
|
637
637
|
}
|
|
638
|
-
var
|
|
639
|
-
reactJsxRuntime_development.Fragment = s, reactJsxRuntime_development.jsx =
|
|
638
|
+
var pp = up, mp = ap;
|
|
639
|
+
reactJsxRuntime_development.Fragment = s, reactJsxRuntime_development.jsx = pp, reactJsxRuntime_development.jsxs = mp;
|
|
640
640
|
}()), reactJsxRuntime_development;
|
|
641
641
|
}
|
|
642
642
|
process.env.NODE_ENV === "production" ? jsxRuntime$1.exports = requireReactJsxRuntime_production_min() : jsxRuntime$1.exports = requireReactJsxRuntime_development();
|
|
@@ -19817,7 +19817,7 @@ function useHooks$9({
|
|
|
19817
19817
|
onLayerSelect: N
|
|
19818
19818
|
}), sf = useCallback(
|
|
19819
19819
|
(rf) => {
|
|
19820
|
-
var Pf, Uf, Bf, ep, ap, up,
|
|
19820
|
+
var Pf, Uf, Bf, ep, ap, up, pp, mp, al, tf, lf, yf, If, Of, Tf;
|
|
19821
19821
|
if (W == null || W(rf), !Pe.matches("idle") || !rf)
|
|
19822
19822
|
return;
|
|
19823
19823
|
const bf = (Uf = (Pf = rf == null ? void 0 : rf.feature) == null ? void 0 : Pf.properties) == null ? void 0 : Uf.type;
|
|
@@ -19836,7 +19836,7 @@ function useHooks$9({
|
|
|
19836
19836
|
extrudedHeight: (up = (ap = rf == null ? void 0 : rf.feature) == null ? void 0 : ap.properties) == null ? void 0 : up.extrudedHeight
|
|
19837
19837
|
}), lt({
|
|
19838
19838
|
type: bf,
|
|
19839
|
-
controlPoints: (
|
|
19839
|
+
controlPoints: (mp = (pp = rf == null ? void 0 : rf.feature) == null ? void 0 : pp.properties) == null ? void 0 : mp.positions
|
|
19840
19840
|
}), (tf = (al = rf == null ? void 0 : rf.feature) == null ? void 0 : al.properties) != null && tf.extrudedHeight && (ba(rf.feature.properties.extrudedHeight), ms(
|
|
19841
19841
|
(Tf = n.current) == null ? void 0 : Tf.getExtrudedPoint(
|
|
19842
19842
|
(Of = (lf = rf == null ? void 0 : rf.feature) == null ? void 0 : lf.properties) == null ? void 0 : Of.positions[((If = (yf = rf == null ? void 0 : rf.feature) == null ? void 0 : yf.properties) == null ? void 0 : If.positions.length) - 1],
|
|
@@ -20448,8 +20448,8 @@ function Gt$1() {
|
|
|
20448
20448
|
} finally {
|
|
20449
20449
|
hf = !1, cf.current = Of, Gd(), Error.prepareStackTrace = If;
|
|
20450
20450
|
}
|
|
20451
|
-
var bp = al ? al.displayName || al.name : "",
|
|
20452
|
-
return typeof al == "function" && mf.set(al,
|
|
20451
|
+
var bp = al ? al.displayName || al.name : "", dp = bp ? gf(bp) : "";
|
|
20452
|
+
return typeof al == "function" && mf.set(al, dp), dp;
|
|
20453
20453
|
}
|
|
20454
20454
|
function Rf(al, tf, lf) {
|
|
20455
20455
|
return Vf(al, !1);
|
|
@@ -20778,8 +20778,8 @@ Check the top-level render call using <` + lf + ">.");
|
|
|
20778
20778
|
function up(al, tf, lf) {
|
|
20779
20779
|
return ep(al, tf, lf, !1);
|
|
20780
20780
|
}
|
|
20781
|
-
var
|
|
20782
|
-
pe$1.Fragment = s, pe$1.jsx =
|
|
20781
|
+
var pp = up, mp = ap;
|
|
20782
|
+
pe$1.Fragment = s, pe$1.jsx = pp, pe$1.jsxs = mp;
|
|
20783
20783
|
}()), pe$1;
|
|
20784
20784
|
}
|
|
20785
20785
|
process.env.NODE_ENV === "production" ? Ae$1.exports = Ot$1() : Ae$1.exports = Gt$1();
|
|
@@ -65991,7 +65991,7 @@ const Xp = class Xp {
|
|
|
65991
65991
|
Hp = new WeakMap(), // private constructor
|
|
65992
65992
|
Kf(Xp, Hp, !1);
|
|
65993
65993
|
let Stack = Xp;
|
|
65994
|
-
var wp, _p, Vp, Rp, $p,
|
|
65994
|
+
var wp, _p, Vp, Rp, $p, hp, Mp, fp, sp, $f, xp, Ep, Cp, gp, Pp, yp, Ap, Gp, Ip, Lp, zp, Sp, Qp, tg, Up, Dp, qp, Tp, qm, sg, Wp, Yp, _m, Op, Np, Fp, kp, Om, ng, jp, $m, Kp, jm, op, cp, Am, ig, Zp, Jp;
|
|
65995
65995
|
const rg = class rg {
|
|
65996
65996
|
constructor(n) {
|
|
65997
65997
|
Kf(this, Qp);
|
|
@@ -66073,15 +66073,15 @@ const rg = class rg {
|
|
|
66073
66073
|
*/
|
|
66074
66074
|
Ef(this, "ignoreFetchAbort");
|
|
66075
66075
|
// computed properties
|
|
66076
|
-
Kf(this, dp, void 0);
|
|
66077
|
-
Kf(this, Mp, void 0);
|
|
66078
66076
|
Kf(this, hp, void 0);
|
|
66077
|
+
Kf(this, Mp, void 0);
|
|
66078
|
+
Kf(this, fp, void 0);
|
|
66079
66079
|
Kf(this, sp, void 0);
|
|
66080
66080
|
Kf(this, $f, void 0);
|
|
66081
66081
|
Kf(this, xp, void 0);
|
|
66082
66082
|
Kf(this, Ep, void 0);
|
|
66083
66083
|
Kf(this, Cp, void 0);
|
|
66084
|
-
Kf(this,
|
|
66084
|
+
Kf(this, gp, void 0);
|
|
66085
66085
|
Kf(this, Pp, void 0);
|
|
66086
66086
|
Kf(this, yp, void 0);
|
|
66087
66087
|
Kf(this, Ap, void 0);
|
|
@@ -66122,7 +66122,7 @@ const rg = class rg {
|
|
|
66122
66122
|
}
|
|
66123
66123
|
if (nt !== void 0 && typeof nt != "function")
|
|
66124
66124
|
throw new TypeError("fetchMethod must be a function if specified");
|
|
66125
|
-
if (zf(this, $p, nt), zf(this, zp, !!nt), zf(this,
|
|
66125
|
+
if (zf(this, $p, nt), zf(this, zp, !!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) {
|
|
66126
66126
|
if (ef(this, _p) !== 0 && !isPosInt(ef(this, _p)))
|
|
66127
66127
|
throw new TypeError("maxSize must be a positive integer if specified");
|
|
66128
66128
|
if (!isPosInt(this.maxEntrySize))
|
|
@@ -66156,7 +66156,7 @@ const rg = class rg {
|
|
|
66156
66156
|
starts: ef(n, Gp),
|
|
66157
66157
|
ttls: ef(n, Ip),
|
|
66158
66158
|
sizes: ef(n, Ap),
|
|
66159
|
-
keyMap: ef(n,
|
|
66159
|
+
keyMap: ef(n, fp),
|
|
66160
66160
|
keyList: ef(n, sp),
|
|
66161
66161
|
valList: ef(n, $f),
|
|
66162
66162
|
next: ef(n, xp),
|
|
@@ -66165,7 +66165,7 @@ const rg = class rg {
|
|
|
66165
66165
|
return ef(n, Cp);
|
|
66166
66166
|
},
|
|
66167
66167
|
get tail() {
|
|
66168
|
-
return ef(n,
|
|
66168
|
+
return ef(n, gp);
|
|
66169
66169
|
},
|
|
66170
66170
|
free: ef(n, Pp),
|
|
66171
66171
|
// methods
|
|
@@ -66218,7 +66218,7 @@ const rg = class rg {
|
|
|
66218
66218
|
* The number of items stored in the cache (read-only)
|
|
66219
66219
|
*/
|
|
66220
66220
|
get size() {
|
|
66221
|
-
return ef(this,
|
|
66221
|
+
return ef(this, hp);
|
|
66222
66222
|
}
|
|
66223
66223
|
/**
|
|
66224
66224
|
* {@link LRUCache.OptionsBase.fetchMethod} (read-only)
|
|
@@ -66242,7 +66242,7 @@ const rg = class rg {
|
|
|
66242
66242
|
* Return the remaining TTL time for a given entry key
|
|
66243
66243
|
*/
|
|
66244
66244
|
getRemainingTTL(n) {
|
|
66245
|
-
return ef(this,
|
|
66245
|
+
return ef(this, fp).has(n) ? 1 / 0 : 0;
|
|
66246
66246
|
}
|
|
66247
66247
|
/**
|
|
66248
66248
|
* Return a generator yielding `[key, value]` pairs,
|
|
@@ -66397,9 +66397,9 @@ const rg = class rg {
|
|
|
66397
66397
|
const P = ef(this, _m).call(this, n, o, s.size || 0, p);
|
|
66398
66398
|
if (this.maxEntrySize && P > this.maxEntrySize)
|
|
66399
66399
|
return y && (y.set = "miss", y.maxEntrySizeExceeded = !0), this.delete(n), this;
|
|
66400
|
-
let L = ef(this,
|
|
66400
|
+
let L = ef(this, hp) === 0 ? void 0 : ef(this, fp).get(n);
|
|
66401
66401
|
if (L === void 0)
|
|
66402
|
-
L = ef(this,
|
|
66402
|
+
L = ef(this, hp) === 0 ? ef(this, gp) : ef(this, Pp).length !== 0 ? ef(this, Pp).pop() : ef(this, hp) === ef(this, wp) ? Nf(this, jp, $m).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), Dm(this, hp)._++, ef(this, Yp).call(this, L, P, y), y && (y.set = "add"), S = !1;
|
|
66403
66403
|
else {
|
|
66404
66404
|
Nf(this, Zp, Jp).call(this, L);
|
|
66405
66405
|
const W = ef(this, $f)[L];
|
|
@@ -66427,7 +66427,7 @@ const rg = class rg {
|
|
|
66427
66427
|
pop() {
|
|
66428
66428
|
var n;
|
|
66429
66429
|
try {
|
|
66430
|
-
for (; ef(this,
|
|
66430
|
+
for (; ef(this, hp); ) {
|
|
66431
66431
|
const o = ef(this, $f)[ef(this, Cp)];
|
|
66432
66432
|
if (Nf(this, jp, $m).call(this, !0), Nf(this, op, cp).call(this, o)) {
|
|
66433
66433
|
if (o.__staleWhileFetching)
|
|
@@ -66453,7 +66453,7 @@ const rg = class rg {
|
|
|
66453
66453
|
* {@link LRUCache.OptionsBase.updateAgeOnHas} is set.
|
|
66454
66454
|
*/
|
|
66455
66455
|
has(n, o = {}) {
|
|
66456
|
-
const { updateAgeOnHas: s = this.updateAgeOnHas, status: c } = o, d = ef(this,
|
|
66456
|
+
const { updateAgeOnHas: s = this.updateAgeOnHas, status: c } = o, d = ef(this, fp).get(n);
|
|
66457
66457
|
if (d !== void 0) {
|
|
66458
66458
|
const h = ef(this, $f)[d];
|
|
66459
66459
|
if (Nf(this, op, cp).call(this, h) && h.__staleWhileFetching === void 0)
|
|
@@ -66474,7 +66474,7 @@ const rg = class rg {
|
|
|
66474
66474
|
* {@link LRUCache.OptionsBase.allowStale} is set.
|
|
66475
66475
|
*/
|
|
66476
66476
|
peek(n, o = {}) {
|
|
66477
|
-
const { allowStale: s = this.allowStale } = o, c = ef(this,
|
|
66477
|
+
const { allowStale: s = this.allowStale } = o, c = ef(this, fp).get(n);
|
|
66478
66478
|
if (c !== void 0 && (s || !ef(this, Tp).call(this, c))) {
|
|
66479
66479
|
const d = ef(this, $f)[c];
|
|
66480
66480
|
return Nf(this, op, cp).call(this, d) ? d.__staleWhileFetching : d;
|
|
@@ -66525,7 +66525,7 @@ const rg = class rg {
|
|
|
66525
66525
|
status: Pe,
|
|
66526
66526
|
signal: se
|
|
66527
66527
|
};
|
|
66528
|
-
let kt = ef(this,
|
|
66528
|
+
let kt = ef(this, fp).get(n);
|
|
66529
66529
|
if (kt === void 0) {
|
|
66530
66530
|
Pe && (Pe.fetch = "miss");
|
|
66531
66531
|
const mn = Nf(this, Kp, jm).call(this, n, kt, mt, W);
|
|
@@ -66550,7 +66550,7 @@ const rg = class rg {
|
|
|
66550
66550
|
* If the key is not found, get() will return `undefined`.
|
|
66551
66551
|
*/
|
|
66552
66552
|
get(n, o = {}) {
|
|
66553
|
-
const { allowStale: s = this.allowStale, updateAgeOnGet: c = this.updateAgeOnGet, noDeleteOnStaleGet: d = this.noDeleteOnStaleGet, status: h } = o, p = ef(this,
|
|
66553
|
+
const { allowStale: s = this.allowStale, updateAgeOnGet: c = this.updateAgeOnGet, noDeleteOnStaleGet: d = this.noDeleteOnStaleGet, status: h } = o, p = ef(this, fp).get(n);
|
|
66554
66554
|
if (p !== void 0) {
|
|
66555
66555
|
const y = ef(this, $f)[p], S = Nf(this, op, cp).call(this, y);
|
|
66556
66556
|
return h && ef(this, Dp).call(this, h, p), ef(this, Tp).call(this, p) ? (h && (h.get = "stale"), S ? (h && s && y.__staleWhileFetching !== void 0 && (h.returnedStale = !0), s ? y.__staleWhileFetching : void 0) : (d || this.delete(n), h && s && (h.returnedStale = !0), s ? y : void 0)) : (h && (h.get = "hit"), S ? y.__staleWhileFetching : (Nf(this, Zp, Jp).call(this, p), c && ef(this, Up).call(this, p), y));
|
|
@@ -66564,15 +66564,15 @@ const rg = class rg {
|
|
|
66564
66564
|
delete(n) {
|
|
66565
66565
|
var s, c, d, h;
|
|
66566
66566
|
let o = !1;
|
|
66567
|
-
if (ef(this,
|
|
66568
|
-
const p = ef(this,
|
|
66567
|
+
if (ef(this, hp) !== 0) {
|
|
66568
|
+
const p = ef(this, fp).get(n);
|
|
66569
66569
|
if (p !== void 0)
|
|
66570
|
-
if (o = !0, ef(this,
|
|
66570
|
+
if (o = !0, ef(this, hp) === 1)
|
|
66571
66571
|
this.clear();
|
|
66572
66572
|
else {
|
|
66573
66573
|
ef(this, Wp).call(this, p);
|
|
66574
66574
|
const y = ef(this, $f)[p];
|
|
66575
|
-
Nf(this, op, cp).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,
|
|
66575
|
+
Nf(this, op, cp).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]), Dm(this, hp)._--, ef(this, Pp).push(p);
|
|
66576
66576
|
}
|
|
66577
66577
|
}
|
|
66578
66578
|
if (ef(this, Sp) && ((d = ef(this, yp)) != null && d.length)) {
|
|
@@ -66597,7 +66597,7 @@ const rg = class rg {
|
|
|
66597
66597
|
ef(this, Lp) && ((n = ef(this, Vp)) == null || n.call(this, d, h, "delete")), ef(this, Sp) && ((o = ef(this, yp)) == null || o.push([d, h, "delete"]));
|
|
66598
66598
|
}
|
|
66599
66599
|
}
|
|
66600
|
-
if (ef(this,
|
|
66600
|
+
if (ef(this, fp).clear(), ef(this, $f).fill(void 0), ef(this, sp).fill(void 0), ef(this, Ip) && ef(this, Gp) && (ef(this, Ip).fill(0), ef(this, Gp).fill(0)), ef(this, Ap) && ef(this, Ap).fill(0), zf(this, Cp, 0), zf(this, gp, 0), ef(this, Pp).length = 0, zf(this, Mp, 0), zf(this, hp, 0), ef(this, Sp) && ef(this, yp)) {
|
|
66601
66601
|
const c = ef(this, yp);
|
|
66602
66602
|
let d;
|
|
66603
66603
|
for (; d = c == null ? void 0 : c.shift(); )
|
|
@@ -66605,7 +66605,7 @@ const rg = class rg {
|
|
|
66605
66605
|
}
|
|
66606
66606
|
}
|
|
66607
66607
|
};
|
|
66608
|
-
wp = new WeakMap(), _p = new WeakMap(), Vp = new WeakMap(), Rp = new WeakMap(), $p = new WeakMap(),
|
|
66608
|
+
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(), Ap = new WeakMap(), Gp = new WeakMap(), Ip = new WeakMap(), Lp = new WeakMap(), zp = new WeakMap(), Sp = new WeakMap(), Qp = new WeakSet(), tg = function() {
|
|
66609
66609
|
const n = new ZeroArray(ef(this, wp)), o = new ZeroArray(ef(this, wp));
|
|
66610
66610
|
zf(this, Ip, n), zf(this, Gp, o), zf(this, qp, (d, h, p = perf.now()) => {
|
|
66611
66611
|
if (o[d] = h !== 0 ? p : 0, n[d] = h, h !== 0 && this.ttlAutopurge) {
|
|
@@ -66633,7 +66633,7 @@ wp = new WeakMap(), _p = new WeakMap(), Vp = new WeakMap(), Rp = new WeakMap(),
|
|
|
66633
66633
|
return d;
|
|
66634
66634
|
};
|
|
66635
66635
|
this.getRemainingTTL = (d) => {
|
|
66636
|
-
const h = ef(this,
|
|
66636
|
+
const h = ef(this, fp).get(d);
|
|
66637
66637
|
return h === void 0 ? 0 : n[h] === 0 || o[h] === 0 ? 1 / 0 : o[h] + n[h] - (s || c());
|
|
66638
66638
|
}, zf(this, Tp, (d) => n[d] !== 0 && o[d] !== 0 && (s || c()) - o[d] > n[d]);
|
|
66639
66639
|
}, Up = new WeakMap(), Dp = new WeakMap(), qp = new WeakMap(), Tp = new WeakMap(), qm = new WeakSet(), sg = function() {
|
|
@@ -66661,19 +66661,19 @@ wp = new WeakMap(), _p = new WeakMap(), Vp = new WeakMap(), Rp = new WeakMap(),
|
|
|
66661
66661
|
zf(this, Mp, ef(this, Mp) + n[o]), c && (c.entrySize = s, c.totalCalculatedSize = ef(this, Mp));
|
|
66662
66662
|
});
|
|
66663
66663
|
}, Wp = new WeakMap(), Yp = new WeakMap(), _m = new WeakMap(), Op = new WeakSet(), Np = function* ({ allowStale: n = this.allowStale } = {}) {
|
|
66664
|
-
if (ef(this,
|
|
66665
|
-
for (let o = ef(this,
|
|
66664
|
+
if (ef(this, hp))
|
|
66665
|
+
for (let o = ef(this, gp); !(!Nf(this, Om, ng).call(this, o) || ((n || !ef(this, Tp).call(this, o)) && (yield o), o === ef(this, Cp))); )
|
|
66666
66666
|
o = ef(this, Ep)[o];
|
|
66667
66667
|
}, Fp = new WeakSet(), kp = function* ({ allowStale: n = this.allowStale } = {}) {
|
|
66668
|
-
if (ef(this,
|
|
66669
|
-
for (let o = ef(this, Cp); !(!Nf(this, Om, ng).call(this, o) || ((n || !ef(this, Tp).call(this, o)) && (yield o), o === ef(this,
|
|
66668
|
+
if (ef(this, hp))
|
|
66669
|
+
for (let o = ef(this, Cp); !(!Nf(this, Om, ng).call(this, o) || ((n || !ef(this, Tp).call(this, o)) && (yield o), o === ef(this, gp))); )
|
|
66670
66670
|
o = ef(this, xp)[o];
|
|
66671
66671
|
}, Om = new WeakSet(), ng = function(n) {
|
|
66672
|
-
return n !== void 0 && ef(this,
|
|
66672
|
+
return n !== void 0 && ef(this, fp).get(ef(this, sp)[n]) === n;
|
|
66673
66673
|
}, jp = new WeakSet(), $m = function(n) {
|
|
66674
66674
|
var d, h;
|
|
66675
66675
|
const o = ef(this, Cp), s = ef(this, sp)[o], c = ef(this, $f)[o];
|
|
66676
|
-
return ef(this, zp) && Nf(this, op, cp).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, Wp).call(this, o), n && (ef(this, sp)[o] = void 0, ef(this, $f)[o] = void 0, ef(this, Pp).push(o)), ef(this,
|
|
66676
|
+
return ef(this, zp) && Nf(this, op, cp).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, Wp).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), Dm(this, hp)._--, o;
|
|
66677
66677
|
}, Kp = new WeakSet(), jm = function(n, o, s, c) {
|
|
66678
66678
|
const d = o === void 0 ? void 0 : ef(this, $f)[o];
|
|
66679
66679
|
if (Nf(this, op, cp).call(this, d))
|
|
@@ -66711,7 +66711,7 @@ wp = new WeakMap(), _p = new WeakMap(), Vp = new WeakMap(), Rp = new WeakMap(),
|
|
|
66711
66711
|
__staleWhileFetching: d,
|
|
66712
66712
|
__returned: void 0
|
|
66713
66713
|
});
|
|
66714
|
-
return o === void 0 ? (this.set(n, z, { ...y.options, status: void 0 }), o = ef(this,
|
|
66714
|
+
return o === void 0 ? (this.set(n, z, { ...y.options, status: void 0 }), o = ef(this, fp).get(n)) : ef(this, $f)[o] = z, z;
|
|
66715
66715
|
}, op = new WeakSet(), cp = function(n) {
|
|
66716
66716
|
if (!ef(this, zp))
|
|
66717
66717
|
return !1;
|
|
@@ -66720,7 +66720,7 @@ wp = new WeakMap(), _p = new WeakMap(), Vp = new WeakMap(), Rp = new WeakMap(),
|
|
|
66720
66720
|
}, Am = new WeakSet(), ig = function(n, o) {
|
|
66721
66721
|
ef(this, Ep)[o] = n, ef(this, xp)[n] = o;
|
|
66722
66722
|
}, Zp = new WeakSet(), Jp = function(n) {
|
|
66723
|
-
n !== ef(this,
|
|
66723
|
+
n !== ef(this, gp) && (n === ef(this, Cp) ? zf(this, Cp, ef(this, xp)[n]) : Nf(this, Am, ig).call(this, ef(this, Ep)[n], ef(this, xp)[n]), Nf(this, Am, ig).call(this, ef(this, gp), n), zf(this, gp, n));
|
|
66724
66724
|
};
|
|
66725
66725
|
let LRUCache = rg;
|
|
66726
66726
|
const SIDE_PLANES = [
|
|
@@ -84718,11 +84718,11 @@ const useIBL = ({
|
|
|
84718
84718
|
featureFlags: p
|
|
84719
84719
|
});
|
|
84720
84720
|
useEffect(() => {
|
|
84721
|
-
var Uf, Bf, ep, ap, up,
|
|
84721
|
+
var Uf, Bf, ep, ap, up, pp, mp, al, tf, lf, yf, If, Of, Tf;
|
|
84722
84722
|
const _f = (Bf = (Uf = Ra == null ? void 0 : Ra.current) == null ? void 0 : Uf.cesiumElement) == null ? void 0 : Bf.shadowMap;
|
|
84723
84723
|
if (!_f)
|
|
84724
84724
|
return;
|
|
84725
|
-
_f.softShadows = ((up = (ap = (ep = n == null ? void 0 : n.scene) == null ? void 0 : ep.shadow) == null ? void 0 : ap.shadowMap) == null ? void 0 : up.softShadows) ?? !1, _f.darkness = ((al = (
|
|
84725
|
+
_f.softShadows = ((up = (ap = (ep = n == null ? void 0 : n.scene) == null ? void 0 : ep.shadow) == null ? void 0 : ap.shadowMap) == null ? void 0 : up.softShadows) ?? !1, _f.darkness = ((al = (mp = (pp = n == null ? void 0 : n.scene) == null ? void 0 : pp.shadow) == null ? void 0 : mp.shadowMap) == null ? void 0 : al.darkness) ?? 0.3, _f.size = ((yf = (lf = (tf = n == null ? void 0 : n.scene) == null ? void 0 : tf.shadow) == null ? void 0 : lf.shadowMap) == null ? void 0 : yf.size) ?? 2048, _f.maximumDistance = ((Tf = (Of = (If = n == null ? void 0 : n.scene) == null ? void 0 : If.shadow) == null ? void 0 : Of.shadowMap) == null ? void 0 : Tf.maximumDistance) ?? 5e3, _f.fadingEnabled = !0, _f.normalOffset = !0;
|
|
84726
84726
|
const rf = {
|
|
84727
84727
|
polygonOffsetFactor: 1.1,
|
|
84728
84728
|
polygonOffsetUnits: 4,
|
|
@@ -84754,7 +84754,7 @@ const useIBL = ({
|
|
|
84754
84754
|
]);
|
|
84755
84755
|
const _i = useRef(), ba = useRef();
|
|
84756
84756
|
useEffect(() => {
|
|
84757
|
-
var Uf, Bf, ep, ap, up,
|
|
84757
|
+
var Uf, Bf, ep, ap, up, pp, mp, al;
|
|
84758
84758
|
const _f = (Uf = Ra.current) == null ? void 0 : Uf.cesiumElement;
|
|
84759
84759
|
if (!_f || _f.isDestroyed() || ba.current === (s == null ? void 0 : s.featureId) && (s == null ? void 0 : s.featureId) !== void 0)
|
|
84760
84760
|
return;
|
|
@@ -84818,8 +84818,8 @@ const useIBL = ({
|
|
|
84818
84818
|
title: bf.name,
|
|
84819
84819
|
content: getEntityContent(
|
|
84820
84820
|
bf,
|
|
84821
|
-
((
|
|
84822
|
-
Pf != null && Pf.layerId ? (al = (
|
|
84821
|
+
((pp = (up = Ra.current) == null ? void 0 : up.cesiumElement) == null ? void 0 : pp.clock.currentTime) ?? new JulianDate$1(),
|
|
84822
|
+
Pf != null && Pf.layerId ? (al = (mp = tf == null ? void 0 : tf.infobox) == null ? void 0 : mp.property) == null ? void 0 : al.defaultContent : void 0
|
|
84823
84823
|
)
|
|
84824
84824
|
}
|
|
84825
84825
|
} : void 0
|
|
@@ -84895,7 +84895,7 @@ const useIBL = ({
|
|
|
84895
84895
|
}), _f;
|
|
84896
84896
|
}, [ms, Xs]), pu = useCallback(
|
|
84897
84897
|
async (_f, rf) => {
|
|
84898
|
-
var Bf, ep, ap, up,
|
|
84898
|
+
var Bf, ep, ap, up, pp, mp, al, tf, lf, yf, If, Of, Tf, Mf;
|
|
84899
84899
|
if ((Bf = yu.click) == null || Bf.call(yu, _f, rf), !(p & FEATURE_FLAGS.SINGLE_SELECTION))
|
|
84900
84900
|
return;
|
|
84901
84901
|
const bf = (ep = Ra.current) == null ? void 0 : ep.cesiumElement;
|
|
@@ -84914,7 +84914,7 @@ const useIBL = ({
|
|
|
84914
84914
|
content: getEntityContent(
|
|
84915
84915
|
rf.id,
|
|
84916
84916
|
bf.clock.currentTime ?? new JulianDate$1(),
|
|
84917
|
-
Af != null && Af.layerId ? (
|
|
84917
|
+
Af != null && Af.layerId ? (mp = (pp = Gf == null ? void 0 : Gf.infobox) == null ? void 0 : pp.property) == null ? void 0 : mp.defaultContent : void 0
|
|
84918
84918
|
)
|
|
84919
84919
|
}
|
|
84920
84920
|
} : void 0
|
|
@@ -84955,18 +84955,18 @@ const useIBL = ({
|
|
|
84955
84955
|
if (rf === void 0 && _f.position) {
|
|
84956
84956
|
const Af = bf.scene, Gf = Af.camera.getPickRay(_f.position);
|
|
84957
84957
|
if (Gf) {
|
|
84958
|
-
const Xf = await Af.imageryLayers.pickImageryLayerFeatures(Gf, Af), jf = Xf == null ? void 0 : Xf
|
|
84958
|
+
const Xf = await Af.imageryLayers.pickImageryLayerFeatures(Gf, Af), jf = Xf == null ? void 0 : Xf.findLast((dp) => !!dp.data), bp = (al = jf == null ? void 0 : jf.data) == null ? void 0 : al.appearanceType;
|
|
84959
84959
|
if (bp && ((yf = (lf = (tf = jf == null ? void 0 : jf.data) == null ? void 0 : tf.feature) == null ? void 0 : lf[bp]) == null ? void 0 : yf.show) !== !1) {
|
|
84960
|
-
const
|
|
84960
|
+
const dp = getTag(jf.imageryLayer), lp = jf.position;
|
|
84961
84961
|
lp && requestAnimationFrame(() => {
|
|
84962
|
-
|
|
84962
|
+
dp != null && dp.hideIndicator || (bf.selectedEntity = new Entity$2({
|
|
84963
84963
|
position: Cartographic$1.toCartesian(lp)
|
|
84964
84964
|
}));
|
|
84965
84965
|
});
|
|
84966
|
-
const Bp =
|
|
84966
|
+
const Bp = dp != null && dp.layerId ? ((If = h == null ? void 0 : h.current) == null ? void 0 : If.overriddenLayers().find((cg) => cg.id === dp.layerId)) ?? ((Of = h == null ? void 0 : h.current) == null ? void 0 : Of.findById(dp.layerId)) : void 0, ag = getEntityContent(
|
|
84967
84967
|
jf.data.feature ?? jf,
|
|
84968
84968
|
bf.clock.currentTime ?? new JulianDate$1(),
|
|
84969
|
-
|
|
84969
|
+
dp != null && dp.layerId ? (Mf = (Tf = Bp == null ? void 0 : Bp.infobox) == null ? void 0 : Tf.property) == null ? void 0 : Mf.defaultContent : void 0
|
|
84970
84970
|
);
|
|
84971
84971
|
ba.current = jf.data.featureId, W == null || W(
|
|
84972
84972
|
jf.data.layerId,
|
|
@@ -90951,7 +90951,7 @@ const Cesium = ({
|
|
|
90951
90951
|
onLayerLoad: lt,
|
|
90952
90952
|
onCreditsUpdate: _i
|
|
90953
90953
|
}, ba) => {
|
|
90954
|
-
var gd, pd, Zd, sf, of, nf, df, Cf, ff, Sf, wf, Ff, Hf, Jf, Wf, tp, vf, pf, Lf, Df, kf, Yf, Qf, Zf, np, qf, ip, rp, _f, rf, bf, Pf, Uf, Bf, ep, ap, up,
|
|
90954
|
+
var gd, pd, Zd, sf, of, nf, df, Cf, ff, Sf, wf, Ff, Hf, Jf, Wf, tp, vf, pf, Lf, Df, kf, Yf, Qf, Zf, np, qf, ip, rp, _f, rf, bf, Pf, Uf, Bf, ep, ap, up, pp, mp, al, tf, lf;
|
|
90955
90955
|
const {
|
|
90956
90956
|
cesium: Sc,
|
|
90957
90957
|
mouseEventHandles: ms,
|
|
@@ -91180,8 +91180,8 @@ const Cesium = ({
|
|
|
91180
91180
|
AmbientOcclusion,
|
|
91181
91181
|
{
|
|
91182
91182
|
...AMBIENT_OCCLUSION_QUALITY[((ap = (ep = o == null ? void 0 : o.render) == null ? void 0 : ep.ambientOcclusion) == null ? void 0 : ap.quality) || "low"],
|
|
91183
|
-
enabled: !!((
|
|
91184
|
-
intensity: ((al = (
|
|
91183
|
+
enabled: !!((pp = (up = o == null ? void 0 : o.render) == null ? void 0 : up.ambientOcclusion) != null && pp.enabled),
|
|
91184
|
+
intensity: ((al = (mp = o == null ? void 0 : o.render) == null ? void 0 : mp.ambientOcclusion) == null ? void 0 : al.intensity) ?? 100,
|
|
91185
91185
|
outputType: (lf = (tf = o == null ? void 0 : o.render) == null ? void 0 : tf.ambientOcclusion) != null && lf.ambientOcclusionOnly ? AmbientOcclusionOutputType.Occlusion : null
|
|
91186
91186
|
}
|
|
91187
91187
|
)
|
|
@@ -91204,7 +91204,7 @@ function Error$1({ error: t, resetErrorBoundary: n }) {
|
|
|
91204
91204
|
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("button", { style: { color: "#fff" }, onClick: n, children: "Retry" }) })
|
|
91205
91205
|
] });
|
|
91206
91206
|
}
|
|
91207
|
-
const version = "0.0.7-alpha.
|
|
91207
|
+
const version = "0.0.7-alpha.29", useCoreAPI = ({ viewerProperty: t }) => {
|
|
91208
91208
|
const n = useRef(t);
|
|
91209
91209
|
n.current = t;
|
|
91210
91210
|
const o = useMemo(
|