@antv/g2 4.1.42 → 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 (1338) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/package.json +3 -4
  3. package/src/chart/controller/annotation.ts +4 -0
  4. package/src/core.ts +1 -1
  5. package/dist/g2.min.js +0 -44
  6. package/dist/g2.min.js.map +0 -1
  7. package/esm/animate/animation/fade.d.ts +0 -21
  8. package/esm/animate/animation/fade.js +0 -42
  9. package/esm/animate/animation/fade.js.map +0 -1
  10. package/esm/animate/animation/grow-in.d.ts +0 -30
  11. package/esm/animate/animation/grow-in.js +0 -38
  12. package/esm/animate/animation/grow-in.js.map +0 -1
  13. package/esm/animate/animation/index.d.ts +0 -16
  14. package/esm/animate/animation/index.js +0 -17
  15. package/esm/animate/animation/index.js.map +0 -1
  16. package/esm/animate/animation/path-in.d.ts +0 -12
  17. package/esm/animate/animation/path-in.js +0 -21
  18. package/esm/animate/animation/path-in.js.map +0 -1
  19. package/esm/animate/animation/position-update.d.ts +0 -11
  20. package/esm/animate/animation/position-update.js +0 -24
  21. package/esm/animate/animation/position-update.js.map +0 -1
  22. package/esm/animate/animation/scale-in.d.ts +0 -19
  23. package/esm/animate/animation/scale-in.js +0 -60
  24. package/esm/animate/animation/scale-in.js.map +0 -1
  25. package/esm/animate/animation/sector-path-update.d.ts +0 -11
  26. package/esm/animate/animation/sector-path-update.js +0 -131
  27. package/esm/animate/animation/sector-path-update.js.map +0 -1
  28. package/esm/animate/animation/util.d.ts +0 -19
  29. package/esm/animate/animation/util.js +0 -88
  30. package/esm/animate/animation/util.js.map +0 -1
  31. package/esm/animate/animation/wave-in.d.ts +0 -13
  32. package/esm/animate/animation/wave-in.js +0 -26
  33. package/esm/animate/animation/wave-in.js.map +0 -1
  34. package/esm/animate/animation/zoom.d.ts +0 -21
  35. package/esm/animate/animation/zoom.js +0 -66
  36. package/esm/animate/animation/zoom.js.map +0 -1
  37. package/esm/animate/index.d.ts +0 -48
  38. package/esm/animate/index.js +0 -249
  39. package/esm/animate/index.js.map +0 -1
  40. package/esm/animate/interface.d.ts +0 -12
  41. package/esm/animate/interface.js +0 -2
  42. package/esm/animate/interface.js.map +0 -1
  43. package/esm/api.d.ts +0 -2
  44. package/esm/api.js +0 -3
  45. package/esm/api.js.map +0 -1
  46. package/esm/base.d.ts +0 -33
  47. package/esm/base.js +0 -55
  48. package/esm/base.js.map +0 -1
  49. package/esm/chart/chart.d.ts +0 -61
  50. package/esm/chart/chart.js +0 -157
  51. package/esm/chart/chart.js.map +0 -1
  52. package/esm/chart/controller/annotation.d.ts +0 -162
  53. package/esm/chart/controller/annotation.js +0 -577
  54. package/esm/chart/controller/annotation.js.map +0 -1
  55. package/esm/chart/controller/axis.d.ts +0 -93
  56. package/esm/chart/controller/axis.js +0 -578
  57. package/esm/chart/controller/axis.js.map +0 -1
  58. package/esm/chart/controller/base.d.ts +0 -64
  59. package/esm/chart/controller/base.js +0 -62
  60. package/esm/chart/controller/base.js.map +0 -1
  61. package/esm/chart/controller/coordinate.d.ts +0 -74
  62. package/esm/chart/controller/coordinate.js +0 -145
  63. package/esm/chart/controller/coordinate.js.map +0 -1
  64. package/esm/chart/controller/gesture.d.ts +0 -37
  65. package/esm/chart/controller/gesture.js +0 -258
  66. package/esm/chart/controller/gesture.js.map +0 -1
  67. package/esm/chart/controller/index.d.ts +0 -25
  68. package/esm/chart/controller/index.js +0 -34
  69. package/esm/chart/controller/index.js.map +0 -1
  70. package/esm/chart/controller/legend.d.ts +0 -106
  71. package/esm/chart/controller/legend.js +0 -484
  72. package/esm/chart/controller/legend.js.map +0 -1
  73. package/esm/chart/controller/scrollbar.d.ts +0 -64
  74. package/esm/chart/controller/scrollbar.js +0 -316
  75. package/esm/chart/controller/scrollbar.js.map +0 -1
  76. package/esm/chart/controller/slider.d.ts +0 -88
  77. package/esm/chart/controller/slider.js +0 -296
  78. package/esm/chart/controller/slider.js.map +0 -1
  79. package/esm/chart/controller/tooltip.d.ts +0 -68
  80. package/esm/chart/controller/tooltip.js +0 -644
  81. package/esm/chart/controller/tooltip.js.map +0 -1
  82. package/esm/chart/event.d.ts +0 -47
  83. package/esm/chart/event.js +0 -91
  84. package/esm/chart/event.js.map +0 -1
  85. package/esm/chart/index.d.ts +0 -4
  86. package/esm/chart/index.js +0 -5
  87. package/esm/chart/index.js.map +0 -1
  88. package/esm/chart/layout/auto.d.ts +0 -8
  89. package/esm/chart/layout/auto.js +0 -64
  90. package/esm/chart/layout/auto.js.map +0 -1
  91. package/esm/chart/layout/constraint/bounds.d.ts +0 -32
  92. package/esm/chart/layout/constraint/bounds.js +0 -30
  93. package/esm/chart/layout/constraint/bounds.js.map +0 -1
  94. package/esm/chart/layout/constraint/constraint.d.ts +0 -31
  95. package/esm/chart/layout/constraint/constraint.js +0 -81
  96. package/esm/chart/layout/constraint/constraint.js.map +0 -1
  97. package/esm/chart/layout/constraint/gauss.d.ts +0 -11
  98. package/esm/chart/layout/constraint/gauss.js +0 -63
  99. package/esm/chart/layout/constraint/gauss.js.map +0 -1
  100. package/esm/chart/layout/constraint/index.d.ts +0 -5
  101. package/esm/chart/layout/constraint/index.js +0 -30
  102. package/esm/chart/layout/constraint/index.js.map +0 -1
  103. package/esm/chart/layout/constraint/solver.d.ts +0 -40
  104. package/esm/chart/layout/constraint/solver.js +0 -77
  105. package/esm/chart/layout/constraint/solver.js.map +0 -1
  106. package/esm/chart/layout/constraint/types.d.ts +0 -21
  107. package/esm/chart/layout/constraint/types.js +0 -13
  108. package/esm/chart/layout/constraint/types.js.map +0 -1
  109. package/esm/chart/layout/constraint/variable.d.ts +0 -24
  110. package/esm/chart/layout/constraint/variable.js +0 -28
  111. package/esm/chart/layout/constraint/variable.js.map +0 -1
  112. package/esm/chart/layout/index.d.ts +0 -15
  113. package/esm/chart/layout/index.js +0 -26
  114. package/esm/chart/layout/index.js.map +0 -1
  115. package/esm/chart/layout/padding-cal.d.ts +0 -53
  116. package/esm/chart/layout/padding-cal.js +0 -108
  117. package/esm/chart/layout/padding-cal.js.map +0 -1
  118. package/esm/chart/util/scale-pool.d.ts +0 -57
  119. package/esm/chart/util/scale-pool.js +0 -212
  120. package/esm/chart/util/scale-pool.js.map +0 -1
  121. package/esm/chart/util/sync-view-padding.d.ts +0 -9
  122. package/esm/chart/util/sync-view-padding.js +0 -14
  123. package/esm/chart/util/sync-view-padding.js.map +0 -1
  124. package/esm/chart/view.d.ts +0 -747
  125. package/esm/chart/view.js +0 -1633
  126. package/esm/chart/view.js.map +0 -1
  127. package/esm/component/labels.d.ts +0 -47
  128. package/esm/component/labels.js +0 -274
  129. package/esm/component/labels.js.map +0 -1
  130. package/esm/component/update-label.d.ts +0 -21
  131. package/esm/component/update-label.js +0 -57
  132. package/esm/component/update-label.js.map +0 -1
  133. package/esm/constant.d.ts +0 -122
  134. package/esm/constant.js +0 -134
  135. package/esm/constant.js.map +0 -1
  136. package/esm/core.d.ts +0 -46
  137. package/esm/core.js +0 -60
  138. package/esm/core.js.map +0 -1
  139. package/esm/dependents.d.ts +0 -21
  140. package/esm/dependents.js +0 -33
  141. package/esm/dependents.js.map +0 -1
  142. package/esm/engine/index.d.ts +0 -13
  143. package/esm/engine/index.js +0 -22
  144. package/esm/engine/index.js.map +0 -1
  145. package/esm/facet/circle.d.ts +0 -36
  146. package/esm/facet/circle.js +0 -119
  147. package/esm/facet/circle.js.map +0 -1
  148. package/esm/facet/facet.d.ts +0 -165
  149. package/esm/facet/facet.js +0 -291
  150. package/esm/facet/facet.js.map +0 -1
  151. package/esm/facet/index.d.ts +0 -13
  152. package/esm/facet/index.js +0 -22
  153. package/esm/facet/index.js.map +0 -1
  154. package/esm/facet/list.d.ts +0 -46
  155. package/esm/facet/list.js +0 -134
  156. package/esm/facet/list.js.map +0 -1
  157. package/esm/facet/matrix.d.ts +0 -34
  158. package/esm/facet/matrix.js +0 -119
  159. package/esm/facet/matrix.js.map +0 -1
  160. package/esm/facet/mirror.d.ts +0 -31
  161. package/esm/facet/mirror.js +0 -144
  162. package/esm/facet/mirror.js.map +0 -1
  163. package/esm/facet/rect.d.ts +0 -35
  164. package/esm/facet/rect.js +0 -141
  165. package/esm/facet/rect.js.map +0 -1
  166. package/esm/facet/tree.d.ts +0 -40
  167. package/esm/facet/tree.js +0 -288
  168. package/esm/facet/tree.js.map +0 -1
  169. package/esm/geometry/area.d.ts +0 -46
  170. package/esm/geometry/area.js +0 -62
  171. package/esm/geometry/area.js.map +0 -1
  172. package/esm/geometry/base.d.ts +0 -793
  173. package/esm/geometry/base.js +0 -1487
  174. package/esm/geometry/base.js.map +0 -1
  175. package/esm/geometry/edge.d.ts +0 -15
  176. package/esm/geometry/edge.js +0 -24
  177. package/esm/geometry/edge.js.map +0 -1
  178. package/esm/geometry/element/index.d.ts +0 -127
  179. package/esm/geometry/element/index.js +0 -436
  180. package/esm/geometry/element/index.js.map +0 -1
  181. package/esm/geometry/heatmap.d.ts +0 -31
  182. package/esm/geometry/heatmap.js +0 -190
  183. package/esm/geometry/heatmap.js.map +0 -1
  184. package/esm/geometry/interval.d.ts +0 -41
  185. package/esm/geometry/interval.js +0 -98
  186. package/esm/geometry/interval.js.map +0 -1
  187. package/esm/geometry/label/base.d.ts +0 -76
  188. package/esm/geometry/label/base.js +0 -404
  189. package/esm/geometry/label/base.js.map +0 -1
  190. package/esm/geometry/label/index.d.ts +0 -38
  191. package/esm/geometry/label/index.js +0 -35
  192. package/esm/geometry/label/index.js.map +0 -1
  193. package/esm/geometry/label/interface.d.ts +0 -50
  194. package/esm/geometry/label/interface.js +0 -2
  195. package/esm/geometry/label/interface.js.map +0 -1
  196. package/esm/geometry/label/interval.d.ts +0 -27
  197. package/esm/geometry/label/interval.js +0 -146
  198. package/esm/geometry/label/interval.js.map +0 -1
  199. package/esm/geometry/label/layout/adjust-color.d.ts +0 -3
  200. package/esm/geometry/label/layout/adjust-color.js +0 -36
  201. package/esm/geometry/label/layout/adjust-color.js.map +0 -1
  202. package/esm/geometry/label/layout/hide-overlap.d.ts +0 -8
  203. package/esm/geometry/label/layout/hide-overlap.js +0 -29
  204. package/esm/geometry/label/layout/hide-overlap.js.map +0 -1
  205. package/esm/geometry/label/layout/interval/adjust-position.d.ts +0 -9
  206. package/esm/geometry/label/layout/interval/adjust-position.js +0 -61
  207. package/esm/geometry/label/layout/interval/adjust-position.js.map +0 -1
  208. package/esm/geometry/label/layout/interval/hide-overlap.d.ts +0 -9
  209. package/esm/geometry/label/layout/interval/hide-overlap.js +0 -78
  210. package/esm/geometry/label/layout/interval/hide-overlap.js.map +0 -1
  211. package/esm/geometry/label/layout/limit-in-canvas.d.ts +0 -9
  212. package/esm/geometry/label/layout/limit-in-canvas.js +0 -44
  213. package/esm/geometry/label/layout/limit-in-canvas.js.map +0 -1
  214. package/esm/geometry/label/layout/limit-in-plot.d.ts +0 -18
  215. package/esm/geometry/label/layout/limit-in-plot.js +0 -75
  216. package/esm/geometry/label/layout/limit-in-plot.js.map +0 -1
  217. package/esm/geometry/label/layout/limit-in-shape.d.ts +0 -7
  218. package/esm/geometry/label/layout/limit-in-shape.js +0 -18
  219. package/esm/geometry/label/layout/limit-in-shape.js.map +0 -1
  220. package/esm/geometry/label/layout/overlap.d.ts +0 -15
  221. package/esm/geometry/label/layout/overlap.js +0 -223
  222. package/esm/geometry/label/layout/overlap.js.map +0 -1
  223. package/esm/geometry/label/layout/path/adjust-position.d.ts +0 -17
  224. package/esm/geometry/label/layout/path/adjust-position.js +0 -94
  225. package/esm/geometry/label/layout/path/adjust-position.js.map +0 -1
  226. package/esm/geometry/label/layout/pie/distribute.d.ts +0 -3
  227. package/esm/geometry/label/layout/pie/distribute.js +0 -185
  228. package/esm/geometry/label/layout/pie/distribute.js.map +0 -1
  229. package/esm/geometry/label/layout/pie/outer.d.ts +0 -6
  230. package/esm/geometry/label/layout/pie/outer.js +0 -207
  231. package/esm/geometry/label/layout/pie/outer.js.map +0 -1
  232. package/esm/geometry/label/layout/pie/spider.d.ts +0 -7
  233. package/esm/geometry/label/layout/pie/spider.js +0 -181
  234. package/esm/geometry/label/layout/pie/spider.js.map +0 -1
  235. package/esm/geometry/label/layout/pie/util.d.ts +0 -10
  236. package/esm/geometry/label/layout/pie/util.js +0 -73
  237. package/esm/geometry/label/layout/pie/util.js.map +0 -1
  238. package/esm/geometry/label/layout/point/adjust-position.d.ts +0 -17
  239. package/esm/geometry/label/layout/point/adjust-position.js +0 -94
  240. package/esm/geometry/label/layout/point/adjust-position.js.map +0 -1
  241. package/esm/geometry/label/pie.d.ts +0 -22
  242. package/esm/geometry/label/pie.js +0 -95
  243. package/esm/geometry/label/pie.js.map +0 -1
  244. package/esm/geometry/label/polar.d.ts +0 -64
  245. package/esm/geometry/label/polar.js +0 -221
  246. package/esm/geometry/label/polar.js.map +0 -1
  247. package/esm/geometry/label/util/index.d.ts +0 -26
  248. package/esm/geometry/label/util/index.js +0 -61
  249. package/esm/geometry/label/util/index.js.map +0 -1
  250. package/esm/geometry/line.d.ts +0 -11
  251. package/esm/geometry/line.js +0 -21
  252. package/esm/geometry/line.js.map +0 -1
  253. package/esm/geometry/path.d.ts +0 -40
  254. package/esm/geometry/path.js +0 -122
  255. package/esm/geometry/path.js.map +0 -1
  256. package/esm/geometry/point.d.ts +0 -19
  257. package/esm/geometry/point.js +0 -30
  258. package/esm/geometry/point.js.map +0 -1
  259. package/esm/geometry/polygon.d.ts +0 -19
  260. package/esm/geometry/polygon.js +0 -62
  261. package/esm/geometry/polygon.js.map +0 -1
  262. package/esm/geometry/schema.d.ts +0 -18
  263. package/esm/geometry/schema.js +0 -48
  264. package/esm/geometry/schema.js.map +0 -1
  265. package/esm/geometry/shape/area/index.d.ts +0 -2
  266. package/esm/geometry/shape/area/index.js +0 -44
  267. package/esm/geometry/shape/area/index.js.map +0 -1
  268. package/esm/geometry/shape/area/line.d.ts +0 -1
  269. package/esm/geometry/shape/area/line.js +0 -31
  270. package/esm/geometry/shape/area/line.js.map +0 -1
  271. package/esm/geometry/shape/area/smooth-line.d.ts +0 -1
  272. package/esm/geometry/shape/area/smooth-line.js +0 -30
  273. package/esm/geometry/shape/area/smooth-line.js.map +0 -1
  274. package/esm/geometry/shape/area/smooth.d.ts +0 -1
  275. package/esm/geometry/shape/area/smooth.js +0 -31
  276. package/esm/geometry/shape/area/smooth.js.map +0 -1
  277. package/esm/geometry/shape/area/util.d.ts +0 -22
  278. package/esm/geometry/shape/area/util.js +0 -88
  279. package/esm/geometry/shape/area/util.js.map +0 -1
  280. package/esm/geometry/shape/base.d.ts +0 -22
  281. package/esm/geometry/shape/base.js +0 -162
  282. package/esm/geometry/shape/base.js.map +0 -1
  283. package/esm/geometry/shape/constant.d.ts +0 -4
  284. package/esm/geometry/shape/constant.js +0 -5
  285. package/esm/geometry/shape/constant.js.map +0 -1
  286. package/esm/geometry/shape/edge/arc.d.ts +0 -1
  287. package/esm/geometry/shape/edge/arc.js +0 -84
  288. package/esm/geometry/shape/edge/arc.js.map +0 -1
  289. package/esm/geometry/shape/edge/index.d.ts +0 -2
  290. package/esm/geometry/shape/edge/index.js +0 -31
  291. package/esm/geometry/shape/edge/index.js.map +0 -1
  292. package/esm/geometry/shape/edge/smooth.d.ts +0 -1
  293. package/esm/geometry/shape/edge/smooth.js +0 -30
  294. package/esm/geometry/shape/edge/smooth.js.map +0 -1
  295. package/esm/geometry/shape/edge/util.d.ts +0 -17
  296. package/esm/geometry/shape/edge/util.js +0 -32
  297. package/esm/geometry/shape/edge/util.js.map +0 -1
  298. package/esm/geometry/shape/edge/vhv.d.ts +0 -1
  299. package/esm/geometry/shape/edge/vhv.js +0 -42
  300. package/esm/geometry/shape/edge/vhv.js.map +0 -1
  301. package/esm/geometry/shape/interval/funnel.d.ts +0 -1
  302. package/esm/geometry/shape/interval/funnel.js +0 -31
  303. package/esm/geometry/shape/interval/funnel.js.map +0 -1
  304. package/esm/geometry/shape/interval/hollow-rect.d.ts +0 -1
  305. package/esm/geometry/shape/interval/hollow-rect.js +0 -51
  306. package/esm/geometry/shape/interval/hollow-rect.js.map +0 -1
  307. package/esm/geometry/shape/interval/index.d.ts +0 -3
  308. package/esm/geometry/shape/interval/index.js +0 -63
  309. package/esm/geometry/shape/interval/index.js.map +0 -1
  310. package/esm/geometry/shape/interval/line.d.ts +0 -1
  311. package/esm/geometry/shape/interval/line.js +0 -54
  312. package/esm/geometry/shape/interval/line.js.map +0 -1
  313. package/esm/geometry/shape/interval/pyramid.d.ts +0 -1
  314. package/esm/geometry/shape/interval/pyramid.js +0 -31
  315. package/esm/geometry/shape/interval/pyramid.js.map +0 -1
  316. package/esm/geometry/shape/interval/tick.d.ts +0 -1
  317. package/esm/geometry/shape/interval/tick.js +0 -77
  318. package/esm/geometry/shape/interval/tick.js.map +0 -1
  319. package/esm/geometry/shape/interval/util.d.ts +0 -55
  320. package/esm/geometry/shape/interval/util.js +0 -311
  321. package/esm/geometry/shape/interval/util.js.map +0 -1
  322. package/esm/geometry/shape/line/index.d.ts +0 -8
  323. package/esm/geometry/shape/line/index.js +0 -105
  324. package/esm/geometry/shape/line/index.js.map +0 -1
  325. package/esm/geometry/shape/line/step.d.ts +0 -1
  326. package/esm/geometry/shape/line/step.js +0 -84
  327. package/esm/geometry/shape/line/step.js.map +0 -1
  328. package/esm/geometry/shape/line/util.d.ts +0 -16
  329. package/esm/geometry/shape/line/util.js +0 -83
  330. package/esm/geometry/shape/line/util.js.map +0 -1
  331. package/esm/geometry/shape/point/hollow.d.ts +0 -1
  332. package/esm/geometry/shape/point/hollow.js +0 -24
  333. package/esm/geometry/shape/point/hollow.js.map +0 -1
  334. package/esm/geometry/shape/point/image.d.ts +0 -1
  335. package/esm/geometry/shape/point/image.js +0 -48
  336. package/esm/geometry/shape/point/image.js.map +0 -1
  337. package/esm/geometry/shape/point/index.d.ts +0 -2
  338. package/esm/geometry/shape/point/index.js +0 -32
  339. package/esm/geometry/shape/point/index.js.map +0 -1
  340. package/esm/geometry/shape/point/solid.d.ts +0 -1
  341. package/esm/geometry/shape/point/solid.js +0 -23
  342. package/esm/geometry/shape/point/solid.js.map +0 -1
  343. package/esm/geometry/shape/point/util.d.ts +0 -15
  344. package/esm/geometry/shape/point/util.js +0 -39
  345. package/esm/geometry/shape/point/util.js.map +0 -1
  346. package/esm/geometry/shape/polygon/index.d.ts +0 -2
  347. package/esm/geometry/shape/polygon/index.js +0 -65
  348. package/esm/geometry/shape/polygon/index.js.map +0 -1
  349. package/esm/geometry/shape/polygon/square.d.ts +0 -1
  350. package/esm/geometry/shape/polygon/square.js +0 -44
  351. package/esm/geometry/shape/polygon/square.js.map +0 -1
  352. package/esm/geometry/shape/schema/box.d.ts +0 -1
  353. package/esm/geometry/shape/schema/box.js +0 -142
  354. package/esm/geometry/shape/schema/box.js.map +0 -1
  355. package/esm/geometry/shape/schema/candle.d.ts +0 -1
  356. package/esm/geometry/shape/schema/candle.js +0 -80
  357. package/esm/geometry/shape/schema/candle.js.map +0 -1
  358. package/esm/geometry/shape/schema/index.d.ts +0 -2
  359. package/esm/geometry/shape/schema/index.js +0 -6
  360. package/esm/geometry/shape/schema/index.js.map +0 -1
  361. package/esm/geometry/shape/util/get-path-points.d.ts +0 -38
  362. package/esm/geometry/shape/util/get-path-points.js +0 -131
  363. package/esm/geometry/shape/util/get-path-points.js.map +0 -1
  364. package/esm/geometry/shape/util/get-style.d.ts +0 -18
  365. package/esm/geometry/shape/util/get-style.js +0 -47
  366. package/esm/geometry/shape/util/get-style.js.map +0 -1
  367. package/esm/geometry/shape/util/path.d.ts +0 -32
  368. package/esm/geometry/shape/util/path.js +0 -311
  369. package/esm/geometry/shape/util/path.js.map +0 -1
  370. package/esm/geometry/shape/util/split-points.d.ts +0 -13
  371. package/esm/geometry/shape/util/split-points.js +0 -24
  372. package/esm/geometry/shape/util/split-points.js.map +0 -1
  373. package/esm/geometry/shape/violin/hollow.d.ts +0 -1
  374. package/esm/geometry/shape/violin/hollow.js +0 -51
  375. package/esm/geometry/shape/violin/hollow.js.map +0 -1
  376. package/esm/geometry/shape/violin/index.d.ts +0 -2
  377. package/esm/geometry/shape/violin/index.js +0 -60
  378. package/esm/geometry/shape/violin/index.js.map +0 -1
  379. package/esm/geometry/shape/violin/smooth.d.ts +0 -1
  380. package/esm/geometry/shape/violin/smooth.js +0 -28
  381. package/esm/geometry/shape/violin/smooth.js.map +0 -1
  382. package/esm/geometry/util/diff.d.ts +0 -11
  383. package/esm/geometry/util/diff.js +0 -30
  384. package/esm/geometry/util/diff.js.map +0 -1
  385. package/esm/geometry/util/get-shape-type.d.ts +0 -8
  386. package/esm/geometry/util/get-shape-type.js +0 -16
  387. package/esm/geometry/util/get-shape-type.js.map +0 -1
  388. package/esm/geometry/util/group-data.d.ts +0 -3
  389. package/esm/geometry/util/group-data.js +0 -31
  390. package/esm/geometry/util/group-data.js.map +0 -1
  391. package/esm/geometry/util/is-model-change.d.ts +0 -9
  392. package/esm/geometry/util/is-model-change.js +0 -14
  393. package/esm/geometry/util/is-model-change.js.map +0 -1
  394. package/esm/geometry/util/parse-fields.d.ts +0 -2
  395. package/esm/geometry/util/parse-fields.js +0 -9
  396. package/esm/geometry/util/parse-fields.js.map +0 -1
  397. package/esm/geometry/util/shape-size.d.ts +0 -2
  398. package/esm/geometry/util/shape-size.js +0 -124
  399. package/esm/geometry/util/shape-size.js.map +0 -1
  400. package/esm/geometry/violin.d.ts +0 -25
  401. package/esm/geometry/violin.js +0 -67
  402. package/esm/geometry/violin.js.map +0 -1
  403. package/esm/index.d.ts +0 -107
  404. package/esm/index.js +0 -581
  405. package/esm/index.js.map +0 -1
  406. package/esm/interaction/action/active-region.d.ts +0 -33
  407. package/esm/interaction/action/active-region.js +0 -198
  408. package/esm/interaction/action/active-region.js.map +0 -1
  409. package/esm/interaction/action/base.d.ts +0 -29
  410. package/esm/interaction/action/base.js +0 -36
  411. package/esm/interaction/action/base.js.map +0 -1
  412. package/esm/interaction/action/callback.d.ts +0 -17
  413. package/esm/interaction/action/callback.js +0 -27
  414. package/esm/interaction/action/callback.js.map +0 -1
  415. package/esm/interaction/action/component/list-active.d.ts +0 -14
  416. package/esm/interaction/action/component/list-active.js +0 -24
  417. package/esm/interaction/action/component/list-active.js.map +0 -1
  418. package/esm/interaction/action/component/list-checked.d.ts +0 -30
  419. package/esm/interaction/action/component/list-checked.js +0 -82
  420. package/esm/interaction/action/component/list-checked.js.map +0 -1
  421. package/esm/interaction/action/component/list-focus.d.ts +0 -5
  422. package/esm/interaction/action/component/list-focus.js +0 -55
  423. package/esm/interaction/action/component/list-focus.js.map +0 -1
  424. package/esm/interaction/action/component/list-highlight-util.d.ts +0 -7
  425. package/esm/interaction/action/component/list-highlight-util.js +0 -20
  426. package/esm/interaction/action/component/list-highlight-util.js.map +0 -1
  427. package/esm/interaction/action/component/list-highlight.d.ts +0 -20
  428. package/esm/interaction/action/component/list-highlight.js +0 -97
  429. package/esm/interaction/action/component/list-highlight.js.map +0 -1
  430. package/esm/interaction/action/component/list-radio.d.ts +0 -24
  431. package/esm/interaction/action/component/list-radio.js +0 -116
  432. package/esm/interaction/action/component/list-radio.js.map +0 -1
  433. package/esm/interaction/action/component/list-selected.d.ts +0 -10
  434. package/esm/interaction/action/component/list-selected.js +0 -20
  435. package/esm/interaction/action/component/list-selected.js.map +0 -1
  436. package/esm/interaction/action/component/list-state.d.ts +0 -46
  437. package/esm/interaction/action/component/list-state.js +0 -167
  438. package/esm/interaction/action/component/list-state.js.map +0 -1
  439. package/esm/interaction/action/component/list-unchecked.d.ts +0 -13
  440. package/esm/interaction/action/component/list-unchecked.js +0 -23
  441. package/esm/interaction/action/component/list-unchecked.js.map +0 -1
  442. package/esm/interaction/action/component/tooltip/ellipsis-text.d.ts +0 -25
  443. package/esm/interaction/action/component/tooltip/ellipsis-text.js +0 -93
  444. package/esm/interaction/action/component/tooltip/ellipsis-text.js.map +0 -1
  445. package/esm/interaction/action/component/tooltip/geometry.d.ts +0 -24
  446. package/esm/interaction/action/component/tooltip/geometry.js +0 -71
  447. package/esm/interaction/action/component/tooltip/geometry.js.map +0 -1
  448. package/esm/interaction/action/component/tooltip/sibling.d.ts +0 -21
  449. package/esm/interaction/action/component/tooltip/sibling.js +0 -39
  450. package/esm/interaction/action/component/tooltip/sibling.js.map +0 -1
  451. package/esm/interaction/action/cursor.d.ts +0 -69
  452. package/esm/interaction/action/cursor.js +0 -113
  453. package/esm/interaction/action/cursor.js.map +0 -1
  454. package/esm/interaction/action/data/filter.d.ts +0 -13
  455. package/esm/interaction/action/data/filter.js +0 -66
  456. package/esm/interaction/action/data/filter.js.map +0 -1
  457. package/esm/interaction/action/data/range-filter.d.ts +0 -56
  458. package/esm/interaction/action/data/range-filter.js +0 -163
  459. package/esm/interaction/action/data/range-filter.js.map +0 -1
  460. package/esm/interaction/action/data/sibling-filter.d.ts +0 -22
  461. package/esm/interaction/action/data/sibling-filter.js +0 -39
  462. package/esm/interaction/action/data/sibling-filter.js.map +0 -1
  463. package/esm/interaction/action/element/active.d.ts +0 -14
  464. package/esm/interaction/action/element/active.js +0 -24
  465. package/esm/interaction/action/element/active.js.map +0 -1
  466. package/esm/interaction/action/element/filter.d.ts +0 -20
  467. package/esm/interaction/action/element/filter.js +0 -89
  468. package/esm/interaction/action/element/filter.js.map +0 -1
  469. package/esm/interaction/action/element/highlight-by-color.d.ts +0 -10
  470. package/esm/interaction/action/element/highlight-by-color.js +0 -30
  471. package/esm/interaction/action/element/highlight-by-color.js.map +0 -1
  472. package/esm/interaction/action/element/highlight-by-x.d.ts +0 -15
  473. package/esm/interaction/action/element/highlight-by-x.js +0 -51
  474. package/esm/interaction/action/element/highlight-by-x.js.map +0 -1
  475. package/esm/interaction/action/element/highlight-util.d.ts +0 -18
  476. package/esm/interaction/action/element/highlight-util.js +0 -45
  477. package/esm/interaction/action/element/highlight-util.js.map +0 -1
  478. package/esm/interaction/action/element/highlight.d.ts +0 -21
  479. package/esm/interaction/action/element/highlight.js +0 -93
  480. package/esm/interaction/action/element/highlight.js.map +0 -1
  481. package/esm/interaction/action/element/link-by-color.d.ts +0 -51
  482. package/esm/interaction/action/element/link-by-color.js +0 -156
  483. package/esm/interaction/action/element/link-by-color.js.map +0 -1
  484. package/esm/interaction/action/element/range-active.d.ts +0 -13
  485. package/esm/interaction/action/element/range-active.js +0 -23
  486. package/esm/interaction/action/element/range-active.js.map +0 -1
  487. package/esm/interaction/action/element/range-highlight.d.ts +0 -27
  488. package/esm/interaction/action/element/range-highlight.js +0 -54
  489. package/esm/interaction/action/element/range-highlight.js.map +0 -1
  490. package/esm/interaction/action/element/range-selected.d.ts +0 -13
  491. package/esm/interaction/action/element/range-selected.js +0 -23
  492. package/esm/interaction/action/element/range-selected.js.map +0 -1
  493. package/esm/interaction/action/element/range-state.d.ts +0 -38
  494. package/esm/interaction/action/element/range-state.js +0 -164
  495. package/esm/interaction/action/element/range-state.js.map +0 -1
  496. package/esm/interaction/action/element/selected.d.ts +0 -14
  497. package/esm/interaction/action/element/selected.js +0 -24
  498. package/esm/interaction/action/element/selected.js.map +0 -1
  499. package/esm/interaction/action/element/sibling-filter.d.ts +0 -19
  500. package/esm/interaction/action/element/sibling-filter.js +0 -93
  501. package/esm/interaction/action/element/sibling-filter.js.map +0 -1
  502. package/esm/interaction/action/element/single-active.d.ts +0 -13
  503. package/esm/interaction/action/element/single-active.js +0 -23
  504. package/esm/interaction/action/element/single-active.js.map +0 -1
  505. package/esm/interaction/action/element/single-highlight.d.ts +0 -16
  506. package/esm/interaction/action/element/single-highlight.js +0 -35
  507. package/esm/interaction/action/element/single-highlight.js.map +0 -1
  508. package/esm/interaction/action/element/single-selected.d.ts +0 -13
  509. package/esm/interaction/action/element/single-selected.js +0 -23
  510. package/esm/interaction/action/element/single-selected.js.map +0 -1
  511. package/esm/interaction/action/element/single-state.d.ts +0 -18
  512. package/esm/interaction/action/element/single-state.js +0 -53
  513. package/esm/interaction/action/element/single-state.js.map +0 -1
  514. package/esm/interaction/action/element/state-base.d.ts +0 -39
  515. package/esm/interaction/action/element/state-base.js +0 -59
  516. package/esm/interaction/action/element/state-base.js.map +0 -1
  517. package/esm/interaction/action/element/state.d.ts +0 -28
  518. package/esm/interaction/action/element/state.js +0 -99
  519. package/esm/interaction/action/element/state.js.map +0 -1
  520. package/esm/interaction/action/index.d.ts +0 -2
  521. package/esm/interaction/action/index.js +0 -3
  522. package/esm/interaction/action/index.js.map +0 -1
  523. package/esm/interaction/action/mask/base.d.ts +0 -62
  524. package/esm/interaction/action/mask/base.js +0 -169
  525. package/esm/interaction/action/mask/base.js.map +0 -1
  526. package/esm/interaction/action/mask/circle.d.ts +0 -14
  527. package/esm/interaction/action/mask/circle.js +0 -37
  528. package/esm/interaction/action/mask/circle.js.map +0 -1
  529. package/esm/interaction/action/mask/dim-rect.d.ts +0 -11
  530. package/esm/interaction/action/mask/dim-rect.js +0 -62
  531. package/esm/interaction/action/mask/dim-rect.js.map +0 -1
  532. package/esm/interaction/action/mask/path.d.ts +0 -16
  533. package/esm/interaction/action/mask/path.js +0 -44
  534. package/esm/interaction/action/mask/path.js.map +0 -1
  535. package/esm/interaction/action/mask/rect.d.ts +0 -17
  536. package/esm/interaction/action/mask/rect.js +0 -39
  537. package/esm/interaction/action/mask/rect.js.map +0 -1
  538. package/esm/interaction/action/mask/smooth-path.d.ts +0 -9
  539. package/esm/interaction/action/mask/smooth-path.js +0 -21
  540. package/esm/interaction/action/mask/smooth-path.js.map +0 -1
  541. package/esm/interaction/action/register.d.ts +0 -36
  542. package/esm/interaction/action/register.js +0 -60
  543. package/esm/interaction/action/register.js.map +0 -1
  544. package/esm/interaction/action/util.d.ts +0 -140
  545. package/esm/interaction/action/util.js +0 -361
  546. package/esm/interaction/action/util.js.map +0 -1
  547. package/esm/interaction/action/view/button.d.ts +0 -25
  548. package/esm/interaction/action/view/button.js +0 -116
  549. package/esm/interaction/action/view/button.js.map +0 -1
  550. package/esm/interaction/action/view/drag.d.ts +0 -24
  551. package/esm/interaction/action/view/drag.js +0 -73
  552. package/esm/interaction/action/view/drag.js.map +0 -1
  553. package/esm/interaction/action/view/mousewheel-scroll.d.ts +0 -5
  554. package/esm/interaction/action/view/mousewheel-scroll.js +0 -35
  555. package/esm/interaction/action/view/mousewheel-scroll.js.map +0 -1
  556. package/esm/interaction/action/view/move.d.ts +0 -28
  557. package/esm/interaction/action/view/move.js +0 -80
  558. package/esm/interaction/action/view/move.js.map +0 -1
  559. package/esm/interaction/action/view/scale-transform.d.ts +0 -18
  560. package/esm/interaction/action/view/scale-transform.js +0 -51
  561. package/esm/interaction/action/view/scale-transform.js.map +0 -1
  562. package/esm/interaction/action/view/scale-translate.d.ts +0 -30
  563. package/esm/interaction/action/view/scale-translate.js +0 -112
  564. package/esm/interaction/action/view/scale-translate.js.map +0 -1
  565. package/esm/interaction/action/view/scale-zoom.d.ts +0 -20
  566. package/esm/interaction/action/view/scale-zoom.js +0 -83
  567. package/esm/interaction/action/view/scale-zoom.js.map +0 -1
  568. package/esm/interaction/context.d.ts +0 -65
  569. package/esm/interaction/context.js +0 -142
  570. package/esm/interaction/context.js.map +0 -1
  571. package/esm/interaction/grammar-interaction.d.ts +0 -158
  572. package/esm/interaction/grammar-interaction.js +0 -285
  573. package/esm/interaction/grammar-interaction.js.map +0 -1
  574. package/esm/interaction/index.d.ts +0 -25
  575. package/esm/interaction/index.js +0 -43
  576. package/esm/interaction/index.js.map +0 -1
  577. package/esm/interaction/interaction.d.ts +0 -29
  578. package/esm/interaction/interaction.js +0 -32
  579. package/esm/interaction/interaction.js.map +0 -1
  580. package/esm/interface.d.ts +0 -2264
  581. package/esm/interface.js +0 -2
  582. package/esm/interface.js.map +0 -1
  583. package/esm/theme/index.d.ts +0 -12
  584. package/esm/theme/index.js +0 -23
  585. package/esm/theme/index.js.map +0 -1
  586. package/esm/theme/style-sheet/dark.d.ts +0 -825
  587. package/esm/theme/style-sheet/dark.js +0 -496
  588. package/esm/theme/style-sheet/dark.js.map +0 -1
  589. package/esm/theme/style-sheet/light.d.ts +0 -817
  590. package/esm/theme/style-sheet/light.js +0 -492
  591. package/esm/theme/style-sheet/light.js.map +0 -1
  592. package/esm/theme/util/create-by-style-sheet.d.ts +0 -6
  593. package/esm/theme/util/create-by-style-sheet.js +0 -1422
  594. package/esm/theme/util/create-by-style-sheet.js.map +0 -1
  595. package/esm/theme/util/create-theme.d.ts +0 -6
  596. package/esm/theme/util/create-theme.js +0 -12
  597. package/esm/theme/util/create-theme.js.map +0 -1
  598. package/esm/theme/util/index.d.ts +0 -1
  599. package/esm/theme/util/index.js +0 -2
  600. package/esm/theme/util/index.js.map +0 -1
  601. package/esm/util/annotation.d.ts +0 -7
  602. package/esm/util/annotation.js +0 -39
  603. package/esm/util/annotation.js.map +0 -1
  604. package/esm/util/attr.d.ts +0 -10
  605. package/esm/util/attr.js +0 -25
  606. package/esm/util/attr.js.map +0 -1
  607. package/esm/util/axis.d.ts +0 -100
  608. package/esm/util/axis.js +0 -236
  609. package/esm/util/axis.js.map +0 -1
  610. package/esm/util/bbox.d.ts +0 -105
  611. package/esm/util/bbox.js +0 -282
  612. package/esm/util/bbox.js.map +0 -1
  613. package/esm/util/collision-detect.d.ts +0 -16
  614. package/esm/util/collision-detect.js +0 -127
  615. package/esm/util/collision-detect.js.map +0 -1
  616. package/esm/util/color.d.ts +0 -1
  617. package/esm/util/color.js +0 -18
  618. package/esm/util/color.js.map +0 -1
  619. package/esm/util/context.d.ts +0 -4
  620. package/esm/util/context.js +0 -11
  621. package/esm/util/context.js.map +0 -1
  622. package/esm/util/coordinate.d.ts +0 -86
  623. package/esm/util/coordinate.js +0 -147
  624. package/esm/util/coordinate.js.map +0 -1
  625. package/esm/util/direction.d.ts +0 -19
  626. package/esm/util/direction.js +0 -120
  627. package/esm/util/direction.js.map +0 -1
  628. package/esm/util/dom.d.ts +0 -19
  629. package/esm/util/dom.js +0 -61
  630. package/esm/util/dom.js.map +0 -1
  631. package/esm/util/event.d.ts +0 -8
  632. package/esm/util/event.js +0 -14
  633. package/esm/util/event.js.map +0 -1
  634. package/esm/util/facet.d.ts +0 -16
  635. package/esm/util/facet.js +0 -43
  636. package/esm/util/facet.js.map +0 -1
  637. package/esm/util/graphics.d.ts +0 -58
  638. package/esm/util/graphics.js +0 -203
  639. package/esm/util/graphics.js.map +0 -1
  640. package/esm/util/grid.d.ts +0 -36
  641. package/esm/util/grid.js +0 -118
  642. package/esm/util/grid.js.map +0 -1
  643. package/esm/util/helper.d.ts +0 -34
  644. package/esm/util/helper.js +0 -72
  645. package/esm/util/helper.js.map +0 -1
  646. package/esm/util/legend.d.ts +0 -45
  647. package/esm/util/legend.js +0 -145
  648. package/esm/util/legend.js.map +0 -1
  649. package/esm/util/marker.d.ts +0 -10
  650. package/esm/util/marker.js +0 -58
  651. package/esm/util/marker.js.map +0 -1
  652. package/esm/util/padding.d.ts +0 -14
  653. package/esm/util/padding.js +0 -40
  654. package/esm/util/padding.js.map +0 -1
  655. package/esm/util/scale.d.ts +0 -42
  656. package/esm/util/scale.js +0 -128
  657. package/esm/util/scale.js.map +0 -1
  658. package/esm/util/stat.d.ts +0 -10
  659. package/esm/util/stat.js +0 -36
  660. package/esm/util/stat.js.map +0 -1
  661. package/esm/util/text.d.ts +0 -23
  662. package/esm/util/text.js +0 -84
  663. package/esm/util/text.js.map +0 -1
  664. package/esm/util/tooltip.d.ts +0 -26
  665. package/esm/util/tooltip.js +0 -419
  666. package/esm/util/tooltip.js.map +0 -1
  667. package/esm/util/transform.d.ts +0 -33
  668. package/esm/util/transform.js +0 -61
  669. package/esm/util/transform.js.map +0 -1
  670. package/esm/util/types.d.ts +0 -6
  671. package/esm/util/types.js +0 -2
  672. package/esm/util/types.js.map +0 -1
  673. package/lib/animate/animation/fade.d.ts +0 -21
  674. package/lib/animate/animation/fade.js +0 -47
  675. package/lib/animate/animation/fade.js.map +0 -1
  676. package/lib/animate/animation/grow-in.d.ts +0 -30
  677. package/lib/animate/animation/grow-in.js +0 -44
  678. package/lib/animate/animation/grow-in.js.map +0 -1
  679. package/lib/animate/animation/index.d.ts +0 -16
  680. package/lib/animate/animation/index.js +0 -22
  681. package/lib/animate/animation/index.js.map +0 -1
  682. package/lib/animate/animation/path-in.d.ts +0 -12
  683. package/lib/animate/animation/path-in.js +0 -25
  684. package/lib/animate/animation/path-in.js.map +0 -1
  685. package/lib/animate/animation/position-update.d.ts +0 -11
  686. package/lib/animate/animation/position-update.js +0 -28
  687. package/lib/animate/animation/position-update.js.map +0 -1
  688. package/lib/animate/animation/scale-in.d.ts +0 -19
  689. package/lib/animate/animation/scale-in.js +0 -65
  690. package/lib/animate/animation/scale-in.js.map +0 -1
  691. package/lib/animate/animation/sector-path-update.d.ts +0 -11
  692. package/lib/animate/animation/sector-path-update.js +0 -135
  693. package/lib/animate/animation/sector-path-update.js.map +0 -1
  694. package/lib/animate/animation/util.d.ts +0 -19
  695. package/lib/animate/animation/util.js +0 -93
  696. package/lib/animate/animation/util.js.map +0 -1
  697. package/lib/animate/animation/wave-in.d.ts +0 -13
  698. package/lib/animate/animation/wave-in.js +0 -30
  699. package/lib/animate/animation/wave-in.js.map +0 -1
  700. package/lib/animate/animation/zoom.d.ts +0 -21
  701. package/lib/animate/animation/zoom.js +0 -71
  702. package/lib/animate/animation/zoom.js.map +0 -1
  703. package/lib/animate/index.d.ts +0 -48
  704. package/lib/animate/index.js +0 -255
  705. package/lib/animate/index.js.map +0 -1
  706. package/lib/animate/interface.d.ts +0 -12
  707. package/lib/animate/interface.js +0 -3
  708. package/lib/animate/interface.js.map +0 -1
  709. package/lib/api.d.ts +0 -2
  710. package/lib/api.js +0 -7
  711. package/lib/api.js.map +0 -1
  712. package/lib/base.d.ts +0 -33
  713. package/lib/base.js +0 -57
  714. package/lib/base.js.map +0 -1
  715. package/lib/chart/chart.d.ts +0 -61
  716. package/lib/chart/chart.js +0 -159
  717. package/lib/chart/chart.js.map +0 -1
  718. package/lib/chart/controller/annotation.d.ts +0 -162
  719. package/lib/chart/controller/annotation.js +0 -579
  720. package/lib/chart/controller/annotation.js.map +0 -1
  721. package/lib/chart/controller/axis.d.ts +0 -93
  722. package/lib/chart/controller/axis.js +0 -580
  723. package/lib/chart/controller/axis.js.map +0 -1
  724. package/lib/chart/controller/base.d.ts +0 -64
  725. package/lib/chart/controller/base.js +0 -65
  726. package/lib/chart/controller/base.js.map +0 -1
  727. package/lib/chart/controller/coordinate.d.ts +0 -74
  728. package/lib/chart/controller/coordinate.js +0 -147
  729. package/lib/chart/controller/coordinate.js.map +0 -1
  730. package/lib/chart/controller/gesture.d.ts +0 -37
  731. package/lib/chart/controller/gesture.js +0 -260
  732. package/lib/chart/controller/gesture.js.map +0 -1
  733. package/lib/chart/controller/index.d.ts +0 -25
  734. package/lib/chart/controller/index.js +0 -41
  735. package/lib/chart/controller/index.js.map +0 -1
  736. package/lib/chart/controller/legend.d.ts +0 -106
  737. package/lib/chart/controller/legend.js +0 -486
  738. package/lib/chart/controller/legend.js.map +0 -1
  739. package/lib/chart/controller/scrollbar.d.ts +0 -64
  740. package/lib/chart/controller/scrollbar.js +0 -318
  741. package/lib/chart/controller/scrollbar.js.map +0 -1
  742. package/lib/chart/controller/slider.d.ts +0 -88
  743. package/lib/chart/controller/slider.js +0 -298
  744. package/lib/chart/controller/slider.js.map +0 -1
  745. package/lib/chart/controller/tooltip.d.ts +0 -68
  746. package/lib/chart/controller/tooltip.js +0 -646
  747. package/lib/chart/controller/tooltip.js.map +0 -1
  748. package/lib/chart/event.d.ts +0 -47
  749. package/lib/chart/event.js +0 -93
  750. package/lib/chart/event.js.map +0 -1
  751. package/lib/chart/index.d.ts +0 -4
  752. package/lib/chart/index.js +0 -16
  753. package/lib/chart/index.js.map +0 -1
  754. package/lib/chart/layout/auto.d.ts +0 -8
  755. package/lib/chart/layout/auto.js +0 -68
  756. package/lib/chart/layout/auto.js.map +0 -1
  757. package/lib/chart/layout/constraint/bounds.d.ts +0 -32
  758. package/lib/chart/layout/constraint/bounds.js +0 -33
  759. package/lib/chart/layout/constraint/bounds.js.map +0 -1
  760. package/lib/chart/layout/constraint/constraint.d.ts +0 -31
  761. package/lib/chart/layout/constraint/constraint.js +0 -84
  762. package/lib/chart/layout/constraint/constraint.js.map +0 -1
  763. package/lib/chart/layout/constraint/gauss.d.ts +0 -11
  764. package/lib/chart/layout/constraint/gauss.js +0 -68
  765. package/lib/chart/layout/constraint/gauss.js.map +0 -1
  766. package/lib/chart/layout/constraint/index.d.ts +0 -5
  767. package/lib/chart/layout/constraint/index.js +0 -38
  768. package/lib/chart/layout/constraint/index.js.map +0 -1
  769. package/lib/chart/layout/constraint/solver.d.ts +0 -40
  770. package/lib/chart/layout/constraint/solver.js +0 -80
  771. package/lib/chart/layout/constraint/solver.js.map +0 -1
  772. package/lib/chart/layout/constraint/types.d.ts +0 -21
  773. package/lib/chart/layout/constraint/types.js +0 -16
  774. package/lib/chart/layout/constraint/types.js.map +0 -1
  775. package/lib/chart/layout/constraint/variable.d.ts +0 -24
  776. package/lib/chart/layout/constraint/variable.js +0 -31
  777. package/lib/chart/layout/constraint/variable.js.map +0 -1
  778. package/lib/chart/layout/index.d.ts +0 -15
  779. package/lib/chart/layout/index.js +0 -29
  780. package/lib/chart/layout/index.js.map +0 -1
  781. package/lib/chart/layout/padding-cal.d.ts +0 -53
  782. package/lib/chart/layout/padding-cal.js +0 -111
  783. package/lib/chart/layout/padding-cal.js.map +0 -1
  784. package/lib/chart/util/scale-pool.d.ts +0 -57
  785. package/lib/chart/util/scale-pool.js +0 -215
  786. package/lib/chart/util/scale-pool.js.map +0 -1
  787. package/lib/chart/util/sync-view-padding.d.ts +0 -9
  788. package/lib/chart/util/sync-view-padding.js +0 -18
  789. package/lib/chart/util/sync-view-padding.js.map +0 -1
  790. package/lib/chart/view.d.ts +0 -747
  791. package/lib/chart/view.js +0 -1637
  792. package/lib/chart/view.js.map +0 -1
  793. package/lib/component/labels.d.ts +0 -47
  794. package/lib/component/labels.js +0 -276
  795. package/lib/component/labels.js.map +0 -1
  796. package/lib/component/update-label.d.ts +0 -21
  797. package/lib/component/update-label.js +0 -61
  798. package/lib/component/update-label.js.map +0 -1
  799. package/lib/constant.d.ts +0 -122
  800. package/lib/constant.js +0 -137
  801. package/lib/constant.js.map +0 -1
  802. package/lib/core.d.ts +0 -46
  803. package/lib/core.js +0 -101
  804. package/lib/core.js.map +0 -1
  805. package/lib/dependents.d.ts +0 -21
  806. package/lib/dependents.js +0 -55
  807. package/lib/dependents.js.map +0 -1
  808. package/lib/engine/index.d.ts +0 -13
  809. package/lib/engine/index.js +0 -27
  810. package/lib/engine/index.js.map +0 -1
  811. package/lib/facet/circle.d.ts +0 -36
  812. package/lib/facet/circle.js +0 -121
  813. package/lib/facet/circle.js.map +0 -1
  814. package/lib/facet/facet.d.ts +0 -165
  815. package/lib/facet/facet.js +0 -294
  816. package/lib/facet/facet.js.map +0 -1
  817. package/lib/facet/index.d.ts +0 -13
  818. package/lib/facet/index.js +0 -28
  819. package/lib/facet/index.js.map +0 -1
  820. package/lib/facet/list.d.ts +0 -46
  821. package/lib/facet/list.js +0 -136
  822. package/lib/facet/list.js.map +0 -1
  823. package/lib/facet/matrix.d.ts +0 -34
  824. package/lib/facet/matrix.js +0 -121
  825. package/lib/facet/matrix.js.map +0 -1
  826. package/lib/facet/mirror.d.ts +0 -31
  827. package/lib/facet/mirror.js +0 -146
  828. package/lib/facet/mirror.js.map +0 -1
  829. package/lib/facet/rect.d.ts +0 -35
  830. package/lib/facet/rect.js +0 -143
  831. package/lib/facet/rect.js.map +0 -1
  832. package/lib/facet/tree.d.ts +0 -40
  833. package/lib/facet/tree.js +0 -290
  834. package/lib/facet/tree.js.map +0 -1
  835. package/lib/geometry/area.d.ts +0 -46
  836. package/lib/geometry/area.js +0 -64
  837. package/lib/geometry/area.js.map +0 -1
  838. package/lib/geometry/base.d.ts +0 -793
  839. package/lib/geometry/base.js +0 -1489
  840. package/lib/geometry/base.js.map +0 -1
  841. package/lib/geometry/edge.d.ts +0 -15
  842. package/lib/geometry/edge.js +0 -26
  843. package/lib/geometry/edge.js.map +0 -1
  844. package/lib/geometry/element/index.d.ts +0 -127
  845. package/lib/geometry/element/index.js +0 -438
  846. package/lib/geometry/element/index.js.map +0 -1
  847. package/lib/geometry/heatmap.d.ts +0 -31
  848. package/lib/geometry/heatmap.js +0 -192
  849. package/lib/geometry/heatmap.js.map +0 -1
  850. package/lib/geometry/interval.d.ts +0 -41
  851. package/lib/geometry/interval.js +0 -100
  852. package/lib/geometry/interval.js.map +0 -1
  853. package/lib/geometry/label/base.d.ts +0 -76
  854. package/lib/geometry/label/base.js +0 -406
  855. package/lib/geometry/label/base.js.map +0 -1
  856. package/lib/geometry/label/index.d.ts +0 -38
  857. package/lib/geometry/label/index.js +0 -42
  858. package/lib/geometry/label/index.js.map +0 -1
  859. package/lib/geometry/label/interface.d.ts +0 -50
  860. package/lib/geometry/label/interface.js +0 -3
  861. package/lib/geometry/label/interface.js.map +0 -1
  862. package/lib/geometry/label/interval.d.ts +0 -27
  863. package/lib/geometry/label/interval.js +0 -148
  864. package/lib/geometry/label/interval.js.map +0 -1
  865. package/lib/geometry/label/layout/adjust-color.d.ts +0 -3
  866. package/lib/geometry/label/layout/adjust-color.js +0 -40
  867. package/lib/geometry/label/layout/adjust-color.js.map +0 -1
  868. package/lib/geometry/label/layout/hide-overlap.d.ts +0 -8
  869. package/lib/geometry/label/layout/hide-overlap.js +0 -33
  870. package/lib/geometry/label/layout/hide-overlap.js.map +0 -1
  871. package/lib/geometry/label/layout/interval/adjust-position.d.ts +0 -9
  872. package/lib/geometry/label/layout/interval/adjust-position.js +0 -65
  873. package/lib/geometry/label/layout/interval/adjust-position.js.map +0 -1
  874. package/lib/geometry/label/layout/interval/hide-overlap.d.ts +0 -9
  875. package/lib/geometry/label/layout/interval/hide-overlap.js +0 -82
  876. package/lib/geometry/label/layout/interval/hide-overlap.js.map +0 -1
  877. package/lib/geometry/label/layout/limit-in-canvas.d.ts +0 -9
  878. package/lib/geometry/label/layout/limit-in-canvas.js +0 -48
  879. package/lib/geometry/label/layout/limit-in-canvas.js.map +0 -1
  880. package/lib/geometry/label/layout/limit-in-plot.d.ts +0 -18
  881. package/lib/geometry/label/layout/limit-in-plot.js +0 -79
  882. package/lib/geometry/label/layout/limit-in-plot.js.map +0 -1
  883. package/lib/geometry/label/layout/limit-in-shape.d.ts +0 -7
  884. package/lib/geometry/label/layout/limit-in-shape.js +0 -22
  885. package/lib/geometry/label/layout/limit-in-shape.js.map +0 -1
  886. package/lib/geometry/label/layout/overlap.d.ts +0 -15
  887. package/lib/geometry/label/layout/overlap.js +0 -228
  888. package/lib/geometry/label/layout/overlap.js.map +0 -1
  889. package/lib/geometry/label/layout/path/adjust-position.d.ts +0 -17
  890. package/lib/geometry/label/layout/path/adjust-position.js +0 -98
  891. package/lib/geometry/label/layout/path/adjust-position.js.map +0 -1
  892. package/lib/geometry/label/layout/pie/distribute.d.ts +0 -3
  893. package/lib/geometry/label/layout/pie/distribute.js +0 -189
  894. package/lib/geometry/label/layout/pie/distribute.js.map +0 -1
  895. package/lib/geometry/label/layout/pie/outer.d.ts +0 -6
  896. package/lib/geometry/label/layout/pie/outer.js +0 -211
  897. package/lib/geometry/label/layout/pie/outer.js.map +0 -1
  898. package/lib/geometry/label/layout/pie/spider.d.ts +0 -7
  899. package/lib/geometry/label/layout/pie/spider.js +0 -185
  900. package/lib/geometry/label/layout/pie/spider.js.map +0 -1
  901. package/lib/geometry/label/layout/pie/util.d.ts +0 -10
  902. package/lib/geometry/label/layout/pie/util.js +0 -77
  903. package/lib/geometry/label/layout/pie/util.js.map +0 -1
  904. package/lib/geometry/label/layout/point/adjust-position.d.ts +0 -17
  905. package/lib/geometry/label/layout/point/adjust-position.js +0 -98
  906. package/lib/geometry/label/layout/point/adjust-position.js.map +0 -1
  907. package/lib/geometry/label/pie.d.ts +0 -22
  908. package/lib/geometry/label/pie.js +0 -97
  909. package/lib/geometry/label/pie.js.map +0 -1
  910. package/lib/geometry/label/polar.d.ts +0 -64
  911. package/lib/geometry/label/polar.js +0 -223
  912. package/lib/geometry/label/polar.js.map +0 -1
  913. package/lib/geometry/label/util/index.d.ts +0 -26
  914. package/lib/geometry/label/util/index.js +0 -68
  915. package/lib/geometry/label/util/index.js.map +0 -1
  916. package/lib/geometry/line.d.ts +0 -11
  917. package/lib/geometry/line.js +0 -23
  918. package/lib/geometry/line.js.map +0 -1
  919. package/lib/geometry/path.d.ts +0 -40
  920. package/lib/geometry/path.js +0 -124
  921. package/lib/geometry/path.js.map +0 -1
  922. package/lib/geometry/point.d.ts +0 -19
  923. package/lib/geometry/point.js +0 -32
  924. package/lib/geometry/point.js.map +0 -1
  925. package/lib/geometry/polygon.d.ts +0 -19
  926. package/lib/geometry/polygon.js +0 -64
  927. package/lib/geometry/polygon.js.map +0 -1
  928. package/lib/geometry/schema.d.ts +0 -18
  929. package/lib/geometry/schema.js +0 -50
  930. package/lib/geometry/schema.js.map +0 -1
  931. package/lib/geometry/shape/area/index.d.ts +0 -2
  932. package/lib/geometry/shape/area/index.js +0 -46
  933. package/lib/geometry/shape/area/index.js.map +0 -1
  934. package/lib/geometry/shape/area/line.d.ts +0 -1
  935. package/lib/geometry/shape/area/line.js +0 -33
  936. package/lib/geometry/shape/area/line.js.map +0 -1
  937. package/lib/geometry/shape/area/smooth-line.d.ts +0 -1
  938. package/lib/geometry/shape/area/smooth-line.js +0 -32
  939. package/lib/geometry/shape/area/smooth-line.js.map +0 -1
  940. package/lib/geometry/shape/area/smooth.d.ts +0 -1
  941. package/lib/geometry/shape/area/smooth.js +0 -33
  942. package/lib/geometry/shape/area/smooth.js.map +0 -1
  943. package/lib/geometry/shape/area/util.d.ts +0 -22
  944. package/lib/geometry/shape/area/util.js +0 -93
  945. package/lib/geometry/shape/area/util.js.map +0 -1
  946. package/lib/geometry/shape/base.d.ts +0 -22
  947. package/lib/geometry/shape/base.js +0 -168
  948. package/lib/geometry/shape/base.js.map +0 -1
  949. package/lib/geometry/shape/constant.d.ts +0 -4
  950. package/lib/geometry/shape/constant.js +0 -8
  951. package/lib/geometry/shape/constant.js.map +0 -1
  952. package/lib/geometry/shape/edge/arc.d.ts +0 -1
  953. package/lib/geometry/shape/edge/arc.js +0 -86
  954. package/lib/geometry/shape/edge/arc.js.map +0 -1
  955. package/lib/geometry/shape/edge/index.d.ts +0 -2
  956. package/lib/geometry/shape/edge/index.js +0 -33
  957. package/lib/geometry/shape/edge/index.js.map +0 -1
  958. package/lib/geometry/shape/edge/smooth.d.ts +0 -1
  959. package/lib/geometry/shape/edge/smooth.js +0 -32
  960. package/lib/geometry/shape/edge/smooth.js.map +0 -1
  961. package/lib/geometry/shape/edge/util.d.ts +0 -17
  962. package/lib/geometry/shape/edge/util.js +0 -37
  963. package/lib/geometry/shape/edge/util.js.map +0 -1
  964. package/lib/geometry/shape/edge/vhv.d.ts +0 -1
  965. package/lib/geometry/shape/edge/vhv.js +0 -44
  966. package/lib/geometry/shape/edge/vhv.js.map +0 -1
  967. package/lib/geometry/shape/interval/funnel.d.ts +0 -1
  968. package/lib/geometry/shape/interval/funnel.js +0 -33
  969. package/lib/geometry/shape/interval/funnel.js.map +0 -1
  970. package/lib/geometry/shape/interval/hollow-rect.d.ts +0 -1
  971. package/lib/geometry/shape/interval/hollow-rect.js +0 -53
  972. package/lib/geometry/shape/interval/hollow-rect.js.map +0 -1
  973. package/lib/geometry/shape/interval/index.d.ts +0 -3
  974. package/lib/geometry/shape/interval/index.js +0 -65
  975. package/lib/geometry/shape/interval/index.js.map +0 -1
  976. package/lib/geometry/shape/interval/line.d.ts +0 -1
  977. package/lib/geometry/shape/interval/line.js +0 -56
  978. package/lib/geometry/shape/interval/line.js.map +0 -1
  979. package/lib/geometry/shape/interval/pyramid.d.ts +0 -1
  980. package/lib/geometry/shape/interval/pyramid.js +0 -33
  981. package/lib/geometry/shape/interval/pyramid.js.map +0 -1
  982. package/lib/geometry/shape/interval/tick.d.ts +0 -1
  983. package/lib/geometry/shape/interval/tick.js +0 -79
  984. package/lib/geometry/shape/interval/tick.js.map +0 -1
  985. package/lib/geometry/shape/interval/util.d.ts +0 -55
  986. package/lib/geometry/shape/interval/util.js +0 -321
  987. package/lib/geometry/shape/interval/util.js.map +0 -1
  988. package/lib/geometry/shape/line/index.d.ts +0 -8
  989. package/lib/geometry/shape/line/index.js +0 -109
  990. package/lib/geometry/shape/line/index.js.map +0 -1
  991. package/lib/geometry/shape/line/step.d.ts +0 -1
  992. package/lib/geometry/shape/line/step.js +0 -86
  993. package/lib/geometry/shape/line/step.js.map +0 -1
  994. package/lib/geometry/shape/line/util.d.ts +0 -16
  995. package/lib/geometry/shape/line/util.js +0 -87
  996. package/lib/geometry/shape/line/util.js.map +0 -1
  997. package/lib/geometry/shape/point/hollow.d.ts +0 -1
  998. package/lib/geometry/shape/point/hollow.js +0 -26
  999. package/lib/geometry/shape/point/hollow.js.map +0 -1
  1000. package/lib/geometry/shape/point/image.d.ts +0 -1
  1001. package/lib/geometry/shape/point/image.js +0 -50
  1002. package/lib/geometry/shape/point/image.js.map +0 -1
  1003. package/lib/geometry/shape/point/index.d.ts +0 -2
  1004. package/lib/geometry/shape/point/index.js +0 -34
  1005. package/lib/geometry/shape/point/index.js.map +0 -1
  1006. package/lib/geometry/shape/point/solid.d.ts +0 -1
  1007. package/lib/geometry/shape/point/solid.js +0 -25
  1008. package/lib/geometry/shape/point/solid.js.map +0 -1
  1009. package/lib/geometry/shape/point/util.d.ts +0 -15
  1010. package/lib/geometry/shape/point/util.js +0 -43
  1011. package/lib/geometry/shape/point/util.js.map +0 -1
  1012. package/lib/geometry/shape/polygon/index.d.ts +0 -2
  1013. package/lib/geometry/shape/polygon/index.js +0 -67
  1014. package/lib/geometry/shape/polygon/index.js.map +0 -1
  1015. package/lib/geometry/shape/polygon/square.d.ts +0 -1
  1016. package/lib/geometry/shape/polygon/square.js +0 -46
  1017. package/lib/geometry/shape/polygon/square.js.map +0 -1
  1018. package/lib/geometry/shape/schema/box.d.ts +0 -1
  1019. package/lib/geometry/shape/schema/box.js +0 -144
  1020. package/lib/geometry/shape/schema/box.js.map +0 -1
  1021. package/lib/geometry/shape/schema/candle.d.ts +0 -1
  1022. package/lib/geometry/shape/schema/candle.js +0 -82
  1023. package/lib/geometry/shape/schema/candle.js.map +0 -1
  1024. package/lib/geometry/shape/schema/index.d.ts +0 -2
  1025. package/lib/geometry/shape/schema/index.js +0 -8
  1026. package/lib/geometry/shape/schema/index.js.map +0 -1
  1027. package/lib/geometry/shape/util/get-path-points.d.ts +0 -38
  1028. package/lib/geometry/shape/util/get-path-points.js +0 -137
  1029. package/lib/geometry/shape/util/get-path-points.js.map +0 -1
  1030. package/lib/geometry/shape/util/get-style.d.ts +0 -18
  1031. package/lib/geometry/shape/util/get-style.js +0 -52
  1032. package/lib/geometry/shape/util/get-style.js.map +0 -1
  1033. package/lib/geometry/shape/util/path.d.ts +0 -32
  1034. package/lib/geometry/shape/util/path.js +0 -320
  1035. package/lib/geometry/shape/util/path.js.map +0 -1
  1036. package/lib/geometry/shape/util/split-points.d.ts +0 -13
  1037. package/lib/geometry/shape/util/split-points.js +0 -28
  1038. package/lib/geometry/shape/util/split-points.js.map +0 -1
  1039. package/lib/geometry/shape/violin/hollow.d.ts +0 -1
  1040. package/lib/geometry/shape/violin/hollow.js +0 -53
  1041. package/lib/geometry/shape/violin/hollow.js.map +0 -1
  1042. package/lib/geometry/shape/violin/index.d.ts +0 -2
  1043. package/lib/geometry/shape/violin/index.js +0 -62
  1044. package/lib/geometry/shape/violin/index.js.map +0 -1
  1045. package/lib/geometry/shape/violin/smooth.d.ts +0 -1
  1046. package/lib/geometry/shape/violin/smooth.js +0 -30
  1047. package/lib/geometry/shape/violin/smooth.js.map +0 -1
  1048. package/lib/geometry/util/diff.d.ts +0 -11
  1049. package/lib/geometry/util/diff.js +0 -34
  1050. package/lib/geometry/util/diff.js.map +0 -1
  1051. package/lib/geometry/util/get-shape-type.d.ts +0 -8
  1052. package/lib/geometry/util/get-shape-type.js +0 -20
  1053. package/lib/geometry/util/get-shape-type.js.map +0 -1
  1054. package/lib/geometry/util/group-data.d.ts +0 -3
  1055. package/lib/geometry/util/group-data.js +0 -35
  1056. package/lib/geometry/util/group-data.js.map +0 -1
  1057. package/lib/geometry/util/is-model-change.d.ts +0 -9
  1058. package/lib/geometry/util/is-model-change.js +0 -18
  1059. package/lib/geometry/util/is-model-change.js.map +0 -1
  1060. package/lib/geometry/util/parse-fields.d.ts +0 -2
  1061. package/lib/geometry/util/parse-fields.js +0 -13
  1062. package/lib/geometry/util/parse-fields.js.map +0 -1
  1063. package/lib/geometry/util/shape-size.d.ts +0 -2
  1064. package/lib/geometry/util/shape-size.js +0 -128
  1065. package/lib/geometry/util/shape-size.js.map +0 -1
  1066. package/lib/geometry/violin.d.ts +0 -25
  1067. package/lib/geometry/violin.js +0 -69
  1068. package/lib/geometry/violin.js.map +0 -1
  1069. package/lib/index.d.ts +0 -107
  1070. package/lib/index.js +0 -586
  1071. package/lib/index.js.map +0 -1
  1072. package/lib/interaction/action/active-region.d.ts +0 -33
  1073. package/lib/interaction/action/active-region.js +0 -202
  1074. package/lib/interaction/action/active-region.js.map +0 -1
  1075. package/lib/interaction/action/base.d.ts +0 -29
  1076. package/lib/interaction/action/base.js +0 -38
  1077. package/lib/interaction/action/base.js.map +0 -1
  1078. package/lib/interaction/action/callback.d.ts +0 -17
  1079. package/lib/interaction/action/callback.js +0 -29
  1080. package/lib/interaction/action/callback.js.map +0 -1
  1081. package/lib/interaction/action/component/list-active.d.ts +0 -14
  1082. package/lib/interaction/action/component/list-active.js +0 -26
  1083. package/lib/interaction/action/component/list-active.js.map +0 -1
  1084. package/lib/interaction/action/component/list-checked.d.ts +0 -30
  1085. package/lib/interaction/action/component/list-checked.js +0 -84
  1086. package/lib/interaction/action/component/list-checked.js.map +0 -1
  1087. package/lib/interaction/action/component/list-focus.d.ts +0 -5
  1088. package/lib/interaction/action/component/list-focus.js +0 -57
  1089. package/lib/interaction/action/component/list-focus.js.map +0 -1
  1090. package/lib/interaction/action/component/list-highlight-util.d.ts +0 -7
  1091. package/lib/interaction/action/component/list-highlight-util.js +0 -24
  1092. package/lib/interaction/action/component/list-highlight-util.js.map +0 -1
  1093. package/lib/interaction/action/component/list-highlight.d.ts +0 -20
  1094. package/lib/interaction/action/component/list-highlight.js +0 -99
  1095. package/lib/interaction/action/component/list-highlight.js.map +0 -1
  1096. package/lib/interaction/action/component/list-radio.d.ts +0 -24
  1097. package/lib/interaction/action/component/list-radio.js +0 -118
  1098. package/lib/interaction/action/component/list-radio.js.map +0 -1
  1099. package/lib/interaction/action/component/list-selected.d.ts +0 -10
  1100. package/lib/interaction/action/component/list-selected.js +0 -22
  1101. package/lib/interaction/action/component/list-selected.js.map +0 -1
  1102. package/lib/interaction/action/component/list-state.d.ts +0 -46
  1103. package/lib/interaction/action/component/list-state.js +0 -169
  1104. package/lib/interaction/action/component/list-state.js.map +0 -1
  1105. package/lib/interaction/action/component/list-unchecked.d.ts +0 -13
  1106. package/lib/interaction/action/component/list-unchecked.js +0 -25
  1107. package/lib/interaction/action/component/list-unchecked.js.map +0 -1
  1108. package/lib/interaction/action/component/tooltip/ellipsis-text.d.ts +0 -25
  1109. package/lib/interaction/action/component/tooltip/ellipsis-text.js +0 -95
  1110. package/lib/interaction/action/component/tooltip/ellipsis-text.js.map +0 -1
  1111. package/lib/interaction/action/component/tooltip/geometry.d.ts +0 -24
  1112. package/lib/interaction/action/component/tooltip/geometry.js +0 -73
  1113. package/lib/interaction/action/component/tooltip/geometry.js.map +0 -1
  1114. package/lib/interaction/action/component/tooltip/sibling.d.ts +0 -21
  1115. package/lib/interaction/action/component/tooltip/sibling.js +0 -41
  1116. package/lib/interaction/action/component/tooltip/sibling.js.map +0 -1
  1117. package/lib/interaction/action/cursor.d.ts +0 -69
  1118. package/lib/interaction/action/cursor.js +0 -115
  1119. package/lib/interaction/action/cursor.js.map +0 -1
  1120. package/lib/interaction/action/data/filter.d.ts +0 -13
  1121. package/lib/interaction/action/data/filter.js +0 -68
  1122. package/lib/interaction/action/data/filter.js.map +0 -1
  1123. package/lib/interaction/action/data/range-filter.d.ts +0 -56
  1124. package/lib/interaction/action/data/range-filter.js +0 -166
  1125. package/lib/interaction/action/data/range-filter.js.map +0 -1
  1126. package/lib/interaction/action/data/sibling-filter.d.ts +0 -22
  1127. package/lib/interaction/action/data/sibling-filter.js +0 -41
  1128. package/lib/interaction/action/data/sibling-filter.js.map +0 -1
  1129. package/lib/interaction/action/element/active.d.ts +0 -14
  1130. package/lib/interaction/action/element/active.js +0 -26
  1131. package/lib/interaction/action/element/active.js.map +0 -1
  1132. package/lib/interaction/action/element/filter.d.ts +0 -20
  1133. package/lib/interaction/action/element/filter.js +0 -91
  1134. package/lib/interaction/action/element/filter.js.map +0 -1
  1135. package/lib/interaction/action/element/highlight-by-color.d.ts +0 -10
  1136. package/lib/interaction/action/element/highlight-by-color.js +0 -32
  1137. package/lib/interaction/action/element/highlight-by-color.js.map +0 -1
  1138. package/lib/interaction/action/element/highlight-by-x.d.ts +0 -15
  1139. package/lib/interaction/action/element/highlight-by-x.js +0 -53
  1140. package/lib/interaction/action/element/highlight-by-x.js.map +0 -1
  1141. package/lib/interaction/action/element/highlight-util.d.ts +0 -18
  1142. package/lib/interaction/action/element/highlight-util.js +0 -50
  1143. package/lib/interaction/action/element/highlight-util.js.map +0 -1
  1144. package/lib/interaction/action/element/highlight.d.ts +0 -21
  1145. package/lib/interaction/action/element/highlight.js +0 -96
  1146. package/lib/interaction/action/element/highlight.js.map +0 -1
  1147. package/lib/interaction/action/element/link-by-color.d.ts +0 -51
  1148. package/lib/interaction/action/element/link-by-color.js +0 -158
  1149. package/lib/interaction/action/element/link-by-color.js.map +0 -1
  1150. package/lib/interaction/action/element/range-active.d.ts +0 -13
  1151. package/lib/interaction/action/element/range-active.js +0 -25
  1152. package/lib/interaction/action/element/range-active.js.map +0 -1
  1153. package/lib/interaction/action/element/range-highlight.d.ts +0 -27
  1154. package/lib/interaction/action/element/range-highlight.js +0 -57
  1155. package/lib/interaction/action/element/range-highlight.js.map +0 -1
  1156. package/lib/interaction/action/element/range-selected.d.ts +0 -13
  1157. package/lib/interaction/action/element/range-selected.js +0 -25
  1158. package/lib/interaction/action/element/range-selected.js.map +0 -1
  1159. package/lib/interaction/action/element/range-state.d.ts +0 -38
  1160. package/lib/interaction/action/element/range-state.js +0 -166
  1161. package/lib/interaction/action/element/range-state.js.map +0 -1
  1162. package/lib/interaction/action/element/selected.d.ts +0 -14
  1163. package/lib/interaction/action/element/selected.js +0 -26
  1164. package/lib/interaction/action/element/selected.js.map +0 -1
  1165. package/lib/interaction/action/element/sibling-filter.d.ts +0 -19
  1166. package/lib/interaction/action/element/sibling-filter.js +0 -95
  1167. package/lib/interaction/action/element/sibling-filter.js.map +0 -1
  1168. package/lib/interaction/action/element/single-active.d.ts +0 -13
  1169. package/lib/interaction/action/element/single-active.js +0 -25
  1170. package/lib/interaction/action/element/single-active.js.map +0 -1
  1171. package/lib/interaction/action/element/single-highlight.d.ts +0 -16
  1172. package/lib/interaction/action/element/single-highlight.js +0 -37
  1173. package/lib/interaction/action/element/single-highlight.js.map +0 -1
  1174. package/lib/interaction/action/element/single-selected.d.ts +0 -13
  1175. package/lib/interaction/action/element/single-selected.js +0 -25
  1176. package/lib/interaction/action/element/single-selected.js.map +0 -1
  1177. package/lib/interaction/action/element/single-state.d.ts +0 -18
  1178. package/lib/interaction/action/element/single-state.js +0 -55
  1179. package/lib/interaction/action/element/single-state.js.map +0 -1
  1180. package/lib/interaction/action/element/state-base.d.ts +0 -39
  1181. package/lib/interaction/action/element/state-base.js +0 -61
  1182. package/lib/interaction/action/element/state-base.js.map +0 -1
  1183. package/lib/interaction/action/element/state.d.ts +0 -28
  1184. package/lib/interaction/action/element/state.js +0 -101
  1185. package/lib/interaction/action/element/state.js.map +0 -1
  1186. package/lib/interaction/action/index.d.ts +0 -2
  1187. package/lib/interaction/action/index.js +0 -13
  1188. package/lib/interaction/action/index.js.map +0 -1
  1189. package/lib/interaction/action/mask/base.d.ts +0 -62
  1190. package/lib/interaction/action/mask/base.js +0 -171
  1191. package/lib/interaction/action/mask/base.js.map +0 -1
  1192. package/lib/interaction/action/mask/circle.d.ts +0 -14
  1193. package/lib/interaction/action/mask/circle.js +0 -39
  1194. package/lib/interaction/action/mask/circle.js.map +0 -1
  1195. package/lib/interaction/action/mask/dim-rect.d.ts +0 -11
  1196. package/lib/interaction/action/mask/dim-rect.js +0 -64
  1197. package/lib/interaction/action/mask/dim-rect.js.map +0 -1
  1198. package/lib/interaction/action/mask/path.d.ts +0 -16
  1199. package/lib/interaction/action/mask/path.js +0 -46
  1200. package/lib/interaction/action/mask/path.js.map +0 -1
  1201. package/lib/interaction/action/mask/rect.d.ts +0 -17
  1202. package/lib/interaction/action/mask/rect.js +0 -41
  1203. package/lib/interaction/action/mask/rect.js.map +0 -1
  1204. package/lib/interaction/action/mask/smooth-path.d.ts +0 -9
  1205. package/lib/interaction/action/mask/smooth-path.js +0 -23
  1206. package/lib/interaction/action/mask/smooth-path.js.map +0 -1
  1207. package/lib/interaction/action/register.d.ts +0 -36
  1208. package/lib/interaction/action/register.js +0 -69
  1209. package/lib/interaction/action/register.js.map +0 -1
  1210. package/lib/interaction/action/util.d.ts +0 -140
  1211. package/lib/interaction/action/util.js +0 -387
  1212. package/lib/interaction/action/util.js.map +0 -1
  1213. package/lib/interaction/action/view/button.d.ts +0 -25
  1214. package/lib/interaction/action/view/button.js +0 -118
  1215. package/lib/interaction/action/view/button.js.map +0 -1
  1216. package/lib/interaction/action/view/drag.d.ts +0 -24
  1217. package/lib/interaction/action/view/drag.js +0 -75
  1218. package/lib/interaction/action/view/drag.js.map +0 -1
  1219. package/lib/interaction/action/view/mousewheel-scroll.d.ts +0 -5
  1220. package/lib/interaction/action/view/mousewheel-scroll.js +0 -37
  1221. package/lib/interaction/action/view/mousewheel-scroll.js.map +0 -1
  1222. package/lib/interaction/action/view/move.d.ts +0 -28
  1223. package/lib/interaction/action/view/move.js +0 -82
  1224. package/lib/interaction/action/view/move.js.map +0 -1
  1225. package/lib/interaction/action/view/scale-transform.d.ts +0 -18
  1226. package/lib/interaction/action/view/scale-transform.js +0 -53
  1227. package/lib/interaction/action/view/scale-transform.js.map +0 -1
  1228. package/lib/interaction/action/view/scale-translate.d.ts +0 -30
  1229. package/lib/interaction/action/view/scale-translate.js +0 -114
  1230. package/lib/interaction/action/view/scale-translate.js.map +0 -1
  1231. package/lib/interaction/action/view/scale-zoom.d.ts +0 -20
  1232. package/lib/interaction/action/view/scale-zoom.js +0 -85
  1233. package/lib/interaction/action/view/scale-zoom.js.map +0 -1
  1234. package/lib/interaction/context.d.ts +0 -65
  1235. package/lib/interaction/context.js +0 -144
  1236. package/lib/interaction/context.js.map +0 -1
  1237. package/lib/interaction/grammar-interaction.d.ts +0 -158
  1238. package/lib/interaction/grammar-interaction.js +0 -289
  1239. package/lib/interaction/grammar-interaction.js.map +0 -1
  1240. package/lib/interaction/index.d.ts +0 -25
  1241. package/lib/interaction/index.js +0 -54
  1242. package/lib/interaction/index.js.map +0 -1
  1243. package/lib/interaction/interaction.d.ts +0 -29
  1244. package/lib/interaction/interaction.js +0 -34
  1245. package/lib/interaction/interaction.js.map +0 -1
  1246. package/lib/interface.d.ts +0 -2264
  1247. package/lib/interface.js +0 -3
  1248. package/lib/interface.js.map +0 -1
  1249. package/lib/theme/index.d.ts +0 -12
  1250. package/lib/theme/index.js +0 -28
  1251. package/lib/theme/index.js.map +0 -1
  1252. package/lib/theme/style-sheet/dark.d.ts +0 -825
  1253. package/lib/theme/style-sheet/dark.js +0 -500
  1254. package/lib/theme/style-sheet/dark.js.map +0 -1
  1255. package/lib/theme/style-sheet/light.d.ts +0 -817
  1256. package/lib/theme/style-sheet/light.js +0 -496
  1257. package/lib/theme/style-sheet/light.js.map +0 -1
  1258. package/lib/theme/util/create-by-style-sheet.d.ts +0 -6
  1259. package/lib/theme/util/create-by-style-sheet.js +0 -1426
  1260. package/lib/theme/util/create-by-style-sheet.js.map +0 -1
  1261. package/lib/theme/util/create-theme.d.ts +0 -6
  1262. package/lib/theme/util/create-theme.js +0 -16
  1263. package/lib/theme/util/create-theme.js.map +0 -1
  1264. package/lib/theme/util/index.d.ts +0 -1
  1265. package/lib/theme/util/index.js +0 -6
  1266. package/lib/theme/util/index.js.map +0 -1
  1267. package/lib/util/annotation.d.ts +0 -7
  1268. package/lib/util/annotation.js +0 -43
  1269. package/lib/util/annotation.js.map +0 -1
  1270. package/lib/util/attr.d.ts +0 -10
  1271. package/lib/util/attr.js +0 -29
  1272. package/lib/util/attr.js.map +0 -1
  1273. package/lib/util/axis.d.ts +0 -100
  1274. package/lib/util/axis.js +0 -251
  1275. package/lib/util/axis.js.map +0 -1
  1276. package/lib/util/bbox.d.ts +0 -105
  1277. package/lib/util/bbox.js +0 -287
  1278. package/lib/util/bbox.js.map +0 -1
  1279. package/lib/util/collision-detect.d.ts +0 -16
  1280. package/lib/util/collision-detect.js +0 -132
  1281. package/lib/util/collision-detect.js.map +0 -1
  1282. package/lib/util/color.d.ts +0 -1
  1283. package/lib/util/color.js +0 -23
  1284. package/lib/util/color.js.map +0 -1
  1285. package/lib/util/context.d.ts +0 -4
  1286. package/lib/util/context.js +0 -15
  1287. package/lib/util/context.js.map +0 -1
  1288. package/lib/util/coordinate.d.ts +0 -86
  1289. package/lib/util/coordinate.js +0 -157
  1290. package/lib/util/coordinate.js.map +0 -1
  1291. package/lib/util/direction.d.ts +0 -19
  1292. package/lib/util/direction.js +0 -125
  1293. package/lib/util/direction.js.map +0 -1
  1294. package/lib/util/dom.d.ts +0 -19
  1295. package/lib/util/dom.js +0 -68
  1296. package/lib/util/dom.js.map +0 -1
  1297. package/lib/util/event.d.ts +0 -8
  1298. package/lib/util/event.js +0 -18
  1299. package/lib/util/event.js.map +0 -1
  1300. package/lib/util/facet.d.ts +0 -16
  1301. package/lib/util/facet.js +0 -48
  1302. package/lib/util/facet.js.map +0 -1
  1303. package/lib/util/graphics.d.ts +0 -58
  1304. package/lib/util/graphics.js +0 -212
  1305. package/lib/util/graphics.js.map +0 -1
  1306. package/lib/util/grid.d.ts +0 -36
  1307. package/lib/util/grid.js +0 -125
  1308. package/lib/util/grid.js.map +0 -1
  1309. package/lib/util/helper.d.ts +0 -34
  1310. package/lib/util/helper.js +0 -79
  1311. package/lib/util/helper.js.map +0 -1
  1312. package/lib/util/legend.d.ts +0 -45
  1313. package/lib/util/legend.js +0 -152
  1314. package/lib/util/legend.js.map +0 -1
  1315. package/lib/util/marker.d.ts +0 -10
  1316. package/lib/util/marker.js +0 -61
  1317. package/lib/util/marker.js.map +0 -1
  1318. package/lib/util/padding.d.ts +0 -14
  1319. package/lib/util/padding.js +0 -45
  1320. package/lib/util/padding.js.map +0 -1
  1321. package/lib/util/scale.d.ts +0 -42
  1322. package/lib/util/scale.js +0 -137
  1323. package/lib/util/scale.js.map +0 -1
  1324. package/lib/util/stat.d.ts +0 -10
  1325. package/lib/util/stat.js +0 -41
  1326. package/lib/util/stat.js.map +0 -1
  1327. package/lib/util/text.d.ts +0 -23
  1328. package/lib/util/text.js +0 -88
  1329. package/lib/util/text.js.map +0 -1
  1330. package/lib/util/tooltip.d.ts +0 -26
  1331. package/lib/util/tooltip.js +0 -426
  1332. package/lib/util/tooltip.js.map +0 -1
  1333. package/lib/util/transform.d.ts +0 -33
  1334. package/lib/util/transform.js +0 -69
  1335. package/lib/util/transform.js.map +0 -1
  1336. package/lib/util/types.d.ts +0 -6
  1337. package/lib/util/types.js +0 -3
  1338. package/lib/util/types.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"axis.js","sourceRoot":"","sources":["../../src/util/axis.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC;;;;;GAKG;AACH,MAAM,UAAU,yBAAyB,CAAC,SAAoB;IAC5D,IAAI,KAAK,CAAC;IACV,IAAI,GAAG,CAAC;IAER,QAAQ,SAAS,EAAE;QACjB,KAAK,SAAS,CAAC,GA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AK,CAAC,CAAC,CAAC,EAAE,CAAC;KACpC;IACD,OAAO,GAAG,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;AAC5B,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAAC,UAAsB,EAAE,GAAc;IACrE,OAAO,GAAG,CAAC,UAAU,EAAE,UAAU,EAAE,GAAG,CAAC,CAAC;AAC1C,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,KAAY,EAAE,UAAmB;IAChE,OAAO,GAAG,CAAC,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;AAC5D,CAAC","sourcesContent":["import { deepMix, get, isBoolean } from '@antv/util';\nimport { DIRECTION } from '../constant';\nimport { Coordinate, Scale } from '../dependents';\nimport { AxisCfg, AxisOption, Point, Region } from '../interface';\nimport { getName } from './scale';\nimport { vec2 } from '@antv/matrix-util';\n\n/**\n * @ignore\n * get axis relative region ( 0 ~ 1) by direction when coordinate is rect\n * @param direction\n * @returns axis coordinate region\n */\nexport function getLineAxisRelativeRegion(direction: DIRECTION): Region {\n let start;\n let end;\n\n switch (direction) {\n case DIRECTION.TOP:\n start = { x: 0, y: 1 };\n end = { x: 1, y: 1 };\n break;\n case DIRECTION.RIGHT:\n start = { x: 1, y: 0 };\n end = { x: 1, y: 1 };\n break;\n case DIRECTION.BOTTOM:\n start = { x: 0, y: 0 };\n end = { x: 1, y: 0 };\n break;\n case DIRECTION.LEFT:\n start = { x: 0, y: 0 };\n end = { x: 0, y: 1 };\n break;\n default:\n start = end = { x: 0, y: 0 };\n }\n\n return { start, end };\n}\n\n/**\n * @ignore\n * get axis relative region ( 0 ~ 1) by direction when coordinate is polar\n * @param coordinate\n * @returns axis coordinate region\n */\nexport function getCircleAxisRelativeRegion(coordinate: Coordinate) {\n let start;\n let end;\n if (coordinate.isTransposed) {\n start = {\n x: 0,\n y: 0,\n };\n end = {\n x: 1,\n y: 0,\n };\n } else {\n start = {\n x: 0,\n y: 0,\n };\n end = {\n x: 0,\n y: 1,\n };\n }\n\n return { start, end };\n}\n\n/**\n * @ignore\n * get the axis region from coordinate\n * @param coordinate\n * @param direction\n * @returns the axis region (start point, end point)\n */\nexport function getAxisRegion(coordinate: Coordinate, direction: DIRECTION): Region {\n let region = { start: { x: 0, y: 0 }, end: { x: 0, y: 0 } };\n if (coordinate.isRect) {\n region = getLineAxisRelativeRegion(direction);\n } else if (coordinate.isPolar) {\n region = getCircleAxisRelativeRegion(coordinate);\n }\n\n const { start, end } = region;\n return {\n start: coordinate.convert(start),\n end: coordinate.convert(end),\n };\n}\n\n/**\n * @ignore\n * get axis factor\n * @param coordinate\n * @param direction\n * @returns factor\n */\nexport function getAxisFactor(coordinate: Coordinate, direction: DIRECTION): number {\n // rect coordinate, by direction\n if (coordinate.isRect) {\n return coordinate.isTransposed\n ? [DIRECTION.RIGHT, DIRECTION.BOTTOM].includes(direction)\n ? 1\n : -1\n : [DIRECTION.BOTTOM, DIRECTION.RIGHT].includes(direction)\n ? -1\n : 1;\n }\n\n // polar y axis, by angle\n if (coordinate.isPolar) {\n const startAngle = coordinate.x.start;\n return startAngle < 0 ? -1 : 1;\n }\n\n return 1;\n}\n\n/**\n * @ignore\n * whether the axis isVertical\n * @param region\n * @returns isVertical\n */\nexport function isVertical(region: Region): boolean {\n const { start, end } = region;\n\n return start.x === end.x;\n}\n\n/**\n * @ignore\n * get factor by region (real position)\n * @param region\n * @param center\n * @returns factor\n */\nexport function getAxisFactorByRegion(region: Region, center: Point): number {\n const { start, end } = region;\n\n const isAxisVertical = isVertical(region);\n\n // 垂直\n if (isAxisVertical) {\n // 左方,从下到上、右方,从上到下\n if ((start.y - end.y) * (center.x - start.x) > 0) {\n return 1;\n } else {\n return -1;\n }\n } else {\n // 下方,从左到右、上方,从右到做\n if ((end.x - start.x) * (start.y - center.y) > 0) {\n return -1;\n } else {\n return 1;\n }\n }\n}\n\n/**\n * @ignore\n * get the axis cfg from theme, will mix the common cfg of legend theme\n *\n * @param theme view theme object\n * @param direction axis direction\n * @returns axis theme cfg\n */\nexport function getAxisThemeCfg(theme: object, direction: string): object {\n const axisTheme = get(theme, ['components', 'axis'], {});\n return deepMix({}, get(axisTheme, ['common'], {}), deepMix({}, get(axisTheme, [direction], {})));\n}\n\n/**\n * get the options of axis title,mix the cfg from theme, avoid common themeCfg not work\n * @param theme\n * @param direction\n * @param axisOptions\n * @returns axis title options\n */\nexport function getAxisTitleOptions(theme: object, direction: string, axisOptions?: object): object {\n const axisTheme = get(theme, ['components', 'axis'], {});\n return deepMix(\n {},\n get(axisTheme, ['common', 'title'], {}),\n deepMix({}, get(axisTheme, [direction, 'title'], {})),\n axisOptions\n );\n}\n\n/**\n * @ignore\n * get circle axis center and radius\n * @param coordinate\n */\nexport function getCircleAxisCenterRadius(coordinate: Coordinate) {\n // @ts-ignore\n const { x, y, circleCenter: center } = coordinate;\n const isReflectY = y.start > y.end;\n const start = coordinate.isTransposed\n ? coordinate.convert({\n x: isReflectY ? 0 : 1,\n y: 0,\n })\n : coordinate.convert({\n x: 0,\n y: isReflectY ? 0 : 1,\n });\n\n const startVector: [number, number] = [start.x - center.x, start.y - center.y];\n const normalVector: [number, number] = [1, 0];\n const startAngle =\n start.y > center.y ? vec2.angle(startVector, normalVector) : vec2.angle(startVector, normalVector) * -1;\n const endAngle = startAngle + (x.end - x.start);\n const radius = Math.sqrt((start.x - center.x) ** 2 + (start.y - center.y) ** 2);\n\n return {\n center,\n radius,\n startAngle,\n endAngle,\n };\n}\n\n/**\n * @ignore\n * 从配置中获取单个字段的 axis 配置\n * @param axes\n * @param field\n * @returns the axis option of field\n */\nexport function getAxisOption(axes: Record<string, AxisOption> | boolean, field: string) {\n if (isBoolean(axes)) {\n return axes === false ? false : {};\n }\n return get(axes, [field]);\n}\n\n/**\n * @ignore\n * 如果配置了 position,则使用配置\n * @param axisOption\n * @param def\n */\nexport function getAxisDirection(axisOption: AxisOption, def: DIRECTION): DIRECTION {\n return get(axisOption, 'position', def);\n}\n\n/**\n * 获取 axis 的 title 文本\n * @param scale\n * @param axisOption\n */\nexport function getAxisTitleText(scale: Scale, axisOption: AxisCfg): string {\n return get(axisOption, ['title', 'text'], getName(scale));\n}\n"]}
