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 30.0.0 to 30.1.0

4

es/helper-methods.js

@@ -186,3 +186,4 @@ import _isPlainObject from "lodash/isPlainObject";

width = _props.width,
standalone = _props.standalone;
standalone = _props.standalone,
name = _props.name;
var initialChildProps = {

@@ -195,2 +196,3 @@ parent: {

pathFunction: pathFunction,
name: name,
style: style.parent

@@ -197,0 +199,0 @@ }

@@ -48,3 +48,4 @@ import _isFunction from "lodash/isFunction";

pathFunction = _props.pathFunction,
style = _props.style;
style = _props.style,
clipPath = _props.clipPath;
var defaultTransform = origin ? "translate(".concat(origin.x, ", ").concat(origin.y, ")") : undefined;

@@ -58,2 +59,3 @@ var transform = this.props.transform || defaultTransform;

transform: transform,
clipPath: clipPath,
style: Helpers.evaluateStyle(style, datum, active),

@@ -60,0 +62,0 @@ d: _isFunction(pathFunction) ? pathFunction(slice) : undefined

@@ -210,3 +210,4 @@ "use strict";

width = _props.width,
standalone = _props.standalone;
standalone = _props.standalone,
name = _props.name;
var initialChildProps = {

@@ -219,2 +220,3 @@ parent: {

pathFunction: pathFunction,
name: name,
style: style.parent

@@ -221,0 +223,0 @@ }

@@ -59,3 +59,4 @@ "use strict";

pathFunction = _props.pathFunction,
style = _props.style;
style = _props.style,
clipPath = _props.clipPath;
var defaultTransform = origin ? "translate(".concat(origin.x, ", ").concat(origin.y, ")") : undefined;

@@ -69,2 +70,3 @@ var transform = this.props.transform || defaultTransform;

transform: transform,
clipPath: clipPath,
style: _victoryCore.Helpers.evaluateStyle(style, datum, active),

@@ -71,0 +73,0 @@ d: (0, _isFunction2.default)(pathFunction) ? pathFunction(slice) : undefined

{
"name": "victory-pie",
"version": "30.0.0",
"description": "D3 pie & donut chart component for React",
"version": "30.1.0",
"description": "Pie Component for Victory",
"keywords": [
"data visualization",
"React",
"d3",
"charting"
],
"repository": {
"type": "git",
"url": "https://github.com/formidablelabs/victory.git"
},
"homepage": "https://formidable.com/open-source/victory",
"main": "lib/index.js",

@@ -13,3 +24,4 @@ "module": "es/index.js",

"lodash": "^4.17.5",
"victory-core": "^30.0.0"
"prop-types": "^15.5.8",
"victory-core": "^30.1.0"
},

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

@@ -156,5 +156,5 @@ /*eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2, 45, 135, 180, 225, 315] }]*/

const { slices, style, pathFunction, data, origin } = calculatedValues;
const { labels, events, sharedEvents, height, width, standalone } = props;
const { labels, events, sharedEvents, height, width, standalone, name } = props;
const initialChildProps = {
parent: { standalone, height, width, slices, pathFunction, style: style.parent }
parent: { standalone, height, width, slices, pathFunction, name, style: style.parent }
};

@@ -161,0 +161,0 @@

@@ -22,3 +22,3 @@ import React from "react";

datum, slice, active, role, shapeRendering, className,
origin, events, pathComponent, pathFunction, style
origin, events, pathComponent, pathFunction, style, clipPath
} = this.props;

@@ -28,3 +28,3 @@ const defaultTransform = origin ? `translate(${origin.x}, ${origin.y})` : undefined;

return React.cloneElement(pathComponent, {
className, role, shapeRendering, events, transform,
className, role, shapeRendering, events, transform, clipPath,
style: Helpers.evaluateStyle(style, datum, active),

@@ -31,0 +31,0 @@ d: isFunction(pathFunction) ? pathFunction(slice) : undefined

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