@@ -16,7 +16,7 @@ import { IMarker } from '../components/IMarker';
16
16
import { LegendRenderer } from '../renderer/LegendRenderer' ;
17
17
import { IHighlighter } from '../highlight/IHighlighter' ;
18
18
import { profile } from '@nativescript/core/profiling' ;
19
- import { ChartAnimator } from '../animation/ChartAnimator' ;
19
+ import { ChartAnimator , EasingFunction } from '../animation/ChartAnimator' ;
20
20
import { ViewPortJob } from '../jobs/ViewPortJob' ;
21
21
import { ChartTouchListener } from '../listener/ChartTouchListener' ;
22
22
import { layout } from '@nativescript/core/utils/utils' ;
@@ -800,7 +800,7 @@ export abstract class Chart<U extends Entry, D extends IDataSet<U>, T extends Ch
800
800
* @param easingX a custom easing function to be used on the animation phase
801
801
* @param easingY a custom easing function to be used on the animation phase
802
802
*/
803
- public animateXY ( durationMillisX , durationMillisY , easingX ?, easingY ?) {
803
+ public animateXY ( durationMillisX , durationMillisY , easingX ?: EasingFunction , easingY ?: EasingFunction ) {
804
804
this . mAnimator . animateXY ( durationMillisX , durationMillisY , easingX , easingY ) ;
805
805
}
806
806
@@ -813,7 +813,7 @@ export abstract class Chart<U extends Entry, D extends IDataSet<U>, T extends Ch
813
813
* @param durationMillis
814
814
* @param easing a custom easing function to be used on the animation phase
815
815
*/
816
- public animateX ( durationMillis , easing ?) {
816
+ public animateX ( durationMillis , easing ?: EasingFunction ) {
817
817
this . mAnimator . animateX ( durationMillis , easing ) ;
818
818
}
819
819
@@ -826,7 +826,7 @@ export abstract class Chart<U extends Entry, D extends IDataSet<U>, T extends Ch
826
826
* @param durationMillis
827
827
* @param easing a custom easing function to be used on the animation phase
828
828
*/
829
- public animateY ( durationMillis , easing ?) {
829
+ public animateY ( durationMillis , easing ?: EasingFunction ) {
830
830
this . mAnimator . animateY ( durationMillis , easing ) ;
831
831
}
832
832
0 commit comments