1 | import Component from '../../base/component';
|
2 | import { DataRecord, px, TextAttrs, LineAttrs, RectAttrs } from '../../types';
|
3 | import { ChartChildProps } from '../../chart';
|
4 | export interface TooltipProps extends ChartChildProps {
|
5 | |
6 |
|
7 |
|
8 | padding?: px;
|
9 | |
10 |
|
11 |
|
12 | triggerOn?: string;
|
13 | |
14 |
|
15 |
|
16 | triggerOff?: string;
|
17 | |
18 |
|
19 |
|
20 | alwaysShow?: boolean;
|
21 | |
22 |
|
23 |
|
24 | showCrosshairs?: boolean;
|
25 | |
26 |
|
27 |
|
28 | crosshairsType?: 'x' | 'y' | 'xy';
|
29 | |
30 |
|
31 |
|
32 | crosshairsStyle?: LineAttrs;
|
33 | snap?: boolean;
|
34 | |
35 |
|
36 |
|
37 | nameStyle?: TextAttrs;
|
38 | |
39 |
|
40 |
|
41 | valueStyle?: TextAttrs;
|
42 | |
43 |
|
44 |
|
45 | background?: RectAttrs;
|
46 | |
47 |
|
48 |
|
49 | showItemMarker?: boolean;
|
50 | }
|
51 | export interface TooltipState {
|
52 | records: DataRecord[];
|
53 | }
|
54 | declare const _default: (View: any) => {
|
55 | new (props: TooltipProps): {
|
56 | updateCoord(): void;
|
57 | willMount(): void;
|
58 | didMount(): void;
|
59 | willReceiveProps(nextProps: any): void;
|
60 | _initShow(): void;
|
61 | _showByData(dataItem: any): void;
|
62 | _triggerOn: (ev: any) => void;
|
63 | _triggerOff: () => void;
|
64 | _initEvent(): void;
|
65 | didUnmount(): void;
|
66 | _clearEvents(): void;
|
67 | show(point: any, _ev?: any): void;
|
68 | hide(): void;
|
69 | render(): import("../..").JSX.Element;
|
70 | props: TooltipProps;
|
71 | state: TooltipState;
|
72 | context: import("../../base/component").ComponentContext;
|
73 | refs: {
|
74 | [key: string]: Component<any, any>;
|
75 | };
|
76 | updater: import("../../base/component").Updater<TooltipState>;
|
77 | children: import("../..").JSX.Element;
|
78 | container: any;
|
79 | animate: boolean;
|
80 | destroyed: boolean;
|
81 | willUpdate(): void;
|
82 | didUpdate(): void;
|
83 | setState(partialState: TooltipState, callback?: () => void): void;
|
84 | forceUpdate(callback?: () => void): void;
|
85 | setAnimate(animate: boolean): void;
|
86 | destroy(): void;
|
87 | };
|
88 | };
|
89 | export default _default;
|