impaktapps-design 0.2.3 → 0.2.5
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.
|
@@ -35857,7 +35857,7 @@ const SpeedoMeter = ({
|
|
|
35857
35857
|
return /* @__PURE__ */ jsxs("div", {
|
|
35858
35858
|
style: {
|
|
35859
35859
|
...(_a2 = value == null ? void 0 : value.style) == null ? void 0 : _a2.containerStyle,
|
|
35860
|
-
overflow: "
|
|
35860
|
+
overflow: "auto"
|
|
35861
35861
|
},
|
|
35862
35862
|
children: [((_b2 = value == null ? void 0 : value.main) == null ? void 0 : _b2.header) && /* @__PURE__ */ jsx("div", {
|
|
35863
35863
|
style: {
|
|
@@ -35875,30 +35875,28 @@ const SpeedoMeter = ({
|
|
|
35875
35875
|
minWidth: 500,
|
|
35876
35876
|
display: "flex",
|
|
35877
35877
|
justifyContent: "center",
|
|
35878
|
-
overflow: "
|
|
35878
|
+
overflow: "auto"
|
|
35879
35879
|
},
|
|
35880
|
-
children: /* @__PURE__ */ jsx(
|
|
35881
|
-
|
|
35882
|
-
|
|
35883
|
-
|
|
35884
|
-
|
|
35885
|
-
|
|
35886
|
-
|
|
35887
|
-
|
|
35888
|
-
|
|
35889
|
-
|
|
35890
|
-
|
|
35891
|
-
|
|
35892
|
-
|
|
35893
|
-
|
|
35894
|
-
|
|
35895
|
-
|
|
35896
|
-
|
|
35897
|
-
|
|
35898
|
-
|
|
35899
|
-
|
|
35900
|
-
}
|
|
35901
|
-
)
|
|
35880
|
+
children: /* @__PURE__ */ jsx(ReactSpeedometer, {
|
|
35881
|
+
forceRender: true,
|
|
35882
|
+
segmentColors: (_d = value == null ? void 0 : value.style) == null ? void 0 : _d.segmentColors,
|
|
35883
|
+
maxValue: ((_f = (_e2 = value == null ? void 0 : value.main) == null ? void 0 : _e2.data) == null ? void 0 : _f.maxValue) || 500,
|
|
35884
|
+
width: ((_g = value == null ? void 0 : value.style) == null ? void 0 : _g.width) || 450,
|
|
35885
|
+
needleHeightRatio: ((_h = value == null ? void 0 : value.style) == null ? void 0 : _h.needleHeightRatio) || 0.7,
|
|
35886
|
+
currentValueText: (_i = value == null ? void 0 : value.main) == null ? void 0 : _i.currentValueText,
|
|
35887
|
+
customSegmentLabels: (_j = value == null ? void 0 : value.main) == null ? void 0 : _j.customSegmentLabel,
|
|
35888
|
+
ringWidth: ((_k = value == null ? void 0 : value.style) == null ? void 0 : _k.ringWidth) || 37,
|
|
35889
|
+
needleTransitionDuration: ((_l = value == null ? void 0 : value.style) == null ? void 0 : _l.needleTransitionDuration) || 5333,
|
|
35890
|
+
height: (_m = value == null ? void 0 : value.style) == null ? void 0 : _m.height,
|
|
35891
|
+
needleTransition: ((_n2 = value == null ? void 0 : value.style) == null ? void 0 : _n2.needleTransition) || "easeElastic",
|
|
35892
|
+
value: ((_p = (_o = value == null ? void 0 : value.main) == null ? void 0 : _o.data) == null ? void 0 : _p.value) || 473,
|
|
35893
|
+
needleColor: ((_q = value == null ? void 0 : value.style) == null ? void 0 : _q.needleColor) || "red",
|
|
35894
|
+
minValue: ((_s = (_r = value == null ? void 0 : value.main) == null ? void 0 : _r.data) == null ? void 0 : _s.minValue) || 0,
|
|
35895
|
+
startColor: ((_t2 = value == null ? void 0 : value.style) == null ? void 0 : _t2.startColor) || "red",
|
|
35896
|
+
segments: ((_u = value == null ? void 0 : value.main) == null ? void 0 : _u.segments) || 5,
|
|
35897
|
+
endColor: ((_v = value == null ? void 0 : value.style) == null ? void 0 : _v.endColor) || "green",
|
|
35898
|
+
textColor: ((_w = value == null ? void 0 : value.style) == null ? void 0 : _w.textColor) || "black"
|
|
35899
|
+
})
|
|
35902
35900
|
})]
|
|
35903
35901
|
});
|
|
35904
35902
|
};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import ReactSpeedometer from "react-d3-speedometer";
|
|
|
3
3
|
|
|
4
4
|
const SpeedoMeter = ({ value }: any) => {
|
|
5
5
|
return (
|
|
6
|
-
<div style={{ ...value?.style?.containerStyle,overflow:"
|
|
6
|
+
<div style={{ ...value?.style?.containerStyle,overflow:"auto" }}>
|
|
7
7
|
{value?.main?.header && (
|
|
8
8
|
<div
|
|
9
9
|
style={{
|
|
@@ -18,9 +18,9 @@ const SpeedoMeter = ({ value }: any) => {
|
|
|
18
18
|
{value.main.header}
|
|
19
19
|
</div>
|
|
20
20
|
)}
|
|
21
|
-
<div style={{ width:"100%",minWidth:500,display: "flex", justifyContent: "center",overflow:"
|
|
21
|
+
<div style={{ width:"100%",minWidth:500,display: "flex", justifyContent: "center",overflow:"auto" }}>
|
|
22
22
|
<ReactSpeedometer
|
|
23
|
-
|
|
23
|
+
forceRender={true}
|
|
24
24
|
segmentColors={value?.style?.segmentColors}
|
|
25
25
|
maxValue={value?.main?.data?.maxValue || 500}
|
|
26
26
|
width={value?.style?.width || 450}
|