@antv/g2plot 2.4.8 → 2.4.9

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.
Files changed (258) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +1 -1
  3. package/dist/g2plot.min.js +4 -4
  4. package/dist/g2plot.min.js.map +1 -1
  5. package/esm/core/plot.d.ts +2 -2
  6. package/esm/core/plot.js +4 -3
  7. package/esm/core/plot.js.map +1 -1
  8. package/esm/index.d.ts +2 -2
  9. package/esm/index.js +2 -2
  10. package/esm/index.js.map +1 -1
  11. package/esm/plots/area/types.d.ts +35 -10
  12. package/esm/plots/area/types.js.map +1 -1
  13. package/esm/plots/bar/types.d.ts +16 -3
  14. package/esm/plots/bar/types.js.map +1 -1
  15. package/esm/plots/bidirectional-bar/types.d.ts +21 -6
  16. package/esm/plots/bidirectional-bar/types.js.map +1 -1
  17. package/esm/plots/box/types.d.ts +20 -6
  18. package/esm/plots/box/types.js.map +1 -1
  19. package/esm/plots/bullet/types.d.ts +36 -9
  20. package/esm/plots/bullet/types.js.map +1 -1
  21. package/esm/plots/chord/types.d.ts +14 -10
  22. package/esm/plots/chord/types.js.map +1 -1
  23. package/esm/plots/circle-packing/types.d.ts +25 -8
  24. package/esm/plots/circle-packing/types.js.map +1 -1
  25. package/esm/plots/column/types.d.ts +57 -16
  26. package/esm/plots/column/types.js.map +1 -1
  27. package/esm/plots/dual-axes/types.d.ts +31 -6
  28. package/esm/plots/dual-axes/types.js.map +1 -1
  29. package/esm/plots/facet/types.d.ts +54 -34
  30. package/esm/plots/facet/types.js.map +1 -1
  31. package/esm/plots/funnel/types.d.ts +40 -11
  32. package/esm/plots/funnel/types.js.map +1 -1
  33. package/esm/plots/gauge/types.d.ts +83 -21
  34. package/esm/plots/gauge/types.js.map +1 -1
  35. package/esm/plots/heatmap/types.d.ts +47 -12
  36. package/esm/plots/heatmap/types.js.map +1 -1
  37. package/esm/plots/histogram/types.d.ts +17 -6
  38. package/esm/plots/histogram/types.js.map +1 -1
  39. package/esm/plots/line/types.d.ts +42 -12
  40. package/esm/plots/line/types.js.map +1 -1
  41. package/esm/plots/liquid/index.d.ts +1 -0
  42. package/esm/plots/liquid/index.js +1 -0
  43. package/esm/plots/liquid/index.js.map +1 -1
  44. package/esm/plots/liquid/shapes/liquid.d.ts +16 -1
  45. package/esm/plots/liquid/shapes/liquid.js +13 -8
  46. package/esm/plots/liquid/shapes/liquid.js.map +1 -1
  47. package/esm/plots/liquid/types.d.ts +56 -16
  48. package/esm/plots/liquid/types.js.map +1 -1
  49. package/esm/plots/mix/types.d.ts +31 -22
  50. package/esm/plots/mix/types.js.map +1 -1
  51. package/esm/plots/pie/types.d.ts +27 -10
  52. package/esm/plots/pie/types.js.map +1 -1
  53. package/esm/plots/progress/types.d.ts +13 -4
  54. package/esm/plots/progress/types.js.map +1 -1
  55. package/esm/plots/radar/types.d.ts +39 -12
  56. package/esm/plots/radar/types.js.map +1 -1
  57. package/esm/plots/radial-bar/types.d.ts +39 -12
  58. package/esm/plots/radial-bar/types.js.map +1 -1
  59. package/esm/plots/ring-progress/types.d.ts +18 -6
  60. package/esm/plots/ring-progress/types.js.map +1 -1
  61. package/esm/plots/rose/types.d.ts +32 -12
  62. package/esm/plots/rose/types.js.map +1 -1
  63. package/esm/plots/sankey/types.d.ts +51 -32
  64. package/esm/plots/sankey/types.js.map +1 -1
  65. package/esm/plots/scatter/types.d.ts +76 -22
  66. package/esm/plots/scatter/types.js.map +1 -1
  67. package/esm/plots/stock/types.d.ts +20 -7
  68. package/esm/plots/stock/types.js.map +1 -1
  69. package/esm/plots/sunburst/types.d.ts +40 -12
  70. package/esm/plots/sunburst/types.js.map +1 -1
  71. package/esm/plots/tiny-area/types.d.ts +16 -5
  72. package/esm/plots/tiny-area/types.js.map +1 -1
  73. package/esm/plots/tiny-column/types.d.ts +10 -3
  74. package/esm/plots/tiny-column/types.js.map +1 -1
  75. package/esm/plots/tiny-line/types.d.ts +17 -5
  76. package/esm/plots/tiny-line/types.js.map +1 -1
  77. package/esm/plots/treemap/types.d.ts +17 -6
  78. package/esm/plots/treemap/types.js.map +1 -1
  79. package/esm/plots/venn/types.d.ts +20 -6
  80. package/esm/plots/venn/types.js.map +1 -1
  81. package/esm/plots/violin/types.d.ts +52 -17
  82. package/esm/plots/violin/types.js.map +1 -1
  83. package/esm/plots/waterfall/types.d.ts +42 -10
  84. package/esm/plots/waterfall/types.js.map +1 -1
  85. package/esm/plots/word-cloud/types.d.ts +91 -44
  86. package/esm/plots/word-cloud/types.js.map +1 -1
  87. package/esm/types/button.d.ts +8 -4
  88. package/esm/types/button.js.map +1 -1
  89. package/esm/types/common.d.ts +145 -33
  90. package/esm/types/common.js.map +1 -1
  91. package/esm/types/drill-down.d.ts +28 -7
  92. package/esm/types/drill-down.js.map +1 -1
  93. package/esm/types/interaction.d.ts +26 -6
  94. package/esm/types/interaction.js.map +1 -1
  95. package/esm/types/label.d.ts +11 -3
  96. package/esm/types/label.js.map +1 -1
  97. package/esm/types/meta.d.ts +4 -7
  98. package/esm/types/meta.js.map +1 -1
  99. package/esm/types/pattern.d.ts +58 -18
  100. package/esm/types/pattern.js.map +1 -1
  101. package/esm/types/state.d.ts +11 -3
  102. package/esm/types/state.js.map +1 -1
  103. package/esm/types/statistic.d.ts +38 -6
  104. package/esm/types/statistic.js.map +1 -1
  105. package/esm/types/tooltip.d.ts +7 -2
  106. package/esm/types/tooltip.js.map +1 -1
  107. package/lib/core/plot.d.ts +2 -2
  108. package/lib/core/plot.js +4 -3
  109. package/lib/core/plot.js.map +1 -1
  110. package/lib/index.d.ts +2 -2
  111. package/lib/index.js +2 -1
  112. package/lib/index.js.map +1 -1
  113. package/lib/plots/area/types.d.ts +35 -10
  114. package/lib/plots/area/types.js.map +1 -1
  115. package/lib/plots/bar/types.d.ts +16 -3
  116. package/lib/plots/bar/types.js.map +1 -1
  117. package/lib/plots/bidirectional-bar/types.d.ts +21 -6
  118. package/lib/plots/bidirectional-bar/types.js.map +1 -1
  119. package/lib/plots/box/types.d.ts +20 -6
  120. package/lib/plots/box/types.js.map +1 -1
  121. package/lib/plots/bullet/types.d.ts +36 -9
  122. package/lib/plots/bullet/types.js.map +1 -1
  123. package/lib/plots/chord/types.d.ts +14 -10
  124. package/lib/plots/chord/types.js.map +1 -1
  125. package/lib/plots/circle-packing/types.d.ts +25 -8
  126. package/lib/plots/circle-packing/types.js.map +1 -1
  127. package/lib/plots/column/types.d.ts +57 -16
  128. package/lib/plots/column/types.js.map +1 -1
  129. package/lib/plots/dual-axes/types.d.ts +31 -6
  130. package/lib/plots/dual-axes/types.js.map +1 -1
  131. package/lib/plots/facet/types.d.ts +54 -34
  132. package/lib/plots/facet/types.js.map +1 -1
  133. package/lib/plots/funnel/types.d.ts +40 -11
  134. package/lib/plots/funnel/types.js.map +1 -1
  135. package/lib/plots/gauge/types.d.ts +83 -21
  136. package/lib/plots/gauge/types.js.map +1 -1
  137. package/lib/plots/heatmap/types.d.ts +47 -12
  138. package/lib/plots/heatmap/types.js.map +1 -1
  139. package/lib/plots/histogram/types.d.ts +17 -6
  140. package/lib/plots/histogram/types.js.map +1 -1
  141. package/lib/plots/line/types.d.ts +42 -12
  142. package/lib/plots/line/types.js.map +1 -1
  143. package/lib/plots/liquid/index.d.ts +1 -0
  144. package/lib/plots/liquid/index.js +2 -0
  145. package/lib/plots/liquid/index.js.map +1 -1
  146. package/lib/plots/liquid/shapes/liquid.d.ts +16 -1
  147. package/lib/plots/liquid/shapes/liquid.js +14 -7
  148. package/lib/plots/liquid/shapes/liquid.js.map +1 -1
  149. package/lib/plots/liquid/types.d.ts +56 -16
  150. package/lib/plots/liquid/types.js.map +1 -1
  151. package/lib/plots/mix/types.d.ts +31 -22
  152. package/lib/plots/mix/types.js.map +1 -1
  153. package/lib/plots/pie/types.d.ts +27 -10
  154. package/lib/plots/pie/types.js.map +1 -1
  155. package/lib/plots/progress/types.d.ts +13 -4
  156. package/lib/plots/progress/types.js.map +1 -1
  157. package/lib/plots/radar/types.d.ts +39 -12
  158. package/lib/plots/radar/types.js.map +1 -1
  159. package/lib/plots/radial-bar/types.d.ts +39 -12
  160. package/lib/plots/radial-bar/types.js.map +1 -1
  161. package/lib/plots/ring-progress/types.d.ts +18 -6
  162. package/lib/plots/ring-progress/types.js.map +1 -1
  163. package/lib/plots/rose/types.d.ts +32 -12
  164. package/lib/plots/rose/types.js.map +1 -1
  165. package/lib/plots/sankey/types.d.ts +51 -32
  166. package/lib/plots/sankey/types.js.map +1 -1
  167. package/lib/plots/scatter/types.d.ts +76 -22
  168. package/lib/plots/scatter/types.js.map +1 -1
  169. package/lib/plots/stock/types.d.ts +20 -7
  170. package/lib/plots/stock/types.js.map +1 -1
  171. package/lib/plots/sunburst/types.d.ts +40 -12
  172. package/lib/plots/sunburst/types.js.map +1 -1
  173. package/lib/plots/tiny-area/types.d.ts +16 -5
  174. package/lib/plots/tiny-area/types.js.map +1 -1
  175. package/lib/plots/tiny-column/types.d.ts +10 -3
  176. package/lib/plots/tiny-column/types.js.map +1 -1
  177. package/lib/plots/tiny-line/types.d.ts +17 -5
  178. package/lib/plots/tiny-line/types.js.map +1 -1
  179. package/lib/plots/treemap/types.d.ts +17 -6
  180. package/lib/plots/treemap/types.js.map +1 -1
  181. package/lib/plots/venn/types.d.ts +20 -6
  182. package/lib/plots/venn/types.js.map +1 -1
  183. package/lib/plots/violin/types.d.ts +52 -17
  184. package/lib/plots/violin/types.js.map +1 -1
  185. package/lib/plots/waterfall/types.d.ts +42 -10
  186. package/lib/plots/waterfall/types.js.map +1 -1
  187. package/lib/plots/word-cloud/types.d.ts +91 -44
  188. package/lib/plots/word-cloud/types.js.map +1 -1
  189. package/lib/types/button.d.ts +8 -4
  190. package/lib/types/button.js.map +1 -1
  191. package/lib/types/common.d.ts +145 -33
  192. package/lib/types/common.js.map +1 -1
  193. package/lib/types/drill-down.d.ts +28 -7
  194. package/lib/types/drill-down.js.map +1 -1
  195. package/lib/types/interaction.d.ts +26 -6
  196. package/lib/types/interaction.js.map +1 -1
  197. package/lib/types/label.d.ts +11 -3
  198. package/lib/types/label.js.map +1 -1
  199. package/lib/types/meta.d.ts +4 -7
  200. package/lib/types/meta.js.map +1 -1
  201. package/lib/types/pattern.d.ts +58 -18
  202. package/lib/types/pattern.js.map +1 -1
  203. package/lib/types/state.d.ts +11 -3
  204. package/lib/types/state.js.map +1 -1
  205. package/lib/types/statistic.d.ts +38 -6
  206. package/lib/types/statistic.js.map +1 -1
  207. package/lib/types/tooltip.d.ts +7 -2
  208. package/lib/types/tooltip.js.map +1 -1
  209. package/package.json +1 -1
  210. package/src/core/plot.ts +5 -4
  211. package/src/index.ts +2 -2
  212. package/src/plots/area/types.ts +35 -10
  213. package/src/plots/bar/types.ts +16 -3
  214. package/src/plots/bidirectional-bar/types.ts +21 -6
  215. package/src/plots/box/types.ts +20 -6
  216. package/src/plots/bullet/types.ts +36 -17
  217. package/src/plots/chord/types.ts +14 -11
  218. package/src/plots/circle-packing/types.ts +25 -14
  219. package/src/plots/column/types.ts +57 -20
  220. package/src/plots/dual-axes/types.ts +31 -16
  221. package/src/plots/facet/types.ts +54 -49
  222. package/src/plots/funnel/types.ts +40 -13
  223. package/src/plots/gauge/types.ts +86 -27
  224. package/src/plots/heatmap/types.ts +49 -14
  225. package/src/plots/histogram/types.ts +17 -9
  226. package/src/plots/line/types.ts +42 -14
  227. package/src/plots/liquid/index.ts +2 -0
  228. package/src/plots/liquid/shapes/liquid.ts +16 -8
  229. package/src/plots/liquid/types.ts +56 -16
  230. package/src/plots/mix/types.ts +31 -35
  231. package/src/plots/pie/types.ts +27 -10
  232. package/src/plots/progress/types.ts +13 -4
  233. package/src/plots/radar/types.ts +39 -12
  234. package/src/plots/radial-bar/types.ts +39 -12
  235. package/src/plots/ring-progress/types.ts +18 -6
  236. package/src/plots/rose/types.ts +32 -12
  237. package/src/plots/sankey/types.ts +52 -32
  238. package/src/plots/scatter/types.ts +77 -24
  239. package/src/plots/stock/types.ts +21 -8
  240. package/src/plots/sunburst/types.ts +42 -12
  241. package/src/plots/tiny-area/types.ts +16 -5
  242. package/src/plots/tiny-column/types.ts +10 -3
  243. package/src/plots/tiny-line/types.ts +17 -5
  244. package/src/plots/treemap/types.ts +17 -7
  245. package/src/plots/venn/types.ts +21 -6
  246. package/src/plots/violin/types.ts +52 -17
  247. package/src/plots/waterfall/types.ts +42 -10
  248. package/src/plots/word-cloud/types.ts +91 -44
  249. package/src/types/button.ts +8 -4
  250. package/src/types/common.ts +145 -37
  251. package/src/types/drill-down.ts +28 -7
  252. package/src/types/interaction.ts +26 -6
  253. package/src/types/label.ts +11 -3
  254. package/src/types/meta.ts +4 -7
  255. package/src/types/pattern.ts +58 -18
  256. package/src/types/state.ts +11 -3
  257. package/src/types/statistic.ts +38 -6
  258. package/src/types/tooltip.ts +7 -2
