Socket
Socket
Sign inDemoInstall

recharts

Package Overview
Dependencies
43
Maintainers
3
Versions
235
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.12.2 to 2.12.3

3

es6/cartesian/Area.js

@@ -533,4 +533,5 @@ var _excluded = ["layout", "type", "stroke", "connectNulls", "isRange", "ref"];

} else {
var className = clsx('recharts-area-dot', typeof option !== 'boolean' ? option.className : '');
dotItem = /*#__PURE__*/React.createElement(Dot, _extends({}, props, {
className: "recharts-area-dot"
className: className
}));

@@ -537,0 +538,0 @@ }

@@ -424,3 +424,3 @@ var _excluded = ["type", "layout", "connectNulls", "ref"];

} else {
var className = clsx('recharts-line-dot', option ? option.className : '');
var className = clsx('recharts-line-dot', typeof option !== 'boolean' ? option.className : '');
dotItem = /*#__PURE__*/React.createElement(Dot, _extends({}, props, {

@@ -427,0 +427,0 @@ className: className

@@ -71,3 +71,6 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }

if (this.wrapperNode && this.wrapperNode.getBoundingClientRect) {
return this.wrapperNode.getBoundingClientRect();
var _box = this.wrapperNode.getBoundingClientRect();
_box.height = this.wrapperNode.offsetHeight;
_box.width = this.wrapperNode.offsetWidth;
return _box;
}

@@ -80,9 +83,9 @@ return null;

var onBBoxUpdate = this.props.onBBoxUpdate;
if (this.wrapperNode && this.wrapperNode.getBoundingClientRect) {
var _box = this.wrapperNode.getBoundingClientRect();
if (Math.abs(_box.width - this.lastBoundingBox.width) > EPS || Math.abs(_box.height - this.lastBoundingBox.height) > EPS) {
this.lastBoundingBox.width = _box.width;
this.lastBoundingBox.height = _box.height;
var box = this.getBBox();
if (box) {
if (Math.abs(box.width - this.lastBoundingBox.width) > EPS || Math.abs(box.height - this.lastBoundingBox.height) > EPS) {
this.lastBoundingBox.width = box.width;
this.lastBoundingBox.height = box.height;
if (onBBoxUpdate) {
onBBoxUpdate(_box);
onBBoxUpdate(box);
}

@@ -89,0 +92,0 @@ }

@@ -355,3 +355,4 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }

return data.reduce(function (result, entry) {
var entryValue = getValueByDataKey(entry, dataKey, 0);
var entryValue = getValueByDataKey(entry, dataKey);
if (isNil(entryValue)) return result;
var mainValue = Array.isArray(entryValue) ? [min(entryValue), max(entryValue)] : [entryValue, entryValue];

@@ -358,0 +359,0 @@ var errorDomain = keys.reduce(function (prevErrorArr, k) {

@@ -23,5 +23,5 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }

var cxValue = "".concat(props.cx || option.cx);
var cx = parseInt(cxValue, 10);
var cx = Number(cxValue);
var cyValue = "".concat(props.cy || option.cy);
var cy = parseInt(cyValue, 10);
var cy = Number(cyValue);
return _objectSpread(_objectSpread(_objectSpread({}, props), option), {}, {

@@ -28,0 +28,0 @@ cx: cx,

@@ -541,4 +541,5 @@ "use strict";

} else {
var className = (0, _clsx["default"])('recharts-area-dot', typeof option !== 'boolean' ? option.className : '');
dotItem = /*#__PURE__*/_react["default"].createElement(_Dot.Dot, _extends({}, props, {
className: "recharts-area-dot"
className: className
}));

@@ -545,0 +546,0 @@ }

@@ -432,3 +432,3 @@ "use strict";

} else {
var className = (0, _clsx["default"])('recharts-line-dot', option ? option.className : '');
var className = (0, _clsx["default"])('recharts-line-dot', typeof option !== 'boolean' ? option.className : '');
dotItem = /*#__PURE__*/_react["default"].createElement(_Dot.Dot, _extends({}, props, {

@@ -435,0 +435,0 @@ className: className

@@ -79,3 +79,6 @@ "use strict";

if (this.wrapperNode && this.wrapperNode.getBoundingClientRect) {
return this.wrapperNode.getBoundingClientRect();
var _box = this.wrapperNode.getBoundingClientRect();
_box.height = this.wrapperNode.offsetHeight;
_box.width = this.wrapperNode.offsetWidth;
return _box;
}

@@ -88,9 +91,9 @@ return null;

var onBBoxUpdate = this.props.onBBoxUpdate;
if (this.wrapperNode && this.wrapperNode.getBoundingClientRect) {
var _box = this.wrapperNode.getBoundingClientRect();
if (Math.abs(_box.width - this.lastBoundingBox.width) > EPS || Math.abs(_box.height - this.lastBoundingBox.height) > EPS) {
this.lastBoundingBox.width = _box.width;
this.lastBoundingBox.height = _box.height;
var box = this.getBBox();
if (box) {
if (Math.abs(box.width - this.lastBoundingBox.width) > EPS || Math.abs(box.height - this.lastBoundingBox.height) > EPS) {
this.lastBoundingBox.width = box.width;
this.lastBoundingBox.height = box.height;
if (onBBoxUpdate) {
onBBoxUpdate(_box);
onBBoxUpdate(box);
}

@@ -97,0 +100,0 @@ }

@@ -373,3 +373,4 @@ "use strict";

return data.reduce(function (result, entry) {
var entryValue = getValueByDataKey(entry, dataKey, 0);
var entryValue = getValueByDataKey(entry, dataKey);
if ((0, _isNil["default"])(entryValue)) return result;
var mainValue = Array.isArray(entryValue) ? [(0, _min["default"])(entryValue), (0, _max["default"])(entryValue)] : [entryValue, entryValue];

@@ -376,0 +377,0 @@ var errorDomain = keys.reduce(function (prevErrorArr, k) {

@@ -32,5 +32,5 @@ "use strict";

var cxValue = "".concat(props.cx || option.cx);
var cx = parseInt(cxValue, 10);
var cx = Number(cxValue);
var cyValue = "".concat(props.cy || option.cy);
var cy = parseInt(cyValue, 10);
var cy = Number(cyValue);
return _objectSpread(_objectSpread(_objectSpread({}, props), option), {}, {

@@ -37,0 +37,0 @@ cx: cx,

{
"name": "recharts",
"version": "2.12.2",
"version": "2.12.3",
"description": "React charts",

@@ -5,0 +5,0 @@ "main": "lib/index",

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc