react-financial-charts
Version:
React charts specific to finance.
37 lines (36 loc) • 1.07 kB
TypeScript
import * as React from "react";
interface HoverTextNearMouseProps {
readonly fontFamily?: string;
readonly fontSize?: number;
readonly fill?: string;
readonly text: string;
readonly bgFill?: string;
readonly bgOpacity?: number;
readonly bgWidth: number | string;
readonly bgHeight: number | string;
readonly show: boolean;
}
interface HoverTextNearMouseState {
textHeight?: number;
textWidth?: number;
}
export declare class HoverTextNearMouse extends React.Component<HoverTextNearMouseProps, HoverTextNearMouseState> {
static defaultProps: {
fontFamily: string;
fontSize: number;
fill: string;
bgFill: string;
bgOpacity: number;
};
private textNode;
constructor(props: HoverTextNearMouseProps);
componentDidMount(): void;
componentDidUpdate(): void;
render(): JSX.Element | null;
private readonly renderSVG;
private readonly getBgHeight;
private readonly getBgWidth;
private readonly updateTextSize;
private readonly saveNode;
}
export {};