Comparing version 2.6.0 to 2.6.1
@@ -247,2 +247,3 @@ import _get from "lodash/get"; | ||
value: function handleMouseEnter(node, e) { | ||
e.persist(); | ||
var _this$props = this.props, | ||
@@ -268,2 +269,3 @@ onMouseEnter = _this$props.onMouseEnter, | ||
value: function handleMouseLeave(node, e) { | ||
e.persist(); | ||
var _this$props2 = this.props, | ||
@@ -270,0 +272,0 @@ onMouseLeave = _this$props2.onMouseLeave, |
@@ -119,8 +119,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
return _objectSpread(_objectSpread({}, prev), {}, { | ||
x: coordinate.x, | ||
y: coordinate.y | ||
x: coordinate === null || coordinate === void 0 ? void 0 : coordinate.x, | ||
y: coordinate === null || coordinate === void 0 ? void 0 : coordinate.y | ||
}); | ||
}); | ||
} | ||
}, [coordinate.x, coordinate.y]); | ||
}, [coordinate === null || coordinate === void 0 ? void 0 : coordinate.x, coordinate === null || coordinate === void 0 ? void 0 : coordinate.y]); | ||
useEffect(function () { | ||
@@ -130,3 +130,3 @@ var updateBBox = function updateBBox() { | ||
document.removeEventListener('keydown', handleKeyDown); | ||
if (coordinate.x !== dismissedAtCoordinate.x || coordinate.y !== dismissedAtCoordinate.y) { | ||
if ((coordinate === null || coordinate === void 0 ? void 0 : coordinate.x) !== dismissedAtCoordinate.x || (coordinate === null || coordinate === void 0 ? void 0 : coordinate.y) !== dismissedAtCoordinate.y) { | ||
setDismissed(false); | ||
@@ -152,3 +152,3 @@ } | ||
}; | ||
}, [boxHeight, boxWidth, coordinate.x, coordinate.y, dismissed, dismissedAtCoordinate.x, dismissedAtCoordinate.y, handleKeyDown]); | ||
}, [boxHeight, boxWidth, coordinate, dismissed, dismissedAtCoordinate.x, dismissedAtCoordinate.y, handleKeyDown]); | ||
var getTranslate = function getTranslate(_ref) { | ||
@@ -155,0 +155,0 @@ var key = _ref.key, |
@@ -255,2 +255,3 @@ "use strict"; | ||
value: function handleMouseEnter(node, e) { | ||
e.persist(); | ||
var _this$props = this.props, | ||
@@ -276,2 +277,3 @@ onMouseEnter = _this$props.onMouseEnter, | ||
value: function handleMouseLeave(node, e) { | ||
e.persist(); | ||
var _this$props2 = this.props, | ||
@@ -278,0 +280,0 @@ onMouseLeave = _this$props2.onMouseLeave, |
@@ -127,8 +127,8 @@ "use strict"; | ||
return _objectSpread(_objectSpread({}, prev), {}, { | ||
x: coordinate.x, | ||
y: coordinate.y | ||
x: coordinate === null || coordinate === void 0 ? void 0 : coordinate.x, | ||
y: coordinate === null || coordinate === void 0 ? void 0 : coordinate.y | ||
}); | ||
}); | ||
} | ||
}, [coordinate.x, coordinate.y]); | ||
}, [coordinate === null || coordinate === void 0 ? void 0 : coordinate.x, coordinate === null || coordinate === void 0 ? void 0 : coordinate.y]); | ||
(0, _react.useEffect)(function () { | ||
@@ -138,3 +138,3 @@ var updateBBox = function updateBBox() { | ||
document.removeEventListener('keydown', handleKeyDown); | ||
if (coordinate.x !== dismissedAtCoordinate.x || coordinate.y !== dismissedAtCoordinate.y) { | ||
if ((coordinate === null || coordinate === void 0 ? void 0 : coordinate.x) !== dismissedAtCoordinate.x || (coordinate === null || coordinate === void 0 ? void 0 : coordinate.y) !== dismissedAtCoordinate.y) { | ||
setDismissed(false); | ||
@@ -160,3 +160,3 @@ } | ||
}; | ||
}, [boxHeight, boxWidth, coordinate.x, coordinate.y, dismissed, dismissedAtCoordinate.x, dismissedAtCoordinate.y, handleKeyDown]); | ||
}, [boxHeight, boxWidth, coordinate, dismissed, dismissedAtCoordinate.x, dismissedAtCoordinate.y, handleKeyDown]); | ||
var getTranslate = function getTranslate(_ref) { | ||
@@ -163,0 +163,0 @@ var key = _ref.key, |
{ | ||
"name": "recharts", | ||
"version": "2.6.0", | ||
"version": "2.6.1", | ||
"description": "React charts", | ||
@@ -5,0 +5,0 @@ "main": "lib/index", |
# Recharts | ||
[![storybook](https://raw.githubusercontent.com/storybooks/brand/master/badge/badge-storybook.svg)](https://master--63da8268a0da9970db6992aa.chromatic.com/) | ||
[![storybook](https://raw.githubusercontent.com/storybooks/brand/master/badge/badge-storybook.svg)](https://release--63da8268a0da9970db6992aa.chromatic.com/) | ||
[![Build Status](https://github.com/recharts/recharts/workflows/Node.js%20CI/badge.svg)](https://github.com/recharts/recharts/actions) | ||
@@ -24,2 +24,4 @@ [![Coverage Status](https://coveralls.io/repos/recharts/recharts/badge.svg?branch=master&service=github)](https://coveralls.io/github/recharts/recharts?branch=master) | ||
All development is done on the `master` branch. The current latest release and storybook documentation reflects what is on the `release` branch. | ||
## Examples | ||
@@ -26,0 +28,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4756695
39396
107