@undp/data-viz 1.5.5 → 1.5.6
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/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.js +2 -2
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.d.ts +0 -2
- package/dist/ChoroplethMap.js +2 -2
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.js +2 -2
- package/dist/GraphEl-C6yjl1VM.cjs +2 -0
- package/dist/GraphEl-C6yjl1VM.cjs.map +1 -0
- package/dist/{GraphEl-CMWeARJ3.js → GraphEl-CqWzvOyr.js} +1 -2
- package/dist/GraphEl-CqWzvOyr.js.map +1 -0
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.d.ts +1 -1
- package/dist/GriddedGraphs.js +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +1 -1
- package/dist/MultiGraphDashboard.d.ts +1 -1
- package/dist/MultiGraphDashboardFromConfig.d.ts +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -1
- package/dist/PerformanceIntensiveScrollStory.d.ts +1 -1
- package/dist/ScrollStory.d.ts +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.d.ts +1 -1
- package/dist/SingleGraphDashboard.js +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +1 -1
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -1
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.js +2 -2
- package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -1
- package/dist/ThreeDGlobe.cjs +1 -1
- package/dist/ThreeDGlobe.cjs.map +1 -1
- package/dist/ThreeDGlobe.d.ts +2 -2
- package/dist/ThreeDGlobe.js +394 -333
- package/dist/ThreeDGlobe.js.map +1 -1
- package/dist/Types.d.ts +1 -1
- package/dist/index-9tDEUqOZ.js +752 -0
- package/dist/{index-qfWCwobm.js.map → index-9tDEUqOZ.js.map} +1 -1
- package/dist/index-CoZbeNM9.cjs +2 -0
- package/dist/{index-D05lK1Te.cjs.map → index-CoZbeNM9.cjs.map} +1 -1
- package/dist/index.d.ts +3 -5
- package/dist/{zoom-Bsbhil-K.cjs → zoom-BiMNsz72.cjs} +2 -2
- package/dist/{zoom-Bsbhil-K.cjs.map → zoom-BiMNsz72.cjs.map} +1 -1
- package/dist/{zoom-DAu91HKr.js → zoom-QipiAl5W.js} +2 -2
- package/dist/{zoom-DAu91HKr.js.map → zoom-QipiAl5W.js.map} +1 -1
- package/package.json +2 -1
- package/dist/GraphEl-BcYgMnN2.cjs +0 -2
- package/dist/GraphEl-BcYgMnN2.cjs.map +0 -1
- package/dist/GraphEl-CMWeARJ3.js.map +0 -1
- package/dist/index-D05lK1Te.cjs +0 -2
- package/dist/index-qfWCwobm.js +0 -682
package/dist/ThreeDGlobe.js
CHANGED
|
@@ -1,204 +1,263 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { y as
|
|
4
|
-
import
|
|
5
|
-
import { i as
|
|
6
|
-
import * as
|
|
7
|
-
import { X as
|
|
8
|
-
import { u as
|
|
9
|
-
import { t as
|
|
10
|
-
import { T as
|
|
11
|
-
import { n as
|
|
12
|
-
import { X as
|
|
13
|
-
import { s as
|
|
14
|
-
import { o as
|
|
15
|
-
import { t as
|
|
16
|
-
import { GraphHeader as
|
|
17
|
-
import { GraphFooter as
|
|
18
|
-
import { f as
|
|
19
|
-
import { Colors as
|
|
20
|
-
import { g as
|
|
21
|
-
import { g as
|
|
22
|
-
function
|
|
23
|
-
|
|
1
|
+
import { j as o, m as je } from "./index-CHPV5EwG-BPSP-7Jg.js";
|
|
2
|
+
import { useState as L, useRef as we, useEffect as M, useCallback as ue } from "react";
|
|
3
|
+
import { y as Se } from "./Spinner-C85UF28E.js";
|
|
4
|
+
import ke from "react-globe.gl";
|
|
5
|
+
import { i as De } from "./index-Bwrro8-q.js";
|
|
6
|
+
import * as A from "three";
|
|
7
|
+
import { X as Ne } from "./Modal-DVVwpKhP.js";
|
|
8
|
+
import { u as ge } from "./Typography-Ctgfl1J5.js";
|
|
9
|
+
import { g as Me, e as ye, t as fe } from "./index-9tDEUqOZ.js";
|
|
10
|
+
import { T as Le } from "./Tooltip-CVCGWyzw.js";
|
|
11
|
+
import { n as Pe } from "./numberFormattingFunction-14YCbkN2.js";
|
|
12
|
+
import { X as Oe } from "./index-BmCqpO1B.js";
|
|
13
|
+
import { s as Re } from "./string2HTML-oFCROsus.js";
|
|
14
|
+
import { o as ze } from "./ordinal-w9Lu4Stb.js";
|
|
15
|
+
import { t as Ae } from "./threshold-DFfqcDMa.js";
|
|
16
|
+
import { GraphHeader as Te } from "./GraphHeader.js";
|
|
17
|
+
import { GraphFooter as Ee } from "./GraphFooter.js";
|
|
18
|
+
import { f as He } from "./fetchAndParseData-sapWbnYk.js";
|
|
19
|
+
import { Colors as $ } from "./Colors.js";
|
|
20
|
+
import { g as $e } from "./getUniqValue-DiCh_MOD.js";
|
|
21
|
+
import { g as Ie } from "./getJenks-BbngDoBQ.js";
|
|
22
|
+
function _e(e) {
|
|
23
|
+
return Me(
|
|
24
|
+
e,
|
|
25
|
+
(t, n) => t + Ge(n),
|
|
26
|
+
0
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
function Ge(e) {
|
|
30
|
+
let t = 0, n;
|
|
31
|
+
switch (e.type) {
|
|
32
|
+
case "Polygon":
|
|
33
|
+
return xe(e.coordinates);
|
|
34
|
+
case "MultiPolygon":
|
|
35
|
+
for (n = 0; n < e.coordinates.length; n++)
|
|
36
|
+
t += xe(e.coordinates[n]);
|
|
37
|
+
return t;
|
|
38
|
+
case "Point":
|
|
39
|
+
case "MultiPoint":
|
|
40
|
+
case "LineString":
|
|
41
|
+
case "MultiLineString":
|
|
42
|
+
return 0;
|
|
43
|
+
}
|
|
44
|
+
return 0;
|
|
45
|
+
}
|
|
46
|
+
function xe(e) {
|
|
47
|
+
let t = 0;
|
|
48
|
+
if (e && e.length > 0) {
|
|
49
|
+
t += Math.abs(ve(e[0]));
|
|
50
|
+
for (let n = 1; n < e.length; n++)
|
|
51
|
+
t -= Math.abs(ve(e[n]));
|
|
52
|
+
}
|
|
53
|
+
return t;
|
|
54
|
+
}
|
|
55
|
+
var Fe = ye * ye / 2, he = Math.PI / 180;
|
|
56
|
+
function ve(e) {
|
|
57
|
+
const t = e.length - 1;
|
|
58
|
+
if (t <= 2) return 0;
|
|
59
|
+
let n = 0, c = 0;
|
|
60
|
+
for (; c < t; ) {
|
|
61
|
+
const v = e[c], y = e[c + 1 === t ? 0 : c + 1], m = e[c + 2 >= t ? (c + 2) % t : c + 2], l = v[0] * he, p = y[1] * he, T = m[0] * he;
|
|
62
|
+
n += (T - l) * Math.sin(p), c++;
|
|
63
|
+
}
|
|
64
|
+
return n * Fe;
|
|
65
|
+
}
|
|
66
|
+
var Be = _e;
|
|
67
|
+
function Ue(e) {
|
|
68
|
+
if (e.geometry.type === "Polygon")
|
|
69
|
+
return fe(e);
|
|
70
|
+
if (e.geometry.type === "MultiPolygon") {
|
|
71
|
+
let t = 0, n = null;
|
|
72
|
+
for (const c of e.geometry.coordinates) {
|
|
73
|
+
const v = {
|
|
74
|
+
type: "Feature",
|
|
75
|
+
geometry: {
|
|
76
|
+
type: "Polygon",
|
|
77
|
+
coordinates: c
|
|
78
|
+
},
|
|
79
|
+
properties: {}
|
|
80
|
+
}, y = Be(v);
|
|
81
|
+
y > t && (t = y, n = v);
|
|
82
|
+
}
|
|
83
|
+
return fe(n);
|
|
84
|
+
}
|
|
85
|
+
throw new Error("Unsupported geometry type");
|
|
86
|
+
}
|
|
87
|
+
function We(e) {
|
|
88
|
+
let t;
|
|
24
89
|
switch (e.type) {
|
|
25
90
|
case "ambient":
|
|
26
|
-
|
|
91
|
+
t = new A.AmbientLight(e.color, e.intensity);
|
|
27
92
|
break;
|
|
28
93
|
case "directional":
|
|
29
|
-
|
|
94
|
+
t = new A.DirectionalLight(e.color, e.intensity), e.position && (e.position === "camera" ? t.position.set(0, 0, 0) : t.position.set(e.position.x, e.position.y, e.position.z)), (e.target || e.position === "camera") && t.target.position.set(
|
|
30
95
|
e.target?.x || 0,
|
|
31
96
|
e.target?.y || 0,
|
|
32
97
|
e.target?.z === void 0 ? -1 : e.target.z
|
|
33
|
-
), e.castShadow && (
|
|
98
|
+
), e.castShadow && (t.castShadow = !0, e.shadow && (t.shadow.mapSize.width = e.shadow.mapSize.width, t.shadow.mapSize.height = e.shadow.mapSize.height, t.shadow.camera.near = e.shadow.camera.near, t.shadow.camera.far = e.shadow.camera.far));
|
|
34
99
|
break;
|
|
35
100
|
case "point":
|
|
36
|
-
|
|
101
|
+
t = new A.PointLight(
|
|
37
102
|
e.color,
|
|
38
103
|
e.intensity,
|
|
39
104
|
e.distance || 0,
|
|
40
105
|
e.decay || 2
|
|
41
|
-
), e.position && (e.position === "camera" ?
|
|
106
|
+
), e.position && (e.position === "camera" ? t.position.set(0, 0, 0) : t.position.set(e.position.x, e.position.y, e.position.z));
|
|
42
107
|
break;
|
|
43
108
|
case "spot":
|
|
44
|
-
|
|
109
|
+
t = new A.SpotLight(
|
|
45
110
|
e.color,
|
|
46
111
|
e.intensity,
|
|
47
112
|
e.distance || 0,
|
|
48
113
|
e.angle || Math.PI / 3,
|
|
49
114
|
e.penumbra || 0,
|
|
50
115
|
e.decay || 2
|
|
51
|
-
), e.position && (e.position === "camera" ?
|
|
116
|
+
), e.position && (e.position === "camera" ? t.position.set(0, 0, 0) : t.position.set(e.position.x, e.position.y, e.position.z)), (e.target || e.position === "camera") && t.target.position.set(
|
|
52
117
|
e.target?.x || 0,
|
|
53
118
|
e.target?.y || 0,
|
|
54
119
|
e.target?.z || 0
|
|
55
|
-
), e.castShadow && (
|
|
120
|
+
), e.castShadow && (t.castShadow = !0, e.shadow && (t.shadow.mapSize.width = e.shadow.mapSize.width, t.shadow.mapSize.height = e.shadow.mapSize.height, t.shadow.camera.near = e.shadow.camera.near, t.shadow.camera.far = e.shadow.camera.far));
|
|
56
121
|
break;
|
|
57
122
|
default:
|
|
58
123
|
throw new Error("Unknown light type");
|
|
59
124
|
}
|
|
60
|
-
return
|
|
125
|
+
return t;
|
|
61
126
|
}
|
|
62
|
-
function
|
|
127
|
+
function Xe(e) {
|
|
63
128
|
const {
|
|
64
|
-
width:
|
|
65
|
-
autoRotate:
|
|
66
|
-
data:
|
|
67
|
-
enableZoom:
|
|
68
|
-
categorical:
|
|
69
|
-
colorDomain:
|
|
70
|
-
colors:
|
|
71
|
-
globeMaterial:
|
|
72
|
-
height:
|
|
73
|
-
polygonData:
|
|
129
|
+
width: t,
|
|
130
|
+
autoRotate: n,
|
|
131
|
+
data: c,
|
|
132
|
+
enableZoom: v,
|
|
133
|
+
categorical: y,
|
|
134
|
+
colorDomain: m,
|
|
135
|
+
colors: l,
|
|
136
|
+
globeMaterial: p,
|
|
137
|
+
height: T,
|
|
138
|
+
polygonData: I,
|
|
74
139
|
mapProperty: h,
|
|
75
|
-
mapBorderColor:
|
|
76
|
-
atmosphereColor:
|
|
140
|
+
mapBorderColor: _,
|
|
141
|
+
atmosphereColor: V,
|
|
77
142
|
tooltip: q,
|
|
78
|
-
styles:
|
|
143
|
+
styles: S,
|
|
79
144
|
classNames: re,
|
|
80
|
-
mapNoDataColor:
|
|
81
|
-
colorLegendTitle:
|
|
82
|
-
showColorScale:
|
|
83
|
-
hoverStrokeColor:
|
|
84
|
-
detailsOnClick:
|
|
85
|
-
onSeriesMouseClick:
|
|
86
|
-
onSeriesMouseOver:
|
|
87
|
-
resetSelectionOnDoubleClick:
|
|
88
|
-
highlightedIds:
|
|
89
|
-
scale:
|
|
90
|
-
globeOffset:
|
|
91
|
-
polygonAltitude:
|
|
145
|
+
mapNoDataColor: f,
|
|
146
|
+
colorLegendTitle: G,
|
|
147
|
+
showColorScale: oe,
|
|
148
|
+
hoverStrokeColor: ae,
|
|
149
|
+
detailsOnClick: C,
|
|
150
|
+
onSeriesMouseClick: P,
|
|
151
|
+
onSeriesMouseOver: w,
|
|
152
|
+
resetSelectionOnDoubleClick: E,
|
|
153
|
+
highlightedIds: Z,
|
|
154
|
+
scale: x,
|
|
155
|
+
globeOffset: k,
|
|
156
|
+
polygonAltitude: F,
|
|
92
157
|
centerLng: B,
|
|
93
|
-
centerLat:
|
|
94
|
-
atmosphereAltitude:
|
|
95
|
-
globeCurvatureResolution:
|
|
96
|
-
fogSettings:
|
|
97
|
-
lights:
|
|
98
|
-
highlightedAltitude:
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
158
|
+
centerLat: U,
|
|
159
|
+
atmosphereAltitude: J,
|
|
160
|
+
globeCurvatureResolution: ie,
|
|
161
|
+
fogSettings: O,
|
|
162
|
+
lights: R,
|
|
163
|
+
highlightedAltitude: Y,
|
|
164
|
+
selectedId: D
|
|
165
|
+
} = e, [K, se] = L(!1), d = we(void 0), [b, H] = L(void 0), [ne, Q] = L(!(t < 680)), [ee, le] = L({ x: 0, y: 0 }), [N, de] = L(void 0), W = y ? ze().domain(m).range(l) : Ae().domain(m).range(l);
|
|
166
|
+
M(() => {
|
|
167
|
+
d.current && (d.current.controls().enableZoom = v);
|
|
168
|
+
}, [v]), M(() => {
|
|
169
|
+
d.current && (N || b || D ? d.current.controls().autoRotate = !1 : (d.current.controls().autoRotate = n !== 0, d.current.controls().autoRotateSpeed = n));
|
|
170
|
+
}, [N, b, D, n]), M(() => {
|
|
171
|
+
if (d.current && D) {
|
|
172
|
+
const r = I.find(
|
|
173
|
+
(g) => g.properties[h] === D
|
|
174
|
+
), [a, s] = Ue(r).geometry.coordinates;
|
|
175
|
+
d.current.pointOfView({ lat: s, lng: a, altitude: x }, 1e3);
|
|
176
|
+
}
|
|
177
|
+
}, [D, x, I, h]), M(() => {
|
|
178
|
+
const r = d.current?.renderer().domElement;
|
|
179
|
+
if (!r) return;
|
|
180
|
+
const a = (s) => {
|
|
181
|
+
le({ x: s.clientX, y: s.clientY });
|
|
116
182
|
};
|
|
117
|
-
return
|
|
118
|
-
}, []),
|
|
119
|
-
|
|
120
|
-
}, [
|
|
121
|
-
const
|
|
183
|
+
return r.addEventListener("mousemove", a), () => r.removeEventListener("mousemove", a);
|
|
184
|
+
}, []), M(() => {
|
|
185
|
+
d.current && d.current.pointOfView({ lat: U, lng: B, altitude: x }, 1e3);
|
|
186
|
+
}, [x, B, U]);
|
|
187
|
+
const X = p || new A.MeshBasicMaterial({
|
|
122
188
|
color: "#FFF"
|
|
123
|
-
}),
|
|
124
|
-
if (!
|
|
125
|
-
const
|
|
126
|
-
let
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}),
|
|
130
|
-
|
|
131
|
-
}),
|
|
132
|
-
}, [
|
|
133
|
-
|
|
134
|
-
}, [
|
|
135
|
-
return
|
|
136
|
-
|
|
137
|
-
}, [
|
|
138
|
-
/* @__PURE__ */
|
|
139
|
-
|
|
189
|
+
}), u = ue(() => {
|
|
190
|
+
if (!d.current) return;
|
|
191
|
+
const r = d.current.scene(), a = d.current.camera();
|
|
192
|
+
let s = [];
|
|
193
|
+
r.traverse((i) => {
|
|
194
|
+
i instanceof A.Light && s.push(i);
|
|
195
|
+
}), s = [...s, ...a.children], s.forEach((i) => i.parent?.remove(i)), R.map((i) => We(i)).forEach((i, j) => {
|
|
196
|
+
R[j].type !== "ambient" && R[j].position === "camera" ? (a.add(i), R[j].type !== "point" && a.add(i.target)) : r.add(i);
|
|
197
|
+
}), O && (r.fog = new A.Fog(O.color, O.near, O.far));
|
|
198
|
+
}, [R, O]), te = ue(() => {
|
|
199
|
+
se(!0), u();
|
|
200
|
+
}, [u]);
|
|
201
|
+
return M(() => {
|
|
202
|
+
K && u();
|
|
203
|
+
}, [K, u]), /* @__PURE__ */ o.jsxs("div", { className: "relative", children: [
|
|
204
|
+
/* @__PURE__ */ o.jsx(
|
|
205
|
+
ke,
|
|
140
206
|
{
|
|
141
|
-
ref:
|
|
142
|
-
height:
|
|
143
|
-
width:
|
|
144
|
-
globeOffset:
|
|
207
|
+
ref: d,
|
|
208
|
+
height: T,
|
|
209
|
+
width: t,
|
|
210
|
+
globeOffset: k,
|
|
145
211
|
lineHoverPrecision: 0,
|
|
146
|
-
polygonsData:
|
|
147
|
-
polygonAltitude: (
|
|
148
|
-
polygonCapColor: (
|
|
149
|
-
const
|
|
150
|
-
return
|
|
212
|
+
polygonsData: I,
|
|
213
|
+
polygonAltitude: (r) => Z.includes(r?.properties?.[h]) || r?.properties?.[h] === D || r?.properties?.[h] === N?.id || r?.properties?.[h] === b?.id ? Y : F,
|
|
214
|
+
polygonCapColor: (r) => {
|
|
215
|
+
const a = r?.properties?.[h], s = c.find((g) => g.id === a)?.x;
|
|
216
|
+
return s != null ? W(s) : f;
|
|
151
217
|
},
|
|
152
|
-
polygonSideColor: (
|
|
153
|
-
const
|
|
154
|
-
return
|
|
218
|
+
polygonSideColor: (r) => {
|
|
219
|
+
const a = r?.properties?.[h], s = c.find((i) => i.id === a)?.x, g = s != null ? W(s) : f;
|
|
220
|
+
return Z.includes(r?.properties?.[h]) ? g : "rgba(100,100,100,0)";
|
|
155
221
|
},
|
|
156
|
-
polygonStrokeColor: (
|
|
222
|
+
polygonStrokeColor: (r) => r?.properties?.[h] === N?.id ? ae : _,
|
|
157
223
|
onGlobeClick: () => {
|
|
158
|
-
|
|
224
|
+
H(void 0);
|
|
159
225
|
},
|
|
160
|
-
onPolygonClick: (
|
|
161
|
-
const
|
|
162
|
-
|
|
163
|
-
if (we(x, i) && P && i)
|
|
164
|
-
T(void 0), M?.(void 0), Y(void 0);
|
|
165
|
-
else {
|
|
166
|
-
T(i), M?.(i);
|
|
167
|
-
const [o, c] = Ce(t).geometry.coordinates;
|
|
168
|
-
Y([o, c]);
|
|
169
|
-
}
|
|
226
|
+
onPolygonClick: (r) => {
|
|
227
|
+
const a = r?.properties?.[h] ? c.find((s) => s.id === r?.properties?.[h]) : void 0;
|
|
228
|
+
(P || C) && (De(b, a) && E && a ? (H(void 0), P?.(void 0)) : (H(a), P?.(a)));
|
|
170
229
|
},
|
|
171
|
-
onPolygonHover: (
|
|
172
|
-
const
|
|
173
|
-
|
|
230
|
+
onPolygonHover: (r) => {
|
|
231
|
+
const a = r?.properties?.[h] ? c.find((s) => s.id === r?.properties?.[h]) : void 0;
|
|
232
|
+
de(a), w?.(a);
|
|
174
233
|
},
|
|
175
|
-
atmosphereColor:
|
|
176
|
-
atmosphereAltitude:
|
|
177
|
-
globeCurvatureResolution:
|
|
178
|
-
globeMaterial:
|
|
234
|
+
atmosphereColor: V,
|
|
235
|
+
atmosphereAltitude: J,
|
|
236
|
+
globeCurvatureResolution: ie,
|
|
237
|
+
globeMaterial: X,
|
|
179
238
|
backgroundColor: "rgba(0, 0, 0, 0)",
|
|
180
239
|
polygonsTransitionDuration: 100,
|
|
181
240
|
onGlobeReady: () => {
|
|
182
|
-
if (
|
|
183
|
-
|
|
184
|
-
lat:
|
|
241
|
+
if (d.current) {
|
|
242
|
+
d.current.pointOfView({
|
|
243
|
+
lat: U,
|
|
185
244
|
lng: B
|
|
186
245
|
});
|
|
187
|
-
const
|
|
246
|
+
const r = d.current.scene();
|
|
188
247
|
setTimeout(() => {
|
|
189
|
-
(
|
|
190
|
-
const
|
|
191
|
-
|
|
248
|
+
(r.children[3]?.children[0]?.children[4]?.children || []).forEach((g) => {
|
|
249
|
+
const i = g.children[1];
|
|
250
|
+
i.renderOrder = 2;
|
|
192
251
|
});
|
|
193
252
|
}, 300);
|
|
194
|
-
const
|
|
195
|
-
|
|
253
|
+
const a = d.current.camera();
|
|
254
|
+
r.add(a), te();
|
|
196
255
|
}
|
|
197
256
|
}
|
|
198
257
|
}
|
|
199
258
|
),
|
|
200
|
-
|
|
201
|
-
/* @__PURE__ */
|
|
259
|
+
oe === !1 ? null : /* @__PURE__ */ o.jsx("div", { className: "absolute left-4 bottom-4", children: ne ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
260
|
+
/* @__PURE__ */ o.jsx(
|
|
202
261
|
"div",
|
|
203
262
|
{
|
|
204
263
|
style: {
|
|
@@ -215,22 +274,22 @@ function Ee(e) {
|
|
|
215
274
|
top: "-0.75rem"
|
|
216
275
|
},
|
|
217
276
|
onClick: () => {
|
|
218
|
-
|
|
277
|
+
Q(!1);
|
|
219
278
|
},
|
|
220
|
-
children: /* @__PURE__ */
|
|
279
|
+
children: /* @__PURE__ */ o.jsx(Oe, {})
|
|
221
280
|
}
|
|
222
281
|
),
|
|
223
|
-
/* @__PURE__ */
|
|
282
|
+
/* @__PURE__ */ o.jsxs(
|
|
224
283
|
"div",
|
|
225
284
|
{
|
|
226
285
|
className: "p-2",
|
|
227
286
|
style: {
|
|
228
287
|
backgroundColor: "rgba(240,240,240, 0.7)",
|
|
229
|
-
width:
|
|
288
|
+
width: y ? void 0 : "340px"
|
|
230
289
|
},
|
|
231
290
|
children: [
|
|
232
|
-
|
|
233
|
-
|
|
291
|
+
G && G !== "" ? /* @__PURE__ */ o.jsx(
|
|
292
|
+
ge,
|
|
234
293
|
{
|
|
235
294
|
size: "xs",
|
|
236
295
|
marginBottom: "xs",
|
|
@@ -240,54 +299,54 @@ function Ee(e) {
|
|
|
240
299
|
WebkitLineClamp: "1",
|
|
241
300
|
WebkitBoxOrient: "vertical"
|
|
242
301
|
},
|
|
243
|
-
children:
|
|
302
|
+
children: G
|
|
244
303
|
}
|
|
245
304
|
) : null,
|
|
246
|
-
|
|
247
|
-
/* @__PURE__ */
|
|
305
|
+
y ? /* @__PURE__ */ o.jsx("div", { className: "flex flex-col gap-3", children: m.map((r, a) => /* @__PURE__ */ o.jsxs("div", { className: "flex gap-2 items-center", children: [
|
|
306
|
+
/* @__PURE__ */ o.jsx(
|
|
248
307
|
"div",
|
|
249
308
|
{
|
|
250
309
|
className: "w-2 h-2 rounded-full",
|
|
251
|
-
style: { backgroundColor:
|
|
310
|
+
style: { backgroundColor: l[a % l.length] }
|
|
252
311
|
}
|
|
253
312
|
),
|
|
254
|
-
/* @__PURE__ */
|
|
255
|
-
] },
|
|
256
|
-
|
|
257
|
-
/* @__PURE__ */
|
|
313
|
+
/* @__PURE__ */ o.jsx(ge, { size: "sm", marginBottom: "none", leading: "none", children: r })
|
|
314
|
+
] }, a)) }) : /* @__PURE__ */ o.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ o.jsxs("g", { children: [
|
|
315
|
+
m.map((r, a) => /* @__PURE__ */ o.jsxs("g", { className: "cursor-pointer", children: [
|
|
316
|
+
/* @__PURE__ */ o.jsx(
|
|
258
317
|
"rect",
|
|
259
318
|
{
|
|
260
|
-
x:
|
|
319
|
+
x: a * 320 / l.length + 1,
|
|
261
320
|
y: 1,
|
|
262
|
-
width: 320 /
|
|
321
|
+
width: 320 / l.length - 2,
|
|
263
322
|
height: 8,
|
|
264
323
|
style: {
|
|
265
|
-
fill:
|
|
266
|
-
stroke:
|
|
324
|
+
fill: l[a],
|
|
325
|
+
stroke: l[a]
|
|
267
326
|
}
|
|
268
327
|
}
|
|
269
328
|
),
|
|
270
|
-
/* @__PURE__ */
|
|
329
|
+
/* @__PURE__ */ o.jsx(
|
|
271
330
|
"text",
|
|
272
331
|
{
|
|
273
|
-
x: (
|
|
332
|
+
x: (a + 1) * 320 / l.length,
|
|
274
333
|
y: 25,
|
|
275
334
|
className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs",
|
|
276
335
|
style: { textAnchor: "middle" },
|
|
277
|
-
children:
|
|
336
|
+
children: Pe(r, "NA")
|
|
278
337
|
}
|
|
279
338
|
)
|
|
280
|
-
] },
|
|
281
|
-
/* @__PURE__ */
|
|
339
|
+
] }, a)),
|
|
340
|
+
/* @__PURE__ */ o.jsx("g", { children: /* @__PURE__ */ o.jsx(
|
|
282
341
|
"rect",
|
|
283
342
|
{
|
|
284
|
-
x:
|
|
343
|
+
x: m.length * 320 / l.length + 1,
|
|
285
344
|
y: 1,
|
|
286
|
-
width: 320 /
|
|
345
|
+
width: 320 / l.length - 2,
|
|
287
346
|
height: 8,
|
|
288
347
|
style: {
|
|
289
|
-
fill:
|
|
290
|
-
stroke:
|
|
348
|
+
fill: l[m.length],
|
|
349
|
+
stroke: l[m.length]
|
|
291
350
|
}
|
|
292
351
|
}
|
|
293
352
|
) })
|
|
@@ -295,95 +354,95 @@ function Ee(e) {
|
|
|
295
354
|
]
|
|
296
355
|
}
|
|
297
356
|
)
|
|
298
|
-
] }) : /* @__PURE__ */
|
|
357
|
+
] }) : /* @__PURE__ */ o.jsx(
|
|
299
358
|
"button",
|
|
300
359
|
{
|
|
301
360
|
type: "button",
|
|
302
361
|
className: "mb-0 border-0 bg-transparent p-0 self-start",
|
|
303
362
|
onClick: () => {
|
|
304
|
-
|
|
363
|
+
Q(!0);
|
|
305
364
|
},
|
|
306
|
-
children: /* @__PURE__ */
|
|
365
|
+
children: /* @__PURE__ */ o.jsx("div", { className: "items-start text-sm font-medium cursor-pointer p-2 mb-0 flex text-primary-black dark:text-primary-gray-300 bg-primary-gray-300 dark:bg-primary-gray-550 border-primary-gray-400 dark:border-primary-gray-500", children: "Show Legend" })
|
|
307
366
|
}
|
|
308
367
|
) }),
|
|
309
|
-
|
|
310
|
-
|
|
368
|
+
N && q ? /* @__PURE__ */ o.jsx(
|
|
369
|
+
Le,
|
|
311
370
|
{
|
|
312
|
-
data:
|
|
371
|
+
data: N,
|
|
313
372
|
body: q,
|
|
314
|
-
xPos:
|
|
315
|
-
yPos:
|
|
316
|
-
backgroundStyle:
|
|
373
|
+
xPos: ee.x,
|
|
374
|
+
yPos: ee.y,
|
|
375
|
+
backgroundStyle: S?.tooltip,
|
|
317
376
|
className: re?.tooltip
|
|
318
377
|
}
|
|
319
378
|
) : null,
|
|
320
|
-
|
|
321
|
-
|
|
379
|
+
C && b !== void 0 ? /* @__PURE__ */ o.jsx(
|
|
380
|
+
Ne,
|
|
322
381
|
{
|
|
323
|
-
open:
|
|
382
|
+
open: b !== void 0,
|
|
324
383
|
onClose: () => {
|
|
325
|
-
|
|
384
|
+
H(void 0);
|
|
326
385
|
},
|
|
327
|
-
children: /* @__PURE__ */
|
|
386
|
+
children: /* @__PURE__ */ o.jsx(
|
|
328
387
|
"div",
|
|
329
388
|
{
|
|
330
389
|
className: "graph-modal-content m-0",
|
|
331
|
-
dangerouslySetInnerHTML: typeof
|
|
332
|
-
children: typeof
|
|
390
|
+
dangerouslySetInnerHTML: typeof C == "string" ? { __html: Re(C, b) } : void 0,
|
|
391
|
+
children: typeof C == "function" ? C(b) : null
|
|
333
392
|
}
|
|
334
393
|
)
|
|
335
394
|
}
|
|
336
395
|
) : null
|
|
337
396
|
] });
|
|
338
397
|
}
|
|
339
|
-
function
|
|
398
|
+
function mt(e) {
|
|
340
399
|
const {
|
|
341
|
-
data:
|
|
342
|
-
mapData:
|
|
343
|
-
graphTitle:
|
|
344
|
-
colors:
|
|
345
|
-
sources:
|
|
346
|
-
graphDescription:
|
|
347
|
-
height:
|
|
348
|
-
width:
|
|
349
|
-
footNote:
|
|
350
|
-
colorDomain:
|
|
400
|
+
data: t,
|
|
401
|
+
mapData: n = "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-simplified.json",
|
|
402
|
+
graphTitle: c,
|
|
403
|
+
colors: v,
|
|
404
|
+
sources: y,
|
|
405
|
+
graphDescription: m,
|
|
406
|
+
height: l,
|
|
407
|
+
width: p,
|
|
408
|
+
footNote: T = "The designations employed and the presentation of material on this map do not imply the expression of any opinion whatsoever on the part of the Secretariat of the United Nations or UNDP concerning the legal status of any country, territory, city or area or its authorities, or concerning the delimitation of its frontiers or boundaries.",
|
|
409
|
+
colorDomain: I,
|
|
351
410
|
colorLegendTitle: h,
|
|
352
|
-
scaleType:
|
|
353
|
-
padding:
|
|
354
|
-
mapNoDataColor: q =
|
|
355
|
-
backgroundColor:
|
|
356
|
-
mapBorderColor: re =
|
|
357
|
-
relativeHeight:
|
|
358
|
-
tooltip:
|
|
359
|
-
graphID:
|
|
360
|
-
mapProperty:
|
|
361
|
-
dataDownload:
|
|
362
|
-
language:
|
|
363
|
-
minHeight:
|
|
364
|
-
theme:
|
|
365
|
-
ariaLabel:
|
|
366
|
-
styles:
|
|
367
|
-
classNames:
|
|
368
|
-
autoRotate:
|
|
411
|
+
scaleType: _ = "threshold",
|
|
412
|
+
padding: V,
|
|
413
|
+
mapNoDataColor: q = $.light.graphNoData,
|
|
414
|
+
backgroundColor: S = !1,
|
|
415
|
+
mapBorderColor: re = $.light.grays["gray-500"],
|
|
416
|
+
relativeHeight: f,
|
|
417
|
+
tooltip: G,
|
|
418
|
+
graphID: oe,
|
|
419
|
+
mapProperty: ae = "ISO3",
|
|
420
|
+
dataDownload: C = !1,
|
|
421
|
+
language: P = "en",
|
|
422
|
+
minHeight: w = 0,
|
|
423
|
+
theme: E = "light",
|
|
424
|
+
ariaLabel: Z,
|
|
425
|
+
styles: x,
|
|
426
|
+
classNames: k,
|
|
427
|
+
autoRotate: F = !0,
|
|
369
428
|
enableZoom: B = !0,
|
|
370
|
-
globeMaterial:
|
|
371
|
-
centerPoint:
|
|
372
|
-
atmosphereColor:
|
|
373
|
-
showColorScale:
|
|
374
|
-
resetSelectionOnDoubleClick:
|
|
375
|
-
detailsOnClick:
|
|
376
|
-
onSeriesMouseOver:
|
|
377
|
-
onSeriesMouseClick:
|
|
378
|
-
highlightedIds:
|
|
379
|
-
highlightedAltitude:
|
|
380
|
-
scale:
|
|
381
|
-
globeOffset:
|
|
382
|
-
polygonAltitude:
|
|
383
|
-
globeCurvatureResolution:
|
|
384
|
-
atmosphereAltitude:
|
|
385
|
-
fogSettings:
|
|
386
|
-
lights:
|
|
429
|
+
globeMaterial: U,
|
|
430
|
+
centerPoint: J = [0, 0],
|
|
431
|
+
atmosphereColor: ie = "#999",
|
|
432
|
+
showColorScale: O = !0,
|
|
433
|
+
resetSelectionOnDoubleClick: R = !0,
|
|
434
|
+
detailsOnClick: Y,
|
|
435
|
+
onSeriesMouseOver: D,
|
|
436
|
+
onSeriesMouseClick: K,
|
|
437
|
+
highlightedIds: se = [],
|
|
438
|
+
highlightedAltitude: d = 0.1,
|
|
439
|
+
scale: b = 1,
|
|
440
|
+
globeOffset: H = [0, 0],
|
|
441
|
+
polygonAltitude: ne = 0.01,
|
|
442
|
+
globeCurvatureResolution: Q = 4,
|
|
443
|
+
atmosphereAltitude: ee = 0.15,
|
|
444
|
+
fogSettings: le,
|
|
445
|
+
lights: N = [
|
|
387
446
|
{
|
|
388
447
|
type: "ambient",
|
|
389
448
|
color: 4210752,
|
|
@@ -395,154 +454,156 @@ function ot(e) {
|
|
|
395
454
|
intensity: 1,
|
|
396
455
|
position: { x: 5, y: 10, z: 5 }
|
|
397
456
|
}
|
|
398
|
-
]
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
457
|
+
],
|
|
458
|
+
selectedId: de
|
|
459
|
+
} = e, [W, X] = L(void 0), [u, te] = L(0), [r, a] = L(0), s = we(null);
|
|
460
|
+
M(() => {
|
|
461
|
+
const i = new ResizeObserver((j) => {
|
|
462
|
+
te(p || j[0].target.clientWidth || 760), a(l || j[0].target.clientHeight || 480);
|
|
403
463
|
});
|
|
404
|
-
return
|
|
405
|
-
}, [
|
|
406
|
-
typeof
|
|
407
|
-
if (
|
|
408
|
-
const
|
|
409
|
-
if (
|
|
410
|
-
const ce = [...
|
|
411
|
-
return { ...
|
|
464
|
+
return s.current && (a(s.current.clientHeight || 480), te(s.current.clientWidth || 760), p || i.observe(s.current)), () => i.disconnect();
|
|
465
|
+
}, [p, l]), M(() => {
|
|
466
|
+
typeof n == "string" ? He(n).then((j) => {
|
|
467
|
+
if (n === "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-simplified.json") {
|
|
468
|
+
const be = j.features.map((z) => {
|
|
469
|
+
if (z.geometry.type === "Polygon") {
|
|
470
|
+
const ce = [...z.geometry.coordinates[0]].reverse(), pe = { ...z.geometry, coordinates: [ce] };
|
|
471
|
+
return { ...z, geometry: pe };
|
|
412
472
|
}
|
|
413
|
-
const
|
|
414
|
-
|
|
415
|
-
const
|
|
416
|
-
|
|
473
|
+
const me = [];
|
|
474
|
+
z.geometry.coordinates.forEach((ce) => {
|
|
475
|
+
const pe = [...ce[0]].reverse();
|
|
476
|
+
me.push([pe]);
|
|
417
477
|
});
|
|
418
|
-
const
|
|
419
|
-
return { ...
|
|
478
|
+
const Ce = { ...z.geometry, coordinates: me };
|
|
479
|
+
return { ...z, geometry: Ce };
|
|
420
480
|
});
|
|
421
|
-
|
|
422
|
-
} else
|
|
423
|
-
}) :
|
|
424
|
-
}, [
|
|
425
|
-
const
|
|
426
|
-
|
|
427
|
-
|
|
481
|
+
X(be);
|
|
482
|
+
} else X(j.features);
|
|
483
|
+
}) : X(n.features);
|
|
484
|
+
}, [n]);
|
|
485
|
+
const g = I || (_ === "categorical" ? $e(t, "x") : Ie(
|
|
486
|
+
t.map((i) => i.x),
|
|
487
|
+
v?.length || 4
|
|
428
488
|
));
|
|
429
|
-
return /* @__PURE__ */
|
|
489
|
+
return /* @__PURE__ */ o.jsx(
|
|
430
490
|
"div",
|
|
431
491
|
{
|
|
432
|
-
className: `${
|
|
433
|
-
dir:
|
|
434
|
-
children: /* @__PURE__ */
|
|
492
|
+
className: `${E || "light"} flex ${p ? "w-fit grow-0" : "w-full grow"}`,
|
|
493
|
+
dir: P === "he" || P === "ar" ? "rtl" : void 0,
|
|
494
|
+
children: /* @__PURE__ */ o.jsx(
|
|
435
495
|
"div",
|
|
436
496
|
{
|
|
437
|
-
className:
|
|
438
|
-
`${
|
|
439
|
-
|
|
440
|
-
|
|
497
|
+
className: je(
|
|
498
|
+
`${S ? S === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${P || "en"}`,
|
|
499
|
+
p ? "w-fit" : "w-full",
|
|
500
|
+
k?.graphContainer
|
|
441
501
|
),
|
|
442
502
|
style: {
|
|
443
|
-
...
|
|
444
|
-
...
|
|
503
|
+
...x?.graphContainer || {},
|
|
504
|
+
...S && S !== !0 ? { backgroundColor: S } : {}
|
|
445
505
|
},
|
|
446
|
-
id:
|
|
447
|
-
"aria-label":
|
|
448
|
-
children: /* @__PURE__ */
|
|
506
|
+
id: oe,
|
|
507
|
+
"aria-label": Z || `${c ? `The graph shows ${c}. ` : ""}This is a map.${m ? ` ${m}` : ""}`,
|
|
508
|
+
children: /* @__PURE__ */ o.jsx(
|
|
449
509
|
"div",
|
|
450
510
|
{
|
|
451
511
|
className: "flex grow",
|
|
452
|
-
style: { padding:
|
|
453
|
-
children: /* @__PURE__ */
|
|
454
|
-
|
|
455
|
-
|
|
512
|
+
style: { padding: S ? V || "1rem" : V || 0 },
|
|
513
|
+
children: /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
|
|
514
|
+
c || m || C ? /* @__PURE__ */ o.jsx(
|
|
515
|
+
Te,
|
|
456
516
|
{
|
|
457
517
|
styles: {
|
|
458
|
-
title:
|
|
459
|
-
description:
|
|
518
|
+
title: x?.title,
|
|
519
|
+
description: x?.description
|
|
460
520
|
},
|
|
461
521
|
classNames: {
|
|
462
|
-
title:
|
|
463
|
-
description:
|
|
522
|
+
title: k?.title,
|
|
523
|
+
description: k?.description
|
|
464
524
|
},
|
|
465
|
-
graphTitle:
|
|
466
|
-
graphDescription:
|
|
467
|
-
width:
|
|
525
|
+
graphTitle: c,
|
|
526
|
+
graphDescription: m,
|
|
527
|
+
width: p,
|
|
468
528
|
graphDownload: void 0,
|
|
469
|
-
dataDownload:
|
|
529
|
+
dataDownload: C ? t.map((i) => i.data).filter((i) => i !== void 0).length > 0 ? t.map((i) => i.data).filter((i) => i !== void 0) : t.filter((i) => i !== void 0) : null
|
|
470
530
|
}
|
|
471
531
|
) : null,
|
|
472
|
-
/* @__PURE__ */
|
|
532
|
+
/* @__PURE__ */ o.jsx(
|
|
473
533
|
"div",
|
|
474
534
|
{
|
|
475
535
|
className: "flex flex-col grow justify-center leading-0",
|
|
476
|
-
ref:
|
|
536
|
+
ref: s,
|
|
477
537
|
"aria-label": "Map area",
|
|
478
|
-
children: (
|
|
479
|
-
|
|
538
|
+
children: (p || u) && (l || r) && W ? /* @__PURE__ */ o.jsx(
|
|
539
|
+
Xe,
|
|
480
540
|
{
|
|
481
|
-
data:
|
|
482
|
-
globeOffset:
|
|
483
|
-
polygonData:
|
|
484
|
-
colorDomain:
|
|
485
|
-
width:
|
|
541
|
+
data: t,
|
|
542
|
+
globeOffset: H,
|
|
543
|
+
polygonData: W,
|
|
544
|
+
colorDomain: g,
|
|
545
|
+
width: p || u,
|
|
486
546
|
height: Math.max(
|
|
487
|
-
|
|
488
|
-
|
|
547
|
+
w,
|
|
548
|
+
l || (f ? w ? (p || u) * f > w ? (p || u) * f : w : (p || u) * f : r)
|
|
489
549
|
),
|
|
490
|
-
colors:
|
|
550
|
+
colors: v || (_ === "categorical" ? $[E].sequentialColors[`neutralColorsx0${g.length}`] : $[E].sequentialColors[`neutralColorsx0${g.length + 1}`]),
|
|
491
551
|
mapNoDataColor: q,
|
|
492
|
-
categorical:
|
|
552
|
+
categorical: _ === "categorical",
|
|
493
553
|
mapBorderColor: re,
|
|
494
|
-
tooltip:
|
|
495
|
-
mapProperty:
|
|
496
|
-
styles:
|
|
497
|
-
classNames:
|
|
498
|
-
autoRotate:
|
|
554
|
+
tooltip: G,
|
|
555
|
+
mapProperty: ae,
|
|
556
|
+
styles: x,
|
|
557
|
+
classNames: k,
|
|
558
|
+
autoRotate: F === !0 ? 1.5 : F === !1 ? 0 : F,
|
|
499
559
|
enableZoom: B,
|
|
500
|
-
globeMaterial:
|
|
501
|
-
atmosphereColor:
|
|
560
|
+
globeMaterial: U,
|
|
561
|
+
atmosphereColor: ie,
|
|
502
562
|
colorLegendTitle: h,
|
|
503
|
-
showColorScale:
|
|
504
|
-
hoverStrokeColor:
|
|
505
|
-
highlightedIds:
|
|
506
|
-
resetSelectionOnDoubleClick:
|
|
507
|
-
detailsOnClick:
|
|
508
|
-
onSeriesMouseOver:
|
|
509
|
-
onSeriesMouseClick:
|
|
510
|
-
scale:
|
|
511
|
-
polygonAltitude:
|
|
512
|
-
centerLat:
|
|
513
|
-
centerLng:
|
|
514
|
-
atmosphereAltitude:
|
|
515
|
-
globeCurvatureResolution:
|
|
516
|
-
fogSettings:
|
|
517
|
-
lights:
|
|
518
|
-
highlightedAltitude:
|
|
563
|
+
showColorScale: O,
|
|
564
|
+
hoverStrokeColor: E === "light" ? $.light.grays["gray-700"] : $.light.grays["gray-300"],
|
|
565
|
+
highlightedIds: se,
|
|
566
|
+
resetSelectionOnDoubleClick: R,
|
|
567
|
+
detailsOnClick: Y,
|
|
568
|
+
onSeriesMouseOver: D,
|
|
569
|
+
onSeriesMouseClick: K,
|
|
570
|
+
scale: b,
|
|
571
|
+
polygonAltitude: ne,
|
|
572
|
+
centerLat: J[0],
|
|
573
|
+
centerLng: J[1],
|
|
574
|
+
atmosphereAltitude: ee,
|
|
575
|
+
globeCurvatureResolution: Q,
|
|
576
|
+
fogSettings: le,
|
|
577
|
+
lights: N,
|
|
578
|
+
highlightedAltitude: d,
|
|
579
|
+
selectedId: de
|
|
519
580
|
}
|
|
520
|
-
) : /* @__PURE__ */
|
|
581
|
+
) : /* @__PURE__ */ o.jsx(
|
|
521
582
|
"div",
|
|
522
583
|
{
|
|
523
584
|
style: {
|
|
524
585
|
height: `${Math.max(
|
|
525
|
-
|
|
526
|
-
|
|
586
|
+
w,
|
|
587
|
+
l || (f ? w ? (p || u) * f > w ? (p || u) * f : w : (p || u) * f : r)
|
|
527
588
|
)}px`
|
|
528
589
|
},
|
|
529
590
|
className: "flex items-center justify-center",
|
|
530
|
-
children: /* @__PURE__ */
|
|
591
|
+
children: /* @__PURE__ */ o.jsx(Se, { "aria-label": "Loading graph" })
|
|
531
592
|
}
|
|
532
593
|
)
|
|
533
594
|
}
|
|
534
595
|
),
|
|
535
|
-
|
|
536
|
-
|
|
596
|
+
y || T ? /* @__PURE__ */ o.jsx(
|
|
597
|
+
Ee,
|
|
537
598
|
{
|
|
538
|
-
styles: { footnote:
|
|
599
|
+
styles: { footnote: x?.footnote, source: x?.source },
|
|
539
600
|
classNames: {
|
|
540
|
-
footnote:
|
|
541
|
-
source:
|
|
601
|
+
footnote: k?.footnote,
|
|
602
|
+
source: k?.source
|
|
542
603
|
},
|
|
543
|
-
sources:
|
|
544
|
-
footNote:
|
|
545
|
-
width:
|
|
604
|
+
sources: y,
|
|
605
|
+
footNote: T,
|
|
606
|
+
width: p
|
|
546
607
|
}
|
|
547
608
|
) : null
|
|
548
609
|
] })
|
|
@@ -554,6 +615,6 @@ function ot(e) {
|
|
|
554
615
|
);
|
|
555
616
|
}
|
|
556
617
|
export {
|
|
557
|
-
|
|
618
|
+
mt as ThreeDGlobe
|
|
558
619
|
};
|
|
559
620
|
//# sourceMappingURL=ThreeDGlobe.js.map
|