@thebuoyant-tsdev/mui-ts-library 3.20.0 → 3.22.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/README.de.md +20 -6
- package/README.md +20 -6
- package/dist/components/chord-chart/ChordChart.d.ts +1 -1
- package/dist/components/chord-chart/ChordChart.js +66 -65
- package/dist/components/chord-chart/ChordChart.types.d.ts +7 -0
- package/dist/components/circle-packing-chart/CirclePackingChart.d.ts +1 -1
- package/dist/components/circle-packing-chart/CirclePackingChart.js +128 -128
- package/dist/components/circle-packing-chart/CirclePackingChart.types.d.ts +7 -0
- package/dist/components/radial-stacked-bar-chart/RadialStackedBarChart.d.ts +1 -1
- package/dist/components/radial-stacked-bar-chart/RadialStackedBarChart.js +85 -84
- package/dist/components/radial-stacked-bar-chart/RadialStackedBarChart.types.d.ts +8 -0
- package/dist/components/sunburst-chart/SunburstChart.d.ts +1 -1
- package/dist/components/sunburst-chart/SunburstChart.js +41 -40
- package/dist/components/sunburst-chart/SunburstChart.types.d.ts +7 -0
- package/dist/components/tag-selection/TagSelection.d.ts +1 -1
- package/dist/components/tag-selection/TagSelection.js +61 -58
- package/dist/components/tag-selection/TagSelection.types.d.ts +6 -0
- package/dist/components/tag-selection/TagSelectionAutocomplete.d.ts +2 -1
- package/dist/components/tag-selection/TagSelectionAutocomplete.js +97 -96
- package/dist/components/tag-selection/TagSelectionChip.d.ts +2 -1
- package/dist/components/tag-selection/TagSelectionChip.js +8 -8
- package/dist/components/tag-selection/TagSelectionSelectedTags.d.ts +2 -1
- package/dist/components/tag-selection/TagSelectionSelectedTags.js +18 -16
- package/dist/index.cjs +2 -2
- package/package.json +1 -1
|
@@ -5,61 +5,61 @@ import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
|
5
5
|
import * as p from "d3";
|
|
6
6
|
//#region src/components/circle-packing-chart/CirclePackingChart.tsx
|
|
7
7
|
var m = .56;
|
|
8
|
-
function
|
|
8
|
+
function h(e, t, n) {
|
|
9
9
|
return e.length * n * m <= t ? e : t >= 3 * n * m + n * 2 ? "…" : "";
|
|
10
10
|
}
|
|
11
|
-
function
|
|
12
|
-
let
|
|
11
|
+
function g({ data: m, size: g = 600, padding: _ = 3, sortBy: v = "value", showLabels: y = !0, showAllLabels: b = !1, labelFontSize: ee = 13, innerLabelFontSize: x = 9, labelColor: te, chartColors: S, depthColorStart: C, depthColorEnd: w, background: T, duration: E = 750, zoomable: D = !1, disabled: O = !1, onCircleClick: k, onZoomChange: A, valueFormatter: j, translation: ne }) {
|
|
12
|
+
let M = u(), re = {
|
|
13
13
|
...e,
|
|
14
|
-
...
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
],
|
|
14
|
+
...ne
|
|
15
|
+
}, ie = !m.children?.length && !m.value, ae = [
|
|
16
|
+
M.palette.primary.main,
|
|
17
|
+
M.palette.secondary.main,
|
|
18
|
+
M.palette.error.main,
|
|
19
|
+
M.palette.warning.main,
|
|
20
|
+
M.palette.success.main,
|
|
21
|
+
M.palette.info.main
|
|
22
|
+
], N = te || M.palette.text.primary, P = T || M.palette.background.default, F = M.typography.fontFamily, I = i(() => {
|
|
23
23
|
let e = p.hierarchy(m).sum((e) => e.value ?? 0);
|
|
24
|
-
return
|
|
24
|
+
return v === "value" ? e.sort((e, t) => (t.value ?? 0) - (e.value ?? 0)) : e.sort((e, t) => String(e.data.name).localeCompare(String(t.data.name), void 0, {
|
|
25
25
|
numeric: !0,
|
|
26
26
|
sensitivity: "base"
|
|
27
|
-
})), p.pack().size([
|
|
27
|
+
})), p.pack().size([g, g]).padding(_)(e);
|
|
28
28
|
}, [
|
|
29
29
|
m,
|
|
30
|
-
h,
|
|
31
30
|
g,
|
|
32
|
-
_
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
_,
|
|
32
|
+
v
|
|
33
|
+
]), L = I.descendants(), R = i(() => p.max(L, (e) => e.depth) ?? 0, [L]), z = !!(C && w), B = i(() => z ? p.scaleSequential(p.interpolateHcl(C, w)).domain([0, Math.max(1, R)]) : null, [
|
|
34
|
+
z,
|
|
36
35
|
C,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
36
|
+
w,
|
|
37
|
+
R
|
|
38
|
+
]), V = S && S.length > 0 ? S : ae, oe = t((e) => e.data.colorConfig?.fill ? e.data.colorConfig.fill : z && B ? e.children ? B(e.depth) : M.palette.background.paper : V[e.depth % V.length], [
|
|
39
|
+
z,
|
|
40
|
+
B,
|
|
41
|
+
V,
|
|
42
|
+
M
|
|
43
|
+
]), [H, U] = o(1), se = t((e) => {
|
|
44
|
+
if (!D || O || !e.ctrlKey) return;
|
|
45
45
|
e.preventDefault();
|
|
46
46
|
let t = e.deltaY < 0 ? 1.15 : 1 / 1.15;
|
|
47
|
-
|
|
48
|
-
}, [
|
|
47
|
+
U((e) => Math.max(.25, Math.min(8, e * t)));
|
|
48
|
+
}, [D, O]);
|
|
49
49
|
r(() => {
|
|
50
|
-
if (!
|
|
50
|
+
if (!D) return;
|
|
51
51
|
let e = (e) => {
|
|
52
|
-
e.key === "Escape" &&
|
|
52
|
+
e.key === "Escape" && U(1);
|
|
53
53
|
};
|
|
54
54
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
55
|
-
}, [
|
|
56
|
-
let
|
|
57
|
-
let e = `${-
|
|
58
|
-
if (
|
|
59
|
-
let t =
|
|
60
|
-
return `${-
|
|
61
|
-
}, [
|
|
62
|
-
let t = e.value ?? 0, n =
|
|
55
|
+
}, [D]);
|
|
56
|
+
let ce = i(() => {
|
|
57
|
+
let e = `${-g / 2} ${-g / 2} ${g} ${g}`;
|
|
58
|
+
if (H === 1) return e;
|
|
59
|
+
let t = g / H, n = (g - t) / 2;
|
|
60
|
+
return `${-g / 2 + n} ${-g / 2 + n} ${t} ${t}`;
|
|
61
|
+
}, [g, H]), le = t((e) => {
|
|
62
|
+
let t = e.value ?? 0, n = I.value ?? 0;
|
|
63
63
|
return {
|
|
64
64
|
id: e.data.id ?? null,
|
|
65
65
|
name: e.data.name,
|
|
@@ -70,51 +70,51 @@ function h({ data: m, size: h = 600, padding: g = 3, sortBy: _ = "value", showLa
|
|
|
70
70
|
childrenCount: e.children?.length ?? 0,
|
|
71
71
|
data: e.data
|
|
72
72
|
};
|
|
73
|
-
}, [
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
]), K = a(
|
|
78
|
-
K.current = e,
|
|
79
|
-
}, []), [
|
|
80
|
-
|
|
73
|
+
}, [I]), W = a(null), G = a([
|
|
74
|
+
I.x,
|
|
75
|
+
I.y,
|
|
76
|
+
I.r * 2
|
|
77
|
+
]), K = a(I), [q, ue] = o(I), J = t((e) => {
|
|
78
|
+
K.current = e, ue(e);
|
|
79
|
+
}, []), [de, fe] = o(I);
|
|
80
|
+
de !== I && (fe(I), J(I), K.current = I);
|
|
81
81
|
let Y = t((e) => {
|
|
82
82
|
let t = W.current;
|
|
83
83
|
if (!t) return;
|
|
84
84
|
G.current = e;
|
|
85
|
-
let n =
|
|
86
|
-
for (let t = 0; t <
|
|
87
|
-
let r =
|
|
85
|
+
let n = g / e[2], r = K.current, i = t.querySelectorAll("g[data-role='nodes'] > g"), a = t.querySelectorAll("g[data-role='nodes'] > g > circle");
|
|
86
|
+
for (let t = 0; t < L.length; t++) {
|
|
87
|
+
let r = L[t], o = i[t];
|
|
88
88
|
o && o.setAttribute("transform", `translate(${(r.x - e[0]) * n},${(r.y - e[1]) * n})`);
|
|
89
89
|
let s = t - 1;
|
|
90
90
|
s >= 0 && a[s] && a[s].setAttribute("r", String(r.r * n));
|
|
91
91
|
}
|
|
92
|
-
if (
|
|
92
|
+
if (y) {
|
|
93
93
|
let r = t.querySelectorAll("g[data-role='labels'] > text");
|
|
94
|
-
for (let t = 0; t <
|
|
95
|
-
let i =
|
|
94
|
+
for (let t = 0; t < L.length; t++) {
|
|
95
|
+
let i = L[t], a = r[t];
|
|
96
96
|
a && (a.setAttribute("transform", `translate(${(i.x - e[0]) * n},${(i.y - e[1]) * n})`), a.setAttribute("font-weight", i.children ? "bold" : "normal"));
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
if (
|
|
99
|
+
if (b) {
|
|
100
100
|
let i = t.querySelectorAll("g[data-role='inner-labels'] > text");
|
|
101
|
-
for (let t = 0; t <
|
|
102
|
-
let a =
|
|
101
|
+
for (let t = 0; t < L.length; t++) {
|
|
102
|
+
let a = L[t], o = i[t];
|
|
103
103
|
if (!o) continue;
|
|
104
|
-
let s = a.r * n, c = s * 1.6, l = r ===
|
|
104
|
+
let s = a.r * n, c = s * 1.6, l = r === I ? a !== I : a.ancestors().includes(r), u = a.parent === r;
|
|
105
105
|
if (l && !u && s >= 14) {
|
|
106
|
-
let t =
|
|
106
|
+
let t = h(a.data.name, c, x);
|
|
107
107
|
t ? (o.textContent = t, o.setAttribute("transform", `translate(${(a.x - e[0]) * n},${(a.y - e[1]) * n})`), o.setAttribute("font-weight", a.children ? "bold" : "normal"), o.style.display = "inline") : o.style.display = "none";
|
|
108
108
|
} else o.style.display = "none";
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
}, [
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
v,
|
|
112
|
+
L,
|
|
113
|
+
g,
|
|
115
114
|
y,
|
|
116
115
|
b,
|
|
117
|
-
|
|
116
|
+
x,
|
|
117
|
+
I
|
|
118
118
|
]);
|
|
119
119
|
r(() => {
|
|
120
120
|
Y([
|
|
@@ -123,8 +123,8 @@ function h({ data: m, size: h = 600, padding: g = 3, sortBy: _ = "value", showLa
|
|
|
123
123
|
q.r * 2
|
|
124
124
|
]);
|
|
125
125
|
}, [
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
I,
|
|
127
|
+
g,
|
|
128
128
|
q,
|
|
129
129
|
Y
|
|
130
130
|
]);
|
|
@@ -141,24 +141,24 @@ function h({ data: m, size: h = 600, padding: g = 3, sortBy: _ = "value", showLa
|
|
|
141
141
|
return (t) => Y(e(t));
|
|
142
142
|
});
|
|
143
143
|
let o = n.querySelectorAll("g[data-role='labels'] > text");
|
|
144
|
-
p.selectAll(o).transition().duration(t).ease(p.easeCubic).style("fill-opacity", (t, n) => +(
|
|
145
|
-
|
|
144
|
+
p.selectAll(o).transition().duration(t).ease(p.easeCubic).style("fill-opacity", (t, n) => +(L[n].parent === e)).on("start", function(t, n) {
|
|
145
|
+
L[n].parent === e && (this.style.display = "inline");
|
|
146
146
|
}).on("end", function(t, n) {
|
|
147
|
-
|
|
148
|
-
}),
|
|
147
|
+
L[n].parent !== e && (this.style.display = "none");
|
|
148
|
+
}), A?.({
|
|
149
149
|
previousName: r.data.name,
|
|
150
150
|
currentName: e.data.name,
|
|
151
151
|
currentDepth: e.depth,
|
|
152
|
-
isRoot: e ===
|
|
152
|
+
isRoot: e === I
|
|
153
153
|
});
|
|
154
154
|
}, [
|
|
155
155
|
q,
|
|
156
|
-
|
|
157
|
-
|
|
156
|
+
L,
|
|
157
|
+
I,
|
|
158
158
|
Y,
|
|
159
|
-
|
|
159
|
+
A,
|
|
160
160
|
J
|
|
161
|
-
]), Z = a(null),
|
|
161
|
+
]), Z = a(null), pe = (e) => {
|
|
162
162
|
Z.current &&= (clearTimeout(Z.current), null), Z.current = setTimeout(() => {
|
|
163
163
|
e(), Z.current = null;
|
|
164
164
|
}, 250);
|
|
@@ -168,63 +168,63 @@ function h({ data: m, size: h = 600, padding: g = 3, sortBy: _ = "value", showLa
|
|
|
168
168
|
n(() => {
|
|
169
169
|
$.current = X;
|
|
170
170
|
}, [X]), r(() => {
|
|
171
|
-
if (
|
|
171
|
+
if (O) return;
|
|
172
172
|
let e = (e) => {
|
|
173
|
-
e.key === "Escape" && (Q(), $.current(
|
|
173
|
+
e.key === "Escape" && (Q(), $.current(I, E));
|
|
174
174
|
};
|
|
175
175
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
176
176
|
}, [
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
O,
|
|
178
|
+
I,
|
|
179
|
+
E
|
|
180
180
|
]);
|
|
181
|
-
let
|
|
182
|
-
if (
|
|
181
|
+
let me = (e) => {
|
|
182
|
+
if (O || !(e.ctrlKey || e.metaKey)) return;
|
|
183
183
|
Q(), e.preventDefault();
|
|
184
|
-
let t = q.parent ??
|
|
185
|
-
t !== q && X(t, e.altKey ? Math.max(250,
|
|
186
|
-
},
|
|
184
|
+
let t = q.parent ?? I;
|
|
185
|
+
t !== q && X(t, e.altKey ? Math.max(250, E * 10) : E);
|
|
186
|
+
}, he = {
|
|
187
187
|
followCursor: !0,
|
|
188
188
|
enterDelay: 50,
|
|
189
189
|
enterNextDelay: 0,
|
|
190
|
-
disableHoverListener:
|
|
190
|
+
disableHoverListener: O,
|
|
191
191
|
slotProps: { tooltip: { sx: { maxWidth: 220 } } }
|
|
192
192
|
};
|
|
193
193
|
return /* @__PURE__ */ f(s, {
|
|
194
194
|
sx: {
|
|
195
195
|
display: "inline-flex",
|
|
196
196
|
position: "relative",
|
|
197
|
-
opacity:
|
|
198
|
-
cursor:
|
|
197
|
+
opacity: O ? .5 : 1,
|
|
198
|
+
cursor: O ? "not-allowed" : "default",
|
|
199
199
|
userSelect: "none"
|
|
200
200
|
},
|
|
201
201
|
children: [/* @__PURE__ */ f("svg", {
|
|
202
202
|
ref: W,
|
|
203
|
-
width:
|
|
204
|
-
height:
|
|
205
|
-
viewBox:
|
|
206
|
-
onWheel:
|
|
203
|
+
width: g,
|
|
204
|
+
height: g,
|
|
205
|
+
viewBox: ce,
|
|
206
|
+
onWheel: se,
|
|
207
207
|
style: {
|
|
208
208
|
display: "block",
|
|
209
|
-
background:
|
|
210
|
-
fontFamily:
|
|
211
|
-
overflow:
|
|
209
|
+
background: P,
|
|
210
|
+
fontFamily: F ?? "sans-serif",
|
|
211
|
+
overflow: D && H > 1 ? "hidden" : "visible"
|
|
212
212
|
},
|
|
213
213
|
role: "img",
|
|
214
214
|
"aria-label": m.name,
|
|
215
|
-
onDoubleClick:
|
|
215
|
+
onDoubleClick: me,
|
|
216
216
|
children: [
|
|
217
|
-
|
|
217
|
+
ie && /* @__PURE__ */ d("text", {
|
|
218
218
|
textAnchor: "middle",
|
|
219
219
|
dy: "0.35em",
|
|
220
220
|
fontSize: 13,
|
|
221
|
-
fill:
|
|
222
|
-
children:
|
|
221
|
+
fill: M.palette.text.secondary,
|
|
222
|
+
children: re.noData
|
|
223
223
|
}),
|
|
224
224
|
/* @__PURE__ */ d("g", {
|
|
225
225
|
"data-role": "nodes",
|
|
226
|
-
children:
|
|
227
|
-
let n =
|
|
226
|
+
children: L.map((e, t) => {
|
|
227
|
+
let n = le(e), r = /* @__PURE__ */ f(s, {
|
|
228
228
|
sx: {
|
|
229
229
|
py: .5,
|
|
230
230
|
minWidth: 160
|
|
@@ -256,7 +256,7 @@ function h({ data: m, size: h = 600, padding: g = 3, sortBy: _ = "value", showLa
|
|
|
256
256
|
children: "Value"
|
|
257
257
|
}), /* @__PURE__ */ d(l, {
|
|
258
258
|
variant: "caption",
|
|
259
|
-
children: e.value
|
|
259
|
+
children: j ? j(e.value ?? 0) : (e.value ?? 0).toLocaleString()
|
|
260
260
|
})]
|
|
261
261
|
}),
|
|
262
262
|
/* @__PURE__ */ f(s, {
|
|
@@ -293,42 +293,42 @@ function h({ data: m, size: h = 600, padding: g = 3, sortBy: _ = "value", showLa
|
|
|
293
293
|
})]
|
|
294
294
|
});
|
|
295
295
|
return /* @__PURE__ */ d("g", {
|
|
296
|
-
transform: `translate(${e.x -
|
|
296
|
+
transform: `translate(${e.x - g / 2},${e.y - g / 2})`,
|
|
297
297
|
children: t === 0 ? null : /* @__PURE__ */ d(c, {
|
|
298
|
-
...
|
|
298
|
+
...he,
|
|
299
299
|
title: r,
|
|
300
300
|
children: /* @__PURE__ */ d("circle", {
|
|
301
301
|
r: e.r,
|
|
302
|
-
fill:
|
|
303
|
-
stroke: e.data.colorConfig?.stroke ??
|
|
302
|
+
fill: oe(e),
|
|
303
|
+
stroke: e.data.colorConfig?.stroke ?? M.palette.background.paper,
|
|
304
304
|
strokeWidth: .75,
|
|
305
305
|
style: {
|
|
306
|
-
cursor:
|
|
306
|
+
cursor: O ? "not-allowed" : e.children ? "pointer" : "default",
|
|
307
307
|
transition: "stroke-width 0.1s"
|
|
308
308
|
},
|
|
309
309
|
onMouseEnter: (e) => {
|
|
310
|
-
|
|
310
|
+
O || (e.currentTarget.style.strokeWidth = "2");
|
|
311
311
|
},
|
|
312
312
|
onMouseLeave: (e) => {
|
|
313
313
|
e.currentTarget.style.strokeWidth = "0.75";
|
|
314
314
|
},
|
|
315
315
|
onClick: (t) => {
|
|
316
|
-
if (!
|
|
316
|
+
if (!O) {
|
|
317
317
|
if (t.ctrlKey || t.metaKey) {
|
|
318
318
|
if (e.children) {
|
|
319
|
-
let n = t.altKey ? Math.max(250,
|
|
320
|
-
|
|
319
|
+
let n = t.altKey ? Math.max(250, E * 10) : E;
|
|
320
|
+
pe(() => X(e, n));
|
|
321
321
|
}
|
|
322
322
|
return;
|
|
323
323
|
}
|
|
324
|
-
|
|
324
|
+
k?.(n, t);
|
|
325
325
|
}
|
|
326
326
|
},
|
|
327
327
|
onDoubleClick: (e) => {
|
|
328
|
-
if (!
|
|
328
|
+
if (!O && (e.ctrlKey || e.metaKey)) {
|
|
329
329
|
Q(), e.preventDefault(), e.stopPropagation();
|
|
330
|
-
let t = q.parent ??
|
|
331
|
-
t !== q && X(t, e.altKey ? Math.max(250,
|
|
330
|
+
let t = q.parent ?? I;
|
|
331
|
+
t !== q && X(t, e.altKey ? Math.max(250, E * 10) : E);
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
})
|
|
@@ -336,36 +336,36 @@ function h({ data: m, size: h = 600, padding: g = 3, sortBy: _ = "value", showLa
|
|
|
336
336
|
}, `n-${t}`);
|
|
337
337
|
})
|
|
338
338
|
}),
|
|
339
|
-
|
|
339
|
+
y && /* @__PURE__ */ d("g", {
|
|
340
340
|
"data-role": "labels",
|
|
341
341
|
textAnchor: "middle",
|
|
342
342
|
dominantBaseline: "middle",
|
|
343
343
|
pointerEvents: "none",
|
|
344
|
-
fontSize:
|
|
345
|
-
fill:
|
|
346
|
-
children:
|
|
347
|
-
transform: `translate(${e.x -
|
|
344
|
+
fontSize: ee,
|
|
345
|
+
fill: N,
|
|
346
|
+
children: L.map((e, t) => /* @__PURE__ */ d("text", {
|
|
347
|
+
transform: `translate(${e.x - g / 2},${e.y - g / 2})`,
|
|
348
348
|
style: {
|
|
349
|
-
display: e.parent ===
|
|
350
|
-
fillOpacity: +(e.parent ===
|
|
349
|
+
display: e.parent === I ? "inline" : "none",
|
|
350
|
+
fillOpacity: +(e.parent === I)
|
|
351
351
|
},
|
|
352
352
|
children: e.data.name
|
|
353
353
|
}, `lbl-${t}`))
|
|
354
354
|
}),
|
|
355
|
-
|
|
355
|
+
b && /* @__PURE__ */ d("g", {
|
|
356
356
|
"data-role": "inner-labels",
|
|
357
357
|
textAnchor: "middle",
|
|
358
358
|
dominantBaseline: "middle",
|
|
359
359
|
pointerEvents: "none",
|
|
360
|
-
fontSize:
|
|
361
|
-
fill:
|
|
362
|
-
children:
|
|
363
|
-
transform: `translate(${e.x -
|
|
360
|
+
fontSize: x,
|
|
361
|
+
fill: N,
|
|
362
|
+
children: L.map((e, t) => /* @__PURE__ */ d("text", {
|
|
363
|
+
transform: `translate(${e.x - g / 2},${e.y - g / 2})`,
|
|
364
364
|
style: { display: "none" }
|
|
365
365
|
}, `inner-lbl-${t}`))
|
|
366
366
|
})
|
|
367
367
|
]
|
|
368
|
-
}), q !==
|
|
368
|
+
}), q !== I && !O && /* @__PURE__ */ d(s, {
|
|
369
369
|
sx: {
|
|
370
370
|
position: "absolute",
|
|
371
371
|
bottom: 6,
|
|
@@ -390,6 +390,6 @@ function h({ data: m, size: h = 600, padding: g = 3, sortBy: _ = "value", showLa
|
|
|
390
390
|
})]
|
|
391
391
|
});
|
|
392
392
|
}
|
|
393
|
-
|
|
393
|
+
g.displayName = "CirclePackingChart";
|
|
394
394
|
//#endregion
|
|
395
|
-
export {
|
|
395
|
+
export { g as CirclePackingChart };
|
|
@@ -99,6 +99,13 @@ export type CirclePackingChartProps = {
|
|
|
99
99
|
onCircleClick?: (info: CirclePackingNodeInfo, event: React.MouseEvent<SVGCircleElement>) => void;
|
|
100
100
|
/** Fires when the zoom focus changes */
|
|
101
101
|
onZoomChange?: (zoom: CirclePackingZoomInfo) => void;
|
|
102
|
+
/**
|
|
103
|
+
* Custom formatter for numeric node values shown in tooltips.
|
|
104
|
+
* When omitted, values are formatted with `toLocaleString()`.
|
|
105
|
+
* Example: `(v) => \`${v.toLocaleString('de-DE')} MB\``
|
|
106
|
+
* @since 3.22.0
|
|
107
|
+
*/
|
|
108
|
+
valueFormatter?: (value: number) => string;
|
|
102
109
|
/** Override translation strings */
|
|
103
110
|
translation?: Partial<CirclePackingTranslation>;
|
|
104
111
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type RadialStackedBarChartProps } from "./RadialStackedBarChart.types";
|
|
2
|
-
export declare function RadialStackedBarChart({ data, keys, size, innerRadius, barPadding, chartColors, colorConfig, showLabels, showGridLines, gridLineCount, showGridValues, showLegend, sortBy, valueDecimalCount, valueDecimalSeparator, valueThousandsSeparator, gridValueFormatter, zoomable, onBarClick, disabled, translation, }: RadialStackedBarChartProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function RadialStackedBarChart({ data, keys, size, innerRadius, barPadding, chartColors, colorConfig, showLabels, showGridLines, gridLineCount, showGridValues, showLegend, sortBy, valueDecimalCount, valueDecimalSeparator, valueThousandsSeparator, valueFormatter, gridValueFormatter, zoomable, onBarClick, disabled, translation, }: RadialStackedBarChartProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export declare namespace RadialStackedBarChart {
|
|
4
4
|
var displayName: string;
|
|
5
5
|
}
|