@visx/shape
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -35,3 +35,8 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
})); | ||
if (!data) return null; | ||
if (!data && (startAngle == null || endAngle == null || innerRadius == null || outerRadius == null)) { | ||
console.warn('[@visx/shape/Arc]: expected data because one of startAngle, endAngle, innerRadius, outerRadius is undefined. Bailing.'); | ||
return null; | ||
} | ||
return /*#__PURE__*/React.createElement("path", _extends({ | ||
@@ -38,0 +43,0 @@ ref: innerRef, |
@@ -45,3 +45,8 @@ "use strict"; | ||
})); | ||
if (!data) return null; | ||
if (!data && (startAngle == null || endAngle == null || innerRadius == null || outerRadius == null)) { | ||
console.warn('[@visx/shape/Arc]: expected data because one of startAngle, endAngle, innerRadius, outerRadius is undefined. Bailing.'); | ||
return null; | ||
} | ||
return /*#__PURE__*/_react.default.createElement("path", _extends({ | ||
@@ -48,0 +53,0 @@ ref: innerRef, |
@@ -5,3 +5,3 @@ import React from 'react'; | ||
side: number; | ||
} & Pick<PolygonProps, "rotate" | "sides" | "size" | "center">) => { | ||
} & Pick<PolygonProps, "center" | "size" | "rotate" | "sides">) => { | ||
x: number; | ||
@@ -8,0 +8,0 @@ y: number; |
{ | ||
"name": "@visx/shape", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "visx shape", | ||
@@ -48,3 +48,3 @@ "sideEffects": false, | ||
}, | ||
"gitHead": "2370dc7ace913ffbcf729f64059fee50498d66a4" | ||
"gitHead": "e2bbccba2f642cfc7e840f669704b19f2379e75f" | ||
} |
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
279275
4966