react-financial-charts
Version:
React charts specific to finance.
38 lines (37 loc) • 1.11 kB
TypeScript
import * as React from "react";
interface MouseLocationIndicatorProps {
readonly enabled: boolean;
readonly snap: boolean;
readonly shouldDisableSnap: any;
readonly snapTo?: any;
readonly onMouseMove: any;
readonly onMouseDown: any;
readonly onClick: any;
readonly r: number;
readonly stroke: string;
readonly strokeWidth: number;
readonly opacity: number;
readonly disablePan: boolean;
}
export declare class MouseLocationIndicator extends React.Component<MouseLocationIndicatorProps> {
static defaultProps: {
onMouseMove: () => void;
onMouseDown: () => void;
onClick: () => void;
shouldDisableSnap: any;
stroke: string;
strokeWidth: number;
opacity: number;
disablePan: boolean;
};
private mutableState;
constructor(props: any);
render(): JSX.Element;
private readonly xy;
private readonly handleClick;
private readonly handleMouseDown;
private readonly handleMousePosChange;
private readonly drawOnCanvas;
private readonly renderSVG;
}
export {};