@undp/data-viz 2.0.9 → 2.1.0
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/AreaChart.cjs +1 -1
- package/dist/AreaChart.d.ts +2 -0
- package/dist/AreaChart.js +1 -1
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.d.ts +2 -0
- package/dist/BarGraph.js +1188 -1213
- package/dist/BarGraph.js.map +1 -1
- package/dist/BasicStatCard.d.ts +2 -0
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.cjs.map +1 -1
- package/dist/BeeSwarmChart.d.ts +2 -0
- package/dist/BeeSwarmChart.js +258 -267
- package/dist/BeeSwarmChart.js.map +1 -1
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.cjs.map +1 -1
- package/dist/BiVariateChoroplethMap.d.ts +2 -0
- package/dist/BiVariateChoroplethMap.js +126 -131
- 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 +2 -0
- package/dist/BulletChart.js +404 -413
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.cjs.map +1 -1
- package/dist/ButterflyChart.d.ts +2 -0
- package/dist/ButterflyChart.js +179 -184
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.d.ts +2 -0
- package/dist/ChoroplethMap.js +268 -273
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.d.ts +2 -0
- package/dist/CirclePackingGraph.js +1 -1
- package/dist/DataCards.d.ts +2 -0
- package/dist/DataCards.js +1 -1
- package/dist/DataTable.d.ts +2 -0
- package/dist/DetailsModal-0Ry5nXiC.js +32 -0
- package/dist/DetailsModal-0Ry5nXiC.js.map +1 -0
- package/dist/DetailsModal-BN0HDFlV.cjs +2 -0
- package/dist/DetailsModal-BN0HDFlV.cjs.map +1 -0
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.d.ts +2 -0
- package/dist/DifferenceLineChart.js +1 -1
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.cjs.map +1 -1
- package/dist/DonutChart.d.ts +2 -0
- package/dist/DonutChart.js +185 -190
- package/dist/DonutChart.js.map +1 -1
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.d.ts +2 -0
- package/dist/DotDensityMap.js +198 -203
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.d.ts +2 -0
- package/dist/DualAxisLineChart.js +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.d.ts +2 -0
- package/dist/DumbbellChart.js +364 -373
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/GeoHubCompareMaps.d.ts +2 -0
- package/dist/GeoHubMap.d.ts +2 -0
- package/dist/GeoHubMapWithLayerSelection.d.ts +2 -0
- package/dist/{GraphEl-BcKU0bG1.cjs → GraphEl-B16EYkko.cjs} +2 -2
- package/dist/{GraphEl-BcKU0bG1.cjs.map → GraphEl-B16EYkko.cjs.map} +1 -1
- package/dist/{GraphEl-CGq1EWRn.js → GraphEl-ebgfxefq.js} +3 -3
- package/dist/{GraphEl-CGq1EWRn.js.map → GraphEl-ebgfxefq.js.map} +1 -1
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.cjs.map +1 -1
- package/dist/GriddedGraphs.d.ts +2 -0
- package/dist/GriddedGraphs.js +19 -19
- package/dist/GriddedGraphs.js.map +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +2 -0
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.cjs.map +1 -1
- package/dist/HeatMap.d.ts +2 -0
- package/dist/HeatMap.js +111 -116
- package/dist/HeatMap.js.map +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.d.ts +2 -0
- package/dist/Histogram.js +1 -1
- package/dist/HybridMap.cjs +1 -1
- package/dist/HybridMap.cjs.map +1 -1
- package/dist/HybridMap.d.ts +2 -0
- package/dist/HybridMap.js +202 -207
- package/dist/HybridMap.js.map +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.d.ts +2 -0
- package/dist/LineChartWithConfidenceInterval.js +1 -1
- package/dist/{Modal-DGcuAHyK.js → Modal-bMQA6bL_.js} +5 -5
- package/dist/{Modal-DGcuAHyK.js.map → Modal-bMQA6bL_.js.map} +1 -1
- package/dist/MultiGraphDashboard.cjs +1 -1
- package/dist/MultiGraphDashboard.cjs.map +1 -1
- package/dist/MultiGraphDashboard.d.ts +2 -0
- package/dist/MultiGraphDashboard.js +10 -10
- package/dist/MultiGraphDashboard.js.map +1 -1
- package/dist/MultiGraphDashboardFromConfig.d.ts +2 -0
- package/dist/MultiGraphDashboardWideToLongFormat.d.ts +2 -0
- package/dist/MultiGraphDashboardWideToLongFormat.js +1 -1
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +2 -0
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.d.ts +2 -0
- package/dist/MultiLineAltChart.js +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.d.ts +2 -0
- package/dist/MultiLineChart.js +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.cjs.map +1 -1
- package/dist/ParetoChart.d.ts +2 -0
- package/dist/ParetoChart.js +187 -192
- package/dist/ParetoChart.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +2 -0
- package/dist/PerformanceIntensiveMultiGraphDashboard.js +16 -16
- package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +2 -0
- package/dist/PerformanceIntensiveScrollStory.d.ts +2 -0
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.cjs.map +1 -1
- package/dist/RadarChart.d.ts +2 -0
- package/dist/RadarChart.js +158 -163
- package/dist/RadarChart.js.map +1 -1
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.cjs.map +1 -1
- package/dist/SankeyChart.d.ts +2 -0
- package/dist/SankeyChart.js +172 -177
- package/dist/SankeyChart.js.map +1 -1
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.d.ts +2 -0
- package/dist/ScatterPlot.js +222 -227
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/ScrollStory.d.ts +2 -0
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.d.ts +2 -0
- package/dist/SimpleLineChart.js +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.cjs.map +1 -1
- package/dist/SingleGraphDashboard.d.ts +2 -0
- package/dist/SingleGraphDashboard.js +24 -24
- package/dist/SingleGraphDashboard.js.map +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +2 -0
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +2 -0
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +2 -0
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +2 -0
- package/dist/SingleGraphDashboardThreeDGraphs.js +46 -46
- package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +2 -0
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.cjs.map +1 -1
- package/dist/SlopeChart.d.ts +2 -0
- package/dist/SlopeChart.js +182 -187
- package/dist/SlopeChart.js.map +1 -1
- package/dist/SparkLine.cjs +1 -1
- package/dist/SparkLine.d.ts +2 -0
- package/dist/SparkLine.js +1 -1
- package/dist/StatCardFromData.d.ts +2 -0
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.cjs.map +1 -1
- package/dist/StripChart.d.ts +2 -0
- package/dist/StripChart.js +249 -258
- package/dist/StripChart.js.map +1 -1
- package/dist/ThreeDGlobe.cjs +1 -1
- package/dist/ThreeDGlobe.cjs.map +1 -1
- package/dist/ThreeDGlobe.d.ts +2 -0
- package/dist/ThreeDGlobe.js +142 -147
- package/dist/ThreeDGlobe.js.map +1 -1
- package/dist/Tooltip-Dj5eVppQ.js +45 -0
- package/dist/Tooltip-Dj5eVppQ.js.map +1 -0
- package/dist/Tooltip-uUdw6wJL.cjs +2 -0
- package/dist/Tooltip-uUdw6wJL.cjs.map +1 -0
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.cjs.map +1 -1
- package/dist/TreeMapGraph.d.ts +2 -0
- package/dist/TreeMapGraph.js +159 -164
- package/dist/TreeMapGraph.js.map +1 -1
- package/dist/Types.d.ts +2 -0
- package/dist/UnitChart.d.ts +2 -0
- package/dist/{checkIfMultiple-Y9iKaV_u.js → checkIfMultiple-CIRtG0KE.js} +2 -2
- package/dist/{checkIfMultiple-Y9iKaV_u.js.map → checkIfMultiple-CIRtG0KE.js.map} +1 -1
- package/dist/index-BBV4tAeA.js +330 -0
- package/dist/index-BBV4tAeA.js.map +1 -0
- package/dist/index-CF5hnGvG.cjs +2 -0
- package/dist/index-CF5hnGvG.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/Tooltip-4dJo4_AF.cjs +0 -2
- package/dist/Tooltip-4dJo4_AF.cjs.map +0 -1
- package/dist/Tooltip-CwWUegPB.js +0 -43
- package/dist/Tooltip-CwWUegPB.js.map +0 -1
- package/dist/index-B2LQV7Tk.js +0 -335
- package/dist/index-B2LQV7Tk.js.map +0 -1
- package/dist/index-xRHRLDIp.cjs +0 -2
- package/dist/index-xRHRLDIp.cjs.map +0 -1
package/dist/ThreeDGlobe.js
CHANGED
|
@@ -1,39 +1,38 @@
|
|
|
1
1
|
import { j as i, m as lt, c as ct } from "./index-CHPV5EwG-Curnpaqc.js";
|
|
2
|
-
import { useState as
|
|
2
|
+
import { useState as I, useRef as Qe, useEffect as G, useCallback as dt, useEffectEvent as pt } from "react";
|
|
3
3
|
import { w as ht } from "./Spinner-D7rnnwnA.js";
|
|
4
4
|
import mt from "react-globe.gl";
|
|
5
5
|
import { i as ut } from "./index-Bwrro8-q.js";
|
|
6
|
-
import * as
|
|
7
|
-
import { l as gt } from "./Modal-DGcuAHyK.js";
|
|
6
|
+
import * as $ from "three";
|
|
8
7
|
import { j as et } from "./Typography-PxtFcnJb.js";
|
|
9
|
-
import { g as
|
|
10
|
-
import { T as
|
|
11
|
-
import { n as
|
|
12
|
-
import { X as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { o as
|
|
16
|
-
import { t as
|
|
17
|
-
import { GraphHeader as
|
|
18
|
-
import { GraphFooter as
|
|
19
|
-
import { f as
|
|
20
|
-
import { Colors as
|
|
21
|
-
import { g as
|
|
22
|
-
import { g as
|
|
23
|
-
import { a as
|
|
8
|
+
import { g as gt } from "./_commonjsHelpers-ByX85dGu.js";
|
|
9
|
+
import { T as ft } from "./Tooltip-Dj5eVppQ.js";
|
|
10
|
+
import { n as vt } from "./numberFormattingFunction-14YCbkN2.js";
|
|
11
|
+
import { X as yt } from "./index-D491FEn1.js";
|
|
12
|
+
import { g as bt } from "./getCentroidCoordinates-D7r34N4w.js";
|
|
13
|
+
import { D as xt } from "./DetailsModal-0Ry5nXiC.js";
|
|
14
|
+
import { o as wt } from "./ordinal-P77xw8aL.js";
|
|
15
|
+
import { t as Ct } from "./threshold-Bgr20hik.js";
|
|
16
|
+
import { GraphHeader as Dt } from "./GraphHeader.js";
|
|
17
|
+
import { GraphFooter as St } from "./GraphFooter.js";
|
|
18
|
+
import { f as jt } from "./fetchAndParseData-BpqkBPQL.js";
|
|
19
|
+
import { Colors as oe } from "./Colors.js";
|
|
20
|
+
import { g as Nt } from "./getUniqValue-DsqSii6M.js";
|
|
21
|
+
import { g as kt } from "./getJenks-BbngDoBQ.js";
|
|
22
|
+
import { a as Rt, G as Ot } from "./GraphContainer-CRqzdKu2.js";
|
|
24
23
|
var Ke, tt;
|
|
25
|
-
function
|
|
24
|
+
function Lt() {
|
|
26
25
|
if (tt) return Ke;
|
|
27
26
|
tt = 1;
|
|
28
27
|
var t = function(o) {
|
|
29
28
|
return o.charAt(0) === "#" ? o.slice(1) : o;
|
|
30
29
|
}, e = function(o) {
|
|
31
|
-
var n = o.length === 3 || o.length === 4, f = n ? "".concat(o.slice(0, 1)).concat(o.slice(0, 1)) : o.slice(0, 2), s = n ? "".concat(o.slice(1, 2)).concat(o.slice(1, 2)) : o.slice(2, 4), w = n ? "".concat(o.slice(2, 3)).concat(o.slice(2, 3)) : o.slice(4, 6),
|
|
30
|
+
var n = o.length === 3 || o.length === 4, f = n ? "".concat(o.slice(0, 1)).concat(o.slice(0, 1)) : o.slice(0, 2), s = n ? "".concat(o.slice(1, 2)).concat(o.slice(1, 2)) : o.slice(2, 4), w = n ? "".concat(o.slice(2, 3)).concat(o.slice(2, 3)) : o.slice(4, 6), L = (n ? "".concat(o.slice(3, 4)).concat(o.slice(3, 4)) : o.slice(6, 8)) || "ff";
|
|
32
31
|
return {
|
|
33
32
|
r: f,
|
|
34
33
|
g: s,
|
|
35
34
|
b: w,
|
|
36
|
-
a:
|
|
35
|
+
a: L
|
|
37
36
|
};
|
|
38
37
|
}, d = function(o) {
|
|
39
38
|
return parseInt(o, 16);
|
|
@@ -48,7 +47,7 @@ function Tt() {
|
|
|
48
47
|
}, x = function(o) {
|
|
49
48
|
return !isNaN(parseFloat(o)) && isFinite(o);
|
|
50
49
|
}, D = function(o, n) {
|
|
51
|
-
var f = o.r, s = o.g, w = o.b,
|
|
50
|
+
var f = o.r, s = o.g, w = o.b, L = o.a, P = x(n) ? n : L;
|
|
52
51
|
return "rgba(".concat(f, ", ").concat(s, ", ").concat(w, ", ").concat(P, ")");
|
|
53
52
|
}, g = function(o, n) {
|
|
54
53
|
var f = t(o), s = e(f), w = b(s);
|
|
@@ -56,29 +55,29 @@ function Tt() {
|
|
|
56
55
|
};
|
|
57
56
|
return Ke = g, Ke;
|
|
58
57
|
}
|
|
59
|
-
var
|
|
60
|
-
const ot = /* @__PURE__ */
|
|
61
|
-
function
|
|
58
|
+
var Pt = Lt();
|
|
59
|
+
const ot = /* @__PURE__ */ gt(Pt);
|
|
60
|
+
function zt(t) {
|
|
62
61
|
let e;
|
|
63
62
|
switch (t.type) {
|
|
64
63
|
case "ambient":
|
|
65
|
-
e = new
|
|
64
|
+
e = new $.AmbientLight(t.color, t.intensity);
|
|
66
65
|
break;
|
|
67
66
|
case "directional":
|
|
68
|
-
e = new
|
|
67
|
+
e = new $.DirectionalLight(t.color, t.intensity), t.position && (t.position === "camera" ? e.position.set(0, 0, 0) : e.position.set(t.position.x, t.position.y, t.position.z)), (t.target || t.position === "camera") && e.target.position.set(t.target?.x || 0, t.target?.y || 0, t.target?.z === void 0 ? -1 : t.target.z), t.castShadow && (e.castShadow = !0, t.shadow && (e.shadow.mapSize.width = t.shadow.mapSize.width, e.shadow.mapSize.height = t.shadow.mapSize.height, e.shadow.camera.near = t.shadow.camera.near, e.shadow.camera.far = t.shadow.camera.far));
|
|
69
68
|
break;
|
|
70
69
|
case "point":
|
|
71
|
-
e = new
|
|
70
|
+
e = new $.PointLight(t.color, t.intensity, t.distance || 0, t.decay || 2), t.position && (t.position === "camera" ? e.position.set(0, 0, 0) : e.position.set(t.position.x, t.position.y, t.position.z));
|
|
72
71
|
break;
|
|
73
72
|
case "spot":
|
|
74
|
-
e = new
|
|
73
|
+
e = new $.SpotLight(t.color, t.intensity, t.distance || 0, t.angle || Math.PI / 3, t.penumbra || 0, t.decay || 2), t.position && (t.position === "camera" ? e.position.set(0, 0, 0) : e.position.set(t.position.x, t.position.y, t.position.z)), (t.target || t.position === "camera") && e.target.position.set(t.target?.x || 0, t.target?.y || 0, t.target?.z || 0), t.castShadow && (e.castShadow = !0, t.shadow && (e.shadow.mapSize.width = t.shadow.mapSize.width, e.shadow.mapSize.height = t.shadow.mapSize.height, e.shadow.camera.near = t.shadow.camera.near, e.shadow.camera.far = t.shadow.camera.far));
|
|
75
74
|
break;
|
|
76
75
|
default:
|
|
77
76
|
throw new Error("Unknown light type");
|
|
78
77
|
}
|
|
79
78
|
return e;
|
|
80
79
|
}
|
|
81
|
-
function
|
|
80
|
+
function Mt(t) {
|
|
82
81
|
const {
|
|
83
82
|
width: e,
|
|
84
83
|
autoRotate: d,
|
|
@@ -92,50 +91,50 @@ function zt(t) {
|
|
|
92
91
|
polygonData: f,
|
|
93
92
|
mapProperty: s,
|
|
94
93
|
mapBorderColor: w,
|
|
95
|
-
atmosphereColor:
|
|
94
|
+
atmosphereColor: L,
|
|
96
95
|
tooltip: P,
|
|
97
96
|
styles: ye,
|
|
98
|
-
classNames:
|
|
97
|
+
classNames: W,
|
|
99
98
|
mapNoDataColor: re,
|
|
100
99
|
colorLegendTitle: C,
|
|
101
100
|
showColorScale: ae,
|
|
102
101
|
hoverStrokeColor: ie,
|
|
103
|
-
detailsOnClick:
|
|
104
|
-
onSeriesMouseClick:
|
|
102
|
+
detailsOnClick: V,
|
|
103
|
+
onSeriesMouseClick: Z,
|
|
105
104
|
onSeriesMouseOver: be,
|
|
106
105
|
resetSelectionOnDoubleClick: xe,
|
|
107
106
|
highlightedIds: z,
|
|
108
|
-
scale:
|
|
107
|
+
scale: M,
|
|
109
108
|
globeOffset: m,
|
|
110
109
|
polygonAltitude: u,
|
|
111
|
-
centerLng:
|
|
112
|
-
centerLat:
|
|
110
|
+
centerLng: _,
|
|
111
|
+
centerLat: J,
|
|
113
112
|
atmosphereAltitude: se,
|
|
114
|
-
globeCurvatureResolution:
|
|
115
|
-
fogSettings:
|
|
116
|
-
lights:
|
|
113
|
+
globeCurvatureResolution: X,
|
|
114
|
+
fogSettings: T,
|
|
115
|
+
lights: E,
|
|
117
116
|
highlightedAltitude: ne,
|
|
118
117
|
selectedId: v,
|
|
119
|
-
collapseColorScaleByDefault:
|
|
120
|
-
dimmedOpacity:
|
|
121
|
-
} = t, [
|
|
118
|
+
collapseColorScaleByDefault: Y,
|
|
119
|
+
dimmedOpacity: A
|
|
120
|
+
} = t, [U, we] = I(!1), p = Qe(void 0), [q, k] = I(void 0), [Ce, le] = I(Y === void 0 ? !(e < 680) : !Y), [ce, de] = I({
|
|
122
121
|
x: 0,
|
|
123
122
|
y: 0
|
|
124
|
-
}), [S, pe] =
|
|
125
|
-
|
|
123
|
+
}), [S, pe] = I(void 0), K = D ? wt().domain(g).range(l) : Ct().domain(g).range(l);
|
|
124
|
+
G(() => {
|
|
126
125
|
p.current && (p.current.controls().enableZoom = x);
|
|
127
|
-
}, [x]),
|
|
126
|
+
}, [x]), G(() => {
|
|
128
127
|
p.current && (S || v ? p.current.controls().autoRotate = !1 : (p.current.controls().autoRotate = d !== 0, p.current.controls().autoRotateSpeed = d));
|
|
129
|
-
}, [S, v, d]),
|
|
128
|
+
}, [S, v, d]), G(() => {
|
|
130
129
|
if (p.current && v) {
|
|
131
|
-
const r = f.find((y) => y.properties[s] === v), [a, c] =
|
|
130
|
+
const r = f.find((y) => y.properties[s] === v), [a, c] = bt(r);
|
|
132
131
|
p.current.pointOfView({
|
|
133
132
|
lat: c,
|
|
134
133
|
lng: a,
|
|
135
|
-
altitude:
|
|
134
|
+
altitude: M
|
|
136
135
|
}, 1e3);
|
|
137
136
|
}
|
|
138
|
-
}, [v,
|
|
137
|
+
}, [v, M, f, s]), G(() => {
|
|
139
138
|
const r = p.current?.renderer().domElement;
|
|
140
139
|
if (!r) return;
|
|
141
140
|
const a = (c) => {
|
|
@@ -145,49 +144,49 @@ function zt(t) {
|
|
|
145
144
|
});
|
|
146
145
|
};
|
|
147
146
|
return r.addEventListener("mousemove", a), () => r.removeEventListener("mousemove", a);
|
|
148
|
-
}, []),
|
|
147
|
+
}, []), G(() => {
|
|
149
148
|
p.current && p.current.pointOfView({
|
|
150
|
-
lat:
|
|
151
|
-
lng:
|
|
152
|
-
altitude:
|
|
149
|
+
lat: J,
|
|
150
|
+
lng: _,
|
|
151
|
+
altitude: M
|
|
153
152
|
}, 1e3);
|
|
154
|
-
}, [
|
|
155
|
-
const j = o || new
|
|
153
|
+
}, [M, _, J]);
|
|
154
|
+
const j = o || new $.MeshBasicMaterial({
|
|
156
155
|
color: "#FFF"
|
|
157
|
-
}),
|
|
156
|
+
}), B = dt(() => {
|
|
158
157
|
if (!p.current) return;
|
|
159
158
|
const r = p.current.scene(), a = p.current.camera();
|
|
160
159
|
let c = [];
|
|
161
160
|
r.traverse((h) => {
|
|
162
|
-
h instanceof
|
|
163
|
-
}), c = [...c, ...a.children], c.forEach((h) => h.parent?.remove(h)),
|
|
164
|
-
|
|
165
|
-
}),
|
|
166
|
-
}, [
|
|
167
|
-
we(!0),
|
|
161
|
+
h instanceof $.Light && c.push(h);
|
|
162
|
+
}), c = [...c, ...a.children], c.forEach((h) => h.parent?.remove(h)), E.map((h) => zt(h)).forEach((h, N) => {
|
|
163
|
+
E[N].type !== "ambient" && E[N].position === "camera" ? (a.add(h), E[N].type !== "point" && a.add(h.target)) : r.add(h);
|
|
164
|
+
}), T && (r.fog = new $.Fog(T.color, T.near, T.far));
|
|
165
|
+
}, [E, T]), R = () => {
|
|
166
|
+
we(!0), B();
|
|
168
167
|
};
|
|
169
|
-
return
|
|
170
|
-
|
|
171
|
-
}, [
|
|
172
|
-
/* @__PURE__ */ i.jsx(mt, { ref: p, height: n, width: e, globeOffset: m, lineHoverPrecision: 0, polygonsData: f, polygonAltitude: (r) => z.includes(r?.properties?.[s]) || r?.properties?.[s] === v || r?.properties?.[s] === S?.id || r?.properties?.[s] ===
|
|
173
|
-
const a = v ? r?.properties?.[s] === v ? 1 :
|
|
168
|
+
return G(() => {
|
|
169
|
+
U && B();
|
|
170
|
+
}, [U, B]), /* @__PURE__ */ i.jsxs("div", { className: "relative", children: [
|
|
171
|
+
/* @__PURE__ */ i.jsx(mt, { ref: p, height: n, width: e, globeOffset: m, lineHoverPrecision: 0, polygonsData: f, polygonAltitude: (r) => z.includes(r?.properties?.[s]) || r?.properties?.[s] === v || r?.properties?.[s] === S?.id || r?.properties?.[s] === q?.id ? ne : u, polygonCapColor: (r) => {
|
|
172
|
+
const a = v ? r?.properties?.[s] === v ? 1 : A : z.length !== 0 ? z.includes(r?.properties?.[s]) ? 1 : A : 1, c = r?.properties?.[s], y = b.find((N) => N.id === c)?.x, h = y != null ? K(y) : re;
|
|
174
173
|
return ot(h, `${a}`);
|
|
175
174
|
}, polygonSideColor: (r) => {
|
|
176
|
-
const a = r?.properties?.[s], c = b.find((N) => N.id === a)?.x, y = v ? r?.properties?.[s] === v ? 1 :
|
|
175
|
+
const a = r?.properties?.[s], c = b.find((N) => N.id === a)?.x, y = v ? r?.properties?.[s] === v ? 1 : A : z.length !== 0 ? z.includes(r?.properties?.[s]) ? 1 : A : 1, h = c != null ? K(c) : re;
|
|
177
176
|
return ot(h, `${y}`);
|
|
178
177
|
}, polygonStrokeColor: (r) => r?.properties?.[s] === S?.id ? ie : w, onGlobeClick: () => {
|
|
179
|
-
|
|
178
|
+
k(void 0);
|
|
180
179
|
}, onPolygonClick: (r) => {
|
|
181
180
|
const a = r?.properties?.[s] ? b.find((c) => c.id === r?.properties?.[s]) : void 0;
|
|
182
|
-
(
|
|
181
|
+
(Z || V) && (ut(q, a) && xe && a ? (k(void 0), Z?.(void 0)) : (k(a), Z?.(a)));
|
|
183
182
|
}, onPolygonHover: (r) => {
|
|
184
183
|
const a = r?.properties?.[s] ? b.find((c) => c.id === r?.properties?.[s]) : void 0;
|
|
185
184
|
pe(a), be?.(a);
|
|
186
|
-
}, atmosphereColor:
|
|
185
|
+
}, atmosphereColor: L, atmosphereAltitude: se, globeCurvatureResolution: X, globeMaterial: j, backgroundColor: "rgba(0, 0, 0, 0)", polygonsTransitionDuration: 100, onGlobeReady: () => {
|
|
187
186
|
if (p.current) {
|
|
188
187
|
p.current.pointOfView({
|
|
189
|
-
lat:
|
|
190
|
-
lng:
|
|
188
|
+
lat: J,
|
|
189
|
+
lng: _
|
|
191
190
|
});
|
|
192
191
|
const r = p.current.scene();
|
|
193
192
|
setTimeout(() => {
|
|
@@ -197,13 +196,13 @@ function zt(t) {
|
|
|
197
196
|
});
|
|
198
197
|
}, 300);
|
|
199
198
|
const a = p.current.camera();
|
|
200
|
-
r.add(a),
|
|
199
|
+
r.add(a), R();
|
|
201
200
|
}
|
|
202
201
|
} }),
|
|
203
|
-
ae === !1 ? null : /* @__PURE__ */ i.jsx("div", { className: lt("absolute left-4 bottom-4 map-color-legend",
|
|
202
|
+
ae === !1 ? null : /* @__PURE__ */ i.jsx("div", { className: lt("absolute left-4 bottom-4 map-color-legend", W?.colorLegend), children: Ce ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
204
203
|
/* @__PURE__ */ i.jsx("div", { className: "color-legend-close-button bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)] border border-[var(--gray-400)] rounded-full w-6 h-6 p-[3px] cursor-pointer z-10 absolute right-[-0.75rem] top-[-0.75rem]", onClick: () => {
|
|
205
204
|
le(!1);
|
|
206
|
-
}, children: /* @__PURE__ */ i.jsx(
|
|
205
|
+
}, children: /* @__PURE__ */ i.jsx(yt, {}) }),
|
|
207
206
|
/* @__PURE__ */ i.jsxs("div", { className: "color-legend-box p-2 bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)]", style: {
|
|
208
207
|
width: D ? void 0 : "340px"
|
|
209
208
|
}, children: [
|
|
@@ -225,7 +224,7 @@ function zt(t) {
|
|
|
225
224
|
} }),
|
|
226
225
|
/* @__PURE__ */ i.jsx("text", { x: (a + 1) * 320 / l.length, y: 25, className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs", style: {
|
|
227
226
|
textAnchor: "middle"
|
|
228
|
-
}, children:
|
|
227
|
+
}, children: vt(r, "NA") })
|
|
229
228
|
] }, a)),
|
|
230
229
|
/* @__PURE__ */ i.jsx("g", { children: /* @__PURE__ */ i.jsx("rect", { x: g.length * 320 / l.length + 1, y: 1, width: 320 / l.length - 2, height: 8, style: {
|
|
231
230
|
fill: l[g.length],
|
|
@@ -236,15 +235,11 @@ function zt(t) {
|
|
|
236
235
|
] }) : /* @__PURE__ */ i.jsx("button", { type: "button", className: "mb-0 border-0 bg-transparent p-0 self-start", onClick: () => {
|
|
237
236
|
le(!0);
|
|
238
237
|
}, children: /* @__PURE__ */ i.jsx("div", { className: "show-color-legend-button items-start text-sm font-medium cursor-pointer p-2 mb-0 flex text-primary-black dark:text-primary-gray-300 bg-primary-gray-300 dark:bg-primary-gray-600 border-primary-gray-400 dark:border-primary-gray-500", children: "Show Legend" }) }) }),
|
|
239
|
-
S && P ? /* @__PURE__ */ i.jsx(
|
|
240
|
-
|
|
241
|
-
L(void 0);
|
|
242
|
-
}, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof k == "string" ? {
|
|
243
|
-
__html: xt(k, R)
|
|
244
|
-
} : void 0, children: typeof k == "function" ? k(R) : null }) }) : null
|
|
238
|
+
S && P ? /* @__PURE__ */ i.jsx(ft, { data: S, body: P, xPos: ce.x, yPos: ce.y, backgroundStyle: ye?.tooltip, className: W?.tooltip }) : null,
|
|
239
|
+
V && q !== void 0 ? /* @__PURE__ */ i.jsx(xt, { body: V, data: q, setData: k, className: W?.modal }) : null
|
|
245
240
|
] });
|
|
246
241
|
}
|
|
247
|
-
function
|
|
242
|
+
function lo(t) {
|
|
248
243
|
const e = ct.c(97), {
|
|
249
244
|
data: d,
|
|
250
245
|
mapData: b,
|
|
@@ -257,54 +252,54 @@ function po(t) {
|
|
|
257
252
|
footNote: f,
|
|
258
253
|
colorDomain: s,
|
|
259
254
|
colorLegendTitle: w,
|
|
260
|
-
scaleType:
|
|
255
|
+
scaleType: L,
|
|
261
256
|
padding: P,
|
|
262
257
|
mapNoDataColor: ye,
|
|
263
|
-
backgroundColor:
|
|
258
|
+
backgroundColor: W,
|
|
264
259
|
mapBorderColor: re,
|
|
265
260
|
relativeHeight: C,
|
|
266
261
|
tooltip: ae,
|
|
267
262
|
graphID: ie,
|
|
268
|
-
mapProperty:
|
|
269
|
-
dataDownload:
|
|
263
|
+
mapProperty: V,
|
|
264
|
+
dataDownload: Z,
|
|
270
265
|
language: be,
|
|
271
266
|
minHeight: xe,
|
|
272
267
|
theme: z,
|
|
273
|
-
ariaLabel:
|
|
268
|
+
ariaLabel: M,
|
|
274
269
|
styles: m,
|
|
275
270
|
classNames: u,
|
|
276
|
-
autoRotate:
|
|
277
|
-
enableZoom:
|
|
271
|
+
autoRotate: _,
|
|
272
|
+
enableZoom: J,
|
|
278
273
|
globeMaterial: se,
|
|
279
|
-
centerPoint:
|
|
280
|
-
atmosphereColor:
|
|
281
|
-
showColorScale:
|
|
274
|
+
centerPoint: X,
|
|
275
|
+
atmosphereColor: T,
|
|
276
|
+
showColorScale: E,
|
|
282
277
|
resetSelectionOnDoubleClick: ne,
|
|
283
278
|
detailsOnClick: v,
|
|
284
|
-
onSeriesMouseOver:
|
|
285
|
-
onSeriesMouseClick:
|
|
286
|
-
highlightedIds:
|
|
279
|
+
onSeriesMouseOver: Y,
|
|
280
|
+
onSeriesMouseClick: A,
|
|
281
|
+
highlightedIds: U,
|
|
287
282
|
highlightedAltitude: we,
|
|
288
283
|
dimmedOpacity: p,
|
|
289
|
-
scale:
|
|
290
|
-
globeOffset:
|
|
284
|
+
scale: q,
|
|
285
|
+
globeOffset: k,
|
|
291
286
|
polygonAltitude: Ce,
|
|
292
287
|
globeCurvatureResolution: le,
|
|
293
288
|
atmosphereAltitude: ce,
|
|
294
289
|
fogSettings: de,
|
|
295
290
|
lights: S,
|
|
296
291
|
selectedId: pe,
|
|
297
|
-
collapseColorScaleByDefault:
|
|
298
|
-
} = t, j = b === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-simplified.json" : b,
|
|
292
|
+
collapseColorScaleByDefault: K
|
|
293
|
+
} = t, j = b === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-simplified.json" : b, B = f === 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." : f, R = L === void 0 ? "threshold" : L, r = ye === void 0 ? oe.light.graphNoData : ye, a = W === void 0 ? !1 : W, c = re === void 0 ? oe.light.grays["gray-500"] : re, y = V === void 0 ? "ISO3" : V, h = Z === void 0 ? !1 : Z, N = be === void 0 ? "en" : be, O = xe === void 0 ? 0 : xe, F = z === void 0 ? "light" : z, he = _ === void 0 ? !0 : _, Ae = J === void 0 ? !0 : J;
|
|
299
294
|
let De;
|
|
300
|
-
e[0] !==
|
|
301
|
-
const Se = De, Be =
|
|
295
|
+
e[0] !== X ? (De = X === void 0 ? [0, 0] : X, e[0] = X, e[1] = De) : De = e[1];
|
|
296
|
+
const Se = De, Be = T === void 0 ? "#999" : T, Fe = E === void 0 ? !0 : E, Ge = ne === void 0 ? !0 : ne;
|
|
302
297
|
let je;
|
|
303
|
-
e[2] !==
|
|
304
|
-
const Ie = je,
|
|
298
|
+
e[2] !== U ? (je = U === void 0 ? [] : U, e[2] = U, e[3] = je) : je = e[3];
|
|
299
|
+
const Ie = je, Ue = we === void 0 ? 0.1 : we, qe = p === void 0 ? 0.3 : p, He = q === void 0 ? 1 : q;
|
|
305
300
|
let Ne;
|
|
306
|
-
e[4] !==
|
|
307
|
-
const $e = Ne, We = Ce === void 0 ? 0.01 : Ce,
|
|
301
|
+
e[4] !== k ? (Ne = k === void 0 ? [0, 0] : k, e[4] = k, e[5] = Ne) : Ne = e[5];
|
|
302
|
+
const $e = Ne, We = Ce === void 0 ? 0.01 : Ce, Ve = le === void 0 ? 4 : le, Ze = ce === void 0 ? 0.15 : ce;
|
|
308
303
|
let ke;
|
|
309
304
|
e[6] !== S ? (ke = S === void 0 ? [{
|
|
310
305
|
type: "ambient",
|
|
@@ -320,80 +315,80 @@ function po(t) {
|
|
|
320
315
|
z: 5
|
|
321
316
|
}
|
|
322
317
|
}] : S, e[6] = S, e[7] = ke) : ke = e[7];
|
|
323
|
-
const
|
|
324
|
-
let
|
|
325
|
-
e[8] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
318
|
+
const _e = ke, [Re, rt] = I(void 0), [H, at] = I(0), [me, it] = I(0), Je = Qe(null), st = Qe(null);
|
|
319
|
+
let Oe, Le;
|
|
320
|
+
e[8] === Symbol.for("react.memo_cache_sentinel") ? (Oe = () => {
|
|
326
321
|
const fe = new ResizeObserver((ve) => {
|
|
327
322
|
at(ve[0].target.clientWidth || 620), it(ve[0].target.clientHeight || 480);
|
|
328
323
|
});
|
|
329
324
|
return Je.current && fe.observe(Je.current), () => fe.disconnect();
|
|
330
|
-
},
|
|
331
|
-
let
|
|
332
|
-
e[10] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
325
|
+
}, Le = [], e[8] = Oe, e[9] = Le) : (Oe = e[8], Le = e[9]), G(Oe, Le);
|
|
326
|
+
let Pe;
|
|
327
|
+
e[10] === Symbol.for("react.memo_cache_sentinel") ? (Pe = (fe) => {
|
|
333
328
|
rt(fe);
|
|
334
|
-
}, e[10] =
|
|
335
|
-
const ue = pt(
|
|
336
|
-
let
|
|
337
|
-
e[11] !== j || e[12] !== ue ? (
|
|
338
|
-
typeof j == "string" ?
|
|
329
|
+
}, e[10] = Pe) : Pe = e[10];
|
|
330
|
+
const ue = pt(Pe);
|
|
331
|
+
let ze;
|
|
332
|
+
e[11] !== j || e[12] !== ue ? (ze = () => {
|
|
333
|
+
typeof j == "string" ? jt(j).then((ve) => {
|
|
339
334
|
if (j === "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-simplified.json") {
|
|
340
|
-
const nt = ve.features.map(
|
|
335
|
+
const nt = ve.features.map(It);
|
|
341
336
|
ue(nt);
|
|
342
337
|
} else
|
|
343
338
|
ue(ve.features);
|
|
344
339
|
}) : ue(j.features);
|
|
345
|
-
}, e[11] = j, e[12] = ue, e[13] =
|
|
346
|
-
let
|
|
347
|
-
e[14] !== j ? (
|
|
348
|
-
let
|
|
349
|
-
e[16] !== s || e[17] !== D?.length || e[18] !== d || e[19] !==
|
|
350
|
-
const ge =
|
|
351
|
-
let
|
|
352
|
-
e[21] !== u?.description || e[22] !== u?.title || e[23] !== d || e[24] !== h || e[25] !== l || e[26] !== x || e[27] !== m?.description || e[28] !== m?.title || e[29] !== n ? (
|
|
340
|
+
}, e[11] = j, e[12] = ue, e[13] = ze) : ze = e[13];
|
|
341
|
+
let Me;
|
|
342
|
+
e[14] !== j ? (Me = [j], e[14] = j, e[15] = Me) : Me = e[15], G(ze, Me);
|
|
343
|
+
let Te;
|
|
344
|
+
e[16] !== s || e[17] !== D?.length || e[18] !== d || e[19] !== R ? (Te = s || (R === "categorical" ? Nt(d, "x") : kt(d.map(Gt), D?.length || 4)), e[16] = s, e[17] = D?.length, e[18] = d, e[19] = R, e[20] = Te) : Te = e[20];
|
|
345
|
+
const ge = Te, Xe = u?.graphContainer, Ye = m?.graphContainer;
|
|
346
|
+
let Q;
|
|
347
|
+
e[21] !== u?.description || e[22] !== u?.title || e[23] !== d || e[24] !== h || e[25] !== l || e[26] !== x || e[27] !== m?.description || e[28] !== m?.title || e[29] !== n ? (Q = x || l || h ? /* @__PURE__ */ i.jsx(Dt, { styles: {
|
|
353
348
|
title: m?.title,
|
|
354
349
|
description: m?.description
|
|
355
350
|
}, classNames: {
|
|
356
351
|
title: u?.title,
|
|
357
352
|
description: u?.description
|
|
358
|
-
}, graphTitle: x, graphDescription: l, width: n, graphDownload: void 0, dataDownload: h ? d.map(
|
|
359
|
-
let Q;
|
|
360
|
-
e[31] !== Ve || e[32] !== Be || e[33] !== he || e[34] !== Se || e[35] !== u || e[36] !== Y || e[37] !== w || e[38] !== D || e[39] !== d || e[40] !== v || e[41] !== Ue || e[42] !== ge || e[43] !== Ae || e[44] !== de || e[45] !== _e || e[46] !== se || e[47] !== $e || e[48] !== o || e[49] !== He || e[50] !== Ie || e[51] !== Ze || e[52] !== c || e[53] !== r || e[54] !== y || e[55] !== Re || e[56] !== T || e[57] !== F || e[58] !== X || e[59] !== We || e[60] !== C || e[61] !== Ge || e[62] !== qe || e[63] !== O || e[64] !== pe || e[65] !== Fe || e[66] !== m || e[67] !== me || e[68] !== $ || e[69] !== I || e[70] !== ae || e[71] !== n ? (Q = /* @__PURE__ */ i.jsx(Lt, { ref: Je, children: $ && me && Re ? /* @__PURE__ */ i.jsx(zt, { data: d, globeOffset: $e, polygonData: Re, colorDomain: ge, width: $, height: me, colors: D || (O === "categorical" ? te[I].sequentialColors[`neutralColorsx0${ge.length}`] : te[I].sequentialColors[`neutralColorsx0${ge.length + 1}`]), mapNoDataColor: r, categorical: O === "categorical", mapBorderColor: c, tooltip: ae, mapProperty: y, styles: m, classNames: u, autoRotate: he === !0 ? 1.5 : he === !1 ? 0 : he, enableZoom: Ae, globeMaterial: se, atmosphereColor: Be, colorLegendTitle: w, showColorScale: Fe, hoverStrokeColor: I === "light" ? te.light.grays["gray-700"] : te.light.grays["gray-300"], highlightedIds: Ie, resetSelectionOnDoubleClick: Ge, detailsOnClick: v, onSeriesMouseOver: X, onSeriesMouseClick: F, scale: qe, polygonAltitude: We, centerLat: Se[0], centerLng: Se[1], atmosphereAltitude: Ve, globeCurvatureResolution: _e, fogSettings: de, lights: Ze, highlightedAltitude: He, selectedId: pe, collapseColorScaleByDefault: Y, dimmedOpacity: Ue }) : /* @__PURE__ */ i.jsx("div", { style: {
|
|
361
|
-
height: `${Math.max(T, o || (C ? T ? (n || $) * C > T ? (n || $) * C : T : (n || $) * C : me))}px`
|
|
362
|
-
}, className: "flex items-center justify-center", children: /* @__PURE__ */ i.jsx(ht, { "aria-label": "Loading graph" }) }) }), e[31] = Ve, e[32] = Be, e[33] = he, e[34] = Se, e[35] = u, e[36] = Y, e[37] = w, e[38] = D, e[39] = d, e[40] = v, e[41] = Ue, e[42] = ge, e[43] = Ae, e[44] = de, e[45] = _e, e[46] = se, e[47] = $e, e[48] = o, e[49] = He, e[50] = Ie, e[51] = Ze, e[52] = c, e[53] = r, e[54] = y, e[55] = Re, e[56] = T, e[57] = F, e[58] = X, e[59] = We, e[60] = C, e[61] = Ge, e[62] = qe, e[63] = O, e[64] = pe, e[65] = Fe, e[66] = m, e[67] = me, e[68] = $, e[69] = I, e[70] = ae, e[71] = n, e[72] = Q) : Q = e[72];
|
|
353
|
+
}, graphTitle: x, graphDescription: l, width: n, graphDownload: void 0, dataDownload: h ? d.map(Ft).filter(Bt).length > 0 ? d.map(At).filter(Et) : d.filter(Tt) : null }) : null, e[21] = u?.description, e[22] = u?.title, e[23] = d, e[24] = h, e[25] = l, e[26] = x, e[27] = m?.description, e[28] = m?.title, e[29] = n, e[30] = Q) : Q = e[30];
|
|
363
354
|
let ee;
|
|
364
|
-
e[
|
|
355
|
+
e[31] !== Ze || e[32] !== Be || e[33] !== he || e[34] !== Se || e[35] !== u || e[36] !== K || e[37] !== w || e[38] !== D || e[39] !== d || e[40] !== v || e[41] !== qe || e[42] !== ge || e[43] !== Ae || e[44] !== de || e[45] !== Ve || e[46] !== se || e[47] !== $e || e[48] !== o || e[49] !== Ue || e[50] !== Ie || e[51] !== _e || e[52] !== c || e[53] !== r || e[54] !== y || e[55] !== Re || e[56] !== O || e[57] !== A || e[58] !== Y || e[59] !== We || e[60] !== C || e[61] !== Ge || e[62] !== He || e[63] !== R || e[64] !== pe || e[65] !== Fe || e[66] !== m || e[67] !== me || e[68] !== H || e[69] !== F || e[70] !== ae || e[71] !== n ? (ee = /* @__PURE__ */ i.jsx(Rt, { ref: Je, children: H && me && Re ? /* @__PURE__ */ i.jsx(Mt, { data: d, globeOffset: $e, polygonData: Re, colorDomain: ge, width: H, height: me, colors: D || (R === "categorical" ? oe[F].sequentialColors[`neutralColorsx0${ge.length}`] : oe[F].sequentialColors[`neutralColorsx0${ge.length + 1}`]), mapNoDataColor: r, categorical: R === "categorical", mapBorderColor: c, tooltip: ae, mapProperty: y, styles: m, classNames: u, autoRotate: he === !0 ? 1.5 : he === !1 ? 0 : he, enableZoom: Ae, globeMaterial: se, atmosphereColor: Be, colorLegendTitle: w, showColorScale: Fe, hoverStrokeColor: F === "light" ? oe.light.grays["gray-700"] : oe.light.grays["gray-300"], highlightedIds: Ie, resetSelectionOnDoubleClick: Ge, detailsOnClick: v, onSeriesMouseOver: Y, onSeriesMouseClick: A, scale: He, polygonAltitude: We, centerLat: Se[0], centerLng: Se[1], atmosphereAltitude: Ze, globeCurvatureResolution: Ve, fogSettings: de, lights: _e, highlightedAltitude: Ue, selectedId: pe, collapseColorScaleByDefault: K, dimmedOpacity: qe }) : /* @__PURE__ */ i.jsx("div", { style: {
|
|
356
|
+
height: `${Math.max(O, o || (C ? O ? (n || H) * C > O ? (n || H) * C : O : (n || H) * C : me))}px`
|
|
357
|
+
}, className: "flex items-center justify-center", children: /* @__PURE__ */ i.jsx(ht, { "aria-label": "Loading graph" }) }) }), e[31] = Ze, e[32] = Be, e[33] = he, e[34] = Se, e[35] = u, e[36] = K, e[37] = w, e[38] = D, e[39] = d, e[40] = v, e[41] = qe, e[42] = ge, e[43] = Ae, e[44] = de, e[45] = Ve, e[46] = se, e[47] = $e, e[48] = o, e[49] = Ue, e[50] = Ie, e[51] = _e, e[52] = c, e[53] = r, e[54] = y, e[55] = Re, e[56] = O, e[57] = A, e[58] = Y, e[59] = We, e[60] = C, e[61] = Ge, e[62] = He, e[63] = R, e[64] = pe, e[65] = Fe, e[66] = m, e[67] = me, e[68] = H, e[69] = F, e[70] = ae, e[71] = n, e[72] = ee) : ee = e[72];
|
|
358
|
+
let te;
|
|
359
|
+
e[73] !== u?.footnote || e[74] !== u?.source || e[75] !== B || e[76] !== g || e[77] !== m?.footnote || e[78] !== m?.source || e[79] !== n ? (te = g || B ? /* @__PURE__ */ i.jsx(St, { styles: {
|
|
365
360
|
footnote: m?.footnote,
|
|
366
361
|
source: m?.source
|
|
367
362
|
}, classNames: {
|
|
368
363
|
footnote: u?.footnote,
|
|
369
364
|
source: u?.source
|
|
370
|
-
}, sources: g, footNote:
|
|
365
|
+
}, sources: g, footNote: B, width: n }) : null, e[73] = u?.footnote, e[74] = u?.source, e[75] = B, e[76] = g, e[77] = m?.footnote, e[78] = m?.source, e[79] = n, e[80] = te) : te = e[80];
|
|
371
366
|
let Ee;
|
|
372
|
-
return e[81] !==
|
|
373
|
-
K,
|
|
367
|
+
return e[81] !== M || e[82] !== a || e[83] !== ie || e[84] !== o || e[85] !== N || e[86] !== O || e[87] !== P || e[88] !== C || e[89] !== Xe || e[90] !== Ye || e[91] !== Q || e[92] !== ee || e[93] !== te || e[94] !== F || e[95] !== n ? (Ee = /* @__PURE__ */ i.jsxs(Ot, { className: Xe, style: Ye, id: ie, ref: st, "aria-label": M, backgroundColor: a, theme: F, language: N, minHeight: O, width: n, height: o, relativeHeight: C, padding: P, children: [
|
|
374
368
|
Q,
|
|
375
|
-
ee
|
|
376
|
-
|
|
369
|
+
ee,
|
|
370
|
+
te
|
|
371
|
+
] }), e[81] = M, e[82] = a, e[83] = ie, e[84] = o, e[85] = N, e[86] = O, e[87] = P, e[88] = C, e[89] = Xe, e[90] = Ye, e[91] = Q, e[92] = ee, e[93] = te, e[94] = F, e[95] = n, e[96] = Ee) : Ee = e[96], Ee;
|
|
377
372
|
}
|
|
378
|
-
function
|
|
373
|
+
function Tt(t) {
|
|
379
374
|
return t !== void 0;
|
|
380
375
|
}
|
|
381
|
-
function
|
|
376
|
+
function Et(t) {
|
|
382
377
|
return t !== void 0;
|
|
383
378
|
}
|
|
384
|
-
function
|
|
379
|
+
function At(t) {
|
|
385
380
|
return t.data;
|
|
386
381
|
}
|
|
387
|
-
function
|
|
382
|
+
function Bt(t) {
|
|
388
383
|
return t !== void 0;
|
|
389
384
|
}
|
|
390
|
-
function
|
|
385
|
+
function Ft(t) {
|
|
391
386
|
return t.data;
|
|
392
387
|
}
|
|
393
|
-
function
|
|
388
|
+
function Gt(t) {
|
|
394
389
|
return t.x;
|
|
395
390
|
}
|
|
396
|
-
function
|
|
391
|
+
function It(t) {
|
|
397
392
|
if (t.geometry.type === "Polygon") {
|
|
398
393
|
const b = [...t.geometry.coordinates[0]].reverse(), x = {
|
|
399
394
|
...t.geometry,
|
|
@@ -419,6 +414,6 @@ function Ht(t) {
|
|
|
419
414
|
};
|
|
420
415
|
}
|
|
421
416
|
export {
|
|
422
|
-
|
|
417
|
+
lo as ThreeDGlobe
|
|
423
418
|
};
|
|
424
419
|
//# sourceMappingURL=ThreeDGlobe.js.map
|