@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.
61 lines (60 loc) • 2.14 kB
TypeScript
import { TypedArray } from '@nativescript-community/arraybuffers';
import { Canvas, Paint, RectF } from '@nativescript-community/ui-canvas';
import { YAxis } from '../components/YAxis';
import { Transformer } from '../utils/Transformer';
import { ViewPortHandler } from '../utils/ViewPortHandler';
import { AxisRenderer, CustomRendererGridLineFunction } from './AxisRenderer';
export declare class YAxisRenderer extends AxisRenderer {
protected mYAxis: YAxis;
protected mZeroLinePaint: Paint;
protected mGetTransformedPositionsBuffer: TypedArray;
constructor(viewPortHandler: ViewPortHandler, yAxis: YAxis, trans: Transformer);
get zeroLinePaint(): Paint;
/**
* draws the y-axis labels to the screen
*/
renderAxisLabels(c: Canvas): void;
renderAxisLine(c: Canvas): void;
/**
* draws the y-labels on the specified x-position
*
* @param fixedPosition
* @param positions
*/
protected drawYLabels(c: Canvas, fixedPosition: any, positions: any, offset: any): void;
/**
* Draw mark tickets
* @param c
* @param fixedPosition
* @param positions
* @param length
*/
protected drawMarkTick(c: Canvas, fixedPosition: any, positions: any, ticklength: any): void;
/**
* Draws the grid line at the specified position using the provided path.
*
* @param c
* @param rect
* @param x
* @param y
* @param axisValue
*/
protected drawGridLine(c: Canvas, rect: RectF, x: any, y: any, axisValue: any, paint: Paint, customRendererFunc: CustomRendererGridLineFunction): void;
renderGridLines(c: Canvas): void;
getGridClippingRect(): RectF;
/**
* Transforms the values contained in the axis entries to screen pixels and returns them in form of a let array
* of x- and y-coordinates.
*/
protected getTransformedPositions(): number[];
/**
* Draws the zero line.
*/
protected drawZeroLine(c: Canvas): void;
/**
* Draws the LimitLines associated with this axis to the screen.
*
* @param c
*/
renderLimitLines(c: Canvas): void;
}