@antv/g2 4.1.39 → 4.1.43

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 (1344) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/package.json +7 -5
  3. package/src/chart/controller/annotation.ts +4 -0
  4. package/src/chart/controller/tooltip.ts +19 -4
  5. package/src/core.ts +1 -1
  6. package/src/geometry/base.ts +18 -8
  7. package/src/index.ts +8 -0
  8. package/src/interaction/action/component/list-radio.ts +105 -0
  9. package/src/util/scale.ts +14 -1
  10. package/src/util/tooltip.ts +9 -5
  11. package/dist/g2.min.js +0 -30
  12. package/dist/g2.min.js.map +0 -1
  13. package/esm/animate/animation/fade.d.ts +0 -21
  14. package/esm/animate/animation/fade.js +0 -42
  15. package/esm/animate/animation/fade.js.map +0 -1
  16. package/esm/animate/animation/grow-in.d.ts +0 -30
  17. package/esm/animate/animation/grow-in.js +0 -38
  18. package/esm/animate/animation/grow-in.js.map +0 -1
  19. package/esm/animate/animation/index.d.ts +0 -16
  20. package/esm/animate/animation/index.js +0 -17
  21. package/esm/animate/animation/index.js.map +0 -1
  22. package/esm/animate/animation/path-in.d.ts +0 -12
  23. package/esm/animate/animation/path-in.js +0 -21
  24. package/esm/animate/animation/path-in.js.map +0 -1
  25. package/esm/animate/animation/position-update.d.ts +0 -11
  26. package/esm/animate/animation/position-update.js +0 -24
  27. package/esm/animate/animation/position-update.js.map +0 -1
  28. package/esm/animate/animation/scale-in.d.ts +0 -19
  29. package/esm/animate/animation/scale-in.js +0 -60
  30. package/esm/animate/animation/scale-in.js.map +0 -1
  31. package/esm/animate/animation/sector-path-update.d.ts +0 -11
  32. package/esm/animate/animation/sector-path-update.js +0 -131
  33. package/esm/animate/animation/sector-path-update.js.map +0 -1
  34. package/esm/animate/animation/util.d.ts +0 -19
  35. package/esm/animate/animation/util.js +0 -88
  36. package/esm/animate/animation/util.js.map +0 -1
  37. package/esm/animate/animation/wave-in.d.ts +0 -13
  38. package/esm/animate/animation/wave-in.js +0 -26
  39. package/esm/animate/animation/wave-in.js.map +0 -1
  40. package/esm/animate/animation/zoom.d.ts +0 -21
  41. package/esm/animate/animation/zoom.js +0 -66
  42. package/esm/animate/animation/zoom.js.map +0 -1
  43. package/esm/animate/index.d.ts +0 -48
  44. package/esm/animate/index.js +0 -249
  45. package/esm/animate/index.js.map +0 -1
  46. package/esm/animate/interface.d.ts +0 -12
  47. package/esm/animate/interface.js +0 -2
  48. package/esm/animate/interface.js.map +0 -1
  49. package/esm/api.d.ts +0 -2
  50. package/esm/api.js +0 -3
  51. package/esm/api.js.map +0 -1
  52. package/esm/base.d.ts +0 -33
  53. package/esm/base.js +0 -55
  54. package/esm/base.js.map +0 -1
  55. package/esm/chart/chart.d.ts +0 -61
  56. package/esm/chart/chart.js +0 -157
  57. package/esm/chart/chart.js.map +0 -1
  58. package/esm/chart/controller/annotation.d.ts +0 -162
  59. package/esm/chart/controller/annotation.js +0 -577
  60. package/esm/chart/controller/annotation.js.map +0 -1
  61. package/esm/chart/controller/axis.d.ts +0 -93
  62. package/esm/chart/controller/axis.js +0 -578
  63. package/esm/chart/controller/axis.js.map +0 -1
  64. package/esm/chart/controller/base.d.ts +0 -64
  65. package/esm/chart/controller/base.js +0 -62
  66. package/esm/chart/controller/base.js.map +0 -1
  67. package/esm/chart/controller/coordinate.d.ts +0 -74
  68. package/esm/chart/controller/coordinate.js +0 -145
  69. package/esm/chart/controller/coordinate.js.map +0 -1
  70. package/esm/chart/controller/gesture.d.ts +0 -37
  71. package/esm/chart/controller/gesture.js +0 -258
  72. package/esm/chart/controller/gesture.js.map +0 -1
  73. package/esm/chart/controller/index.d.ts +0 -25
  74. package/esm/chart/controller/index.js +0 -34
  75. package/esm/chart/controller/index.js.map +0 -1
  76. package/esm/chart/controller/legend.d.ts +0 -106
  77. package/esm/chart/controller/legend.js +0 -484
  78. package/esm/chart/controller/legend.js.map +0 -1
  79. package/esm/chart/controller/scrollbar.d.ts +0 -64
  80. package/esm/chart/controller/scrollbar.js +0 -316
  81. package/esm/chart/controller/scrollbar.js.map +0 -1
  82. package/esm/chart/controller/slider.d.ts +0 -88
  83. package/esm/chart/controller/slider.js +0 -296
  84. package/esm/chart/controller/slider.js.map +0 -1
  85. package/esm/chart/controller/tooltip.d.ts +0 -68
  86. package/esm/chart/controller/tooltip.js +0 -630
  87. package/esm/chart/controller/tooltip.js.map +0 -1
  88. package/esm/chart/event.d.ts +0 -47
  89. package/esm/chart/event.js +0 -91
  90. package/esm/chart/event.js.map +0 -1
  91. package/esm/chart/index.d.ts +0 -4
  92. package/esm/chart/index.js +0 -5
  93. package/esm/chart/index.js.map +0 -1
  94. package/esm/chart/layout/auto.d.ts +0 -8
  95. package/esm/chart/layout/auto.js +0 -64
  96. package/esm/chart/layout/auto.js.map +0 -1
  97. package/esm/chart/layout/constraint/bounds.d.ts +0 -32
  98. package/esm/chart/layout/constraint/bounds.js +0 -30
  99. package/esm/chart/layout/constraint/bounds.js.map +0 -1
  100. package/esm/chart/layout/constraint/constraint.d.ts +0 -31
  101. package/esm/chart/layout/constraint/constraint.js +0 -81
  102. package/esm/chart/layout/constraint/constraint.js.map +0 -1
  103. package/esm/chart/layout/constraint/gauss.d.ts +0 -11
  104. package/esm/chart/layout/constraint/gauss.js +0 -63
  105. package/esm/chart/layout/constraint/gauss.js.map +0 -1
  106. package/esm/chart/layout/constraint/index.d.ts +0 -5
  107. package/esm/chart/layout/constraint/index.js +0 -30
  108. package/esm/chart/layout/constraint/index.js.map +0 -1
  109. package/esm/chart/layout/constraint/solver.d.ts +0 -40
  110. package/esm/chart/layout/constraint/solver.js +0 -77
  111. package/esm/chart/layout/constraint/solver.js.map +0 -1
  112. package/esm/chart/layout/constraint/types.d.ts +0 -21
  113. package/esm/chart/layout/constraint/types.js +0 -13
  114. package/esm/chart/layout/constraint/types.js.map +0 -1
  115. package/esm/chart/layout/constraint/variable.d.ts +0 -24
  116. package/esm/chart/layout/constraint/variable.js +0 -28
  117. package/esm/chart/layout/constraint/variable.js.map +0 -1
  118. package/esm/chart/layout/index.d.ts +0 -15
  119. package/esm/chart/layout/index.js +0 -26
  120. package/esm/chart/layout/index.js.map +0 -1
  121. package/esm/chart/layout/padding-cal.d.ts +0 -53
  122. package/esm/chart/layout/padding-cal.js +0 -108
  123. package/esm/chart/layout/padding-cal.js.map +0 -1
  124. package/esm/chart/util/scale-pool.d.ts +0 -57
  125. package/esm/chart/util/scale-pool.js +0 -212
  126. package/esm/chart/util/scale-pool.js.map +0 -1
  127. package/esm/chart/util/sync-view-padding.d.ts +0 -9
  128. package/esm/chart/util/sync-view-padding.js +0 -14
  129. package/esm/chart/util/sync-view-padding.js.map +0 -1
  130. package/esm/chart/view.d.ts +0 -747
  131. package/esm/chart/view.js +0 -1633
  132. package/esm/chart/view.js.map +0 -1
  133. package/esm/component/labels.d.ts +0 -47
  134. package/esm/component/labels.js +0 -274
  135. package/esm/component/labels.js.map +0 -1
  136. package/esm/component/update-label.d.ts +0 -21
  137. package/esm/component/update-label.js +0 -57
  138. package/esm/component/update-label.js.map +0 -1
  139. package/esm/constant.d.ts +0 -122
  140. package/esm/constant.js +0 -134
  141. package/esm/constant.js.map +0 -1
  142. package/esm/core.d.ts +0 -46
  143. package/esm/core.js +0 -60
  144. package/esm/core.js.map +0 -1
  145. package/esm/dependents.d.ts +0 -21
  146. package/esm/dependents.js +0 -33
  147. package/esm/dependents.js.map +0 -1
  148. package/esm/engine/index.d.ts +0 -13
  149. package/esm/engine/index.js +0 -22
  150. package/esm/engine/index.js.map +0 -1
  151. package/esm/facet/circle.d.ts +0 -36
  152. package/esm/facet/circle.js +0 -119
  153. package/esm/facet/circle.js.map +0 -1
  154. package/esm/facet/facet.d.ts +0 -165
  155. package/esm/facet/facet.js +0 -291
  156. package/esm/facet/facet.js.map +0 -1
  157. package/esm/facet/index.d.ts +0 -13
  158. package/esm/facet/index.js +0 -22
  159. package/esm/facet/index.js.map +0 -1
  160. package/esm/facet/list.d.ts +0 -46
  161. package/esm/facet/list.js +0 -134
  162. package/esm/facet/list.js.map +0 -1
  163. package/esm/facet/matrix.d.ts +0 -34
  164. package/esm/facet/matrix.js +0 -119
  165. package/esm/facet/matrix.js.map +0 -1
  166. package/esm/facet/mirror.d.ts +0 -31
  167. package/esm/facet/mirror.js +0 -144
  168. package/esm/facet/mirror.js.map +0 -1
  169. package/esm/facet/rect.d.ts +0 -35
  170. package/esm/facet/rect.js +0 -141
  171. package/esm/facet/rect.js.map +0 -1
  172. package/esm/facet/tree.d.ts +0 -40
  173. package/esm/facet/tree.js +0 -288
  174. package/esm/facet/tree.js.map +0 -1
  175. package/esm/geometry/area.d.ts +0 -46
  176. package/esm/geometry/area.js +0 -62
  177. package/esm/geometry/area.js.map +0 -1
  178. package/esm/geometry/base.d.ts +0 -793
  179. package/esm/geometry/base.js +0 -1481
  180. package/esm/geometry/base.js.map +0 -1
  181. package/esm/geometry/edge.d.ts +0 -15
  182. package/esm/geometry/edge.js +0 -24
  183. package/esm/geometry/edge.js.map +0 -1
  184. package/esm/geometry/element/index.d.ts +0 -127
  185. package/esm/geometry/element/index.js +0 -436
  186. package/esm/geometry/element/index.js.map +0 -1
  187. package/esm/geometry/heatmap.d.ts +0 -31
  188. package/esm/geometry/heatmap.js +0 -190
  189. package/esm/geometry/heatmap.js.map +0 -1
  190. package/esm/geometry/interval.d.ts +0 -41
  191. package/esm/geometry/interval.js +0 -98
  192. package/esm/geometry/interval.js.map +0 -1
  193. package/esm/geometry/label/base.d.ts +0 -76
  194. package/esm/geometry/label/base.js +0 -404
  195. package/esm/geometry/label/base.js.map +0 -1
  196. package/esm/geometry/label/index.d.ts +0 -38
  197. package/esm/geometry/label/index.js +0 -35
  198. package/esm/geometry/label/index.js.map +0 -1
  199. package/esm/geometry/label/interface.d.ts +0 -50
  200. package/esm/geometry/label/interface.js +0 -2
  201. package/esm/geometry/label/interface.js.map +0 -1
  202. package/esm/geometry/label/interval.d.ts +0 -27
  203. package/esm/geometry/label/interval.js +0 -146
  204. package/esm/geometry/label/interval.js.map +0 -1
  205. package/esm/geometry/label/layout/adjust-color.d.ts +0 -3
  206. package/esm/geometry/label/layout/adjust-color.js +0 -36
  207. package/esm/geometry/label/layout/adjust-color.js.map +0 -1
  208. package/esm/geometry/label/layout/hide-overlap.d.ts +0 -8
  209. package/esm/geometry/label/layout/hide-overlap.js +0 -29
  210. package/esm/geometry/label/layout/hide-overlap.js.map +0 -1
  211. package/esm/geometry/label/layout/interval/adjust-position.d.ts +0 -9
  212. package/esm/geometry/label/layout/interval/adjust-position.js +0 -61
  213. package/esm/geometry/label/layout/interval/adjust-position.js.map +0 -1
  214. package/esm/geometry/label/layout/interval/hide-overlap.d.ts +0 -9
  215. package/esm/geometry/label/layout/interval/hide-overlap.js +0 -78
  216. package/esm/geometry/label/layout/interval/hide-overlap.js.map +0 -1
  217. package/esm/geometry/label/layout/limit-in-canvas.d.ts +0 -9
  218. package/esm/geometry/label/layout/limit-in-canvas.js +0 -44
  219. package/esm/geometry/label/layout/limit-in-canvas.js.map +0 -1
  220. package/esm/geometry/label/layout/limit-in-plot.d.ts +0 -18
  221. package/esm/geometry/label/layout/limit-in-plot.js +0 -75
  222. package/esm/geometry/label/layout/limit-in-plot.js.map +0 -1
  223. package/esm/geometry/label/layout/limit-in-shape.d.ts +0 -7
  224. package/esm/geometry/label/layout/limit-in-shape.js +0 -18
  225. package/esm/geometry/label/layout/limit-in-shape.js.map +0 -1
  226. package/esm/geometry/label/layout/overlap.d.ts +0 -15
  227. package/esm/geometry/label/layout/overlap.js +0 -223
  228. package/esm/geometry/label/layout/overlap.js.map +0 -1
  229. package/esm/geometry/label/layout/path/adjust-position.d.ts +0 -17
  230. package/esm/geometry/label/layout/path/adjust-position.js +0 -94
  231. package/esm/geometry/label/layout/path/adjust-position.js.map +0 -1
  232. package/esm/geometry/label/layout/pie/distribute.d.ts +0 -3
  233. package/esm/geometry/label/layout/pie/distribute.js +0 -185
  234. package/esm/geometry/label/layout/pie/distribute.js.map +0 -1
  235. package/esm/geometry/label/layout/pie/outer.d.ts +0 -6
  236. package/esm/geometry/label/layout/pie/outer.js +0 -207
  237. package/esm/geometry/label/layout/pie/outer.js.map +0 -1
  238. package/esm/geometry/label/layout/pie/spider.d.ts +0 -7
  239. package/esm/geometry/label/layout/pie/spider.js +0 -181
  240. package/esm/geometry/label/layout/pie/spider.js.map +0 -1
  241. package/esm/geometry/label/layout/pie/util.d.ts +0 -10
  242. package/esm/geometry/label/layout/pie/util.js +0 -73
  243. package/esm/geometry/label/layout/pie/util.js.map +0 -1
  244. package/esm/geometry/label/layout/point/adjust-position.d.ts +0 -17
  245. package/esm/geometry/label/layout/point/adjust-position.js +0 -94
  246. package/esm/geometry/label/layout/point/adjust-position.js.map +0 -1
  247. package/esm/geometry/label/pie.d.ts +0 -22
  248. package/esm/geometry/label/pie.js +0 -95
  249. package/esm/geometry/label/pie.js.map +0 -1
  250. package/esm/geometry/label/polar.d.ts +0 -64
  251. package/esm/geometry/label/polar.js +0 -221
  252. package/esm/geometry/label/polar.js.map +0 -1
  253. package/esm/geometry/label/util/index.d.ts +0 -26
  254. package/esm/geometry/label/util/index.js +0 -61
  255. package/esm/geometry/label/util/index.js.map +0 -1
  256. package/esm/geometry/line.d.ts +0 -11
  257. package/esm/geometry/line.js +0 -21
  258. package/esm/geometry/line.js.map +0 -1
  259. package/esm/geometry/path.d.ts +0 -40
  260. package/esm/geometry/path.js +0 -122
  261. package/esm/geometry/path.js.map +0 -1
  262. package/esm/geometry/point.d.ts +0 -19
  263. package/esm/geometry/point.js +0 -30
  264. package/esm/geometry/point.js.map +0 -1
  265. package/esm/geometry/polygon.d.ts +0 -19
  266. package/esm/geometry/polygon.js +0 -62
  267. package/esm/geometry/polygon.js.map +0 -1
  268. package/esm/geometry/schema.d.ts +0 -18
  269. package/esm/geometry/schema.js +0 -48
  270. package/esm/geometry/schema.js.map +0 -1
  271. package/esm/geometry/shape/area/index.d.ts +0 -2
  272. package/esm/geometry/shape/area/index.js +0 -44
  273. package/esm/geometry/shape/area/index.js.map +0 -1
  274. package/esm/geometry/shape/area/line.d.ts +0 -1
  275. package/esm/geometry/shape/area/line.js +0 -31
  276. package/esm/geometry/shape/area/line.js.map +0 -1
  277. package/esm/geometry/shape/area/smooth-line.d.ts +0 -1
  278. package/esm/geometry/shape/area/smooth-line.js +0 -30
  279. package/esm/geometry/shape/area/smooth-line.js.map +0 -1
  280. package/esm/geometry/shape/area/smooth.d.ts +0 -1
  281. package/esm/geometry/shape/area/smooth.js +0 -31
  282. package/esm/geometry/shape/area/smooth.js.map +0 -1
  283. package/esm/geometry/shape/area/util.d.ts +0 -22
  284. package/esm/geometry/shape/area/util.js +0 -88
  285. package/esm/geometry/shape/area/util.js.map +0 -1
  286. package/esm/geometry/shape/base.d.ts +0 -22
  287. package/esm/geometry/shape/base.js +0 -162
  288. package/esm/geometry/shape/base.js.map +0 -1
  289. package/esm/geometry/shape/constant.d.ts +0 -4
  290. package/esm/geometry/shape/constant.js +0 -5
  291. package/esm/geometry/shape/constant.js.map +0 -1
  292. package/esm/geometry/shape/edge/arc.d.ts +0 -1
  293. package/esm/geometry/shape/edge/arc.js +0 -84
  294. package/esm/geometry/shape/edge/arc.js.map +0 -1
  295. package/esm/geometry/shape/edge/index.d.ts +0 -2
  296. package/esm/geometry/shape/edge/index.js +0 -31
  297. package/esm/geometry/shape/edge/index.js.map +0 -1
  298. package/esm/geometry/shape/edge/smooth.d.ts +0 -1
  299. package/esm/geometry/shape/edge/smooth.js +0 -30
  300. package/esm/geometry/shape/edge/smooth.js.map +0 -1
  301. package/esm/geometry/shape/edge/util.d.ts +0 -17
  302. package/esm/geometry/shape/edge/util.js +0 -32
  303. package/esm/geometry/shape/edge/util.js.map +0 -1
  304. package/esm/geometry/shape/edge/vhv.d.ts +0 -1
  305. package/esm/geometry/shape/edge/vhv.js +0 -42
  306. package/esm/geometry/shape/edge/vhv.js.map +0 -1
  307. package/esm/geometry/shape/interval/funnel.d.ts +0 -1
  308. package/esm/geometry/shape/interval/funnel.js +0 -31
  309. package/esm/geometry/shape/interval/funnel.js.map +0 -1
  310. package/esm/geometry/shape/interval/hollow-rect.d.ts +0 -1
  311. package/esm/geometry/shape/interval/hollow-rect.js +0 -51
  312. package/esm/geometry/shape/interval/hollow-rect.js.map +0 -1
  313. package/esm/geometry/shape/interval/index.d.ts +0 -3
  314. package/esm/geometry/shape/interval/index.js +0 -63
  315. package/esm/geometry/shape/interval/index.js.map +0 -1
  316. package/esm/geometry/shape/interval/line.d.ts +0 -1
  317. package/esm/geometry/shape/interval/line.js +0 -54
  318. package/esm/geometry/shape/interval/line.js.map +0 -1
  319. package/esm/geometry/shape/interval/pyramid.d.ts +0 -1
  320. package/esm/geometry/shape/interval/pyramid.js +0 -31
  321. package/esm/geometry/shape/interval/pyramid.js.map +0 -1
  322. package/esm/geometry/shape/interval/tick.d.ts +0 -1
  323. package/esm/geometry/shape/interval/tick.js +0 -77
  324. package/esm/geometry/shape/interval/tick.js.map +0 -1
  325. package/esm/geometry/shape/interval/util.d.ts +0 -55
  326. package/esm/geometry/shape/interval/util.js +0 -311
  327. package/esm/geometry/shape/interval/util.js.map +0 -1
  328. package/esm/geometry/shape/line/index.d.ts +0 -8
  329. package/esm/geometry/shape/line/index.js +0 -105
  330. package/esm/geometry/shape/line/index.js.map +0 -1
  331. package/esm/geometry/shape/line/step.d.ts +0 -1
  332. package/esm/geometry/shape/line/step.js +0 -84
  333. package/esm/geometry/shape/line/step.js.map +0 -1
  334. package/esm/geometry/shape/line/util.d.ts +0 -16
  335. package/esm/geometry/shape/line/util.js +0 -83
  336. package/esm/geometry/shape/line/util.js.map +0 -1
  337. package/esm/geometry/shape/point/hollow.d.ts +0 -1
  338. package/esm/geometry/shape/point/hollow.js +0 -24
  339. package/esm/geometry/shape/point/hollow.js.map +0 -1
  340. package/esm/geometry/shape/point/image.d.ts +0 -1
  341. package/esm/geometry/shape/point/image.js +0 -48
  342. package/esm/geometry/shape/point/image.js.map +0 -1
  343. package/esm/geometry/shape/point/index.d.ts +0 -2
  344. package/esm/geometry/shape/point/index.js +0 -32
  345. package/esm/geometry/shape/point/index.js.map +0 -1
  346. package/esm/geometry/shape/point/solid.d.ts +0 -1
  347. package/esm/geometry/shape/point/solid.js +0 -23
  348. package/esm/geometry/shape/point/solid.js.map +0 -1
  349. package/esm/geometry/shape/point/util.d.ts +0 -15
  350. package/esm/geometry/shape/point/util.js +0 -39
  351. package/esm/geometry/shape/point/util.js.map +0 -1
  352. package/esm/geometry/shape/polygon/index.d.ts +0 -2
  353. package/esm/geometry/shape/polygon/index.js +0 -65
  354. package/esm/geometry/shape/polygon/index.js.map +0 -1
  355. package/esm/geometry/shape/polygon/square.d.ts +0 -1
  356. package/esm/geometry/shape/polygon/square.js +0 -44
  357. package/esm/geometry/shape/polygon/square.js.map +0 -1
  358. package/esm/geometry/shape/schema/box.d.ts +0 -1
  359. package/esm/geometry/shape/schema/box.js +0 -142
  360. package/esm/geometry/shape/schema/box.js.map +0 -1
  361. package/esm/geometry/shape/schema/candle.d.ts +0 -1
  362. package/esm/geometry/shape/schema/candle.js +0 -80
  363. package/esm/geometry/shape/schema/candle.js.map +0 -1
  364. package/esm/geometry/shape/schema/index.d.ts +0 -2
  365. package/esm/geometry/shape/schema/index.js +0 -6
  366. package/esm/geometry/shape/schema/index.js.map +0 -1
  367. package/esm/geometry/shape/util/get-path-points.d.ts +0 -38
  368. package/esm/geometry/shape/util/get-path-points.js +0 -131
  369. package/esm/geometry/shape/util/get-path-points.js.map +0 -1
  370. package/esm/geometry/shape/util/get-style.d.ts +0 -18
  371. package/esm/geometry/shape/util/get-style.js +0 -47
  372. package/esm/geometry/shape/util/get-style.js.map +0 -1
  373. package/esm/geometry/shape/util/path.d.ts +0 -32
  374. package/esm/geometry/shape/util/path.js +0 -311
  375. package/esm/geometry/shape/util/path.js.map +0 -1
  376. package/esm/geometry/shape/util/split-points.d.ts +0 -13
  377. package/esm/geometry/shape/util/split-points.js +0 -24
  378. package/esm/geometry/shape/util/split-points.js.map +0 -1
  379. package/esm/geometry/shape/violin/hollow.d.ts +0 -1
  380. package/esm/geometry/shape/violin/hollow.js +0 -51
  381. package/esm/geometry/shape/violin/hollow.js.map +0 -1
  382. package/esm/geometry/shape/violin/index.d.ts +0 -2
  383. package/esm/geometry/shape/violin/index.js +0 -60
  384. package/esm/geometry/shape/violin/index.js.map +0 -1
  385. package/esm/geometry/shape/violin/smooth.d.ts +0 -1
  386. package/esm/geometry/shape/violin/smooth.js +0 -28
  387. package/esm/geometry/shape/violin/smooth.js.map +0 -1
  388. package/esm/geometry/util/diff.d.ts +0 -11
  389. package/esm/geometry/util/diff.js +0 -30
  390. package/esm/geometry/util/diff.js.map +0 -1
  391. package/esm/geometry/util/get-shape-type.d.ts +0 -8
  392. package/esm/geometry/util/get-shape-type.js +0 -16
  393. package/esm/geometry/util/get-shape-type.js.map +0 -1
  394. package/esm/geometry/util/group-data.d.ts +0 -3
  395. package/esm/geometry/util/group-data.js +0 -31
  396. package/esm/geometry/util/group-data.js.map +0 -1
  397. package/esm/geometry/util/is-model-change.d.ts +0 -9
  398. package/esm/geometry/util/is-model-change.js +0 -14
  399. package/esm/geometry/util/is-model-change.js.map +0 -1
  400. package/esm/geometry/util/parse-fields.d.ts +0 -2
  401. package/esm/geometry/util/parse-fields.js +0 -9
  402. package/esm/geometry/util/parse-fields.js.map +0 -1
  403. package/esm/geometry/util/shape-size.d.ts +0 -2
  404. package/esm/geometry/util/shape-size.js +0 -124
  405. package/esm/geometry/util/shape-size.js.map +0 -1
  406. package/esm/geometry/violin.d.ts +0 -25
  407. package/esm/geometry/violin.js +0 -67
  408. package/esm/geometry/violin.js.map +0 -1
  409. package/esm/index.d.ts +0 -107
  410. package/esm/index.js +0 -573
  411. package/esm/index.js.map +0 -1
  412. package/esm/interaction/action/active-region.d.ts +0 -33
  413. package/esm/interaction/action/active-region.js +0 -198
  414. package/esm/interaction/action/active-region.js.map +0 -1
  415. package/esm/interaction/action/base.d.ts +0 -29
  416. package/esm/interaction/action/base.js +0 -36
  417. package/esm/interaction/action/base.js.map +0 -1
  418. package/esm/interaction/action/callback.d.ts +0 -17
  419. package/esm/interaction/action/callback.js +0 -27
  420. package/esm/interaction/action/callback.js.map +0 -1
  421. package/esm/interaction/action/component/list-active.d.ts +0 -14
  422. package/esm/interaction/action/component/list-active.js +0 -24
  423. package/esm/interaction/action/component/list-active.js.map +0 -1
  424. package/esm/interaction/action/component/list-checked.d.ts +0 -30
  425. package/esm/interaction/action/component/list-checked.js +0 -82
  426. package/esm/interaction/action/component/list-checked.js.map +0 -1
  427. package/esm/interaction/action/component/list-focus.d.ts +0 -5
  428. package/esm/interaction/action/component/list-focus.js +0 -55
  429. package/esm/interaction/action/component/list-focus.js.map +0 -1
  430. package/esm/interaction/action/component/list-highlight-util.d.ts +0 -7
  431. package/esm/interaction/action/component/list-highlight-util.js +0 -20
  432. package/esm/interaction/action/component/list-highlight-util.js.map +0 -1
  433. package/esm/interaction/action/component/list-highlight.d.ts +0 -20
  434. package/esm/interaction/action/component/list-highlight.js +0 -97
  435. package/esm/interaction/action/component/list-highlight.js.map +0 -1
  436. package/esm/interaction/action/component/list-radio.d.ts +0 -6
  437. package/esm/interaction/action/component/list-radio.js +0 -26
  438. package/esm/interaction/action/component/list-radio.js.map +0 -1
  439. package/esm/interaction/action/component/list-selected.d.ts +0 -10
  440. package/esm/interaction/action/component/list-selected.js +0 -20
  441. package/esm/interaction/action/component/list-selected.js.map +0 -1
  442. package/esm/interaction/action/component/list-state.d.ts +0 -46
  443. package/esm/interaction/action/component/list-state.js +0 -167
  444. package/esm/interaction/action/component/list-state.js.map +0 -1
  445. package/esm/interaction/action/component/list-unchecked.d.ts +0 -13
  446. package/esm/interaction/action/component/list-unchecked.js +0 -23
  447. package/esm/interaction/action/component/list-unchecked.js.map +0 -1
  448. package/esm/interaction/action/component/tooltip/ellipsis-text.d.ts +0 -25
  449. package/esm/interaction/action/component/tooltip/ellipsis-text.js +0 -93
  450. package/esm/interaction/action/component/tooltip/ellipsis-text.js.map +0 -1
  451. package/esm/interaction/action/component/tooltip/geometry.d.ts +0 -24
  452. package/esm/interaction/action/component/tooltip/geometry.js +0 -71
  453. package/esm/interaction/action/component/tooltip/geometry.js.map +0 -1
  454. package/esm/interaction/action/component/tooltip/sibling.d.ts +0 -21
  455. package/esm/interaction/action/component/tooltip/sibling.js +0 -39
  456. package/esm/interaction/action/component/tooltip/sibling.js.map +0 -1
  457. package/esm/interaction/action/cursor.d.ts +0 -69
  458. package/esm/interaction/action/cursor.js +0 -113
  459. package/esm/interaction/action/cursor.js.map +0 -1
  460. package/esm/interaction/action/data/filter.d.ts +0 -13
  461. package/esm/interaction/action/data/filter.js +0 -66
  462. package/esm/interaction/action/data/filter.js.map +0 -1
  463. package/esm/interaction/action/data/range-filter.d.ts +0 -56
  464. package/esm/interaction/action/data/range-filter.js +0 -163
  465. package/esm/interaction/action/data/range-filter.js.map +0 -1
  466. package/esm/interaction/action/data/sibling-filter.d.ts +0 -22
  467. package/esm/interaction/action/data/sibling-filter.js +0 -39
  468. package/esm/interaction/action/data/sibling-filter.js.map +0 -1
  469. package/esm/interaction/action/element/active.d.ts +0 -14
  470. package/esm/interaction/action/element/active.js +0 -24
  471. package/esm/interaction/action/element/active.js.map +0 -1
  472. package/esm/interaction/action/element/filter.d.ts +0 -20
  473. package/esm/interaction/action/element/filter.js +0 -89
  474. package/esm/interaction/action/element/filter.js.map +0 -1
  475. package/esm/interaction/action/element/highlight-by-color.d.ts +0 -10
  476. package/esm/interaction/action/element/highlight-by-color.js +0 -30
  477. package/esm/interaction/action/element/highlight-by-color.js.map +0 -1
  478. package/esm/interaction/action/element/highlight-by-x.d.ts +0 -15
  479. package/esm/interaction/action/element/highlight-by-x.js +0 -51
  480. package/esm/interaction/action/element/highlight-by-x.js.map +0 -1
  481. package/esm/interaction/action/element/highlight-util.d.ts +0 -18
  482. package/esm/interaction/action/element/highlight-util.js +0 -45
  483. package/esm/interaction/action/element/highlight-util.js.map +0 -1
  484. package/esm/interaction/action/element/highlight.d.ts +0 -21
  485. package/esm/interaction/action/element/highlight.js +0 -93
  486. package/esm/interaction/action/element/highlight.js.map +0 -1
  487. package/esm/interaction/action/element/link-by-color.d.ts +0 -51
  488. package/esm/interaction/action/element/link-by-color.js +0 -156
  489. package/esm/interaction/action/element/link-by-color.js.map +0 -1
  490. package/esm/interaction/action/element/range-active.d.ts +0 -13
  491. package/esm/interaction/action/element/range-active.js +0 -23
  492. package/esm/interaction/action/element/range-active.js.map +0 -1
  493. package/esm/interaction/action/element/range-highlight.d.ts +0 -27
  494. package/esm/interaction/action/element/range-highlight.js +0 -54
  495. package/esm/interaction/action/element/range-highlight.js.map +0 -1
  496. package/esm/interaction/action/element/range-selected.d.ts +0 -13
  497. package/esm/interaction/action/element/range-selected.js +0 -23
  498. package/esm/interaction/action/element/range-selected.js.map +0 -1
  499. package/esm/interaction/action/element/range-state.d.ts +0 -38
  500. package/esm/interaction/action/element/range-state.js +0 -164
  501. package/esm/interaction/action/element/range-state.js.map +0 -1
  502. package/esm/interaction/action/element/selected.d.ts +0 -14
  503. package/esm/interaction/action/element/selected.js +0 -24
  504. package/esm/interaction/action/element/selected.js.map +0 -1
  505. package/esm/interaction/action/element/sibling-filter.d.ts +0 -19
  506. package/esm/interaction/action/element/sibling-filter.js +0 -93
  507. package/esm/interaction/action/element/sibling-filter.js.map +0 -1
  508. package/esm/interaction/action/element/single-active.d.ts +0 -13
  509. package/esm/interaction/action/element/single-active.js +0 -23
  510. package/esm/interaction/action/element/single-active.js.map +0 -1
  511. package/esm/interaction/action/element/single-highlight.d.ts +0 -16
  512. package/esm/interaction/action/element/single-highlight.js +0 -35
  513. package/esm/interaction/action/element/single-highlight.js.map +0 -1
  514. package/esm/interaction/action/element/single-selected.d.ts +0 -13
  515. package/esm/interaction/action/element/single-selected.js +0 -23
  516. package/esm/interaction/action/element/single-selected.js.map +0 -1
  517. package/esm/interaction/action/element/single-state.d.ts +0 -18
  518. package/esm/interaction/action/element/single-state.js +0 -53
  519. package/esm/interaction/action/element/single-state.js.map +0 -1
  520. package/esm/interaction/action/element/state-base.d.ts +0 -39
  521. package/esm/interaction/action/element/state-base.js +0 -59
  522. package/esm/interaction/action/element/state-base.js.map +0 -1
  523. package/esm/interaction/action/element/state.d.ts +0 -28
  524. package/esm/interaction/action/element/state.js +0 -99
  525. package/esm/interaction/action/element/state.js.map +0 -1
  526. package/esm/interaction/action/index.d.ts +0 -2
  527. package/esm/interaction/action/index.js +0 -3
  528. package/esm/interaction/action/index.js.map +0 -1
  529. package/esm/interaction/action/mask/base.d.ts +0 -62
  530. package/esm/interaction/action/mask/base.js +0 -169
  531. package/esm/interaction/action/mask/base.js.map +0 -1
  532. package/esm/interaction/action/mask/circle.d.ts +0 -14
  533. package/esm/interaction/action/mask/circle.js +0 -37
  534. package/esm/interaction/action/mask/circle.js.map +0 -1
  535. package/esm/interaction/action/mask/dim-rect.d.ts +0 -11
  536. package/esm/interaction/action/mask/dim-rect.js +0 -62
  537. package/esm/interaction/action/mask/dim-rect.js.map +0 -1
  538. package/esm/interaction/action/mask/path.d.ts +0 -16
  539. package/esm/interaction/action/mask/path.js +0 -44
  540. package/esm/interaction/action/mask/path.js.map +0 -1
  541. package/esm/interaction/action/mask/rect.d.ts +0 -17
  542. package/esm/interaction/action/mask/rect.js +0 -39
  543. package/esm/interaction/action/mask/rect.js.map +0 -1
  544. package/esm/interaction/action/mask/smooth-path.d.ts +0 -9
  545. package/esm/interaction/action/mask/smooth-path.js +0 -21
  546. package/esm/interaction/action/mask/smooth-path.js.map +0 -1
  547. package/esm/interaction/action/register.d.ts +0 -36
  548. package/esm/interaction/action/register.js +0 -60
  549. package/esm/interaction/action/register.js.map +0 -1
  550. package/esm/interaction/action/util.d.ts +0 -140
  551. package/esm/interaction/action/util.js +0 -361
  552. package/esm/interaction/action/util.js.map +0 -1
  553. package/esm/interaction/action/view/button.d.ts +0 -25
  554. package/esm/interaction/action/view/button.js +0 -116
  555. package/esm/interaction/action/view/button.js.map +0 -1
  556. package/esm/interaction/action/view/drag.d.ts +0 -24
  557. package/esm/interaction/action/view/drag.js +0 -73
  558. package/esm/interaction/action/view/drag.js.map +0 -1
  559. package/esm/interaction/action/view/mousewheel-scroll.d.ts +0 -5
  560. package/esm/interaction/action/view/mousewheel-scroll.js +0 -35
  561. package/esm/interaction/action/view/mousewheel-scroll.js.map +0 -1
  562. package/esm/interaction/action/view/move.d.ts +0 -28
  563. package/esm/interaction/action/view/move.js +0 -80
  564. package/esm/interaction/action/view/move.js.map +0 -1
  565. package/esm/interaction/action/view/scale-transform.d.ts +0 -18
  566. package/esm/interaction/action/view/scale-transform.js +0 -51
  567. package/esm/interaction/action/view/scale-transform.js.map +0 -1
  568. package/esm/interaction/action/view/scale-translate.d.ts +0 -30
  569. package/esm/interaction/action/view/scale-translate.js +0 -112
  570. package/esm/interaction/action/view/scale-translate.js.map +0 -1
  571. package/esm/interaction/action/view/scale-zoom.d.ts +0 -20
  572. package/esm/interaction/action/view/scale-zoom.js +0 -83
  573. package/esm/interaction/action/view/scale-zoom.js.map +0 -1
  574. package/esm/interaction/context.d.ts +0 -65
  575. package/esm/interaction/context.js +0 -142
  576. package/esm/interaction/context.js.map +0 -1
  577. package/esm/interaction/grammar-interaction.d.ts +0 -158
  578. package/esm/interaction/grammar-interaction.js +0 -285
  579. package/esm/interaction/grammar-interaction.js.map +0 -1
  580. package/esm/interaction/index.d.ts +0 -25
  581. package/esm/interaction/index.js +0 -43
  582. package/esm/interaction/index.js.map +0 -1
  583. package/esm/interaction/interaction.d.ts +0 -29
  584. package/esm/interaction/interaction.js +0 -32
  585. package/esm/interaction/interaction.js.map +0 -1
  586. package/esm/interface.d.ts +0 -2264
  587. package/esm/interface.js +0 -2
  588. package/esm/interface.js.map +0 -1
  589. package/esm/theme/index.d.ts +0 -12
  590. package/esm/theme/index.js +0 -23
  591. package/esm/theme/index.js.map +0 -1
  592. package/esm/theme/style-sheet/dark.d.ts +0 -825
  593. package/esm/theme/style-sheet/dark.js +0 -496
  594. package/esm/theme/style-sheet/dark.js.map +0 -1
  595. package/esm/theme/style-sheet/light.d.ts +0 -817
  596. package/esm/theme/style-sheet/light.js +0 -492
  597. package/esm/theme/style-sheet/light.js.map +0 -1
  598. package/esm/theme/util/create-by-style-sheet.d.ts +0 -6
  599. package/esm/theme/util/create-by-style-sheet.js +0 -1422
  600. package/esm/theme/util/create-by-style-sheet.js.map +0 -1
  601. package/esm/theme/util/create-theme.d.ts +0 -6
  602. package/esm/theme/util/create-theme.js +0 -12
  603. package/esm/theme/util/create-theme.js.map +0 -1
  604. package/esm/theme/util/index.d.ts +0 -1
  605. package/esm/theme/util/index.js +0 -2
  606. package/esm/theme/util/index.js.map +0 -1
  607. package/esm/util/annotation.d.ts +0 -7
  608. package/esm/util/annotation.js +0 -39
  609. package/esm/util/annotation.js.map +0 -1
  610. package/esm/util/attr.d.ts +0 -10
  611. package/esm/util/attr.js +0 -25
  612. package/esm/util/attr.js.map +0 -1
  613. package/esm/util/axis.d.ts +0 -100
  614. package/esm/util/axis.js +0 -236
  615. package/esm/util/axis.js.map +0 -1
  616. package/esm/util/bbox.d.ts +0 -105
  617. package/esm/util/bbox.js +0 -282
  618. package/esm/util/bbox.js.map +0 -1
  619. package/esm/util/collision-detect.d.ts +0 -16
  620. package/esm/util/collision-detect.js +0 -127
  621. package/esm/util/collision-detect.js.map +0 -1
  622. package/esm/util/color.d.ts +0 -1
  623. package/esm/util/color.js +0 -18
  624. package/esm/util/color.js.map +0 -1
  625. package/esm/util/context.d.ts +0 -4
  626. package/esm/util/context.js +0 -11
  627. package/esm/util/context.js.map +0 -1
  628. package/esm/util/coordinate.d.ts +0 -86
  629. package/esm/util/coordinate.js +0 -147
  630. package/esm/util/coordinate.js.map +0 -1
  631. package/esm/util/direction.d.ts +0 -19
  632. package/esm/util/direction.js +0 -120
  633. package/esm/util/direction.js.map +0 -1
  634. package/esm/util/dom.d.ts +0 -19
  635. package/esm/util/dom.js +0 -61
  636. package/esm/util/dom.js.map +0 -1
  637. package/esm/util/event.d.ts +0 -8
  638. package/esm/util/event.js +0 -14
  639. package/esm/util/event.js.map +0 -1
  640. package/esm/util/facet.d.ts +0 -16
  641. package/esm/util/facet.js +0 -43
  642. package/esm/util/facet.js.map +0 -1
  643. package/esm/util/graphics.d.ts +0 -58
  644. package/esm/util/graphics.js +0 -203
  645. package/esm/util/graphics.js.map +0 -1
  646. package/esm/util/grid.d.ts +0 -36
  647. package/esm/util/grid.js +0 -118
  648. package/esm/util/grid.js.map +0 -1
  649. package/esm/util/helper.d.ts +0 -34
  650. package/esm/util/helper.js +0 -72
  651. package/esm/util/helper.js.map +0 -1
  652. package/esm/util/legend.d.ts +0 -45
  653. package/esm/util/legend.js +0 -145
  654. package/esm/util/legend.js.map +0 -1
  655. package/esm/util/marker.d.ts +0 -10
  656. package/esm/util/marker.js +0 -58
  657. package/esm/util/marker.js.map +0 -1
  658. package/esm/util/padding.d.ts +0 -14
  659. package/esm/util/padding.js +0 -40
  660. package/esm/util/padding.js.map +0 -1
  661. package/esm/util/scale.d.ts +0 -38
  662. package/esm/util/scale.js +0 -114
  663. package/esm/util/scale.js.map +0 -1
  664. package/esm/util/stat.d.ts +0 -10
  665. package/esm/util/stat.js +0 -36
  666. package/esm/util/stat.js.map +0 -1
  667. package/esm/util/text.d.ts +0 -23
  668. package/esm/util/text.js +0 -84
  669. package/esm/util/text.js.map +0 -1
  670. package/esm/util/tooltip.d.ts +0 -26
  671. package/esm/util/tooltip.js +0 -415
  672. package/esm/util/tooltip.js.map +0 -1
  673. package/esm/util/transform.d.ts +0 -33
  674. package/esm/util/transform.js +0 -61
  675. package/esm/util/transform.js.map +0 -1
  676. package/esm/util/types.d.ts +0 -6
  677. package/esm/util/types.js +0 -2
  678. package/esm/util/types.js.map +0 -1
  679. package/lib/animate/animation/fade.d.ts +0 -21
  680. package/lib/animate/animation/fade.js +0 -47
  681. package/lib/animate/animation/fade.js.map +0 -1
  682. package/lib/animate/animation/grow-in.d.ts +0 -30
  683. package/lib/animate/animation/grow-in.js +0 -44
  684. package/lib/animate/animation/grow-in.js.map +0 -1
  685. package/lib/animate/animation/index.d.ts +0 -16
  686. package/lib/animate/animation/index.js +0 -22
  687. package/lib/animate/animation/index.js.map +0 -1
  688. package/lib/animate/animation/path-in.d.ts +0 -12
  689. package/lib/animate/animation/path-in.js +0 -25
  690. package/lib/animate/animation/path-in.js.map +0 -1
  691. package/lib/animate/animation/position-update.d.ts +0 -11
  692. package/lib/animate/animation/position-update.js +0 -28
  693. package/lib/animate/animation/position-update.js.map +0 -1
  694. package/lib/animate/animation/scale-in.d.ts +0 -19
  695. package/lib/animate/animation/scale-in.js +0 -65
  696. package/lib/animate/animation/scale-in.js.map +0 -1
  697. package/lib/animate/animation/sector-path-update.d.ts +0 -11
  698. package/lib/animate/animation/sector-path-update.js +0 -135
  699. package/lib/animate/animation/sector-path-update.js.map +0 -1
  700. package/lib/animate/animation/util.d.ts +0 -19
  701. package/lib/animate/animation/util.js +0 -93
  702. package/lib/animate/animation/util.js.map +0 -1
  703. package/lib/animate/animation/wave-in.d.ts +0 -13
  704. package/lib/animate/animation/wave-in.js +0 -30
  705. package/lib/animate/animation/wave-in.js.map +0 -1
  706. package/lib/animate/animation/zoom.d.ts +0 -21
  707. package/lib/animate/animation/zoom.js +0 -71
  708. package/lib/animate/animation/zoom.js.map +0 -1
  709. package/lib/animate/index.d.ts +0 -48
  710. package/lib/animate/index.js +0 -255
  711. package/lib/animate/index.js.map +0 -1
  712. package/lib/animate/interface.d.ts +0 -12
  713. package/lib/animate/interface.js +0 -3
  714. package/lib/animate/interface.js.map +0 -1
  715. package/lib/api.d.ts +0 -2
  716. package/lib/api.js +0 -7
  717. package/lib/api.js.map +0 -1
  718. package/lib/base.d.ts +0 -33
  719. package/lib/base.js +0 -57
  720. package/lib/base.js.map +0 -1
  721. package/lib/chart/chart.d.ts +0 -61
  722. package/lib/chart/chart.js +0 -159
  723. package/lib/chart/chart.js.map +0 -1
  724. package/lib/chart/controller/annotation.d.ts +0 -162
  725. package/lib/chart/controller/annotation.js +0 -579
  726. package/lib/chart/controller/annotation.js.map +0 -1
  727. package/lib/chart/controller/axis.d.ts +0 -93
  728. package/lib/chart/controller/axis.js +0 -580
  729. package/lib/chart/controller/axis.js.map +0 -1
  730. package/lib/chart/controller/base.d.ts +0 -64
  731. package/lib/chart/controller/base.js +0 -65
  732. package/lib/chart/controller/base.js.map +0 -1
  733. package/lib/chart/controller/coordinate.d.ts +0 -74
  734. package/lib/chart/controller/coordinate.js +0 -147
  735. package/lib/chart/controller/coordinate.js.map +0 -1
  736. package/lib/chart/controller/gesture.d.ts +0 -37
  737. package/lib/chart/controller/gesture.js +0 -260
  738. package/lib/chart/controller/gesture.js.map +0 -1
  739. package/lib/chart/controller/index.d.ts +0 -25
  740. package/lib/chart/controller/index.js +0 -41
  741. package/lib/chart/controller/index.js.map +0 -1
  742. package/lib/chart/controller/legend.d.ts +0 -106
  743. package/lib/chart/controller/legend.js +0 -486
  744. package/lib/chart/controller/legend.js.map +0 -1
  745. package/lib/chart/controller/scrollbar.d.ts +0 -64
  746. package/lib/chart/controller/scrollbar.js +0 -318
  747. package/lib/chart/controller/scrollbar.js.map +0 -1
  748. package/lib/chart/controller/slider.d.ts +0 -88
  749. package/lib/chart/controller/slider.js +0 -298
  750. package/lib/chart/controller/slider.js.map +0 -1
  751. package/lib/chart/controller/tooltip.d.ts +0 -68
  752. package/lib/chart/controller/tooltip.js +0 -632
  753. package/lib/chart/controller/tooltip.js.map +0 -1
  754. package/lib/chart/event.d.ts +0 -47
  755. package/lib/chart/event.js +0 -93
  756. package/lib/chart/event.js.map +0 -1
  757. package/lib/chart/index.d.ts +0 -4
  758. package/lib/chart/index.js +0 -16
  759. package/lib/chart/index.js.map +0 -1
  760. package/lib/chart/layout/auto.d.ts +0 -8
  761. package/lib/chart/layout/auto.js +0 -68
  762. package/lib/chart/layout/auto.js.map +0 -1
  763. package/lib/chart/layout/constraint/bounds.d.ts +0 -32
  764. package/lib/chart/layout/constraint/bounds.js +0 -33
  765. package/lib/chart/layout/constraint/bounds.js.map +0 -1
  766. package/lib/chart/layout/constraint/constraint.d.ts +0 -31
  767. package/lib/chart/layout/constraint/constraint.js +0 -84
  768. package/lib/chart/layout/constraint/constraint.js.map +0 -1
  769. package/lib/chart/layout/constraint/gauss.d.ts +0 -11
  770. package/lib/chart/layout/constraint/gauss.js +0 -68
  771. package/lib/chart/layout/constraint/gauss.js.map +0 -1
  772. package/lib/chart/layout/constraint/index.d.ts +0 -5
  773. package/lib/chart/layout/constraint/index.js +0 -38
  774. package/lib/chart/layout/constraint/index.js.map +0 -1
  775. package/lib/chart/layout/constraint/solver.d.ts +0 -40
  776. package/lib/chart/layout/constraint/solver.js +0 -80
  777. package/lib/chart/layout/constraint/solver.js.map +0 -1
  778. package/lib/chart/layout/constraint/types.d.ts +0 -21
  779. package/lib/chart/layout/constraint/types.js +0 -16
  780. package/lib/chart/layout/constraint/types.js.map +0 -1
  781. package/lib/chart/layout/constraint/variable.d.ts +0 -24
  782. package/lib/chart/layout/constraint/variable.js +0 -31
  783. package/lib/chart/layout/constraint/variable.js.map +0 -1
  784. package/lib/chart/layout/index.d.ts +0 -15
  785. package/lib/chart/layout/index.js +0 -29
  786. package/lib/chart/layout/index.js.map +0 -1
  787. package/lib/chart/layout/padding-cal.d.ts +0 -53
  788. package/lib/chart/layout/padding-cal.js +0 -111
  789. package/lib/chart/layout/padding-cal.js.map +0 -1
  790. package/lib/chart/util/scale-pool.d.ts +0 -57
  791. package/lib/chart/util/scale-pool.js +0 -215
  792. package/lib/chart/util/scale-pool.js.map +0 -1
  793. package/lib/chart/util/sync-view-padding.d.ts +0 -9
  794. package/lib/chart/util/sync-view-padding.js +0 -18
  795. package/lib/chart/util/sync-view-padding.js.map +0 -1
  796. package/lib/chart/view.d.ts +0 -747
  797. package/lib/chart/view.js +0 -1637
  798. package/lib/chart/view.js.map +0 -1
  799. package/lib/component/labels.d.ts +0 -47
  800. package/lib/component/labels.js +0 -276
  801. package/lib/component/labels.js.map +0 -1
  802. package/lib/component/update-label.d.ts +0 -21
  803. package/lib/component/update-label.js +0 -61
  804. package/lib/component/update-label.js.map +0 -1
  805. package/lib/constant.d.ts +0 -122
  806. package/lib/constant.js +0 -137
  807. package/lib/constant.js.map +0 -1
  808. package/lib/core.d.ts +0 -46
  809. package/lib/core.js +0 -101
  810. package/lib/core.js.map +0 -1
  811. package/lib/dependents.d.ts +0 -21
  812. package/lib/dependents.js +0 -55
  813. package/lib/dependents.js.map +0 -1
  814. package/lib/engine/index.d.ts +0 -13
  815. package/lib/engine/index.js +0 -27
  816. package/lib/engine/index.js.map +0 -1
  817. package/lib/facet/circle.d.ts +0 -36
  818. package/lib/facet/circle.js +0 -121
  819. package/lib/facet/circle.js.map +0 -1
  820. package/lib/facet/facet.d.ts +0 -165
  821. package/lib/facet/facet.js +0 -294
  822. package/lib/facet/facet.js.map +0 -1
  823. package/lib/facet/index.d.ts +0 -13
  824. package/lib/facet/index.js +0 -28
  825. package/lib/facet/index.js.map +0 -1
  826. package/lib/facet/list.d.ts +0 -46
  827. package/lib/facet/list.js +0 -136
  828. package/lib/facet/list.js.map +0 -1
  829. package/lib/facet/matrix.d.ts +0 -34
  830. package/lib/facet/matrix.js +0 -121
  831. package/lib/facet/matrix.js.map +0 -1
  832. package/lib/facet/mirror.d.ts +0 -31
  833. package/lib/facet/mirror.js +0 -146
  834. package/lib/facet/mirror.js.map +0 -1
  835. package/lib/facet/rect.d.ts +0 -35
  836. package/lib/facet/rect.js +0 -143
  837. package/lib/facet/rect.js.map +0 -1
  838. package/lib/facet/tree.d.ts +0 -40
  839. package/lib/facet/tree.js +0 -290
  840. package/lib/facet/tree.js.map +0 -1
  841. package/lib/geometry/area.d.ts +0 -46
  842. package/lib/geometry/area.js +0 -64
  843. package/lib/geometry/area.js.map +0 -1
  844. package/lib/geometry/base.d.ts +0 -793
  845. package/lib/geometry/base.js +0 -1483
  846. package/lib/geometry/base.js.map +0 -1
  847. package/lib/geometry/edge.d.ts +0 -15
  848. package/lib/geometry/edge.js +0 -26
  849. package/lib/geometry/edge.js.map +0 -1
  850. package/lib/geometry/element/index.d.ts +0 -127
  851. package/lib/geometry/element/index.js +0 -438
  852. package/lib/geometry/element/index.js.map +0 -1
  853. package/lib/geometry/heatmap.d.ts +0 -31
  854. package/lib/geometry/heatmap.js +0 -192
  855. package/lib/geometry/heatmap.js.map +0 -1
  856. package/lib/geometry/interval.d.ts +0 -41
  857. package/lib/geometry/interval.js +0 -100
  858. package/lib/geometry/interval.js.map +0 -1
  859. package/lib/geometry/label/base.d.ts +0 -76
  860. package/lib/geometry/label/base.js +0 -406
  861. package/lib/geometry/label/base.js.map +0 -1
  862. package/lib/geometry/label/index.d.ts +0 -38
  863. package/lib/geometry/label/index.js +0 -42
  864. package/lib/geometry/label/index.js.map +0 -1
  865. package/lib/geometry/label/interface.d.ts +0 -50
  866. package/lib/geometry/label/interface.js +0 -3
  867. package/lib/geometry/label/interface.js.map +0 -1
  868. package/lib/geometry/label/interval.d.ts +0 -27
  869. package/lib/geometry/label/interval.js +0 -148
  870. package/lib/geometry/label/interval.js.map +0 -1
  871. package/lib/geometry/label/layout/adjust-color.d.ts +0 -3
  872. package/lib/geometry/label/layout/adjust-color.js +0 -40
  873. package/lib/geometry/label/layout/adjust-color.js.map +0 -1
  874. package/lib/geometry/label/layout/hide-overlap.d.ts +0 -8
  875. package/lib/geometry/label/layout/hide-overlap.js +0 -33
  876. package/lib/geometry/label/layout/hide-overlap.js.map +0 -1
  877. package/lib/geometry/label/layout/interval/adjust-position.d.ts +0 -9
  878. package/lib/geometry/label/layout/interval/adjust-position.js +0 -65
  879. package/lib/geometry/label/layout/interval/adjust-position.js.map +0 -1
  880. package/lib/geometry/label/layout/interval/hide-overlap.d.ts +0 -9
  881. package/lib/geometry/label/layout/interval/hide-overlap.js +0 -82
  882. package/lib/geometry/label/layout/interval/hide-overlap.js.map +0 -1
  883. package/lib/geometry/label/layout/limit-in-canvas.d.ts +0 -9
  884. package/lib/geometry/label/layout/limit-in-canvas.js +0 -48
  885. package/lib/geometry/label/layout/limit-in-canvas.js.map +0 -1
  886. package/lib/geometry/label/layout/limit-in-plot.d.ts +0 -18
  887. package/lib/geometry/label/layout/limit-in-plot.js +0 -79
  888. package/lib/geometry/label/layout/limit-in-plot.js.map +0 -1
  889. package/lib/geometry/label/layout/limit-in-shape.d.ts +0 -7
  890. package/lib/geometry/label/layout/limit-in-shape.js +0 -22
  891. package/lib/geometry/label/layout/limit-in-shape.js.map +0 -1
  892. package/lib/geometry/label/layout/overlap.d.ts +0 -15
  893. package/lib/geometry/label/layout/overlap.js +0 -228
  894. package/lib/geometry/label/layout/overlap.js.map +0 -1
  895. package/lib/geometry/label/layout/path/adjust-position.d.ts +0 -17
  896. package/lib/geometry/label/layout/path/adjust-position.js +0 -98
  897. package/lib/geometry/label/layout/path/adjust-position.js.map +0 -1
  898. package/lib/geometry/label/layout/pie/distribute.d.ts +0 -3
  899. package/lib/geometry/label/layout/pie/distribute.js +0 -189
  900. package/lib/geometry/label/layout/pie/distribute.js.map +0 -1
  901. package/lib/geometry/label/layout/pie/outer.d.ts +0 -6
  902. package/lib/geometry/label/layout/pie/outer.js +0 -211
  903. package/lib/geometry/label/layout/pie/outer.js.map +0 -1
  904. package/lib/geometry/label/layout/pie/spider.d.ts +0 -7
  905. package/lib/geometry/label/layout/pie/spider.js +0 -185
  906. package/lib/geometry/label/layout/pie/spider.js.map +0 -1
  907. package/lib/geometry/label/layout/pie/util.d.ts +0 -10
  908. package/lib/geometry/label/layout/pie/util.js +0 -77
  909. package/lib/geometry/label/layout/pie/util.js.map +0 -1
  910. package/lib/geometry/label/layout/point/adjust-position.d.ts +0 -17
  911. package/lib/geometry/label/layout/point/adjust-position.js +0 -98
  912. package/lib/geometry/label/layout/point/adjust-position.js.map +0 -1
  913. package/lib/geometry/label/pie.d.ts +0 -22
  914. package/lib/geometry/label/pie.js +0 -97
  915. package/lib/geometry/label/pie.js.map +0 -1
  916. package/lib/geometry/label/polar.d.ts +0 -64
  917. package/lib/geometry/label/polar.js +0 -223
  918. package/lib/geometry/label/polar.js.map +0 -1
  919. package/lib/geometry/label/util/index.d.ts +0 -26
  920. package/lib/geometry/label/util/index.js +0 -68
  921. package/lib/geometry/label/util/index.js.map +0 -1
  922. package/lib/geometry/line.d.ts +0 -11
  923. package/lib/geometry/line.js +0 -23
  924. package/lib/geometry/line.js.map +0 -1
  925. package/lib/geometry/path.d.ts +0 -40
  926. package/lib/geometry/path.js +0 -124
  927. package/lib/geometry/path.js.map +0 -1
  928. package/lib/geometry/point.d.ts +0 -19
  929. package/lib/geometry/point.js +0 -32
  930. package/lib/geometry/point.js.map +0 -1
  931. package/lib/geometry/polygon.d.ts +0 -19
  932. package/lib/geometry/polygon.js +0 -64
  933. package/lib/geometry/polygon.js.map +0 -1
  934. package/lib/geometry/schema.d.ts +0 -18
  935. package/lib/geometry/schema.js +0 -50
  936. package/lib/geometry/schema.js.map +0 -1
  937. package/lib/geometry/shape/area/index.d.ts +0 -2
  938. package/lib/geometry/shape/area/index.js +0 -46
  939. package/lib/geometry/shape/area/index.js.map +0 -1
  940. package/lib/geometry/shape/area/line.d.ts +0 -1
  941. package/lib/geometry/shape/area/line.js +0 -33
  942. package/lib/geometry/shape/area/line.js.map +0 -1
  943. package/lib/geometry/shape/area/smooth-line.d.ts +0 -1
  944. package/lib/geometry/shape/area/smooth-line.js +0 -32
  945. package/lib/geometry/shape/area/smooth-line.js.map +0 -1
  946. package/lib/geometry/shape/area/smooth.d.ts +0 -1
  947. package/lib/geometry/shape/area/smooth.js +0 -33
  948. package/lib/geometry/shape/area/smooth.js.map +0 -1
  949. package/lib/geometry/shape/area/util.d.ts +0 -22
  950. package/lib/geometry/shape/area/util.js +0 -93
  951. package/lib/geometry/shape/area/util.js.map +0 -1
  952. package/lib/geometry/shape/base.d.ts +0 -22
  953. package/lib/geometry/shape/base.js +0 -168
  954. package/lib/geometry/shape/base.js.map +0 -1
  955. package/lib/geometry/shape/constant.d.ts +0 -4
  956. package/lib/geometry/shape/constant.js +0 -8
  957. package/lib/geometry/shape/constant.js.map +0 -1
  958. package/lib/geometry/shape/edge/arc.d.ts +0 -1
  959. package/lib/geometry/shape/edge/arc.js +0 -86
  960. package/lib/geometry/shape/edge/arc.js.map +0 -1
  961. package/lib/geometry/shape/edge/index.d.ts +0 -2
  962. package/lib/geometry/shape/edge/index.js +0 -33
  963. package/lib/geometry/shape/edge/index.js.map +0 -1
  964. package/lib/geometry/shape/edge/smooth.d.ts +0 -1
  965. package/lib/geometry/shape/edge/smooth.js +0 -32
  966. package/lib/geometry/shape/edge/smooth.js.map +0 -1
  967. package/lib/geometry/shape/edge/util.d.ts +0 -17
  968. package/lib/geometry/shape/edge/util.js +0 -37
  969. package/lib/geometry/shape/edge/util.js.map +0 -1
  970. package/lib/geometry/shape/edge/vhv.d.ts +0 -1
  971. package/lib/geometry/shape/edge/vhv.js +0 -44
  972. package/lib/geometry/shape/edge/vhv.js.map +0 -1
  973. package/lib/geometry/shape/interval/funnel.d.ts +0 -1
  974. package/lib/geometry/shape/interval/funnel.js +0 -33
  975. package/lib/geometry/shape/interval/funnel.js.map +0 -1
  976. package/lib/geometry/shape/interval/hollow-rect.d.ts +0 -1
  977. package/lib/geometry/shape/interval/hollow-rect.js +0 -53
  978. package/lib/geometry/shape/interval/hollow-rect.js.map +0 -1
  979. package/lib/geometry/shape/interval/index.d.ts +0 -3
  980. package/lib/geometry/shape/interval/index.js +0 -65
  981. package/lib/geometry/shape/interval/index.js.map +0 -1
  982. package/lib/geometry/shape/interval/line.d.ts +0 -1
  983. package/lib/geometry/shape/interval/line.js +0 -56
  984. package/lib/geometry/shape/interval/line.js.map +0 -1
  985. package/lib/geometry/shape/interval/pyramid.d.ts +0 -1
  986. package/lib/geometry/shape/interval/pyramid.js +0 -33
  987. package/lib/geometry/shape/interval/pyramid.js.map +0 -1
  988. package/lib/geometry/shape/interval/tick.d.ts +0 -1
  989. package/lib/geometry/shape/interval/tick.js +0 -79
  990. package/lib/geometry/shape/interval/tick.js.map +0 -1
  991. package/lib/geometry/shape/interval/util.d.ts +0 -55
  992. package/lib/geometry/shape/interval/util.js +0 -321
  993. package/lib/geometry/shape/interval/util.js.map +0 -1
  994. package/lib/geometry/shape/line/index.d.ts +0 -8
  995. package/lib/geometry/shape/line/index.js +0 -109
  996. package/lib/geometry/shape/line/index.js.map +0 -1
  997. package/lib/geometry/shape/line/step.d.ts +0 -1
  998. package/lib/geometry/shape/line/step.js +0 -86
  999. package/lib/geometry/shape/line/step.js.map +0 -1
  1000. package/lib/geometry/shape/line/util.d.ts +0 -16
  1001. package/lib/geometry/shape/line/util.js +0 -87
  1002. package/lib/geometry/shape/line/util.js.map +0 -1
  1003. package/lib/geometry/shape/point/hollow.d.ts +0 -1
  1004. package/lib/geometry/shape/point/hollow.js +0 -26
  1005. package/lib/geometry/shape/point/hollow.js.map +0 -1
  1006. package/lib/geometry/shape/point/image.d.ts +0 -1
  1007. package/lib/geometry/shape/point/image.js +0 -50
  1008. package/lib/geometry/shape/point/image.js.map +0 -1
  1009. package/lib/geometry/shape/point/index.d.ts +0 -2
  1010. package/lib/geometry/shape/point/index.js +0 -34
  1011. package/lib/geometry/shape/point/index.js.map +0 -1
  1012. package/lib/geometry/shape/point/solid.d.ts +0 -1
  1013. package/lib/geometry/shape/point/solid.js +0 -25
  1014. package/lib/geometry/shape/point/solid.js.map +0 -1
  1015. package/lib/geometry/shape/point/util.d.ts +0 -15
  1016. package/lib/geometry/shape/point/util.js +0 -43
  1017. package/lib/geometry/shape/point/util.js.map +0 -1
  1018. package/lib/geometry/shape/polygon/index.d.ts +0 -2
  1019. package/lib/geometry/shape/polygon/index.js +0 -67
  1020. package/lib/geometry/shape/polygon/index.js.map +0 -1
  1021. package/lib/geometry/shape/polygon/square.d.ts +0 -1
  1022. package/lib/geometry/shape/polygon/square.js +0 -46
  1023. package/lib/geometry/shape/polygon/square.js.map +0 -1
  1024. package/lib/geometry/shape/schema/box.d.ts +0 -1
  1025. package/lib/geometry/shape/schema/box.js +0 -144
  1026. package/lib/geometry/shape/schema/box.js.map +0 -1
  1027. package/lib/geometry/shape/schema/candle.d.ts +0 -1
  1028. package/lib/geometry/shape/schema/candle.js +0 -82
  1029. package/lib/geometry/shape/schema/candle.js.map +0 -1
  1030. package/lib/geometry/shape/schema/index.d.ts +0 -2
  1031. package/lib/geometry/shape/schema/index.js +0 -8
  1032. package/lib/geometry/shape/schema/index.js.map +0 -1
  1033. package/lib/geometry/shape/util/get-path-points.d.ts +0 -38
  1034. package/lib/geometry/shape/util/get-path-points.js +0 -137
  1035. package/lib/geometry/shape/util/get-path-points.js.map +0 -1
  1036. package/lib/geometry/shape/util/get-style.d.ts +0 -18
  1037. package/lib/geometry/shape/util/get-style.js +0 -52
  1038. package/lib/geometry/shape/util/get-style.js.map +0 -1
  1039. package/lib/geometry/shape/util/path.d.ts +0 -32
  1040. package/lib/geometry/shape/util/path.js +0 -320
  1041. package/lib/geometry/shape/util/path.js.map +0 -1
  1042. package/lib/geometry/shape/util/split-points.d.ts +0 -13
  1043. package/lib/geometry/shape/util/split-points.js +0 -28
  1044. package/lib/geometry/shape/util/split-points.js.map +0 -1
  1045. package/lib/geometry/shape/violin/hollow.d.ts +0 -1
  1046. package/lib/geometry/shape/violin/hollow.js +0 -53
  1047. package/lib/geometry/shape/violin/hollow.js.map +0 -1
  1048. package/lib/geometry/shape/violin/index.d.ts +0 -2
  1049. package/lib/geometry/shape/violin/index.js +0 -62
  1050. package/lib/geometry/shape/violin/index.js.map +0 -1
  1051. package/lib/geometry/shape/violin/smooth.d.ts +0 -1
  1052. package/lib/geometry/shape/violin/smooth.js +0 -30
  1053. package/lib/geometry/shape/violin/smooth.js.map +0 -1
  1054. package/lib/geometry/util/diff.d.ts +0 -11
  1055. package/lib/geometry/util/diff.js +0 -34
  1056. package/lib/geometry/util/diff.js.map +0 -1
  1057. package/lib/geometry/util/get-shape-type.d.ts +0 -8
  1058. package/lib/geometry/util/get-shape-type.js +0 -20
  1059. package/lib/geometry/util/get-shape-type.js.map +0 -1
  1060. package/lib/geometry/util/group-data.d.ts +0 -3
  1061. package/lib/geometry/util/group-data.js +0 -35
  1062. package/lib/geometry/util/group-data.js.map +0 -1
  1063. package/lib/geometry/util/is-model-change.d.ts +0 -9
  1064. package/lib/geometry/util/is-model-change.js +0 -18
  1065. package/lib/geometry/util/is-model-change.js.map +0 -1
  1066. package/lib/geometry/util/parse-fields.d.ts +0 -2
  1067. package/lib/geometry/util/parse-fields.js +0 -13
  1068. package/lib/geometry/util/parse-fields.js.map +0 -1
  1069. package/lib/geometry/util/shape-size.d.ts +0 -2
  1070. package/lib/geometry/util/shape-size.js +0 -128
  1071. package/lib/geometry/util/shape-size.js.map +0 -1
  1072. package/lib/geometry/violin.d.ts +0 -25
  1073. package/lib/geometry/violin.js +0 -69
  1074. package/lib/geometry/violin.js.map +0 -1
  1075. package/lib/index.d.ts +0 -107
  1076. package/lib/index.js +0 -578
  1077. package/lib/index.js.map +0 -1
  1078. package/lib/interaction/action/active-region.d.ts +0 -33
  1079. package/lib/interaction/action/active-region.js +0 -202
  1080. package/lib/interaction/action/active-region.js.map +0 -1
  1081. package/lib/interaction/action/base.d.ts +0 -29
  1082. package/lib/interaction/action/base.js +0 -38
  1083. package/lib/interaction/action/base.js.map +0 -1
  1084. package/lib/interaction/action/callback.d.ts +0 -17
  1085. package/lib/interaction/action/callback.js +0 -29
  1086. package/lib/interaction/action/callback.js.map +0 -1
  1087. package/lib/interaction/action/component/list-active.d.ts +0 -14
  1088. package/lib/interaction/action/component/list-active.js +0 -26
  1089. package/lib/interaction/action/component/list-active.js.map +0 -1
  1090. package/lib/interaction/action/component/list-checked.d.ts +0 -30
  1091. package/lib/interaction/action/component/list-checked.js +0 -84
  1092. package/lib/interaction/action/component/list-checked.js.map +0 -1
  1093. package/lib/interaction/action/component/list-focus.d.ts +0 -5
  1094. package/lib/interaction/action/component/list-focus.js +0 -57
  1095. package/lib/interaction/action/component/list-focus.js.map +0 -1
  1096. package/lib/interaction/action/component/list-highlight-util.d.ts +0 -7
  1097. package/lib/interaction/action/component/list-highlight-util.js +0 -24
  1098. package/lib/interaction/action/component/list-highlight-util.js.map +0 -1
  1099. package/lib/interaction/action/component/list-highlight.d.ts +0 -20
  1100. package/lib/interaction/action/component/list-highlight.js +0 -99
  1101. package/lib/interaction/action/component/list-highlight.js.map +0 -1
  1102. package/lib/interaction/action/component/list-radio.d.ts +0 -6
  1103. package/lib/interaction/action/component/list-radio.js +0 -28
  1104. package/lib/interaction/action/component/list-radio.js.map +0 -1
  1105. package/lib/interaction/action/component/list-selected.d.ts +0 -10
  1106. package/lib/interaction/action/component/list-selected.js +0 -22
  1107. package/lib/interaction/action/component/list-selected.js.map +0 -1
  1108. package/lib/interaction/action/component/list-state.d.ts +0 -46
  1109. package/lib/interaction/action/component/list-state.js +0 -169
  1110. package/lib/interaction/action/component/list-state.js.map +0 -1
  1111. package/lib/interaction/action/component/list-unchecked.d.ts +0 -13
  1112. package/lib/interaction/action/component/list-unchecked.js +0 -25
  1113. package/lib/interaction/action/component/list-unchecked.js.map +0 -1
  1114. package/lib/interaction/action/component/tooltip/ellipsis-text.d.ts +0 -25
  1115. package/lib/interaction/action/component/tooltip/ellipsis-text.js +0 -95
  1116. package/lib/interaction/action/component/tooltip/ellipsis-text.js.map +0 -1
  1117. package/lib/interaction/action/component/tooltip/geometry.d.ts +0 -24
  1118. package/lib/interaction/action/component/tooltip/geometry.js +0 -73
  1119. package/lib/interaction/action/component/tooltip/geometry.js.map +0 -1
  1120. package/lib/interaction/action/component/tooltip/sibling.d.ts +0 -21
  1121. package/lib/interaction/action/component/tooltip/sibling.js +0 -41
  1122. package/lib/interaction/action/component/tooltip/sibling.js.map +0 -1
  1123. package/lib/interaction/action/cursor.d.ts +0 -69
  1124. package/lib/interaction/action/cursor.js +0 -115
  1125. package/lib/interaction/action/cursor.js.map +0 -1
  1126. package/lib/interaction/action/data/filter.d.ts +0 -13
  1127. package/lib/interaction/action/data/filter.js +0 -68
  1128. package/lib/interaction/action/data/filter.js.map +0 -1
  1129. package/lib/interaction/action/data/range-filter.d.ts +0 -56
  1130. package/lib/interaction/action/data/range-filter.js +0 -166
  1131. package/lib/interaction/action/data/range-filter.js.map +0 -1
  1132. package/lib/interaction/action/data/sibling-filter.d.ts +0 -22
  1133. package/lib/interaction/action/data/sibling-filter.js +0 -41
  1134. package/lib/interaction/action/data/sibling-filter.js.map +0 -1
  1135. package/lib/interaction/action/element/active.d.ts +0 -14
  1136. package/lib/interaction/action/element/active.js +0 -26
  1137. package/lib/interaction/action/element/active.js.map +0 -1
  1138. package/lib/interaction/action/element/filter.d.ts +0 -20
  1139. package/lib/interaction/action/element/filter.js +0 -91
  1140. package/lib/interaction/action/element/filter.js.map +0 -1
  1141. package/lib/interaction/action/element/highlight-by-color.d.ts +0 -10
  1142. package/lib/interaction/action/element/highlight-by-color.js +0 -32
  1143. package/lib/interaction/action/element/highlight-by-color.js.map +0 -1
  1144. package/lib/interaction/action/element/highlight-by-x.d.ts +0 -15
  1145. package/lib/interaction/action/element/highlight-by-x.js +0 -53
  1146. package/lib/interaction/action/element/highlight-by-x.js.map +0 -1
  1147. package/lib/interaction/action/element/highlight-util.d.ts +0 -18
  1148. package/lib/interaction/action/element/highlight-util.js +0 -50
  1149. package/lib/interaction/action/element/highlight-util.js.map +0 -1
  1150. package/lib/interaction/action/element/highlight.d.ts +0 -21
  1151. package/lib/interaction/action/element/highlight.js +0 -96
  1152. package/lib/interaction/action/element/highlight.js.map +0 -1
  1153. package/lib/interaction/action/element/link-by-color.d.ts +0 -51
  1154. package/lib/interaction/action/element/link-by-color.js +0 -158
  1155. package/lib/interaction/action/element/link-by-color.js.map +0 -1
  1156. package/lib/interaction/action/element/range-active.d.ts +0 -13
  1157. package/lib/interaction/action/element/range-active.js +0 -25
  1158. package/lib/interaction/action/element/range-active.js.map +0 -1
  1159. package/lib/interaction/action/element/range-highlight.d.ts +0 -27
  1160. package/lib/interaction/action/element/range-highlight.js +0 -57
  1161. package/lib/interaction/action/element/range-highlight.js.map +0 -1
  1162. package/lib/interaction/action/element/range-selected.d.ts +0 -13
  1163. package/lib/interaction/action/element/range-selected.js +0 -25
  1164. package/lib/interaction/action/element/range-selected.js.map +0 -1
  1165. package/lib/interaction/action/element/range-state.d.ts +0 -38
  1166. package/lib/interaction/action/element/range-state.js +0 -166
  1167. package/lib/interaction/action/element/range-state.js.map +0 -1
  1168. package/lib/interaction/action/element/selected.d.ts +0 -14
  1169. package/lib/interaction/action/element/selected.js +0 -26
  1170. package/lib/interaction/action/element/selected.js.map +0 -1
  1171. package/lib/interaction/action/element/sibling-filter.d.ts +0 -19
  1172. package/lib/interaction/action/element/sibling-filter.js +0 -95
  1173. package/lib/interaction/action/element/sibling-filter.js.map +0 -1
  1174. package/lib/interaction/action/element/single-active.d.ts +0 -13
  1175. package/lib/interaction/action/element/single-active.js +0 -25
  1176. package/lib/interaction/action/element/single-active.js.map +0 -1
  1177. package/lib/interaction/action/element/single-highlight.d.ts +0 -16
  1178. package/lib/interaction/action/element/single-highlight.js +0 -37
  1179. package/lib/interaction/action/element/single-highlight.js.map +0 -1
  1180. package/lib/interaction/action/element/single-selected.d.ts +0 -13
  1181. package/lib/interaction/action/element/single-selected.js +0 -25
  1182. package/lib/interaction/action/element/single-selected.js.map +0 -1
  1183. package/lib/interaction/action/element/single-state.d.ts +0 -18
  1184. package/lib/interaction/action/element/single-state.js +0 -55
  1185. package/lib/interaction/action/element/single-state.js.map +0 -1
  1186. package/lib/interaction/action/element/state-base.d.ts +0 -39
  1187. package/lib/interaction/action/element/state-base.js +0 -61
  1188. package/lib/interaction/action/element/state-base.js.map +0 -1
  1189. package/lib/interaction/action/element/state.d.ts +0 -28
  1190. package/lib/interaction/action/element/state.js +0 -101
  1191. package/lib/interaction/action/element/state.js.map +0 -1
  1192. package/lib/interaction/action/index.d.ts +0 -2
  1193. package/lib/interaction/action/index.js +0 -13
  1194. package/lib/interaction/action/index.js.map +0 -1
  1195. package/lib/interaction/action/mask/base.d.ts +0 -62
  1196. package/lib/interaction/action/mask/base.js +0 -171
  1197. package/lib/interaction/action/mask/base.js.map +0 -1
  1198. package/lib/interaction/action/mask/circle.d.ts +0 -14
  1199. package/lib/interaction/action/mask/circle.js +0 -39
  1200. package/lib/interaction/action/mask/circle.js.map +0 -1
  1201. package/lib/interaction/action/mask/dim-rect.d.ts +0 -11
  1202. package/lib/interaction/action/mask/dim-rect.js +0 -64
  1203. package/lib/interaction/action/mask/dim-rect.js.map +0 -1
  1204. package/lib/interaction/action/mask/path.d.ts +0 -16
  1205. package/lib/interaction/action/mask/path.js +0 -46
  1206. package/lib/interaction/action/mask/path.js.map +0 -1
  1207. package/lib/interaction/action/mask/rect.d.ts +0 -17
  1208. package/lib/interaction/action/mask/rect.js +0 -41
  1209. package/lib/interaction/action/mask/rect.js.map +0 -1
  1210. package/lib/interaction/action/mask/smooth-path.d.ts +0 -9
  1211. package/lib/interaction/action/mask/smooth-path.js +0 -23
  1212. package/lib/interaction/action/mask/smooth-path.js.map +0 -1
  1213. package/lib/interaction/action/register.d.ts +0 -36
  1214. package/lib/interaction/action/register.js +0 -69
  1215. package/lib/interaction/action/register.js.map +0 -1
  1216. package/lib/interaction/action/util.d.ts +0 -140
  1217. package/lib/interaction/action/util.js +0 -387
  1218. package/lib/interaction/action/util.js.map +0 -1
  1219. package/lib/interaction/action/view/button.d.ts +0 -25
  1220. package/lib/interaction/action/view/button.js +0 -118
  1221. package/lib/interaction/action/view/button.js.map +0 -1
  1222. package/lib/interaction/action/view/drag.d.ts +0 -24
  1223. package/lib/interaction/action/view/drag.js +0 -75
  1224. package/lib/interaction/action/view/drag.js.map +0 -1
  1225. package/lib/interaction/action/view/mousewheel-scroll.d.ts +0 -5
  1226. package/lib/interaction/action/view/mousewheel-scroll.js +0 -37
  1227. package/lib/interaction/action/view/mousewheel-scroll.js.map +0 -1
  1228. package/lib/interaction/action/view/move.d.ts +0 -28
  1229. package/lib/interaction/action/view/move.js +0 -82
  1230. package/lib/interaction/action/view/move.js.map +0 -1
  1231. package/lib/interaction/action/view/scale-transform.d.ts +0 -18
  1232. package/lib/interaction/action/view/scale-transform.js +0 -53
  1233. package/lib/interaction/action/view/scale-transform.js.map +0 -1
  1234. package/lib/interaction/action/view/scale-translate.d.ts +0 -30
  1235. package/lib/interaction/action/view/scale-translate.js +0 -114
  1236. package/lib/interaction/action/view/scale-translate.js.map +0 -1
  1237. package/lib/interaction/action/view/scale-zoom.d.ts +0 -20
  1238. package/lib/interaction/action/view/scale-zoom.js +0 -85
  1239. package/lib/interaction/action/view/scale-zoom.js.map +0 -1
  1240. package/lib/interaction/context.d.ts +0 -65
  1241. package/lib/interaction/context.js +0 -144
  1242. package/lib/interaction/context.js.map +0 -1
  1243. package/lib/interaction/grammar-interaction.d.ts +0 -158
  1244. package/lib/interaction/grammar-interaction.js +0 -289
  1245. package/lib/interaction/grammar-interaction.js.map +0 -1
  1246. package/lib/interaction/index.d.ts +0 -25
  1247. package/lib/interaction/index.js +0 -54
  1248. package/lib/interaction/index.js.map +0 -1
  1249. package/lib/interaction/interaction.d.ts +0 -29
  1250. package/lib/interaction/interaction.js +0 -34
  1251. package/lib/interaction/interaction.js.map +0 -1
  1252. package/lib/interface.d.ts +0 -2264
  1253. package/lib/interface.js +0 -3
  1254. package/lib/interface.js.map +0 -1
  1255. package/lib/theme/index.d.ts +0 -12
  1256. package/lib/theme/index.js +0 -28
  1257. package/lib/theme/index.js.map +0 -1
  1258. package/lib/theme/style-sheet/dark.d.ts +0 -825
  1259. package/lib/theme/style-sheet/dark.js +0 -500
  1260. package/lib/theme/style-sheet/dark.js.map +0 -1
  1261. package/lib/theme/style-sheet/light.d.ts +0 -817
  1262. package/lib/theme/style-sheet/light.js +0 -496
  1263. package/lib/theme/style-sheet/light.js.map +0 -1
  1264. package/lib/theme/util/create-by-style-sheet.d.ts +0 -6
  1265. package/lib/theme/util/create-by-style-sheet.js +0 -1426
  1266. package/lib/theme/util/create-by-style-sheet.js.map +0 -1
  1267. package/lib/theme/util/create-theme.d.ts +0 -6
  1268. package/lib/theme/util/create-theme.js +0 -16
  1269. package/lib/theme/util/create-theme.js.map +0 -1
  1270. package/lib/theme/util/index.d.ts +0 -1
  1271. package/lib/theme/util/index.js +0 -6
  1272. package/lib/theme/util/index.js.map +0 -1
  1273. package/lib/util/annotation.d.ts +0 -7
  1274. package/lib/util/annotation.js +0 -43
  1275. package/lib/util/annotation.js.map +0 -1
  1276. package/lib/util/attr.d.ts +0 -10
  1277. package/lib/util/attr.js +0 -29
  1278. package/lib/util/attr.js.map +0 -1
  1279. package/lib/util/axis.d.ts +0 -100
  1280. package/lib/util/axis.js +0 -251
  1281. package/lib/util/axis.js.map +0 -1
  1282. package/lib/util/bbox.d.ts +0 -105
  1283. package/lib/util/bbox.js +0 -287
  1284. package/lib/util/bbox.js.map +0 -1
  1285. package/lib/util/collision-detect.d.ts +0 -16
  1286. package/lib/util/collision-detect.js +0 -132
  1287. package/lib/util/collision-detect.js.map +0 -1
  1288. package/lib/util/color.d.ts +0 -1
  1289. package/lib/util/color.js +0 -23
  1290. package/lib/util/color.js.map +0 -1
  1291. package/lib/util/context.d.ts +0 -4
  1292. package/lib/util/context.js +0 -15
  1293. package/lib/util/context.js.map +0 -1
  1294. package/lib/util/coordinate.d.ts +0 -86
  1295. package/lib/util/coordinate.js +0 -157
  1296. package/lib/util/coordinate.js.map +0 -1
  1297. package/lib/util/direction.d.ts +0 -19
  1298. package/lib/util/direction.js +0 -125
  1299. package/lib/util/direction.js.map +0 -1
  1300. package/lib/util/dom.d.ts +0 -19
  1301. package/lib/util/dom.js +0 -68
  1302. package/lib/util/dom.js.map +0 -1
  1303. package/lib/util/event.d.ts +0 -8
  1304. package/lib/util/event.js +0 -18
  1305. package/lib/util/event.js.map +0 -1
  1306. package/lib/util/facet.d.ts +0 -16
  1307. package/lib/util/facet.js +0 -48
  1308. package/lib/util/facet.js.map +0 -1
  1309. package/lib/util/graphics.d.ts +0 -58
  1310. package/lib/util/graphics.js +0 -212
  1311. package/lib/util/graphics.js.map +0 -1
  1312. package/lib/util/grid.d.ts +0 -36
  1313. package/lib/util/grid.js +0 -125
  1314. package/lib/util/grid.js.map +0 -1
  1315. package/lib/util/helper.d.ts +0 -34
  1316. package/lib/util/helper.js +0 -79
  1317. package/lib/util/helper.js.map +0 -1
  1318. package/lib/util/legend.d.ts +0 -45
  1319. package/lib/util/legend.js +0 -152
  1320. package/lib/util/legend.js.map +0 -1
  1321. package/lib/util/marker.d.ts +0 -10
  1322. package/lib/util/marker.js +0 -61
  1323. package/lib/util/marker.js.map +0 -1
  1324. package/lib/util/padding.d.ts +0 -14
  1325. package/lib/util/padding.js +0 -45
  1326. package/lib/util/padding.js.map +0 -1
  1327. package/lib/util/scale.d.ts +0 -38
  1328. package/lib/util/scale.js +0 -122
  1329. package/lib/util/scale.js.map +0 -1
  1330. package/lib/util/stat.d.ts +0 -10
  1331. package/lib/util/stat.js +0 -41
  1332. package/lib/util/stat.js.map +0 -1
  1333. package/lib/util/text.d.ts +0 -23
  1334. package/lib/util/text.js +0 -88
  1335. package/lib/util/text.js.map +0 -1
  1336. package/lib/util/tooltip.d.ts +0 -26
  1337. package/lib/util/tooltip.js +0 -422
  1338. package/lib/util/tooltip.js.map +0 -1
  1339. package/lib/util/transform.d.ts +0 -33
  1340. package/lib/util/transform.js +0 -69
  1341. package/lib/util/transform.js.map +0 -1
  1342. package/lib/util/types.d.ts +0 -6
  1343. package/lib/util/types.js +0 -3
  1344. package/lib/util/types.js.map +0 -1
