victory-voronoi
Advanced tools
Comparing version 36.4.0 to 36.4.1
@@ -66,4 +66,4 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } | ||
var children = this.renderData(props); | ||
var container = /*#__PURE__*/React.cloneElement(props.containerComponent, UserProps.getSafeUserProps(props)); | ||
return props.standalone ? this.renderContainer(container, children) : children; | ||
var component = props.standalone ? this.renderContainer(props.containerComponent, children) : children; | ||
return UserProps.withSafeUserProps(component, props); | ||
} | ||
@@ -70,0 +70,0 @@ }]); |
@@ -12,3 +12,3 @@ import _assign from "lodash/assign"; | ||
import PropTypes from "prop-types"; | ||
import { Helpers, CommonProps, ClipPath, Path, Circle } from "victory-core"; | ||
import { Helpers, CommonProps, ClipPath, Path, Circle, UserProps } from "victory-core"; | ||
@@ -67,2 +67,4 @@ var getVoronoiPath = function (props) { | ||
var userProps = UserProps.getSafeUserProps(props); | ||
if (size) { | ||
@@ -86,3 +88,3 @@ var circle = /*#__PURE__*/React.cloneElement(props.circleComponent, _objectSpread(_objectSpread({}, sharedProps), {}, { | ||
return /*#__PURE__*/React.cloneElement(props.pathComponent, _objectSpread(_objectSpread({}, sharedProps), {}, { | ||
return /*#__PURE__*/React.cloneElement(props.pathComponent, _objectSpread(_objectSpread(_objectSpread({}, sharedProps), userProps), {}, { | ||
d: voronoiPath | ||
@@ -89,0 +91,0 @@ })); |
@@ -80,6 +80,4 @@ "use strict"; | ||
var children = this.renderData(props); | ||
var container = /*#__PURE__*/_react.default.cloneElement(props.containerComponent, _victoryCore.UserProps.getSafeUserProps(props)); | ||
return props.standalone ? this.renderContainer(container, children) : children; | ||
var component = props.standalone ? this.renderContainer(props.containerComponent, children) : children; | ||
return _victoryCore.UserProps.withSafeUserProps(component, props); | ||
} | ||
@@ -86,0 +84,0 @@ }]); |
@@ -81,2 +81,4 @@ "use strict"; | ||
var userProps = _victoryCore.UserProps.getSafeUserProps(props); | ||
if (size) { | ||
@@ -102,3 +104,3 @@ var circle = /*#__PURE__*/_react.default.cloneElement(props.circleComponent, _objectSpread(_objectSpread({}, sharedProps), {}, { | ||
return /*#__PURE__*/_react.default.cloneElement(props.pathComponent, _objectSpread(_objectSpread({}, sharedProps), {}, { | ||
return /*#__PURE__*/_react.default.cloneElement(props.pathComponent, _objectSpread(_objectSpread(_objectSpread({}, sharedProps), userProps), {}, { | ||
d: voronoiPath | ||
@@ -105,0 +107,0 @@ })); |
{ | ||
"name": "victory-voronoi", | ||
"version": "36.4.0", | ||
"version": "36.4.1", | ||
"description": "Voronoi Component for Victory", | ||
@@ -24,4 +24,4 @@ "keywords": [ | ||
"lodash": "^4.17.19", | ||
"prop-types": "^15.5.8", | ||
"victory-core": "^36.4.0" | ||
"prop-types": "^15.8.1", | ||
"victory-core": "^36.4.1" | ||
}, | ||
@@ -35,3 +35,3 @@ "peerDependencies": { | ||
"sideEffects": false, | ||
"gitHead": "2e05481eeb34f9801a90023a131a21aa7deff082" | ||
"gitHead": "aa44a22e5a93989773a560f765f83ac151f44c46" | ||
} |
@@ -81,9 +81,8 @@ import React from "react"; | ||
const children = this.renderData(props); | ||
const container = React.cloneElement( | ||
props.containerComponent, | ||
UserProps.getSafeUserProps(props) | ||
); | ||
return props.standalone | ||
? this.renderContainer(container, children) | ||
const component = props.standalone | ||
? this.renderContainer(props.containerComponent, children) | ||
: children; | ||
return UserProps.withSafeUserProps(component, props); | ||
} | ||
@@ -90,0 +89,0 @@ } |
@@ -5,3 +5,10 @@ /*eslint no-magic-numbers: ["error", { "ignore": [2] }]*/ | ||
import { assign } from "lodash"; | ||
import { Helpers, CommonProps, ClipPath, Path, Circle } from "victory-core"; | ||
import { | ||
Helpers, | ||
CommonProps, | ||
ClipPath, | ||
Path, | ||
Circle, | ||
UserProps | ||
} from "victory-core"; | ||
@@ -57,2 +64,3 @@ const getVoronoiPath = (props) => { | ||
}; | ||
const userProps = UserProps.getSafeUserProps(props); | ||
@@ -83,2 +91,3 @@ if (size) { | ||
...sharedProps, | ||
...userProps, | ||
d: voronoiPath | ||
@@ -85,0 +94,0 @@ }); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
1130753
20064
Updatedprop-types@^15.8.1
Updatedvictory-core@^36.4.1