@undp/data-viz 2.4.1 → 2.5.1
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.cjs.map +1 -1
- package/dist/AreaChart.d.ts +11 -9
- package/dist/AreaChart.js +320 -322
- package/dist/AreaChart.js.map +1 -1
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.d.ts +15 -25
- package/dist/BarGraph.js +1694 -1694
- package/dist/BarGraph.js.map +1 -1
- package/dist/BasicStatCard.cjs +1 -1
- package/dist/BasicStatCard.cjs.map +1 -1
- package/dist/BasicStatCard.d.ts +13 -9
- package/dist/BasicStatCard.js +79 -81
- package/dist/BasicStatCard.js.map +1 -1
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.cjs.map +1 -1
- package/dist/BeeSwarmChart.d.ts +11 -9
- package/dist/BeeSwarmChart.js +335 -336
- 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 +13 -3
- package/dist/BiVariateChoroplethMap.js +309 -304
- 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 -5
- package/dist/BulletChart.js +560 -559
- 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 +11 -9
- package/dist/ButterflyChart.js +348 -350
- 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 +11 -3
- package/dist/ChoroplethMap.js +314 -311
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.d.ts +11 -9
- package/dist/CirclePackingGraph.js +1 -1
- package/dist/DataCards.cjs +1 -1
- package/dist/DataCards.d.ts +1 -1
- package/dist/DataCards.js +1 -1
- package/dist/DataTable.cjs +1 -1
- package/dist/DataTable.cjs.map +1 -1
- package/dist/DataTable.d.ts +4 -5
- package/dist/DataTable.js +114 -116
- package/dist/DataTable.js.map +1 -1
- package/dist/{DetailsModal-jmmKRMRM.cjs → DetailsModal-Du8Fr1QD.cjs} +2 -2
- package/dist/{DetailsModal-jmmKRMRM.cjs.map → DetailsModal-Du8Fr1QD.cjs.map} +1 -1
- package/dist/{DetailsModal-B2XBWR7w.js → DetailsModal-GqEbGHY2.js} +2 -2
- package/dist/{DetailsModal-B2XBWR7w.js.map → DetailsModal-GqEbGHY2.js.map} +1 -1
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.cjs.map +1 -1
- package/dist/DifferenceLineChart.d.ts +11 -9
- package/dist/DifferenceLineChart.js +502 -504
- package/dist/DifferenceLineChart.js.map +1 -1
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.cjs.map +1 -1
- package/dist/DonutChart.d.ts +14 -9
- package/dist/DonutChart.js +174 -179
- 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 +1 -1
- package/dist/DotDensityMap.js +270 -267
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.cjs.map +1 -1
- package/dist/DualAxisLineChart.d.ts +13 -9
- package/dist/DualAxisLineChart.js +341 -351
- package/dist/DualAxisLineChart.js.map +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.d.ts +11 -9
- package/dist/DumbbellChart.js +592 -593
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/GeoHubCompareMaps.cjs +1 -1
- package/dist/GeoHubCompareMaps.d.ts +1 -1
- package/dist/GeoHubCompareMaps.js +1 -1
- package/dist/GeoHubMap.cjs +1 -1
- package/dist/GeoHubMap.d.ts +1 -1
- package/dist/GeoHubMap.js +1 -1
- package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
- package/dist/GeoHubMapWithLayerSelection.d.ts +1 -1
- package/dist/GeoHubMapWithLayerSelection.js +1 -1
- package/dist/GraphEl-BgkDbq50.cjs +2 -0
- package/dist/GraphEl-BgkDbq50.cjs.map +1 -0
- package/dist/GraphEl-Ch0uAeZw.js +1830 -0
- package/dist/GraphEl-Ch0uAeZw.js.map +1 -0
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.d.ts +29 -16
- package/dist/GriddedGraphs.js +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +29 -16
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.cjs.map +1 -1
- package/dist/HeatMap.d.ts +11 -9
- package/dist/HeatMap.js +203 -205
- package/dist/HeatMap.js.map +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.cjs.map +1 -1
- package/dist/Histogram.d.ts +11 -5
- package/dist/Histogram.js +88 -89
- package/dist/Histogram.js.map +1 -1
- package/dist/HybridMap.cjs +1 -1
- package/dist/HybridMap.cjs.map +1 -1
- package/dist/HybridMap.d.ts +11 -3
- package/dist/HybridMap.js +339 -336
- package/dist/HybridMap.js.map +1 -1
- package/dist/ImageDownloadButton.cjs +1 -1
- package/dist/ImageDownloadButton.js +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
- package/dist/LineChartWithConfidenceInterval.d.ts +11 -9
- package/dist/LineChartWithConfidenceInterval.js +393 -395
- package/dist/LineChartWithConfidenceInterval.js.map +1 -1
- package/dist/LinearColorLegend.cjs +1 -1
- package/dist/LinearColorLegend.js +1 -1
- package/dist/MultiGraphDashboard.d.ts +29 -16
- package/dist/MultiGraphDashboardFromConfig.d.ts +29 -16
- package/dist/MultiGraphDashboardWideToLongFormat.d.ts +1 -1
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +1 -1
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.cjs.map +1 -1
- package/dist/MultiLineAltChart.d.ts +11 -9
- package/dist/MultiLineAltChart.js +411 -413
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.cjs.map +1 -1
- package/dist/MultiLineChart.d.ts +11 -9
- package/dist/MultiLineChart.js +438 -440
- package/dist/MultiLineChart.js.map +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.cjs.map +1 -1
- package/dist/ParetoChart.d.ts +13 -13
- package/dist/ParetoChart.js +347 -355
- package/dist/ParetoChart.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +29 -16
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +29 -16
- package/dist/PerformanceIntensiveScrollStory.d.ts +29 -16
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.cjs.map +1 -1
- package/dist/RadarChart.d.ts +11 -5
- package/dist/RadarChart.js +213 -213
- 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 +11 -9
- package/dist/SankeyChart.js +448 -450
- 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 +15 -13
- package/dist/ScatterPlot.js +477 -483
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/ScrollStory.d.ts +29 -16
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.cjs.map +1 -1
- package/dist/SimpleLineChart.d.ts +11 -9
- package/dist/SimpleLineChart.js +362 -364
- package/dist/SimpleLineChart.js.map +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.d.ts +29 -16
- package/dist/SingleGraphDashboard.js +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +29 -16
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +29 -16
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +29 -16
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +29 -16
- package/dist/SingleGraphDashboardThreeDGraphs.js +40 -39
- package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +29 -16
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.d.ts +1 -1
- package/dist/SlopeChart.js +2 -2
- package/dist/SparkLine.cjs +1 -1
- package/dist/SparkLine.d.ts +1 -1
- package/dist/SparkLine.js +1 -1
- package/dist/StatCardFromData.cjs +1 -1
- package/dist/StatCardFromData.cjs.map +1 -1
- package/dist/StatCardFromData.d.ts +11 -9
- package/dist/StatCardFromData.js +113 -116
- package/dist/StatCardFromData.js.map +1 -1
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.cjs.map +1 -1
- package/dist/StripChart.d.ts +11 -9
- package/dist/StripChart.js +434 -435
- 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 +11 -3
- package/dist/ThreeDGlobe.js +143 -143
- package/dist/ThreeDGlobe.js.map +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.js +1 -1
- package/dist/{Tooltip-Bj-s__cI.js → Tooltip-3EYDVa3w.js} +2 -2
- package/dist/{Tooltip-Bj-s__cI.js.map → Tooltip-3EYDVa3w.js.map} +1 -1
- package/dist/{Tooltip-Hr46paWP.cjs → Tooltip-C9F3uYG0.cjs} +2 -2
- package/dist/{Tooltip-Hr46paWP.cjs.map → Tooltip-C9F3uYG0.cjs.map} +1 -1
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.cjs.map +1 -1
- package/dist/TreeMapGraph.d.ts +11 -9
- package/dist/TreeMapGraph.js +369 -371
- package/dist/TreeMapGraph.js.map +1 -1
- package/dist/Types.d.ts +29 -16
- package/dist/UnitChart.cjs +1 -1
- package/dist/UnitChart.cjs.map +1 -1
- package/dist/UnitChart.d.ts +11 -5
- package/dist/UnitChart.js +118 -119
- package/dist/UnitChart.js.map +1 -1
- package/dist/WaterfallChart.cjs +1 -1
- package/dist/WaterfallChart.cjs.map +1 -1
- package/dist/WaterfallChart.d.ts +11 -9
- package/dist/WaterfallChart.js +306 -308
- package/dist/WaterfallChart.js.map +1 -1
- package/dist/XTicksAndGridLines-B4UhDVyU.cjs +2 -0
- package/dist/XTicksAndGridLines-B4UhDVyU.cjs.map +1 -0
- package/dist/XTicksAndGridLines-CkYwVshF.js +40 -0
- package/dist/XTicksAndGridLines-CkYwVshF.js.map +1 -0
- package/dist/YTicksAndGridLines-BbujwxOB.js +40 -0
- package/dist/YTicksAndGridLines-BbujwxOB.js.map +1 -0
- package/dist/YTicksAndGridLines-sT3zdCs6.cjs +2 -0
- package/dist/YTicksAndGridLines-sT3zdCs6.cjs.map +1 -0
- package/dist/{imageDownload-Diofs_vY.js → imageDownload-BYsNEtMS.js} +11 -11
- package/dist/{imageDownload-Diofs_vY.js.map → imageDownload-BYsNEtMS.js.map} +1 -1
- package/dist/{imageDownload-61q6jyJW.cjs → imageDownload-CkMwA7Cw.cjs} +4 -4
- package/dist/{imageDownload-61q6jyJW.cjs.map → imageDownload-CkMwA7Cw.cjs.map} +1 -1
- package/dist/index-BPyj_6hG.js +375 -0
- package/dist/index-BPyj_6hG.js.map +1 -0
- package/dist/index-DuLvdHo2.cjs +2 -0
- package/dist/index-DuLvdHo2.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +108 -245
- package/dist/index.js +3 -3
- package/dist/numberFormattingFunction-BUUV_luR.js +28 -0
- package/dist/numberFormattingFunction-BUUV_luR.js.map +1 -0
- package/dist/numberFormattingFunction-u2iNHL_c.cjs +2 -0
- package/dist/numberFormattingFunction-u2iNHL_c.cjs.map +1 -0
- package/dist/{string2HTML-ZoGd08P_.cjs → string2HTML-30nfIm8R.cjs} +2 -2
- package/dist/{string2HTML-ZoGd08P_.cjs.map → string2HTML-30nfIm8R.cjs.map} +1 -1
- package/dist/{string2HTML-BrFperRM.js → string2HTML-DL-pInUB.js} +2 -2
- package/dist/{string2HTML-BrFperRM.js.map → string2HTML-DL-pInUB.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +2 -2
- package/package.json +2 -2
- package/dist/GraphEl-B73N4RIA.js +0 -1906
- package/dist/GraphEl-B73N4RIA.js.map +0 -1
- package/dist/GraphEl-Lt1og0C-.cjs +0 -2
- package/dist/GraphEl-Lt1og0C-.cjs.map +0 -1
- package/dist/XTicksAndGridLines-C5DuC5oY.cjs +0 -2
- package/dist/XTicksAndGridLines-C5DuC5oY.cjs.map +0 -1
- package/dist/XTicksAndGridLines-gdbGX2rm.js +0 -39
- package/dist/XTicksAndGridLines-gdbGX2rm.js.map +0 -1
- package/dist/YTicksAndGridLines-CsNSq9W9.js +0 -39
- package/dist/YTicksAndGridLines-CsNSq9W9.js.map +0 -1
- package/dist/YTicksAndGridLines-DFjm8RCc.cjs +0 -2
- package/dist/YTicksAndGridLines-DFjm8RCc.cjs.map +0 -1
- package/dist/index-B0Awa_de.js +0 -377
- package/dist/index-B0Awa_de.js.map +0 -1
- package/dist/index-CP8cmNzt.cjs +0 -2
- package/dist/index-CP8cmNzt.cjs.map +0 -1
- package/dist/numberFormattingFunction-Cn9R7CM9.cjs +0 -2
- package/dist/numberFormattingFunction-Cn9R7CM9.cjs.map +0 -1
- package/dist/numberFormattingFunction-DqMf_v1m.js +0 -28
- package/dist/numberFormattingFunction-DqMf_v1m.js.map +0 -1
package/dist/ThreeDGlobe.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { j as i, m as
|
|
2
|
-
import { useState as I, useRef as
|
|
3
|
-
import { w as
|
|
4
|
-
import
|
|
5
|
-
import { i as
|
|
6
|
-
import * as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { g as
|
|
9
|
-
import { T as
|
|
10
|
-
import { n as
|
|
11
|
-
import { X as
|
|
12
|
-
import { g as
|
|
13
|
-
import { D as
|
|
14
|
-
import { o as
|
|
15
|
-
import { t as
|
|
16
|
-
import { GraphHeader as
|
|
17
|
-
import { GraphFooter as
|
|
18
|
-
import { f as
|
|
19
|
-
import { Colors as
|
|
20
|
-
import { g as
|
|
21
|
-
import { g as
|
|
22
|
-
import { a as
|
|
23
|
-
var
|
|
24
|
-
function
|
|
25
|
-
if (
|
|
26
|
-
|
|
1
|
+
import { j as i, m as nt, c as lt } from "./index-CHPV5EwG-BzibaIRc.js";
|
|
2
|
+
import { useState as I, useRef as Ke, useEffect as G, useCallback as ct, useEffectEvent as dt } from "react";
|
|
3
|
+
import { w as pt } from "./Spinner-B2IIKg9r.js";
|
|
4
|
+
import ht from "react-globe.gl";
|
|
5
|
+
import { i as mt } from "./index-Bwrro8-q.js";
|
|
6
|
+
import * as $ from "three";
|
|
7
|
+
import { _ as Qe } from "./Typography-BO0gQDIT.js";
|
|
8
|
+
import { g as ut } from "./_commonjsHelpers-ByX85dGu.js";
|
|
9
|
+
import { T as gt } from "./Tooltip-3EYDVa3w.js";
|
|
10
|
+
import { n as ft } from "./numberFormattingFunction-BUUV_luR.js";
|
|
11
|
+
import { X as vt, E as yt } from "./index-ApTBN0kp.js";
|
|
12
|
+
import { g as bt } from "./getCentroidCoordinates-s0OOUjLF.js";
|
|
13
|
+
import { D as xt } from "./DetailsModal-GqEbGHY2.js";
|
|
14
|
+
import { o as wt } from "./ordinal-CHaxGJ_l.js";
|
|
15
|
+
import { t as Ct } from "./threshold-DFfqcDMa.js";
|
|
16
|
+
import { GraphHeader as Dt } from "./GraphHeader.js";
|
|
17
|
+
import { GraphFooter as St } from "./GraphFooter.js";
|
|
18
|
+
import { f as jt } from "./fetchAndParseData-BAXhgTDM.js";
|
|
19
|
+
import { Colors as ae } from "./Colors.js";
|
|
20
|
+
import { g as Nt } from "./getUniqValue-DsqSii6M.js";
|
|
21
|
+
import { g as Rt } from "./getJenks-DTCcQSDi.js";
|
|
22
|
+
import { a as kt, G as Ot } from "./GraphContainer-B8ZqOzKI.js";
|
|
23
|
+
var Ye, et;
|
|
24
|
+
function Et() {
|
|
25
|
+
if (et) return Ye;
|
|
26
|
+
et = 1;
|
|
27
27
|
var t = function(o) {
|
|
28
28
|
return o.charAt(0) === "#" ? o.slice(1) : o;
|
|
29
29
|
}, e = function(o) {
|
|
@@ -53,31 +53,31 @@ function Lt() {
|
|
|
53
53
|
var f = t(o), s = e(f), w = b(s);
|
|
54
54
|
return D(w, n);
|
|
55
55
|
};
|
|
56
|
-
return
|
|
56
|
+
return Ye = g, Ye;
|
|
57
57
|
}
|
|
58
|
-
var
|
|
59
|
-
const
|
|
60
|
-
function
|
|
58
|
+
var Lt = Et();
|
|
59
|
+
const tt = /* @__PURE__ */ ut(Lt);
|
|
60
|
+
function Pt(t) {
|
|
61
61
|
let e;
|
|
62
62
|
switch (t.type) {
|
|
63
63
|
case "ambient":
|
|
64
|
-
e = new
|
|
64
|
+
e = new $.AmbientLight(t.color, t.intensity);
|
|
65
65
|
break;
|
|
66
66
|
case "directional":
|
|
67
|
-
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));
|
|
68
68
|
break;
|
|
69
69
|
case "point":
|
|
70
|
-
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));
|
|
71
71
|
break;
|
|
72
72
|
case "spot":
|
|
73
|
-
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));
|
|
74
74
|
break;
|
|
75
75
|
default:
|
|
76
76
|
throw new Error("Unknown light type");
|
|
77
77
|
}
|
|
78
78
|
return e;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function zt(t) {
|
|
81
81
|
const {
|
|
82
82
|
width: e,
|
|
83
83
|
autoRotate: d,
|
|
@@ -94,12 +94,12 @@ function Mt(t) {
|
|
|
94
94
|
atmosphereColor: E,
|
|
95
95
|
tooltip: L,
|
|
96
96
|
styles: be,
|
|
97
|
-
classNames:
|
|
98
|
-
mapNoDataColor:
|
|
97
|
+
classNames: W,
|
|
98
|
+
mapNoDataColor: ie,
|
|
99
99
|
colorLegendTitle: C,
|
|
100
|
-
showColorScale:
|
|
101
|
-
hoverStrokeColor:
|
|
102
|
-
detailsOnClick:
|
|
100
|
+
showColorScale: se,
|
|
101
|
+
hoverStrokeColor: ne,
|
|
102
|
+
detailsOnClick: Z,
|
|
103
103
|
onSeriesMouseClick: V,
|
|
104
104
|
onSeriesMouseOver: xe,
|
|
105
105
|
resetSelectionOnDoubleClick: we,
|
|
@@ -107,28 +107,28 @@ function Mt(t) {
|
|
|
107
107
|
scale: z,
|
|
108
108
|
globeOffset: m,
|
|
109
109
|
polygonAltitude: u,
|
|
110
|
-
centerLng:
|
|
111
|
-
centerLat:
|
|
112
|
-
atmosphereAltitude:
|
|
113
|
-
globeCurvatureResolution:
|
|
110
|
+
centerLng: _,
|
|
111
|
+
centerLat: J,
|
|
112
|
+
atmosphereAltitude: le,
|
|
113
|
+
globeCurvatureResolution: X,
|
|
114
114
|
fogSettings: M,
|
|
115
115
|
lights: T,
|
|
116
|
-
highlightedAltitude:
|
|
116
|
+
highlightedAltitude: ce,
|
|
117
117
|
selectedId: v,
|
|
118
|
-
collapseColorScaleByDefault:
|
|
118
|
+
collapseColorScaleByDefault: Y,
|
|
119
119
|
dimmedOpacity: A,
|
|
120
|
-
|
|
121
|
-
} = t, [
|
|
120
|
+
numberDisplayOptions: U
|
|
121
|
+
} = t, [de, Ce] = I(!1), p = Ke(void 0), [R, q] = I(void 0), [De, pe] = I(Y === void 0 ? !(e < 680) : !Y), [K, Q] = I({
|
|
122
122
|
x: 0,
|
|
123
123
|
y: 0
|
|
124
|
-
}), [N,
|
|
124
|
+
}), [N, he] = I(void 0), ee = D ? wt().domain(g).range(l) : Ct().domain(g).range(l);
|
|
125
125
|
G(() => {
|
|
126
126
|
p.current && (p.current.controls().enableZoom = x);
|
|
127
127
|
}, [x]), G(() => {
|
|
128
128
|
p.current && (N || v ? p.current.controls().autoRotate = !1 : (p.current.controls().autoRotate = d !== 0, p.current.controls().autoRotateSpeed = d));
|
|
129
129
|
}, [N, v, d]), G(() => {
|
|
130
130
|
if (p.current && v) {
|
|
131
|
-
const r = f.find((y) => y.properties[s] === v), [a, c] =
|
|
131
|
+
const r = f.find((y) => y.properties[s] === v), [a, c] = bt(r);
|
|
132
132
|
p.current.pointOfView({
|
|
133
133
|
lat: c,
|
|
134
134
|
lng: a,
|
|
@@ -139,7 +139,7 @@ function Mt(t) {
|
|
|
139
139
|
const r = p.current?.renderer().domElement;
|
|
140
140
|
if (!r) return;
|
|
141
141
|
const a = (c) => {
|
|
142
|
-
|
|
142
|
+
Q({
|
|
143
143
|
x: c.clientX,
|
|
144
144
|
y: c.clientY
|
|
145
145
|
});
|
|
@@ -147,47 +147,47 @@ function Mt(t) {
|
|
|
147
147
|
return r.addEventListener("mousemove", a), () => r.removeEventListener("mousemove", a);
|
|
148
148
|
}, []), G(() => {
|
|
149
149
|
p.current && p.current.pointOfView({
|
|
150
|
-
lat:
|
|
151
|
-
lng:
|
|
150
|
+
lat: J,
|
|
151
|
+
lng: _,
|
|
152
152
|
altitude: z
|
|
153
153
|
}, 1e3);
|
|
154
|
-
}, [z,
|
|
155
|
-
const S = o || new
|
|
154
|
+
}, [z, _, J]);
|
|
155
|
+
const S = o || new $.MeshBasicMaterial({
|
|
156
156
|
color: "#FFF"
|
|
157
|
-
}), B =
|
|
157
|
+
}), B = ct(() => {
|
|
158
158
|
if (!p.current) return;
|
|
159
159
|
const r = p.current.scene(), a = p.current.camera();
|
|
160
160
|
let c = [];
|
|
161
161
|
r.traverse((h) => {
|
|
162
|
-
h instanceof
|
|
163
|
-
}), c = [...c, ...a.children], c.forEach((h) => h.parent?.remove(h)), T.map((h) =>
|
|
162
|
+
h instanceof $.Light && c.push(h);
|
|
163
|
+
}), c = [...c, ...a.children], c.forEach((h) => h.parent?.remove(h)), T.map((h) => Pt(h)).forEach((h, j) => {
|
|
164
164
|
T[j].type !== "ambient" && T[j].position === "camera" ? (a.add(h), T[j].type !== "point" && a.add(h.target)) : r.add(h);
|
|
165
|
-
}), M && (r.fog = new
|
|
165
|
+
}), M && (r.fog = new $.Fog(M.color, M.near, M.far));
|
|
166
166
|
}, [T, M]), k = () => {
|
|
167
167
|
Ce(!0), B();
|
|
168
168
|
};
|
|
169
169
|
return G(() => {
|
|
170
|
-
|
|
171
|
-
}, [
|
|
172
|
-
/* @__PURE__ */ i.jsx(
|
|
173
|
-
const a = v ? r?.properties?.[s] === v ? 1 : A : P ? P.includes(r?.properties?.[s]) ? 1 : A : 1, c = r?.properties?.[s], y = b.find((j) => j.id === c)?.x, h = y != null ?
|
|
174
|
-
return
|
|
170
|
+
de && B();
|
|
171
|
+
}, [de, B]), /* @__PURE__ */ i.jsxs("div", { className: "relative", children: [
|
|
172
|
+
/* @__PURE__ */ i.jsx(ht, { ref: p, height: n, width: e, globeOffset: m, lineHoverPrecision: 0, polygonsData: f, polygonAltitude: (r) => P?.includes(r?.properties?.[s]) || r?.properties?.[s] === v || r?.properties?.[s] === N?.id || r?.properties?.[s] === R?.id ? ce : u, polygonCapColor: (r) => {
|
|
173
|
+
const a = v ? r?.properties?.[s] === v ? 1 : A : P ? P.includes(r?.properties?.[s]) ? 1 : A : 1, c = r?.properties?.[s], y = b.find((j) => j.id === c)?.x, h = y != null ? ee(y) : ie;
|
|
174
|
+
return tt(h, `${a}`);
|
|
175
175
|
}, polygonSideColor: (r) => {
|
|
176
|
-
const a = r?.properties?.[s], c = b.find((j) => j.id === a)?.x, y = v ? r?.properties?.[s] === v ? 1 : A : P ? P.includes(r?.properties?.[s]) ? 1 : A : 1, h = c != null ?
|
|
177
|
-
return
|
|
178
|
-
}, polygonStrokeColor: (r) => r?.properties?.[s] === N?.id ?
|
|
179
|
-
|
|
176
|
+
const a = r?.properties?.[s], c = b.find((j) => j.id === a)?.x, y = v ? r?.properties?.[s] === v ? 1 : A : P ? P.includes(r?.properties?.[s]) ? 1 : A : 1, h = c != null ? ee(c) : ie;
|
|
177
|
+
return tt(h, `${y}`);
|
|
178
|
+
}, polygonStrokeColor: (r) => r?.properties?.[s] === N?.id ? ne : w, onGlobeClick: () => {
|
|
179
|
+
q(void 0);
|
|
180
180
|
}, onPolygonClick: (r) => {
|
|
181
181
|
const a = r?.properties?.[s] ? b.find((c) => c.id === r?.properties?.[s]) : void 0;
|
|
182
|
-
(V ||
|
|
182
|
+
(V || Z) && (mt(R, a) && we && a ? (q(void 0), V?.(void 0)) : (q(a), V?.(a)));
|
|
183
183
|
}, onPolygonHover: (r) => {
|
|
184
184
|
const a = r?.properties?.[s] ? b.find((c) => c.id === r?.properties?.[s]) : void 0;
|
|
185
|
-
|
|
186
|
-
}, atmosphereColor: E, atmosphereAltitude:
|
|
185
|
+
he(a), xe?.(a);
|
|
186
|
+
}, atmosphereColor: E, atmosphereAltitude: le, globeCurvatureResolution: X, globeMaterial: S, backgroundColor: "rgba(0, 0, 0, 0)", polygonsTransitionDuration: 100, onGlobeReady: () => {
|
|
187
187
|
if (p.current) {
|
|
188
188
|
p.current.pointOfView({
|
|
189
|
-
lat:
|
|
190
|
-
lng:
|
|
189
|
+
lat: J,
|
|
190
|
+
lng: _
|
|
191
191
|
});
|
|
192
192
|
const r = p.current.scene();
|
|
193
193
|
setTimeout(() => {
|
|
@@ -200,14 +200,14 @@ function Mt(t) {
|
|
|
200
200
|
r.add(a), k();
|
|
201
201
|
}
|
|
202
202
|
} }),
|
|
203
|
-
|
|
203
|
+
se === !1 ? null : /* @__PURE__ */ i.jsx("div", { className: nt("absolute left-4 bottom-4 map-color-legend", W?.colorLegend), children: De ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
204
204
|
/* @__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
|
-
|
|
206
|
-
}, children: /* @__PURE__ */ i.jsx(
|
|
205
|
+
pe(!1);
|
|
206
|
+
}, children: /* @__PURE__ */ i.jsx(vt, {}) }),
|
|
207
207
|
/* @__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
208
|
width: D ? void 0 : "340px"
|
|
209
209
|
}, children: [
|
|
210
|
-
C && C !== "" ? /* @__PURE__ */ i.jsx(
|
|
210
|
+
C && C !== "" ? /* @__PURE__ */ i.jsx(Qe, { size: "xs", marginBottom: "xs", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
|
|
211
211
|
display: "-webkit-box",
|
|
212
212
|
WebkitLineClamp: "1",
|
|
213
213
|
WebkitBoxOrient: "vertical"
|
|
@@ -216,7 +216,7 @@ function Mt(t) {
|
|
|
216
216
|
/* @__PURE__ */ i.jsx("div", { className: "w-2 h-2 rounded-full", style: {
|
|
217
217
|
backgroundColor: l[a % l.length]
|
|
218
218
|
} }),
|
|
219
|
-
/* @__PURE__ */ i.jsx(
|
|
219
|
+
/* @__PURE__ */ i.jsx(Qe, { size: "sm", marginBottom: "none", leading: "none", children: r })
|
|
220
220
|
] }, a)) }) : /* @__PURE__ */ i.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ i.jsxs("g", { children: [
|
|
221
221
|
g.map((r, a) => /* @__PURE__ */ i.jsxs("g", { className: "cursor-pointer", children: [
|
|
222
222
|
/* @__PURE__ */ i.jsx("rect", { x: a * 320 / l.length + 1, y: 1, width: 320 / l.length - 2, height: 8, style: {
|
|
@@ -225,7 +225,7 @@ function Mt(t) {
|
|
|
225
225
|
} }),
|
|
226
226
|
/* @__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
227
|
textAnchor: "middle"
|
|
228
|
-
}, children:
|
|
228
|
+
}, children: ft(r, void 0, U?.precision ?? 2, void 0, void 0, U?.locale || "en", U?.padZeros || !1) })
|
|
229
229
|
] }, a)),
|
|
230
230
|
/* @__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
231
|
fill: l[g.length],
|
|
@@ -234,14 +234,14 @@ function Mt(t) {
|
|
|
234
234
|
] }) })
|
|
235
235
|
] })
|
|
236
236
|
] }) : /* @__PURE__ */ i.jsx("button", { type: "button", className: "p-1 border-0 rounded-[2px] text-primary-gray-700 bg-primary-gray-300 dark:bg-primary-gray-500 map-legend-button", onClick: () => {
|
|
237
|
-
|
|
238
|
-
}, children: /* @__PURE__ */ i.jsx(
|
|
239
|
-
N && L ? /* @__PURE__ */ i.jsx(
|
|
240
|
-
|
|
237
|
+
pe(!0);
|
|
238
|
+
}, children: /* @__PURE__ */ i.jsx(yt, {}) }) }),
|
|
239
|
+
N && L ? /* @__PURE__ */ i.jsx(gt, { data: N, body: L, xPos: K.x, yPos: K.y, backgroundStyle: be?.tooltip, className: W?.tooltip }) : null,
|
|
240
|
+
Z && R !== void 0 ? /* @__PURE__ */ i.jsx(xt, { body: Z, data: R, setData: q, className: W?.modal }) : null
|
|
241
241
|
] });
|
|
242
242
|
}
|
|
243
|
-
function
|
|
244
|
-
const e =
|
|
243
|
+
function lo(t) {
|
|
244
|
+
const e = lt.c(96), {
|
|
245
245
|
data: d,
|
|
246
246
|
mapData: b,
|
|
247
247
|
graphTitle: x,
|
|
@@ -256,12 +256,12 @@ function co(t) {
|
|
|
256
256
|
scaleType: E,
|
|
257
257
|
padding: L,
|
|
258
258
|
mapNoDataColor: be,
|
|
259
|
-
backgroundColor:
|
|
260
|
-
mapBorderColor:
|
|
259
|
+
backgroundColor: W,
|
|
260
|
+
mapBorderColor: ie,
|
|
261
261
|
relativeHeight: C,
|
|
262
|
-
tooltip:
|
|
263
|
-
graphID:
|
|
264
|
-
mapProperty:
|
|
262
|
+
tooltip: se,
|
|
263
|
+
graphID: ne,
|
|
264
|
+
mapProperty: Z,
|
|
265
265
|
dataDownload: V,
|
|
266
266
|
language: xe,
|
|
267
267
|
minHeight: we,
|
|
@@ -269,38 +269,38 @@ function co(t) {
|
|
|
269
269
|
ariaLabel: z,
|
|
270
270
|
styles: m,
|
|
271
271
|
classNames: u,
|
|
272
|
-
autoRotate:
|
|
273
|
-
enableZoom:
|
|
274
|
-
globeMaterial:
|
|
275
|
-
centerPoint:
|
|
272
|
+
autoRotate: _,
|
|
273
|
+
enableZoom: J,
|
|
274
|
+
globeMaterial: le,
|
|
275
|
+
centerPoint: X,
|
|
276
276
|
atmosphereColor: M,
|
|
277
277
|
showColorScale: T,
|
|
278
|
-
resetSelectionOnDoubleClick:
|
|
278
|
+
resetSelectionOnDoubleClick: ce,
|
|
279
279
|
detailsOnClick: v,
|
|
280
|
-
onSeriesMouseOver:
|
|
280
|
+
onSeriesMouseOver: Y,
|
|
281
281
|
onSeriesMouseClick: A,
|
|
282
|
-
highlightedIds:
|
|
283
|
-
highlightedAltitude:
|
|
282
|
+
highlightedIds: U,
|
|
283
|
+
highlightedAltitude: de,
|
|
284
284
|
dimmedOpacity: Ce,
|
|
285
285
|
scale: p,
|
|
286
286
|
globeOffset: R,
|
|
287
|
-
polygonAltitude:
|
|
287
|
+
polygonAltitude: q,
|
|
288
288
|
globeCurvatureResolution: De,
|
|
289
|
-
atmosphereAltitude:
|
|
290
|
-
fogSettings:
|
|
291
|
-
lights:
|
|
289
|
+
atmosphereAltitude: pe,
|
|
290
|
+
fogSettings: K,
|
|
291
|
+
lights: Q,
|
|
292
292
|
selectedId: N,
|
|
293
|
-
collapseColorScaleByDefault:
|
|
294
|
-
|
|
295
|
-
} = t, S = 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, k = E === void 0 ? "threshold" : E, r = be === void 0 ?
|
|
293
|
+
collapseColorScaleByDefault: he,
|
|
294
|
+
numberDisplayOptions: ee
|
|
295
|
+
} = t, S = 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, k = E === void 0 ? "threshold" : E, r = be === void 0 ? ae.light.graphNoData : be, a = W === void 0 ? !1 : W, c = ie === void 0 ? ae.light.grays["gray-500"] : ie, y = Z === void 0 ? "ISO3" : Z, h = V === void 0 ? !1 : V, j = xe === void 0 ? "en" : xe, O = we === void 0 ? 0 : we, F = P === void 0 ? "light" : P, me = _ === void 0 ? !0 : _, Ae = J === void 0 ? !0 : J;
|
|
296
296
|
let Se;
|
|
297
|
-
e[0] !==
|
|
298
|
-
const je = Se, Be = M === void 0 ? "#999" : M, Fe = T === void 0 ? !0 : T, Ge =
|
|
297
|
+
e[0] !== X ? (Se = X === void 0 ? [0, 0] : X, e[0] = X, e[1] = Se) : Se = e[1];
|
|
298
|
+
const je = Se, Be = M === void 0 ? "#999" : M, Fe = T === void 0 ? !0 : T, Ge = ce === void 0 ? !0 : ce, Ie = de === void 0 ? 0.1 : de, Ue = Ce === void 0 ? 0.3 : Ce, qe = p === void 0 ? 1 : p;
|
|
299
299
|
let Ne;
|
|
300
300
|
e[2] !== R ? (Ne = R === void 0 ? [0, 0] : R, e[2] = R, e[3] = Ne) : Ne = e[3];
|
|
301
|
-
const He = Ne, $e =
|
|
301
|
+
const He = Ne, $e = q === void 0 ? 0.01 : q, We = De === void 0 ? 4 : De, Ze = pe === void 0 ? 0.15 : pe;
|
|
302
302
|
let Re;
|
|
303
|
-
e[4] !==
|
|
303
|
+
e[4] !== Q ? (Re = Q === void 0 ? [{
|
|
304
304
|
type: "ambient",
|
|
305
305
|
color: 4210752,
|
|
306
306
|
intensity: 0.4
|
|
@@ -313,26 +313,26 @@ function co(t) {
|
|
|
313
313
|
y: 10,
|
|
314
314
|
z: 5
|
|
315
315
|
}
|
|
316
|
-
}] :
|
|
317
|
-
const
|
|
316
|
+
}] : Q, e[4] = Q, e[5] = Re) : Re = e[5];
|
|
317
|
+
const Ve = Re, [ke, ot] = I(void 0), [H, rt] = I(0), [ue, at] = I(0), _e = Ke(null), it = Ke(null);
|
|
318
318
|
let Oe, Ee;
|
|
319
319
|
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Oe = () => {
|
|
320
320
|
const ve = new ResizeObserver((ye) => {
|
|
321
|
-
|
|
321
|
+
rt(ye[0].target.clientWidth || 620), at(ye[0].target.clientHeight || 480);
|
|
322
322
|
});
|
|
323
|
-
return
|
|
323
|
+
return _e.current && ve.observe(_e.current), () => ve.disconnect();
|
|
324
324
|
}, Ee = [], e[6] = Oe, e[7] = Ee) : (Oe = e[6], Ee = e[7]), G(Oe, Ee);
|
|
325
325
|
let Le;
|
|
326
326
|
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Le = (ve) => {
|
|
327
|
-
|
|
327
|
+
ot(ve);
|
|
328
328
|
}, e[8] = Le) : Le = e[8];
|
|
329
|
-
const ge =
|
|
329
|
+
const ge = dt(Le);
|
|
330
330
|
let Pe;
|
|
331
331
|
e[9] !== S || e[10] !== ge ? (Pe = () => {
|
|
332
|
-
typeof S == "string" ?
|
|
332
|
+
typeof S == "string" ? jt(S).then((ye) => {
|
|
333
333
|
if (S === "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-simplified.json") {
|
|
334
|
-
const
|
|
335
|
-
ge(
|
|
334
|
+
const st = ye.features.map(It);
|
|
335
|
+
ge(st);
|
|
336
336
|
} else
|
|
337
337
|
ge(ye.features);
|
|
338
338
|
}) : ge(S.features);
|
|
@@ -340,54 +340,54 @@ function co(t) {
|
|
|
340
340
|
let ze;
|
|
341
341
|
e[12] !== S ? (ze = [S], e[12] = S, e[13] = ze) : ze = e[13], G(Pe, ze);
|
|
342
342
|
let Me;
|
|
343
|
-
e[14] !== s || e[15] !== D?.length || e[16] !== d || e[17] !== k ? (Me = s || (k === "categorical" ?
|
|
344
|
-
const fe = Me,
|
|
345
|
-
let
|
|
346
|
-
e[19] !== u?.description || e[20] !== u?.title || e[21] !== d || e[22] !== h || e[23] !== l || e[24] !== x || e[25] !== m?.description || e[26] !== m?.title || e[27] !== n ? (
|
|
343
|
+
e[14] !== s || e[15] !== D?.length || e[16] !== d || e[17] !== k ? (Me = s || (k === "categorical" ? Nt(d, "x") : Rt(d.map(Gt), D?.length || 4)), e[14] = s, e[15] = D?.length, e[16] = d, e[17] = k, e[18] = Me) : Me = e[18];
|
|
344
|
+
const fe = Me, Je = u?.graphContainer, Xe = m?.graphContainer;
|
|
345
|
+
let te;
|
|
346
|
+
e[19] !== u?.description || e[20] !== u?.title || e[21] !== d || e[22] !== h || e[23] !== l || e[24] !== x || e[25] !== m?.description || e[26] !== m?.title || e[27] !== n ? (te = x || l || h ? /* @__PURE__ */ i.jsx(Dt, { styles: {
|
|
347
347
|
title: m?.title,
|
|
348
348
|
description: m?.description
|
|
349
349
|
}, classNames: {
|
|
350
350
|
title: u?.title,
|
|
351
351
|
description: u?.description
|
|
352
|
-
}, graphTitle: x, graphDescription: l, width: n, graphDownload: void 0, dataDownload: h ? d.map(
|
|
353
|
-
let
|
|
354
|
-
e[29] !==
|
|
355
|
-
height: `${Math.max(O, o || (C ? O ? (n ||
|
|
356
|
-
}, className: "flex items-center justify-center", children: /* @__PURE__ */ i.jsx(
|
|
357
|
-
let
|
|
358
|
-
e[72] !== u?.footnote || e[73] !== u?.source || e[74] !== B || e[75] !== g || e[76] !== m?.footnote || e[77] !== m?.source || e[78] !== n ? (
|
|
352
|
+
}, graphTitle: x, graphDescription: l, width: n, graphDownload: void 0, dataDownload: h ? d.map(Ft).filter(Bt).length > 0 ? d.map(At).filter(Tt) : d.filter(Mt) : null }) : null, e[19] = u?.description, e[20] = u?.title, e[21] = d, e[22] = h, e[23] = l, e[24] = x, e[25] = m?.description, e[26] = m?.title, e[27] = n, e[28] = te) : te = e[28];
|
|
353
|
+
let oe;
|
|
354
|
+
e[29] !== Ze || e[30] !== Be || e[31] !== me || e[32] !== je || e[33] !== u || e[34] !== he || e[35] !== w || e[36] !== D || e[37] !== d || e[38] !== v || e[39] !== Ue || e[40] !== fe || e[41] !== Ae || e[42] !== K || e[43] !== We || e[44] !== le || e[45] !== He || e[46] !== o || e[47] !== Ie || e[48] !== U || e[49] !== Ve || e[50] !== c || e[51] !== r || e[52] !== y || e[53] !== ke || e[54] !== O || e[55] !== ee || e[56] !== A || e[57] !== Y || e[58] !== $e || e[59] !== C || e[60] !== Ge || e[61] !== qe || e[62] !== k || e[63] !== N || e[64] !== Fe || e[65] !== m || e[66] !== ue || e[67] !== H || e[68] !== F || e[69] !== se || e[70] !== n ? (oe = /* @__PURE__ */ i.jsx(kt, { ref: _e, children: H && ue && ke ? /* @__PURE__ */ i.jsx(zt, { data: d, globeOffset: He, polygonData: ke, colorDomain: fe, width: H, height: ue, colors: D || (k === "categorical" ? ae[F].sequentialColors[`neutralColorsx0${fe.length}`] : ae[F].sequentialColors[`neutralColorsx0${fe.length + 1}`]), mapNoDataColor: r, categorical: k === "categorical", mapBorderColor: c, tooltip: se, mapProperty: y, styles: m, classNames: u, autoRotate: me === !0 ? 1.5 : me === !1 ? 0 : me, enableZoom: Ae, globeMaterial: le, atmosphereColor: Be, colorLegendTitle: w, showColorScale: Fe, hoverStrokeColor: F === "light" ? ae.light.grays["gray-700"] : ae.light.grays["gray-300"], highlightedIds: U, resetSelectionOnDoubleClick: Ge, detailsOnClick: v, onSeriesMouseOver: Y, onSeriesMouseClick: A, scale: qe, polygonAltitude: $e, centerLat: je[0], centerLng: je[1], atmosphereAltitude: Ze, globeCurvatureResolution: We, fogSettings: K, lights: Ve, highlightedAltitude: Ie, selectedId: N, collapseColorScaleByDefault: he, dimmedOpacity: Ue, numberDisplayOptions: ee }) : /* @__PURE__ */ i.jsx("div", { style: {
|
|
355
|
+
height: `${Math.max(O, o || (C ? O ? (n || H) * C > O ? (n || H) * C : O : (n || H) * C : ue))}px`
|
|
356
|
+
}, className: "flex items-center justify-center", children: /* @__PURE__ */ i.jsx(pt, { "aria-label": "Loading graph" }) }) }), e[29] = Ze, e[30] = Be, e[31] = me, e[32] = je, e[33] = u, e[34] = he, e[35] = w, e[36] = D, e[37] = d, e[38] = v, e[39] = Ue, e[40] = fe, e[41] = Ae, e[42] = K, e[43] = We, e[44] = le, e[45] = He, e[46] = o, e[47] = Ie, e[48] = U, e[49] = Ve, e[50] = c, e[51] = r, e[52] = y, e[53] = ke, e[54] = O, e[55] = ee, e[56] = A, e[57] = Y, e[58] = $e, e[59] = C, e[60] = Ge, e[61] = qe, e[62] = k, e[63] = N, e[64] = Fe, e[65] = m, e[66] = ue, e[67] = H, e[68] = F, e[69] = se, e[70] = n, e[71] = oe) : oe = e[71];
|
|
357
|
+
let re;
|
|
358
|
+
e[72] !== u?.footnote || e[73] !== u?.source || e[74] !== B || e[75] !== g || e[76] !== m?.footnote || e[77] !== m?.source || e[78] !== n ? (re = g || B ? /* @__PURE__ */ i.jsx(St, { styles: {
|
|
359
359
|
footnote: m?.footnote,
|
|
360
360
|
source: m?.source
|
|
361
361
|
}, classNames: {
|
|
362
362
|
footnote: u?.footnote,
|
|
363
363
|
source: u?.source
|
|
364
|
-
}, sources: g, footNote: B, width: n }) : null, e[72] = u?.footnote, e[73] = u?.source, e[74] = B, e[75] = g, e[76] = m?.footnote, e[77] = m?.source, e[78] = n, e[79] =
|
|
364
|
+
}, sources: g, footNote: B, width: n }) : null, e[72] = u?.footnote, e[73] = u?.source, e[74] = B, e[75] = g, e[76] = m?.footnote, e[77] = m?.source, e[78] = n, e[79] = re) : re = e[79];
|
|
365
365
|
let Te;
|
|
366
|
-
return e[80] !== z || e[81] !== a || e[82] !==
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
] }), e[80] = z, e[81] = a, e[82] =
|
|
366
|
+
return e[80] !== z || e[81] !== a || e[82] !== ne || e[83] !== o || e[84] !== j || e[85] !== O || e[86] !== L || e[87] !== C || e[88] !== Je || e[89] !== Xe || e[90] !== te || e[91] !== oe || e[92] !== re || e[93] !== F || e[94] !== n ? (Te = /* @__PURE__ */ i.jsxs(Ot, { className: Je, style: Xe, id: ne, ref: it, "aria-label": z, backgroundColor: a, theme: F, language: j, minHeight: O, width: n, height: o, relativeHeight: C, padding: L, children: [
|
|
367
|
+
te,
|
|
368
|
+
oe,
|
|
369
|
+
re
|
|
370
|
+
] }), e[80] = z, e[81] = a, e[82] = ne, e[83] = o, e[84] = j, e[85] = O, e[86] = L, e[87] = C, e[88] = Je, e[89] = Xe, e[90] = te, e[91] = oe, e[92] = re, e[93] = F, e[94] = n, e[95] = Te) : Te = e[95], Te;
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function Mt(t) {
|
|
373
373
|
return t !== void 0;
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function Tt(t) {
|
|
376
376
|
return t !== void 0;
|
|
377
377
|
}
|
|
378
|
-
function
|
|
378
|
+
function At(t) {
|
|
379
379
|
return t.data;
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function Bt(t) {
|
|
382
382
|
return t !== void 0;
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function Ft(t) {
|
|
385
385
|
return t.data;
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function Gt(t) {
|
|
388
388
|
return t.x;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function It(t) {
|
|
391
391
|
if (t.geometry.type === "Polygon") {
|
|
392
392
|
const b = [...t.geometry.coordinates[0]].reverse(), x = {
|
|
393
393
|
...t.geometry,
|
|
@@ -413,6 +413,6 @@ function Ut(t) {
|
|
|
413
413
|
};
|
|
414
414
|
}
|
|
415
415
|
export {
|
|
416
|
-
|
|
416
|
+
lo as ThreeDGlobe
|
|
417
417
|
};
|
|
418
418
|
//# sourceMappingURL=ThreeDGlobe.js.map
|