1 | import { CSSProperties } from 'react';
|
2 | export declare type EChartsOption = any;
|
3 | export declare type EChartsInstance = any;
|
4 | export declare type Opts = {
|
5 | readonly devicePixelRatio?: number;
|
6 | readonly renderer?: 'canvas' | 'svg';
|
7 | readonly width?: number | null | undefined | 'auto';
|
8 | readonly height?: number | null | undefined | 'auto';
|
9 | readonly locale?: string;
|
10 | };
|
11 | export declare type EChartsReactProps = {
|
12 | |
13 |
|
14 |
|
15 | readonly echarts?: any;
|
16 | |
17 |
|
18 |
|
19 | readonly className?: string;
|
20 | |
21 |
|
22 |
|
23 | readonly style?: CSSProperties;
|
24 | |
25 |
|
26 |
|
27 | readonly option: EChartsOption;
|
28 | |
29 |
|
30 |
|
31 |
|
32 |
|
33 | readonly theme?: string | Record<string, any>;
|
34 | |
35 |
|
36 |
|
37 | readonly notMerge?: boolean;
|
38 | |
39 |
|
40 |
|
41 | readonly lazyUpdate?: boolean;
|
42 | |
43 |
|
44 |
|
45 | readonly showLoading?: boolean;
|
46 | |
47 |
|
48 |
|
49 | readonly loadingOption?: any;
|
50 | |
51 |
|
52 |
|
53 | readonly opts?: Opts;
|
54 | |
55 |
|
56 |
|
57 | readonly onChartReady?: (instance: EChartsInstance) => void;
|
58 | |
59 |
|
60 |
|
61 | readonly onEvents?: Record<string, Function>;
|
62 | |
63 |
|
64 |
|
65 | readonly shouldSetOption?: (prevProps: EChartsReactProps, props: EChartsReactProps) => boolean;
|
66 | };
|