@@ -8,87 +8,96 @@ import { Annotation } from '../../types/annotation';
8
8
  import { Interaction } from '../../types/interaction';
9
9
  import { IPlotTypes } from './utils';
10
10
  /**
11
- * geometry 映射信息
11
+ * @title geometry 映射信息
12
12
  */
13
13
  export declare type IGeometry = Geometry & {
14
14
  adjust?: Types.AdjustOption;
15
15
  };
16
16
  /**
17
- * 子 view 的配置。暂时不开嵌套 view 的情况
17
+ * @title 子 view 的配置
18
+ * @description 暂时不开嵌套 view 的情况
18
19
  */
19
20
  export declare type IView = {
20
21
  /**
21
- * view 的布局范围,默认是占满全部
22
+ * @title view 的布局范围
23
+ * @default "占满全部"
22
24
  */
23
25
  readonly region?: Region;
24
26
  /**
25
- * view 中的数据
27
+ * @title view 中的数据
26
28
  */
27
29
  readonly data: Data;
28
30
  /**
29
- * view 中对应的 meta 字段配置
31
+ * @title view 中对应的 meta 字段配置
30
32
  */
31
33
  readonly meta?: Record<string, Meta>;
32
34
  /**
33
- * 坐标系的配置,每一个 view 具有相同的坐标系
35
+ * @title 坐标系的配置
36
+ * @description 每一个 view 具有相同的坐标系
34
37
  */
35
38
  readonly coordinate?: Types.CoordinateOption;
36
39
  /**
37
- * 图形 geometry 及映射配置
40
+ * @title 图形 geometry 及映射配置
38
41
  */
39
42
  readonly geometries: IGeometry[];
40
43
  /**
41
- * x,y 轴配置
44
+ * @title x,y 轴
42
45
  */
43
46
  readonly axes?: false | Record<string, Axis>;
44
47
  /**
45
- * interactions 配置
48
+ * @title interactions
46
49
  */
47
50
  readonly interactions?: Interaction[];
48
51
  /**
49
- * annotation 配置
52
+ * @title annotation
50
53
  */
51
54
  readonly annotations?: Annotation[];
52
55
  /**
53
- * animation 配置
56
+ * @title annotation
54
57
  */
55
58
  readonly animation?: Animation;
56
59
  /**
57
- * tooltip 配置
60
+ * @title tooltip
58
61
  */
59
62
  readonly tooltip?: Tooltip;
60
63
  };
