impaktapps-design 0.1.8 → 0.2.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.
|
@@ -35853,7 +35853,7 @@ var ReactSpeedometer = /* @__PURE__ */ getDefaultExportFromCjs(dist$1);
|
|
|
35853
35853
|
const SpeedoMeter = ({
|
|
35854
35854
|
value
|
|
35855
35855
|
}) => {
|
|
35856
|
-
var _a2, _b2, _c2, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o, _p, _q
|
|
35856
|
+
var _a2, _b2, _c2, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o, _p, _q;
|
|
35857
35857
|
const [speedoValue, setspeedoValue] = useState(value.main.data);
|
|
35858
35858
|
useEffect(() => {
|
|
35859
35859
|
setspeedoValue(value.main.data);
|
|
@@ -35882,21 +35882,22 @@ const SpeedoMeter = ({
|
|
|
35882
35882
|
ReactSpeedometer,
|
|
35883
35883
|
{
|
|
35884
35884
|
segmentColors: (_d = value == null ? void 0 : value.style) == null ? void 0 : _d.segmentColors,
|
|
35885
|
-
maxValue: (
|
|
35886
|
-
width: ((
|
|
35887
|
-
needleHeightRatio: ((
|
|
35888
|
-
currentValueText: (
|
|
35889
|
-
customSegmentLabels: (
|
|
35890
|
-
ringWidth: ((
|
|
35891
|
-
needleTransitionDuration: ((
|
|
35892
|
-
|
|
35893
|
-
|
|
35894
|
-
|
|
35895
|
-
|
|
35896
|
-
|
|
35897
|
-
|
|
35898
|
-
|
|
35899
|
-
|
|
35885
|
+
maxValue: (speedoValue == null ? void 0 : speedoValue.maxValue) || 500,
|
|
35886
|
+
width: ((_e2 = value == null ? void 0 : value.style) == null ? void 0 : _e2.width) || 500,
|
|
35887
|
+
needleHeightRatio: ((_f = value == null ? void 0 : value.style) == null ? void 0 : _f.needleHeightRatio) || 0.7,
|
|
35888
|
+
currentValueText: (_g = value == null ? void 0 : value.main) == null ? void 0 : _g.currentValueText,
|
|
35889
|
+
customSegmentLabels: (_h = value == null ? void 0 : value.main) == null ? void 0 : _h.customSegmentLabel,
|
|
35890
|
+
ringWidth: ((_i = value == null ? void 0 : value.style) == null ? void 0 : _i.ringWidth) || 37,
|
|
35891
|
+
needleTransitionDuration: ((_j = value == null ? void 0 : value.style) == null ? void 0 : _j.needleTransitionDuration) || 5333,
|
|
35892
|
+
height: ((_k = value == null ? void 0 : value.style) == null ? void 0 : _k.height) || 300,
|
|
35893
|
+
needleTransition: ((_l = value == null ? void 0 : value.style) == null ? void 0 : _l.needleTransition) || "easeElastic",
|
|
35894
|
+
value: (speedoValue == null ? void 0 : speedoValue.value) || 473,
|
|
35895
|
+
needleColor: ((_m = value == null ? void 0 : value.style) == null ? void 0 : _m.needleColor) || "red",
|
|
35896
|
+
minValue: (speedoValue == null ? void 0 : speedoValue.minValue) || 0,
|
|
35897
|
+
startColor: ((_n2 = value == null ? void 0 : value.style) == null ? void 0 : _n2.startColor) || "red",
|
|
35898
|
+
segments: ((_o = value == null ? void 0 : value.main) == null ? void 0 : _o.segments) || 5,
|
|
35899
|
+
endColor: ((_p = value == null ? void 0 : value.style) == null ? void 0 : _p.endColor) || "green",
|
|
35900
|
+
textColor: ((_q = value == null ? void 0 : value.style) == null ? void 0 : _q.textColor) || "black"
|
|
35900
35901
|
}
|
|
35901
35902
|
)
|
|
35902
35903
|
})]
|
package/package.json
CHANGED
|
@@ -26,7 +26,7 @@ useEffect(()=>{
|
|
|
26
26
|
<ReactSpeedometer
|
|
27
27
|
// needleTransition=''
|
|
28
28
|
segmentColors={value?.style?.segmentColors}
|
|
29
|
-
maxValue={speedoValue?.
|
|
29
|
+
maxValue={speedoValue?.maxValue || 500}
|
|
30
30
|
width={value?.style?.width || 500}
|
|
31
31
|
needleHeightRatio={value?.style?.needleHeightRatio || 0.7}
|
|
32
32
|
currentValueText={value?.main?.currentValueText}
|
|
@@ -35,10 +35,11 @@ useEffect(()=>{
|
|
|
35
35
|
needleTransitionDuration={
|
|
36
36
|
value?.style?.needleTransitionDuration || 5333
|
|
37
37
|
}
|
|
38
|
+
height={value?.style?.height||300}
|
|
38
39
|
needleTransition={value?.style?.needleTransition || "easeElastic"}
|
|
39
|
-
value={speedoValue?.
|
|
40
|
+
value={speedoValue?.value || 473}
|
|
40
41
|
needleColor={value?.style?.needleColor || "red"}
|
|
41
|
-
minValue={speedoValue?.
|
|
42
|
+
minValue={speedoValue?.minValue || 0}
|
|
42
43
|
startColor={value?.style?.startColor || "red"}
|
|
43
44
|
segments={value?.main?.segments || 5}
|
|
44
45
|
endColor={value?.style?.endColor || "green"}
|