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

victory-pie

Package Overview
Dependencies
Maintainers
7
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 35.1.1 to 35.2.0

5

es/index.d.ts

@@ -7,2 +7,3 @@ import * as React from "react";

EventPropTypeInterface,
StringOrCallback,
NumberOrCallback,

@@ -23,2 +24,3 @@ OriginType,

export interface SliceProps extends VictoryCommonProps {
ariaLabel?: StringOrCallback;
cornerRadius?: SliceNumberOrCallback<SliceProps, "cornerRadius">;

@@ -31,3 +33,3 @@ datum?: any;

radius?: SliceNumberOrCallback<SliceProps, "radius">;
slice: {
slice?: {
startAngle?: number;

@@ -40,2 +42,3 @@ endAngle?: number;

sliceStartAngle?: SliceNumberOrCallback<SliceProps, "sliceStartAngle">;
tabIndex?: NumberOrCallback;
}

@@ -42,0 +45,0 @@

12

es/slice.js

@@ -43,2 +43,3 @@ import _assign from "lodash/assign";

* Everything else does not have to be evaluated in a particular order:
* `ariaLabel`
* `id`

@@ -49,2 +50,3 @@ * `cornerRadius`

* `sliceEndAngle`
* `tabIndex`
*/

@@ -59,2 +61,3 @@ var style = Helpers.evaluateStyle(props.style, props);

}));
var ariaLabel = Helpers.evaluateProp(props.ariaLabel, props);
var id = Helpers.evaluateProp(props.id, props);

@@ -65,3 +68,5 @@ var cornerRadius = Helpers.evaluateProp(props.cornerRadius, props);

var sliceEndAngle = Helpers.evaluateProp(props.sliceEndAngle, props);
var tabIndex = Helpers.evaluateProp(props.tabIndex, props);
return _assign({}, props, {
ariaLabel: ariaLabel,
style: style,

@@ -74,3 +79,4 @@ radius: radius,

sliceStartAngle: sliceStartAngle,
sliceEndAngle: sliceEndAngle
sliceEndAngle: sliceEndAngle,
tabIndex: tabIndex
});

@@ -83,2 +89,3 @@ };

return React.cloneElement(props.pathComponent, _objectSpread({}, props.events, {
"aria-label": props.ariaLabel,
d: getPath(props),

@@ -90,3 +97,4 @@ style: props.style,

shapeRendering: props.shapeRendering,
clipPath: props.clipPath
clipPath: props.clipPath,
tabIndex: props.tabIndex
}));

@@ -93,0 +101,0 @@ };

@@ -7,2 +7,3 @@ import * as React from "react";

EventPropTypeInterface,
StringOrCallback,
NumberOrCallback,

@@ -23,2 +24,3 @@ OriginType,

export interface SliceProps extends VictoryCommonProps {
ariaLabel?: StringOrCallback;
cornerRadius?: SliceNumberOrCallback<SliceProps, "cornerRadius">;

@@ -31,3 +33,3 @@ datum?: any;

radius?: SliceNumberOrCallback<SliceProps, "radius">;
slice: {
slice?: {
startAngle?: number;

@@ -40,2 +42,3 @@ endAngle?: number;

sliceStartAngle?: SliceNumberOrCallback<SliceProps, "sliceStartAngle">;
tabIndex?: NumberOrCallback;
}

@@ -42,0 +45,0 @@

@@ -62,2 +62,3 @@ "use strict";

* Everything else does not have to be evaluated in a particular order:
* `ariaLabel`
* `id`

@@ -68,2 +69,3 @@ * `cornerRadius`

* `sliceEndAngle`
* `tabIndex`
*/

@@ -81,2 +83,4 @@ var style = _victoryCore.Helpers.evaluateStyle(props.style, props);

var ariaLabel = _victoryCore.Helpers.evaluateProp(props.ariaLabel, props);
var id = _victoryCore.Helpers.evaluateProp(props.id, props);

@@ -92,3 +96,6 @@

var tabIndex = _victoryCore.Helpers.evaluateProp(props.tabIndex, props);
return (0, _assign2.default)({}, props, {
ariaLabel: ariaLabel,
style: style,

@@ -101,3 +108,4 @@ radius: radius,

sliceStartAngle: sliceStartAngle,
sliceEndAngle: sliceEndAngle
sliceEndAngle: sliceEndAngle,
tabIndex: tabIndex
});

@@ -110,2 +118,3 @@ };

return _react.default.cloneElement(props.pathComponent, _objectSpread({}, props.events, {
"aria-label": props.ariaLabel,
d: getPath(props),

@@ -117,3 +126,4 @@ style: props.style,

shapeRendering: props.shapeRendering,
clipPath: props.clipPath
clipPath: props.clipPath,
tabIndex: props.tabIndex
}));

@@ -120,0 +130,0 @@ };

