File tree 1 file changed +5
-2
lines changed
packages/victory-core/src/victory-animation
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ export type AnimationStyle = { [key: string]: string | number };
12
12
*/
13
13
14
14
export type AnimationData = AnimationStyle | AnimationStyle [ ] ;
15
+
15
16
export type AnimationEasing =
16
17
| "back"
17
18
| "backIn"
@@ -62,10 +63,12 @@ export interface VictoryAnimationProps {
62
63
onEnd ?: ( ) => void ;
63
64
data : AnimationData ;
64
65
}
65
- export interface VictoryState {
66
+
67
+ export interface VictoryAnimationState {
66
68
data : AnimationStyle ;
67
69
animationInfo : AnimationInfo ;
68
70
}
71
+
69
72
export interface AnimationInfo {
70
73
progress : number ;
71
74
animating : boolean ;
@@ -92,7 +95,7 @@ export const VictoryAnimation = ({
92
95
children,
93
96
onEnd,
94
97
} : VictoryAnimationProps ) => {
95
- const [ state , setState ] = React . useState < VictoryState > ( {
98
+ const [ state , setState ] = React . useState < VictoryAnimationState > ( {
96
99
data : Array . isArray ( data ) ? data [ 0 ] : data ,
97
100
animationInfo : {
98
101
progress : 0 ,
You can’t perform that action at this time.
0 commit comments