Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #163 from FormidableLabs/external-events
Browse files Browse the repository at this point in the history
External Events
  • Loading branch information
boygirl authored Jan 3, 2018
2 parents ffd6815 + d83f5e3 commit 3407e83
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"builder-victory-component": "^5.1.2",
"d3-shape": "^1.0.0",
"lodash": "^4.17.4",
"victory-core": "^20.4.0"
"victory-core": "^20.6.0"
},
"devDependencies": {
"@kadira/storybook": "^1.25.0",
Expand Down
17 changes: 17 additions & 0 deletions src/components/victory-pie.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,23 @@ class VictoryPie extends React.Component {
]),
eventHandlers: PropTypes.object
})),
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,
height: CustomPropTypes.nonNegative,
innerRadius: CustomPropTypes.nonNegative,
Expand Down

0 comments on commit 3407e83

Please sign in to comment.