{
"name": "victory-pie",
"version": "35.1.1",
"version": "35.2.0",
"description": "Pie Component for Victory",

@@ -25,3 +25,3 @@ "keywords": [

"prop-types": "^15.5.8",
"victory-core": "^35.1.1"
"victory-core": "^35.2.0"
},

@@ -28,0 +28,0 @@ "scripts": {

@@ -67,3 +67,11 @@ /*eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2, 45, 90, 135, 180, 225, 270, 315, 360] }]*/

const slices = getSlices(props, data);
return assign({}, props, { style, colors, padding, defaultRadius, data, slices, origin });
return assign({}, props, {
style,
colors,
padding,
defaultRadius,
data,
slices,
origin
});
};

@@ -70,0 +78,0 @@

@@ -7,2 +7,3 @@ import * as React from "react";

EventPropTypeInterface,
StringOrCallback,
NumberOrCallback,

@@ -23,2 +24,3 @@ OriginType,

export interface SliceProps extends VictoryCommonProps {
ariaLabel?: StringOrCallback;
cornerRadius?: SliceNumberOrCallback<SliceProps, "cornerRadius">;

@@ -31,3 +33,3 @@ datum?: any;

radius?: SliceNumberOrCallback<SliceProps, "radius">;
slice: {
slice?: {
startAngle?: number;

@@ -40,2 +42,3 @@ endAngle?: number;

sliceStartAngle?: SliceNumberOrCallback<SliceProps, "sliceStartAngle">;
tabIndex?: NumberOrCallback;
}

@@ -42,0 +45,0 @@

@@ -31,2 +31,3 @@ import React from "react";

* Everything else does not have to be evaluated in a particular order:
* `ariaLabel`
* `id`

@@ -37,2 +38,3 @@ * `cornerRadius`

* `sliceEndAngle`
* `tabIndex`
*/

@@ -43,2 +45,3 @@ const style = Helpers.evaluateStyle(props.style, props);

const ariaLabel = Helpers.evaluateProp(props.ariaLabel, props);
const id = Helpers.evaluateProp(props.id, props);

@@ -49,4 +52,6 @@ const cornerRadius = Helpers.evaluateProp(props.cornerRadius, props);

const sliceEndAngle = Helpers.evaluateProp(props.sliceEndAngle, props);
const tabIndex = Helpers.evaluateProp(props.tabIndex, props);
return assign({}, props, {
ariaLabel,
style,

@@ -59,3 +64,4 @@ radius,

sliceStartAngle,
sliceEndAngle
sliceEndAngle,
tabIndex
});

@@ -72,2 +78,3 @@ };

...props.events,
"aria-label": props.ariaLabel,
d: getPath(props),

@@ -79,3 +86,4 @@ style: props.style,

shapeRendering: props.shapeRendering,
clipPath: props.clipPath
clipPath: props.clipPath,
tabIndex: props.tabIndex
});

@@ -82,0 +90,0 @@ };

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