impaktapps-design 0.2.58-alpha.3 → 0.2.58-alpha.4
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.
|
@@ -10915,14 +10915,14 @@ function Legend({
|
|
|
10915
10915
|
width: legendGlyphSize,
|
|
10916
10916
|
height: legendGlyphSize,
|
|
10917
10917
|
children: /* @__PURE__ */ jsx("rect", {
|
|
10918
|
-
fill: label
|
|
10918
|
+
fill: label,
|
|
10919
10919
|
width: legendGlyphSize,
|
|
10920
10920
|
height: legendGlyphSize
|
|
10921
10921
|
})
|
|
10922
10922
|
}), /* @__PURE__ */ jsx(LegendLabel, {
|
|
10923
10923
|
align: `${((_b3 = (_a3 = value == null ? void 0 : value.main) == null ? void 0 : _a3.legend) == null ? void 0 : _b3.align) || "left"}`,
|
|
10924
10924
|
margin: "0 0 0 4px",
|
|
10925
|
-
children: label
|
|
10925
|
+
children: label
|
|
10926
10926
|
})]
|
|
10927
10927
|
}, `legend-quantile-${i}`);
|
|
10928
10928
|
})
|
|
@@ -19777,7 +19777,7 @@ function AnimatedLineSeries(props) {
|
|
|
19777
19777
|
const DrawGraph = ({
|
|
19778
19778
|
value
|
|
19779
19779
|
}) => {
|
|
19780
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s
|
|
19780
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
|
|
19781
19781
|
const data = (_a = value == null ? void 0 : value.main) == null ? void 0 : _a.data;
|
|
19782
19782
|
const arr = value.main.xAxisValue && value.main.yAxisValue ? [value.main.xAxisValue, value.main.yAxisValue] : Object.keys(data[0][0]);
|
|
19783
19783
|
const accessors = {
|
|
@@ -19786,10 +19786,9 @@ const DrawGraph = ({
|
|
|
19786
19786
|
};
|
|
19787
19787
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
19788
19788
|
children: [value.main.legendAvailable && /* @__PURE__ */ jsx(Legend, {
|
|
19789
|
-
value
|
|
19790
|
-
dataKeyArray: (_b = value == null ? void 0 : value.main) == null ? void 0 : _b.data
|
|
19789
|
+
value
|
|
19791
19790
|
}), /* @__PURE__ */ jsxs(XYChart, {
|
|
19792
|
-
height: parseInt((
|
|
19791
|
+
height: parseInt((_c = (_b = value.style) == null ? void 0 : _b.containerStyle) == null ? void 0 : _c.height),
|
|
19793
19792
|
xScale: {
|
|
19794
19793
|
type: "band"
|
|
19795
19794
|
},
|
|
@@ -19800,11 +19799,11 @@ const DrawGraph = ({
|
|
|
19800
19799
|
orientation: "left",
|
|
19801
19800
|
hideAxisLine: value.main.hideLeftAxisLine,
|
|
19802
19801
|
label: value.main.leftLabel,
|
|
19803
|
-
left: ((
|
|
19804
|
-
labelOffset: ((
|
|
19802
|
+
left: ((_e = (_d = value.style) == null ? void 0 : _d.labelStyle) == null ? void 0 : _e.leftLabelMargin) || 70,
|
|
19803
|
+
labelOffset: ((_g = (_f = value.style) == null ? void 0 : _f.labelStyle) == null ? void 0 : _g.leftLabelOffset) || 32,
|
|
19805
19804
|
labelProps: {
|
|
19806
|
-
fill: (
|
|
19807
|
-
fontSize: (
|
|
19805
|
+
fill: (_i = (_h = value.style) == null ? void 0 : _h.labelStyle) == null ? void 0 : _i.labelColor,
|
|
19806
|
+
fontSize: (_k = (_j = value.style) == null ? void 0 : _j.labelStyle) == null ? void 0 : _k.fontSize
|
|
19808
19807
|
},
|
|
19809
19808
|
tickLabelProps: (e3) => {
|
|
19810
19809
|
var _a2, _b2;
|
|
@@ -19817,8 +19816,8 @@ const DrawGraph = ({
|
|
|
19817
19816
|
hideAxisLine: value.main.hideBottomAxisLine,
|
|
19818
19817
|
label: value.main.bottomLabel,
|
|
19819
19818
|
labelProps: {
|
|
19820
|
-
fill: (
|
|
19821
|
-
fontSize: (
|
|
19819
|
+
fill: (_m = (_l = value.style) == null ? void 0 : _l.labelStyle) == null ? void 0 : _m.labelColor,
|
|
19820
|
+
fontSize: (_o = (_n = value.style) == null ? void 0 : _n.labelStyle) == null ? void 0 : _o.fontSize
|
|
19822
19821
|
},
|
|
19823
19822
|
tickLabelProps: (e3) => {
|
|
19824
19823
|
var _a2, _b2;
|
|
@@ -19826,11 +19825,11 @@ const DrawGraph = ({
|
|
|
19826
19825
|
fill: (_b2 = (_a2 = value.style) == null ? void 0 : _a2.labelStyle) == null ? void 0 : _b2.labelColor
|
|
19827
19826
|
};
|
|
19828
19827
|
},
|
|
19829
|
-
labelOffset: ((
|
|
19828
|
+
labelOffset: ((_q = (_p = value.style) == null ? void 0 : _p.labelStyle) == null ? void 0 : _q.bottomLabelOffset) || 32
|
|
19830
19829
|
}), /* @__PURE__ */ jsx(AnimatedGrid, {
|
|
19831
19830
|
columns: value.main.grid,
|
|
19832
|
-
numTicks: value.main.numHidden ? 0 : ((
|
|
19833
|
-
}), (
|
|
19831
|
+
numTicks: value.main.numHidden ? 0 : ((_r = value.main) == null ? void 0 : _r.data[0].length) - 1
|
|
19832
|
+
}), (_s = value.main) == null ? void 0 : _s.data.map((elem, i) => {
|
|
19834
19833
|
var _a2, _b2, _c2, _d2, _e2, _f2;
|
|
19835
19834
|
return /* @__PURE__ */ jsx(AnimatedLineSeries, {
|
|
19836
19835
|
dataKey: value.main.tooltipDataKey[i],
|