@@ -1,579 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var tslib_1 = require("tslib");
4
- var util_1 = require("@antv/util");
5
- var dependents_1 = require("../../dependents");
6
- var animate_1 = require("../../animate/");
7
- var constant_1 = require("../../constant");
8
- var coordinate_1 = require("../../util/coordinate");
9
- var helper_1 = require("../../util/helper");
10
- var annotation_1 = require("../../util/annotation");
11
- var base_1 = require("./base");
12
- /** 需要在图形绘制完成后才渲染的辅助组件类型列表 */
13
- var ANNOTATIONS_AFTER_RENDER = ['regionFilter', 'shape'];
14
- /**
15
- * Annotation controller, 主要作用:
16
- * 1. 创建 Annotation: line、text、arc ...
17
- * 2. 生命周期: init、layout、render、clear、destroy
18
- */
19
- var Annotation = /** @class */ (function (_super) {
20
- (0, tslib_1.__extends)(Annotation, _super);
21
- function Annotation(view) {
22
- var _this = _super.call(this, view) || this;
23
- /* 组件更新的 cache,组件配置 object : 组件 */
24
- _this.cache = new Map();
25
- _this.foregroundContainer = _this.view.getLayer(constant_1.LAYER.FORE).addGroup();
26
- _this.backgroundContainer = _this.view.getLayer(constant_1.LAYER.BG).addGroup();
27
- _this.option = [];
28
- return _this;
29
- }
30
- Object.defineProperty(Annotation.prototype, "name", {
31
- get: function () {
32
- return 'annotation';
33
- },
34
- enumerable: false,
35
- configurable: true
36
- });
37
- Annotation.prototype.init = function () { };
38
- /**
39
- * 因为 annotation 需要依赖坐标系信息,所以 render 阶段为空方法,实际的创建逻辑都在 layout 中
40
- */
41
- Annotation.prototype.layout = function () {
42
- this.update();
43
- };
44
- // 因为 Annotation 不参与布局,但是渲染的位置依赖于坐标系,所以可以将绘制阶段延迟到 layout() 进行
45
- Annotation.prototype.render = function () { };
46
- /**
47
- * 更新
48
- */
49
- Annotation.prototype.update = function () {
50
- var _this = this;
51
- // 1. 先处理需要在图形渲染之后的辅助组件 需要在 Geometry 完成之后,拿到图形信息
52
- this.onAfterRender(function () {
53
- var updated = new Map();
54
- // 先看是否有 regionFilter/shape 要更新
55
- (0, util_1.each)(_this.option, function (option) {
56
- if ((0, util_1.includes)(ANNOTATIONS_AFTER_RENDER, option.type)) {
57
- var co = _this.updateOrCreate(option);
58
- // 存储已经处理过的
59
- if (co) {
60
- updated.set(_this.getCacheKey(option), co);
61
- }
62
- }
63
- });
64
- // 处理完成之后,更新 cache
65
- // 处理完成之后,销毁删除的
66
- _this.cache = _this.syncCache(updated);
67
- });
68
- // 2. 处理非 regionFilter
69
- var updateCache = new Map();
70
- (0, util_1.each)(this.option, function (option) {
71
- if (!(0, util_1.includes)(ANNOTATIONS_AFTER_RENDER, option.type)) {
72
- var co = _this.updateOrCreate(option);
73
- // 存储已经处理过的
74
- if (co) {
75
- updateCache.set(_this.getCacheKey(option), co);
76
- }
77
- }
78
- });
79
- this.cache = this.syncCache(updateCache);
80
- };
81
- /**
82
- * 清空
83
- * @param includeOption 是否清空 option 配置项
84
- */
85
- Annotation.prototype.clear = function (includeOption) {
86
- if (includeOption === void 0) { includeOption = false; }
87
- _super.prototype.clear.call(this);
88
- this.clearComponents();
89
- this.foregroundContainer.clear();
90
- this.backgroundContainer.clear();
91
- // clear all option
92
- if (includeOption) {
93
- this.option = [];
94
- }
95
- };
96
- Annotation.prototype.destroy = function () {
97
- this.clear(true);
98
- this.foregroundContainer.remove(true);
99
- this.backgroundContainer.remove(true);
100
- };
101
- /**
102
- * 复写基类的方法
103
- */
104
- Annotation.prototype.getComponents = function () {
105
- var co = [];
106
- this.cache.forEach(function (value) {
107
- co.push(value);
108
- });
109
- return co;
110
- };
111
- /**
112
- * 清除当前的组件
113
- */
114
- Annotation.prototype.clearComponents = function () {
115
- this.getComponents().forEach(function (co) {
116
- co.component.destroy();
117
- });
118
- this.cache.clear();
119
- };
120
- /**
121
- * region filter 比较特殊的渲染时机
122
- * @param doWhat
123
- */
124
- Annotation.prototype.onAfterRender = function (doWhat) {
125
- if (this.view.getOptions().animate) {
126
- this.view.geometries.forEach(function (g) {
127
- // 如果 geometry 开启,则监听
128
- if (g.animateOption) {
129
- g.once(constant_1.GEOMETRY_LIFE_CIRCLE.AFTER_DRAW_ANIMATE, function () {
130
- doWhat();
131
- });
132
- }
133
- });
134
- }
135
- else {
136
- this.view.getRootView().once(constant_1.VIEW_LIFE_CIRCLE.AFTER_RENDER, function () {
137
- doWhat();
138
- });
139
- }
140
- };
141
- Annotation.prototype.createAnnotation = function (option) {
142
- var type = option.type;
143
- var Ctor = dependents_1.Annotation[(0, util_1.upperFirst)(type)];
144
- if (Ctor) {
145
- var theme = this.getAnnotationTheme(type);
146
- var cfg = this.getAnnotationCfg(type, option, theme);
147
- var annotation = new Ctor(cfg);
148
- return {
149
- component: annotation,
150
- layer: this.isTop(cfg) ? constant_1.LAYER.FORE : constant_1.LAYER.BG,
151
- direction: constant_1.DIRECTION.NONE,
152
- type: constant_1.COMPONENT_TYPE.ANNOTATION,
153
- extra: option,
154
- };
155
- }
156
- };
157
- // APIs for creating annotation component
158
- Annotation.prototype.annotation = function (option) {
159
- this.option.push(option);
160
- };
161
- /**
162
- * 创建 Arc
163
- * @param option
164
- * @returns AnnotationController
165
- */
166
- Annotation.prototype.arc = function (option) {
167
- this.annotation((0, tslib_1.__assign)({ type: 'arc' }, option));
168
- return this;
169
- };
170
- /**
171
- * 创建 image
172
- * @param option
173
- * @returns AnnotationController
174
- */
175
- Annotation.prototype.image = function (option) {
176
- this.annotation((0, tslib_1.__assign)({ type: 'image' }, option));
177
- return this;
178
- };
179
- /**
180
- * 创建 Line
181
- * @param option
182
- * @returns AnnotationController
183
- */
184
- Annotation.prototype.line = function (option) {
185
- this.annotation((0, tslib_1.__assign)({ type: 'line' }, option));
186
- return this;
187
- };
188
- /**
189
- * 创建 Region
190
- * @param option
191
- * @returns AnnotationController
192
- */
193
- Annotation.prototype.region = function (option) {
194
- this.annotation((0, tslib_1.__assign)({ type: 'region' }, option));
195
- return this;
196
- };
197
- /**
198
- * 创建 Text
199
- * @param option
200
- * @returns AnnotationController
201
- */
202
- Annotation.prototype.text = function (option) {
203
- this.annotation((0, tslib_1.__assign)({ type: 'text' }, option));
204
- return this;
205
- };
206
- /**
207
- * 创建 DataMarker
208
- * @param option
209
- * @returns AnnotationController
210
- */
211
- Annotation.prototype.dataMarker = function (option) {
212
- this.annotation((0, tslib_1.__assign)({ type: 'dataMarker' }, option));
213
- return this;
214
- };
215
- /**
216
- * 创建 DataRegion
217
- * @param option
218
- * @returns AnnotationController
219
- */
220
- Annotation.prototype.dataRegion = function (option) {
221
- this.annotation((0, tslib_1.__assign)({ type: 'dataRegion' }, option));
222
- };
223
- /**
224
- * 创建 RegionFilter
225
- * @param option
226
- * @returns AnnotationController
227
- */
228
- Annotation.prototype.regionFilter = function (option) {
229
- this.annotation((0, tslib_1.__assign)({ type: 'regionFilter' }, option));
230
- };
231
- /**
232
- * 创建 ShapeAnnotation
233
- * @param option
234
- */
235
- Annotation.prototype.shape = function (option) {
236
- this.annotation((0, tslib_1.__assign)({ type: 'shape' }, option));
237
- };
238
- /**
239
- * 创建 HtmlAnnotation
240
- * @param option
241
- */
242
- Annotation.prototype.html = function (option) {
243
- this.annotation((0, tslib_1.__assign)({ type: 'html' }, option));
244
- };
245
- // end API
246
- /**
247
- * parse the point position to [x, y]
248
- * @param p Position
249
- * @returns { x, y }
250
- */
251
- Annotation.prototype.parsePosition = function (p) {
252
- var xScale = this.view.getXScale();
253
- // 转成 object
254
- var yScales = this.view.getScalesByDim('y');
255
- var position = (0, util_1.isFunction)(p) ? p.call(null, xScale, yScales) : p;
256
- var x = 0;
257
- var y = 0;
258
- // 入参是 [24, 24] 这类时
259
- if ((0, util_1.isArray)(position)) {
260
- var xPos = position[0], yPos = position[1];
261
- // 如果数据格式是 ['50%', '50%'] 的格式
262
- // fix: 原始数据中可能会包含 'xxx5%xxx' 这样的数据,需要判断下 https://github.com/antvis/f2/issues/590
263
- // @ts-ignore
264
- if ((0, util_1.isString)(xPos) && xPos.indexOf('%') !== -1 && !isNaN(xPos.slice(0, -1))) {
265
- return this.parsePercentPosition(position);
266
- }
267
- x = (0, annotation_1.getNormalizedValue)(xPos, xScale);
268
- y = (0, annotation_1.getNormalizedValue)(yPos, Object.values(yScales)[0]);
269
- }
270
- else if (!(0, util_1.isNil)(position)) {
271
- // 入参是 object 结构,数据点
272
- for (var _i = 0, _a = (0, util_1.keys)(position); _i < _a.length; _i++) {
273
- var key = _a[_i];
274
- var value = position[key];
275
- if (key === xScale.field) {
276
- x = (0, annotation_1.getNormalizedValue)(value, xScale);
277
- }
278
- if (yScales[key]) {
279
- y = (0, annotation_1.getNormalizedValue)(value, yScales[key]);
280
- }
281
- }
282
- }
283
- if (isNaN(x) || isNaN(y)) {
284
- return null;
285
- }
286
- return this.view.getCoordinate().convert({ x: x, y: y });
287
- };
288
- /**
289
- * parse all the points between start and end
290
- * @param start
291
- * @param end
292
- * @return Point[]
293
- */
294
- Annotation.prototype.getRegionPoints = function (start, end) {
295
- var _this = this;
296
- var xScale = this.view.getXScale();
297
- var yScales = this.view.getScalesByDim('y');
298
- var yScale = Object.values(yScales)[0];
299
- var xField = xScale.field;
300
- var viewData = this.view.getData();
301
- var startXValue = (0, util_1.isArray)(start) ? start[0] : start[xField];
302
- var endXValue = (0, util_1.isArray)(end) ? end[0] : end[xField];
303
- var arr = [];
304
- var startIndex;
305
- (0, util_1.each)(viewData, function (item, idx) {
306
- if (item[xField] === startXValue) {
307
- startIndex = idx;
308
- }
309
- if (idx >= startIndex) {
310
- var point = _this.parsePosition([item[xField], item[yScale.field]]);
311
- if (point) {
312
- arr.push(point);
313
- }
314
- }
315
- if (item[xField] === endXValue) {
316
- return false;
317
- }
318
- });
319
- return arr;
320
- };
321
- /**
322
- * parse percent position
323
- * @param position
324
- */
325
- Annotation.prototype.parsePercentPosition = function (position) {
326
- var xPercent = parseFloat(position[0]) / 100;
327
- var yPercent = parseFloat(position[1]) / 100;
328
- var coordinate = this.view.getCoordinate();
329
- var start = coordinate.start, end = coordinate.end;
330
- var topLeft = {
331
- x: Math.min(start.x, end.x),
332
- y: Math.min(start.y, end.y),
333
- };
334
- var x = coordinate.getWidth() * xPercent + topLeft.x;
335
- var y = coordinate.getHeight() * yPercent + topLeft.y;
336
- return { x: x, y: y };
337
- };
338
- /**
339
- * get coordinate bbox
340
- */
341
- Annotation.prototype.getCoordinateBBox = function () {
342
- var coordinate = this.view.getCoordinate();
343
- var start = coordinate.start, end = coordinate.end;
344
- var width = coordinate.getWidth();
345
- var height = coordinate.getHeight();
346
- var topLeft = {
347
- x: Math.min(start.x, end.x),
348
- y: Math.min(start.y, end.y),
349
- };
350
- return {
351
- x: topLeft.x,
352
- y: topLeft.y,
353
- minX: topLeft.x,
354
- minY: topLeft.y,
355
- maxX: topLeft.x + width,
356
- maxY: topLeft.y + height,
357
- width: width,
358
- height: height,
359
- };
360
- };
361
- /**
362
- * get annotation component config by different type
363
- * @param type
364
- * @param option 用户的配置
365
- * @param theme
366
- */
367
- Annotation.prototype.getAnnotationCfg = function (type, option, theme) {
368
- var _this = this;
369
- var coordinate = this.view.getCoordinate();
370
- var canvas = this.view.getCanvas();
371
- var o = {};
372
- if ((0, util_1.isNil)(option)) {
373
- return null;
374
- }
375
- var start = option.start, end = option.end, position = option.position;
376
- ;
377
- var sp = this.parsePosition(start);
378
- var ep = this.parsePosition(end);
379
- var textPoint = this.parsePosition(position);
380
- if (['arc', 'image', 'line', 'region', 'regionFilter'].includes(type) && (!sp || !ep)) {
381
- return null;
382
- }
383
- else if (['text', 'dataMarker', 'html'].includes(type) && !textPoint) {
384
- return null;
385
- }
386
- if (type === 'arc') {
387
- var _a = option, start_1 = _a.start, end_1 = _a.end, rest = (0, tslib_1.__rest)(_a, ["start", "end"]);
388
- var startAngle = (0, coordinate_1.getAngleByPoint)(coordinate, sp);
389
- var endAngle = (0, coordinate_1.getAngleByPoint)(coordinate, ep);
390
- if (startAngle > endAngle) {
391
- endAngle = Math.PI * 2 + endAngle;
392
- }
393
- o = (0, tslib_1.__assign)((0, tslib_1.__assign)({}, rest), { center: coordinate.getCenter(), radius: (0, coordinate_1.getDistanceToCenter)(coordinate, sp), startAngle: startAngle, endAngle: endAngle });
394
- }
395
- else if (type === 'image') {
396
- var _b = option, start_2 = _b.start, end_2 = _b.end, rest = (0, tslib_1.__rest)(_b, ["start", "end"]);
397
- o = (0, tslib_1.__assign)((0, tslib_1.__assign)({}, rest), { start: sp, end: ep, src: option.src });
398
- }
399
- else if (type === 'line') {
400
- var _c = option, start_3 = _c.start, end_3 = _c.end, rest = (0, tslib_1.__rest)(_c, ["start", "end"]);
401
- o = (0, tslib_1.__assign)((0, tslib_1.__assign)({}, rest), { start: sp, end: ep, text: (0, util_1.get)(option, 'text', null) });
402
- }
403
- else if (type === 'region') {
404
- var _d = option, start_4 = _d.start, end_4 = _d.end, rest = (0, tslib_1.__rest)(_d, ["start", "end"]);
405
- o = (0, tslib_1.__assign)((0, tslib_1.__assign)({}, rest), { start: sp, end: ep });
406
- }
407
- else if (type === 'text') {
408
- var filteredData = this.view.getData();
409
- var _e = option, position_1 = _e.position, content = _e.content, rest = (0, tslib_1.__rest)(_e, ["position", "content"]);
410
- var textContent = content;
411
- if ((0, util_1.isFunction)(content)) {
412
- textContent = content(filteredData);
413
- }
414
- o = (0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)({}, textPoint), rest), { content: textContent });
415
- }
416
- else if (type === 'dataMarker') {
417
- var _f = option, position_2 = _f.position, point = _f.point, line = _f.line, text = _f.text, autoAdjust = _f.autoAdjust, direction = _f.direction, rest = (0, tslib_1.__rest)(_f, ["position", "point", "line", "text", "autoAdjust", "direction"]);
418
- o = (0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)({}, rest), textPoint), { coordinateBBox: this.getCoordinateBBox(), point: point, line: line, text: text, autoAdjust: autoAdjust, direction: direction });
419
- }
420
- else if (type === 'dataRegion') {
421
- var _g = option, start_5 = _g.start, end_5 = _g.end, region = _g.region, text = _g.text, lineLength = _g.lineLength, rest = (0, tslib_1.__rest)(_g, ["start", "end", "region", "text", "lineLength"]);
422
- o = (0, tslib_1.__assign)((0, tslib_1.__assign)({}, rest), { points: this.getRegionPoints(start_5, end_5), region: region, text: text, lineLength: lineLength });
423
- }
424
- else if (type === 'regionFilter') {
425
- var _h = option, start_6 = _h.start, end_6 = _h.end, apply_1 = _h.apply, color = _h.color, rest = (0, tslib_1.__rest)(_h, ["start", "end", "apply", "color"]);
426
- var geometries = this.view.geometries;
427
- var shapes_1 = [];
428
- var addShapes_1 = function (item) {
429
- if (!item) {
430
- return;
431
- }
432
- if (item.isGroup()) {
433
- item.getChildren().forEach(function (child) { return addShapes_1(child); });
434
- }
435
- else {
436
- shapes_1.push(item);
437
- }
438
- };
439
- (0, util_1.each)(geometries, function (geom) {
440
- if (apply_1) {
441
- if ((0, util_1.contains)(apply_1, geom.type)) {
442
- (0, util_1.each)(geom.elements, function (elem) {
443
- addShapes_1(elem.shape);
444
- });
445
- }
446
- }
447
- else {
448
- (0, util_1.each)(geom.elements, function (elem) {
449
- addShapes_1(elem.shape);
450
- });
451
- }
452
- });
453
- o = (0, tslib_1.__assign)((0, tslib_1.__assign)({}, rest), { color: color, shapes: shapes_1, start: sp, end: ep });
454
- }
455
- else if (type === 'shape') {
456
- var _j = option, render_1 = _j.render, restOptions = (0, tslib_1.__rest)(_j, ["render"]);
457
- var wrappedRender = function (container) {
458
- if ((0, util_1.isFunction)(option.render)) {
459
- return render_1(container, _this.view, { parsePosition: _this.parsePosition.bind(_this) });
460
- }
461
- };
462
- o = (0, tslib_1.__assign)((0, tslib_1.__assign)({}, restOptions), { render: wrappedRender });
463
- }
464
- else if (type === 'html') {
465
- var _k = option, html_1 = _k.html, position_3 = _k.position, restOptions = (0, tslib_1.__rest)(_k, ["html", "position"]);
466
- var wrappedHtml = function (container) {
467
- if ((0, util_1.isFunction)(html_1)) {
468
- return html_1(container, _this.view);
469
- }
470
- return html_1;
471
- };
472
- o = (0, tslib_1.__assign)((0, tslib_1.__assign)((0, tslib_1.__assign)({}, restOptions), textPoint), {
473
- // html 组件需要指定 parent
474
- parent: canvas.get('el').parentNode, html: wrappedHtml });
475
- }
476
- // 合并主题,用户配置优先级高于默认主题
477
- var cfg = (0, util_1.deepMix)({}, theme, (0, tslib_1.__assign)((0, tslib_1.__assign)({}, o), { top: option.top, style: option.style, offsetX: option.offsetX, offsetY: option.offsetY }));
478
- if (type !== 'html') {
479
- // html 类型不使用 G container
480
- cfg.container = this.getComponentContainer(cfg);
481
- }
482
- cfg.animate = this.view.getOptions().animate && cfg.animate && (0, util_1.get)(option, 'animate', cfg.animate); // 如果 view 关闭动画,则不执行
483
- cfg.animateOption = (0, util_1.deepMix)({}, animate_1.DEFAULT_ANIMATE_CFG, cfg.animateOption, option.animateOption);
484
- return cfg;
485
- };
486
- /**
487
- * is annotation render on top
488
- * @param option
489
- * @return whethe on top
490
- */
491
- Annotation.prototype.isTop = function (option) {
492
- return (0, util_1.get)(option, 'top', true);
493
- };
494
- /**
495
- * get the container by option.top
496
- * default is on top
497
- * @param option
498
- * @returns the container
499
- */
500
- Annotation.prototype.getComponentContainer = function (option) {
501
- return this.isTop(option) ? this.foregroundContainer : this.backgroundContainer;
502
- };
503
- Annotation.prototype.getAnnotationTheme = function (type) {
504
- return (0, util_1.get)(this.view.getTheme(), ['components', 'annotation', type], {});
505
- };
506
- /**
507
- * 创建或者更新 annotation
508
- * @param option
509
- */
510
- Annotation.prototype.updateOrCreate = function (option) {
511
- // 拿到缓存的内容
512
- var co = this.cache.get(this.getCacheKey(option));
513
- // 存在则更新,不存在在创建
514
- if (co) {
515
- var type = option.type;
516
- var theme = this.getAnnotationTheme(type);
517
- var cfg = this.getAnnotationCfg(type, option, theme);
518
- // 忽略掉一些配置
519
- if (cfg) {
520
- (0, helper_1.omit)(cfg, ['container']);
521
- }
522
- co.component.update((0, tslib_1.__assign)((0, tslib_1.__assign)({}, (cfg || {})), { visible: !!cfg }));
523
- // 对于 regionFilter/shape,因为生命周期的原因,需要额外 render
524
- if ((0, util_1.includes)(ANNOTATIONS_AFTER_RENDER, option.type)) {
525
- co.component.render();
526
- }
527
- }
528
- else {
529
- // 不存在,创建
530
- co = this.createAnnotation(option);
531
- if (co) {
532
- co.component.init();
533
- // Note:regionFilter/shape 特殊处理,regionFilter/shape 需要取到 Geometry 中的 Shape,需要在 view render 之后处理
534
- // 其他组件使用外层的统一 render 逻辑
535
- if ((0, util_1.includes)(ANNOTATIONS_AFTER_RENDER, option.type)) {
536
- co.component.render();
537
- }
538
- }
539
- }
540
- return co;
541
- };
542
- /**
543
- * 更新缓存,以及销毁组件
544
- * @param updated 更新或者创建的组件
545
- */
546
- Annotation.prototype.syncCache = function (updated) {
547
- var _this = this;
548
- var newCache = new Map(this.cache); // clone 一份
549
- // 将 update 更新到 cache
550
- updated.forEach(function (co, key) {
551
- newCache.set(key, co);
552
- });
553
- // 另外和 options 进行对比,删除
554
- newCache.forEach(function (co, key) {
555
- // option 中已经找不到,那么就是删除的
556
- if (!(0, util_1.find)(_this.option, function (option) {
557
- return key === _this.getCacheKey(option);
558
- })) {
559
- co.component.destroy();
560
- newCache.delete(key);
561
- }
562
- });
563
- return newCache;
564
- };
565
- /**
566
- * 获得缓存组件的 key
567
- * @param option
568
- */
569
- Annotation.prototype.getCacheKey = function (option) {
570
- // 如果存在 id,则使用 id string,否则直接使用 option 引用作为 key
571
- return option;
572
- // 后续扩展 id 用
573
- // const id = get(option, 'id');
574
- // return id ? id : option;
575
- };
576
- return Annotation;
577
- }(base_1.Controller));
578
- exports.default = Annotation;
579
- //# sourceMappingURL=annotation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"annotation.js","sourceRoot":"","sources":["../../../src/chart/controller/annotation.ts"],"names":[],"mappings":";;;AAAA,mCAaoB;AACpB,+CAAuF;AAqBvF,0CAAqD;AACrD,2CAA0G;AAI1G,oDAA6E;AAC7E,4CAAyC;AACzC,oDAA2D;AAE3D,+BAAoC;AAGpC,6BAA6B;AAC7B,IAAM,wBAAwB,GAAG,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;AAE3D;;;;GAIG;AACH;IAAwC,2CAAwB;IAO9D,oBAAY,IAAU;QAAtB,YACE,kBAAM,IAAI,CAAC,SAMZ;QAVD,kCAAkC;QAC1B,WAAK,GAAG,IAAI,GAAG,EAA+B,CAAC;QAKrD,KAAI,CAAC,mBAAmB,GAAG,KAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,gBAAK,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;Q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Q,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QACxB,CAAC,CAAC,CAAC;QAEH,sBAAsB;QACtB,QAAQ,CAAC,OAAO,CAAC,UAAC,EAAmB,EAAE,GAAe;YACpD,wBAAwB;YACxB,IACE,CAAC,IAAA,WAAI,EAAC,KAAI,CAAC,MAAM,EAAE,UAAC,MAAkB;gBACpC,OAAO,GAAG,KAAK,KAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;YAC1C,CAAC,CAAC,EACF;gBACA,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC;gBACvB,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;aACtB;QACH,CAAC,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED;;;OAGG;IACK,gCAAW,GAAnB,UAAoB,MAAkB;QACpC,+CAA+C;QAC/C,OAAO,MAAM,CAAC;QACd,YAAY;QACZ,gCAAgC;QAChC,2BAA2B;IAC7B,CAAC;IACH,iBAAC;AAAD,CAAC,AA3rBD,CAAwC,iBAAU,GA2rBjD","sourcesContent":["import {\n contains,\n deepMix,\n each,\n get,\n isArray,\n isFunction,\n isNil,\n isString,\n keys,\n upperFirst,\n find,\n includes,\n} from '@antv/util';\nimport { Annotation as AnnotationComponent, IElement, IGroup } from '../../dependents';\nimport {\n AnnotationBaseOption as BaseOption,\n AnnotationPosition as Position,\n ArcOption,\n ComponentOption,\n ShapeAnnotationOption,\n Data,\n DataMarkerOption,\n DataRegionOption,\n Datum,\n HtmlAnnotationOption,\n ImageOption,\n LineOption,\n Point,\n RegionFilterOption,\n RegionOption,\n RegionPositionBaseOption,\n TextOption,\n} from '../../interface';\n\nimport { DEFAULT_ANIMATE_CFG } from '../../animate/';\nimport { COMPONENT_TYPE, DIRECTION, GEOMETRY_LIFE_CIRCLE, LAYER, VIEW_LIFE_CIRCLE } from '../../constant';\n\nimport Geometry from '../../geometry/base';\nimport Element from '../../geometry/element';\nimport { getAngleByPoint, getDistanceToCenter } from '../../util/coordinate';\nimport { omit } from '../../util/helper';\nimport { getNormalizedValue } from '../../util/annotation';\nimport View from '../view';\nimport { Controller } from './base';\nimport { Scale } from '@antv/attr';\n\n/** 需要在图形绘制完成后才渲染的辅助组件类型列表 */\nconst ANNOTATIONS_AFTER_RENDER = ['regionFilter', 'shape'];\n\n/**\n * Annotation controller, 主要作用:\n * 1. 创建 Annotation: line、text、arc ...\n * 2. 生命周期: init、layout、render、clear、destroy\n */\nexport default class Annotation extends Controller<BaseOption[]> {\n private foregroundContainer: IGroup;\n private backgroundContainer: IGroup;\n\n /* 组件更新的 cache,组件配置 object : 组件 */\n private cache = new Map<BaseOption, ComponentOption>();\n\n constructor(view: View) {\n super(view);\n\n this.foregroundContainer = this.view.getLayer(LAYER.FORE).addGroup();\n this.backgroundContainer = this.view.getLayer(LAYER.BG).addGroup();\n\n this.option = [];\n }\n\n public get name(): string {\n return 'annotation';\n }\n\n public init() { }\n\n /**\n * 因为 annotation 需要依赖坐标系信息,所以 render 阶段为空方法,实际的创建逻辑都在 layout 中\n */\n public layout() {\n this.update();\n }\n\n // 因为 Annotation 不参与布局,但是渲染的位置依赖于坐标系,所以可以将绘制阶段延迟到 layout() 进行\n public render() { }\n\n /**\n * 更新\n */\n public update() {\n // 1. 先处理需要在图形渲染之后的辅助组件 需要在 Geometry 完成之后,拿到图形信息\n this.onAfterRender(() => {\n const updated = new Map<BaseOption, ComponentOption>();\n // 先看是否有 regionFilter/shape 要更新\n each(this.option, (option: BaseOption) => {\n if (includes(ANNOTATIONS_AFTER_RENDER, option.type)) {\n const co = this.updateOrCreate(option);\n // 存储已经处理过的\n if (co) {\n updated.set(this.getCacheKey(option), co);\n }\n }\n });\n\n // 处理完成之后,更新 cache\n // 处理完成之后,销毁删除的\n this.cache = this.syncCache(updated);\n });\n\n // 2. 处理非 regionFilter\n const updateCache = new Map<BaseOption, ComponentOption>();\n each(this.option, (option: BaseOption) => {\n if (!includes(ANNOTATIONS_AFTER_RENDER, option.type)) {\n const co = this.updateOrCreate(option);\n // 存储已经处理过的\n if (co) {\n updateCache.set(this.getCacheKey(option), co);\n }\n }\n });\n this.cache = this.syncCache(updateCache);\n }\n\n /**\n * 清空\n * @param includeOption 是否清空 option 配置项\n */\n public clear(includeOption = false) {\n super.clear();\n\n this.clearComponents();\n this.foregroundContainer.clear();\n this.backgroundContainer.clear();\n\n // clear all option\n if (includeOption) {\n this.option = [];\n }\n }\n\n public destroy() {\n this.clear(true);\n\n this.foregroundContainer.remove(true);\n this.backgroundContainer.remove(true);\n }\n\n /**\n * 复写基类的方法\n */\n public getComponents(): ComponentOption[] {\n const co = [];\n\n this.cache.forEach((value: ComponentOption) => {\n co.push(value);\n });\n\n return co;\n }\n\n /**\n * 清除当前的组件\n */\n private clearComponents() {\n this.getComponents().forEach((co) => {\n co.component.destroy();\n });\n\n this.cache.clear();\n }\n\n /**\n * region filter 比较特殊的渲染时机\n * @param doWhat\n */\n private onAfterRender(doWhat: () => void) {\n if (this.view.getOptions().animate) {\n this.view.geometries.forEach((g: Geometry) => {\n // 如果 geometry 开启,则监听\n if (g.animateOption) {\n g.once(GEOMETRY_LIFE_CIRCLE.AFTER_DRAW_ANIMATE, () => {\n doWhat();\n });\n }\n });\n } else {\n this.view.getRootView().once(VIEW_LIFE_CIRCLE.AFTER_RENDER, () => {\n doWhat();\n });\n }\n }\n\n private createAnnotation(option: BaseOption) {\n const { type } = option;\n\n const Ctor = AnnotationComponent[upperFirst(type)];\n if (Ctor) {\n const theme = this.getAnnotationTheme(type);\n const cfg = this.getAnnotationCfg(type, option, theme);\n const annotation = new Ctor(cfg);\n\n return {\n component: annotation,\n layer: this.isTop(cfg) ? LAYER.FORE : LAYER.BG,\n direction: DIRECTION.NONE,\n type: COMPONENT_TYPE.ANNOTATION,\n extra: option,\n };\n }\n }\n\n // APIs for creating annotation component\n public annotation(option: any) {\n this.option.push(option);\n }\n\n /**\n * 创建 Arc\n * @param option\n * @returns AnnotationController\n */\n public arc(option: ArcOption) {\n this.annotation({\n type: 'arc',\n ...option,\n });\n\n return this;\n }\n\n /**\n * 创建 image\n * @param option\n * @returns AnnotationController\n */\n public image(option: ImageOption) {\n this.annotation({\n type: 'image',\n ...option,\n });\n\n return this;\n }\n\n /**\n * 创建 Line\n * @param option\n * @returns AnnotationController\n */\n public line(option: LineOption) {\n this.annotation({\n type: 'line',\n ...option,\n });\n\n return this;\n }\n\n /**\n * 创建 Region\n * @param option\n * @returns AnnotationController\n */\n public region(option: RegionOption) {\n this.annotation({\n type: 'region',\n ...option,\n });\n\n return this;\n }\n\n /**\n * 创建 Text\n * @param option\n * @returns AnnotationController\n */\n public text(option: TextOption) {\n this.annotation({\n type: 'text',\n ...option,\n });\n\n return this;\n }\n\n /**\n * 创建 DataMarker\n * @param option\n * @returns AnnotationController\n */\n public dataMarker(option: DataMarkerOption) {\n this.annotation({\n type: 'dataMarker',\n ...option,\n });\n\n return this;\n }\n\n /**\n * 创建 DataRegion\n * @param option\n * @returns AnnotationController\n */\n public dataRegion(option: DataRegionOption) {\n this.annotation({\n type: 'dataRegion',\n ...option,\n });\n }\n\n /**\n * 创建 RegionFilter\n * @param option\n * @returns AnnotationController\n */\n public regionFilter(option: RegionFilterOption) {\n this.annotation({\n type: 'regionFilter',\n ...option,\n });\n }\n\n /**\n * 创建 ShapeAnnotation\n * @param option\n */\n public shape(option: ShapeAnnotationOption) {\n this.annotation({\n type: 'shape',\n ...option,\n });\n }\n\n /**\n * 创建 HtmlAnnotation\n * @param option\n */\n public html(option: HtmlAnnotationOption) {\n this.annotation({\n type: 'html',\n ...option,\n });\n }\n // end API\n\n /**\n * parse the point position to [x, y]\n * @param p Position\n * @returns { x, y }\n */\n private parsePosition(\n p:\n | [string | number, string | number]\n | Datum\n | ((xScale: Scale, yScale: Scale) => [string | number, string | number] | number | Datum)\n ): Point {\n const xScale = this.view.getXScale();\n // 转成 object\n const yScales = this.view.getScalesByDim('y');\n\n const position: Position = isFunction(p) ? p.call(null, xScale, yScales) : p;\n\n let x = 0;\n let y = 0;\n\n // 入参是 [24, 24] 这类时\n if (isArray(position)) {\n const [xPos, yPos] = position;\n // 如果数据格式是 ['50%', '50%'] 的格式\n // fix: 原始数据中可能会包含 'xxx5%xxx' 这样的数据,需要判断下 https://github.com/antvis/f2/issues/590\n // @ts-ignore\n if (isString(xPos) && xPos.indexOf('%') !== -1 && !isNaN(xPos.slice(0, -1))) {\n return this.parsePercentPosition(position as [string, string]);\n }\n\n x = getNormalizedValue(xPos, xScale);\n y = getNormalizedValue(yPos, Object.values(yScales)[0]);\n } else if (!isNil(position)) {\n // 入参是 object 结构,数据点\n for (const key of keys(position)) {\n const value = position[key];\n if (key === xScale.field) {\n x = getNormalizedValue(value, xScale);\n }\n if (yScales[key]) {\n y = getNormalizedValue(value, yScales[key]);\n }\n }\n }\n\n if (isNaN(x) || isNaN(y)) {\n return null;\n }\n\n return this.view.getCoordinate().convert({ x, y });\n }\n\n /**\n * parse all the points between start and end\n * @param start\n * @param end\n * @return Point[]\n */\n private getRegionPoints(start: Position | Data, end: Position | Data): Point[] {\n const xScale = this.view.getXScale();\n const yScales = this.view.getScalesByDim('y');\n const yScale = Object.values(yScales)[0];\n const xField = xScale.field;\n const viewData = this.view.getData();\n const startXValue = isArray(start) ? start[0] : start[xField];\n const endXValue = isArray(end) ? end[0] : end[xField];\n const arr = [];\n\n let startIndex;\n each(viewData, (item, idx) => {\n if (item[xField] === startXValue) {\n startIndex = idx;\n }\n if (idx >= startIndex) {\n const point = this.parsePosition([item[xField], item[yScale.field]]);\n if (point) {\n arr.push(point);\n }\n }\n if (item[xField] === endXValue) {\n return false;\n }\n });\n\n return arr;\n }\n\n /**\n * parse percent position\n * @param position\n */\n private parsePercentPosition(position: [string, string]): Point {\n const xPercent = parseFloat(position[0]) / 100;\n const yPercent = parseFloat(position[1]) / 100;\n const coordinate = this.view.getCoordinate();\n const { start, end } = coordinate;\n\n const topLeft = {\n x: Math.min(start.x, end.x),\n y: Math.min(start.y, end.y),\n };\n const x = coordinate.getWidth() * xPercent + topLeft.x;\n const y = coordinate.getHeight() * yPercent + topLeft.y;\n return { x, y };\n }\n\n /**\n * get coordinate bbox\n */\n private getCoordinateBBox() {\n const coordinate = this.view.getCoordinate();\n const { start, end } = coordinate;\n\n const width = coordinate.getWidth();\n const height = coordinate.getHeight();\n const topLeft = {\n x: Math.min(start.x, end.x),\n y: Math.min(start.y, end.y),\n };\n\n return {\n x: topLeft.x,\n y: topLeft.y,\n minX: topLeft.x,\n minY: topLeft.y,\n maxX: topLeft.x + width,\n maxY: topLeft.y + height,\n width,\n height,\n };\n }\n\n /**\n * get annotation component config by different type\n * @param type\n * @param option 用户的配置\n * @param theme\n */\n private getAnnotationCfg(type: string, option: any, theme: object): object | null {\n const coordinate = this.view.getCoordinate();\n const canvas = this.view.getCanvas();\n let o = {};\n\n if (isNil(option)) {\n return null;\n }\n const { start, end, position } = option;;\n const sp = this.parsePosition(start);\n const ep = this.parsePosition(end);\n const textPoint = this.parsePosition(position);\n if (['arc', 'image', 'line', 'region', 'regionFilter'].includes(type) && (!sp || !ep)) {\n return null;\n } else if (['text', 'dataMarker', 'html'].includes(type) && !textPoint) {\n return null;\n }\n\n if (type === 'arc') {\n const { start, end, ...rest } = option as ArcOption;\n const startAngle = getAngleByPoint(coordinate, sp);\n let endAngle = getAngleByPoint(coordinate, ep);\n if (startAngle > endAngle) {\n endAngle = Math.PI * 2 + endAngle;\n }\n\n o = {\n ...rest,\n center: coordinate.getCenter(),\n radius: getDistanceToCenter(coordinate, sp),\n startAngle,\n endAngle,\n };\n } else if (type === 'image') {\n const { start, end, ...rest } = option as ImageOption;\n o = {\n ...rest,\n start: sp,\n end: ep,\n src: option.src,\n };\n } else if (type === 'line') {\n const { start, end, ...rest } = option as LineOption;\n o = {\n ...rest,\n start: sp,\n end: ep,\n text: get(option, 'text', null),\n };\n } else if (type === 'region') {\n const { start, end, ...rest } = option as RegionPositionBaseOption;\n o = {\n ...rest,\n start: sp,\n end: ep,\n };\n } else if (type === 'text') {\n const filteredData = this.view.getData();\n const { position, content, ...rest } = option as TextOption;\n let textContent = content;\n if (isFunction(content)) {\n textContent = content(filteredData);\n }\n o = {\n ...textPoint,\n ...rest,\n content: textContent,\n };\n } else if (type === 'dataMarker') {\n const { position, point, line, text, autoAdjust, direction, ...rest } = option as DataMarkerOption;\n o = {\n ...rest,\n ...textPoint,\n coordinateBBox: this.getCoordinateBBox(),\n point,\n line,\n text,\n autoAdjust,\n direction,\n };\n } else if (type === 'dataRegion') {\n const { start, end, region, text, lineLength, ...rest } = option as DataRegionOption;\n o = {\n ...rest,\n points: this.getRegionPoints(start, end),\n region,\n text,\n lineLength,\n };\n } else if (type === 'regionFilter') {\n const { start, end, apply, color, ...rest } = option as RegionFilterOption;\n const geometries: Geometry[] = this.view.geometries;\n const shapes = [];\n const addShapes = (item?: IElement) => {\n if (!item) {\n return;\n }\n if (item.isGroup()) {\n (item as IGroup).getChildren().forEach((child) => addShapes(child));\n } else {\n shapes.push(item);\n }\n };\n each(geometries, (geom: Geometry) => {\n if (apply) {\n if (contains(apply, geom.type)) {\n each(geom.elements, (elem: Element) => {\n addShapes(elem.shape);\n });\n }\n } else {\n each(geom.elements, (elem: Element) => {\n addShapes(elem.shape);\n });\n }\n });\n o = {\n ...rest,\n color,\n shapes,\n start: sp,\n end: ep,\n };\n } else if (type === 'shape') {\n const { render, ...restOptions } = option as ShapeAnnotationOption;\n const wrappedRender = (container: IGroup) => {\n if (isFunction(option.render)) {\n return render(container, this.view, { parsePosition: this.parsePosition.bind(this) });\n }\n };\n o = {\n ...restOptions,\n render: wrappedRender,\n };\n } else if (type === 'html') {\n const { html, position, ...restOptions } = option as HtmlAnnotationOption;\n const wrappedHtml = (container: HTMLElement) => {\n if (isFunction(html)) {\n return html(container, this.view);\n }\n return html;\n };\n o = {\n ...restOptions,\n ...textPoint,\n // html 组件需要指定 parent\n parent: canvas.get('el').parentNode,\n html: wrappedHtml,\n };\n }\n // 合并主题,用户配置优先级高于默认主题\n const cfg = deepMix({}, theme, {\n ...o,\n top: option.top,\n style: option.style,\n offsetX: option.offsetX,\n offsetY: option.offsetY,\n });\n if (type !== 'html') {\n // html 类型不使用 G container\n cfg.container = this.getComponentContainer(cfg);\n }\n cfg.animate = this.view.getOptions().animate && cfg.animate && get(option, 'animate', cfg.animate); // 如果 view 关闭动画,则不执行\n cfg.animateOption = deepMix({}, DEFAULT_ANIMATE_CFG, cfg.animateOption, option.animateOption);\n\n return cfg;\n }\n\n /**\n * is annotation render on top\n * @param option\n * @return whethe on top\n */\n private isTop(option: any): boolean {\n return get(option, 'top', true);\n }\n\n /**\n * get the container by option.top\n * default is on top\n * @param option\n * @returns the container\n */\n private getComponentContainer(option: any) {\n return this.isTop(option) ? this.foregroundContainer : this.backgroundContainer;\n }\n\n private getAnnotationTheme(type: string) {\n return get(this.view.getTheme(), ['components', 'annotation', type], {});\n }\n\n /**\n * 创建或者更新 annotation\n * @param option\n */\n private updateOrCreate(option: BaseOption) {\n // 拿到缓存的内容\n let co = this.cache.get(this.getCacheKey(option));\n\n // 存在则更新,不存在在创建\n if (co) {\n const { type } = option;\n const theme = this.getAnnotationTheme(type);\n const cfg = this.getAnnotationCfg(type, option, theme);\n\n // 忽略掉一些配置\n if (cfg) {\n omit(cfg, ['container']);\n }\n co.component.update({ ...(cfg || {}), visible: !!cfg });\n // 对于 regionFilter/shape,因为生命周期的原因,需要额外 render\n if (includes(ANNOTATIONS_AFTER_RENDER, option.type)) {\n co.component.render();\n }\n } else {\n // 不存在,创建\n co = this.createAnnotation(option);\n if (co) {\n co.component.init();\n // Note:regionFilter/shape 特殊处理,regionFilter/shape 需要取到 Geometry 中的 Shape,需要在 view render 之后处理\n // 其他组件使用外层的统一 render 逻辑\n if (includes(ANNOTATIONS_AFTER_RENDER, option.type)) {\n co.component.render();\n }\n }\n }\n return co;\n }\n\n /**\n * 更新缓存,以及销毁组件\n * @param updated 更新或者创建的组件\n */\n private syncCache(updated: Map<BaseOption, ComponentOption>) {\n const newCache = new Map(this.cache); // clone 一份\n\n // 将 update 更新到 cache\n updated.forEach((co: ComponentOption, key: BaseOption) => {\n newCache.set(key, co);\n });\n\n // 另外和 options 进行对比,删除\n newCache.forEach((co: ComponentOption, key: BaseOption) => {\n // option 中已经找不到,那么就是删除的\n if (\n !find(this.option, (option: BaseOption) => {\n return key === this.getCacheKey(option);\n })\n ) {\n co.component.destroy();\n newCache.delete(key);\n }\n });\n\n return newCache;\n }\n\n /**\n * 获得缓存组件的 key\n * @param option\n */\n private getCacheKey(option: BaseOption) {\n // 如果存在 id,则使用 id string,否则直接使用 option 引用作为 key\n return option;\n // 后续扩展 id 用\n // const id = get(option, 'id');\n // return id ? id : option;\n }\n}\n"]}