@react-financial-charts/interactive
Version:
Interactive features for react-financial-charts
36 lines (35 loc) • 1.06 kB
TypeScript
import * as React from "react";
export 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 readonly textNode;
constructor(props: HoverTextNearMouseProps);
componentDidMount(): void;
componentDidUpdate(): void;
render(): JSX.Element | null;
private readonly renderSVG;
private readonly getBgHeight;
private readonly getBgWidth;
private readonly updateTextSize;
}
export {};