@@ -1,105 +0,0 @@
1
- import { DIRECTION } from '../constant';
2
- import { Padding, Point, Region } from '../interface';
3
- import { BBox as BBoxObject } from '../dependents';
4
- /**
5
- * 用于包围盒计算。
6
- */
7
- export declare class BBox {
8
- /** x 轴坐标系 */
9
- x: number;
10
- /** y 轴坐标系 */
11
- y: number;
12
- /** 包围盒高度 */
13
- height: number;
14
- /** 包围盒宽度 */
15
- width: number;
16
- static fromRange(minX: number, minY: number, maxX: number, maxY: number): BBox;
17
- static fromObject(bbox: BBoxObject): BBox;
18
- constructor(x?: number, y?: number, width?: number, height?: number);
19
- get minX(): number;
20
- get maxX(): number;
21
- get minY(): number;
22
- get maxY(): number;
23
- get tl(): Point;
24
- get tr(): Point;
25
- get bl(): Point;
26
- get br(): Point;
27
- get top(): Point;
28
- get right(): Point;
29
- get bottom(): Point;
30
- get left(): Point;
31
- /**
32
- * 包围盒是否相等
33
- * @param {BBox} bbox 包围盒
34
- * @returns 包围盒是否相等
35
- */
36
- isEqual(bbox: BBox): boolean;
37
- /**
38
- * 是否包含了另一个包围盒
39
- * @param child
40
- */
41
- contains(child: BBox): boolean;
42
- /**
43
- * 克隆包围盒
44
- * @returns 包围盒
45
- */
46
- clone(): BBox;
47
- /**
48
- * 取并集
49
- * @param subBBox
50
- */
51
- add(...subBBox: BBox[]): BBox;
52
- /**
53
- * 取交集
54
- * @param subBBox
55
- */
56
- merge(...subBBox: BBox[]): BBox;
57
- /**
58
- * bbox 剪裁
59
- * @param subBBox
60
- * @param direction
61
- */
62
- cut(subBBox: BBox, direction: DIRECTION): BBox;
63
- /**
64
- * 收缩形成新的
65
- * @param gap
66
- */
67
- shrink(gap: Padding): BBox;
68
- /**
69
- * 扩张形成新的
70
- * @param gap
71
- */
72
- expand(gap: Padding): BBox;
73
- /**
74
- * get the gap of two bbox, if not exceed, then 0
75
- * @param bbox
76
- * @returns [top, right, bottom, left]
77
- */
78
- exceed(bbox: BBox): Padding;
79
- /**
80
- * 是否碰撞
81
- * @param bbox
82
- */
83
- collide(bbox: BBox): boolean;
84
- /**
85
- * 获取包围盒大小
86
- * @returns 包围盒大小
87
- */
88
- size(): number;
89
- /**
90
- * 点是否在 bbox 中
91
- * @param p
92
- */
93
- isPointIn(p: Point): boolean;
94
- }
95
- /**
96
- * 从一个 bbox 的 region 获取 bbox
97
- * @param bbox
98
- * @param region
99
- */
100
- export declare const getRegionBBox: (bbox: BBox, region: Region) => BBox;
101
- /**
102
- * 将 bbox 转换成 points
103
- * @param bbox
104
- */
105
- export declare function toPoints(bbox: Partial<BBox>): any[];
package/esm/util/bbox.js DELETED
@@ -1,282 +0,0 @@
1
- import { each } from '@antv/util';
2
- import { DIRECTION } from '../constant';
3
- /**
4
- * 用于包围盒计算。
5
- */
6
- var BBox = /** @class */ (function () {
7
- function BBox(x, y, width, height) {
8
- if (x === void 0) { x = 0; }
9
- if (y === void 0) { y = 0; }
10
- if (width === void 0) { width = 0; }
11
- if (height === void 0) { height = 0; }
12
- this.x = x;
13
- this.y = y;
14
- this.height = height;
15
- this.width = width;
16
- }
17
- BBox.fromRange = function (minX, minY, maxX, maxY) {
18
- return new BBox(minX, minY, maxX - minX, maxY - minY);
19
- };
20
- BBox.fromObject = function (bbox) {
21
- return new BBox(bbox.minX, bbox.minY, bbox.width, bbox.height);
22
- };
23
- Object.defineProperty(BBox.prototype, "minX", {
24
- get: function () {
25
- return this.x;
26
- },
27
- enumerable: false,
28
- configurable: true
29
- });
30
- Object.defineProperty(BBox.prototype, "maxX", {
31
- get: function () {
32
- return this.x + this.width;
33
- },
34
- enumerable: false,
35
- configurable: true
36
- });
37
- Object.defineProperty(BBox.prototype, "minY", {
38
- get: function () {
39
- return this.y;
40
- },
41
- enumerable: false,
42
- configurable: true
43
- });
44
- Object.defineProperty(BBox.prototype, "maxY", {
45
- get: function () {
46
- return this.y + this.height;
47
- },
48
- enumerable: false,
49
- configurable: true
50
- });
51
- Object.defineProperty(BBox.prototype, "tl", {
52
- get: function () {
53
- return { x: this.x, y: this.y };
54
- },
55
- enumerable: false,
56
- configurable: true
57
- });
58
- Object.defineProperty(BBox.prototype, "tr", {
59
- get: function () {
60
- return { x: this.maxX, y: this.y };
61
- },
62
- enumerable: false,
63
- configurable: true
64
- });
65
- Object.defineProperty(BBox.prototype, "bl", {
66
- get: function () {
67
- return { x: this.x, y: this.maxY };
68
- },
69
- enumerable: false,
70
- configurable: true
71
- });
72
- Object.defineProperty(BBox.prototype, "br", {
73
- get: function () {
74
- return { x: this.maxX, y: this.maxY };
75
- },
76
- enumerable: false,
77
- configurable: true
78
- });
79
- Object.defineProperty(BBox.prototype, "top", {
80
- get: function () {
81
- return {
82
- x: this.x + this.width / 2,
83
- y: this.minY,
84
- };
85
- },
86
- enumerable: false,
87
- configurable: true
88
- });
89
- Object.defineProperty(BBox.prototype, "right", {
90
- get: function () {
91
- return {
92
- x: this.maxX,
93
- y: this.y + this.height / 2,
94
- };
95
- },
96
- enumerable: false,
97
- configurable: true
98
- });
99
- Object.defineProperty(BBox.prototype, "bottom", {
100
- get: function () {
101
- return {
102
- x: this.x + this.width / 2,
103
- y: this.maxY,
104
- };
105
- },
106
- enumerable: false,
107
- configurable: true
108
- });
109
- Object.defineProperty(BBox.prototype, "left", {
110
- get: function () {
111
- return {
112
- x: this.minX,
113
- y: this.y + this.height / 2,
114
- };
115
- },
116
- enumerable: false,
117
- configurable: true
118
- });
119
- // end 计算属性
120
- /**
121
- * 包围盒是否相等
122
- * @param {BBox} bbox 包围盒
123
- * @returns 包围盒是否相等
124
- */
125
- BBox.prototype.isEqual = function (bbox) {
126
- return this.x === bbox.x && this.y === bbox.y && this.width === bbox.width && this.height === bbox.height;
127
- };
128
- /**
129
- * 是否包含了另一个包围盒
130
- * @param child
131
- */
132
- BBox.prototype.contains = function (child) {
133
- return child.minX >= this.minX && child.maxX <= this.maxX && child.minY >= this.minY && child.maxY <= this.maxY;
134
- };
135
- /**
136
- * 克隆包围盒
137
- * @returns 包围盒
138
- */
139
- BBox.prototype.clone = function () {
140
- return new BBox(this.x, this.y, this.width, this.height);
141
- };
142
- /**
143
- * 取并集
144
- * @param subBBox
145
- */
146
- BBox.prototype.add = function () {
147
- var subBBox = [];
148
- for (var _i = 0; _i < arguments.length; _i++) {
149
- subBBox[_i] = arguments[_i];
150
- }
151
- var bbox = this.clone();
152
- each(subBBox, function (b) {
153
- bbox.x = Math.min(b.x, bbox.x);
154
- bbox.y = Math.min(b.y, bbox.y);
155
- bbox.width = Math.max(b.maxX, bbox.maxX) - bbox.x;
156
- bbox.height = Math.max(b.maxY, bbox.maxY) - bbox.y;
157
- });
158
- return bbox;
159
- };
160
- /**
161
- * 取交集
162
- * @param subBBox
163
- */
164
- BBox.prototype.merge = function () {
165
- var subBBox = [];
166
- for (var _i = 0; _i < arguments.length; _i++) {
167
- subBBox[_i] = arguments[_i];
168
- }
169
- var bbox = this.clone();
170
- each(subBBox, function (b) {
171
- bbox.x = Math.max(b.x, bbox.x);
172
- bbox.y = Math.max(b.y, bbox.y);
173
- bbox.width = Math.min(b.maxX, bbox.maxX) - bbox.x;
174
- bbox.height = Math.min(b.maxY, bbox.maxY) - bbox.y;
175
- });
176
- return bbox;
177
- };
178
- /**
179
- * bbox 剪裁
180
- * @param subBBox
181
- * @param direction
182
- */
183
- BBox.prototype.cut = function (subBBox, direction) {
184
- var width = subBBox.width;
185
- var height = subBBox.height;
186
- switch (direction) {
187
- case DIRECTION.TOP:
188
- case DIRECTION.TOP_LEFT:
189
- case DIRECTION.TOP_RIGHT:
190
- return BBox.fromRange(this.minX, this.minY + height, this.maxX, this.maxY);
191
- case DIRECTION.RIGHT:
192
- case DIRECTION.RIGHT_TOP:
193
- case DIRECTION.RIGHT_BOTTOM:
194
- return BBox.fromRange(this.minX, this.minY, this.maxX - width, this.maxY);
195
- case DIRECTION.BOTTOM:
196
- case DIRECTION.BOTTOM_LEFT:
197
- case DIRECTION.BOTTOM_RIGHT:
198
- return BBox.fromRange(this.minX, this.minY, this.maxX, this.maxY - height);
199
- case DIRECTION.LEFT:
200
- case DIRECTION.LEFT_TOP:
201
- case DIRECTION.LEFT_BOTTOM:
202
- return BBox.fromRange(this.minX + width, this.minY, this.maxX, this.maxY);
203
- default:
204
- // 其他情况不裁剪,原样返回
205
- return this;
206
- }
207
- };
208
- /**
209
- * 收缩形成新的
210
- * @param gap
211
- */
212
- BBox.prototype.shrink = function (gap) {
213
- var top = gap[0], right = gap[1], bottom = gap[2], left = gap[3];
214
- return new BBox(this.x + left, this.y + top, this.width - left - right, this.height - top - bottom);
215
- };
216
- /**
217
- * 扩张形成新的
218
- * @param gap
219
- */
220
- BBox.prototype.expand = function (gap) {
221
- var top = gap[0], right = gap[1], bottom = gap[2], left = gap[3];
222
- return new BBox(this.x - left, this.y - top, this.width + left + right, this.height + top + bottom);
223
- };
224
- /**
225
- * get the gap of two bbox, if not exceed, then 0
226
- * @param bbox
227
- * @returns [top, right, bottom, left]
228
- */
229
- BBox.prototype.exceed = function (bbox) {
230
- return [
231
- Math.max(-this.minY + bbox.minY, 0),
232
- Math.max(this.maxX - bbox.maxX, 0),
233
- Math.max(this.maxY - bbox.maxY, 0),
234
- Math.max(-this.minX + bbox.minX, 0),
235
- ];
236
- };
237
- /**
238
- * 是否碰撞
239
- * @param bbox
240
- */
241
- BBox.prototype.collide = function (bbox) {
242
- return this.minX < bbox.maxX && this.maxX > bbox.minX && this.minY < bbox.maxY && this.maxY > bbox.minY;
243
- };
244
- /**
245
- * 获取包围盒大小
246
- * @returns 包围盒大小
247
- */
248
- BBox.prototype.size = function () {
249
- return this.width * this.height;
250
- };
251
- /**
252
- * 点是否在 bbox 中
253
- * @param p
254
- */
255
- BBox.prototype.isPointIn = function (p) {
256
- return p.x >= this.minX && p.x <= this.maxX && p.y >= this.minY && p.y <= this.maxY;
257
- };
258
- return BBox;
259
- }());
260
- export { BBox };
261
- /**
262
- * 从一个 bbox 的 region 获取 bbox
263
- * @param bbox
264
- * @param region
265
- */
266
- export var getRegionBBox = function (bbox, region) {
267
- var start = region.start, end = region.end;
268
- return new BBox(bbox.x + bbox.width * start.x, bbox.y + bbox.height * start.y, bbox.width * Math.abs(end.x - start.x), bbox.height * Math.abs(end.y - start.y));
269
- };
270
- /**
271
- * 将 bbox 转换成 points
272
- * @param bbox
273
- */
274
- export function toPoints(bbox) {
275
- return [
276
- [bbox.minX, bbox.minY],
277
- [bbox.maxX, bbox.minY],
278
- [bbox.maxX, bbox.maxY],
279
- [bbox.minX, bbox.maxY],
280
- ];
281
- }
282
- //# sourceMappingURL=bbox.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bbox.js","sourceRoot":"","sources":["../../src/util/bbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;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,UAAkB;QAC7E,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAba,cAAS,GAAvB,UAAwB,IAAY,EAAE,IAAY,EAAE,IAAY,EAAE,IAAY;QAC5E,OAAO,IAAI,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC,CAAC;IACxD,CAAC;IAEa,e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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;AAEF;;;GAGG;AACH,MAAM,UAAU,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","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,127 +0,0 @@
1
- import { __spreadArray } from "tslib";
2
- import { isNumber } from '@antv/util';
3
- import { vec2 } from '@antv/matrix-util';
4
- var dot = vec2.dot;
5
- /**
6
- * @private
7
- * 1. 获取投影轴
8
- */
9
- function getAxes(points /** 多边形的关键点 */) {
10
- // 目前先处理 平行矩形 的场景, 其他多边形不处理
11
- if (points.length > 4) {
12
- return [];
13
- }
14
- // 获取向量
15
- var vector = function (start, end) {
16
- return [end.x - start.x, end.y - start.y];
17
- };
18
- // 由于 矩形的平行原理,所以只有 2 条投影轴: A -> B, B -> C
19
- var AB = vector(points[0], points[1]);
20
- var BC = vector(points[1], points[2]);
21
- return [AB, BC];
22
- }
23
- /**
24
- * @private
25
- * 绕指定点顺时针旋转后的点坐标
26
- * 默认绕原点旋转
27
- */
28
- function rotateAtPoint(point, deg, origin) {
29
- if (deg === void 0) { deg = 0; }
30
- if (origin === void 0) { origin = { x: 0, y: 0 }; }
31
- var x = point.x, y = point.y;
32
- return {
33
- x: (x - origin.x) * Math.cos(-deg) + (y - origin.y) * Math.sin(-deg) + origin.x,
34
- y: (origin.x - x) * Math.sin(-deg) + (y - origin.y) * Math.cos(-deg) + origin.y,
35
- };
36
- }
37
- /**
38
- * @private
39
- * 转化为顶点坐标数组
40
- *
41
- * @param {Object} box
42
- */
43
- function getRectPoints(box) {
44
- var points = [
45
- { x: box.x, y: box.y },
46
- { x: box.x + box.width, y: box.y },
47
- { x: box.x + box.width, y: box.y + box.height },
48
- { x: box.x, y: box.y + box.height },
49
- ];
50
- var rotation = box.rotation;
51
- if (rotation) {
52
- return [
53
- rotateAtPoint(points[0], rotation, points[0]),
54
- rotateAtPoint(points[1], rotation, points[0]),
55
- rotateAtPoint(points[2], rotation, points[0]),
56
- rotateAtPoint(points[3], rotation, points[0]),
57
- ];
58
- }
59
- return points;
60
- }
61
- /**
62
- * @private
63
- * 2. 获取多边形在投影轴上的投影
64
- *
65
- * 向量的点积的其中一个几何含义是:一个向量在平行于另一个向量方向上的投影的数值乘积。
66
- * 由于投影轴是单位向量(长度为1),投影的长度为 x1 * x2 + y1 * y2
67
- */
68
- function getProjection(points /** 多边形的关键点 */, axis) {
69
- // 目前先处理矩形的场景
70
- if (points.length > 4) {
71
- return { min: 0, max: 0 };
72
- }
73
- var scalars = [];
74
- points.forEach(function (point) {
75
- scalars.push(dot([point.x, point.y], axis));
76
- });
77
- return { min: Math.min.apply(Math, scalars), max: Math.max.apply(Math, scalars) };
78
- }
79
- function isProjectionOverlap(projection1, projection2) {
80
- return projection1.max > projection2.min && projection1.min < projection2.max;
81
- }
82
- function isValidNumber(d) {
83
- return isNumber(d) && !Number.isNaN(d) && d !== Infinity && d !== -Infinity;
84
- }
85
- function isValidBox(box) {
86
- return Object.values(box).every(isValidNumber);
87
- }
88
- /**
89
- * 快速判断两个无旋转矩形是否遮挡
90
- */
91
- export function isIntersectRect(box1, box2, margin) {
92
- if (margin === void 0) { margin = 0; }
93
- return !(box2.x > box1.x + box1.width + margin ||
94
- box2.x + box2.width < box1.x - margin ||
95
- box2.y > box1.y + box1.height + margin ||
96
- box2.y + box2.height < box1.y - margin);
97
- }
98
- /**
99
- * detect whether two shape is intersected, useful when shape is been rotated
100
- * 判断两个矩形是否重叠(相交和包含, 是否旋转)
101
- *
102
- * - 原理: 分离轴定律
103
- */
104
- export function isIntersect(box1, box2) {
105
- // 如果两个 box 中有一个是不合法的 box,也就是不会被渲染出来的,那么它们就不相交。
106
- if (!isValidBox(box1) || !isValidBox(box2))
107
- return false;
108
- // 如果两个矩形没有旋转,使用快速判断
109
- if (!box1.rotation && !box2.rotation) {
110
- return isIntersectRect(box1, box2);
111
- }
112
- // 分别获取 4 个关键点
113
- var rect1Points = getRectPoints(box1);
114
- var rect2Points = getRectPoints(box2);
115
- // 获取所有投影轴
116
- var axes = __spreadArray(__spreadArray([], getAxes(rect1Points), true), getAxes(rect2Points), true);
117
- for (var i = 0; i < axes.length; i++) {
118
- var axis = axes[i];
119
- var projection1 = getProjection(rect1Points, axis);
120
- var projection2 = getProjection(rect2Points, axis);
121
- // 判断投影轴上的投影是否存在重叠,若检测到存在间隙则立刻退出判断,消除不必要的运算。
122
- if (!isProjectionOverlap(projection1, projection2))
123
- return false;
124
- }
125
- return true;
126
- }
127
- //# sourceMappingURL=collision-detect.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"collision-detect.js","sourceRoot":"","sources":["../../src/util/collision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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","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/esm/util/color.js DELETED
@@ -1,18 +0,0 @@
1
- import colorUtil from '@antv/color-util';
2
- // 内置的一些特殊设置
3
- var preset = {
4
- '#5B8FF9': true,
5
- };
6
- // 根据YIQ亮度判断指定颜色取反色是不是白色
7
- // http://24ways.org/2010/calculating-color-contrast
8
- // http://www.w3.org/TR/AERT#color-contrast
9
- export var isContrastColorWhite = function (color) {
10
- var rgb = colorUtil.toRGB(color).toUpperCase();
11
- if (preset[rgb]) {
12
- return preset[rgb];
13
- }
14
- var _a = colorUtil.rgb2arr(rgb), r = _a[0], g = _a[1], b = _a[2];
15
- var isDark = (r * 299 + g * 587 + b * 114) / 1000 < 128;
16
- return isDark;
17
- };
18
- //# sourceMappingURL=color.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"color.js","sourceRoot":"","sources":["../../src/util/color.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,kBAAkB,CAAC;AAEzC,YAAY;AACZ,IAAM,MAAM,GAAG;IACb,SAAS,EAAE,IAAI;CAChB,CAAC;AAEF,wBAAwB;AACxB,oDAAoD;AACpD,2CAA2C;AAC3C,MAAM,CAAC,IAAM,oBAAoB,GAAG,UAAC,KAAa;IAChD,IAAM,GAAG,GAAG,SAAS,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,SAAS,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","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,11 +0,0 @@
1
- var ctx;
2
- /**
3
- * 获取 canvas context
4
- */
5
- export function getCanvasContext() {
6
- if (!ctx) {
7
- ctx = document.createElement('canvas').getContext('2d');
8
- }
9
- return ctx;
10
- }
11
- //# 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,MAAM,UAAU,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","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"]}