@undp/data-viz 2.1.1 → 2.1.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/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.js +129 -120
- package/dist/BarGraph.js.map +1 -1
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.cjs.map +1 -1
- package/dist/BiVariateChoroplethMap.js +49 -46
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.d.ts +11 -0
- package/dist/BulletChart.js +747 -700
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.cjs.map +1 -1
- package/dist/ButterflyChart.js +7 -4
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.js +52 -49
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.js +37 -34
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.js +41 -38
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/GraphEl-YKUlz-37.cjs +2 -0
- package/dist/GraphEl-YKUlz-37.cjs.map +1 -0
- package/dist/{GraphEl-DEzobeOM.js → GraphEl-sVZvlyWe.js} +2 -1
- package/dist/GraphEl-sVZvlyWe.js.map +1 -0
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.js +2 -2
- package/dist/HybridMap.cjs +1 -1
- package/dist/HybridMap.cjs.map +1 -1
- package/dist/HybridMap.js +62 -59
- package/dist/HybridMap.js.map +1 -1
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.js +7 -4
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.js +2 -2
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.js +1 -1
- package/dist/Types.d.ts +1 -0
- package/dist/ensureCompleteData-DS7gCvVd.js +122 -0
- package/dist/ensureCompleteData-DS7gCvVd.js.map +1 -0
- package/dist/ensureCompleteData-Oib-vGb0.cjs +2 -0
- package/dist/ensureCompleteData-Oib-vGb0.cjs.map +1 -0
- package/dist/getSchema.cjs +1 -1
- package/dist/getSchema.cjs.map +1 -1
- package/dist/getSchema.js +15 -15
- package/dist/getSchema.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2 -2
- package/dist/transformData.cjs +1 -1
- package/dist/transformData.js +2 -2
- package/dist/transformDataForAggregation-CYoB5Xsk.cjs +2 -0
- package/dist/transformDataForAggregation-CYoB5Xsk.cjs.map +1 -0
- package/dist/{transformDataForAggregation-DEU__LUl.js → transformDataForAggregation-j34UL73s.js} +14 -10
- package/dist/transformDataForAggregation-j34UL73s.js.map +1 -0
- package/dist/{transformDataForGraphFromFile-CzepNVGZ.cjs → transformDataForGraphFromFile-CuXxR8uA.cjs} +2 -2
- package/dist/{transformDataForGraphFromFile-CzepNVGZ.cjs.map → transformDataForGraphFromFile-CuXxR8uA.cjs.map} +1 -1
- package/dist/{transformDataForGraphFromFile-CSG24iF6.js → transformDataForGraphFromFile-DyP-83Nh.js} +2 -2
- package/dist/{transformDataForGraphFromFile-CSG24iF6.js.map → transformDataForGraphFromFile-DyP-83Nh.js.map} +1 -1
- package/package.json +1 -1
- package/dist/GraphEl-B16EYkko.cjs +0 -2
- package/dist/GraphEl-B16EYkko.cjs.map +0 -1
- package/dist/GraphEl-DEzobeOM.js.map +0 -1
- package/dist/ensureCompleteData-DNKEGRiP.js +0 -102
- package/dist/ensureCompleteData-DNKEGRiP.js.map +0 -1
- package/dist/ensureCompleteData-I6nYmT8E.cjs +0 -2
- package/dist/ensureCompleteData-I6nYmT8E.cjs.map +0 -1
- package/dist/transformDataForAggregation-DEU__LUl.js.map +0 -1
- package/dist/transformDataForAggregation-XNg0OGYE.cjs +0 -2
- package/dist/transformDataForAggregation-XNg0OGYE.cjs.map +0 -1
package/dist/HybridMap.js
CHANGED
|
@@ -29,8 +29,8 @@ import { f as yo } from "./fetchAndParseData-BpqkBPQL.js";
|
|
|
29
29
|
import { a as xo, G as vo } from "./GraphContainer-CRqzdKu2.js";
|
|
30
30
|
import { g as bo } from "./getUniqValue-DsqSii6M.js";
|
|
31
31
|
import { g as wo } from "./getJenks-BbngDoBQ.js";
|
|
32
|
-
var ko = "Separator", Se = "horizontal", jo = ["horizontal", "vertical"], Ee = Ae.forwardRef((
|
|
33
|
-
const { decorative: e, orientation: h = Se, ...w } =
|
|
32
|
+
var ko = "Separator", Se = "horizontal", jo = ["horizontal", "vertical"], Ee = Ae.forwardRef((r, t) => {
|
|
33
|
+
const { decorative: e, orientation: h = Se, ...w } = r, n = Co(h) ? h : Se, k = e ? { role: "none" } : { "aria-orientation": n === "vertical" ? n : void 0, role: "separator" };
|
|
34
34
|
return /* @__PURE__ */ Oe.jsx(
|
|
35
35
|
oo.div,
|
|
36
36
|
{
|
|
@@ -42,19 +42,19 @@ var ko = "Separator", Se = "horizontal", jo = ["horizontal", "vertical"], Ee = A
|
|
|
42
42
|
);
|
|
43
43
|
});
|
|
44
44
|
Ee.displayName = ko;
|
|
45
|
-
function Co(
|
|
46
|
-
return jo.includes(
|
|
45
|
+
function Co(r) {
|
|
46
|
+
return jo.includes(r);
|
|
47
47
|
}
|
|
48
48
|
var Ie = Ee;
|
|
49
|
-
const ze = Fe.forwardRef((
|
|
49
|
+
const ze = Fe.forwardRef((r, t) => {
|
|
50
50
|
const e = Be.c(14);
|
|
51
51
|
let h, w, n, k;
|
|
52
|
-
e[0] !==
|
|
52
|
+
e[0] !== r ? ({
|
|
53
53
|
className: h,
|
|
54
54
|
variant: n,
|
|
55
55
|
orientation: k,
|
|
56
56
|
...w
|
|
57
|
-
} =
|
|
57
|
+
} = r, e[0] = r, e[1] = h, e[2] = w, e[3] = n, e[4] = k) : (h = e[1], w = e[2], n = e[3], k = e[4]);
|
|
58
58
|
const j = n === void 0 ? "dark" : n, d = k === void 0 ? "horizontal" : k, g = d === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", S = j === "dark" ? "bg-primary-gray-600 dark:bg-primary-gray-200" : "bg-primary-gray-400 dark:bg-primary-gray-550";
|
|
59
59
|
let N;
|
|
60
60
|
e[5] !== h || e[6] !== g || e[7] !== S ? (N = Me(g, S, h), e[5] = h, e[6] = g, e[7] = S, e[8] = N) : N = e[8];
|
|
@@ -62,7 +62,7 @@ const ze = Fe.forwardRef((i, t) => {
|
|
|
62
62
|
return e[9] !== d || e[10] !== w || e[11] !== t || e[12] !== N ? (L = /* @__PURE__ */ Oe.jsx(Ie, { ...w, ref: t, orientation: d, className: N }), e[9] = d, e[10] = w, e[11] = t, e[12] = N, e[13] = L) : L = e[13], L;
|
|
63
63
|
});
|
|
64
64
|
ze.displayName = Ie.displayName;
|
|
65
|
-
function No(
|
|
65
|
+
function No(r) {
|
|
66
66
|
const {
|
|
67
67
|
data: t,
|
|
68
68
|
colors: e,
|
|
@@ -103,12 +103,12 @@ function No(i) {
|
|
|
103
103
|
dotLegendTitle: vt,
|
|
104
104
|
dotBorderColor: zt,
|
|
105
105
|
labelColor: Lt
|
|
106
|
-
} =
|
|
106
|
+
} = r, [P, _] = z(void 0), [b, v] = z(It === void 0 ? !(d < 680) : !It), st = Tt(null), [ct, et] = z(void 0), [Pt, E] = z(void 0), [dt, I] = z(void 0), [bt, R] = z(void 0), V = Tt(null), q = uo(V, {
|
|
107
107
|
once: x.once,
|
|
108
108
|
amount: x.amount
|
|
109
109
|
}), wt = Tt(null), B = t.filter((o) => o.radius === void 0 || o.radius === null).length !== t.length ? so().domain([0, yt]).range([0.25, k]).nice() : void 0, Gt = nt ? co().domain(n).range(e) : mo().domain(n).range(e);
|
|
110
110
|
se(() => {
|
|
111
|
-
const o = Ce(wt.current),
|
|
111
|
+
const o = Ce(wt.current), i = Ce(V.current), M = (m) => {
|
|
112
112
|
if (Q === "noZoom") return !1;
|
|
113
113
|
if (Q === "button") return !m.type.includes("wheel");
|
|
114
114
|
const s = m.type === "wheel", C = m.type.startsWith("touch"), p = m.type === "mousedown" || m.type === "mousemove";
|
|
@@ -118,7 +118,7 @@ function No(i) {
|
|
|
118
118
|
}) => {
|
|
119
119
|
o.attr("transform", m);
|
|
120
120
|
});
|
|
121
|
-
|
|
121
|
+
i.call(l), st.current = l;
|
|
122
122
|
}, [j, d, Q]);
|
|
123
123
|
const D = Ye(h), W = eo(h), G = D[2] - D[0], _t = D[3] - D[1], Vt = d * 190 / 960 * 360 / G, Bt = j * 190 / 678 * 180 / _t, H = g * Math.min(Vt, Bt), A = it === "mercator" ? Je().rotate([0, 0]).center(S || W.geometry.coordinates).translate([d / 2, j / 2]).scale(H) : it === "equalEarth" ? Ke().rotate([0, 0]).center(S || W.geometry.coordinates).translate([d / 2, j / 2]).scale(H) : it === "naturalEarth" ? Ze().rotate([0, 0]).center(S || W.geometry.coordinates).translate([d / 2, j / 2]).scale(H) : it === "orthographic" ? Qe().rotate([0, 0]).center(S || W.geometry.coordinates).translate([d / 2, j / 2]).scale(H) : to().rotate([0, 0]).center(S || W.geometry.coordinates).translate([d / 2, j / 2]).scale(H), kt = (o) => {
|
|
124
124
|
if (!V.current || !st.current) return;
|
|
@@ -129,7 +129,7 @@ function No(i) {
|
|
|
129
129
|
/* @__PURE__ */ a.jsx(ht.svg, { width: `${d}px`, height: `${j}px`, viewBox: `0 0 ${d} ${j}`, ref: V, direction: "ltr", children: /* @__PURE__ */ a.jsxs("g", { ref: wt, children: [
|
|
130
130
|
ft.filter((o) => o.position === "before").map((o) => o.layer),
|
|
131
131
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
132
|
-
h.features.map((o,
|
|
132
|
+
h.features.map((o, i) => t.findIndex((l) => l.id === o.properties[xt]) !== -1 ? null : /* @__PURE__ */ a.jsx("g", { opacity: P ? T : lt.length !== 0 ? lt.indexOf(o.properties[xt]) !== -1 ? 1 : T : 1, children: o.geometry.type === "MultiPolygon" ? (
|
|
133
133
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
134
134
|
o.geometry.coordinates.map((l, m) => {
|
|
135
135
|
let s = "";
|
|
@@ -158,10 +158,10 @@ function No(i) {
|
|
|
158
158
|
fill: gt
|
|
159
159
|
} }, m);
|
|
160
160
|
})
|
|
161
|
-
) },
|
|
161
|
+
) }, i)),
|
|
162
162
|
/* @__PURE__ */ a.jsxs(ho, { children: [
|
|
163
163
|
t.filter((o) => o.id).map((o) => {
|
|
164
|
-
const
|
|
164
|
+
const i = h.features.findIndex(
|
|
165
165
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
166
166
|
(l) => o.id === l.properties[xt]
|
|
167
167
|
), M = ce(o.x) ? gt : (
|
|
@@ -191,7 +191,7 @@ function No(i) {
|
|
|
191
191
|
E(void 0), I(void 0), R(void 0), K?.(void 0);
|
|
192
192
|
}, onClick: () => {
|
|
193
193
|
(F || Z) && (De(ct, o) && Et ? (et(void 0), F?.(void 0)) : (et(o), F?.(o)));
|
|
194
|
-
}, children:
|
|
194
|
+
}, children: i === -1 ? null : h.features[i].geometry.type === "MultiPolygon" ? h.features[i].geometry.coordinates.map(
|
|
195
195
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
196
196
|
(l, m) => {
|
|
197
197
|
let s = "";
|
|
@@ -223,7 +223,7 @@ function No(i) {
|
|
|
223
223
|
strokeWidth: ot
|
|
224
224
|
} }, `${o.id}-${m}`);
|
|
225
225
|
}
|
|
226
|
-
) : h.features[
|
|
226
|
+
) : h.features[i].geometry.coordinates.map(
|
|
227
227
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
228
228
|
(l, m) => {
|
|
229
229
|
let s = "M";
|
|
@@ -269,10 +269,10 @@ function No(i) {
|
|
|
269
269
|
transition: {
|
|
270
270
|
duration: x.duration
|
|
271
271
|
}
|
|
272
|
-
}, onMouseEnter: (
|
|
273
|
-
E(o), R(
|
|
274
|
-
}, onMouseMove: (
|
|
275
|
-
E(o), R(
|
|
272
|
+
}, onMouseEnter: (i) => {
|
|
273
|
+
E(o), R(i.clientY), I(i.clientX), K?.(o);
|
|
274
|
+
}, onMouseMove: (i) => {
|
|
275
|
+
E(o), R(i.clientY), I(i.clientX);
|
|
276
276
|
}, onMouseLeave: () => {
|
|
277
277
|
E(void 0), I(void 0), R(void 0), K?.(void 0);
|
|
278
278
|
}, onClick: () => {
|
|
@@ -352,31 +352,31 @@ function No(i) {
|
|
|
352
352
|
WebkitLineClamp: "1",
|
|
353
353
|
WebkitBoxOrient: "vertical"
|
|
354
354
|
}, children: w }) : null,
|
|
355
|
-
nt ? /* @__PURE__ */ a.jsx("div", { className: "flex flex-col gap-3", children: n.map((o,
|
|
356
|
-
_(e[
|
|
355
|
+
nt ? /* @__PURE__ */ a.jsx("div", { className: "flex flex-col gap-3", children: n.map((o, i) => /* @__PURE__ */ a.jsxs("div", { className: "flex gap-2 items-center", onMouseOver: () => {
|
|
356
|
+
_(e[i % e.length]);
|
|
357
357
|
}, onMouseLeave: () => {
|
|
358
358
|
_(void 0);
|
|
359
359
|
}, children: [
|
|
360
360
|
/* @__PURE__ */ a.jsx("div", { className: "w-2 h-2 rounded-full", style: {
|
|
361
|
-
backgroundColor: e[
|
|
361
|
+
backgroundColor: e[i % e.length]
|
|
362
362
|
} }),
|
|
363
363
|
/* @__PURE__ */ a.jsx(je, { size: "sm", marginBottom: "none", leading: "none", children: o })
|
|
364
|
-
] },
|
|
365
|
-
n.map((o,
|
|
366
|
-
_(e[
|
|
364
|
+
] }, i)) }) : /* @__PURE__ */ a.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ a.jsxs("g", { children: [
|
|
365
|
+
n.map((o, i) => /* @__PURE__ */ a.jsxs("g", { onMouseOver: () => {
|
|
366
|
+
_(e[i]);
|
|
367
367
|
}, onMouseLeave: () => {
|
|
368
368
|
_(void 0);
|
|
369
369
|
}, className: "cursor-pointer", children: [
|
|
370
|
-
/* @__PURE__ */ a.jsx("rect", { x:
|
|
371
|
-
fill: e[
|
|
372
|
-
...P === e[
|
|
373
|
-
stroke: e[
|
|
370
|
+
/* @__PURE__ */ a.jsx("rect", { x: i * 320 / e.length + 1, y: 1, width: 320 / e.length - 2, height: 8, className: P === e[i] ? "stroke-primary-gray-700 dark:stroke-primary-gray-300" : "", style: {
|
|
371
|
+
fill: e[i],
|
|
372
|
+
...P === e[i] ? {} : {
|
|
373
|
+
stroke: e[i]
|
|
374
374
|
}
|
|
375
375
|
} }),
|
|
376
|
-
/* @__PURE__ */ a.jsx("text", { x: (
|
|
376
|
+
/* @__PURE__ */ a.jsx("text", { x: (i + 1) * 320 / e.length, y: 25, className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs", style: {
|
|
377
377
|
textAnchor: "middle"
|
|
378
378
|
}, children: po(o, "NA") })
|
|
379
|
-
] },
|
|
379
|
+
] }, i)),
|
|
380
380
|
/* @__PURE__ */ a.jsx("g", { children: /* @__PURE__ */ a.jsx("rect", { onMouseOver: () => {
|
|
381
381
|
_(e[n.length]);
|
|
382
382
|
}, onMouseLeave: () => {
|
|
@@ -401,7 +401,7 @@ function No(i) {
|
|
|
401
401
|
Pt && N && dt && bt ? /* @__PURE__ */ a.jsx(ao, { data: Pt, body: N, xPos: dt, yPos: bt, backgroundStyle: O?.tooltip, className: rt?.tooltip }) : null
|
|
402
402
|
] });
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function ua(r) {
|
|
405
405
|
const t = We.c(131), {
|
|
406
406
|
data: e,
|
|
407
407
|
mapData: h,
|
|
@@ -459,7 +459,7 @@ function pa(i) {
|
|
|
459
459
|
dotLegendTitle: wt,
|
|
460
460
|
dotBorderColor: B,
|
|
461
461
|
labelColor: Gt
|
|
462
|
-
} =
|
|
462
|
+
} = r, D = h === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap.json" : h, W = S === void 0 ? "The designations employed and the presentation of material on this map do not imply the expression of any opinion whatsoever on the part of the Secretariat of the United Nations or UNDP concerning the legal status of any country, territory, city or area or its authorities, or concerning the delimitation of its frontiers or boundaries." : S, G = ot === void 0 ? "threshold" : ot, _t = at === void 0 ? 5 : at, Vt = gt === void 0 ? 0.95 : gt, Bt = Rt === void 0 ? 0.5 : Rt, H = qt === void 0 ? St.light.graphNoData : qt, A = Ot === void 0 ? !1 : Ot, kt = F === void 0 ? !1 : F, o = Et === void 0 ? St.light.grays["gray-500"] : Et, i = it === void 0 ? !0 : it, M = Q === void 0 ? !0 : Q;
|
|
463
463
|
let l;
|
|
464
464
|
t[0] !== x ? (l = x === void 0 ? [0.8, 6] : x, t[0] = x, t[1] = l) : l = t[1];
|
|
465
465
|
const m = l;
|
|
@@ -482,7 +482,7 @@ function pa(i) {
|
|
|
482
482
|
let At;
|
|
483
483
|
if (t[10] !== e || t[11] !== c.dateFormat) {
|
|
484
484
|
let y;
|
|
485
|
-
t[13] !== c.dateFormat ? (y = (J) => qe(`${J}`, c.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[13] = c.dateFormat, t[14] = y) : y = t[14], At = [...new Set(e.map(y))], At.sort(Po), t[10] = e, t[11] = c.dateFormat, t[12] = At;
|
|
485
|
+
t[13] !== c.dateFormat ? (y = (J) => qe(`${J.date}`, c.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[13] = c.dateFormat, t[14] = y) : y = t[14], At = [...new Set(e.filter(_o).map(y))], At.sort(Po), t[10] = e, t[11] = c.dateFormat, t[12] = At;
|
|
486
486
|
} else
|
|
487
487
|
At = t[12];
|
|
488
488
|
const u = At, [Y, xe] = z(c.autoplay ? 0 : u.length - 1), [jt, Ve] = z(void 0), ve = Tt(null), Ne = Tt(null);
|
|
@@ -540,10 +540,10 @@ function pa(i) {
|
|
|
540
540
|
}, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
|
|
541
541
|
] }) : null, t[49] = Y, t[50] = ne, t[51] = X, t[52] = c.enabled, t[53] = u, t[54] = Nt) : Nt = t[54];
|
|
542
542
|
let Dt;
|
|
543
|
-
t[55] !== Ht || t[56] !== K || t[57] !== G || t[58] !== v || t[59] !== bt || t[60] !== n || t[61] !== ue || t[62] !== e || t[63] !== _ || t[64] !== pe || t[65] !== Ft || t[66] !== B || t[67] !== he || t[68] !== wt || t[69] !== d || t[70] !== C || t[71] !== ge || t[72] !== Y || t[73] !==
|
|
543
|
+
t[55] !== Ht || t[56] !== K || t[57] !== G || t[58] !== v || t[59] !== bt || t[60] !== n || t[61] !== ue || t[62] !== e || t[63] !== _ || t[64] !== pe || t[65] !== Ft || t[66] !== B || t[67] !== he || t[68] !== wt || t[69] !== d || t[70] !== C || t[71] !== ge || t[72] !== Y || t[73] !== i || t[74] !== ye || t[75] !== o || t[76] !== Bt || t[77] !== N || t[78] !== H || t[79] !== st || t[80] !== fe || t[81] !== jt || t[82] !== dt || t[83] !== U || t[84] !== nt || t[85] !== rt || t[86] !== _t || t[87] !== O || t[88] !== de || t[89] !== Vt || t[90] !== mt || t[91] !== M || t[92] !== kt || t[93] !== b || t[94] !== Wt || t[95] !== ut || t[96] !== pt || t[97] !== c.dateFormat || t[98] !== c.enabled || t[99] !== Z || t[100] !== u || t[101] !== g || t[102] !== me || t[103] !== m || t[104] !== T ? (Dt = /* @__PURE__ */ a.jsx(xo, { ref: ve, children: ut && Wt && jt ? /* @__PURE__ */ a.jsx(No, { dotColor: he, data: e.filter((y) => c.enabled ? y.date === Re(new Date(u[Y]), c.dateFormat || "yyyy") : y), mapData: mt ? jt : {
|
|
544
544
|
...jt,
|
|
545
545
|
features: jt.features.filter(So)
|
|
546
|
-
}, colorDomain: Ft, width: ut, height: Wt, scale: Vt, centerPoint: K, colors: n || (G === "categorical" ? St[pt].sequentialColors[`neutralColorsx0${Ft.length}`] : St[pt].sequentialColors[`neutralColorsx0${Ft.length + 1}`]), mapColorLegendTitle: N, radius: _t, categorical: G === "categorical", mapBorderWidth: Bt, mapNoDataColor: H, mapBorderColor: o, tooltip: Z, onSeriesMouseOver: rt, showLabels: kt, isWorldMap:
|
|
546
|
+
}, colorDomain: Ft, width: ut, height: Wt, scale: Vt, centerPoint: K, colors: n || (G === "categorical" ? St[pt].sequentialColors[`neutralColorsx0${Ft.length}`] : St[pt].sequentialColors[`neutralColorsx0${Ft.length + 1}`]), mapColorLegendTitle: N, radius: _t, categorical: G === "categorical", mapBorderWidth: Bt, mapNoDataColor: H, mapBorderColor: o, tooltip: Z, onSeriesMouseOver: rt, showLabels: kt, isWorldMap: i, showColorScale: M, zoomScaleExtend: m, zoomTranslateExtend: T, onSeriesMouseClick: nt, highlightedDataPoints: C, resetSelectionOnDoubleClick: de, styles: b, classNames: v, zoomInteraction: me, detailsOnClick: _, mapProjection: st || (i ? "naturalEarth" : "mercator"), animate: Ht === !0 ? {
|
|
547
547
|
duration: 0.5,
|
|
548
548
|
once: !0,
|
|
549
549
|
amount: 0.5
|
|
@@ -553,7 +553,7 @@ function pa(i) {
|
|
|
553
553
|
amount: 0
|
|
554
554
|
}, dimmedOpacity: pe, customLayers: ue, maxRadiusValue: ce(dt) ? Math.max(...e.map($o).filter(Do)) : dt, collapseColorScaleByDefault: bt, highlightedIds: ge, mapProperty: fe, dotLegendTitle: wt, dotBorderColor: B, labelColor: ye }) : /* @__PURE__ */ a.jsx("div", { style: {
|
|
555
555
|
height: `${Math.max(U, d || (O ? U ? (g || ut) * O > U ? (g || ut) * O : U : (g || ut) * O : Wt))}px`
|
|
556
|
-
}, className: "flex items-center justify-center", children: /* @__PURE__ */ a.jsx(Ue, { "aria-label": "Loading graph" }) }) }), t[55] = Ht, t[56] = K, t[57] = G, t[58] = v, t[59] = bt, t[60] = n, t[61] = ue, t[62] = e, t[63] = _, t[64] = pe, t[65] = Ft, t[66] = B, t[67] = he, t[68] = wt, t[69] = d, t[70] = C, t[71] = ge, t[72] = Y, t[73] =
|
|
556
|
+
}, className: "flex items-center justify-center", children: /* @__PURE__ */ a.jsx(Ue, { "aria-label": "Loading graph" }) }) }), t[55] = Ht, t[56] = K, t[57] = G, t[58] = v, t[59] = bt, t[60] = n, t[61] = ue, t[62] = e, t[63] = _, t[64] = pe, t[65] = Ft, t[66] = B, t[67] = he, t[68] = wt, t[69] = d, t[70] = C, t[71] = ge, t[72] = Y, t[73] = i, t[74] = ye, t[75] = o, t[76] = Bt, t[77] = N, t[78] = H, t[79] = st, t[80] = fe, t[81] = jt, t[82] = dt, t[83] = U, t[84] = nt, t[85] = rt, t[86] = _t, t[87] = O, t[88] = de, t[89] = Vt, t[90] = mt, t[91] = M, t[92] = kt, t[93] = b, t[94] = Wt, t[95] = ut, t[96] = pt, t[97] = c.dateFormat, t[98] = c.enabled, t[99] = Z, t[100] = u, t[101] = g, t[102] = me, t[103] = m, t[104] = T, t[105] = Dt) : Dt = t[105];
|
|
557
557
|
let $t;
|
|
558
558
|
t[106] !== v?.footnote || t[107] !== v?.source || t[108] !== W || t[109] !== k || t[110] !== b?.footnote || t[111] !== b?.source || t[112] !== g ? ($t = k || W ? /* @__PURE__ */ a.jsx(go, { styles: {
|
|
559
559
|
footnote: b?.footnote,
|
|
@@ -570,37 +570,40 @@ function pa(i) {
|
|
|
570
570
|
$t
|
|
571
571
|
] }), t[114] = Lt, t[115] = A, t[116] = ft, t[117] = d, t[118] = $, t[119] = U, t[120] = Mt, t[121] = O, t[122] = we, t[123] = ke, t[124] = Ct, t[125] = Nt, t[126] = Dt, t[127] = $t, t[128] = pt, t[129] = g, t[130] = le) : le = t[130], le;
|
|
572
572
|
}
|
|
573
|
-
function Do(
|
|
574
|
-
return
|
|
573
|
+
function Do(r) {
|
|
574
|
+
return r != null;
|
|
575
575
|
}
|
|
576
|
-
function $o(
|
|
577
|
-
return
|
|
576
|
+
function $o(r) {
|
|
577
|
+
return r.radius;
|
|
578
578
|
}
|
|
579
|
-
function So(
|
|
580
|
-
return
|
|
579
|
+
function So(r) {
|
|
580
|
+
return r.properties.NAME !== "Antarctica";
|
|
581
581
|
}
|
|
582
|
-
function Mo(
|
|
583
|
-
return
|
|
582
|
+
function Mo(r) {
|
|
583
|
+
return r !== void 0;
|
|
584
584
|
}
|
|
585
|
-
function Oo(
|
|
586
|
-
return
|
|
585
|
+
function Oo(r) {
|
|
586
|
+
return r !== void 0;
|
|
587
587
|
}
|
|
588
|
-
function Eo(
|
|
589
|
-
return
|
|
588
|
+
function Eo(r) {
|
|
589
|
+
return r.data;
|
|
590
590
|
}
|
|
591
|
-
function Io(
|
|
592
|
-
return
|
|
591
|
+
function Io(r) {
|
|
592
|
+
return r !== void 0;
|
|
593
593
|
}
|
|
594
|
-
function zo(
|
|
595
|
-
return
|
|
594
|
+
function zo(r) {
|
|
595
|
+
return r.data;
|
|
596
596
|
}
|
|
597
|
-
function Lo(
|
|
598
|
-
return
|
|
597
|
+
function Lo(r) {
|
|
598
|
+
return r.x;
|
|
599
599
|
}
|
|
600
|
-
function Po(
|
|
601
|
-
return
|
|
600
|
+
function Po(r, t) {
|
|
601
|
+
return r - t;
|
|
602
|
+
}
|
|
603
|
+
function _o(r) {
|
|
604
|
+
return r.date;
|
|
602
605
|
}
|
|
603
606
|
export {
|
|
604
|
-
|
|
607
|
+
ua as HybridMap
|
|
605
608
|
};
|
|
606
609
|
//# sourceMappingURL=HybridMap.js.map
|