@easyv/charts 1.5.12 → 1.5.13

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.
@@ -235,7 +235,10 @@ var Label = function Label(_ref5) {
235
235
  "data-data": JSON.stringify({
236
236
  x: label
237
237
  }),
238
- style: _objectSpread(_objectSpread({}, _style), (0, _utils.getFontStyle)(font))
238
+ style: _objectSpread(_objectSpread(_objectSpread({}, _style), (0, _utils.getFontStyle)(font)), {}, {
239
+ /** Safari Bug **/
240
+ position: "fixed"
241
+ })
239
242
  }, /*#__PURE__*/_react["default"].createElement(_TextOverflow["default"], {
240
243
  type: textOverflow,
241
244
  speed: speed,
@@ -266,7 +266,7 @@ var _default = /*#__PURE__*/(0, _react.memo)(function (_ref3) {
266
266
  height: "100%",
267
267
 
268
268
  /** Safari Bug **/
269
- position: "fixed",
269
+ // position: "fixed",
270
270
  clipPath: setClipPath(),
271
271
  opacity: fillType == "pattern" ? opacity : 1,
272
272
  background: fillType == "pattern" ? "50% 50% / ".concat(size.width, "px ").concat(size.height, "px repeat ") + "url(" + url + ")" : (0, _utils.getBandBackground)(pattern, extent === flag ? highlightFill : fill),
@@ -464,6 +464,7 @@ var Chart = /*#__PURE__*/(0, _react.memo)(function (_ref) {
464
464
  ref: seriesEl,
465
465
  style: {
466
466
  overflow: "visible",
467
+ position: "fixed",
467
468
  transform: isVertical ? "translateX(".concat(marginRight, "px)") : "translateY(".concat(marginTop, "px)")
468
469
  }
469
470
  }, /*#__PURE__*/_react["default"].createElement("g", null, control && ctlIndicatorList.map(function (item, index) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/charts",
3
- "version": "1.5.12",
3
+ "version": "1.5.13",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -238,6 +238,8 @@ const Label: (
238
238
  style={{
239
239
  ..._style,
240
240
  ...getFontStyle(font),
241
+ /** Safari Bug **/
242
+ position:"fixed"
241
243
  }}
242
244
  >
243
245
  <TextOverflow
@@ -227,7 +227,7 @@ export default memo(
227
227
  width: "100%",
228
228
  height: "100%",
229
229
  /** Safari Bug **/
230
- position: "fixed",
230
+ // position: "fixed",
231
231
  clipPath: setClipPath(),
232
232
  opacity: fillType == "pattern" ? opacity : 1,
233
233
  background:
@@ -414,6 +414,7 @@ const Chart = memo(
414
414
  ref={seriesEl}
415
415
  style={{
416
416
  overflow: "visible",
417
+ position: "fixed",
417
418
  transform: isVertical
418
419
  ? `translateX(${marginRight}px)`
419
420
  : `translateY(${marginTop}px)`,