victory-pie
Advanced tools
Comparing version 11.4.0 to 11.4.1
# VictoryPie Changelog | ||
## 11.4.1 (2017-08-07) | ||
- [151](https://github.com/FormidableLabs/victory-pie/pull/151) bugfix: support functional padding for labels | ||
- [152](https://github.com/FormidableLabs/victory-pie/pull/152) Support boolean animate prop | ||
## 11.4.0 (2017-07-24) | ||
@@ -4,0 +9,0 @@ |
@@ -70,3 +70,3 @@ import _omit from "lodash/omit"; | ||
var labelStyle = _assign({ padding: 0 }, style.labels); | ||
var labelStyle = Helpers.evaluateStyle(_assign({ padding: 0 }, style.labels), datum, props.active); | ||
var labelRadius = Helpers.evaluateProp(props.labelRadius, datum); | ||
@@ -73,0 +73,0 @@ var labelPosition = this.getLabelPosition(radius, labelRadius, labelStyle); |
@@ -86,3 +86,3 @@ import _partialRight from "lodash/partialRight"; | ||
VictoryPie.propTypes = { | ||
animate: PropTypes.object, | ||
animate: PropTypes.oneOfType([PropTypes.bool, PropTypes.object]), | ||
colorScale: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.oneOf(["grayscale", "qualitative", "heatmap", "warm", "cool", "red", "green", "blue"])]), | ||
@@ -89,0 +89,0 @@ containerComponent: PropTypes.element, |
@@ -92,3 +92,3 @@ Object.defineProperty(exports, "__esModule", { | ||
var labelStyle = (0, _assign3.default)({ padding: 0 }, style.labels); | ||
var labelStyle = _victoryCore.Helpers.evaluateStyle((0, _assign3.default)({ padding: 0 }, style.labels), datum, props.active); | ||
var labelRadius = _victoryCore.Helpers.evaluateProp(props.labelRadius, datum); | ||
@@ -95,0 +95,0 @@ var labelPosition = this.getLabelPosition(radius, labelRadius, labelStyle); |
@@ -102,3 +102,3 @@ Object.defineProperty(exports, "__esModule", { | ||
VictoryPie.propTypes = { | ||
animate: _propTypes2.default.object, | ||
animate: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.object]), | ||
colorScale: _propTypes2.default.oneOfType([_propTypes2.default.arrayOf(_propTypes2.default.string), _propTypes2.default.oneOf(["grayscale", "qualitative", "heatmap", "warm", "cool", "red", "green", "blue"])]), | ||
@@ -105,0 +105,0 @@ containerComponent: _propTypes2.default.element, |
{ | ||
"name": "victory-pie", | ||
"version": "11.4.0", | ||
"version": "11.4.1", | ||
"description": "D3 pie & donut chart component for React", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -58,3 +58,5 @@ /*eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2, 45, 135, 180, 225, 315] }]*/ | ||
const { style, radius, origin } = calculatedValues; | ||
const labelStyle = assign({ padding: 0 }, style.labels); | ||
const labelStyle = Helpers.evaluateStyle( | ||
assign({ padding: 0 }, style.labels), datum, props.active | ||
); | ||
const labelRadius = Helpers.evaluateProp(props.labelRadius, datum); | ||
@@ -61,0 +63,0 @@ const labelPosition = this.getLabelPosition(radius, labelRadius, labelStyle); |
@@ -54,3 +54,3 @@ /*eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2] }]*/ | ||
static propTypes = { | ||
animate: PropTypes.object, | ||
animate: PropTypes.oneOfType([PropTypes.bool, PropTypes.object]), | ||
colorScale: PropTypes.oneOfType([ | ||
@@ -57,0 +57,0 @@ PropTypes.arrayOf(PropTypes.string), |
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
1323313
23975