@react-financial-charts/interactive
Version:
Interactive features for react-financial-charts
33 lines (32 loc) • 1.19 kB
TypeScript
import * as React from "react";
export interface GannFanProps {
readonly startXY: number[];
readonly defaultClassName?: string;
readonly endXY: number[];
readonly fillStyle: Array<string>;
readonly fontFamily: string;
readonly fontSize: number;
readonly fontFill: string;
readonly interactiveCursorClass?: string;
readonly onDragStart?: (e: React.MouseEvent, moreProps: any) => void;
readonly onDrag?: (e: React.MouseEvent, moreProps: any) => void;
readonly onDragComplete?: (e: React.MouseEvent, moreProps: any) => void;
readonly onHover?: (e: React.MouseEvent, moreProps: any) => void;
readonly onUnHover?: (e: React.MouseEvent, moreProps: any) => void;
readonly selected: boolean;
readonly strokeStyle: string;
readonly strokeWidth: number;
readonly tolerance: number;
}
export declare class GannFan extends React.Component<GannFanProps> {
static defaultProps: {
strokeWidth: number;
tolerance: number;
selected: boolean;
};
render(): JSX.Element;
private readonly drawOnCanvas;
private readonly isHover;
private readonly getLineCoordinates;
private readonly helper;
}