Comparing version 2.13.0-alpha.1 to 2.13.0-alpha.2
@@ -130,3 +130,3 @@ 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); } | ||
warn(calculatedWidth > 0 || calculatedHeight > 0, "The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.", calculatedWidth, calculatedHeight, width, height, minWidth, minHeight, aspect); | ||
var isCharts = !Array.isArray(children) && isElement(children) && getDisplayName(children.type).endsWith('Chart'); | ||
var isCharts = !Array.isArray(children) && getDisplayName(children.type).endsWith('Chart'); | ||
return React.Children.map(children, function (child) { | ||
@@ -133,0 +133,0 @@ if (isElement(child)) { |
@@ -138,3 +138,3 @@ "use strict"; | ||
(0, _LogUtils.warn)(calculatedWidth > 0 || calculatedHeight > 0, "The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.", calculatedWidth, calculatedHeight, width, height, minWidth, minHeight, aspect); | ||
var isCharts = !Array.isArray(children) && (0, _reactIs.isElement)(children) && (0, _ReactUtils.getDisplayName)(children.type).endsWith('Chart'); | ||
var isCharts = !Array.isArray(children) && (0, _ReactUtils.getDisplayName)(children.type).endsWith('Chart'); | ||
return _react["default"].Children.map(children, function (child) { | ||
@@ -141,0 +141,0 @@ if ((0, _reactIs.isElement)(child)) { |
{ | ||
"name": "recharts", | ||
"version": "2.13.0-alpha.1", | ||
"version": "2.13.0-alpha.2", | ||
"description": "React charts", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
4683679