@antv/g2plot 2.4.8 → 2.4.11

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 (273) hide show
  1. package/CHANGELOG.md +32 -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/geometries/compare.js +2 -1
  32. package/esm/plots/funnel/geometries/compare.js.map +1 -1
  33. package/esm/plots/funnel/geometries/facet.js +2 -1
  34. package/esm/plots/funnel/geometries/facet.js.map +1 -1
  35. package/esm/plots/funnel/types.d.ts +45 -11
  36. package/esm/plots/funnel/types.js.map +1 -1
  37. package/esm/plots/gauge/adaptor.js +31 -3
  38. package/esm/plots/gauge/adaptor.js.map +1 -1
  39. package/esm/plots/gauge/types.d.ts +84 -22
  40. package/esm/plots/gauge/types.js.map +1 -1
  41. package/esm/plots/heatmap/types.d.ts +47 -12
  42. package/esm/plots/heatmap/types.js.map +1 -1
  43. package/esm/plots/histogram/types.d.ts +17 -6
  44. package/esm/plots/histogram/types.js.map +1 -1
  45. package/esm/plots/line/types.d.ts +42 -12
  46. package/esm/plots/line/types.js.map +1 -1
  47. package/esm/plots/liquid/index.d.ts +1 -0
  48. package/esm/plots/liquid/index.js +1 -0
  49. package/esm/plots/liquid/index.js.map +1 -1
  50. package/esm/plots/liquid/shapes/liquid.d.ts +16 -1
  51. package/esm/plots/liquid/shapes/liquid.js +13 -8
  52. package/esm/plots/liquid/shapes/liquid.js.map +1 -1
  53. package/esm/plots/liquid/types.d.ts +56 -16
  54. package/esm/plots/liquid/types.js.map +1 -1
  55. package/esm/plots/mix/types.d.ts +31 -22
  56. package/esm/plots/mix/types.js.map +1 -1
  57. package/esm/plots/pie/types.d.ts +27 -10
  58. package/esm/plots/pie/types.js.map +1 -1
  59. package/esm/plots/progress/types.d.ts +13 -4
  60. package/esm/plots/progress/types.js.map +1 -1
  61. package/esm/plots/radar/types.d.ts +39 -12
  62. package/esm/plots/radar/types.js.map +1 -1
  63. package/esm/plots/radial-bar/types.d.ts +39 -12
  64. package/esm/plots/radial-bar/types.js.map +1 -1
  65. package/esm/plots/ring-progress/types.d.ts +18 -6
  66. package/esm/plots/ring-progress/types.js.map +1 -1
  67. package/esm/plots/rose/types.d.ts +32 -12
  68. package/esm/plots/rose/types.js.map +1 -1
  69. package/esm/plots/sankey/types.d.ts +51 -32
  70. package/esm/plots/sankey/types.js.map +1 -1
  71. package/esm/plots/scatter/types.d.ts +76 -22
  72. package/esm/plots/scatter/types.js.map +1 -1
  73. package/esm/plots/stock/types.d.ts +20 -7
  74. package/esm/plots/stock/types.js.map +1 -1
  75. package/esm/plots/sunburst/types.d.ts +40 -12
  76. package/esm/plots/sunburst/types.js.map +1 -1
  77. package/esm/plots/tiny-area/types.d.ts +16 -5
  78. package/esm/plots/tiny-area/types.js.map +1 -1
  79. package/esm/plots/tiny-column/types.d.ts +10 -3
  80. package/esm/plots/tiny-column/types.js.map +1 -1
  81. package/esm/plots/tiny-line/types.d.ts +17 -5
  82. package/esm/plots/tiny-line/types.js.map +1 -1
  83. package/esm/plots/treemap/types.d.ts +17 -6
  84. package/esm/plots/treemap/types.js.map +1 -1
  85. package/esm/plots/venn/types.d.ts +20 -6
  86. package/esm/plots/venn/types.js.map +1 -1
  87. package/esm/plots/violin/types.d.ts +52 -17
  88. package/esm/plots/violin/types.js.map +1 -1
  89. package/esm/plots/waterfall/types.d.ts +42 -10
  90. package/esm/plots/waterfall/types.js.map +1 -1
  91. package/esm/plots/word-cloud/types.d.ts +91 -44
  92. package/esm/plots/word-cloud/types.js.map +1 -1
  93. package/esm/types/button.d.ts +8 -4
  94. package/esm/types/button.js.map +1 -1
  95. package/esm/types/common.d.ts +145 -33
  96. package/esm/types/common.js.map +1 -1
  97. package/esm/types/drill-down.d.ts +28 -7
  98. package/esm/types/drill-down.js.map +1 -1
  99. package/esm/types/interaction.d.ts +26 -6
  100. package/esm/types/interaction.js.map +1 -1
  101. package/esm/types/label.d.ts +11 -3
  102. package/esm/types/label.js.map +1 -1
  103. package/esm/types/meta.d.ts +4 -7
  104. package/esm/types/meta.js.map +1 -1
  105. package/esm/types/pattern.d.ts +58 -18
  106. package/esm/types/pattern.js.map +1 -1
  107. package/esm/types/state.d.ts +11 -3
  108. package/esm/types/state.js.map +1 -1
  109. package/esm/types/statistic.d.ts +38 -6
  110. package/esm/types/statistic.js.map +1 -1
  111. package/esm/types/tooltip.d.ts +7 -2
  112. package/esm/types/tooltip.js.map +1 -1
  113. package/lib/core/plot.d.ts +2 -2
  114. package/lib/core/plot.js +4 -3
  115. package/lib/core/plot.js.map +1 -1
  116. package/lib/index.d.ts +2 -2
  117. package/lib/index.js +2 -1
  118. package/lib/index.js.map +1 -1
  119. package/lib/plots/area/types.d.ts +35 -10
  120. package/lib/plots/area/types.js.map +1 -1
  121. package/lib/plots/bar/types.d.ts +16 -3
  122. package/lib/plots/bar/types.js.map +1 -1
  123. package/lib/plots/bidirectional-bar/types.d.ts +21 -6
  124. package/lib/plots/bidirectional-bar/types.js.map +1 -1
  125. package/lib/plots/box/types.d.ts +20 -6
  126. package/lib/plots/box/types.js.map +1 -1
  127. package/lib/plots/bullet/types.d.ts +36 -9
  128. package/lib/plots/bullet/types.js.map +1 -1
  129. package/lib/plots/chord/types.d.ts +14 -10
  130. package/lib/plots/chord/types.js.map +1 -1
  131. package/lib/plots/circle-packing/types.d.ts +25 -8
  132. package/lib/plots/circle-packing/types.js.map +1 -1
  133. package/lib/plots/column/types.d.ts +57 -16
  134. package/lib/plots/column/types.js.map +1 -1
  135. package/lib/plots/dual-axes/types.d.ts +31 -6
  136. package/lib/plots/dual-axes/types.js.map +1 -1
  137. package/lib/plots/facet/types.d.ts +54 -34
  138. package/lib/plots/facet/types.js.map +1 -1
  139. package/lib/plots/funnel/geometries/compare.js +2 -1
  140. package/lib/plots/funnel/geometries/compare.js.map +1 -1
  141. package/lib/plots/funnel/geometries/facet.js +2 -1
  142. package/lib/plots/funnel/geometries/facet.js.map +1 -1
  143. package/lib/plots/funnel/types.d.ts +45 -11
  144. package/lib/plots/funnel/types.js.map +1 -1
  145. package/lib/plots/gauge/adaptor.js +30 -2
  146. package/lib/plots/gauge/adaptor.js.map +1 -1
  147. package/lib/plots/gauge/types.d.ts +84 -22
  148. package/lib/plots/gauge/types.js.map +1 -1
  149. package/lib/plots/heatmap/types.d.ts +47 -12
  150. package/lib/plots/heatmap/types.js.map +1 -1
  151. package/lib/plots/histogram/types.d.ts +17 -6
  152. package/lib/plots/histogram/types.js.map +1 -1
  153. package/lib/plots/line/types.d.ts +42 -12
  154. package/lib/plots/line/types.js.map +1 -1
  155. package/lib/plots/liquid/index.d.ts +1 -0
  156. package/lib/plots/liquid/index.js +2 -0
  157. package/lib/plots/liquid/index.js.map +1 -1
  158. package/lib/plots/liquid/shapes/liquid.d.ts +16 -1
  159. package/lib/plots/liquid/shapes/liquid.js +14 -7
  160. package/lib/plots/liquid/shapes/liquid.js.map +1 -1
  161. package/lib/plots/liquid/types.d.ts +56 -16
  162. package/lib/plots/liquid/types.js.map +1 -1
  163. package/lib/plots/mix/types.d.ts +31 -22
  164. package/lib/plots/mix/types.js.map +1 -1
  165. package/lib/plots/pie/types.d.ts +27 -10
  166. package/lib/plots/pie/types.js.map +1 -1
  167. package/lib/plots/progress/types.d.ts +13 -4
  168. package/lib/plots/progress/types.js.map +1 -1
  169. package/lib/plots/radar/types.d.ts +39 -12
  170. package/lib/plots/radar/types.js.map +1 -1
  171. package/lib/plots/radial-bar/types.d.ts +39 -12
  172. package/lib/plots/radial-bar/types.js.map +1 -1
  173. package/lib/plots/ring-progress/types.d.ts +18 -6
  174. package/lib/plots/ring-progress/types.js.map +1 -1
  175. package/lib/plots/rose/types.d.ts +32 -12
  176. package/lib/plots/rose/types.js.map +1 -1
  177. package/lib/plots/sankey/types.d.ts +51 -32
  178. package/lib/plots/sankey/types.js.map +1 -1
  179. package/lib/plots/scatter/types.d.ts +76 -22
  180. package/lib/plots/scatter/types.js.map +1 -1
  181. package/lib/plots/stock/types.d.ts +20 -7
  182. package/lib/plots/stock/types.js.map +1 -1
  183. package/lib/plots/sunburst/types.d.ts +40 -12
  184. package/lib/plots/sunburst/types.js.map +1 -1
  185. package/lib/plots/tiny-area/types.d.ts +16 -5
  186. package/lib/plots/tiny-area/types.js.map +1 -1
  187. package/lib/plots/tiny-column/types.d.ts +10 -3
  188. package/lib/plots/tiny-column/types.js.map +1 -1
  189. package/lib/plots/tiny-line/types.d.ts +17 -5
  190. package/lib/plots/tiny-line/types.js.map +1 -1
  191. package/lib/plots/treemap/types.d.ts +17 -6
  192. package/lib/plots/treemap/types.js.map +1 -1
  193. package/lib/plots/venn/types.d.ts +20 -6
  194. package/lib/plots/venn/types.js.map +1 -1
  195. package/lib/plots/violin/types.d.ts +52 -17
  196. package/lib/plots/violin/types.js.map +1 -1
  197. package/lib/plots/waterfall/types.d.ts +42 -10
  198. package/lib/plots/waterfall/types.js.map +1 -1
  199. package/lib/plots/word-cloud/types.d.ts +91 -44
  200. package/lib/plots/word-cloud/types.js.map +1 -1
  201. package/lib/types/button.d.ts +8 -4
  202. package/lib/types/button.js.map +1 -1
  203. package/lib/types/common.d.ts +145 -33
  204. package/lib/types/common.js.map +1 -1
  205. package/lib/types/drill-down.d.ts +28 -7
  206. package/lib/types/drill-down.js.map +1 -1
  207. package/lib/types/interaction.d.ts +26 -6
  208. package/lib/types/interaction.js.map +1 -1
  209. package/lib/types/label.d.ts +11 -3
  210. package/lib/types/label.js.map +1 -1
  211. package/lib/types/meta.d.ts +4 -7
  212. package/lib/types/meta.js.map +1 -1
  213. package/lib/types/pattern.d.ts +58 -18
  214. package/lib/types/pattern.js.map +1 -1
  215. package/lib/types/state.d.ts +11 -3
  216. package/lib/types/state.js.map +1 -1
  217. package/lib/types/statistic.d.ts +38 -6
  218. package/lib/types/statistic.js.map +1 -1
  219. package/lib/types/tooltip.d.ts +7 -2
  220. package/lib/types/tooltip.js.map +1 -1
  221. package/package.json +1 -1
  222. package/src/core/plot.ts +5 -4
  223. package/src/index.ts +2 -2
  224. package/src/plots/area/types.ts +35 -10
  225. package/src/plots/bar/types.ts +16 -3
  226. package/src/plots/bidirectional-bar/types.ts +21 -6
  227. package/src/plots/box/types.ts +20 -6
  228. package/src/plots/bullet/types.ts +36 -17
  229. package/src/plots/chord/types.ts +14 -11
  230. package/src/plots/circle-packing/types.ts +25 -14
  231. package/src/plots/column/types.ts +57 -20
  232. package/src/plots/dual-axes/types.ts +31 -16
  233. package/src/plots/facet/types.ts +54 -49
  234. package/src/plots/funnel/geometries/compare.ts +2 -0
  235. package/src/plots/funnel/geometries/facet.ts +2 -1
  236. package/src/plots/funnel/types.ts +45 -14
  237. package/src/plots/gauge/adaptor.ts +38 -2
  238. package/src/plots/gauge/types.ts +87 -28
  239. package/src/plots/heatmap/types.ts +49 -14
  240. package/src/plots/histogram/types.ts +17 -9
  241. package/src/plots/line/types.ts +42 -14
  242. package/src/plots/liquid/index.ts +2 -0
  243. package/src/plots/liquid/shapes/liquid.ts +16 -8
  244. package/src/plots/liquid/types.ts +56 -16
  245. package/src/plots/mix/types.ts +31 -35
  246. package/src/plots/pie/types.ts +27 -10
  247. package/src/plots/progress/types.ts +13 -4
  248. package/src/plots/radar/types.ts +39 -12
  249. package/src/plots/radial-bar/types.ts +39 -12
  250. package/src/plots/ring-progress/types.ts +18 -6
  251. package/src/plots/rose/types.ts +32 -12
  252. package/src/plots/sankey/types.ts +52 -32
  253. package/src/plots/scatter/types.ts +77 -24
  254. package/src/plots/stock/types.ts +21 -8
  255. package/src/plots/sunburst/types.ts +42 -12
  256. package/src/plots/tiny-area/types.ts +16 -5
  257. package/src/plots/tiny-column/types.ts +10 -3
  258. package/src/plots/tiny-line/types.ts +17 -5
  259. package/src/plots/treemap/types.ts +17 -7
  260. package/src/plots/venn/types.ts +21 -6
  261. package/src/plots/violin/types.ts +52 -17
  262. package/src/plots/waterfall/types.ts +42 -10
  263. package/src/plots/word-cloud/types.ts +91 -44
  264. package/src/types/button.ts +8 -4
  265. package/src/types/common.ts +145 -37
  266. package/src/types/drill-down.ts +28 -7
  267. package/src/types/interaction.ts +26 -6
  268. package/src/types/label.ts +11 -3
  269. package/src/types/meta.ts +4 -7
  270. package/src/types/pattern.ts +58 -18
  271. package/src/types/state.ts +11 -3
  272. package/src/types/statistic.ts +38 -6
  273. package/src/types/tooltip.ts +7 -2
