UNPKG

@react-financial-charts/coordinates

Version:
50 lines (49 loc) 1.5 kB
import * as React from "react"; export interface MouseCoordinateXProps { readonly at?: "bottom" | "top"; readonly customX: (props: MouseCoordinateXProps, moreProps: any) => { x: number; coordinate: string; }; readonly displayFormat: (item: any) => string; readonly fill?: string; readonly fitToText?: boolean; readonly fontFamily?: string; readonly fontSize?: number; readonly opacity?: number; readonly orient?: "bottom" | "top"; readonly rectRadius?: number; readonly rectWidth?: number; readonly rectHeight?: number; readonly snapX?: boolean; readonly stroke?: string; readonly strokeOpacity?: number; readonly strokeWidth?: number; readonly textFill?: string; readonly yAxisPad?: number; } export declare class MouseCoordinateX extends React.Component<MouseCoordinateXProps> { static defaultProps: { at: string; customX: (props: MouseCoordinateXProps, moreProps: any) => { x: any; coordinate: string; }; fill: string; fitToText: boolean; fontFamily: string; fontSize: number; opacity: number; orient: string; rectWidth: number; rectHeight: number; snapX: boolean; strokeOpacity: number; strokeWidth: number; textFill: string; yAxisPad: number; }; render(): JSX.Element; private readonly drawOnCanvas; private readonly helper; }