victory-stack
Advanced tools
Comparing version 34.1.2 to 34.1.3
@@ -118,4 +118,4 @@ import _orderBy from "lodash/orderBy"; | ||
var style = Wrapper.getStyle(props.theme, props.style, role); | ||
var categories = Wrapper.getCategories(props, childComponents); | ||
var datasets = stackData(props, childComponents); | ||
var categories = props.categories || Wrapper.getCategories(props, childComponents); | ||
var datasets = props.datasets || stackData(props, childComponents); | ||
var children = childComponents.map(function (c, i) { | ||
@@ -126,3 +126,3 @@ return React.cloneElement(c, { | ||
}); | ||
var domain = { | ||
var domain = props.domain || { | ||
x: Wrapper.getDomain(_assign({}, props, { | ||
@@ -135,3 +135,3 @@ categories: categories | ||
}; | ||
var range = { | ||
var range = props.range || { | ||
x: Helpers.getRange(props, "x"), | ||
@@ -138,0 +138,0 @@ y: Helpers.getRange(props, "y") |
@@ -133,5 +133,5 @@ "use strict"; | ||
var categories = _victoryCore.Wrapper.getCategories(props, childComponents); | ||
var categories = props.categories || _victoryCore.Wrapper.getCategories(props, childComponents); | ||
var datasets = stackData(props, childComponents); | ||
var datasets = props.datasets || stackData(props, childComponents); | ||
var children = childComponents.map(function (c, i) { | ||
@@ -142,3 +142,3 @@ return _react.default.cloneElement(c, { | ||
}); | ||
var domain = { | ||
var domain = props.domain || { | ||
x: _victoryCore.Wrapper.getDomain((0, _assign2.default)({}, props, { | ||
@@ -151,3 +151,3 @@ categories: categories | ||
}; | ||
var range = { | ||
var range = props.range || { | ||
x: _victoryCore.Helpers.getRange(props, "x"), | ||
@@ -154,0 +154,0 @@ y: _victoryCore.Helpers.getRange(props, "y") |
{ | ||
"name": "victory-stack", | ||
"version": "34.1.2", | ||
"version": "34.1.3", | ||
"description": "Stack Layout Component for Victory", | ||
@@ -25,4 +25,4 @@ "keywords": [ | ||
"react-fast-compare": "^2.0.0", | ||
"victory-core": "^34.1.1", | ||
"victory-shared-events": "^34.1.1" | ||
"victory-core": "^34.1.3", | ||
"victory-shared-events": "^34.1.3" | ||
}, | ||
@@ -29,0 +29,0 @@ "scripts": { |
@@ -114,12 +114,12 @@ /* eslint-disable func-style */ | ||
const style = Wrapper.getStyle(props.theme, props.style, role); | ||
const categories = Wrapper.getCategories(props, childComponents); | ||
const datasets = stackData(props, childComponents); | ||
const categories = props.categories || Wrapper.getCategories(props, childComponents); | ||
const datasets = props.datasets || stackData(props, childComponents); | ||
const children = childComponents.map((c, i) => { | ||
return React.cloneElement(c, { data: datasets[i] }); | ||
}); | ||
const domain = { | ||
const domain = props.domain || { | ||
x: Wrapper.getDomain(assign({}, props, { categories }), "x", children), | ||
y: Wrapper.getDomain(assign({}, props, { categories }), "y", children) | ||
}; | ||
const range = { | ||
const range = props.range || { | ||
x: Helpers.getRange(props, "x"), | ||
@@ -126,0 +126,0 @@ y: Helpers.getRange(props, "y") |
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1239597
7801
Updatedvictory-core@^34.1.3