@react-financial-charts/coordinates
Version:
Coordinates for react-financial-charts
32 lines (31 loc) • 805 B
TypeScript
import * as React from "react";
export interface CurrentCoordinateProps {
/**
* Fill style for the circle.
*/
readonly fillStyle?: string | ((datum: any) => string);
/**
* The radius to draw the circle
*/
readonly r: number;
/**
* Stroke of the circle
*/
readonly strokeStyle?: string | ((datum: any) => string);
/**
* Y accessor to use for the circle.
*/
readonly yAccessor: (item: any) => number;
}
/**
* Draws a circle at the current x location of radius `r`.
*/
export declare class CurrentCoordinate extends React.Component<CurrentCoordinateProps> {
static defaultProps: {
fillStyle: string;
r: number;
};
render(): JSX.Element;
private readonly drawOnCanvas;
private readonly getCircle;
}