@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.
42 lines (41 loc) • 1.06 kB
TypeScript
export declare abstract class AbstractBuffer<T> {
protected index: number;
protected phaseX: number;
protected phaseY: number;
protected from: number;
protected to: number;
buffer: any;
entries: T[];
/**
* Initialization with buffer-size.
*
* @param size
*/
constructor(size: number);
/** limits the drawing on the x-axis */
limitFrom(from: number): void;
/** limits the drawing on the x-axis */
limitTo(to: number): void;
/**
* Resets the buffer index to 0 and makes the buffer reusable.
*/
reset(): void;
/**
* Returns the size (length) of the buffer array.
*/
get length(): any;
/**
* Set the phases used for animations.
*
* @param phaseX
* @param phaseY
*/
setPhases(phaseX: any, phaseY: any): void;
/**
* Builds up the buffer with the provided data and resets the buffer-index
* after feed-completion. This needs to run FAST.
*
* @param data
*/
abstract feed(data: any): any;
}