@visx/shape
Advanced tools
Comparing version 2.10.0 to 2.11.1
@@ -64,7 +64,9 @@ import _pt from "prop-types"; | ||
return /*#__PURE__*/React.createElement("g", null, splitLineSegments.map(function (segment, index) { | ||
return children ? children({ | ||
return children ? /*#__PURE__*/React.createElement(React.Fragment, { | ||
key: index | ||
}, children({ | ||
index: index, | ||
segment: segment, | ||
styles: styles[index] || styles[index % styles.length] | ||
}) : /*#__PURE__*/React.createElement(LinePath, _extends({ | ||
})) : /*#__PURE__*/React.createElement(LinePath, _extends({ | ||
key: index, | ||
@@ -71,0 +73,0 @@ className: className, |
@@ -78,7 +78,9 @@ "use strict"; | ||
return /*#__PURE__*/_react.default.createElement("g", null, splitLineSegments.map(function (segment, index) { | ||
return children ? children({ | ||
return children ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, { | ||
key: index | ||
}, children({ | ||
index: index, | ||
segment: segment, | ||
styles: styles[index] || styles[index % styles.length] | ||
}) : /*#__PURE__*/_react.default.createElement(_LinePath.default, _extends({ | ||
})) : /*#__PURE__*/_react.default.createElement(_LinePath.default, _extends({ | ||
key: index, | ||
@@ -85,0 +87,0 @@ className: className, |
{ | ||
"name": "@visx/shape", | ||
"version": "2.10.0", | ||
"version": "2.11.1", | ||
"description": "visx shape", | ||
@@ -47,3 +47,3 @@ "sideEffects": false, | ||
}, | ||
"gitHead": "3d655a8b100d862c91d4b5655e221259357a094d" | ||
"gitHead": "9317b710b3933497cd20a25e89c8ca6ae5dff5a2" | ||
} |
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
292051
5285