@undp/data-viz 2.0.8 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AreaChart.cjs +1 -1
- package/dist/AreaChart.d.ts +2 -0
- package/dist/AreaChart.js +1 -1
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.d.ts +2 -0
- package/dist/BarGraph.js +1188 -1213
- package/dist/BarGraph.js.map +1 -1
- package/dist/BasicStatCard.d.ts +2 -0
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.cjs.map +1 -1
- package/dist/BeeSwarmChart.d.ts +2 -0
- package/dist/BeeSwarmChart.js +258 -267
- package/dist/BeeSwarmChart.js.map +1 -1
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.cjs.map +1 -1
- package/dist/BiVariateChoroplethMap.d.ts +2 -0
- package/dist/BiVariateChoroplethMap.js +126 -131
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.d.ts +2 -0
- package/dist/BulletChart.js +404 -413
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.cjs.map +1 -1
- package/dist/ButterflyChart.d.ts +2 -0
- package/dist/ButterflyChart.js +179 -184
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.d.ts +2 -0
- package/dist/ChoroplethMap.js +268 -273
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.d.ts +2 -0
- package/dist/CirclePackingGraph.js +1 -1
- package/dist/DataCards.cjs +1 -1
- package/dist/DataCards.d.ts +2 -0
- package/dist/DataCards.js +2 -2
- package/dist/DataTable.d.ts +2 -0
- package/dist/DetailsModal-0Ry5nXiC.js +32 -0
- package/dist/DetailsModal-0Ry5nXiC.js.map +1 -0
- package/dist/DetailsModal-BN0HDFlV.cjs +2 -0
- package/dist/DetailsModal-BN0HDFlV.cjs.map +1 -0
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.d.ts +2 -0
- package/dist/DifferenceLineChart.js +1 -1
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.cjs.map +1 -1
- package/dist/DonutChart.d.ts +2 -0
- package/dist/DonutChart.js +185 -190
- package/dist/DonutChart.js.map +1 -1
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.d.ts +2 -0
- package/dist/DotDensityMap.js +198 -203
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.d.ts +2 -0
- package/dist/DualAxisLineChart.js +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.d.ts +2 -0
- package/dist/DumbbellChart.js +364 -373
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/GeoHubCompareMaps.d.ts +2 -0
- package/dist/GeoHubMap.d.ts +2 -0
- package/dist/GeoHubMapWithLayerSelection.d.ts +2 -0
- package/dist/{GraphEl-BcKU0bG1.cjs → GraphEl-B16EYkko.cjs} +2 -2
- package/dist/{GraphEl-BcKU0bG1.cjs.map → GraphEl-B16EYkko.cjs.map} +1 -1
- package/dist/{GraphEl-CGq1EWRn.js → GraphEl-ebgfxefq.js} +3 -3
- package/dist/{GraphEl-CGq1EWRn.js.map → GraphEl-ebgfxefq.js.map} +1 -1
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.cjs.map +1 -1
- package/dist/GriddedGraphs.d.ts +3 -0
- package/dist/GriddedGraphs.js +158 -146
- package/dist/GriddedGraphs.js.map +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +3 -0
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.cjs.map +1 -1
- package/dist/HeatMap.d.ts +2 -0
- package/dist/HeatMap.js +111 -116
- package/dist/HeatMap.js.map +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.d.ts +2 -0
- package/dist/Histogram.js +1 -1
- package/dist/HybridMap.cjs +1 -1
- package/dist/HybridMap.cjs.map +1 -1
- package/dist/HybridMap.d.ts +2 -0
- package/dist/HybridMap.js +202 -207
- package/dist/HybridMap.js.map +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.d.ts +2 -0
- package/dist/LineChartWithConfidenceInterval.js +1 -1
- package/dist/{Modal-DGcuAHyK.js → Modal-bMQA6bL_.js} +5 -5
- package/dist/{Modal-DGcuAHyK.js.map → Modal-bMQA6bL_.js.map} +1 -1
- package/dist/MultiGraphDashboard.cjs +1 -1
- package/dist/MultiGraphDashboard.cjs.map +1 -1
- package/dist/MultiGraphDashboard.d.ts +3 -0
- package/dist/MultiGraphDashboard.js +90 -85
- package/dist/MultiGraphDashboard.js.map +1 -1
- package/dist/MultiGraphDashboardFromConfig.d.ts +3 -0
- package/dist/MultiGraphDashboardWideToLongFormat.d.ts +2 -0
- package/dist/MultiGraphDashboardWideToLongFormat.js +1 -1
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +2 -0
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.d.ts +2 -0
- package/dist/MultiLineAltChart.js +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.d.ts +2 -0
- package/dist/MultiLineChart.js +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.cjs.map +1 -1
- package/dist/ParetoChart.d.ts +2 -0
- package/dist/ParetoChart.js +187 -192
- package/dist/ParetoChart.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +3 -0
- package/dist/PerformanceIntensiveMultiGraphDashboard.js +76 -72
- package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +3 -0
- package/dist/PerformanceIntensiveScrollStory.d.ts +2 -0
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.cjs.map +1 -1
- package/dist/RadarChart.d.ts +2 -0
- package/dist/RadarChart.js +158 -163
- package/dist/RadarChart.js.map +1 -1
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.cjs.map +1 -1
- package/dist/SankeyChart.d.ts +2 -0
- package/dist/SankeyChart.js +172 -177
- package/dist/SankeyChart.js.map +1 -1
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.d.ts +2 -0
- package/dist/ScatterPlot.js +222 -227
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/ScrollStory.d.ts +2 -0
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.d.ts +2 -0
- package/dist/SimpleLineChart.js +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.cjs.map +1 -1
- package/dist/SingleGraphDashboard.d.ts +3 -0
- package/dist/SingleGraphDashboard.js +131 -128
- package/dist/SingleGraphDashboard.js.map +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +3 -0
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +2 -0
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +2 -0
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +3 -0
- package/dist/SingleGraphDashboardThreeDGraphs.js +145 -141
- package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +3 -0
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.cjs.map +1 -1
- package/dist/SlopeChart.d.ts +2 -0
- package/dist/SlopeChart.js +182 -187
- package/dist/SlopeChart.js.map +1 -1
- package/dist/SparkLine.cjs +1 -1
- package/dist/SparkLine.d.ts +2 -0
- package/dist/SparkLine.js +1 -1
- package/dist/StatCardFromData.d.ts +2 -0
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.cjs.map +1 -1
- package/dist/StripChart.d.ts +2 -0
- package/dist/StripChart.js +249 -258
- package/dist/StripChart.js.map +1 -1
- package/dist/ThreeDGlobe.cjs +1 -1
- package/dist/ThreeDGlobe.cjs.map +1 -1
- package/dist/ThreeDGlobe.d.ts +2 -0
- package/dist/ThreeDGlobe.js +142 -147
- package/dist/ThreeDGlobe.js.map +1 -1
- package/dist/Tooltip-Dj5eVppQ.js +45 -0
- package/dist/Tooltip-Dj5eVppQ.js.map +1 -0
- package/dist/Tooltip-uUdw6wJL.cjs +2 -0
- package/dist/Tooltip-uUdw6wJL.cjs.map +1 -0
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.cjs.map +1 -1
- package/dist/TreeMapGraph.d.ts +2 -0
- package/dist/TreeMapGraph.js +159 -164
- package/dist/TreeMapGraph.js.map +1 -1
- package/dist/Types.d.ts +3 -0
- package/dist/UnitChart.d.ts +2 -0
- package/dist/{checkIfMultiple-Y9iKaV_u.js → checkIfMultiple-CIRtG0KE.js} +2 -2
- package/dist/{checkIfMultiple-Y9iKaV_u.js.map → checkIfMultiple-CIRtG0KE.js.map} +1 -1
- package/dist/getUniqValue-DsqSii6M.js +11 -0
- package/dist/getUniqValue-DsqSii6M.js.map +1 -0
- package/dist/getUniqValue-NX8DgwND.cjs +2 -0
- package/dist/getUniqValue-NX8DgwND.cjs.map +1 -0
- package/dist/index-BBV4tAeA.js +330 -0
- package/dist/index-BBV4tAeA.js.map +1 -0
- package/dist/index-CF5hnGvG.cjs +2 -0
- package/dist/index-CF5hnGvG.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2 -2
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/package.json +1 -1
- package/dist/Tooltip-4dJo4_AF.cjs +0 -2
- package/dist/Tooltip-4dJo4_AF.cjs.map +0 -1
- package/dist/Tooltip-CwWUegPB.js +0 -43
- package/dist/Tooltip-CwWUegPB.js.map +0 -1
- package/dist/getUniqValue-BKHCm3zE.js +0 -11
- package/dist/getUniqValue-BKHCm3zE.js.map +0 -1
- package/dist/getUniqValue-RViz8tTw.cjs +0 -2
- package/dist/getUniqValue-RViz8tTw.cjs.map +0 -1
- package/dist/index-B2LQV7Tk.js +0 -335
- package/dist/index-B2LQV7Tk.js.map +0 -1
- package/dist/index-xRHRLDIp.cjs +0 -2
- package/dist/index-xRHRLDIp.cjs.map +0 -1
package/dist/TreeMapGraph.js
CHANGED
|
@@ -1,45 +1,44 @@
|
|
|
1
|
-
import { c as Wt, j as
|
|
1
|
+
import { c as Wt, j as w, m as zt } from "./index-CHPV5EwG-Curnpaqc.js";
|
|
2
2
|
import { useRef as $t, useState as it, useEffect as Zt } from "react";
|
|
3
|
-
import { j as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { n as _t } from "./numberFormattingFunction-14YCbkN2.js";
|
|
3
|
+
import { j as Rt } from "./Typography-PxtFcnJb.js";
|
|
4
|
+
import { T as Jt } from "./Tooltip-Dj5eVppQ.js";
|
|
5
|
+
import { n as Qt } from "./numberFormattingFunction-14YCbkN2.js";
|
|
7
6
|
import { g as Nt } from "./getTextColorBasedOnBgColor-CDY808zi.js";
|
|
8
7
|
import { Colors as tt } from "./Colors.js";
|
|
9
|
-
import {
|
|
10
|
-
import { u as
|
|
8
|
+
import { D as _t } from "./DetailsModal-0Ry5nXiC.js";
|
|
9
|
+
import { u as te } from "./use-in-view-Cxa7y1TH.js";
|
|
11
10
|
import { m as Ot } from "./proxy-BxkFHwUw.js";
|
|
12
|
-
import { A as
|
|
13
|
-
import { c as
|
|
14
|
-
import { GraphFooter as
|
|
15
|
-
import { GraphHeader as
|
|
16
|
-
import { ColorLegendWithMouseOver as
|
|
17
|
-
import { E as
|
|
18
|
-
import { u as
|
|
19
|
-
import { a as
|
|
20
|
-
function
|
|
11
|
+
import { A as ee } from "./index-BqfRwk1n.js";
|
|
12
|
+
import { c as ne } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
13
|
+
import { GraphFooter as ie } from "./GraphFooter.js";
|
|
14
|
+
import { GraphHeader as oe } from "./GraphHeader.js";
|
|
15
|
+
import { ColorLegendWithMouseOver as re } from "./ColorLegendWithMouseOver.js";
|
|
16
|
+
import { E as ae } from "./EmptyState-BZo1BbAn.js";
|
|
17
|
+
import { u as Pt } from "./uniqBy-BHy4I8PK.js";
|
|
18
|
+
import { a as le, G as se } from "./GraphContainer-CRqzdKu2.js";
|
|
19
|
+
function ce(e) {
|
|
21
20
|
var t = 0, n = e.children, i = n && n.length;
|
|
22
21
|
if (!i) t = 1;
|
|
23
22
|
else for (; --i >= 0; ) t += n[i].value;
|
|
24
23
|
e.value = t;
|
|
25
24
|
}
|
|
26
|
-
function
|
|
27
|
-
return this.eachAfter(
|
|
25
|
+
function ue() {
|
|
26
|
+
return this.eachAfter(ce);
|
|
28
27
|
}
|
|
29
|
-
function
|
|
28
|
+
function de(e, t) {
|
|
30
29
|
let n = -1;
|
|
31
30
|
for (const i of this)
|
|
32
31
|
e.call(t, i, ++n, this);
|
|
33
32
|
return this;
|
|
34
33
|
}
|
|
35
|
-
function
|
|
34
|
+
function fe(e, t) {
|
|
36
35
|
for (var n = this, i = [n], r, l, a = -1; n = i.pop(); )
|
|
37
36
|
if (e.call(t, n, ++a, this), r = n.children)
|
|
38
37
|
for (l = r.length - 1; l >= 0; --l)
|
|
39
38
|
i.push(r[l]);
|
|
40
39
|
return this;
|
|
41
40
|
}
|
|
42
|
-
function
|
|
41
|
+
function he(e, t) {
|
|
43
42
|
for (var n = this, i = [n], r = [], l, a, d, g = -1; n = i.pop(); )
|
|
44
43
|
if (r.push(n), l = n.children)
|
|
45
44
|
for (a = 0, d = l.length; a < d; ++a)
|
|
@@ -48,58 +47,58 @@ function pe(e, t) {
|
|
|
48
47
|
e.call(t, n, ++g, this);
|
|
49
48
|
return this;
|
|
50
49
|
}
|
|
51
|
-
function
|
|
50
|
+
function pe(e, t) {
|
|
52
51
|
let n = -1;
|
|
53
52
|
for (const i of this)
|
|
54
53
|
if (e.call(t, i, ++n, this))
|
|
55
54
|
return i;
|
|
56
55
|
}
|
|
57
|
-
function
|
|
56
|
+
function ge(e) {
|
|
58
57
|
return this.eachAfter(function(t) {
|
|
59
58
|
for (var n = +e(t.data) || 0, i = t.children, r = i && i.length; --r >= 0; ) n += i[r].value;
|
|
60
59
|
t.value = n;
|
|
61
60
|
});
|
|
62
61
|
}
|
|
63
|
-
function
|
|
62
|
+
function me(e) {
|
|
64
63
|
return this.eachBefore(function(t) {
|
|
65
64
|
t.children && t.children.sort(e);
|
|
66
65
|
});
|
|
67
66
|
}
|
|
68
|
-
function
|
|
69
|
-
for (var t = this, n =
|
|
67
|
+
function ve(e) {
|
|
68
|
+
for (var t = this, n = ye(t, e), i = [t]; t !== n; )
|
|
70
69
|
t = t.parent, i.push(t);
|
|
71
70
|
for (var r = i.length; e !== n; )
|
|
72
71
|
i.splice(r, 0, e), e = e.parent;
|
|
73
72
|
return i;
|
|
74
73
|
}
|
|
75
|
-
function
|
|
74
|
+
function ye(e, t) {
|
|
76
75
|
if (e === t) return e;
|
|
77
76
|
var n = e.ancestors(), i = t.ancestors(), r = null;
|
|
78
77
|
for (e = n.pop(), t = i.pop(); e === t; )
|
|
79
78
|
r = e, e = n.pop(), t = i.pop();
|
|
80
79
|
return r;
|
|
81
80
|
}
|
|
82
|
-
function
|
|
81
|
+
function we() {
|
|
83
82
|
for (var e = this, t = [e]; e = e.parent; )
|
|
84
83
|
t.push(e);
|
|
85
84
|
return t;
|
|
86
85
|
}
|
|
87
|
-
function
|
|
86
|
+
function xe() {
|
|
88
87
|
return Array.from(this);
|
|
89
88
|
}
|
|
90
|
-
function
|
|
89
|
+
function be() {
|
|
91
90
|
var e = [];
|
|
92
91
|
return this.eachBefore(function(t) {
|
|
93
92
|
t.children || e.push(t);
|
|
94
93
|
}), e;
|
|
95
94
|
}
|
|
96
|
-
function
|
|
95
|
+
function Me() {
|
|
97
96
|
var e = this, t = [];
|
|
98
97
|
return e.each(function(n) {
|
|
99
98
|
n !== e && t.push({ source: n.parent, target: n });
|
|
100
99
|
}), t;
|
|
101
100
|
}
|
|
102
|
-
function*
|
|
101
|
+
function* Oe() {
|
|
103
102
|
var e = this, t, n = [e], i, r, l;
|
|
104
103
|
do
|
|
105
104
|
for (t = n.reverse(), n = []; e = t.pop(); )
|
|
@@ -109,23 +108,23 @@ function* je() {
|
|
|
109
108
|
while (n.length);
|
|
110
109
|
}
|
|
111
110
|
function qt(e, t) {
|
|
112
|
-
e instanceof Map ? (e = [void 0, e], t === void 0 && (t =
|
|
111
|
+
e instanceof Map ? (e = [void 0, e], t === void 0 && (t = De)) : t === void 0 && (t = Ce);
|
|
113
112
|
for (var n = new vt(e), i, r = [n], l, a, d, g; i = r.pop(); )
|
|
114
113
|
if ((a = t(i.data)) && (g = (a = Array.from(a)).length))
|
|
115
114
|
for (i.children = a, d = g - 1; d >= 0; --d)
|
|
116
115
|
r.push(l = a[d] = new vt(a[d])), l.parent = i, l.depth = i.depth + 1;
|
|
117
116
|
return n.eachBefore(Ft);
|
|
118
117
|
}
|
|
119
|
-
function
|
|
120
|
-
return qt(this).eachBefore(
|
|
118
|
+
function je() {
|
|
119
|
+
return qt(this).eachBefore(ke);
|
|
121
120
|
}
|
|
122
|
-
function
|
|
121
|
+
function Ce(e) {
|
|
123
122
|
return e.children;
|
|
124
123
|
}
|
|
125
|
-
function
|
|
124
|
+
function De(e) {
|
|
126
125
|
return Array.isArray(e) ? e[1] : null;
|
|
127
126
|
}
|
|
128
|
-
function
|
|
127
|
+
function ke(e) {
|
|
129
128
|
e.data.value !== void 0 && (e.value = e.data.value), e.data = e.data.data;
|
|
130
129
|
}
|
|
131
130
|
function Ft(e) {
|
|
@@ -139,22 +138,22 @@ function vt(e) {
|
|
|
139
138
|
}
|
|
140
139
|
vt.prototype = qt.prototype = {
|
|
141
140
|
constructor: vt,
|
|
142
|
-
count:
|
|
143
|
-
each:
|
|
144
|
-
eachAfter:
|
|
145
|
-
eachBefore:
|
|
146
|
-
find:
|
|
147
|
-
sum:
|
|
148
|
-
sort:
|
|
149
|
-
path:
|
|
150
|
-
ancestors:
|
|
151
|
-
descendants:
|
|
152
|
-
leaves:
|
|
153
|
-
links:
|
|
154
|
-
copy:
|
|
155
|
-
[Symbol.iterator]:
|
|
141
|
+
count: ue,
|
|
142
|
+
each: de,
|
|
143
|
+
eachAfter: he,
|
|
144
|
+
eachBefore: fe,
|
|
145
|
+
find: pe,
|
|
146
|
+
sum: ge,
|
|
147
|
+
sort: me,
|
|
148
|
+
path: ve,
|
|
149
|
+
ancestors: we,
|
|
150
|
+
descendants: xe,
|
|
151
|
+
leaves: be,
|
|
152
|
+
links: Me,
|
|
153
|
+
copy: je,
|
|
154
|
+
[Symbol.iterator]: Oe
|
|
156
155
|
};
|
|
157
|
-
function
|
|
156
|
+
function Bt(e) {
|
|
158
157
|
return e == null ? null : Xt(e);
|
|
159
158
|
}
|
|
160
159
|
function Xt(e) {
|
|
@@ -169,36 +168,36 @@ function mt(e) {
|
|
|
169
168
|
return e;
|
|
170
169
|
};
|
|
171
170
|
}
|
|
172
|
-
function
|
|
171
|
+
function Ie(e) {
|
|
173
172
|
e.x0 = Math.round(e.x0), e.y0 = Math.round(e.y0), e.x1 = Math.round(e.x1), e.y1 = Math.round(e.y1);
|
|
174
173
|
}
|
|
175
|
-
function
|
|
174
|
+
function Ve(e, t, n, i, r) {
|
|
176
175
|
for (var l = e.children, a, d = -1, g = l.length, y = e.value && (i - t) / e.value; ++d < g; )
|
|
177
176
|
a = l[d], a.y0 = n, a.y1 = r, a.x0 = t, a.x1 = t += a.value * y;
|
|
178
177
|
}
|
|
179
|
-
var
|
|
178
|
+
var Ne = { depth: -1 }, Ht = {}, St = {};
|
|
180
179
|
function Be(e) {
|
|
181
180
|
return e.id;
|
|
182
181
|
}
|
|
183
|
-
function
|
|
182
|
+
function Se(e) {
|
|
184
183
|
return e.parentId;
|
|
185
184
|
}
|
|
186
|
-
function
|
|
187
|
-
var e = Be, t =
|
|
185
|
+
function $e() {
|
|
186
|
+
var e = Be, t = Se, n;
|
|
188
187
|
function i(r) {
|
|
189
188
|
var l = Array.from(r), a = e, d = t, g, y, c, v, o, f, u, m, h = /* @__PURE__ */ new Map();
|
|
190
189
|
if (n != null) {
|
|
191
|
-
const p = l.map((O,
|
|
190
|
+
const p = l.map((O, b) => Ae(n(O, b, r))), j = p.map(Gt), k = new Set(p).add("");
|
|
192
191
|
for (const O of j)
|
|
193
|
-
k.has(O) || (k.add(O), p.push(O), j.push(Gt(O)), l.push(
|
|
194
|
-
a = (O,
|
|
192
|
+
k.has(O) || (k.add(O), p.push(O), j.push(Gt(O)), l.push(St));
|
|
193
|
+
a = (O, b) => p[b], d = (O, b) => j[b];
|
|
195
194
|
}
|
|
196
195
|
for (c = 0, g = l.length; c < g; ++c)
|
|
197
|
-
y = l[c], f = l[c] = new vt(y), (u = a(y, c, r)) != null && (u += "") && (m = f.id = u, h.set(m, h.has(m) ?
|
|
196
|
+
y = l[c], f = l[c] = new vt(y), (u = a(y, c, r)) != null && (u += "") && (m = f.id = u, h.set(m, h.has(m) ? Ht : f)), (u = d(y, c, r)) != null && (u += "") && (f.parent = u);
|
|
198
197
|
for (c = 0; c < g; ++c)
|
|
199
198
|
if (f = l[c], u = f.parent) {
|
|
200
199
|
if (o = h.get(u), !o) throw new Error("missing: " + u);
|
|
201
|
-
if (o ===
|
|
200
|
+
if (o === Ht) throw new Error("ambiguous: " + u);
|
|
202
201
|
o.children ? o.children.push(f) : o.children = [f], f.parent = o;
|
|
203
202
|
} else {
|
|
204
203
|
if (v) throw new Error("multiple roots");
|
|
@@ -206,25 +205,25 @@ function Ae() {
|
|
|
206
205
|
}
|
|
207
206
|
if (!v) throw new Error("no root");
|
|
208
207
|
if (n != null) {
|
|
209
|
-
for (; v.data ===
|
|
208
|
+
for (; v.data === St && v.children.length === 1; )
|
|
210
209
|
v = v.children[0], --g;
|
|
211
|
-
for (let p = l.length - 1; p >= 0 && (f = l[p], f.data ===
|
|
210
|
+
for (let p = l.length - 1; p >= 0 && (f = l[p], f.data === St); --p)
|
|
212
211
|
f.data = null;
|
|
213
212
|
}
|
|
214
|
-
if (v.parent =
|
|
213
|
+
if (v.parent = Ne, v.eachBefore(function(p) {
|
|
215
214
|
p.depth = p.parent.depth + 1, --g;
|
|
216
215
|
}).eachBefore(Ft), v.parent = null, g > 0) throw new Error("cycle");
|
|
217
216
|
return v;
|
|
218
217
|
}
|
|
219
218
|
return i.id = function(r) {
|
|
220
|
-
return arguments.length ? (e =
|
|
219
|
+
return arguments.length ? (e = Bt(r), i) : e;
|
|
221
220
|
}, i.parentId = function(r) {
|
|
222
|
-
return arguments.length ? (t =
|
|
221
|
+
return arguments.length ? (t = Bt(r), i) : t;
|
|
223
222
|
}, i.path = function(r) {
|
|
224
|
-
return arguments.length ? (n =
|
|
223
|
+
return arguments.length ? (n = Bt(r), i) : n;
|
|
225
224
|
}, i;
|
|
226
225
|
}
|
|
227
|
-
function
|
|
226
|
+
function Ae(e) {
|
|
228
227
|
e = `${e}`;
|
|
229
228
|
let t = e.length;
|
|
230
229
|
return At(e, t - 1) && !At(e, t - 2) && (e = e.slice(0, -1)), e[0] === "/" ? e : `/${e}`;
|
|
@@ -243,40 +242,40 @@ function At(e, t) {
|
|
|
243
242
|
}
|
|
244
243
|
return !1;
|
|
245
244
|
}
|
|
246
|
-
function
|
|
245
|
+
function Ee(e, t, n, i, r) {
|
|
247
246
|
for (var l = e.children, a, d = -1, g = l.length, y = e.value && (r - n) / e.value; ++d < g; )
|
|
248
247
|
a = l[d], a.x0 = t, a.x1 = i, a.y0 = n, a.y1 = n += a.value * y;
|
|
249
248
|
}
|
|
250
|
-
var
|
|
251
|
-
function
|
|
252
|
-
for (var a = [], d = t.children, g, y, c = 0, v = 0, o = d.length, f, u, m = t.value, h, p, j, k, O,
|
|
249
|
+
var Le = (1 + Math.sqrt(5)) / 2;
|
|
250
|
+
function Te(e, t, n, i, r, l) {
|
|
251
|
+
for (var a = [], d = t.children, g, y, c = 0, v = 0, o = d.length, f, u, m = t.value, h, p, j, k, O, b, C; c < o; ) {
|
|
253
252
|
f = r - n, u = l - i;
|
|
254
253
|
do
|
|
255
254
|
h = d[v++].value;
|
|
256
255
|
while (!h && v < o);
|
|
257
|
-
for (p = j = h,
|
|
258
|
-
if (h += y = d[v].value, y < p && (p = y), y > j && (j = y), C = h * h *
|
|
256
|
+
for (p = j = h, b = Math.max(u / f, f / u) / (m * e), C = h * h * b, O = Math.max(j / C, C / p); v < o; ++v) {
|
|
257
|
+
if (h += y = d[v].value, y < p && (p = y), y > j && (j = y), C = h * h * b, k = Math.max(j / C, C / p), k > O) {
|
|
259
258
|
h -= y;
|
|
260
259
|
break;
|
|
261
260
|
}
|
|
262
261
|
O = k;
|
|
263
262
|
}
|
|
264
|
-
a.push(g = { value: h, dice: f < u, children: d.slice(c, v) }), g.dice ?
|
|
263
|
+
a.push(g = { value: h, dice: f < u, children: d.slice(c, v) }), g.dice ? Ve(g, n, i, r, m ? i += u * h / m : l) : Ee(g, n, i, m ? n += f * h / m : r, l), m -= h, c = v;
|
|
265
264
|
}
|
|
266
265
|
return a;
|
|
267
266
|
}
|
|
268
|
-
const
|
|
267
|
+
const ze = (function e(t) {
|
|
269
268
|
function n(i, r, l, a, d) {
|
|
270
|
-
|
|
269
|
+
Te(t, i, r, l, a, d);
|
|
271
270
|
}
|
|
272
271
|
return n.ratio = function(i) {
|
|
273
272
|
return e((i = +i) > 1 ? i : 1);
|
|
274
273
|
}, n;
|
|
275
|
-
})(
|
|
274
|
+
})(Le);
|
|
276
275
|
function Re() {
|
|
277
|
-
var e =
|
|
276
|
+
var e = ze, t = !1, n = 1, i = 1, r = [0], l = gt, a = gt, d = gt, g = gt, y = gt;
|
|
278
277
|
function c(o) {
|
|
279
|
-
return o.x0 = o.y0 = 0, o.x1 = n, o.y1 = i, o.eachBefore(v), r = [0], t && o.eachBefore(
|
|
278
|
+
return o.x0 = o.y0 = 0, o.x1 = n, o.y1 = i, o.eachBefore(v), r = [0], t && o.eachBefore(Ie), o;
|
|
280
279
|
}
|
|
281
280
|
function v(o) {
|
|
282
281
|
var f = r[o.depth], u = o.x0 + f, m = o.y0 + f, h = o.x1 - f, p = o.y1 - f;
|
|
@@ -305,7 +304,7 @@ function Re() {
|
|
|
305
304
|
}, c;
|
|
306
305
|
}
|
|
307
306
|
function Pe(e) {
|
|
308
|
-
const t = Wt.c(
|
|
307
|
+
const t = Wt.c(73), {
|
|
309
308
|
data: n,
|
|
310
309
|
colors: i,
|
|
311
310
|
leftMargin: r,
|
|
@@ -325,10 +324,10 @@ function Pe(e) {
|
|
|
325
324
|
highlightedDataPoints: j,
|
|
326
325
|
onSeriesMouseClick: k,
|
|
327
326
|
resetSelectionOnDoubleClick: O,
|
|
328
|
-
detailsOnClick:
|
|
327
|
+
detailsOnClick: b,
|
|
329
328
|
language: C,
|
|
330
329
|
styles: N,
|
|
331
|
-
classNames:
|
|
330
|
+
classNames: I,
|
|
332
331
|
animate: D,
|
|
333
332
|
dimmedOpacity: K,
|
|
334
333
|
precision: Z
|
|
@@ -338,26 +337,26 @@ function Pe(e) {
|
|
|
338
337
|
once: D.once,
|
|
339
338
|
amount: D.amount
|
|
340
339
|
}, t[0] = D.amount, t[1] = D.once, t[2] = et) : et = t[2];
|
|
341
|
-
const J =
|
|
342
|
-
let
|
|
343
|
-
t[3] !== c || t[4] !== r || t[5] !== g || t[6] !== y ? (
|
|
340
|
+
const J = te(ot, et), [nt, rt] = it(void 0), [E, at] = it(void 0), [Q, lt] = it(void 0), [_, M] = it(void 0);
|
|
341
|
+
let x;
|
|
342
|
+
t[3] !== c || t[4] !== r || t[5] !== g || t[6] !== y ? (x = {
|
|
344
343
|
top: y,
|
|
345
344
|
bottom: c,
|
|
346
345
|
left: r,
|
|
347
346
|
right: g
|
|
348
|
-
}, t[3] = c, t[4] = r, t[5] = g, t[6] = y, t[7] =
|
|
349
|
-
const
|
|
350
|
-
let L, T, z,
|
|
351
|
-
if (t[8] !== D.duration || t[9] !==
|
|
347
|
+
}, t[3] = c, t[4] = r, t[5] = g, t[6] = y, t[7] = x) : x = t[7];
|
|
348
|
+
const V = x, st = l - V.left - V.right, ct = a - V.top - V.bottom;
|
|
349
|
+
let L, T, z, R, P, H, G, W, q;
|
|
350
|
+
if (t[8] !== D.duration || t[9] !== I?.graphObjectValues || t[10] !== d || t[11] !== i || t[12] !== n || t[13] !== b || t[14] !== K || t[15] !== ct || t[16] !== st || t[17] !== a || t[18] !== j || t[19] !== J || t[20] !== C || t[21] !== V.left || t[22] !== V.top || t[23] !== E || t[24] !== k || t[25] !== f || t[26] !== Z || t[27] !== p || t[28] !== O || t[29] !== u || t[30] !== v || t[31] !== m || t[32] !== N?.graphObjectValues || t[33] !== h || t[34] !== l) {
|
|
352
351
|
const pt = [{
|
|
353
352
|
id: "root",
|
|
354
353
|
parent: void 0,
|
|
355
354
|
value: void 0,
|
|
356
355
|
data: void 0
|
|
357
|
-
}, ...n.map(
|
|
358
|
-
ut.sum(
|
|
356
|
+
}, ...n.map(Ue)], ut = $e().id(Ke).parentId(Ye)(pt);
|
|
357
|
+
ut.sum(Xe);
|
|
359
358
|
const U = Re().size([st, ct]).padding(2)(ut);
|
|
360
|
-
T = Ot.svg,
|
|
359
|
+
T = Ot.svg, P = `${l}px`, H = `${a}px`, G = `0 0 ${l} ${a}`, W = "ltr", q = ot, R = `translate(${V.left},${V.top})`, L = ee, z = U.children?.map((s) => /* @__PURE__ */ w.jsxs(Ot.g, { className: "undp-viz-g-with-hover", variants: {
|
|
361
360
|
initial: {
|
|
362
361
|
opacity: 0,
|
|
363
362
|
x: s.x0,
|
|
@@ -379,13 +378,13 @@ function Pe(e) {
|
|
|
379
378
|
}, onMouseEnter: (Y) => {
|
|
380
379
|
rt(s.data.data), M(Y.clientY), lt(Y.clientX), f?.(s.data.data);
|
|
381
380
|
}, onClick: () => {
|
|
382
|
-
(k ||
|
|
381
|
+
(k || b) && (E === s.data.id && O ? (at(void 0), k?.(void 0)) : (at(s.data.id), k?.(s.data.data)));
|
|
383
382
|
}, onMouseMove: (Y) => {
|
|
384
383
|
rt(s.data.data), M(Y.clientY), lt(Y.clientX);
|
|
385
384
|
}, onMouseLeave: () => {
|
|
386
385
|
rt(void 0), lt(void 0), M(void 0), f?.(void 0);
|
|
387
386
|
}, children: [
|
|
388
|
-
/* @__PURE__ */
|
|
387
|
+
/* @__PURE__ */ w.jsx(Ot.rect, { x: 0, y: 0, exit: {
|
|
389
388
|
width: 0,
|
|
390
389
|
height: 0,
|
|
391
390
|
opacity: 0,
|
|
@@ -396,18 +395,18 @@ function Pe(e) {
|
|
|
396
395
|
initial: {
|
|
397
396
|
width: 0,
|
|
398
397
|
height: 0,
|
|
399
|
-
fill: n.filter(
|
|
398
|
+
fill: n.filter(Fe).length === 0 ? i[0] : s.data.data.color ? i[d.indexOf(s.data.data.color)] : tt.gray
|
|
400
399
|
},
|
|
401
400
|
whileInView: {
|
|
402
401
|
width: s.x1 - s.x0,
|
|
403
402
|
height: s.y1 - s.y0,
|
|
404
|
-
fill: n.filter(
|
|
403
|
+
fill: n.filter(qe).length === 0 ? i[0] : s.data.data.color ? i[d.indexOf(s.data.data.color)] : tt.gray,
|
|
405
404
|
transition: {
|
|
406
405
|
duration: D.duration
|
|
407
406
|
}
|
|
408
407
|
}
|
|
409
408
|
}, initial: "initial", animate: J ? "whileInView" : "initial" }),
|
|
410
|
-
s.x1 - s.x0 > 50 && s.y1 - s.y0 > 25 && (v || m) ? /* @__PURE__ */
|
|
409
|
+
s.x1 - s.x0 > 50 && s.y1 - s.y0 > 25 && (v || m) ? /* @__PURE__ */ w.jsx(Ot.g, { variants: {
|
|
411
410
|
initial: {
|
|
412
411
|
opacity: 0
|
|
413
412
|
},
|
|
@@ -422,45 +421,44 @@ function Pe(e) {
|
|
|
422
421
|
transition: {
|
|
423
422
|
duration: D.duration
|
|
424
423
|
}
|
|
425
|
-
}, children: /* @__PURE__ */
|
|
426
|
-
color: Nt(n.filter(
|
|
424
|
+
}, children: /* @__PURE__ */ w.jsx("foreignObject", { y: 0, x: 0, width: s.x1 - s.x0, height: s.y1 - s.y0, children: /* @__PURE__ */ w.jsxs("div", { className: "flex flex-col gap-0.5 p-2 w-full", style: {
|
|
425
|
+
color: Nt(n.filter(We).length === 0 ? i[0] : s.data.data.color ? i[d.indexOf(s.data.data.color)] : tt.gray)
|
|
427
426
|
}, children: [
|
|
428
|
-
v ? /* @__PURE__ */
|
|
427
|
+
v ? /* @__PURE__ */ w.jsx(Rt, { marginBottom: "none", size: "sm", leading: "none", className: zt("w-full treemap-label", C === "ar" || C === "he" ? "text-right" : "text-left", I?.graphObjectValues), style: {
|
|
429
428
|
WebkitLineClamp: s.y1 - s.y0 > 50 ? s.y1 - s.y0 > 100 ? s.y1 - s.y0 > 150 ? void 0 : 3 : 2 : 1,
|
|
430
429
|
display: "-webkit-box",
|
|
431
430
|
WebkitBoxOrient: "vertical",
|
|
432
431
|
overflow: "hidden",
|
|
433
|
-
color: Nt(n.filter(
|
|
432
|
+
color: Nt(n.filter(Ge).length === 0 ? i[0] : s.data.data.color ? i[d.indexOf(s.data.data.color)] : tt.gray),
|
|
434
433
|
...N?.graphObjectValues || {}
|
|
435
434
|
}, children: s.data.id }) : null,
|
|
436
|
-
m ? /* @__PURE__ */
|
|
437
|
-
color: Nt(n.filter(
|
|
435
|
+
m ? /* @__PURE__ */ w.jsx(Rt, { marginBottom: "none", size: "sm", leading: "none", className: zt("w-full font-bold treemap-value", C === "ar" || C === "he" ? "text-right" : "text-left", I?.graphObjectValues), style: {
|
|
436
|
+
color: Nt(n.filter(He).length === 0 ? i[0] : s.data.data.color ? i[d.indexOf(s.data.data.color)] : tt.gray),
|
|
438
437
|
...N?.graphObjectValues || {}
|
|
439
|
-
}, children:
|
|
438
|
+
}, children: Qt(s.data.value, "NA", Z, p, h) }) : null
|
|
440
439
|
] }) }) }) : null
|
|
441
|
-
] }, s.data.id)), t[8] = D.duration, t[9] =
|
|
440
|
+
] }, s.data.id)), t[8] = D.duration, t[9] = I?.graphObjectValues, t[10] = d, t[11] = i, t[12] = n, t[13] = b, t[14] = K, t[15] = ct, t[16] = st, t[17] = a, t[18] = j, t[19] = J, t[20] = C, t[21] = V.left, t[22] = V.top, t[23] = E, t[24] = k, t[25] = f, t[26] = Z, t[27] = p, t[28] = O, t[29] = u, t[30] = v, t[31] = m, t[32] = N?.graphObjectValues, t[33] = h, t[34] = l, t[35] = L, t[36] = T, t[37] = z, t[38] = R, t[39] = P, t[40] = H, t[41] = G, t[42] = W, t[43] = q;
|
|
442
441
|
} else
|
|
443
|
-
L = t[35], T = t[36], z = t[37],
|
|
442
|
+
L = t[35], T = t[36], z = t[37], R = t[38], P = t[39], H = t[40], G = t[41], W = t[42], q = t[43];
|
|
444
443
|
let F;
|
|
445
|
-
t[44] !== L || t[45] !== z ? (F = /* @__PURE__ */
|
|
446
|
-
let S;
|
|
447
|
-
t[47] !== H || t[48] !== F ? (S = /* @__PURE__ */ x.jsx("g", { transform: H, children: F }), t[47] = H, t[48] = F, t[49] = S) : S = t[49];
|
|
448
|
-
let X;
|
|
449
|
-
t[50] !== T || t[51] !== S || t[52] !== R || t[53] !== P || t[54] !== G || t[55] !== W || t[56] !== q ? (X = /* @__PURE__ */ x.jsx(T, { width: R, height: P, viewBox: G, direction: W, ref: q, children: S }), t[50] = T, t[51] = S, t[52] = R, t[53] = P, t[54] = G, t[55] = W, t[56] = q, t[57] = X) : X = t[57];
|
|
444
|
+
t[44] !== L || t[45] !== z ? (F = /* @__PURE__ */ w.jsx(L, { children: z }), t[44] = L, t[45] = z, t[46] = F) : F = t[46];
|
|
450
445
|
let B;
|
|
451
|
-
t[
|
|
446
|
+
t[47] !== R || t[48] !== F ? (B = /* @__PURE__ */ w.jsx("g", { transform: R, children: F }), t[47] = R, t[48] = F, t[49] = B) : B = t[49];
|
|
447
|
+
let X;
|
|
448
|
+
t[50] !== T || t[51] !== B || t[52] !== P || t[53] !== H || t[54] !== G || t[55] !== W || t[56] !== q ? (X = /* @__PURE__ */ w.jsx(T, { width: P, height: H, viewBox: G, direction: W, ref: q, children: B }), t[50] = T, t[51] = B, t[52] = P, t[53] = H, t[54] = G, t[55] = W, t[56] = q, t[57] = X) : X = t[57];
|
|
449
|
+
let S;
|
|
450
|
+
t[58] !== I?.tooltip || t[59] !== Q || t[60] !== _ || t[61] !== nt || t[62] !== N?.tooltip || t[63] !== o ? (S = nt && o && Q && _ ? /* @__PURE__ */ w.jsx(Jt, { data: nt, body: o, xPos: Q, yPos: _, backgroundStyle: N?.tooltip, className: I?.tooltip }) : null, t[58] = I?.tooltip, t[59] = Q, t[60] = _, t[61] = nt, t[62] = N?.tooltip, t[63] = o, t[64] = S) : S = t[64];
|
|
452
451
|
let $;
|
|
453
|
-
t[65] !==
|
|
454
|
-
at(void 0);
|
|
455
|
-
}, children: /* @__PURE__ */ x.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof w == "string" ? {
|
|
456
|
-
__html: te(w, V)
|
|
457
|
-
} : void 0, children: typeof w == "function" ? w(V) : null }) }) : null, t[65] = w, t[66] = V, t[67] = $) : $ = t[67];
|
|
452
|
+
t[65] !== I?.modal || t[66] !== b || t[67] !== E ? ($ = b && E !== void 0 ? /* @__PURE__ */ w.jsx(_t, { body: b, data: E, setData: at, className: I?.modal }) : null, t[65] = I?.modal, t[66] = b, t[67] = E, t[68] = $) : $ = t[68];
|
|
458
453
|
let A;
|
|
459
|
-
return t[
|
|
454
|
+
return t[69] !== X || t[70] !== S || t[71] !== $ ? (A = /* @__PURE__ */ w.jsxs(w.Fragment, { children: [
|
|
460
455
|
X,
|
|
461
|
-
|
|
456
|
+
S,
|
|
462
457
|
$
|
|
463
|
-
] }), t[
|
|
458
|
+
] }), t[69] = X, t[70] = S, t[71] = $, t[72] = A) : A = t[72], A;
|
|
459
|
+
}
|
|
460
|
+
function He(e) {
|
|
461
|
+
return e.color;
|
|
464
462
|
}
|
|
465
463
|
function Ge(e) {
|
|
466
464
|
return e.color;
|
|
@@ -475,18 +473,15 @@ function Fe(e) {
|
|
|
475
473
|
return e.color;
|
|
476
474
|
}
|
|
477
475
|
function Xe(e) {
|
|
478
|
-
return e.color;
|
|
479
|
-
}
|
|
480
|
-
function Ye(e) {
|
|
481
476
|
return e.value;
|
|
482
477
|
}
|
|
483
|
-
function
|
|
478
|
+
function Ye(e) {
|
|
484
479
|
return e.parent;
|
|
485
480
|
}
|
|
486
|
-
function
|
|
481
|
+
function Ke(e) {
|
|
487
482
|
return e.id;
|
|
488
483
|
}
|
|
489
|
-
function
|
|
484
|
+
function Ue(e) {
|
|
490
485
|
return {
|
|
491
486
|
id: e.label,
|
|
492
487
|
value: e.size,
|
|
@@ -494,7 +489,7 @@ function Ze(e) {
|
|
|
494
489
|
data: e
|
|
495
490
|
};
|
|
496
491
|
}
|
|
497
|
-
function
|
|
492
|
+
function jn(e) {
|
|
498
493
|
const t = Wt.c(71), {
|
|
499
494
|
data: n,
|
|
500
495
|
graphTitle: i,
|
|
@@ -515,10 +510,10 @@ function Dn(e) {
|
|
|
515
510
|
padding: j,
|
|
516
511
|
backgroundColor: k,
|
|
517
512
|
showLabels: O,
|
|
518
|
-
relativeHeight:
|
|
513
|
+
relativeHeight: b,
|
|
519
514
|
tooltip: C,
|
|
520
515
|
onSeriesMouseOver: N,
|
|
521
|
-
showColorScale:
|
|
516
|
+
showColorScale: I,
|
|
522
517
|
showValues: D,
|
|
523
518
|
graphID: K,
|
|
524
519
|
highlightedDataPoints: Z,
|
|
@@ -527,20 +522,20 @@ function Dn(e) {
|
|
|
527
522
|
dataDownload: J,
|
|
528
523
|
language: nt,
|
|
529
524
|
showNAColor: rt,
|
|
530
|
-
minHeight:
|
|
525
|
+
minHeight: E,
|
|
531
526
|
theme: at,
|
|
532
527
|
ariaLabel: Q,
|
|
533
528
|
resetSelectionOnDoubleClick: lt,
|
|
534
529
|
detailsOnClick: _,
|
|
535
530
|
styles: M,
|
|
536
|
-
classNames:
|
|
537
|
-
animate:
|
|
531
|
+
classNames: x,
|
|
532
|
+
animate: V,
|
|
538
533
|
dimmedOpacity: st,
|
|
539
534
|
precision: ct
|
|
540
|
-
} = e, L = l === void 0 ? "" : l, T = d === void 0 ? "" : d, z = y === void 0 ? 0 : y,
|
|
541
|
-
let
|
|
542
|
-
t[0] !== Z ? (
|
|
543
|
-
const X =
|
|
535
|
+
} = e, L = l === void 0 ? "" : l, T = d === void 0 ? "" : d, z = y === void 0 ? 0 : y, R = c === void 0 ? 0 : c, P = v === void 0 ? 0 : v, H = o === void 0 ? 0 : o, G = k === void 0 ? !1 : k, W = O === void 0 ? !0 : O, q = I === void 0 ? !0 : I, F = D === void 0 ? !0 : D;
|
|
536
|
+
let B;
|
|
537
|
+
t[0] !== Z ? (B = Z === void 0 ? [] : Z, t[0] = Z, t[1] = B) : B = t[1];
|
|
538
|
+
const X = B, S = et === void 0 ? !1 : et, $ = J === void 0 ? !1 : J, A = nt === void 0 ? "en" : nt, pt = rt === void 0 ? !0 : rt, ut = E === void 0 ? 0 : E, U = at === void 0 ? "light" : at, s = lt === void 0 ? !0 : lt, Y = V === void 0 ? !1 : V, jt = st === void 0 ? 0.3 : st, Ct = ct === void 0 ? 2 : ct, [yt, Yt] = it(0), [wt, Kt] = it(0), [Dt, Ut] = it(void 0), kt = $t(null), Et = $t(null);
|
|
544
539
|
let xt, bt;
|
|
545
540
|
t[2] === Symbol.for("react.memo_cache_sentinel") ? (xt = () => {
|
|
546
541
|
const Lt = new ResizeObserver((Tt) => {
|
|
@@ -548,19 +543,19 @@ function Dn(e) {
|
|
|
548
543
|
});
|
|
549
544
|
return kt.current && Lt.observe(kt.current), () => Lt.disconnect();
|
|
550
545
|
}, bt = [], t[2] = xt, t[3] = bt) : (xt = t[2], bt = t[3]), Zt(xt, bt);
|
|
551
|
-
const It =
|
|
546
|
+
const It = x?.graphContainer, Vt = M?.graphContainer;
|
|
552
547
|
let dt;
|
|
553
|
-
t[4] !==
|
|
548
|
+
t[4] !== x?.description || t[5] !== x?.title || t[6] !== n || t[7] !== $ || t[8] !== g || t[9] !== S || t[10] !== i || t[11] !== M?.description || t[12] !== M?.title || t[13] !== u ? (dt = i || g || S || $ ? /* @__PURE__ */ w.jsx(oe, { styles: {
|
|
554
549
|
title: M?.title,
|
|
555
550
|
description: M?.description
|
|
556
551
|
}, classNames: {
|
|
557
|
-
title:
|
|
558
|
-
description:
|
|
559
|
-
}, graphTitle: i, graphDescription: g, width: u, graphDownload:
|
|
552
|
+
title: x?.title,
|
|
553
|
+
description: x?.description
|
|
554
|
+
}, graphTitle: i, graphDescription: g, width: u, graphDownload: S ? Et : void 0, dataDownload: $ ? n.map(rn).filter(on).length > 0 ? n.map(nn).filter(en) : n.filter(tn) : null }) : null, t[4] = x?.description, t[5] = x?.title, t[6] = n, t[7] = $, t[8] = g, t[9] = S, t[10] = i, t[11] = M?.description, t[12] = M?.title, t[13] = u, t[14] = dt) : dt = t[14];
|
|
560
555
|
let ft;
|
|
561
|
-
t[15] !== Y || t[16] !==
|
|
562
|
-
q && n.filter(
|
|
563
|
-
/* @__PURE__ */
|
|
556
|
+
t[15] !== Y || t[16] !== H || t[17] !== x || t[18] !== h || t[19] !== p || t[20] !== r || t[21] !== n || t[22] !== _ || t[23] !== jt || t[24] !== X || t[25] !== A || t[26] !== z || t[27] !== ot || t[28] !== N || t[29] !== Ct || t[30] !== T || t[31] !== s || t[32] !== R || t[33] !== Dt || t[34] !== q || t[35] !== W || t[36] !== pt || t[37] !== F || t[38] !== M || t[39] !== L || t[40] !== wt || t[41] !== yt || t[42] !== U || t[43] !== C || t[44] !== P || t[45] !== u ? (ft = n.length === 0 ? /* @__PURE__ */ w.jsx(ae, {}) : /* @__PURE__ */ w.jsxs(w.Fragment, { children: [
|
|
557
|
+
q && n.filter(_e).length !== 0 ? /* @__PURE__ */ w.jsx(re, { width: u, colorLegendTitle: p, colors: r || tt[U].categoricalColors.colors, colorDomain: h || Pt(n, "color", !0), setSelectedColor: Ut, showNAColor: pt, className: x?.colorLegend }) : null,
|
|
558
|
+
/* @__PURE__ */ w.jsx(le, { ref: kt, children: yt && wt ? /* @__PURE__ */ w.jsx(Pe, { data: n.filter(Qe), colors: n.filter(Je).length === 0 ? r ? [r] : [tt.primaryColors["blue-600"]] : r || tt[U].categoricalColors.colors, colorDomain: n.filter(Ze).length === 0 ? [] : h || Pt(n, "color", !0), width: yt, height: wt, leftMargin: z, rightMargin: R, topMargin: P, bottomMargin: H, showLabels: W, showValues: F, suffix: L, prefix: T, selectedColor: Dt, tooltip: C, onSeriesMouseOver: N, onSeriesMouseClick: ot, highlightedDataPoints: X, resetSelectionOnDoubleClick: s, detailsOnClick: _, styles: M, classNames: x, language: A, animate: Y === !0 ? {
|
|
564
559
|
duration: 0.5,
|
|
565
560
|
once: !0,
|
|
566
561
|
amount: 0.5
|
|
@@ -569,50 +564,50 @@ function Dn(e) {
|
|
|
569
564
|
once: !0,
|
|
570
565
|
amount: 0
|
|
571
566
|
}, dimmedOpacity: jt, precision: Ct }) : null })
|
|
572
|
-
] }), t[15] = Y, t[16] =
|
|
567
|
+
] }), t[15] = Y, t[16] = H, t[17] = x, t[18] = h, t[19] = p, t[20] = r, t[21] = n, t[22] = _, t[23] = jt, t[24] = X, t[25] = A, t[26] = z, t[27] = ot, t[28] = N, t[29] = Ct, t[30] = T, t[31] = s, t[32] = R, t[33] = Dt, t[34] = q, t[35] = W, t[36] = pt, t[37] = F, t[38] = M, t[39] = L, t[40] = wt, t[41] = yt, t[42] = U, t[43] = C, t[44] = P, t[45] = u, t[46] = ft) : ft = t[46];
|
|
573
568
|
let ht;
|
|
574
|
-
t[47] !==
|
|
569
|
+
t[47] !== x?.footnote || t[48] !== x?.source || t[49] !== m || t[50] !== a || t[51] !== M?.footnote || t[52] !== M?.source || t[53] !== u ? (ht = a || m ? /* @__PURE__ */ w.jsx(ie, { styles: {
|
|
575
570
|
footnote: M?.footnote,
|
|
576
571
|
source: M?.source
|
|
577
572
|
}, classNames: {
|
|
578
|
-
footnote:
|
|
579
|
-
source:
|
|
580
|
-
}, sources: a, footNote: m, width: u }) : null, t[47] =
|
|
573
|
+
footnote: x?.footnote,
|
|
574
|
+
source: x?.source
|
|
575
|
+
}, sources: a, footNote: m, width: u }) : null, t[47] = x?.footnote, t[48] = x?.source, t[49] = m, t[50] = a, t[51] = M?.footnote, t[52] = M?.source, t[53] = u, t[54] = ht) : ht = t[54];
|
|
581
576
|
let Mt;
|
|
582
|
-
return t[55] !== Q || t[56] !== G || t[57] !== K || t[58] !== f || t[59] !== A || t[60] !== ut || t[61] !== j || t[62] !==
|
|
577
|
+
return t[55] !== Q || t[56] !== G || t[57] !== K || t[58] !== f || t[59] !== A || t[60] !== ut || t[61] !== j || t[62] !== b || t[63] !== It || t[64] !== Vt || t[65] !== dt || t[66] !== ft || t[67] !== ht || t[68] !== U || t[69] !== u ? (Mt = /* @__PURE__ */ w.jsxs(se, { className: It, style: Vt, id: K, ref: Et, "aria-label": Q, backgroundColor: G, theme: U, language: A, minHeight: ut, width: u, height: f, relativeHeight: b, padding: j, children: [
|
|
583
578
|
dt,
|
|
584
579
|
ft,
|
|
585
580
|
ht
|
|
586
|
-
] }), t[55] = Q, t[56] = G, t[57] = K, t[58] = f, t[59] = A, t[60] = ut, t[61] = j, t[62] =
|
|
581
|
+
] }), t[55] = Q, t[56] = G, t[57] = K, t[58] = f, t[59] = A, t[60] = ut, t[61] = j, t[62] = b, t[63] = It, t[64] = Vt, t[65] = dt, t[66] = ft, t[67] = ht, t[68] = U, t[69] = u, t[70] = Mt) : Mt = t[70], Mt;
|
|
582
|
+
}
|
|
583
|
+
function Ze(e) {
|
|
584
|
+
return e.color;
|
|
587
585
|
}
|
|
588
586
|
function Je(e) {
|
|
589
587
|
return e.color;
|
|
590
588
|
}
|
|
591
589
|
function Qe(e) {
|
|
592
|
-
return e.
|
|
590
|
+
return !ne(e.size);
|
|
593
591
|
}
|
|
594
592
|
function _e(e) {
|
|
595
|
-
return
|
|
593
|
+
return e.color;
|
|
596
594
|
}
|
|
597
595
|
function tn(e) {
|
|
598
|
-
return e
|
|
596
|
+
return e !== void 0;
|
|
599
597
|
}
|
|
600
598
|
function en(e) {
|
|
601
599
|
return e !== void 0;
|
|
602
600
|
}
|
|
603
601
|
function nn(e) {
|
|
604
|
-
return e !== void 0;
|
|
605
|
-
}
|
|
606
|
-
function on(e) {
|
|
607
602
|
return e.data;
|
|
608
603
|
}
|
|
609
|
-
function
|
|
604
|
+
function on(e) {
|
|
610
605
|
return e !== void 0;
|
|
611
606
|
}
|
|
612
|
-
function
|
|
607
|
+
function rn(e) {
|
|
613
608
|
return e.data;
|
|
614
609
|
}
|
|
615
610
|
export {
|
|
616
|
-
|
|
611
|
+
jn as TreeMapGraph
|
|
617
612
|
};
|
|
618
613
|
//# sourceMappingURL=TreeMapGraph.js.map
|