@easyv/charts 1.10.5 → 1.10.6
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.
|
@@ -691,8 +691,8 @@ var Chart = /*#__PURE__*/(0, _react.memo)(function (_ref) {
|
|
|
691
691
|
marginTop: marginTop,
|
|
692
692
|
tickName: ctlXName,
|
|
693
693
|
series: series,
|
|
694
|
-
width:
|
|
695
|
-
height:
|
|
694
|
+
width: bodyWidth,
|
|
695
|
+
height: bodyHeight,
|
|
696
696
|
auto: auto,
|
|
697
697
|
manual: manual
|
|
698
698
|
}))), baseLineData && baseLineData.length > 0 && baseLineData.map(function (item, index) {
|
package/package.json
CHANGED
package/src/components/Chart.js
CHANGED
|
@@ -48,7 +48,7 @@ const Chart = memo(
|
|
|
48
48
|
const isIOS = useRef(
|
|
49
49
|
/iPad|iPhone|iPod|iOS/i.test(navigator.userAgent) ||
|
|
50
50
|
(/Mac OS X/i.test(navigator.userAgent) &&
|
|
51
|
-
!/Chrome/i.test(navigator.userAgent))
|
|
51
|
+
!/Chrome/i.test(navigator.userAgent)),
|
|
52
52
|
);
|
|
53
53
|
const svg = createRef();
|
|
54
54
|
const chartWidth = width - marginLeft - marginRight;
|
|
@@ -81,12 +81,12 @@ const Chart = memo(
|
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
|
-
[JSON.stringify(interaction)]
|
|
84
|
+
[JSON.stringify(interaction)],
|
|
85
85
|
);
|
|
86
86
|
|
|
87
87
|
const onEmit = useCallback(
|
|
88
88
|
(type = "click", data) => emit && emit(type, data),
|
|
89
|
-
[emit]
|
|
89
|
+
[emit],
|
|
90
90
|
);
|
|
91
91
|
|
|
92
92
|
const context = useMemo(
|
|
@@ -101,7 +101,7 @@ const Chart = memo(
|
|
|
101
101
|
svg,
|
|
102
102
|
onEmit,
|
|
103
103
|
}),
|
|
104
|
-
[id, chartWidth, chartHeight, triggerOnRelative, svg, onEmit]
|
|
104
|
+
[id, chartWidth, chartHeight, triggerOnRelative, svg, onEmit],
|
|
105
105
|
);
|
|
106
106
|
|
|
107
107
|
useEffect(() => {
|
|
@@ -185,7 +185,7 @@ const Chart = memo(
|
|
|
185
185
|
} catch (e) {}
|
|
186
186
|
return [];
|
|
187
187
|
}
|
|
188
|
-
}
|
|
188
|
+
},
|
|
189
189
|
);
|
|
190
190
|
|
|
191
191
|
export default Chart;
|