@react-financial-charts/coordinates
Version:
Coordinates for react-financial-charts
23 lines (22 loc) • 899 B
TypeScript
import * as React from "react";
import { strokeDashTypes } from "@react-financial-charts/core";
export interface CrossHairCursorProps {
readonly customX?: (props: CrossHairCursorProps, moreProps: any) => number;
readonly snapX?: boolean;
readonly strokeStyle?: string;
readonly strokeDasharray?: strokeDashTypes;
readonly strokeWidth?: number;
}
export declare class CrossHairCursor extends React.Component<CrossHairCursorProps> {
static defaultProps: {
customX: (props: CrossHairCursorProps, moreProps: any) => any;
snapX: boolean;
strokeStyle: string;
strokeDasharray: string;
strokeWidth: number;
};
static contextType: React.Context<import("@react-financial-charts/core/lib/ChartCanvas").ChartCanvasContextType<number | Date>>;
render(): JSX.Element;
private readonly drawOnCanvas;
private readonly getLines;
}