UNPKG

4.79 kBTypeScriptView Raw
1declare namespace echarts {
2 namespace EChartOption {
3 type VisualMap = VisualMap.Continuous | VisualMap.Piecewise;
4 }
5 namespace VisualMap {
6 interface Continuous {
7 type?: "continuous" | undefined;
8 id?: string | undefined;
9 min?: number | undefined;
10 max?: number | undefined;
11 range?: number[] | undefined;
12 calculable?: boolean | undefined;
13 realtime?: boolean | undefined;
14 inverse?: boolean | undefined;
15 precision?: number | undefined;
16 itemWidth?: number | undefined;
17 itemHeight?: number | undefined;
18 align?: "auto" | "left" | "right" | "top" | "bottom" | undefined;
19 text?: string[] | undefined;
20 textGap?: number | undefined;
21 show?: boolean | undefined;
22 dimension?: string | number | undefined;
23 seriesIndex?: number | number[] | undefined;
24 hoverLink?: boolean | undefined;
25 inRange?: RangeObject | undefined;
26 outOfRange?: RangeObject | undefined;
27 controller?: {
28 inRange?: RangeObject | undefined;
29 outOfRange?: RangeObject | undefined;
30 } | undefined;
31 zlevel?: number | undefined;
32 z?: number | undefined;
33 left?: number | string | undefined;
34 top?: number | string | undefined;
35 right?: number | string | undefined;
36 bottom?: number | string | undefined;
37 orient?: "vertical" | "horizontal" | undefined;
38 padding?: number | number[] | undefined;
39 backgroundColor?: string | undefined;
40 borderColor?: string | undefined;
41 borderWidth?: number | undefined;
42 color?: string[] | undefined;
43 textStyle?: EChartOption.BaseTextStyleWithRich | undefined;
44 formatter?: string | Function | undefined;
45 }
46 interface Piecewise {
47 type?: "piecewise" | undefined;
48 id?: string | undefined;
49 splitNumber?: number | undefined;
50 pieces?: PiecesObject[] | undefined;
51 categories?: string[] | undefined;
52 min?: number | undefined;
53 max?: number | undefined;
54 minOpen?: boolean | undefined;
55 maxOpen?: boolean | undefined;
56 selectedMode?: "multiple" | "single" | undefined;
57 inverse?: boolean | undefined;
58 precision?: number | undefined;
59 itemWidth?: number | undefined;
60 itemHeight?: number | undefined;
61 align?: "auto" | "left" | "right" | undefined;
62 text?: string[] | undefined;
63 textGap?: number | number[] | undefined;
64 showLabel?: boolean | undefined;
65 itemGap?: number | undefined;
66 itemSymbol?: string | undefined;
67 show?: boolean | undefined;
68 dimension?: string | number | undefined;
69 seriesIndex?: number | number[] | undefined;
70 hoverLink?: boolean | undefined;
71 inRange?: RangeObject | undefined;
72 outOfRange?: RangeObject | undefined;
73 controller?: {
74 inRange?: RangeObject | undefined;
75 outOfRange?: RangeObject | undefined;
76 } | undefined;
77 zlevel?: number | undefined;
78 z?: number | undefined;
79 left?: number | string | undefined;
80 top?: number | string | undefined;
81 right?: number | string | undefined;
82 bottom?: number | string | undefined;
83 orient?: "vertical" | "horizontal" | undefined;
84 padding?: number | number[] | undefined;
85 backgroundColor?: string | undefined;
86 borderColor?: string | undefined;
87 borderWidth?: number | undefined;
88 color?: string[] | undefined;
89 textStyle?: EChartOption.TextStyle | undefined;
90 formatter?: string | Function | undefined;
91 }
92 interface RangeObject {
93 symbol?: string | string[] | undefined;
94 symbolSize?: number | number[] | undefined;
95 color?: string | string[] | undefined;
96 colorAlpha?: number | number[] | undefined;
97 opacity?: number | number[] | undefined;
98 colorLightness?: number | number[] | undefined;
99 colorSaturation?: number | number[] | undefined;
100 colorHue?: number | number[] | undefined;
101 }
102 interface PiecesObject {
103 min?: number | undefined;
104 max?: number | undefined;
105 label?: string | undefined;
106 value?: number | undefined;
107 color?: string | undefined;
108 }
109 }
110}