victory-scatter
Advanced tools
Comparing version 36.3.0 to 36.3.2
@@ -19,3 +19,3 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } | ||
import React from "react"; | ||
import { PropTypes as CustomPropTypes, Helpers, VictoryLabel, addEvents, CommonProps, VictoryContainer, VictoryTheme, DefaultTransitions, Data, Domain, Point } from "victory-core"; | ||
import { PropTypes as CustomPropTypes, Helpers, VictoryLabel, addEvents, CommonProps, VictoryContainer, VictoryTheme, DefaultTransitions, Data, Domain, Point, UserProps } from "victory-core"; | ||
import { getBaseProps } from "./helper-methods"; | ||
@@ -59,3 +59,4 @@ var fallbackProps = { | ||
var children = this.renderData(props); | ||
return props.standalone ? this.renderContainer(props.containerComponent, children) : children; | ||
var container = React.cloneElement(props.containerComponent, UserProps.getSafeUserProps(props)); | ||
return props.standalone ? this.renderContainer(container, children) : children; | ||
} | ||
@@ -62,0 +63,0 @@ }]); |
@@ -72,3 +72,6 @@ "use strict"; | ||
var children = this.renderData(props); | ||
return props.standalone ? this.renderContainer(props.containerComponent, children) : children; | ||
var container = _react.default.cloneElement(props.containerComponent, _victoryCore.UserProps.getSafeUserProps(props)); | ||
return props.standalone ? this.renderContainer(container, children) : children; | ||
} | ||
@@ -75,0 +78,0 @@ }]); |
{ | ||
"name": "victory-scatter", | ||
"version": "36.3.0", | ||
"version": "36.3.2", | ||
"description": "Scatter Component for Victory", | ||
@@ -24,3 +24,3 @@ "keywords": [ | ||
"prop-types": "^15.5.8", | ||
"victory-core": "^36.3.0" | ||
"victory-core": "^36.3.2" | ||
}, | ||
@@ -34,3 +34,3 @@ "peerDependencies": { | ||
"sideEffects": false, | ||
"gitHead": "ebafd849d2ded3f1d2aabf0d6e64dcbd48e4c9d6" | ||
"gitHead": "18895d1290245732d14332bbbda10336032c9aab" | ||
} |
@@ -14,3 +14,4 @@ import PropTypes from "prop-types"; | ||
Domain, | ||
Point | ||
Point, | ||
UserProps | ||
} from "victory-core"; | ||
@@ -102,4 +103,8 @@ import { getBaseProps } from "./helper-methods"; | ||
const children = this.renderData(props); | ||
const container = React.cloneElement( | ||
props.containerComponent, | ||
UserProps.getSafeUserProps(props) | ||
); | ||
return props.standalone | ||
? this.renderContainer(props.containerComponent, children) | ||
? this.renderContainer(container, children) | ||
: children; | ||
@@ -106,0 +111,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
1059405
19246
Updatedvictory-core@^36.3.2