Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

victory-pie

Package Overview
Dependencies
Maintainers
6
Versions
213
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

victory-pie - npm Package Compare versions

Comparing version 11.1.0 to 11.1.1

4

CHANGELOG.md
# 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 @@

5

lib/components/helper-methods.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc