recharts
Version:
React charts
44 lines (43 loc) • 1.32 kB
TypeScript
import React, { CSSProperties, PureComponent, ReactNode } from 'react';
import { AllowInDimension, AnimationDuration, AnimationTiming, CartesianViewBox, Coordinate } from '../util/types';
export type TooltipBoundingBoxProps = {
active: boolean;
allowEscapeViewBox: AllowInDimension;
animationDuration: AnimationDuration;
animationEasing: AnimationTiming;
children: ReactNode;
coordinate: Partial<Coordinate>;
hasPayload: boolean;
isAnimationActive: boolean;
offset: number;
position: Partial<Coordinate>;
reverseDirection: AllowInDimension;
useTranslate3d: boolean;
viewBox: CartesianViewBox;
wrapperStyle: CSSProperties;
};
type State = {
dismissed: boolean;
dismissedAtCoordinate: Coordinate;
};
export declare class TooltipBoundingBox extends PureComponent<TooltipBoundingBoxProps, State> {
state: {
dismissed: boolean;
dismissedAtCoordinate: {
x: number;
y: number;
};
};
lastBoundingBox: {
width: number;
height: number;
};
private wrapperNode;
updateBBox(): void;
componentDidMount(): void;
componentWillUnmount(): void;
componentDidUpdate(): void;
handleKeyDown: (event: KeyboardEvent) => void;
render(): React.JSX.Element;
}
export {};