victory-pie
Advanced tools
Comparing version 11.1.0 to 11.1.1
# VictoryPie Changelog | ||
## 11.1.1 (2017-05-24) | ||
-[146](https://github.com/FormidableLabs/victory-pie/pull/146) Rounds label positions | ||
## 11.1.0 (2017-05-12) | ||
@@ -4,0 +8,0 @@ |
@@ -66,4 +66,4 @@ Object.defineProperty(exports,"__esModule",{value:true});var _omit2=require("lodash/omit");var _omit3=_interopRequireDefault(_omit2);var _isFunction2=require("lodash/isFunction");var _isFunction3=_interopRequireDefault(_isFunction2);var _defaults2=require("lodash/defaults");var _defaults3=_interopRequireDefault(_defaults2);var _assign2=require("lodash/assign");var _assign3=_interopRequireDefault(_assign2); | ||
style:labelStyle, | ||
x:position[0], | ||
y:position[1], | ||
x:Math.round(position[0]), | ||
y:Math.round(position[1]), | ||
text:this.getLabelText(props,datum,index), | ||
@@ -107,3 +107,2 @@ textAnchor:labelStyle.textAnchor||this.getTextAnchor(orientation), | ||
getLabelPosition:function getLabelPosition(radius,labelRadius,style){ | ||
var padding=style&&style.padding||0; | ||
@@ -110,0 +109,0 @@ var arcRadius=labelRadius||radius+padding; |
{ | ||
"name": "victory-pie", | ||
"version": "11.1.0", | ||
"version": "11.1.1", | ||
"description": "D3 pie & donut chart component for React", | ||
@@ -20,3 +20,2 @@ "main": "lib/index.js", | ||
"scripts": { | ||
"postinstall": "cd lib || builder run npm:postinstall", | ||
"preversion": "builder run npm:preversion", | ||
@@ -37,3 +36,3 @@ "postversion": "builder run npm:postversion", | ||
"@kadira/storybook": "^1.25.0", | ||
"builder-victory-component-dev": "^4.0.0", | ||
"builder-victory-component-dev": "^4.0.2", | ||
"chai": "^3.5.0", | ||
@@ -50,3 +49,3 @@ "chai-enzyme": "0.4.1", | ||
"builder": "^3.2.1", | ||
"builder-victory-component": "^4.0.0" | ||
"builder-victory-component": "^4.0.2" | ||
}, | ||
@@ -59,2 +58,5 @@ "publishr": { | ||
".npmignore": ".npmignore.publishr" | ||
}, | ||
"scripts": { | ||
"postinstall": "" | ||
} | ||
@@ -61,0 +63,0 @@ }, |
@@ -66,4 +66,4 @@ /*eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2, 45, 135, 180, 225, 315] }]*/ | ||
style: labelStyle, | ||
x: position[0], | ||
y: position[1], | ||
x: Math.round(position[0]), | ||
y: Math.round(position[1]), | ||
text: this.getLabelText(props, datum, index), | ||
@@ -107,3 +107,2 @@ textAnchor: labelStyle.textAnchor || this.getTextAnchor(orientation), | ||
getLabelPosition(radius, labelRadius, style) { | ||
// TODO: better label positioning | ||
const padding = style && style.padding || 0; | ||
@@ -110,0 +109,0 @@ const arcRadius = labelRadius || radius + padding; |
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
959365
18123
0