@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.
62 lines (61 loc) • 1.91 kB
TypeScript
import { EasingFunction } from './Tween';
export { EasingFunction };
export declare class ChartAnimator {
/** object that is updated upon animation update */
private mListener;
/** The phase of drawn values on the y-axis. 0 - 1 */
protected mPhaseY: number;
/** The phase of drawn values on the x-axis. 0 - 1 */
protected mPhaseX: number;
constructor(listener?: (state: any) => void);
private startAnim;
private startXAnim;
private startYAnim;
/**
* Animates values along the X axis.
*
* @param durationMillis animation duration
* @param easing EasingFunction
*/
animateX(durationMillis: any, easing?: EasingFunction): void;
/**
* Animates values along both the X and Y axes.
*
* @param durationMillisX animation duration along the X axis
* @param durationMillisY animation duration along the Y axis
* @param easingX EasingFunction for the X axis
* @param easingY EasingFunction for the Y axis
*/
animateXY(durationMillisX: any, durationMillisY: any, easingX?: EasingFunction, easingY?: EasingFunction): void;
/**
* Animates values along the Y axis.
*
* @param durationMillis animation duration
* @param easing EasingFunction
*/
animateY(durationMillis: any, easing?: EasingFunction): void;
/**
* Gets the Y axis phase of the animation.
*
* @return let value of {@link #mPhaseY}
*/
get phaseY(): number;
/**
* Sets the Y axis phase of the animation.
*
* @param phase let value between 0 - 1
*/
set phaseY(phase: number);
/**
* Gets the X axis phase of the animation.
*
* @return let value of {@link #mPhaseX}
*/
get phaseX(): number;
/**
* Sets the X axis phase of the animation.
*
* @param phase let value between 0 - 1
*/
set phaseX(phase: number);
}