@nativescript-community/ui-chart
Version:
A powerful chart / graph plugin, supporting line, bar, pie, radar, bubble, and candlestick charts as well as scaling, panning and animations.
32 lines (31 loc) • 1.29 kB
TypeScript
import { BarLineChartBase } from '../charts/BarLineChartBase';
import { Transformer } from '../utils/Transformer';
import { ViewPortHandler } from '../utils/ViewPortHandler';
import { ViewPortJob } from './ViewPortJob';
import { Tween } from '../animation/Tween';
export interface AnimatorUpdateListener {
onAnimationUpdate(animation: Tween<any>): any;
}
export interface AnimatorListener {
onAnimationEnd(animation: Tween<any>): any;
onAnimationCancel(animation: Tween<any>): any;
}
/**
* Created by Philipp Jahoda on 19/02/16.
*/
export declare abstract class AnimatedViewPortJob extends ViewPortJob implements AnimatorUpdateListener, AnimatorListener {
private duration;
animator: Tween<any>;
phase: any;
xOrigin: number;
yOrigin: number;
constructor(viewPortHandler: ViewPortHandler, xValue: any, yValue: any, trans: Transformer, v: BarLineChartBase<any, any, any>, xOrigin: number, yOrigin: number, duration: number);
createAnimator(duration: any): void;
run(): void;
abstract recycleSelf(): any;
protected resetAnimator(): void;
onAnimationStart(animation: Tween<any>): void;
onAnimationEnd(animation: Tween<any>): void;
onAnimationCancel(animation: Tween<any>): void;
onAnimationUpdate(animation: Tween<any>): void;
}