@easyv/charts 1.6.26 → 1.6.27
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;
|
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;
|