61
64
  /**
62
- * 子 plot 的配置
65
+ * @title 子 plot 的配置
63
66
  */
64
67
  export declare type IPlot = IPlotTypes & {
65
68
  /**
66
- * plot view 的布局范围,默认是占满全部
69
+ * @title plot view 的布局范围
70
+ * @default "占满全部"
67
71
  */
68
72
  readonly region?: Region;
69
73
  };
70
- /** 配置类型定义 */
74
+ /**
75
+ * @title 类型定义
76
+ */
71
77
  export interface MixOptions extends Omit<Options, 'data' | 'legend' | 'xAxis' | 'yAxis' | 'legend' | 'tooltip' | 'slider' | 'scrollbar'> {
72
78
  /**
73
- * 是否同步子 view 的配置
74
- * 目前仅仅支持 true / false,后续需要增加 function 的方式进行自定义 view 之前的布局同步
79
+ * @title 是否同步子 view 的配置
80
+ * @description 目前仅仅支持 true / false,后续需要增加 function 的方式进行自定义 view 之前的布局同步
75
81
  */
76
82
  readonly syncViewPadding?: boolean;
77
83
  /**
78
- * 每一个图层的配置。
79
- * 每个图层包括有自己的:数据、图形、图形映射。
84
+ * @title 每一个图层的配置
85
+ * @description 每个图层包括有自己的:数据、图形、图形映射
80
86
  */
81
87
  readonly views?: IView[];
82
88
  /**
83
- * 支持使用已有的 plot,限定与指定 plot 类型
89
+ * @title 限定与指定 plot 类型
90
+ * @description 支持使用已有的 plot,限定与指定 plot 类型
84
91
  */
85
92
  readonly plots?: IPlot[];
86
93
  /**
87
- * tooltip 配置在 chart 层配置
94
+ * @title tooltip 配置
95
+ * @description tooltip 配置在 chart 层配置
88
96
  */
89
97
  readonly tooltip?: Tooltip;
90
98
  /**
91
- * legend 配置,统一顶层配置
99
+ * @title legend 配置
100
+ * @description 统一顶层配置
92
101
  */
93
102
  readonly legend?: false | Record<string, Legend>;
94
103
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/plots/mix/types.ts"],"names":[],"mappings":"","sourcesContent":["import { Types } from '@antv/g2';\nimport { Data, Meta, Options, Region, Tooltip } from '../../types';\nimport { Axis } from '../../types/axis';\nimport { Legend } from '../../types/legend';\nimport { Geometry } from '../../adaptor/geometries/base';\nimport { Animation } from '../../types/animation';\nimport { Annotation } from '../../types/annotation';\nimport { Interaction } from '../../types/interaction';\nimport { IPlotTypes } from './utils';\n\n/**\n * geometry 映射信息\n */\nexport type IGeometry = Geometry & {\n adjust?: Types.AdjustOption;\n};\n\n/**\n * 子 view 的配置。暂时不开嵌套 view 的情况\n */\nexport type IView = {\n /**\n * view 的布局范围,默认是占满全部\n */\n readonly region?: Region;\n\n /**\n * view 中的数据\n */\n readonly data: Data;\n\n /**\n * view 中对应的 meta 字段配置\n */\n readonly meta?: Record<string, Meta>;\n\n /**\n * 坐标系的配置,每一个 view 具有相同的坐标系\n */\n readonly coordinate?: Types.CoordinateOption;\n\n /**\n * 图形 geometry 及映射配置\n */\n readonly geometries: IGeometry[];\n\n /**\n * x,y 轴配置\n */\n readonly axes?: false | Record<string, Axis>;\n\n /**\n * interactions 配置\n */\n readonly interactions?: Interaction[];\n\n /**\n * annotation 配置\n */\n readonly annotations?: Annotation[];\n\n /**\n * animation 配置\n */\n readonly animation?: Animation;\n\n /**\n * tooltip 配置\n */\n readonly tooltip?: Tooltip;\n};\n\n/**\n * 子 plot 的配置\n */\nexport type IPlot = IPlotTypes & {\n /**\n * plot view 的布局范围,默认是占满全部\n */\n readonly region?: Region;\n};\n\n/** 配置类型定义 */\nexport interface MixOptions\n extends Omit<Options, 'data' | 'legend' | 'xAxis' | 'yAxis' | 'legend' | 'tooltip' | 'slider' | 'scrollbar'> {\n /**\n * 是否同步子 view 的配置\n * 目前仅仅支持 true / false,后续需要增加 function 的方式进行自定义 view 之前的布局同步\n */\n readonly syncViewPadding?: boolean;\n /**\n * 每一个图层的配置。\n * 每个图层包括有自己的:数据、图形、图形映射。\n */\n readonly views?: IView[];\n\n /**\n * 支持使用已有的 plot,限定与指定 plot 类型\n */\n readonly plots?: IPlot[];\n\n /**\n * tooltip 配置在 chart 层配置\n */\n readonly tooltip?: Tooltip;\n\n /**\n * legend 配置,统一顶层配置\n */\n readonly legend?: false | Record<string, Legend>;\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/plots/mix/types.ts"],"names":[],"mappings":"","sourcesContent":["import { Types } from '@antv/g2';\nimport { Data, Meta, Options, Region, Tooltip } from '../../types';\nimport { Axis } from '../../types/axis';\nimport { Legend } from '../../types/legend';\nimport { Geometry } from '../../adaptor/geometries/base';\nimport { Animation } from '../../types/animation';\nimport { Annotation } from '../../types/annotation';\nimport { Interaction } from '../../types/interaction';\nimport { IPlotTypes } from './utils';\n\n/**\n * @title geometry 映射信息\n */\nexport type IGeometry = Geometry & {\n adjust?: Types.AdjustOption;\n};\n/**\n * @title 子 view 的配置\n * @description 暂时不开嵌套 view 的情况\n */\nexport type IView = {\n /**\n * @title view 的布局范围\n * @default \"占满全部\"\n */\n readonly region?: Region;\n /**\n * @title view 中的数据\n */\n readonly data: Data;\n /**\n * @title view 中对应的 meta 字段配置\n */\n readonly meta?: Record<string, Meta>;\n /**\n * @title 坐标系的配置\n * @description 每一个 view 具有相同的坐标系\n */\n readonly coordinate?: Types.CoordinateOption;\n /**\n * @title 图形 geometry 及映射配置\n */\n readonly geometries: IGeometry[];\n /**\n * @title x,y 轴\n */\n readonly axes?: false | Record<string, Axis>;\n /**\n * @title interactions\n */\n readonly interactions?: Interaction[];\n /**\n * @title annotation\n */\n readonly annotations?: Annotation[];\n /**\n * @title annotation\n */\n readonly animation?: Animation;\n /**\n * @title tooltip\n */\n readonly tooltip?: Tooltip;\n};\n\n/**\n * @title 子 plot 的配置\n */\nexport type IPlot = IPlotTypes & {\n /**\n * @title plot view 的布局范围\n * @default \"占满全部\"\n */\n readonly region?: Region;\n};\n\n/**\n * @title 类型定义\n */\nexport interface MixOptions\n extends Omit<Options, 'data' | 'legend' | 'xAxis' | 'yAxis' | 'legend' | 'tooltip' | 'slider' | 'scrollbar'> {\n /**\n * @title 是否同步子 view 的配置\n * @description 目前仅仅支持 true / false,后续需要增加 function 的方式进行自定义 view 之前的布局同步\n */\n readonly syncViewPadding?: boolean;\n /**\n * @title 每一个图层的配置\n * @description 每个图层包括有自己的:数据、图形、图形映射\n */\n readonly views?: IView[];\n /**\n * @title 限定与指定 plot 类型\n * @description 支持使用已有的 plot,限定与指定 plot 类型\n */\n readonly plots?: IPlot[];\n /**\n * @title tooltip 配置\n * @description tooltip 配置在 chart 层配置\n */\n readonly tooltip?: Tooltip;\n /**\n * @title legend 配置\n * @description 统一顶层配置\n */\n readonly legend?: false | Record<string, Legend>;\n}\n"]}
@@ -5,25 +5,42 @@ export declare type StatisticData = {
5
5
  value: string | number | null;
6
6
  };
7
7
  export interface PieOptions extends Options {
8
- /** 角度映射字段 */
8
+ /**
9
+ * @title 角度映射字段
10
+ */
9
11
  readonly angleField: string;
10
- /** 颜色映射字段 */
12
+ /**
13
+ * @title 颜色映射字段
14
+ */
11
15
  readonly colorField: string;
12
- /** 饼图半径 */
16
+ /**
17
+ * @title 饼图半径
18
+ */
13
19
  readonly radius?: number;
14
- /** 饼图内半径 */
20
+ /**
21
+ * @title 饼图内半径
22
+ */
15
23
  readonly innerRadius?: number;
16
- /** 饼图标签,type: 'inner' | 'outer' | 'spider' */
24
+ /**
25
+ * @title 饼图标签
26
+ * @description type: 'inner' | 'outer' | 'spider'
27
+ */
17
28
  readonly label?: Label;
18
- /** 饼图图形样式 */
29
+ /**
30
+ * @title 饼图图形样式
31
+ */
19
32
  readonly pieStyle?: StyleAttr;
20
- /** 圆环的开始角度 */
33
+ /**
34
+ * @title 圆环的开始角度
35
+ */
21
36
  readonly startAngle?: number;
22
- /** 圆环的结束角度 */
37
+ /**
38
+ * @title 圆环的结束角度
39
+ */
23
40
  readonly endAngle?: number;
24
41
  /**
25
- * 指标卡组件: 显示在环图中心,可以代替tooltip,显示环图数据的总计值和各项数据
26
- * 启用 statistic 组件的同时将自动关闭tooltip
42
+ * @title 指标卡组件
43
+ * @description 显示在环图中心,可以代替tooltip,显示环图数据的总计值和各项数据,启用 statistic 组件的同时将自动关闭tooltip
27
44
  */
28
45
  readonly statistic?: Statistic;
29
46
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/plots/pie/types.ts"],"names":[],"mappings":"","sourcesContent":["import { Options, Statistic, StyleAttr } from '../../types';\nimport { Label } from '../../types/label';\n\nexport type StatisticData = {\n title: string;\n value: string | number | null;\n};\n\nexport interface PieOptions extends Options {\n /** 角度映射字段 */\n readonly angleField: string;\n /** 颜色映射字段 */\n readonly colorField: string;\n /** 饼图半径 */\n readonly radius?: number;\n /** 饼图内半径 */\n readonly innerRadius?: number;\n /** 饼图标签,type: 'inner' | 'outer' | 'spider' */\n readonly label?: Label;\n /** 饼图图形样式 */\n readonly pieStyle?: StyleAttr;\n // 设置扇形图\n /** 圆环的开始角度 */\n readonly startAngle?: number;\n /** 圆环的结束角度 */\n readonly endAngle?: number;\n /**\n * 指标卡组件: 显示在环图中心,可以代替tooltip,显示环图数据的总计值和各项数据\n * 启用 statistic 组件的同时将自动关闭tooltip\n */\n readonly statistic?: Statistic;\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/plots/pie/types.ts"],"names":[],"mappings":"","sourcesContent":["import { Options, Statistic, StyleAttr } from '../../types';\nimport { Label } from '../../types/label';\n\nexport type StatisticData = {\n title: string;\n value: string | number | null;\n};\n\nexport interface PieOptions extends Options {\n /**\n * @title 角度映射字段\n */\n readonly angleField: string;\n /**\n * @title 颜色映射字段\n */\n readonly colorField: string;\n /**\n * @title 饼图半径\n */\n readonly radius?: number;\n /**\n * @title 饼图内半径\n */\n readonly innerRadius?: number;\n /**\n * @title 饼图标签\n * @description type: 'inner' | 'outer' | 'spider'\n */\n readonly label?: Label;\n /**\n * @title 饼图图形样式\n */\n readonly pieStyle?: StyleAttr;\n // 设置扇形图\n /**\n * @title 圆环的开始角度\n */\n readonly startAngle?: number;\n /**\n * @title 圆环的结束角度\n */\n readonly endAngle?: number;\n /**\n * @title 指标卡组件\n * @description 显示在环图中心,可以代替tooltip,显示环图数据的总计值和各项数据,启用 statistic 组件的同时将自动关闭tooltip\n */\n readonly statistic?: Statistic;\n}\n"]}
@@ -1,12 +1,21 @@
1
1
  import { Options, StyleAttr, ColorAttr } from '../../types';
2
2
  /** mini 图类型定义需要 omit 很多的 G2 Options 配置 */
3
3
  export interface ProgressOptions extends Omit<Options, 'data' | 'color'> {
4
- /** 进度百分比 */
4
+ /**
5
+ * @title 进度百分比
6
+ */
5
7
  readonly percent: number;
6
- /** 条图宽度占比 [0-1] */
8
+ /**
9
+ * @title 条图宽度占比
10
+ * @description 范围[0-1]
11
+ */
7
12
  readonly barWidthRatio?: number;
8
- /** 进度条颜色 */
13
+ /**
14
+ * @title 进度条颜色
15
+ */
9
16
  readonly color?: ColorAttr;
10
- /** 进度条样式 */
17
+ /**
18
+ * @title 进度条样式
19
+ */
11
20
  readonly progressStyle?: StyleAttr;
12
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/plots/progress/types.ts"],"names":[],"mappings":"","sourcesContent":["import { Options, StyleAttr, ColorAttr } from '../../types';\n\n/** mini 图类型定义需要 omit 很多的 G2 Options 配置 */\nexport interface ProgressOptions extends Omit<Options, 'data' | 'color'> {\n /** 进度百分比 */\n readonly percent: number;\n /** 条图宽度占比 [0-1] */\n readonly barWidthRatio?: number;\n /** 进度条颜色 */\n readonly color?: ColorAttr;\n /** 进度条样式 */\n readonly progressStyle?: StyleAttr;\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/plots/progress/types.ts"],"names":[],"mappings":"","sourcesContent":["import { Options, StyleAttr, ColorAttr } from '../../types';\n\n/** mini 图类型定义需要 omit 很多的 G2 Options 配置 */\nexport interface ProgressOptions extends Omit<Options, 'data' | 'color'> {\n /**\n * @title 进度百分比\n */\n readonly percent: number;\n /**\n * @title 条图宽度占比\n * @description 范围[0-1]\n */\n readonly barWidthRatio?: number;\n /**\n * @title 进度条颜色\n */\n readonly color?: ColorAttr;\n /**\n * @title 进度条样式\n */\n readonly progressStyle?: StyleAttr;\n}\n"]}
@@ -1,28 +1,55 @@
1
1
  import { PointGeometryOptions, AreaGeometryOptions } from '../../adaptor/geometries';
2
2
  import { Options, ShapeStyle } from '../../types';
3
3
  export interface RadarOptions extends Options {
4
- /** x 字段 */
4
+ /**
5
+ * @title x轴字段
6
+ */
5
7
  readonly xField: string;
6
- /** y 字段,映射雷达图的射线长度 */
8
+ /**
9
+ * @title y轴字段
10
+ * @description 映射雷达图的射线长度
11
+ */
7
12
  readonly yField: string;
8
- /** 分组字段 */
13
+ /**
14
+ * @title 分组字段
15
+ */
9
16
  readonly seriesField?: string;
10
- /** 是否平滑 */
17
+ /**
18
+ * @title 是否平滑
19
+ * @default false
20
+ */
11
21
  readonly smooth?: boolean;
12
- /** 折线图形样式 */
22
+ /**
23
+ * @title 折线图形样式
24
+ */
13
25
  readonly lineStyle?: ShapeStyle | ((x: any, y: any, series?: any) => ShapeStyle);
14
- /** 数据点图形样式 */
26
+ /**
27
+ * @title 数据点图形样式
28
+ */
15
29
  readonly point?: PointGeometryOptions['point'] & Pick<PointGeometryOptions, 'state'>;
16
- /** area 图形样式, 均提供回调的方式, 不开放 field 映射配置 */
30
+ /**
31
+ * @title area 图形样式
32
+ * @description 均提供回调的方式, 不开放 field 映射配置
33
+ */
17
34
  readonly area?: AreaGeometryOptions['area'];
18
- /** 角度轴配置 */
35
+ /**
36
+ * @title 角度轴配置
37
+ */
19
38
  readonly xAxis?: any;
20
- /** 径向轴配置 */
39
+ /**
40
+ * @title 径向轴配置
41
+ */
21
42
  readonly yAxis?: any;
22
- /** 雷达图半径 */
43
+ /**
44
+ * @title 雷达图半径
45
+ */
23
46
  readonly radius?: number;
24
- /** 雷达图开始角度 */
47
+ /**
48
+ * @title 雷达图开始角度
49
+ */
25
50
  readonly startAngle?: number;
26
- /** 雷达图结束角度 */
51
+ /**
52
+ * @title 雷达图结束角度
53
+ */
27
54
  readonly endAngle?: number;
28
55
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/plots/radar/types.ts"],"names":[],"mappings":"","sourcesContent":["import { PointGeometryOptions, AreaGeometryOptions } from '../../adaptor/geometries';\nimport { Options, ShapeStyle } from '../../types';\n\nexport interface RadarOptions extends Options {\n /** x 字段 */\n readonly xField: string;\n /** y 字段,映射雷达图的射线长度 */\n readonly yField: string;\n /** 分组字段 */\n readonly seriesField?: string;\n /** 是否平滑 */\n readonly smooth?: boolean;\n /** 折线图形样式 */\n readonly lineStyle?: ShapeStyle | ((x: any, y: any, series?: any) => ShapeStyle);\n /** 数据点图形样式 */\n readonly point?: PointGeometryOptions['point'] & Pick<PointGeometryOptions, 'state'>;\n /** area 图形样式, 均提供回调的方式, 不开放 field 映射配置 */\n readonly area?: AreaGeometryOptions['area'];\n /** 角度轴配置 */\n readonly xAxis?: any;\n /** 径向轴配置 */\n readonly yAxis?: any;\n /** 雷达图半径 */\n readonly radius?: number;\n /** 雷达图开始角度 */\n readonly startAngle?: number;\n /** 雷达图结束角度 */\n readonly endAngle?: number;\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/plots/radar/types.ts"],"names":[],"mappings":"","sourcesContent":["import { PointGeometryOptions, AreaGeometryOptions } from '../../adaptor/geometries';\nimport { Options, ShapeStyle } from '../../types';\n\nexport interface RadarOptions extends Options {\n /**\n * @title x轴字段\n */\n readonly xField: string;\n /**\n * @title y轴字段\n * @description 映射雷达图的射线长度\n */\n readonly yField: string;\n /**\n * @title 分组字段\n */\n readonly seriesField?: string;\n /**\n * @title 是否平滑\n * @default false\n */\n readonly smooth?: boolean;\n /**\n * @title 折线图形样式\n */\n readonly lineStyle?: ShapeStyle | ((x: any, y: any, series?: any) => ShapeStyle);\n /**\n * @title 数据点图形样式\n */\n readonly point?: PointGeometryOptions['point'] & Pick<PointGeometryOptions, 'state'>;\n /**\n * @title area 图形样式\n * @description 均提供回调的方式, 不开放 field 映射配置\n */\n readonly area?: AreaGeometryOptions['area'];\n /**\n * @title 角度轴配置\n */\n readonly xAxis?: any;\n /**\n * @title 径向轴配置\n */\n readonly yAxis?: any;\n /**\n * @title 雷达图半径\n */\n readonly radius?: number;\n /**\n * @title 雷达图开始角度\n */\n readonly startAngle?: number;\n /**\n * @title 雷达图结束角度\n */\n readonly endAngle?: number;\n}\n"]}
@@ -3,28 +3,55 @@ import { Options } from '../../types';
3
3
  import { BarOptions } from '../bar';
4
4
  /** 配置类型定义 */
5
5
  export interface RadialBarOptions extends Options, Pick<BarOptions, 'barBackground' | 'minBarWidth' | 'maxBarWidth'> {
6
- /** x 轴字段 */
6
+ /**
7
+ * @title x轴字段
8
+ */
7
9
  readonly xField?: string;
8
- /** y 轴字段 */
10
+ /**
11
+ * @title y轴字段
12
+ */
9
13
  readonly yField?: string;
10
- /** 样式 */
14
+ /**
15
+ * @title 样式
16
+ */
11
17
  readonly barStyle?: ShapeAttrs;
12
- /** 最大旋转角度 0~360 */
18
+ /**
19
+ * @title 最大旋转角度
20
+ * @description 范围0-360
21
+ */
13
22
  readonly maxAngle?: number;
14
- /** 圆半径 */
23
+ /**
24
+ * @title 圆半径
25
+ */
15
26
  readonly radius?: number;
16
- /** 圆内半径 */
27
+ /**
28
+ * @title 圆内半径
29
+ */
17
30
  readonly innerRadius?: number;
18
- /** 圆环的开始角度 */
31
+ /**
32
+ * @title 圆环的开始角度
33
+ */
19
34
  readonly startAngle?: number;
20
- /** 圆环的结束角度 */
35
+ /**
36
+ * @title 圆环的结束角度
37
+ */
21
38
  readonly endAngle?: number;
22
- /** 颜色字段 */
39
+ /**
40
+ * @title 颜色字段
41
+ */
23
42
  readonly colorField?: string;
24
- /** 类型 */
43
+ /**
44
+ * @title 类型
45
+ */
25
46
  readonly type?: string;
26
- /** 叠加 */
47
+ /**
48
+ * @title 是否叠加
49
+ * @default false
50
+ */
27
51
  readonly isStack?: boolean;
28
- /** 分组 */
52
+ /**
53
+ * @title 是否分组
54
+ * @default false
55
+ */
29
56
  readonly isGroup?: boolean;
30
57
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/plots/radial-bar/types.ts"],"names":[],"mappings":"","sourcesContent":["import { ShapeAttrs } from '@antv/g-base';\nimport { Options } from '../../types';\nimport { BarOptions } from '../bar';\n\n/** 配置类型定义 */\nexport interface RadialBarOptions extends Options, Pick<BarOptions, 'barBackground' | 'minBarWidth' | 'maxBarWidth'> {\n /** x 轴字段 */\n readonly xField?: string;\n /** y 轴字段 */\n readonly yField?: string;\n /** 样式 */\n readonly barStyle?: ShapeAttrs;\n /** 最大旋转角度 0~360 */\n readonly maxAngle?: number;\n /** 圆半径 */\n readonly radius?: number;\n /** 圆内半径 */\n readonly innerRadius?: number;\n /** 圆环的开始角度 */\n readonly startAngle?: number;\n /** 圆环的结束角度 */\n readonly endAngle?: number;\n /** 颜色字段 */\n readonly colorField?: string;\n /** 类型 */\n readonly type?: string;\n /** 叠加 */\n readonly isStack?: boolean;\n /** 分组 */\n readonly isGroup?: boolean;\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/plots/radial-bar/types.ts"],"names":[],"mappings":"","sourcesContent":["import { ShapeAttrs } from '@antv/g-base';\nimport { Options } from '../../types';\nimport { BarOptions } from '../bar';\n\n/** 配置类型定义 */\nexport interface RadialBarOptions extends Options, Pick<BarOptions, 'barBackground' | 'minBarWidth' | 'maxBarWidth'> {\n /**\n * @title x轴字段\n */\n readonly xField?: string;\n /**\n * @title y轴字段\n */\n readonly yField?: string;\n /**\n * @title 样式\n */\n readonly barStyle?: ShapeAttrs;\n /**\n * @title 最大旋转角度\n * @description 范围0-360\n */\n readonly maxAngle?: number;\n /**\n * @title 圆半径\n */\n readonly radius?: number;\n /**\n * @title 圆内半径\n */\n readonly innerRadius?: number;\n /**\n * @title 圆环的开始角度\n */\n readonly startAngle?: number;\n /**\n * @title 圆环的结束角度\n */\n readonly endAngle?: number;\n /**\n * @title 颜色字段\n */\n readonly colorField?: string;\n /**\n * @title 类型\n */\n readonly type?: string;\n /**\n * @title 是否叠加\n * @default false\n */\n readonly isStack?: boolean;\n /**\n * @title 是否分组\n * @default false\n */\n readonly isGroup?: boolean;\n}\n"]}
@@ -1,16 +1,28 @@
1
1
  import { Options, StyleAttr, ColorAttr, Statistic } from '../../types';
2
2
  /** mini 图类型定义需要 omit 很多的 G2 Options 配置 */
3
3
  export interface RingProgressOptions extends Omit<Options, 'data' | 'tooltip' | 'legend' | 'label' | 'color'> {
4
- /** 进度百分比 */
4
+ /**
5
+ * @title 进度百分比
6
+ */
5
7
  readonly percent: number;
6
- /** 外环的半径 */
8
+ /**
9
+ * @title 外环的半径
10
+ */
7
11
  readonly radius?: number;
8
- /** 内环的半径 */
12
+ /**
13
+ * @title 内环的半径
14
+ */
9
15
  readonly innerRadius?: number;
10
- /** 进度条颜色 */
16
+ /**
17
+ * @title 进度条颜色
18
+ */
11
19
  readonly color?: ColorAttr;
12
- /** 进度条样式 */
20
+ /**
21
+ * @title 进度条样式
22
+ */
13
23
  readonly progressStyle?: StyleAttr;
14
- /** 统计内容组件 */
24
+ /**
25
+ * @title 统计内容组件
26
+ */
15
27
  readonly statistic?: Statistic;
16
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/plots/ring-progress/types.ts"],"names":[],"mappings":"","sourcesContent":["import { Options, StyleAttr, ColorAttr, Statistic } from '../../types';\n\n/** mini 图类型定义需要 omit 很多的 G2 Options 配置 */\nexport interface RingProgressOptions extends Omit<Options, 'data' | 'tooltip' | 'legend' | 'label' | 'color'> {\n /** 进度百分比 */\n readonly percent: number;\n /** 外环的半径 */\n readonly radius?: number;\n /** 内环的半径 */\n readonly innerRadius?: number;\n /** 进度条颜色 */\n readonly color?: ColorAttr;\n /** 进度条样式 */\n readonly progressStyle?: StyleAttr;\n /** 统计内容组件 */\n readonly statistic?: Statistic;\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/plots/ring-progress/types.ts"],"names":[],"mappings":"","sourcesContent":["import { Options, StyleAttr, ColorAttr, Statistic } from '../../types';\n\n/** mini 图类型定义需要 omit 很多的 G2 Options 配置 */\nexport interface RingProgressOptions extends Omit<Options, 'data' | 'tooltip' | 'legend' | 'label' | 'color'> {\n /**\n * @title 进度百分比\n */\n readonly percent: number;\n /**\n * @title 外环的半径\n */\n readonly radius?: number;\n /**\n * @title 内环的半径\n */\n readonly innerRadius?: number;\n /**\n * @title 进度条颜色\n */\n readonly color?: ColorAttr;\n /**\n * @title 进度条样式\n */\n readonly progressStyle?: StyleAttr;\n /**\n * @title 统计内容组件\n */\n readonly statistic?: Statistic;\n}\n"]}
@@ -1,29 +1,49 @@
1
1
  import { Options, StyleAttr } from '../../types';
2
2
  export interface RoseOptions extends Options {
3
- /** 扇形切片分类所对应的数据字段名(每个扇形的弧度相等) */
3
+ /**
4
+ * @title 扇形切片分类所对应的数据字段名
5
+ * @description 每个扇形的弧度相等
6
+ */
4
7
  readonly xField: string;
5
- /** 扇形切片半径长度所对应的数据字段名 */
8
+ /**
9
+ * @title 扇形切片半径长度所对应的数据字段名
10
+ */
6
11
  readonly yField: string;
7
- /** 拆分字段 */
12
+ /**
13
+ * @title 拆分字段
14
+ */
8
15
  readonly seriesField?: string;
9
- /** 是否分组玫瑰图 */
16
+ /**
17
+ * @title 是否分组玫瑰图
18
+ * @default false
19
+ */
10
20
  readonly isGroup?: boolean;
11
- /** 是否堆积玫瑰图 */
21
+ /**
22
+ * @title 是否堆积玫瑰图
23
+ * @default false
24
+ */
12
25
  readonly isStack?: boolean;
13
26
  /**
14
- * 玫瑰图的半径,原点为画布中心。配置值域为 (0,1]
15
- * 1 代表玫瑰图大小为 1,即撑满绘图区域
27
+ * @title 玫瑰图的半径
28
+ * @description 原点为画布中心。配置值域为 (0,1] 1 代表玫瑰图大小为 1,即撑满绘图区域
16
29
  */
17
30
  readonly radius?: number;
18
- /** 内部空心圆的半径,规则与 radius 一致 */
31
+ /**
32
+ * @title 内部空心圆的半径
33
+ * @description 规则与 radius 一致
34
+ */
19
35
  readonly innerRadius?: number;
20
- /** 玫瑰图开始角度 */
36
+ /**
37
+ * @title 玫瑰图开始角度
38
+ */
21
39
  readonly startAngle?: number;
22
- /** 玫瑰图结束角度 */
40
+ /**
41
+ * @title 玫瑰图结束角度
42
+ */
23
43
  readonly endAngle?: number;
24
44
  /**
25
- * 设置扇形样式。sectorStyle 中的fill会覆盖 color 的配置
26
- * sectorStyle 可以直接指定,也可以通过 callback 的方式,根据数据为每个扇形切片指定单独的样式
45
+ * @title 设置扇形样式
46
+ * @description sectorStyle 中的fill会覆盖 color 的配置,sectorStyle 可以直接指定,也可以通过 callback 的方式,根据数据为每个扇形切片指定单独的样式
27
47
  */
28
48
  readonly sectorStyle?: StyleAttr;
29
49
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/plots/rose/types.ts"],"names":[],"mappings":"","sourcesContent":["import { Options, StyleAttr } from '../../types';\n\nexport interface RoseOptions extends Options {\n /** 扇形切片分类所对应的数据字段名(每个扇形的弧度相等) */\n readonly xField: string;\n /** 扇形切片半径长度所对应的数据字段名 */\n readonly yField: string;\n /** 拆分字段 */\n readonly seriesField?: string;\n /** 是否分组玫瑰图 */\n readonly isGroup?: boolean;\n /** 是否堆积玫瑰图 */\n readonly isStack?: boolean;\n /**\n * 玫瑰图的半径,原点为画布中心。配置值域为 (0,1]\n * 1 代表玫瑰图大小为 1,即撑满绘图区域\n */\n readonly radius?: number;\n /** 内部空心圆的半径,规则与 radius 一致 */\n readonly innerRadius?: number;\n /** 玫瑰图开始角度 */\n readonly startAngle?: number;\n /** 玫瑰图结束角度 */\n readonly endAngle?: number;\n /**\n * 设置扇形样式。sectorStyle 中的fill会覆盖 color 的配置\n * sectorStyle 可以直接指定,也可以通过 callback 的方式,根据数据为每个扇形切片指定单独的样式\n */\n readonly sectorStyle?: StyleAttr;\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/plots/rose/types.ts"],"names":[],"mappings":"","sourcesContent":["import { Options, StyleAttr } from '../../types';\n\nexport interface RoseOptions extends Options {\n /**\n * @title 扇形切片分类所对应的数据字段名\n * @description 每个扇形的弧度相等\n */\n readonly xField: string;\n /**\n * @title 扇形切片半径长度所对应的数据字段名\n */\n readonly yField: string;\n /**\n * @title 拆分字段\n */\n readonly seriesField?: string;\n /**\n * @title 是否分组玫瑰图\n * @default false\n */\n readonly isGroup?: boolean;\n /**\n * @title 是否堆积玫瑰图\n * @default false\n */\n readonly isStack?: boolean;\n /**\n * @title 玫瑰图的半径\n * @description 原点为画布中心。配置值域为 (0,1] 1 代表玫瑰图大小为 1,即撑满绘图区域\n */\n readonly radius?: number;\n /**\n * @title 内部空心圆的半径\n * @description 规则与 radius 一致\n */\n readonly innerRadius?: number;\n /**\n * @title 玫瑰图开始角度\n */\n readonly startAngle?: number;\n /**\n * @title 玫瑰图结束角度\n */\n readonly endAngle?: number;\n /**\n * @title 设置扇形样式\n * @description sectorStyle 中的fill会覆盖 color 的配置,sectorStyle 可以直接指定,也可以通过 callback 的方式,根据数据为每个扇形切片指定单独的样式\n */\n readonly sectorStyle?: StyleAttr;\n}\n"]}