@undp/data-viz 1.3.0 → 1.3.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 +2 -0
- package/dist/AreaChart.cjs.map +1 -0
- package/dist/AreaChart.js +530 -1
- package/dist/AreaChart.js.map +1 -1
- package/dist/Axis-DE7dSn1_.cjs +2 -0
- package/dist/{Axis-BlyBRMNw.cjs.map → Axis-DE7dSn1_.cjs.map} +1 -1
- package/dist/{Axis-CvK-w3E2.js → Axis-Ddg-seDi.js} +10 -11
- package/dist/{Axis-CvK-w3E2.js.map → Axis-Ddg-seDi.js.map} +1 -1
- package/dist/AxisTitle-BmHLMRJZ.js +20 -0
- package/dist/{AxisTitle-BeMxcw5I.js.map → AxisTitle-BmHLMRJZ.js.map} +1 -1
- package/dist/AxisTitle-CK9YeovX.cjs +2 -0
- package/dist/{AxisTitle-BY8MI9jC.cjs.map → AxisTitle-CK9YeovX.cjs.map} +1 -1
- package/dist/BarGraph.cjs +2 -0
- package/dist/BarGraph.cjs.map +1 -0
- package/dist/BarGraph.js +4043 -1
- package/dist/BarGraph.js.map +1 -1
- package/dist/BasicStatCard.cjs +2 -0
- package/dist/BasicStatCard.cjs.map +1 -0
- package/dist/BasicStatCard.js +190 -1
- package/dist/BasicStatCard.js.map +1 -1
- package/dist/BeeSwarmChart.cjs +2 -0
- package/dist/BeeSwarmChart.cjs.map +1 -0
- package/dist/BeeSwarmChart.d.ts +0 -8
- package/dist/BeeSwarmChart.js +1042 -1
- package/dist/BeeSwarmChart.js.map +1 -1
- package/dist/BiVariateChoroplethMap.cjs +2 -0
- package/dist/BiVariateChoroplethMap.cjs.map +1 -0
- package/dist/BiVariateChoroplethMap.js +720 -1
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/BulletChart.cjs +2 -0
- package/dist/BulletChart.cjs.map +1 -0
- package/dist/BulletChart.js +1431 -1
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +2 -0
- package/dist/ButterflyChart.cjs.map +1 -0
- package/dist/ButterflyChart.js +692 -1
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/ChoroplethMap.cjs +2 -0
- package/dist/ChoroplethMap.cjs.map +1 -0
- package/dist/ChoroplethMap.js +745 -1
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +2 -0
- package/dist/CirclePackingGraph.cjs.map +1 -0
- package/dist/CirclePackingGraph.d.ts +0 -8
- package/dist/CirclePackingGraph.js +14 -1
- package/dist/CirclePackingGraph.js.map +1 -1
- package/dist/ColorLegend.cjs +2 -0
- package/dist/ColorLegend.cjs.map +1 -0
- package/dist/ColorLegend.js +47 -1
- package/dist/ColorLegend.js.map +1 -1
- package/dist/ColorLegendWithMouseOver.cjs +2 -0
- package/dist/ColorLegendWithMouseOver.cjs.map +1 -0
- package/dist/ColorLegendWithMouseOver.js +70 -1
- package/dist/ColorLegendWithMouseOver.js.map +1 -1
- package/dist/Colors.cjs +2 -0
- package/dist/Colors.cjs.map +1 -0
- package/dist/Colors.js +561 -1
- package/dist/Colors.js.map +1 -1
- package/dist/CopyTextButton.cjs +17 -0
- package/dist/CopyTextButton.cjs.map +1 -0
- package/dist/CopyTextButton.js +698 -16
- package/dist/CopyTextButton.js.map +1 -1
- package/dist/CsvDownloadButton.cjs +23 -0
- package/dist/CsvDownloadButton.cjs.map +1 -0
- package/dist/CsvDownloadButton.js +852 -7
- package/dist/CsvDownloadButton.js.map +1 -1
- package/dist/DataCards.cjs +2 -0
- package/dist/DataCards.cjs.map +1 -0
- package/dist/DataCards.js +14 -1
- package/dist/DataCards.js.map +1 -1
- package/dist/DataTable.cjs +2 -0
- package/dist/DataTable.cjs.map +1 -0
- package/dist/DataTable.js +331 -1
- package/dist/DataTable.js.map +1 -1
- package/dist/DifferenceLineChart.cjs +2 -0
- package/dist/DifferenceLineChart.cjs.map +1 -0
- package/dist/DifferenceLineChart.js +805 -1
- package/dist/DifferenceLineChart.js.map +1 -1
- package/dist/DonutChart.cjs +2 -0
- package/dist/DonutChart.cjs.map +1 -0
- package/dist/DonutChart.js +478 -1
- package/dist/DonutChart.js.map +1 -1
- package/dist/DotDensityMap.cjs +2 -0
- package/dist/DotDensityMap.cjs.map +1 -0
- package/dist/DotDensityMap.js +600 -1
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/DropdownSelect-0I2QxaVy.cjs +29 -0
- package/dist/DropdownSelect-0I2QxaVy.cjs.map +1 -0
- package/dist/DropdownSelect-CDC9lEqU.js +4193 -0
- package/dist/DropdownSelect-CDC9lEqU.js.map +1 -0
- package/dist/DualAxisLineChart.cjs +2 -0
- package/dist/DualAxisLineChart.cjs.map +1 -0
- package/dist/DualAxisLineChart.js +699 -1
- package/dist/DualAxisLineChart.js.map +1 -1
- package/dist/DumbbellChart.cjs +2 -0
- package/dist/DumbbellChart.cjs.map +1 -0
- package/dist/DumbbellChart.js +1510 -1
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/{EmptyState-b2Ln487i.js → EmptyState-DdTp-Mdn.js} +8 -8
- package/dist/{EmptyState-b2Ln487i.js.map → EmptyState-DdTp-Mdn.js.map} +1 -1
- package/dist/EmptyState-d8_8SxeW.cjs +2 -0
- package/dist/{EmptyState-BQguKAp5.cjs.map → EmptyState-d8_8SxeW.cjs.map} +1 -1
- package/dist/ExcelDownloadButton.cjs +2 -0
- package/dist/ExcelDownloadButton.cjs.map +1 -0
- package/dist/ExcelDownloadButton.js +29 -1
- package/dist/ExcelDownloadButton.js.map +1 -1
- package/dist/FootNote.cjs +2 -0
- package/dist/FootNote.cjs.map +1 -0
- package/dist/FootNote.js +20 -1
- package/dist/FootNote.js.map +1 -1
- package/dist/GeoHubCompareMaps.cjs +2 -0
- package/dist/GeoHubCompareMaps.cjs.map +1 -0
- package/dist/GeoHubCompareMaps.js +370 -1
- package/dist/GeoHubCompareMaps.js.map +1 -1
- package/dist/GeoHubMap.cjs +2 -0
- package/dist/GeoHubMap.cjs.map +1 -0
- package/dist/GeoHubMap.js +429 -1
- package/dist/GeoHubMap.js.map +1 -1
- package/dist/GeoHubMapWithLayerSelection.cjs +2 -0
- package/dist/GeoHubMapWithLayerSelection.cjs.map +1 -0
- package/dist/GeoHubMapWithLayerSelection.js +307 -1
- package/dist/GeoHubMapWithLayerSelection.js.map +1 -1
- package/dist/GraphDescription.cjs +2 -0
- package/dist/GraphDescription.cjs.map +1 -0
- package/dist/GraphDescription.js +20 -1
- package/dist/GraphDescription.js.map +1 -1
- package/dist/GraphFooter.cjs +2 -0
- package/dist/GraphFooter.cjs.map +1 -0
- package/dist/GraphFooter.js +21 -1
- package/dist/GraphFooter.js.map +1 -1
- package/dist/GraphHeader.cjs +2 -0
- package/dist/GraphHeader.cjs.map +1 -0
- package/dist/GraphHeader.js +63 -1
- package/dist/GraphHeader.js.map +1 -1
- package/dist/GraphTitle.cjs +2 -0
- package/dist/GraphTitle.cjs.map +1 -0
- package/dist/GraphTitle.js +28 -1
- package/dist/GraphTitle.js.map +1 -1
- package/dist/GriddedGraphs.cjs +2 -0
- package/dist/GriddedGraphs.cjs.map +1 -0
- package/dist/GriddedGraphs.js +482 -1
- package/dist/GriddedGraphs.js.map +1 -1
- package/dist/GriddedGraphsFromConfig.cjs +2 -0
- package/dist/GriddedGraphsFromConfig.cjs.map +1 -0
- package/dist/GriddedGraphsFromConfig.js +42 -1
- package/dist/GriddedGraphsFromConfig.js.map +1 -1
- package/dist/HeatMap.cjs +2 -0
- package/dist/HeatMap.cjs.map +1 -0
- package/dist/HeatMap.js +451 -1
- package/dist/HeatMap.js.map +1 -1
- package/dist/Histogram.cjs +2 -0
- package/dist/Histogram.cjs.map +1 -0
- package/dist/Histogram.js +287 -1
- package/dist/Histogram.js.map +1 -1
- package/dist/ImageDownloadButton.cjs +2 -0
- package/dist/ImageDownloadButton.cjs.map +1 -0
- package/dist/ImageDownloadButton.js +28 -1
- package/dist/ImageDownloadButton.js.map +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +2 -0
- package/dist/LineChartWithConfidenceInterval.cjs.map +1 -0
- package/dist/LineChartWithConfidenceInterval.js +818 -1
- package/dist/LineChartWithConfidenceInterval.js.map +1 -1
- package/dist/LinearColorLegend.cjs +2 -0
- package/dist/LinearColorLegend.cjs.map +1 -0
- package/dist/LinearColorLegend.js +33 -1
- package/dist/LinearColorLegend.js.map +1 -1
- package/dist/Modal-CUU6ZK3U.js +1019 -0
- package/dist/Modal-CUU6ZK3U.js.map +1 -0
- package/dist/Modal-C_dl0EtQ.cjs +46 -0
- package/dist/Modal-C_dl0EtQ.cjs.map +1 -0
- package/dist/MultiGraphDashboard.cjs +2 -0
- package/dist/MultiGraphDashboard.cjs.map +1 -0
- package/dist/MultiGraphDashboard.js +303 -1
- package/dist/MultiGraphDashboard.js.map +1 -1
- package/dist/MultiGraphDashboardFromConfig.cjs +2 -0
- package/dist/MultiGraphDashboardFromConfig.cjs.map +1 -0
- package/dist/MultiGraphDashboardFromConfig.js +37 -1
- package/dist/MultiGraphDashboardFromConfig.js.map +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat.cjs +2 -0
- package/dist/MultiGraphDashboardWideToLongFormat.cjs.map +1 -0
- package/dist/MultiGraphDashboardWideToLongFormat.js +243 -1
- package/dist/MultiGraphDashboardWideToLongFormat.js.map +1 -1
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +2 -0
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs.map +1 -0
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +30 -1
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js.map +1 -1
- package/dist/MultiLineAltChart.cjs +2 -0
- package/dist/MultiLineAltChart.cjs.map +1 -0
- package/dist/MultiLineAltChart.js +689 -1
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +2 -0
- package/dist/MultiLineChart.cjs.map +1 -0
- package/dist/MultiLineChart.js +722 -1
- package/dist/MultiLineChart.js.map +1 -1
- package/dist/ParetoChart.cjs +2 -0
- package/dist/ParetoChart.cjs.map +1 -0
- package/dist/ParetoChart.js +636 -1
- package/dist/ParetoChart.js.map +1 -1
- package/dist/RadarChart.cjs +2 -0
- package/dist/RadarChart.cjs.map +1 -0
- package/dist/RadarChart.js +677 -1
- package/dist/RadarChart.js.map +1 -1
- package/dist/{ReferenceLine-BgDdQbDI.js → ReferenceLine-C1GpoG9d.js} +33 -34
- package/dist/ReferenceLine-C1GpoG9d.js.map +1 -0
- package/dist/ReferenceLine-CuFMk0cI.cjs +2 -0
- package/dist/ReferenceLine-CuFMk0cI.cjs.map +1 -0
- package/dist/RegressionLine-7_rKTHN_.cjs +2 -0
- package/dist/{RegressionLine-BfpCuD7B.cjs.map → RegressionLine-7_rKTHN_.cjs.map} +1 -1
- package/dist/{RegressionLine-cSljpHaE.js → RegressionLine-BFwDCTUU.js} +17 -18
- package/dist/{RegressionLine-cSljpHaE.js.map → RegressionLine-BFwDCTUU.js.map} +1 -1
- package/dist/SVGDownloadButton.cjs +2 -0
- package/dist/SVGDownloadButton.cjs.map +1 -0
- package/dist/SVGDownloadButton.js +28 -1
- package/dist/SVGDownloadButton.js.map +1 -1
- package/dist/SankeyChart.cjs +2 -0
- package/dist/SankeyChart.cjs.map +1 -0
- package/dist/SankeyChart.js +989 -1
- package/dist/SankeyChart.js.map +1 -1
- package/dist/ScatterPlot.cjs +2 -0
- package/dist/ScatterPlot.cjs.map +1 -0
- package/dist/ScatterPlot.js +828 -1
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/ScrollStory.cjs +2 -0
- package/dist/ScrollStory.cjs.map +1 -0
- package/dist/ScrollStory.js +105 -1
- package/dist/ScrollStory.js.map +1 -1
- package/dist/SimpleLineChart.cjs +2 -0
- package/dist/SimpleLineChart.cjs.map +1 -0
- package/dist/SimpleLineChart.js +619 -1
- package/dist/SimpleLineChart.js.map +1 -1
- package/dist/SingleGraphDashboard.cjs +2 -0
- package/dist/SingleGraphDashboard.cjs.map +1 -0
- package/dist/SingleGraphDashboard.js +522 -1
- package/dist/SingleGraphDashboard.js.map +1 -1
- package/dist/SingleGraphDashboardFromConfig.cjs +2 -0
- package/dist/SingleGraphDashboardFromConfig.cjs.map +1 -0
- package/dist/SingleGraphDashboardFromConfig.js +34 -1
- package/dist/SingleGraphDashboardFromConfig.js.map +1 -1
- package/dist/SlopeChart.cjs +2 -0
- package/dist/SlopeChart.cjs.map +1 -0
- package/dist/SlopeChart.js +582 -1
- package/dist/SlopeChart.js.map +1 -1
- package/dist/Source.cjs +2 -0
- package/dist/Source.cjs.map +1 -0
- package/dist/Source.js +40 -1
- package/dist/Source.js.map +1 -1
- package/dist/SparkLine.cjs +2 -0
- package/dist/SparkLine.cjs.map +1 -0
- package/dist/SparkLine.js +320 -1
- package/dist/SparkLine.js.map +1 -1
- package/dist/Spinner-C85UF28E.js +30 -0
- package/dist/Spinner-C85UF28E.js.map +1 -0
- package/dist/Spinner-DA6Z5E4n.cjs +2 -0
- package/dist/Spinner-DA6Z5E4n.cjs.map +1 -0
- package/dist/StatCardFromData.cjs +2 -0
- package/dist/StatCardFromData.cjs.map +1 -0
- package/dist/StatCardFromData.js +249 -1
- package/dist/StatCardFromData.js.map +1 -1
- package/dist/StripChart.cjs +2 -0
- package/dist/StripChart.cjs.map +1 -0
- package/dist/StripChart.js +988 -1
- package/dist/StripChart.js.map +1 -1
- package/dist/ThreeDGlobe.cjs +2 -0
- package/dist/ThreeDGlobe.cjs.map +1 -0
- package/dist/ThreeDGlobe.js +451 -1
- package/dist/ThreeDGlobe.js.map +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.cjs +2 -0
- package/dist/ThresholdColorLegendWithMouseOver.cjs.map +1 -0
- package/dist/ThresholdColorLegendWithMouseOver.js +130 -1
- package/dist/ThresholdColorLegendWithMouseOver.js.map +1 -1
- package/dist/{Tooltip-CzZ1wFyF.js → Tooltip-DyM5snqx.js} +15 -16
- package/dist/{Tooltip-CzZ1wFyF.js.map → Tooltip-DyM5snqx.js.map} +1 -1
- package/dist/Tooltip-n8z5bfav.cjs +2 -0
- package/dist/{Tooltip-BM18N_3l.cjs.map → Tooltip-n8z5bfav.cjs.map} +1 -1
- package/dist/TreeMapGraph.cjs +2 -0
- package/dist/TreeMapGraph.cjs.map +1 -0
- package/dist/TreeMapGraph.js +760 -1
- package/dist/TreeMapGraph.js.map +1 -1
- package/dist/Types.cjs +2 -0
- package/dist/Types.cjs.map +1 -0
- package/dist/Types.js +1 -1
- package/dist/Typography-Ctgfl1J5.js +140 -0
- package/dist/Typography-Ctgfl1J5.js.map +1 -0
- package/dist/Typography-k-kOjICQ.cjs +2 -0
- package/dist/Typography-k-kOjICQ.cjs.map +1 -0
- package/dist/UnitChart.cjs +2 -0
- package/dist/UnitChart.cjs.map +1 -0
- package/dist/UnitChart.js +216 -1
- package/dist/UnitChart.js.map +1 -1
- package/dist/XAxesLabels-CJMQbfVy.cjs +2 -0
- package/dist/{XAxesLabels-C9REbQQs.cjs.map → XAxesLabels-CJMQbfVy.cjs.map} +1 -1
- package/dist/{XAxesLabels-DVw7Lvuz.js → XAxesLabels-DQFo_z2R.js} +21 -22
- package/dist/{XAxesLabels-DVw7Lvuz.js.map → XAxesLabels-DQFo_z2R.js.map} +1 -1
- package/dist/{XTicksAndGridLines-CUefTINd.js → XTicksAndGridLines-Bn9u5gOM.js} +19 -20
- package/dist/{XTicksAndGridLines-CUefTINd.js.map → XTicksAndGridLines-Bn9u5gOM.js.map} +1 -1
- package/dist/XTicksAndGridLines-CCzXIV8d.cjs +2 -0
- package/dist/{XTicksAndGridLines-DuK35ROS.cjs.map → XTicksAndGridLines-CCzXIV8d.cjs.map} +1 -1
- package/dist/YAxesLabels-BXLTX7AI.cjs +2 -0
- package/dist/{YAxesLabels-DhBdLk3Z.cjs.map → YAxesLabels-BXLTX7AI.cjs.map} +1 -1
- package/dist/{YAxesLabels-CYVY053X.js → YAxesLabels-H5-002X5.js} +11 -12
- package/dist/{YAxesLabels-CYVY053X.js.map → YAxesLabels-H5-002X5.js.map} +1 -1
- package/dist/{YTicksAndGridLines-BJRXuBdC.js → YTicksAndGridLines-B6ah7CRf.js} +14 -15
- package/dist/{YTicksAndGridLines-BJRXuBdC.js.map → YTicksAndGridLines-B6ah7CRf.js.map} +1 -1
- package/dist/YTicksAndGridLines-DBDuz6vb.cjs +2 -0
- package/dist/{YTicksAndGridLines-CtLvzExe.cjs.map → YTicksAndGridLines-DBDuz6vb.cjs.map} +1 -1
- package/dist/{checkIfMultiple-CaefP4X2.js → checkIfMultiple-BB7PlCNh.js} +1013 -518
- package/dist/checkIfMultiple-BB7PlCNh.js.map +1 -0
- package/dist/checkIfMultiple-D5ysrI7G.cjs +12 -0
- package/dist/checkIfMultiple-D5ysrI7G.cjs.map +1 -0
- package/dist/checkIfNullOrUndefined-BCW3Y1ML.cjs +2 -0
- package/dist/checkIfNullOrUndefined-BCW3Y1ML.cjs.map +1 -0
- package/dist/checkIfNullOrUndefined-DmfiKkNw.js +7 -0
- package/dist/checkIfNullOrUndefined-DmfiKkNw.js.map +1 -0
- package/dist/customArea-BYNyxAkm.cjs +2 -0
- package/dist/{customArea-B47Ew5cT.cjs.map → customArea-BYNyxAkm.cjs.map} +1 -1
- package/dist/{customArea-I3MsoqIl.js → customArea-CaxScFmW.js} +29 -30
- package/dist/{customArea-I3MsoqIl.js.map → customArea-CaxScFmW.js.map} +1 -1
- package/dist/excelDownload-BOA-lskf.js +19 -0
- package/dist/excelDownload-BOA-lskf.js.map +1 -0
- package/dist/excelDownload-BQpsCa62.cjs +2 -0
- package/dist/excelDownload-BQpsCa62.cjs.map +1 -0
- package/dist/fetchAndParseData-Bcmr659B.js +1196 -0
- package/dist/fetchAndParseData-Bcmr659B.js.map +1 -0
- package/dist/fetchAndParseData-DmgQtB9n.cjs +16 -0
- package/dist/fetchAndParseData-DmgQtB9n.cjs.map +1 -0
- package/dist/fetchAndParseData.cjs +2 -0
- package/dist/fetchAndParseData.cjs.map +1 -0
- package/dist/fetchAndParseData.js +9 -15
- package/dist/fetchAndParseData.js.map +1 -1
- package/dist/getGraphList-DuColTJM.js +265 -0
- package/dist/getGraphList-DuColTJM.js.map +1 -0
- package/dist/getGraphList-gf02xgT2.cjs +2 -0
- package/dist/getGraphList-gf02xgT2.cjs.map +1 -0
- package/dist/getJenks-TWQvbuOz.cjs +2 -0
- package/dist/getJenks-TWQvbuOz.cjs.map +1 -0
- package/dist/getJenks-VhM3GIoC.js +23 -0
- package/dist/getJenks-VhM3GIoC.js.map +1 -0
- package/dist/getSchema.cjs +2 -0
- package/dist/getSchema.cjs.map +1 -0
- package/dist/getSchema.js +910 -1
- package/dist/getSchema.js.map +1 -1
- package/dist/getSliderMarks-C0jptXeP.js +1054 -0
- package/dist/getSliderMarks-C0jptXeP.js.map +1 -0
- package/dist/getSliderMarks-CtsEXiLV.cjs +6 -0
- package/dist/getSliderMarks-CtsEXiLV.cjs.map +1 -0
- package/dist/getTextColorBasedOnBgColor-B6Nk2WBf.js +28 -0
- package/dist/getTextColorBasedOnBgColor-B6Nk2WBf.js.map +1 -0
- package/dist/getTextColorBasedOnBgColor-nqY-bsM_.cjs +2 -0
- package/dist/getTextColorBasedOnBgColor-nqY-bsM_.cjs.map +1 -0
- package/dist/getUniqValue-BtUENB2H.js +20 -0
- package/dist/getUniqValue-BtUENB2H.js.map +1 -0
- package/dist/getUniqValue-CHqgSss5.cjs +2 -0
- package/dist/getUniqValue-CHqgSss5.cjs.map +1 -0
- package/dist/imageDownload-CgDcm1Sj.cjs +3 -0
- package/dist/imageDownload-CgDcm1Sj.cjs.map +1 -0
- package/dist/imageDownload-Dcci2LEy.js +495 -0
- package/dist/imageDownload-Dcci2LEy.js.map +1 -0
- package/dist/index-BVnYktl4.js +435 -0
- package/dist/index-BVnYktl4.js.map +1 -0
- package/dist/index-BW_-wD2k.cjs +2 -0
- package/dist/index-BW_-wD2k.cjs.map +1 -0
- package/dist/{index-DXmF_0ez.js → index-BmCqpO1B.js} +74 -40
- package/dist/index-BmCqpO1B.js.map +1 -0
- package/dist/{index-Db-Yg_Ud.js → index-BxAUvrua.js} +19 -19
- package/dist/{index-Db-Yg_Ud.js.map → index-BxAUvrua.js.map} +1 -1
- package/dist/index-CHPV5EwG-BPSP-7Jg.js +3341 -0
- package/dist/index-CHPV5EwG-BPSP-7Jg.js.map +1 -0
- package/dist/index-CHPV5EwG-DDoeWRVt.cjs +44 -0
- package/dist/index-CHPV5EwG-DDoeWRVt.cjs.map +1 -0
- package/dist/index-CylX-pWB.cjs +2 -0
- package/dist/{index-BYroABPm.cjs.map → index-CylX-pWB.cjs.map} +1 -1
- package/dist/index-D9h2WYDS.cjs +22 -0
- package/dist/index-D9h2WYDS.cjs.map +1 -0
- package/dist/index-DG3YrCr5-D3FrrXj8.js +459 -0
- package/dist/index-DG3YrCr5-D3FrrXj8.js.map +1 -0
- package/dist/index-DG3YrCr5-v7rayV3N.cjs +2 -0
- package/dist/index-DG3YrCr5-v7rayV3N.cjs.map +1 -0
- package/dist/index-DVOJ7vxH.cjs +10 -0
- package/dist/{index-a2C2Bqn2.cjs.map → index-DVOJ7vxH.cjs.map} +1 -1
- package/dist/index-D_n8aamX.cjs +2 -0
- package/dist/index-D_n8aamX.cjs.map +1 -0
- package/dist/index-OCoyy1wG.js +635 -0
- package/dist/index-OCoyy1wG.js.map +1 -0
- package/dist/{index-DzdwZ2OA.js → index-n_RI8T0n.js} +3 -3
- package/dist/{index-DzdwZ2OA.js.map → index-n_RI8T0n.js.map} +1 -1
- package/dist/index-tvAyXPPW-DBlMKnNB.js +47 -0
- package/dist/index-tvAyXPPW-DBlMKnNB.js.map +1 -0
- package/dist/index-tvAyXPPW-DPOG-C2i.cjs +2 -0
- package/dist/index-tvAyXPPW-DPOG-C2i.cjs.map +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +1 -5
- package/dist/index.js +180 -1
- package/dist/index.js.map +1 -1
- package/dist/numberFormattingFunction-02t-wJta.cjs +2 -0
- package/dist/numberFormattingFunction-02t-wJta.cjs.map +1 -0
- package/dist/numberFormattingFunction-14YCbkN2.js +13 -0
- package/dist/numberFormattingFunction-14YCbkN2.js.map +1 -0
- package/dist/{use-in-view-CZPXmTZM.js → proxy-DJxJg1kD.js} +699 -732
- package/dist/proxy-DJxJg1kD.js.map +1 -0
- package/dist/{use-in-view-Dl1CsAIo.cjs → proxy-PQd2AItT.cjs} +2 -2
- package/dist/proxy-PQd2AItT.cjs.map +1 -0
- package/dist/removeOutliers-DR48e-18.js +57 -0
- package/dist/removeOutliers-DR48e-18.js.map +1 -0
- package/dist/removeOutliers-WELHHqiI.cjs +2 -0
- package/dist/removeOutliers-WELHHqiI.cjs.map +1 -0
- package/dist/{string2HTML-BX0oNw83.js → string2HTML-CWHGfz_d.js} +2 -2
- package/dist/{string2HTML-BX0oNw83.js.map → string2HTML-CWHGfz_d.js.map} +1 -1
- package/dist/{string2HTML-X4ZYX5jI.cjs → string2HTML-D2Avudmb.cjs} +2 -2
- package/dist/{string2HTML-X4ZYX5jI.cjs.map → string2HTML-D2Avudmb.cjs.map} +1 -1
- package/dist/svgDownload-C2-E3yf2.js +9 -0
- package/dist/svgDownload-C2-E3yf2.js.map +1 -0
- package/dist/svgDownload-D9zEGjTF.cjs +2 -0
- package/dist/svgDownload-D9zEGjTF.cjs.map +1 -0
- package/dist/toConsumableArray-DiWOvh_d-DcLaZvDq.cjs +4 -0
- package/dist/toConsumableArray-DiWOvh_d-DcLaZvDq.cjs.map +1 -0
- package/dist/toConsumableArray-DiWOvh_d-DlpOlgap.js +145 -0
- package/dist/toConsumableArray-DiWOvh_d-DlpOlgap.js.map +1 -0
- package/dist/transformData.cjs +2 -0
- package/dist/transformData.cjs.map +1 -0
- package/dist/transformData.d.ts +170 -0
- package/dist/transformData.js +10 -0
- package/dist/transformData.js.map +1 -0
- package/dist/transformDataForAggregation-BUGJnson.cjs +2 -0
- package/dist/transformDataForAggregation-BUGJnson.cjs.map +1 -0
- package/dist/transformDataForAggregation-DAQJWGNL.js +759 -0
- package/dist/transformDataForAggregation-DAQJWGNL.js.map +1 -0
- package/dist/transformDataForGraphFromFile-CrntpaMU.cjs +2 -0
- package/dist/transformDataForGraphFromFile-CrntpaMU.cjs.map +1 -0
- package/dist/transformDataForGraphFromFile-DdNiOWeC.js +24 -0
- package/dist/transformDataForGraphFromFile-DdNiOWeC.js.map +1 -0
- package/dist/use-in-view-BAHrBy6b.js +40 -0
- package/dist/use-in-view-BAHrBy6b.js.map +1 -0
- package/dist/use-in-view-BCmzDU2O.cjs +2 -0
- package/dist/use-in-view-BCmzDU2O.cjs.map +1 -0
- package/dist/utils.cjs +2 -0
- package/dist/utils.cjs.map +1 -0
- package/dist/utils.d.ts +217 -0
- package/dist/utils.js +27 -0
- package/dist/utils.js.map +1 -0
- package/dist/validateSchema.cjs +2 -0
- package/dist/validateSchema.cjs.map +1 -0
- package/dist/validateSchema.js +104 -1
- package/dist/validateSchema.js.map +1 -1
- package/dist/x-CnsEH4Ox-CGGXQl4M.cjs +27 -0
- package/dist/x-CnsEH4Ox-CGGXQl4M.cjs.map +1 -0
- package/dist/x-CnsEH4Ox-DDvAJndW.js +101 -0
- package/dist/x-CnsEH4Ox-DDvAJndW.js.map +1 -0
- package/package.json +15 -90
- package/dist/Axis-BlyBRMNw.cjs +0 -2
- package/dist/AxisTitle-BY8MI9jC.cjs +0 -2
- package/dist/AxisTitle-BeMxcw5I.js +0 -21
- package/dist/DropdownSelect-CuzV7gdj.cjs +0 -29
- package/dist/DropdownSelect-CuzV7gdj.cjs.map +0 -1
- package/dist/DropdownSelect-DmZsXrhY.js +0 -2698
- package/dist/DropdownSelect-DmZsXrhY.js.map +0 -1
- package/dist/EmptyState-BQguKAp5.cjs +0 -2
- package/dist/Modal-C9txyGOk.js +0 -723
- package/dist/Modal-C9txyGOk.js.map +0 -1
- package/dist/Modal-cQF2UQIa.cjs +0 -46
- package/dist/Modal-cQF2UQIa.cjs.map +0 -1
- package/dist/ReferenceLine-BgDdQbDI.js.map +0 -1
- package/dist/ReferenceLine-Bsb5jeE4.cjs +0 -2
- package/dist/ReferenceLine-Bsb5jeE4.cjs.map +0 -1
- package/dist/RegressionLine-BfpCuD7B.cjs +0 -2
- package/dist/Spinner-DN3s4S0H.js +0 -17
- package/dist/Spinner-DN3s4S0H.js.map +0 -1
- package/dist/Spinner-UmN-KPe9.cjs +0 -2
- package/dist/Spinner-UmN-KPe9.cjs.map +0 -1
- package/dist/Tooltip-BM18N_3l.cjs +0 -2
- package/dist/Typography-CDR-DAHH.cjs +0 -2
- package/dist/Typography-CDR-DAHH.cjs.map +0 -1
- package/dist/Typography-XJoSE-By.js +0 -58
- package/dist/Typography-XJoSE-By.js.map +0 -1
- package/dist/XAxesLabels-C9REbQQs.cjs +0 -2
- package/dist/XTicksAndGridLines-DuK35ROS.cjs +0 -2
- package/dist/YAxesLabels-DhBdLk3Z.cjs +0 -2
- package/dist/YTicksAndGridLines-CtLvzExe.cjs +0 -2
- package/dist/checkIfMultiple-CaefP4X2.js.map +0 -1
- package/dist/checkIfMultiple-D3h8to1T.cjs +0 -12
- package/dist/checkIfMultiple-D3h8to1T.cjs.map +0 -1
- package/dist/checkIfNullOrUndefined.d.ts +0 -15
- package/dist/checkIfNullOrUndefined.js +0 -2
- package/dist/checkIfNullOrUndefined.js.map +0 -1
- package/dist/customArea-B47Ew5cT.cjs +0 -2
- package/dist/excelDownload.d.ts +0 -31
- package/dist/excelDownload.js +0 -2
- package/dist/excelDownload.js.map +0 -1
- package/dist/generateCodes.d.ts +0 -25
- package/dist/generateCodes.js +0 -2
- package/dist/generateCodes.js.map +0 -1
- package/dist/getJenks.d.ts +0 -17
- package/dist/getJenks.js +0 -2
- package/dist/getJenks.js.map +0 -1
- package/dist/getPercentileValue.d.ts +0 -13
- package/dist/getPercentileValue.js +0 -2
- package/dist/getPercentileValue.js.map +0 -1
- package/dist/getQueryParamsFromLink.d.ts +0 -18
- package/dist/getQueryParamsFromLink.js +0 -2
- package/dist/getQueryParamsFromLink.js.map +0 -1
- package/dist/getSliderMarks-CWajGCGq.js +0 -719
- package/dist/getSliderMarks-CWajGCGq.js.map +0 -1
- package/dist/getSliderMarks-DDJ1CdhL.cjs +0 -6
- package/dist/getSliderMarks-DDJ1CdhL.cjs.map +0 -1
- package/dist/getTextColorBasedOnBgColor.d.ts +0 -13
- package/dist/getTextColorBasedOnBgColor.js +0 -2
- package/dist/getTextColorBasedOnBgColor.js.map +0 -1
- package/dist/getUniqValue.d.ts +0 -18
- package/dist/getUniqValue.js +0 -2
- package/dist/getUniqValue.js.map +0 -1
- package/dist/graphList.d.ts +0 -9
- package/dist/graphList.js +0 -2
- package/dist/graphList.js.map +0 -1
- package/dist/imageDownload.d.ts +0 -16
- package/dist/imageDownload.js +0 -3
- package/dist/imageDownload.js.map +0 -1
- package/dist/index-01r5X3Gr-9jE0ObrK.cjs +0 -2
- package/dist/index-01r5X3Gr-9jE0ObrK.cjs.map +0 -1
- package/dist/index-01r5X3Gr-kH7FxQ7P.js +0 -451
- package/dist/index-01r5X3Gr-kH7FxQ7P.js.map +0 -1
- package/dist/index-BGMGC-HN.cjs +0 -22
- package/dist/index-BGMGC-HN.cjs.map +0 -1
- package/dist/index-BHm2KTjD-2e-Fu8L-.js +0 -702
- package/dist/index-BHm2KTjD-2e-Fu8L-.js.map +0 -1
- package/dist/index-BHm2KTjD-D8FylaKc.cjs +0 -44
- package/dist/index-BHm2KTjD-D8FylaKc.cjs.map +0 -1
- package/dist/index-BIPNFFja.js +0 -506
- package/dist/index-BIPNFFja.js.map +0 -1
- package/dist/index-BYroABPm.cjs +0 -2
- package/dist/index-CEc_9zWy.cjs +0 -2
- package/dist/index-CEc_9zWy.cjs.map +0 -1
- package/dist/index-CbVeVrla.cjs +0 -2
- package/dist/index-CbVeVrla.cjs.map +0 -1
- package/dist/index-CqzhBPuO-CfQywbdq.js +0 -41
- package/dist/index-CqzhBPuO-CfQywbdq.js.map +0 -1
- package/dist/index-CqzhBPuO-raKZqS7l.cjs +0 -2
- package/dist/index-CqzhBPuO-raKZqS7l.cjs.map +0 -1
- package/dist/index-DSnvdkHZ.js +0 -495
- package/dist/index-DSnvdkHZ.js.map +0 -1
- package/dist/index-DXmF_0ez.js.map +0 -1
- package/dist/index-a2C2Bqn2.cjs +0 -10
- package/dist/numberFormattingFunction.d.ts +0 -22
- package/dist/numberFormattingFunction.js +0 -2
- package/dist/numberFormattingFunction.js.map +0 -1
- package/dist/removeOutliers.d.ts +0 -16
- package/dist/removeOutliers.js +0 -2
- package/dist/removeOutliers.js.map +0 -1
- package/dist/svgDownload.d.ts +0 -16
- package/dist/svgDownload.js +0 -2
- package/dist/svgDownload.js.map +0 -1
- package/dist/toConsumableArray-BSMMWi3w-Cu4vcE-m.js +0 -139
- package/dist/toConsumableArray-BSMMWi3w-Cu4vcE-m.js.map +0 -1
- package/dist/toConsumableArray-BSMMWi3w-DJL7-zAp.cjs +0 -4
- package/dist/toConsumableArray-BSMMWi3w-DJL7-zAp.cjs.map +0 -1
- package/dist/transformColumnsToArray.d.ts +0 -38
- package/dist/transformColumnsToArray.js +0 -2
- package/dist/transformColumnsToArray.js.map +0 -1
- package/dist/transformDataForAggregation.d.ts +0 -38
- package/dist/transformDataForAggregation.js +0 -2
- package/dist/transformDataForAggregation.js.map +0 -1
- package/dist/transformDataForGraph.d.ts +0 -47
- package/dist/transformDataForGraph.js +0 -2
- package/dist/transformDataForGraph.js.map +0 -1
- package/dist/transformDataForGraphFromFile.d.ts +0 -66
- package/dist/transformDataForGraphFromFile.js +0 -2
- package/dist/transformDataForGraphFromFile.js.map +0 -1
- package/dist/use-in-view-CZPXmTZM.js.map +0 -1
- package/dist/use-in-view-Dl1CsAIo.cjs.map +0 -1
- package/dist/x-Dft9NVe_-DcB7wtv5.js +0 -61
- package/dist/x-Dft9NVe_-DcB7wtv5.js.map +0 -1
- package/dist/x-Dft9NVe_-LeyJu02C.cjs +0 -27
- package/dist/x-Dft9NVe_-LeyJu02C.cjs.map +0 -1
package/dist/SankeyChart.js
CHANGED
|
@@ -1,2 +1,990 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index-BHm2KTjD-D8FylaKc.cjs"),q=require("react"),it=require("./index-CZbIGs8q.cjs"),ct=require("./index-BzeLQvXk.cjs"),Et=require("./index-C21TvELx.cjs"),Z=require("./Typography-CDR-DAHH.cjs"),Vt=require("./index-BXns0-ng.cjs"),Pt=require("./Modal-cQF2UQIa.cjs"),Lt=require("./numberFormattingFunction.js"),zt=require("./Tooltip-BM18N_3l.cjs"),It=require("./string2HTML-X4ZYX5jI.cjs"),ht=require("./use-in-view-Dl1CsAIo.cjs"),Ht=require("./index-a2C2Bqn2.cjs"),At=require("./GraphHeader.js"),Wt=require("./GraphFooter.js"),Mt=require("./Colors.js"),Ft=require("./generateRandomString-B5zBiJzS.cjs"),Gt=require("./EmptyState-BQguKAp5.cjs");function Rt(e,n){let i;if(n===void 0)for(const a of e)a!=null&&(i<a||i===void 0&&a>=a)&&(i=a);else{let a=-1;for(let l of e)(l=n(l,++a,e))!=null&&(i<l||i===void 0&&l>=l)&&(i=l)}return i}function Ot(e,n){let i;if(n===void 0)for(const a of e)a!=null&&(i>a||i===void 0&&a>=a)&&(i=a);else{let a=-1;for(let l of e)(l=n(l,++a,e))!=null&&(i>l||i===void 0&&l>=l)&&(i=l)}return i}function xt(e,n){let i=0;if(n===void 0)for(let a of e)(a=+a)&&(i+=a);else{let a=-1;for(let l of e)(l=+n(l,++a,e))&&(i+=l)}return i}function Xt(e){return e.target.depth}function Yt(e,n){return e.sourceLinks.length?e.depth:n-1}function mt(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?Ot(e.sourceLinks,Xt)-1:0}function ft(e){return function(){return e}}function St(e,n){return gt(e.source,n.source)||e.index-n.index}function _t(e,n){return gt(e.target,n.target)||e.index-n.index}function gt(e,n){return e.y0-n.y0}function yt(e){return e.value}function Ut(e){return e.index}function Zt(e){return e.nodes}function Kt(e){return e.links}function Nt(e,n){const i=e.get(n);if(!i)throw new Error("missing: "+n);return i}function Tt({nodes:e}){for(const n of e){let i=n.y0,a=i;for(const l of n.sourceLinks)l.y0=i+l.width/2,i+=l.width;for(const l of n.targetLinks)l.y1=a+l.width/2,a+=l.width}}function jt(){let e=0,n=0,i=1,a=1,l=24,m=8,g,p=Ut,j=Yt,w,v,b=Zt,$=Kt,R=6;function d(){const t={nodes:b.apply(null,arguments),links:$.apply(null,arguments)};return S(t),L(t),B(t),X(t),A(t),Tt(t),t}d.update=function(t){return Tt(t),t},d.nodeId=function(t){return arguments.length?(p=typeof t=="function"?t:ft(t),d):p},d.nodeAlign=function(t){return arguments.length?(j=typeof t=="function"?t:ft(t),d):j},d.nodeSort=function(t){return arguments.length?(w=t,d):w},d.nodeWidth=function(t){return arguments.length?(l=+t,d):l},d.nodePadding=function(t){return arguments.length?(m=g=+t,d):m},d.nodes=function(t){return arguments.length?(b=typeof t=="function"?t:ft(t),d):b},d.links=function(t){return arguments.length?($=typeof t=="function"?t:ft(t),d):$},d.linkSort=function(t){return arguments.length?(v=t,d):v},d.size=function(t){return arguments.length?(e=n=0,i=+t[0],a=+t[1],d):[i-e,a-n]},d.extent=function(t){return arguments.length?(e=+t[0][0],i=+t[1][0],n=+t[0][1],a=+t[1][1],d):[[e,n],[i,a]]},d.iterations=function(t){return arguments.length?(R=+t,d):R};function S({nodes:t,links:u}){for(const[c,r]of t.entries())r.index=c,r.sourceLinks=[],r.targetLinks=[];const s=new Map(t.map((c,r)=>[p(c,r,t),c]));for(const[c,r]of u.entries()){r.index=c;let{source:h,target:x}=r;typeof h!="object"&&(h=r.source=Nt(s,h)),typeof x!="object"&&(x=r.target=Nt(s,x)),h.sourceLinks.push(r),x.targetLinks.push(r)}if(v!=null)for(const{sourceLinks:c,targetLinks:r}of t)c.sort(v),r.sort(v)}function L({nodes:t}){for(const u of t)u.value=u.fixedValue===void 0?Math.max(xt(u.sourceLinks,yt),xt(u.targetLinks,yt)):u.fixedValue}function B({nodes:t}){const u=t.length;let s=new Set(t),c=new Set,r=0;for(;s.size;){for(const h of s){h.depth=r;for(const{target:x}of h.sourceLinks)c.add(x)}if(++r>u)throw new Error("circular link");s=c,c=new Set}}function X({nodes:t}){const u=t.length;let s=new Set(t),c=new Set,r=0;for(;s.size;){for(const h of s){h.height=r;for(const{source:x}of h.targetLinks)c.add(x)}if(++r>u)throw new Error("circular link");s=c,c=new Set}}function D({nodes:t}){const u=Rt(t,r=>r.depth)+1,s=(i-e-l)/(u-1),c=new Array(u);for(const r of t){const h=Math.max(0,Math.min(u-1,Math.floor(j.call(null,r,u))));r.layer=h,r.x0=e+h*s,r.x1=r.x0+l,c[h]?c[h].push(r):c[h]=[r]}if(w)for(const r of c)r.sort(w);return c}function _(t){const u=Ot(t,s=>(a-n-(s.length-1)*g)/xt(s,yt));for(const s of t){let c=n;for(const r of s){r.y0=c,r.y1=c+r.value*u,c=r.y1+g;for(const h of r.sourceLinks)h.width=h.value*u}c=(a-c+g)/(s.length+1);for(let r=0;r<s.length;++r){const h=s[r];h.y0+=c*(r+1),h.y1+=c*(r+1)}P(s)}}function A(t){const u=D(t);g=Math.min(m,(a-n)/(Rt(u,s=>s.length)-1)),_(u);for(let s=0;s<R;++s){const c=Math.pow(.99,s),r=Math.max(1-c,(s+1)/R);et(u,c,r),tt(u,c,r)}}function tt(t,u,s){for(let c=1,r=t.length;c<r;++c){const h=t[c];for(const x of h){let N=0,T=0;for(const{source:I,value:O}of x.targetLinks){let H=O*(x.layer-I.layer);N+=U(I,x)*H,T+=H}if(!(T>0))continue;let W=(N/T-x.y0)*u;x.y0+=W,x.y1+=W,C(x)}w===void 0&&h.sort(gt),V(h,s)}}function et(t,u,s){for(let c=t.length,r=c-2;r>=0;--r){const h=t[r];for(const x of h){let N=0,T=0;for(const{target:I,value:O}of x.sourceLinks){let H=O*(I.layer-x.layer);N+=ot(x,I)*H,T+=H}if(!(T>0))continue;let W=(N/T-x.y0)*u;x.y0+=W,x.y1+=W,C(x)}w===void 0&&h.sort(gt),V(h,s)}}function V(t,u){const s=t.length>>1,c=t[s];nt(t,c.y0-g,s-1,u),Y(t,c.y1+g,s+1,u),nt(t,a,t.length-1,u),Y(t,n,0,u)}function Y(t,u,s,c){for(;s<t.length;++s){const r=t[s],h=(u-r.y0)*c;h>1e-6&&(r.y0+=h,r.y1+=h),u=r.y1+g}}function nt(t,u,s,c){for(;s>=0;--s){const r=t[s],h=(r.y1-u)*c;h>1e-6&&(r.y0-=h,r.y1-=h),u=r.y0-g}}function C({sourceLinks:t,targetLinks:u}){if(v===void 0){for(const{source:{sourceLinks:s}}of u)s.sort(_t);for(const{target:{targetLinks:s}}of t)s.sort(St)}}function P(t){if(v===void 0)for(const{sourceLinks:u,targetLinks:s}of t)u.sort(_t),s.sort(St)}function U(t,u){let s=t.y0-(t.sourceLinks.length-1)*g/2;for(const{target:c,width:r}of t.sourceLinks){if(c===u)break;s+=r+g}for(const{source:c,width:r}of u.targetLinks){if(c===t)break;s-=r}return s}function ot(t,u){let s=u.y0-(u.targetLinks.length-1)*g/2;for(const{source:c,width:r}of u.targetLinks){if(c===t)break;s+=r+g}for(const{target:c,width:r}of t.sourceLinks){if(c===u)break;s-=r}return s}return d}var vt=Math.PI,kt=2*vt,J=1e-6,Qt=kt-J;function wt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function qt(){return new wt}wt.prototype=qt.prototype={constructor:wt,moveTo:function(e,n){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,n){this._+="L"+(this._x1=+e)+","+(this._y1=+n)},quadraticCurveTo:function(e,n,i,a){this._+="Q"+ +e+","+ +n+","+(this._x1=+i)+","+(this._y1=+a)},bezierCurveTo:function(e,n,i,a,l,m){this._+="C"+ +e+","+ +n+","+ +i+","+ +a+","+(this._x1=+l)+","+(this._y1=+m)},arcTo:function(e,n,i,a,l){e=+e,n=+n,i=+i,a=+a,l=+l;var m=this._x1,g=this._y1,p=i-e,j=a-n,w=m-e,v=g-n,b=w*w+v*v;if(l<0)throw new Error("negative radius: "+l);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=n);else if(b>J)if(!(Math.abs(v*p-j*w)>J)||!l)this._+="L"+(this._x1=e)+","+(this._y1=n);else{var $=i-m,R=a-g,d=p*p+j*j,S=$*$+R*R,L=Math.sqrt(d),B=Math.sqrt(b),X=l*Math.tan((vt-Math.acos((d+b-S)/(2*L*B)))/2),D=X/B,_=X/L;Math.abs(D-1)>J&&(this._+="L"+(e+D*w)+","+(n+D*v)),this._+="A"+l+","+l+",0,0,"+ +(v*$>w*R)+","+(this._x1=e+_*p)+","+(this._y1=n+_*j)}},arc:function(e,n,i,a,l,m){e=+e,n=+n,i=+i,m=!!m;var g=i*Math.cos(a),p=i*Math.sin(a),j=e+g,w=n+p,v=1^m,b=m?a-l:l-a;if(i<0)throw new Error("negative radius: "+i);this._x1===null?this._+="M"+j+","+w:(Math.abs(this._x1-j)>J||Math.abs(this._y1-w)>J)&&(this._+="L"+j+","+w),i&&(b<0&&(b=b%kt+kt),b>Qt?this._+="A"+i+","+i+",0,1,"+v+","+(e-g)+","+(n-p)+"A"+i+","+i+",0,1,"+v+","+(this._x1=j)+","+(this._y1=w):b>J&&(this._+="A"+i+","+i+",0,"+ +(b>=vt)+","+v+","+(this._x1=e+i*Math.cos(l))+","+(this._y1=n+i*Math.sin(l))))},rect:function(e,n,i,a){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+n)+"h"+ +i+"v"+ +a+"h"+-i+"Z"},toString:function(){return this._}};function Ct(e){return function(){return e}}function Jt(e){return e[0]}function te(e){return e[1]}var ee=Array.prototype.slice;function ne(e){return e.source}function oe(e){return e.target}function ie(e){var n=ne,i=oe,a=Jt,l=te,m=null;function g(){var p,j=ee.call(arguments),w=n.apply(this,j),v=i.apply(this,j);if(m||(m=p=qt()),e(m,+a.apply(this,(j[0]=w,j)),+l.apply(this,j),+a.apply(this,(j[0]=v,j)),+l.apply(this,j)),p)return m=null,p+""||null}return g.source=function(p){return arguments.length?(n=p,g):n},g.target=function(p){return arguments.length?(i=p,g):i},g.x=function(p){return arguments.length?(a=typeof p=="function"?p:Ct(+p),g):a},g.y=function(p){return arguments.length?(l=typeof p=="function"?p:Ct(+p),g):l},g.context=function(p){return arguments.length?(m=p??null,g):m},g}function re(e,n,i,a,l){e.moveTo(n,i),e.bezierCurveTo(n=(n+a)/2,i,n,l,a,l)}function se(){return ie(re)}function ae(e){return[e.source.x1,e.y0]}function le(e){return[e.target.x0,e.y1]}function ue(){return se().source(ae).target(le)}function ce(e){const{data:n,showLabels:i,leftMargin:a,rightMargin:l,truncateBy:m,width:g,height:p,topMargin:j,bottomMargin:w,tooltip:v,onSeriesMouseOver:b,suffix:$,prefix:R,showValues:d,onSeriesMouseClick:S,nodePadding:L,nodeWidth:B,id:X,highlightedSourceDataPoints:D,highlightedTargetDataPoints:_,defaultLinkOpacity:A,sourceTitle:tt,targetTitle:et,animate:V,sortNodes:Y,resetSelectionOnDoubleClick:nt,detailsOnClick:C,styles:P,classNames:U,precision:ot,customLayers:t}=e,u=q.useRef(null),s=ht.useInView(u,{once:V.once,amount:V.amount}),[c,r]=q.useState(void 0),[h,x]=q.useState(void 0),[N,T]=q.useState(void 0),[W,I]=q.useState(void 0),[O,H]=q.useState(void 0),z={top:j,bottom:w,left:a,right:l},F=g-z.left-z.right,G=p-z.top-z.bottom,st=Y==="mostReadable"?jt().nodeWidth(B).nodePadding(L).size([F,G]).nodeAlign(mt):Y==="none"?jt().nodeWidth(B).nodePadding(L).size([F,G]).nodeAlign(mt).nodeSort(()=>null).linkSort(()=>null):jt().nodeWidth(B).nodePadding(L).size([F,G]).nodeAlign(mt).nodeSort(Y==="desc"?(o,M)=>(M.value||0)-(o.value||0):(o,M)=>(o.value||0)-(M.value||0)),{nodes:at,links:lt}=st(n),Q=ue();return f.jsxRuntimeExports.jsxs(f.jsxRuntimeExports.Fragment,{children:[f.jsxRuntimeExports.jsxs(ht.motion.svg,{width:`${g}px`,height:`${p}px`,viewBox:`0 0 ${g} ${p}`,style:{marginLeft:"auto",marginRight:"auto"},direction:"ltr",ref:u,children:[tt?f.jsxRuntimeExports.jsx("text",{x:z.left,y:z.top-10,className:"text-base font-bold fill-primary-gray-700 dark:fill-primary-gray-100",style:{textAnchor:"start"},children:tt}):null,et?f.jsxRuntimeExports.jsx("text",{x:g-z.right,y:z.top-10,className:"text-base font-bold fill-primary-gray-700 dark:fill-primary-gray-100",style:{textAnchor:"end"},children:et}):null,f.jsxRuntimeExports.jsxs("g",{transform:`translate(${z.left},${z.top})`,children:[t.filter(o=>o.position==="before").map(o=>o.layer),at.filter(o=>o.type==="source").map((o,M)=>f.jsxRuntimeExports.jsx("g",{onMouseEnter:()=>{T(o)},onMouseLeave:()=>{T(void 0)},children:f.jsxRuntimeExports.jsxs("g",{transform:`translate(${o.x0},${o.y0})`,children:[f.jsxRuntimeExports.jsx("rect",{x:0,y:0,width:(o.x1||0)-(o.x0||0),height:(o.y1||0)-(o.y0||0),style:{fill:o.color}}),i||d?f.jsxRuntimeExports.jsx("foreignObject",{y:0-L/2,x:0-a,width:a,height:(o.y1||0)-(o.y0||0)+L,children:f.jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-0.5 justify-center py-0 px-1.5",style:{height:`${(o.y1||0)-(o.y0||0)+L}px`,overflow:"visible"},children:[i?f.jsxRuntimeExports.jsx(Z.TypographyExports.P,{marginBottom:d?"3xs":"none",size:"sm",leading:"none",className:Z.cnExports.cn("sankey-right-label text-right",U?.graphObjectValues),style:{hyphens:"auto",color:o.color,...P?.graphObjectValues},children:`${o.label}`.length<m?`${o.label}`:`${`${o.label}`.substring(0,m)}...`}):null,d?f.jsxRuntimeExports.jsx(Z.TypographyExports.P,{marginBottom:"none",size:"sm",leading:"none",className:Z.cnExports.cn("sankey-right-value text-right font-bold",U?.graphObjectValues),style:{hyphens:"auto",color:o.color,...P?.graphObjectValues},children:Lt.numberFormattingFunction(o.value,"NA",ot,R,$)}):null]})}):null]})},M)),at.filter(o=>o.type==="target").map((o,M)=>f.jsxRuntimeExports.jsx("g",{onMouseEnter:()=>{T(o)},onMouseLeave:()=>{T(void 0)},children:f.jsxRuntimeExports.jsxs("g",{transform:`translate(${o.x0},${o.y0})`,children:[f.jsxRuntimeExports.jsx("rect",{x:0,y:0,width:(o.x1||0)-(o.x0||0),height:(o.y1||0)-(o.y0||0),style:{fill:o.color}}),i||d?f.jsxRuntimeExports.jsx("foreignObject",{y:0-L/2,x:B,width:l-B,height:(o.y1||0)-(o.y0||0)+L,children:f.jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-0.5 justify-center py-0 px-1.5",style:{height:`${(o.y1||0)-(o.y0||0)+L}px`},children:[i?f.jsxRuntimeExports.jsx(Z.TypographyExports.P,{marginBottom:d?"3xs":"none",size:"sm",leading:"none",className:Z.cnExports.cn("sankey-left-label text-left",U?.graphObjectValues),style:{hyphens:"auto",color:o.color,...P?.graphObjectValues},children:`${o.label}`.length<m?`${o.label}`:`${`${o.label}`.substring(0,m)}...`}):null,d?f.jsxRuntimeExports.jsx(Z.TypographyExports.P,{size:"sm",leading:"none",marginBottom:"none",className:Z.cnExports.cn("sankey-left-value text-left font-bold",U?.graphObjectValues),style:{hyphens:"auto",color:o.color,...P?.graphObjectValues},children:Lt.numberFormattingFunction(o.value,"NA",ot,R,$)}):null]})}):null]})},M)),f.jsxRuntimeExports.jsx("defs",{children:lt.map((o,M)=>f.jsxRuntimeExports.jsxs("linearGradient",{id:`${X}-gradient-${M}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%",gradientUnits:"userSpaceOnUse",children:[f.jsxRuntimeExports.jsx("stop",{offset:"0%",style:{stopColor:o.source.color,stopOpacity:1}}),f.jsxRuntimeExports.jsx("stop",{offset:"100%",style:{stopColor:o.target.color,stopOpacity:1}})]},M))}),f.jsxRuntimeExports.jsx("g",{children:f.jsxRuntimeExports.jsx(Ht.AnimatePresence,{children:lt.map((o,M)=>f.jsxRuntimeExports.jsx(ht.motion.g,{className:"undp-viz-g-with-hover",onMouseEnter:K=>{r(o.data),H(K.clientY),I(K.clientX),b?.(o)},onMouseMove:K=>{r(o.data),H(K.clientY),I(K.clientX)},onClick:()=>{(S||C)&&(Vt.isEqual(h,o.data)&&nt?(x(void 0),S?.(void 0)):(x(o.data),S?.(o.data)))},onMouseLeave:()=>{r(void 0),I(void 0),H(void 0),b?.(void 0)},variants:{initial:{opacity:N?o.source.name===N.name||o.target.name===N.name?.85:A:(D.length!==0||_.length!==0)&&(D.indexOf(o.source.label)!==-1||_.indexOf(o.target.label)!==-1)?.85:A},whileInView:{opacity:N?o.source.name===N.name||o.target.name===N.name?.85:A:(D.length!==0||_.length!==0)&&(D.indexOf(o.source.label)!==-1||_.indexOf(o.target.label)!==-1)?.85:A,transition:{duration:V.duration}}},initial:"initial",animate:s?"whileInView":"initial",exit:{opacity:0,transition:{duration:V.duration}},children:f.jsxRuntimeExports.jsx(ht.motion.path,{d:Q(o)||"",style:{stroke:`url(#${X}-gradient-${M})`,strokeWidth:o.width,fill:"none"},exit:{opacity:0,transition:{duration:V.duration}},variants:{initial:{pathLength:0,opacity:1},whileInView:{pathLength:1,opacity:1,transition:{duration:V.duration}}},initial:"initial",animate:s?"whileInView":"initial"},`${o.source}-${o.target}`)},`${o.source}-${o.target}`))})}),t.filter(o=>o.position==="after").map(o=>o.layer)]})]}),c&&v&&W&&O?f.jsxRuntimeExports.jsx(zt.Tooltip,{data:c,body:v,xPos:W,yPos:O,backgroundStyle:P?.tooltip,className:U?.tooltip}):null,C&&h!==void 0?f.jsxRuntimeExports.jsx(Pt.ModalExports.Modal,{open:h!==void 0,onClose:()=>{x(void 0)},children:f.jsxRuntimeExports.jsx("div",{className:"graph-modal-content m-0",dangerouslySetInnerHTML:typeof C=="string"?{__html:It.string2HTML(C,h)}:void 0,children:typeof C=="function"?C(h):null})}):null]})}function he(e){const{data:n,graphTitle:i,sources:a,graphDescription:l,showLabels:m=!0,leftMargin:g=75,rightMargin:p=75,topMargin:j=30,bottomMargin:w=10,truncateBy:v=999,height:b,width:$,footNote:R,padding:d,backgroundColor:S,tooltip:L,onSeriesMouseOver:B,suffix:X="",prefix:D="",relativeHeight:_,showValues:A=!0,graphID:tt,onSeriesMouseClick:et,graphDownload:V=!1,dataDownload:Y=!1,fillContainer:nt=!0,language:C="en",minHeight:P=0,theme:U="light",ariaLabel:ot,sourceColors:t,targetColors:u,sourceColorDomain:s,targetColorDomain:c,nodePadding:r=5,nodeWidth:h=5,highlightedSourceDataPoints:x=[],highlightedTargetDataPoints:N=[],defaultLinkOpacity:T=.3,sourceTitle:W,targetTitle:I,sortNodes:O="mostReadable",resetSelectionOnDoubleClick:H=!0,detailsOnClick:z,styles:F,classNames:G,animate:st=!1,precision:at=2,customLayers:lt=[]}=e,[Q,o]=q.useState(0),[M,K]=q.useState(0),[bt,Bt]=q.useState(void 0),rt=q.useRef(null),$t=q.useRef(null);return q.useEffect(()=>{const E=it.uniqBy(n,"source").map(k=>({name:`source_${k.source}`,type:"source",label:`${k.source}`,color:typeof t=="string"||!t?t||Mt.Colors.graphMainColor:t[(s||it.uniqBy(n,"source").map(y=>`${y.source}`)).findIndex(y=>`${y}`==`${k.source}`)>t.length?t.length-1:(s||it.uniqBy(n,"source").map(y=>`${y.source}`)).findIndex(y=>`${y}`==`${k.source}`)],totalValue:Et.sum(n.filter(y=>`${y.source}`==`${k.source}`).map(y=>y.value))})),ut=O==="asc"?ct.sortBy(E,k=>k.totalValue):O==="desc"?ct.sortBy(E,k=>k.totalValue).reverse():E,dt=it.uniqBy(n,"target").map(k=>({name:`target_${k.target}`,type:"target",label:`${k.target}`,color:typeof u=="string"||!u?u||Mt.Colors.graphMainColor:u[(c||it.uniqBy(n,"target").map(y=>`${y.target}`)).findIndex(y=>`${y}`==`${k.target}`)>u.length?u.length-1:(c||it.uniqBy(n,"target").map(y=>`${y.target}`)).findIndex(y=>`${y}`==`${k.target}`)],totalValue:Et.sum(n.filter(y=>`${y.target}`==`${k.target}`).map(y=>y.value))})),Dt=O==="asc"?ct.sortBy(dt,k=>k.totalValue):O==="desc"?ct.sortBy(dt,k=>k.totalValue).reverse():dt,pt=[...ut,...Dt];Bt({nodes:pt,links:n.map(k=>({source:pt.findIndex(y=>y.name===`source_${k.source}`),target:pt.findIndex(y=>y.name===`target_${k.target}`),value:k.value,data:{...k}}))})},[n,O,s,t,c,u]),q.useEffect(()=>{const E=new ResizeObserver(ut=>{o($||ut[0].target.clientWidth||620),K(b||ut[0].target.clientHeight||480)});return rt.current&&(K(rt.current.clientHeight||480),o(rt.current.clientWidth||620),$||E.observe(rt.current)),()=>E.disconnect()},[$,b]),f.jsxRuntimeExports.jsx("div",{className:`${U||"light"} flex ${$?"grow-0":"grow"} ${nt?"w-full":"w-fit"} `,dir:C==="he"||C==="ar"?"rtl":void 0,children:f.jsxRuntimeExports.jsx("div",{className:Z.cnExports.cn(`${S?S===!0?"bg-primary-gray-200 dark:bg-primary-gray-650 ":"":"bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${C||"en"}`,G?.graphContainer),style:{...F?.graphContainer||{},...S&&S!==!0?{backgroundColor:S}:{}},id:tt,ref:$t,"aria-label":ot||`${i?`The graph shows ${i}. `:""}This is a sankey chart showing flow. ${l?` ${l}`:""}`,children:f.jsxRuntimeExports.jsx("div",{className:"flex grow",style:{padding:S?d||"1rem":d||0},children:f.jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-4 w-full grow justify-between",children:[i||l||V||Y?f.jsxRuntimeExports.jsx(At.GraphHeader,{styles:{title:F?.title,description:F?.description},classNames:{title:G?.title,description:G?.description},graphTitle:i,graphDescription:l,width:$,graphDownload:V?$t.current:void 0,dataDownload:Y?n.map(E=>E.data).filter(E=>E!==void 0).length>0?n.map(E=>E.data).filter(E=>E!==void 0):n.filter(E=>E!==void 0):null}):null,f.jsxRuntimeExports.jsx("div",{className:"grow flex flex-col justify-center gap-3 w-full",children:n.length===0?f.jsxRuntimeExports.jsx(Gt.EmptyState,{}):f.jsxRuntimeExports.jsx("div",{className:"flex flex-col grow justify-center gap-3 w-full leading-0",ref:rt,"aria-label":"Graph area",children:($||Q)&&(b||M)&&bt?f.jsxRuntimeExports.jsx(ce,{data:bt,width:$||Q,nodePadding:r,nodeWidth:h,height:Math.max(P,b||(_?P?($||Q)*_>P?($||Q)*_:P:($||Q)*_:M)),showLabels:m,leftMargin:g,rightMargin:p,topMargin:j,bottomMargin:w,truncateBy:v,tooltip:L,onSeriesMouseOver:B,showValues:A,suffix:X,prefix:D,onSeriesMouseClick:et,id:Ft.generateRandomString(8),highlightedSourceDataPoints:x.map(E=>`${E}`),highlightedTargetDataPoints:N.map(E=>`${E}`),defaultLinkOpacity:T,sourceTitle:W,targetTitle:I,sortNodes:O,resetSelectionOnDoubleClick:H,styles:F,classNames:G,detailsOnClick:z,animate:st===!0?{duration:.5,once:!0,amount:.5}:st||{duration:0,once:!0,amount:0},precision:at,customLayers:lt}):null})}),a||R?f.jsxRuntimeExports.jsx(Wt.GraphFooter,{styles:{footnote:F?.footnote,source:F?.source},classNames:{footnote:G?.footnote,source:G?.source},sources:a,footNote:R,width:$}):null]})})})})}exports.SankeyChart=he;
|
|
1
|
+
import { j as h, m as rt } from "./index-CHPV5EwG-BPSP-7Jg.js";
|
|
2
|
+
import { useRef as wt, useState as Z, useEffect as _t } from "react";
|
|
3
|
+
import { u as ot } from "./index-CaAIPGZo.js";
|
|
4
|
+
import { s as ct } from "./index-DxagiOHo.js";
|
|
5
|
+
import { s as Nt } from "./index-D7ltPi18.js";
|
|
6
|
+
import { i as Ht } from "./index-27yTRcko.js";
|
|
7
|
+
import { X as Wt } from "./Modal-CUU6ZK3U.js";
|
|
8
|
+
import { u as ft } from "./Typography-Ctgfl1J5.js";
|
|
9
|
+
import { n as St } from "./numberFormattingFunction-14YCbkN2.js";
|
|
10
|
+
import { T as Rt } from "./Tooltip-DyM5snqx.js";
|
|
11
|
+
import { s as Gt } from "./string2HTML-CWHGfz_d.js";
|
|
12
|
+
import { u as qt } from "./use-in-view-BAHrBy6b.js";
|
|
13
|
+
import { m as mt } from "./proxy-DJxJg1kD.js";
|
|
14
|
+
import { A as Xt } from "./index-BxAUvrua.js";
|
|
15
|
+
import { GraphHeader as Ft } from "./GraphHeader.js";
|
|
16
|
+
import { GraphFooter as Yt } from "./GraphFooter.js";
|
|
17
|
+
import { Colors as Tt } from "./Colors.js";
|
|
18
|
+
import { g as Ut } from "./generateRandomString-za3IQGfQ.js";
|
|
19
|
+
import { E as Zt } from "./EmptyState-DdTp-Mdn.js";
|
|
20
|
+
function Ct(e, n) {
|
|
21
|
+
let i;
|
|
22
|
+
if (n === void 0)
|
|
23
|
+
for (const a of e)
|
|
24
|
+
a != null && (i < a || i === void 0 && a >= a) && (i = a);
|
|
25
|
+
else {
|
|
26
|
+
let a = -1;
|
|
27
|
+
for (let l of e)
|
|
28
|
+
(l = n(l, ++a, e)) != null && (i < l || i === void 0 && l >= l) && (i = l);
|
|
29
|
+
}
|
|
30
|
+
return i;
|
|
31
|
+
}
|
|
32
|
+
function Bt(e, n) {
|
|
33
|
+
let i;
|
|
34
|
+
if (n === void 0)
|
|
35
|
+
for (const a of e)
|
|
36
|
+
a != null && (i > a || i === void 0 && a >= a) && (i = a);
|
|
37
|
+
else {
|
|
38
|
+
let a = -1;
|
|
39
|
+
for (let l of e)
|
|
40
|
+
(l = n(l, ++a, e)) != null && (i > l || i === void 0 && l >= l) && (i = l);
|
|
41
|
+
}
|
|
42
|
+
return i;
|
|
43
|
+
}
|
|
44
|
+
function yt(e, n) {
|
|
45
|
+
let i = 0;
|
|
46
|
+
if (n === void 0)
|
|
47
|
+
for (let a of e)
|
|
48
|
+
(a = +a) && (i += a);
|
|
49
|
+
else {
|
|
50
|
+
let a = -1;
|
|
51
|
+
for (let l of e)
|
|
52
|
+
(l = +n(l, ++a, e)) && (i += l);
|
|
53
|
+
}
|
|
54
|
+
return i;
|
|
55
|
+
}
|
|
56
|
+
function Qt(e) {
|
|
57
|
+
return e.target.depth;
|
|
58
|
+
}
|
|
59
|
+
function Jt(e, n) {
|
|
60
|
+
return e.sourceLinks.length ? e.depth : n - 1;
|
|
61
|
+
}
|
|
62
|
+
function xt(e) {
|
|
63
|
+
return e.targetLinks.length ? e.depth : e.sourceLinks.length ? Bt(e.sourceLinks, Qt) - 1 : 0;
|
|
64
|
+
}
|
|
65
|
+
function ht(e) {
|
|
66
|
+
return function() {
|
|
67
|
+
return e;
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function Ot(e, n) {
|
|
71
|
+
return gt(e.source, n.source) || e.index - n.index;
|
|
72
|
+
}
|
|
73
|
+
function Dt(e, n) {
|
|
74
|
+
return gt(e.target, n.target) || e.index - n.index;
|
|
75
|
+
}
|
|
76
|
+
function gt(e, n) {
|
|
77
|
+
return e.y0 - n.y0;
|
|
78
|
+
}
|
|
79
|
+
function vt(e) {
|
|
80
|
+
return e.value;
|
|
81
|
+
}
|
|
82
|
+
function Kt(e) {
|
|
83
|
+
return e.index;
|
|
84
|
+
}
|
|
85
|
+
function te(e) {
|
|
86
|
+
return e.nodes;
|
|
87
|
+
}
|
|
88
|
+
function ee(e) {
|
|
89
|
+
return e.links;
|
|
90
|
+
}
|
|
91
|
+
function Vt(e, n) {
|
|
92
|
+
const i = e.get(n);
|
|
93
|
+
if (!i) throw new Error("missing: " + n);
|
|
94
|
+
return i;
|
|
95
|
+
}
|
|
96
|
+
function zt({ nodes: e }) {
|
|
97
|
+
for (const n of e) {
|
|
98
|
+
let i = n.y0, a = i;
|
|
99
|
+
for (const l of n.sourceLinks)
|
|
100
|
+
l.y0 = i + l.width / 2, i += l.width;
|
|
101
|
+
for (const l of n.targetLinks)
|
|
102
|
+
l.y1 = a + l.width / 2, a += l.width;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
function kt() {
|
|
106
|
+
let e = 0, n = 0, i = 1, a = 1, l = 24, y = 8, g, p = Kt, v = Jt, b, k, $ = te, j = ee, N = 6;
|
|
107
|
+
function d() {
|
|
108
|
+
const t = { nodes: $.apply(null, arguments), links: j.apply(null, arguments) };
|
|
109
|
+
return S(t), M(t), z(t), X(t), W(t), zt(t), t;
|
|
110
|
+
}
|
|
111
|
+
d.update = function(t) {
|
|
112
|
+
return zt(t), t;
|
|
113
|
+
}, d.nodeId = function(t) {
|
|
114
|
+
return arguments.length ? (p = typeof t == "function" ? t : ht(t), d) : p;
|
|
115
|
+
}, d.nodeAlign = function(t) {
|
|
116
|
+
return arguments.length ? (v = typeof t == "function" ? t : ht(t), d) : v;
|
|
117
|
+
}, d.nodeSort = function(t) {
|
|
118
|
+
return arguments.length ? (b = t, d) : b;
|
|
119
|
+
}, d.nodeWidth = function(t) {
|
|
120
|
+
return arguments.length ? (l = +t, d) : l;
|
|
121
|
+
}, d.nodePadding = function(t) {
|
|
122
|
+
return arguments.length ? (y = g = +t, d) : y;
|
|
123
|
+
}, d.nodes = function(t) {
|
|
124
|
+
return arguments.length ? ($ = typeof t == "function" ? t : ht(t), d) : $;
|
|
125
|
+
}, d.links = function(t) {
|
|
126
|
+
return arguments.length ? (j = typeof t == "function" ? t : ht(t), d) : j;
|
|
127
|
+
}, d.linkSort = function(t) {
|
|
128
|
+
return arguments.length ? (k = t, d) : k;
|
|
129
|
+
}, d.size = function(t) {
|
|
130
|
+
return arguments.length ? (e = n = 0, i = +t[0], a = +t[1], d) : [i - e, a - n];
|
|
131
|
+
}, d.extent = function(t) {
|
|
132
|
+
return arguments.length ? (e = +t[0][0], i = +t[1][0], n = +t[0][1], a = +t[1][1], d) : [[e, n], [i, a]];
|
|
133
|
+
}, d.iterations = function(t) {
|
|
134
|
+
return arguments.length ? (N = +t, d) : N;
|
|
135
|
+
};
|
|
136
|
+
function S({ nodes: t, links: u }) {
|
|
137
|
+
for (const [c, r] of t.entries())
|
|
138
|
+
r.index = c, r.sourceLinks = [], r.targetLinks = [];
|
|
139
|
+
const s = new Map(t.map((c, r) => [p(c, r, t), c]));
|
|
140
|
+
for (const [c, r] of u.entries()) {
|
|
141
|
+
r.index = c;
|
|
142
|
+
let { source: f, target: m } = r;
|
|
143
|
+
typeof f != "object" && (f = r.source = Vt(s, f)), typeof m != "object" && (m = r.target = Vt(s, m)), f.sourceLinks.push(r), m.targetLinks.push(r);
|
|
144
|
+
}
|
|
145
|
+
if (k != null)
|
|
146
|
+
for (const { sourceLinks: c, targetLinks: r } of t)
|
|
147
|
+
c.sort(k), r.sort(k);
|
|
148
|
+
}
|
|
149
|
+
function M({ nodes: t }) {
|
|
150
|
+
for (const u of t)
|
|
151
|
+
u.value = u.fixedValue === void 0 ? Math.max(yt(u.sourceLinks, vt), yt(u.targetLinks, vt)) : u.fixedValue;
|
|
152
|
+
}
|
|
153
|
+
function z({ nodes: t }) {
|
|
154
|
+
const u = t.length;
|
|
155
|
+
let s = new Set(t), c = /* @__PURE__ */ new Set(), r = 0;
|
|
156
|
+
for (; s.size; ) {
|
|
157
|
+
for (const f of s) {
|
|
158
|
+
f.depth = r;
|
|
159
|
+
for (const { target: m } of f.sourceLinks)
|
|
160
|
+
c.add(m);
|
|
161
|
+
}
|
|
162
|
+
if (++r > u) throw new Error("circular link");
|
|
163
|
+
s = c, c = /* @__PURE__ */ new Set();
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
function X({ nodes: t }) {
|
|
167
|
+
const u = t.length;
|
|
168
|
+
let s = new Set(t), c = /* @__PURE__ */ new Set(), r = 0;
|
|
169
|
+
for (; s.size; ) {
|
|
170
|
+
for (const f of s) {
|
|
171
|
+
f.height = r;
|
|
172
|
+
for (const { source: m } of f.targetLinks)
|
|
173
|
+
c.add(m);
|
|
174
|
+
}
|
|
175
|
+
if (++r > u) throw new Error("circular link");
|
|
176
|
+
s = c, c = /* @__PURE__ */ new Set();
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
function P({ nodes: t }) {
|
|
180
|
+
const u = Ct(t, (r) => r.depth) + 1, s = (i - e - l) / (u - 1), c = new Array(u);
|
|
181
|
+
for (const r of t) {
|
|
182
|
+
const f = Math.max(0, Math.min(u - 1, Math.floor(v.call(null, r, u))));
|
|
183
|
+
r.layer = f, r.x0 = e + f * s, r.x1 = r.x0 + l, c[f] ? c[f].push(r) : c[f] = [r];
|
|
184
|
+
}
|
|
185
|
+
if (b) for (const r of c)
|
|
186
|
+
r.sort(b);
|
|
187
|
+
return c;
|
|
188
|
+
}
|
|
189
|
+
function T(t) {
|
|
190
|
+
const u = Bt(t, (s) => (a - n - (s.length - 1) * g) / yt(s, vt));
|
|
191
|
+
for (const s of t) {
|
|
192
|
+
let c = n;
|
|
193
|
+
for (const r of s) {
|
|
194
|
+
r.y0 = c, r.y1 = c + r.value * u, c = r.y1 + g;
|
|
195
|
+
for (const f of r.sourceLinks)
|
|
196
|
+
f.width = f.value * u;
|
|
197
|
+
}
|
|
198
|
+
c = (a - c + g) / (s.length + 1);
|
|
199
|
+
for (let r = 0; r < s.length; ++r) {
|
|
200
|
+
const f = s[r];
|
|
201
|
+
f.y0 += c * (r + 1), f.y1 += c * (r + 1);
|
|
202
|
+
}
|
|
203
|
+
I(s);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
function W(t) {
|
|
207
|
+
const u = P(t);
|
|
208
|
+
g = Math.min(y, (a - n) / (Ct(u, (s) => s.length) - 1)), T(u);
|
|
209
|
+
for (let s = 0; s < N; ++s) {
|
|
210
|
+
const c = Math.pow(0.99, s), r = Math.max(1 - c, (s + 1) / N);
|
|
211
|
+
tt(u, c, r), K(u, c, r);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
function K(t, u, s) {
|
|
215
|
+
for (let c = 1, r = t.length; c < r; ++c) {
|
|
216
|
+
const f = t[c];
|
|
217
|
+
for (const m of f) {
|
|
218
|
+
let C = 0, O = 0;
|
|
219
|
+
for (const { source: E, value: V } of m.targetLinks) {
|
|
220
|
+
let H = V * (m.layer - E.layer);
|
|
221
|
+
C += Y(E, m) * H, O += H;
|
|
222
|
+
}
|
|
223
|
+
if (!(O > 0)) continue;
|
|
224
|
+
let R = (C / O - m.y0) * u;
|
|
225
|
+
m.y0 += R, m.y1 += R, D(m);
|
|
226
|
+
}
|
|
227
|
+
b === void 0 && f.sort(gt), B(f, s);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
function tt(t, u, s) {
|
|
231
|
+
for (let c = t.length, r = c - 2; r >= 0; --r) {
|
|
232
|
+
const f = t[r];
|
|
233
|
+
for (const m of f) {
|
|
234
|
+
let C = 0, O = 0;
|
|
235
|
+
for (const { target: E, value: V } of m.sourceLinks) {
|
|
236
|
+
let H = V * (E.layer - m.layer);
|
|
237
|
+
C += nt(m, E) * H, O += H;
|
|
238
|
+
}
|
|
239
|
+
if (!(O > 0)) continue;
|
|
240
|
+
let R = (C / O - m.y0) * u;
|
|
241
|
+
m.y0 += R, m.y1 += R, D(m);
|
|
242
|
+
}
|
|
243
|
+
b === void 0 && f.sort(gt), B(f, s);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
function B(t, u) {
|
|
247
|
+
const s = t.length >> 1, c = t[s];
|
|
248
|
+
et(t, c.y0 - g, s - 1, u), F(t, c.y1 + g, s + 1, u), et(t, a, t.length - 1, u), F(t, n, 0, u);
|
|
249
|
+
}
|
|
250
|
+
function F(t, u, s, c) {
|
|
251
|
+
for (; s < t.length; ++s) {
|
|
252
|
+
const r = t[s], f = (u - r.y0) * c;
|
|
253
|
+
f > 1e-6 && (r.y0 += f, r.y1 += f), u = r.y1 + g;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
function et(t, u, s, c) {
|
|
257
|
+
for (; s >= 0; --s) {
|
|
258
|
+
const r = t[s], f = (r.y1 - u) * c;
|
|
259
|
+
f > 1e-6 && (r.y0 -= f, r.y1 -= f), u = r.y0 - g;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
function D({ sourceLinks: t, targetLinks: u }) {
|
|
263
|
+
if (k === void 0) {
|
|
264
|
+
for (const { source: { sourceLinks: s } } of u)
|
|
265
|
+
s.sort(Dt);
|
|
266
|
+
for (const { target: { targetLinks: s } } of t)
|
|
267
|
+
s.sort(Ot);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
function I(t) {
|
|
271
|
+
if (k === void 0)
|
|
272
|
+
for (const { sourceLinks: u, targetLinks: s } of t)
|
|
273
|
+
u.sort(Dt), s.sort(Ot);
|
|
274
|
+
}
|
|
275
|
+
function Y(t, u) {
|
|
276
|
+
let s = t.y0 - (t.sourceLinks.length - 1) * g / 2;
|
|
277
|
+
for (const { target: c, width: r } of t.sourceLinks) {
|
|
278
|
+
if (c === u) break;
|
|
279
|
+
s += r + g;
|
|
280
|
+
}
|
|
281
|
+
for (const { source: c, width: r } of u.targetLinks) {
|
|
282
|
+
if (c === t) break;
|
|
283
|
+
s -= r;
|
|
284
|
+
}
|
|
285
|
+
return s;
|
|
286
|
+
}
|
|
287
|
+
function nt(t, u) {
|
|
288
|
+
let s = u.y0 - (u.targetLinks.length - 1) * g / 2;
|
|
289
|
+
for (const { source: c, width: r } of u.targetLinks) {
|
|
290
|
+
if (c === t) break;
|
|
291
|
+
s += r + g;
|
|
292
|
+
}
|
|
293
|
+
for (const { target: c, width: r } of t.sourceLinks) {
|
|
294
|
+
if (c === u) break;
|
|
295
|
+
s -= r;
|
|
296
|
+
}
|
|
297
|
+
return s;
|
|
298
|
+
}
|
|
299
|
+
return d;
|
|
300
|
+
}
|
|
301
|
+
var bt = Math.PI, $t = 2 * bt, J = 1e-6, ne = $t - J;
|
|
302
|
+
function jt() {
|
|
303
|
+
this._x0 = this._y0 = // start of current subpath
|
|
304
|
+
this._x1 = this._y1 = null, this._ = "";
|
|
305
|
+
}
|
|
306
|
+
function It() {
|
|
307
|
+
return new jt();
|
|
308
|
+
}
|
|
309
|
+
jt.prototype = It.prototype = {
|
|
310
|
+
constructor: jt,
|
|
311
|
+
moveTo: function(e, n) {
|
|
312
|
+
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +n);
|
|
313
|
+
},
|
|
314
|
+
closePath: function() {
|
|
315
|
+
this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._ += "Z");
|
|
316
|
+
},
|
|
317
|
+
lineTo: function(e, n) {
|
|
318
|
+
this._ += "L" + (this._x1 = +e) + "," + (this._y1 = +n);
|
|
319
|
+
},
|
|
320
|
+
quadraticCurveTo: function(e, n, i, a) {
|
|
321
|
+
this._ += "Q" + +e + "," + +n + "," + (this._x1 = +i) + "," + (this._y1 = +a);
|
|
322
|
+
},
|
|
323
|
+
bezierCurveTo: function(e, n, i, a, l, y) {
|
|
324
|
+
this._ += "C" + +e + "," + +n + "," + +i + "," + +a + "," + (this._x1 = +l) + "," + (this._y1 = +y);
|
|
325
|
+
},
|
|
326
|
+
arcTo: function(e, n, i, a, l) {
|
|
327
|
+
e = +e, n = +n, i = +i, a = +a, l = +l;
|
|
328
|
+
var y = this._x1, g = this._y1, p = i - e, v = a - n, b = y - e, k = g - n, $ = b * b + k * k;
|
|
329
|
+
if (l < 0) throw new Error("negative radius: " + l);
|
|
330
|
+
if (this._x1 === null)
|
|
331
|
+
this._ += "M" + (this._x1 = e) + "," + (this._y1 = n);
|
|
332
|
+
else if ($ > J) if (!(Math.abs(k * p - v * b) > J) || !l)
|
|
333
|
+
this._ += "L" + (this._x1 = e) + "," + (this._y1 = n);
|
|
334
|
+
else {
|
|
335
|
+
var j = i - y, N = a - g, d = p * p + v * v, S = j * j + N * N, M = Math.sqrt(d), z = Math.sqrt($), X = l * Math.tan((bt - Math.acos((d + $ - S) / (2 * M * z))) / 2), P = X / z, T = X / M;
|
|
336
|
+
Math.abs(P - 1) > J && (this._ += "L" + (e + P * b) + "," + (n + P * k)), this._ += "A" + l + "," + l + ",0,0," + +(k * j > b * N) + "," + (this._x1 = e + T * p) + "," + (this._y1 = n + T * v);
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
arc: function(e, n, i, a, l, y) {
|
|
340
|
+
e = +e, n = +n, i = +i, y = !!y;
|
|
341
|
+
var g = i * Math.cos(a), p = i * Math.sin(a), v = e + g, b = n + p, k = 1 ^ y, $ = y ? a - l : l - a;
|
|
342
|
+
if (i < 0) throw new Error("negative radius: " + i);
|
|
343
|
+
this._x1 === null ? this._ += "M" + v + "," + b : (Math.abs(this._x1 - v) > J || Math.abs(this._y1 - b) > J) && (this._ += "L" + v + "," + b), i && ($ < 0 && ($ = $ % $t + $t), $ > ne ? this._ += "A" + i + "," + i + ",0,1," + k + "," + (e - g) + "," + (n - p) + "A" + i + "," + i + ",0,1," + k + "," + (this._x1 = v) + "," + (this._y1 = b) : $ > J && (this._ += "A" + i + "," + i + ",0," + +($ >= bt) + "," + k + "," + (this._x1 = e + i * Math.cos(l)) + "," + (this._y1 = n + i * Math.sin(l))));
|
|
344
|
+
},
|
|
345
|
+
rect: function(e, n, i, a) {
|
|
346
|
+
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +n) + "h" + +i + "v" + +a + "h" + -i + "Z";
|
|
347
|
+
},
|
|
348
|
+
toString: function() {
|
|
349
|
+
return this._;
|
|
350
|
+
}
|
|
351
|
+
};
|
|
352
|
+
function Pt(e) {
|
|
353
|
+
return function() {
|
|
354
|
+
return e;
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
function oe(e) {
|
|
358
|
+
return e[0];
|
|
359
|
+
}
|
|
360
|
+
function ie(e) {
|
|
361
|
+
return e[1];
|
|
362
|
+
}
|
|
363
|
+
var re = Array.prototype.slice;
|
|
364
|
+
function se(e) {
|
|
365
|
+
return e.source;
|
|
366
|
+
}
|
|
367
|
+
function ae(e) {
|
|
368
|
+
return e.target;
|
|
369
|
+
}
|
|
370
|
+
function le(e) {
|
|
371
|
+
var n = se, i = ae, a = oe, l = ie, y = null;
|
|
372
|
+
function g() {
|
|
373
|
+
var p, v = re.call(arguments), b = n.apply(this, v), k = i.apply(this, v);
|
|
374
|
+
if (y || (y = p = It()), e(y, +a.apply(this, (v[0] = b, v)), +l.apply(this, v), +a.apply(this, (v[0] = k, v)), +l.apply(this, v)), p) return y = null, p + "" || null;
|
|
375
|
+
}
|
|
376
|
+
return g.source = function(p) {
|
|
377
|
+
return arguments.length ? (n = p, g) : n;
|
|
378
|
+
}, g.target = function(p) {
|
|
379
|
+
return arguments.length ? (i = p, g) : i;
|
|
380
|
+
}, g.x = function(p) {
|
|
381
|
+
return arguments.length ? (a = typeof p == "function" ? p : Pt(+p), g) : a;
|
|
382
|
+
}, g.y = function(p) {
|
|
383
|
+
return arguments.length ? (l = typeof p == "function" ? p : Pt(+p), g) : l;
|
|
384
|
+
}, g.context = function(p) {
|
|
385
|
+
return arguments.length ? (y = p ?? null, g) : y;
|
|
386
|
+
}, g;
|
|
387
|
+
}
|
|
388
|
+
function ue(e, n, i, a, l) {
|
|
389
|
+
e.moveTo(n, i), e.bezierCurveTo(n = (n + a) / 2, i, n, l, a, l);
|
|
390
|
+
}
|
|
391
|
+
function ce() {
|
|
392
|
+
return le(ue);
|
|
393
|
+
}
|
|
394
|
+
function fe(e) {
|
|
395
|
+
return [e.source.x1, e.y0];
|
|
396
|
+
}
|
|
397
|
+
function he(e) {
|
|
398
|
+
return [e.target.x0, e.y1];
|
|
399
|
+
}
|
|
400
|
+
function ge() {
|
|
401
|
+
return ce().source(fe).target(he);
|
|
402
|
+
}
|
|
403
|
+
function de(e) {
|
|
404
|
+
const {
|
|
405
|
+
data: n,
|
|
406
|
+
showLabels: i,
|
|
407
|
+
leftMargin: a,
|
|
408
|
+
rightMargin: l,
|
|
409
|
+
truncateBy: y,
|
|
410
|
+
width: g,
|
|
411
|
+
height: p,
|
|
412
|
+
topMargin: v,
|
|
413
|
+
bottomMargin: b,
|
|
414
|
+
tooltip: k,
|
|
415
|
+
onSeriesMouseOver: $,
|
|
416
|
+
suffix: j,
|
|
417
|
+
prefix: N,
|
|
418
|
+
showValues: d,
|
|
419
|
+
onSeriesMouseClick: S,
|
|
420
|
+
nodePadding: M,
|
|
421
|
+
nodeWidth: z,
|
|
422
|
+
id: X,
|
|
423
|
+
highlightedSourceDataPoints: P,
|
|
424
|
+
highlightedTargetDataPoints: T,
|
|
425
|
+
defaultLinkOpacity: W,
|
|
426
|
+
sourceTitle: K,
|
|
427
|
+
targetTitle: tt,
|
|
428
|
+
animate: B,
|
|
429
|
+
sortNodes: F,
|
|
430
|
+
resetSelectionOnDoubleClick: et,
|
|
431
|
+
detailsOnClick: D,
|
|
432
|
+
styles: I,
|
|
433
|
+
classNames: Y,
|
|
434
|
+
precision: nt,
|
|
435
|
+
customLayers: t
|
|
436
|
+
} = e, u = wt(null), s = qt(u, {
|
|
437
|
+
once: B.once,
|
|
438
|
+
amount: B.amount
|
|
439
|
+
}), [c, r] = Z(void 0), [f, m] = Z(void 0), [C, O] = Z(void 0), [R, E] = Z(void 0), [V, H] = Z(void 0), A = {
|
|
440
|
+
top: v,
|
|
441
|
+
bottom: b,
|
|
442
|
+
left: a,
|
|
443
|
+
right: l
|
|
444
|
+
}, G = g - A.left - A.right, q = p - A.top - A.bottom, st = F === "mostReadable" ? kt().nodeWidth(z).nodePadding(M).size([G, q]).nodeAlign(xt) : F === "none" ? kt().nodeWidth(z).nodePadding(M).size([G, q]).nodeAlign(xt).nodeSort(() => null).linkSort(() => null) : kt().nodeWidth(z).nodePadding(M).size([G, q]).nodeAlign(xt).nodeSort(
|
|
445
|
+
F === "desc" ? (o, _) => (_.value || 0) - (o.value || 0) : (o, _) => (o.value || 0) - (_.value || 0)
|
|
446
|
+
), { nodes: at, links: lt } = st(n), Q = ge();
|
|
447
|
+
return /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
448
|
+
/* @__PURE__ */ h.jsxs(
|
|
449
|
+
mt.svg,
|
|
450
|
+
{
|
|
451
|
+
width: `${g}px`,
|
|
452
|
+
height: `${p}px`,
|
|
453
|
+
viewBox: `0 0 ${g} ${p}`,
|
|
454
|
+
style: { marginLeft: "auto", marginRight: "auto" },
|
|
455
|
+
direction: "ltr",
|
|
456
|
+
ref: u,
|
|
457
|
+
children: [
|
|
458
|
+
K ? /* @__PURE__ */ h.jsx(
|
|
459
|
+
"text",
|
|
460
|
+
{
|
|
461
|
+
x: A.left,
|
|
462
|
+
y: A.top - 10,
|
|
463
|
+
className: "text-base font-bold fill-primary-gray-700 dark:fill-primary-gray-100",
|
|
464
|
+
style: { textAnchor: "start" },
|
|
465
|
+
children: K
|
|
466
|
+
}
|
|
467
|
+
) : null,
|
|
468
|
+
tt ? /* @__PURE__ */ h.jsx(
|
|
469
|
+
"text",
|
|
470
|
+
{
|
|
471
|
+
x: g - A.right,
|
|
472
|
+
y: A.top - 10,
|
|
473
|
+
className: "text-base font-bold fill-primary-gray-700 dark:fill-primary-gray-100",
|
|
474
|
+
style: { textAnchor: "end" },
|
|
475
|
+
children: tt
|
|
476
|
+
}
|
|
477
|
+
) : null,
|
|
478
|
+
/* @__PURE__ */ h.jsxs("g", { transform: `translate(${A.left},${A.top})`, children: [
|
|
479
|
+
t.filter((o) => o.position === "before").map((o) => o.layer),
|
|
480
|
+
at.filter((o) => o.type === "source").map((o, _) => /* @__PURE__ */ h.jsx(
|
|
481
|
+
"g",
|
|
482
|
+
{
|
|
483
|
+
onMouseEnter: () => {
|
|
484
|
+
O(o);
|
|
485
|
+
},
|
|
486
|
+
onMouseLeave: () => {
|
|
487
|
+
O(void 0);
|
|
488
|
+
},
|
|
489
|
+
children: /* @__PURE__ */ h.jsxs("g", { transform: `translate(${o.x0},${o.y0})`, children: [
|
|
490
|
+
/* @__PURE__ */ h.jsx(
|
|
491
|
+
"rect",
|
|
492
|
+
{
|
|
493
|
+
x: 0,
|
|
494
|
+
y: 0,
|
|
495
|
+
width: (o.x1 || 0) - (o.x0 || 0),
|
|
496
|
+
height: (o.y1 || 0) - (o.y0 || 0),
|
|
497
|
+
style: { fill: o.color }
|
|
498
|
+
}
|
|
499
|
+
),
|
|
500
|
+
i || d ? /* @__PURE__ */ h.jsx(
|
|
501
|
+
"foreignObject",
|
|
502
|
+
{
|
|
503
|
+
y: 0 - M / 2,
|
|
504
|
+
x: 0 - a,
|
|
505
|
+
width: a,
|
|
506
|
+
height: (o.y1 || 0) - (o.y0 || 0) + M,
|
|
507
|
+
children: /* @__PURE__ */ h.jsxs(
|
|
508
|
+
"div",
|
|
509
|
+
{
|
|
510
|
+
className: "flex flex-col gap-0.5 justify-center py-0 px-1.5",
|
|
511
|
+
style: {
|
|
512
|
+
height: `${(o.y1 || 0) - (o.y0 || 0) + M}px`,
|
|
513
|
+
overflow: "visible"
|
|
514
|
+
},
|
|
515
|
+
children: [
|
|
516
|
+
i ? /* @__PURE__ */ h.jsx(
|
|
517
|
+
ft,
|
|
518
|
+
{
|
|
519
|
+
marginBottom: d ? "3xs" : "none",
|
|
520
|
+
size: "sm",
|
|
521
|
+
leading: "none",
|
|
522
|
+
className: rt(
|
|
523
|
+
"sankey-right-label text-right",
|
|
524
|
+
Y?.graphObjectValues
|
|
525
|
+
),
|
|
526
|
+
style: {
|
|
527
|
+
hyphens: "auto",
|
|
528
|
+
color: o.color,
|
|
529
|
+
...I?.graphObjectValues
|
|
530
|
+
},
|
|
531
|
+
children: `${o.label}`.length < y ? `${o.label}` : `${`${o.label}`.substring(0, y)}...`
|
|
532
|
+
}
|
|
533
|
+
) : null,
|
|
534
|
+
d ? /* @__PURE__ */ h.jsx(
|
|
535
|
+
ft,
|
|
536
|
+
{
|
|
537
|
+
marginBottom: "none",
|
|
538
|
+
size: "sm",
|
|
539
|
+
leading: "none",
|
|
540
|
+
className: rt(
|
|
541
|
+
"sankey-right-value text-right font-bold",
|
|
542
|
+
Y?.graphObjectValues
|
|
543
|
+
),
|
|
544
|
+
style: {
|
|
545
|
+
hyphens: "auto",
|
|
546
|
+
color: o.color,
|
|
547
|
+
...I?.graphObjectValues
|
|
548
|
+
},
|
|
549
|
+
children: St(o.value, "NA", nt, N, j)
|
|
550
|
+
}
|
|
551
|
+
) : null
|
|
552
|
+
]
|
|
553
|
+
}
|
|
554
|
+
)
|
|
555
|
+
}
|
|
556
|
+
) : null
|
|
557
|
+
] })
|
|
558
|
+
},
|
|
559
|
+
_
|
|
560
|
+
)),
|
|
561
|
+
at.filter((o) => o.type === "target").map((o, _) => /* @__PURE__ */ h.jsx(
|
|
562
|
+
"g",
|
|
563
|
+
{
|
|
564
|
+
onMouseEnter: () => {
|
|
565
|
+
O(o);
|
|
566
|
+
},
|
|
567
|
+
onMouseLeave: () => {
|
|
568
|
+
O(void 0);
|
|
569
|
+
},
|
|
570
|
+
children: /* @__PURE__ */ h.jsxs("g", { transform: `translate(${o.x0},${o.y0})`, children: [
|
|
571
|
+
/* @__PURE__ */ h.jsx(
|
|
572
|
+
"rect",
|
|
573
|
+
{
|
|
574
|
+
x: 0,
|
|
575
|
+
y: 0,
|
|
576
|
+
width: (o.x1 || 0) - (o.x0 || 0),
|
|
577
|
+
height: (o.y1 || 0) - (o.y0 || 0),
|
|
578
|
+
style: { fill: o.color }
|
|
579
|
+
}
|
|
580
|
+
),
|
|
581
|
+
i || d ? /* @__PURE__ */ h.jsx(
|
|
582
|
+
"foreignObject",
|
|
583
|
+
{
|
|
584
|
+
y: 0 - M / 2,
|
|
585
|
+
x: z,
|
|
586
|
+
width: l - z,
|
|
587
|
+
height: (o.y1 || 0) - (o.y0 || 0) + M,
|
|
588
|
+
children: /* @__PURE__ */ h.jsxs(
|
|
589
|
+
"div",
|
|
590
|
+
{
|
|
591
|
+
className: "flex flex-col gap-0.5 justify-center py-0 px-1.5",
|
|
592
|
+
style: {
|
|
593
|
+
height: `${(o.y1 || 0) - (o.y0 || 0) + M}px`
|
|
594
|
+
},
|
|
595
|
+
children: [
|
|
596
|
+
i ? /* @__PURE__ */ h.jsx(
|
|
597
|
+
ft,
|
|
598
|
+
{
|
|
599
|
+
marginBottom: d ? "3xs" : "none",
|
|
600
|
+
size: "sm",
|
|
601
|
+
leading: "none",
|
|
602
|
+
className: rt(
|
|
603
|
+
"sankey-left-label text-left",
|
|
604
|
+
Y?.graphObjectValues
|
|
605
|
+
),
|
|
606
|
+
style: {
|
|
607
|
+
hyphens: "auto",
|
|
608
|
+
color: o.color,
|
|
609
|
+
...I?.graphObjectValues
|
|
610
|
+
},
|
|
611
|
+
children: `${o.label}`.length < y ? `${o.label}` : `${`${o.label}`.substring(0, y)}...`
|
|
612
|
+
}
|
|
613
|
+
) : null,
|
|
614
|
+
d ? /* @__PURE__ */ h.jsx(
|
|
615
|
+
ft,
|
|
616
|
+
{
|
|
617
|
+
size: "sm",
|
|
618
|
+
leading: "none",
|
|
619
|
+
marginBottom: "none",
|
|
620
|
+
className: rt(
|
|
621
|
+
"sankey-left-value text-left font-bold",
|
|
622
|
+
Y?.graphObjectValues
|
|
623
|
+
),
|
|
624
|
+
style: {
|
|
625
|
+
hyphens: "auto",
|
|
626
|
+
color: o.color,
|
|
627
|
+
...I?.graphObjectValues
|
|
628
|
+
},
|
|
629
|
+
children: St(o.value, "NA", nt, N, j)
|
|
630
|
+
}
|
|
631
|
+
) : null
|
|
632
|
+
]
|
|
633
|
+
}
|
|
634
|
+
)
|
|
635
|
+
}
|
|
636
|
+
) : null
|
|
637
|
+
] })
|
|
638
|
+
},
|
|
639
|
+
_
|
|
640
|
+
)),
|
|
641
|
+
/* @__PURE__ */ h.jsx("defs", { children: lt.map((o, _) => /* @__PURE__ */ h.jsxs(
|
|
642
|
+
"linearGradient",
|
|
643
|
+
{
|
|
644
|
+
id: `${X}-gradient-${_}`,
|
|
645
|
+
x1: "0%",
|
|
646
|
+
y1: "0%",
|
|
647
|
+
x2: "100%",
|
|
648
|
+
y2: "0%",
|
|
649
|
+
gradientUnits: "userSpaceOnUse",
|
|
650
|
+
children: [
|
|
651
|
+
/* @__PURE__ */ h.jsx(
|
|
652
|
+
"stop",
|
|
653
|
+
{
|
|
654
|
+
offset: "0%",
|
|
655
|
+
style: {
|
|
656
|
+
stopColor: o.source.color,
|
|
657
|
+
stopOpacity: 1
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
),
|
|
661
|
+
/* @__PURE__ */ h.jsx(
|
|
662
|
+
"stop",
|
|
663
|
+
{
|
|
664
|
+
offset: "100%",
|
|
665
|
+
style: {
|
|
666
|
+
stopColor: o.target.color,
|
|
667
|
+
stopOpacity: 1
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
)
|
|
671
|
+
]
|
|
672
|
+
},
|
|
673
|
+
_
|
|
674
|
+
)) }),
|
|
675
|
+
/* @__PURE__ */ h.jsx("g", { children: /* @__PURE__ */ h.jsx(Xt, { children: lt.map((o, _) => /* @__PURE__ */ h.jsx(
|
|
676
|
+
mt.g,
|
|
677
|
+
{
|
|
678
|
+
className: "undp-viz-g-with-hover",
|
|
679
|
+
onMouseEnter: (U) => {
|
|
680
|
+
r(o.data), H(U.clientY), E(U.clientX), $?.(o);
|
|
681
|
+
},
|
|
682
|
+
onMouseMove: (U) => {
|
|
683
|
+
r(o.data), H(U.clientY), E(U.clientX);
|
|
684
|
+
},
|
|
685
|
+
onClick: () => {
|
|
686
|
+
(S || D) && (// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
687
|
+
Ht(f, o.data) && et ? (m(void 0), S?.(void 0)) : (m(o.data), S?.(o.data)));
|
|
688
|
+
},
|
|
689
|
+
onMouseLeave: () => {
|
|
690
|
+
r(void 0), E(void 0), H(void 0), $?.(void 0);
|
|
691
|
+
},
|
|
692
|
+
variants: {
|
|
693
|
+
initial: {
|
|
694
|
+
opacity: C ? (
|
|
695
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
696
|
+
o.source.name === C.name || // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
697
|
+
o.target.name === C.name ? 0.85 : W
|
|
698
|
+
) : (P.length !== 0 || T.length !== 0) && (P.indexOf(
|
|
699
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
700
|
+
o.source.label
|
|
701
|
+
) !== -1 || T.indexOf(
|
|
702
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
703
|
+
o.target.label
|
|
704
|
+
) !== -1) ? 0.85 : W
|
|
705
|
+
},
|
|
706
|
+
whileInView: {
|
|
707
|
+
opacity: C ? (
|
|
708
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
709
|
+
o.source.name === C.name || // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
710
|
+
o.target.name === C.name ? 0.85 : W
|
|
711
|
+
) : (P.length !== 0 || T.length !== 0) && (P.indexOf(
|
|
712
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
713
|
+
o.source.label
|
|
714
|
+
) !== -1 || T.indexOf(
|
|
715
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
716
|
+
o.target.label
|
|
717
|
+
) !== -1) ? 0.85 : W,
|
|
718
|
+
transition: { duration: B.duration }
|
|
719
|
+
}
|
|
720
|
+
},
|
|
721
|
+
initial: "initial",
|
|
722
|
+
animate: s ? "whileInView" : "initial",
|
|
723
|
+
exit: { opacity: 0, transition: { duration: B.duration } },
|
|
724
|
+
children: /* @__PURE__ */ h.jsx(
|
|
725
|
+
mt.path,
|
|
726
|
+
{
|
|
727
|
+
d: Q(o) || "",
|
|
728
|
+
style: {
|
|
729
|
+
stroke: `url(#${X}-gradient-${_})`,
|
|
730
|
+
strokeWidth: o.width,
|
|
731
|
+
fill: "none"
|
|
732
|
+
},
|
|
733
|
+
exit: { opacity: 0, transition: { duration: B.duration } },
|
|
734
|
+
variants: {
|
|
735
|
+
initial: {
|
|
736
|
+
pathLength: 0,
|
|
737
|
+
opacity: 1
|
|
738
|
+
},
|
|
739
|
+
whileInView: {
|
|
740
|
+
pathLength: 1,
|
|
741
|
+
opacity: 1,
|
|
742
|
+
transition: { duration: B.duration }
|
|
743
|
+
}
|
|
744
|
+
},
|
|
745
|
+
initial: "initial",
|
|
746
|
+
animate: s ? "whileInView" : "initial"
|
|
747
|
+
},
|
|
748
|
+
`${o.source}-${o.target}`
|
|
749
|
+
)
|
|
750
|
+
},
|
|
751
|
+
`${o.source}-${o.target}`
|
|
752
|
+
)) }) }),
|
|
753
|
+
t.filter((o) => o.position === "after").map((o) => o.layer)
|
|
754
|
+
] })
|
|
755
|
+
]
|
|
756
|
+
}
|
|
757
|
+
),
|
|
758
|
+
c && k && R && V ? /* @__PURE__ */ h.jsx(
|
|
759
|
+
Rt,
|
|
760
|
+
{
|
|
761
|
+
data: c,
|
|
762
|
+
body: k,
|
|
763
|
+
xPos: R,
|
|
764
|
+
yPos: V,
|
|
765
|
+
backgroundStyle: I?.tooltip,
|
|
766
|
+
className: Y?.tooltip
|
|
767
|
+
}
|
|
768
|
+
) : null,
|
|
769
|
+
D && f !== void 0 ? /* @__PURE__ */ h.jsx(
|
|
770
|
+
Wt,
|
|
771
|
+
{
|
|
772
|
+
open: f !== void 0,
|
|
773
|
+
onClose: () => {
|
|
774
|
+
m(void 0);
|
|
775
|
+
},
|
|
776
|
+
children: /* @__PURE__ */ h.jsx(
|
|
777
|
+
"div",
|
|
778
|
+
{
|
|
779
|
+
className: "graph-modal-content m-0",
|
|
780
|
+
dangerouslySetInnerHTML: typeof D == "string" ? { __html: Gt(D, f) } : void 0,
|
|
781
|
+
children: typeof D == "function" ? D(f) : null
|
|
782
|
+
}
|
|
783
|
+
)
|
|
784
|
+
}
|
|
785
|
+
) : null
|
|
786
|
+
] });
|
|
787
|
+
}
|
|
788
|
+
function Ve(e) {
|
|
789
|
+
const {
|
|
790
|
+
data: n,
|
|
791
|
+
graphTitle: i,
|
|
792
|
+
sources: a,
|
|
793
|
+
graphDescription: l,
|
|
794
|
+
showLabels: y = !0,
|
|
795
|
+
leftMargin: g = 75,
|
|
796
|
+
rightMargin: p = 75,
|
|
797
|
+
topMargin: v = 30,
|
|
798
|
+
bottomMargin: b = 10,
|
|
799
|
+
truncateBy: k = 999,
|
|
800
|
+
height: $,
|
|
801
|
+
width: j,
|
|
802
|
+
footNote: N,
|
|
803
|
+
padding: d,
|
|
804
|
+
backgroundColor: S,
|
|
805
|
+
tooltip: M,
|
|
806
|
+
onSeriesMouseOver: z,
|
|
807
|
+
suffix: X = "",
|
|
808
|
+
prefix: P = "",
|
|
809
|
+
relativeHeight: T,
|
|
810
|
+
showValues: W = !0,
|
|
811
|
+
graphID: K,
|
|
812
|
+
onSeriesMouseClick: tt,
|
|
813
|
+
graphDownload: B = !1,
|
|
814
|
+
dataDownload: F = !1,
|
|
815
|
+
fillContainer: et = !0,
|
|
816
|
+
language: D = "en",
|
|
817
|
+
minHeight: I = 0,
|
|
818
|
+
theme: Y = "light",
|
|
819
|
+
ariaLabel: nt,
|
|
820
|
+
sourceColors: t,
|
|
821
|
+
targetColors: u,
|
|
822
|
+
sourceColorDomain: s,
|
|
823
|
+
targetColorDomain: c,
|
|
824
|
+
nodePadding: r = 5,
|
|
825
|
+
nodeWidth: f = 5,
|
|
826
|
+
highlightedSourceDataPoints: m = [],
|
|
827
|
+
highlightedTargetDataPoints: C = [],
|
|
828
|
+
defaultLinkOpacity: O = 0.3,
|
|
829
|
+
sourceTitle: R,
|
|
830
|
+
targetTitle: E,
|
|
831
|
+
sortNodes: V = "mostReadable",
|
|
832
|
+
resetSelectionOnDoubleClick: H = !0,
|
|
833
|
+
detailsOnClick: A,
|
|
834
|
+
styles: G,
|
|
835
|
+
classNames: q,
|
|
836
|
+
animate: st = !1,
|
|
837
|
+
precision: at = 2,
|
|
838
|
+
customLayers: lt = []
|
|
839
|
+
} = e, [Q, o] = Z(0), [_, U] = Z(0), [Lt, At] = Z(void 0), it = wt(null), Mt = wt(null);
|
|
840
|
+
return _t(() => {
|
|
841
|
+
const L = ot(n, "source").map((w) => ({
|
|
842
|
+
name: `source_${w.source}`,
|
|
843
|
+
type: "source",
|
|
844
|
+
label: `${w.source}`,
|
|
845
|
+
color: typeof t == "string" || !t ? t || Tt.graphMainColor : t[(s || ot(n, "source").map((x) => `${x.source}`)).findIndex(
|
|
846
|
+
(x) => `${x}` == `${w.source}`
|
|
847
|
+
) > t.length ? t.length - 1 : (s || ot(n, "source").map((x) => `${x.source}`)).findIndex(
|
|
848
|
+
(x) => `${x}` == `${w.source}`
|
|
849
|
+
)],
|
|
850
|
+
totalValue: Nt(n.filter((x) => `${x.source}` == `${w.source}`).map((x) => x.value))
|
|
851
|
+
})), ut = V === "asc" ? ct(L, (w) => w.totalValue) : V === "desc" ? ct(L, (w) => w.totalValue).reverse() : L, dt = ot(n, "target").map((w) => ({
|
|
852
|
+
name: `target_${w.target}`,
|
|
853
|
+
type: "target",
|
|
854
|
+
label: `${w.target}`,
|
|
855
|
+
color: typeof u == "string" || !u ? u || Tt.graphMainColor : u[(c || ot(n, "target").map((x) => `${x.target}`)).findIndex(
|
|
856
|
+
(x) => `${x}` == `${w.target}`
|
|
857
|
+
) > u.length ? u.length - 1 : (c || ot(n, "target").map((x) => `${x.target}`)).findIndex(
|
|
858
|
+
(x) => `${x}` == `${w.target}`
|
|
859
|
+
)],
|
|
860
|
+
totalValue: Nt(n.filter((x) => `${x.target}` == `${w.target}`).map((x) => x.value))
|
|
861
|
+
})), Et = V === "asc" ? ct(dt, (w) => w.totalValue) : V === "desc" ? ct(dt, (w) => w.totalValue).reverse() : dt, pt = [...ut, ...Et];
|
|
862
|
+
At({
|
|
863
|
+
nodes: pt,
|
|
864
|
+
links: n.map((w) => ({
|
|
865
|
+
source: pt.findIndex((x) => x.name === `source_${w.source}`),
|
|
866
|
+
target: pt.findIndex((x) => x.name === `target_${w.target}`),
|
|
867
|
+
value: w.value,
|
|
868
|
+
data: { ...w }
|
|
869
|
+
}))
|
|
870
|
+
});
|
|
871
|
+
}, [n, V, s, t, c, u]), _t(() => {
|
|
872
|
+
const L = new ResizeObserver((ut) => {
|
|
873
|
+
o(j || ut[0].target.clientWidth || 620), U($ || ut[0].target.clientHeight || 480);
|
|
874
|
+
});
|
|
875
|
+
return it.current && (U(it.current.clientHeight || 480), o(it.current.clientWidth || 620), j || L.observe(it.current)), () => L.disconnect();
|
|
876
|
+
}, [j, $]), /* @__PURE__ */ h.jsx(
|
|
877
|
+
"div",
|
|
878
|
+
{
|
|
879
|
+
className: `${Y || "light"} flex ${j ? "grow-0" : "grow"} ${et ? "w-full" : "w-fit"} `,
|
|
880
|
+
dir: D === "he" || D === "ar" ? "rtl" : void 0,
|
|
881
|
+
children: /* @__PURE__ */ h.jsx(
|
|
882
|
+
"div",
|
|
883
|
+
{
|
|
884
|
+
className: rt(
|
|
885
|
+
`${S ? S === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${D || "en"}`,
|
|
886
|
+
q?.graphContainer
|
|
887
|
+
),
|
|
888
|
+
style: {
|
|
889
|
+
...G?.graphContainer || {},
|
|
890
|
+
...S && S !== !0 ? { backgroundColor: S } : {}
|
|
891
|
+
},
|
|
892
|
+
id: K,
|
|
893
|
+
ref: Mt,
|
|
894
|
+
"aria-label": nt || `${i ? `The graph shows ${i}. ` : ""}This is a sankey chart showing flow. ${l ? ` ${l}` : ""}`,
|
|
895
|
+
children: /* @__PURE__ */ h.jsx(
|
|
896
|
+
"div",
|
|
897
|
+
{
|
|
898
|
+
className: "flex grow",
|
|
899
|
+
style: { padding: S ? d || "1rem" : d || 0 },
|
|
900
|
+
children: /* @__PURE__ */ h.jsxs("div", { className: "flex flex-col gap-4 w-full grow justify-between", children: [
|
|
901
|
+
i || l || B || F ? /* @__PURE__ */ h.jsx(
|
|
902
|
+
Ft,
|
|
903
|
+
{
|
|
904
|
+
styles: {
|
|
905
|
+
title: G?.title,
|
|
906
|
+
description: G?.description
|
|
907
|
+
},
|
|
908
|
+
classNames: {
|
|
909
|
+
title: q?.title,
|
|
910
|
+
description: q?.description
|
|
911
|
+
},
|
|
912
|
+
graphTitle: i,
|
|
913
|
+
graphDescription: l,
|
|
914
|
+
width: j,
|
|
915
|
+
graphDownload: B ? Mt.current : void 0,
|
|
916
|
+
dataDownload: F ? n.map((L) => L.data).filter((L) => L !== void 0).length > 0 ? n.map((L) => L.data).filter((L) => L !== void 0) : n.filter((L) => L !== void 0) : null
|
|
917
|
+
}
|
|
918
|
+
) : null,
|
|
919
|
+
/* @__PURE__ */ h.jsx("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: n.length === 0 ? /* @__PURE__ */ h.jsx(Zt, {}) : /* @__PURE__ */ h.jsx(
|
|
920
|
+
"div",
|
|
921
|
+
{
|
|
922
|
+
className: "flex flex-col grow justify-center gap-3 w-full leading-0",
|
|
923
|
+
ref: it,
|
|
924
|
+
"aria-label": "Graph area",
|
|
925
|
+
children: (j || Q) && ($ || _) && Lt ? /* @__PURE__ */ h.jsx(
|
|
926
|
+
de,
|
|
927
|
+
{
|
|
928
|
+
data: Lt,
|
|
929
|
+
width: j || Q,
|
|
930
|
+
nodePadding: r,
|
|
931
|
+
nodeWidth: f,
|
|
932
|
+
height: Math.max(
|
|
933
|
+
I,
|
|
934
|
+
$ || (T ? I ? (j || Q) * T > I ? (j || Q) * T : I : (j || Q) * T : _)
|
|
935
|
+
),
|
|
936
|
+
showLabels: y,
|
|
937
|
+
leftMargin: g,
|
|
938
|
+
rightMargin: p,
|
|
939
|
+
topMargin: v,
|
|
940
|
+
bottomMargin: b,
|
|
941
|
+
truncateBy: k,
|
|
942
|
+
tooltip: M,
|
|
943
|
+
onSeriesMouseOver: z,
|
|
944
|
+
showValues: W,
|
|
945
|
+
suffix: X,
|
|
946
|
+
prefix: P,
|
|
947
|
+
onSeriesMouseClick: tt,
|
|
948
|
+
id: Ut(8),
|
|
949
|
+
highlightedSourceDataPoints: m.map((L) => `${L}`),
|
|
950
|
+
highlightedTargetDataPoints: C.map((L) => `${L}`),
|
|
951
|
+
defaultLinkOpacity: O,
|
|
952
|
+
sourceTitle: R,
|
|
953
|
+
targetTitle: E,
|
|
954
|
+
sortNodes: V,
|
|
955
|
+
resetSelectionOnDoubleClick: H,
|
|
956
|
+
styles: G,
|
|
957
|
+
classNames: q,
|
|
958
|
+
detailsOnClick: A,
|
|
959
|
+
animate: st === !0 ? { duration: 0.5, once: !0, amount: 0.5 } : st || { duration: 0, once: !0, amount: 0 },
|
|
960
|
+
precision: at,
|
|
961
|
+
customLayers: lt
|
|
962
|
+
}
|
|
963
|
+
) : null
|
|
964
|
+
}
|
|
965
|
+
) }),
|
|
966
|
+
a || N ? /* @__PURE__ */ h.jsx(
|
|
967
|
+
Yt,
|
|
968
|
+
{
|
|
969
|
+
styles: { footnote: G?.footnote, source: G?.source },
|
|
970
|
+
classNames: {
|
|
971
|
+
footnote: q?.footnote,
|
|
972
|
+
source: q?.source
|
|
973
|
+
},
|
|
974
|
+
sources: a,
|
|
975
|
+
footNote: N,
|
|
976
|
+
width: j
|
|
977
|
+
}
|
|
978
|
+
) : null
|
|
979
|
+
] })
|
|
980
|
+
}
|
|
981
|
+
)
|
|
982
|
+
}
|
|
983
|
+
)
|
|
984
|
+
}
|
|
985
|
+
);
|
|
986
|
+
}
|
|
987
|
+
export {
|
|
988
|
+
Ve as SankeyChart
|
|
989
|
+
};
|
|
2
990
|
//# sourceMappingURL=SankeyChart.js.map
|