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

victory-pie

Package Overview
Dependencies
Maintainers
29
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 36.4.1 to 36.5.0

39

es/victory-pie.js

@@ -9,3 +9,3 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

@@ -20,6 +20,4 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
/*eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2] }]*/

@@ -81,9 +79,6 @@ import React from "react";

_defineProperty(VictoryPie, "animationWhitelist", ["data", "endAngle", "height", "innerRadius", "cornerRadius", "padAngle", "padding", "colorScale", "startAngle", "style", "width"]);
_defineProperty(VictoryPie, "displayName", "VictoryPie");
_defineProperty(VictoryPie, "role", "pie");
_defineProperty(VictoryPie, "defaultTransitions", {
VictoryPie.animationWhitelist = ["data", "endAngle", "height", "innerRadius", "cornerRadius", "padAngle", "padding", "colorScale", "startAngle", "style", "width"];
VictoryPie.displayName = "VictoryPie";
VictoryPie.role = "pie";
VictoryPie.defaultTransitions = {
onExit: {

@@ -113,5 +108,4 @@ duration: 500,

}
});
_defineProperty(VictoryPie, "propTypes", {
};
VictoryPie.propTypes = {
animate: PropTypes.oneOfType([PropTypes.bool, PropTypes.object]),

@@ -176,5 +170,4 @@ colorScale: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.oneOf(["grayscale", "qualitative", "heatmap", "warm", "cool", "red", "green", "blue"])]),

y: PropTypes.oneOfType([PropTypes.func, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), PropTypes.string, PropTypes.arrayOf(PropTypes.string)])
});
_defineProperty(VictoryPie, "defaultProps", {
};
VictoryPie.defaultProps = {
data: [{

@@ -203,12 +196,10 @@ x: "A",

theme: VictoryTheme.grayscale
});
};
_defineProperty(VictoryPie, "getBaseProps", function (props) {
VictoryPie.getBaseProps = function (props) {
return getBaseProps(props, fallbackProps);
});
};
_defineProperty(VictoryPie, "getData", Data.getData);
_defineProperty(VictoryPie, "expectedComponents", ["dataComponent", "labelComponent", "groupComponent", "containerComponent"]);
VictoryPie.getData = Data.getData;
VictoryPie.expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"];
export default addEvents(VictoryPie);

@@ -28,3 +28,3 @@ "use strict";

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

@@ -39,6 +39,4 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var fallbackProps = {

@@ -95,9 +93,6 @@ endAngle: 360,

_defineProperty(VictoryPie, "animationWhitelist", ["data", "endAngle", "height", "innerRadius", "cornerRadius", "padAngle", "padding", "colorScale", "startAngle", "style", "width"]);
_defineProperty(VictoryPie, "displayName", "VictoryPie");
_defineProperty(VictoryPie, "role", "pie");
_defineProperty(VictoryPie, "defaultTransitions", {
VictoryPie.animationWhitelist = ["data", "endAngle", "height", "innerRadius", "cornerRadius", "padAngle", "padding", "colorScale", "startAngle", "style", "width"];
VictoryPie.displayName = "VictoryPie";
VictoryPie.role = "pie";
VictoryPie.defaultTransitions = {
onExit: {

@@ -127,5 +122,4 @@ duration: 500,

}
});
_defineProperty(VictoryPie, "propTypes", {
};
VictoryPie.propTypes = {
animate: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.object]),

@@ -190,5 +184,4 @@ colorScale: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string), _propTypes.default.oneOf(["grayscale", "qualitative", "heatmap", "warm", "cool", "red", "green", "blue"])]),

y: _propTypes.default.oneOfType([_propTypes.default.func, _victoryCore.PropTypes.allOfType([_victoryCore.PropTypes.integer, _victoryCore.PropTypes.nonNegative]), _propTypes.default.string, _propTypes.default.arrayOf(_propTypes.default.string)])
});
_defineProperty(VictoryPie, "defaultProps", {
};
VictoryPie.defaultProps = {
data: [{

@@ -217,14 +210,13 @@ x: "A",

theme: _victoryCore.VictoryTheme.grayscale
});
};
_defineProperty(VictoryPie, "getBaseProps", function (props) {
VictoryPie.getBaseProps = function (props) {
return (0, _helperMethods.getBaseProps)(props, fallbackProps);
});
};
_defineProperty(VictoryPie, "getData", _victoryCore.Data.getData);
VictoryPie.getData = _victoryCore.Data.getData;
VictoryPie.expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"];
_defineProperty(VictoryPie, "expectedComponents", ["dataComponent", "labelComponent", "groupComponent", "containerComponent"]);
var _default = (0, _victoryCore.addEvents)(VictoryPie);
exports.default = _default;
{
"name": "victory-pie",
"version": "36.4.1",
"version": "36.5.0",
"description": "Pie Component for Victory",

@@ -24,7 +24,7 @@ "keywords": [

"prop-types": "^15.8.1",
"victory-core": "^36.4.1",
"victory-vendor": "^36.4.0"
"victory-core": "^36.5.0",
"victory-vendor": "^36.5.0"
},
"peerDependencies": {
"react": "^16.6.0 || ^17.0.0"
"react": ">=16.6.0"
},

@@ -35,3 +35,3 @@ "scripts": {

"sideEffects": false,
"gitHead": "aa44a22e5a93989773a560f765f83ac151f44c46"
"gitHead": "7cecba921f751c3decc8215f7e866f51d11203c1"
}

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