Socket
Socket
Sign inDemoInstall

recharts

Package Overview
Dependencies
Maintainers
3
Versions
241
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

recharts - npm Package Compare versions

Comparing version 2.6.0 to 2.6.1

2

es6/chart/Treemap.js

@@ -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,

10

es6/component/Tooltip.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc