@react-financial-charts/interactive
Version:
Interactive features for react-financial-charts
27 lines (26 loc) • 931 B
TypeScript
import * as React from "react";
export interface ClickableCircleProps {
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 strokeWidth: number;
readonly strokeStyle: string;
readonly fillStyle: string;
readonly r: number;
readonly cx?: number;
readonly cy?: number;
readonly className: string;
readonly show: boolean;
readonly interactiveCursorClass?: string;
readonly xyProvider?: (moreProps: any) => number[];
}
export declare class ClickableCircle extends React.Component<ClickableCircleProps> {
static defaultProps: {
className: string;
show: boolean;
};
render(): JSX.Element | null;
private readonly drawOnCanvas;
private readonly isHover;
private readonly helper;
}