victory-scatter
Advanced tools
Comparing version 31.2.0 to 32.0.0
@@ -82,4 +82,4 @@ import _isNil from "lodash/isNil"; | ||
var scale = { | ||
x: Scale.getBaseScale(props, "x").domain(domain.x).range(range.x), | ||
y: Scale.getBaseScale(props, "y").domain(domain.y).range(range.y) | ||
x: Scale.getBaseScale(props, "x").domain(domain.x).range(props.horizontal ? range.y : range.x), | ||
y: Scale.getBaseScale(props, "y").domain(domain.y).range(props.horizontal ? range.x : range.y) | ||
}; | ||
@@ -116,3 +116,4 @@ var origin = props.polar ? props.origin || Helpers.getPolarOrigin(props) : undefined; | ||
width = _props.width, | ||
labels = _props.labels; | ||
labels = _props.labels, | ||
horizontal = _props.horizontal; | ||
var initialChildProps = { | ||
@@ -131,3 +132,4 @@ parent: { | ||
padding: padding, | ||
name: name | ||
name: name, | ||
horizontal: horizontal | ||
} | ||
@@ -151,2 +153,3 @@ }; | ||
origin: origin, | ||
horizontal: horizontal, | ||
size: getSize(datum, props), | ||
@@ -153,0 +156,0 @@ symbol: getSymbol(datum, props), |
@@ -111,3 +111,2 @@ 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; } | ||
samples: 50, | ||
scale: "linear", | ||
sortOrder: "ascending", | ||
@@ -114,0 +113,0 @@ standalone: true, |
@@ -102,4 +102,4 @@ "use strict"; | ||
var scale = { | ||
x: _victoryCore.Scale.getBaseScale(props, "x").domain(domain.x).range(range.x), | ||
y: _victoryCore.Scale.getBaseScale(props, "y").domain(domain.y).range(range.y) | ||
x: _victoryCore.Scale.getBaseScale(props, "x").domain(domain.x).range(props.horizontal ? range.y : range.x), | ||
y: _victoryCore.Scale.getBaseScale(props, "y").domain(domain.y).range(props.horizontal ? range.x : range.y) | ||
}; | ||
@@ -137,3 +137,4 @@ var origin = props.polar ? props.origin || _victoryCore.Helpers.getPolarOrigin(props) : undefined; | ||
width = _props.width, | ||
labels = _props.labels; | ||
labels = _props.labels, | ||
horizontal = _props.horizontal; | ||
var initialChildProps = { | ||
@@ -152,3 +153,4 @@ parent: { | ||
padding: padding, | ||
name: name | ||
name: name, | ||
horizontal: horizontal | ||
} | ||
@@ -172,2 +174,3 @@ }; | ||
origin: origin, | ||
horizontal: horizontal, | ||
size: getSize(datum, props), | ||
@@ -174,0 +177,0 @@ symbol: getSymbol(datum, props), |
@@ -125,3 +125,2 @@ "use strict"; | ||
samples: 50, | ||
scale: "linear", | ||
sortOrder: "ascending", | ||
@@ -128,0 +127,0 @@ standalone: true, |
{ | ||
"name": "victory-scatter", | ||
"version": "31.2.0", | ||
"version": "32.0.0", | ||
"description": "Scatter Component for Victory", | ||
@@ -24,3 +24,3 @@ "keywords": [ | ||
"prop-types": "^15.5.8", | ||
"victory-core": "^31.2.0" | ||
"victory-core": "^32.0.0" | ||
}, | ||
@@ -27,0 +27,0 @@ "scripts": { |
@@ -64,6 +64,6 @@ import { assign, values, isNil } from "lodash"; | ||
.domain(domain.x) | ||
.range(range.x), | ||
.range(props.horizontal ? range.y : range.x), | ||
y: Scale.getBaseScale(props, "y") | ||
.domain(domain.y) | ||
.range(range.y) | ||
.range(props.horizontal ? range.x : range.y) | ||
}; | ||
@@ -93,3 +93,4 @@ const origin = props.polar ? props.origin || Helpers.getPolarOrigin(props) : undefined; | ||
width, | ||
labels | ||
labels, | ||
horizontal | ||
} = props; | ||
@@ -109,3 +110,4 @@ const initialChildProps = { | ||
padding, | ||
name | ||
name, | ||
horizontal | ||
} | ||
@@ -126,2 +128,3 @@ }; | ||
origin, | ||
horizontal, | ||
size: getSize(datum, props), | ||
@@ -128,0 +131,0 @@ symbol: getSymbol(datum, props), |
@@ -71,3 +71,2 @@ import PropTypes from "prop-types"; | ||
samples: 50, | ||
scale: "linear", | ||
sortOrder: "ascending", | ||
@@ -74,0 +73,0 @@ standalone: true, |
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
1170788
21109
+ Addedvictory-core@32.3.7(transitive)
- Removedvictory-core@31.2.0(transitive)
Updatedvictory-core@^32.0.0