victory-chart v24.6.0 Release Notes
Release Date: 2018-01-02 // over 6 years ago-
- 544
- 👍 victory-core/324 Adds support for external event mutations
- Adds
externalEventMutations
prop toVictorySharedEvents
and all components enhanced with theadd-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
andtarget
must be specified for externalEventMutations. When usingextenalEventMutations
with shared events (i.e. events on VictoryChart etc),childName
is also required.
- Adds
Note: The
callback
supplied toexternalEventMutations
should be used for clearing mutations. This is crucial for animating charts