react-financial-charts
Version:
React charts specific to finance.
51 lines (50 loc) • 1.51 kB
TypeScript
import * as React from "react";
import { strokeDashTypes } from "../../utils";
interface InteractiveYCoordinateProps {
readonly bgFill: string;
readonly bgOpacity: number;
readonly stroke: string;
readonly strokeWidth: number;
readonly strokeOpacity: number;
readonly strokeDasharray: strokeDashTypes;
readonly textFill: string;
readonly fontFamily: string;
readonly fontSize: number;
readonly fontWeight: number | string;
readonly fontStyle: string;
readonly text: string;
readonly edge: object;
readonly textBox: {
closeIcon: any;
padding: any;
};
readonly yValue: number;
readonly onDragStart: any;
readonly onDrag: any;
readonly onDragComplete: any;
readonly onHover?: any;
readonly onUnHover?: any;
readonly defaultClassName?: string;
readonly interactiveCursorClass?: string;
readonly tolerance: number;
readonly selected: boolean;
readonly hovering: boolean;
}
export declare class InteractiveYCoordinate extends React.Component<InteractiveYCoordinateProps> {
static defaultProps: {
onDragStart: () => void;
onDrag: () => void;
onDragComplete: () => void;
fontWeight: string;
strokeWidth: number;
tolerance: number;
selected: boolean;
hovering: boolean;
};
private width;
render(): JSX.Element;
private readonly renderSVG;
private readonly drawOnCanvas;
private readonly isHover;
}
export {};