react-financial-charts
Version:
React charts specific to finance.
56 lines (55 loc) • 1.65 kB
TypeScript
import * as React from "react";
import { strokeDashTypes } from "../../utils";
interface EachInteractiveYCoordinateProps {
readonly index?: number;
readonly draggable: boolean;
readonly yValue: number;
readonly bgFill: string;
readonly bgOpacity: number;
readonly stroke: string;
readonly strokeWidth: number;
readonly strokeOpacity: number;
readonly strokeDasharray: strokeDashTypes;
readonly textFill: string;
readonly fontWeight: string;
readonly fontFamily: string;
readonly fontStyle: string;
readonly fontSize: number;
readonly text: string;
readonly selected: boolean;
readonly edge: object;
readonly textBox: {
closeIcon: any;
left: number;
padding: any;
};
readonly onDrag: any;
readonly onDragComplete: any;
readonly onDelete: any;
}
interface EachInteractiveYCoordinateState {
closeIconHover: boolean;
hover: boolean;
}
export declare class EachInteractiveYCoordinate extends React.Component<EachInteractiveYCoordinateProps, EachInteractiveYCoordinateState> {
static defaultProps: {
onDrag: () => void;
onDragComplete: () => void;
strokeWidth: number;
opacity: number;
selected: boolean;
fill: string;
draggable: boolean;
};
private dragStartPosition;
private isHover;
private saveNodeType;
constructor(props: any);
render(): JSX.Element;
private readonly handleCloseIconHover;
private readonly handleHover;
private readonly handleDelete;
private readonly handleDrag;
private readonly handleDragStart;
}
export {};