react-financial-charts
Version:
React charts specific to finance.
62 lines (61 loc) • 1.72 kB
TypeScript
import * as React from "react";
interface MouseCoordinateXV2Props {
readonly xPosition?: any;
readonly drawCoordinate?: any;
readonly displayFormat: any;
readonly at?: "bottom" | "top";
readonly orient?: "bottom" | "top";
readonly text?: {
fontStyle: string;
fontWeight: string;
fontFamily: string;
fontSize: number;
fill: string | any;
};
readonly bg: {
fill: string | any;
stroke: string;
strokeWidth: number;
padding: {
left: number;
right: number;
top: number;
bottom: number;
};
};
readonly dx?: number;
readonly dy?: number;
}
export declare class MouseCoordinateXV2 extends React.Component<MouseCoordinateXV2Props> {
static defaultProps: {
xPosition: typeof defaultXPosition;
drawCoordinate: typeof defaultDrawCoordinate;
at: string;
orient: string;
text: {
fontStyle: string;
fontWeight: string;
fontFamily: string;
fontSize: number;
fill: string;
};
bg: {
fill: string;
stroke: string;
strokeWidth: number;
padding: {
left: number;
right: number;
top: number;
bottom: number;
};
};
dx: number;
dy: number;
};
render(): JSX.Element;
private readonly drawOnCanvas;
}
declare function defaultXPosition(props: any, moreProps: any): any;
declare function defaultDrawCoordinate(ctx: CanvasRenderingContext2D, shape: any, props: any, moreProps: any): void;
export {};