@@ -8,107 +8,138 @@ export { G2 };
8
8
export { Plot } from './core/plot' ;
9
9
10
10
/** Adaptor 及其参数的类型定义 */
11
- export { Adaptor , Params } from './core/adaptor' ;
11
+ export type { Adaptor , Params } from './core/adaptor' ;
12
12
13
13
// 类型定义导出
14
14
export * from './types' ;
15
15
16
16
// 折线图及类型定义 | author by [hustcc](https://github.com/hustcc)
17
- export { Line , LineOptions } from './plots/line' ;
17
+ export { Line } from './plots/line' ;
18
+ export type { LineOptions } from './plots/line' ;
18
19
19
20
// 面积图及类型定义 | author by [hustcc](https://github.com/hustcc)
20
- export { Area , AreaOptions } from './plots/area' ;
21
+ export { Area } from './plots/area' ;
22
+ export type { AreaOptions } from './plots/area' ;
21
23
22
24
// 柱形图及类型定义 | author by [zqlu](https://github.com/zqlu)
23
- export { Column , ColumnOptions } from './plots/column' ;
25
+ export { Column } from './plots/column' ;
26
+ export type { ColumnOptions } from './plots/column' ;
24
27
25
28
// 条形图及类型定义 | author by [BBSQQ](https://github.com/BBSQQ)
26
- export { Bar , BarOptions } from './plots/bar' ;
29
+ export { Bar } from './plots/bar' ;
30
+ export type { BarOptions } from './plots/bar' ;
27
31
28
32
// 饼图及类型定义 | author by [visiky](https://github.com/visiky)
29
- export { Pie , PieOptions } from './plots/pie' ;
33
+ export { Pie } from './plots/pie' ;
34
+ export type { PieOptions } from './plots/pie' ;
30
35
31
36
// 玫瑰图及类型定义 | author by [zhangzhonghe](https://github.com/zhangzhonghe)
32
- export { Rose , RoseOptions } from './plots/rose' ;
37
+ export { Rose } from './plots/rose' ;
38
+ export type { RoseOptions } from './plots/rose' ;
33
39
34
40
// 词云图及类型定义 | author by [zhangzhonghe](https://github.com/zhangzhonghe)
35
- export { WordCloud , WordCloudOptions } from './plots/word-cloud' ;
41
+ export { WordCloud } from './plots/word-cloud' ;
42
+ export type { WordCloudOptions } from './plots/word-cloud' ;
36
43
37
44
// 散点图及类型定义 | author by [lxfu1](https://github.com/lxfu1)
38
- export { Scatter , ScatterOptions } from './plots/scatter' ;
45
+ export { Scatter } from './plots/scatter' ;
46
+ export type { ScatterOptions } from './plots/scatter' ;
39
47
40
48
// 雷达图及类型定义 | author by [visiky](https://github.com/visiky)
41
- export { Radar , RadarOptions } from './plots/radar' ;
49
+ export { Radar } from './plots/radar' ;
50
+ export type { RadarOptions } from './plots/radar' ;
42
51
43
52
// 混合图形 | author by [liuzhenying](https://github.com/liuzhenying)
44
- export { DualAxes , DualAxesOptions } from './plots/dual-axes' ;
53
+ export { DualAxes } from './plots/dual-axes' ;
54
+ export type { DualAxesOptions } from './plots/dual-axes' ;
45
55
46
56
// 迷你折线图及类型定义 | author by [connono](https://github.com/connono)
47
- export { TinyLine , TinyLineOptions } from './plots/tiny-line' ;
57
+ export { TinyLine } from './plots/tiny-line' ;
58
+ export type { TinyLineOptions } from './plots/tiny-line' ;
48
59
49
60
// 迷你柱形图及类型定义 | author by [connono](https://github.com/connono)
50
- export { TinyColumn , TinyColumnOptions } from './plots/tiny-column' ;
61
+ export { TinyColumn } from './plots/tiny-column' ;
62
+ export type { TinyColumnOptions } from './plots/tiny-column' ;
51
63
52
64
// 迷你面积图及类型定义 | author by [connono](https://github.com/connono)
53
- export { TinyArea , TinyAreaOptions } from './plots/tiny-area' ;
65
+ export { TinyArea } from './plots/tiny-area' ;
66
+ export type { TinyAreaOptions } from './plots/tiny-area' ;
54
67
55
68
// 直方图及类型定义 | author by [arcsin1](https://github.com/arcsin1)
56
- export { Histogram , HistogramOptions } from './plots/histogram' ;
69
+ export { Histogram } from './plots/histogram' ;
70
+ export type { HistogramOptions } from './plots/histogram' ;
57
71
58
72
// 进度图及类型定义 | author by [connono](https://github.com/connono)
59
- export { Progress , ProgressOptions } from './plots/progress' ;
73
+ export { Progress } from './plots/progress' ;
74
+ export type { ProgressOptions } from './plots/progress' ;
60
75
61
76
// 环形进度图及类型定义 | author by [connono](https://github.com/connono)
62
- export { RingProgress , RingProgressOptions } from './plots/ring-progress' ;
77
+ export { RingProgress } from './plots/ring-progress' ;
78
+ export type { RingProgressOptions } from './plots/ring-progress' ;
63
79
64
80
// 热力图及类型定义 | author by [jiazhewang](https://github.com/jiazhewang)
65
- export { Heatmap , HeatmapOptions } from './plots/heatmap' ;
81
+ export { Heatmap } from './plots/heatmap' ;
82
+ export type { HeatmapOptions } from './plots/heatmap' ;
66
83
67
84
// 箱线图及类型定义 | author by [BBSQQ](https://github.com/BBSQQ)
68
- export { Box , BoxOptions } from './plots/box' ;
85
+ export { Box } from './plots/box' ;
86
+ export type { BoxOptions } from './plots/box' ;
69
87
70
88
// K线图及类型定义 | author by [jhwong](https://github.com/jinhuiWong)
71
- export { Stock , StockOptions } from './plots/stock' ;
89
+ export { Stock } from './plots/stock' ;
90
+ export type { StockOptions } from './plots/stock' ;
72
91
73
92
// 漏斗图及类型定义
74
- export { Funnel , FunnelOptions , FUNNEL_CONVERSATION_FIELD } from './plots/funnel' ;
93
+ export { Funnel , FUNNEL_CONVERSATION_FIELD } from './plots/funnel' ;
94
+ export type { FunnelOptions } from './plots/funnel' ;
75
95
76
96
// 水波图及类型定义 | author by [CarisL](https://github.com/CarisL), [hustcc](https://github.com/hustcc)
77
- export { Liquid , LiquidOptions } from './plots/liquid' ;
97
+ export { Liquid } from './plots/liquid' ;
98
+ export type { LiquidOptions } from './plots/liquid' ;
78
99
79
100
// 子弹图及类型定义 | author by [arcsin1](https://github.com/arcsin1)
80
- export { Bullet , BulletOptions } from './plots/bullet' ;
101
+ export { Bullet } from './plots/bullet' ;
102
+ export type { BulletOptions } from './plots/bullet' ;
81
103
82
104
// 旭日图及类型定义 | author by [lxfu1](https://github.com/lxfu1)
83
- export { Sunburst , SunburstOptions } from './plots/sunburst' ;
105
+ export { Sunburst } from './plots/sunburst' ;
106
+ export type { SunburstOptions } from './plots/sunburst' ;
84
107
85
108
// 仪表盘及类型定义 | author by [hustcc](https://github.com/hustcc)
86
- export { Gauge , GaugeOptions } from './plots/gauge' ;
109
+ export { Gauge } from './plots/gauge' ;
110
+ export type { GaugeOptions } from './plots/gauge' ;
87
111
88
112
// 瀑布图 | author by [visiky](https://github.com/visiky)
89
- export { Waterfall , WaterfallOptions } from './plots/waterfall' ;
113
+ export { Waterfall } from './plots/waterfall' ;
114
+ export type { WaterfallOptions } from './plots/waterfall' ;
90
115
91
116
// 玉珏图 | author by [yujs](https://github.com/yujs) | updated by [visiky](https://github.com/visiky)
92
- export { RadialBar , RadialBarOptions } from './plots/radial-bar' ;
117
+ export { RadialBar } from './plots/radial-bar' ;
118
+ export type { RadialBarOptions } from './plots/radial-bar' ;
93
119
94
120
// 对称条形图及类型定义 | author by [arcsin1](https://github.com/arcsin1)
95
- export { BidirectionalBar , BidirectionalBarOptions } from './plots/bidirectional-bar' ;
121
+ export { BidirectionalBar } from './plots/bidirectional-bar' ;
122
+ export type { BidirectionalBarOptions } from './plots/bidirectional-bar' ;
96
123
97
124
// 矩形树图
98
- export { Treemap , TreemapOptions } from './plots/treemap' ;
125
+ export { Treemap } from './plots/treemap' ;
126
+ export type { TreemapOptions } from './plots/treemap' ;
99
127
100
128
// 桑基图及类型定义 | author by [hustcc](https://github.com/hustcc)
101
- export { Sankey , SankeyOptions } from './plots/sankey' ;
129
+ export { Sankey } from './plots/sankey' ;
130
+ export type { SankeyOptions } from './plots/sankey' ;
102
131
103
132
// 弦图及类型定义 | author by [MrSmallLiu](https://github.com/MrSmallLiu)
104
- export { Chord , ChordOptions } from './plots/chord' ;
133
+ export { Chord } from './plots/chord' ;
134
+ export type { ChordOptions } from './plots/chord' ;
105
135
106
136
// 以下开放自定义图表开发的能力(目前仅仅是孵化中)
107
137
/** 所有开放图表都使用 G2Plot.P 作为入口开发,理论上官方的所有图表都可以走 G2Plot.P 的入口(暂时不处理) */
108
138
export { P } from './plugin' ;
109
139
110
140
/** 开放多图层图表 (multi-view) */
111
- export { MultiView , MultiViewOptions } from './plots/multi-view' ;
141
+ export { MultiView } from './plots/multi-view' ;
142
+ export type { MultiViewOptions } from './plots/multi-view' ;
112
143
113
144
/** 开发 adaptor 可能会用到的方法或一些工具方法,不强制使用 */
114
145
export { flow , measureTextWidth } from './utils' ;
0 commit comments