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 13.2.0 to 13.3.0

29

CHANGELOG.md
# VictoryPie Changelog
## 13.3.0 (2018-01-02)
- [163](https://github.com/FormidableLabs/victory-pie/pull/163)
- [victory-core/324](https://github.com/FormidableLabs/victory-core/pull/324) Adds support for external event mutations
- Adds `externalEventMutations` prop to `VictorySharedEvents` and all components enhanced with the `add-events` HOC
- `externalEventMutations` prop format:
```
externalEventMutations: PropTypes.arrayOf(PropTypes.shape({
callback: PropTypes.function,
childName: PropTypes.oneOfType([
PropTypes.string,
PropTypes.array
]),
eventKey: PropTypes.oneOfType([
PropTypes.array,
CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]),
PropTypes.string
]),
mutation: PropTypes.function,
target: PropTypes.oneOfType([
PropTypes.string,
PropTypes.array
])
}))
```
*Note:* `eventKey` and `target` must be specified for externalEventMutations. When using `extenalEventMutations` with shared events (_i.e._ events on VictoryChart etc), `childName` is also required.
*Note:* The `callback` supplied to `externalEventMutations` should be used for clearing mutations. This is crucial for animating charts
## 13.2.0 (2017-12-17)

@@ -4,0 +33,0 @@

@@ -100,2 +100,9 @@ import _partialRight from "lodash/partialRight";

})),
externalEventMutations: PropTypes.arrayOf(PropTypes.shape({
callback: PropTypes.function,
childName: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
eventKey: PropTypes.oneOfType([PropTypes.array, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), PropTypes.string]),
mutation: PropTypes.function,
target: PropTypes.oneOfType([PropTypes.string, PropTypes.array])
})),
groupComponent: PropTypes.element,

@@ -102,0 +109,0 @@ height: CustomPropTypes.nonNegative,

@@ -116,2 +116,9 @@ Object.defineProperty(exports, "__esModule", {

})),
externalEventMutations: _propTypes2.default.arrayOf(_propTypes2.default.shape({
callback: _propTypes2.default.function,
childName: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.array]),
eventKey: _propTypes2.default.oneOfType([_propTypes2.default.array, _victoryCore.PropTypes.allOfType([_victoryCore.PropTypes.integer, _victoryCore.PropTypes.nonNegative]), _propTypes2.default.string]),
mutation: _propTypes2.default.function,
target: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.array])
})),
groupComponent: _propTypes2.default.element,

@@ -118,0 +125,0 @@ height: _victoryCore.PropTypes.nonNegative,

4

package.json
{
"name": "victory-pie",
"version": "13.2.0",
"version": "13.3.0",
"description": "D3 pie & donut chart component for React",

@@ -33,3 +33,3 @@ "main": "lib/index.js",

"lodash": "^4.17.4",
"victory-core": "^20.4.0"
"victory-core": "^20.6.0"
},

@@ -36,0 +36,0 @@ "devDependencies": {

@@ -82,2 +82,19 @@ /*eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2] }]*/

})),
externalEventMutations: PropTypes.arrayOf(PropTypes.shape({
callback: PropTypes.function,
childName: PropTypes.oneOfType([
PropTypes.string,
PropTypes.array
]),
eventKey: PropTypes.oneOfType([
PropTypes.array,
CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]),
PropTypes.string
]),
mutation: PropTypes.function,
target: PropTypes.oneOfType([
PropTypes.string,
PropTypes.array
])
})),
groupComponent: PropTypes.element,

@@ -84,0 +101,0 @@ height: CustomPropTypes.nonNegative,

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