1 | import React, { PureComponent, CSSProperties, ReactNode, ReactElement, SVGProps } from 'react';
|
2 | import { ValueType, NameType, Payload, Props as ToltipContentProps } from './DefaultTooltipContent';
|
3 | import { UniqueOption } from '../util/payload/getUniqPayload';
|
4 | import { AllowInDimension, AnimationDuration, AnimationTiming, CartesianViewBox, Coordinate } from '../util/types';
|
5 | export type ContentType<TValue extends ValueType, TName extends NameType> = ReactElement | ((props: TooltipProps<TValue, TName>) => ReactNode);
|
6 | export type TooltipProps<TValue extends ValueType, TName extends NameType> = ToltipContentProps<TValue, TName> & {
|
7 | accessibilityLayer?: boolean;
|
8 | active?: boolean | undefined;
|
9 | includeHidden?: boolean | undefined;
|
10 | allowEscapeViewBox?: AllowInDimension;
|
11 | animationDuration?: AnimationDuration;
|
12 | animationEasing?: AnimationTiming;
|
13 | content?: ContentType<TValue, TName>;
|
14 | coordinate?: Partial<Coordinate>;
|
15 | cursor?: boolean | ReactElement | SVGProps<SVGElement>;
|
16 | filterNull?: boolean;
|
17 | defaultIndex?: number;
|
18 | isAnimationActive?: boolean;
|
19 | offset?: number;
|
20 | payloadUniqBy?: UniqueOption<Payload<TValue, TName>>;
|
21 | position?: Partial<Coordinate>;
|
22 | reverseDirection?: AllowInDimension;
|
23 | shared?: boolean;
|
24 | trigger?: 'hover' | 'click';
|
25 | useTranslate3d?: boolean;
|
26 | viewBox?: CartesianViewBox;
|
27 | wrapperStyle?: CSSProperties;
|
28 | };
|
29 | export declare class Tooltip<TValue extends ValueType, TName extends NameType> extends PureComponent<TooltipProps<TValue, TName>> {
|
30 | static displayName: string;
|
31 | static defaultProps: {
|
32 | accessibilityLayer: boolean;
|
33 | allowEscapeViewBox: {
|
34 | x: boolean;
|
35 | y: boolean;
|
36 | };
|
37 | animationDuration: number;
|
38 | animationEasing: string;
|
39 | contentStyle: {};
|
40 | coordinate: {
|
41 | x: number;
|
42 | y: number;
|
43 | };
|
44 | cursor: boolean;
|
45 | cursorStyle: {};
|
46 | filterNull: boolean;
|
47 | isAnimationActive: boolean;
|
48 | itemStyle: {};
|
49 | labelStyle: {};
|
50 | offset: number;
|
51 | reverseDirection: {
|
52 | x: boolean;
|
53 | y: boolean;
|
54 | };
|
55 | separator: string;
|
56 | trigger: string;
|
57 | useTranslate3d: boolean;
|
58 | viewBox: {
|
59 | x: number;
|
60 | y: number;
|
61 | height: number;
|
62 | width: number;
|
63 | };
|
64 | wrapperStyle: {};
|
65 | };
|
66 | render(): React.JSX.Element;
|
67 | }
|
68 |
|
\ | No newline at end of file |