@orbcharts/presets-basic 3.0.0-beta.1 → 3.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +200 -200
- package/lib/core-types.ts +7 -7
- package/lib/plugins-basic-types.ts +6 -6
- package/package.json +42 -42
- package/src/grid/PRESET_BARS_HORIZONTAL_AND_ROUND.ts +56 -56
- package/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.ts +52 -52
- package/src/grid/PRESET_BARS_ROUND.ts +39 -39
- package/src/grid/PRESET_BARS_THIN.ts +36 -36
- package/src/grid/PRESET_GRID_BASIC.ts +27 -27
- package/src/grid/PRESET_GRID_HORIZONTAL.ts +44 -44
- package/src/grid/PRESET_GRID_PN_SCALE.ts +35 -35
- package/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.ts +35 -35
- package/src/grid/PRESET_GRID_SEPARATE_SERIES.ts +40 -40
- package/src/grid/PRESET_LINES_BASIC.ts +35 -35
- package/src/grid/PRESET_LINES_CURVE.ts +38 -38
- package/src/grid/PRESET_LINES_HIGHLIGHT_GROUP_DOTS.ts +37 -37
- package/src/grid/PRESET_LINES_HORIZONTAL.ts +51 -51
- package/src/grid/PRESET_LINES_LOOSE_TICKS.ts +37 -37
- package/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.ts +40 -40
- package/src/grid/PRESET_LINES_WITH_SOLID_DOTS.ts +39 -39
- package/src/grid/PRESET_LINE_AREAS_BASIC.ts +43 -43
- package/src/grid/PRESET_LINE_AREAS_CURVE.ts +48 -48
- package/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.ts +47 -47
- package/src/grid/PRESET_LINE_AREAS_HORIZONTAL.ts +47 -47
- package/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.ts +45 -45
- package/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.ts +48 -48
- package/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.ts +50 -50
- package/src/grid/index.ts +22 -22
- package/src/index.ts +4 -4
- package/src/multiGrid/PRESET_MULTI_GRID_BASIC.ts +38 -38
- package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.ts +86 -86
- package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.ts +58 -58
- package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.ts +60 -60
- package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.ts +86 -86
- package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.ts +104 -104
- package/src/multiGrid/index.ts +6 -6
- package/src/params.ts +60 -60
- package/src/series/PRESET_BUBBLES_SCALING_BY_RADIUS.ts +18 -18
- package/src/series/PRESET_BUBBLES_SEPARATE_SERIES.ts +29 -29
- package/src/series/PRESET_PIE_BASIC.ts +18 -18
- package/src/series/PRESET_PIE_DONUT.ts +23 -23
- package/src/series/PRESET_PIE_HALF_DONUT.ts +36 -36
- package/src/series/PRESET_PIE_WITH_INNER_LABELS.ts +24 -24
- package/src/series/PRESET_ROSE_BASIC.ts +19 -19
- package/src/series/PRESET_ROSE_SCALING_BY_RADIUS.ts +24 -24
- package/src/series/PRESET_SERIES_BASIC.ts +16 -16
- package/src/series/PRESET_SERIES_SEPARATE_SERIES.ts +17 -17
- package/src/series/PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES.ts +18 -18
- package/src/series/PRESET_SERIES_SUM_SERIES.ts +18 -18
- package/src/series/index.ts +13 -13
- package/src/tree/PRESET_TREE_BASIC.ts +27 -27
- package/src/types.ts +267 -267
- package/tsconfig.base.json +13 -13
- package/tsconfig.json +2 -2
- package/vite.config.js +22 -22
package/src/types.ts
CHANGED
@@ -1,268 +1,268 @@
|
|
1
|
-
import type {
|
2
|
-
// -- series --
|
3
|
-
BubblesParams,
|
4
|
-
PieParams,
|
5
|
-
PieEventTextsParams,
|
6
|
-
PieLabelsParams,
|
7
|
-
RoseParams,
|
8
|
-
RoseLabelsParams,
|
9
|
-
SeriesLegendParams,
|
10
|
-
SeriesTooltipParams,
|
11
|
-
|
12
|
-
// -- grid --
|
13
|
-
BarsParams,
|
14
|
-
BarsPNParams,
|
15
|
-
BarStackParams,
|
16
|
-
BarsTriangleParams,
|
17
|
-
DotsParams,
|
18
|
-
GridLegendParams,
|
19
|
-
GroupAuxParams,
|
20
|
-
GroupAxisParams,
|
21
|
-
LineAreasParams,
|
22
|
-
LinesParams,
|
23
|
-
GridTooltipParams,
|
24
|
-
GridZoomParams,
|
25
|
-
ValueAxisParams,
|
26
|
-
ValueStackAxisParams,
|
27
|
-
|
28
|
-
// -- multiGrid --
|
29
|
-
MultiBarsParams,
|
30
|
-
MultiBarStackParams,
|
31
|
-
MultiBarsTriangleParams,
|
32
|
-
MultiDotsParams,
|
33
|
-
MultiGridLegendParams,
|
34
|
-
MultiGridTooltipParams,
|
35
|
-
MultiGroupAxisParams,
|
36
|
-
MultiLineAreasParams,
|
37
|
-
MultiLinesParams,
|
38
|
-
MultiValueAxisParams,
|
39
|
-
MultiValueStackAxisParams,
|
40
|
-
OverlappingValueAxesParams,
|
41
|
-
OverlappingValueStackAxesParams,
|
42
|
-
|
43
|
-
// -- tree --
|
44
|
-
TreeLegendParams,
|
45
|
-
TreeMapParams,
|
46
|
-
TreeTooltipParams,
|
47
|
-
|
48
|
-
// -- noneData --
|
49
|
-
// TooltipParams
|
50
|
-
} from '../lib/plugins-basic-types'
|
51
|
-
|
52
|
-
type DeepPartial<T> = Partial<{ [P in keyof T]: DeepPartial<T[P]> }>
|
53
|
-
|
54
|
-
// -- series --
|
55
|
-
// series的全部plugin參數
|
56
|
-
export type PresetSeriesPluginParams = PresetBubblesParams
|
57
|
-
& PresetPieParams
|
58
|
-
& PresetPieEventTextsParams
|
59
|
-
& PresetPieLabelsParams
|
60
|
-
& PresetRoseParams
|
61
|
-
& PresetRoseLabelsParams
|
62
|
-
& PresetSeriesLegendParams
|
63
|
-
& PresetSeriesTooltipParams
|
64
|
-
|
65
|
-
export interface PresetBubblesParams {
|
66
|
-
Bubbles: Partial<BubblesParams>
|
67
|
-
}
|
68
|
-
|
69
|
-
export interface PresetPieParams {
|
70
|
-
Pie: Partial<PieParams>
|
71
|
-
}
|
72
|
-
|
73
|
-
export interface PresetPieEventTextsParams {
|
74
|
-
PieEventTexts: Partial<PieEventTextsParams>
|
75
|
-
}
|
76
|
-
|
77
|
-
export interface PresetPieLabelsParams {
|
78
|
-
PieLabels: Partial<PieLabelsParams>
|
79
|
-
}
|
80
|
-
|
81
|
-
export interface PresetRoseParams {
|
82
|
-
Rose: Partial<RoseParams>
|
83
|
-
}
|
84
|
-
|
85
|
-
export interface PresetRoseLabelsParams {
|
86
|
-
RoseLabels: Partial<RoseLabelsParams>
|
87
|
-
}
|
88
|
-
|
89
|
-
export interface PresetSeriesLegendParams {
|
90
|
-
SeriesLegend: Partial<SeriesLegendParams>
|
91
|
-
}
|
92
|
-
|
93
|
-
export interface PresetSeriesTooltipParams {
|
94
|
-
SeriesTooltip: Partial<SeriesTooltipParams>
|
95
|
-
}
|
96
|
-
|
97
|
-
// -- grid --
|
98
|
-
// grid的全部plugin參數
|
99
|
-
export type PresetGridPluginParams = PresetBarsParams
|
100
|
-
& PresetBarsPNParams
|
101
|
-
& PresetBarStackParams
|
102
|
-
& PresetBarsTriangleParams
|
103
|
-
& PresetDotsParams
|
104
|
-
& PresetGridLegendParams
|
105
|
-
& PresetGridTooltipParams
|
106
|
-
& PresetGroupAuxParams
|
107
|
-
& PresetGroupAxisParams
|
108
|
-
& PresetLineAreasParams
|
109
|
-
& PresetLinesParams
|
110
|
-
& PresetGridZoomParams
|
111
|
-
& PresetValueAxisParams
|
112
|
-
& PresetValueStackAxisParams
|
113
|
-
|
114
|
-
export interface PresetBarsParams {
|
115
|
-
Bars: Partial<BarsParams>
|
116
|
-
}
|
117
|
-
|
118
|
-
export interface PresetBarsPNParams {
|
119
|
-
BarsPN: Partial<BarsPNParams>
|
120
|
-
}
|
121
|
-
|
122
|
-
export interface PresetBarStackParams {
|
123
|
-
BarStack: Partial<BarStackParams>
|
124
|
-
}
|
125
|
-
|
126
|
-
export interface PresetBarsTriangleParams {
|
127
|
-
BarsTriangle: Partial<BarsTriangleParams>
|
128
|
-
}
|
129
|
-
|
130
|
-
export interface PresetDotsParams {
|
131
|
-
Dots: Partial<DotsParams>
|
132
|
-
}
|
133
|
-
|
134
|
-
export interface PresetGridLegendParams {
|
135
|
-
GridLegend: Partial<GridLegendParams>
|
136
|
-
}
|
137
|
-
|
138
|
-
export interface PresetGridTooltipParams {
|
139
|
-
GridTooltip: Partial<GridTooltipParams>
|
140
|
-
}
|
141
|
-
|
142
|
-
export interface PresetGroupAuxParams {
|
143
|
-
GroupAux: Partial<GroupAuxParams>
|
144
|
-
}
|
145
|
-
|
146
|
-
export interface PresetGroupAxisParams {
|
147
|
-
GroupAxis: Partial<GroupAxisParams>
|
148
|
-
}
|
149
|
-
|
150
|
-
export interface PresetLineAreasParams {
|
151
|
-
LineAreas: Partial<LineAreasParams>
|
152
|
-
}
|
153
|
-
|
154
|
-
export interface PresetLinesParams {
|
155
|
-
Lines: Partial<LinesParams>
|
156
|
-
}
|
157
|
-
|
158
|
-
export interface PresetGridZoomParams {
|
159
|
-
GridZoom: Partial<GridZoomParams>
|
160
|
-
}
|
161
|
-
|
162
|
-
export interface PresetValueAxisParams {
|
163
|
-
ValueAxis: Partial<ValueAxisParams>
|
164
|
-
}
|
165
|
-
|
166
|
-
export interface PresetValueStackAxisParams {
|
167
|
-
ValueStackAxis: Partial<ValueStackAxisParams>
|
168
|
-
}
|
169
|
-
|
170
|
-
// -- multiGrid --
|
171
|
-
// multiGrid的全部plugin參數
|
172
|
-
export type PresetMultiGridPluginParams = PresetMultiBarsParams
|
173
|
-
& PresetMultiBarStackParams
|
174
|
-
& PresetMultiBarsTriangleParams
|
175
|
-
& PresetMultiDotsParams
|
176
|
-
& PresetMultiGridLegendParams
|
177
|
-
& PresetMultiGridTooltipParams
|
178
|
-
& PresetMultiGroupAxisParams
|
179
|
-
& PresetMultiLineAreasParams
|
180
|
-
& PresetMultiLinesParams
|
181
|
-
& PresetMultiValueAxisParams
|
182
|
-
& PresetMultiValueStackAxisParams
|
183
|
-
& PresetOverlappingValueAxesParams
|
184
|
-
& PresetOverlappingValueStackAxesParams
|
185
|
-
|
186
|
-
// multiGrid分開grid
|
187
|
-
export type PresetMultiGridSepratedPluginParams = Omit<PresetMultiGridPluginParams, 'OverlappingValueAxes' | 'OverlappingValueStackAxes'>
|
188
|
-
|
189
|
-
// multiGrid重疊grid
|
190
|
-
export type PresetMultiGridOverlappedPluginParams = Omit<PresetMultiGridPluginParams, 'PresetMultiGroupAxisParams' | 'PresetMultiValueAxisParams'>
|
191
|
-
|
192
|
-
export interface PresetMultiBarsParams {
|
193
|
-
MultiBars: Partial<MultiBarsParams>
|
194
|
-
}
|
195
|
-
|
196
|
-
export interface PresetMultiBarStackParams {
|
197
|
-
MultiBarStack: Partial<MultiBarStackParams>
|
198
|
-
}
|
199
|
-
|
200
|
-
export interface PresetMultiBarsTriangleParams {
|
201
|
-
MultiBarsTriangle: Partial<MultiBarsTriangleParams>
|
202
|
-
}
|
203
|
-
|
204
|
-
export interface PresetMultiDotsParams {
|
205
|
-
MultiDots: Partial<MultiDotsParams>
|
206
|
-
}
|
207
|
-
|
208
|
-
export interface PresetMultiGridLegendParams {
|
209
|
-
MultiGridLegend: DeepPartial<MultiGridLegendParams>
|
210
|
-
}
|
211
|
-
|
212
|
-
export interface PresetMultiGridTooltipParams {
|
213
|
-
MultiGridTooltip: Partial<MultiGridTooltipParams>
|
214
|
-
}
|
215
|
-
|
216
|
-
export interface PresetMultiGroupAxisParams {
|
217
|
-
MultiGroupAxis: Partial<MultiGroupAxisParams>
|
218
|
-
}
|
219
|
-
|
220
|
-
export interface PresetMultiLineAreasParams {
|
221
|
-
MultiLineAreas: Partial<MultiLineAreasParams>
|
222
|
-
}
|
223
|
-
|
224
|
-
export interface PresetMultiLinesParams {
|
225
|
-
MultiLines: Partial<MultiLinesParams>
|
226
|
-
}
|
227
|
-
|
228
|
-
export interface PresetMultiValueAxisParams {
|
229
|
-
MultiValueAxis: Partial<MultiValueAxisParams>
|
230
|
-
}
|
231
|
-
|
232
|
-
export interface PresetMultiValueStackAxisParams {
|
233
|
-
MultiValueStackAxis: Partial<MultiValueStackAxisParams>
|
234
|
-
}
|
235
|
-
|
236
|
-
export interface PresetOverlappingValueAxesParams {
|
237
|
-
OverlappingValueAxes: Partial<OverlappingValueAxesParams>
|
238
|
-
}
|
239
|
-
|
240
|
-
export interface PresetOverlappingValueStackAxesParams {
|
241
|
-
OverlappingValueStackAxes: Partial<OverlappingValueStackAxesParams>
|
242
|
-
}
|
243
|
-
|
244
|
-
// -- tree --
|
245
|
-
export type PresetTreePluginParams = PresetTreeLegendParams
|
246
|
-
& PresetTreeMapParams
|
247
|
-
& PresetTreeTooltipParams
|
248
|
-
|
249
|
-
export interface PresetTreeLegendParams {
|
250
|
-
TreeLegend: Partial<TreeLegendParams>
|
251
|
-
}
|
252
|
-
|
253
|
-
export interface PresetTreeMapParams {
|
254
|
-
TreeMap: Partial<TreeMapParams>
|
255
|
-
}
|
256
|
-
|
257
|
-
export interface PresetTreeTooltipParams {
|
258
|
-
TreeTooltip: Partial<TreeTooltipParams>
|
259
|
-
}
|
260
|
-
|
261
|
-
// -- noneData --
|
262
|
-
// noneData的全部plugin參數
|
263
|
-
export type PresetNoneDataPluginParams = {}
|
264
|
-
// export type PresetNoneDataPluginParams = PresetTooltipParams
|
265
|
-
|
266
|
-
// export interface PresetTooltipParams {
|
267
|
-
// Tooltip: Partial<TooltipParams>
|
1
|
+
import type {
|
2
|
+
// -- series --
|
3
|
+
BubblesParams,
|
4
|
+
PieParams,
|
5
|
+
PieEventTextsParams,
|
6
|
+
PieLabelsParams,
|
7
|
+
RoseParams,
|
8
|
+
RoseLabelsParams,
|
9
|
+
SeriesLegendParams,
|
10
|
+
SeriesTooltipParams,
|
11
|
+
|
12
|
+
// -- grid --
|
13
|
+
BarsParams,
|
14
|
+
BarsPNParams,
|
15
|
+
BarStackParams,
|
16
|
+
BarsTriangleParams,
|
17
|
+
DotsParams,
|
18
|
+
GridLegendParams,
|
19
|
+
GroupAuxParams,
|
20
|
+
GroupAxisParams,
|
21
|
+
LineAreasParams,
|
22
|
+
LinesParams,
|
23
|
+
GridTooltipParams,
|
24
|
+
GridZoomParams,
|
25
|
+
ValueAxisParams,
|
26
|
+
ValueStackAxisParams,
|
27
|
+
|
28
|
+
// -- multiGrid --
|
29
|
+
MultiBarsParams,
|
30
|
+
MultiBarStackParams,
|
31
|
+
MultiBarsTriangleParams,
|
32
|
+
MultiDotsParams,
|
33
|
+
MultiGridLegendParams,
|
34
|
+
MultiGridTooltipParams,
|
35
|
+
MultiGroupAxisParams,
|
36
|
+
MultiLineAreasParams,
|
37
|
+
MultiLinesParams,
|
38
|
+
MultiValueAxisParams,
|
39
|
+
MultiValueStackAxisParams,
|
40
|
+
OverlappingValueAxesParams,
|
41
|
+
OverlappingValueStackAxesParams,
|
42
|
+
|
43
|
+
// -- tree --
|
44
|
+
TreeLegendParams,
|
45
|
+
TreeMapParams,
|
46
|
+
TreeTooltipParams,
|
47
|
+
|
48
|
+
// -- noneData --
|
49
|
+
// TooltipParams
|
50
|
+
} from '../lib/plugins-basic-types'
|
51
|
+
|
52
|
+
type DeepPartial<T> = Partial<{ [P in keyof T]: DeepPartial<T[P]> }>
|
53
|
+
|
54
|
+
// -- series --
|
55
|
+
// series的全部plugin參數
|
56
|
+
export type PresetSeriesPluginParams = PresetBubblesParams
|
57
|
+
& PresetPieParams
|
58
|
+
& PresetPieEventTextsParams
|
59
|
+
& PresetPieLabelsParams
|
60
|
+
& PresetRoseParams
|
61
|
+
& PresetRoseLabelsParams
|
62
|
+
& PresetSeriesLegendParams
|
63
|
+
& PresetSeriesTooltipParams
|
64
|
+
|
65
|
+
export interface PresetBubblesParams {
|
66
|
+
Bubbles: Partial<BubblesParams>
|
67
|
+
}
|
68
|
+
|
69
|
+
export interface PresetPieParams {
|
70
|
+
Pie: Partial<PieParams>
|
71
|
+
}
|
72
|
+
|
73
|
+
export interface PresetPieEventTextsParams {
|
74
|
+
PieEventTexts: Partial<PieEventTextsParams>
|
75
|
+
}
|
76
|
+
|
77
|
+
export interface PresetPieLabelsParams {
|
78
|
+
PieLabels: Partial<PieLabelsParams>
|
79
|
+
}
|
80
|
+
|
81
|
+
export interface PresetRoseParams {
|
82
|
+
Rose: Partial<RoseParams>
|
83
|
+
}
|
84
|
+
|
85
|
+
export interface PresetRoseLabelsParams {
|
86
|
+
RoseLabels: Partial<RoseLabelsParams>
|
87
|
+
}
|
88
|
+
|
89
|
+
export interface PresetSeriesLegendParams {
|
90
|
+
SeriesLegend: Partial<SeriesLegendParams>
|
91
|
+
}
|
92
|
+
|
93
|
+
export interface PresetSeriesTooltipParams {
|
94
|
+
SeriesTooltip: Partial<SeriesTooltipParams>
|
95
|
+
}
|
96
|
+
|
97
|
+
// -- grid --
|
98
|
+
// grid的全部plugin參數
|
99
|
+
export type PresetGridPluginParams = PresetBarsParams
|
100
|
+
& PresetBarsPNParams
|
101
|
+
& PresetBarStackParams
|
102
|
+
& PresetBarsTriangleParams
|
103
|
+
& PresetDotsParams
|
104
|
+
& PresetGridLegendParams
|
105
|
+
& PresetGridTooltipParams
|
106
|
+
& PresetGroupAuxParams
|
107
|
+
& PresetGroupAxisParams
|
108
|
+
& PresetLineAreasParams
|
109
|
+
& PresetLinesParams
|
110
|
+
& PresetGridZoomParams
|
111
|
+
& PresetValueAxisParams
|
112
|
+
& PresetValueStackAxisParams
|
113
|
+
|
114
|
+
export interface PresetBarsParams {
|
115
|
+
Bars: Partial<BarsParams>
|
116
|
+
}
|
117
|
+
|
118
|
+
export interface PresetBarsPNParams {
|
119
|
+
BarsPN: Partial<BarsPNParams>
|
120
|
+
}
|
121
|
+
|
122
|
+
export interface PresetBarStackParams {
|
123
|
+
BarStack: Partial<BarStackParams>
|
124
|
+
}
|
125
|
+
|
126
|
+
export interface PresetBarsTriangleParams {
|
127
|
+
BarsTriangle: Partial<BarsTriangleParams>
|
128
|
+
}
|
129
|
+
|
130
|
+
export interface PresetDotsParams {
|
131
|
+
Dots: Partial<DotsParams>
|
132
|
+
}
|
133
|
+
|
134
|
+
export interface PresetGridLegendParams {
|
135
|
+
GridLegend: Partial<GridLegendParams>
|
136
|
+
}
|
137
|
+
|
138
|
+
export interface PresetGridTooltipParams {
|
139
|
+
GridTooltip: Partial<GridTooltipParams>
|
140
|
+
}
|
141
|
+
|
142
|
+
export interface PresetGroupAuxParams {
|
143
|
+
GroupAux: Partial<GroupAuxParams>
|
144
|
+
}
|
145
|
+
|
146
|
+
export interface PresetGroupAxisParams {
|
147
|
+
GroupAxis: Partial<GroupAxisParams>
|
148
|
+
}
|
149
|
+
|
150
|
+
export interface PresetLineAreasParams {
|
151
|
+
LineAreas: Partial<LineAreasParams>
|
152
|
+
}
|
153
|
+
|
154
|
+
export interface PresetLinesParams {
|
155
|
+
Lines: Partial<LinesParams>
|
156
|
+
}
|
157
|
+
|
158
|
+
export interface PresetGridZoomParams {
|
159
|
+
GridZoom: Partial<GridZoomParams>
|
160
|
+
}
|
161
|
+
|
162
|
+
export interface PresetValueAxisParams {
|
163
|
+
ValueAxis: Partial<ValueAxisParams>
|
164
|
+
}
|
165
|
+
|
166
|
+
export interface PresetValueStackAxisParams {
|
167
|
+
ValueStackAxis: Partial<ValueStackAxisParams>
|
168
|
+
}
|
169
|
+
|
170
|
+
// -- multiGrid --
|
171
|
+
// multiGrid的全部plugin參數
|
172
|
+
export type PresetMultiGridPluginParams = PresetMultiBarsParams
|
173
|
+
& PresetMultiBarStackParams
|
174
|
+
& PresetMultiBarsTriangleParams
|
175
|
+
& PresetMultiDotsParams
|
176
|
+
& PresetMultiGridLegendParams
|
177
|
+
& PresetMultiGridTooltipParams
|
178
|
+
& PresetMultiGroupAxisParams
|
179
|
+
& PresetMultiLineAreasParams
|
180
|
+
& PresetMultiLinesParams
|
181
|
+
& PresetMultiValueAxisParams
|
182
|
+
& PresetMultiValueStackAxisParams
|
183
|
+
& PresetOverlappingValueAxesParams
|
184
|
+
& PresetOverlappingValueStackAxesParams
|
185
|
+
|
186
|
+
// multiGrid分開grid
|
187
|
+
export type PresetMultiGridSepratedPluginParams = Omit<PresetMultiGridPluginParams, 'OverlappingValueAxes' | 'OverlappingValueStackAxes'>
|
188
|
+
|
189
|
+
// multiGrid重疊grid
|
190
|
+
export type PresetMultiGridOverlappedPluginParams = Omit<PresetMultiGridPluginParams, 'PresetMultiGroupAxisParams' | 'PresetMultiValueAxisParams'>
|
191
|
+
|
192
|
+
export interface PresetMultiBarsParams {
|
193
|
+
MultiBars: Partial<MultiBarsParams>
|
194
|
+
}
|
195
|
+
|
196
|
+
export interface PresetMultiBarStackParams {
|
197
|
+
MultiBarStack: Partial<MultiBarStackParams>
|
198
|
+
}
|
199
|
+
|
200
|
+
export interface PresetMultiBarsTriangleParams {
|
201
|
+
MultiBarsTriangle: Partial<MultiBarsTriangleParams>
|
202
|
+
}
|
203
|
+
|
204
|
+
export interface PresetMultiDotsParams {
|
205
|
+
MultiDots: Partial<MultiDotsParams>
|
206
|
+
}
|
207
|
+
|
208
|
+
export interface PresetMultiGridLegendParams {
|
209
|
+
MultiGridLegend: DeepPartial<MultiGridLegendParams>
|
210
|
+
}
|
211
|
+
|
212
|
+
export interface PresetMultiGridTooltipParams {
|
213
|
+
MultiGridTooltip: Partial<MultiGridTooltipParams>
|
214
|
+
}
|
215
|
+
|
216
|
+
export interface PresetMultiGroupAxisParams {
|
217
|
+
MultiGroupAxis: Partial<MultiGroupAxisParams>
|
218
|
+
}
|
219
|
+
|
220
|
+
export interface PresetMultiLineAreasParams {
|
221
|
+
MultiLineAreas: Partial<MultiLineAreasParams>
|
222
|
+
}
|
223
|
+
|
224
|
+
export interface PresetMultiLinesParams {
|
225
|
+
MultiLines: Partial<MultiLinesParams>
|
226
|
+
}
|
227
|
+
|
228
|
+
export interface PresetMultiValueAxisParams {
|
229
|
+
MultiValueAxis: Partial<MultiValueAxisParams>
|
230
|
+
}
|
231
|
+
|
232
|
+
export interface PresetMultiValueStackAxisParams {
|
233
|
+
MultiValueStackAxis: Partial<MultiValueStackAxisParams>
|
234
|
+
}
|
235
|
+
|
236
|
+
export interface PresetOverlappingValueAxesParams {
|
237
|
+
OverlappingValueAxes: Partial<OverlappingValueAxesParams>
|
238
|
+
}
|
239
|
+
|
240
|
+
export interface PresetOverlappingValueStackAxesParams {
|
241
|
+
OverlappingValueStackAxes: Partial<OverlappingValueStackAxesParams>
|
242
|
+
}
|
243
|
+
|
244
|
+
// -- tree --
|
245
|
+
export type PresetTreePluginParams = PresetTreeLegendParams
|
246
|
+
& PresetTreeMapParams
|
247
|
+
& PresetTreeTooltipParams
|
248
|
+
|
249
|
+
export interface PresetTreeLegendParams {
|
250
|
+
TreeLegend: Partial<TreeLegendParams>
|
251
|
+
}
|
252
|
+
|
253
|
+
export interface PresetTreeMapParams {
|
254
|
+
TreeMap: Partial<TreeMapParams>
|
255
|
+
}
|
256
|
+
|
257
|
+
export interface PresetTreeTooltipParams {
|
258
|
+
TreeTooltip: Partial<TreeTooltipParams>
|
259
|
+
}
|
260
|
+
|
261
|
+
// -- noneData --
|
262
|
+
// noneData的全部plugin參數
|
263
|
+
export type PresetNoneDataPluginParams = {}
|
264
|
+
// export type PresetNoneDataPluginParams = PresetTooltipParams
|
265
|
+
|
266
|
+
// export interface PresetTooltipParams {
|
267
|
+
// Tooltip: Partial<TooltipParams>
|
268
268
|
// }
|
package/tsconfig.base.json
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
{
|
2
|
-
"compilerOptions": {
|
3
|
-
"outDir": "./dist/",
|
4
|
-
"sourceMap": true,
|
5
|
-
"noImplicitAny": true,
|
6
|
-
"module": "esnext",
|
7
|
-
"target": "es5",
|
8
|
-
"jsx": "react",
|
9
|
-
"allowJs": true,
|
10
|
-
"moduleResolution": "node",
|
11
|
-
"allowSyntheticDefaultImports" : true,
|
12
|
-
"esModuleInterop" : true
|
13
|
-
}
|
1
|
+
{
|
2
|
+
"compilerOptions": {
|
3
|
+
"outDir": "./dist/",
|
4
|
+
"sourceMap": true,
|
5
|
+
"noImplicitAny": true,
|
6
|
+
"module": "esnext",
|
7
|
+
"target": "es5",
|
8
|
+
"jsx": "react",
|
9
|
+
"allowJs": true,
|
10
|
+
"moduleResolution": "node",
|
11
|
+
"allowSyntheticDefaultImports" : true,
|
12
|
+
"esModuleInterop" : true
|
13
|
+
}
|
14
14
|
}
|
package/tsconfig.json
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
{
|
2
|
-
"extends": "./tsconfig.base.json"
|
1
|
+
{
|
2
|
+
"extends": "./tsconfig.base.json"
|
3
3
|
}
|
package/vite.config.js
CHANGED
@@ -1,23 +1,23 @@
|
|
1
|
-
import { defineConfig } from 'vite'
|
2
|
-
import dts from 'vite-plugin-dts'
|
3
|
-
|
4
|
-
export default defineConfig(({ command, mode }) => {
|
5
|
-
return {
|
6
|
-
plugins: [
|
7
|
-
dts({
|
8
|
-
insertTypesEntry: true
|
9
|
-
})
|
10
|
-
],
|
11
|
-
compilerOptions: {
|
12
|
-
composite: true
|
13
|
-
},
|
14
|
-
build: {
|
15
|
-
lib: {
|
16
|
-
entry: "src/index.ts",
|
17
|
-
name: 'orbcharts-presets-basic',
|
18
|
-
formats: ["es", "umd"],
|
19
|
-
fileName: format => `orbcharts-presets-basic.${format}.js`
|
20
|
-
},
|
21
|
-
}
|
22
|
-
}
|
1
|
+
import { defineConfig } from 'vite'
|
2
|
+
import dts from 'vite-plugin-dts'
|
3
|
+
|
4
|
+
export default defineConfig(({ command, mode }) => {
|
5
|
+
return {
|
6
|
+
plugins: [
|
7
|
+
dts({
|
8
|
+
insertTypesEntry: true
|
9
|
+
})
|
10
|
+
],
|
11
|
+
compilerOptions: {
|
12
|
+
composite: true
|
13
|
+
},
|
14
|
+
build: {
|
15
|
+
lib: {
|
16
|
+
entry: "src/index.ts",
|
17
|
+
name: 'orbcharts-presets-basic',
|
18
|
+
formats: ["es", "umd"],
|
19
|
+
fileName: format => `orbcharts-presets-basic.${format}.js`
|
20
|
+
},
|
21
|
+
}
|
22
|
+
}
|
23
23
|
})
|