@antv/g2 4.2.6 → 5.0.0-alpha.1

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 (3665) hide show
  1. package/LICENSE +3 -3
  2. package/README.en-US.md +47 -74
  3. package/README.md +47 -72
  4. package/dist/g2.min.js +10 -16
  5. package/esm/adjust/index.d.ts +1 -0
  6. package/esm/adjust/index.js +2 -0
  7. package/esm/adjust/index.js.map +1 -0
  8. package/esm/adjust/pack.d.ts +8 -0
  9. package/esm/adjust/pack.js +55 -0
  10. package/esm/adjust/pack.js.map +1 -0
  11. package/esm/animation/fadeIn.d.ts +7 -0
  12. package/esm/animation/fadeIn.js +21 -0
  13. package/esm/animation/fadeIn.js.map +1 -0
  14. package/esm/animation/fadeOut.d.ts +7 -0
  15. package/esm/animation/fadeOut.js +21 -0
  16. package/esm/animation/fadeOut.js.map +1 -0
  17. package/esm/animation/index.d.ts +7 -0
  18. package/esm/animation/index.js +8 -0
  19. package/esm/animation/index.js.map +1 -0
  20. package/esm/animation/morphing.d.ts +13 -0
  21. package/esm/animation/morphing.js +160 -0
  22. package/esm/animation/morphing.js.map +1 -0
  23. package/esm/animation/scaleInX.d.ts +7 -0
  24. package/esm/animation/scaleInX.js +45 -0
  25. package/esm/animation/scaleInX.js.map +1 -0
  26. package/esm/animation/scaleInY.d.ts +7 -0
  27. package/esm/animation/scaleInY.js +45 -0
  28. package/esm/animation/scaleInY.js.map +1 -0
  29. package/esm/animation/scaleOutX.d.ts +7 -0
  30. package/esm/animation/scaleOutX.js +45 -0
  31. package/esm/animation/scaleOutX.js.map +1 -0
  32. package/esm/animation/scaleOutY.d.ts +7 -0
  33. package/esm/animation/scaleOutY.js +45 -0
  34. package/esm/animation/scaleOutY.js.map +1 -0
  35. package/esm/animation/utils.d.ts +2 -0
  36. package/esm/animation/utils.js +17 -0
  37. package/esm/animation/utils.js.map +1 -0
  38. package/esm/api/chart.d.ts +33 -0
  39. package/esm/api/chart.js +110 -0
  40. package/esm/api/chart.js.map +1 -0
  41. package/esm/api/composition/circle.d.ts +21 -0
  42. package/esm/api/composition/circle.js +30 -0
  43. package/esm/api/composition/circle.js.map +1 -0
  44. package/esm/api/composition/flex.d.ts +17 -0
  45. package/esm/api/composition/flex.js +26 -0
  46. package/esm/api/composition/flex.js.map +1 -0
  47. package/esm/api/composition/index.d.ts +26 -0
  48. package/esm/api/composition/index.js +27 -0
  49. package/esm/api/composition/index.js.map +1 -0
  50. package/esm/api/composition/keyframe.d.ts +17 -0
  51. package/esm/api/composition/keyframe.js +26 -0
  52. package/esm/api/composition/keyframe.js.map +1 -0
  53. package/esm/api/composition/layer.d.ts +14 -0
  54. package/esm/api/composition/layer.js +23 -0
  55. package/esm/api/composition/layer.js.map +1 -0
  56. package/esm/api/composition/matrix.d.ts +21 -0
  57. package/esm/api/composition/matrix.js +30 -0
  58. package/esm/api/composition/matrix.js.map +1 -0
  59. package/esm/api/composition/rect.d.ts +23 -0
  60. package/esm/api/composition/rect.js +32 -0
  61. package/esm/api/composition/rect.js.map +1 -0
  62. package/esm/api/composition/view.d.ts +20 -0
  63. package/esm/api/composition/view.js +30 -0
  64. package/esm/api/composition/view.js.map +1 -0
  65. package/esm/api/index.d.ts +2 -0
  66. package/esm/api/index.js +3 -0
  67. package/esm/api/index.js.map +1 -0
  68. package/esm/api/library.d.ts +3 -0
  69. package/esm/api/library.js +7 -0
  70. package/esm/api/library.js.map +1 -0
  71. package/esm/api/mark/index.d.ts +41 -0
  72. package/esm/api/mark/index.js +22 -0
  73. package/esm/api/mark/index.js.map +1 -0
  74. package/esm/api/mark/mark.d.ts +114 -0
  75. package/esm/api/mark/mark.js +190 -0
  76. package/esm/api/mark/mark.js.map +1 -0
  77. package/esm/api/mark/types.d.ts +21 -0
  78. package/esm/{util → api/mark}/types.js +0 -0
  79. package/esm/api/mark/types.js.map +1 -0
  80. package/esm/api/node.d.ts +31 -0
  81. package/esm/api/node.js +55 -0
  82. package/esm/api/node.js.map +1 -0
  83. package/esm/api/props.d.ts +12 -0
  84. package/esm/api/props.js +75 -0
  85. package/esm/api/props.js.map +1 -0
  86. package/esm/api/types.d.ts +10 -0
  87. package/esm/api/types.js +2 -0
  88. package/esm/api/types.js.map +1 -0
  89. package/esm/component/axis.d.ts +13 -0
  90. package/esm/component/axis.js +294 -0
  91. package/esm/component/axis.js.map +1 -0
  92. package/esm/component/axisX.d.ts +7 -0
  93. package/esm/component/axisX.js +9 -0
  94. package/esm/component/axisX.js.map +1 -0
  95. package/esm/component/axisY.d.ts +7 -0
  96. package/esm/component/axisY.js +9 -0
  97. package/esm/component/axisY.js.map +1 -0
  98. package/esm/component/index.d.ts +5 -0
  99. package/esm/component/index.js +6 -0
  100. package/esm/component/index.js.map +1 -0
  101. package/esm/component/legendCategory.d.ts +10 -0
  102. package/esm/component/legendCategory.js +84 -0
  103. package/esm/component/legendCategory.js.map +1 -0
  104. package/esm/component/legendContinuous.d.ts +9 -0
  105. package/esm/component/legendContinuous.js +38 -0
  106. package/esm/component/legendContinuous.js.map +1 -0
  107. package/esm/component/title.d.ts +6 -0
  108. package/esm/component/title.js +54 -0
  109. package/esm/component/title.js.map +1 -0
  110. package/esm/component/utils.d.ts +8 -0
  111. package/esm/component/utils.js +27 -0
  112. package/esm/component/utils.js.map +1 -0
  113. package/esm/composition/circle.d.ts +7 -0
  114. package/esm/composition/circle.js +85 -0
  115. package/esm/composition/circle.js.map +1 -0
  116. package/esm/composition/flex.d.ts +7 -0
  117. package/esm/composition/flex.js +40 -0
  118. package/esm/composition/flex.js.map +1 -0
  119. package/esm/composition/index.d.ts +8 -0
  120. package/esm/composition/index.js +9 -0
  121. package/esm/composition/index.js.map +1 -0
  122. package/esm/composition/keyframe.d.ts +7 -0
  123. package/esm/composition/keyframe.js +75 -0
  124. package/esm/composition/keyframe.js.map +1 -0
  125. package/esm/composition/layer.d.ts +7 -0
  126. package/esm/composition/layer.js +32 -0
  127. package/esm/composition/layer.js.map +1 -0
  128. package/esm/composition/mark.d.ts +4 -0
  129. package/esm/composition/mark.js +41 -0
  130. package/esm/composition/mark.js.map +1 -0
  131. package/esm/composition/matrix.d.ts +8 -0
  132. package/esm/composition/matrix.js +151 -0
  133. package/esm/composition/matrix.js.map +1 -0
  134. package/esm/composition/rect.d.ts +30 -0
  135. package/esm/composition/rect.js +286 -0
  136. package/esm/composition/rect.js.map +1 -0
  137. package/esm/composition/utils.d.ts +16 -0
  138. package/esm/composition/utils.js +33 -0
  139. package/esm/composition/utils.js.map +1 -0
  140. package/esm/composition/view.d.ts +9 -0
  141. package/esm/composition/view.js +33 -0
  142. package/esm/composition/view.js.map +1 -0
  143. package/esm/coordinate/cartesian.d.ts +7 -0
  144. package/esm/coordinate/cartesian.js +6 -0
  145. package/esm/coordinate/cartesian.js.map +1 -0
  146. package/esm/coordinate/fisheye.d.ts +7 -0
  147. package/esm/coordinate/fisheye.js +6 -0
  148. package/esm/coordinate/fisheye.js.map +1 -0
  149. package/esm/coordinate/fisheyeX.d.ts +7 -0
  150. package/esm/coordinate/fisheyeX.js +6 -0
  151. package/esm/coordinate/fisheyeX.js.map +1 -0
  152. package/esm/coordinate/fisheyeY.d.ts +7 -0
  153. package/esm/coordinate/fisheyeY.js +6 -0
  154. package/esm/coordinate/fisheyeY.js.map +1 -0
  155. package/esm/coordinate/helix.d.ts +7 -0
  156. package/esm/coordinate/helix.js +11 -0
  157. package/esm/coordinate/helix.js.map +1 -0
  158. package/esm/coordinate/index.d.ts +12 -0
  159. package/esm/coordinate/index.js +13 -0
  160. package/esm/coordinate/index.js.map +1 -0
  161. package/esm/coordinate/parallel.d.ts +7 -0
  162. package/esm/coordinate/parallel.js +6 -0
  163. package/esm/coordinate/parallel.js.map +1 -0
  164. package/esm/coordinate/polar.d.ts +8 -0
  165. package/esm/coordinate/polar.js +12 -0
  166. package/esm/coordinate/polar.js.map +1 -0
  167. package/esm/coordinate/reflect.d.ts +7 -0
  168. package/esm/coordinate/reflect.js +10 -0
  169. package/esm/coordinate/reflect.js.map +1 -0
  170. package/esm/coordinate/reflectX.d.ts +7 -0
  171. package/esm/coordinate/reflectX.js +10 -0
  172. package/esm/coordinate/reflectX.js.map +1 -0
  173. package/esm/coordinate/reflectY.d.ts +7 -0
  174. package/esm/coordinate/reflectY.js +10 -0
  175. package/esm/coordinate/reflectY.js.map +1 -0
  176. package/esm/coordinate/theta.d.ts +7 -0
  177. package/esm/coordinate/theta.js +11 -0
  178. package/esm/coordinate/theta.js.map +1 -0
  179. package/esm/coordinate/transpose.d.ts +7 -0
  180. package/esm/coordinate/transpose.js +11 -0
  181. package/esm/coordinate/transpose.js.map +1 -0
  182. package/esm/data/arc.d.ts +0 -0
  183. package/esm/data/arc.js +19 -0
  184. package/esm/data/arc.js.map +1 -0
  185. package/esm/data/cluster.d.ts +0 -0
  186. package/esm/data/cluster.js +47 -0
  187. package/esm/data/cluster.js.map +1 -0
  188. package/esm/data/connector.d.ts +7 -0
  189. package/esm/data/connector.js +9 -0
  190. package/esm/data/connector.js.map +1 -0
  191. package/esm/data/fetch.d.ts +4 -0
  192. package/esm/data/fetch.js +27 -0
  193. package/esm/data/fetch.js.map +1 -0
  194. package/esm/data/filterBy.d.ts +8 -0
  195. package/esm/data/filterBy.js +13 -0
  196. package/esm/data/filterBy.js.map +1 -0
  197. package/esm/data/fold.d.ts +10 -0
  198. package/esm/data/fold.js +24 -0
  199. package/esm/data/fold.js.map +1 -0
  200. package/esm/data/index.d.ts +9 -0
  201. package/esm/data/index.js +10 -0
  202. package/esm/data/index.js.map +1 -0
  203. package/esm/data/inline.d.ts +4 -0
  204. package/esm/data/inline.js +6 -0
  205. package/esm/data/inline.js.map +1 -0
  206. package/esm/data/pick.d.ts +7 -0
  207. package/esm/data/pick.js +10 -0
  208. package/esm/data/pick.js.map +1 -0
  209. package/esm/data/rename.d.ts +8 -0
  210. package/esm/data/rename.js +17 -0
  211. package/esm/data/rename.js.map +1 -0
  212. package/esm/data/sankey.d.ts +0 -0
  213. package/esm/data/sankey.js +96 -0
  214. package/esm/data/sankey.js.map +1 -0
  215. package/esm/data/sortBy.d.ts +7 -0
  216. package/esm/data/sortBy.js +14 -0
  217. package/esm/data/sortBy.js.map +1 -0
  218. package/esm/data/subset.d.ts +7 -0
  219. package/esm/data/subset.js +26 -0
  220. package/esm/data/subset.js.map +1 -0
  221. package/esm/data/tree.d.ts +0 -0
  222. package/esm/data/tree.js +10 -0
  223. package/esm/data/tree.js.map +1 -0
  224. package/esm/data/utils/arc/arc.d.ts +8 -0
  225. package/esm/data/utils/arc/arc.js +161 -0
  226. package/esm/data/utils/arc/arc.js.map +1 -0
  227. package/esm/data/utils/arc/index.d.ts +2 -0
  228. package/esm/data/utils/arc/index.js +2 -0
  229. package/esm/data/utils/arc/index.js.map +1 -0
  230. package/esm/data/utils/arc/sort.d.ts +4 -0
  231. package/esm/data/utils/arc/sort.js +13 -0
  232. package/esm/data/utils/arc/sort.js.map +1 -0
  233. package/esm/data/utils/arc/types.d.ts +26 -0
  234. package/esm/data/utils/arc/types.js +2 -0
  235. package/esm/data/utils/arc/types.js.map +1 -0
  236. package/esm/data/utils/d3-cloud/index.d.ts +1 -0
  237. package/esm/data/utils/d3-cloud/index.js +395 -0
  238. package/esm/data/utils/d3-cloud/index.js.map +1 -0
  239. package/esm/data/utils/d3-sankey/align.d.ts +4 -0
  240. package/esm/data/utils/d3-sankey/align.js +21 -0
  241. package/esm/data/utils/d3-sankey/align.js.map +1 -0
  242. package/esm/data/utils/d3-sankey/constant.d.ts +1 -0
  243. package/esm/data/utils/d3-sankey/constant.js +6 -0
  244. package/esm/data/utils/d3-sankey/constant.js.map +1 -0
  245. package/esm/data/utils/d3-sankey/index.d.ts +12 -0
  246. package/esm/data/utils/d3-sankey/index.js +13 -0
  247. package/esm/data/utils/d3-sankey/index.js.map +1 -0
  248. package/esm/data/utils/d3-sankey/sankey.d.ts +24 -0
  249. package/esm/data/utils/d3-sankey/sankey.js +388 -0
  250. package/esm/data/utils/d3-sankey/sankey.js.map +1 -0
  251. package/esm/data/utils/flow.d.ts +9 -0
  252. package/esm/data/utils/flow.js +45 -0
  253. package/esm/data/utils/flow.js.map +1 -0
  254. package/esm/data/utils/memo.d.ts +17 -0
  255. package/esm/data/utils/memo.js +79 -0
  256. package/esm/data/utils/memo.js.map +1 -0
  257. package/esm/data/voronoi.d.ts +0 -0
  258. package/esm/data/voronoi.js +27 -0
  259. package/esm/data/voronoi.js.map +1 -0
  260. package/esm/data/wordCloud.d.ts +0 -0
  261. package/esm/data/wordCloud.js +100 -0
  262. package/esm/data/wordCloud.js.map +1 -0
  263. package/esm/encode/column.d.ts +7 -0
  264. package/esm/encode/column.js +8 -0
  265. package/esm/encode/column.js.map +1 -0
  266. package/esm/encode/constant.d.ts +7 -0
  267. package/esm/encode/constant.js +8 -0
  268. package/esm/encode/constant.js.map +1 -0
  269. package/esm/encode/field.d.ts +7 -0
  270. package/esm/encode/field.js +8 -0
  271. package/esm/encode/field.js.map +1 -0
  272. package/esm/encode/index.d.ts +4 -0
  273. package/esm/encode/index.js +5 -0
  274. package/esm/encode/index.js.map +1 -0
  275. package/esm/encode/transform.d.ts +9 -0
  276. package/esm/encode/transform.js +10 -0
  277. package/esm/encode/transform.js.map +1 -0
  278. package/esm/index.d.ts +4 -107
  279. package/esm/index.js +3 -588
  280. package/esm/index.js.map +1 -1
  281. package/esm/interaction/action/index.d.ts +23 -2
  282. package/esm/interaction/action/index.js +23 -2
  283. package/esm/interaction/action/index.js.map +1 -1
  284. package/esm/interaction/action/service/elementSelection.d.ts +4 -0
  285. package/esm/interaction/action/service/elementSelection.js +90 -0
  286. package/esm/interaction/action/service/elementSelection.js.map +1 -0
  287. package/esm/interaction/action/service/fisheyeFocus.d.ts +4 -0
  288. package/esm/interaction/action/service/fisheyeFocus.js +51 -0
  289. package/esm/interaction/action/service/fisheyeFocus.js.map +1 -0
  290. package/esm/interaction/action/service/legendItemSelection.d.ts +4 -0
  291. package/esm/interaction/action/service/legendItemSelection.js +17 -0
  292. package/esm/interaction/action/service/legendItemSelection.js.map +1 -0
  293. package/esm/interaction/action/service/recordCurrentPoint.d.ts +4 -0
  294. package/esm/interaction/action/service/recordCurrentPoint.js +16 -0
  295. package/esm/interaction/action/service/recordCurrentPoint.js.map +1 -0
  296. package/esm/interaction/action/service/recordPoint.d.ts +4 -0
  297. package/esm/interaction/action/service/recordPoint.js +28 -0
  298. package/esm/interaction/action/service/recordPoint.js.map +1 -0
  299. package/esm/interaction/action/service/recordRegion.d.ts +4 -0
  300. package/esm/interaction/action/service/recordRegion.js +30 -0
  301. package/esm/interaction/action/service/recordRegion.js.map +1 -0
  302. package/esm/interaction/action/service/recordState.d.ts +4 -0
  303. package/esm/interaction/action/service/recordState.js +10 -0
  304. package/esm/interaction/action/service/recordState.js.map +1 -0
  305. package/esm/interaction/action/service/recordTip.d.ts +8 -0
  306. package/esm/interaction/action/service/recordTip.js +15 -0
  307. package/esm/interaction/action/service/recordTip.js.map +1 -0
  308. package/esm/interaction/action/service/surfacePointSelection.d.ts +4 -0
  309. package/esm/interaction/action/service/surfacePointSelection.js +19 -0
  310. package/esm/interaction/action/service/surfacePointSelection.js.map +1 -0
  311. package/esm/interaction/action/service/triggerInfoSelection.d.ts +4 -0
  312. package/esm/interaction/action/service/triggerInfoSelection.js +18 -0
  313. package/esm/interaction/action/service/triggerInfoSelection.js.map +1 -0
  314. package/esm/interaction/action/transformer/activeElement.d.ts +4 -0
  315. package/esm/interaction/action/transformer/activeElement.js +23 -0
  316. package/esm/interaction/action/transformer/activeElement.js.map +1 -0
  317. package/esm/interaction/action/transformer/activeRegion.d.ts +4 -0
  318. package/esm/interaction/action/transformer/activeRegion.js +52 -0
  319. package/esm/interaction/action/transformer/activeRegion.js.map +1 -0
  320. package/esm/interaction/action/transformer/button.d.ts +4 -0
  321. package/esm/interaction/action/transformer/button.js +76 -0
  322. package/esm/interaction/action/transformer/button.js.map +1 -0
  323. package/esm/interaction/action/transformer/cursor.d.ts +4 -0
  324. package/esm/interaction/action/transformer/cursor.js +15 -0
  325. package/esm/interaction/action/transformer/cursor.js.map +1 -0
  326. package/esm/interaction/action/transformer/filter.d.ts +7 -0
  327. package/esm/interaction/action/transformer/filter.js +45 -0
  328. package/esm/interaction/action/transformer/filter.js.map +1 -0
  329. package/esm/interaction/action/transformer/filterElement.d.ts +4 -0
  330. package/esm/interaction/action/transformer/filterElement.js +41 -0
  331. package/esm/interaction/action/transformer/filterElement.js.map +1 -0
  332. package/esm/interaction/action/transformer/highlightElement.d.ts +4 -0
  333. package/esm/interaction/action/transformer/highlightElement.js +48 -0
  334. package/esm/interaction/action/transformer/highlightElement.js.map +1 -0
  335. package/esm/interaction/action/transformer/mask.d.ts +7 -0
  336. package/esm/interaction/action/transformer/mask.js +106 -0
  337. package/esm/interaction/action/transformer/mask.js.map +1 -0
  338. package/esm/interaction/action/transformer/move.d.ts +7 -0
  339. package/esm/interaction/action/transformer/move.js +70 -0
  340. package/esm/interaction/action/transformer/move.js.map +1 -0
  341. package/esm/interaction/action/transformer/plot.d.ts +4 -0
  342. package/esm/interaction/action/transformer/plot.js +10 -0
  343. package/esm/interaction/action/transformer/plot.js.map +1 -0
  344. package/esm/interaction/action/transformer/poptip.d.ts +4 -0
  345. package/esm/interaction/action/transformer/poptip.js +39 -0
  346. package/esm/interaction/action/transformer/poptip.js.map +1 -0
  347. package/esm/interaction/action/transformer/setItemState.d.ts +4 -0
  348. package/esm/interaction/action/transformer/setItemState.js +31 -0
  349. package/esm/interaction/action/transformer/setItemState.js.map +1 -0
  350. package/esm/interaction/action/transformer/tooltip.d.ts +9 -0
  351. package/esm/interaction/action/transformer/tooltip.js +289 -0
  352. package/esm/interaction/action/transformer/tooltip.js.map +1 -0
  353. package/esm/interaction/builtin/activeRegion.d.ts +19 -0
  354. package/esm/interaction/builtin/activeRegion.js +18 -0
  355. package/esm/interaction/builtin/activeRegion.js.map +1 -0
  356. package/esm/interaction/builtin/brush.d.ts +132 -0
  357. package/esm/interaction/builtin/brush.js +93 -0
  358. package/esm/interaction/builtin/brush.js.map +1 -0
  359. package/esm/interaction/builtin/brushHighlight.d.ts +98 -0
  360. package/esm/interaction/builtin/brushHighlight.js +111 -0
  361. package/esm/interaction/builtin/brushHighlight.js.map +1 -0
  362. package/esm/interaction/builtin/brushVisible.d.ts +88 -0
  363. package/esm/interaction/builtin/brushVisible.js +62 -0
  364. package/esm/interaction/builtin/brushVisible.js.map +1 -0
  365. package/esm/interaction/builtin/elementActive.d.ts +22 -0
  366. package/esm/interaction/builtin/elementActive.js +25 -0
  367. package/esm/interaction/builtin/elementActive.js.map +1 -0
  368. package/esm/interaction/builtin/elementHighlight.d.ts +19 -0
  369. package/esm/interaction/builtin/elementHighlight.js +24 -0
  370. package/esm/interaction/builtin/elementHighlight.js.map +1 -0
  371. package/esm/interaction/builtin/elementHighlightByColor.d.ts +23 -0
  372. package/esm/interaction/builtin/elementHighlightByColor.js +24 -0
  373. package/esm/interaction/builtin/elementHighlightByColor.js.map +1 -0
  374. package/esm/interaction/builtin/elementHighlightByX.d.ts +23 -0
  375. package/esm/interaction/builtin/elementHighlightByX.js +24 -0
  376. package/esm/interaction/builtin/elementHighlightByX.js.map +1 -0
  377. package/esm/interaction/builtin/elementListHighlight.d.ts +43 -0
  378. package/esm/interaction/builtin/elementListHighlight.js +28 -0
  379. package/esm/interaction/builtin/elementListHighlight.js.map +1 -0
  380. package/esm/interaction/builtin/elementSelected.d.ts +20 -0
  381. package/esm/interaction/builtin/elementSelected.js +18 -0
  382. package/esm/interaction/builtin/elementSelected.js.map +1 -0
  383. package/esm/interaction/builtin/ellipsisText.d.ts +19 -0
  384. package/esm/interaction/builtin/ellipsisText.js +17 -0
  385. package/esm/interaction/builtin/ellipsisText.js.map +1 -0
  386. package/esm/interaction/builtin/fisheye.d.ts +35 -0
  387. package/esm/interaction/builtin/fisheye.js +20 -0
  388. package/esm/interaction/builtin/fisheye.js.map +1 -0
  389. package/esm/interaction/builtin/legendActive.d.ts +43 -0
  390. package/esm/interaction/builtin/legendActive.js +30 -0
  391. package/esm/interaction/builtin/legendActive.js.map +1 -0
  392. package/esm/interaction/builtin/legendHighlight.d.ts +43 -0
  393. package/esm/interaction/builtin/legendHighlight.js +30 -0
  394. package/esm/interaction/builtin/legendHighlight.js.map +1 -0
  395. package/esm/interaction/builtin/tooltip.d.ts +44 -0
  396. package/esm/interaction/builtin/tooltip.js +28 -0
  397. package/esm/interaction/builtin/tooltip.js.map +1 -0
  398. package/esm/interaction/create.d.ts +3 -0
  399. package/esm/interaction/create.js +96 -0
  400. package/esm/interaction/create.js.map +1 -0
  401. package/esm/interaction/index.d.ts +18 -25
  402. package/esm/interaction/index.js +18 -42
  403. package/esm/interaction/index.js.map +1 -1
  404. package/esm/interaction/interactor/index.d.ts +2 -0
  405. package/esm/interaction/interactor/index.js +3 -0
  406. package/esm/interaction/interactor/index.js.map +1 -0
  407. package/esm/interaction/interactor/mousePosition.d.ts +3 -0
  408. package/esm/interaction/interactor/mousePosition.js +10 -0
  409. package/esm/interaction/interactor/mousePosition.js.map +1 -0
  410. package/esm/interaction/interactor/touchPosition.d.ts +3 -0
  411. package/esm/interaction/interactor/touchPosition.js +10 -0
  412. package/esm/interaction/interactor/touchPosition.js.map +1 -0
  413. package/esm/interaction/stdlib.d.ts +2 -0
  414. package/esm/interaction/stdlib.js +32 -0
  415. package/esm/interaction/stdlib.js.map +1 -0
  416. package/esm/interaction/types.d.ts +57 -0
  417. package/esm/interaction/types.js +2 -0
  418. package/esm/interaction/types.js.map +1 -0
  419. package/esm/interaction/utils.d.ts +3 -0
  420. package/esm/interaction/utils.js +40 -0
  421. package/esm/interaction/utils.js.map +1 -0
  422. package/esm/labelLayout/hideOverlap.d.ts +2 -0
  423. package/esm/labelLayout/hideOverlap.js +38 -0
  424. package/esm/labelLayout/hideOverlap.js.map +1 -0
  425. package/esm/labelLayout/index.d.ts +1 -0
  426. package/esm/labelLayout/index.js +2 -0
  427. package/esm/labelLayout/index.js.map +1 -0
  428. package/esm/mark/annotation/connector.d.ts +4 -0
  429. package/esm/mark/annotation/connector.js +18 -0
  430. package/esm/mark/annotation/connector.js.map +1 -0
  431. package/esm/mark/annotation/index.d.ts +7 -0
  432. package/esm/mark/annotation/index.js +8 -0
  433. package/esm/mark/annotation/index.js.map +1 -0
  434. package/esm/mark/annotation/lineX.d.ts +4 -0
  435. package/esm/mark/annotation/lineX.js +21 -0
  436. package/esm/mark/annotation/lineX.js.map +1 -0
  437. package/esm/mark/annotation/lineY.d.ts +4 -0
  438. package/esm/mark/annotation/lineY.js +21 -0
  439. package/esm/mark/annotation/lineY.js.map +1 -0
  440. package/esm/mark/annotation/range.d.ts +8 -0
  441. package/esm/mark/annotation/range.js +44 -0
  442. package/esm/mark/annotation/range.js.map +1 -0
  443. package/esm/mark/annotation/rangeX.d.ts +4 -0
  444. package/esm/mark/annotation/rangeX.js +14 -0
  445. package/esm/mark/annotation/rangeX.js.map +1 -0
  446. package/esm/mark/annotation/rangeY.d.ts +4 -0
  447. package/esm/mark/annotation/rangeY.js +14 -0
  448. package/esm/mark/annotation/rangeY.js.map +1 -0
  449. package/esm/mark/annotation/text.d.ts +4 -0
  450. package/esm/mark/annotation/text.js +21 -0
  451. package/esm/mark/annotation/text.js.map +1 -0
  452. package/esm/mark/geometry/area.d.ts +4 -0
  453. package/esm/mark/geometry/area.js +70 -0
  454. package/esm/mark/geometry/area.js.map +1 -0
  455. package/esm/mark/geometry/edge.d.ts +13 -0
  456. package/esm/mark/geometry/edge.js +31 -0
  457. package/esm/mark/geometry/edge.js.map +1 -0
  458. package/esm/mark/geometry/grid.d.ts +9 -0
  459. package/esm/mark/geometry/grid.js +46 -0
  460. package/esm/mark/geometry/grid.js.map +1 -0
  461. package/esm/mark/geometry/image.d.ts +4 -0
  462. package/esm/mark/geometry/image.js +34 -0
  463. package/esm/mark/geometry/image.js.map +1 -0
  464. package/esm/mark/geometry/index.d.ts +13 -0
  465. package/esm/mark/geometry/index.js +14 -0
  466. package/esm/mark/geometry/index.js.map +1 -0
  467. package/esm/mark/geometry/interval.d.ts +12 -0
  468. package/esm/mark/geometry/interval.js +59 -0
  469. package/esm/mark/geometry/interval.js.map +1 -0
  470. package/esm/mark/geometry/line.d.ts +7 -0
  471. package/esm/mark/geometry/line.js +76 -0
  472. package/esm/mark/geometry/line.js.map +1 -0
  473. package/esm/mark/geometry/link.d.ts +7 -0
  474. package/esm/mark/geometry/link.js +33 -0
  475. package/esm/mark/geometry/link.js.map +1 -0
  476. package/esm/mark/geometry/node.d.ts +8 -0
  477. package/esm/mark/geometry/node.js +27 -0
  478. package/esm/mark/geometry/node.js.map +1 -0
  479. package/esm/mark/geometry/point.d.ts +10 -0
  480. package/esm/mark/geometry/point.js +71 -0
  481. package/esm/mark/geometry/point.js.map +1 -0
  482. package/esm/mark/geometry/polygon.d.ts +7 -0
  483. package/esm/mark/geometry/polygon.js +43 -0
  484. package/esm/mark/geometry/polygon.js.map +1 -0
  485. package/esm/mark/geometry/schema.d.ts +34 -0
  486. package/esm/mark/geometry/schema.js +90 -0
  487. package/esm/mark/geometry/schema.js.map +1 -0
  488. package/esm/mark/geometry/text.d.ts +4 -0
  489. package/esm/mark/geometry/text.js +35 -0
  490. package/esm/mark/geometry/text.js.map +1 -0
  491. package/esm/mark/geometry/vector.d.ts +8 -0
  492. package/esm/mark/geometry/vector.js +43 -0
  493. package/esm/mark/geometry/vector.js.map +1 -0
  494. package/esm/mark/utils.d.ts +8 -0
  495. package/esm/mark/utils.js +30 -0
  496. package/esm/mark/utils.js.map +1 -0
  497. package/esm/palette/category10.d.ts +7 -0
  498. package/esm/palette/category10.js +19 -0
  499. package/esm/palette/category10.js.map +1 -0
  500. package/esm/palette/category20.d.ts +7 -0
  501. package/esm/palette/category20.js +29 -0
  502. package/esm/palette/category20.js.map +1 -0
  503. package/esm/palette/index.d.ts +2 -0
  504. package/esm/palette/index.js +3 -0
  505. package/esm/palette/index.js.map +1 -0
  506. package/esm/renderer/canvas.d.ts +10 -0
  507. package/esm/renderer/canvas.js +18 -0
  508. package/esm/renderer/canvas.js.map +1 -0
  509. package/esm/renderer/index.d.ts +1 -0
  510. package/esm/renderer/index.js +2 -0
  511. package/esm/renderer/index.js.map +1 -0
  512. package/esm/runtime/component.d.ts +5 -0
  513. package/esm/runtime/component.js +140 -0
  514. package/esm/runtime/component.js.map +1 -0
  515. package/esm/runtime/coordinate.d.ts +11 -0
  516. package/esm/runtime/coordinate.js +50 -0
  517. package/esm/runtime/coordinate.js.map +1 -0
  518. package/esm/runtime/index.d.ts +8 -0
  519. package/esm/runtime/index.js +9 -0
  520. package/esm/runtime/index.js.map +1 -0
  521. package/esm/runtime/layout.d.ts +5 -0
  522. package/esm/runtime/layout.js +115 -0
  523. package/esm/runtime/layout.js.map +1 -0
  524. package/esm/runtime/library.d.ts +3 -0
  525. package/esm/runtime/library.js +26 -0
  526. package/esm/runtime/library.js.map +1 -0
  527. package/esm/runtime/mark.d.ts +6 -0
  528. package/esm/runtime/mark.js +127 -0
  529. package/esm/runtime/mark.js.map +1 -0
  530. package/esm/runtime/plot.d.ts +3 -0
  531. package/esm/runtime/plot.js +560 -0
  532. package/esm/runtime/plot.js.map +1 -0
  533. package/esm/runtime/render.d.ts +2 -0
  534. package/esm/runtime/render.js +67 -0
  535. package/esm/runtime/render.js.map +1 -0
  536. package/esm/runtime/scale.d.ts +8 -0
  537. package/esm/runtime/scale.js +335 -0
  538. package/esm/runtime/scale.js.map +1 -0
  539. package/esm/runtime/transform.d.ts +9 -0
  540. package/esm/runtime/transform.js +144 -0
  541. package/esm/runtime/transform.js.map +1 -0
  542. package/esm/runtime/types/common.d.ts +127 -0
  543. package/esm/runtime/types/common.js +2 -0
  544. package/esm/runtime/types/common.js.map +1 -0
  545. package/esm/runtime/types/component.d.ts +76 -0
  546. package/esm/runtime/types/component.js +2 -0
  547. package/esm/runtime/types/component.js.map +1 -0
  548. package/esm/runtime/types/data.d.ts +7 -0
  549. package/esm/runtime/types/data.js +2 -0
  550. package/esm/runtime/types/data.js.map +1 -0
  551. package/esm/runtime/types/encode.d.ts +23 -0
  552. package/esm/runtime/types/encode.js +2 -0
  553. package/esm/runtime/types/encode.js.map +1 -0
  554. package/esm/runtime/types/mark.d.ts +20 -0
  555. package/esm/runtime/types/mark.js +2 -0
  556. package/esm/runtime/types/mark.js.map +1 -0
  557. package/esm/runtime/types/options.d.ts +109 -0
  558. package/esm/runtime/types/options.js +2 -0
  559. package/esm/runtime/types/options.js.map +1 -0
  560. package/esm/runtime/types/transform.d.ts +17 -0
  561. package/esm/runtime/types/transform.js +2 -0
  562. package/esm/runtime/types/transform.js.map +1 -0
  563. package/esm/scale/band.d.ts +4 -0
  564. package/esm/scale/band.js +6 -0
  565. package/esm/scale/band.js.map +1 -0
  566. package/esm/scale/identity.d.ts +4 -0
  567. package/esm/scale/identity.js +6 -0
  568. package/esm/scale/identity.js.map +1 -0
  569. package/esm/scale/index.d.ts +11 -0
  570. package/esm/scale/index.js +12 -0
  571. package/esm/scale/index.js.map +1 -0
  572. package/esm/scale/linear.d.ts +4 -0
  573. package/esm/scale/linear.js +6 -0
  574. package/esm/scale/linear.js.map +1 -0
  575. package/esm/scale/log.d.ts +4 -0
  576. package/esm/scale/log.js +6 -0
  577. package/esm/scale/log.js.map +1 -0
  578. package/esm/scale/ordinal.d.ts +4 -0
  579. package/esm/scale/ordinal.js +6 -0
  580. package/esm/scale/ordinal.js.map +1 -0
  581. package/esm/scale/point.d.ts +4 -0
  582. package/esm/scale/point.js +6 -0
  583. package/esm/scale/point.js.map +1 -0
  584. package/esm/scale/pow.d.ts +4 -0
  585. package/esm/scale/pow.js +6 -0
  586. package/esm/scale/pow.js.map +1 -0
  587. package/esm/scale/quantile.d.ts +4 -0
  588. package/esm/scale/quantile.js +6 -0
  589. package/esm/scale/quantile.js.map +1 -0
  590. package/esm/scale/quantize.d.ts +4 -0
  591. package/esm/scale/quantize.js +6 -0
  592. package/esm/scale/quantize.js.map +1 -0
  593. package/esm/scale/threshold.d.ts +4 -0
  594. package/esm/scale/threshold.js +6 -0
  595. package/esm/scale/threshold.js.map +1 -0
  596. package/esm/scale/time.d.ts +4 -0
  597. package/esm/scale/time.js +6 -0
  598. package/esm/scale/time.js.map +1 -0
  599. package/esm/shape/annotation/badge.d.ts +14 -0
  600. package/esm/shape/annotation/badge.js +93 -0
  601. package/esm/shape/annotation/badge.js.map +1 -0
  602. package/esm/shape/annotation/connector.d.ts +15 -0
  603. package/esm/shape/annotation/connector.js +101 -0
  604. package/esm/shape/annotation/connector.js.map +1 -0
  605. package/esm/shape/annotation/line.d.ts +3 -0
  606. package/esm/shape/annotation/line.js +56 -0
  607. package/esm/shape/annotation/line.js.map +1 -0
  608. package/esm/shape/annotation/text.d.ts +20 -0
  609. package/esm/shape/annotation/text.js +162 -0
  610. package/esm/shape/annotation/text.js.map +1 -0
  611. package/esm/shape/area/area.d.ts +3 -0
  612. package/esm/shape/area/area.js +11 -0
  613. package/esm/shape/area/area.js.map +1 -0
  614. package/esm/shape/area/curveArea.d.ts +8 -0
  615. package/esm/shape/area/curveArea.js +60 -0
  616. package/esm/shape/area/curveArea.js.map +1 -0
  617. package/esm/shape/area/smoothArea.d.ts +5 -0
  618. package/esm/shape/area/smoothArea.js +23 -0
  619. package/esm/shape/area/smoothArea.js.map +1 -0
  620. package/esm/shape/edge/arc.d.ts +8 -0
  621. package/esm/shape/edge/arc.js +51 -0
  622. package/esm/shape/edge/arc.js.map +1 -0
  623. package/esm/shape/edge/edge.d.ts +6 -0
  624. package/esm/shape/edge/edge.js +11 -0
  625. package/esm/shape/edge/edge.js.map +1 -0
  626. package/esm/shape/edge/ribbon.d.ts +15 -0
  627. package/esm/shape/edge/ribbon.js +69 -0
  628. package/esm/shape/edge/ribbon.js.map +1 -0
  629. package/esm/shape/edge/smoothEdge.d.ts +6 -0
  630. package/esm/shape/edge/smoothEdge.js +39 -0
  631. package/esm/shape/edge/smoothEdge.js.map +1 -0
  632. package/esm/shape/edge/vhv.d.ts +12 -0
  633. package/esm/shape/edge/vhv.js +69 -0
  634. package/esm/shape/edge/vhv.js.map +1 -0
  635. package/esm/shape/image/image.d.ts +3 -0
  636. package/esm/shape/image/image.js +38 -0
  637. package/esm/shape/image/image.js.map +1 -0
  638. package/esm/shape/index.d.ts +48 -0
  639. package/esm/shape/index.js +50 -0
  640. package/esm/shape/index.js.map +1 -0
  641. package/esm/shape/interval/colorRect.d.ts +14 -0
  642. package/esm/shape/interval/colorRect.js +62 -0
  643. package/esm/shape/interval/colorRect.js.map +1 -0
  644. package/esm/shape/interval/funnel.d.ts +10 -0
  645. package/esm/shape/interval/funnel.js +43 -0
  646. package/esm/shape/interval/funnel.js.map +1 -0
  647. package/esm/shape/interval/hollowRect.d.ts +6 -0
  648. package/esm/shape/interval/hollowRect.js +9 -0
  649. package/esm/shape/interval/hollowRect.js.map +1 -0
  650. package/esm/shape/interval/pyramid.d.ts +6 -0
  651. package/esm/shape/interval/pyramid.js +38 -0
  652. package/esm/shape/interval/pyramid.js.map +1 -0
  653. package/esm/shape/interval/rect.d.ts +7 -0
  654. package/esm/shape/interval/rect.js +10 -0
  655. package/esm/shape/interval/rect.js.map +1 -0
  656. package/esm/shape/label/label.d.ts +7 -0
  657. package/esm/shape/label/label.js +100 -0
  658. package/esm/shape/label/label.js.map +1 -0
  659. package/esm/shape/line/curveLine.d.ts +8 -0
  660. package/esm/shape/line/curveLine.js +41 -0
  661. package/esm/shape/line/curveLine.js.map +1 -0
  662. package/esm/shape/line/hv.d.ts +3 -0
  663. package/esm/shape/line/hv.js +7 -0
  664. package/esm/shape/line/hv.js.map +1 -0
  665. package/esm/shape/line/hvh.d.ts +3 -0
  666. package/esm/shape/line/hvh.js +7 -0
  667. package/esm/shape/line/hvh.js.map +1 -0
  668. package/esm/shape/line/line.d.ts +3 -0
  669. package/esm/shape/line/line.js +7 -0
  670. package/esm/shape/line/line.js.map +1 -0
  671. package/esm/shape/line/smooth.d.ts +5 -0
  672. package/esm/shape/line/smooth.js +19 -0
  673. package/esm/shape/line/smooth.js.map +1 -0
  674. package/esm/shape/line/vh.d.ts +3 -0
  675. package/esm/shape/line/vh.js +7 -0
  676. package/esm/shape/line/vh.js.map +1 -0
  677. package/esm/shape/link/link.d.ts +13 -0
  678. package/esm/shape/link/link.js +49 -0
  679. package/esm/shape/link/link.js.map +1 -0
  680. package/esm/shape/node/point.d.ts +6 -0
  681. package/esm/shape/node/point.js +27 -0
  682. package/esm/shape/node/point.js.map +1 -0
  683. package/esm/shape/node/polygon.d.ts +3 -0
  684. package/esm/shape/node/polygon.js +8 -0
  685. package/esm/shape/node/polygon.js.map +1 -0
  686. package/esm/shape/point/bowtie.d.ts +6 -0
  687. package/esm/shape/point/bowtie.js +9 -0
  688. package/esm/shape/point/bowtie.js.map +1 -0
  689. package/esm/shape/point/colorPoint.d.ts +11 -0
  690. package/esm/shape/point/colorPoint.js +59 -0
  691. package/esm/shape/point/colorPoint.js.map +1 -0
  692. package/esm/shape/point/cross.d.ts +6 -0
  693. package/esm/shape/point/cross.js +9 -0
  694. package/esm/shape/point/cross.js.map +1 -0
  695. package/esm/shape/point/diamond.d.ts +6 -0
  696. package/esm/shape/point/diamond.js +9 -0
  697. package/esm/shape/point/diamond.js.map +1 -0
  698. package/esm/shape/point/hexagon.d.ts +6 -0
  699. package/esm/shape/point/hexagon.js +9 -0
  700. package/esm/shape/point/hexagon.js.map +1 -0
  701. package/esm/shape/point/hollowBowtie.d.ts +6 -0
  702. package/esm/shape/point/hollowBowtie.js +9 -0
  703. package/esm/shape/point/hollowBowtie.js.map +1 -0
  704. package/esm/shape/point/hollowDiamond.d.ts +6 -0
  705. package/esm/shape/point/hollowDiamond.js +9 -0
  706. package/esm/shape/point/hollowDiamond.js.map +1 -0
  707. package/esm/shape/point/hollowHexagon.d.ts +6 -0
  708. package/esm/shape/point/hollowHexagon.js +9 -0
  709. package/esm/shape/point/hollowHexagon.js.map +1 -0
  710. package/esm/shape/point/hollowPoint.d.ts +6 -0
  711. package/esm/shape/point/hollowPoint.js +9 -0
  712. package/esm/shape/point/hollowPoint.js.map +1 -0
  713. package/esm/shape/point/hollowSquare.d.ts +6 -0
  714. package/esm/shape/point/hollowSquare.js +9 -0
  715. package/esm/shape/point/hollowSquare.js.map +1 -0
  716. package/esm/shape/point/hollowTriangle.d.ts +6 -0
  717. package/esm/shape/point/hollowTriangle.js +9 -0
  718. package/esm/shape/point/hollowTriangle.js.map +1 -0
  719. package/esm/shape/point/hollowTriangleDown.d.ts +6 -0
  720. package/esm/shape/point/hollowTriangleDown.js +9 -0
  721. package/esm/shape/point/hollowTriangleDown.js.map +1 -0
  722. package/esm/shape/point/hyphen.d.ts +6 -0
  723. package/esm/shape/point/hyphen.js +9 -0
  724. package/esm/shape/point/hyphen.js.map +1 -0
  725. package/esm/shape/point/line.d.ts +6 -0
  726. package/esm/shape/point/line.js +9 -0
  727. package/esm/shape/point/line.js.map +1 -0
  728. package/esm/shape/point/plus.d.ts +6 -0
  729. package/esm/shape/point/plus.js +9 -0
  730. package/esm/shape/point/plus.js.map +1 -0
  731. package/esm/shape/point/point.d.ts +6 -0
  732. package/esm/shape/point/point.js +9 -0
  733. package/esm/shape/point/point.js.map +1 -0
  734. package/esm/shape/point/square.d.ts +6 -0
  735. package/esm/shape/point/square.js +9 -0
  736. package/esm/shape/point/square.js.map +1 -0
  737. package/esm/shape/point/symbol.d.ts +49 -0
  738. package/esm/shape/point/symbol.js +142 -0
  739. package/esm/shape/point/symbol.js.map +1 -0
  740. package/esm/shape/point/tick.d.ts +6 -0
  741. package/esm/shape/point/tick.js +9 -0
  742. package/esm/shape/point/tick.js.map +1 -0
  743. package/esm/shape/point/triangle.d.ts +6 -0
  744. package/esm/shape/point/triangle.js +9 -0
  745. package/esm/shape/point/triangle.js.map +1 -0
  746. package/esm/shape/point/triangleDown.d.ts +6 -0
  747. package/esm/shape/point/triangleDown.js +9 -0
  748. package/esm/shape/point/triangleDown.js.map +1 -0
  749. package/esm/shape/polygon/polygon.d.ts +3 -0
  750. package/esm/shape/polygon/polygon.js +67 -0
  751. package/esm/shape/polygon/polygon.js.map +1 -0
  752. package/esm/shape/schema/box.d.ts +3 -0
  753. package/esm/shape/schema/box.js +87 -0
  754. package/esm/shape/schema/box.js.map +1 -0
  755. package/esm/shape/text/text.d.ts +6 -0
  756. package/esm/shape/text/text.js +41 -0
  757. package/esm/shape/text/text.js.map +1 -0
  758. package/esm/shape/utils.d.ts +59 -0
  759. package/esm/shape/utils.js +90 -0
  760. package/esm/shape/utils.js.map +1 -0
  761. package/esm/shape/vector/vector.d.ts +13 -0
  762. package/esm/shape/vector/vector.js +48 -0
  763. package/esm/shape/vector/vector.js.map +1 -0
  764. package/esm/spec/action.d.ts +122 -0
  765. package/esm/spec/action.js +2 -0
  766. package/esm/spec/action.js.map +1 -0
  767. package/esm/spec/animate.d.ts +8 -0
  768. package/esm/spec/animate.js +2 -0
  769. package/esm/spec/animate.js.map +1 -0
  770. package/esm/spec/composition.d.ts +127 -0
  771. package/esm/spec/composition.js +2 -0
  772. package/esm/spec/composition.js.map +1 -0
  773. package/esm/spec/coordinate.d.ts +74 -0
  774. package/esm/spec/coordinate.js +2 -0
  775. package/esm/spec/coordinate.js.map +1 -0
  776. package/esm/spec/data.d.ts +54 -0
  777. package/esm/spec/data.js +2 -0
  778. package/esm/spec/data.js.map +1 -0
  779. package/esm/spec/encode.d.ts +23 -0
  780. package/esm/spec/encode.js +2 -0
  781. package/esm/spec/encode.js.map +1 -0
  782. package/esm/spec/geometry.d.ts +61 -0
  783. package/esm/spec/geometry.js +2 -0
  784. package/esm/spec/geometry.js.map +1 -0
  785. package/esm/spec/index.d.ts +17 -0
  786. package/esm/spec/index.js +13 -0
  787. package/esm/spec/index.js.map +1 -0
  788. package/esm/spec/interaction.d.ts +66 -0
  789. package/esm/spec/interaction.js +2 -0
  790. package/esm/spec/interaction.js.map +1 -0
  791. package/esm/spec/labelLayout.d.ts +4 -0
  792. package/esm/spec/labelLayout.js +2 -0
  793. package/esm/spec/labelLayout.js.map +1 -0
  794. package/esm/spec/palette.d.ts +13 -0
  795. package/esm/spec/palette.js +2 -0
  796. package/esm/spec/palette.js.map +1 -0
  797. package/esm/spec/scale.d.ts +27 -0
  798. package/esm/spec/scale.js +2 -0
  799. package/esm/spec/scale.js.map +1 -0
  800. package/esm/spec/theme.d.ts +12 -0
  801. package/esm/spec/theme.js +2 -0
  802. package/esm/spec/theme.js.map +1 -0
  803. package/esm/spec/title.d.ts +2 -0
  804. package/esm/spec/title.js +2 -0
  805. package/esm/spec/title.js.map +1 -0
  806. package/esm/spec/transform.d.ts +69 -0
  807. package/esm/spec/transform.js +135 -0
  808. package/esm/spec/transform.js.map +1 -0
  809. package/esm/stdlib/index.d.ts +2 -0
  810. package/esm/stdlib/index.js +196 -0
  811. package/esm/stdlib/index.js.map +1 -0
  812. package/esm/theme/index.d.ts +1 -12
  813. package/esm/theme/index.js +1 -22
  814. package/esm/theme/index.js.map +1 -1
  815. package/esm/theme/light.d.ts +7 -0
  816. package/esm/theme/light.js +31 -0
  817. package/esm/theme/light.js.map +1 -0
  818. package/esm/transform/Select.d.ts +9 -0
  819. package/esm/transform/Select.js +53 -0
  820. package/esm/transform/Select.js.map +1 -0
  821. package/esm/transform/SelectX.d.ts +7 -0
  822. package/esm/transform/SelectX.js +21 -0
  823. package/esm/transform/SelectX.js.map +1 -0
  824. package/esm/transform/SelectY.d.ts +7 -0
  825. package/esm/transform/SelectY.js +21 -0
  826. package/esm/transform/SelectY.js.map +1 -0
  827. package/esm/transform/dodgeX.d.ts +9 -0
  828. package/esm/transform/dodgeX.js +56 -0
  829. package/esm/transform/dodgeX.js.map +1 -0
  830. package/esm/transform/groupX.d.ts +9 -0
  831. package/esm/transform/groupX.js +89 -0
  832. package/esm/transform/groupX.js.map +1 -0
  833. package/esm/transform/index.d.ts +21 -0
  834. package/esm/transform/index.js +22 -0
  835. package/esm/transform/index.js.map +1 -0
  836. package/esm/transform/jitter.d.ts +9 -0
  837. package/esm/transform/jitter.js +36 -0
  838. package/esm/transform/jitter.js.map +1 -0
  839. package/esm/transform/jitterY.d.ts +8 -0
  840. package/esm/transform/jitterY.js +21 -0
  841. package/esm/transform/jitterY.js.map +1 -0
  842. package/esm/transform/maybeKey.d.ts +6 -0
  843. package/esm/transform/maybeKey.js +32 -0
  844. package/esm/transform/maybeKey.js.map +1 -0
  845. package/esm/transform/maybeSeries.d.ts +6 -0
  846. package/esm/transform/maybeSeries.js +17 -0
  847. package/esm/transform/maybeSeries.js.map +1 -0
  848. package/esm/transform/maybeSize.d.ts +7 -0
  849. package/esm/transform/maybeSize.js +20 -0
  850. package/esm/transform/maybeSize.js.map +1 -0
  851. package/esm/transform/maybeStackY.d.ts +9 -0
  852. package/esm/transform/maybeStackY.js +30 -0
  853. package/esm/transform/maybeStackY.js.map +1 -0
  854. package/esm/transform/maybeTitleX.d.ts +6 -0
  855. package/esm/transform/maybeTitleX.js +17 -0
  856. package/esm/transform/maybeTitleX.js.map +1 -0
  857. package/esm/transform/maybeTooltip.d.ts +8 -0
  858. package/esm/transform/maybeTooltip.js +29 -0
  859. package/esm/transform/maybeTooltip.js.map +1 -0
  860. package/esm/transform/maybeTooltipPosition.d.ts +7 -0
  861. package/esm/transform/maybeTooltipPosition.js +10 -0
  862. package/esm/transform/maybeTooltipPosition.js.map +1 -0
  863. package/esm/transform/maybeTooltipY.d.ts +6 -0
  864. package/esm/transform/maybeTooltipY.js +9 -0
  865. package/esm/transform/maybeTooltipY.js.map +1 -0
  866. package/esm/transform/maybeZeroX.d.ts +7 -0
  867. package/esm/transform/maybeZeroX.js +22 -0
  868. package/esm/transform/maybeZeroX.js.map +1 -0
  869. package/esm/transform/maybeZeroY.d.ts +6 -0
  870. package/esm/transform/maybeZeroY.js +21 -0
  871. package/esm/transform/maybeZeroY.js.map +1 -0
  872. package/esm/transform/maybeZeroY1.d.ts +6 -0
  873. package/esm/transform/maybeZeroY1.js +21 -0
  874. package/esm/transform/maybeZeroY1.js.map +1 -0
  875. package/esm/transform/normalizeY.d.ts +9 -0
  876. package/esm/transform/normalizeY.js +69 -0
  877. package/esm/transform/normalizeY.js.map +1 -0
  878. package/esm/transform/stackEnter.d.ts +13 -0
  879. package/esm/transform/stackEnter.js +62 -0
  880. package/esm/transform/stackEnter.js.map +1 -0
  881. package/esm/transform/stackY.d.ts +9 -0
  882. package/esm/transform/stackY.js +56 -0
  883. package/esm/transform/stackY.js.map +1 -0
  884. package/esm/transform/symmetryY.d.ts +8 -0
  885. package/esm/transform/symmetryY.js +60 -0
  886. package/esm/transform/symmetryY.js.map +1 -0
  887. package/esm/transform/utils/helper.d.ts +15 -0
  888. package/esm/transform/utils/helper.js +34 -0
  889. package/esm/transform/utils/helper.js.map +1 -0
  890. package/esm/transform/utils/order.d.ts +9 -0
  891. package/esm/transform/utils/order.js +72 -0
  892. package/esm/transform/utils/order.js.map +1 -0
  893. package/esm/utils/array.d.ts +14 -0
  894. package/esm/utils/array.js +42 -0
  895. package/esm/utils/array.js.map +1 -0
  896. package/esm/utils/container.d.ts +8 -0
  897. package/esm/utils/container.js +16 -0
  898. package/esm/utils/container.js.map +1 -0
  899. package/esm/utils/coordinate.d.ts +6 -0
  900. package/esm/utils/coordinate.js +24 -0
  901. package/esm/utils/coordinate.js.map +1 -0
  902. package/esm/utils/helper.d.ts +17 -0
  903. package/esm/utils/helper.js +63 -0
  904. package/esm/utils/helper.js.map +1 -0
  905. package/esm/utils/selection.d.ts +64 -0
  906. package/esm/utils/selection.js +285 -0
  907. package/esm/utils/selection.js.map +1 -0
  908. package/esm/utils/vector.d.ts +13 -0
  909. package/esm/utils/vector.js +42 -0
  910. package/esm/utils/vector.js.map +1 -0
  911. package/lib/adjust/index.d.ts +1 -0
  912. package/lib/adjust/index.js +6 -0
  913. package/lib/adjust/index.js.map +1 -0
  914. package/lib/adjust/pack.d.ts +8 -0
  915. package/lib/adjust/pack.js +59 -0
  916. package/lib/adjust/pack.js.map +1 -0
  917. package/lib/animation/fadeIn.d.ts +7 -0
  918. package/lib/animation/fadeIn.js +25 -0
  919. package/lib/animation/fadeIn.js.map +1 -0
  920. package/lib/animation/fadeOut.d.ts +7 -0
  921. package/lib/animation/fadeOut.js +25 -0
  922. package/lib/animation/fadeOut.js.map +1 -0
  923. package/lib/animation/index.d.ts +7 -0
  924. package/lib/animation/index.js +18 -0
  925. package/lib/animation/index.js.map +1 -0
  926. package/lib/animation/morphing.d.ts +13 -0
  927. package/lib/animation/morphing.js +164 -0
  928. package/lib/animation/morphing.js.map +1 -0
  929. package/lib/animation/scaleInX.d.ts +7 -0
  930. package/lib/animation/scaleInX.js +49 -0
  931. package/lib/animation/scaleInX.js.map +1 -0
  932. package/lib/animation/scaleInY.d.ts +7 -0
  933. package/lib/animation/scaleInY.js +49 -0
  934. package/lib/animation/scaleInY.js.map +1 -0
  935. package/lib/animation/scaleOutX.d.ts +7 -0
  936. package/lib/animation/scaleOutX.js +49 -0
  937. package/lib/animation/scaleOutX.js.map +1 -0
  938. package/lib/animation/scaleOutY.d.ts +7 -0
  939. package/lib/animation/scaleOutY.js +49 -0
  940. package/lib/animation/scaleOutY.js.map +1 -0
  941. package/lib/animation/utils.d.ts +2 -0
  942. package/lib/animation/utils.js +21 -0
  943. package/lib/animation/utils.js.map +1 -0
  944. package/lib/api/chart.d.ts +33 -0
  945. package/lib/api/chart.js +114 -0
  946. package/lib/api/chart.js.map +1 -0
  947. package/lib/api/composition/circle.d.ts +21 -0
  948. package/lib/api/composition/circle.js +33 -0
  949. package/lib/api/composition/circle.js.map +1 -0
  950. package/lib/api/composition/flex.d.ts +17 -0
  951. package/lib/api/composition/flex.js +29 -0
  952. package/lib/api/composition/flex.js.map +1 -0
  953. package/lib/api/composition/index.d.ts +26 -0
  954. package/lib/api/composition/index.js +36 -0
  955. package/lib/api/composition/index.js.map +1 -0
  956. package/lib/api/composition/keyframe.d.ts +17 -0
  957. package/lib/api/composition/keyframe.js +29 -0
  958. package/lib/api/composition/keyframe.js.map +1 -0
  959. package/lib/api/composition/layer.d.ts +14 -0
  960. package/lib/api/composition/layer.js +26 -0
  961. package/lib/api/composition/layer.js.map +1 -0
  962. package/lib/api/composition/matrix.d.ts +21 -0
  963. package/lib/api/composition/matrix.js +33 -0
  964. package/lib/api/composition/matrix.js.map +1 -0
  965. package/lib/api/composition/rect.d.ts +23 -0
  966. package/lib/api/composition/rect.js +35 -0
  967. package/lib/api/composition/rect.js.map +1 -0
  968. package/lib/api/composition/view.d.ts +20 -0
  969. package/lib/api/composition/view.js +33 -0
  970. package/lib/api/composition/view.js.map +1 -0
  971. package/lib/api/index.d.ts +2 -0
  972. package/lib/api/index.js +8 -0
  973. package/lib/api/index.js.map +1 -0
  974. package/lib/api/library.d.ts +3 -0
  975. package/lib/api/library.js +11 -0
  976. package/lib/api/library.js.map +1 -0
  977. package/lib/api/mark/index.d.ts +41 -0
  978. package/lib/api/mark/index.js +25 -0
  979. package/lib/api/mark/index.js.map +1 -0
  980. package/lib/api/mark/mark.d.ts +114 -0
  981. package/lib/api/mark/mark.js +193 -0
  982. package/lib/api/mark/mark.js.map +1 -0
  983. package/lib/api/mark/types.d.ts +21 -0
  984. package/lib/{util → api/mark}/types.js +0 -0
  985. package/lib/api/mark/types.js.map +1 -0
  986. package/lib/api/node.d.ts +31 -0
  987. package/lib/api/node.js +59 -0
  988. package/lib/api/node.js.map +1 -0
  989. package/lib/api/props.d.ts +12 -0
  990. package/lib/api/props.js +81 -0
  991. package/lib/api/props.js.map +1 -0
  992. package/lib/api/types.d.ts +10 -0
  993. package/lib/api/types.js +3 -0
  994. package/lib/api/types.js.map +1 -0
  995. package/lib/component/axis.d.ts +13 -0
  996. package/lib/component/axis.js +298 -0
  997. package/lib/component/axis.js.map +1 -0
  998. package/lib/component/axisX.d.ts +7 -0
  999. package/lib/component/axisX.js +13 -0
  1000. package/lib/component/axisX.js.map +1 -0
  1001. package/lib/component/axisY.d.ts +7 -0
  1002. package/lib/component/axisY.js +13 -0
  1003. package/lib/component/axisY.js.map +1 -0
  1004. package/lib/component/index.d.ts +5 -0
  1005. package/lib/component/index.js +14 -0
  1006. package/lib/component/index.js.map +1 -0
  1007. package/lib/component/legendCategory.d.ts +10 -0
  1008. package/lib/component/legendCategory.js +88 -0
  1009. package/lib/component/legendCategory.js.map +1 -0
  1010. package/lib/component/legendContinuous.d.ts +9 -0
  1011. package/lib/component/legendContinuous.js +42 -0
  1012. package/lib/component/legendContinuous.js.map +1 -0
  1013. package/lib/component/title.d.ts +6 -0
  1014. package/lib/component/title.js +58 -0
  1015. package/lib/component/title.js.map +1 -0
  1016. package/lib/component/utils.d.ts +8 -0
  1017. package/lib/component/utils.js +32 -0
  1018. package/lib/component/utils.js.map +1 -0
  1019. package/lib/composition/circle.d.ts +7 -0
  1020. package/lib/composition/circle.js +89 -0
  1021. package/lib/composition/circle.js.map +1 -0
  1022. package/lib/composition/flex.d.ts +7 -0
  1023. package/lib/composition/flex.js +44 -0
  1024. package/lib/composition/flex.js.map +1 -0
  1025. package/lib/composition/index.d.ts +8 -0
  1026. package/lib/composition/index.js +20 -0
  1027. package/lib/composition/index.js.map +1 -0
  1028. package/lib/composition/keyframe.d.ts +7 -0
  1029. package/lib/composition/keyframe.js +79 -0
  1030. package/lib/composition/keyframe.js.map +1 -0
  1031. package/lib/composition/layer.d.ts +7 -0
  1032. package/lib/composition/layer.js +36 -0
  1033. package/lib/composition/layer.js.map +1 -0
  1034. package/lib/composition/mark.d.ts +4 -0
  1035. package/lib/composition/mark.js +45 -0
  1036. package/lib/composition/mark.js.map +1 -0
  1037. package/lib/composition/matrix.d.ts +8 -0
  1038. package/lib/composition/matrix.js +155 -0
  1039. package/lib/composition/matrix.js.map +1 -0
  1040. package/lib/composition/rect.d.ts +30 -0
  1041. package/lib/composition/rect.js +291 -0
  1042. package/lib/composition/rect.js.map +1 -0
  1043. package/lib/composition/utils.d.ts +16 -0
  1044. package/lib/composition/utils.js +39 -0
  1045. package/lib/composition/utils.js.map +1 -0
  1046. package/lib/composition/view.d.ts +9 -0
  1047. package/lib/composition/view.js +37 -0
  1048. package/lib/composition/view.js.map +1 -0
  1049. package/lib/coordinate/cartesian.d.ts +7 -0
  1050. package/lib/coordinate/cartesian.js +10 -0
  1051. package/lib/coordinate/cartesian.js.map +1 -0
  1052. package/lib/coordinate/fisheye.d.ts +7 -0
  1053. package/lib/coordinate/fisheye.js +10 -0
  1054. package/lib/coordinate/fisheye.js.map +1 -0
  1055. package/lib/coordinate/fisheyeX.d.ts +7 -0
  1056. package/lib/coordinate/fisheyeX.js +10 -0
  1057. package/lib/coordinate/fisheyeX.js.map +1 -0
  1058. package/lib/coordinate/fisheyeY.d.ts +7 -0
  1059. package/lib/coordinate/fisheyeY.js +10 -0
  1060. package/lib/coordinate/fisheyeY.js.map +1 -0
  1061. package/lib/coordinate/helix.d.ts +7 -0
  1062. package/lib/coordinate/helix.js +15 -0
  1063. package/lib/coordinate/helix.js.map +1 -0
  1064. package/lib/coordinate/index.d.ts +12 -0
  1065. package/lib/coordinate/index.js +28 -0
  1066. package/lib/coordinate/index.js.map +1 -0
  1067. package/lib/coordinate/parallel.d.ts +7 -0
  1068. package/lib/coordinate/parallel.js +10 -0
  1069. package/lib/coordinate/parallel.js.map +1 -0
  1070. package/lib/coordinate/polar.d.ts +8 -0
  1071. package/lib/coordinate/polar.js +16 -0
  1072. package/lib/coordinate/polar.js.map +1 -0
  1073. package/lib/coordinate/reflect.d.ts +7 -0
  1074. package/lib/coordinate/reflect.js +14 -0
  1075. package/lib/coordinate/reflect.js.map +1 -0
  1076. package/lib/coordinate/reflectX.d.ts +7 -0
  1077. package/lib/coordinate/reflectX.js +14 -0
  1078. package/lib/coordinate/reflectX.js.map +1 -0
  1079. package/lib/coordinate/reflectY.d.ts +7 -0
  1080. package/lib/coordinate/reflectY.js +14 -0
  1081. package/lib/coordinate/reflectY.js.map +1 -0
  1082. package/lib/coordinate/theta.d.ts +7 -0
  1083. package/lib/coordinate/theta.js +15 -0
  1084. package/lib/coordinate/theta.js.map +1 -0
  1085. package/lib/coordinate/transpose.d.ts +7 -0
  1086. package/lib/coordinate/transpose.js +15 -0
  1087. package/lib/coordinate/transpose.js.map +1 -0
  1088. package/lib/data/arc.d.ts +0 -0
  1089. package/lib/data/arc.js +19 -0
  1090. package/lib/data/arc.js.map +1 -0
  1091. package/lib/data/cluster.d.ts +0 -0
  1092. package/lib/data/cluster.js +47 -0
  1093. package/lib/data/cluster.js.map +1 -0
  1094. package/lib/data/connector.d.ts +7 -0
  1095. package/lib/data/connector.js +13 -0
  1096. package/lib/data/connector.js.map +1 -0
  1097. package/lib/data/fetch.d.ts +4 -0
  1098. package/lib/data/fetch.js +31 -0
  1099. package/lib/data/fetch.js.map +1 -0
  1100. package/lib/data/filterBy.d.ts +8 -0
  1101. package/lib/data/filterBy.js +17 -0
  1102. package/lib/data/filterBy.js.map +1 -0
  1103. package/lib/data/fold.d.ts +10 -0
  1104. package/lib/data/fold.js +29 -0
  1105. package/lib/data/fold.js.map +1 -0
  1106. package/lib/data/index.d.ts +9 -0
  1107. package/lib/data/index.js +22 -0
  1108. package/lib/data/index.js.map +1 -0
  1109. package/lib/data/inline.d.ts +4 -0
  1110. package/lib/data/inline.js +10 -0
  1111. package/lib/data/inline.js.map +1 -0
  1112. package/lib/data/pick.d.ts +7 -0
  1113. package/lib/data/pick.js +14 -0
  1114. package/lib/data/pick.js.map +1 -0
  1115. package/lib/data/rename.d.ts +8 -0
  1116. package/lib/data/rename.js +22 -0
  1117. package/lib/data/rename.js.map +1 -0
  1118. package/lib/data/sankey.d.ts +0 -0
  1119. package/lib/data/sankey.js +96 -0
  1120. package/lib/data/sankey.js.map +1 -0
  1121. package/lib/data/sortBy.d.ts +7 -0
  1122. package/lib/data/sortBy.js +18 -0
  1123. package/lib/data/sortBy.js.map +1 -0
  1124. package/lib/data/subset.d.ts +7 -0
  1125. package/lib/data/subset.js +30 -0
  1126. package/lib/data/subset.js.map +1 -0
  1127. package/lib/data/tree.d.ts +0 -0
  1128. package/lib/data/tree.js +10 -0
  1129. package/lib/data/tree.js.map +1 -0
  1130. package/lib/data/utils/arc/arc.d.ts +8 -0
  1131. package/lib/data/utils/arc/arc.js +188 -0
  1132. package/lib/data/utils/arc/arc.js.map +1 -0
  1133. package/lib/data/utils/arc/index.d.ts +2 -0
  1134. package/lib/data/utils/arc/index.js +6 -0
  1135. package/lib/data/utils/arc/index.js.map +1 -0
  1136. package/lib/data/utils/arc/sort.d.ts +4 -0
  1137. package/lib/data/utils/arc/sort.js +20 -0
  1138. package/lib/data/utils/arc/sort.js.map +1 -0
  1139. package/lib/data/utils/arc/types.d.ts +26 -0
  1140. package/lib/data/utils/arc/types.js +3 -0
  1141. package/lib/data/utils/arc/types.js.map +1 -0
  1142. package/lib/data/utils/d3-cloud/index.d.ts +1 -0
  1143. package/lib/data/utils/d3-cloud/index.js +399 -0
  1144. package/lib/data/utils/d3-cloud/index.js.map +1 -0
  1145. package/lib/data/utils/d3-sankey/align.d.ts +4 -0
  1146. package/lib/data/utils/d3-sankey/align.js +28 -0
  1147. package/lib/data/utils/d3-sankey/align.js.map +1 -0
  1148. package/lib/data/utils/d3-sankey/constant.d.ts +1 -0
  1149. package/lib/data/utils/d3-sankey/constant.js +10 -0
  1150. package/lib/data/utils/d3-sankey/constant.js.map +1 -0
  1151. package/lib/data/utils/d3-sankey/index.d.ts +12 -0
  1152. package/lib/data/utils/d3-sankey/index.js +20 -0
  1153. package/lib/data/utils/d3-sankey/index.js.map +1 -0
  1154. package/lib/data/utils/d3-sankey/sankey.d.ts +24 -0
  1155. package/lib/data/utils/d3-sankey/sankey.js +392 -0
  1156. package/lib/data/utils/d3-sankey/sankey.js.map +1 -0
  1157. package/lib/data/utils/flow.d.ts +9 -0
  1158. package/lib/data/utils/flow.js +49 -0
  1159. package/lib/data/utils/flow.js.map +1 -0
  1160. package/lib/data/utils/memo.d.ts +17 -0
  1161. package/lib/data/utils/memo.js +85 -0
  1162. package/lib/data/utils/memo.js.map +1 -0
  1163. package/lib/data/voronoi.d.ts +0 -0
  1164. package/lib/data/voronoi.js +27 -0
  1165. package/lib/data/voronoi.js.map +1 -0
  1166. package/lib/data/wordCloud.d.ts +0 -0
  1167. package/lib/data/wordCloud.js +100 -0
  1168. package/lib/data/wordCloud.js.map +1 -0
  1169. package/lib/encode/column.d.ts +7 -0
  1170. package/lib/encode/column.js +12 -0
  1171. package/lib/encode/column.js.map +1 -0
  1172. package/lib/encode/constant.d.ts +7 -0
  1173. package/lib/encode/constant.js +12 -0
  1174. package/lib/encode/constant.js.map +1 -0
  1175. package/lib/encode/field.d.ts +7 -0
  1176. package/lib/encode/field.js +12 -0
  1177. package/lib/encode/field.js.map +1 -0
  1178. package/lib/encode/index.d.ts +4 -0
  1179. package/lib/encode/index.js +12 -0
  1180. package/lib/encode/index.js.map +1 -0
  1181. package/lib/encode/transform.d.ts +9 -0
  1182. package/lib/encode/transform.js +14 -0
  1183. package/lib/encode/transform.js.map +1 -0
  1184. package/lib/index.d.ts +4 -107
  1185. package/lib/index.js +21 -591
  1186. package/lib/index.js.map +1 -1
  1187. package/lib/interaction/action/index.d.ts +23 -2
  1188. package/lib/interaction/action/index.js +47 -10
  1189. package/lib/interaction/action/index.js.map +1 -1
  1190. package/lib/interaction/action/service/elementSelection.d.ts +4 -0
  1191. package/lib/interaction/action/service/elementSelection.js +94 -0
  1192. package/lib/interaction/action/service/elementSelection.js.map +1 -0
  1193. package/lib/interaction/action/service/fisheyeFocus.d.ts +4 -0
  1194. package/lib/interaction/action/service/fisheyeFocus.js +55 -0
  1195. package/lib/interaction/action/service/fisheyeFocus.js.map +1 -0
  1196. package/lib/interaction/action/service/legendItemSelection.d.ts +4 -0
  1197. package/lib/interaction/action/service/legendItemSelection.js +21 -0
  1198. package/lib/interaction/action/service/legendItemSelection.js.map +1 -0
  1199. package/lib/interaction/action/service/recordCurrentPoint.d.ts +4 -0
  1200. package/lib/interaction/action/service/recordCurrentPoint.js +20 -0
  1201. package/lib/interaction/action/service/recordCurrentPoint.js.map +1 -0
  1202. package/lib/interaction/action/service/recordPoint.d.ts +4 -0
  1203. package/lib/interaction/action/service/recordPoint.js +32 -0
  1204. package/lib/interaction/action/service/recordPoint.js.map +1 -0
  1205. package/lib/interaction/action/service/recordRegion.d.ts +4 -0
  1206. package/lib/interaction/action/service/recordRegion.js +34 -0
  1207. package/lib/interaction/action/service/recordRegion.js.map +1 -0
  1208. package/lib/interaction/action/service/recordState.d.ts +4 -0
  1209. package/lib/interaction/action/service/recordState.js +14 -0
  1210. package/lib/interaction/action/service/recordState.js.map +1 -0
  1211. package/lib/interaction/action/service/recordTip.d.ts +8 -0
  1212. package/lib/interaction/action/service/recordTip.js +19 -0
  1213. package/lib/interaction/action/service/recordTip.js.map +1 -0
  1214. package/lib/interaction/action/service/surfacePointSelection.d.ts +4 -0
  1215. package/lib/interaction/action/service/surfacePointSelection.js +23 -0
  1216. package/lib/interaction/action/service/surfacePointSelection.js.map +1 -0
  1217. package/lib/interaction/action/service/triggerInfoSelection.d.ts +4 -0
  1218. package/lib/interaction/action/service/triggerInfoSelection.js +22 -0
  1219. package/lib/interaction/action/service/triggerInfoSelection.js.map +1 -0
  1220. package/lib/interaction/action/transformer/activeElement.d.ts +4 -0
  1221. package/lib/interaction/action/transformer/activeElement.js +27 -0
  1222. package/lib/interaction/action/transformer/activeElement.js.map +1 -0
  1223. package/lib/interaction/action/transformer/activeRegion.d.ts +4 -0
  1224. package/lib/interaction/action/transformer/activeRegion.js +56 -0
  1225. package/lib/interaction/action/transformer/activeRegion.js.map +1 -0
  1226. package/lib/interaction/action/transformer/button.d.ts +4 -0
  1227. package/lib/interaction/action/transformer/button.js +80 -0
  1228. package/lib/interaction/action/transformer/button.js.map +1 -0
  1229. package/lib/interaction/action/transformer/cursor.d.ts +4 -0
  1230. package/lib/interaction/action/transformer/cursor.js +19 -0
  1231. package/lib/interaction/action/transformer/cursor.js.map +1 -0
  1232. package/lib/interaction/action/transformer/filter.d.ts +7 -0
  1233. package/lib/interaction/action/transformer/filter.js +49 -0
  1234. package/lib/interaction/action/transformer/filter.js.map +1 -0
  1235. package/lib/interaction/action/transformer/filterElement.d.ts +4 -0
  1236. package/lib/interaction/action/transformer/filterElement.js +45 -0
  1237. package/lib/interaction/action/transformer/filterElement.js.map +1 -0
  1238. package/lib/interaction/action/transformer/highlightElement.d.ts +4 -0
  1239. package/lib/interaction/action/transformer/highlightElement.js +52 -0
  1240. package/lib/interaction/action/transformer/highlightElement.js.map +1 -0
  1241. package/lib/interaction/action/transformer/mask.d.ts +7 -0
  1242. package/lib/interaction/action/transformer/mask.js +110 -0
  1243. package/lib/interaction/action/transformer/mask.js.map +1 -0
  1244. package/lib/interaction/action/transformer/move.d.ts +7 -0
  1245. package/lib/interaction/action/transformer/move.js +74 -0
  1246. package/lib/interaction/action/transformer/move.js.map +1 -0
  1247. package/lib/interaction/action/transformer/plot.d.ts +4 -0
  1248. package/lib/interaction/action/transformer/plot.js +14 -0
  1249. package/lib/interaction/action/transformer/plot.js.map +1 -0
  1250. package/lib/interaction/action/transformer/poptip.d.ts +4 -0
  1251. package/lib/interaction/action/transformer/poptip.js +43 -0
  1252. package/lib/interaction/action/transformer/poptip.js.map +1 -0
  1253. package/lib/interaction/action/transformer/setItemState.d.ts +4 -0
  1254. package/lib/interaction/action/transformer/setItemState.js +35 -0
  1255. package/lib/interaction/action/transformer/setItemState.js.map +1 -0
  1256. package/lib/interaction/action/transformer/tooltip.d.ts +9 -0
  1257. package/lib/interaction/action/transformer/tooltip.js +293 -0
  1258. package/lib/interaction/action/transformer/tooltip.js.map +1 -0
  1259. package/lib/interaction/builtin/activeRegion.d.ts +19 -0
  1260. package/lib/interaction/builtin/activeRegion.js +22 -0
  1261. package/lib/interaction/builtin/activeRegion.js.map +1 -0
  1262. package/lib/interaction/builtin/brush.d.ts +132 -0
  1263. package/lib/interaction/builtin/brush.js +97 -0
  1264. package/lib/interaction/builtin/brush.js.map +1 -0
  1265. package/lib/interaction/builtin/brushHighlight.d.ts +98 -0
  1266. package/lib/interaction/builtin/brushHighlight.js +115 -0
  1267. package/lib/interaction/builtin/brushHighlight.js.map +1 -0
  1268. package/lib/interaction/builtin/brushVisible.d.ts +88 -0
  1269. package/lib/interaction/builtin/brushVisible.js +66 -0
  1270. package/lib/interaction/builtin/brushVisible.js.map +1 -0
  1271. package/lib/interaction/builtin/elementActive.d.ts +22 -0
  1272. package/lib/interaction/builtin/elementActive.js +29 -0
  1273. package/lib/interaction/builtin/elementActive.js.map +1 -0
  1274. package/lib/interaction/builtin/elementHighlight.d.ts +19 -0
  1275. package/lib/interaction/builtin/elementHighlight.js +28 -0
  1276. package/lib/interaction/builtin/elementHighlight.js.map +1 -0
  1277. package/lib/interaction/builtin/elementHighlightByColor.d.ts +23 -0
  1278. package/lib/interaction/builtin/elementHighlightByColor.js +28 -0
  1279. package/lib/interaction/builtin/elementHighlightByColor.js.map +1 -0
  1280. package/lib/interaction/builtin/elementHighlightByX.d.ts +23 -0
  1281. package/lib/interaction/builtin/elementHighlightByX.js +28 -0
  1282. package/lib/interaction/builtin/elementHighlightByX.js.map +1 -0
  1283. package/lib/interaction/builtin/elementListHighlight.d.ts +43 -0
  1284. package/lib/interaction/builtin/elementListHighlight.js +32 -0
  1285. package/lib/interaction/builtin/elementListHighlight.js.map +1 -0
  1286. package/lib/interaction/builtin/elementSelected.d.ts +20 -0
  1287. package/lib/interaction/builtin/elementSelected.js +22 -0
  1288. package/lib/interaction/builtin/elementSelected.js.map +1 -0
  1289. package/lib/interaction/builtin/ellipsisText.d.ts +19 -0
  1290. package/lib/interaction/builtin/ellipsisText.js +21 -0
  1291. package/lib/interaction/builtin/ellipsisText.js.map +1 -0
  1292. package/lib/interaction/builtin/fisheye.d.ts +35 -0
  1293. package/lib/interaction/builtin/fisheye.js +24 -0
  1294. package/lib/interaction/builtin/fisheye.js.map +1 -0
  1295. package/lib/interaction/builtin/legendActive.d.ts +43 -0
  1296. package/lib/interaction/builtin/legendActive.js +34 -0
  1297. package/lib/interaction/builtin/legendActive.js.map +1 -0
  1298. package/lib/interaction/builtin/legendHighlight.d.ts +43 -0
  1299. package/lib/interaction/builtin/legendHighlight.js +34 -0
  1300. package/lib/interaction/builtin/legendHighlight.js.map +1 -0
  1301. package/lib/interaction/builtin/tooltip.d.ts +44 -0
  1302. package/lib/interaction/builtin/tooltip.js +32 -0
  1303. package/lib/interaction/builtin/tooltip.js.map +1 -0
  1304. package/lib/interaction/create.d.ts +3 -0
  1305. package/lib/interaction/create.js +100 -0
  1306. package/lib/interaction/create.js.map +1 -0
  1307. package/lib/interaction/index.d.ts +18 -25
  1308. package/lib/interaction/index.js +50 -51
  1309. package/lib/interaction/index.js.map +1 -1
  1310. package/lib/interaction/interactor/index.d.ts +2 -0
  1311. package/lib/interaction/interactor/index.js +8 -0
  1312. package/lib/interaction/interactor/index.js.map +1 -0
  1313. package/lib/interaction/interactor/mousePosition.d.ts +3 -0
  1314. package/lib/interaction/interactor/mousePosition.js +14 -0
  1315. package/lib/interaction/interactor/mousePosition.js.map +1 -0
  1316. package/lib/interaction/interactor/touchPosition.d.ts +3 -0
  1317. package/lib/interaction/interactor/touchPosition.js +14 -0
  1318. package/lib/interaction/interactor/touchPosition.js.map +1 -0
  1319. package/lib/interaction/stdlib.d.ts +2 -0
  1320. package/lib/interaction/stdlib.js +36 -0
  1321. package/lib/interaction/stdlib.js.map +1 -0
  1322. package/lib/interaction/types.d.ts +57 -0
  1323. package/lib/interaction/types.js +3 -0
  1324. package/lib/interaction/types.js.map +1 -0
  1325. package/lib/interaction/utils.d.ts +3 -0
  1326. package/lib/interaction/utils.js +45 -0
  1327. package/lib/interaction/utils.js.map +1 -0
  1328. package/lib/labelLayout/hideOverlap.d.ts +2 -0
  1329. package/lib/labelLayout/hideOverlap.js +42 -0
  1330. package/lib/labelLayout/hideOverlap.js.map +1 -0
  1331. package/lib/labelLayout/index.d.ts +1 -0
  1332. package/lib/labelLayout/index.js +6 -0
  1333. package/lib/labelLayout/index.js.map +1 -0
  1334. package/lib/mark/annotation/connector.d.ts +4 -0
  1335. package/lib/mark/annotation/connector.js +22 -0
  1336. package/lib/mark/annotation/connector.js.map +1 -0
  1337. package/lib/mark/annotation/index.d.ts +7 -0
  1338. package/lib/mark/annotation/index.js +18 -0
  1339. package/lib/mark/annotation/index.js.map +1 -0
  1340. package/lib/mark/annotation/lineX.d.ts +4 -0
  1341. package/lib/mark/annotation/lineX.js +25 -0
  1342. package/lib/mark/annotation/lineX.js.map +1 -0
  1343. package/lib/mark/annotation/lineY.d.ts +4 -0
  1344. package/lib/mark/annotation/lineY.js +25 -0
  1345. package/lib/mark/annotation/lineY.js.map +1 -0
  1346. package/lib/mark/annotation/range.d.ts +8 -0
  1347. package/lib/mark/annotation/range.js +49 -0
  1348. package/lib/mark/annotation/range.js.map +1 -0
  1349. package/lib/mark/annotation/rangeX.d.ts +4 -0
  1350. package/lib/mark/annotation/rangeX.js +18 -0
  1351. package/lib/mark/annotation/rangeX.js.map +1 -0
  1352. package/lib/mark/annotation/rangeY.d.ts +4 -0
  1353. package/lib/mark/annotation/rangeY.js +18 -0
  1354. package/lib/mark/annotation/rangeY.js.map +1 -0
  1355. package/lib/mark/annotation/text.d.ts +4 -0
  1356. package/lib/mark/annotation/text.js +25 -0
  1357. package/lib/mark/annotation/text.js.map +1 -0
  1358. package/lib/mark/geometry/area.d.ts +4 -0
  1359. package/lib/mark/geometry/area.js +74 -0
  1360. package/lib/mark/geometry/area.js.map +1 -0
  1361. package/lib/mark/geometry/edge.d.ts +13 -0
  1362. package/lib/mark/geometry/edge.js +35 -0
  1363. package/lib/mark/geometry/edge.js.map +1 -0
  1364. package/lib/mark/geometry/grid.d.ts +9 -0
  1365. package/lib/mark/geometry/grid.js +50 -0
  1366. package/lib/mark/geometry/grid.js.map +1 -0
  1367. package/lib/mark/geometry/image.d.ts +4 -0
  1368. package/lib/mark/geometry/image.js +38 -0
  1369. package/lib/mark/geometry/image.js.map +1 -0
  1370. package/lib/mark/geometry/index.d.ts +13 -0
  1371. package/lib/mark/geometry/index.js +30 -0
  1372. package/lib/mark/geometry/index.js.map +1 -0
  1373. package/lib/mark/geometry/interval.d.ts +12 -0
  1374. package/lib/mark/geometry/interval.js +63 -0
  1375. package/lib/mark/geometry/interval.js.map +1 -0
  1376. package/lib/mark/geometry/line.d.ts +7 -0
  1377. package/lib/mark/geometry/line.js +80 -0
  1378. package/lib/mark/geometry/line.js.map +1 -0
  1379. package/lib/mark/geometry/link.d.ts +7 -0
  1380. package/lib/mark/geometry/link.js +37 -0
  1381. package/lib/mark/geometry/link.js.map +1 -0
  1382. package/lib/mark/geometry/node.d.ts +8 -0
  1383. package/lib/mark/geometry/node.js +31 -0
  1384. package/lib/mark/geometry/node.js.map +1 -0
  1385. package/lib/mark/geometry/point.d.ts +10 -0
  1386. package/lib/mark/geometry/point.js +75 -0
  1387. package/lib/mark/geometry/point.js.map +1 -0
  1388. package/lib/mark/geometry/polygon.d.ts +7 -0
  1389. package/lib/mark/geometry/polygon.js +47 -0
  1390. package/lib/mark/geometry/polygon.js.map +1 -0
  1391. package/lib/mark/geometry/schema.d.ts +34 -0
  1392. package/lib/mark/geometry/schema.js +94 -0
  1393. package/lib/mark/geometry/schema.js.map +1 -0
  1394. package/lib/mark/geometry/text.d.ts +4 -0
  1395. package/lib/mark/geometry/text.js +39 -0
  1396. package/lib/mark/geometry/text.js.map +1 -0
  1397. package/lib/mark/geometry/vector.d.ts +8 -0
  1398. package/lib/mark/geometry/vector.js +47 -0
  1399. package/lib/mark/geometry/vector.js.map +1 -0
  1400. package/lib/mark/utils.d.ts +8 -0
  1401. package/lib/mark/utils.js +38 -0
  1402. package/lib/mark/utils.js.map +1 -0
  1403. package/lib/palette/category10.d.ts +7 -0
  1404. package/lib/palette/category10.js +23 -0
  1405. package/lib/palette/category10.js.map +1 -0
  1406. package/lib/palette/category20.d.ts +7 -0
  1407. package/lib/palette/category20.js +33 -0
  1408. package/lib/palette/category20.js.map +1 -0
  1409. package/lib/palette/index.d.ts +2 -0
  1410. package/lib/palette/index.js +8 -0
  1411. package/lib/palette/index.js.map +1 -0
  1412. package/lib/renderer/canvas.d.ts +10 -0
  1413. package/lib/renderer/canvas.js +22 -0
  1414. package/lib/renderer/canvas.js.map +1 -0
  1415. package/lib/renderer/index.d.ts +1 -0
  1416. package/lib/renderer/index.js +6 -0
  1417. package/lib/renderer/index.js.map +1 -0
  1418. package/lib/runtime/component.d.ts +5 -0
  1419. package/lib/runtime/component.js +145 -0
  1420. package/lib/runtime/component.js.map +1 -0
  1421. package/lib/runtime/coordinate.d.ts +11 -0
  1422. package/lib/runtime/coordinate.js +61 -0
  1423. package/lib/runtime/coordinate.js.map +1 -0
  1424. package/lib/runtime/index.d.ts +8 -0
  1425. package/lib/runtime/index.js +27 -0
  1426. package/lib/runtime/index.js.map +1 -0
  1427. package/lib/runtime/layout.d.ts +5 -0
  1428. package/lib/runtime/layout.js +120 -0
  1429. package/lib/runtime/layout.js.map +1 -0
  1430. package/lib/runtime/library.d.ts +3 -0
  1431. package/lib/runtime/library.js +30 -0
  1432. package/lib/runtime/library.js.map +1 -0
  1433. package/lib/runtime/mark.d.ts +6 -0
  1434. package/lib/runtime/mark.js +132 -0
  1435. package/lib/runtime/mark.js.map +1 -0
  1436. package/lib/runtime/plot.d.ts +3 -0
  1437. package/lib/runtime/plot.js +564 -0
  1438. package/lib/runtime/plot.js.map +1 -0
  1439. package/lib/runtime/render.d.ts +2 -0
  1440. package/lib/runtime/render.js +71 -0
  1441. package/lib/runtime/render.js.map +1 -0
  1442. package/lib/runtime/scale.d.ts +8 -0
  1443. package/lib/runtime/scale.js +342 -0
  1444. package/lib/runtime/scale.js.map +1 -0
  1445. package/lib/runtime/transform.d.ts +9 -0
  1446. package/lib/runtime/transform.js +154 -0
  1447. package/lib/runtime/transform.js.map +1 -0
  1448. package/lib/runtime/types/common.d.ts +127 -0
  1449. package/lib/runtime/types/common.js +3 -0
  1450. package/lib/runtime/types/common.js.map +1 -0
  1451. package/lib/runtime/types/component.d.ts +76 -0
  1452. package/lib/runtime/types/component.js +3 -0
  1453. package/lib/runtime/types/component.js.map +1 -0
  1454. package/lib/runtime/types/data.d.ts +7 -0
  1455. package/lib/runtime/types/data.js +3 -0
  1456. package/lib/runtime/types/data.js.map +1 -0
  1457. package/lib/runtime/types/encode.d.ts +23 -0
  1458. package/lib/runtime/types/encode.js +3 -0
  1459. package/lib/runtime/types/encode.js.map +1 -0
  1460. package/lib/runtime/types/mark.d.ts +20 -0
  1461. package/lib/runtime/types/mark.js +3 -0
  1462. package/lib/runtime/types/mark.js.map +1 -0
  1463. package/lib/runtime/types/options.d.ts +109 -0
  1464. package/lib/runtime/types/options.js +3 -0
  1465. package/lib/runtime/types/options.js.map +1 -0
  1466. package/lib/runtime/types/transform.d.ts +17 -0
  1467. package/lib/runtime/types/transform.js +3 -0
  1468. package/lib/runtime/types/transform.js.map +1 -0
  1469. package/lib/scale/band.d.ts +4 -0
  1470. package/lib/scale/band.js +10 -0
  1471. package/lib/scale/band.js.map +1 -0
  1472. package/lib/scale/identity.d.ts +4 -0
  1473. package/lib/scale/identity.js +10 -0
  1474. package/lib/scale/identity.js.map +1 -0
  1475. package/lib/scale/index.d.ts +11 -0
  1476. package/lib/scale/index.js +26 -0
  1477. package/lib/scale/index.js.map +1 -0
  1478. package/lib/scale/linear.d.ts +4 -0
  1479. package/lib/scale/linear.js +10 -0
  1480. package/lib/scale/linear.js.map +1 -0
  1481. package/lib/scale/log.d.ts +4 -0
  1482. package/lib/scale/log.js +10 -0
  1483. package/lib/scale/log.js.map +1 -0
  1484. package/lib/scale/ordinal.d.ts +4 -0
  1485. package/lib/scale/ordinal.js +10 -0
  1486. package/lib/scale/ordinal.js.map +1 -0
  1487. package/lib/scale/point.d.ts +4 -0
  1488. package/lib/scale/point.js +10 -0
  1489. package/lib/scale/point.js.map +1 -0
  1490. package/lib/scale/pow.d.ts +4 -0
  1491. package/lib/scale/pow.js +10 -0
  1492. package/lib/scale/pow.js.map +1 -0
  1493. package/lib/scale/quantile.d.ts +4 -0
  1494. package/lib/scale/quantile.js +10 -0
  1495. package/lib/scale/quantile.js.map +1 -0
  1496. package/lib/scale/quantize.d.ts +4 -0
  1497. package/lib/scale/quantize.js +10 -0
  1498. package/lib/scale/quantize.js.map +1 -0
  1499. package/lib/scale/threshold.d.ts +4 -0
  1500. package/lib/scale/threshold.js +10 -0
  1501. package/lib/scale/threshold.js.map +1 -0
  1502. package/lib/scale/time.d.ts +4 -0
  1503. package/lib/scale/time.js +10 -0
  1504. package/lib/scale/time.js.map +1 -0
  1505. package/lib/shape/annotation/badge.d.ts +14 -0
  1506. package/lib/shape/annotation/badge.js +97 -0
  1507. package/lib/shape/annotation/badge.js.map +1 -0
  1508. package/lib/shape/annotation/connector.d.ts +15 -0
  1509. package/lib/shape/annotation/connector.js +105 -0
  1510. package/lib/shape/annotation/connector.js.map +1 -0
  1511. package/lib/shape/annotation/line.d.ts +3 -0
  1512. package/lib/shape/annotation/line.js +60 -0
  1513. package/lib/shape/annotation/line.js.map +1 -0
  1514. package/lib/shape/annotation/text.d.ts +20 -0
  1515. package/lib/shape/annotation/text.js +166 -0
  1516. package/lib/shape/annotation/text.js.map +1 -0
  1517. package/lib/shape/area/area.d.ts +3 -0
  1518. package/lib/shape/area/area.js +15 -0
  1519. package/lib/shape/area/area.js.map +1 -0
  1520. package/lib/shape/area/curveArea.d.ts +8 -0
  1521. package/lib/shape/area/curveArea.js +64 -0
  1522. package/lib/shape/area/curveArea.js.map +1 -0
  1523. package/lib/shape/area/smoothArea.d.ts +5 -0
  1524. package/lib/shape/area/smoothArea.js +27 -0
  1525. package/lib/shape/area/smoothArea.js.map +1 -0
  1526. package/lib/shape/edge/arc.d.ts +8 -0
  1527. package/lib/shape/edge/arc.js +55 -0
  1528. package/lib/shape/edge/arc.js.map +1 -0
  1529. package/lib/shape/edge/edge.d.ts +6 -0
  1530. package/lib/shape/edge/edge.js +15 -0
  1531. package/lib/shape/edge/edge.js.map +1 -0
  1532. package/lib/shape/edge/ribbon.d.ts +15 -0
  1533. package/lib/shape/edge/ribbon.js +73 -0
  1534. package/lib/shape/edge/ribbon.js.map +1 -0
  1535. package/lib/shape/edge/smoothEdge.d.ts +6 -0
  1536. package/lib/shape/edge/smoothEdge.js +43 -0
  1537. package/lib/shape/edge/smoothEdge.js.map +1 -0
  1538. package/lib/shape/edge/vhv.d.ts +12 -0
  1539. package/lib/shape/edge/vhv.js +73 -0
  1540. package/lib/shape/edge/vhv.js.map +1 -0
  1541. package/lib/shape/image/image.d.ts +3 -0
  1542. package/lib/shape/image/image.js +42 -0
  1543. package/lib/shape/image/image.js.map +1 -0
  1544. package/lib/shape/index.d.ts +48 -0
  1545. package/lib/shape/index.js +101 -0
  1546. package/lib/shape/index.js.map +1 -0
  1547. package/lib/shape/interval/colorRect.d.ts +14 -0
  1548. package/lib/shape/interval/colorRect.js +66 -0
  1549. package/lib/shape/interval/colorRect.js.map +1 -0
  1550. package/lib/shape/interval/funnel.d.ts +10 -0
  1551. package/lib/shape/interval/funnel.js +47 -0
  1552. package/lib/shape/interval/funnel.js.map +1 -0
  1553. package/lib/shape/interval/hollowRect.d.ts +6 -0
  1554. package/lib/shape/interval/hollowRect.js +13 -0
  1555. package/lib/shape/interval/hollowRect.js.map +1 -0
  1556. package/lib/shape/interval/pyramid.d.ts +6 -0
  1557. package/lib/shape/interval/pyramid.js +42 -0
  1558. package/lib/shape/interval/pyramid.js.map +1 -0
  1559. package/lib/shape/interval/rect.d.ts +7 -0
  1560. package/lib/shape/interval/rect.js +14 -0
  1561. package/lib/shape/interval/rect.js.map +1 -0
  1562. package/lib/shape/label/label.d.ts +7 -0
  1563. package/lib/shape/label/label.js +104 -0
  1564. package/lib/shape/label/label.js.map +1 -0
  1565. package/lib/shape/line/curveLine.d.ts +8 -0
  1566. package/lib/shape/line/curveLine.js +45 -0
  1567. package/lib/shape/line/curveLine.js.map +1 -0
  1568. package/lib/shape/line/hv.d.ts +3 -0
  1569. package/lib/shape/line/hv.js +11 -0
  1570. package/lib/shape/line/hv.js.map +1 -0
  1571. package/lib/shape/line/hvh.d.ts +3 -0
  1572. package/lib/shape/line/hvh.js +11 -0
  1573. package/lib/shape/line/hvh.js.map +1 -0
  1574. package/lib/shape/line/line.d.ts +3 -0
  1575. package/lib/shape/line/line.js +11 -0
  1576. package/lib/shape/line/line.js.map +1 -0
  1577. package/lib/shape/line/smooth.d.ts +5 -0
  1578. package/lib/shape/line/smooth.js +23 -0
  1579. package/lib/shape/line/smooth.js.map +1 -0
  1580. package/lib/shape/line/vh.d.ts +3 -0
  1581. package/lib/shape/line/vh.js +11 -0
  1582. package/lib/shape/line/vh.js.map +1 -0
  1583. package/lib/shape/link/link.d.ts +13 -0
  1584. package/lib/shape/link/link.js +53 -0
  1585. package/lib/shape/link/link.js.map +1 -0
  1586. package/lib/shape/node/point.d.ts +6 -0
  1587. package/lib/shape/node/point.js +31 -0
  1588. package/lib/shape/node/point.js.map +1 -0
  1589. package/lib/shape/node/polygon.d.ts +3 -0
  1590. package/lib/shape/node/polygon.js +12 -0
  1591. package/lib/shape/node/polygon.js.map +1 -0
  1592. package/lib/shape/point/bowtie.d.ts +6 -0
  1593. package/lib/shape/point/bowtie.js +13 -0
  1594. package/lib/shape/point/bowtie.js.map +1 -0
  1595. package/lib/shape/point/colorPoint.d.ts +11 -0
  1596. package/lib/shape/point/colorPoint.js +86 -0
  1597. package/lib/shape/point/colorPoint.js.map +1 -0
  1598. package/lib/shape/point/cross.d.ts +6 -0
  1599. package/lib/shape/point/cross.js +13 -0
  1600. package/lib/shape/point/cross.js.map +1 -0
  1601. package/lib/shape/point/diamond.d.ts +6 -0
  1602. package/lib/shape/point/diamond.js +13 -0
  1603. package/lib/shape/point/diamond.js.map +1 -0
  1604. package/lib/shape/point/hexagon.d.ts +6 -0
  1605. package/lib/shape/point/hexagon.js +13 -0
  1606. package/lib/shape/point/hexagon.js.map +1 -0
  1607. package/lib/shape/point/hollowBowtie.d.ts +6 -0
  1608. package/lib/shape/point/hollowBowtie.js +13 -0
  1609. package/lib/shape/point/hollowBowtie.js.map +1 -0
  1610. package/lib/shape/point/hollowDiamond.d.ts +6 -0
  1611. package/lib/shape/point/hollowDiamond.js +13 -0
  1612. package/lib/shape/point/hollowDiamond.js.map +1 -0
  1613. package/lib/shape/point/hollowHexagon.d.ts +6 -0
  1614. package/lib/shape/point/hollowHexagon.js +13 -0
  1615. package/lib/shape/point/hollowHexagon.js.map +1 -0
  1616. package/lib/shape/point/hollowPoint.d.ts +6 -0
  1617. package/lib/shape/point/hollowPoint.js +13 -0
  1618. package/lib/shape/point/hollowPoint.js.map +1 -0
  1619. package/lib/shape/point/hollowSquare.d.ts +6 -0
  1620. package/lib/shape/point/hollowSquare.js +13 -0
  1621. package/lib/shape/point/hollowSquare.js.map +1 -0
  1622. package/lib/shape/point/hollowTriangle.d.ts +6 -0
  1623. package/lib/shape/point/hollowTriangle.js +13 -0
  1624. package/lib/shape/point/hollowTriangle.js.map +1 -0
  1625. package/lib/shape/point/hollowTriangleDown.d.ts +6 -0
  1626. package/lib/shape/point/hollowTriangleDown.js +13 -0
  1627. package/lib/shape/point/hollowTriangleDown.js.map +1 -0
  1628. package/lib/shape/point/hyphen.d.ts +6 -0
  1629. package/lib/shape/point/hyphen.js +13 -0
  1630. package/lib/shape/point/hyphen.js.map +1 -0
  1631. package/lib/shape/point/line.d.ts +6 -0
  1632. package/lib/shape/point/line.js +13 -0
  1633. package/lib/shape/point/line.js.map +1 -0
  1634. package/lib/shape/point/plus.d.ts +6 -0
  1635. package/lib/shape/point/plus.js +13 -0
  1636. package/lib/shape/point/plus.js.map +1 -0
  1637. package/lib/shape/point/point.d.ts +6 -0
  1638. package/lib/shape/point/point.js +13 -0
  1639. package/lib/shape/point/point.js.map +1 -0
  1640. package/lib/shape/point/square.d.ts +6 -0
  1641. package/lib/shape/point/square.js +13 -0
  1642. package/lib/shape/point/square.js.map +1 -0
  1643. package/lib/shape/point/symbol.d.ts +49 -0
  1644. package/lib/shape/point/symbol.js +157 -0
  1645. package/lib/shape/point/symbol.js.map +1 -0
  1646. package/lib/shape/point/tick.d.ts +6 -0
  1647. package/lib/shape/point/tick.js +13 -0
  1648. package/lib/shape/point/tick.js.map +1 -0
  1649. package/lib/shape/point/triangle.d.ts +6 -0
  1650. package/lib/shape/point/triangle.js +13 -0
  1651. package/lib/shape/point/triangle.js.map +1 -0
  1652. package/lib/shape/point/triangleDown.d.ts +6 -0
  1653. package/lib/shape/point/triangleDown.js +13 -0
  1654. package/lib/shape/point/triangleDown.js.map +1 -0
  1655. package/lib/shape/polygon/polygon.d.ts +3 -0
  1656. package/lib/shape/polygon/polygon.js +71 -0
  1657. package/lib/shape/polygon/polygon.js.map +1 -0
  1658. package/lib/shape/schema/box.d.ts +3 -0
  1659. package/lib/shape/schema/box.js +91 -0
  1660. package/lib/shape/schema/box.js.map +1 -0
  1661. package/lib/shape/text/text.d.ts +6 -0
  1662. package/lib/shape/text/text.js +45 -0
  1663. package/lib/shape/text/text.js.map +1 -0
  1664. package/lib/shape/utils.d.ts +59 -0
  1665. package/lib/shape/utils.js +99 -0
  1666. package/lib/shape/utils.js.map +1 -0
  1667. package/lib/shape/vector/vector.d.ts +13 -0
  1668. package/lib/shape/vector/vector.js +52 -0
  1669. package/lib/shape/vector/vector.js.map +1 -0
  1670. package/lib/spec/action.d.ts +122 -0
  1671. package/lib/spec/action.js +3 -0
  1672. package/lib/spec/action.js.map +1 -0
  1673. package/lib/spec/animate.d.ts +8 -0
  1674. package/lib/spec/animate.js +3 -0
  1675. package/lib/spec/animate.js.map +1 -0
  1676. package/lib/spec/composition.d.ts +127 -0
  1677. package/lib/spec/composition.js +3 -0
  1678. package/lib/spec/composition.js.map +1 -0
  1679. package/lib/spec/coordinate.d.ts +74 -0
  1680. package/lib/spec/coordinate.js +3 -0
  1681. package/lib/spec/coordinate.js.map +1 -0
  1682. package/lib/spec/data.d.ts +54 -0
  1683. package/lib/spec/data.js +3 -0
  1684. package/lib/spec/data.js.map +1 -0
  1685. package/lib/spec/encode.d.ts +23 -0
  1686. package/lib/spec/encode.js +3 -0
  1687. package/lib/spec/encode.js.map +1 -0
  1688. package/lib/spec/geometry.d.ts +61 -0
  1689. package/lib/spec/geometry.js +3 -0
  1690. package/lib/spec/geometry.js.map +1 -0
  1691. package/lib/spec/index.d.ts +17 -0
  1692. package/lib/spec/index.js +29 -0
  1693. package/lib/spec/index.js.map +1 -0
  1694. package/lib/spec/interaction.d.ts +66 -0
  1695. package/lib/spec/interaction.js +3 -0
  1696. package/lib/spec/interaction.js.map +1 -0
  1697. package/lib/spec/labelLayout.d.ts +4 -0
  1698. package/lib/spec/labelLayout.js +3 -0
  1699. package/lib/spec/labelLayout.js.map +1 -0
  1700. package/lib/spec/palette.d.ts +13 -0
  1701. package/lib/spec/palette.js +3 -0
  1702. package/lib/spec/palette.js.map +1 -0
  1703. package/lib/spec/scale.d.ts +27 -0
  1704. package/lib/spec/scale.js +3 -0
  1705. package/lib/spec/scale.js.map +1 -0
  1706. package/lib/spec/theme.d.ts +12 -0
  1707. package/lib/spec/theme.js +3 -0
  1708. package/lib/spec/theme.js.map +1 -0
  1709. package/lib/spec/title.d.ts +2 -0
  1710. package/lib/spec/title.js +3 -0
  1711. package/lib/spec/title.js.map +1 -0
  1712. package/lib/spec/transform.d.ts +69 -0
  1713. package/lib/spec/transform.js +136 -0
  1714. package/lib/spec/transform.js.map +1 -0
  1715. package/lib/stdlib/index.d.ts +2 -0
  1716. package/lib/stdlib/index.js +200 -0
  1717. package/lib/stdlib/index.js.map +1 -0
  1718. package/lib/theme/index.d.ts +1 -12
  1719. package/lib/theme/index.js +3 -25
  1720. package/lib/theme/index.js.map +1 -1
  1721. package/lib/theme/light.d.ts +7 -0
  1722. package/lib/theme/light.js +35 -0
  1723. package/lib/theme/light.js.map +1 -0
  1724. package/lib/transform/Select.d.ts +9 -0
  1725. package/lib/transform/Select.js +57 -0
  1726. package/lib/transform/Select.js.map +1 -0
  1727. package/lib/transform/SelectX.d.ts +7 -0
  1728. package/lib/transform/SelectX.js +25 -0
  1729. package/lib/transform/SelectX.js.map +1 -0
  1730. package/lib/transform/SelectY.d.ts +7 -0
  1731. package/lib/transform/SelectY.js +25 -0
  1732. package/lib/transform/SelectY.js.map +1 -0
  1733. package/lib/transform/dodgeX.d.ts +9 -0
  1734. package/lib/transform/dodgeX.js +60 -0
  1735. package/lib/transform/dodgeX.js.map +1 -0
  1736. package/lib/transform/groupX.d.ts +9 -0
  1737. package/lib/transform/groupX.js +93 -0
  1738. package/lib/transform/groupX.js.map +1 -0
  1739. package/lib/transform/index.d.ts +21 -0
  1740. package/lib/transform/index.js +46 -0
  1741. package/lib/transform/index.js.map +1 -0
  1742. package/lib/transform/jitter.d.ts +9 -0
  1743. package/lib/transform/jitter.js +41 -0
  1744. package/lib/transform/jitter.js.map +1 -0
  1745. package/lib/transform/jitterY.d.ts +8 -0
  1746. package/lib/transform/jitterY.js +25 -0
  1747. package/lib/transform/jitterY.js.map +1 -0
  1748. package/lib/transform/maybeKey.d.ts +6 -0
  1749. package/lib/transform/maybeKey.js +36 -0
  1750. package/lib/transform/maybeKey.js.map +1 -0
  1751. package/lib/transform/maybeSeries.d.ts +6 -0
  1752. package/lib/transform/maybeSeries.js +21 -0
  1753. package/lib/transform/maybeSeries.js.map +1 -0
  1754. package/lib/transform/maybeSize.d.ts +7 -0
  1755. package/lib/transform/maybeSize.js +24 -0
  1756. package/lib/transform/maybeSize.js.map +1 -0
  1757. package/lib/transform/maybeStackY.d.ts +9 -0
  1758. package/lib/transform/maybeStackY.js +34 -0
  1759. package/lib/transform/maybeStackY.js.map +1 -0
  1760. package/lib/transform/maybeTitleX.d.ts +6 -0
  1761. package/lib/transform/maybeTitleX.js +21 -0
  1762. package/lib/transform/maybeTitleX.js.map +1 -0
  1763. package/lib/transform/maybeTooltip.d.ts +8 -0
  1764. package/lib/transform/maybeTooltip.js +33 -0
  1765. package/lib/transform/maybeTooltip.js.map +1 -0
  1766. package/lib/transform/maybeTooltipPosition.d.ts +7 -0
  1767. package/lib/transform/maybeTooltipPosition.js +14 -0
  1768. package/lib/transform/maybeTooltipPosition.js.map +1 -0
  1769. package/lib/transform/maybeTooltipY.d.ts +6 -0
  1770. package/lib/transform/maybeTooltipY.js +13 -0
  1771. package/lib/transform/maybeTooltipY.js.map +1 -0
  1772. package/lib/transform/maybeZeroX.d.ts +7 -0
  1773. package/lib/transform/maybeZeroX.js +26 -0
  1774. package/lib/transform/maybeZeroX.js.map +1 -0
  1775. package/lib/transform/maybeZeroY.d.ts +6 -0
  1776. package/lib/transform/maybeZeroY.js +25 -0
  1777. package/lib/transform/maybeZeroY.js.map +1 -0
  1778. package/lib/transform/maybeZeroY1.d.ts +6 -0
  1779. package/lib/transform/maybeZeroY1.js +25 -0
  1780. package/lib/transform/maybeZeroY1.js.map +1 -0
  1781. package/lib/transform/normalizeY.d.ts +9 -0
  1782. package/lib/transform/normalizeY.js +73 -0
  1783. package/lib/transform/normalizeY.js.map +1 -0
  1784. package/lib/transform/stackEnter.d.ts +13 -0
  1785. package/lib/transform/stackEnter.js +66 -0
  1786. package/lib/transform/stackEnter.js.map +1 -0
  1787. package/lib/transform/stackY.d.ts +9 -0
  1788. package/lib/transform/stackY.js +60 -0
  1789. package/lib/transform/stackY.js.map +1 -0
  1790. package/lib/transform/symmetryY.d.ts +8 -0
  1791. package/lib/transform/symmetryY.js +64 -0
  1792. package/lib/transform/symmetryY.js.map +1 -0
  1793. package/lib/transform/utils/helper.d.ts +15 -0
  1794. package/lib/transform/utils/helper.js +42 -0
  1795. package/lib/transform/utils/helper.js.map +1 -0
  1796. package/lib/transform/utils/order.d.ts +9 -0
  1797. package/lib/transform/utils/order.js +79 -0
  1798. package/lib/transform/utils/order.js.map +1 -0
  1799. package/lib/utils/array.d.ts +14 -0
  1800. package/lib/utils/array.js +52 -0
  1801. package/lib/utils/array.js.map +1 -0
  1802. package/lib/utils/container.d.ts +8 -0
  1803. package/lib/utils/container.js +19 -0
  1804. package/lib/utils/container.js.map +1 -0
  1805. package/lib/utils/coordinate.d.ts +6 -0
  1806. package/lib/utils/coordinate.js +32 -0
  1807. package/lib/utils/coordinate.js.map +1 -0
  1808. package/lib/utils/helper.d.ts +17 -0
  1809. package/lib/utils/helper.js +76 -0
  1810. package/lib/utils/helper.js.map +1 -0
  1811. package/lib/utils/selection.d.ts +64 -0
  1812. package/lib/utils/selection.js +290 -0
  1813. package/lib/utils/selection.js.map +1 -0
  1814. package/lib/utils/vector.d.ts +13 -0
  1815. package/lib/utils/vector.js +51 -0
  1816. package/lib/utils/vector.js.map +1 -0
  1817. package/package.json +86 -120
  1818. package/src/adjust/index.ts +1 -0
  1819. package/src/adjust/pack.ts +67 -0
  1820. package/src/animation/fadeIn.ts +28 -0
  1821. package/src/animation/fadeOut.ts +26 -0
  1822. package/src/animation/index.ts +7 -0
  1823. package/src/animation/morphing.ts +211 -0
  1824. package/src/animation/scaleInX.ts +64 -0
  1825. package/src/animation/scaleInY.ts +64 -0
  1826. package/src/animation/scaleOutX.ts +64 -0
  1827. package/src/animation/scaleOutY.ts +64 -0
  1828. package/src/animation/utils.ts +26 -0
  1829. package/src/api/chart.ts +135 -0
  1830. package/src/api/composition/circle.ts +43 -0
  1831. package/src/api/composition/flex.ts +30 -0
  1832. package/src/api/composition/index.ts +39 -0
  1833. package/src/api/composition/keyframe.ts +30 -0
  1834. package/src/api/composition/layer.ts +24 -0
  1835. package/src/api/composition/matrix.ts +43 -0
  1836. package/src/api/composition/rect.ts +47 -0
  1837. package/src/api/composition/view.ts +42 -0
  1838. package/src/api/index.ts +2 -0
  1839. package/src/api/library.ts +12 -0
  1840. package/src/api/mark/index.ts +62 -0
  1841. package/src/api/mark/mark.ts +249 -0
  1842. package/src/api/mark/types.ts +22 -0
  1843. package/src/api/node.ts +79 -0
  1844. package/src/api/props.ts +86 -0
  1845. package/src/api/types.ts +20 -0
  1846. package/src/component/axis.ts +391 -0
  1847. package/src/component/axisX.ts +16 -0
  1848. package/src/component/axisY.ts +16 -0
  1849. package/src/component/index.ts +5 -0
  1850. package/src/component/legendCategory.ts +99 -0
  1851. package/src/component/legendContinuous.ts +54 -0
  1852. package/src/component/title.ts +76 -0
  1853. package/src/component/utils.ts +38 -0
  1854. package/src/composition/circle.ts +102 -0
  1855. package/src/composition/flex.ts +49 -0
  1856. package/src/composition/index.ts +8 -0
  1857. package/src/composition/keyframe.ts +90 -0
  1858. package/src/composition/layer.ts +26 -0
  1859. package/src/composition/mark.ts +55 -0
  1860. package/src/composition/matrix.ts +170 -0
  1861. package/src/composition/rect.ts +339 -0
  1862. package/src/composition/utils.ts +27 -0
  1863. package/src/composition/view.ts +28 -0
  1864. package/src/coordinate/cartesian.ts +11 -0
  1865. package/src/coordinate/fisheye.ts +17 -0
  1866. package/src/coordinate/fisheyeX.ts +15 -0
  1867. package/src/coordinate/fisheyeY.ts +15 -0
  1868. package/src/coordinate/helix.ts +21 -0
  1869. package/src/coordinate/index.ts +12 -0
  1870. package/src/coordinate/parallel.ts +11 -0
  1871. package/src/coordinate/polar.ts +22 -0
  1872. package/src/coordinate/reflect.ts +15 -0
  1873. package/src/coordinate/reflectX.ts +15 -0
  1874. package/src/coordinate/reflectY.ts +15 -0
  1875. package/src/coordinate/theta.ts +21 -0
  1876. package/src/coordinate/transpose.ts +16 -0
  1877. package/src/data/arc.ts +21 -0
  1878. package/src/data/cluster.ts +56 -0
  1879. package/src/data/connector.ts +14 -0
  1880. package/src/data/fetch.ts +23 -0
  1881. package/src/data/filterBy.ts +19 -0
  1882. package/src/data/fold.ts +29 -0
  1883. package/src/data/index.ts +9 -0
  1884. package/src/data/inline.ts +11 -0
  1885. package/src/data/pick.ts +15 -0
  1886. package/src/data/rename.ts +26 -0
  1887. package/src/data/sankey.ts +105 -0
  1888. package/src/data/sortBy.ts +23 -0
  1889. package/src/data/subset.ts +35 -0
  1890. package/src/data/tree.ts +12 -0
  1891. package/src/data/utils/arc/arc.ts +210 -0
  1892. package/src/data/utils/arc/index.ts +2 -0
  1893. package/src/data/utils/arc/sort.ts +15 -0
  1894. package/src/data/utils/arc/types.ts +27 -0
  1895. package/src/data/utils/d3-cloud/index.ts +499 -0
  1896. package/src/data/utils/d3-sankey/align.ts +25 -0
  1897. package/src/data/utils/d3-sankey/constant.ts +5 -0
  1898. package/src/data/utils/d3-sankey/index.ts +12 -0
  1899. package/src/data/utils/d3-sankey/sankey.ts +436 -0
  1900. package/src/data/utils/flow.ts +36 -0
  1901. package/src/data/utils/memo.ts +80 -0
  1902. package/src/data/voronoi.ts +30 -0
  1903. package/src/data/wordCloud.ts +115 -0
  1904. package/src/encode/column.ts +13 -0
  1905. package/src/encode/constant.ts +13 -0
  1906. package/src/encode/field.ts +13 -0
  1907. package/src/encode/index.ts +4 -0
  1908. package/src/encode/transform.ts +15 -0
  1909. package/src/index.ts +4 -738
  1910. package/src/interaction/action/index.ts +47 -2
  1911. package/src/interaction/action/service/elementSelection.ts +125 -0
  1912. package/src/interaction/action/service/fisheyeFocus.ts +75 -0
  1913. package/src/interaction/action/service/legendItemSelection.ts +34 -0
  1914. package/src/interaction/action/service/recordCurrentPoint.ts +22 -0
  1915. package/src/interaction/action/service/recordPoint.ts +35 -0
  1916. package/src/interaction/action/service/recordRegion.ts +41 -0
  1917. package/src/interaction/action/service/recordState.ts +15 -0
  1918. package/src/interaction/action/service/recordTip.ts +20 -0
  1919. package/src/interaction/action/service/surfacePointSelection.ts +28 -0
  1920. package/src/interaction/action/service/triggerInfoSelection.ts +33 -0
  1921. package/src/interaction/action/transformer/activeElement.ts +32 -0
  1922. package/src/interaction/action/transformer/activeRegion.ts +73 -0
  1923. package/src/interaction/action/transformer/button.ts +113 -0
  1924. package/src/interaction/action/transformer/cursor.ts +21 -0
  1925. package/src/interaction/action/transformer/filter.ts +57 -0
  1926. package/src/interaction/action/transformer/filterElement.ts +54 -0
  1927. package/src/interaction/action/transformer/highlightElement.ts +61 -0
  1928. package/src/interaction/action/transformer/mask.ts +115 -0
  1929. package/src/interaction/action/transformer/move.ts +76 -0
  1930. package/src/interaction/action/transformer/plot.ts +15 -0
  1931. package/src/interaction/action/transformer/poptip.ts +51 -0
  1932. package/src/interaction/action/transformer/setItemState.ts +39 -0
  1933. package/src/interaction/action/transformer/tooltip.ts +404 -0
  1934. package/src/interaction/builtin/activeRegion.ts +25 -0
  1935. package/src/interaction/builtin/brush.ts +99 -0
  1936. package/src/interaction/builtin/brushHighlight.ts +122 -0
  1937. package/src/interaction/builtin/brushVisible.ts +69 -0
  1938. package/src/interaction/builtin/elementActive.ts +32 -0
  1939. package/src/interaction/builtin/elementHighlight.ts +31 -0
  1940. package/src/interaction/builtin/elementHighlightByColor.ts +35 -0
  1941. package/src/interaction/builtin/elementHighlightByX.ts +35 -0
  1942. package/src/interaction/builtin/elementListHighlight.ts +39 -0
  1943. package/src/interaction/builtin/elementSelected.ts +25 -0
  1944. package/src/interaction/builtin/ellipsisText.ts +24 -0
  1945. package/src/interaction/builtin/fisheye.ts +25 -0
  1946. package/src/interaction/builtin/legendActive.ts +37 -0
  1947. package/src/interaction/builtin/legendHighlight.ts +37 -0
  1948. package/src/interaction/builtin/tooltip.ts +33 -0
  1949. package/src/interaction/create.ts +153 -0
  1950. package/src/interaction/index.ts +18 -48
  1951. package/src/interaction/interactor/index.ts +2 -0
  1952. package/src/interaction/interactor/mousePosition.ts +13 -0
  1953. package/src/interaction/interactor/touchPosition.ts +13 -0
  1954. package/src/interaction/stdlib.ts +57 -0
  1955. package/src/interaction/types.ts +80 -0
  1956. package/src/interaction/utils.ts +65 -0
  1957. package/src/labelLayout/hideOverlap.ts +47 -0
  1958. package/src/labelLayout/index.ts +1 -0
  1959. package/src/mark/annotation/connector.ts +27 -0
  1960. package/src/mark/annotation/index.ts +25 -0
  1961. package/src/mark/annotation/lineX.ts +31 -0
  1962. package/src/mark/annotation/lineY.ts +31 -0
  1963. package/src/mark/annotation/range.ts +55 -0
  1964. package/src/mark/annotation/rangeX.ts +23 -0
  1965. package/src/mark/annotation/rangeY.ts +23 -0
  1966. package/src/mark/annotation/text.ts +30 -0
  1967. package/src/mark/geometry/area.ts +85 -0
  1968. package/src/mark/geometry/edge.ts +40 -0
  1969. package/src/mark/geometry/grid.ts +56 -0
  1970. package/src/mark/geometry/image.ts +41 -0
  1971. package/src/mark/geometry/index.ts +13 -0
  1972. package/src/mark/geometry/interval.ts +71 -0
  1973. package/src/mark/geometry/line.ts +94 -0
  1974. package/src/mark/geometry/link.ts +44 -0
  1975. package/src/mark/geometry/node.ts +36 -0
  1976. package/src/mark/geometry/point.ts +80 -0
  1977. package/src/mark/geometry/polygon.ts +54 -0
  1978. package/src/mark/geometry/schema.ts +105 -0
  1979. package/src/mark/geometry/text.ts +43 -0
  1980. package/src/mark/geometry/vector.ts +56 -0
  1981. package/src/mark/utils.ts +35 -0
  1982. package/src/palette/category10.ts +24 -0
  1983. package/src/palette/category20.ts +34 -0
  1984. package/src/palette/index.ts +2 -0
  1985. package/src/renderer/canvas.ts +27 -0
  1986. package/src/renderer/index.ts +1 -0
  1987. package/src/runtime/component.ts +209 -0
  1988. package/src/runtime/coordinate.ts +71 -0
  1989. package/src/runtime/index.ts +8 -0
  1990. package/src/runtime/layout.ts +180 -0
  1991. package/src/runtime/library.ts +27 -0
  1992. package/src/runtime/mark.ts +183 -0
  1993. package/src/runtime/plot.ts +839 -0
  1994. package/src/runtime/render.ts +80 -0
  1995. package/src/runtime/scale.ts +453 -0
  1996. package/src/runtime/transform.ts +159 -0
  1997. package/src/runtime/types/common.ts +158 -0
  1998. package/src/runtime/types/component.ts +223 -0
  1999. package/src/runtime/types/data.ts +10 -0
  2000. package/src/runtime/types/encode.ts +36 -0
  2001. package/src/runtime/types/mark.ts +31 -0
  2002. package/src/runtime/types/options.ts +164 -0
  2003. package/src/runtime/types/transform.ts +29 -0
  2004. package/src/scale/band.ts +11 -0
  2005. package/src/scale/identity.ts +11 -0
  2006. package/src/scale/index.ts +11 -0
  2007. package/src/scale/linear.ts +11 -0
  2008. package/src/scale/log.ts +11 -0
  2009. package/src/scale/ordinal.ts +11 -0
  2010. package/src/scale/point.ts +12 -0
  2011. package/src/scale/pow.ts +11 -0
  2012. package/src/scale/quantile.ts +11 -0
  2013. package/src/scale/quantize.ts +11 -0
  2014. package/src/scale/threshold.ts +11 -0
  2015. package/src/scale/time.ts +11 -0
  2016. package/src/shape/annotation/badge.ts +114 -0
  2017. package/src/shape/annotation/connector.ts +138 -0
  2018. package/src/shape/annotation/line.ts +55 -0
  2019. package/src/shape/annotation/text.ts +224 -0
  2020. package/src/shape/area/area.ts +17 -0
  2021. package/src/shape/area/curveArea.ts +61 -0
  2022. package/src/shape/area/smoothArea.ts +25 -0
  2023. package/src/shape/edge/arc.ts +46 -0
  2024. package/src/shape/edge/edge.ts +15 -0
  2025. package/src/shape/edge/ribbon.ts +93 -0
  2026. package/src/shape/edge/smoothEdge.ts +41 -0
  2027. package/src/shape/edge/vhv.ts +85 -0
  2028. package/src/shape/image/image.ts +33 -0
  2029. package/src/shape/index.ts +66 -0
  2030. package/src/shape/interval/colorRect.ts +62 -0
  2031. package/src/shape/interval/funnel.ts +58 -0
  2032. package/src/shape/interval/hollowRect.ts +15 -0
  2033. package/src/shape/interval/pyramid.ts +50 -0
  2034. package/src/shape/interval/rect.ts +16 -0
  2035. package/src/shape/label/label.ts +116 -0
  2036. package/src/shape/line/curveLine.ts +44 -0
  2037. package/src/shape/line/hv.ts +13 -0
  2038. package/src/shape/line/hvh.ts +13 -0
  2039. package/src/shape/line/line.ts +13 -0
  2040. package/src/shape/line/smooth.ts +16 -0
  2041. package/src/shape/line/vh.ts +13 -0
  2042. package/src/shape/link/link.ts +51 -0
  2043. package/src/shape/node/point.ts +32 -0
  2044. package/src/shape/node/polygon.ts +12 -0
  2045. package/src/shape/point/bowtie.ts +15 -0
  2046. package/src/shape/point/colorPoint.ts +65 -0
  2047. package/src/shape/point/cross.ts +15 -0
  2048. package/src/shape/point/diamond.ts +15 -0
  2049. package/src/shape/point/hexagon.ts +15 -0
  2050. package/src/shape/point/hollowBowtie.ts +15 -0
  2051. package/src/shape/point/hollowDiamond.ts +19 -0
  2052. package/src/shape/point/hollowHexagon.ts +19 -0
  2053. package/src/shape/point/hollowPoint.ts +15 -0
  2054. package/src/shape/point/hollowSquare.ts +15 -0
  2055. package/src/shape/point/hollowTriangle.ts +19 -0
  2056. package/src/shape/point/hollowTriangleDown.ts +19 -0
  2057. package/src/shape/point/hyphen.ts +15 -0
  2058. package/src/shape/point/line.ts +15 -0
  2059. package/src/shape/point/plus.ts +15 -0
  2060. package/src/shape/point/point.ts +15 -0
  2061. package/src/shape/point/square.ts +15 -0
  2062. package/src/shape/point/symbol.ts +153 -0
  2063. package/src/shape/point/tick.ts +15 -0
  2064. package/src/shape/point/triangle.ts +15 -0
  2065. package/src/shape/point/triangleDown.ts +19 -0
  2066. package/src/shape/polygon/polygon.ts +67 -0
  2067. package/src/shape/schema/box.ts +96 -0
  2068. package/src/shape/text/text.ts +43 -0
  2069. package/src/shape/utils.ts +160 -0
  2070. package/src/shape/vector/vector.ts +51 -0
  2071. package/src/spec/action.ts +196 -0
  2072. package/src/spec/animate.ts +16 -0
  2073. package/src/spec/composition.ts +145 -0
  2074. package/src/spec/coordinate.ts +113 -0
  2075. package/src/spec/data.ts +81 -0
  2076. package/src/spec/encode.ts +46 -0
  2077. package/src/spec/geometry.ts +168 -0
  2078. package/src/spec/index.ts +19 -0
  2079. package/src/spec/interaction.ts +115 -0
  2080. package/src/spec/labelLayout.ts +5 -0
  2081. package/src/spec/palette.ts +18 -0
  2082. package/src/spec/scale.ts +78 -0
  2083. package/src/spec/theme.ts +20 -0
  2084. package/src/spec/title.ts +3 -0
  2085. package/src/spec/transform.ts +274 -0
  2086. package/src/stdlib/index.ts +364 -0
  2087. package/src/theme/index.ts +1 -28
  2088. package/src/theme/light.ts +35 -0
  2089. package/src/transform/dodgeX.ts +59 -0
  2090. package/src/transform/groupX.ts +92 -0
  2091. package/src/transform/index.ts +24 -0
  2092. package/src/transform/jitter.ts +45 -0
  2093. package/src/transform/jitterY.ts +26 -0
  2094. package/src/transform/maybeKey.ts +26 -0
  2095. package/src/transform/maybeSeries.ts +20 -0
  2096. package/src/transform/maybeSize.ts +23 -0
  2097. package/src/transform/maybeStackY.ts +37 -0
  2098. package/src/transform/maybeTitleX.ts +20 -0
  2099. package/src/transform/maybeTooltip.ts +34 -0
  2100. package/src/transform/maybeTooltipPosition.ts +14 -0
  2101. package/src/transform/maybeTooltipY.ts +13 -0
  2102. package/src/transform/maybeZeroX.ts +25 -0
  2103. package/src/transform/maybeZeroY.ts +24 -0
  2104. package/src/transform/maybeZeroY1.ts +24 -0
  2105. package/src/transform/normalizeY.ts +70 -0
  2106. package/src/transform/select.ts +53 -0
  2107. package/src/transform/selectX.ts +15 -0
  2108. package/src/transform/selectY.ts +15 -0
  2109. package/src/transform/stackEnter.ts +73 -0
  2110. package/src/transform/stackY.ts +59 -0
  2111. package/src/transform/symmetryY.ts +60 -0
  2112. package/src/transform/utils/helper.ts +37 -0
  2113. package/src/transform/utils/order.ts +123 -0
  2114. package/src/utils/array.ts +50 -0
  2115. package/src/utils/container.ts +21 -0
  2116. package/src/utils/coordinate.ts +29 -0
  2117. package/src/utils/helper.ts +69 -0
  2118. package/src/utils/selection.ts +403 -0
  2119. package/src/utils/vector.ts +47 -0
  2120. package/dist/g2.min.js.map +0 -1
  2121. package/esm/animate/animation/fade.d.ts +0 -21
  2122. package/esm/animate/animation/fade.js +0 -42
  2123. package/esm/animate/animation/fade.js.map +0 -1
  2124. package/esm/animate/animation/grow-in.d.ts +0 -30
  2125. package/esm/animate/animation/grow-in.js +0 -38
  2126. package/esm/animate/animation/grow-in.js.map +0 -1
  2127. package/esm/animate/animation/index.d.ts +0 -16
  2128. package/esm/animate/animation/index.js +0 -17
  2129. package/esm/animate/animation/index.js.map +0 -1
  2130. package/esm/animate/animation/path-in.d.ts +0 -12
  2131. package/esm/animate/animation/path-in.js +0 -21
  2132. package/esm/animate/animation/path-in.js.map +0 -1
  2133. package/esm/animate/animation/position-update.d.ts +0 -11
  2134. package/esm/animate/animation/position-update.js +0 -24
  2135. package/esm/animate/animation/position-update.js.map +0 -1
  2136. package/esm/animate/animation/scale-in.d.ts +0 -19
  2137. package/esm/animate/animation/scale-in.js +0 -60
  2138. package/esm/animate/animation/scale-in.js.map +0 -1
  2139. package/esm/animate/animation/sector-path-update.d.ts +0 -27
  2140. package/esm/animate/animation/sector-path-update.js +0 -132
  2141. package/esm/animate/animation/sector-path-update.js.map +0 -1
  2142. package/esm/animate/animation/util.d.ts +0 -19
  2143. package/esm/animate/animation/util.js +0 -89
  2144. package/esm/animate/animation/util.js.map +0 -1
  2145. package/esm/animate/animation/wave-in.d.ts +0 -13
  2146. package/esm/animate/animation/wave-in.js +0 -30
  2147. package/esm/animate/animation/wave-in.js.map +0 -1
  2148. package/esm/animate/animation/zoom.d.ts +0 -21
  2149. package/esm/animate/animation/zoom.js +0 -66
  2150. package/esm/animate/animation/zoom.js.map +0 -1
  2151. package/esm/animate/index.d.ts +0 -48
  2152. package/esm/animate/index.js +0 -249
  2153. package/esm/animate/index.js.map +0 -1
  2154. package/esm/animate/interface.d.ts +0 -18
  2155. package/esm/animate/interface.js +0 -2
  2156. package/esm/animate/interface.js.map +0 -1
  2157. package/esm/api.d.ts +0 -2
  2158. package/esm/api.js +0 -3
  2159. package/esm/api.js.map +0 -1
  2160. package/esm/base.d.ts +0 -33
  2161. package/esm/base.js +0 -55
  2162. package/esm/base.js.map +0 -1
  2163. package/esm/chart/chart.d.ts +0 -61
  2164. package/esm/chart/chart.js +0 -157
  2165. package/esm/chart/chart.js.map +0 -1
  2166. package/esm/chart/controller/annotation.d.ts +0 -162
  2167. package/esm/chart/controller/annotation.js +0 -592
  2168. package/esm/chart/controller/annotation.js.map +0 -1
  2169. package/esm/chart/controller/axis.d.ts +0 -93
  2170. package/esm/chart/controller/axis.js +0 -578
  2171. package/esm/chart/controller/axis.js.map +0 -1
  2172. package/esm/chart/controller/base.d.ts +0 -64
  2173. package/esm/chart/controller/base.js +0 -62
  2174. package/esm/chart/controller/base.js.map +0 -1
  2175. package/esm/chart/controller/coordinate.d.ts +0 -74
  2176. package/esm/chart/controller/coordinate.js +0 -145
  2177. package/esm/chart/controller/coordinate.js.map +0 -1
  2178. package/esm/chart/controller/gesture.d.ts +0 -37
  2179. package/esm/chart/controller/gesture.js +0 -258
  2180. package/esm/chart/controller/gesture.js.map +0 -1
  2181. package/esm/chart/controller/index.d.ts +0 -25
  2182. package/esm/chart/controller/index.js +0 -34
  2183. package/esm/chart/controller/index.js.map +0 -1
  2184. package/esm/chart/controller/legend.d.ts +0 -106
  2185. package/esm/chart/controller/legend.js +0 -484
  2186. package/esm/chart/controller/legend.js.map +0 -1
  2187. package/esm/chart/controller/scrollbar.d.ts +0 -64
  2188. package/esm/chart/controller/scrollbar.js +0 -316
  2189. package/esm/chart/controller/scrollbar.js.map +0 -1
  2190. package/esm/chart/controller/slider.d.ts +0 -88
  2191. package/esm/chart/controller/slider.js +0 -296
  2192. package/esm/chart/controller/slider.js.map +0 -1
  2193. package/esm/chart/controller/tooltip.d.ts +0 -68
  2194. package/esm/chart/controller/tooltip.js +0 -696
  2195. package/esm/chart/controller/tooltip.js.map +0 -1
  2196. package/esm/chart/event.d.ts +0 -47
  2197. package/esm/chart/event.js +0 -91
  2198. package/esm/chart/event.js.map +0 -1
  2199. package/esm/chart/index.d.ts +0 -4
  2200. package/esm/chart/index.js +0 -5
  2201. package/esm/chart/index.js.map +0 -1
  2202. package/esm/chart/layout/auto.d.ts +0 -8
  2203. package/esm/chart/layout/auto.js +0 -64
  2204. package/esm/chart/layout/auto.js.map +0 -1
  2205. package/esm/chart/layout/constraint/bounds.d.ts +0 -32
  2206. package/esm/chart/layout/constraint/bounds.js +0 -30
  2207. package/esm/chart/layout/constraint/bounds.js.map +0 -1
  2208. package/esm/chart/layout/constraint/constraint.d.ts +0 -31
  2209. package/esm/chart/layout/constraint/constraint.js +0 -82
  2210. package/esm/chart/layout/constraint/constraint.js.map +0 -1
  2211. package/esm/chart/layout/constraint/gauss.d.ts +0 -11
  2212. package/esm/chart/layout/constraint/gauss.js +0 -63
  2213. package/esm/chart/layout/constraint/gauss.js.map +0 -1
  2214. package/esm/chart/layout/constraint/index.d.ts +0 -5
  2215. package/esm/chart/layout/constraint/index.js +0 -30
  2216. package/esm/chart/layout/constraint/index.js.map +0 -1
  2217. package/esm/chart/layout/constraint/solver.d.ts +0 -40
  2218. package/esm/chart/layout/constraint/solver.js +0 -78
  2219. package/esm/chart/layout/constraint/solver.js.map +0 -1
  2220. package/esm/chart/layout/constraint/types.d.ts +0 -21
  2221. package/esm/chart/layout/constraint/types.js +0 -13
  2222. package/esm/chart/layout/constraint/types.js.map +0 -1
  2223. package/esm/chart/layout/constraint/variable.d.ts +0 -24
  2224. package/esm/chart/layout/constraint/variable.js +0 -28
  2225. package/esm/chart/layout/constraint/variable.js.map +0 -1
  2226. package/esm/chart/layout/index.d.ts +0 -15
  2227. package/esm/chart/layout/index.js +0 -26
  2228. package/esm/chart/layout/index.js.map +0 -1
  2229. package/esm/chart/layout/padding-cal.d.ts +0 -53
  2230. package/esm/chart/layout/padding-cal.js +0 -108
  2231. package/esm/chart/layout/padding-cal.js.map +0 -1
  2232. package/esm/chart/util/scale-pool.d.ts +0 -57
  2233. package/esm/chart/util/scale-pool.js +0 -212
  2234. package/esm/chart/util/scale-pool.js.map +0 -1
  2235. package/esm/chart/util/sync-view-padding.d.ts +0 -9
  2236. package/esm/chart/util/sync-view-padding.js +0 -14
  2237. package/esm/chart/util/sync-view-padding.js.map +0 -1
  2238. package/esm/chart/view.d.ts +0 -747
  2239. package/esm/chart/view.js +0 -1636
  2240. package/esm/chart/view.js.map +0 -1
  2241. package/esm/component/labels.d.ts +0 -46
  2242. package/esm/component/labels.js +0 -306
  2243. package/esm/component/labels.js.map +0 -1
  2244. package/esm/component/update-label.d.ts +0 -21
  2245. package/esm/component/update-label.js +0 -57
  2246. package/esm/component/update-label.js.map +0 -1
  2247. package/esm/constant.d.ts +0 -124
  2248. package/esm/constant.js +0 -136
  2249. package/esm/constant.js.map +0 -1
  2250. package/esm/core.d.ts +0 -46
  2251. package/esm/core.js +0 -60
  2252. package/esm/core.js.map +0 -1
  2253. package/esm/dependents.d.ts +0 -21
  2254. package/esm/dependents.js +0 -33
  2255. package/esm/dependents.js.map +0 -1
  2256. package/esm/engine/index.d.ts +0 -13
  2257. package/esm/engine/index.js +0 -22
  2258. package/esm/engine/index.js.map +0 -1
  2259. package/esm/facet/circle.d.ts +0 -36
  2260. package/esm/facet/circle.js +0 -119
  2261. package/esm/facet/circle.js.map +0 -1
  2262. package/esm/facet/facet.d.ts +0 -165
  2263. package/esm/facet/facet.js +0 -292
  2264. package/esm/facet/facet.js.map +0 -1
  2265. package/esm/facet/index.d.ts +0 -13
  2266. package/esm/facet/index.js +0 -22
  2267. package/esm/facet/index.js.map +0 -1
  2268. package/esm/facet/list.d.ts +0 -46
  2269. package/esm/facet/list.js +0 -134
  2270. package/esm/facet/list.js.map +0 -1
  2271. package/esm/facet/matrix.d.ts +0 -34
  2272. package/esm/facet/matrix.js +0 -119
  2273. package/esm/facet/matrix.js.map +0 -1
  2274. package/esm/facet/mirror.d.ts +0 -31
  2275. package/esm/facet/mirror.js +0 -144
  2276. package/esm/facet/mirror.js.map +0 -1
  2277. package/esm/facet/rect.d.ts +0 -35
  2278. package/esm/facet/rect.js +0 -141
  2279. package/esm/facet/rect.js.map +0 -1
  2280. package/esm/facet/tree.d.ts +0 -40
  2281. package/esm/facet/tree.js +0 -298
  2282. package/esm/facet/tree.js.map +0 -1
  2283. package/esm/geometry/area.d.ts +0 -46
  2284. package/esm/geometry/area.js +0 -62
  2285. package/esm/geometry/area.js.map +0 -1
  2286. package/esm/geometry/base.d.ts +0 -796
  2287. package/esm/geometry/base.js +0 -1556
  2288. package/esm/geometry/base.js.map +0 -1
  2289. package/esm/geometry/edge.d.ts +0 -15
  2290. package/esm/geometry/edge.js +0 -24
  2291. package/esm/geometry/edge.js.map +0 -1
  2292. package/esm/geometry/element/index.d.ts +0 -127
  2293. package/esm/geometry/element/index.js +0 -438
  2294. package/esm/geometry/element/index.js.map +0 -1
  2295. package/esm/geometry/heatmap.d.ts +0 -31
  2296. package/esm/geometry/heatmap.js +0 -200
  2297. package/esm/geometry/heatmap.js.map +0 -1
  2298. package/esm/geometry/interval.d.ts +0 -41
  2299. package/esm/geometry/interval.js +0 -98
  2300. package/esm/geometry/interval.js.map +0 -1
  2301. package/esm/geometry/label/base.d.ts +0 -76
  2302. package/esm/geometry/label/base.js +0 -416
  2303. package/esm/geometry/label/base.js.map +0 -1
  2304. package/esm/geometry/label/index.d.ts +0 -38
  2305. package/esm/geometry/label/index.js +0 -35
  2306. package/esm/geometry/label/index.js.map +0 -1
  2307. package/esm/geometry/label/interface.d.ts +0 -66
  2308. package/esm/geometry/label/interface.js +0 -2
  2309. package/esm/geometry/label/interface.js.map +0 -1
  2310. package/esm/geometry/label/interval.d.ts +0 -27
  2311. package/esm/geometry/label/interval.js +0 -146
  2312. package/esm/geometry/label/interval.js.map +0 -1
  2313. package/esm/geometry/label/layout/adjust-color.d.ts +0 -3
  2314. package/esm/geometry/label/layout/adjust-color.js +0 -36
  2315. package/esm/geometry/label/layout/adjust-color.js.map +0 -1
  2316. package/esm/geometry/label/layout/hide-overlap.d.ts +0 -8
  2317. package/esm/geometry/label/layout/hide-overlap.js +0 -75
  2318. package/esm/geometry/label/layout/hide-overlap.js.map +0 -1
  2319. package/esm/geometry/label/layout/interval/adjust-position.d.ts +0 -9
  2320. package/esm/geometry/label/layout/interval/adjust-position.js +0 -61
  2321. package/esm/geometry/label/layout/interval/adjust-position.js.map +0 -1
  2322. package/esm/geometry/label/layout/interval/hide-overlap.d.ts +0 -9
  2323. package/esm/geometry/label/layout/interval/hide-overlap.js +0 -79
  2324. package/esm/geometry/label/layout/interval/hide-overlap.js.map +0 -1
  2325. package/esm/geometry/label/layout/limit-in-canvas.d.ts +0 -9
  2326. package/esm/geometry/label/layout/limit-in-canvas.js +0 -44
  2327. package/esm/geometry/label/layout/limit-in-canvas.js.map +0 -1
  2328. package/esm/geometry/label/layout/limit-in-plot.d.ts +0 -18
  2329. package/esm/geometry/label/layout/limit-in-plot.js +0 -75
  2330. package/esm/geometry/label/layout/limit-in-plot.js.map +0 -1
  2331. package/esm/geometry/label/layout/limit-in-shape.d.ts +0 -7
  2332. package/esm/geometry/label/layout/limit-in-shape.js +0 -18
  2333. package/esm/geometry/label/layout/limit-in-shape.js.map +0 -1
  2334. package/esm/geometry/label/layout/overlap.d.ts +0 -15
  2335. package/esm/geometry/label/layout/overlap.js +0 -223
  2336. package/esm/geometry/label/layout/overlap.js.map +0 -1
  2337. package/esm/geometry/label/layout/path/adjust-position.d.ts +0 -17
  2338. package/esm/geometry/label/layout/path/adjust-position.js +0 -95
  2339. package/esm/geometry/label/layout/path/adjust-position.js.map +0 -1
  2340. package/esm/geometry/label/layout/pie/distribute.d.ts +0 -3
  2341. package/esm/geometry/label/layout/pie/distribute.js +0 -196
  2342. package/esm/geometry/label/layout/pie/distribute.js.map +0 -1
  2343. package/esm/geometry/label/layout/pie/outer.d.ts +0 -6
  2344. package/esm/geometry/label/layout/pie/outer.js +0 -218
  2345. package/esm/geometry/label/layout/pie/outer.js.map +0 -1
  2346. package/esm/geometry/label/layout/pie/spider.d.ts +0 -7
  2347. package/esm/geometry/label/layout/pie/spider.js +0 -193
  2348. package/esm/geometry/label/layout/pie/spider.js.map +0 -1
  2349. package/esm/geometry/label/layout/pie/util.d.ts +0 -10
  2350. package/esm/geometry/label/layout/pie/util.js +0 -73
  2351. package/esm/geometry/label/layout/pie/util.js.map +0 -1
  2352. package/esm/geometry/label/layout/point/adjust-position.d.ts +0 -17
  2353. package/esm/geometry/label/layout/point/adjust-position.js +0 -95
  2354. package/esm/geometry/label/layout/point/adjust-position.js.map +0 -1
  2355. package/esm/geometry/label/layout/worker/hide-overlap.d.ts +0 -2
  2356. package/esm/geometry/label/layout/worker/hide-overlap.js +0 -155
  2357. package/esm/geometry/label/layout/worker/hide-overlap.js.map +0 -1
  2358. package/esm/geometry/label/pie.d.ts +0 -22
  2359. package/esm/geometry/label/pie.js +0 -95
  2360. package/esm/geometry/label/pie.js.map +0 -1
  2361. package/esm/geometry/label/polar.d.ts +0 -64
  2362. package/esm/geometry/label/polar.js +0 -221
  2363. package/esm/geometry/label/polar.js.map +0 -1
  2364. package/esm/geometry/label/util/createWorker.d.ts +0 -1
  2365. package/esm/geometry/label/util/createWorker.js +0 -16
  2366. package/esm/geometry/label/util/createWorker.js.map +0 -1
  2367. package/esm/geometry/label/util/index.d.ts +0 -28
  2368. package/esm/geometry/label/util/index.js +0 -62
  2369. package/esm/geometry/label/util/index.js.map +0 -1
  2370. package/esm/geometry/line.d.ts +0 -11
  2371. package/esm/geometry/line.js +0 -21
  2372. package/esm/geometry/line.js.map +0 -1
  2373. package/esm/geometry/path.d.ts +0 -40
  2374. package/esm/geometry/path.js +0 -150
  2375. package/esm/geometry/path.js.map +0 -1
  2376. package/esm/geometry/point.d.ts +0 -19
  2377. package/esm/geometry/point.js +0 -30
  2378. package/esm/geometry/point.js.map +0 -1
  2379. package/esm/geometry/polygon.d.ts +0 -19
  2380. package/esm/geometry/polygon.js +0 -62
  2381. package/esm/geometry/polygon.js.map +0 -1
  2382. package/esm/geometry/schema.d.ts +0 -18
  2383. package/esm/geometry/schema.js +0 -48
  2384. package/esm/geometry/schema.js.map +0 -1
  2385. package/esm/geometry/shape/area/index.d.ts +0 -2
  2386. package/esm/geometry/shape/area/index.js +0 -45
  2387. package/esm/geometry/shape/area/index.js.map +0 -1
  2388. package/esm/geometry/shape/area/line.d.ts +0 -1
  2389. package/esm/geometry/shape/area/line.js +0 -31
  2390. package/esm/geometry/shape/area/line.js.map +0 -1
  2391. package/esm/geometry/shape/area/smooth-line.d.ts +0 -1
  2392. package/esm/geometry/shape/area/smooth-line.js +0 -30
  2393. package/esm/geometry/shape/area/smooth-line.js.map +0 -1
  2394. package/esm/geometry/shape/area/smooth.d.ts +0 -1
  2395. package/esm/geometry/shape/area/smooth.js +0 -32
  2396. package/esm/geometry/shape/area/smooth.js.map +0 -1
  2397. package/esm/geometry/shape/area/util.d.ts +0 -22
  2398. package/esm/geometry/shape/area/util.js +0 -88
  2399. package/esm/geometry/shape/area/util.js.map +0 -1
  2400. package/esm/geometry/shape/base.d.ts +0 -22
  2401. package/esm/geometry/shape/base.js +0 -162
  2402. package/esm/geometry/shape/base.js.map +0 -1
  2403. package/esm/geometry/shape/constant.d.ts +0 -4
  2404. package/esm/geometry/shape/constant.js +0 -5
  2405. package/esm/geometry/shape/constant.js.map +0 -1
  2406. package/esm/geometry/shape/edge/arc.d.ts +0 -1
  2407. package/esm/geometry/shape/edge/arc.js +0 -84
  2408. package/esm/geometry/shape/edge/arc.js.map +0 -1
  2409. package/esm/geometry/shape/edge/index.d.ts +0 -2
  2410. package/esm/geometry/shape/edge/index.js +0 -31
  2411. package/esm/geometry/shape/edge/index.js.map +0 -1
  2412. package/esm/geometry/shape/edge/smooth.d.ts +0 -1
  2413. package/esm/geometry/shape/edge/smooth.js +0 -30
  2414. package/esm/geometry/shape/edge/smooth.js.map +0 -1
  2415. package/esm/geometry/shape/edge/util.d.ts +0 -17
  2416. package/esm/geometry/shape/edge/util.js +0 -32
  2417. package/esm/geometry/shape/edge/util.js.map +0 -1
  2418. package/esm/geometry/shape/edge/vhv.d.ts +0 -1
  2419. package/esm/geometry/shape/edge/vhv.js +0 -42
  2420. package/esm/geometry/shape/edge/vhv.js.map +0 -1
  2421. package/esm/geometry/shape/interval/funnel.d.ts +0 -1
  2422. package/esm/geometry/shape/interval/funnel.js +0 -31
  2423. package/esm/geometry/shape/interval/funnel.js.map +0 -1
  2424. package/esm/geometry/shape/interval/hollow-rect.d.ts +0 -1
  2425. package/esm/geometry/shape/interval/hollow-rect.js +0 -51
  2426. package/esm/geometry/shape/interval/hollow-rect.js.map +0 -1
  2427. package/esm/geometry/shape/interval/index.d.ts +0 -3
  2428. package/esm/geometry/shape/interval/index.js +0 -65
  2429. package/esm/geometry/shape/interval/index.js.map +0 -1
  2430. package/esm/geometry/shape/interval/line.d.ts +0 -1
  2431. package/esm/geometry/shape/interval/line.js +0 -54
  2432. package/esm/geometry/shape/interval/line.js.map +0 -1
  2433. package/esm/geometry/shape/interval/pyramid.d.ts +0 -1
  2434. package/esm/geometry/shape/interval/pyramid.js +0 -31
  2435. package/esm/geometry/shape/interval/pyramid.js.map +0 -1
  2436. package/esm/geometry/shape/interval/tick.d.ts +0 -1
  2437. package/esm/geometry/shape/interval/tick.js +0 -78
  2438. package/esm/geometry/shape/interval/tick.js.map +0 -1
  2439. package/esm/geometry/shape/interval/util.d.ts +0 -55
  2440. package/esm/geometry/shape/interval/util.js +0 -318
  2441. package/esm/geometry/shape/interval/util.js.map +0 -1
  2442. package/esm/geometry/shape/line/index.d.ts +0 -8
  2443. package/esm/geometry/shape/line/index.js +0 -105
  2444. package/esm/geometry/shape/line/index.js.map +0 -1
  2445. package/esm/geometry/shape/line/step.d.ts +0 -1
  2446. package/esm/geometry/shape/line/step.js +0 -84
  2447. package/esm/geometry/shape/line/step.js.map +0 -1
  2448. package/esm/geometry/shape/line/util.d.ts +0 -16
  2449. package/esm/geometry/shape/line/util.js +0 -83
  2450. package/esm/geometry/shape/line/util.js.map +0 -1
  2451. package/esm/geometry/shape/point/hollow.d.ts +0 -1
  2452. package/esm/geometry/shape/point/hollow.js +0 -24
  2453. package/esm/geometry/shape/point/hollow.js.map +0 -1
  2454. package/esm/geometry/shape/point/image.d.ts +0 -1
  2455. package/esm/geometry/shape/point/image.js +0 -59
  2456. package/esm/geometry/shape/point/image.js.map +0 -1
  2457. package/esm/geometry/shape/point/index.d.ts +0 -2
  2458. package/esm/geometry/shape/point/index.js +0 -32
  2459. package/esm/geometry/shape/point/index.js.map +0 -1
  2460. package/esm/geometry/shape/point/solid.d.ts +0 -1
  2461. package/esm/geometry/shape/point/solid.js +0 -23
  2462. package/esm/geometry/shape/point/solid.js.map +0 -1
  2463. package/esm/geometry/shape/point/util.d.ts +0 -15
  2464. package/esm/geometry/shape/point/util.js +0 -49
  2465. package/esm/geometry/shape/point/util.js.map +0 -1
  2466. package/esm/geometry/shape/polygon/index.d.ts +0 -2
  2467. package/esm/geometry/shape/polygon/index.js +0 -65
  2468. package/esm/geometry/shape/polygon/index.js.map +0 -1
  2469. package/esm/geometry/shape/polygon/square.d.ts +0 -1
  2470. package/esm/geometry/shape/polygon/square.js +0 -44
  2471. package/esm/geometry/shape/polygon/square.js.map +0 -1
  2472. package/esm/geometry/shape/schema/box.d.ts +0 -1
  2473. package/esm/geometry/shape/schema/box.js +0 -142
  2474. package/esm/geometry/shape/schema/box.js.map +0 -1
  2475. package/esm/geometry/shape/schema/candle.d.ts +0 -1
  2476. package/esm/geometry/shape/schema/candle.js +0 -80
  2477. package/esm/geometry/shape/schema/candle.js.map +0 -1
  2478. package/esm/geometry/shape/schema/index.d.ts +0 -2
  2479. package/esm/geometry/shape/schema/index.js +0 -6
  2480. package/esm/geometry/shape/schema/index.js.map +0 -1
  2481. package/esm/geometry/shape/util/get-path-points.d.ts +0 -38
  2482. package/esm/geometry/shape/util/get-path-points.js +0 -131
  2483. package/esm/geometry/shape/util/get-path-points.js.map +0 -1
  2484. package/esm/geometry/shape/util/get-style.d.ts +0 -18
  2485. package/esm/geometry/shape/util/get-style.js +0 -47
  2486. package/esm/geometry/shape/util/get-style.js.map +0 -1
  2487. package/esm/geometry/shape/util/path.d.ts +0 -32
  2488. package/esm/geometry/shape/util/path.js +0 -313
  2489. package/esm/geometry/shape/util/path.js.map +0 -1
  2490. package/esm/geometry/shape/util/split-points.d.ts +0 -13
  2491. package/esm/geometry/shape/util/split-points.js +0 -24
  2492. package/esm/geometry/shape/util/split-points.js.map +0 -1
  2493. package/esm/geometry/shape/violin/hollow.d.ts +0 -1
  2494. package/esm/geometry/shape/violin/hollow.js +0 -51
  2495. package/esm/geometry/shape/violin/hollow.js.map +0 -1
  2496. package/esm/geometry/shape/violin/index.d.ts +0 -2
  2497. package/esm/geometry/shape/violin/index.js +0 -60
  2498. package/esm/geometry/shape/violin/index.js.map +0 -1
  2499. package/esm/geometry/shape/violin/smooth.d.ts +0 -1
  2500. package/esm/geometry/shape/violin/smooth.js +0 -28
  2501. package/esm/geometry/shape/violin/smooth.js.map +0 -1
  2502. package/esm/geometry/util/diff.d.ts +0 -11
  2503. package/esm/geometry/util/diff.js +0 -30
  2504. package/esm/geometry/util/diff.js.map +0 -1
  2505. package/esm/geometry/util/get-shape-type.d.ts +0 -8
  2506. package/esm/geometry/util/get-shape-type.js +0 -16
  2507. package/esm/geometry/util/get-shape-type.js.map +0 -1
  2508. package/esm/geometry/util/group-data.d.ts +0 -3
  2509. package/esm/geometry/util/group-data.js +0 -42
  2510. package/esm/geometry/util/group-data.js.map +0 -1
  2511. package/esm/geometry/util/is-model-change.d.ts +0 -9
  2512. package/esm/geometry/util/is-model-change.js +0 -14
  2513. package/esm/geometry/util/is-model-change.js.map +0 -1
  2514. package/esm/geometry/util/parse-fields.d.ts +0 -2
  2515. package/esm/geometry/util/parse-fields.js +0 -9
  2516. package/esm/geometry/util/parse-fields.js.map +0 -1
  2517. package/esm/geometry/util/shape-size.d.ts +0 -2
  2518. package/esm/geometry/util/shape-size.js +0 -124
  2519. package/esm/geometry/util/shape-size.js.map +0 -1
  2520. package/esm/geometry/violin.d.ts +0 -25
  2521. package/esm/geometry/violin.js +0 -67
  2522. package/esm/geometry/violin.js.map +0 -1
  2523. package/esm/interaction/action/active-region.d.ts +0 -33
  2524. package/esm/interaction/action/active-region.js +0 -226
  2525. package/esm/interaction/action/active-region.js.map +0 -1
  2526. package/esm/interaction/action/base.d.ts +0 -29
  2527. package/esm/interaction/action/base.js +0 -36
  2528. package/esm/interaction/action/base.js.map +0 -1
  2529. package/esm/interaction/action/callback.d.ts +0 -17
  2530. package/esm/interaction/action/callback.js +0 -27
  2531. package/esm/interaction/action/callback.js.map +0 -1
  2532. package/esm/interaction/action/component/axis/axis-description.d.ts +0 -9
  2533. package/esm/interaction/action/component/axis/axis-description.js +0 -73
  2534. package/esm/interaction/action/component/axis/axis-description.js.map +0 -1
  2535. package/esm/interaction/action/component/list-active.d.ts +0 -14
  2536. package/esm/interaction/action/component/list-active.js +0 -24
  2537. package/esm/interaction/action/component/list-active.js.map +0 -1
  2538. package/esm/interaction/action/component/list-checked.d.ts +0 -30
  2539. package/esm/interaction/action/component/list-checked.js +0 -82
  2540. package/esm/interaction/action/component/list-checked.js.map +0 -1
  2541. package/esm/interaction/action/component/list-focus.d.ts +0 -5
  2542. package/esm/interaction/action/component/list-focus.js +0 -92
  2543. package/esm/interaction/action/component/list-focus.js.map +0 -1
  2544. package/esm/interaction/action/component/list-highlight-util.d.ts +0 -7
  2545. package/esm/interaction/action/component/list-highlight-util.js +0 -20
  2546. package/esm/interaction/action/component/list-highlight-util.js.map +0 -1
  2547. package/esm/interaction/action/component/list-highlight.d.ts +0 -20
  2548. package/esm/interaction/action/component/list-highlight.js +0 -97
  2549. package/esm/interaction/action/component/list-highlight.js.map +0 -1
  2550. package/esm/interaction/action/component/list-radio.d.ts +0 -24
  2551. package/esm/interaction/action/component/list-radio.js +0 -116
  2552. package/esm/interaction/action/component/list-radio.js.map +0 -1
  2553. package/esm/interaction/action/component/list-selected.d.ts +0 -10
  2554. package/esm/interaction/action/component/list-selected.js +0 -20
  2555. package/esm/interaction/action/component/list-selected.js.map +0 -1
  2556. package/esm/interaction/action/component/list-state.d.ts +0 -46
  2557. package/esm/interaction/action/component/list-state.js +0 -167
  2558. package/esm/interaction/action/component/list-state.js.map +0 -1
  2559. package/esm/interaction/action/component/list-unchecked.d.ts +0 -13
  2560. package/esm/interaction/action/component/list-unchecked.js +0 -23
  2561. package/esm/interaction/action/component/list-unchecked.js.map +0 -1
  2562. package/esm/interaction/action/component/tooltip/ellipsis-text.d.ts +0 -25
  2563. package/esm/interaction/action/component/tooltip/ellipsis-text.js +0 -93
  2564. package/esm/interaction/action/component/tooltip/ellipsis-text.js.map +0 -1
  2565. package/esm/interaction/action/component/tooltip/geometry.d.ts +0 -24
  2566. package/esm/interaction/action/component/tooltip/geometry.js +0 -71
  2567. package/esm/interaction/action/component/tooltip/geometry.js.map +0 -1
  2568. package/esm/interaction/action/component/tooltip/sibling.d.ts +0 -21
  2569. package/esm/interaction/action/component/tooltip/sibling.js +0 -39
  2570. package/esm/interaction/action/component/tooltip/sibling.js.map +0 -1
  2571. package/esm/interaction/action/cursor.d.ts +0 -77
  2572. package/esm/interaction/action/cursor.js +0 -125
  2573. package/esm/interaction/action/cursor.js.map +0 -1
  2574. package/esm/interaction/action/data/filter.d.ts +0 -13
  2575. package/esm/interaction/action/data/filter.js +0 -66
  2576. package/esm/interaction/action/data/filter.js.map +0 -1
  2577. package/esm/interaction/action/data/range-filter.d.ts +0 -56
  2578. package/esm/interaction/action/data/range-filter.js +0 -163
  2579. package/esm/interaction/action/data/range-filter.js.map +0 -1
  2580. package/esm/interaction/action/data/sibling-filter.d.ts +0 -22
  2581. package/esm/interaction/action/data/sibling-filter.js +0 -39
  2582. package/esm/interaction/action/data/sibling-filter.js.map +0 -1
  2583. package/esm/interaction/action/element/active.d.ts +0 -14
  2584. package/esm/interaction/action/element/active.js +0 -24
  2585. package/esm/interaction/action/element/active.js.map +0 -1
  2586. package/esm/interaction/action/element/filter.d.ts +0 -20
  2587. package/esm/interaction/action/element/filter.js +0 -89
  2588. package/esm/interaction/action/element/filter.js.map +0 -1
  2589. package/esm/interaction/action/element/highlight-by-color.d.ts +0 -10
  2590. package/esm/interaction/action/element/highlight-by-color.js +0 -30
  2591. package/esm/interaction/action/element/highlight-by-color.js.map +0 -1
  2592. package/esm/interaction/action/element/highlight-by-x.d.ts +0 -15
  2593. package/esm/interaction/action/element/highlight-by-x.js +0 -51
  2594. package/esm/interaction/action/element/highlight-by-x.js.map +0 -1
  2595. package/esm/interaction/action/element/highlight-util.d.ts +0 -18
  2596. package/esm/interaction/action/element/highlight-util.js +0 -45
  2597. package/esm/interaction/action/element/highlight-util.js.map +0 -1
  2598. package/esm/interaction/action/element/highlight.d.ts +0 -21
  2599. package/esm/interaction/action/element/highlight.js +0 -93
  2600. package/esm/interaction/action/element/highlight.js.map +0 -1
  2601. package/esm/interaction/action/element/link-by-color.d.ts +0 -51
  2602. package/esm/interaction/action/element/link-by-color.js +0 -156
  2603. package/esm/interaction/action/element/link-by-color.js.map +0 -1
  2604. package/esm/interaction/action/element/range-active.d.ts +0 -13
  2605. package/esm/interaction/action/element/range-active.js +0 -23
  2606. package/esm/interaction/action/element/range-active.js.map +0 -1
  2607. package/esm/interaction/action/element/range-highlight.d.ts +0 -27
  2608. package/esm/interaction/action/element/range-highlight.js +0 -54
  2609. package/esm/interaction/action/element/range-highlight.js.map +0 -1
  2610. package/esm/interaction/action/element/range-selected.d.ts +0 -13
  2611. package/esm/interaction/action/element/range-selected.js +0 -23
  2612. package/esm/interaction/action/element/range-selected.js.map +0 -1
  2613. package/esm/interaction/action/element/range-state.d.ts +0 -38
  2614. package/esm/interaction/action/element/range-state.js +0 -164
  2615. package/esm/interaction/action/element/range-state.js.map +0 -1
  2616. package/esm/interaction/action/element/selected.d.ts +0 -14
  2617. package/esm/interaction/action/element/selected.js +0 -24
  2618. package/esm/interaction/action/element/selected.js.map +0 -1
  2619. package/esm/interaction/action/element/sibling-filter.d.ts +0 -19
  2620. package/esm/interaction/action/element/sibling-filter.js +0 -93
  2621. package/esm/interaction/action/element/sibling-filter.js.map +0 -1
  2622. package/esm/interaction/action/element/single-active.d.ts +0 -13
  2623. package/esm/interaction/action/element/single-active.js +0 -23
  2624. package/esm/interaction/action/element/single-active.js.map +0 -1
  2625. package/esm/interaction/action/element/single-highlight.d.ts +0 -16
  2626. package/esm/interaction/action/element/single-highlight.js +0 -35
  2627. package/esm/interaction/action/element/single-highlight.js.map +0 -1
  2628. package/esm/interaction/action/element/single-selected.d.ts +0 -13
  2629. package/esm/interaction/action/element/single-selected.js +0 -23
  2630. package/esm/interaction/action/element/single-selected.js.map +0 -1
  2631. package/esm/interaction/action/element/single-state.d.ts +0 -18
  2632. package/esm/interaction/action/element/single-state.js +0 -53
  2633. package/esm/interaction/action/element/single-state.js.map +0 -1
  2634. package/esm/interaction/action/element/state-base.d.ts +0 -39
  2635. package/esm/interaction/action/element/state-base.js +0 -59
  2636. package/esm/interaction/action/element/state-base.js.map +0 -1
  2637. package/esm/interaction/action/element/state.d.ts +0 -28
  2638. package/esm/interaction/action/element/state.js +0 -99
  2639. package/esm/interaction/action/element/state.js.map +0 -1
  2640. package/esm/interaction/action/mask/base.d.ts +0 -62
  2641. package/esm/interaction/action/mask/base.js +0 -169
  2642. package/esm/interaction/action/mask/base.js.map +0 -1
  2643. package/esm/interaction/action/mask/circle.d.ts +0 -14
  2644. package/esm/interaction/action/mask/circle.js +0 -37
  2645. package/esm/interaction/action/mask/circle.js.map +0 -1
  2646. package/esm/interaction/action/mask/dim-rect.d.ts +0 -11
  2647. package/esm/interaction/action/mask/dim-rect.js +0 -62
  2648. package/esm/interaction/action/mask/dim-rect.js.map +0 -1
  2649. package/esm/interaction/action/mask/path.d.ts +0 -16
  2650. package/esm/interaction/action/mask/path.js +0 -44
  2651. package/esm/interaction/action/mask/path.js.map +0 -1
  2652. package/esm/interaction/action/mask/rect.d.ts +0 -17
  2653. package/esm/interaction/action/mask/rect.js +0 -39
  2654. package/esm/interaction/action/mask/rect.js.map +0 -1
  2655. package/esm/interaction/action/mask/smooth-path.d.ts +0 -9
  2656. package/esm/interaction/action/mask/smooth-path.js +0 -21
  2657. package/esm/interaction/action/mask/smooth-path.js.map +0 -1
  2658. package/esm/interaction/action/register.d.ts +0 -36
  2659. package/esm/interaction/action/register.js +0 -60
  2660. package/esm/interaction/action/register.js.map +0 -1
  2661. package/esm/interaction/action/util.d.ts +0 -140
  2662. package/esm/interaction/action/util.js +0 -361
  2663. package/esm/interaction/action/util.js.map +0 -1
  2664. package/esm/interaction/action/view/button.d.ts +0 -25
  2665. package/esm/interaction/action/view/button.js +0 -116
  2666. package/esm/interaction/action/view/button.js.map +0 -1
  2667. package/esm/interaction/action/view/drag.d.ts +0 -24
  2668. package/esm/interaction/action/view/drag.js +0 -73
  2669. package/esm/interaction/action/view/drag.js.map +0 -1
  2670. package/esm/interaction/action/view/mousewheel-scroll.d.ts +0 -5
  2671. package/esm/interaction/action/view/mousewheel-scroll.js +0 -35
  2672. package/esm/interaction/action/view/mousewheel-scroll.js.map +0 -1
  2673. package/esm/interaction/action/view/move.d.ts +0 -28
  2674. package/esm/interaction/action/view/move.js +0 -80
  2675. package/esm/interaction/action/view/move.js.map +0 -1
  2676. package/esm/interaction/action/view/scale-transform.d.ts +0 -18
  2677. package/esm/interaction/action/view/scale-transform.js +0 -51
  2678. package/esm/interaction/action/view/scale-transform.js.map +0 -1
  2679. package/esm/interaction/action/view/scale-translate.d.ts +0 -30
  2680. package/esm/interaction/action/view/scale-translate.js +0 -112
  2681. package/esm/interaction/action/view/scale-translate.js.map +0 -1
  2682. package/esm/interaction/action/view/scale-zoom.d.ts +0 -20
  2683. package/esm/interaction/action/view/scale-zoom.js +0 -83
  2684. package/esm/interaction/action/view/scale-zoom.js.map +0 -1
  2685. package/esm/interaction/context.d.ts +0 -65
  2686. package/esm/interaction/context.js +0 -142
  2687. package/esm/interaction/context.js.map +0 -1
  2688. package/esm/interaction/grammar-interaction.d.ts +0 -158
  2689. package/esm/interaction/grammar-interaction.js +0 -285
  2690. package/esm/interaction/grammar-interaction.js.map +0 -1
  2691. package/esm/interaction/interaction.d.ts +0 -29
  2692. package/esm/interaction/interaction.js +0 -32
  2693. package/esm/interaction/interaction.js.map +0 -1
  2694. package/esm/interface.d.ts +0 -3686
  2695. package/esm/interface.js +0 -2
  2696. package/esm/interface.js.map +0 -1
  2697. package/esm/theme/style-sheet/dark.d.ts +0 -545
  2698. package/esm/theme/style-sheet/dark.js +0 -500
  2699. package/esm/theme/style-sheet/dark.js.map +0 -1
  2700. package/esm/theme/style-sheet/light.d.ts +0 -541
  2701. package/esm/theme/style-sheet/light.js +0 -496
  2702. package/esm/theme/style-sheet/light.js.map +0 -1
  2703. package/esm/theme/util/create-by-style-sheet.d.ts +0 -6
  2704. package/esm/theme/util/create-by-style-sheet.js +0 -1425
  2705. package/esm/theme/util/create-by-style-sheet.js.map +0 -1
  2706. package/esm/theme/util/create-theme.d.ts +0 -6
  2707. package/esm/theme/util/create-theme.js +0 -12
  2708. package/esm/theme/util/create-theme.js.map +0 -1
  2709. package/esm/theme/util/index.d.ts +0 -1
  2710. package/esm/theme/util/index.js +0 -2
  2711. package/esm/theme/util/index.js.map +0 -1
  2712. package/esm/util/annotation.d.ts +0 -7
  2713. package/esm/util/annotation.js +0 -39
  2714. package/esm/util/annotation.js.map +0 -1
  2715. package/esm/util/attr.d.ts +0 -10
  2716. package/esm/util/attr.js +0 -25
  2717. package/esm/util/attr.js.map +0 -1
  2718. package/esm/util/axis.d.ts +0 -100
  2719. package/esm/util/axis.js +0 -236
  2720. package/esm/util/axis.js.map +0 -1
  2721. package/esm/util/bbox.d.ts +0 -105
  2722. package/esm/util/bbox.js +0 -283
  2723. package/esm/util/bbox.js.map +0 -1
  2724. package/esm/util/collision-detect.d.ts +0 -20
  2725. package/esm/util/collision-detect.js +0 -129
  2726. package/esm/util/collision-detect.js.map +0 -1
  2727. package/esm/util/color.d.ts +0 -1
  2728. package/esm/util/color.js +0 -19
  2729. package/esm/util/color.js.map +0 -1
  2730. package/esm/util/context.d.ts +0 -4
  2731. package/esm/util/context.js +0 -11
  2732. package/esm/util/context.js.map +0 -1
  2733. package/esm/util/coordinate.d.ts +0 -86
  2734. package/esm/util/coordinate.js +0 -147
  2735. package/esm/util/coordinate.js.map +0 -1
  2736. package/esm/util/direction.d.ts +0 -19
  2737. package/esm/util/direction.js +0 -120
  2738. package/esm/util/direction.js.map +0 -1
  2739. package/esm/util/dom.d.ts +0 -19
  2740. package/esm/util/dom.js +0 -61
  2741. package/esm/util/dom.js.map +0 -1
  2742. package/esm/util/event.d.ts +0 -8
  2743. package/esm/util/event.js +0 -14
  2744. package/esm/util/event.js.map +0 -1
  2745. package/esm/util/facet.d.ts +0 -16
  2746. package/esm/util/facet.js +0 -43
  2747. package/esm/util/facet.js.map +0 -1
  2748. package/esm/util/graphics.d.ts +0 -58
  2749. package/esm/util/graphics.js +0 -203
  2750. package/esm/util/graphics.js.map +0 -1
  2751. package/esm/util/grid.d.ts +0 -36
  2752. package/esm/util/grid.js +0 -118
  2753. package/esm/util/grid.js.map +0 -1
  2754. package/esm/util/helper.d.ts +0 -34
  2755. package/esm/util/helper.js +0 -83
  2756. package/esm/util/helper.js.map +0 -1
  2757. package/esm/util/legend.d.ts +0 -45
  2758. package/esm/util/legend.js +0 -145
  2759. package/esm/util/legend.js.map +0 -1
  2760. package/esm/util/marker.d.ts +0 -10
  2761. package/esm/util/marker.js +0 -58
  2762. package/esm/util/marker.js.map +0 -1
  2763. package/esm/util/padding.d.ts +0 -14
  2764. package/esm/util/padding.js +0 -40
  2765. package/esm/util/padding.js.map +0 -1
  2766. package/esm/util/scale.d.ts +0 -42
  2767. package/esm/util/scale.js +0 -129
  2768. package/esm/util/scale.js.map +0 -1
  2769. package/esm/util/stat.d.ts +0 -10
  2770. package/esm/util/stat.js +0 -36
  2771. package/esm/util/stat.js.map +0 -1
  2772. package/esm/util/text.d.ts +0 -23
  2773. package/esm/util/text.js +0 -84
  2774. package/esm/util/text.js.map +0 -1
  2775. package/esm/util/tooltip.d.ts +0 -26
  2776. package/esm/util/tooltip.js +0 -469
  2777. package/esm/util/tooltip.js.map +0 -1
  2778. package/esm/util/transform.d.ts +0 -33
  2779. package/esm/util/transform.js +0 -61
  2780. package/esm/util/transform.js.map +0 -1
  2781. package/esm/util/types.d.ts +0 -6
  2782. package/esm/util/types.js.map +0 -1
  2783. package/lib/animate/animation/fade.d.ts +0 -21
  2784. package/lib/animate/animation/fade.js +0 -47
  2785. package/lib/animate/animation/fade.js.map +0 -1
  2786. package/lib/animate/animation/grow-in.d.ts +0 -30
  2787. package/lib/animate/animation/grow-in.js +0 -44
  2788. package/lib/animate/animation/grow-in.js.map +0 -1
  2789. package/lib/animate/animation/index.d.ts +0 -16
  2790. package/lib/animate/animation/index.js +0 -22
  2791. package/lib/animate/animation/index.js.map +0 -1
  2792. package/lib/animate/animation/path-in.d.ts +0 -12
  2793. package/lib/animate/animation/path-in.js +0 -25
  2794. package/lib/animate/animation/path-in.js.map +0 -1
  2795. package/lib/animate/animation/position-update.d.ts +0 -11
  2796. package/lib/animate/animation/position-update.js +0 -28
  2797. package/lib/animate/animation/position-update.js.map +0 -1
  2798. package/lib/animate/animation/scale-in.d.ts +0 -19
  2799. package/lib/animate/animation/scale-in.js +0 -65
  2800. package/lib/animate/animation/scale-in.js.map +0 -1
  2801. package/lib/animate/animation/sector-path-update.d.ts +0 -27
  2802. package/lib/animate/animation/sector-path-update.js +0 -137
  2803. package/lib/animate/animation/sector-path-update.js.map +0 -1
  2804. package/lib/animate/animation/util.d.ts +0 -19
  2805. package/lib/animate/animation/util.js +0 -94
  2806. package/lib/animate/animation/util.js.map +0 -1
  2807. package/lib/animate/animation/wave-in.d.ts +0 -13
  2808. package/lib/animate/animation/wave-in.js +0 -34
  2809. package/lib/animate/animation/wave-in.js.map +0 -1
  2810. package/lib/animate/animation/zoom.d.ts +0 -21
  2811. package/lib/animate/animation/zoom.js +0 -71
  2812. package/lib/animate/animation/zoom.js.map +0 -1
  2813. package/lib/animate/index.d.ts +0 -48
  2814. package/lib/animate/index.js +0 -255
  2815. package/lib/animate/index.js.map +0 -1
  2816. package/lib/animate/interface.d.ts +0 -18
  2817. package/lib/animate/interface.js +0 -3
  2818. package/lib/animate/interface.js.map +0 -1
  2819. package/lib/api.d.ts +0 -2
  2820. package/lib/api.js +0 -7
  2821. package/lib/api.js.map +0 -1
  2822. package/lib/base.d.ts +0 -33
  2823. package/lib/base.js +0 -57
  2824. package/lib/base.js.map +0 -1
  2825. package/lib/chart/chart.d.ts +0 -61
  2826. package/lib/chart/chart.js +0 -159
  2827. package/lib/chart/chart.js.map +0 -1
  2828. package/lib/chart/controller/annotation.d.ts +0 -162
  2829. package/lib/chart/controller/annotation.js +0 -594
  2830. package/lib/chart/controller/annotation.js.map +0 -1
  2831. package/lib/chart/controller/axis.d.ts +0 -93
  2832. package/lib/chart/controller/axis.js +0 -580
  2833. package/lib/chart/controller/axis.js.map +0 -1
  2834. package/lib/chart/controller/base.d.ts +0 -64
  2835. package/lib/chart/controller/base.js +0 -65
  2836. package/lib/chart/controller/base.js.map +0 -1
  2837. package/lib/chart/controller/coordinate.d.ts +0 -74
  2838. package/lib/chart/controller/coordinate.js +0 -147
  2839. package/lib/chart/controller/coordinate.js.map +0 -1
  2840. package/lib/chart/controller/gesture.d.ts +0 -37
  2841. package/lib/chart/controller/gesture.js +0 -260
  2842. package/lib/chart/controller/gesture.js.map +0 -1
  2843. package/lib/chart/controller/index.d.ts +0 -25
  2844. package/lib/chart/controller/index.js +0 -41
  2845. package/lib/chart/controller/index.js.map +0 -1
  2846. package/lib/chart/controller/legend.d.ts +0 -106
  2847. package/lib/chart/controller/legend.js +0 -486
  2848. package/lib/chart/controller/legend.js.map +0 -1
  2849. package/lib/chart/controller/scrollbar.d.ts +0 -64
  2850. package/lib/chart/controller/scrollbar.js +0 -318
  2851. package/lib/chart/controller/scrollbar.js.map +0 -1
  2852. package/lib/chart/controller/slider.d.ts +0 -88
  2853. package/lib/chart/controller/slider.js +0 -298
  2854. package/lib/chart/controller/slider.js.map +0 -1
  2855. package/lib/chart/controller/tooltip.d.ts +0 -68
  2856. package/lib/chart/controller/tooltip.js +0 -698
  2857. package/lib/chart/controller/tooltip.js.map +0 -1
  2858. package/lib/chart/event.d.ts +0 -47
  2859. package/lib/chart/event.js +0 -93
  2860. package/lib/chart/event.js.map +0 -1
  2861. package/lib/chart/index.d.ts +0 -4
  2862. package/lib/chart/index.js +0 -16
  2863. package/lib/chart/index.js.map +0 -1
  2864. package/lib/chart/layout/auto.d.ts +0 -8
  2865. package/lib/chart/layout/auto.js +0 -68
  2866. package/lib/chart/layout/auto.js.map +0 -1
  2867. package/lib/chart/layout/constraint/bounds.d.ts +0 -32
  2868. package/lib/chart/layout/constraint/bounds.js +0 -33
  2869. package/lib/chart/layout/constraint/bounds.js.map +0 -1
  2870. package/lib/chart/layout/constraint/constraint.d.ts +0 -31
  2871. package/lib/chart/layout/constraint/constraint.js +0 -85
  2872. package/lib/chart/layout/constraint/constraint.js.map +0 -1
  2873. package/lib/chart/layout/constraint/gauss.d.ts +0 -11
  2874. package/lib/chart/layout/constraint/gauss.js +0 -68
  2875. package/lib/chart/layout/constraint/gauss.js.map +0 -1
  2876. package/lib/chart/layout/constraint/index.d.ts +0 -5
  2877. package/lib/chart/layout/constraint/index.js +0 -38
  2878. package/lib/chart/layout/constraint/index.js.map +0 -1
  2879. package/lib/chart/layout/constraint/solver.d.ts +0 -40
  2880. package/lib/chart/layout/constraint/solver.js +0 -81
  2881. package/lib/chart/layout/constraint/solver.js.map +0 -1
  2882. package/lib/chart/layout/constraint/types.d.ts +0 -21
  2883. package/lib/chart/layout/constraint/types.js +0 -16
  2884. package/lib/chart/layout/constraint/types.js.map +0 -1
  2885. package/lib/chart/layout/constraint/variable.d.ts +0 -24
  2886. package/lib/chart/layout/constraint/variable.js +0 -31
  2887. package/lib/chart/layout/constraint/variable.js.map +0 -1
  2888. package/lib/chart/layout/index.d.ts +0 -15
  2889. package/lib/chart/layout/index.js +0 -29
  2890. package/lib/chart/layout/index.js.map +0 -1
  2891. package/lib/chart/layout/padding-cal.d.ts +0 -53
  2892. package/lib/chart/layout/padding-cal.js +0 -111
  2893. package/lib/chart/layout/padding-cal.js.map +0 -1
  2894. package/lib/chart/util/scale-pool.d.ts +0 -57
  2895. package/lib/chart/util/scale-pool.js +0 -215
  2896. package/lib/chart/util/scale-pool.js.map +0 -1
  2897. package/lib/chart/util/sync-view-padding.d.ts +0 -9
  2898. package/lib/chart/util/sync-view-padding.js +0 -18
  2899. package/lib/chart/util/sync-view-padding.js.map +0 -1
  2900. package/lib/chart/view.d.ts +0 -747
  2901. package/lib/chart/view.js +0 -1640
  2902. package/lib/chart/view.js.map +0 -1
  2903. package/lib/component/labels.d.ts +0 -46
  2904. package/lib/component/labels.js +0 -308
  2905. package/lib/component/labels.js.map +0 -1
  2906. package/lib/component/update-label.d.ts +0 -21
  2907. package/lib/component/update-label.js +0 -61
  2908. package/lib/component/update-label.js.map +0 -1
  2909. package/lib/constant.d.ts +0 -124
  2910. package/lib/constant.js +0 -139
  2911. package/lib/constant.js.map +0 -1
  2912. package/lib/core.d.ts +0 -46
  2913. package/lib/core.js +0 -101
  2914. package/lib/core.js.map +0 -1
  2915. package/lib/dependents.d.ts +0 -21
  2916. package/lib/dependents.js +0 -55
  2917. package/lib/dependents.js.map +0 -1
  2918. package/lib/engine/index.d.ts +0 -13
  2919. package/lib/engine/index.js +0 -27
  2920. package/lib/engine/index.js.map +0 -1
  2921. package/lib/facet/circle.d.ts +0 -36
  2922. package/lib/facet/circle.js +0 -121
  2923. package/lib/facet/circle.js.map +0 -1
  2924. package/lib/facet/facet.d.ts +0 -165
  2925. package/lib/facet/facet.js +0 -295
  2926. package/lib/facet/facet.js.map +0 -1
  2927. package/lib/facet/index.d.ts +0 -13
  2928. package/lib/facet/index.js +0 -28
  2929. package/lib/facet/index.js.map +0 -1
  2930. package/lib/facet/list.d.ts +0 -46
  2931. package/lib/facet/list.js +0 -136
  2932. package/lib/facet/list.js.map +0 -1
  2933. package/lib/facet/matrix.d.ts +0 -34
  2934. package/lib/facet/matrix.js +0 -121
  2935. package/lib/facet/matrix.js.map +0 -1
  2936. package/lib/facet/mirror.d.ts +0 -31
  2937. package/lib/facet/mirror.js +0 -146
  2938. package/lib/facet/mirror.js.map +0 -1
  2939. package/lib/facet/rect.d.ts +0 -35
  2940. package/lib/facet/rect.js +0 -143
  2941. package/lib/facet/rect.js.map +0 -1
  2942. package/lib/facet/tree.d.ts +0 -40
  2943. package/lib/facet/tree.js +0 -300
  2944. package/lib/facet/tree.js.map +0 -1
  2945. package/lib/geometry/area.d.ts +0 -46
  2946. package/lib/geometry/area.js +0 -64
  2947. package/lib/geometry/area.js.map +0 -1
  2948. package/lib/geometry/base.d.ts +0 -796
  2949. package/lib/geometry/base.js +0 -1558
  2950. package/lib/geometry/base.js.map +0 -1
  2951. package/lib/geometry/edge.d.ts +0 -15
  2952. package/lib/geometry/edge.js +0 -26
  2953. package/lib/geometry/edge.js.map +0 -1
  2954. package/lib/geometry/element/index.d.ts +0 -127
  2955. package/lib/geometry/element/index.js +0 -440
  2956. package/lib/geometry/element/index.js.map +0 -1
  2957. package/lib/geometry/heatmap.d.ts +0 -31
  2958. package/lib/geometry/heatmap.js +0 -202
  2959. package/lib/geometry/heatmap.js.map +0 -1
  2960. package/lib/geometry/interval.d.ts +0 -41
  2961. package/lib/geometry/interval.js +0 -100
  2962. package/lib/geometry/interval.js.map +0 -1
  2963. package/lib/geometry/label/base.d.ts +0 -76
  2964. package/lib/geometry/label/base.js +0 -418
  2965. package/lib/geometry/label/base.js.map +0 -1
  2966. package/lib/geometry/label/index.d.ts +0 -38
  2967. package/lib/geometry/label/index.js +0 -42
  2968. package/lib/geometry/label/index.js.map +0 -1
  2969. package/lib/geometry/label/interface.d.ts +0 -66
  2970. package/lib/geometry/label/interface.js +0 -3
  2971. package/lib/geometry/label/interface.js.map +0 -1
  2972. package/lib/geometry/label/interval.d.ts +0 -27
  2973. package/lib/geometry/label/interval.js +0 -148
  2974. package/lib/geometry/label/interval.js.map +0 -1
  2975. package/lib/geometry/label/layout/adjust-color.d.ts +0 -3
  2976. package/lib/geometry/label/layout/adjust-color.js +0 -40
  2977. package/lib/geometry/label/layout/adjust-color.js.map +0 -1
  2978. package/lib/geometry/label/layout/hide-overlap.d.ts +0 -8
  2979. package/lib/geometry/label/layout/hide-overlap.js +0 -79
  2980. package/lib/geometry/label/layout/hide-overlap.js.map +0 -1
  2981. package/lib/geometry/label/layout/interval/adjust-position.d.ts +0 -9
  2982. package/lib/geometry/label/layout/interval/adjust-position.js +0 -65
  2983. package/lib/geometry/label/layout/interval/adjust-position.js.map +0 -1
  2984. package/lib/geometry/label/layout/interval/hide-overlap.d.ts +0 -9
  2985. package/lib/geometry/label/layout/interval/hide-overlap.js +0 -83
  2986. package/lib/geometry/label/layout/interval/hide-overlap.js.map +0 -1
  2987. package/lib/geometry/label/layout/limit-in-canvas.d.ts +0 -9
  2988. package/lib/geometry/label/layout/limit-in-canvas.js +0 -48
  2989. package/lib/geometry/label/layout/limit-in-canvas.js.map +0 -1
  2990. package/lib/geometry/label/layout/limit-in-plot.d.ts +0 -18
  2991. package/lib/geometry/label/layout/limit-in-plot.js +0 -79
  2992. package/lib/geometry/label/layout/limit-in-plot.js.map +0 -1
  2993. package/lib/geometry/label/layout/limit-in-shape.d.ts +0 -7
  2994. package/lib/geometry/label/layout/limit-in-shape.js +0 -22
  2995. package/lib/geometry/label/layout/limit-in-shape.js.map +0 -1
  2996. package/lib/geometry/label/layout/overlap.d.ts +0 -15
  2997. package/lib/geometry/label/layout/overlap.js +0 -228
  2998. package/lib/geometry/label/layout/overlap.js.map +0 -1
  2999. package/lib/geometry/label/layout/path/adjust-position.d.ts +0 -17
  3000. package/lib/geometry/label/layout/path/adjust-position.js +0 -99
  3001. package/lib/geometry/label/layout/path/adjust-position.js.map +0 -1
  3002. package/lib/geometry/label/layout/pie/distribute.d.ts +0 -3
  3003. package/lib/geometry/label/layout/pie/distribute.js +0 -200
  3004. package/lib/geometry/label/layout/pie/distribute.js.map +0 -1
  3005. package/lib/geometry/label/layout/pie/outer.d.ts +0 -6
  3006. package/lib/geometry/label/layout/pie/outer.js +0 -222
  3007. package/lib/geometry/label/layout/pie/outer.js.map +0 -1
  3008. package/lib/geometry/label/layout/pie/spider.d.ts +0 -7
  3009. package/lib/geometry/label/layout/pie/spider.js +0 -197
  3010. package/lib/geometry/label/layout/pie/spider.js.map +0 -1
  3011. package/lib/geometry/label/layout/pie/util.d.ts +0 -10
  3012. package/lib/geometry/label/layout/pie/util.js +0 -77
  3013. package/lib/geometry/label/layout/pie/util.js.map +0 -1
  3014. package/lib/geometry/label/layout/point/adjust-position.d.ts +0 -17
  3015. package/lib/geometry/label/layout/point/adjust-position.js +0 -99
  3016. package/lib/geometry/label/layout/point/adjust-position.js.map +0 -1
  3017. package/lib/geometry/label/layout/worker/hide-overlap.d.ts +0 -2
  3018. package/lib/geometry/label/layout/worker/hide-overlap.js +0 -158
  3019. package/lib/geometry/label/layout/worker/hide-overlap.js.map +0 -1
  3020. package/lib/geometry/label/pie.d.ts +0 -22
  3021. package/lib/geometry/label/pie.js +0 -97
  3022. package/lib/geometry/label/pie.js.map +0 -1
  3023. package/lib/geometry/label/polar.d.ts +0 -64
  3024. package/lib/geometry/label/polar.js +0 -223
  3025. package/lib/geometry/label/polar.js.map +0 -1
  3026. package/lib/geometry/label/util/createWorker.d.ts +0 -1
  3027. package/lib/geometry/label/util/createWorker.js +0 -20
  3028. package/lib/geometry/label/util/createWorker.js.map +0 -1
  3029. package/lib/geometry/label/util/index.d.ts +0 -28
  3030. package/lib/geometry/label/util/index.js +0 -69
  3031. package/lib/geometry/label/util/index.js.map +0 -1
  3032. package/lib/geometry/line.d.ts +0 -11
  3033. package/lib/geometry/line.js +0 -23
  3034. package/lib/geometry/line.js.map +0 -1
  3035. package/lib/geometry/path.d.ts +0 -40
  3036. package/lib/geometry/path.js +0 -152
  3037. package/lib/geometry/path.js.map +0 -1
  3038. package/lib/geometry/point.d.ts +0 -19
  3039. package/lib/geometry/point.js +0 -32
  3040. package/lib/geometry/point.js.map +0 -1
  3041. package/lib/geometry/polygon.d.ts +0 -19
  3042. package/lib/geometry/polygon.js +0 -64
  3043. package/lib/geometry/polygon.js.map +0 -1
  3044. package/lib/geometry/schema.d.ts +0 -18
  3045. package/lib/geometry/schema.js +0 -50
  3046. package/lib/geometry/schema.js.map +0 -1
  3047. package/lib/geometry/shape/area/index.d.ts +0 -2
  3048. package/lib/geometry/shape/area/index.js +0 -47
  3049. package/lib/geometry/shape/area/index.js.map +0 -1
  3050. package/lib/geometry/shape/area/line.d.ts +0 -1
  3051. package/lib/geometry/shape/area/line.js +0 -33
  3052. package/lib/geometry/shape/area/line.js.map +0 -1
  3053. package/lib/geometry/shape/area/smooth-line.d.ts +0 -1
  3054. package/lib/geometry/shape/area/smooth-line.js +0 -32
  3055. package/lib/geometry/shape/area/smooth-line.js.map +0 -1
  3056. package/lib/geometry/shape/area/smooth.d.ts +0 -1
  3057. package/lib/geometry/shape/area/smooth.js +0 -34
  3058. package/lib/geometry/shape/area/smooth.js.map +0 -1
  3059. package/lib/geometry/shape/area/util.d.ts +0 -22
  3060. package/lib/geometry/shape/area/util.js +0 -93
  3061. package/lib/geometry/shape/area/util.js.map +0 -1
  3062. package/lib/geometry/shape/base.d.ts +0 -22
  3063. package/lib/geometry/shape/base.js +0 -168
  3064. package/lib/geometry/shape/base.js.map +0 -1
  3065. package/lib/geometry/shape/constant.d.ts +0 -4
  3066. package/lib/geometry/shape/constant.js +0 -8
  3067. package/lib/geometry/shape/constant.js.map +0 -1
  3068. package/lib/geometry/shape/edge/arc.d.ts +0 -1
  3069. package/lib/geometry/shape/edge/arc.js +0 -86
  3070. package/lib/geometry/shape/edge/arc.js.map +0 -1
  3071. package/lib/geometry/shape/edge/index.d.ts +0 -2
  3072. package/lib/geometry/shape/edge/index.js +0 -33
  3073. package/lib/geometry/shape/edge/index.js.map +0 -1
  3074. package/lib/geometry/shape/edge/smooth.d.ts +0 -1
  3075. package/lib/geometry/shape/edge/smooth.js +0 -32
  3076. package/lib/geometry/shape/edge/smooth.js.map +0 -1
  3077. package/lib/geometry/shape/edge/util.d.ts +0 -17
  3078. package/lib/geometry/shape/edge/util.js +0 -37
  3079. package/lib/geometry/shape/edge/util.js.map +0 -1
  3080. package/lib/geometry/shape/edge/vhv.d.ts +0 -1
  3081. package/lib/geometry/shape/edge/vhv.js +0 -44
  3082. package/lib/geometry/shape/edge/vhv.js.map +0 -1
  3083. package/lib/geometry/shape/interval/funnel.d.ts +0 -1
  3084. package/lib/geometry/shape/interval/funnel.js +0 -33
  3085. package/lib/geometry/shape/interval/funnel.js.map +0 -1
  3086. package/lib/geometry/shape/interval/hollow-rect.d.ts +0 -1
  3087. package/lib/geometry/shape/interval/hollow-rect.js +0 -53
  3088. package/lib/geometry/shape/interval/hollow-rect.js.map +0 -1
  3089. package/lib/geometry/shape/interval/index.d.ts +0 -3
  3090. package/lib/geometry/shape/interval/index.js +0 -67
  3091. package/lib/geometry/shape/interval/index.js.map +0 -1
  3092. package/lib/geometry/shape/interval/line.d.ts +0 -1
  3093. package/lib/geometry/shape/interval/line.js +0 -56
  3094. package/lib/geometry/shape/interval/line.js.map +0 -1
  3095. package/lib/geometry/shape/interval/pyramid.d.ts +0 -1
  3096. package/lib/geometry/shape/interval/pyramid.js +0 -33
  3097. package/lib/geometry/shape/interval/pyramid.js.map +0 -1
  3098. package/lib/geometry/shape/interval/tick.d.ts +0 -1
  3099. package/lib/geometry/shape/interval/tick.js +0 -80
  3100. package/lib/geometry/shape/interval/tick.js.map +0 -1
  3101. package/lib/geometry/shape/interval/util.d.ts +0 -55
  3102. package/lib/geometry/shape/interval/util.js +0 -328
  3103. package/lib/geometry/shape/interval/util.js.map +0 -1
  3104. package/lib/geometry/shape/line/index.d.ts +0 -8
  3105. package/lib/geometry/shape/line/index.js +0 -109
  3106. package/lib/geometry/shape/line/index.js.map +0 -1
  3107. package/lib/geometry/shape/line/step.d.ts +0 -1
  3108. package/lib/geometry/shape/line/step.js +0 -86
  3109. package/lib/geometry/shape/line/step.js.map +0 -1
  3110. package/lib/geometry/shape/line/util.d.ts +0 -16
  3111. package/lib/geometry/shape/line/util.js +0 -87
  3112. package/lib/geometry/shape/line/util.js.map +0 -1
  3113. package/lib/geometry/shape/point/hollow.d.ts +0 -1
  3114. package/lib/geometry/shape/point/hollow.js +0 -26
  3115. package/lib/geometry/shape/point/hollow.js.map +0 -1
  3116. package/lib/geometry/shape/point/image.d.ts +0 -1
  3117. package/lib/geometry/shape/point/image.js +0 -61
  3118. package/lib/geometry/shape/point/image.js.map +0 -1
  3119. package/lib/geometry/shape/point/index.d.ts +0 -2
  3120. package/lib/geometry/shape/point/index.js +0 -34
  3121. package/lib/geometry/shape/point/index.js.map +0 -1
  3122. package/lib/geometry/shape/point/solid.d.ts +0 -1
  3123. package/lib/geometry/shape/point/solid.js +0 -25
  3124. package/lib/geometry/shape/point/solid.js.map +0 -1
  3125. package/lib/geometry/shape/point/util.d.ts +0 -15
  3126. package/lib/geometry/shape/point/util.js +0 -53
  3127. package/lib/geometry/shape/point/util.js.map +0 -1
  3128. package/lib/geometry/shape/polygon/index.d.ts +0 -2
  3129. package/lib/geometry/shape/polygon/index.js +0 -67
  3130. package/lib/geometry/shape/polygon/index.js.map +0 -1
  3131. package/lib/geometry/shape/polygon/square.d.ts +0 -1
  3132. package/lib/geometry/shape/polygon/square.js +0 -46
  3133. package/lib/geometry/shape/polygon/square.js.map +0 -1
  3134. package/lib/geometry/shape/schema/box.d.ts +0 -1
  3135. package/lib/geometry/shape/schema/box.js +0 -144
  3136. package/lib/geometry/shape/schema/box.js.map +0 -1
  3137. package/lib/geometry/shape/schema/candle.d.ts +0 -1
  3138. package/lib/geometry/shape/schema/candle.js +0 -82
  3139. package/lib/geometry/shape/schema/candle.js.map +0 -1
  3140. package/lib/geometry/shape/schema/index.d.ts +0 -2
  3141. package/lib/geometry/shape/schema/index.js +0 -8
  3142. package/lib/geometry/shape/schema/index.js.map +0 -1
  3143. package/lib/geometry/shape/util/get-path-points.d.ts +0 -38
  3144. package/lib/geometry/shape/util/get-path-points.js +0 -137
  3145. package/lib/geometry/shape/util/get-path-points.js.map +0 -1
  3146. package/lib/geometry/shape/util/get-style.d.ts +0 -18
  3147. package/lib/geometry/shape/util/get-style.js +0 -52
  3148. package/lib/geometry/shape/util/get-style.js.map +0 -1
  3149. package/lib/geometry/shape/util/path.d.ts +0 -32
  3150. package/lib/geometry/shape/util/path.js +0 -322
  3151. package/lib/geometry/shape/util/path.js.map +0 -1
  3152. package/lib/geometry/shape/util/split-points.d.ts +0 -13
  3153. package/lib/geometry/shape/util/split-points.js +0 -28
  3154. package/lib/geometry/shape/util/split-points.js.map +0 -1
  3155. package/lib/geometry/shape/violin/hollow.d.ts +0 -1
  3156. package/lib/geometry/shape/violin/hollow.js +0 -53
  3157. package/lib/geometry/shape/violin/hollow.js.map +0 -1
  3158. package/lib/geometry/shape/violin/index.d.ts +0 -2
  3159. package/lib/geometry/shape/violin/index.js +0 -62
  3160. package/lib/geometry/shape/violin/index.js.map +0 -1
  3161. package/lib/geometry/shape/violin/smooth.d.ts +0 -1
  3162. package/lib/geometry/shape/violin/smooth.js +0 -30
  3163. package/lib/geometry/shape/violin/smooth.js.map +0 -1
  3164. package/lib/geometry/util/diff.d.ts +0 -11
  3165. package/lib/geometry/util/diff.js +0 -34
  3166. package/lib/geometry/util/diff.js.map +0 -1
  3167. package/lib/geometry/util/get-shape-type.d.ts +0 -8
  3168. package/lib/geometry/util/get-shape-type.js +0 -20
  3169. package/lib/geometry/util/get-shape-type.js.map +0 -1
  3170. package/lib/geometry/util/group-data.d.ts +0 -3
  3171. package/lib/geometry/util/group-data.js +0 -46
  3172. package/lib/geometry/util/group-data.js.map +0 -1
  3173. package/lib/geometry/util/is-model-change.d.ts +0 -9
  3174. package/lib/geometry/util/is-model-change.js +0 -18
  3175. package/lib/geometry/util/is-model-change.js.map +0 -1
  3176. package/lib/geometry/util/parse-fields.d.ts +0 -2
  3177. package/lib/geometry/util/parse-fields.js +0 -13
  3178. package/lib/geometry/util/parse-fields.js.map +0 -1
  3179. package/lib/geometry/util/shape-size.d.ts +0 -2
  3180. package/lib/geometry/util/shape-size.js +0 -128
  3181. package/lib/geometry/util/shape-size.js.map +0 -1
  3182. package/lib/geometry/violin.d.ts +0 -25
  3183. package/lib/geometry/violin.js +0 -69
  3184. package/lib/geometry/violin.js.map +0 -1
  3185. package/lib/interaction/action/active-region.d.ts +0 -33
  3186. package/lib/interaction/action/active-region.js +0 -230
  3187. package/lib/interaction/action/active-region.js.map +0 -1
  3188. package/lib/interaction/action/base.d.ts +0 -29
  3189. package/lib/interaction/action/base.js +0 -38
  3190. package/lib/interaction/action/base.js.map +0 -1
  3191. package/lib/interaction/action/callback.d.ts +0 -17
  3192. package/lib/interaction/action/callback.js +0 -29
  3193. package/lib/interaction/action/callback.js.map +0 -1
  3194. package/lib/interaction/action/component/axis/axis-description.d.ts +0 -9
  3195. package/lib/interaction/action/component/axis/axis-description.js +0 -75
  3196. package/lib/interaction/action/component/axis/axis-description.js.map +0 -1
  3197. package/lib/interaction/action/component/list-active.d.ts +0 -14
  3198. package/lib/interaction/action/component/list-active.js +0 -26
  3199. package/lib/interaction/action/component/list-active.js.map +0 -1
  3200. package/lib/interaction/action/component/list-checked.d.ts +0 -30
  3201. package/lib/interaction/action/component/list-checked.js +0 -84
  3202. package/lib/interaction/action/component/list-checked.js.map +0 -1
  3203. package/lib/interaction/action/component/list-focus.d.ts +0 -5
  3204. package/lib/interaction/action/component/list-focus.js +0 -94
  3205. package/lib/interaction/action/component/list-focus.js.map +0 -1
  3206. package/lib/interaction/action/component/list-highlight-util.d.ts +0 -7
  3207. package/lib/interaction/action/component/list-highlight-util.js +0 -24
  3208. package/lib/interaction/action/component/list-highlight-util.js.map +0 -1
  3209. package/lib/interaction/action/component/list-highlight.d.ts +0 -20
  3210. package/lib/interaction/action/component/list-highlight.js +0 -99
  3211. package/lib/interaction/action/component/list-highlight.js.map +0 -1
  3212. package/lib/interaction/action/component/list-radio.d.ts +0 -24
  3213. package/lib/interaction/action/component/list-radio.js +0 -118
  3214. package/lib/interaction/action/component/list-radio.js.map +0 -1
  3215. package/lib/interaction/action/component/list-selected.d.ts +0 -10
  3216. package/lib/interaction/action/component/list-selected.js +0 -22
  3217. package/lib/interaction/action/component/list-selected.js.map +0 -1
  3218. package/lib/interaction/action/component/list-state.d.ts +0 -46
  3219. package/lib/interaction/action/component/list-state.js +0 -169
  3220. package/lib/interaction/action/component/list-state.js.map +0 -1
  3221. package/lib/interaction/action/component/list-unchecked.d.ts +0 -13
  3222. package/lib/interaction/action/component/list-unchecked.js +0 -25
  3223. package/lib/interaction/action/component/list-unchecked.js.map +0 -1
  3224. package/lib/interaction/action/component/tooltip/ellipsis-text.d.ts +0 -25
  3225. package/lib/interaction/action/component/tooltip/ellipsis-text.js +0 -95
  3226. package/lib/interaction/action/component/tooltip/ellipsis-text.js.map +0 -1
  3227. package/lib/interaction/action/component/tooltip/geometry.d.ts +0 -24
  3228. package/lib/interaction/action/component/tooltip/geometry.js +0 -73
  3229. package/lib/interaction/action/component/tooltip/geometry.js.map +0 -1
  3230. package/lib/interaction/action/component/tooltip/sibling.d.ts +0 -21
  3231. package/lib/interaction/action/component/tooltip/sibling.js +0 -41
  3232. package/lib/interaction/action/component/tooltip/sibling.js.map +0 -1
  3233. package/lib/interaction/action/cursor.d.ts +0 -77
  3234. package/lib/interaction/action/cursor.js +0 -127
  3235. package/lib/interaction/action/cursor.js.map +0 -1
  3236. package/lib/interaction/action/data/filter.d.ts +0 -13
  3237. package/lib/interaction/action/data/filter.js +0 -68
  3238. package/lib/interaction/action/data/filter.js.map +0 -1
  3239. package/lib/interaction/action/data/range-filter.d.ts +0 -56
  3240. package/lib/interaction/action/data/range-filter.js +0 -166
  3241. package/lib/interaction/action/data/range-filter.js.map +0 -1
  3242. package/lib/interaction/action/data/sibling-filter.d.ts +0 -22
  3243. package/lib/interaction/action/data/sibling-filter.js +0 -41
  3244. package/lib/interaction/action/data/sibling-filter.js.map +0 -1
  3245. package/lib/interaction/action/element/active.d.ts +0 -14
  3246. package/lib/interaction/action/element/active.js +0 -26
  3247. package/lib/interaction/action/element/active.js.map +0 -1
  3248. package/lib/interaction/action/element/filter.d.ts +0 -20
  3249. package/lib/interaction/action/element/filter.js +0 -91
  3250. package/lib/interaction/action/element/filter.js.map +0 -1
  3251. package/lib/interaction/action/element/highlight-by-color.d.ts +0 -10
  3252. package/lib/interaction/action/element/highlight-by-color.js +0 -32
  3253. package/lib/interaction/action/element/highlight-by-color.js.map +0 -1
  3254. package/lib/interaction/action/element/highlight-by-x.d.ts +0 -15
  3255. package/lib/interaction/action/element/highlight-by-x.js +0 -53
  3256. package/lib/interaction/action/element/highlight-by-x.js.map +0 -1
  3257. package/lib/interaction/action/element/highlight-util.d.ts +0 -18
  3258. package/lib/interaction/action/element/highlight-util.js +0 -50
  3259. package/lib/interaction/action/element/highlight-util.js.map +0 -1
  3260. package/lib/interaction/action/element/highlight.d.ts +0 -21
  3261. package/lib/interaction/action/element/highlight.js +0 -96
  3262. package/lib/interaction/action/element/highlight.js.map +0 -1
  3263. package/lib/interaction/action/element/link-by-color.d.ts +0 -51
  3264. package/lib/interaction/action/element/link-by-color.js +0 -158
  3265. package/lib/interaction/action/element/link-by-color.js.map +0 -1
  3266. package/lib/interaction/action/element/range-active.d.ts +0 -13
  3267. package/lib/interaction/action/element/range-active.js +0 -25
  3268. package/lib/interaction/action/element/range-active.js.map +0 -1
  3269. package/lib/interaction/action/element/range-highlight.d.ts +0 -27
  3270. package/lib/interaction/action/element/range-highlight.js +0 -57
  3271. package/lib/interaction/action/element/range-highlight.js.map +0 -1
  3272. package/lib/interaction/action/element/range-selected.d.ts +0 -13
  3273. package/lib/interaction/action/element/range-selected.js +0 -25
  3274. package/lib/interaction/action/element/range-selected.js.map +0 -1
  3275. package/lib/interaction/action/element/range-state.d.ts +0 -38
  3276. package/lib/interaction/action/element/range-state.js +0 -166
  3277. package/lib/interaction/action/element/range-state.js.map +0 -1
  3278. package/lib/interaction/action/element/selected.d.ts +0 -14
  3279. package/lib/interaction/action/element/selected.js +0 -26
  3280. package/lib/interaction/action/element/selected.js.map +0 -1
  3281. package/lib/interaction/action/element/sibling-filter.d.ts +0 -19
  3282. package/lib/interaction/action/element/sibling-filter.js +0 -95
  3283. package/lib/interaction/action/element/sibling-filter.js.map +0 -1
  3284. package/lib/interaction/action/element/single-active.d.ts +0 -13
  3285. package/lib/interaction/action/element/single-active.js +0 -25
  3286. package/lib/interaction/action/element/single-active.js.map +0 -1
  3287. package/lib/interaction/action/element/single-highlight.d.ts +0 -16
  3288. package/lib/interaction/action/element/single-highlight.js +0 -37
  3289. package/lib/interaction/action/element/single-highlight.js.map +0 -1
  3290. package/lib/interaction/action/element/single-selected.d.ts +0 -13
  3291. package/lib/interaction/action/element/single-selected.js +0 -25
  3292. package/lib/interaction/action/element/single-selected.js.map +0 -1
  3293. package/lib/interaction/action/element/single-state.d.ts +0 -18
  3294. package/lib/interaction/action/element/single-state.js +0 -55
  3295. package/lib/interaction/action/element/single-state.js.map +0 -1
  3296. package/lib/interaction/action/element/state-base.d.ts +0 -39
  3297. package/lib/interaction/action/element/state-base.js +0 -61
  3298. package/lib/interaction/action/element/state-base.js.map +0 -1
  3299. package/lib/interaction/action/element/state.d.ts +0 -28
  3300. package/lib/interaction/action/element/state.js +0 -101
  3301. package/lib/interaction/action/element/state.js.map +0 -1
  3302. package/lib/interaction/action/mask/base.d.ts +0 -62
  3303. package/lib/interaction/action/mask/base.js +0 -171
  3304. package/lib/interaction/action/mask/base.js.map +0 -1
  3305. package/lib/interaction/action/mask/circle.d.ts +0 -14
  3306. package/lib/interaction/action/mask/circle.js +0 -39
  3307. package/lib/interaction/action/mask/circle.js.map +0 -1
  3308. package/lib/interaction/action/mask/dim-rect.d.ts +0 -11
  3309. package/lib/interaction/action/mask/dim-rect.js +0 -64
  3310. package/lib/interaction/action/mask/dim-rect.js.map +0 -1
  3311. package/lib/interaction/action/mask/path.d.ts +0 -16
  3312. package/lib/interaction/action/mask/path.js +0 -46
  3313. package/lib/interaction/action/mask/path.js.map +0 -1
  3314. package/lib/interaction/action/mask/rect.d.ts +0 -17
  3315. package/lib/interaction/action/mask/rect.js +0 -41
  3316. package/lib/interaction/action/mask/rect.js.map +0 -1
  3317. package/lib/interaction/action/mask/smooth-path.d.ts +0 -9
  3318. package/lib/interaction/action/mask/smooth-path.js +0 -23
  3319. package/lib/interaction/action/mask/smooth-path.js.map +0 -1
  3320. package/lib/interaction/action/register.d.ts +0 -36
  3321. package/lib/interaction/action/register.js +0 -69
  3322. package/lib/interaction/action/register.js.map +0 -1
  3323. package/lib/interaction/action/util.d.ts +0 -140
  3324. package/lib/interaction/action/util.js +0 -387
  3325. package/lib/interaction/action/util.js.map +0 -1
  3326. package/lib/interaction/action/view/button.d.ts +0 -25
  3327. package/lib/interaction/action/view/button.js +0 -118
  3328. package/lib/interaction/action/view/button.js.map +0 -1
  3329. package/lib/interaction/action/view/drag.d.ts +0 -24
  3330. package/lib/interaction/action/view/drag.js +0 -75
  3331. package/lib/interaction/action/view/drag.js.map +0 -1
  3332. package/lib/interaction/action/view/mousewheel-scroll.d.ts +0 -5
  3333. package/lib/interaction/action/view/mousewheel-scroll.js +0 -37
  3334. package/lib/interaction/action/view/mousewheel-scroll.js.map +0 -1
  3335. package/lib/interaction/action/view/move.d.ts +0 -28
  3336. package/lib/interaction/action/view/move.js +0 -82
  3337. package/lib/interaction/action/view/move.js.map +0 -1
  3338. package/lib/interaction/action/view/scale-transform.d.ts +0 -18
  3339. package/lib/interaction/action/view/scale-transform.js +0 -53
  3340. package/lib/interaction/action/view/scale-transform.js.map +0 -1
  3341. package/lib/interaction/action/view/scale-translate.d.ts +0 -30
  3342. package/lib/interaction/action/view/scale-translate.js +0 -114
  3343. package/lib/interaction/action/view/scale-translate.js.map +0 -1
  3344. package/lib/interaction/action/view/scale-zoom.d.ts +0 -20
  3345. package/lib/interaction/action/view/scale-zoom.js +0 -85
  3346. package/lib/interaction/action/view/scale-zoom.js.map +0 -1
  3347. package/lib/interaction/context.d.ts +0 -65
  3348. package/lib/interaction/context.js +0 -144
  3349. package/lib/interaction/context.js.map +0 -1
  3350. package/lib/interaction/grammar-interaction.d.ts +0 -158
  3351. package/lib/interaction/grammar-interaction.js +0 -289
  3352. package/lib/interaction/grammar-interaction.js.map +0 -1
  3353. package/lib/interaction/interaction.d.ts +0 -29
  3354. package/lib/interaction/interaction.js +0 -34
  3355. package/lib/interaction/interaction.js.map +0 -1
  3356. package/lib/interface.d.ts +0 -3686
  3357. package/lib/interface.js +0 -3
  3358. package/lib/interface.js.map +0 -1
  3359. package/lib/theme/style-sheet/dark.d.ts +0 -545
  3360. package/lib/theme/style-sheet/dark.js +0 -504
  3361. package/lib/theme/style-sheet/dark.js.map +0 -1
  3362. package/lib/theme/style-sheet/light.d.ts +0 -541
  3363. package/lib/theme/style-sheet/light.js +0 -500
  3364. package/lib/theme/style-sheet/light.js.map +0 -1
  3365. package/lib/theme/util/create-by-style-sheet.d.ts +0 -6
  3366. package/lib/theme/util/create-by-style-sheet.js +0 -1429
  3367. package/lib/theme/util/create-by-style-sheet.js.map +0 -1
  3368. package/lib/theme/util/create-theme.d.ts +0 -6
  3369. package/lib/theme/util/create-theme.js +0 -16
  3370. package/lib/theme/util/create-theme.js.map +0 -1
  3371. package/lib/theme/util/index.d.ts +0 -1
  3372. package/lib/theme/util/index.js +0 -6
  3373. package/lib/theme/util/index.js.map +0 -1
  3374. package/lib/util/annotation.d.ts +0 -7
  3375. package/lib/util/annotation.js +0 -43
  3376. package/lib/util/annotation.js.map +0 -1
  3377. package/lib/util/attr.d.ts +0 -10
  3378. package/lib/util/attr.js +0 -29
  3379. package/lib/util/attr.js.map +0 -1
  3380. package/lib/util/axis.d.ts +0 -100
  3381. package/lib/util/axis.js +0 -251
  3382. package/lib/util/axis.js.map +0 -1
  3383. package/lib/util/bbox.d.ts +0 -105
  3384. package/lib/util/bbox.js +0 -288
  3385. package/lib/util/bbox.js.map +0 -1
  3386. package/lib/util/collision-detect.d.ts +0 -20
  3387. package/lib/util/collision-detect.js +0 -134
  3388. package/lib/util/collision-detect.js.map +0 -1
  3389. package/lib/util/color.d.ts +0 -1
  3390. package/lib/util/color.js +0 -23
  3391. package/lib/util/color.js.map +0 -1
  3392. package/lib/util/context.d.ts +0 -4
  3393. package/lib/util/context.js +0 -15
  3394. package/lib/util/context.js.map +0 -1
  3395. package/lib/util/coordinate.d.ts +0 -86
  3396. package/lib/util/coordinate.js +0 -157
  3397. package/lib/util/coordinate.js.map +0 -1
  3398. package/lib/util/direction.d.ts +0 -19
  3399. package/lib/util/direction.js +0 -125
  3400. package/lib/util/direction.js.map +0 -1
  3401. package/lib/util/dom.d.ts +0 -19
  3402. package/lib/util/dom.js +0 -68
  3403. package/lib/util/dom.js.map +0 -1
  3404. package/lib/util/event.d.ts +0 -8
  3405. package/lib/util/event.js +0 -18
  3406. package/lib/util/event.js.map +0 -1
  3407. package/lib/util/facet.d.ts +0 -16
  3408. package/lib/util/facet.js +0 -48
  3409. package/lib/util/facet.js.map +0 -1
  3410. package/lib/util/graphics.d.ts +0 -58
  3411. package/lib/util/graphics.js +0 -212
  3412. package/lib/util/graphics.js.map +0 -1
  3413. package/lib/util/grid.d.ts +0 -36
  3414. package/lib/util/grid.js +0 -125
  3415. package/lib/util/grid.js.map +0 -1
  3416. package/lib/util/helper.d.ts +0 -34
  3417. package/lib/util/helper.js +0 -90
  3418. package/lib/util/helper.js.map +0 -1
  3419. package/lib/util/legend.d.ts +0 -45
  3420. package/lib/util/legend.js +0 -152
  3421. package/lib/util/legend.js.map +0 -1
  3422. package/lib/util/marker.d.ts +0 -10
  3423. package/lib/util/marker.js +0 -61
  3424. package/lib/util/marker.js.map +0 -1
  3425. package/lib/util/padding.d.ts +0 -14
  3426. package/lib/util/padding.js +0 -45
  3427. package/lib/util/padding.js.map +0 -1
  3428. package/lib/util/scale.d.ts +0 -42
  3429. package/lib/util/scale.js +0 -138
  3430. package/lib/util/scale.js.map +0 -1
  3431. package/lib/util/stat.d.ts +0 -10
  3432. package/lib/util/stat.js +0 -41
  3433. package/lib/util/stat.js.map +0 -1
  3434. package/lib/util/text.d.ts +0 -23
  3435. package/lib/util/text.js +0 -88
  3436. package/lib/util/text.js.map +0 -1
  3437. package/lib/util/tooltip.d.ts +0 -26
  3438. package/lib/util/tooltip.js +0 -476
  3439. package/lib/util/tooltip.js.map +0 -1
  3440. package/lib/util/transform.d.ts +0 -33
  3441. package/lib/util/transform.js +0 -69
  3442. package/lib/util/transform.js.map +0 -1
  3443. package/lib/util/types.d.ts +0 -6
  3444. package/lib/util/types.js.map +0 -1
  3445. package/src/animate/animation/fade.ts +0 -52
  3446. package/src/animate/animation/grow-in.ts +0 -44
  3447. package/src/animate/animation/index.ts +0 -29
  3448. package/src/animate/animation/path-in.ts +0 -24
  3449. package/src/animate/animation/position-update.ts +0 -33
  3450. package/src/animate/animation/scale-in.ts +0 -75
  3451. package/src/animate/animation/sector-path-update.ts +0 -159
  3452. package/src/animate/animation/util.ts +0 -104
  3453. package/src/animate/animation/wave-in.ts +0 -37
  3454. package/src/animate/animation/zoom.ts +0 -78
  3455. package/src/animate/index.ts +0 -268
  3456. package/src/animate/interface.ts +0 -19
  3457. package/src/api.ts +0 -3
  3458. package/src/base.ts +0 -61
  3459. package/src/chart/chart.ts +0 -218
  3460. package/src/chart/controller/annotation.ts +0 -763
  3461. package/src/chart/controller/axis.ts +0 -699
  3462. package/src/chart/controller/base.ts +0 -105
  3463. package/src/chart/controller/coordinate.ts +0 -177
  3464. package/src/chart/controller/gesture.ts +0 -293
  3465. package/src/chart/controller/index.ts +0 -39
  3466. package/src/chart/controller/legend.ts +0 -566
  3467. package/src/chart/controller/scrollbar.ts +0 -392
  3468. package/src/chart/controller/slider.ts +0 -360
  3469. package/src/chart/controller/tooltip.ts +0 -751
  3470. package/src/chart/event.ts +0 -86
  3471. package/src/chart/index.ts +0 -5
  3472. package/src/chart/layout/auto.ts +0 -76
  3473. package/src/chart/layout/constraint/bounds.ts +0 -51
  3474. package/src/chart/layout/constraint/constraint.ts +0 -97
  3475. package/src/chart/layout/constraint/gauss.ts +0 -71
  3476. package/src/chart/layout/constraint/index.ts +0 -30
  3477. package/src/chart/layout/constraint/solver.ts +0 -97
  3478. package/src/chart/layout/constraint/types.ts +0 -29
  3479. package/src/chart/layout/constraint/variable.ts +0 -33
  3480. package/src/chart/layout/index.ts +0 -33
  3481. package/src/chart/layout/padding-cal.ts +0 -123
  3482. package/src/chart/util/scale-pool.ts +0 -250
  3483. package/src/chart/util/sync-view-padding.ts +0 -17
  3484. package/src/chart/view.ts +0 -2112
  3485. package/src/component/labels.ts +0 -331
  3486. package/src/component/update-label.ts +0 -69
  3487. package/src/constant.ts +0 -143
  3488. package/src/core.ts +0 -81
  3489. package/src/dependents.ts +0 -99
  3490. package/src/engine/index.ts +0 -27
  3491. package/src/facet/circle.ts +0 -135
  3492. package/src/facet/facet.ts +0 -373
  3493. package/src/facet/index.ts +0 -25
  3494. package/src/facet/list.ts +0 -167
  3495. package/src/facet/matrix.ts +0 -149
  3496. package/src/facet/mirror.ts +0 -167
  3497. package/src/facet/rect.ts +0 -177
  3498. package/src/facet/tree.ts +0 -317
  3499. package/src/geometry/area.ts +0 -76
  3500. package/src/geometry/base.ts +0 -2145
  3501. package/src/geometry/edge.ts +0 -16
  3502. package/src/geometry/element/index.ts +0 -519
  3503. package/src/geometry/heatmap.ts +0 -223
  3504. package/src/geometry/interval.ts +0 -109
  3505. package/src/geometry/label/base.ts +0 -458
  3506. package/src/geometry/label/index.ts +0 -59
  3507. package/src/geometry/label/interface.ts +0 -65
  3508. package/src/geometry/label/interval.ts +0 -160
  3509. package/src/geometry/label/layout/adjust-color.ts +0 -40
  3510. package/src/geometry/label/layout/hide-overlap.ts +0 -85
  3511. package/src/geometry/label/layout/interval/adjust-position.ts +0 -72
  3512. package/src/geometry/label/layout/interval/hide-overlap.ts +0 -86
  3513. package/src/geometry/label/layout/limit-in-canvas.ts +0 -48
  3514. package/src/geometry/label/layout/limit-in-plot.ts +0 -99
  3515. package/src/geometry/label/layout/limit-in-shape.ts +0 -22
  3516. package/src/geometry/label/layout/overlap.ts +0 -251
  3517. package/src/geometry/label/layout/path/adjust-position.ts +0 -129
  3518. package/src/geometry/label/layout/pie/distribute.ts +0 -203
  3519. package/src/geometry/label/layout/pie/outer.ts +0 -247
  3520. package/src/geometry/label/layout/pie/spider.ts +0 -201
  3521. package/src/geometry/label/layout/pie/util.ts +0 -85
  3522. package/src/geometry/label/layout/point/adjust-position.ts +0 -129
  3523. package/src/geometry/label/layout/worker/hide-overlap.ts +0 -192
  3524. package/src/geometry/label/pie.ts +0 -97
  3525. package/src/geometry/label/polar.ts +0 -225
  3526. package/src/geometry/label/util/createWorker.ts +0 -15
  3527. package/src/geometry/label/util/index.ts +0 -81
  3528. package/src/geometry/line.ts +0 -18
  3529. package/src/geometry/path.ts +0 -140
  3530. package/src/geometry/point.ts +0 -28
  3531. package/src/geometry/polygon.ts +0 -55
  3532. package/src/geometry/schema.ts +0 -43
  3533. package/src/geometry/shape/area/index.ts +0 -50
  3534. package/src/geometry/shape/area/line.ts +0 -33
  3535. package/src/geometry/shape/area/smooth-line.ts +0 -33
  3536. package/src/geometry/shape/area/smooth.ts +0 -35
  3537. package/src/geometry/shape/area/util.ts +0 -111
  3538. package/src/geometry/shape/base.ts +0 -191
  3539. package/src/geometry/shape/constant.ts +0 -4
  3540. package/src/geometry/shape/edge/arc.ts +0 -104
  3541. package/src/geometry/shape/edge/index.ts +0 -38
  3542. package/src/geometry/shape/edge/smooth.ts +0 -37
  3543. package/src/geometry/shape/edge/util.ts +0 -36
  3544. package/src/geometry/shape/edge/vhv.ts +0 -51
  3545. package/src/geometry/shape/interval/funnel.ts +0 -36
  3546. package/src/geometry/shape/interval/hollow-rect.ts +0 -62
  3547. package/src/geometry/shape/interval/index.ts +0 -79
  3548. package/src/geometry/shape/interval/line.ts +0 -63
  3549. package/src/geometry/shape/interval/pyramid.ts +0 -37
  3550. package/src/geometry/shape/interval/tick.ts +0 -86
  3551. package/src/geometry/shape/interval/util.ts +0 -348
  3552. package/src/geometry/shape/line/index.ts +0 -141
  3553. package/src/geometry/shape/line/step.ts +0 -97
  3554. package/src/geometry/shape/line/util.ts +0 -85
  3555. package/src/geometry/shape/point/hollow.ts +0 -27
  3556. package/src/geometry/shape/point/image.ts +0 -51
  3557. package/src/geometry/shape/point/index.ts +0 -37
  3558. package/src/geometry/shape/point/solid.ts +0 -26
  3559. package/src/geometry/shape/point/util.ts +0 -54
  3560. package/src/geometry/shape/polygon/index.ts +0 -78
  3561. package/src/geometry/shape/polygon/square.ts +0 -52
  3562. package/src/geometry/shape/schema/box.ts +0 -154
  3563. package/src/geometry/shape/schema/candle.ts +0 -90
  3564. package/src/geometry/shape/schema/index.ts +0 -7
  3565. package/src/geometry/shape/util/get-path-points.ts +0 -136
  3566. package/src/geometry/shape/util/get-style.ts +0 -56
  3567. package/src/geometry/shape/util/path.ts +0 -348
  3568. package/src/geometry/shape/util/split-points.ts +0 -26
  3569. package/src/geometry/shape/violin/hollow.ts +0 -59
  3570. package/src/geometry/shape/violin/index.ts +0 -69
  3571. package/src/geometry/shape/violin/smooth.ts +0 -32
  3572. package/src/geometry/util/diff.ts +0 -29
  3573. package/src/geometry/util/get-shape-type.ts +0 -17
  3574. package/src/geometry/util/group-data.ts +0 -30
  3575. package/src/geometry/util/is-model-change.ts +0 -18
  3576. package/src/geometry/util/parse-fields.ts +0 -10
  3577. package/src/geometry/util/shape-size.ts +0 -128
  3578. package/src/geometry/violin.ts +0 -64
  3579. package/src/interaction/action/active-region.ts +0 -216
  3580. package/src/interaction/action/base.ts +0 -49
  3581. package/src/interaction/action/callback.ts +0 -25
  3582. package/src/interaction/action/component/axis/axis-description.ts +0 -84
  3583. package/src/interaction/action/component/list-active.ts +0 -18
  3584. package/src/interaction/action/component/list-checked.ts +0 -84
  3585. package/src/interaction/action/component/list-focus.ts +0 -36
  3586. package/src/interaction/action/component/list-highlight-util.ts +0 -22
  3587. package/src/interaction/action/component/list-highlight.ts +0 -93
  3588. package/src/interaction/action/component/list-radio.ts +0 -128
  3589. package/src/interaction/action/component/list-selected.ts +0 -14
  3590. package/src/interaction/action/component/list-state.ts +0 -175
  3591. package/src/interaction/action/component/list-unchecked.ts +0 -17
  3592. package/src/interaction/action/component/tooltip/ellipsis-text.ts +0 -102
  3593. package/src/interaction/action/component/tooltip/geometry.ts +0 -77
  3594. package/src/interaction/action/component/tooltip/sibling.ts +0 -36
  3595. package/src/interaction/action/cursor.ts +0 -129
  3596. package/src/interaction/action/data/filter.ts +0 -59
  3597. package/src/interaction/action/data/range-filter.ts +0 -173
  3598. package/src/interaction/action/data/sibling-filter.ts +0 -38
  3599. package/src/interaction/action/element/active.ts +0 -18
  3600. package/src/interaction/action/element/filter.ts +0 -88
  3601. package/src/interaction/action/element/highlight-by-color.ts +0 -26
  3602. package/src/interaction/action/element/highlight-by-x.ts +0 -48
  3603. package/src/interaction/action/element/highlight-util.ts +0 -50
  3604. package/src/interaction/action/element/highlight.ts +0 -93
  3605. package/src/interaction/action/element/link-by-color.ts +0 -161
  3606. package/src/interaction/action/element/range-active.ts +0 -17
  3607. package/src/interaction/action/element/range-highlight.ts +0 -54
  3608. package/src/interaction/action/element/range-selected.ts +0 -17
  3609. package/src/interaction/action/element/range-state.ts +0 -162
  3610. package/src/interaction/action/element/selected.ts +0 -18
  3611. package/src/interaction/action/element/sibling-filter.ts +0 -85
  3612. package/src/interaction/action/element/single-active.ts +0 -17
  3613. package/src/interaction/action/element/single-highlight.ts +0 -33
  3614. package/src/interaction/action/element/single-selected.ts +0 -17
  3615. package/src/interaction/action/element/single-state.ts +0 -49
  3616. package/src/interaction/action/element/state-base.ts +0 -63
  3617. package/src/interaction/action/element/state.ts +0 -110
  3618. package/src/interaction/action/mask/base.ts +0 -182
  3619. package/src/interaction/action/mask/circle.ts +0 -31
  3620. package/src/interaction/action/mask/dim-rect.ts +0 -57
  3621. package/src/interaction/action/mask/path.ts +0 -40
  3622. package/src/interaction/action/mask/rect.ts +0 -34
  3623. package/src/interaction/action/mask/smooth-path.ts +0 -16
  3624. package/src/interaction/action/register.ts +0 -76
  3625. package/src/interaction/action/util.ts +0 -386
  3626. package/src/interaction/action/view/button.ts +0 -125
  3627. package/src/interaction/action/view/drag.ts +0 -73
  3628. package/src/interaction/action/view/mousewheel-scroll.ts +0 -38
  3629. package/src/interaction/action/view/move.ts +0 -79
  3630. package/src/interaction/action/view/scale-transform.ts +0 -49
  3631. package/src/interaction/action/view/scale-translate.ts +0 -111
  3632. package/src/interaction/action/view/scale-zoom.ts +0 -80
  3633. package/src/interaction/context.ts +0 -150
  3634. package/src/interaction/grammar-interaction.ts +0 -417
  3635. package/src/interaction/interaction.ts +0 -43
  3636. package/src/interface.ts +0 -3956
  3637. package/src/theme/style-sheet/dark.ts +0 -564
  3638. package/src/theme/style-sheet/light.ts +0 -560
  3639. package/src/theme/util/create-by-style-sheet.ts +0 -1461
  3640. package/src/theme/util/create-theme.ts +0 -17
  3641. package/src/theme/util/index.ts +0 -1
  3642. package/src/util/annotation.ts +0 -42
  3643. package/src/util/attr.ts +0 -26
  3644. package/src/util/axis.ts +0 -261
  3645. package/src/util/bbox.ts +0 -271
  3646. package/src/util/collision-detect.ts +0 -163
  3647. package/src/util/color.ts +0 -21
  3648. package/src/util/context.ts +0 -12
  3649. package/src/util/coordinate.ts +0 -160
  3650. package/src/util/direction.ts +0 -138
  3651. package/src/util/dom.ts +0 -73
  3652. package/src/util/event.ts +0 -14
  3653. package/src/util/facet.ts +0 -48
  3654. package/src/util/graphics.ts +0 -236
  3655. package/src/util/grid.ts +0 -135
  3656. package/src/util/helper.ts +0 -74
  3657. package/src/util/legend.ts +0 -174
  3658. package/src/util/marker.ts +0 -57
  3659. package/src/util/padding.ts +0 -42
  3660. package/src/util/scale.ts +0 -146
  3661. package/src/util/stat.ts +0 -45
  3662. package/src/util/text.ts +0 -106
  3663. package/src/util/tooltip.ts +0 -482
  3664. package/src/util/transform.ts +0 -69
  3665. package/src/util/types.ts +0 -4
package/src/interface.ts DELETED
@@ -1,3956 +0,0 @@
1
- import { COMPONENT_TYPE, DIRECTION, LAYER } from './constant';
2
- import {
3
- AxisLabelCfg,
4
- AxisLineCfg,
5
- AxisSubTickLineCfg,
6
- AxisTickLineCfg,
7
- AxisTitleCfg,
8
- ContinueLegendHandlerCfg,
9
- ContinueLegendLabelCfg,
10
- ContinueLegendRailCfg,
11
- ContinueLegendTrackCfg,
12
- Coordinate,
13
- CrosshairLineCfg,
14
- CrosshairTextBackgroundCfg,
15
- CrosshairTextCfg,
16
- EnhancedTextCfg,
17
- GridLineCfg,
18
- GroupComponent,
19
- HtmlComponent,
20
- ICanvas,
21
- IGroup,
22
- IShape,
23
- CategoryLegendCfg,
24
- LegendBackgroundCfg,
25
- LegendItemNameCfg,
26
- LegendItemValueCfg,
27
- LegendMarkerCfg,
28
- LegendTitleCfg,
29
- LegendPageNavigatorCfg,
30
- PathCommand,
31
- Scale,
32
- ScaleConfig,
33
- ShapeAttrs,
34
- LineAnnotationTextCfg,
35
- TrendCfg,
36
- } from './dependents';
37
-
38
- import { View } from './chart';
39
- import { Facet } from './facet';
40
- import Element from './geometry/element';
41
- import { PaddingCalCtor } from './chart/layout/padding-cal';
42
- import { LegendRadio } from '@antv/component';
43
-
44
- // ============================ 基础类型 ============================
45
- /**
46
- * @title 通用对象
47
- */
48
- export interface LooseObject {
49
- [key: string]: any;
50
- }
51
-
52
- /**
53
- * @title 一个点位置
54
- */
55
- export interface Point {
56
- readonly x: number;
57
- readonly y: number;
58
- }
59
-
60
- /**
61
- * @title 画布范围
62
- */
63
- export interface Region {
64
- readonly start: Point;
65
- readonly end: Point;
66
- }
67
-
68
- /**
69
- * @title 画布大小
70
- */
71
- export interface Size {
72
- readonly width: number;
73
- readonly height: number;
74
- }
75
-
76
- /**
77
- * @title 带范围的点结构
78
- */
79
- export interface RangePoint {
80
- readonly x?: number | number[];
81
- readonly y?: number | number[];
82
- }
83
-
84
- /**
85
- * WAI-ARIA 无障碍标签配置
86
- */
87
- export type AriaOption =
88
- | false
89
- | {
90
- readonly label: string;
91
- };
92
-
93
- /**
94
- * @title 用户数据经过图形映射处理后的数据结构
95
- */
96
- export interface MappingDatum {
97
- /**
98
- * @title 原始数据
99
- */
100
- _origin: Datum;
101
- /**
102
- * @title shape 的关键点信息
103
- */
104
- points?: ShapeVertices;
105
- /**
106
- * @title 相对于当前 shape 的下一个 shape 的关键点信息
107
- */
108
- nextPoints?: ShapeVertices;
109
- /**
110
- * @title x 轴的坐标
111
- */
112
- x?: number[] | number;
113
- /**
114
- * @title y 轴的坐标
115
- */
116
- y?: number[] | number;
117
- /**
118
- * @title 颜色
119
- */
120
- color?: string;
121
- /**
122
- * @title 渲染的 shape 类型
123
- */
124
- shape?: string | string[];
125
- /**
126
- * @title 大小
127
- */
128
- size?: number;
129
- }
130
-
131
- /**
132
- * @title 绘制 Shape 需要的图形、样式、关键点等信息
133
- */
134
- export interface ShapeInfo {
135
- /**
136
- * @title x 坐标
137
- */
138
- x: number | number[];
139
- /**
140
- * @title y 坐标
141
- */
142
- y: number | number[];
143
- /**
144
- * @title 映射的 shape 类型
145
- */
146
- shape?: string | string[];
147
- /**
148
- * @title size 映射值
149
- */
150
- size?: number;
151
- /**
152
- * @title 映射的颜色值
153
- */
154
- color?: string;
155
- /**
156
- * @title 用户设置的图形样式
157
- */
158
- style?: LooseObject;
159
- /**
160
- * @title 是否在极坐标下
161
- */
162
- isInCircle?: boolean;
163
- /**
164
- * @title 对应的原始数据记录
165
- */
166
- data?: Datum | Data;
167
- /**
168
- * @title 存储进行图形映射后的数据
169
- */
170
- mappingData?: MappingDatum | MappingDatum[];
171
- /**
172
- * @title 构成 shape 的关键点
173
- */
174
- points?: ShapeVertices;
175
- /**
176
- * @title 下一个数据集对应的关键点
177
- */
178
- nextPoints?: ShapeVertices;
179
- /**
180
- * @title Geometry.Text 需要
181
- */
182
- text?: string;
183
- /**
184
- * @title 数据是否发生层叠
185
- */
186
- isStack?: boolean;
187
- /**
188
- * @title 是否连接空值,只对 Path Line Area 这三种 Geometry 生效。
189
- */
190
- connectNulls?: boolean;
191
- /**
192
- * @title shape 背景,只对 Interval Geometry 生效,目前只对 interval-rect shape 生效。
193
- */
194
- background?: {
195
- style?: ShapeAttrs;
196
- };
197
- /**
198
- * @title 是否展示单个孤立的数据点,只对 Path Line Area 这三种 Geometry 生效。
199
- */
200
- showSinglePoint?: boolean;
201
- /**
202
- * @title 默认的 shape 样式
203
- */
204
- defaultStyle?: LooseObject;
205
- /**
206
- * @title 自定义的数据,传入到 shapeInfo 中
207
- */
208
- customInfo?: CustomOption;
209
- }
210
-
211
- /**
212
- * @title 用户配置的动画,属性均可选
213
- */
214
- export interface AnimateCfg {
215
- /**
216
- * @title 动画缓动函数
217
- */
218
- readonly easing?: string | AnimateEasingCallback;
219
- /**
220
- * @title 动画执行函数
221
- */
222
- readonly animation?: string;
223
- /**
224
- * @title 动画执行时间
225
- */
226
- readonly duration?: number | AnimateDurationCallback;
227
- /**
228
- * @title 动画延迟时间
229
- */
230
- readonly delay?: number | AnimateDelayCallback;
231
- /**
232
- * @title 动画执行结束后的回调函数
233
- */
234
- readonly callback?: () => any;
235
- /**
236
- * @title 动画是否重复
237
- */
238
- readonly repeat?: boolean;
239
- }
240
-
241
- /**
242
- * @title 传递给 G 的动画配置,duration 必须提供
243
- */
244
- export interface GAnimateCfg {
245
- /**
246
- * @title 动画执行时间
247
- */
248
- readonly duration: number;
249
- /**
250
- * @title 动画缓动函数
251
- */
252
- readonly easing?: string;
253
- /**
254
- * @title 动画执行函数
255
- */
256
- readonly animation?: string;
257
- /**
258
- * @title 动画延迟时间
259
- */
260
- readonly delay?: number;
261
- /**
262
- * @title 动画执行结束后的回调函数
263
- */
264
- readonly callback?: () => any;
265
- /**
266
- * @title 动画是否重复
267
- */
268
- readonly repeat?: boolean;
269
- }
270
-
271
- // ============================ Geometry 接口相关的类型定义 ============================
272
- /**
273
- * @title 图形属性配置项定义,如 geometry.position({})
274
- */
275
- export interface AttributeOption {
276
- /**
277
- * @title 映射的属性字段。
278
- */
279
- fields?: string[];
280
- /**
281
- * @title 回调函数。
282
- */
283
- callback?: (...args) => any;
284
- /**
285
- * @title 指定常量映射规则。
286
- */
287
- values?: any[];
288
- }
289
-
290
- /**
291
- * @title 数据调整配置项定义,`geometry.adjust({})`
292
- */
293
- export interface AdjustOption {
294
- /**
295
- * @title 数据调整类型。
296
- */
297
- readonly type: AdjustType;
298
- /**
299
- * @title 间距
300
- * @description 该属性只对 'dodge' 类型生效,取 0 到 1 范围的值(相对于每个柱子宽度),用于控制一个分组中柱子之间的间距。
301
- * @see ![image](https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*ps3pToOg2nwAAAAAAAAAAABkARQnAQ)
302
- */
303
- readonly marginRatio?: number;
304
- /**
305
- * @title 分组字段
306
- * @description 该属性只对 'dodge' 类型生效,声明以哪个数据字段为分组依据。
307
- */
308
- readonly dodgeBy?: string;
309
- /**
310
- * @title 是否反序
311
- * @description 该属性只对 'stack' 类型生效,用于控制是否对数据进行反序操作。
312
- */
313
- readonly reverseOrder?: boolean;
314
- }
315
-
316
- /**
317
- * @title `geometry.style({})` 样式配置定义
318
- */
319
- export interface StyleOption {
320
- /**
321
- * @title 映射的字段。
322
- */
323
- readonly fields?: string[];
324
- /**
325
- * @title 回调函数。
326
- */
327
- readonly callback?: (...args) => LooseObject;
328
- /**
329
- * @title 图形样式配置。
330
- */
331
- readonly cfg?: LooseObject;
332
- }
333
-
334
- /**
335
- * @title geometry.custom() custom 自定义的配置,可以传入任何数据
336
- */
337
- export type CustomOption = any;
338
-
339
- /**
340
- * @title `geometry.tooltip({})` Tooltip 配置定义
341
- */
342
- export interface GeometryTooltipOption {
343
- /**
344
- * @title 参与映射的字段。
345
- */
346
- readonly fields: string[];
347
- /**
348
- * @title 回调函数。
349
- */
350
- readonly callback?: (...args) => LooseObject;
351
- }
352
-
353
- export interface GeometryLabelLayoutCfg {
354
- /**
355
- * @title label 布局类型。
356
- */
357
- type: string;
358
- /**
359
- * @title 各个布局函数开放给用户的配置。
360
- */
361
- cfg?: LooseObject;
362
- }
363
-
364
- /**
365
- * @title geometry.label({}) 配置属性
366
- */
367
- export interface GeometryLabelCfg {
368
- /**
369
- * @title 类型
370
- * @description 用于声明渲染的 label 类型。当用户使用了自定义的 label 类型,需要声明具体的 type 类型,否则会使用默认的 label 类型渲染。
371
- */
372
- type?: string;
373
- /**
374
- * @title 相对数据点的偏移距离, polar 和 theta 坐标系下可使用百分比字符串。
375
- */
376
- offset?: number | string;
377
- /**
378
- * @title label 相对于数据点在 X 方向的偏移距离。
379
- */
380
- offsetX?: number;
381
- /**
382
- * @title label 相对于数据点在 Y 方向的偏移距离。
383
- */
384
- offsetY?: number;
385
- /**
386
- * @title 文本内容
387
- * @description 展示的文本内容,如果不声明则按照参与映射的第一字段的值进行显示。当 content 为 IGroup 或者 IShape 类型时,请使用相对定位,即 x 和 y 坐标都设为 0,G2 内部会整体做最后的 label 进行定位的。
388
- * @link 示例: https://g2.antv.vision/zh/examples/pie/basic#pie-custome-label
389
- */
390
- content?: string | IGroup | IShape | GeometryLabelContentCallback;
391
- /**
392
- * @title 文本样式
393
- * @description label 文本图形属性样式。
394
- */
395
- style?: LooseObject;
396
- /**
397
- * @title 是否自动旋转
398
- * @description label 是否自动旋转
399
- * @default true
400
- */
401
- autoRotate?: boolean;
402
- /**
403
- * @title 旋转
404
- * @description 当且仅当 `autoRotate` 为 false 时生效,用于设置文本的旋转角度,**弧度制**。
405
- */
406
- rotate?: number;
407
- /**
408
- * @title 标签高度
409
- * @description 标签高度设置,仅当标签类型 type 为 pie 时生效;也可在主题中设置 pieLabels.labelHeight
410
- */
411
- labelHeight?: number;
412
- /**
413
- * @title 文本连接线
414
- * @description 用于设置文本连接线的样式属性,null 表示不展示。
415
- */
416
- labelLine?: null | boolean | { style?: object };
417
- /**
418
- * @title 文本放射状
419
- * @description 只对极坐标下的文本生效,表示文本是否按照角度进行放射状显示,true 表示开启,false 表示关闭。
420
- */
421
- labelEmit?: boolean;
422
- /**
423
- * @title 文本布局
424
- * 文本布局类型,支持多种布局函数组合使用。
425
- *
426
- * 目前提供了三种:'overlap','fixedOverlap','limitInShape':
427
- * 1. overlap: label 防遮挡,为了防止 label 之间相互覆盖,通过尝试向**四周偏移**来剔除放不下的 label。
428
- * 2. fixed-overlap: 不改变 label 位置的情况下对相互重叠的 label 进行调整。
429
- * 3. limit-in-shape: 剔除 shape 容纳不了的 label。
430
- *
431
- * @example
432
- * ```ts
433
- * layout: {
434
- * type: 'overlap',
435
- * },
436
- * ```
437
- */
438
- layout?: GeometryLabelLayoutCfg | GeometryLabelLayoutCfg[];
439
- /**
440
- * @title 背景
441
- * @description 用于绘制 label 背景
442
- */
443
- background?: {
444
- /**
445
- * @title 背景框图形属性配置
446
- * - fill?: string; 背景框 填充色
447
- * - stroke?: string; 背景框 描边色
448
- * - lineWidth?: string; 背景框 描边宽度
449
- * - radius?: number | number[]; 背景框圆角,支持整数或数组形式
450
- */
451
- style?: ShapeAttrs;
452
- /**
453
- * @title 背景框 内边距
454
- */
455
- padding?: number | number[];
456
- };
457
- /**
458
- * @title 位置
459
- * @description 仅当 geometry 为 interval 时生效,指定当前 label 与当前图形的相对位置。
460
- */
461
- position?:
462
- | ((data: Datum, mappingData: MappingDatum, index: number) => IntervalGeometryLabelPosition)
463
- | IntervalGeometryLabelPosition;
464
- /**
465
- * @title 动画配置。
466
- */
467
- animate?: AnimateOption | false | null;
468
- }
469
-
470
- /**
471
- * @title `geometry().label({})` 配置定义
472
- */
473
- export interface LabelOption {
474
- /**
475
- * @title 映射的字段。
476
- */
477
- fields?: string[];
478
- /**
479
- * @title 回调函数。
480
- */
481
- callback?: LabelCallback;
482
- cfg?: GeometryLabelCfg;
483
- }
484
-
485
- /**
486
- * @title Geometry 下每个 state 的配置结构
487
- */
488
- export interface StateCfg {
489
- /**
490
- * @title 状态样式配置。
491
- */
492
- style?: object | StateStyleCallback;
493
- }
494
-
495
- /**
496
- * @title geometry.state({}) 配置定义
497
- */
498
- export interface StateOption {
499
- /**
500
- * @title 默认状态样式。
501
- */
502
- default?: StateCfg;
503
- /**
504
- * @title active 状态配置。
505
- */
506
- active?: StateCfg;
507
- /**
508
- * @title inactive 状态配置。
509
- */
510
- inactive?: StateCfg;
511
- /**
512
- * @title selected 状态配置。
513
- */
514
- selected?: StateCfg;
515
- }
516
-
517
- /**
518
- * @title interval label 的位置
519
- */
520
- export type IntervalGeometryLabelPosition = 'top' | 'bottom' | 'middle' | 'left' | 'right';
521
- /**
522
- * @title G2 提供的 adjust 类型
523
- */
524
- export type AdjustType = 'stack' | 'jitter' | 'dodge' | 'symmetric';
525
- /**
526
- * @title geometry.color() 图形属性回调函数定义
527
- */
528
- export type ColorAttrCallback = (...args) => string;
529
- /**
530
- * @title geometry.shape() 图形属性回调函数定义
531
- */
532
- export type ShapeAttrCallback = (...args) => string | any[];
533
- /**
534
- * @title geometry.size() 图形属性回调函数定义
535
- */
536
- export type SizeAttrCallback = (...args) => number;
537
- /**
538
- * @title geometry.tooltip() 接口回调函数定义
539
- */
540
- export type TooltipCallback = (...args) => LooseObject;
541
- /**
542
- * @title geometry.style() 接口回调函数定义
543
- */
544
- export type StyleCallback = (...args) => LooseObject;
545
- /**
546
- * @title geometry.label() 接口回调函数定义
547
- */
548
- export type LabelCallback = (...args) => GeometryLabelCfg | null | undefined;
549
- /**
550
- * @title geometry label 中 content 属性的回调函数类型定义
551
- */
552
- export type GeometryLabelContentCallback = (
553
- data: Datum,
554
- mappingData: MappingDatum,
555
- index: number
556
- ) => string | IShape | IGroup;
557
- /**
558
- * @title state 下 style 回调函数定义
559
- */
560
- export type StateStyleCallback = (element: Element) => LooseObject;
561
-
562
- // ============================ Geometry Shape 接口相关的类型定义 ============================
563
- /**
564
- * @title 获取 shape marker 时需要的信息
565
- */
566
- export interface ShapeMarkerCfg {
567
- /**
568
- * @title 颜色。
569
- */
570
- color: string;
571
- /**
572
- * @title 是否是极坐标。
573
- */
574
- isInPolar: boolean;
575
- }
576
-
577
- /**
578
- * @title 图形 marker 的配置信息。
579
- */
580
- export interface ShapeMarkerAttrs {
581
- /**
582
- * @title marker 的形状。
583
- */
584
- symbol: string | ShapeMarkerSymbol;
585
- /**
586
- * @title marker 样式
587
- * @description
588
- * marker 的样式,`ShapeAttrs` 属性结构如下:
589
- *
590
- * ```ts
591
- * {
592
- * // x 坐标
593
- * x?: number;
594
- * // y 坐标
595
- * y?: number;
596
- * // 圆半径
597
- * r?: number;
598
- * // 描边颜色
599
- * stroke?: string | null;
600
- * // 描边透明度
601
- * strokeOpacity?: number;
602
- * // 填充颜色
603
- * fill?: string | null;
604
- * // 填充透明度
605
- * fillOpacity?: number;
606
- * // 整体透明度
607
- * opacity?: number;
608
- * // 线宽
609
- * lineWidth?: number;
610
- * // 指定如何绘制每一条线段末端
611
- * lineCap?: 'butt' | 'round' | 'square';
612
- * // 用来设置2个长度不为0的相连部分(线段,圆弧,曲线)如何连接在一起的属性(长度为0的变形部分,其指定的末端和控制点在同一位置,会被忽略)
613
- * lineJoin?: 'bevel' | 'round' | 'miter';
614
- * // 设置线的虚线样式,可以指定一个数组。一组描述交替绘制线段和间距(坐标空间单位)长度的数字。 如果数组元素的数量是奇数,数组的元素会被复制并重复。例如, [5, 15, 25] 会变成 [5, 15, 25, 5, 15, 25]。这个属性取决于浏览器是否支持 setLineDash() 函数。
615
- * lineDash?: number[] | null;
616
- * // Path 路径
617
- * path?: string | object[];
618
- * // 图形坐标点
619
- * points?: object[];
620
- * // 宽度
621
- * width?: number;
622
- * // 高度
623
- * height?: number;
624
- * // 阴影模糊效果程度
625
- * shadowBlur?: number;
626
- * // 阴影颜色
627
- * shadowColor?: string | null;
628
- * // 阴影 x 方向偏移量
629
- * shadowOffsetX?: number;
630
- * // 阴影 y 方向偏移量
631
- * shadowOffsetY?: number;
632
- * // 设置文本内容的当前对齐方式
633
- * textAlign?: 'start' | 'center' | 'end' | 'left' | 'right';
634
- * // 设置在绘制文本时使用的当前文本基线
635
- * textBaseline?: 'top' | 'hanging' | 'middle' | 'alphabetic' | 'ideographic' | 'bottom';
636
- * // 字体样式
637
- * fontStyle?: 'normal' | 'italic' | 'oblique';
638
- * // 文本字体大小
639
- * fontSize?: number;
640
- * // 文本字体
641
- * fontFamily?: string;
642
- * // 文本粗细
643
- * fontWeight?: 'normal' | 'bold' | 'bolder' | 'lighter' | number;
644
- * // 字体变体
645
- * fontVariant?: 'normal' | 'small-caps' | string;
646
- * // 文本行高
647
- * lineHeight?: number;
648
- * [key: string]: any;
649
- * }
650
- * ```
651
- *
652
- * @link https://github.com/antvis/g/blob/28e3178b616573e0fa6d59694f1aaca2baaa9766/packages/g-base/src/types.ts#L37|ShapeAttrs
653
- */
654
- style: ShapeAttrs;
655
- }
656
-
657
- /**
658
- * @title shape 关键点信息
659
- */
660
- export interface ShapePoint {
661
- /**
662
- * @title 数据点映射后对应 x 的值。
663
- */
664
- readonly x: number | number[];
665
- /**
666
- * @title 数据点映射后对应 y 的值。
667
- */
668
- readonly y?: number | number[];
669
- /**
670
- * @title 数据在 y 方向的最小值。
671
- */
672
- readonly y0?: number;
673
- /**
674
- * @title 大小
675
- */
676
- size?: number;
677
- }
678
-
679
- /**
680
- * @title 小提琴图 shape 关键点信息
681
- */
682
- export type ViolinShapePoint = ShapePoint & { _size?: number[] };
683
-
684
- /**
685
- * @title 注册 ShapeFactory 需要实现的接口。
686
- */
687
- export interface RegisterShapeFactory {
688
- /**
689
- * @title 默认的 shape 类型。
690
- */
691
- readonly defaultShapeType: string;
692
- /**
693
- * @title 返回绘制 shape 所有的关键点集合。
694
- */
695
- readonly getDefaultPoints?: (pointInfo: ShapePoint) => Point[];
696
- /**
697
- * @title 获取 shape 的默认绘制样式
698
- */
699
- readonly getDefaultStyle?: (geometryTheme: LooseObject) => LooseObject;
700
- /**
701
- * @title 获取 shape 对应的缩略图配置。
702
- */
703
- readonly getMarker?: (shapeType: string, markerCfg: ShapeMarkerCfg) => ShapeMarkerAttrs;
704
- /**
705
- * @title 创建具体的 G.Shape 实例。
706
- */
707
- readonly drawShape?: (shapeType: string, cfg: ShapeInfo, container: IGroup) => IShape | IGroup;
708
- }
709
-
710
- /**
711
- * @title 注册具体 shape 需要实现的接口。
712
- */
713
- export interface RegisterShape {
714
- /**
715
- * @title 计算绘制需要的关键点,在注册具体的 shape 时由开发者自己定义。
716
- */
717
- readonly getPoints?: (pointInfo: ShapePoint) => Point[];
718
- /**
719
- * @title 获取 shape 对应的缩略图样式配置,在注册具体的 shape 时由开发者自己定义。
720
- */
721
- readonly getMarker?: (markerCfg: ShapeMarkerCfg) => ShapeMarkerAttrs;
722
- /**
723
- * @title 绘制函数。
724
- */
725
- readonly draw: (cfg: ShapeInfo, container: IGroup) => IShape | IGroup | void;
726
- }
727
-
728
- /**
729
- * @title Shape 接口定义。
730
- */
731
- export interface Shape extends RegisterShape {
732
- /**
733
- * @title 坐标系对象。
734
- */
735
- coordinate: Coordinate;
736
- /**
737
- * @title 工具函数,将 0~1 path 转化成实际画布 path。
738
- */
739
- parsePath: (path: any) => PathCommand[];
740
- /**
741
- * @title 工具函数,0~1 的坐标点转换成实际画布坐标点。
742
- */
743
- parsePoint: (point: Point) => Point;
744
- /**
745
- * @title 工具函数,0~1 的坐标点集合转换成实际画布坐标点集合。
746
- */
747
- parsePoints: (points: Point[]) => Point[];
748
- }
749
-
750
- /**
751
- * @title ShapeFactory 接口定义。
752
- */
753
- export interface ShapeFactory extends RegisterShapeFactory {
754
- /**
755
- * @title 工厂名。
756
- */
757
- geometryType: string;
758
- /**
759
- * @title 坐标系对象。
760
- */
761
- coordinate: Coordinate;
762
- /**
763
- * @title ShapeFactory 下所有的主题样式。
764
- */
765
- theme: LooseObject;
766
- /**
767
- * @title 根据名称获取具体的 shape 对象。
768
- */
769
- getShape: (shapeType: string | string[]) => Shape;
770
- /**
771
- * @title 获取构成 shape 的关键点。
772
- */
773
- getShapePoints: (shapeType: string | string[], pointInfo: ShapePoint) => Point[];
774
- }
775
-
776
- /**
777
- * @title 自定义 Shape marker 的函数
778
- */
779
- export type ShapeMarkerSymbol = (x: number, y: number, r: number) => PathCommand[];
780
-
781
- // ============================ Annotation 类型定义 ============================
782
- /**
783
- * @title Annotation position 回调函数
784
- */
785
- export type AnnotationPositionCallback = (
786
- xScales: Scale[] | Record<string, Scale>,
787
- yScales: Scale[] | Record<string, Scale>
788
- ) => [number | string, number | string];
789
- /**
790
- * @title Annotation 位置相关属性的类型定义
791
- */
792
- export type AnnotationPosition =
793
- | [number | string, number | string]
794
- | Record<string, number | string>
795
- | AnnotationPositionCallback;
796
-
797
- /**
798
- * @title Annotation 定义的通用属性,chart.annotation().line({})
799
- */
800
- export interface AnnotationBaseOption {
801
- /**
802
- * @title 类型
803
- */
804
- readonly type?: string;
805
- /**
806
- * @title 是否顶层
807
- * @description 指定 annotation 是否绘制在 canvas 最上层,默认为 false, 即绘制在最下层
808
- */
809
- readonly top?: boolean;
810
- /**
811
- * @title 是否进行动画
812
- */
813
- readonly animate?: boolean;
814
- /**
815
- * @title 动画参数配置
816
- * @description 当且仅当 `animate` 属性为 true,即动画开启时生效。
817
- */
818
- readonly animateOption?: ComponentAnimateOption;
819
- /**
820
- * @title x 方向的偏移量
821
- */
822
- readonly offsetX?: number;
823
- /**
824
- * @title y 方向的偏移量
825
- */
826
- readonly offsetY?: number;
827
- }
828
-
829
- /**
830
- * @title 使用 RegionPosition 定位的组件配置
831
- */
832
- export interface RegionPositionBaseOption extends AnnotationBaseOption {
833
- /**
834
- * @title 起始位置
835
- */
836
- readonly start: AnnotationPosition;
837
- /**
838
- * @title 结束位置
839
- */
840
- readonly end: AnnotationPosition;
841
- /**
842
- * @title 图形样式属性
843
- */
844
- readonly style?: ShapeAttrs;
845
- }
846
-
847
- /**
848
- * @title 使用 PointPosition 定位的组件配置
849
- */
850
- export interface PointPositionBaseOption extends AnnotationBaseOption {
851
- /**
852
- * @title Point 定位位置
853
- */
854
- readonly position: AnnotationPosition;
855
- }
856
-
857
- /**
858
- * @title 使用 Image Annotation 组件的配置定义
859
- */
860
- export interface ImageOption extends RegionPositionBaseOption {
861
- /**
862
- * @title 图片路径
863
- */
864
- readonly src: string;
865
- }
866
-
867
- /**
868
- * @title 使用 Line Annotation 组件的配置定义
869
- */
870
- export interface LineOption extends RegionPositionBaseOption {
871
- /**
872
- * @title 文本配置定义
873
- */
874
- readonly text?: LineAnnotationTextCfg;
875
- }
876
- /**
877
- * @title 使用 Arc Annotation 组件的配置定义
878
- */
879
- export type ArcOption = RegionPositionBaseOption;
880
- /**
881
- * @title 使用 Region Annotation 组件的配置定义
882
- */
883
- export type RegionOption = RegionPositionBaseOption;
884
- /**
885
- * @title 使用 Text Annotation 组件的配置定义
886
- */
887
- export interface TextOption extends PointPositionBaseOption, Omit<EnhancedTextCfg, 'content'> {
888
- content?: string | number | ((filteredData: object[]) => string | number);
889
- }
890
- /**
891
- * @title 使用 DataMarker Annotation 组件的配置定义
892
- */
893
- export interface DataMarkerOption extends PointPositionBaseOption {
894
- /**
895
- * @title point 设置
896
- */
897
- readonly point?: null | { style?: ShapeAttrs };
898
- /**
899
- * @title line 设置
900
- */
901
- readonly line?: null | { style?: ShapeAttrs; length?: number };
902
- /**
903
- * @title text 设置
904
- */
905
- readonly text: null | EnhancedTextCfg;
906
- /**
907
- * @title 文本超出绘制区域时,是否自动调节文本方向,默认为 true
908
- */
909
- readonly autoAdjust?: boolean;
910
- /**
911
- * @title 朝向,默认为 upward,可选值为 'upward' 或者 'downward'
912
- */
913
- readonly direction?: 'upward' | 'downward';
914
- }
915
- /**
916
- * @title 使用 DataRegion Annotation 组件的配置定义
917
- */
918
- export interface DataRegionOption extends RegionPositionBaseOption {
919
- /**
920
- * @title line长度,default为 0
921
- */
922
- readonly lineLength?: number;
923
- /**
924
- * @title 标注区间的配置
925
- */
926
- readonly region?: null | { style?: ShapeAttrs };
927
- /**
928
- * @title 文本的配置
929
- */
930
- readonly text?: null | EnhancedTextCfg;
931
- }
932
- /**
933
- * @title 使用 RegionFilter Annotation 组件的配置定义
934
- */
935
- export interface RegionFilterOption extends RegionPositionBaseOption {
936
- /**
937
- * @title 染色色值
938
- */
939
- readonly color: string;
940
- /**
941
- * @title 适用场景
942
- * @description 可选,设定regionFilter只对特定geom类型起作用,如apply:['area']
943
- */
944
- readonly apply?: string[];
945
- }
946
-
947
- /**
948
- * @title Shape Annotation 的配置
949
- */
950
- export interface ShapeAnnotationOption extends AnnotationBaseOption {
951
- /**
952
- * @title 自定义 Annotation 绘制函数
953
- */
954
- render: (
955
- container: IGroup,
956
- view: View,
957
- helpers: { parsePosition: (position: [string | number, string | number] | Datum) => Point }
958
- ) => void;
959
- }
960
-
961
- /**
962
- * Html Annotation 配置
963
- */
964
- export interface HtmlAnnotationOption extends PointPositionBaseOption {
965
- /**
966
- * @title 容器元素
967
- */
968
- container?: string | HTMLElement;
969
- /**
970
- * @title 自定义 HTML DOM 元素
971
- */
972
- html: string | HTMLElement | ((container: HTMLElement, view: View) => void | string | HTMLElement);
973
- /**
974
- * @title X 方向对齐
975
- */
976
- alignX?: 'left' | 'middle' | 'right';
977
- /**
978
- * @title Y 方向对齐
979
- */
980
- alignY?: 'top' | 'middle' | 'bottom';
981
- /**
982
- * @title X 方向偏移
983
- */
984
- offsetX?: number;
985
- /**
986
- * @title Y 方向偏移
987
- */
988
- offsetY?: number;
989
- }
990
-
991
- // ============================ Chart && View 上的类型定义 ============================
992
- /**
993
- * @title Tooltip 内容框的 css 样式定义
994
- */
995
- export interface TooltipDomStyles {
996
- 'g2-tooltip'?: LooseObject;
997
- 'g2-tooltip-title'?: LooseObject;
998
- 'g2-tooltip-list'?: LooseObject;
999
- 'g2-tooltip-list-item'?: LooseObject;
1000
- 'g2-tooltip-marker'?: LooseObject;
1001
- 'g2-tooltip-value'?: LooseObject;
1002
- 'g2-tooltip-name'?: LooseObject;
1003
- }
1004
-
1005
- /**
1006
- * @title 目前组件动画允许的参数配置
1007
- */
1008
- export interface ComponentAnimateCfg {
1009
- /**
1010
- * @title 动画执行时间
1011
- */
1012
- readonly duration?: number;
1013
- /**
1014
- * @title 动画缓动函数
1015
- */
1016
- readonly easing?: string;
1017
- /**
1018
- * @title 动画延迟时间
1019
- */
1020
- readonly delay?: number;
1021
- }
1022
- /**
1023
- * @title 组件各个动画类型配置
1024
- */
1025
- export interface ComponentAnimateOption {
1026
- /**
1027
- * @title 初入场动画配置
1028
- */
1029
- appear?: ComponentAnimateCfg;
1030
- /**
1031
- * @title 更新动画配置
1032
- */
1033
- update?: ComponentAnimateCfg;
1034
- /**
1035
- * @title 更新后新入场的动画配置
1036
- */
1037
- enter?: ComponentAnimateCfg;
1038
- /**
1039
- * @title 离场动画配置
1040
- */
1041
- leave?: ComponentAnimateCfg;
1042
- }
1043
-
1044
- /**
1045
- * @title 列定义配置项
1046
- */
1047
- export interface ScaleOption extends ScaleConfig {
1048
- /**
1049
- * @title 声明度量类型。
1050
- */
1051
- type?: ScaleType;
1052
- /**
1053
- * @title 同步 scale
1054
- *
1055
- * @example
1056
- * ```ts
1057
- * chart.scale({
1058
- * x: { sync: true },
1059
- * y: { sync: true },
1060
- * x1: { sync: 'x1' },
1061
- * x2: { sync: 'x1' },
1062
- * });
1063
- * ```
1064
- *
1065
- * 通过以上配置,我们会分别对 x 和 y 两个字段,x1 和 x2 两个字段进行同步度量操作。
1066
- */
1067
- sync?: boolean | string;
1068
- /**
1069
- * @title 是否显示最后的 tick
1070
- * @description 只对 `type: 'cat'` 以及 `type: 'time-cat'` 的 scale 生效,强制显示最后的日期 tick。
1071
- */
1072
- showLast?: boolean;
1073
- /**
1074
- * @title 唯一 ID
1075
- * @description
1076
- * 用于声明使用数据记录中的哪些字段来组成一条数据的唯一 id(如有多个字段,则使用 '-' 连接)。
1077
- * 数据 id 用于标识 Element 图形元素,应用于 Geometry 中的图形元素 Element 更新。
1078
- * 默认 G2 内部会有一套 ID 生成规则,如果不能满足用户需求,用户既可以使用该属性配置 id。
1079
- * @example
1080
- * 下面的例子中,声明了将 'x' 和 'y' 字段的数值来作为每条数据记录的 id,即下面数据两条数据的 id 分别为:'1-23' 和 '2-2'。
1081
- * ```ts
1082
- * const data = [
1083
- * { x: 1, y: 23, z: 'a' },
1084
- * { x: 2, y: 2, z: 'b' },
1085
- * ];
1086
- *
1087
- * chart.scale({
1088
- * x: { key: true },
1089
- * y: { key: true },
1090
- * });
1091
- * ```
1092
- */
1093
- key?: boolean;
1094
- }
1095
-
1096
- /**
1097
- * @title Geometry 动画参数配置。geometry.animate()
1098
- */
1099
- export interface AnimateOption {
1100
- /**
1101
- * @title chart 初始化渲染时的入场动画,false/null 表示关闭入场动画。
1102
- */
1103
- appear?: AnimateCfg | false | null;
1104
- /**
1105
- * @title chart 发生更新时,新增元素的入场动画,false/null 表示关闭入场动画。
1106
- */
1107
- enter?: AnimateCfg | false | null;
1108
- /**
1109
- * @title 更新动画配置,false/null 表示关闭更新动画。
1110
- */
1111
- update?: AnimateCfg | false | null;
1112
- /**
1113
- * @title 销毁动画配置,false/null 表示关闭销毁动画。
1114
- */
1115
- leave?: AnimateCfg | false | null;
1116
- }
1117
-
1118
- /**
1119
- * @title 用于配置项式声明交互行为
1120
- */
1121
- export interface InteractionOption {
1122
- /**
1123
- * @title 交互名称
1124
- */
1125
- type: string;
1126
- /**
1127
- * @title 交互配置
1128
- */
1129
- cfg?: LooseObject;
1130
- }
1131
-
1132
- /**
1133
- * @title 用于配置项式的 Geometry 创建方式
1134
- */
1135
- export interface GeometryOption {
1136
- /**
1137
- * @title Geometry 的类型。
1138
- */
1139
- type?: 'interval' | 'line' | 'path' | 'point' | 'area' | 'polygon' | 'schema' | 'edge' | 'heatmap' | string;
1140
- /**
1141
- * @title position 通道映射规则,对应 `geometry.position()`。
1142
- */
1143
- position?: string | AttributeOption;
1144
- /**
1145
- * @title color 通道映射规则,对应 `geometry.color()`。
1146
- */
1147
- color?: string | AttributeOption;
1148
- /**
1149
- * @title shape 通道映射规则,对应 `geometry.shape()`。
1150
- */
1151
- shape?: string | AttributeOption;
1152
- /**
1153
- * @title size 通道映射规则,对应 `geometry.size()`。
1154
- */
1155
- size?: number | string | AttributeOption;
1156
- /**
1157
- * @title adjust 数据调整方式,对应 `geometry.adjust()`。
1158
- */
1159
- adjust?: string | string[] | AdjustOption | AdjustOption[];
1160
- /**
1161
- * @title style 样式配置,对应 `geometry.size()`。
1162
- */
1163
- style?: StyleOption | LooseObject;
1164
- /**
1165
- * @title tooltip 配置,对应 `geometry.tooltip()`。
1166
- */
1167
- tooltip?: GeometryTooltipOption | boolean | string;
1168
- /**
1169
- * @title Geometry 动画配置,对应 `geometry.animate()`。
1170
- */
1171
- animate?: AnimateOption | boolean;
1172
- /**
1173
- * @title Label 配置,对应 `geometry.label()`。
1174
- */
1175
- label?: LabelOption | false | string;
1176
- /**
1177
- * @title state 样式配置,对应 `geometry.state()`。
1178
- */
1179
- state?: StateOption;
1180
- /**
1181
- * @title 其他配置
1182
- */
1183
- cfg?: {
1184
- /**
1185
- * @title 是否对数据进行排序
1186
- */
1187
- sortable?: boolean;
1188
- /**
1189
- * @title 是否可见
1190
- */
1191
- visible?: boolean;
1192
- /**
1193
- * @title 是否连接空值,仅对 'line', 'area' 和 'path' 生效
1194
- */
1195
- connectNulls?: boolean;
1196
- };
1197
- }
1198
-
1199
- /**
1200
- * @title 用于配置型式的 View 声明方式
1201
- */
1202
- export interface ViewOption {
1203
- /**
1204
- * @title view 的唯一表示 ID
1205
- */
1206
- readonly id?: string;
1207
- /**
1208
- * @title view 的绘制范围,起始点为左上角。
1209
- */
1210
- readonly region?: Region;
1211
- /**
1212
- * 设置图表的内边距,使用方式参考 CSS 盒模型。
1213
- * 下图黄色区域即为 padding 的范围。
1214
- * ![](https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*pYwiQrdXGJ8AAAAAAAAAAABkARQnAQ)
1215
- *
1216
- * @example
1217
- * 1. padding: 20
1218
- * 2. padding: [ 10, 30, 30 ]
1219
- */
1220
- readonly padding?: ViewPadding;
1221
- /**
1222
- * @title 设置主题。
1223
- */
1224
- readonly theme?: LooseObject | string;
1225
- /**
1226
- * @title 是否可见。
1227
- */
1228
- readonly visible?: boolean;
1229
- /**
1230
- * 图表组件、图形映射等相关的配置。
1231
- */
1232
- readonly options?: Options;
1233
- }
1234
-
1235
- /**
1236
- * @title Chart 构造方法的入参
1237
- */
1238
- export interface ChartCfg
1239
- extends Omit<ViewCfg, 'parent' | 'canvas' | 'foregroundGroup' | 'middleGroup' | 'backgroundGroup' | 'region'> {
1240
- /**
1241
- * @title 指定 chart 绘制的 DOM,可以传入 DOM id,也可以直接传入 dom 实例。
1242
- */
1243
- readonly container: string | HTMLElement;
1244
- /**
1245
- * @title 图表宽度。
1246
- */
1247
- readonly width?: number;
1248
- /**
1249
- * @title 图表高度。
1250
- */
1251
- readonly height?: number;
1252
- /**
1253
- * @title 否自适应容器宽高
1254
- * @description
1255
- * 图表是否自适应容器宽高,默认为 false,用户需要手动设置 width 和 height。当 `autoFit: true` 时,
1256
- * 会自动取图表容器的宽高,如果用户设置了 height,那么会以用户设置的 height 为准。
1257
- * @default false
1258
- */
1259
- readonly autoFit?: boolean;
1260
- /**
1261
- * @title 渲染引擎
1262
- * @default "canvas"
1263
- */
1264
- readonly renderer?: Renderer;
1265
- /**
1266
- * @title 像素比
1267
- * @description 设置设备像素比,默认取浏览器的值 `window.devicePixelRatio`。
1268
- */
1269
- readonly pixelRatio?: number;
1270
- /**
1271
- * @title 是否开启局部刷新
1272
- * @default true
1273
- */
1274
- readonly localRefresh?: boolean;
1275
- /**
1276
- * @title 是否支持 CSS transform
1277
- * @description 开启后图表的交互以及事件将在页面设置了 css transform 属性时生效,默认关闭。
1278
- * @default false
1279
- */
1280
- readonly supportCSSTransform?: boolean;
1281
- /**
1282
- * @title 配置图表默认交互,仅支持字符串形式。
1283
- */
1284
- readonly defaultInteractions?: string[];
1285
- }
1286
-
1287
- export type SyncViewPaddingFn = (chart: View, views: View[], PC: PaddingCalCtor) => void;
1288
-
1289
- /**
1290
- * @title View 构造参数
1291
- */
1292
- export interface ViewCfg {
1293
- /**
1294
- * @title View id,可以由外部传入
1295
- */
1296
- readonly id?: string;
1297
- /**
1298
- * @title 当前 view 的父级 view。
1299
- */
1300
- readonly parent: View;
1301
- /**
1302
- * @title canvas 实例。
1303
- */
1304
- readonly canvas: ICanvas;
1305
- /**
1306
- * @title 前景层
1307
- */
1308
- readonly foregroundGroup: IGroup;
1309
- /**
1310
- * @title 中间层
1311
- */
1312
- readonly middleGroup: IGroup;
1313
- /**
1314
- * @title 背景层
1315
- */
1316
- readonly backgroundGroup: IGroup;
1317
- /**
1318
- * @title view 的绘制范围
1319
- */
1320
- readonly region?: Region;
1321
- /**
1322
- * @title 是否对超出坐标系范围的 Geometry 进行剪切
1323
- */
1324
- readonly limitInPlot?: boolean;
1325
- /**
1326
- * @title 内边距
1327
- * @description 设置图表的内边距,使用方式参考 CSS 盒模型,下图黄色区域即为 padding 的范围。
1328
- * @see ![](https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*pYwiQrdXGJ8AAAAAAAAAAABkARQnAQ)
1329
- * @example
1330
- * 1. padding: 20
1331
- * 2. padding: [ 10, 30, 30 ]
1332
- */
1333
- readonly padding?: ViewPadding;
1334
- /**
1335
- * @title 额外边距
1336
- * @description 设置图表的内边距在padding的基础上增加appendPadding的调整。
1337
- * @example
1338
- * 1. padding: 20
1339
- * 2. padding: [ 10, 30, 30 ]
1340
- */
1341
- readonly appendPadding?: ViewAppendPadding;
1342
- /**
1343
- * @title 是否同步子 view 的 padding
1344
- * @description 是否同步子 view 的 padding,可以是 boolean / SyncViewPaddingFn
1345
- * @example
1346
- * view1 的 padding 10
1347
- * view2 的 padding 20
1348
- * 那么两个子 view 的 padding 统一变成最大的 20.
1349
- *
1350
- * 如果是 Funcion,则使用自定义的方式去计算子 view 的 padding,这个函数中去修改所有的 views autoPadding 值
1351
- */
1352
- readonly syncViewPadding?: boolean | SyncViewPaddingFn;
1353
- /**
1354
- * @title 主题
1355
- * @description 设置 view 实例主题
1356
- */
1357
- readonly theme?: LooseObject | string;
1358
- /**
1359
- * @title 图表组件、图形映射等相关的配置。
1360
- */
1361
- readonly options?: Options;
1362
- /**
1363
- * @title 是否可见
1364
- */
1365
- readonly visible?: boolean;
1366
- }
1367
-
1368
- /**
1369
- * @ignore
1370
- * 组件及布局的信息
1371
- */
1372
- export interface ComponentOption {
1373
- readonly id?: string;
1374
- readonly component: GroupComponent | HtmlComponent;
1375
- readonly layer: LAYER;
1376
- direction: DIRECTION;
1377
- readonly type: COMPONENT_TYPE;
1378
- /* 其他的额外信息 */
1379
- readonly extra?: any;
1380
- }
1381
-
1382
- /**
1383
- * @title Legend marker 的配置结构
1384
- */
1385
- export interface MarkerCfg extends LegendMarkerCfg {
1386
- /**
1387
- * @title 配置图例 marker 的 symbol 形状。
1388
- */
1389
- symbol?: Marker | MarkerCallback;
1390
- style?: ShapeAttrs | ((style: ShapeAttrs) => ShapeAttrs);
1391
- }
1392
-
1393
- /**
1394
- * @title Legend item 各个图例项的数据结构
1395
- */
1396
- export interface LegendItem {
1397
- /**
1398
- * 唯一值,用于动画或者查找
1399
- */
1400
- id?: string;
1401
- /**
1402
- * @title 名称
1403
- */
1404
- name: string;
1405
- /**
1406
- * @title 值
1407
- */
1408
- value: any;
1409
- /**
1410
- * @title 图形标记
1411
- */
1412
- marker?: MarkerCfg | ((name: string, index: number, item: { name: string; value: string } & MarkerCfg) => MarkerCfg);
1413
- /**
1414
- * @title 初始是否处于未激活状态
1415
- */
1416
- unchecked?: boolean;
1417
- }
1418
-
1419
- export interface G2LegendTitleCfg extends LegendTitleCfg {
1420
- /**
1421
- * @title title 文本显示内容
1422
- */
1423
- text?: string;
1424
- }
1425
-
1426
- /**
1427
- * 图例项配置
1428
- */
1429
- export interface LegendCfg extends Omit<CategoryLegendCfg, 'marker'> {
1430
- /**
1431
- * @title 是否为自定义图例
1432
- * @description 当该属性为 true 时,需要声明 items 属性。
1433
- */
1434
- readonly custom?: boolean;
1435
- /**
1436
- * @title 布局
1437
- * @description 布局方式: horizontal,vertical
1438
- */
1439
- layout?: 'horizontal' | 'vertical';
1440
- /**
1441
- * @title 图例标题配置
1442
- * @description 默认不展示。
1443
- * @example
1444
- * 属性结构如下:
1445
- *
1446
- * ```ts
1447
- * {
1448
- * spacing?: number; // 标题同图例项的间距
1449
- * style?: ShapeAttrs; // 文本样式配置项
1450
- * }
1451
- * ```
1452
- *
1453
- * @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L639|LegendTitleCfg
1454
- */
1455
- title?: G2LegendTitleCfg;
1456
- /**
1457
- * @title 背景框配置项。
1458
- * @example
1459
- * 属性结构如下:
1460
- *
1461
- * ```ts
1462
- * {
1463
- * padding?: number | number[]; // 背景的留白
1464
- * style?: ShapeAttrs; // 背景样式配置项
1465
- * }
1466
- * ```
1467
- *
1468
- * 详见 {@link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L652|LegendBackgroundCfg}
1469
- */
1470
- background?: LegendBackgroundCfg;
1471
- /**
1472
- * @title 图例的位置。
1473
- */
1474
- position?:
1475
- | 'top'
1476
- | 'top-left'
1477
- | 'top-right'
1478
- | 'right'
1479
- | 'right-top'
1480
- | 'right-bottom'
1481
- | 'left'
1482
- | 'left-top'
1483
- | 'left-bottom'
1484
- | 'bottom'
1485
- | 'bottom-left'
1486
- | 'bottom-right';
1487
- /**
1488
- * @title 动画开关,默认关闭。
1489
- */
1490
- animate?: boolean;
1491
- /**
1492
- * @title 动画
1493
- * @description 动画参数配置,当且仅当 `animate` 属性为 true,即动画开启时生效。
1494
- */
1495
- animateOption?: ComponentAnimateOption;
1496
- /**
1497
- * @title 水平间距
1498
- * @description **分类图例适用**,控制图例项水平方向的间距。
1499
- */
1500
- itemSpacing?: number;
1501
- /**
1502
- * @title 垂直间距
1503
- * @description **分类图例适用**,控制图例项垂直方向的间距。
1504
- */
1505
- itemMarginBottom?: number;
1506
- /**
1507
- * @title 图例项的最大宽度
1508
- * @description
1509
- * **分类图例适用**,图例项的最大宽度,超出则自动缩略。
1510
- * `maxItemWidth` 可以是像素值;
1511
- * 也可以是相对值(取 0 到 1 范围的数值),代表占图表宽度的多少
1512
- */
1513
- maxItemWidth?: number;
1514
- /**
1515
- * @title 图例项的宽度
1516
- * @description **分类图例适用**,图例项的宽度, 默认为 null,自动计算。
1517
- */
1518
- itemWidth?: number;
1519
- /**
1520
- * @title 图例项的高度
1521
- * @description **分类图例适用**,图例的高度,默认为 null。
1522
- */
1523
- itemHeight?: number;
1524
- /**
1525
- * @title 图例项 name
1526
- * @description
1527
- * **分类图例适用**,图例项 name 文本的配置。
1528
- * 属性结构如下:
1529
- *
1530
- * ```ts
1531
- * {
1532
- * spacing?: number; // 图例项 name 同后面 value 的间距
1533
- * formatter?: (text: string, item: ListItem, index: number) => any; // 格式化文本函数
1534
- * style?: ShapeAttrs; // 文本配置项
1535
- * }
1536
- * ```
1537
- *
1538
- * @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L665|LegendItemNameCfg
1539
- */
1540
- itemName?: LegendItemNameCfg;
1541
- /**
1542
- * @title 图例项 value
1543
- * @description
1544
- * **分类图例适用**,图例项 value 附加值的配置项。
1545
- * 属性结构如下:
1546
- *
1547
- * ```ts
1548
- * {
1549
- * alignRight?: boolean; // 是否右对齐,默认为 false,仅当设置图例项宽度时生效
1550
- * formatter?: (text: string, item: ListItem, index: number) => any; // 格式化文本函数
1551
- * style?: ShapeAttrs; // 图例项附加值的配置
1552
- * }
1553
- * ```
1554
- *
1555
- * @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L685|LegendItemValueCfg
1556
- */
1557
- itemValue?: LegendItemValueCfg;
1558
- /**
1559
- * @title 最大宽度
1560
- * @description **分类图例适用**,图例项最大宽度设置。
1561
- */
1562
- maxWidth?: number;
1563
- /**
1564
- * @title 最大高度
1565
- * @description **分类图例适用**,图例项最大高度设置。
1566
- */
1567
- maxHeight?: number;
1568
- /**
1569
- * @title 最大宽度比例
1570
- * @description **分类图例适用**,图例项最大宽度比例(以 view 的 bbox 宽度为参照,默认 0.25)。
1571
- */
1572
- maxWidthRatio?: number;
1573
- /**
1574
- * @title 最大高度比例
1575
- * @description **分类图例适用**,图例项最大高度比例(以 view 的 bbox 高度为参照,默认 0.25)。
1576
- */
1577
- maxHeightRatio?: number;
1578
- /**
1579
- * @title 图例项的 marker
1580
- * @description **分类图例适用**,图例项的 marker 图标的配置。
1581
- */
1582
- marker?: MarkerCfg | ((name: string, index: number, item: { name: string; value: string } & MarkerCfg) => MarkerCfg);
1583
- /**
1584
- * @title 是否进行分页
1585
- * @description **适用于分类图例**,当图例项过多时是否进行分页。
1586
- */
1587
- flipPage?: boolean;
1588
- /**
1589
- * @title 分页器的样式
1590
- * @description **适用于分类图例**,图例分页器的样式设置。
1591
- */
1592
- pageNavigator?: LegendPageNavigatorCfg;
1593
- /**
1594
- * @title 图例项
1595
- * @description **分类图例适用**,用户自己配置图例项的内容。
1596
- */
1597
- items?: LegendItem[];
1598
- /**
1599
- * @title 反选
1600
- * @description **分类图里适用**,用来配置正反选功能
1601
- */
1602
- radio?: LegendRadio;
1603
- /**
1604
- * @title 是否逆序
1605
- * @description **分类图例适用**,是否将图例项逆序展示。
1606
- */
1607
- reversed?: boolean;
1608
-
1609
- /**
1610
- * @title 最小值
1611
- * @description **连续图例适用**,选择范围的最小值。
1612
- */
1613
- min?: number;
1614
- /**
1615
- * @title 最大
1616
- * @description **连续图例适用**,选择范围的最大值。
1617
- */
1618
- max?: number;
1619
- /**
1620
- * @title value
1621
- * @description **连续图例适用**,选择的值。
1622
- */
1623
- value?: number[];
1624
- /**
1625
- * @title 色块样式
1626
- * @description
1627
- * **连续图例适用**,选择范围的色块样式配置项。
1628
- * 属性结构如下:
1629
- *
1630
- * ```ts
1631
- * {
1632
- * style?: ShapeAttrs; // 选定范围的样式
1633
- * }
1634
- * ```
1635
- *
1636
- * @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L574|ContinueLegendTrackCfg
1637
- */
1638
- track?: ContinueLegendTrackCfg;
1639
- /**
1640
- * @title 滑轨(背景
1641
- * @description
1642
- * **连续图例适用**,图例滑轨(背景)的样式配置项。
1643
- * 属性结构如下:
1644
- *
1645
- * ```ts
1646
- * {
1647
- * type?: string; // rail 的类型,color, size
1648
- * size?: number; // 滑轨的宽度
1649
- * defaultLength?: number; // 滑轨的默认长度,,当限制了 maxWidth,maxHeight 时,不会使用这个属性会自动计算长度
1650
- * style?: ShapeAttrs; // 滑轨的样式
1651
- * }
1652
- * ```
1653
- *
1654
- * @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L595|ContinueLegendRailCfg
1655
- */
1656
- rail?: ContinueLegendRailCfg;
1657
- /**
1658
- * @title 文本
1659
- * @description
1660
- * **连续图例适用**,文本的配置项。
1661
- * 属性结构如下:
1662
- *
1663
- * ```ts
1664
- * {
1665
- * // 文本同滑轨的对齐方式,有五种类型
1666
- * // rail : 同滑轨对齐,在滑轨的两端
1667
- * // top, bottom: 图例水平布局时有效
1668
- * // left, right: 图例垂直布局时有效
1669
- * align?: string;
1670
- * spacing?: number; // 文本同滑轨的距离
1671
- * style?: ShapeAttrs; // 文本样式
1672
- * }
1673
- * ```
1674
- * @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L618|ContinueLegendLabelCfg
1675
- */
1676
- label?: ContinueLegendLabelCfg;
1677
- /**
1678
- * @title 滑块
1679
- * @description
1680
- * **连续图例适用**,滑块的配置项。
1681
- * 属性结构如下:
1682
- *
1683
- * ```ts
1684
- * {
1685
- * size?: number; // 滑块的大小
1686
- * style?: ShapeAttrs; // 滑块的样式设置
1687
- * }
1688
- * ```
1689
- *
1690
- * @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L582|ContinueLegendTrackCfg
1691
- */
1692
- handler?: ContinueLegendHandlerCfg;
1693
- /**
1694
- * @title 是否可滑动
1695
- * @description **连续图例适用**,滑块是否可以滑动。
1696
- */
1697
- slidable?: boolean;
1698
- /**
1699
- * @title 图例 x 方向的偏移。
1700
- */
1701
- offsetX?: number;
1702
- /**
1703
- * @title 图例 y 方向的偏移。
1704
- */
1705
- offsetY?: number;
1706
- /**
1707
- * @title 图例在四个方向的偏移量
1708
- */
1709
- padding?: number[];
1710
- /**
1711
- * 图例高亮状态,false 表示默认置灰,无或 true 表示高亮
1712
- */
1713
- selected?: {
1714
- [key: string]: boolean;
1715
- };
1716
- }
1717
-
1718
- /**
1719
- * Tooltip Crosshairs 的文本数据结构。
1720
- */
1721
- export interface TooltipCrosshairsText extends CrosshairTextCfg {
1722
- /**
1723
- * @title crosshairs 文本内容
1724
- */
1725
- content?: string;
1726
- }
1727
-
1728
- /**
1729
- * 辅助线文本回调函数
1730
- * @param type 对应当前 crosshairs 的类型,值为 'x' 或者 'y'
1731
- * @param defaultContent 对应当前 crosshairs 默认的文本内容
1732
- * @param items 对应当前 tooltip 内容框中的数据
1733
- * @param currentPoint 对应当前坐标点
1734
- * @returns 返回当前 crosshairs 对应的辅助线文本配置
1735
- */
1736
- export type TooltipCrosshairsTextCallback = (
1737
- type: string,
1738
- defaultContent: any,
1739
- items: any[],
1740
- currentPoint: Point
1741
- ) => TooltipCrosshairsText;
1742
- /**
1743
- * @title Tooltip crosshairs 配置结构
1744
- */
1745
- export interface TooltipCrosshairs {
1746
- /**
1747
- * @title 类型
1748
- * @description
1749
- * crosshairs 的类型: `x` 表示 x 轴上的辅助线,`y` 表示 y 轴上的辅助项。
1750
- * 以下是在不同坐标系下,crosshairs 各个类型的表现:
1751
- *
1752
- * | 坐标系 | type = 'x' | type = 'xy' | type = 'y' |
1753
- * | ------------ | ------------- | ------------- |
1754
- * | 直角坐标系 | ![image](https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*jmUBQ4nbtXsAAAAAAAAAAABkARQnAQ) | ![image](https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*RpWXT76ZSQgAAAAAAAAAAABkARQnAQ) | ![image](https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*Xjl8TLIJLuUAAAAAAAAAAABkARQnAQ) |
1755
- * | 极坐标 | ![image](https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*zbMVSoKTyFsAAAAAAAAAAABkARQnAQ) | ![image](https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*k5EYRJspET0AAAAAAAAAAABkARQnAQ) | ![image](https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*n_TKQpUaXWEAAAAAAAAAAABkARQnAQ) |
1756
- */
1757
- type?: 'x' | 'y' | 'xy';
1758
- /**
1759
- * @title 辅助线的样式配置。
1760
- * @description
1761
- * 属性结构如下:
1762
- *
1763
- * ```ts
1764
- * {
1765
- * style?: ShapeAttrs; // 线的样式配置
1766
- * }
1767
- * ```
1768
- *
1769
- * @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L1177|CrosshairLineCfg
1770
- */
1771
- line?: CrosshairLineCfg;
1772
- /**
1773
- * @title 文本
1774
- * @description 辅助线文本配置,支持回调。
1775
- */
1776
- text?: TooltipCrosshairsText | TooltipCrosshairsTextCallback;
1777
- /**
1778
- * @title 辅助线文本背景配置。
1779
- * @description
1780
- * 属性结构如下:
1781
- *
1782
- * ```ts
1783
- * {
1784
- * padding?: number | number[]; // 文本背景周围的留白
1785
- * style?: ShapeAttrs; // 文本背景的样式
1786
- * }
1787
- * ```
1788
- *
1789
- * @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L1185|CrosshairTextBackgroundCfg
1790
- */
1791
- textBackground?: CrosshairTextBackgroundCfg;
1792
- /**
1793
- * @title 辅助线是否跟随鼠标移动
1794
- * @description 即定位到数据点
1795
- * @default false
1796
- */
1797
- follow?: boolean;
1798
- }
1799
-
1800
- export type TooltipTitle = string | ((title: string, datum: Datum) => string);
1801
-
1802
- export type TooltipItem = {
1803
- /**
1804
- * @title 原始数据
1805
- */
1806
- readonly data: Datum; // 原始数据
1807
- /**
1808
- * @title 映射之后的数据
1809
- */
1810
- readonly mappingData: Datum; // 映射后的数据
1811
- /**
1812
- * @title tooltip item 中名称
1813
- */
1814
- readonly name: string;
1815
- /**
1816
- * @title tooltip item 中值
1817
- */
1818
- readonly value: string | number;
1819
- /**
1820
- * @title tooltip item 中颜色
1821
- */
1822
- readonly color: string;
1823
- /**
1824
- * @title tooltip item 中图标类型
1825
- */
1826
- readonly marker: string;
1827
- };
1828
-
1829
- /**
1830
- * @title chart.tooltip() 接口配置属性
1831
- */
1832
- export interface TooltipCfg {
1833
- /**
1834
- * @title 设置 tooltip 内容框是否跟随鼠标移动。
1835
- * @description 默认为 true,跟随鼠标移动,false 则固定位置不随鼠标移动。
1836
- * @default true
1837
- */
1838
- follow?: boolean;
1839
- /**
1840
- * @title tooltip 是否允许鼠标滑入
1841
- * @default false
1842
- */
1843
- enterable?: boolean;
1844
- /**
1845
- * @title tooltip 显示延迟(ms)
1846
- * @description 默认为 16ms,建议在 enterable = true 的时候才设置
1847
- * @default "16ms"
1848
- */
1849
- showDelay?: number;
1850
- /**
1851
- * @title 是否展示 tooltip 标题。
1852
- */
1853
- showTitle?: boolean;
1854
- /**
1855
- * @title 标题
1856
- * @description
1857
- * 设置 tooltip 的标题内容:如果值为数据字段名,则会展示数据中对应该字段的数值,如果数据中不存在该字段,则直接展示 title 值。
1858
- * 同时支持传入方法,回调的方式返回字符串
1859
- */
1860
- title?: TooltipTitle;
1861
- /**
1862
- * @title 设置 tooltip 的固定展示位置,相对于数据点。
1863
- */
1864
- position?: 'top' | 'bottom' | 'left' | 'right';
1865
- /**
1866
- * @title 是否合并当前点对应的所有数据
1867
- * @description true 表示合并当前点对应的所有数据并展示,false 表示只展示离当前点最逼近的数据内容。
1868
- */
1869
- shared?: boolean; // 是否只展示单条数据
1870
- /**
1871
- * @title 是否展示 crosshairs。
1872
- */
1873
- showCrosshairs?: boolean;
1874
- /**
1875
- * @title 交叉线
1876
- * @description 配置 tooltip 的 crosshairs,当且仅当 `showCrosshairs` 为 true 时生效。
1877
- */
1878
- crosshairs?: TooltipCrosshairs;
1879
- /**
1880
- * @title 是否渲染 tooltipMarkers。
1881
- */
1882
- showMarkers?: boolean;
1883
- /**
1884
- * @title tooltipMarker 的样式配置。
1885
- */
1886
- marker?: object;
1887
- /**
1888
- * @title 是否展示 tooltip 内容框
1889
- */
1890
- showContent?: boolean | ((datum: Datum) => boolean);
1891
- /**
1892
- * @title 自定义 tooltip 的容器。
1893
- */
1894
- container?: string | HTMLElement;
1895
- /**
1896
- * @title 图例容器的模板
1897
- * @description 用于指定图例容器的模板,自定义模板时必须包含各个 dom 节点的 class。
1898
- */
1899
- containerTpl?: string;
1900
- /**
1901
- * @title 默认模板
1902
- * @description 每项记录的默认模板,自定义模板时必须包含各个 dom 节点的 class。
1903
- */
1904
- itemTpl?: string;
1905
- /**
1906
- * @title dom 样式
1907
- * @description 传入各个 dom 的样式。
1908
- */
1909
- domStyles?: TooltipDomStyles;
1910
- /**
1911
- * @title tooltip 偏移量。
1912
- */
1913
- offset?: number;
1914
- /**
1915
- * @title 是否将 tooltip items 逆序
1916
- */
1917
- reversed?: boolean;
1918
- /**
1919
- * @title 是否显示空值的 tooltip 项目
1920
- */
1921
- showNil?: boolean;
1922
- /**
1923
- * @description 在 tooltip 渲染之前,对最终的 items 进行自定义处理(比如排序、过滤、格式化等)
1924
- */
1925
- customItems?: (originalItems: TooltipItem[]) => TooltipItem[];
1926
- /**
1927
- * @title 自定义模板
1928
- */
1929
- customContent?: (title: string, data: any[]) => string | HTMLElement;
1930
- }
1931
-
1932
- /**
1933
- * @title 坐标系配置
1934
- */
1935
- export interface CoordinateOption {
1936
- /**
1937
- * @title 坐标系类型
1938
- */
1939
- type?: 'polar' | 'theta' | 'rect' | 'cartesian' | 'helix';
1940
- /**
1941
- * @title 坐标系配置项,目前常用于极坐标。
1942
- */
1943
- cfg?: CoordinateCfg;
1944
- /**
1945
- * @title 坐标系变换
1946
- * @description
1947
- * 1. rotate 表示旋转,使用弧度制。
1948
- * 2. scale 表示沿着 x 和 y 方向的缩放比率。
1949
- * 3. reflect 表示沿 x 方向镜像或者沿 y 轴方向映射。
1950
- * 4. transpose 表示 x,y 轴置换。
1951
- */
1952
- actions?: CoordinateActions[];
1953
- }
1954
-
1955
- /**
1956
- * @title 极坐标系支持的配置属性
1957
- */
1958
- export interface CoordinateCfg {
1959
- /**
1960
- * @title 起始弧度
1961
- * @description 用于极坐标,配置起始弧度。
1962
- */
1963
- startAngle?: number;
1964
- /**
1965
- * @title 结束弧度
1966
- * @description 用于极坐标,配置结束弧度。
1967
- */
1968
- endAngle?: number;
1969
- /**
1970
- * @title 半径
1971
- * @description 用于极坐标,配置极坐标半径,0 - 1 范围的数值。
1972
- */
1973
- radius?: number;
1974
- /**
1975
- * @title 内半径
1976
- * @description 用于极坐标,极坐标内半径,0 -1 范围的数值。
1977
- */
1978
- innerRadius?: number;
1979
- }
1980
-
1981
- /**
1982
- * @title 坐标轴网格线的配置属性
1983
- */
1984
- export interface AxisGridCfg {
1985
- /**
1986
- * @title 线的样式
1987
- * @description
1988
- * 属性结构如下:
1989
- *
1990
- * ```ts
1991
- * {
1992
- * type?: string; // 栅格线的类型,'line' 或者 'circle'
1993
- * style?: ShapeAttrs; // 栅格线的样式配置项
1994
- * }
1995
- * ```
1996
- *
1997
- * @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L407|GridLineCfg
1998
- */
1999
- line?: GridLineCfg;
2000
- /**
2001
- * @title 两个栅格线间的填充色。
2002
- */
2003
- alternateColor?: string | string[];
2004
- /**
2005
- * @title 是否关闭
2006
- * @description 对于 circle 是否关闭 grid。
2007
- */
2008
- closed?: boolean;
2009
- /**
2010
- * @title 是否同刻度线对齐
2011
- * @description 如果值为 false,则会显示在两个刻度中间。
2012
- * @see ![image](https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*YX6fS4GTTvMAAAAAAAAAAABkARQnAQ)
2013
- */
2014
- alignTick?: boolean;
2015
- }
2016
-
2017
- /**
2018
- * @title 坐标轴配置属性,chart.axis()
2019
- */
2020
- export interface AxisCfg {
2021
- /**
2022
- * @title 是否渲染在画布顶层
2023
- * @description 防止部分图形中,需要将 axis 显示在图形上面,避免被图形遮挡
2024
- */
2025
- top?: boolean;
2026
- /**
2027
- * @title 坐标轴的位置
2028
- * @description 适用于直角坐标系,设置坐标轴的位置。
2029
- */
2030
- position?: 'top' | 'bottom' | 'right' | 'left';
2031
- /**
2032
- * @title 轴线
2033
- * @description
2034
- * 坐标轴线的配置项,null 表示不展示。
2035
- * 属性结构如下:
2036
- *
2037
- * ```ts
2038
- * {
2039
- * style?: ShapeAttrs; // 坐标轴线的样式配置项
2040
- * }
2041
- * ```
2042
- *
2043
- * @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L91|AxisLineCfg
2044
- */
2045
- line?: AxisLineCfg | null;
2046
- /**
2047
- * @title 刻度线线
2048
- * @description
2049
- * 坐标轴刻度线线的配置项,null 表示不展示。
2050
- * 属性结构如下:
2051
- *
2052
- * ```ts
2053
- * {
2054
- * style?: ShapeAttrs; // 坐标轴刻度线的样式配置项
2055
- * alignTick?: boolean; // 是否同 tick 对齐
2056
- * length?: number; // 长度
2057
- * }
2058
- * ```
2059
- *
2060
- * @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L103|AxisTickLineCfg
2061
- */
2062
- tickLine?: AxisTickLineCfg | null;
2063
- /**
2064
- * @title 子刻度线
2065
- * @description
2066
- * 坐标轴子刻度线的配置项,null 表示不展示。
2067
- * 属性结构如下:
2068
- *
2069
- * ```ts
2070
- * {
2071
- * style?: ShapeAttrs; // 坐标轴刻度线的样式配置项
2072
- * count?: number; // 子刻度个数
2073
- * length?: number; // 子刻度线长度
2074
- * }
2075
- * ```
2076
- *
2077
- * @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L169|AxisSubTickLineCfg
2078
- */
2079
- subTickLine?: AxisSubTickLineCfg | null;
2080
- /**
2081
- * @title 标题
2082
- * @description
2083
- * 标题的配置项,null 表示不展示。
2084
- * 属性结构如下:
2085
- *
2086
- * ```ts
2087
- * {
2088
- * offset?: number; // 标题距离坐标轴的距离
2089
- * style?: ShapeAttrs; // 标题文本配置项
2090
- * autoRotate?: boolean; // 是否自动旋转
2091
- * }
2092
- * ```
2093
- *
2094
- * @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L191|AxisTitleCfg
2095
- */
2096
- title?: AxisTitleCfg | null;
2097
- /**
2098
- * @title 文本标签
2099
- * @description
2100
- * 文本标签的配置项,null 表示不展示。
2101
- * 属性结构如下:
2102
- *
2103
- * ```ts
2104
- * {
2105
- * // 坐标轴文本的样式
2106
- * style?: ShapeAttrs;
2107
- * // label 的偏移量
2108
- * offset?: number;
2109
- * // 文本旋转角度
2110
- * rotate?: number;
2111
- * // 格式化函数
2112
- * formatter?: (text: string, item: ListItem, index: number) => any;
2113
- * // 是否自动旋转,默认 false
2114
- * autoRotate?: boolean | (isVertical: boolean, labelGroup: IGroup, limitLength?: number) => boolean; | string;
2115
- * // 是否自动隐藏,默认 true
2116
- * autoHide?: boolean | (isVertical: boolean, labelGroup: IGroup, limitLength?: number) => boolean; | string;
2117
- * // 是否自动省略,默认 false
2118
- * autoEllipsis?: boolean | (isVertical: boolean, labelGroup: IGroup, limitLength?: number) => boolean; | string;
2119
- * }
2120
- * ```
2121
- *
2122
- * @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L127|AxisLabelCfg
2123
- */
2124
- label?: AxisLabelCfg | null;
2125
- /**
2126
- * @title 网格线
2127
- * @description 坐标轴网格线的配置项,null 表示不展示。
2128
- */
2129
- grid?: AxisGridCfg | null;
2130
- /**
2131
- * @title 动画
2132
- * @default true
2133
- */
2134
- animate?: boolean;
2135
- /**
2136
- * @title 动画参数
2137
- */
2138
- animateOption?: ComponentAnimateOption;
2139
- /**
2140
- * @title 坐标轴 label 的方向
2141
- * @description 标记坐标轴 label 的方向,左侧为 1,右侧为 -1。
2142
- */
2143
- verticalFactor?: number;
2144
- /**
2145
- * @title 坐标轴垂直方向的最大限制长度
2146
- * @description
2147
- * 配置坐标轴垂直方向的最大限制长度,对文本自适应有很大影响。
2148
- * 1. 可以直接设置像素值,如 100;
2149
- * 2. 也可设置绝对值,如 0.2,如果是 x 轴,则相对于图表的高度,如果是 y 轴,则相对于图表的宽度
2150
- *
2151
- * 在 G2 中,x 轴的文本默认最大高度为图表高度的 1/2,y 轴的文本默认最大长度为图表宽度的 1/3
2152
- */
2153
- verticalLimitLength?: number;
2154
- }
2155
-
2156
- export interface SliderCfg {
2157
- /**
2158
- * @title slider 高度
2159
- */
2160
- readonly height?: number;
2161
-
2162
- /**
2163
- * @title 滑块背景区域配置
2164
- */
2165
- readonly trendCfg?: Omit<TrendCfg, 'data'> & { data?: number[] };
2166
- /**
2167
- * @title 滑块背景样式
2168
- */
2169
- readonly backgroundStyle?: any;
2170
- /**
2171
- * @title 滑块前景样式
2172
- */
2173
- readonly foregroundStyle?: any;
2174
- /**
2175
- * @title 滑块两个操作块样式
2176
- */
2177
- readonly handlerStyle?: any;
2178
- /**
2179
- * @title 文本样式
2180
- */
2181
- readonly textStyle?: any;
2182
- /**
2183
- * @title 允许滑动位置的最小值
2184
- */
2185
- readonly minLimit?: number;
2186
- /**
2187
- * @title 允许滑动位置的最大值
2188
- */
2189
- readonly maxLimit?: number;
2190
- /**
2191
- * @title 滑块初始化的起始位置
2192
- */
2193
- readonly start?: number;
2194
- /**
2195
- * @title 滑块初始化的结束位置
2196
- */
2197
- readonly end?: number;
2198
- /**
2199
- * @title 布局的 padding
2200
- */
2201
- readonly padding?: number[];
2202
- /**
2203
- * @title 滑块文本格式化函数
2204
- */
2205
- formatter?: (val: any, datum: Datum, idx: number) => any;
2206
- }
2207
-
2208
- /**
2209
- * 事件 payload
2210
- */
2211
- export type EventPayload = LooseObject & {
2212
- /**
2213
- * @title 触发事件的来源
2214
- */
2215
- source?: string;
2216
- };
2217
-
2218
- export type EventCallback = (event: LooseObject) => void;
2219
- /**
2220
- * todo: 事件名可穷举,后续需要补充
2221
- * 事件配置项
2222
- */
2223
- export interface EventCfg {
2224
- [key: string]: EventCallback;
2225
- }
2226
-
2227
- /**
2228
- * 缩略轴的配置项
2229
- */
2230
- export type SliderOption = SliderCfg | boolean;
2231
-
2232
- /**
2233
- * @title 滚动条组件配置项
2234
- */
2235
- export interface ScrollbarCfg {
2236
- /**
2237
- * @title 滚动条类型,默认 horizontal
2238
- */
2239
- type?: 'horizontal' | 'vertical';
2240
- /**
2241
- * @title 宽度,在 vertical 下生效
2242
- */
2243
- width?: number;
2244
- /**
2245
- * @title 高度,在 horizontal 下生效
2246
- */
2247
- height?: number;
2248
- /**
2249
- * @title 可选 padding
2250
- */
2251
- padding?: Padding;
2252
- /**
2253
- * @title 对应水平滚动条,为 X 轴每个分类字段的宽度;对于垂直滚动条,为 X 轴每个分类字段的高度
2254
- */
2255
- categorySize?: number;
2256
- /**
2257
- * @title 滚动的时候是否开启动画,默认跟随 view 中 animate 配置
2258
- */
2259
- animate?: boolean;
2260
- /**
2261
- * @title 主题样式设置, 暂不提供 hover 高亮滑块样式配置
2262
- */
2263
- style?: {
2264
- /**
2265
- * @title 滑道颜色
2266
- */
2267
- trackColor?: string;
2268
- /**
2269
- * @title 滑块颜色
2270
- */
2271
- thumbColor?: string;
2272
- /**
2273
- * @title 滑块高亮样式,对应主题的 hover.style.thumbColor
2274
- */
2275
- thumbHighlightColor?: string;
2276
- /**
2277
- * @title 是否圆角
2278
- */
2279
- lineCap?: string;
2280
- };
2281
- }
2282
-
2283
- /**
2284
- * @title 滚动条配置
2285
- */
2286
- export type ScrollbarOption = ScrollbarCfg | boolean;
2287
-
2288
- /**
2289
- * @title 配置项声明式
2290
- */
2291
- export interface Options {
2292
- /**
2293
- * @title 数据源配置。
2294
- */
2295
- readonly data?: Data;
2296
- /**
2297
- * @title 设置数据过滤条件,以 data 中的数据属性为 key。
2298
- */
2299
- readonly filters?: Record<string, FilterCondition>;
2300
- /**
2301
- * @title 坐标轴配置,以 data 中的数据属性为 key。
2302
- */
2303
- readonly axes?: Record<string, AxisOption> | boolean;
2304
- /**
2305
- * @title 图例配置,以 data 中的数据属性为 key。
2306
- */
2307
- readonly legends?: AllLegendsOptions;
2308
- /**
2309
- * @title 列定义配置,用于配置数值的类型等,以 data 中的数据属性为 key。
2310
- */
2311
- readonly scales?: Record<string, ScaleOption>;
2312
- /**
2313
- * @title Tooltip 配置。
2314
- */
2315
- readonly tooltip?: TooltipOption;
2316
- /**
2317
- * @title 坐标系配置。
2318
- */
2319
- readonly coordinate?: CoordinateOption;
2320
- /**
2321
- * @title 静态辅助元素声明。
2322
- */
2323
- readonly annotations?: (
2324
- | ArcOption
2325
- | RegionFilterOption
2326
- | ImageOption
2327
- | LineOption
2328
- | TextOption
2329
- | RegionOption
2330
- | DataMarkerOption
2331
- | DataRegionOption
2332
- )[];
2333
- /**
2334
- * @title Geometry 配置
2335
- */
2336
- readonly geometries?: GeometryOption[];
2337
- /**
2338
- * @title 开启/关闭动画,默认开启
2339
- */
2340
- readonly animate?: boolean;
2341
- /**
2342
- * @title 配置需要使用的交互行为
2343
- */
2344
- readonly interactions?: InteractionOption[];
2345
- /**
2346
- * @title 事件配置
2347
- */
2348
- readonly events?: EventCfg;
2349
-
2350
- /**
2351
- * @title 缩略轴的配置
2352
- */
2353
- readonly slider?: SliderOption;
2354
-
2355
- /**
2356
- * @title 滚动条配置
2357
- */
2358
- readonly scrollbar?: ScrollbarOption;
2359
-
2360
- /**
2361
- * @title 子 View
2362
- */
2363
- readonly views?: ViewOption[];
2364
-
2365
- /**
2366
- * @title 分面
2367
- */
2368
- readonly facets?: (RectCfg | MirrorCfg | CircleCfg | ListCfg | TreeCfg)[];
2369
-
2370
- /**
2371
- * @title 其他自定义的 option
2372
- */
2373
- readonly [name: string]: any;
2374
- }
2375
-
2376
- /**
2377
- * @title 支持的 Marker 类型
2378
- */
2379
- export type Marker =
2380
- | 'circle'
2381
- | 'square'
2382
- | 'diamond'
2383
- | 'triangle'
2384
- | 'triangle-down'
2385
- | 'hexagon'
2386
- | 'bowtie'
2387
- | 'cross'
2388
- | 'tick'
2389
- | 'plus'
2390
- | 'hyphen'
2391
- | 'line';
2392
- /**
2393
- * @title 自定义 Marker 的回调函数定义
2394
- */
2395
- export type MarkerCallback = (x: number, y: number, r: number) => PathCommand[];
2396
- /**
2397
- * @title chart.tooltip() 参数类型
2398
- */
2399
- export type TooltipOption = TooltipCfg | boolean;
2400
- /* 筛选器函数类型定义 */
2401
- export type FilterCondition = (value: any, datum: Datum, idx?: number) => boolean;
2402
- /**
2403
- * @title chart.axis() 参数类型
2404
- */
2405
- export type AxisOption = AxisCfg | boolean;
2406
- /**
2407
- * @title chart.legend() 参数类型
2408
- */
2409
- export type LegendOption = LegendCfg | boolean;
2410
- /**
2411
- * @title Options 中 legends 的配置定义
2412
- */
2413
- export type AllLegendsOptions = LegendCfg | Record<string, LegendOption> | boolean;
2414
- /**
2415
- * @title G2 支持的度量类型
2416
- */
2417
- export type ScaleType =
2418
- | 'linear'
2419
- | 'cat'
2420
- | 'category'
2421
- | 'identity'
2422
- | 'log'
2423
- | 'pow'
2424
- | 'time'
2425
- | 'timeCat'
2426
- | 'quantize'
2427
- | 'quantile';
2428
-
2429
- export type CoordinateRotate = ['rotate', number];
2430
- export type CoordinateReflect = ['reflect', 'x' | 'y'];
2431
- export type CoordinateScale = ['scale', number, number];
2432
- export type CoordinateTranspose = ['transpose'];
2433
- /**
2434
- * @title 坐标系支持的 action 配置
2435
- */
2436
- export type CoordinateActions = CoordinateRotate | CoordinateReflect | CoordinateScale | CoordinateTranspose;
2437
-
2438
- // ============================ Facet 分面相关类型定义 ============================
2439
- // 分面基类
2440
- export type FacetCtor = new (view: View, cfg: any) => Facet;
2441
-
2442
- export interface Condition {
2443
- readonly field: string;
2444
- readonly value: any;
2445
- readonly values: any[];
2446
- }
2447
-
2448
- export type FacetDataFilter = (data: Datum[]) => boolean;
2449
-
2450
- /**
2451
- * 默认的基础配置
2452
- */
2453
- export interface FacetCfg<D> {
2454
- /**
2455
- * @title 布局类型。
2456
- */
2457
- readonly type?: string;
2458
- /**
2459
- * @title view 创建回调。
2460
- */
2461
- readonly eachView: (innerView: View, facet?: D) => any;
2462
- /**
2463
- * @title 分面 view 之间的间隔, 百分比或像素值
2464
- */
2465
- readonly spacing?: [number | string, number | string];
2466
- /**
2467
- * @title facet view padding。
2468
- */
2469
- readonly padding?: ViewPadding;
2470
- /**
2471
- * @title 是否显示标题。
2472
- */
2473
- readonly showTitle?: boolean;
2474
- /**
2475
- * @title facet 数据划分维度。
2476
- */
2477
- readonly fields: string[];
2478
- }
2479
-
2480
- /**
2481
- * Facet title 配置项
2482
- */
2483
- export interface FacetTitle {
2484
- /**
2485
- * @title x 方向偏移。
2486
- */
2487
- readonly offsetX?: number;
2488
- /**
2489
- * @title y 方向偏移。
2490
- */
2491
- readonly offsetY?: number;
2492
- /**
2493
- * @title 文本样式。
2494
- */
2495
- readonly style?: object;
2496
- /**
2497
- * @title 格式化
2498
- */
2499
- readonly formatter?: (val: any) => any;
2500
- }
2501
-
2502
- /**
2503
- * 分面数据
2504
- */
2505
- export interface FacetData {
2506
- /**
2507
- * @title 分面类型。
2508
- */
2509
- readonly type: string;
2510
- /**
2511
- * @title 当前分面子 view 的数据。
2512
- */
2513
- readonly data: object[];
2514
- /**
2515
- * @title 当前分面子 view 的范围。
2516
- */
2517
- readonly region: Region;
2518
- /**
2519
- * @title 当前分面子 view 的 padding。
2520
- */
2521
- readonly padding?: number;
2522
- /**
2523
- * @title 当前 facet 对应生成的 view。
2524
- */
2525
- view?: View;
2526
-
2527
- // facet data
2528
- /**
2529
- * @title 分面行字段。
2530
- */
2531
- readonly rowField: string;
2532
- /**
2533
- * @title 分面列字段。
2534
- */
2535
- readonly columnField: string;
2536
- /**
2537
- * @title 当前行分面的枚举值。
2538
- */
2539
- readonly rowValue: string;
2540
- /**
2541
- * @title 当前列分面的枚举值。
2542
- */
2543
- readonly columnValue: string;
2544
- /**
2545
- * @title 当前行索引。
2546
- */
2547
- readonly rowIndex: number;
2548
- /**
2549
- * @title 当前列索引。
2550
- */
2551
- readonly columnIndex: number;
2552
- /**
2553
- * @title 当前行字段的枚举值长度。
2554
- */
2555
- readonly rowValuesLength: number;
2556
- /**
2557
- * @title 当前列字段的枚举值长度。
2558
- */
2559
- readonly columnValuesLength: number;
2560
- }
2561
-
2562
- // ===================== rect 相关类型定义 =====================
2563
- /**
2564
- * @title rect 分面类型配置
2565
- */
2566
- export interface RectCfg extends FacetCfg<RectData> {
2567
- /**
2568
- * @title 行标题的样式。
2569
- */
2570
- readonly columnTitle?: FacetTitle;
2571
- /**
2572
- * @title 列标题的样式。
2573
- */
2574
- readonly rowTitle?: FacetTitle;
2575
- }
2576
-
2577
- export type RectData = FacetData;
2578
-
2579
- // ===================== mirror 相关类型定义 =====================
2580
- /**
2581
- * @title mirror 分面类型配置
2582
- */
2583
- export interface MirrorCfg extends FacetCfg<MirrorData> {
2584
- /**
2585
- * @title 是否转置。
2586
- */
2587
- readonly transpose?: boolean;
2588
- /**
2589
- * @title 标题样式。
2590
- */
2591
- readonly title?: FacetTitle;
2592
- }
2593
-
2594
- export type MirrorData = FacetData;
2595
-
2596
- // ===================== list 相关类型定义 =====================
2597
- /**
2598
- * @title list 分面类型配置
2599
- */
2600
- export interface ListCfg extends FacetCfg<ListData> {
2601
- /**
2602
- * @title 指定每行可显示分面的个数,超出时会自动换行。
2603
- */
2604
- readonly cols?: number;
2605
- /**
2606
- * @title 每个分面标题配置。
2607
- */
2608
- readonly title?: FacetTitle;
2609
- }
2610
-
2611
- export interface ListData extends FacetData {
2612
- readonly total?: number;
2613
- }
2614
-
2615
- // ===================== matrix 相关类型定义 =====================
2616
- /**
2617
- * @title matrix 分面类型配置
2618
- */
2619
- export interface MatrixCfg extends FacetCfg<MirrorData> {
2620
- /**
2621
- * @title 列标题的样式
2622
- */
2623
- readonly columnTitle?: FacetTitle;
2624
- /**
2625
- * @title 列标题的样式
2626
- */
2627
- readonly rowTitle?: FacetTitle;
2628
- }
2629
-
2630
- export type MatrixData = FacetData;
2631
-
2632
- // ===================== circle 相关类型定义 =====================
2633
- /**
2634
- * @title circle 分面类型配置
2635
- */
2636
- export interface CircleCfg extends FacetCfg<CircleData> {
2637
- /**
2638
- * @title 分面标题配置。
2639
- */
2640
- readonly title?: FacetTitle;
2641
- }
2642
-
2643
- export type CircleData = FacetData;
2644
-
2645
- // ===================== tree 相关类型定义 =====================
2646
-
2647
- export interface Line {
2648
- readonly style?: ShapeAttrs;
2649
- readonly smooth?: boolean;
2650
- }
2651
- /**
2652
- * @title tree 分面类型配置
2653
- */
2654
- export interface TreeCfg extends FacetCfg<TreeData> {
2655
- readonly line?: Line;
2656
- readonly title?: FacetTitle;
2657
- }
2658
-
2659
- export interface TreeData extends FacetData {
2660
- children?: TreeData[];
2661
- originColIndex?: number;
2662
- }
2663
-
2664
- /**
2665
- * facet object map
2666
- */
2667
- export interface FacetCfgMap {
2668
- /**
2669
- * @title rect 类型分面配置
2670
- */
2671
- readonly rect: RectCfg;
2672
- /**
2673
- * @title mirror 类型分面配置
2674
- */
2675
- readonly mirror: MirrorCfg;
2676
- /**
2677
- * @title list 类型分面配置
2678
- */
2679
- readonly list: ListCfg;
2680
- /**
2681
- * @title matrix 类型分面配置
2682
- */
2683
- readonly matrix: MatrixCfg;
2684
- /**
2685
- * @title circle 类型分面配置
2686
- */
2687
- readonly circle: CircleCfg;
2688
- /**
2689
- * @title tree 类型分面配置
2690
- */
2691
- readonly tree: TreeCfg;
2692
- }
2693
-
2694
- // ============================ 主题样式表定义 ============================
2695
- export interface StyleSheet {
2696
- /**
2697
- * @title 背景色
2698
- */
2699
- backgroundColor?: string;
2700
- /**
2701
- * @title 主题色
2702
- */
2703
- brandColor?: string;
2704
- /**
2705
- * @title 辅助色
2706
- */
2707
- subColor?: string;
2708
- /**
2709
- * @title 分类色板 1,在数据量小于等于 10 时使用
2710
- */
2711
- paletteQualitative10?: string[];
2712
- /**
2713
- * @title 分类色板 2,在数据量大于 10 时使用
2714
- */
2715
- paletteQualitative20?: string[];
2716
- /**
2717
- * @title 语义色
2718
- */
2719
- paletteSemanticRed?: string;
2720
- /**
2721
- * @title 语义色
2722
- */
2723
- paletteSemanticGreen?: string;
2724
- /**
2725
- * @title 语义色
2726
- */
2727
- paletteSemanticYellow?: string;
2728
- /**
2729
- * @title (单色)顺序色板
2730
- */
2731
- paletteSequence?: string[];
2732
- /**
2733
- * @title 字体
2734
- */
2735
- fontFamily?: string;
2736
-
2737
- // -------------------- 坐标轴 --------------------
2738
- /**
2739
- * @title 坐标轴线颜色
2740
- */
2741
- axisLineBorderColor?: string;
2742
- /**
2743
- * @title 坐标轴线粗细
2744
- */
2745
- axisLineBorder?: number;
2746
- /**
2747
- * @title 坐标轴线 lineDash 设置
2748
- */
2749
- axisLineDash?: number[];
2750
-
2751
- /**
2752
- * @title 坐标轴标题颜色
2753
- */
2754
- axisTitleTextFillColor?: string;
2755
- /**
2756
- * @title 坐标轴标题文本字体大小
2757
- */
2758
- axisTitleTextFontSize?: number;
2759
- /**
2760
- * @title 坐标轴标题文本行高
2761
- */
2762
- axisTitleTextLineHeight?: number;
2763
- /**
2764
- * @title 坐标轴标题文本字体粗细
2765
- */
2766
- axisTitleTextFontWeight?: number | string;
2767
- /**
2768
- * @title 坐标轴标题距离坐标轴文本的间距
2769
- */
2770
- axisTitleSpacing?: number;
2771
- /**
2772
- * @title 坐标轴详细说明icon颜色
2773
- */
2774
- axisDescriptionIconFillColor?: string;
2775
- /**
2776
- * @title 坐标轴刻度线颜色
2777
- */
2778
- axisTickLineBorderColor?: string;
2779
- /**
2780
- * @title 坐标轴刻度线长度
2781
- */
2782
- axisTickLineLength?: number;
2783
- /**
2784
- * @title 坐标轴刻度线粗细
2785
- */
2786
- axisTickLineBorder?: number;
2787
-
2788
- /**
2789
- * @title 坐标轴次刻度线颜色
2790
- */
2791
- axisSubTickLineBorderColor?: string;
2792
- /**
2793
- * @title 坐标轴次刻度线长度
2794
- */
2795
- axisSubTickLineLength?: number;
2796
- /**
2797
- * @title 坐标轴次刻度线粗细
2798
- */
2799
- axisSubTickLineBorder?: number;
2800
-
2801
- /**
2802
- * @title 坐标轴刻度文本颜色
2803
- */
2804
- axisLabelFillColor?: string;
2805
- /**
2806
- * @title 坐标轴刻度文本字体大小
2807
- */
2808
- axisLabelFontSize?: number;
2809
- /**
2810
- * @title 坐标轴刻度文本行高
2811
- */
2812
- axisLabelLineHeight?: number;
2813
- /**
2814
- * @title 坐标轴刻度文本字体粗细
2815
- */
2816
- axisLabelFontWeight?: number | string;
2817
- /**
2818
- * @title 坐标轴刻度文本距离坐标轴线的间距
2819
- */
2820
- axisLabelOffset: number;
2821
-
2822
- /**
2823
- * @title 坐标轴网格线颜色
2824
- */
2825
- axisGridBorderColor?: string;
2826
- /**
2827
- * @title 坐标轴网格线粗细
2828
- */
2829
- axisGridBorder?: number;
2830
- /**
2831
- * @title 坐标轴网格线虚线设置
2832
- */
2833
- axisGridLineDash?: number[];
2834
-
2835
- // -------------------- 图例 --------------------
2836
- /**
2837
- * @title 图例标题颜色
2838
- */
2839
- legendTitleTextFillColor?: string;
2840
- /**
2841
- * @title 图例标题文本字体大小
2842
- */
2843
- legendTitleTextFontSize?: number;
2844
- /**
2845
- * @title 图例标题文本行高
2846
- */
2847
- legendTitleTextLineHeight?: number;
2848
- /**
2849
- * @title 图例标题文本字体粗细
2850
- */
2851
- legendTitleTextFontWeight?: number | string;
2852
-
2853
- /**
2854
- * @title 图例 marker 颜色
2855
- */
2856
- legendMarkerColor?: string;
2857
- /**
2858
- * @title 图例 marker 距离图例文本的间距
2859
- */
2860
- legendMarkerSpacing?: number;
2861
- /**
2862
- * @title 图例 marker 默认半径大小
2863
- */
2864
- legendMarkerSize?: number;
2865
- /**
2866
- * @title 图例 'circle' marker 半径
2867
- */
2868
- legendCircleMarkerSize?: number;
2869
- /**
2870
- * @title 图例 'square' marker 半径
2871
- */
2872
- legendSquareMarkerSize?: number;
2873
- /**
2874
- * @title 图例 'line' marker 半径
2875
- */
2876
- legendLineMarkerSize?: number;
2877
-
2878
- /**
2879
- * @title 图例项文本颜色
2880
- */
2881
- legendItemNameFillColor?: string;
2882
- /**
2883
- * @title 图例项文本字体大小
2884
- */
2885
- legendItemNameFontSize?: number;
2886
- /**
2887
- * @title 图例项文本行高
2888
- */
2889
- legendItemNameLineHeight?: number;
2890
- /**
2891
- * @title 图例项粗细
2892
- */
2893
- legendItemNameFontWeight?: number | string;
2894
- /**
2895
- * @title 图例项之间的水平间距
2896
- */
2897
- legendItemSpacing?: number;
2898
- /**
2899
- * @title 图例项垂直方向的间隔
2900
- */
2901
- legendItemMarginBottom?: number;
2902
- /**
2903
- * @title 图例与图表绘图区域的偏移距离
2904
- */
2905
- legendPadding?: number[];
2906
- /**
2907
- * @title 水平布局的图例与绘图区域偏移距离
2908
- */
2909
- legendHorizontalPadding?: number[];
2910
- /**
2911
- * @title 垂直布局的图例与绘图区域偏移距离
2912
- */
2913
- legendVerticalPadding?: number[];
2914
-
2915
- /**
2916
- * @title 图例分页器 marker 大小
2917
- */
2918
- legendPageNavigatorMarkerSize: number;
2919
- /**
2920
- * @title 图例分页器 marker 非激活状态填充色
2921
- */
2922
- legendPageNavigatorMarkerInactiveFillColor: string;
2923
- /**
2924
- * @title 图例分页器 marker 非激活状态填充色透明度
2925
- */
2926
- legendPageNavigatorMarkerInactiveFillOpacity: number;
2927
- /**
2928
- * @title 图例分页器 marker 填充色
2929
- */
2930
- legendPageNavigatorMarkerFillColor: string;
2931
- /**
2932
- * @title 图例分页器 marker 填充色透明度
2933
- */
2934
- legendPageNavigatorMarkerFillOpacity: number;
2935
- /**
2936
- * @title 图例分页器文本颜色
2937
- */
2938
- legendPageNavigatorTextFillColor: string;
2939
- /**
2940
- * @title 图例分页器文本字体大小
2941
- */
2942
- legendPageNavigatorTextFontSize: number;
2943
-
2944
- /**
2945
- * @title 连续图例滑块填充色
2946
- */
2947
- sliderRailFillColor?: string;
2948
- /**
2949
- * @title 连续图例滑块边框粗细
2950
- */
2951
- sliderRailBorder?: number;
2952
- /**
2953
- * @title 连续图例滑块边框颜色
2954
- */
2955
- sliderRailBorderColor?: string;
2956
- /**
2957
- * @title 连续图例滑块宽度
2958
- */
2959
- sliderRailWidth?: number;
2960
- /**
2961
- * @title 连续图例滑块高度
2962
- */
2963
- sliderRailHeight?: number;
2964
-
2965
- /**
2966
- * @title 连续图例文本颜色
2967
- */
2968
- sliderLabelTextFillColor?: string;
2969
- /**
2970
- * @title 连续图例文本字体大小
2971
- */
2972
- sliderLabelTextFontSize?: number;
2973
- /**
2974
- * @title 连续图例文本行高
2975
- */
2976
- sliderLabelTextLineHeight?: number;
2977
- /**
2978
- * @title 连续图例文本字体粗细
2979
- */
2980
- sliderLabelTextFontWeight?: number | string;
2981
-
2982
- /**
2983
- * @title 连续图例滑块颜色
2984
- */
2985
- sliderHandlerFillColor?: string;
2986
- /**
2987
- * @title 连续图例滑块宽度
2988
- */
2989
- sliderHandlerWidth?: number;
2990
- /**
2991
- * @title 连续图例滑块高度
2992
- */
2993
- sliderHandlerHeight?: number;
2994
- /**
2995
- * @title 连续图例滑块边框粗细
2996
- */
2997
- sliderHandlerBorder?: number;
2998
- /**
2999
- * @title 连续图例滑块边框颜色
3000
- */
3001
- sliderHandlerBorderColor?: string;
3002
-
3003
- // -------------------- Annotation,图形标注 --------------------
3004
- /**
3005
- * @title arc 图形标注描边颜色
3006
- */
3007
- annotationArcBorderColor?: string;
3008
- /**
3009
- * @title arc 图形标注粗细
3010
- */
3011
- annotationArcBorder?: number;
3012
-
3013
- /**
3014
- * @title line 图形标注颜色
3015
- */
3016
- annotationLineBorderColor?: string;
3017
- /**
3018
- * @title line 图形标注粗细
3019
- */
3020
- annotationLineBorder?: number;
3021
- /**
3022
- * @title lube 图形标注的虚线间隔
3023
- */
3024
- annotationLineDash?: number[];
3025
-
3026
- /**
3027
- * @title text 图形标注文本颜色
3028
- */
3029
- annotationTextFillColor?: string;
3030
- /**
3031
- * @title text 图形标注文本字体大小
3032
- */
3033
- annotationTextFontSize?: number;
3034
- /**
3035
- * @title text 图形标注文本行高
3036
- */
3037
- annotationTextLineHeight?: number;
3038
- /**
3039
- * @title text 图形标注文本字体粗细
3040
- */
3041
- annotationTextFontWeight?: number | string;
3042
-
3043
- /**
3044
- * @title text 图形标注文本边框颜色
3045
- */
3046
- annotationTextBorderColor?: string;
3047
- /**
3048
- * @title text 图形标注文本边框粗细
3049
- */
3050
- annotationTextBorder?: number;
3051
-
3052
- /**
3053
- * @title region 图形标注填充颜色
3054
- */
3055
- annotationRegionFillColor?: string;
3056
- /**
3057
- * @title region 图形标注填充颜色透明色
3058
- */
3059
- annotationRegionFillOpacity?: number;
3060
- /**
3061
- * @title region 图形标注描边粗细
3062
- */
3063
- annotationRegionBorder?: number;
3064
- /**
3065
- * @title region 图形标注描边颜色
3066
- */
3067
- annotationRegionBorderColor?: string;
3068
-
3069
- /**
3070
- * @title dataMarker 图形标注的连接线长度
3071
- */
3072
- annotationDataMarkerLineLength?: number;
3073
-
3074
- // -------------------- Tooltip --------------------
3075
- /**
3076
- * @title tooltip crosshairs 辅助线颜色
3077
- */
3078
- tooltipCrosshairsBorderColor?: string;
3079
- /**
3080
- * @title tooltip crosshairs 辅助线粗细
3081
- */
3082
- tooltipCrosshairsBorder?: number;
3083
- /**
3084
- * @title tooltip crosshairs 辅助线虚线间隔
3085
- */
3086
- tooltipCrosshairsLineDash?: number[];
3087
-
3088
- /**
3089
- * @title tooltip 内容框背景色
3090
- */
3091
- tooltipContainerFillColor?: string;
3092
- /**
3093
- * @title tooltip 内容框背景透明度
3094
- */
3095
- tooltipContainerFillOpacity?: number;
3096
- /**
3097
- * @title tooltip 内容框阴影
3098
- */
3099
- tooltipContainerShadow?: string;
3100
- /**
3101
- * @title tooltip 内容框圆角
3102
- */
3103
- tooltipContainerBorderRadius?: number;
3104
-
3105
- /**
3106
- * @title tooltip 文本颜色
3107
- */
3108
- tooltipTextFillColor?: string;
3109
- /**
3110
- * @title tooltip 文本字体大小
3111
- */
3112
- tooltipTextFontSize?: number;
3113
- /**
3114
- * @title tooltip 文本行高
3115
- */
3116
- tooltipTextLineHeight?: number;
3117
- /**
3118
- * @title tooltip 文本字体粗细
3119
- */
3120
- tooltipTextFontWeight?: number | string;
3121
-
3122
- // -------------------- Geometry labels --------------------
3123
- /**
3124
- * @title Geometry label 文本颜色
3125
- */
3126
- labelFillColor?: string;
3127
- /**
3128
- * @title Geometry label 暗色文本颜色
3129
- */
3130
- labelFillColorDark?: string;
3131
- /**
3132
- * @title Geometry label 亮色文本颜色
3133
- */
3134
- labelFillColorLight?: string;
3135
- /**
3136
- * @title Geometry label 文本字体大小
3137
- */
3138
- labelFontSize?: number;
3139
- /**
3140
- * @title Geometry label 文本行高
3141
- */
3142
- labelLineHeight?: number;
3143
- /**
3144
- * @title Geometry label 文本字体粗细
3145
- */
3146
- labelFontWeight?: number | string;
3147
- /**
3148
- * @title Geometry label 文本描边颜色
3149
- */
3150
- labelBorderColor?: string;
3151
- /**
3152
- * @title Geometry label 文本描边粗细
3153
- */
3154
- labelBorder?: number;
3155
-
3156
- /**
3157
- * @title Geometry innerLabel 文本颜色
3158
- */
3159
- innerLabelFillColor?: string;
3160
- /**
3161
- * @title Geometry innerLabel 文本字体大小
3162
- */
3163
- innerLabelFontSize?: number;
3164
- /**
3165
- * @title Geometry innerLabel 文本行高
3166
- */
3167
- innerLabelLineHeight?: number;
3168
- /**
3169
- * @title Geometry innerLabel 文本字体粗细
3170
- */
3171
- innerLabelFontWeight?: number | string;
3172
- /**
3173
- * @title Geometry innerLabel 文本描边颜色
3174
- */
3175
- innerLabelBorderColor?: string;
3176
- /**
3177
- * @title Geometry innerLabel 文本描边粗细
3178
- */
3179
- innerLabelBorder?: number;
3180
-
3181
- /**
3182
- * @title Geometry overflowLabel 文本颜色
3183
- */
3184
- overflowLabelFillColor?: string;
3185
- /**
3186
- * @title Geometry overflowLabel 暗色文本颜色
3187
- */
3188
- overflowLabelFillColorDark?: string;
3189
- /**
3190
- * @title Geometry overflowLabel 亮色文本颜色
3191
- */
3192
- overflowLabelFillColorLight?: string;
3193
- /**
3194
- * @title Geometry overflowLabel 文本字体大小
3195
- */
3196
- overflowLabelFontSize?: number;
3197
- /**
3198
- * @title Geometry overflowLabel 文本行高
3199
- */
3200
- overflowLabelLineHeight?: number;
3201
- /**
3202
- * @title Geometry overflowLabel 文本字体粗细
3203
- */
3204
- overflowLabelFontWeight?: number | string;
3205
- /**
3206
- * @title Geometry overflowLabel 文本描边颜色
3207
- */
3208
- overflowLabelBorderColor?: string;
3209
- /**
3210
- * @title Geometry overflowLabel 文本描边粗细
3211
- */
3212
- overflowLabelBorder?: number;
3213
-
3214
- /**
3215
- * @title Geometry label 文本连接线粗细
3216
- */
3217
- labelLineBorder?: number;
3218
- /**
3219
- * @title Geometry label 文本连接线颜色
3220
- */
3221
- labelLineBorderColor?: string;
3222
-
3223
- // -------------------- Slider 组件样式--------------------
3224
- /**
3225
- * @title slider 滑道高度
3226
- */
3227
- cSliderRailHieght?: number;
3228
- /**
3229
- * @title slider 滑道背景色
3230
- */
3231
- cSliderBackgroundFillColor?: string;
3232
- /**
3233
- * @title slider 滑道背景色透明度
3234
- */
3235
- cSliderBackgroundFillOpacity?: number;
3236
- /**
3237
- * @title slider 滑道前景色
3238
- */
3239
- cSliderForegroundFillColor?: string;
3240
- /**
3241
- * @title slider 滑道前景色透明度
3242
- */
3243
- cSliderForegroundFillOpacity?: number;
3244
-
3245
- // slider handlerStyle 手柄样式
3246
- /**
3247
- * @title slider 手柄高度
3248
- */
3249
- cSliderHandlerHeight?: number;
3250
- /**
3251
- * @title Slider 手柄宽度
3252
- */
3253
- cSliderHandlerWidth?: number;
3254
- /**
3255
- * @title Slider 手柄背景色
3256
- */
3257
- cSliderHandlerFillColor?: string;
3258
- /**
3259
- * @title Slider 手柄背景色透明度
3260
- */
3261
- cSliderHandlerFillOpacity?: number;
3262
- /**
3263
- * @title Slider 手柄高亮背景色
3264
- */
3265
- cSliderHandlerHighlightFillColor?: string;
3266
- /**
3267
- * @title Slider 手柄边框色
3268
- */
3269
- cSliderHandlerBorderColor?: string;
3270
- /**
3271
- * @title Slider 手柄边框粗细
3272
- */
3273
- cSliderHandlerBorder?: number;
3274
- /**
3275
- * @title Slider 手柄边框圆角
3276
- */
3277
- cSliderHandlerBorderRadius?: number;
3278
-
3279
- // slider textStyle 字体标签样式
3280
- /**
3281
- * @title Slider 字体标签颜色
3282
- */
3283
- cSliderTextFillColor?: string;
3284
- /**
3285
- * @title Slider 字体标签透明度
3286
- */
3287
- cSliderTextFillOpacity?: number;
3288
- /**
3289
- * @title Slider 字体标签大小
3290
- */
3291
- cSliderTextFontSize?: number;
3292
- /**
3293
- * @title Slider 字体标签行高
3294
- */
3295
- cSliderTextLineHeight?: number;
3296
- /**
3297
- * @title Slider 字体标签字重
3298
- */
3299
- cSliderTextFontWeight?: number | string;
3300
- /**
3301
- * @title Slider 字体标签描边色
3302
- */
3303
- cSliderTextBorderColor?: string;
3304
- /**
3305
- * @title Slider 字体标签描边粗细
3306
- */
3307
- cSliderTextBorder?: number;
3308
-
3309
- // -------------------- Scrollbar 组件样式--------------------
3310
- /**
3311
- * @title 滚动条 滚道填充色
3312
- */
3313
- scrollbarTrackFillColor?: string;
3314
- /**
3315
- * @title 滚动条 滑块填充色
3316
- */
3317
- scrollbarThumbFillColor?: string;
3318
- /**
3319
- * @title 滚动条 滑块高亮填充色
3320
- */
3321
- scrollbarThumbHighlightFillColor?: string;
3322
-
3323
- // -------------------- Geometry 图形样式--------------------
3324
- /**
3325
- * @title 点图的大小范围
3326
- */
3327
- pointSizeRange?: [number, number];
3328
- /**
3329
- * @title 点图填充颜色
3330
- */
3331
- pointFillColor?: string;
3332
- /**
3333
- * @title 点图填充颜色透明度
3334
- */
3335
- pointFillOpacity?: number;
3336
- /**
3337
- * @title 点图大小
3338
- */
3339
- pointSize?: number;
3340
- /**
3341
- * @title 点图描边粗细
3342
- */
3343
- pointBorder?: number;
3344
- /**
3345
- * @title 点图描边颜色
3346
- */
3347
- pointBorderColor?: string;
3348
- /**
3349
- * @title 点图描边透明度
3350
- */
3351
- pointBorderOpacity?: number;
3352
-
3353
- /**
3354
- * @title 点图 active 状态下填充颜色
3355
- */
3356
- pointActiveFillColor?: string;
3357
- /**
3358
- * @title 点图 active 状态下填充颜色透明度
3359
- */
3360
- pointActiveFillOpacity?: number;
3361
- /**
3362
- * @title 点图 active 状态下大小
3363
- */
3364
- pointActiveSize?: number;
3365
- /**
3366
- * @title 点图 active 状态下描边粗细
3367
- */
3368
- pointActiveBorder?: number;
3369
- /**
3370
- * @title 点图 active 状态下描边颜色
3371
- */
3372
- pointActiveBorderColor?: string;
3373
- /**
3374
- * @title 点图 active 状态下描边透明度
3375
- */
3376
- pointActiveBorderOpacity?: number;
3377
-
3378
- /**
3379
- * @title 点图 selected 状态下填充颜色
3380
- */
3381
- pointSelectedFillColor?: string;
3382
- /**
3383
- * @title 点图 selected 状态下填充颜色透明度
3384
- */
3385
- pointSelectedFillOpacity?: number;
3386
- /**
3387
- * @title 点图 selected 状态下大小
3388
- */
3389
- pointSelectedSize?: number;
3390
- /**
3391
- * @title 点图 selected 状态下描边粗细
3392
- */
3393
- pointSelectedBorder?: number;
3394
- /**
3395
- * @title 点图 selected 状态下描边颜色
3396
- */
3397
- pointSelectedBorderColor?: string;
3398
- /**
3399
- * @title 点图 selected 状态下描边透明度
3400
- */
3401
- pointSelectedBorderOpacity?: number;
3402
-
3403
- /**
3404
- * @title 点图 inactive 状态下填充颜色
3405
- */
3406
- pointInactiveFillColor?: string;
3407
- /**
3408
- * @title 点图 inactive 状态下填充颜色透明度
3409
- */
3410
- pointInactiveFillOpacity?: number;
3411
- /**
3412
- * @title 点图 inactive 状态下大小
3413
- */
3414
- pointInactiveSize?: number;
3415
- /**
3416
- * @title 点图 inactive 状态下描边粗细
3417
- */
3418
- pointInactiveBorder?: number;
3419
- /**
3420
- * @title 点图 inactive 状态下描边颜色
3421
- */
3422
- pointInactiveBorderColor?: string;
3423
- /**
3424
- * @title 点图 inactive 状态下描边透明度
3425
- */
3426
- pointInactiveBorderOpacity?: number;
3427
-
3428
- /**
3429
- * @title 描边点图大小
3430
- */
3431
- hollowPointSize?: number;
3432
- /**
3433
- * @title 描边点图描边粗细
3434
- */
3435
- hollowPointBorder?: number;
3436
- /**
3437
- * @title 描边点图描边颜色
3438
- */
3439
- hollowPointBorderColor?: string;
3440
- /**
3441
- * @title 描边点图描边透明度
3442
- */
3443
- hollowPointBorderOpacity?: number;
3444
- /**
3445
- * @title 描边点图填充颜色
3446
- */
3447
- hollowPointFillColor?: string;
3448
- /**
3449
- * @title 描边点图填充透明度
3450
- */
3451
- hollowPointFillOpacity?: number;
3452
-
3453
- /**
3454
- * @title 点 描边 active 状态下大小
3455
- */
3456
- hollowPointActiveSize?: number;
3457
- /**
3458
- * @title 点 描边 active 状态下描边粗细
3459
- */
3460
- hollowPointActiveBorder?: number;
3461
- /**
3462
- * @title 点 描边 active 状态下描边颜色
3463
- */
3464
- hollowPointActiveBorderColor?: string;
3465
- /**
3466
- * @title 点 描边 active 状态下描边透明度
3467
- */
3468
- hollowPointActiveBorderOpacity?: number;
3469
-
3470
- /**
3471
- * @title 点 描边 selected 状态下大小
3472
- */
3473
- hollowPointSelectedSize?: number;
3474
- /**
3475
- * @title 点 描边 selected 状态下描边粗细
3476
- */
3477
- hollowPointSelectedBorder?: number;
3478
- /**
3479
- * @title 点 描边 selected 状态下描边颜色
3480
- */
3481
- hollowPointSelectedBorderColor?: string;
3482
- /**
3483
- * @title 点 描边 selected 状态下描边透明度
3484
- */
3485
- hollowPointSelectedBorderOpacity?: number;
3486
-
3487
- /**
3488
- * @title 点 描边 inactive 状态下大小
3489
- */
3490
- hollowPointInactiveSize?: number;
3491
- /**
3492
- * @title 点 描边 inactive 状态下描边粗细
3493
- */
3494
- hollowPointInactiveBorder?: number;
3495
- /**
3496
- * @title 点 描边 inactive 状态下描边颜色
3497
- */
3498
- hollowPointInactiveBorderColor?: string;
3499
- /**
3500
- * @title 点 描边 inactive 状态下描边透明度
3501
- */
3502
- hollowPointInactiveBorderOpacity?: number;
3503
-
3504
- /**
3505
- * @title 线图粗细
3506
- */
3507
- lineBorder?: number;
3508
- /**
3509
- * @title 线图颜色
3510
- */
3511
- lineBorderColor?: string;
3512
- /**
3513
- * @title 线图透明度
3514
- */
3515
- lineBorderOpacity?: number;
3516
-
3517
- /**
3518
- * @title 线图 active 状态下粗细
3519
- */
3520
- lineActiveBorder?: number;
3521
- /**
3522
- * @title 线图 active 状态下颜色
3523
- */
3524
- lineActiveBorderColor?: string;
3525
- /**
3526
- * @title 线图 active 状态下透明度
3527
- */
3528
- lineActiveBorderOpacity?: number;
3529
-
3530
- /**
3531
- * @title 线图 selected 状态下粗细
3532
- */
3533
- lineSelectedBorder?: number;
3534
- /**
3535
- * @title 线图 selected 状态下颜色
3536
- */
3537
- lineSelectedBorderColor?: string;
3538
- /**
3539
- * @title 线图 selected 状态下透明度
3540
- */
3541
- lineSelectedBorderOpacity?: number;
3542
-
3543
- /**
3544
- * @title 线图 inactive 状态下粗细
3545
- */
3546
- lineInactiveBorder?: number;
3547
- /**
3548
- * @title 线图 inactive 状态下颜色
3549
- */
3550
- lineInactiveBorderColor?: string;
3551
- /**
3552
- * @title 线图 inactive 状态下透明度
3553
- */
3554
- lineInactiveBorderOpacity?: number;
3555
-
3556
- areaBorder?: number;
3557
- /**
3558
- * @title area 边框颜色
3559
- */
3560
- areaBorderColor?: string;
3561
- /**
3562
- * @title area 边框透明度
3563
- */
3564
- areaBorderOpacity?: number;
3565
- /**
3566
- * @title area 填充颜色
3567
- */
3568
- areaFillColor?: string;
3569
- /**
3570
- * @title area 填充透明度
3571
- */
3572
- areaFillOpacity?: number;
3573
-
3574
- /**
3575
- * @title area Active 状态下边框粗细
3576
- */
3577
- areaActiveBorder?: number;
3578
- /**
3579
- * @title area Active 状态下边框颜色
3580
- */
3581
- areaActiveBorderColor?: string;
3582
- /**
3583
- * @title area Active 状态下边框透明度
3584
- */
3585
- areaActiveBorderOpacity?: number;
3586
- /**
3587
- * @title area Active 状态下填充颜色
3588
- */
3589
- areaActiveFillColor?: string;
3590
- /**
3591
- * @title area Active 状态下填充透明度
3592
- */
3593
- areaActiveFillOpacity?: number;
3594
-
3595
- /**
3596
- * @title area selected 状态下边框粗细
3597
- */
3598
- areaSelectedBorder?: number;
3599
- /**
3600
- * @title area selected 状态下边框颜色
3601
- */
3602
- areaSelectedBorderColor?: string;
3603
- /**
3604
- * @title area selected 状态下边框透明度
3605
- */
3606
- areaSelectedBorderOpacity?: number;
3607
- /**
3608
- * @title area selected 状态下填充颜色
3609
- */
3610
- areaSelectedFillColor?: string;
3611
- /**
3612
- * @title area selected 状态下填充透明度
3613
- */
3614
- areaSelectedFillOpacity?: number;
3615
-
3616
- /**
3617
- * @title area inactive 状态下边框粗细
3618
- */
3619
- areaInactiveBorder?: number;
3620
- /**
3621
- * @title area inactive 状态下边框颜色
3622
- */
3623
- areaInactiveBorderColor?: string;
3624
- /**
3625
- * @title area inactive 状态下边框透明度
3626
- */
3627
- areaInactiveBorderOpacity?: number;
3628
- /**
3629
- * @title area inactive 状态下填充颜色
3630
- */
3631
- areaInactiveFillColor?: string;
3632
- /**
3633
- * @title area inactive 状态下填充透明度
3634
- */
3635
- areaInactiveFillOpacity?: number;
3636
-
3637
- /**
3638
- * @title hollowArea 边框粗细
3639
- */
3640
- hollowAreaBorder?: number;
3641
- /**
3642
- * @title hollowArea 边框颜色
3643
- */
3644
- hollowAreaBorderColor?: string;
3645
- /**
3646
- * @title hollowArea 边框透明度
3647
- */
3648
- hollowAreaBorderOpacity?: number;
3649
-
3650
- /**
3651
- * @title hollowArea Active 状态下边框粗细
3652
- */
3653
- hollowAreaActiveBorder?: number;
3654
- /**
3655
- * @title hollowArea Active 状态下边框颜色
3656
- */
3657
- hollowAreaActiveBorderColor?: string;
3658
- /**
3659
- * @title hollowArea Active 状态下边框透明度
3660
- */
3661
- hollowAreaActiveBorderOpacity?: number;
3662
-
3663
- /**
3664
- * @title hollowArea selected 状态下边框粗细
3665
- */
3666
- hollowAreaSelectedBorder?: number;
3667
- /**
3668
- * @title hollowArea selected 状态下边框颜色
3669
- */
3670
- hollowAreaSelectedBorderColor?: string;
3671
- /**
3672
- * @title hollowArea selected 状态下边框透明度
3673
- */
3674
- hollowAreaSelectedBorderOpacity?: number;
3675
-
3676
- /**
3677
- * @title hollowArea inactive 状态下边框粗细
3678
- */
3679
- hollowAreaInactiveBorder?: number;
3680
- /**
3681
- * @title hollowArea inactive 状态下边框颜色
3682
- */
3683
- hollowAreaInactiveBorderColor?: string;
3684
- /**
3685
- * @title hollowArea inactive 状态下边框透明度
3686
- */
3687
- hollowAreaInactiveBorderOpacity?: number;
3688
-
3689
- /**
3690
- * @title interval 边框粗细
3691
- */
3692
- intervalBorder?: number;
3693
- /**
3694
- * @title interval 边框颜色
3695
- */
3696
- intervalBorderColor?: string;
3697
- /**
3698
- * @title interval 边框透明度
3699
- */
3700
- intervalBorderOpacity?: number;
3701
- /**
3702
- * @title interval 填充颜色
3703
- */
3704
- intervalFillColor?: string;
3705
- /**
3706
- * @title interval 填充透明度
3707
- */
3708
- intervalFillOpacity?: number;
3709
-
3710
- /**
3711
- * @title interval active 状态下边框粗细
3712
- */
3713
- intervalActiveBorder?: number;
3714
- /**
3715
- * @title interval active 状态下边框颜色
3716
- */
3717
- intervalActiveBorderColor?: string;
3718
- /**
3719
- * @title interval active 状态下边框透明度
3720
- */
3721
- intervalActiveBorderOpacity?: number;
3722
- /**
3723
- * @title interval active 状态下填充颜色
3724
- */
3725
- intervalActiveFillColor?: string;
3726
- /**
3727
- * @title interval active 状态下填充透明度
3728
- */
3729
- intervalActiveFillOpacity?: number;
3730
-
3731
- /**
3732
- * @title interval selected 状态下边框粗细
3733
- */
3734
- intervalSelectedBorder?: number;
3735
- /**
3736
- * @title interval selected 状态下边框颜色
3737
- */
3738
- intervalSelectedBorderColor?: string;
3739
- /**
3740
- * @title interval selected 状态下边框透明度
3741
- */
3742
- intervalSelectedBorderOpacity?: number;
3743
- /**
3744
- * @title interval selected 状态下填充颜色
3745
- */
3746
- intervalSelectedFillColor?: string;
3747
- /**
3748
- * @title interval selected 状态下填充透明度
3749
- */
3750
- intervalSelectedFillOpacity?: number;
3751
-
3752
- /**
3753
- * @title interval inactive 状态下边框粗细
3754
- */
3755
- intervalInactiveBorder?: number;
3756
- /**
3757
- * @title interval inactive 状态下边框颜色
3758
- */
3759
- intervalInactiveBorderColor?: string;
3760
- /**
3761
- * @title interval inactive 状态下边框透明度
3762
- */
3763
- intervalInactiveBorderOpacity?: number;
3764
- /**
3765
- * @title interval inactive 状态下填充颜色
3766
- */
3767
- intervalInactiveFillColor?: string;
3768
- /**
3769
- * @title interval inactive 状态下填充透明度
3770
- */
3771
- intervalInactiveFillOpacity?: number;
3772
-
3773
- /**
3774
- * @title hollowInterval 边框粗细
3775
- */
3776
- hollowIntervalBorder?: number;
3777
- /**
3778
- * @title hollowInterval 边框颜色
3779
- */
3780
- hollowIntervalBorderColor?: string;
3781
- /**
3782
- * @title hollowInterval 边框透明度
3783
- */
3784
- hollowIntervalBorderOpacity?: number;
3785
- /**
3786
- * @title hollowInterval 填充颜色
3787
- */
3788
- hollowIntervalFillColor?: string;
3789
- /**
3790
- * @title hollowInterval 填充透明度
3791
- */
3792
- hollowIntervalFillOpacity?: number;
3793
-
3794
- /**
3795
- * @title hollowInterval active 状态下边框粗细
3796
- */
3797
- hollowIntervalActiveBorder?: number;
3798
- /**
3799
- * @title hollowInterval active 状态下边框颜色
3800
- */
3801
- hollowIntervalActiveBorderColor?: string;
3802
- /**
3803
- * @title hollowInterval active 状态下边框透明度
3804
- */
3805
- hollowIntervalActiveBorderOpacity?: number;
3806
-
3807
- /**
3808
- * @title hollowInterval selected 状态下边框粗细
3809
- */
3810
- hollowIntervalSelectedBorder?: number;
3811
- /**
3812
- * @title hollowInterval selected 状态下边框颜色
3813
- */
3814
- hollowIntervalSelectedBorderColor?: string;
3815
- /**
3816
- * @title hollowInterval selected 状态下边框透明度
3817
- */
3818
- hollowIntervalSelectedBorderOpacity?: number;
3819
-
3820
- /**
3821
- * @title hollowInterval inactive 状态下边框粗细
3822
- */
3823
- hollowIntervalInactiveBorder?: number;
3824
- /**
3825
- * @title hollowInterval inactive 状态下边框颜色
3826
- */
3827
- hollowIntervalInactiveBorderColor?: string;
3828
- /**
3829
- * @title hollowInterval inactive 状态下边框透明度
3830
- */
3831
- hollowIntervalInactiveBorderOpacity?: number;
3832
- }
3833
-
3834
- /**
3835
- * @title createTheme 主题样式表配置
3836
- */
3837
- export type StyleSheetCfg = Partial<StyleSheet>;
3838
-
3839
- // ============================ 交互相关的类型定义 ============================
3840
- /**
3841
- * @title 交互反馈的定义
3842
- */
3843
- export interface IAction {
3844
- /**
3845
- * 初始化
3846
- */
3847
- init();
3848
- /**
3849
- * 交互 action (反馈)的名称
3850
- */
3851
- name: string;
3852
- /**
3853
- * 上下文
3854
- */
3855
- context: IInteractionContext;
3856
- /**
3857
- * 销毁函数
3858
- */
3859
- destroy();
3860
- }
3861
-
3862
- /**
3863
- * @title 交互上下文的接口定义
3864
- */
3865
- export interface IInteractionContext extends LooseObject {
3866
- /**
3867
- * @title 事件对象
3868
- */
3869
- event: LooseObject;
3870
- /**
3871
- * 当前的 view
3872
- */
3873
- view: View;
3874
- /**
3875
- * @title 交互相关的 Actions
3876
- */
3877
- actions: IAction[];
3878
- /**
3879
- * 缓存属性,用于上下文传递信息
3880
- * @param key 键名
3881
- * @param value 值
3882
- */
3883
- cache(key: string, value?: any);
3884
- /**
3885
- * 获取 action
3886
- * @param name - action 的名称
3887
- * @returns 指定 name 的 Action
3888
- */
3889
- getAction(name): IAction;
3890
- /**
3891
- * 获取当前的点
3892
- * @returns 返回当前的点
3893
- */
3894
- getCurrentPoint(): Point;
3895
- /**
3896
- * 获取当前的图形
3897
- */
3898
- getCurrentShape(): IShape;
3899
- /**
3900
- * 添加 action
3901
- * @param action 指定交互 action
3902
- */
3903
- addAction(action: IAction);
3904
- /**
3905
- * 移除 action
3906
- * @param action 移除的 action
3907
- */
3908
- removeAction(action: IAction);
3909
- /**
3910
- * 事件触发时是否在 view 内部
3911
- */
3912
- isInPlot();
3913
- /**
3914
- * 是否在组件的包围盒内
3915
- * @param name 组件名,可省略
3916
- */
3917
- isInComponent(name?: string);
3918
- /**
3919
- * 是否在指定的图形内
3920
- * @param name shape 的名称
3921
- */
3922
- isInShape(name);
3923
- /**
3924
- * 销毁
3925
- */
3926
- destroy();
3927
- }
3928
-
3929
- /**
3930
- * @title G 的渲染类型
3931
- */
3932
- export type Renderer = 'svg' | 'canvas';
3933
- /**
3934
- * @title 数据的定义
3935
- */
3936
- export type Datum = Record<string, any>;
3937
- export type Data = Datum[];
3938
- export type ActionCallback = (context: IInteractionContext) => void;
3939
- export type Padding = [number, number, number, number];
3940
- export type ViewPadding = number | number[] | 'auto';
3941
- export type ViewAppendPadding = number | number[];
3942
- export type Position = [number, number];
3943
- export type AttributeType = 'position' | 'size' | 'color' | 'shape';
3944
- export type ShapeVertices = RangePoint[] | Point[] | Point[][];
3945
- /**
3946
- * @title easing 的回调函数, 入参 data 为对应的原始数据记录
3947
- */
3948
- export type AnimateEasingCallback = (data: Datum) => string;
3949
- /**
3950
- * @title delay 的回调函数, 入参 data 为对应的原始数据记录
3951
- */
3952
- export type AnimateDelayCallback = (data: Datum) => number;
3953
- /**
3954
- * @title duration 的回调函数, 入参 data 为对应的原始数据记录
3955
- */
3956
- export type AnimateDurationCallback = (data: Datum) => number;