@carto/ps-react-maps 3.7.0 → 3.7.2
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/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/dist/types/stats/use-stats.d.ts +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -3537,17 +3537,22 @@ function ar(r) {
|
|
|
3537
3537
|
const n = U(s);
|
|
3538
3538
|
let o;
|
|
3539
3539
|
e: {
|
|
3540
|
-
if (!n) {
|
|
3540
|
+
if (!n || !Object.keys(n).length) {
|
|
3541
3541
|
o = void 0;
|
|
3542
3542
|
break e;
|
|
3543
3543
|
}
|
|
3544
3544
|
let i;
|
|
3545
|
-
|
|
3545
|
+
if (e[2] !== n) {
|
|
3546
|
+
const a = Object.values(n).filter(cr).flatMap(lr);
|
|
3547
|
+
i = gt(a), e[2] = n, e[3] = i;
|
|
3548
|
+
} else
|
|
3549
|
+
i = e[3];
|
|
3550
|
+
o = i.geometry;
|
|
3546
3551
|
}
|
|
3547
3552
|
return o;
|
|
3548
3553
|
}
|
|
3549
3554
|
function lr(r) {
|
|
3550
|
-
return r.coordinates;
|
|
3555
|
+
return r.type === "Polygon" ? [r.coordinates] : r.coordinates;
|
|
3551
3556
|
}
|
|
3552
3557
|
function cr(r) {
|
|
3553
3558
|
return r != null;
|