@mesh.ai/rabbit 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4576,7 +4576,7 @@ const q0 = V0, K0 = nw, cw = ow, X0 = aw, Q0 = sw, lw = Y(({ children: e, ...t }
|
|
|
4576
4576
|
]
|
|
4577
4577
|
}
|
|
4578
4578
|
) })
|
|
4579
|
-
), fw = Y(({ children: e, ...t }, n) => /* @__PURE__ */ g(Q0, { ref: n, ...t, className: ve("rabbit-ds", t.className), children: /* @__PURE__ */ g("div", { className: "rabbit-ds pl-
|
|
4579
|
+
), fw = Y(({ children: e, ...t }, n) => /* @__PURE__ */ g(Q0, { ref: n, ...t, className: ve("rabbit-ds", t.className), children: /* @__PURE__ */ g("div", { className: "rabbit-ds pl-8", children: e }) }));
|
|
4580
4580
|
lw.displayName = q0.displayName;
|
|
4581
4581
|
uw.displayName = K0.displayName;
|
|
4582
4582
|
dw.displayName = X0.displayName;
|
|
@@ -20922,7 +20922,7 @@ Id.displayName = "HistogramBase";
|
|
|
20922
20922
|
Vb.displayName = "HistogramChart";
|
|
20923
20923
|
const BI = Vb, qA = (e) => e.value, KA = (e) => e.label, Hb = Y(
|
|
20924
20924
|
({ width: e, height: t, unit: n = "%", data: r }, o) => {
|
|
20925
|
-
const a = e / 2, i = t / 2, s = Math.min(e, t) / 2, c = fe(null);
|
|
20925
|
+
const a = e / 2, i = t / 2, s = Math.min(e - 200, t - 20) / 2, c = fe(null);
|
|
20926
20926
|
return Fs(c, o, "DonutChart"), /* @__PURE__ */ g(
|
|
20927
20927
|
"div",
|
|
20928
20928
|
{
|
|
@@ -20937,25 +20937,25 @@ const BI = Vb, qA = (e) => e.value, KA = (e) => e.label, Hb = Y(
|
|
|
20937
20937
|
{
|
|
20938
20938
|
data: r,
|
|
20939
20939
|
pieValue: qA,
|
|
20940
|
-
outerRadius: s
|
|
20941
|
-
innerRadius: s -
|
|
20940
|
+
outerRadius: s - 10,
|
|
20941
|
+
innerRadius: s - 22 - 10,
|
|
20942
20942
|
cornerRadius: 2,
|
|
20943
|
-
padAngle: 0.
|
|
20943
|
+
padAngle: 0.025,
|
|
20944
20944
|
children: (l) => /* @__PURE__ */ g(s0, { children: l.arcs.map((d) => {
|
|
20945
20945
|
const [u, f] = l.path.centroid(d), m = KA(d.data), p = d.startAngle + (d.endAngle - d.startAngle) / 2;
|
|
20946
20946
|
return /* @__PURE__ */ ee("g", { children: [
|
|
20947
20947
|
/* @__PURE__ */ g("path", { d: l.path(d) ?? void 0, fill: d.data.color }),
|
|
20948
|
-
/* @__PURE__ */ ee(wv, { x: u, y: f, dx: p > Math.PI ? -
|
|
20948
|
+
/* @__PURE__ */ ee(wv, { x: u, y: f, dx: p > Math.PI ? -30 : 30, dy: -20, children: [
|
|
20949
20949
|
/* @__PURE__ */ g(ov, { type: "elbow", stroke: d.data.labelColor }),
|
|
20950
20950
|
/* @__PURE__ */ g(xv, { radius: 1, strokeWidth: 2, stroke: d.data.labelColor }),
|
|
20951
20951
|
/* @__PURE__ */ g(
|
|
20952
20952
|
yv,
|
|
20953
20953
|
{
|
|
20954
20954
|
title: `${m}: ${d.value} ${n}`,
|
|
20955
|
-
maxWidth:
|
|
20955
|
+
maxWidth: 100,
|
|
20956
20956
|
backgroundFill: "transparent",
|
|
20957
20957
|
backgroundPadding: { left: 4, right: 10 },
|
|
20958
|
-
titleFontSize:
|
|
20958
|
+
titleFontSize: 10,
|
|
20959
20959
|
horizontalAnchor: p > Math.PI ? "end" : "start",
|
|
20960
20960
|
verticalAnchor: "middle",
|
|
20961
20961
|
fontColor: d.data.labelColor,
|