@easyv/charts 1.5.14 → 1.5.15

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.
@@ -412,7 +412,7 @@ var Chart = /*#__PURE__*/(0, _react.memo)(function (_ref) {
412
412
  bodyHeight = isVertical ? yLineRange : yLineRange + marginTop + marginBottom;
413
413
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_.ChartContainer, {
414
414
  style: _objectSpread(_objectSpread({}, style), {}, {
415
- transform: "scale(1)"
415
+ position: "relative"
416
416
  }),
417
417
  width: width,
418
418
  height: height,
@@ -469,8 +469,8 @@ var Chart = /*#__PURE__*/(0, _react.memo)(function (_ref) {
469
469
  ref: seriesEl,
470
470
  style: {
471
471
  overflow: "visible",
472
- position: "fixed",
473
- transform: isVertical ? "translateX(".concat(marginRight, "px)") : "translateY(".concat(marginTop, "px)")
472
+ position: "absolute",
473
+ transform: isVertical ? "translate(".concat(marginRight, "px,").concat(isIOS ? marginTop : 0, "px)") : "translate(".concat(isIOS ? marginLeft : 0, "px,").concat(marginTop, "px)")
474
474
  }
475
475
  }, /*#__PURE__*/_react["default"].createElement("g", null, control && ctlIndicatorList.map(function (item, index) {
476
476
  var x = axisX.scaler(item.tick);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/charts",
3
- "version": "1.5.14",
3
+ "version": "1.5.15",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -344,7 +344,7 @@ const Chart = memo(
344
344
  return (
345
345
  <>
346
346
  <ChartContainer
347
- style={{...style,transform:"scale(1)"}}
347
+ style={{...style,position:"relative"}}
348
348
  width={width}
349
349
  height={height}
350
350
  marginLeft={marginLeft}
@@ -413,10 +413,10 @@ const Chart = memo(
413
413
  ref={seriesEl}
414
414
  style={{
415
415
  overflow: "visible",
416
- position: "fixed",
416
+ position: "absolute",
417
417
  transform: isVertical
418
- ? `translateX(${marginRight}px)`
419
- : `translateY(${marginTop}px)`,
418
+ ? `translate(${marginRight}px,${isIOS?marginTop:0}px)`
419
+ : `translate(${isIOS?marginLeft:0}px,${marginTop}px)`,
420
420
  }}
421
421
  >
422
422
  {/* 控制图指示器部分 */}