@easyv/charts 1.6.26 → 1.6.28
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.
package/lib/components/Chart.js
CHANGED
|
@@ -54,7 +54,7 @@ var Chart = /*#__PURE__*/(0, _react.memo)(function (_ref2) {
|
|
|
54
54
|
emit = _ref2.emit,
|
|
55
55
|
emitEvent = _ref2.emitEvent,
|
|
56
56
|
props = (0, _objectWithoutProperties2["default"])(_ref2, _excluded);
|
|
57
|
-
var isIOS = (0, _react.useRef)(/iPad|iPhone|iPod|iOS|CriOS
|
|
57
|
+
var isIOS = (0, _react.useRef)(/iPad|iPhone|iPod|iOS|CriOS/i.test(navigator.userAgent));
|
|
58
58
|
var svg = /*#__PURE__*/(0, _react.createRef)();
|
|
59
59
|
var chartWidth = width - marginLeft - marginRight;
|
|
60
60
|
var chartHeight = height - marginTop - marginBottom;
|
|
@@ -1016,7 +1016,9 @@ var Label = function Label(_ref10) {
|
|
|
1016
1016
|
"float": x3 >= 0 ? "left" : "right",
|
|
1017
1017
|
width: "max-content",
|
|
1018
1018
|
display: "flex",
|
|
1019
|
-
|
|
1019
|
+
flexDirection: mode == "horizontal" ? "row" : "column",
|
|
1020
|
+
alignItems: "center",
|
|
1021
|
+
justifyContent: "center"
|
|
1020
1022
|
}
|
|
1021
1023
|
}, _showName && /*#__PURE__*/_react["default"].createElement(_.TextOverflow, {
|
|
1022
1024
|
type: textOverflow,
|
package/package.json
CHANGED
package/src/components/Chart.js
CHANGED
|
@@ -39,7 +39,7 @@ const Chart = memo(
|
|
|
39
39
|
emitEvent,
|
|
40
40
|
...props
|
|
41
41
|
}) => {
|
|
42
|
-
const isIOS = useRef(/iPad|iPhone|iPod|iOS|CriOS
|
|
42
|
+
const isIOS = useRef(/iPad|iPhone|iPod|iOS|CriOS/i.test(navigator.userAgent));
|
|
43
43
|
const svg = createRef();
|
|
44
44
|
const chartWidth = width - marginLeft - marginRight;
|
|
45
45
|
const chartHeight = height - marginTop - marginBottom;
|
|
@@ -1182,7 +1182,9 @@ const Label = ({
|
|
|
1182
1182
|
float: x3 >= 0 ? "left" : "right",
|
|
1183
1183
|
width: "max-content",
|
|
1184
1184
|
display:"flex",
|
|
1185
|
-
|
|
1185
|
+
flexDirection: mode=="horizontal"?"row":"column",
|
|
1186
|
+
alignItems:"center",
|
|
1187
|
+
justifyContent:"center"
|
|
1186
1188
|
}}
|
|
1187
1189
|
>
|
|
1188
1190
|
{_showName && (
|