@easyv/charts 1.6.6 → 1.6.7

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.
@@ -62,12 +62,12 @@ var _default = /*#__PURE__*/(0, _react.memo)(function (_ref) {
62
62
  });
63
63
 
64
64
  if (translate3d.x + tipWidth > width) {
65
- var newPositon = position + marginLeft - tipWidth - translateTip.x;
65
+ var newPositon = position + marginLeft - tipWidth + translateTip.x;
66
66
  translate3d.x = newPositon >= 0 ? newPositon : 0;
67
67
  }
68
68
 
69
69
  if (translate3d.y + tipHeight > height) {
70
- var _newPositon = position + marginTop - tipHeight - translateTip.y;
70
+ var _newPositon = position + marginTop - tipHeight + translateTip.y;
71
71
 
72
72
  translate3d.y = _newPositon <= 0 ? _newPositon : height - tipHeight;
73
73
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/charts",
3
- "version": "1.6.6",
3
+ "version": "1.6.7",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -44,11 +44,11 @@ export default memo(
44
44
  x: translateTip.x + position + marginLeft,
45
45
  };
46
46
  if (translate3d.x + tipWidth > width) {
47
- const newPositon = position + marginLeft - tipWidth - translateTip.x;
47
+ const newPositon = position + marginLeft - tipWidth + translateTip.x;
48
48
  translate3d.x = newPositon >= 0 ? newPositon : 0;
49
49
  }
50
50
  if (translate3d.y + tipHeight > height) {
51
- const newPositon = position + marginTop - tipHeight - translateTip.y;
51
+ const newPositon = position + marginTop - tipHeight + translateTip.y;
52
52
  translate3d.y = newPositon <= 0 ? newPositon : height - tipHeight;
53
53
  }
54
54
  return getTranslate3d(translate3d);