@undp/data-viz 1.5.8 → 1.5.9
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.js +13 -13
- package/dist/{Axis-Ddg-seDi.js → Axis-4gUOL8B7.js} +2 -2
- package/dist/{Axis-Ddg-seDi.js.map → Axis-4gUOL8B7.js.map} +1 -1
- package/dist/{Axis-DE7dSn1_.cjs → Axis-CkNn1wit.cjs} +2 -2
- package/dist/{Axis-DE7dSn1_.cjs.map → Axis-CkNn1wit.cjs.map} +1 -1
- package/dist/{AxisTitle-CK9YeovX.cjs → AxisTitle-Wkz-xeQL.cjs} +2 -2
- package/dist/{AxisTitle-CK9YeovX.cjs.map → AxisTitle-Wkz-xeQL.cjs.map} +1 -1
- package/dist/{AxisTitle-BmHLMRJZ.js → AxisTitle-v6_xcXZ-.js} +2 -2
- package/dist/{AxisTitle-BmHLMRJZ.js.map → AxisTitle-v6_xcXZ-.js.map} +1 -1
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.js +16 -16
- package/dist/BasicStatCard.cjs +1 -1
- package/dist/BasicStatCard.js +2 -2
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.js +42 -42
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.cjs.map +1 -1
- package/dist/BiVariateChoroplethMap.d.ts +2 -0
- package/dist/BiVariateChoroplethMap.js +257 -264
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.js +14 -14
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.js +45 -45
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.d.ts +2 -0
- package/dist/ChoroplethMap.js +296 -304
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.js +3 -3
- package/dist/ColorLegend.cjs +1 -1
- package/dist/ColorLegend.js +2 -2
- package/dist/ColorLegendWithMouseOver.cjs +1 -1
- package/dist/ColorLegendWithMouseOver.js +2 -2
- package/dist/CopyTextButton.cjs +4 -4
- package/dist/CopyTextButton.cjs.map +1 -1
- package/dist/CopyTextButton.js +27 -27
- package/dist/CopyTextButton.js.map +1 -1
- package/dist/CsvDownloadButton.cjs +1 -1
- package/dist/CsvDownloadButton.js +2 -2
- package/dist/DataCards.cjs +3 -3
- package/dist/DataCards.cjs.map +1 -1
- package/dist/DataCards.js +16 -16
- package/dist/DataCards.js.map +1 -1
- package/dist/DataTable.cjs +1 -1
- package/dist/DataTable.js +3 -3
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.js +12 -12
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.js +20 -20
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.d.ts +2 -0
- package/dist/DotDensityMap.js +282 -289
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/{DropdownSelect-CtOKZHD0.js → DropdownSelect-6kjXM6oW.js} +2 -2
- package/dist/DropdownSelect-6kjXM6oW.js.map +1 -0
- package/dist/{DropdownSelect-DBDM64B5.cjs → DropdownSelect-vt8yiB-g.cjs} +5 -5
- package/dist/DropdownSelect-vt8yiB-g.cjs.map +1 -0
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.js +9 -9
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.js +50 -50
- package/dist/{EmptyState-DdTp-Mdn.js → EmptyState-36lXXyui.js} +4 -4
- package/dist/{EmptyState-DdTp-Mdn.js.map → EmptyState-36lXXyui.js.map} +1 -1
- package/dist/{EmptyState-d8_8SxeW.cjs → EmptyState-B8IpKGcL.cjs} +2 -2
- package/dist/{EmptyState-d8_8SxeW.cjs.map → EmptyState-B8IpKGcL.cjs.map} +1 -1
- package/dist/ExcelDownloadButton.cjs +1 -1
- package/dist/ExcelDownloadButton.js +2 -2
- package/dist/FootNote.cjs +1 -1
- package/dist/FootNote.js +2 -2
- package/dist/GeoHubCompareMaps.cjs +1 -1
- package/dist/GeoHubCompareMaps.cjs.map +1 -1
- package/dist/GeoHubCompareMaps.js +65 -80
- package/dist/GeoHubCompareMaps.js.map +1 -1
- package/dist/GeoHubMap.cjs +1 -1
- package/dist/GeoHubMap.cjs.map +1 -1
- package/dist/GeoHubMap.js +95 -125
- package/dist/GeoHubMap.js.map +1 -1
- package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
- package/dist/GeoHubMapWithLayerSelection.cjs.map +1 -1
- package/dist/GeoHubMapWithLayerSelection.js +73 -88
- package/dist/GeoHubMapWithLayerSelection.js.map +1 -1
- package/dist/GraphDescription.cjs +1 -1
- package/dist/GraphDescription.js +2 -2
- package/dist/{GraphEl-CqWzvOyr.js → GraphEl-2IiUDxjR.js} +15 -12
- package/dist/GraphEl-2IiUDxjR.js.map +1 -0
- package/dist/GraphEl-qrlfGPe3.cjs +2 -0
- package/dist/GraphEl-qrlfGPe3.cjs.map +1 -0
- package/dist/GraphFooter.cjs +1 -1
- package/dist/GraphFooter.js +1 -1
- package/dist/GraphHeader.cjs +1 -1
- package/dist/GraphHeader.js +1 -1
- package/dist/GraphTitle.cjs +1 -1
- package/dist/GraphTitle.js +2 -2
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.d.ts +1 -0
- package/dist/GriddedGraphs.js +5 -5
- package/dist/GriddedGraphsFromConfig.cjs +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +1 -0
- package/dist/GriddedGraphsFromConfig.js +2 -2
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.js +19 -19
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.js +3 -3
- package/dist/ImageDownloadButton.cjs +1 -1
- package/dist/ImageDownloadButton.js +2 -2
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.js +12 -12
- package/dist/LinearColorLegend.cjs +1 -1
- package/dist/LinearColorLegend.js +2 -2
- package/dist/{Modal-DVVwpKhP.js → Modal-Cg8daIlV.js} +198 -187
- package/dist/Modal-Cg8daIlV.js.map +1 -0
- package/dist/Modal-CuuJdWkD.cjs +46 -0
- package/dist/Modal-CuuJdWkD.cjs.map +1 -0
- package/dist/MultiGraphDashboard.cjs +1 -1
- package/dist/MultiGraphDashboard.d.ts +1 -0
- package/dist/MultiGraphDashboard.js +3 -3
- package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
- package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
- package/dist/MultiGraphDashboardFromConfig.js +2 -2
- package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat.js +4 -4
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +2 -2
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.js +12 -12
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.js +12 -12
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.js +26 -26
- package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
- package/dist/PerformanceIntensiveMultiGraphDashboard.js +3 -3
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +2 -2
- package/dist/PerformanceIntensiveScrollStory.cjs +1 -1
- package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
- package/dist/PerformanceIntensiveScrollStory.js +3 -3
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.js +7 -7
- package/dist/{ReferenceLine-CfAW3vKJ.js → ReferenceLine-CPMaAX0r.js} +3 -3
- package/dist/{ReferenceLine-CfAW3vKJ.js.map → ReferenceLine-CPMaAX0r.js.map} +1 -1
- package/dist/{ReferenceLine-CFVBBN__.cjs → ReferenceLine-D04j-zeV.cjs} +2 -2
- package/dist/{ReferenceLine-CFVBBN__.cjs.map → ReferenceLine-D04j-zeV.cjs.map} +1 -1
- package/dist/{RegressionLine-C2--oMQq.js → RegressionLine-CW7iViH2.js} +4 -4
- package/dist/{RegressionLine-C2--oMQq.js.map → RegressionLine-CW7iViH2.js.map} +1 -1
- package/dist/{RegressionLine-Dj0GSiAp.cjs → RegressionLine-D-49RaHa.cjs} +2 -2
- package/dist/{RegressionLine-Dj0GSiAp.cjs.map → RegressionLine-D-49RaHa.cjs.map} +1 -1
- package/dist/SVGDownloadButton.cjs +1 -1
- package/dist/SVGDownloadButton.js +2 -2
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.js +27 -27
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.js +17 -17
- package/dist/ScrollStory.cjs +1 -1
- package/dist/ScrollStory.d.ts +1 -0
- package/dist/ScrollStory.js +3 -3
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.js +13 -13
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.d.ts +1 -0
- package/dist/SingleGraphDashboard.js +6 -6
- package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardFromConfig.js +2 -2
- package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
- package/dist/SingleGraphDashboardGeoHubMaps.js +2 -2
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +2 -2
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphs.js +14 -13
- package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +2 -2
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.js +26 -26
- package/dist/Source.cjs +1 -1
- package/dist/Source.js +2 -2
- package/dist/SparkLine.cjs +1 -1
- package/dist/SparkLine.js +2 -2
- package/dist/{Spinner-C85UF28E.js → Spinner-Bpz70q_g.js} +2 -2
- package/dist/{Spinner-C85UF28E.js.map → Spinner-Bpz70q_g.js.map} +1 -1
- package/dist/{Spinner-DA6Z5E4n.cjs → Spinner-C6wLp85s.cjs} +2 -2
- package/dist/{Spinner-DA6Z5E4n.cjs.map → Spinner-C6wLp85s.cjs.map} +1 -1
- package/dist/StatCardFromData.cjs +1 -1
- package/dist/StatCardFromData.js +2 -2
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.js +29 -29
- package/dist/ThreeDGlobe.cjs +1 -1
- package/dist/ThreeDGlobe.cjs.map +1 -1
- package/dist/ThreeDGlobe.d.ts +2 -0
- package/dist/ThreeDGlobe.js +220 -228
- package/dist/ThreeDGlobe.js.map +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.js +2 -2
- package/dist/{Tooltip-CVCGWyzw.js → Tooltip-6LIdPQGC.js} +2 -2
- package/dist/{Tooltip-CVCGWyzw.js.map → Tooltip-6LIdPQGC.js.map} +1 -1
- package/dist/{Tooltip-De16GWhY.cjs → Tooltip-Cpv0QohJ.cjs} +2 -2
- package/dist/{Tooltip-De16GWhY.cjs.map → Tooltip-Cpv0QohJ.cjs.map} +1 -1
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.js +24 -24
- package/dist/Types.d.ts +1 -0
- package/dist/{Typography-k-kOjICQ.cjs → Typography-BDULiwlF.cjs} +2 -2
- package/dist/{Typography-k-kOjICQ.cjs.map → Typography-BDULiwlF.cjs.map} +1 -1
- package/dist/{Typography-Ctgfl1J5.js → Typography-LmZ9LEpe.js} +2 -2
- package/dist/{Typography-Ctgfl1J5.js.map → Typography-LmZ9LEpe.js.map} +1 -1
- package/dist/UnitChart.cjs +1 -1
- package/dist/UnitChart.js +5 -5
- package/dist/{XAxesLabels-Drf7M3YK.cjs → XAxesLabels-CLZnBgSr.cjs} +2 -2
- package/dist/{XAxesLabels-Drf7M3YK.cjs.map → XAxesLabels-CLZnBgSr.cjs.map} +1 -1
- package/dist/{XAxesLabels-loO78vUO.js → XAxesLabels-SOSmso5J.js} +3 -3
- package/dist/{XAxesLabels-loO78vUO.js.map → XAxesLabels-SOSmso5J.js.map} +1 -1
- package/dist/{XTicksAndGridLines-Bn9u5gOM.js → XTicksAndGridLines-DuydSnZ_.js} +2 -2
- package/dist/{XTicksAndGridLines-Bn9u5gOM.js.map → XTicksAndGridLines-DuydSnZ_.js.map} +1 -1
- package/dist/{XTicksAndGridLines-CCzXIV8d.cjs → XTicksAndGridLines-RKy7BVCO.cjs} +2 -2
- package/dist/{XTicksAndGridLines-CCzXIV8d.cjs.map → XTicksAndGridLines-RKy7BVCO.cjs.map} +1 -1
- package/dist/{YAxesLabels-DECkMgq8.js → YAxesLabels-DlDyLvhi.js} +3 -3
- package/dist/{YAxesLabels-DECkMgq8.js.map → YAxesLabels-DlDyLvhi.js.map} +1 -1
- package/dist/{YAxesLabels-yRFFdx1s.cjs → YAxesLabels-Dqd259-t.cjs} +2 -2
- package/dist/{YAxesLabels-yRFFdx1s.cjs.map → YAxesLabels-Dqd259-t.cjs.map} +1 -1
- package/dist/{YTicksAndGridLines-B6ah7CRf.js → YTicksAndGridLines-7t4MKtGw.js} +2 -2
- package/dist/{YTicksAndGridLines-B6ah7CRf.js.map → YTicksAndGridLines-7t4MKtGw.js.map} +1 -1
- package/dist/{YTicksAndGridLines-DBDuz6vb.cjs → YTicksAndGridLines-qGpRo_t1.cjs} +2 -2
- package/dist/{YTicksAndGridLines-DBDuz6vb.cjs.map → YTicksAndGridLines-qGpRo_t1.cjs.map} +1 -1
- package/dist/checkIfMultiple-Dko_cBvE.cjs +12 -0
- package/dist/checkIfMultiple-Dko_cBvE.cjs.map +1 -0
- package/dist/{checkIfMultiple-ChTJk2Tk.js → checkIfMultiple-u2SmbiCf.js} +11 -11
- package/dist/checkIfMultiple-u2SmbiCf.js.map +1 -0
- package/dist/{customArea-CK768gCn.cjs → customArea-1G1S78s_.cjs} +2 -2
- package/dist/{customArea-CK768gCn.cjs.map → customArea-1G1S78s_.cjs.map} +1 -1
- package/dist/{customArea-B-dWU0zZ.js → customArea-x4L4xwLl.js} +3 -3
- package/dist/{customArea-B-dWU0zZ.js.map → customArea-x4L4xwLl.js.map} +1 -1
- package/dist/getSliderMarks-CUxPy36E.cjs +6 -0
- package/dist/getSliderMarks-CUxPy36E.cjs.map +1 -0
- package/dist/{getSliderMarks-9cNoRkDx.js → getSliderMarks-_pYOWEtO.js} +3 -3
- package/dist/getSliderMarks-_pYOWEtO.js.map +1 -0
- package/dist/{index-BYzIB5V6.cjs → index-BHe3wsWF.cjs} +2 -2
- package/dist/{index-BYzIB5V6.cjs.map → index-BHe3wsWF.cjs.map} +1 -1
- package/dist/{index-DKCxu1Gh.js → index-Bw_eHBVN.js} +3 -3
- package/dist/{index-DKCxu1Gh.js.map → index-Bw_eHBVN.js.map} +1 -1
- package/dist/{index-BW_-wD2k.cjs → index-C0bpbS4F.cjs} +2 -2
- package/dist/{index-BW_-wD2k.cjs.map → index-C0bpbS4F.cjs.map} +1 -1
- package/dist/{index-37q0ULNQ.js → index-CE9pmfxt.js} +17 -17
- package/dist/{index-37q0ULNQ.js.map → index-CE9pmfxt.js.map} +1 -1
- package/dist/{index-CVlCtJbC.cjs → index-CEJwW3lL.cjs} +2 -2
- package/dist/{index-CVlCtJbC.cjs.map → index-CEJwW3lL.cjs.map} +1 -1
- package/dist/{index-CHPV5EwG-BPSP-7Jg.js → index-CHPV5EwG-DBWUSD9b.js} +539 -543
- package/dist/index-CHPV5EwG-DBWUSD9b.js.map +1 -0
- package/dist/index-CHPV5EwG-DjM48pIC.cjs +44 -0
- package/dist/index-CHPV5EwG-DjM48pIC.cjs.map +1 -0
- package/dist/{index-BW8iNx7E.cjs → index-Cm8NIdOO.cjs} +2 -2
- package/dist/{index-BW8iNx7E.cjs.map → index-Cm8NIdOO.cjs.map} +1 -1
- package/dist/{index-tvAyXPPW-DBlMKnNB.js → index-Cw8sCyo_-BuI_jX5Z.js} +3 -3
- package/dist/{index-tvAyXPPW-DBlMKnNB.js.map → index-Cw8sCyo_-BuI_jX5Z.js.map} +1 -1
- package/dist/index-Cw8sCyo_-gxT8ADyn.cjs +2 -0
- package/dist/index-Cw8sCyo_-gxT8ADyn.cjs.map +1 -0
- package/dist/{index-CNvov0eg.js → index-Cwgh7i7X.js} +3 -3
- package/dist/{index-CNvov0eg.js.map → index-Cwgh7i7X.js.map} +1 -1
- package/dist/{index-DG3YrCr5-D3FrrXj8.js → index-Dzc_aaI9-BKklH89r.js} +2 -2
- package/dist/{index-DG3YrCr5-D3FrrXj8.js.map → index-Dzc_aaI9-BKklH89r.js.map} +1 -1
- package/dist/{index-DG3YrCr5-v7rayV3N.cjs → index-Dzc_aaI9-RIk2GRHD.cjs} +2 -2
- package/dist/{index-DG3YrCr5-v7rayV3N.cjs.map → index-Dzc_aaI9-RIk2GRHD.cjs.map} +1 -1
- package/dist/{index-BmCqpO1B.js → index-zZjQEHlm.js} +2 -2
- package/dist/{index-BmCqpO1B.js.map → index-zZjQEHlm.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +9 -0
- package/dist/index.js +1 -1
- package/dist/{proxy-CkpFesk1.js → proxy-BYIC9BuT.js} +2 -2
- package/dist/{proxy-CkpFesk1.js.map → proxy-BYIC9BuT.js.map} +1 -1
- package/dist/{proxy-BHRoeZgd.cjs → proxy-CKadx4lC.cjs} +2 -2
- package/dist/{proxy-BHRoeZgd.cjs.map → proxy-CKadx4lC.cjs.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/{use-in-view-sQJZ_xDO.cjs → use-in-view-CEwlc_dd.cjs} +2 -2
- package/dist/{use-in-view-sQJZ_xDO.cjs.map → use-in-view-CEwlc_dd.cjs.map} +1 -1
- package/dist/{use-in-view-yS6jzJAp.js → use-in-view-DR-UTB96.js} +2 -2
- package/dist/{use-in-view-yS6jzJAp.js.map → use-in-view-DR-UTB96.js.map} +1 -1
- package/package.json +4 -4
- package/dist/DropdownSelect-CtOKZHD0.js.map +0 -1
- package/dist/DropdownSelect-DBDM64B5.cjs.map +0 -1
- package/dist/GraphEl-C6yjl1VM.cjs +0 -2
- package/dist/GraphEl-C6yjl1VM.cjs.map +0 -1
- package/dist/GraphEl-CqWzvOyr.js.map +0 -1
- package/dist/Modal-DVVwpKhP.js.map +0 -1
- package/dist/Modal-tXZlLE5s.cjs +0 -46
- package/dist/Modal-tXZlLE5s.cjs.map +0 -1
- package/dist/checkIfMultiple-BXbHUCWM.cjs +0 -12
- package/dist/checkIfMultiple-BXbHUCWM.cjs.map +0 -1
- package/dist/checkIfMultiple-ChTJk2Tk.js.map +0 -1
- package/dist/getSliderMarks-9cNoRkDx.js.map +0 -1
- package/dist/getSliderMarks-CRIbTGYV.cjs +0 -6
- package/dist/getSliderMarks-CRIbTGYV.cjs.map +0 -1
- package/dist/index-CHPV5EwG-BPSP-7Jg.js.map +0 -1
- package/dist/index-CHPV5EwG-DDoeWRVt.cjs +0 -44
- package/dist/index-CHPV5EwG-DDoeWRVt.cjs.map +0 -1
- package/dist/index-tvAyXPPW-DPOG-C2i.cjs +0 -2
- package/dist/index-tvAyXPPW-DPOG-C2i.cjs.map +0 -1
package/dist/ThreeDGlobe.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useState as N, useRef as
|
|
3
|
-
import { y as ve } from "./Spinner-
|
|
1
|
+
import { j as o, m as be } from "./index-CHPV5EwG-DBWUSD9b.js";
|
|
2
|
+
import { useState as N, useRef as ye, useEffect as D, useCallback as ge } from "react";
|
|
3
|
+
import { y as ve } from "./Spinner-Bpz70q_g.js";
|
|
4
4
|
import we from "react-globe.gl";
|
|
5
|
-
import { i as
|
|
5
|
+
import { i as Ce } from "./index-Bwrro8-q.js";
|
|
6
6
|
import * as P from "three";
|
|
7
|
-
import {
|
|
8
|
-
import { u as ue } from "./Typography-
|
|
9
|
-
import { T as
|
|
7
|
+
import { G as je } from "./Modal-Cg8daIlV.js";
|
|
8
|
+
import { u as ue } from "./Typography-LmZ9LEpe.js";
|
|
9
|
+
import { T as Se } from "./Tooltip-6LIdPQGC.js";
|
|
10
10
|
import { n as ke } from "./numberFormattingFunction-14YCbkN2.js";
|
|
11
|
-
import { X as
|
|
12
|
-
import { s as
|
|
13
|
-
import { g as
|
|
14
|
-
import { o as
|
|
15
|
-
import { t as
|
|
16
|
-
import { GraphHeader as
|
|
17
|
-
import { GraphFooter as
|
|
18
|
-
import { f as
|
|
11
|
+
import { X as De } from "./index-zZjQEHlm.js";
|
|
12
|
+
import { s as Ne } from "./string2HTML-oFCROsus.js";
|
|
13
|
+
import { g as Le } from "./getCentroidCoordinates-Dfk6IqEG.js";
|
|
14
|
+
import { o as Me } from "./ordinal-w9Lu4Stb.js";
|
|
15
|
+
import { t as ze } from "./threshold-DFfqcDMa.js";
|
|
16
|
+
import { GraphHeader as Oe } from "./GraphHeader.js";
|
|
17
|
+
import { GraphFooter as Pe } from "./GraphFooter.js";
|
|
18
|
+
import { f as Re } from "./fetchAndParseData-sapWbnYk.js";
|
|
19
19
|
import { Colors as A } from "./Colors.js";
|
|
20
|
-
import { g as
|
|
21
|
-
import { g as
|
|
22
|
-
function
|
|
20
|
+
import { g as Te } from "./getUniqValue-DiCh_MOD.js";
|
|
21
|
+
import { g as Ee } from "./getJenks-BbngDoBQ.js";
|
|
22
|
+
function Ae(e) {
|
|
23
23
|
let a;
|
|
24
24
|
switch (e.type) {
|
|
25
25
|
case "ambient":
|
|
@@ -59,171 +59,161 @@ function Ee(e) {
|
|
|
59
59
|
}
|
|
60
60
|
return a;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function He(e) {
|
|
63
63
|
const {
|
|
64
64
|
width: a,
|
|
65
65
|
autoRotate: x,
|
|
66
|
-
data:
|
|
66
|
+
data: b,
|
|
67
67
|
enableZoom: H,
|
|
68
68
|
categorical: R,
|
|
69
|
-
colorDomain:
|
|
70
|
-
colors:
|
|
69
|
+
colorDomain: p,
|
|
70
|
+
colors: n,
|
|
71
71
|
globeMaterial: c,
|
|
72
72
|
height: V,
|
|
73
73
|
polygonData: $,
|
|
74
74
|
mapProperty: d,
|
|
75
|
-
mapBorderColor:
|
|
76
|
-
atmosphereColor:
|
|
77
|
-
tooltip:
|
|
75
|
+
mapBorderColor: G,
|
|
76
|
+
atmosphereColor: Z,
|
|
77
|
+
tooltip: J,
|
|
78
78
|
styles: C,
|
|
79
79
|
classNames: re,
|
|
80
|
-
mapNoDataColor:
|
|
81
|
-
colorLegendTitle:
|
|
82
|
-
showColorScale:
|
|
83
|
-
hoverStrokeColor:
|
|
84
|
-
detailsOnClick:
|
|
80
|
+
mapNoDataColor: g,
|
|
81
|
+
colorLegendTitle: B,
|
|
82
|
+
showColorScale: ae,
|
|
83
|
+
hoverStrokeColor: se,
|
|
84
|
+
detailsOnClick: v,
|
|
85
85
|
onSeriesMouseClick: L,
|
|
86
86
|
onSeriesMouseOver: y,
|
|
87
87
|
resetSelectionOnDoubleClick: T,
|
|
88
|
-
highlightedIds:
|
|
89
|
-
scale:
|
|
88
|
+
highlightedIds: X,
|
|
89
|
+
scale: u,
|
|
90
90
|
globeOffset: j,
|
|
91
|
-
polygonAltitude:
|
|
92
|
-
centerLng:
|
|
91
|
+
polygonAltitude: F,
|
|
92
|
+
centerLng: I,
|
|
93
93
|
centerLat: U,
|
|
94
94
|
atmosphereAltitude: _,
|
|
95
95
|
globeCurvatureResolution: ie,
|
|
96
96
|
fogSettings: M,
|
|
97
97
|
lights: z,
|
|
98
98
|
highlightedAltitude: Y,
|
|
99
|
-
selectedId: f
|
|
100
|
-
|
|
99
|
+
selectedId: f,
|
|
100
|
+
collapseColorScaleByDefault: K
|
|
101
|
+
} = e, [Q, le] = N(!1), l = ye(void 0), [S, E] = N(void 0), [ne, ee] = N(
|
|
102
|
+
K === void 0 ? !(a < 680) : !K
|
|
103
|
+
), [te, de] = N({ x: 0, y: 0 }), [k, ce] = N(void 0), W = R ? Me().domain(p).range(n) : ze().domain(p).range(n);
|
|
101
104
|
D(() => {
|
|
102
|
-
|
|
105
|
+
l.current && (l.current.controls().enableZoom = H);
|
|
103
106
|
}, [H]), D(() => {
|
|
104
|
-
|
|
105
|
-
}, [
|
|
106
|
-
if (
|
|
107
|
+
l.current && (k || f ? l.current.controls().autoRotate = !1 : (l.current.controls().autoRotate = x !== 0, l.current.controls().autoRotateSpeed = x));
|
|
108
|
+
}, [k, f, x]), D(() => {
|
|
109
|
+
if (l.current && f) {
|
|
107
110
|
const t = $.find(
|
|
108
111
|
(m) => m.properties[d] === f
|
|
109
|
-
), [
|
|
110
|
-
|
|
112
|
+
), [r, i] = Le(t);
|
|
113
|
+
l.current.pointOfView({ lat: i, lng: r, altitude: u }, 1e3);
|
|
111
114
|
}
|
|
112
|
-
}, [f,
|
|
113
|
-
const t =
|
|
115
|
+
}, [f, u, $, d]), D(() => {
|
|
116
|
+
const t = l.current?.renderer().domElement;
|
|
114
117
|
if (!t) return;
|
|
115
|
-
const
|
|
116
|
-
|
|
118
|
+
const r = (i) => {
|
|
119
|
+
de({ x: i.clientX, y: i.clientY });
|
|
117
120
|
};
|
|
118
|
-
return t.addEventListener("mousemove",
|
|
121
|
+
return t.addEventListener("mousemove", r), () => t.removeEventListener("mousemove", r);
|
|
119
122
|
}, []), D(() => {
|
|
120
|
-
|
|
121
|
-
}, [
|
|
123
|
+
l.current && l.current.pointOfView({ lat: U, lng: I, altitude: u }, 1e3);
|
|
124
|
+
}, [u, I, U]);
|
|
122
125
|
const q = c || new P.MeshBasicMaterial({
|
|
123
126
|
color: "#FFF"
|
|
124
|
-
}),
|
|
125
|
-
if (!
|
|
126
|
-
const t =
|
|
127
|
-
let
|
|
128
|
-
t.traverse((
|
|
129
|
-
|
|
130
|
-
}),
|
|
131
|
-
z[
|
|
127
|
+
}), h = ge(() => {
|
|
128
|
+
if (!l.current) return;
|
|
129
|
+
const t = l.current.scene(), r = l.current.camera();
|
|
130
|
+
let i = [];
|
|
131
|
+
t.traverse((s) => {
|
|
132
|
+
s instanceof P.Light && i.push(s);
|
|
133
|
+
}), i = [...i, ...r.children], i.forEach((s) => s.parent?.remove(s)), z.map((s) => Ae(s)).forEach((s, w) => {
|
|
134
|
+
z[w].type !== "ambient" && z[w].position === "camera" ? (r.add(s), z[w].type !== "point" && r.add(s.target)) : t.add(s);
|
|
132
135
|
}), M && (t.fog = new P.Fog(M.color, M.near, M.far));
|
|
133
|
-
}, [z, M]),
|
|
134
|
-
|
|
135
|
-
}, [
|
|
136
|
+
}, [z, M]), oe = ge(() => {
|
|
137
|
+
le(!0), h();
|
|
138
|
+
}, [h]);
|
|
136
139
|
return D(() => {
|
|
137
|
-
|
|
138
|
-
}, [
|
|
139
|
-
/* @__PURE__ */
|
|
140
|
+
Q && h();
|
|
141
|
+
}, [Q, h]), /* @__PURE__ */ o.jsxs("div", { className: "relative", children: [
|
|
142
|
+
/* @__PURE__ */ o.jsx(
|
|
140
143
|
we,
|
|
141
144
|
{
|
|
142
|
-
ref:
|
|
145
|
+
ref: l,
|
|
143
146
|
height: V,
|
|
144
147
|
width: a,
|
|
145
148
|
globeOffset: j,
|
|
146
149
|
lineHoverPrecision: 0,
|
|
147
150
|
polygonsData: $,
|
|
148
|
-
polygonAltitude: (t) =>
|
|
151
|
+
polygonAltitude: (t) => X.includes(t?.properties?.[d]) || t?.properties?.[d] === f ? Y * (t?.properties?.[d] === f ? 2 : 1) : t?.properties?.[d] === k?.id || t?.properties?.[d] === S?.id ? Y : F,
|
|
149
152
|
polygonCapColor: (t) => {
|
|
150
|
-
const
|
|
151
|
-
return
|
|
153
|
+
const r = t?.properties?.[d], i = b.find((m) => m.id === r)?.x;
|
|
154
|
+
return i != null ? W(i) : g;
|
|
152
155
|
},
|
|
153
156
|
polygonSideColor: (t) => {
|
|
154
|
-
const
|
|
155
|
-
return
|
|
157
|
+
const r = t?.properties?.[d], i = b.find((s) => s.id === r)?.x, m = i != null ? W(i) : g;
|
|
158
|
+
return X.includes(t?.properties?.[d]) || t?.properties?.[d] === f ? m : "rgba(100,100,100,0)";
|
|
156
159
|
},
|
|
157
|
-
polygonStrokeColor: (t) => t?.properties?.[d] ===
|
|
160
|
+
polygonStrokeColor: (t) => t?.properties?.[d] === k?.id ? se : G,
|
|
158
161
|
onGlobeClick: () => {
|
|
159
162
|
E(void 0);
|
|
160
163
|
},
|
|
161
164
|
onPolygonClick: (t) => {
|
|
162
|
-
const
|
|
163
|
-
(L ||
|
|
165
|
+
const r = t?.properties?.[d] ? b.find((i) => i.id === t?.properties?.[d]) : void 0;
|
|
166
|
+
(L || v) && (Ce(S, r) && T && r ? (E(void 0), L?.(void 0)) : (E(r), L?.(r)));
|
|
164
167
|
},
|
|
165
168
|
onPolygonHover: (t) => {
|
|
166
|
-
const
|
|
167
|
-
|
|
169
|
+
const r = t?.properties?.[d] ? b.find((i) => i.id === t?.properties?.[d]) : void 0;
|
|
170
|
+
ce(r), y?.(r);
|
|
168
171
|
},
|
|
169
|
-
atmosphereColor:
|
|
172
|
+
atmosphereColor: Z,
|
|
170
173
|
atmosphereAltitude: _,
|
|
171
174
|
globeCurvatureResolution: ie,
|
|
172
175
|
globeMaterial: q,
|
|
173
176
|
backgroundColor: "rgba(0, 0, 0, 0)",
|
|
174
177
|
polygonsTransitionDuration: 100,
|
|
175
178
|
onGlobeReady: () => {
|
|
176
|
-
if (
|
|
177
|
-
|
|
179
|
+
if (l.current) {
|
|
180
|
+
l.current.pointOfView({
|
|
178
181
|
lat: U,
|
|
179
|
-
lng:
|
|
182
|
+
lng: I
|
|
180
183
|
});
|
|
181
|
-
const t =
|
|
184
|
+
const t = l.current.scene();
|
|
182
185
|
setTimeout(() => {
|
|
183
186
|
(t.children[3]?.children[0]?.children[4]?.children || []).forEach((m) => {
|
|
184
|
-
const
|
|
185
|
-
|
|
187
|
+
const s = m.children[1];
|
|
188
|
+
s.renderOrder = 2;
|
|
186
189
|
});
|
|
187
190
|
}, 300);
|
|
188
|
-
const
|
|
189
|
-
t.add(
|
|
191
|
+
const r = l.current.camera();
|
|
192
|
+
t.add(r), oe();
|
|
190
193
|
}
|
|
191
194
|
}
|
|
192
195
|
}
|
|
193
196
|
),
|
|
194
|
-
|
|
195
|
-
/* @__PURE__ */
|
|
197
|
+
ae === !1 ? null : /* @__PURE__ */ o.jsx("div", { className: "absolute left-4 bottom-4", children: ne ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
198
|
+
/* @__PURE__ */ o.jsx(
|
|
196
199
|
"div",
|
|
197
200
|
{
|
|
198
|
-
|
|
199
|
-
backgroundColor: "rgba(240,240,240, 0.7)",
|
|
200
|
-
border: "1px solid var(--gray-400)",
|
|
201
|
-
borderRadius: "999px",
|
|
202
|
-
width: "24px",
|
|
203
|
-
height: "24px",
|
|
204
|
-
padding: "3px",
|
|
205
|
-
cursor: "pointer",
|
|
206
|
-
zIndex: 10,
|
|
207
|
-
position: "absolute",
|
|
208
|
-
right: "-0.75rem",
|
|
209
|
-
top: "-0.75rem"
|
|
210
|
-
},
|
|
201
|
+
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]",
|
|
211
202
|
onClick: () => {
|
|
212
|
-
|
|
203
|
+
ee(!1);
|
|
213
204
|
},
|
|
214
|
-
children: /* @__PURE__ */
|
|
205
|
+
children: /* @__PURE__ */ o.jsx(De, {})
|
|
215
206
|
}
|
|
216
207
|
),
|
|
217
|
-
/* @__PURE__ */
|
|
208
|
+
/* @__PURE__ */ o.jsxs(
|
|
218
209
|
"div",
|
|
219
210
|
{
|
|
220
|
-
className: "p-2",
|
|
211
|
+
className: "color-legend-box p-2 bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)]",
|
|
221
212
|
style: {
|
|
222
|
-
backgroundColor: "rgba(240,240,240, 0.7)",
|
|
223
213
|
width: R ? void 0 : "340px"
|
|
224
214
|
},
|
|
225
215
|
children: [
|
|
226
|
-
|
|
216
|
+
B && B !== "" ? /* @__PURE__ */ o.jsx(
|
|
227
217
|
ue,
|
|
228
218
|
{
|
|
229
219
|
size: "xs",
|
|
@@ -234,54 +224,54 @@ function Ae(e) {
|
|
|
234
224
|
WebkitLineClamp: "1",
|
|
235
225
|
WebkitBoxOrient: "vertical"
|
|
236
226
|
},
|
|
237
|
-
children:
|
|
227
|
+
children: B
|
|
238
228
|
}
|
|
239
229
|
) : null,
|
|
240
|
-
R ? /* @__PURE__ */
|
|
241
|
-
/* @__PURE__ */
|
|
230
|
+
R ? /* @__PURE__ */ o.jsx("div", { className: "flex flex-col gap-3", children: p.map((t, r) => /* @__PURE__ */ o.jsxs("div", { className: "flex gap-2 items-center", children: [
|
|
231
|
+
/* @__PURE__ */ o.jsx(
|
|
242
232
|
"div",
|
|
243
233
|
{
|
|
244
234
|
className: "w-2 h-2 rounded-full",
|
|
245
|
-
style: { backgroundColor:
|
|
235
|
+
style: { backgroundColor: n[r % n.length] }
|
|
246
236
|
}
|
|
247
237
|
),
|
|
248
|
-
/* @__PURE__ */
|
|
249
|
-
] },
|
|
250
|
-
|
|
251
|
-
/* @__PURE__ */
|
|
238
|
+
/* @__PURE__ */ o.jsx(ue, { size: "sm", marginBottom: "none", leading: "none", children: t })
|
|
239
|
+
] }, r)) }) : /* @__PURE__ */ o.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ o.jsxs("g", { children: [
|
|
240
|
+
p.map((t, r) => /* @__PURE__ */ o.jsxs("g", { className: "cursor-pointer", children: [
|
|
241
|
+
/* @__PURE__ */ o.jsx(
|
|
252
242
|
"rect",
|
|
253
243
|
{
|
|
254
|
-
x:
|
|
244
|
+
x: r * 320 / n.length + 1,
|
|
255
245
|
y: 1,
|
|
256
|
-
width: 320 /
|
|
246
|
+
width: 320 / n.length - 2,
|
|
257
247
|
height: 8,
|
|
258
248
|
style: {
|
|
259
|
-
fill:
|
|
260
|
-
stroke:
|
|
249
|
+
fill: n[r],
|
|
250
|
+
stroke: n[r]
|
|
261
251
|
}
|
|
262
252
|
}
|
|
263
253
|
),
|
|
264
|
-
/* @__PURE__ */
|
|
254
|
+
/* @__PURE__ */ o.jsx(
|
|
265
255
|
"text",
|
|
266
256
|
{
|
|
267
|
-
x: (
|
|
257
|
+
x: (r + 1) * 320 / n.length,
|
|
268
258
|
y: 25,
|
|
269
259
|
className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs",
|
|
270
260
|
style: { textAnchor: "middle" },
|
|
271
261
|
children: ke(t, "NA")
|
|
272
262
|
}
|
|
273
263
|
)
|
|
274
|
-
] },
|
|
275
|
-
/* @__PURE__ */
|
|
264
|
+
] }, r)),
|
|
265
|
+
/* @__PURE__ */ o.jsx("g", { children: /* @__PURE__ */ o.jsx(
|
|
276
266
|
"rect",
|
|
277
267
|
{
|
|
278
|
-
x:
|
|
268
|
+
x: p.length * 320 / n.length + 1,
|
|
279
269
|
y: 1,
|
|
280
|
-
width: 320 /
|
|
270
|
+
width: 320 / n.length - 2,
|
|
281
271
|
height: 8,
|
|
282
272
|
style: {
|
|
283
|
-
fill:
|
|
284
|
-
stroke:
|
|
273
|
+
fill: n[p.length],
|
|
274
|
+
stroke: n[p.length]
|
|
285
275
|
}
|
|
286
276
|
}
|
|
287
277
|
) })
|
|
@@ -289,78 +279,78 @@ function Ae(e) {
|
|
|
289
279
|
]
|
|
290
280
|
}
|
|
291
281
|
)
|
|
292
|
-
] }) : /* @__PURE__ */
|
|
282
|
+
] }) : /* @__PURE__ */ o.jsx(
|
|
293
283
|
"button",
|
|
294
284
|
{
|
|
295
285
|
type: "button",
|
|
296
286
|
className: "mb-0 border-0 bg-transparent p-0 self-start",
|
|
297
287
|
onClick: () => {
|
|
298
|
-
|
|
288
|
+
ee(!0);
|
|
299
289
|
},
|
|
300
|
-
children: /* @__PURE__ */
|
|
290
|
+
children: /* @__PURE__ */ o.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" })
|
|
301
291
|
}
|
|
302
292
|
) }),
|
|
303
|
-
|
|
304
|
-
|
|
293
|
+
k && J ? /* @__PURE__ */ o.jsx(
|
|
294
|
+
Se,
|
|
305
295
|
{
|
|
306
|
-
data:
|
|
307
|
-
body:
|
|
308
|
-
xPos:
|
|
309
|
-
yPos:
|
|
296
|
+
data: k,
|
|
297
|
+
body: J,
|
|
298
|
+
xPos: te.x,
|
|
299
|
+
yPos: te.y,
|
|
310
300
|
backgroundStyle: C?.tooltip,
|
|
311
301
|
className: re?.tooltip
|
|
312
302
|
}
|
|
313
303
|
) : null,
|
|
314
|
-
|
|
315
|
-
|
|
304
|
+
v && S !== void 0 ? /* @__PURE__ */ o.jsx(
|
|
305
|
+
je,
|
|
316
306
|
{
|
|
317
|
-
open:
|
|
307
|
+
open: S !== void 0,
|
|
318
308
|
onClose: () => {
|
|
319
309
|
E(void 0);
|
|
320
310
|
},
|
|
321
|
-
children: /* @__PURE__ */
|
|
311
|
+
children: /* @__PURE__ */ o.jsx(
|
|
322
312
|
"div",
|
|
323
313
|
{
|
|
324
314
|
className: "graph-modal-content m-0",
|
|
325
|
-
dangerouslySetInnerHTML: typeof
|
|
326
|
-
children: typeof
|
|
315
|
+
dangerouslySetInnerHTML: typeof v == "string" ? { __html: Ne(v, S) } : void 0,
|
|
316
|
+
children: typeof v == "function" ? v(S) : null
|
|
327
317
|
}
|
|
328
318
|
)
|
|
329
319
|
}
|
|
330
320
|
) : null
|
|
331
321
|
] });
|
|
332
322
|
}
|
|
333
|
-
function
|
|
323
|
+
function at(e) {
|
|
334
324
|
const {
|
|
335
325
|
data: a,
|
|
336
326
|
mapData: x = "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-simplified.json",
|
|
337
|
-
graphTitle:
|
|
327
|
+
graphTitle: b,
|
|
338
328
|
colors: H,
|
|
339
329
|
sources: R,
|
|
340
|
-
graphDescription:
|
|
341
|
-
height:
|
|
330
|
+
graphDescription: p,
|
|
331
|
+
height: n,
|
|
342
332
|
width: c,
|
|
343
333
|
footNote: V = "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.",
|
|
344
334
|
colorDomain: $,
|
|
345
335
|
colorLegendTitle: d,
|
|
346
|
-
scaleType:
|
|
347
|
-
padding:
|
|
348
|
-
mapNoDataColor:
|
|
336
|
+
scaleType: G = "threshold",
|
|
337
|
+
padding: Z,
|
|
338
|
+
mapNoDataColor: J = A.light.graphNoData,
|
|
349
339
|
backgroundColor: C = !1,
|
|
350
340
|
mapBorderColor: re = A.light.grays["gray-500"],
|
|
351
|
-
relativeHeight:
|
|
352
|
-
tooltip:
|
|
353
|
-
graphID:
|
|
354
|
-
mapProperty:
|
|
355
|
-
dataDownload:
|
|
341
|
+
relativeHeight: g,
|
|
342
|
+
tooltip: B,
|
|
343
|
+
graphID: ae,
|
|
344
|
+
mapProperty: se = "ISO3",
|
|
345
|
+
dataDownload: v = !1,
|
|
356
346
|
language: L = "en",
|
|
357
347
|
minHeight: y = 0,
|
|
358
348
|
theme: T = "light",
|
|
359
|
-
ariaLabel:
|
|
360
|
-
styles:
|
|
349
|
+
ariaLabel: X,
|
|
350
|
+
styles: u,
|
|
361
351
|
classNames: j,
|
|
362
|
-
autoRotate:
|
|
363
|
-
enableZoom:
|
|
352
|
+
autoRotate: F = !0,
|
|
353
|
+
enableZoom: I = !0,
|
|
364
354
|
globeMaterial: U,
|
|
365
355
|
centerPoint: _ = [0, 0],
|
|
366
356
|
atmosphereColor: ie = "#999",
|
|
@@ -369,15 +359,15 @@ function ot(e) {
|
|
|
369
359
|
detailsOnClick: Y,
|
|
370
360
|
onSeriesMouseOver: f,
|
|
371
361
|
onSeriesMouseClick: K,
|
|
372
|
-
highlightedIds:
|
|
373
|
-
highlightedAltitude:
|
|
374
|
-
scale:
|
|
375
|
-
globeOffset:
|
|
376
|
-
polygonAltitude:
|
|
377
|
-
globeCurvatureResolution:
|
|
362
|
+
highlightedIds: Q = [],
|
|
363
|
+
highlightedAltitude: le = 0.1,
|
|
364
|
+
scale: l = 1,
|
|
365
|
+
globeOffset: S = [0, 0],
|
|
366
|
+
polygonAltitude: E = 0.01,
|
|
367
|
+
globeCurvatureResolution: ne = 4,
|
|
378
368
|
atmosphereAltitude: ee = 0.15,
|
|
379
|
-
fogSettings:
|
|
380
|
-
lights:
|
|
369
|
+
fogSettings: te,
|
|
370
|
+
lights: de = [
|
|
381
371
|
{
|
|
382
372
|
type: "ambient",
|
|
383
373
|
color: 4210752,
|
|
@@ -390,148 +380,150 @@ function ot(e) {
|
|
|
390
380
|
position: { x: 5, y: 10, z: 5 }
|
|
391
381
|
}
|
|
392
382
|
],
|
|
393
|
-
selectedId:
|
|
394
|
-
|
|
383
|
+
selectedId: k,
|
|
384
|
+
collapseColorScaleByDefault: ce
|
|
385
|
+
} = e, [W, q] = N(void 0), [h, oe] = N(0), [t, r] = N(0), i = ye(null);
|
|
395
386
|
D(() => {
|
|
396
|
-
const
|
|
397
|
-
|
|
387
|
+
const s = new ResizeObserver((w) => {
|
|
388
|
+
oe(c || w[0].target.clientWidth || 760), r(n || w[0].target.clientHeight || 480);
|
|
398
389
|
});
|
|
399
|
-
return
|
|
400
|
-
}, [c,
|
|
401
|
-
typeof x == "string" ?
|
|
390
|
+
return i.current && (r(i.current.clientHeight || 480), oe(i.current.clientWidth || 760), c || s.observe(i.current)), () => s.disconnect();
|
|
391
|
+
}, [c, n]), D(() => {
|
|
392
|
+
typeof x == "string" ? Re(x).then((w) => {
|
|
402
393
|
if (x === "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-simplified.json") {
|
|
403
|
-
const
|
|
394
|
+
const fe = w.features.map((O) => {
|
|
404
395
|
if (O.geometry.type === "Polygon") {
|
|
405
|
-
const
|
|
396
|
+
const he = [...O.geometry.coordinates[0]].reverse(), pe = { ...O.geometry, coordinates: [he] };
|
|
406
397
|
return { ...O, geometry: pe };
|
|
407
398
|
}
|
|
408
|
-
const
|
|
409
|
-
O.geometry.coordinates.forEach((
|
|
410
|
-
const pe = [...
|
|
411
|
-
|
|
399
|
+
const me = [];
|
|
400
|
+
O.geometry.coordinates.forEach((he) => {
|
|
401
|
+
const pe = [...he[0]].reverse();
|
|
402
|
+
me.push([pe]);
|
|
412
403
|
});
|
|
413
|
-
const
|
|
414
|
-
return { ...O, geometry:
|
|
404
|
+
const xe = { ...O.geometry, coordinates: me };
|
|
405
|
+
return { ...O, geometry: xe };
|
|
415
406
|
});
|
|
416
|
-
q(
|
|
417
|
-
} else q(
|
|
407
|
+
q(fe);
|
|
408
|
+
} else q(w.features);
|
|
418
409
|
}) : q(x.features);
|
|
419
410
|
}, [x]);
|
|
420
|
-
const m = $ || (
|
|
421
|
-
a.map((
|
|
411
|
+
const m = $ || (G === "categorical" ? Te(a, "x") : Ee(
|
|
412
|
+
a.map((s) => s.x),
|
|
422
413
|
H?.length || 4
|
|
423
414
|
));
|
|
424
|
-
return /* @__PURE__ */
|
|
415
|
+
return /* @__PURE__ */ o.jsx(
|
|
425
416
|
"div",
|
|
426
417
|
{
|
|
427
418
|
className: `${T || "light"} flex ${c ? "w-fit grow-0" : "w-full grow"}`,
|
|
428
419
|
dir: L === "he" || L === "ar" ? "rtl" : void 0,
|
|
429
|
-
children: /* @__PURE__ */
|
|
420
|
+
children: /* @__PURE__ */ o.jsx(
|
|
430
421
|
"div",
|
|
431
422
|
{
|
|
432
|
-
className:
|
|
423
|
+
className: be(
|
|
433
424
|
`${C ? C === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${L || "en"}`,
|
|
434
425
|
c ? "w-fit" : "w-full",
|
|
435
426
|
j?.graphContainer
|
|
436
427
|
),
|
|
437
428
|
style: {
|
|
438
|
-
...
|
|
429
|
+
...u?.graphContainer || {},
|
|
439
430
|
...C && C !== !0 ? { backgroundColor: C } : {}
|
|
440
431
|
},
|
|
441
|
-
id:
|
|
442
|
-
"aria-label":
|
|
443
|
-
children: /* @__PURE__ */
|
|
432
|
+
id: ae,
|
|
433
|
+
"aria-label": X || `${b ? `The graph shows ${b}. ` : ""}This is a map.${p ? ` ${p}` : ""}`,
|
|
434
|
+
children: /* @__PURE__ */ o.jsx(
|
|
444
435
|
"div",
|
|
445
436
|
{
|
|
446
437
|
className: "flex grow",
|
|
447
|
-
style: { padding: C ?
|
|
448
|
-
children: /* @__PURE__ */
|
|
449
|
-
|
|
450
|
-
|
|
438
|
+
style: { padding: C ? Z || "1rem" : Z || 0 },
|
|
439
|
+
children: /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
|
|
440
|
+
b || p || v ? /* @__PURE__ */ o.jsx(
|
|
441
|
+
Oe,
|
|
451
442
|
{
|
|
452
443
|
styles: {
|
|
453
|
-
title:
|
|
454
|
-
description:
|
|
444
|
+
title: u?.title,
|
|
445
|
+
description: u?.description
|
|
455
446
|
},
|
|
456
447
|
classNames: {
|
|
457
448
|
title: j?.title,
|
|
458
449
|
description: j?.description
|
|
459
450
|
},
|
|
460
|
-
graphTitle:
|
|
461
|
-
graphDescription:
|
|
451
|
+
graphTitle: b,
|
|
452
|
+
graphDescription: p,
|
|
462
453
|
width: c,
|
|
463
454
|
graphDownload: void 0,
|
|
464
|
-
dataDownload:
|
|
455
|
+
dataDownload: v ? a.map((s) => s.data).filter((s) => s !== void 0).length > 0 ? a.map((s) => s.data).filter((s) => s !== void 0) : a.filter((s) => s !== void 0) : null
|
|
465
456
|
}
|
|
466
457
|
) : null,
|
|
467
|
-
/* @__PURE__ */
|
|
458
|
+
/* @__PURE__ */ o.jsx(
|
|
468
459
|
"div",
|
|
469
460
|
{
|
|
470
461
|
className: "flex flex-col grow justify-center leading-0",
|
|
471
|
-
ref:
|
|
462
|
+
ref: i,
|
|
472
463
|
"aria-label": "Map area",
|
|
473
|
-
children: (c ||
|
|
474
|
-
|
|
464
|
+
children: (c || h) && (n || t) && W ? /* @__PURE__ */ o.jsx(
|
|
465
|
+
He,
|
|
475
466
|
{
|
|
476
467
|
data: a,
|
|
477
|
-
globeOffset:
|
|
468
|
+
globeOffset: S,
|
|
478
469
|
polygonData: W,
|
|
479
470
|
colorDomain: m,
|
|
480
|
-
width: c ||
|
|
471
|
+
width: c || h,
|
|
481
472
|
height: Math.max(
|
|
482
473
|
y,
|
|
483
|
-
|
|
474
|
+
n || (g ? y ? (c || h) * g > y ? (c || h) * g : y : (c || h) * g : t)
|
|
484
475
|
),
|
|
485
|
-
colors: H || (
|
|
486
|
-
mapNoDataColor:
|
|
487
|
-
categorical:
|
|
476
|
+
colors: H || (G === "categorical" ? A[T].sequentialColors[`neutralColorsx0${m.length}`] : A[T].sequentialColors[`neutralColorsx0${m.length + 1}`]),
|
|
477
|
+
mapNoDataColor: J,
|
|
478
|
+
categorical: G === "categorical",
|
|
488
479
|
mapBorderColor: re,
|
|
489
|
-
tooltip:
|
|
490
|
-
mapProperty:
|
|
491
|
-
styles:
|
|
480
|
+
tooltip: B,
|
|
481
|
+
mapProperty: se,
|
|
482
|
+
styles: u,
|
|
492
483
|
classNames: j,
|
|
493
|
-
autoRotate:
|
|
494
|
-
enableZoom:
|
|
484
|
+
autoRotate: F === !0 ? 1.5 : F === !1 ? 0 : F,
|
|
485
|
+
enableZoom: I,
|
|
495
486
|
globeMaterial: U,
|
|
496
487
|
atmosphereColor: ie,
|
|
497
488
|
colorLegendTitle: d,
|
|
498
489
|
showColorScale: M,
|
|
499
490
|
hoverStrokeColor: T === "light" ? A.light.grays["gray-700"] : A.light.grays["gray-300"],
|
|
500
|
-
highlightedIds:
|
|
491
|
+
highlightedIds: Q,
|
|
501
492
|
resetSelectionOnDoubleClick: z,
|
|
502
493
|
detailsOnClick: Y,
|
|
503
494
|
onSeriesMouseOver: f,
|
|
504
495
|
onSeriesMouseClick: K,
|
|
505
|
-
scale:
|
|
506
|
-
polygonAltitude:
|
|
496
|
+
scale: l,
|
|
497
|
+
polygonAltitude: E,
|
|
507
498
|
centerLat: _[0],
|
|
508
499
|
centerLng: _[1],
|
|
509
500
|
atmosphereAltitude: ee,
|
|
510
|
-
globeCurvatureResolution:
|
|
511
|
-
fogSettings:
|
|
512
|
-
lights:
|
|
513
|
-
highlightedAltitude:
|
|
514
|
-
selectedId:
|
|
501
|
+
globeCurvatureResolution: ne,
|
|
502
|
+
fogSettings: te,
|
|
503
|
+
lights: de,
|
|
504
|
+
highlightedAltitude: le,
|
|
505
|
+
selectedId: k,
|
|
506
|
+
collapseColorScaleByDefault: ce
|
|
515
507
|
}
|
|
516
|
-
) : /* @__PURE__ */
|
|
508
|
+
) : /* @__PURE__ */ o.jsx(
|
|
517
509
|
"div",
|
|
518
510
|
{
|
|
519
511
|
style: {
|
|
520
512
|
height: `${Math.max(
|
|
521
513
|
y,
|
|
522
|
-
|
|
514
|
+
n || (g ? y ? (c || h) * g > y ? (c || h) * g : y : (c || h) * g : t)
|
|
523
515
|
)}px`
|
|
524
516
|
},
|
|
525
517
|
className: "flex items-center justify-center",
|
|
526
|
-
children: /* @__PURE__ */
|
|
518
|
+
children: /* @__PURE__ */ o.jsx(ve, { "aria-label": "Loading graph" })
|
|
527
519
|
}
|
|
528
520
|
)
|
|
529
521
|
}
|
|
530
522
|
),
|
|
531
|
-
R || V ? /* @__PURE__ */
|
|
532
|
-
|
|
523
|
+
R || V ? /* @__PURE__ */ o.jsx(
|
|
524
|
+
Pe,
|
|
533
525
|
{
|
|
534
|
-
styles: { footnote:
|
|
526
|
+
styles: { footnote: u?.footnote, source: u?.source },
|
|
535
527
|
classNames: {
|
|
536
528
|
footnote: j?.footnote,
|
|
537
529
|
source: j?.source
|
|
@@ -550,6 +542,6 @@ function ot(e) {
|
|
|
550
542
|
);
|
|
551
543
|
}
|
|
552
544
|
export {
|
|
553
|
-
|
|
545
|
+
at as ThreeDGlobe
|
|
554
546
|
};
|
|
555
547
|
//# sourceMappingURL=ThreeDGlobe.js.map
|