@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 +0,0 @@
1
- {"version":3,"file":"bbox.js","sourceRoot":"","sources":["../../src/util/bbox.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AAClC,wCAAwC;AAIxC;;GAEG;AACH;IAkBE,cAAY,CAAa,EAAE,CAAa,EAAE,KAAiB,EAAE,MAAkB;QAAnE,kBAAA,EAAA,KAAa;QAAE,kBAAA,EAAA,KAAa;QAAE,sBAAA,EAAA,SAAiB;QAAE,uBAAA,EAAA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,CAAC,IAAI,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC;IACtF,CAAC;IACH,WAAC;AAAD,CAAC,AAzOD,IAyOC;AAzOY,oBAAI;AA2OjB;;;;GAIG;AACI,IAAM,aAAa,GAAG,UAAC,IAAU,EAAE,MAAc;IAC9C,IAAA,KAAK,GAAU,MAAM,MAAhB,EAAE,GAAG,GAAK,MAAM,IAAX,CAAY;IAE9B,OAAO,IAAI,IAAI,CACb,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC,EAC7B,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC,EAC9B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,EACtC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CACxC,CAAC;AACJ,CAAC,CAAC;AATW,QAAA,aAAa,iBASxB;AAEF;;;GAGG;AACH,SAAgB,QAAQ,CAAC,IAAmB;IAC1C,OAAO;QACL,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;QACtB,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;QACtB,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;QACtB,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;KACvB,CAAC;AACJ,CAAC;AAPD,4BAOC","sourcesContent":["import { each } from '@antv/util';\nimport { DIRECTION } from '../constant';\nimport { Padding, Point, Region } from '../interface';\nimport { BBox as BBoxObject } from '../dependents';\n\n/**\n * 用于包围盒计算。\n */\nexport class BBox {\n /** x 轴坐标系 */\n public x: number;\n /** y 轴坐标系 */\n public y: number;\n /** 包围盒高度 */\n public height: number;\n /** 包围盒宽度 */\n public width: number;\n\n public static fromRange(minX: number, minY: number, maxX: number, maxY: number) {\n return new BBox(minX, minY, maxX - minX, maxY - minY);\n }\n\n public static fromObject(bbox: BBoxObject) {\n return new BBox(bbox.minX, bbox.minY, bbox.width, bbox.height);\n }\n\n constructor(x: number = 0, y: number = 0, width: number = 0, height: number = 0) {\n this.x = x;\n this.y = y;\n this.height = height;\n this.width = width;\n }\n\n public get minX(): number {\n return this.x;\n }\n\n public get maxX(): number {\n return this.x + this.width;\n }\n\n public get minY(): number {\n return this.y;\n }\n\n public get maxY(): number {\n return this.y + this.height;\n }\n\n public get tl(): Point {\n return { x: this.x, y: this.y };\n }\n\n public get tr(): Point {\n return { x: this.maxX, y: this.y };\n }\n\n public get bl(): Point {\n return { x: this.x, y: this.maxY };\n }\n\n public get br(): Point {\n return { x: this.maxX, y: this.maxY };\n }\n\n public get top(): Point {\n return {\n x: this.x + this.width / 2,\n y: this.minY,\n };\n }\n\n public get right(): Point {\n return {\n x: this.maxX,\n y: this.y + this.height / 2,\n };\n }\n public get bottom(): Point {\n return {\n x: this.x + this.width / 2,\n y: this.maxY,\n };\n }\n public get left(): Point {\n return {\n x: this.minX,\n y: this.y + this.height / 2,\n };\n }\n // end 计算属性\n\n /**\n * 包围盒是否相等\n * @param {BBox} bbox 包围盒\n * @returns 包围盒是否相等\n */\n public isEqual(bbox: BBox): boolean {\n return this.x === bbox.x && this.y === bbox.y && this.width === bbox.width && this.height === bbox.height;\n }\n\n /**\n * 是否包含了另一个包围盒\n * @param child\n */\n public contains(child: BBox): boolean {\n return child.minX >= this.minX && child.maxX <= this.maxX && child.minY >= this.minY && child.maxY <= this.maxY;\n }\n\n /**\n * 克隆包围盒\n * @returns 包围盒\n */\n public clone(): BBox {\n return new BBox(this.x, this.y, this.width, this.height);\n }\n\n /**\n * 取并集\n * @param subBBox\n */\n public add(...subBBox: BBox[]): BBox {\n const bbox = this.clone();\n each(subBBox, (b: BBox) => {\n bbox.x = Math.min(b.x, bbox.x);\n bbox.y = Math.min(b.y, bbox.y);\n bbox.width = Math.max(b.maxX, bbox.maxX) - bbox.x;\n bbox.height = Math.max(b.maxY, bbox.maxY) - bbox.y;\n });\n\n return bbox;\n }\n\n /**\n * 取交集\n * @param subBBox\n */\n public merge(...subBBox: BBox[]): BBox {\n const bbox = this.clone();\n each(subBBox, (b: BBox) => {\n bbox.x = Math.max(b.x, bbox.x);\n bbox.y = Math.max(b.y, bbox.y);\n bbox.width = Math.min(b.maxX, bbox.maxX) - bbox.x;\n bbox.height = Math.min(b.maxY, bbox.maxY) - bbox.y;\n });\n\n return bbox;\n }\n\n /**\n * bbox 剪裁\n * @param subBBox\n * @param direction\n */\n public cut(subBBox: BBox, direction: DIRECTION): BBox {\n const width = subBBox.width;\n const height = subBBox.height;\n\n switch (direction) {\n case DIRECTION.TOP:\n case DIRECTION.TOP_LEFT:\n case DIRECTION.TOP_RIGHT:\n return BBox.fromRange(this.minX, this.minY + height, this.maxX, this.maxY);\n\n case DIRECTION.RIGHT:\n case DIRECTION.RIGHT_TOP:\n case DIRECTION.RIGHT_BOTTOM:\n return BBox.fromRange(this.minX, this.minY, this.maxX - width, this.maxY);\n\n case DIRECTION.BOTTOM:\n case DIRECTION.BOTTOM_LEFT:\n case DIRECTION.BOTTOM_RIGHT:\n return BBox.fromRange(this.minX, this.minY, this.maxX, this.maxY - height);\n\n case DIRECTION.LEFT:\n case DIRECTION.LEFT_TOP:\n case DIRECTION.LEFT_BOTTOM:\n return BBox.fromRange(this.minX + width, this.minY, this.maxX, this.maxY);\n default:\n // 其他情况不裁剪,原样返回\n return this;\n }\n }\n\n /**\n * 收缩形成新的\n * @param gap\n */\n public shrink(gap: Padding): BBox {\n const [top, right, bottom, left] = gap;\n\n return new BBox(this.x + left, this.y + top, this.width - left - right, this.height - top - bottom);\n }\n\n /**\n * 扩张形成新的\n * @param gap\n */\n public expand(gap: Padding): BBox {\n const [top, right, bottom, left] = gap;\n\n return new BBox(this.x - left, this.y - top, this.width + left + right, this.height + top + bottom);\n }\n\n /**\n * get the gap of two bbox, if not exceed, then 0\n * @param bbox\n * @returns [top, right, bottom, left]\n */\n public exceed(bbox: BBox): Padding {\n return [\n Math.max(-this.minY + bbox.minY, 0),\n Math.max(this.maxX - bbox.maxX, 0),\n Math.max(this.maxY - bbox.maxY, 0),\n Math.max(-this.minX + bbox.minX, 0),\n ];\n }\n\n /**\n * 是否碰撞\n * @param bbox\n */\n public collide(bbox: BBox): boolean {\n return this.minX < bbox.maxX && this.maxX > bbox.minX && this.minY < bbox.maxY && this.maxY > bbox.minY;\n }\n\n /**\n * 获取包围盒大小\n * @returns 包围盒大小\n */\n public size(): number {\n return this.width * this.height;\n }\n\n /**\n * 点是否在 bbox 中\n * @param p\n */\n public isPointIn(p: Point) {\n return p.x >= this.minX && p.x <= this.maxX && p.y >= this.minY && p.y <= this.maxY;\n }\n}\n\n/**\n * 从一个 bbox 的 region 获取 bbox\n * @param bbox\n * @param region\n */\nexport const getRegionBBox = (bbox: BBox, region: Region): BBox => {\n const { start, end } = region;\n\n return new BBox(\n bbox.x + bbox.width * start.x,\n bbox.y + bbox.height * start.y,\n bbox.width * Math.abs(end.x - start.x),\n bbox.height * Math.abs(end.y - start.y)\n );\n};\n\n/**\n * 将 bbox 转换成 points\n * @param bbox\n */\nexport function toPoints(bbox: Partial<BBox>): any[] {\n return [\n [bbox.minX, bbox.minY],\n [bbox.maxX, bbox.minY],\n [bbox.maxX, bbox.maxY],\n [bbox.minX, bbox.maxY],\n ];\n}\n"]}
@@ -1,16 +0,0 @@
1
- import { BBox } from '../dependents';
2
- declare type Box = Pick<BBox, 'x' | 'y' | 'width' | 'height'> & {
3
- rotation?: number;
4
- };
5
- /**
6
- * 快速判断两个无旋转矩形是否遮挡
7
- */
8
- export declare function isIntersectRect(box1: Box, box2: Box, margin?: number): boolean;
9
- /**
10
- * detect whether two shape is intersected, useful when shape is been rotated
11
- * 判断两个矩形是否重叠(相交和包含, 是否旋转)
12
- *
13
- * - 原理: 分离轴定律
14
- */
15
- export declare function isIntersect(box1: Box, box2: Box): boolean;
16
- export {};
@@ -1,132 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isIntersect = exports.isIntersectRect = void 0;
4
- var tslib_1 = require("tslib");
5
- var util_1 = require("@antv/util");
6
- var matrix_util_1 = require("@antv/matrix-util");
7
- var dot = matrix_util_1.vec2.dot;
8
- /**
9
- * @private
10
- * 1. 获取投影轴
11
- */
12
- function getAxes(points /** 多边形的关键点 */) {
13
- // 目前先处理 平行矩形 的场景, 其他多边形不处理
14
- if (points.length > 4) {
15
- return [];
16
- }
17
- // 获取向量
18
- var vector = function (start, end) {
19
- return [end.x - start.x, end.y - start.y];
20
- };
21
- // 由于 矩形的平行原理,所以只有 2 条投影轴: A -> B, B -> C
22
- var AB = vector(points[0], points[1]);
23
- var BC = vector(points[1], points[2]);
24
- return [AB, BC];
25
- }
26
- /**
27
- * @private
28
- * 绕指定点顺时针旋转后的点坐标
29
- * 默认绕原点旋转
30
- */
31
- function rotateAtPoint(point, deg, origin) {
32
- if (deg === void 0) { deg = 0; }
33
- if (origin === void 0) { origin = { x: 0, y: 0 }; }
34
- var x = point.x, y = point.y;
35
- return {
36
- x: (x - origin.x) * Math.cos(-deg) + (y - origin.y) * Math.sin(-deg) + origin.x,
37
- y: (origin.x - x) * Math.sin(-deg) + (y - origin.y) * Math.cos(-deg) + origin.y,
38
- };
39
- }
40
- /**
41
- * @private
42
- * 转化为顶点坐标数组
43
- *
44
- * @param {Object} box
45
- */
46
- function getRectPoints(box) {
47
- var points = [
48
- { x: box.x, y: box.y },
49
- { x: box.x + box.width, y: box.y },
50
- { x: box.x + box.width, y: box.y + box.height },
51
- { x: box.x, y: box.y + box.height },
52
- ];
53
- var rotation = box.rotation;
54
- if (rotation) {
55
- return [
56
- rotateAtPoint(points[0], rotation, points[0]),
57
- rotateAtPoint(points[1], rotation, points[0]),
58
- rotateAtPoint(points[2], rotation, points[0]),
59
- rotateAtPoint(points[3], rotation, points[0]),
60
- ];
61
- }
62
- return points;
63
- }
64
- /**
65
- * @private
66
- * 2. 获取多边形在投影轴上的投影
67
- *
68
- * 向量的点积的其中一个几何含义是:一个向量在平行于另一个向量方向上的投影的数值乘积。
69
- * 由于投影轴是单位向量(长度为1),投影的长度为 x1 * x2 + y1 * y2
70
- */
71
- function getProjection(points /** 多边形的关键点 */, axis) {
72
- // 目前先处理矩形的场景
73
- if (points.length > 4) {
74
- return { min: 0, max: 0 };
75
- }
76
- var scalars = [];
77
- points.forEach(function (point) {
78
- scalars.push(dot([point.x, point.y], axis));
79
- });
80
- return { min: Math.min.apply(Math, scalars), max: Math.max.apply(Math, scalars) };
81
- }
82
- function isProjectionOverlap(projection1, projection2) {
83
- return projection1.max > projection2.min && projection1.min < projection2.max;
84
- }
85
- function isValidNumber(d) {
86
- return (0, util_1.isNumber)(d) && !Number.isNaN(d) && d !== Infinity && d !== -Infinity;
87
- }
88
- function isValidBox(box) {
89
- return Object.values(box).every(isValidNumber);
90
- }
91
- /**
92
- * 快速判断两个无旋转矩形是否遮挡
93
- */
94
- function isIntersectRect(box1, box2, margin) {
95
- if (margin === void 0) { margin = 0; }
96
- return !(box2.x > box1.x + box1.width + margin ||
97
- box2.x + box2.width < box1.x - margin ||
98
- box2.y > box1.y + box1.height + margin ||
99
- box2.y + box2.height < box1.y - margin);
100
- }
101
- exports.isIntersectRect = isIntersectRect;
102
- /**
103
- * detect whether two shape is intersected, useful when shape is been rotated
104
- * 判断两个矩形是否重叠(相交和包含, 是否旋转)
105
- *
106
- * - 原理: 分离轴定律
107
- */
108
- function isIntersect(box1, box2) {
109
- // 如果两个 box 中有一个是不合法的 box,也就是不会被渲染出来的,那么它们就不相交。
110
- if (!isValidBox(box1) || !isValidBox(box2))
111
- return false;
112
- // 如果两个矩形没有旋转,使用快速判断
113
- if (!box1.rotation && !box2.rotation) {
114
- return isIntersectRect(box1, box2);
115
- }
116
- // 分别获取 4 个关键点
117
- var rect1Points = getRectPoints(box1);
118
- var rect2Points = getRectPoints(box2);
119
- // 获取所有投影轴
120
- var axes = (0, tslib_1.__spreadArray)((0, tslib_1.__spreadArray)([], getAxes(rect1Points), true), getAxes(rect2Points), true);
121
- for (var i = 0; i < axes.length; i++) {
122
- var axis = axes[i];
123
- var projection1 = getProjection(rect1Points, axis);
124
- var projection2 = getProjection(rect2Points, axis);
125
- // 判断投影轴上的投影是否存在重叠,若检测到存在间隙则立刻退出判断,消除不必要的运算。
126
- if (!isProjectionOverlap(projection1, projection2))
127
- return false;
128
- }
129
- return true;
130
- }
131
- exports.isIntersect = isIntersect;
132
- //# sourceMappingURL=collision-detect.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"collision-detect.js","sourceRoot":"","sources":["../../src/util/collision-detect.ts"],"names":[],"mappings":";;;;AAAA,mCAAsC;AACtC,iDAAyC;AAGjC,IAAA,GAAG,GAAK,kBAAI,IAAT,CAAU;AAUrB;;;GAGG;AACH,SAAS,OAAO,CAAC,MAAe,CAAC,cAAc;IAC7C,2BAA2B;IAC3B,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;QACrB,OAAO,EAAE,CAAC;KACX;IACD,OAAO;IACP,IAAM,MAAM,GAAG,UAAC,KAAY,EAAE,GAAU;QACtC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IAC5C,CAAC,CAAC;IAEF,yCAAyC;IACzC,IAAM,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IACxC,IAAM,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,CAA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CAAC,IAAI,CAAC,QAAQ,EAAE;QACpC,OAAO,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;KACpC;IAED,cAAc;IACd,IAAM,WAAW,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC;IACxC,IAAM,WAAW,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC;IAExC,UAAU;IACV,IAAM,IAAI,6DAAO,OAAO,CAAC,WAAW,CAAC,SAAK,OAAO,CAAC,WAAW,CAAC,OAAC,CAAC;IAEhE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACpC,IAAM,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QACrB,IAAM,WAAW,GAAG,aAAa,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;QACrD,IAAM,WAAW,GAAG,aAAa,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;QAErD,4CAA4C;QAC5C,IAAI,CAAC,mBAAmB,CAAC,WAAW,EAAE,WAAW,CAAC;YAAE,OAAO,KAAK,CAAC;KAClE;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AA1BD,kCA0BC","sourcesContent":["import { isNumber } from '@antv/util';\nimport { vec2 } from '@antv/matrix-util';\nimport { BBox, Point } from '../dependents';\n\nconst { dot } = vec2;\ntype Vec2 = [number, number];\n\ntype Box = Pick<BBox, 'x' | 'y' | 'width' | 'height'> & { rotation?: number };\n\n/**\n * 定义投影对象\n */\ntype Projection = { min: number; max: number };\n\n/**\n * @private\n * 1. 获取投影轴\n */\nfunction getAxes(points: Point[] /** 多边形的关键点 */): Vec2[] {\n // 目前先处理 平行矩形 的场景, 其他多边形不处理\n if (points.length > 4) {\n return [];\n }\n // 获取向量\n const vector = (start: Point, end: Point): Vec2 => {\n return [end.x - start.x, end.y - start.y];\n };\n\n // 由于 矩形的平行原理,所以只有 2 条投影轴: A -> B, B -> C\n const AB = vector(points[0], points[1]);\n const BC = vector(points[1], points[2]);\n\n return [AB, BC];\n}\n\n/**\n * @private\n * 绕指定点顺时针旋转后的点坐标\n * 默认绕原点旋转\n */\nfunction rotateAtPoint(point: Point, deg = 0, origin = { x: 0, y: 0 }): Point {\n const { x, y } = point;\n return {\n x: (x - origin.x) * Math.cos(-deg) + (y - origin.y) * Math.sin(-deg) + origin.x,\n y: (origin.x - x) * Math.sin(-deg) + (y - origin.y) * Math.cos(-deg) + origin.y,\n };\n}\n\n/**\n * @private\n * 转化为顶点坐标数组\n *\n * @param {Object} box\n */\nfunction getRectPoints(box: Box): Point[] {\n const points = [\n { x: box.x, y: box.y },\n { x: box.x + box.width, y: box.y },\n { x: box.x + box.width, y: box.y + box.height },\n { x: box.x, y: box.y + box.height },\n ];\n\n const rotation = box.rotation;\n if (rotation) {\n return [\n rotateAtPoint(points[0], rotation, points[0]),\n rotateAtPoint(points[1], rotation, points[0]),\n rotateAtPoint(points[2], rotation, points[0]),\n rotateAtPoint(points[3], rotation, points[0]),\n ];\n }\n\n return points;\n}\n\n/**\n * @private\n * 2. 获取多边形在投影轴上的投影\n *\n * 向量的点积的其中一个几何含义是:一个向量在平行于另一个向量方向上的投影的数值乘积。\n * 由于投影轴是单位向量(长度为1),投影的长度为 x1 * x2 + y1 * y2\n */\nfunction getProjection(points: Point[] /** 多边形的关键点 */, axis: Vec2): Projection {\n // 目前先处理矩形的场景\n if (points.length > 4) {\n return { min: 0, max: 0 };\n }\n\n const scalars = [];\n points.forEach((point) => {\n scalars.push(dot([point.x, point.y], axis));\n });\n\n return { min: Math.min(...scalars), max: Math.max(...scalars) };\n}\n\nfunction isProjectionOverlap(projection1: Projection, projection2: Projection): boolean {\n return projection1.max > projection2.min && projection1.min < projection2.max;\n}\n\nfunction isValidNumber(d: number) {\n return isNumber(d) && !Number.isNaN(d) && d !== Infinity && d !== -Infinity;\n}\n\nfunction isValidBox(box: Box) {\n return Object.values(box).every(isValidNumber);\n}\n\n/**\n * 快速判断两个无旋转矩形是否遮挡\n */\nexport function isIntersectRect(box1: Box, box2: Box, margin: number = 0): boolean {\n return !(\n box2.x > box1.x + box1.width + margin ||\n box2.x + box2.width < box1.x - margin ||\n box2.y > box1.y + box1.height + margin ||\n box2.y + box2.height < box1.y - margin\n );\n}\n\n/**\n * detect whether two shape is intersected, useful when shape is been rotated\n * 判断两个矩形是否重叠(相交和包含, 是否旋转)\n *\n * - 原理: 分离轴定律\n */\nexport function isIntersect(box1: Box, box2: Box) {\n // 如果两个 box 中有一个是不合法的 box,也就是不会被渲染出来的,那么它们就不相交。\n if (!isValidBox(box1) || !isValidBox(box2)) return false;\n\n // 如果两个矩形没有旋转,使用快速判断\n if (!box1.rotation && !box2.rotation) {\n return isIntersectRect(box1, box2);\n }\n\n // 分别获取 4 个关键点\n const rect1Points = getRectPoints(box1);\n const rect2Points = getRectPoints(box2);\n\n // 获取所有投影轴\n const axes = [...getAxes(rect1Points), ...getAxes(rect2Points)];\n\n for (let i = 0; i < axes.length; i++) {\n const axis = axes[i];\n const projection1 = getProjection(rect1Points, axis);\n const projection2 = getProjection(rect2Points, axis);\n\n // 判断投影轴上的投影是否存在重叠,若检测到存在间隙则立刻退出判断,消除不必要的运算。\n if (!isProjectionOverlap(projection1, projection2)) return false;\n }\n\n return true;\n}\n"]}
@@ -1 +0,0 @@
1
- export declare const isContrastColorWhite: (color: string) => boolean;
package/lib/util/color.js DELETED
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isContrastColorWhite = void 0;
4
- var tslib_1 = require("tslib");
5
- var color_util_1 = (0, tslib_1.__importDefault)(require("@antv/color-util"));
6
- // 内置的一些特殊设置
7
- var preset = {
8
- '#5B8FF9': true,
9
- };
10
- // 根据YIQ亮度判断指定颜色取反色是不是白色
11
- // http://24ways.org/2010/calculating-color-contrast
12
- // http://www.w3.org/TR/AERT#color-contrast
13
- var isContrastColorWhite = function (color) {
14
- var rgb = color_util_1.default.toRGB(color).toUpperCase();
15
- if (preset[rgb]) {
16
- return preset[rgb];
17
- }
18
- var _a = color_util_1.default.rgb2arr(rgb), r = _a[0], g = _a[1], b = _a[2];
19
- var isDark = (r * 299 + g * 587 + b * 114) / 1000 < 128;
20
- return isDark;
21
- };
22
- exports.isContrastColorWhite = isContrastColorWhite;
23
- //# sourceMappingURL=color.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"color.js","sourceRoot":"","sources":["../../src/util/color.ts"],"names":[],"mappings":";;;;AAAA,6EAAyC;AAEzC,YAAY;AACZ,IAAM,MAAM,GAAG;IACb,SAAS,EAAE,IAAI;CAChB,CAAC;AAEF,wBAAwB;AACxB,oDAAoD;AACpD,2CAA2C;AACpC,IAAM,oBAAoB,GAAG,UAAC,KAAa;IAChD,IAAM,GAAG,GAAG,oBAAS,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,CAAC;IACjD,IAAI,MAAM,CAAC,GAAG,CAAC,EAAE;QACf,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;KACpB;IAEK,IAAA,KAAY,oBAAS,CAAC,OAAO,CAAC,GAAG,CAAC,EAAjC,CAAC,QAAA,EAAE,CAAC,QAAA,EAAE,CAAC,QAA0B,CAAC;IACzC,IAAM,MAAM,GAAG,CAAC,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,IAAI,GAAG,GAAG,CAAC;IAE1D,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAVW,QAAA,oBAAoB,wBAU/B","sourcesContent":["import colorUtil from '@antv/color-util';\n\n// 内置的一些特殊设置\nconst preset = {\n '#5B8FF9': true,\n};\n\n// 根据YIQ亮度判断指定颜色取反色是不是白色\n// http://24ways.org/2010/calculating-color-contrast\n// http://www.w3.org/TR/AERT#color-contrast\nexport const isContrastColorWhite = (color: string): boolean => {\n const rgb = colorUtil.toRGB(color).toUpperCase();\n if (preset[rgb]) {\n return preset[rgb];\n }\n\n const [r, g, b] = colorUtil.rgb2arr(rgb);\n const isDark = (r * 299 + g * 587 + b * 114) / 1000 < 128;\n\n return isDark;\n};\n"]}
@@ -1,4 +0,0 @@
1
- /**
2
- * 获取 canvas context
3
- */
4
- export declare function getCanvasContext(): CanvasRenderingContext2D;
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getCanvasContext = void 0;
4
- var ctx;
5
- /**
6
- * 获取 canvas context
7
- */
8
- function getCanvasContext() {
9
- if (!ctx) {
10
- ctx = document.createElement('canvas').getContext('2d');
11
- }
12
- return ctx;
13
- }
14
- exports.getCanvasContext = getCanvasContext;
15
- //# sourceMappingURL=context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/util/context.ts"],"names":[],"mappings":";;;AAAA,IAAI,GAA6B,CAAC;AAElC;;GAEG;AACH,SAAgB,gBAAgB;IAC9B,IAAI,CAAC,GAAG,EAAE;QACR,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;KACzD;IAED,OAAO,GAAG,CAAC;AACb,CAAC;AAND,4CAMC","sourcesContent":["let ctx: CanvasRenderingContext2D;\n\n/**\n * 获取 canvas context\n */\nexport function getCanvasContext() {\n if (!ctx) {\n ctx = document.createElement('canvas').getContext('2d');\n }\n\n return ctx;\n}\n"]}
@@ -1,86 +0,0 @@
1
- import { Coordinate } from '../dependents';
2
- import { Point } from '../interface';
3
- import { BBox } from './bbox';
4
- /**
5
- * @ignore
6
- * Gets x dimension length
7
- * @param coordinate
8
- * @returns x dimension length
9
- */
10
- export declare function getXDimensionLength(coordinate: any): number;
11
- /**
12
- * @ignore
13
- * Determines whether full circle is
14
- * @param coordinate
15
- * @returns true if full circle
16
- */
17
- export declare function isFullCircle(coordinate: Coordinate): boolean;
18
- /**
19
- * @ignore
20
- * 获取当前点到坐标系圆心的距离
21
- * @param coordinate 坐标系
22
- * @param point 当前点
23
- * @returns distance to center
24
- */
25
- export declare function getDistanceToCenter(coordinate: Coordinate, point: Point): number;
26
- /**
27
- * @ignore
28
- * 坐标点是否在坐标系中
29
- * @param coordinate
30
- * @param point
31
- */
32
- export declare function isPointInCoordinate(coordinate: Coordinate, point: Point): boolean;
33
- /**
34
- * @ignore
35
- * 获取点到圆心的连线与水平方向的夹角
36
- */
37
- export declare function getAngleByPoint(coordinate: Coordinate, point: Point): number;
38
- /**
39
- * @ignore
40
- * 获取同坐标系范围相同的剪切区域
41
- * @param coordinate
42
- * @returns
43
- */
44
- export declare function getCoordinateClipCfg(coordinate: Coordinate, margin?: number): {
45
- type: string;
46
- startState: {
47
- path: (string | number)[][];
48
- x?: undefined;
49
- y?: undefined;
50
- width?: undefined;
51
- height?: undefined;
52
- };
53
- endState: (ratio: any) => {
54
- path: (string | number)[][];
55
- };
56
- attrs: {
57
- path: (string | number)[][];
58
- x?: undefined;
59
- y?: undefined;
60
- width?: undefined;
61
- height?: undefined;
62
- };
63
- } | {
64
- type: string;
65
- startState: {
66
- x: number;
67
- y: number;
68
- width: number;
69
- height: number;
70
- path?: undefined;
71
- };
72
- endState: any;
73
- attrs: {
74
- x: number;
75
- y: number;
76
- width: number;
77
- height: number;
78
- path?: undefined;
79
- };
80
- };
81
- /**
82
- * 获取坐标系范围的 BBox
83
- * @param coordinate
84
- * @param margin
85
- */
86
- export declare function getCoordinateBBox(coordinate: Coordinate, margin?: number): BBox;
@@ -1,157 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getCoordinateBBox = exports.getCoordinateClipCfg = exports.getAngleByPoint = exports.isPointInCoordinate = exports.getDistanceToCenter = exports.isFullCircle = exports.getXDimensionLength = void 0;
4
- var graphics_1 = require("./graphics");
5
- var helper_1 = require("./helper");
6
- var bbox_1 = require("./bbox");
7
- /**
8
- * @ignore
9
- * Gets x dimension length
10
- * @param coordinate
11
- * @returns x dimension length
12
- */
13
- function getXDimensionLength(coordinate) {
14
- if (coordinate.isPolar && !coordinate.isTransposed) {
15
- // 极坐标系下 width 为弧长
16
- return (coordinate.endAngle - coordinate.startAngle) * coordinate.getRadius();
17
- }
18
- // 直角坐标系
19
- var start = coordinate.convert({ x: 0, y: 0 });
20
- var end = coordinate.convert({ x: 1, y: 0 });
21
- // 坐标系有可能发生 transpose 等变换,所有通过两点之间的距离进行计算
22
- return Math.sqrt(Math.pow(end.x - start.x, 2) + Math.pow(end.y - start.y, 2));
23
- }
24
- exports.getXDimensionLength = getXDimensionLength;
25
- /**
26
- * @ignore
27
- * Determines whether full circle is
28
- * @param coordinate
29
- * @returns true if full circle
30
- */
31
- function isFullCircle(coordinate) {
32
- if (coordinate.isPolar) {
33
- var startAngle = coordinate.startAngle, endAngle = coordinate.endAngle;
34
- return endAngle - startAngle === Math.PI * 2;
35
- }
36
- return false;
37
- }
38
- exports.isFullCircle = isFullCircle;
39
- /**
40
- * @ignore
41
- * 获取当前点到坐标系圆心的距离
42
- * @param coordinate 坐标系
43
- * @param point 当前点
44
- * @returns distance to center
45
- */
46
- function getDistanceToCenter(coordinate, point) {
47
- var center = coordinate.getCenter();
48
- return Math.sqrt(Math.pow((point.x - center.x), 2) + Math.pow((point.y - center.y), 2));
49
- }
50
- exports.getDistanceToCenter = getDistanceToCenter;
51
- /**
52
- * @ignore
53
- * 坐标点是否在坐标系中
54
- * @param coordinate
55
- * @param point
56
- */
57
- function isPointInCoordinate(coordinate, point) {
58
- var result = false;
59
- if (coordinate) {
60
- if (coordinate.type === 'theta') {
61
- var start = coordinate.start, end = coordinate.end;
62
- result = (0, helper_1.isBetween)(point.x, start.x, end.x) && (0, helper_1.isBetween)(point.y, start.y, end.y);
63
- }
64
- else {
65
- var invertPoint = coordinate.invert(point);
66
- result = (0, helper_1.isBetween)(invertPoint.x, 0, 1) && (0, helper_1.isBetween)(invertPoint.y, 0, 1);
67
- }
68
- }
69
- return result;
70
- }
71
- exports.isPointInCoordinate = isPointInCoordinate;
72
- /**
73
- * @ignore
74
- * 获取点到圆心的连线与水平方向的夹角
75
- */
76
- function getAngleByPoint(coordinate, point) {
77
- var center = coordinate.getCenter();
78
- return Math.atan2(point.y - center.y, point.x - center.x);
79
- }
80
- exports.getAngleByPoint = getAngleByPoint;
81
- /**
82
- * @ignore
83
- * 获取同坐标系范围相同的剪切区域
84
- * @param coordinate
85
- * @returns
86
- */
87
- function getCoordinateClipCfg(coordinate, margin) {
88
- if (margin === void 0) { margin = 0; }
89
- var start = coordinate.start, end = coordinate.end;
90
- var width = coordinate.getWidth();
91
- var height = coordinate.getHeight();
92
- if (coordinate.isPolar) {
93
- var startAngle_1 = coordinate.startAngle, endAngle_1 = coordinate.endAngle;
94
- var center_1 = coordinate.getCenter();
95
- var radius_1 = coordinate.getRadius();
96
- return {
97
- type: 'path',
98
- startState: {
99
- path: (0, graphics_1.getSectorPath)(center_1.x, center_1.y, radius_1 + margin, startAngle_1, startAngle_1),
100
- },
101
- endState: function (ratio) {
102
- var diff = (endAngle_1 - startAngle_1) * ratio + startAngle_1;
103
- var path = (0, graphics_1.getSectorPath)(center_1.x, center_1.y, radius_1 + margin, startAngle_1, diff);
104
- return {
105
- path: path,
106
- };
107
- },
108
- attrs: {
109
- path: (0, graphics_1.getSectorPath)(center_1.x, center_1.y, radius_1 + margin, startAngle_1, endAngle_1),
110
- },
111
- };
112
- }
113
- var endState;
114
- if (coordinate.isTransposed) {
115
- endState = {
116
- height: height + margin * 2,
117
- };
118
- }
119
- else {
120
- endState = {
121
- width: width + margin * 2,
122
- };
123
- }
124
- return {
125
- type: 'rect',
126
- startState: {
127
- x: start.x - margin,
128
- y: end.y - margin,
129
- width: coordinate.isTransposed ? width + margin * 2 : 0,
130
- height: coordinate.isTransposed ? 0 : height + margin * 2,
131
- },
132
- endState: endState,
133
- attrs: {
134
- x: start.x - margin,
135
- y: end.y - margin,
136
- width: width + margin * 2,
137
- height: height + margin * 2,
138
- },
139
- };
140
- }
141
- exports.getCoordinateClipCfg = getCoordinateClipCfg;
142
- /**
143
- * 获取坐标系范围的 BBox
144
- * @param coordinate
145
- * @param margin
146
- */
147
- function getCoordinateBBox(coordinate, margin) {
148
- if (margin === void 0) { margin = 0; }
149
- var start = coordinate.start, end = coordinate.end;
150
- var width = coordinate.getWidth();
151
- var height = coordinate.getHeight();
152
- var minX = Math.min(start.x, end.x);
153
- var minY = Math.min(start.y, end.y);
154
- return bbox_1.BBox.fromRange(minX - margin, minY - margin, minX + width + margin, minY + height + margin);
155
- }
156
- exports.getCoordinateBBox = getCoordinateBBox;
157
- //# sourceMappingURL=coordinate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"coordinate.js","sourceRoot":"","sources":["../../src/util/coordinate.ts"],"names":[],"mappings":";;;AAEA,uCAA2C;AAC3C,mCAAqC;AACrC,+BAA8B;AAE9B;;;;;GAKG;AACH,SAAgB,mBAAmB,CAAC,UAAU;IAC5C,IAAI,UAAU,CAAC,OAAO,IAAI,CAAC,UAAU,CAAC,YAAY,EAAE;QAClD,kBAAkB;QAClB,OAAO,CAAC,UAAU,CAAC,QAAQ,GAAG,UAAU,CAAC,UAAU,CAAC,GAAG,UAAU,CAAC,SAAS,EAAE,CAAC;KAC/E;IAED,QAAQ;IACR,IAAM,KAAK,GAAG,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IACjD,IAAM,GAAG,GAAG,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IAC/C,yCAAyC;IACzC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAA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MAAM,GAAG,CAAC;SAC5B;KACF,CAAC;AACJ,CAAC;AAvDD,oDAuDC;AAED;;;;GAIG;AACH,SAAgB,iBAAiB,CAAC,UAAsB,EAAE,MAAU;IAAV,uBAAA,EAAA,UAAU;IAC1D,IAAA,KAAK,GAAU,UAAU,MAApB,EAAE,GAAG,GAAK,UAAU,IAAf,CAAgB;IAClC,IAAM,KAAK,GAAG,UAAU,CAAC,QAAQ,EAAE,CAAC;IACpC,IAAM,MAAM,GAAG,UAAU,CAAC,SAAS,EAAE,CAAC;IACtC,IAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IACtC,IAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IAEtC,OAAO,WAAI,CAAC,SAAS,CAAC,IAAI,GAAG,MAAM,EAAE,IAAI,GAAG,MAAM,EAAE,IAAI,GAAG,KAAK,GAAG,MAAM,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC,CAAC;AACrG,CAAC;AARD,8CAQC","sourcesContent":["import { Coordinate } from '../dependents';\nimport { Point } from '../interface';\nimport { getSectorPath } from './graphics';\nimport { isBetween } from './helper';\nimport { BBox } from './bbox';\n\n/**\n * @ignore\n * Gets x dimension length\n * @param coordinate\n * @returns x dimension length\n */\nexport function getXDimensionLength(coordinate): number {\n if (coordinate.isPolar && !coordinate.isTransposed) {\n // 极坐标系下 width 为弧长\n return (coordinate.endAngle - coordinate.startAngle) * coordinate.getRadius();\n }\n\n // 直角坐标系\n const start = coordinate.convert({ x: 0, y: 0 });\n const end = coordinate.convert({ x: 1, y: 0 });\n // 坐标系有可能发生 transpose 等变换,所有通过两点之间的距离进行计算\n return Math.sqrt(Math.pow(end.x - start.x, 2) + Math.pow(end.y - start.y, 2));\n}\n\n/**\n * @ignore\n * Determines whether full circle is\n * @param coordinate\n * @returns true if full circle\n */\nexport function isFullCircle(coordinate: Coordinate): boolean {\n if (coordinate.isPolar) {\n const { startAngle, endAngle } = coordinate;\n return endAngle - startAngle === Math.PI * 2;\n }\n return false;\n}\n\n/**\n * @ignore\n * 获取当前点到坐标系圆心的距离\n * @param coordinate 坐标系\n * @param point 当前点\n * @returns distance to center\n */\nexport function getDistanceToCenter(coordinate: Coordinate, point: Point): number {\n const center = coordinate.getCenter() as Point;\n return Math.sqrt((point.x - center.x) ** 2 + (point.y - center.y) ** 2);\n}\n\n/**\n * @ignore\n * 坐标点是否在坐标系中\n * @param coordinate\n * @param point\n */\nexport function isPointInCoordinate(coordinate: Coordinate, point: Point) {\n let result = false;\n\n if (coordinate) {\n if (coordinate.type === 'theta') {\n const { start, end } = coordinate;\n result = isBetween(point.x, start.x, end.x) && isBetween(point.y, start.y, end.y);\n } else {\n const invertPoint = coordinate.invert(point);\n\n result = isBetween(invertPoint.x, 0, 1) && isBetween(invertPoint.y, 0, 1);\n }\n }\n\n return result;\n}\n\n/**\n * @ignore\n * 获取点到圆心的连线与水平方向的夹角\n */\nexport function getAngleByPoint(coordinate: Coordinate, point: Point): number {\n const center = coordinate.getCenter();\n return Math.atan2(point.y - center.y, point.x - center.x);\n}\n\n/**\n * @ignore\n * 获取同坐标系范围相同的剪切区域\n * @param coordinate\n * @returns\n */\nexport function getCoordinateClipCfg(coordinate: Coordinate, margin: number = 0) {\n const { start, end } = coordinate;\n const width = coordinate.getWidth();\n const height = coordinate.getHeight();\n\n if (coordinate.isPolar) {\n const { startAngle, endAngle } = coordinate;\n const center = coordinate.getCenter();\n const radius = coordinate.getRadius();\n\n return {\n type: 'path',\n startState: {\n path: getSectorPath(center.x, center.y, radius + margin, startAngle, startAngle),\n },\n endState: (ratio) => {\n const diff = (endAngle - startAngle) * ratio + startAngle;\n const path = getSectorPath(center.x, center.y, radius + margin, startAngle, diff);\n return {\n path,\n };\n },\n attrs: {\n path: getSectorPath(center.x, center.y, radius + margin, startAngle, endAngle),\n },\n };\n }\n\n let endState;\n if (coordinate.isTransposed) {\n endState = {\n height: height + margin * 2,\n };\n } else {\n endState = {\n width: width + margin * 2,\n };\n }\n\n return {\n type: 'rect',\n startState: {\n x: start.x - margin,\n y: end.y - margin,\n width: coordinate.isTransposed ? width + margin * 2 : 0,\n height: coordinate.isTransposed ? 0 : height + margin * 2,\n },\n endState,\n attrs: {\n x: start.x - margin,\n y: end.y - margin,\n width: width + margin * 2,\n height: height + margin * 2,\n },\n };\n}\n\n/**\n * 获取坐标系范围的 BBox\n * @param coordinate\n * @param margin\n */\nexport function getCoordinateBBox(coordinate: Coordinate, margin = 0) {\n const { start, end } = coordinate;\n const width = coordinate.getWidth();\n const height = coordinate.getHeight();\n const minX = Math.min(start.x, end.x);\n const minY = Math.min(start.y, end.y);\n\n return BBox.fromRange(minX - margin, minY - margin, minX + width + margin, minY + height + margin);\n}\n"]}
@@ -1,19 +0,0 @@
1
- import { DIRECTION } from '../constant';
2
- import { Coordinate } from '../dependents';
3
- import { Position } from '../interface';
4
- import { BBox } from './bbox';
5
- /**
6
- * @ignore
7
- * 方位常量转实际的 bbox 位置大小
8
- * @param parentBBox
9
- * @param bbox
10
- * @param direction
11
- */
12
- export declare function directionToPosition(parentBBox: BBox, bbox: BBox, direction: DIRECTION): Position;
13
- /**
14
- * @ignore
15
- * get direction after coordinate translate
16
- * @param direction
17
- * @param coordinate
18
- */
19
- export declare function getTranslateDirection(direction: DIRECTION, coordinate: Coordinate): DIRECTION;