@@ -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"]}
@@ -1,124 +1,143 @@
1
1
  import { Data, Options, State, StyleAttr } from '../../types';
2
2
  import { NodeDepth, NodeSort } from './layout';
3
3
  /**
4
- * node-link 数据类型的结构
4
+ * @title node-link 数据类型的结构
5
5
  */
6
6
  export declare type NodeLinkData = {
7
7
  /**
8
- * 节点数据
8
+ * @title 节点数据
9
9
  */
10
10
  readonly nodes: {
11
11
  /**
12
- * id 唯一即可,一般可以直接等于 name
12
+ * @title id
13
+ * @description 唯一即可,一般可以直接等于 name
13
14
  */
14
15
  readonly id: string;
15
16
  /**
16
- * 节点的名称,用于 UI 上的现实
17
+ * @title 节点的名称
18
+ * @description 用于 UI 上的现实
17
19
  */
18
20
  readonly name: string;
19
21
  /**
20
- * 节点的值,不传则节点大小有来源求和决定
22
+ * @title 节点的值
23
+ * @description 不传则节点大小有来源求和决定
21
24
  */
22
25
  readonly fixedValue?: number;
23
26
  }[];
24
- /**
25
- *
26
- */
27
27
  readonly links: {
28
28
  /**
29
- * 来源节点在 nodes 中的 index
29
+ * @title 来源节点
30
+ * @description 在 nodes 中的 index
30
31
  */
31
32
  readonly source: number;
32
33
  /**
33
- * 目标节点在 nodes 中的 index
34
+ * @title 目标节点
35
+ * @description 在 nodes 中的 index
34
36
  */
35
37
  readonly target: number;
36
38
  /**
37
- * 边的值
39
+ * @title 边的值
38
40
  */
39
41
  readonly value: number;
40
42
  }[];
41
43
  };
42
- /** 配置类型定义 */
44
+ /**
45
+ * @title 配置类型定义
46
+ */
43
47
  export interface SankeyOptions extends Omit<Options, 'data' | 'xField' | 'yField' | 'xAxis' | 'yAxis'> {
44
48
  /**
45
- * 数据集的类型,默认为 detail
49
+ * @title 数据集的类型
50
+ * @description 数据集的类型 'node-link' | 'detail'
51
+ * @default "detail"
46
52
  */
47
53
  readonly dataType?: 'node-link' | 'detail';
48
54
  /**
49
- * 来源字段,dataType = 'node-link' 的时候,不用传
55
+ * @title 来源字段
56
+ * @description dataType = 'node-link' 的时候,不用传
50
57
  */
51
58
  readonly sourceField?: string;
52
59
  /**
53
- * 去向字段,dataType = 'node-link' 的时候,不用传
60
+ * @title 去向字段
61
+ * @description dataType = 'node-link' 的时候,不用传
54
62
  */
55
63
  readonly targetField?: string;
56
64
  /**
57
- * 权重字段,dataType = 'node-link' 的时候,不用传
65
+ * @title 权重字段
66
+ * @description dataType = 'node-link' 的时候,不用传
58
67
  */
59
68
  readonly weightField?: string;
60
69
  /**
61
- * 附加的 元字段
70
+ * @title 附加的元字段
62
71
  */
63
72
  readonly rawFields?: string[];
64
73
  /**
65
- * 数据
74
+ * @title 数据
66
75
  */
67
76
  readonly data: Data | NodeLinkData;
68
77
  /**
69
- * 节点宽度的比如,参考画布的宽度,默认值为 0.008
78
+ * @title 节点宽度
79
+ * @description 参考画布的宽度
80
+ * @default 0.008
70
81
  */
71
82
  readonly nodeWidthRatio?: number;
72
83
  /**
73
- * 节点宽度的像素设置,优先级高于 nodeWidthRatio
84
+ * @title 节点宽度的像素设置
85
+ * @description 优先级高于 nodeWidthRatio
74
86
  */
75
87
  readonly nodeWidth?: number;
76
88
  /**
77
- * 节点之间的间距比例,参考画布高度,默认值为 0.03
89
+ * @title 节点之间的间距比例
90
+ * @description 参考画布高度
91
+ * @default 0.03
78
92
  */
79
93
  readonly nodePaddingRatio?: number;
80
94
  /**
81
- * 节点间距的像素设置,优先级高于 nodePaddingRatio
95
+ * @title 节点间距的像素设置
96
+ * @description 优先级高于 nodePaddingRatio
82
97
  */
83
98
  readonly nodePadding?: number;
84
99
  /**
85
- * 节点对齐的方式,默认为 justify
100
+ * @title 节点对齐的方式
101
+ * @description 节点对齐的方式 'left' | 'right' | 'center' | 'justify'
102
+ * @default "justify"
86
103
  */
87
104
  readonly nodeAlign?: 'left' | 'right' | 'center' | 'justify';
88
105
  /**
89
- * 节点排序方式,默认为空
106
+ * @title 节点排序方式
90
107
  */
91
108
  readonly nodeSort?: NodeSort;
92
109
  /**
93
- * 节点排放分层的顺序,从 0 开始,并且返回值需要保证所有的层级都有节点
110
+ * @title 节点排放分层的顺序
111
+ * @description 从 0 开始,并且返回值需要保证所有的层级都有节点
94
112
  */
95
113
  readonly nodeDepth?: NodeDepth;
96
114
  /**
97
- * 节点样式
115
+ * @title 节点样式
98
116
  */
99
117
  readonly nodeStyle?: StyleAttr;
100
118
  /**
101
- * 节点状态样式
119
+ * @title 节点状态样式
102
120
  */
103
121
  readonly nodeState?: State;
104
122
  /**
105
- * 边样式
123
+ * @title 边样式
106
124
  */
107
125
  readonly edgeStyle?: StyleAttr;
108
126
  /**
109
- * 边状态样式
127
+ * @title 边状态样式
110
128
  */
111
129
  readonly edgeState?: State;
112
130
  /**
113
- * 节点位置是否可以拖拽,默认为 false
131
+ * @title 节点位置是否可以拖拽
132
+ * @default false
114
133
  */
115
134
  readonly nodeDraggable?: boolean;
116
135
  /**
117
- * 边交互
136
+ * @title 边交互
118
137
  */
119
138
  readonly edgeInteractions?: Options['interactions'];
120
139
  /**
121
- * 节点交互
140
+ * @title 节点交互
122
141
  */
123
142
  readonly nodeInteractions?: Options['interactions'];
124
143
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/plots/sankey/types.ts"],"names":[],"mappings":"","sourcesContent":["import { Data, Options, State, StyleAttr } from '../../types';\nimport { NodeDepth, NodeSort } from './layout';\n\n/**\n * node-link 数据类型的结构\n */\nexport type NodeLinkData = {\n /**\n * 节点数据\n */\n readonly nodes: {\n /**\n * id 唯一即可,一般可以直接等于 name\n */\n readonly id: string;\n /**\n * 节点的名称,用于 UI 上的现实\n */\n readonly name: string;\n /**\n * 节点的值,不传则节点大小有来源求和决定\n */\n readonly fixedValue?: number;\n }[];\n /**\n *\n */\n readonly links: {\n /**\n * 来源节点在 nodes 中的 index\n */\n readonly source: number;\n /**\n * 目标节点在 nodes 中的 index\n */\n readonly target: number;\n /**\n * 边的值\n */\n readonly value: number;\n }[];\n};\n\n/** 配置类型定义 */\nexport interface SankeyOptions extends Omit<Options, 'data' | 'xField' | 'yField' | 'xAxis' | 'yAxis'> {\n /**\n * 数据集的类型,默认为 detail\n */\n readonly dataType?: 'node-link' | 'detail';\n /**\n * 来源字段,dataType = 'node-link' 的时候,不用传\n */\n readonly sourceField?: string;\n /**\n * 去向字段,dataType = 'node-link' 的时候,不用传\n */\n readonly targetField?: string;\n /**\n * 权重字段,dataType = 'node-link' 的时候,不用传\n */\n readonly weightField?: string;\n /**\n * 附加的 元字段\n */\n readonly rawFields?: string[];\n /**\n * 数据\n */\n readonly data: Data | NodeLinkData;\n /**\n * 节点宽度的比如,参考画布的宽度,默认值为 0.008\n */\n readonly nodeWidthRatio?: number;\n /**\n * 节点宽度的像素设置,优先级高于 nodeWidthRatio\n */\n readonly nodeWidth?: number;\n /**\n * 节点之间的间距比例,参考画布高度,默认值为 0.03\n */\n readonly nodePaddingRatio?: number;\n /**\n * 节点间距的像素设置,优先级高于 nodePaddingRatio\n */\n readonly nodePadding?: number;\n /**\n * 节点对齐的方式,默认为 justify\n */\n readonly nodeAlign?: 'left' | 'right' | 'center' | 'justify';\n /**\n * 节点排序方式,默认为空\n */\n readonly nodeSort?: NodeSort;\n /**\n * 节点排放分层的顺序,从 0 开始,并且返回值需要保证所有的层级都有节点\n */\n readonly nodeDepth?: NodeDepth;\n /**\n * 节点样式\n */\n readonly nodeStyle?: StyleAttr;\n /**\n * 节点状态样式\n */\n readonly nodeState?: State;\n /**\n * 边样式\n */\n readonly edgeStyle?: StyleAttr;\n /**\n * 边状态样式\n */\n readonly edgeState?: State;\n /**\n * 节点位置是否可以拖拽,默认为 false\n */\n readonly nodeDraggable?: boolean;\n /**\n * 边交互\n */\n readonly edgeInteractions?: Options['interactions'];\n /**\n * 节点交互\n */\n readonly nodeInteractions?: Options['interactions'];\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/plots/sankey/types.ts"],"names":[],"mappings":"","sourcesContent":["import { Data, Options, State, StyleAttr } from '../../types';\nimport { NodeDepth, NodeSort } from './layout';\n\n/**\n * @title node-link 数据类型的结构\n */\nexport type NodeLinkData = {\n /**\n * @title 节点数据\n */\n readonly nodes: {\n /**\n * @title id\n * @description 唯一即可,一般可以直接等于 name\n */\n readonly id: string;\n /**\n * @title 节点的名称\n * @description 用于 UI 上的现实\n */\n readonly name: string;\n /**\n * @title 节点的值\n * @description 不传则节点大小有来源求和决定\n */\n readonly fixedValue?: number;\n }[];\n\n readonly links: {\n /**\n * @title 来源节点\n * @description 在 nodes 中的 index\n */\n readonly source: number;\n /**\n * @title 目标节点\n * @description 在 nodes 中的 index\n */\n readonly target: number;\n /**\n * @title 边的值\n */\n readonly value: number;\n }[];\n};\n\n/**\n * @title 配置类型定义\n */\nexport interface SankeyOptions extends Omit<Options, 'data' | 'xField' | 'yField' | 'xAxis' | 'yAxis'> {\n /**\n * @title 数据集的类型\n * @description 数据集的类型 'node-link' | 'detail'\n * @default \"detail\"\n */\n readonly dataType?: 'node-link' | 'detail';\n /**\n * @title 来源字段\n * @description dataType = 'node-link' 的时候,不用传\n */\n readonly sourceField?: string;\n /**\n * @title 去向字段\n * @description dataType = 'node-link' 的时候,不用传\n */\n readonly targetField?: string;\n /**\n * @title 权重字段\n * @description dataType = 'node-link' 的时候,不用传\n */\n readonly weightField?: string;\n /**\n * @title 附加的元字段\n */\n readonly rawFields?: string[];\n /**\n * @title 数据\n */\n readonly data: Data | NodeLinkData;\n /**\n * @title 节点宽度\n * @description 参考画布的宽度\n * @default 0.008\n */\n readonly nodeWidthRatio?: number;\n /**\n * @title 节点宽度的像素设置\n * @description 优先级高于 nodeWidthRatio\n */\n readonly nodeWidth?: number;\n /**\n * @title 节点之间的间距比例\n * @description 参考画布高度\n * @default 0.03\n */\n readonly nodePaddingRatio?: number;\n /**\n * @title 节点间距的像素设置\n * @description 优先级高于 nodePaddingRatio\n */\n readonly nodePadding?: number;\n /**\n * @title 节点对齐的方式\n * @description 节点对齐的方式 'left' | 'right' | 'center' | 'justify'\n * @default \"justify\"\n */\n readonly nodeAlign?: 'left' | 'right' | 'center' | 'justify';\n /**\n * @title 节点排序方式\n */\n readonly nodeSort?: NodeSort;\n /**\n * @title 节点排放分层的顺序\n * @description 从 0 开始,并且返回值需要保证所有的层级都有节点\n */\n readonly nodeDepth?: NodeDepth;\n /**\n * @title 节点样式\n */\n readonly nodeStyle?: StyleAttr;\n /**\n * @title 节点状态样式\n */\n readonly nodeState?: State;\n /**\n * @title 边样式\n */\n readonly edgeStyle?: StyleAttr;\n /**\n * @title 边状态样式\n */\n readonly edgeState?: State;\n /**\n * @title 节点位置是否可以拖拽\n * @default false\n */\n readonly nodeDraggable?: boolean;\n /**\n * @title 边交互\n */\n readonly edgeInteractions?: Options['interactions'];\n /**\n * @title 节点交互\n */\n readonly nodeInteractions?: Options['interactions'];\n}\n"]}
@@ -3,54 +3,108 @@ interface Labels extends Omit<TextOption, 'position'> {
3
3
  position?: AnnotationPosition;
4
4
  }
5
5
  interface QuadrantOptions {
6
- /** x 方向上的象限分割基准线,默认为 0 */
6
+ /**
7
+ * @title x 基准线
8
+ * @description x 方向上的象限分割基准线
9
+ * @default 0
10
+ */
7
11
  readonly xBaseline?: number;
8
- /** y 方向上的象限分割基准线,默认为 0 */
12
+ /**
13
+ * @title y 基准线
14
+ * @description y 方向上的象限分割基准线
15
+ * @default 0
16
+ */
9
17
  readonly yBaseline?: number;
10
- /** 配置象限分割线的样式 */
18
+ /**
19
+ * @title 配置象限分割线的样式
20
+ */
11
21
  readonly lineStyle?: RegionPositionBaseOption;
12
- /** 象限样式 */
22
+ /**
23
+ * @title 象限样式
24
+ */
13
25
  readonly regionStyle?: RegionPositionBaseOption[];
14
- /** 象限文本配置 */
26
+ /**
27
+ * @title 象限文本
28
+ */
15
29
  readonly labels?: Labels[];
16
30
  }
17
31
  export interface RegressionLineOptions {
18
- /** 是否顶层显示,默认 false */
32
+ /**
33
+ * @title 是否顶层显示
34
+ * @default false
35
+ */
19
36
  readonly top?: boolean;
20
- /** 回归线类型 */
37
+ /**
38
+ * @title 回归线类型
39
+ */
21
40
  readonly type?: string;
22
- /** 配置回归线样式 */
41
+ /**
42
+ * @title 配置回归线样式
43
+ */
23
44
  readonly style?: ShapeStyle;
24
- /** 自定义算法 [[0,0],[100,100]] */
45
+ /**
46
+ * @title 自定义算法
47
+ * @description [[0,0],[100,100]]
48
+ */
25
49
  readonly algorithm?: Array<[number, number]> | ((data: any) => Array<[number, number]>);
26
50
  }
27
51
  export interface ScatterOptions extends Options {
28
- /** x 轴字段 */
52
+ /**
53
+ * @title x 轴字段
54
+ */
29
55
  readonly xField: string;
30
- /** y 轴字段 */
56
+ /**
57
+ * @title y 轴字段
58
+ */
31
59
  readonly yField: string;
32
- /** 数据调整类型 */
60
+ /**
61
+ * @title 数据调整类型
62
+ * @description 数据调整类型 'jitter' | 'stack' | 'symmetric' | 'dodge'
63
+ */
33
64
  readonly type?: 'jitter' | 'stack' | 'symmetric' | 'dodge';
34
- /** 点大小映射对应的数据字段名 */
65
+ /**
66
+ * @title 点大小映射对应的数据字段名
67
+ */
35
68
  readonly sizeField?: string;
36
- /** size 对应的图例 */
69
+ /**
70
+ * @title size 对应的图例
71
+ */
37
72
  readonly sizeLegend?: Options['legend'];
38
- /** 散点图大小 */
73
+ /**
74
+ * @title 散点图大小
75
+ */
39
76
  readonly size?: SizeAttr;
40
- /** 点形状映射对应的数据字段名 */
77
+ /**
78
+ * @title 点形状映射对应的数据字段名
79
+ */
41
80
  readonly shapeField?: string;
42
- /** shape 对应的图例 */
81
+ /**
82
+ * @title shape 对应的图例
83
+ */
43
84
  readonly shapeLegend?: Options['legend'];
44
- /** 散点图形状 */
85
+ /**
86
+ * @title 散点图形状
87
+ */
45
88
  readonly shape?: ShapeAttr;
46
- /** 散点图样式 */
89
+ /**
90
+ * @title 散点图样式
91
+ */
47
92
  readonly pointStyle?: StyleAttr;
48
- /** 点颜色映射对应的数据字段名 */
93
+ /**
94
+ * @title 点颜色映射对应的数据字段名
95
+ */
49
96
  readonly colorField?: string;
50
- /** 四象限组件 */
97
+ /**
98
+ * @title 四象限组件
99
+ */
51
100
  readonly quadrant?: QuadrantOptions;
52
- /** 归曲线 */
101
+ /**
102
+ * @title 归曲线
103
+ */
53
104
  readonly regressionLine?: RegressionLineOptions;
105
+ /**
106
+ * @title 图表交互
107
+ */
54
108
  readonly brush?: BrushCfg;
55
109
  }
56
110
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/plots/scatter/types.ts"],"names":[],"mappings":"","sourcesContent":["import {\n Options,\n RegionPositionBaseOption,\n TextOption,\n AnnotationPosition,\n ShapeStyle,\n StyleAttr,\n ShapeAttr,\n SizeAttr,\n BrushCfg,\n} from '../../types';\n\ninterface Labels extends Omit<TextOption, 'position'> {\n position?: AnnotationPosition;\n}\n\ninterface QuadrantOptions {\n /** x 方向上的象限分割基准线,默认为 0 */\n readonly xBaseline?: number;\n /** y 方向上的象限分割基准线,默认为 0 */\n readonly yBaseline?: number;\n /** 配置象限分割线的样式 */\n readonly lineStyle?: RegionPositionBaseOption;\n /** 象限样式 */\n readonly regionStyle?: RegionPositionBaseOption[];\n /** 象限文本配置 */\n readonly labels?: Labels[];\n}\n\nexport interface RegressionLineOptions {\n /** 是否顶层显示,默认 false */\n readonly top?: boolean;\n /** 回归线类型 */\n readonly type?: string;\n /** 配置回归线样式 */\n readonly style?: ShapeStyle;\n /** 自定义算法 [[0,0],[100,100]] */\n readonly algorithm?: Array<[number, number]> | ((data: any) => Array<[number, number]>);\n}\n\nexport interface ScatterOptions extends Options {\n /** x 轴字段 */\n readonly xField: string;\n /** y 轴字段 */\n readonly yField: string;\n /** 数据调整类型 */\n readonly type?: 'jitter' | 'stack' | 'symmetric' | 'dodge';\n /** 点大小映射对应的数据字段名 */\n readonly sizeField?: string;\n /** size 对应的图例 */\n readonly sizeLegend?: Options['legend'];\n /** 散点图大小 */\n readonly size?: SizeAttr;\n /** 点形状映射对应的数据字段名 */\n readonly shapeField?: string;\n /** shape 对应的图例 */\n readonly shapeLegend?: Options['legend'];\n /** 散点图形状 */\n readonly shape?: ShapeAttr;\n /** 散点图样式 */\n readonly pointStyle?: StyleAttr;\n /** 点颜色映射对应的数据字段名 */\n readonly colorField?: string;\n\n // 图表标注组件\n /** 四象限组件 */\n readonly quadrant?: QuadrantOptions;\n /** 归曲线 */\n readonly regressionLine?: RegressionLineOptions;\n\n // 图表交互\n readonly brush?: BrushCfg;\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/plots/scatter/types.ts"],"names":[],"mappings":"","sourcesContent":["import {\n Options,\n RegionPositionBaseOption,\n TextOption,\n AnnotationPosition,\n ShapeStyle,\n StyleAttr,\n ShapeAttr,\n SizeAttr,\n BrushCfg,\n} from '../../types';\n\ninterface Labels extends Omit<TextOption, 'position'> {\n position?: AnnotationPosition;\n}\n\ninterface QuadrantOptions {\n /**\n * @title x 基准线\n * @description x 方向上的象限分割基准线\n * @default 0\n */\n readonly xBaseline?: number;\n /**\n * @title y 基准线\n * @description y 方向上的象限分割基准线\n * @default 0\n */\n readonly yBaseline?: number;\n /**\n * @title 配置象限分割线的样式\n */\n readonly lineStyle?: RegionPositionBaseOption;\n /**\n * @title 象限样式\n */\n readonly regionStyle?: RegionPositionBaseOption[];\n /**\n * @title 象限文本\n */\n readonly labels?: Labels[];\n}\n\nexport interface RegressionLineOptions {\n /**\n * @title 是否顶层显示\n * @default false\n */\n readonly top?: boolean;\n /**\n * @title 回归线类型\n */\n readonly type?: string;\n /**\n * @title 配置回归线样式\n */\n readonly style?: ShapeStyle;\n /**\n * @title 自定义算法\n * @description [[0,0],[100,100]]\n */\n readonly algorithm?: Array<[number, number]> | ((data: any) => Array<[number, number]>);\n}\n\nexport interface ScatterOptions extends Options {\n /**\n * @title x 轴字段\n */\n readonly xField: string;\n /**\n * @title y 轴字段\n */\n readonly yField: string;\n /**\n * @title 数据调整类型\n * @description 数据调整类型 'jitter' | 'stack' | 'symmetric' | 'dodge'\n */\n readonly type?: 'jitter' | 'stack' | 'symmetric' | 'dodge';\n /**\n * @title 点大小映射对应的数据字段名\n */\n readonly sizeField?: string;\n /**\n * @title size 对应的图例\n */\n readonly sizeLegend?: Options['legend'];\n /**\n * @title 散点图大小\n */\n readonly size?: SizeAttr;\n /**\n * @title 点形状映射对应的数据字段名\n */\n readonly shapeField?: string;\n /**\n * @title shape 对应的图例\n */\n readonly shapeLegend?: Options['legend'];\n /**\n * @title 散点图形状\n */\n readonly shape?: ShapeAttr;\n /**\n * @title 散点图样式\n */\n readonly pointStyle?: StyleAttr;\n /**\n * @title 点颜色映射对应的数据字段名\n */\n readonly colorField?: string;\n\n // 图表标注组件\n\n /**\n * @title 四象限组件\n */\n readonly quadrant?: QuadrantOptions;\n /**\n * @title 归曲线\n */\n readonly regressionLine?: RegressionLineOptions;\n /**\n * @title 图表交互\n */\n readonly brush?: BrushCfg;\n}\n"]}
@@ -1,15 +1,28 @@
1
1
  import { Options, StyleAttr } from '../../types';
2
2
  export interface StockOptions extends Options {
3
- /** x 轴字段 日期*/
3
+ /**
4
+ * @title x 轴字段 日期
5
+ */
4
6
  readonly xField: string;
5
- /** y 轴映射 range 【开盘价/收盘价/最高价/最低价】
6
- * 设置一个指定 [open, close, high, low]【开盘价/收盘价/最高价/最低价】字段的数组 */
7
+ /**
8
+ * @title y 轴映射
9
+ * @description range 【开盘价/收盘价/最高价/最低价】,设置一个指定 [open, close, high, low]【开盘价/收盘价/最高价/最低价】字段的数组
10
+ */
7
11
  readonly yField: [string, string, string, string];
8
- /** 颜色配置, 不支持 color 配置 */
9
- /** 上涨色 */
12
+ /**
13
+ * @title 颜色配置
14
+ * @description 不支持 color 配置
15
+ */
16
+ /**
17
+ * @title 上涨色
18
+ */
10
19
  readonly risingFill?: string;
11
- /** 下跌色 */
20
+ /**
21
+ * @title 下跌色
22
+ */
12
23
  readonly fallingFill?: string;
13
- /** 样式配置 */
24
+ /**
25
+ * @title 样式配置
26
+ */
14
27
  readonly stockStyle?: StyleAttr;
15
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/plots/stock/types.ts"],"names":[],"mappings":"","sourcesContent":["import { Options, StyleAttr } from '../../types';\n\nexport interface StockOptions extends Options {\n /** x 轴字段 日期*/\n readonly xField: string;\n /** y 轴映射 range 【开盘价/收盘价/最高价/最低价】\n * 设置一个指定 [open, close, high, low]【开盘价/收盘价/最高价/最低价】字段的数组 */\n readonly yField: [string, string, string, string];\n\n /** 颜色配置, 不支持 color 配置 */\n /** 上涨色 */\n readonly risingFill?: string;\n /** 下跌色 */\n readonly fallingFill?: string;\n\n /** 样式配置 */\n readonly stockStyle?: StyleAttr;\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/plots/stock/types.ts"],"names":[],"mappings":"","sourcesContent":["import { Options, StyleAttr } from '../../types';\n\nexport interface StockOptions extends Options {\n /**\n * @title x 轴字段 日期\n */\n readonly xField: string;\n /**\n * @title y 轴映射\n * @description range 【开盘价/收盘价/最高价/最低价】,设置一个指定 [open, close, high, low]【开盘价/收盘价/最高价/最低价】字段的数组\n */\n readonly yField: [string, string, string, string];\n\n /**\n * @title 颜色配置\n * @description 不支持 color 配置\n */\n\n /**\n * @title 上涨色\n */\n readonly risingFill?: string;\n /**\n * @title 下跌色\n */\n readonly fallingFill?: string;\n /**\n * @title 样式配置\n */\n readonly stockStyle?: StyleAttr;\n}\n"]}
@@ -2,31 +2,59 @@ import { ColorAttr, Options, StyleAttr } from '../../types';
2
2
  import { DrillDownCfg } from '../../types/drill-down';
3
3
  import { HierarchyOption } from '../../utils/hierarchy/types';
4
4
  export interface SunburstOptions extends Omit<Options, 'data' | 'slider' | 'scrollbar' | 'xAxis' | 'yAxis'> {
5
- /** 旭日图数据 */
5
+ /**
6
+ * @title 旭日图数据
7
+ */
6
8
  readonly data: any;
7
- /** 径向类型 */
9
+ /**
10
+ * @title 径向类型
11
+ * @description 径向类型'x' | 'y'
12
+ */
8
13
  readonly reflect?: 'x' | 'y';
9
- /** 内径 */
14
+ /**
15
+ * @title 内径
16
+ */
10
17
  readonly innerRadius?: number;
11
- /** 半经 */
18
+ /**
19
+ * @title 半经
20
+ */
12
21
  readonly radius?: number;
13
- /** 颜色映射 */
22
+ /**
23
+ * @title 颜色映射
24
+ */
14
25
  readonly colorField?: string;
15
- /** 颜色*/
26
+ /**
27
+ * @title 颜色
28
+ */
16
29
  readonly color?: ColorAttr;
17
- /** 旭日图形样式 */
30
+ /**
31
+ * @title 旭日图形样式
32
+ */
18
33
  readonly sunburstStyle?: StyleAttr;
19
- /** 层级布局配置 */
34
+ /**
35
+ * @title 层级布局
36
+ */
20
37
  readonly hierarchyConfig?: Omit<HierarchyOption, 'as' | 'type'> & {
21
38
  /** default: 'value', required data to be like: { name: 'xx', [field]: 12, children: [] } */
22
39
  readonly field?: string;
23
- /** 是否忽略父节点的权重, 默认: false, 其父节点的权重不由子节点权重总和决定 */
40
+ /**
41
+ * @title 是否忽略父节点的权重
42
+ * @description 其父节点的权重不由子节点权重总和决定
43
+ * @default false
44
+ */
24
45
  readonly ignoreParentValue?: boolean;
25
- /** 默认展示的层级深度. 默认空, 代表全部展示. 取值 > 0 */
46
+ /**
47
+ * @title 展示的层级深度
48
+ * @description 取值 > 0 默认空, 代表全部展示
49
+ */
26
50
  readonly activeDepth?: number;
27
51
  };
28
- /** 额外的原始字段 */
52
+ /**
53
+ * @title 额外的原始字段
54
+ */
29
55
  readonly rawFields?: string[];
30
- /** 下钻交互 */
56
+ /**
57
+ * @title 下钻交互
58
+ */
31
59
  readonly drilldown?: DrillDownCfg;
32
60
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/plots/sunburst/types.ts"],"names":[],"mappings":"","sourcesContent":["import { ColorAttr, Options, StyleAttr } from '../../types';\nimport { DrillDownCfg } from '../../types/drill-down';\nimport { HierarchyOption } from '../../utils/hierarchy/types';\n\nexport interface SunburstOptions extends Omit<Options, 'data' | 'slider' | 'scrollbar' | 'xAxis' | 'yAxis'> {\n /** 旭日图数据 */\n readonly data: any;\n /** 径向类型 */\n readonly reflect?: 'x' | 'y';\n\n // 样式\n /** 内径 */\n readonly innerRadius?: number;\n /** 半经 */\n readonly radius?: number;\n /** 颜色映射 */\n readonly colorField?: string;\n /** 颜色*/\n readonly color?: ColorAttr;\n /** 旭日图形样式 */\n readonly sunburstStyle?: StyleAttr;\n\n /** 层级布局配置 */\n readonly hierarchyConfig?: Omit<HierarchyOption, 'as' | 'type'> & {\n /** default: 'value', required data to be like: { name: 'xx', [field]: 12, children: [] } */\n readonly field?: string;\n /** 是否忽略父节点的权重, 默认: false, 其父节点的权重不由子节点权重总和决定 */\n readonly ignoreParentValue?: boolean;\n /** 默认展示的层级深度. 默认空, 代表全部展示. 取值 > 0 */\n readonly activeDepth?: number;\n };\n\n // 其他\n /** 额外的原始字段 */\n readonly rawFields?: string[];\n /** 下钻交互 */\n readonly drilldown?: DrillDownCfg;\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/plots/sunburst/types.ts"],"names":[],"mappings":"","sourcesContent":["import { ColorAttr, Options, StyleAttr } from '../../types';\nimport { DrillDownCfg } from '../../types/drill-down';\nimport { HierarchyOption } from '../../utils/hierarchy/types';\n\nexport interface SunburstOptions extends Omit<Options, 'data' | 'slider' | 'scrollbar' | 'xAxis' | 'yAxis'> {\n /**\n * @title 旭日图数据\n */\n readonly data: any;\n /**\n * @title 径向类型\n * @description 径向类型'x' | 'y'\n */\n readonly reflect?: 'x' | 'y';\n\n // 样式\n\n /**\n * @title 内径\n */\n readonly innerRadius?: number;\n /**\n * @title 半经\n */\n readonly radius?: number;\n /**\n * @title 颜色映射\n */\n readonly colorField?: string;\n /**\n * @title 颜色\n */\n readonly color?: ColorAttr;\n /**\n * @title 旭日图形样式\n */\n readonly sunburstStyle?: StyleAttr;\n\n /**\n * @title 层级布局\n */\n readonly hierarchyConfig?: Omit<HierarchyOption, 'as' | 'type'> & {\n /** default: 'value', required data to be like: { name: 'xx', [field]: 12, children: [] } */\n readonly field?: string;\n /**\n * @title 是否忽略父节点的权重\n * @description 其父节点的权重不由子节点权重总和决定\n * @default false\n */\n readonly ignoreParentValue?: boolean;\n /**\n * @title 展示的层级深度\n * @description 取值 > 0 默认空, 代表全部展示\n */\n readonly activeDepth?: number;\n };\n\n // 其他\n\n /**\n * @title 额外的原始字段\n */\n readonly rawFields?: string[];\n /**\n * @title 下钻交互\n */\n readonly drilldown?: DrillDownCfg;\n}\n"]}
@@ -3,14 +3,25 @@ import { MappingOptions } from '../../adaptor/geometries/base';
3
3
  import { PointGeometryOptions } from '../../adaptor/geometries/point';
4
4
  /** mini 图类型定义需要 omit 很多的 G2 Options 配置 */
5
5
  export interface TinyAreaOptions extends Omit<Options, 'data' | 'legend' | 'label'> {
6
- /** 具体的数据 */
6
+ /**
7
+ * @title 具体的数据
8
+ */
7
9
  readonly data: number[];
8
- /** 是否平滑 */
10
+ /**
11
+ * @title 是否平滑
12
+ * @default false
13
+ */
9
14
  readonly smooth?: boolean;
10
- /** 面积折线图形样式 */
15
+ /**
16
+ * @title 面积折线图形样式
17
+ */
11
18
  readonly areaStyle?: StyleAttr;
12
- /** 面积折线图形样式 */
19
+ /**
20
+ * @title 面积折线图形样式
21
+ */
13
22
  readonly line?: MappingOptions;
14
- /** 面积点图形样式 */
23
+ /**
24
+ * @title 面积点图形样式
25
+ */
15
26
  readonly point?: MappingOptions & Pick<PointGeometryOptions, 'state'>;
16
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/plots/tiny-area/types.ts"],"names":[],"mappings":"","sourcesContent":["import { Options, StyleAttr } from '../../types';\nimport { MappingOptions } from '../../adaptor/geometries/base';\nimport { PointGeometryOptions } from '../../adaptor/geometries/point';\n\n/** mini 图类型定义需要 omit 很多的 G2 Options 配置 */\nexport interface TinyAreaOptions extends Omit<Options, 'data' | 'legend' | 'label'> {\n /** 具体的数据 */\n readonly data: number[];\n /** 是否平滑 */\n readonly smooth?: boolean;\n /** 面积折线图形样式 */\n readonly areaStyle?: StyleAttr;\n /** 面积折线图形样式 */\n readonly line?: MappingOptions;\n /** 面积点图形样式 */\n readonly point?: MappingOptions & Pick<PointGeometryOptions, 'state'>;\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/plots/tiny-area/types.ts"],"names":[],"mappings":"","sourcesContent":["import { Options, StyleAttr } from '../../types';\nimport { MappingOptions } from '../../adaptor/geometries/base';\nimport { PointGeometryOptions } from '../../adaptor/geometries/point';\n\n/** mini 图类型定义需要 omit 很多的 G2 Options 配置 */\nexport interface TinyAreaOptions extends Omit<Options, 'data' | 'legend' | 'label'> {\n /**\n * @title 具体的数据\n */\n readonly data: number[];\n /**\n * @title 是否平滑\n * @default false\n */\n readonly smooth?: boolean;\n /**\n * @title 面积折线图形样式\n */\n readonly areaStyle?: StyleAttr;\n /**\n * @title 面积折线图形样式\n */\n readonly line?: MappingOptions;\n /**\n * @title 面积点图形样式\n */\n readonly point?: MappingOptions & Pick<PointGeometryOptions, 'state'>;\n}\n"]}