@antv/g2 4.1.39 → 4.1.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1344) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/package.json +7 -5
  3. package/src/chart/controller/annotation.ts +4 -0
  4. package/src/chart/controller/tooltip.ts +19 -4
  5. package/src/core.ts +1 -1
  6. package/src/geometry/base.ts +18 -8
  7. package/src/index.ts +8 -0
  8. package/src/interaction/action/component/list-radio.ts +105 -0
  9. package/src/util/scale.ts +14 -1
  10. package/src/util/tooltip.ts +9 -5
  11. package/dist/g2.min.js +0 -30
  12. package/dist/g2.min.js.map +0 -1
  13. package/esm/animate/animation/fade.d.ts +0 -21
  14. package/esm/animate/animation/fade.js +0 -42
  15. package/esm/animate/animation/fade.js.map +0 -1
  16. package/esm/animate/animation/grow-in.d.ts +0 -30
  17. package/esm/animate/animation/grow-in.js +0 -38
  18. package/esm/animate/animation/grow-in.js.map +0 -1
  19. package/esm/animate/animation/index.d.ts +0 -16
  20. package/esm/animate/animation/index.js +0 -17
  21. package/esm/animate/animation/index.js.map +0 -1
  22. package/esm/animate/animation/path-in.d.ts +0 -12
  23. package/esm/animate/animation/path-in.js +0 -21
  24. package/esm/animate/animation/path-in.js.map +0 -1
  25. package/esm/animate/animation/position-update.d.ts +0 -11
  26. package/esm/animate/animation/position-update.js +0 -24
  27. package/esm/animate/animation/position-update.js.map +0 -1
  28. package/esm/animate/animation/scale-in.d.ts +0 -19
  29. package/esm/animate/animation/scale-in.js +0 -60
  30. package/esm/animate/animation/scale-in.js.map +0 -1
  31. package/esm/animate/animation/sector-path-update.d.ts +0 -11
  32. package/esm/animate/animation/sector-path-update.js +0 -131
  33. package/esm/animate/animation/sector-path-update.js.map +0 -1
  34. package/esm/animate/animation/util.d.ts +0 -19
  35. package/esm/animate/animation/util.js +0 -88
  36. package/esm/animate/animation/util.js.map +0 -1
  37. package/esm/animate/animation/wave-in.d.ts +0 -13
  38. package/esm/animate/animation/wave-in.js +0 -26
  39. package/esm/animate/animation/wave-in.js.map +0 -1
  40. package/esm/animate/animation/zoom.d.ts +0 -21
  41. package/esm/animate/animation/zoom.js +0 -66
  42. package/esm/animate/animation/zoom.js.map +0 -1
  43. package/esm/animate/index.d.ts +0 -48
  44. package/esm/animate/index.js +0 -249
  45. package/esm/animate/index.js.map +0 -1
  46. package/esm/animate/interface.d.ts +0 -12
  47. package/esm/animate/interface.js +0 -2
  48. package/esm/animate/interface.js.map +0 -1
  49. package/esm/api.d.ts +0 -2
  50. package/esm/api.js +0 -3
  51. package/esm/api.js.map +0 -1
  52. package/esm/base.d.ts +0 -33
  53. package/esm/base.js +0 -55
  54. package/esm/base.js.map +0 -1
  55. package/esm/chart/chart.d.ts +0 -61
  56. package/esm/chart/chart.js +0 -157
  57. package/esm/chart/chart.js.map +0 -1
  58. package/esm/chart/controller/annotation.d.ts +0 -162
  59. package/esm/chart/controller/annotation.js +0 -577
  60. package/esm/chart/controller/annotation.js.map +0 -1
  61. package/esm/chart/controller/axis.d.ts +0 -93
  62. package/esm/chart/controller/axis.js +0 -578
  63. package/esm/chart/controller/axis.js.map +0 -1
  64. package/esm/chart/controller/base.d.ts +0 -64
  65. package/esm/chart/controller/base.js +0 -62
  66. package/esm/chart/controller/base.js.map +0 -1
  67. package/esm/chart/controller/coordinate.d.ts +0 -74
  68. package/esm/chart/controller/coordinate.js +0 -145
  69. package/esm/chart/controller/coordinate.js.map +0 -1
  70. package/esm/chart/controller/gesture.d.ts +0 -37
  71. package/esm/chart/controller/gesture.js +0 -258
  72. package/esm/chart/controller/gesture.js.map +0 -1
  73. package/esm/chart/controller/index.d.ts +0 -25
  74. package/esm/chart/controller/index.js +0 -34
  75. package/esm/chart/controller/index.js.map +0 -1
  76. package/esm/chart/controller/legend.d.ts +0 -106
  77. package/esm/chart/controller/legend.js +0 -484
  78. package/esm/chart/controller/legend.js.map +0 -1
  79. package/esm/chart/controller/scrollbar.d.ts +0 -64
  80. package/esm/chart/controller/scrollbar.js +0 -316
  81. package/esm/chart/controller/scrollbar.js.map +0 -1
  82. package/esm/chart/controller/slider.d.ts +0 -88
  83. package/esm/chart/controller/slider.js +0 -296
  84. package/esm/chart/controller/slider.js.map +0 -1
  85. package/esm/chart/controller/tooltip.d.ts +0 -68
  86. package/esm/chart/controller/tooltip.js +0 -630
  87. package/esm/chart/controller/tooltip.js.map +0 -1
  88. package/esm/chart/event.d.ts +0 -47
  89. package/esm/chart/event.js +0 -91
  90. package/esm/chart/event.js.map +0 -1
  91. package/esm/chart/index.d.ts +0 -4
  92. package/esm/chart/index.js +0 -5
  93. package/esm/chart/index.js.map +0 -1
  94. package/esm/chart/layout/auto.d.ts +0 -8
  95. package/esm/chart/layout/auto.js +0 -64
  96. package/esm/chart/layout/auto.js.map +0 -1
  97. package/esm/chart/layout/constraint/bounds.d.ts +0 -32
  98. package/esm/chart/layout/constraint/bounds.js +0 -30
  99. package/esm/chart/layout/constraint/bounds.js.map +0 -1
  100. package/esm/chart/layout/constraint/constraint.d.ts +0 -31
  101. package/esm/chart/layout/constraint/constraint.js +0 -81
  102. package/esm/chart/layout/constraint/constraint.js.map +0 -1
  103. package/esm/chart/layout/constraint/gauss.d.ts +0 -11
  104. package/esm/chart/layout/constraint/gauss.js +0 -63
  105. package/esm/chart/layout/constraint/gauss.js.map +0 -1
  106. package/esm/chart/layout/constraint/index.d.ts +0 -5
  107. package/esm/chart/layout/constraint/index.js +0 -30
  108. package/esm/chart/layout/constraint/index.js.map +0 -1
  109. package/esm/chart/layout/constraint/solver.d.ts +0 -40
  110. package/esm/chart/layout/constraint/solver.js +0 -77
  111. package/esm/chart/layout/constraint/solver.js.map +0 -1
  112. package/esm/chart/layout/constraint/types.d.ts +0 -21
  113. package/esm/chart/layout/constraint/types.js +0 -13
  114. package/esm/chart/layout/constraint/types.js.map +0 -1
  115. package/esm/chart/layout/constraint/variable.d.ts +0 -24
  116. package/esm/chart/layout/constraint/variable.js +0 -28
  117. package/esm/chart/layout/constraint/variable.js.map +0 -1
  118. package/esm/chart/layout/index.d.ts +0 -15
  119. package/esm/chart/layout/index.js +0 -26
  120. package/esm/chart/layout/index.js.map +0 -1
  121. package/esm/chart/layout/padding-cal.d.ts +0 -53
  122. package/esm/chart/layout/padding-cal.js +0 -108
  123. package/esm/chart/layout/padding-cal.js.map +0 -1
  124. package/esm/chart/util/scale-pool.d.ts +0 -57
  125. package/esm/chart/util/scale-pool.js +0 -212
  126. package/esm/chart/util/scale-pool.js.map +0 -1
  127. package/esm/chart/util/sync-view-padding.d.ts +0 -9
  128. package/esm/chart/util/sync-view-padding.js +0 -14
  129. package/esm/chart/util/sync-view-padding.js.map +0 -1
  130. package/esm/chart/view.d.ts +0 -747
  131. package/esm/chart/view.js +0 -1633
  132. package/esm/chart/view.js.map +0 -1
  133. package/esm/component/labels.d.ts +0 -47
  134. package/esm/component/labels.js +0 -274
  135. package/esm/component/labels.js.map +0 -1
  136. package/esm/component/update-label.d.ts +0 -21
  137. package/esm/component/update-label.js +0 -57
  138. package/esm/component/update-label.js.map +0 -1
  139. package/esm/constant.d.ts +0 -122
  140. package/esm/constant.js +0 -134
  141. package/esm/constant.js.map +0 -1
  142. package/esm/core.d.ts +0 -46
  143. package/esm/core.js +0 -60
  144. package/esm/core.js.map +0 -1
  145. package/esm/dependents.d.ts +0 -21
  146. package/esm/dependents.js +0 -33
  147. package/esm/dependents.js.map +0 -1
  148. package/esm/engine/index.d.ts +0 -13
  149. package/esm/engine/index.js +0 -22
  150. package/esm/engine/index.js.map +0 -1
  151. package/esm/facet/circle.d.ts +0 -36
  152. package/esm/facet/circle.js +0 -119
  153. package/esm/facet/circle.js.map +0 -1
  154. package/esm/facet/facet.d.ts +0 -165
  155. package/esm/facet/facet.js +0 -291
  156. package/esm/facet/facet.js.map +0 -1
  157. package/esm/facet/index.d.ts +0 -13
  158. package/esm/facet/index.js +0 -22
  159. package/esm/facet/index.js.map +0 -1
  160. package/esm/facet/list.d.ts +0 -46
  161. package/esm/facet/list.js +0 -134
  162. package/esm/facet/list.js.map +0 -1
  163. package/esm/facet/matrix.d.ts +0 -34
  164. package/esm/facet/matrix.js +0 -119
  165. package/esm/facet/matrix.js.map +0 -1
  166. package/esm/facet/mirror.d.ts +0 -31
  167. package/esm/facet/mirror.js +0 -144
  168. package/esm/facet/mirror.js.map +0 -1
  169. package/esm/facet/rect.d.ts +0 -35
  170. package/esm/facet/rect.js +0 -141
  171. package/esm/facet/rect.js.map +0 -1
  172. package/esm/facet/tree.d.ts +0 -40
  173. package/esm/facet/tree.js +0 -288
  174. package/esm/facet/tree.js.map +0 -1
  175. package/esm/geometry/area.d.ts +0 -46
  176. package/esm/geometry/area.js +0 -62
  177. package/esm/geometry/area.js.map +0 -1
  178. package/esm/geometry/base.d.ts +0 -793
  179. package/esm/geometry/base.js +0 -1481
  180. package/esm/geometry/base.js.map +0 -1
  181. package/esm/geometry/edge.d.ts +0 -15
  182. package/esm/geometry/edge.js +0 -24
  183. package/esm/geometry/edge.js.map +0 -1
  184. package/esm/geometry/element/index.d.ts +0 -127
  185. package/esm/geometry/element/index.js +0 -436
  186. package/esm/geometry/element/index.js.map +0 -1
  187. package/esm/geometry/heatmap.d.ts +0 -31
  188. package/esm/geometry/heatmap.js +0 -190
  189. package/esm/geometry/heatmap.js.map +0 -1
  190. package/esm/geometry/interval.d.ts +0 -41
  191. package/esm/geometry/interval.js +0 -98
  192. package/esm/geometry/interval.js.map +0 -1
  193. package/esm/geometry/label/base.d.ts +0 -76
  194. package/esm/geometry/label/base.js +0 -404
  195. package/esm/geometry/label/base.js.map +0 -1
  196. package/esm/geometry/label/index.d.ts +0 -38
  197. package/esm/geometry/label/index.js +0 -35
  198. package/esm/geometry/label/index.js.map +0 -1
  199. package/esm/geometry/label/interface.d.ts +0 -50
  200. package/esm/geometry/label/interface.js +0 -2
  201. package/esm/geometry/label/interface.js.map +0 -1
  202. package/esm/geometry/label/interval.d.ts +0 -27
  203. package/esm/geometry/label/interval.js +0 -146
  204. package/esm/geometry/label/interval.js.map +0 -1
  205. package/esm/geometry/label/layout/adjust-color.d.ts +0 -3
  206. package/esm/geometry/label/layout/adjust-color.js +0 -36
  207. package/esm/geometry/label/layout/adjust-color.js.map +0 -1
  208. package/esm/geometry/label/layout/hide-overlap.d.ts +0 -8
  209. package/esm/geometry/label/layout/hide-overlap.js +0 -29
  210. package/esm/geometry/label/layout/hide-overlap.js.map +0 -1
  211. package/esm/geometry/label/layout/interval/adjust-position.d.ts +0 -9
  212. package/esm/geometry/label/layout/interval/adjust-position.js +0 -61
  213. package/esm/geometry/label/layout/interval/adjust-position.js.map +0 -1
  214. package/esm/geometry/label/layout/interval/hide-overlap.d.ts +0 -9
  215. package/esm/geometry/label/layout/interval/hide-overlap.js +0 -78
  216. package/esm/geometry/label/layout/interval/hide-overlap.js.map +0 -1
  217. package/esm/geometry/label/layout/limit-in-canvas.d.ts +0 -9
  218. package/esm/geometry/label/layout/limit-in-canvas.js +0 -44
  219. package/esm/geometry/label/layout/limit-in-canvas.js.map +0 -1
  220. package/esm/geometry/label/layout/limit-in-plot.d.ts +0 -18
  221. package/esm/geometry/label/layout/limit-in-plot.js +0 -75
  222. package/esm/geometry/label/layout/limit-in-plot.js.map +0 -1
  223. package/esm/geometry/label/layout/limit-in-shape.d.ts +0 -7
  224. package/esm/geometry/label/layout/limit-in-shape.js +0 -18
  225. package/esm/geometry/label/layout/limit-in-shape.js.map +0 -1
  226. package/esm/geometry/label/layout/overlap.d.ts +0 -15
  227. package/esm/geometry/label/layout/overlap.js +0 -223
  228. package/esm/geometry/label/layout/overlap.js.map +0 -1
  229. package/esm/geometry/label/layout/path/adjust-position.d.ts +0 -17
  230. package/esm/geometry/label/layout/path/adjust-position.js +0 -94
  231. package/esm/geometry/label/layout/path/adjust-position.js.map +0 -1
  232. package/esm/geometry/label/layout/pie/distribute.d.ts +0 -3
  233. package/esm/geometry/label/layout/pie/distribute.js +0 -185
  234. package/esm/geometry/label/layout/pie/distribute.js.map +0 -1
  235. package/esm/geometry/label/layout/pie/outer.d.ts +0 -6
  236. package/esm/geometry/label/layout/pie/outer.js +0 -207
  237. package/esm/geometry/label/layout/pie/outer.js.map +0 -1
  238. package/esm/geometry/label/layout/pie/spider.d.ts +0 -7
  239. package/esm/geometry/label/layout/pie/spider.js +0 -181
  240. package/esm/geometry/label/layout/pie/spider.js.map +0 -1
  241. package/esm/geometry/label/layout/pie/util.d.ts +0 -10
  242. package/esm/geometry/label/layout/pie/util.js +0 -73
  243. package/esm/geometry/label/layout/pie/util.js.map +0 -1
  244. package/esm/geometry/label/layout/point/adjust-position.d.ts +0 -17
  245. package/esm/geometry/label/layout/point/adjust-position.js +0 -94
  246. package/esm/geometry/label/layout/point/adjust-position.js.map +0 -1
  247. package/esm/geometry/label/pie.d.ts +0 -22
  248. package/esm/geometry/label/pie.js +0 -95
  249. package/esm/geometry/label/pie.js.map +0 -1
  250. package/esm/geometry/label/polar.d.ts +0 -64
  251. package/esm/geometry/label/polar.js +0 -221
  252. package/esm/geometry/label/polar.js.map +0 -1
  253. package/esm/geometry/label/util/index.d.ts +0 -26
  254. package/esm/geometry/label/util/index.js +0 -61
  255. package/esm/geometry/label/util/index.js.map +0 -1
  256. package/esm/geometry/line.d.ts +0 -11
  257. package/esm/geometry/line.js +0 -21
  258. package/esm/geometry/line.js.map +0 -1
  259. package/esm/geometry/path.d.ts +0 -40
  260. package/esm/geometry/path.js +0 -122
  261. package/esm/geometry/path.js.map +0 -1
  262. package/esm/geometry/point.d.ts +0 -19
  263. package/esm/geometry/point.js +0 -30
  264. package/esm/geometry/point.js.map +0 -1
  265. package/esm/geometry/polygon.d.ts +0 -19
  266. package/esm/geometry/polygon.js +0 -62
  267. package/esm/geometry/polygon.js.map +0 -1
  268. package/esm/geometry/schema.d.ts +0 -18
  269. package/esm/geometry/schema.js +0 -48
  270. package/esm/geometry/schema.js.map +0 -1
  271. package/esm/geometry/shape/area/index.d.ts +0 -2
  272. package/esm/geometry/shape/area/index.js +0 -44
  273. package/esm/geometry/shape/area/index.js.map +0 -1
  274. package/esm/geometry/shape/area/line.d.ts +0 -1
  275. package/esm/geometry/shape/area/line.js +0 -31
  276. package/esm/geometry/shape/area/line.js.map +0 -1
  277. package/esm/geometry/shape/area/smooth-line.d.ts +0 -1
  278. package/esm/geometry/shape/area/smooth-line.js +0 -30
  279. package/esm/geometry/shape/area/smooth-line.js.map +0 -1
  280. package/esm/geometry/shape/area/smooth.d.ts +0 -1
  281. package/esm/geometry/shape/area/smooth.js +0 -31
  282. package/esm/geometry/shape/area/smooth.js.map +0 -1
  283. package/esm/geometry/shape/area/util.d.ts +0 -22
  284. package/esm/geometry/shape/area/util.js +0 -88
  285. package/esm/geometry/shape/area/util.js.map +0 -1
  286. package/esm/geometry/shape/base.d.ts +0 -22
  287. package/esm/geometry/shape/base.js +0 -162
  288. package/esm/geometry/shape/base.js.map +0 -1
  289. package/esm/geometry/shape/constant.d.ts +0 -4
  290. package/esm/geometry/shape/constant.js +0 -5
  291. package/esm/geometry/shape/constant.js.map +0 -1
  292. package/esm/geometry/shape/edge/arc.d.ts +0 -1
  293. package/esm/geometry/shape/edge/arc.js +0 -84
  294. package/esm/geometry/shape/edge/arc.js.map +0 -1
  295. package/esm/geometry/shape/edge/index.d.ts +0 -2
  296. package/esm/geometry/shape/edge/index.js +0 -31
  297. package/esm/geometry/shape/edge/index.js.map +0 -1
  298. package/esm/geometry/shape/edge/smooth.d.ts +0 -1
  299. package/esm/geometry/shape/edge/smooth.js +0 -30
  300. package/esm/geometry/shape/edge/smooth.js.map +0 -1
  301. package/esm/geometry/shape/edge/util.d.ts +0 -17
  302. package/esm/geometry/shape/edge/util.js +0 -32
  303. package/esm/geometry/shape/edge/util.js.map +0 -1
  304. package/esm/geometry/shape/edge/vhv.d.ts +0 -1
  305. package/esm/geometry/shape/edge/vhv.js +0 -42
  306. package/esm/geometry/shape/edge/vhv.js.map +0 -1
  307. package/esm/geometry/shape/interval/funnel.d.ts +0 -1
  308. package/esm/geometry/shape/interval/funnel.js +0 -31
  309. package/esm/geometry/shape/interval/funnel.js.map +0 -1
  310. package/esm/geometry/shape/interval/hollow-rect.d.ts +0 -1
  311. package/esm/geometry/shape/interval/hollow-rect.js +0 -51
  312. package/esm/geometry/shape/interval/hollow-rect.js.map +0 -1
  313. package/esm/geometry/shape/interval/index.d.ts +0 -3
  314. package/esm/geometry/shape/interval/index.js +0 -63
  315. package/esm/geometry/shape/interval/index.js.map +0 -1
  316. package/esm/geometry/shape/interval/line.d.ts +0 -1
  317. package/esm/geometry/shape/interval/line.js +0 -54
  318. package/esm/geometry/shape/interval/line.js.map +0 -1
  319. package/esm/geometry/shape/interval/pyramid.d.ts +0 -1
  320. package/esm/geometry/shape/interval/pyramid.js +0 -31
  321. package/esm/geometry/shape/interval/pyramid.js.map +0 -1
  322. package/esm/geometry/shape/interval/tick.d.ts +0 -1
  323. package/esm/geometry/shape/interval/tick.js +0 -77
  324. package/esm/geometry/shape/interval/tick.js.map +0 -1
  325. package/esm/geometry/shape/interval/util.d.ts +0 -55
  326. package/esm/geometry/shape/interval/util.js +0 -311
  327. package/esm/geometry/shape/interval/util.js.map +0 -1
  328. package/esm/geometry/shape/line/index.d.ts +0 -8
  329. package/esm/geometry/shape/line/index.js +0 -105
  330. package/esm/geometry/shape/line/index.js.map +0 -1
  331. package/esm/geometry/shape/line/step.d.ts +0 -1
  332. package/esm/geometry/shape/line/step.js +0 -84
  333. package/esm/geometry/shape/line/step.js.map +0 -1
  334. package/esm/geometry/shape/line/util.d.ts +0 -16
  335. package/esm/geometry/shape/line/util.js +0 -83
  336. package/esm/geometry/shape/line/util.js.map +0 -1
  337. package/esm/geometry/shape/point/hollow.d.ts +0 -1
  338. package/esm/geometry/shape/point/hollow.js +0 -24
  339. package/esm/geometry/shape/point/hollow.js.map +0 -1
  340. package/esm/geometry/shape/point/image.d.ts +0 -1
  341. package/esm/geometry/shape/point/image.js +0 -48
  342. package/esm/geometry/shape/point/image.js.map +0 -1
  343. package/esm/geometry/shape/point/index.d.ts +0 -2
  344. package/esm/geometry/shape/point/index.js +0 -32
  345. package/esm/geometry/shape/point/index.js.map +0 -1
  346. package/esm/geometry/shape/point/solid.d.ts +0 -1
  347. package/esm/geometry/shape/point/solid.js +0 -23
  348. package/esm/geometry/shape/point/solid.js.map +0 -1
  349. package/esm/geometry/shape/point/util.d.ts +0 -15
  350. package/esm/geometry/shape/point/util.js +0 -39
  351. package/esm/geometry/shape/point/util.js.map +0 -1
  352. package/esm/geometry/shape/polygon/index.d.ts +0 -2
  353. package/esm/geometry/shape/polygon/index.js +0 -65
  354. package/esm/geometry/shape/polygon/index.js.map +0 -1
  355. package/esm/geometry/shape/polygon/square.d.ts +0 -1
  356. package/esm/geometry/shape/polygon/square.js +0 -44
  357. package/esm/geometry/shape/polygon/square.js.map +0 -1
  358. package/esm/geometry/shape/schema/box.d.ts +0 -1
  359. package/esm/geometry/shape/schema/box.js +0 -142
  360. package/esm/geometry/shape/schema/box.js.map +0 -1
  361. package/esm/geometry/shape/schema/candle.d.ts +0 -1
  362. package/esm/geometry/shape/schema/candle.js +0 -80
  363. package/esm/geometry/shape/schema/candle.js.map +0 -1
  364. package/esm/geometry/shape/schema/index.d.ts +0 -2
  365. package/esm/geometry/shape/schema/index.js +0 -6
  366. package/esm/geometry/shape/schema/index.js.map +0 -1
  367. package/esm/geometry/shape/util/get-path-points.d.ts +0 -38
  368. package/esm/geometry/shape/util/get-path-points.js +0 -131
  369. package/esm/geometry/shape/util/get-path-points.js.map +0 -1
  370. package/esm/geometry/shape/util/get-style.d.ts +0 -18
  371. package/esm/geometry/shape/util/get-style.js +0 -47
  372. package/esm/geometry/shape/util/get-style.js.map +0 -1
  373. package/esm/geometry/shape/util/path.d.ts +0 -32
  374. package/esm/geometry/shape/util/path.js +0 -311
  375. package/esm/geometry/shape/util/path.js.map +0 -1
  376. package/esm/geometry/shape/util/split-points.d.ts +0 -13
  377. package/esm/geometry/shape/util/split-points.js +0 -24
  378. package/esm/geometry/shape/util/split-points.js.map +0 -1
  379. package/esm/geometry/shape/violin/hollow.d.ts +0 -1
  380. package/esm/geometry/shape/violin/hollow.js +0 -51
  381. package/esm/geometry/shape/violin/hollow.js.map +0 -1
  382. package/esm/geometry/shape/violin/index.d.ts +0 -2
  383. package/esm/geometry/shape/violin/index.js +0 -60
  384. package/esm/geometry/shape/violin/index.js.map +0 -1
  385. package/esm/geometry/shape/violin/smooth.d.ts +0 -1
  386. package/esm/geometry/shape/violin/smooth.js +0 -28
  387. package/esm/geometry/shape/violin/smooth.js.map +0 -1
  388. package/esm/geometry/util/diff.d.ts +0 -11
  389. package/esm/geometry/util/diff.js +0 -30
  390. package/esm/geometry/util/diff.js.map +0 -1
  391. package/esm/geometry/util/get-shape-type.d.ts +0 -8
  392. package/esm/geometry/util/get-shape-type.js +0 -16
  393. package/esm/geometry/util/get-shape-type.js.map +0 -1
  394. package/esm/geometry/util/group-data.d.ts +0 -3
  395. package/esm/geometry/util/group-data.js +0 -31
  396. package/esm/geometry/util/group-data.js.map +0 -1
  397. package/esm/geometry/util/is-model-change.d.ts +0 -9
  398. package/esm/geometry/util/is-model-change.js +0 -14
  399. package/esm/geometry/util/is-model-change.js.map +0 -1
  400. package/esm/geometry/util/parse-fields.d.ts +0 -2
  401. package/esm/geometry/util/parse-fields.js +0 -9
  402. package/esm/geometry/util/parse-fields.js.map +0 -1
  403. package/esm/geometry/util/shape-size.d.ts +0 -2
  404. package/esm/geometry/util/shape-size.js +0 -124
  405. package/esm/geometry/util/shape-size.js.map +0 -1
  406. package/esm/geometry/violin.d.ts +0 -25
  407. package/esm/geometry/violin.js +0 -67
  408. package/esm/geometry/violin.js.map +0 -1
  409. package/esm/index.d.ts +0 -107
  410. package/esm/index.js +0 -573
  411. package/esm/index.js.map +0 -1
  412. package/esm/interaction/action/active-region.d.ts +0 -33
  413. package/esm/interaction/action/active-region.js +0 -198
  414. package/esm/interaction/action/active-region.js.map +0 -1
  415. package/esm/interaction/action/base.d.ts +0 -29
  416. package/esm/interaction/action/base.js +0 -36
  417. package/esm/interaction/action/base.js.map +0 -1
  418. package/esm/interaction/action/callback.d.ts +0 -17
  419. package/esm/interaction/action/callback.js +0 -27
  420. package/esm/interaction/action/callback.js.map +0 -1
  421. package/esm/interaction/action/component/list-active.d.ts +0 -14
  422. package/esm/interaction/action/component/list-active.js +0 -24
  423. package/esm/interaction/action/component/list-active.js.map +0 -1
  424. package/esm/interaction/action/component/list-checked.d.ts +0 -30
  425. package/esm/interaction/action/component/list-checked.js +0 -82
  426. package/esm/interaction/action/component/list-checked.js.map +0 -1
  427. package/esm/interaction/action/component/list-focus.d.ts +0 -5
  428. package/esm/interaction/action/component/list-focus.js +0 -55
  429. package/esm/interaction/action/component/list-focus.js.map +0 -1
  430. package/esm/interaction/action/component/list-highlight-util.d.ts +0 -7
  431. package/esm/interaction/action/component/list-highlight-util.js +0 -20
  432. package/esm/interaction/action/component/list-highlight-util.js.map +0 -1
  433. package/esm/interaction/action/component/list-highlight.d.ts +0 -20
  434. package/esm/interaction/action/component/list-highlight.js +0 -97
  435. package/esm/interaction/action/component/list-highlight.js.map +0 -1
  436. package/esm/interaction/action/component/list-radio.d.ts +0 -6
  437. package/esm/interaction/action/component/list-radio.js +0 -26
  438. package/esm/interaction/action/component/list-radio.js.map +0 -1
  439. package/esm/interaction/action/component/list-selected.d.ts +0 -10
  440. package/esm/interaction/action/component/list-selected.js +0 -20
  441. package/esm/interaction/action/component/list-selected.js.map +0 -1
  442. package/esm/interaction/action/component/list-state.d.ts +0 -46
  443. package/esm/interaction/action/component/list-state.js +0 -167
  444. package/esm/interaction/action/component/list-state.js.map +0 -1
  445. package/esm/interaction/action/component/list-unchecked.d.ts +0 -13
  446. package/esm/interaction/action/component/list-unchecked.js +0 -23
  447. package/esm/interaction/action/component/list-unchecked.js.map +0 -1
  448. package/esm/interaction/action/component/tooltip/ellipsis-text.d.ts +0 -25
  449. package/esm/interaction/action/component/tooltip/ellipsis-text.js +0 -93
  450. package/esm/interaction/action/component/tooltip/ellipsis-text.js.map +0 -1
  451. package/esm/interaction/action/component/tooltip/geometry.d.ts +0 -24
  452. package/esm/interaction/action/component/tooltip/geometry.js +0 -71
  453. package/esm/interaction/action/component/tooltip/geometry.js.map +0 -1
  454. package/esm/interaction/action/component/tooltip/sibling.d.ts +0 -21
  455. package/esm/interaction/action/component/tooltip/sibling.js +0 -39
  456. package/esm/interaction/action/component/tooltip/sibling.js.map +0 -1
  457. package/esm/interaction/action/cursor.d.ts +0 -69
  458. package/esm/interaction/action/cursor.js +0 -113
  459. package/esm/interaction/action/cursor.js.map +0 -1
  460. package/esm/interaction/action/data/filter.d.ts +0 -13
  461. package/esm/interaction/action/data/filter.js +0 -66
  462. package/esm/interaction/action/data/filter.js.map +0 -1
  463. package/esm/interaction/action/data/range-filter.d.ts +0 -56
  464. package/esm/interaction/action/data/range-filter.js +0 -163
  465. package/esm/interaction/action/data/range-filter.js.map +0 -1
  466. package/esm/interaction/action/data/sibling-filter.d.ts +0 -22
  467. package/esm/interaction/action/data/sibling-filter.js +0 -39
  468. package/esm/interaction/action/data/sibling-filter.js.map +0 -1
  469. package/esm/interaction/action/element/active.d.ts +0 -14
  470. package/esm/interaction/action/element/active.js +0 -24
  471. package/esm/interaction/action/element/active.js.map +0 -1
  472. package/esm/interaction/action/element/filter.d.ts +0 -20
  473. package/esm/interaction/action/element/filter.js +0 -89
  474. package/esm/interaction/action/element/filter.js.map +0 -1
  475. package/esm/interaction/action/element/highlight-by-color.d.ts +0 -10
  476. package/esm/interaction/action/element/highlight-by-color.js +0 -30
  477. package/esm/interaction/action/element/highlight-by-color.js.map +0 -1
  478. package/esm/interaction/action/element/highlight-by-x.d.ts +0 -15
  479. package/esm/interaction/action/element/highlight-by-x.js +0 -51
  480. package/esm/interaction/action/element/highlight-by-x.js.map +0 -1
  481. package/esm/interaction/action/element/highlight-util.d.ts +0 -18
  482. package/esm/interaction/action/element/highlight-util.js +0 -45
  483. package/esm/interaction/action/element/highlight-util.js.map +0 -1
  484. package/esm/interaction/action/element/highlight.d.ts +0 -21
  485. package/esm/interaction/action/element/highlight.js +0 -93
  486. package/esm/interaction/action/element/highlight.js.map +0 -1
  487. package/esm/interaction/action/element/link-by-color.d.ts +0 -51
  488. package/esm/interaction/action/element/link-by-color.js +0 -156
  489. package/esm/interaction/action/element/link-by-color.js.map +0 -1
  490. package/esm/interaction/action/element/range-active.d.ts +0 -13
  491. package/esm/interaction/action/element/range-active.js +0 -23
  492. package/esm/interaction/action/element/range-active.js.map +0 -1
  493. package/esm/interaction/action/element/range-highlight.d.ts +0 -27
  494. package/esm/interaction/action/element/range-highlight.js +0 -54
  495. package/esm/interaction/action/element/range-highlight.js.map +0 -1
  496. package/esm/interaction/action/element/range-selected.d.ts +0 -13
  497. package/esm/interaction/action/element/range-selected.js +0 -23
  498. package/esm/interaction/action/element/range-selected.js.map +0 -1
  499. package/esm/interaction/action/element/range-state.d.ts +0 -38
  500. package/esm/interaction/action/element/range-state.js +0 -164
  501. package/esm/interaction/action/element/range-state.js.map +0 -1
  502. package/esm/interaction/action/element/selected.d.ts +0 -14
  503. package/esm/interaction/action/element/selected.js +0 -24
  504. package/esm/interaction/action/element/selected.js.map +0 -1
  505. package/esm/interaction/action/element/sibling-filter.d.ts +0 -19
  506. package/esm/interaction/action/element/sibling-filter.js +0 -93
  507. package/esm/interaction/action/element/sibling-filter.js.map +0 -1
  508. package/esm/interaction/action/element/single-active.d.ts +0 -13
  509. package/esm/interaction/action/element/single-active.js +0 -23
  510. package/esm/interaction/action/element/single-active.js.map +0 -1
  511. package/esm/interaction/action/element/single-highlight.d.ts +0 -16
  512. package/esm/interaction/action/element/single-highlight.js +0 -35
  513. package/esm/interaction/action/element/single-highlight.js.map +0 -1
  514. package/esm/interaction/action/element/single-selected.d.ts +0 -13
  515. package/esm/interaction/action/element/single-selected.js +0 -23
  516. package/esm/interaction/action/element/single-selected.js.map +0 -1
  517. package/esm/interaction/action/element/single-state.d.ts +0 -18
  518. package/esm/interaction/action/element/single-state.js +0 -53
  519. package/esm/interaction/action/element/single-state.js.map +0 -1
  520. package/esm/interaction/action/element/state-base.d.ts +0 -39
  521. package/esm/interaction/action/element/state-base.js +0 -59
  522. package/esm/interaction/action/element/state-base.js.map +0 -1
  523. package/esm/interaction/action/element/state.d.ts +0 -28
  524. package/esm/interaction/action/element/state.js +0 -99
  525. package/esm/interaction/action/element/state.js.map +0 -1
  526. package/esm/interaction/action/index.d.ts +0 -2
  527. package/esm/interaction/action/index.js +0 -3
  528. package/esm/interaction/action/index.js.map +0 -1
  529. package/esm/interaction/action/mask/base.d.ts +0 -62
  530. package/esm/interaction/action/mask/base.js +0 -169
  531. package/esm/interaction/action/mask/base.js.map +0 -1
  532. package/esm/interaction/action/mask/circle.d.ts +0 -14
  533. package/esm/interaction/action/mask/circle.js +0 -37
  534. package/esm/interaction/action/mask/circle.js.map +0 -1
  535. package/esm/interaction/action/mask/dim-rect.d.ts +0 -11
  536. package/esm/interaction/action/mask/dim-rect.js +0 -62
  537. package/esm/interaction/action/mask/dim-rect.js.map +0 -1
  538. package/esm/interaction/action/mask/path.d.ts +0 -16
  539. package/esm/interaction/action/mask/path.js +0 -44
  540. package/esm/interaction/action/mask/path.js.map +0 -1
  541. package/esm/interaction/action/mask/rect.d.ts +0 -17
  542. package/esm/interaction/action/mask/rect.js +0 -39
  543. package/esm/interaction/action/mask/rect.js.map +0 -1
  544. package/esm/interaction/action/mask/smooth-path.d.ts +0 -9
  545. package/esm/interaction/action/mask/smooth-path.js +0 -21
  546. package/esm/interaction/action/mask/smooth-path.js.map +0 -1
  547. package/esm/interaction/action/register.d.ts +0 -36
  548. package/esm/interaction/action/register.js +0 -60
  549. package/esm/interaction/action/register.js.map +0 -1
  550. package/esm/interaction/action/util.d.ts +0 -140
  551. package/esm/interaction/action/util.js +0 -361
  552. package/esm/interaction/action/util.js.map +0 -1
  553. package/esm/interaction/action/view/button.d.ts +0 -25
  554. package/esm/interaction/action/view/button.js +0 -116
  555. package/esm/interaction/action/view/button.js.map +0 -1
  556. package/esm/interaction/action/view/drag.d.ts +0 -24
  557. package/esm/interaction/action/view/drag.js +0 -73
  558. package/esm/interaction/action/view/drag.js.map +0 -1
  559. package/esm/interaction/action/view/mousewheel-scroll.d.ts +0 -5
  560. package/esm/interaction/action/view/mousewheel-scroll.js +0 -35
  561. package/esm/interaction/action/view/mousewheel-scroll.js.map +0 -1
  562. package/esm/interaction/action/view/move.d.ts +0 -28
  563. package/esm/interaction/action/view/move.js +0 -80
  564. package/esm/interaction/action/view/move.js.map +0 -1
  565. package/esm/interaction/action/view/scale-transform.d.ts +0 -18
  566. package/esm/interaction/action/view/scale-transform.js +0 -51
  567. package/esm/interaction/action/view/scale-transform.js.map +0 -1
  568. package/esm/interaction/action/view/scale-translate.d.ts +0 -30
  569. package/esm/interaction/action/view/scale-translate.js +0 -112
  570. package/esm/interaction/action/view/scale-translate.js.map +0 -1
  571. package/esm/interaction/action/view/scale-zoom.d.ts +0 -20
  572. package/esm/interaction/action/view/scale-zoom.js +0 -83
  573. package/esm/interaction/action/view/scale-zoom.js.map +0 -1
  574. package/esm/interaction/context.d.ts +0 -65
  575. package/esm/interaction/context.js +0 -142
  576. package/esm/interaction/context.js.map +0 -1
  577. package/esm/interaction/grammar-interaction.d.ts +0 -158
  578. package/esm/interaction/grammar-interaction.js +0 -285
  579. package/esm/interaction/grammar-interaction.js.map +0 -1
  580. package/esm/interaction/index.d.ts +0 -25
  581. package/esm/interaction/index.js +0 -43
  582. package/esm/interaction/index.js.map +0 -1
  583. package/esm/interaction/interaction.d.ts +0 -29
  584. package/esm/interaction/interaction.js +0 -32
  585. package/esm/interaction/interaction.js.map +0 -1
  586. package/esm/interface.d.ts +0 -2264
  587. package/esm/interface.js +0 -2
  588. package/esm/interface.js.map +0 -1
  589. package/esm/theme/index.d.ts +0 -12
  590. package/esm/theme/index.js +0 -23
  591. package/esm/theme/index.js.map +0 -1
  592. package/esm/theme/style-sheet/dark.d.ts +0 -825
  593. package/esm/theme/style-sheet/dark.js +0 -496
  594. package/esm/theme/style-sheet/dark.js.map +0 -1
  595. package/esm/theme/style-sheet/light.d.ts +0 -817
  596. package/esm/theme/style-sheet/light.js +0 -492
  597. package/esm/theme/style-sheet/light.js.map +0 -1
  598. package/esm/theme/util/create-by-style-sheet.d.ts +0 -6
  599. package/esm/theme/util/create-by-style-sheet.js +0 -1422
  600. package/esm/theme/util/create-by-style-sheet.js.map +0 -1
  601. package/esm/theme/util/create-theme.d.ts +0 -6
  602. package/esm/theme/util/create-theme.js +0 -12
  603. package/esm/theme/util/create-theme.js.map +0 -1
  604. package/esm/theme/util/index.d.ts +0 -1
  605. package/esm/theme/util/index.js +0 -2
  606. package/esm/theme/util/index.js.map +0 -1
  607. package/esm/util/annotation.d.ts +0 -7
  608. package/esm/util/annotation.js +0 -39
  609. package/esm/util/annotation.js.map +0 -1
  610. package/esm/util/attr.d.ts +0 -10
  611. package/esm/util/attr.js +0 -25
  612. package/esm/util/attr.js.map +0 -1
  613. package/esm/util/axis.d.ts +0 -100
  614. package/esm/util/axis.js +0 -236
  615. package/esm/util/axis.js.map +0 -1
  616. package/esm/util/bbox.d.ts +0 -105
  617. package/esm/util/bbox.js +0 -282
  618. package/esm/util/bbox.js.map +0 -1
  619. package/esm/util/collision-detect.d.ts +0 -16
  620. package/esm/util/collision-detect.js +0 -127
  621. package/esm/util/collision-detect.js.map +0 -1
  622. package/esm/util/color.d.ts +0 -1
  623. package/esm/util/color.js +0 -18
  624. package/esm/util/color.js.map +0 -1
  625. package/esm/util/context.d.ts +0 -4
  626. package/esm/util/context.js +0 -11
  627. package/esm/util/context.js.map +0 -1
  628. package/esm/util/coordinate.d.ts +0 -86
  629. package/esm/util/coordinate.js +0 -147
  630. package/esm/util/coordinate.js.map +0 -1
  631. package/esm/util/direction.d.ts +0 -19
  632. package/esm/util/direction.js +0 -120
  633. package/esm/util/direction.js.map +0 -1
  634. package/esm/util/dom.d.ts +0 -19
  635. package/esm/util/dom.js +0 -61
  636. package/esm/util/dom.js.map +0 -1
  637. package/esm/util/event.d.ts +0 -8
  638. package/esm/util/event.js +0 -14
  639. package/esm/util/event.js.map +0 -1
  640. package/esm/util/facet.d.ts +0 -16
  641. package/esm/util/facet.js +0 -43
  642. package/esm/util/facet.js.map +0 -1
  643. package/esm/util/graphics.d.ts +0 -58
  644. package/esm/util/graphics.js +0 -203
  645. package/esm/util/graphics.js.map +0 -1
  646. package/esm/util/grid.d.ts +0 -36
  647. package/esm/util/grid.js +0 -118
  648. package/esm/util/grid.js.map +0 -1
  649. package/esm/util/helper.d.ts +0 -34
  650. package/esm/util/helper.js +0 -72
  651. package/esm/util/helper.js.map +0 -1
  652. package/esm/util/legend.d.ts +0 -45
  653. package/esm/util/legend.js +0 -145
  654. package/esm/util/legend.js.map +0 -1
  655. package/esm/util/marker.d.ts +0 -10
  656. package/esm/util/marker.js +0 -58
  657. package/esm/util/marker.js.map +0 -1
  658. package/esm/util/padding.d.ts +0 -14
  659. package/esm/util/padding.js +0 -40
  660. package/esm/util/padding.js.map +0 -1
  661. package/esm/util/scale.d.ts +0 -38
  662. package/esm/util/scale.js +0 -114
  663. package/esm/util/scale.js.map +0 -1
  664. package/esm/util/stat.d.ts +0 -10
  665. package/esm/util/stat.js +0 -36
  666. package/esm/util/stat.js.map +0 -1
  667. package/esm/util/text.d.ts +0 -23
  668. package/esm/util/text.js +0 -84
  669. package/esm/util/text.js.map +0 -1
  670. package/esm/util/tooltip.d.ts +0 -26
  671. package/esm/util/tooltip.js +0 -415
  672. package/esm/util/tooltip.js.map +0 -1
  673. package/esm/util/transform.d.ts +0 -33
  674. package/esm/util/transform.js +0 -61
  675. package/esm/util/transform.js.map +0 -1
  676. package/esm/util/types.d.ts +0 -6
  677. package/esm/util/types.js +0 -2
  678. package/esm/util/types.js.map +0 -1
  679. package/lib/animate/animation/fade.d.ts +0 -21
  680. package/lib/animate/animation/fade.js +0 -47
  681. package/lib/animate/animation/fade.js.map +0 -1
  682. package/lib/animate/animation/grow-in.d.ts +0 -30
  683. package/lib/animate/animation/grow-in.js +0 -44
  684. package/lib/animate/animation/grow-in.js.map +0 -1
  685. package/lib/animate/animation/index.d.ts +0 -16
  686. package/lib/animate/animation/index.js +0 -22
  687. package/lib/animate/animation/index.js.map +0 -1
  688. package/lib/animate/animation/path-in.d.ts +0 -12
  689. package/lib/animate/animation/path-in.js +0 -25
  690. package/lib/animate/animation/path-in.js.map +0 -1
  691. package/lib/animate/animation/position-update.d.ts +0 -11
  692. package/lib/animate/animation/position-update.js +0 -28
  693. package/lib/animate/animation/position-update.js.map +0 -1
  694. package/lib/animate/animation/scale-in.d.ts +0 -19
  695. package/lib/animate/animation/scale-in.js +0 -65
  696. package/lib/animate/animation/scale-in.js.map +0 -1
  697. package/lib/animate/animation/sector-path-update.d.ts +0 -11
  698. package/lib/animate/animation/sector-path-update.js +0 -135
  699. package/lib/animate/animation/sector-path-update.js.map +0 -1
  700. package/lib/animate/animation/util.d.ts +0 -19
  701. package/lib/animate/animation/util.js +0 -93
  702. package/lib/animate/animation/util.js.map +0 -1
  703. package/lib/animate/animation/wave-in.d.ts +0 -13
  704. package/lib/animate/animation/wave-in.js +0 -30
  705. package/lib/animate/animation/wave-in.js.map +0 -1
  706. package/lib/animate/animation/zoom.d.ts +0 -21
  707. package/lib/animate/animation/zoom.js +0 -71
  708. package/lib/animate/animation/zoom.js.map +0 -1
  709. package/lib/animate/index.d.ts +0 -48
  710. package/lib/animate/index.js +0 -255
  711. package/lib/animate/index.js.map +0 -1
  712. package/lib/animate/interface.d.ts +0 -12
  713. package/lib/animate/interface.js +0 -3
  714. package/lib/animate/interface.js.map +0 -1
  715. package/lib/api.d.ts +0 -2
  716. package/lib/api.js +0 -7
  717. package/lib/api.js.map +0 -1
  718. package/lib/base.d.ts +0 -33
  719. package/lib/base.js +0 -57
  720. package/lib/base.js.map +0 -1
  721. package/lib/chart/chart.d.ts +0 -61
  722. package/lib/chart/chart.js +0 -159
  723. package/lib/chart/chart.js.map +0 -1
  724. package/lib/chart/controller/annotation.d.ts +0 -162
  725. package/lib/chart/controller/annotation.js +0 -579
  726. package/lib/chart/controller/annotation.js.map +0 -1
  727. package/lib/chart/controller/axis.d.ts +0 -93
  728. package/lib/chart/controller/axis.js +0 -580
  729. package/lib/chart/controller/axis.js.map +0 -1
  730. package/lib/chart/controller/base.d.ts +0 -64
  731. package/lib/chart/controller/base.js +0 -65
  732. package/lib/chart/controller/base.js.map +0 -1
  733. package/lib/chart/controller/coordinate.d.ts +0 -74
  734. package/lib/chart/controller/coordinate.js +0 -147
  735. package/lib/chart/controller/coordinate.js.map +0 -1
  736. package/lib/chart/controller/gesture.d.ts +0 -37
  737. package/lib/chart/controller/gesture.js +0 -260
  738. package/lib/chart/controller/gesture.js.map +0 -1
  739. package/lib/chart/controller/index.d.ts +0 -25
  740. package/lib/chart/controller/index.js +0 -41
  741. package/lib/chart/controller/index.js.map +0 -1
  742. package/lib/chart/controller/legend.d.ts +0 -106
  743. package/lib/chart/controller/legend.js +0 -486
  744. package/lib/chart/controller/legend.js.map +0 -1
  745. package/lib/chart/controller/scrollbar.d.ts +0 -64
  746. package/lib/chart/controller/scrollbar.js +0 -318
  747. package/lib/chart/controller/scrollbar.js.map +0 -1
  748. package/lib/chart/controller/slider.d.ts +0 -88
  749. package/lib/chart/controller/slider.js +0 -298
  750. package/lib/chart/controller/slider.js.map +0 -1
  751. package/lib/chart/controller/tooltip.d.ts +0 -68
  752. package/lib/chart/controller/tooltip.js +0 -632
  753. package/lib/chart/controller/tooltip.js.map +0 -1
  754. package/lib/chart/event.d.ts +0 -47
  755. package/lib/chart/event.js +0 -93
  756. package/lib/chart/event.js.map +0 -1
  757. package/lib/chart/index.d.ts +0 -4
  758. package/lib/chart/index.js +0 -16
  759. package/lib/chart/index.js.map +0 -1
  760. package/lib/chart/layout/auto.d.ts +0 -8
  761. package/lib/chart/layout/auto.js +0 -68
  762. package/lib/chart/layout/auto.js.map +0 -1
  763. package/lib/chart/layout/constraint/bounds.d.ts +0 -32
  764. package/lib/chart/layout/constraint/bounds.js +0 -33
  765. package/lib/chart/layout/constraint/bounds.js.map +0 -1
  766. package/lib/chart/layout/constraint/constraint.d.ts +0 -31
  767. package/lib/chart/layout/constraint/constraint.js +0 -84
  768. package/lib/chart/layout/constraint/constraint.js.map +0 -1
  769. package/lib/chart/layout/constraint/gauss.d.ts +0 -11
  770. package/lib/chart/layout/constraint/gauss.js +0 -68
  771. package/lib/chart/layout/constraint/gauss.js.map +0 -1
  772. package/lib/chart/layout/constraint/index.d.ts +0 -5
  773. package/lib/chart/layout/constraint/index.js +0 -38
  774. package/lib/chart/layout/constraint/index.js.map +0 -1
  775. package/lib/chart/layout/constraint/solver.d.ts +0 -40
  776. package/lib/chart/layout/constraint/solver.js +0 -80
  777. package/lib/chart/layout/constraint/solver.js.map +0 -1
  778. package/lib/chart/layout/constraint/types.d.ts +0 -21
  779. package/lib/chart/layout/constraint/types.js +0 -16
  780. package/lib/chart/layout/constraint/types.js.map +0 -1
  781. package/lib/chart/layout/constraint/variable.d.ts +0 -24
  782. package/lib/chart/layout/constraint/variable.js +0 -31
  783. package/lib/chart/layout/constraint/variable.js.map +0 -1
  784. package/lib/chart/layout/index.d.ts +0 -15
  785. package/lib/chart/layout/index.js +0 -29
  786. package/lib/chart/layout/index.js.map +0 -1
  787. package/lib/chart/layout/padding-cal.d.ts +0 -53
  788. package/lib/chart/layout/padding-cal.js +0 -111
  789. package/lib/chart/layout/padding-cal.js.map +0 -1
  790. package/lib/chart/util/scale-pool.d.ts +0 -57
  791. package/lib/chart/util/scale-pool.js +0 -215
  792. package/lib/chart/util/scale-pool.js.map +0 -1
  793. package/lib/chart/util/sync-view-padding.d.ts +0 -9
  794. package/lib/chart/util/sync-view-padding.js +0 -18
  795. package/lib/chart/util/sync-view-padding.js.map +0 -1
  796. package/lib/chart/view.d.ts +0 -747
  797. package/lib/chart/view.js +0 -1637
  798. package/lib/chart/view.js.map +0 -1
  799. package/lib/component/labels.d.ts +0 -47
  800. package/lib/component/labels.js +0 -276
  801. package/lib/component/labels.js.map +0 -1
  802. package/lib/component/update-label.d.ts +0 -21
  803. package/lib/component/update-label.js +0 -61
  804. package/lib/component/update-label.js.map +0 -1
  805. package/lib/constant.d.ts +0 -122
  806. package/lib/constant.js +0 -137
  807. package/lib/constant.js.map +0 -1
  808. package/lib/core.d.ts +0 -46
  809. package/lib/core.js +0 -101
  810. package/lib/core.js.map +0 -1
  811. package/lib/dependents.d.ts +0 -21
  812. package/lib/dependents.js +0 -55
  813. package/lib/dependents.js.map +0 -1
  814. package/lib/engine/index.d.ts +0 -13
  815. package/lib/engine/index.js +0 -27
  816. package/lib/engine/index.js.map +0 -1
  817. package/lib/facet/circle.d.ts +0 -36
  818. package/lib/facet/circle.js +0 -121
  819. package/lib/facet/circle.js.map +0 -1
  820. package/lib/facet/facet.d.ts +0 -165
  821. package/lib/facet/facet.js +0 -294
  822. package/lib/facet/facet.js.map +0 -1
  823. package/lib/facet/index.d.ts +0 -13
  824. package/lib/facet/index.js +0 -28
  825. package/lib/facet/index.js.map +0 -1
  826. package/lib/facet/list.d.ts +0 -46
  827. package/lib/facet/list.js +0 -136
  828. package/lib/facet/list.js.map +0 -1
  829. package/lib/facet/matrix.d.ts +0 -34
  830. package/lib/facet/matrix.js +0 -121
  831. package/lib/facet/matrix.js.map +0 -1
  832. package/lib/facet/mirror.d.ts +0 -31
  833. package/lib/facet/mirror.js +0 -146
  834. package/lib/facet/mirror.js.map +0 -1
  835. package/lib/facet/rect.d.ts +0 -35
  836. package/lib/facet/rect.js +0 -143
  837. package/lib/facet/rect.js.map +0 -1
  838. package/lib/facet/tree.d.ts +0 -40
  839. package/lib/facet/tree.js +0 -290
  840. package/lib/facet/tree.js.map +0 -1
  841. package/lib/geometry/area.d.ts +0 -46
  842. package/lib/geometry/area.js +0 -64
  843. package/lib/geometry/area.js.map +0 -1
  844. package/lib/geometry/base.d.ts +0 -793
  845. package/lib/geometry/base.js +0 -1483
  846. package/lib/geometry/base.js.map +0 -1
  847. package/lib/geometry/edge.d.ts +0 -15
  848. package/lib/geometry/edge.js +0 -26
  849. package/lib/geometry/edge.js.map +0 -1
  850. package/lib/geometry/element/index.d.ts +0 -127
  851. package/lib/geometry/element/index.js +0 -438
  852. package/lib/geometry/element/index.js.map +0 -1
  853. package/lib/geometry/heatmap.d.ts +0 -31
  854. package/lib/geometry/heatmap.js +0 -192
  855. package/lib/geometry/heatmap.js.map +0 -1
  856. package/lib/geometry/interval.d.ts +0 -41
  857. package/lib/geometry/interval.js +0 -100
  858. package/lib/geometry/interval.js.map +0 -1
  859. package/lib/geometry/label/base.d.ts +0 -76
  860. package/lib/geometry/label/base.js +0 -406
  861. package/lib/geometry/label/base.js.map +0 -1
  862. package/lib/geometry/label/index.d.ts +0 -38
  863. package/lib/geometry/label/index.js +0 -42
  864. package/lib/geometry/label/index.js.map +0 -1
  865. package/lib/geometry/label/interface.d.ts +0 -50
  866. package/lib/geometry/label/interface.js +0 -3
  867. package/lib/geometry/label/interface.js.map +0 -1
  868. package/lib/geometry/label/interval.d.ts +0 -27
  869. package/lib/geometry/label/interval.js +0 -148
  870. package/lib/geometry/label/interval.js.map +0 -1
  871. package/lib/geometry/label/layout/adjust-color.d.ts +0 -3
  872. package/lib/geometry/label/layout/adjust-color.js +0 -40
  873. package/lib/geometry/label/layout/adjust-color.js.map +0 -1
  874. package/lib/geometry/label/layout/hide-overlap.d.ts +0 -8
  875. package/lib/geometry/label/layout/hide-overlap.js +0 -33
  876. package/lib/geometry/label/layout/hide-overlap.js.map +0 -1
  877. package/lib/geometry/label/layout/interval/adjust-position.d.ts +0 -9
  878. package/lib/geometry/label/layout/interval/adjust-position.js +0 -65
  879. package/lib/geometry/label/layout/interval/adjust-position.js.map +0 -1
  880. package/lib/geometry/label/layout/interval/hide-overlap.d.ts +0 -9
  881. package/lib/geometry/label/layout/interval/hide-overlap.js +0 -82
  882. package/lib/geometry/label/layout/interval/hide-overlap.js.map +0 -1
  883. package/lib/geometry/label/layout/limit-in-canvas.d.ts +0 -9
  884. package/lib/geometry/label/layout/limit-in-canvas.js +0 -48
  885. package/lib/geometry/label/layout/limit-in-canvas.js.map +0 -1
  886. package/lib/geometry/label/layout/limit-in-plot.d.ts +0 -18
  887. package/lib/geometry/label/layout/limit-in-plot.js +0 -79
  888. package/lib/geometry/label/layout/limit-in-plot.js.map +0 -1
  889. package/lib/geometry/label/layout/limit-in-shape.d.ts +0 -7
  890. package/lib/geometry/label/layout/limit-in-shape.js +0 -22
  891. package/lib/geometry/label/layout/limit-in-shape.js.map +0 -1
  892. package/lib/geometry/label/layout/overlap.d.ts +0 -15
  893. package/lib/geometry/label/layout/overlap.js +0 -228
  894. package/lib/geometry/label/layout/overlap.js.map +0 -1
  895. package/lib/geometry/label/layout/path/adjust-position.d.ts +0 -17
  896. package/lib/geometry/label/layout/path/adjust-position.js +0 -98
  897. package/lib/geometry/label/layout/path/adjust-position.js.map +0 -1
  898. package/lib/geometry/label/layout/pie/distribute.d.ts +0 -3
  899. package/lib/geometry/label/layout/pie/distribute.js +0 -189
  900. package/lib/geometry/label/layout/pie/distribute.js.map +0 -1
  901. package/lib/geometry/label/layout/pie/outer.d.ts +0 -6
  902. package/lib/geometry/label/layout/pie/outer.js +0 -211
  903. package/lib/geometry/label/layout/pie/outer.js.map +0 -1
  904. package/lib/geometry/label/layout/pie/spider.d.ts +0 -7
  905. package/lib/geometry/label/layout/pie/spider.js +0 -185
  906. package/lib/geometry/label/layout/pie/spider.js.map +0 -1
  907. package/lib/geometry/label/layout/pie/util.d.ts +0 -10
  908. package/lib/geometry/label/layout/pie/util.js +0 -77
  909. package/lib/geometry/label/layout/pie/util.js.map +0 -1
  910. package/lib/geometry/label/layout/point/adjust-position.d.ts +0 -17
  911. package/lib/geometry/label/layout/point/adjust-position.js +0 -98
  912. package/lib/geometry/label/layout/point/adjust-position.js.map +0 -1
  913. package/lib/geometry/label/pie.d.ts +0 -22
  914. package/lib/geometry/label/pie.js +0 -97
  915. package/lib/geometry/label/pie.js.map +0 -1
  916. package/lib/geometry/label/polar.d.ts +0 -64
  917. package/lib/geometry/label/polar.js +0 -223
  918. package/lib/geometry/label/polar.js.map +0 -1
  919. package/lib/geometry/label/util/index.d.ts +0 -26
  920. package/lib/geometry/label/util/index.js +0 -68
  921. package/lib/geometry/label/util/index.js.map +0 -1
  922. package/lib/geometry/line.d.ts +0 -11
  923. package/lib/geometry/line.js +0 -23
  924. package/lib/geometry/line.js.map +0 -1
  925. package/lib/geometry/path.d.ts +0 -40
  926. package/lib/geometry/path.js +0 -124
  927. package/lib/geometry/path.js.map +0 -1
  928. package/lib/geometry/point.d.ts +0 -19
  929. package/lib/geometry/point.js +0 -32
  930. package/lib/geometry/point.js.map +0 -1
  931. package/lib/geometry/polygon.d.ts +0 -19
  932. package/lib/geometry/polygon.js +0 -64
  933. package/lib/geometry/polygon.js.map +0 -1
  934. package/lib/geometry/schema.d.ts +0 -18
  935. package/lib/geometry/schema.js +0 -50
  936. package/lib/geometry/schema.js.map +0 -1
  937. package/lib/geometry/shape/area/index.d.ts +0 -2
  938. package/lib/geometry/shape/area/index.js +0 -46
  939. package/lib/geometry/shape/area/index.js.map +0 -1
  940. package/lib/geometry/shape/area/line.d.ts +0 -1
  941. package/lib/geometry/shape/area/line.js +0 -33
  942. package/lib/geometry/shape/area/line.js.map +0 -1
  943. package/lib/geometry/shape/area/smooth-line.d.ts +0 -1
  944. package/lib/geometry/shape/area/smooth-line.js +0 -32
  945. package/lib/geometry/shape/area/smooth-line.js.map +0 -1
  946. package/lib/geometry/shape/area/smooth.d.ts +0 -1
  947. package/lib/geometry/shape/area/smooth.js +0 -33
  948. package/lib/geometry/shape/area/smooth.js.map +0 -1
  949. package/lib/geometry/shape/area/util.d.ts +0 -22
  950. package/lib/geometry/shape/area/util.js +0 -93
  951. package/lib/geometry/shape/area/util.js.map +0 -1
  952. package/lib/geometry/shape/base.d.ts +0 -22
  953. package/lib/geometry/shape/base.js +0 -168
  954. package/lib/geometry/shape/base.js.map +0 -1
  955. package/lib/geometry/shape/constant.d.ts +0 -4
  956. package/lib/geometry/shape/constant.js +0 -8
  957. package/lib/geometry/shape/constant.js.map +0 -1
  958. package/lib/geometry/shape/edge/arc.d.ts +0 -1
  959. package/lib/geometry/shape/edge/arc.js +0 -86
  960. package/lib/geometry/shape/edge/arc.js.map +0 -1
  961. package/lib/geometry/shape/edge/index.d.ts +0 -2
  962. package/lib/geometry/shape/edge/index.js +0 -33
  963. package/lib/geometry/shape/edge/index.js.map +0 -1
  964. package/lib/geometry/shape/edge/smooth.d.ts +0 -1
  965. package/lib/geometry/shape/edge/smooth.js +0 -32
  966. package/lib/geometry/shape/edge/smooth.js.map +0 -1
  967. package/lib/geometry/shape/edge/util.d.ts +0 -17
  968. package/lib/geometry/shape/edge/util.js +0 -37
  969. package/lib/geometry/shape/edge/util.js.map +0 -1
  970. package/lib/geometry/shape/edge/vhv.d.ts +0 -1
  971. package/lib/geometry/shape/edge/vhv.js +0 -44
  972. package/lib/geometry/shape/edge/vhv.js.map +0 -1
  973. package/lib/geometry/shape/interval/funnel.d.ts +0 -1
  974. package/lib/geometry/shape/interval/funnel.js +0 -33
  975. package/lib/geometry/shape/interval/funnel.js.map +0 -1
  976. package/lib/geometry/shape/interval/hollow-rect.d.ts +0 -1
  977. package/lib/geometry/shape/interval/hollow-rect.js +0 -53
  978. package/lib/geometry/shape/interval/hollow-rect.js.map +0 -1
  979. package/lib/geometry/shape/interval/index.d.ts +0 -3
  980. package/lib/geometry/shape/interval/index.js +0 -65
  981. package/lib/geometry/shape/interval/index.js.map +0 -1
  982. package/lib/geometry/shape/interval/line.d.ts +0 -1
  983. package/lib/geometry/shape/interval/line.js +0 -56
  984. package/lib/geometry/shape/interval/line.js.map +0 -1
  985. package/lib/geometry/shape/interval/pyramid.d.ts +0 -1
  986. package/lib/geometry/shape/interval/pyramid.js +0 -33
  987. package/lib/geometry/shape/interval/pyramid.js.map +0 -1
  988. package/lib/geometry/shape/interval/tick.d.ts +0 -1
  989. package/lib/geometry/shape/interval/tick.js +0 -79
  990. package/lib/geometry/shape/interval/tick.js.map +0 -1
  991. package/lib/geometry/shape/interval/util.d.ts +0 -55
  992. package/lib/geometry/shape/interval/util.js +0 -321
  993. package/lib/geometry/shape/interval/util.js.map +0 -1
  994. package/lib/geometry/shape/line/index.d.ts +0 -8
  995. package/lib/geometry/shape/line/index.js +0 -109
  996. package/lib/geometry/shape/line/index.js.map +0 -1
  997. package/lib/geometry/shape/line/step.d.ts +0 -1
  998. package/lib/geometry/shape/line/step.js +0 -86
  999. package/lib/geometry/shape/line/step.js.map +0 -1
  1000. package/lib/geometry/shape/line/util.d.ts +0 -16
  1001. package/lib/geometry/shape/line/util.js +0 -87
  1002. package/lib/geometry/shape/line/util.js.map +0 -1
  1003. package/lib/geometry/shape/point/hollow.d.ts +0 -1
  1004. package/lib/geometry/shape/point/hollow.js +0 -26
  1005. package/lib/geometry/shape/point/hollow.js.map +0 -1
  1006. package/lib/geometry/shape/point/image.d.ts +0 -1
  1007. package/lib/geometry/shape/point/image.js +0 -50
  1008. package/lib/geometry/shape/point/image.js.map +0 -1
  1009. package/lib/geometry/shape/point/index.d.ts +0 -2
  1010. package/lib/geometry/shape/point/index.js +0 -34
  1011. package/lib/geometry/shape/point/index.js.map +0 -1
  1012. package/lib/geometry/shape/point/solid.d.ts +0 -1
  1013. package/lib/geometry/shape/point/solid.js +0 -25
  1014. package/lib/geometry/shape/point/solid.js.map +0 -1
  1015. package/lib/geometry/shape/point/util.d.ts +0 -15
  1016. package/lib/geometry/shape/point/util.js +0 -43
  1017. package/lib/geometry/shape/point/util.js.map +0 -1
  1018. package/lib/geometry/shape/polygon/index.d.ts +0 -2
  1019. package/lib/geometry/shape/polygon/index.js +0 -67
  1020. package/lib/geometry/shape/polygon/index.js.map +0 -1
  1021. package/lib/geometry/shape/polygon/square.d.ts +0 -1
  1022. package/lib/geometry/shape/polygon/square.js +0 -46
  1023. package/lib/geometry/shape/polygon/square.js.map +0 -1
  1024. package/lib/geometry/shape/schema/box.d.ts +0 -1
  1025. package/lib/geometry/shape/schema/box.js +0 -144
  1026. package/lib/geometry/shape/schema/box.js.map +0 -1
  1027. package/lib/geometry/shape/schema/candle.d.ts +0 -1
  1028. package/lib/geometry/shape/schema/candle.js +0 -82
  1029. package/lib/geometry/shape/schema/candle.js.map +0 -1
  1030. package/lib/geometry/shape/schema/index.d.ts +0 -2
  1031. package/lib/geometry/shape/schema/index.js +0 -8
  1032. package/lib/geometry/shape/schema/index.js.map +0 -1
  1033. package/lib/geometry/shape/util/get-path-points.d.ts +0 -38
  1034. package/lib/geometry/shape/util/get-path-points.js +0 -137
  1035. package/lib/geometry/shape/util/get-path-points.js.map +0 -1
  1036. package/lib/geometry/shape/util/get-style.d.ts +0 -18
  1037. package/lib/geometry/shape/util/get-style.js +0 -52
  1038. package/lib/geometry/shape/util/get-style.js.map +0 -1
  1039. package/lib/geometry/shape/util/path.d.ts +0 -32
  1040. package/lib/geometry/shape/util/path.js +0 -320
  1041. package/lib/geometry/shape/util/path.js.map +0 -1
  1042. package/lib/geometry/shape/util/split-points.d.ts +0 -13
  1043. package/lib/geometry/shape/util/split-points.js +0 -28
  1044. package/lib/geometry/shape/util/split-points.js.map +0 -1
  1045. package/lib/geometry/shape/violin/hollow.d.ts +0 -1
  1046. package/lib/geometry/shape/violin/hollow.js +0 -53
  1047. package/lib/geometry/shape/violin/hollow.js.map +0 -1
  1048. package/lib/geometry/shape/violin/index.d.ts +0 -2
  1049. package/lib/geometry/shape/violin/index.js +0 -62
  1050. package/lib/geometry/shape/violin/index.js.map +0 -1
  1051. package/lib/geometry/shape/violin/smooth.d.ts +0 -1
  1052. package/lib/geometry/shape/violin/smooth.js +0 -30
  1053. package/lib/geometry/shape/violin/smooth.js.map +0 -1
  1054. package/lib/geometry/util/diff.d.ts +0 -11
  1055. package/lib/geometry/util/diff.js +0 -34
  1056. package/lib/geometry/util/diff.js.map +0 -1
  1057. package/lib/geometry/util/get-shape-type.d.ts +0 -8
  1058. package/lib/geometry/util/get-shape-type.js +0 -20
  1059. package/lib/geometry/util/get-shape-type.js.map +0 -1
  1060. package/lib/geometry/util/group-data.d.ts +0 -3
  1061. package/lib/geometry/util/group-data.js +0 -35
  1062. package/lib/geometry/util/group-data.js.map +0 -1
  1063. package/lib/geometry/util/is-model-change.d.ts +0 -9
  1064. package/lib/geometry/util/is-model-change.js +0 -18
  1065. package/lib/geometry/util/is-model-change.js.map +0 -1
  1066. package/lib/geometry/util/parse-fields.d.ts +0 -2
  1067. package/lib/geometry/util/parse-fields.js +0 -13
  1068. package/lib/geometry/util/parse-fields.js.map +0 -1
  1069. package/lib/geometry/util/shape-size.d.ts +0 -2
  1070. package/lib/geometry/util/shape-size.js +0 -128
  1071. package/lib/geometry/util/shape-size.js.map +0 -1
  1072. package/lib/geometry/violin.d.ts +0 -25
  1073. package/lib/geometry/violin.js +0 -69
  1074. package/lib/geometry/violin.js.map +0 -1
  1075. package/lib/index.d.ts +0 -107
  1076. package/lib/index.js +0 -578
  1077. package/lib/index.js.map +0 -1
  1078. package/lib/interaction/action/active-region.d.ts +0 -33
  1079. package/lib/interaction/action/active-region.js +0 -202
  1080. package/lib/interaction/action/active-region.js.map +0 -1
  1081. package/lib/interaction/action/base.d.ts +0 -29
  1082. package/lib/interaction/action/base.js +0 -38
  1083. package/lib/interaction/action/base.js.map +0 -1
  1084. package/lib/interaction/action/callback.d.ts +0 -17
  1085. package/lib/interaction/action/callback.js +0 -29
  1086. package/lib/interaction/action/callback.js.map +0 -1
  1087. package/lib/interaction/action/component/list-active.d.ts +0 -14
  1088. package/lib/interaction/action/component/list-active.js +0 -26
  1089. package/lib/interaction/action/component/list-active.js.map +0 -1
  1090. package/lib/interaction/action/component/list-checked.d.ts +0 -30
  1091. package/lib/interaction/action/component/list-checked.js +0 -84
  1092. package/lib/interaction/action/component/list-checked.js.map +0 -1
  1093. package/lib/interaction/action/component/list-focus.d.ts +0 -5
  1094. package/lib/interaction/action/component/list-focus.js +0 -57
  1095. package/lib/interaction/action/component/list-focus.js.map +0 -1
  1096. package/lib/interaction/action/component/list-highlight-util.d.ts +0 -7
  1097. package/lib/interaction/action/component/list-highlight-util.js +0 -24
  1098. package/lib/interaction/action/component/list-highlight-util.js.map +0 -1
  1099. package/lib/interaction/action/component/list-highlight.d.ts +0 -20
  1100. package/lib/interaction/action/component/list-highlight.js +0 -99
  1101. package/lib/interaction/action/component/list-highlight.js.map +0 -1
  1102. package/lib/interaction/action/component/list-radio.d.ts +0 -6
  1103. package/lib/interaction/action/component/list-radio.js +0 -28
  1104. package/lib/interaction/action/component/list-radio.js.map +0 -1
  1105. package/lib/interaction/action/component/list-selected.d.ts +0 -10
  1106. package/lib/interaction/action/component/list-selected.js +0 -22
  1107. package/lib/interaction/action/component/list-selected.js.map +0 -1
  1108. package/lib/interaction/action/component/list-state.d.ts +0 -46
  1109. package/lib/interaction/action/component/list-state.js +0 -169
  1110. package/lib/interaction/action/component/list-state.js.map +0 -1
  1111. package/lib/interaction/action/component/list-unchecked.d.ts +0 -13
  1112. package/lib/interaction/action/component/list-unchecked.js +0 -25
  1113. package/lib/interaction/action/component/list-unchecked.js.map +0 -1
  1114. package/lib/interaction/action/component/tooltip/ellipsis-text.d.ts +0 -25
  1115. package/lib/interaction/action/component/tooltip/ellipsis-text.js +0 -95
  1116. package/lib/interaction/action/component/tooltip/ellipsis-text.js.map +0 -1
  1117. package/lib/interaction/action/component/tooltip/geometry.d.ts +0 -24
  1118. package/lib/interaction/action/component/tooltip/geometry.js +0 -73
  1119. package/lib/interaction/action/component/tooltip/geometry.js.map +0 -1
  1120. package/lib/interaction/action/component/tooltip/sibling.d.ts +0 -21
  1121. package/lib/interaction/action/component/tooltip/sibling.js +0 -41
  1122. package/lib/interaction/action/component/tooltip/sibling.js.map +0 -1
  1123. package/lib/interaction/action/cursor.d.ts +0 -69
  1124. package/lib/interaction/action/cursor.js +0 -115
  1125. package/lib/interaction/action/cursor.js.map +0 -1
  1126. package/lib/interaction/action/data/filter.d.ts +0 -13
  1127. package/lib/interaction/action/data/filter.js +0 -68
  1128. package/lib/interaction/action/data/filter.js.map +0 -1
  1129. package/lib/interaction/action/data/range-filter.d.ts +0 -56
  1130. package/lib/interaction/action/data/range-filter.js +0 -166
  1131. package/lib/interaction/action/data/range-filter.js.map +0 -1
  1132. package/lib/interaction/action/data/sibling-filter.d.ts +0 -22
  1133. package/lib/interaction/action/data/sibling-filter.js +0 -41
  1134. package/lib/interaction/action/data/sibling-filter.js.map +0 -1
  1135. package/lib/interaction/action/element/active.d.ts +0 -14
  1136. package/lib/interaction/action/element/active.js +0 -26
  1137. package/lib/interaction/action/element/active.js.map +0 -1
  1138. package/lib/interaction/action/element/filter.d.ts +0 -20
  1139. package/lib/interaction/action/element/filter.js +0 -91
  1140. package/lib/interaction/action/element/filter.js.map +0 -1
  1141. package/lib/interaction/action/element/highlight-by-color.d.ts +0 -10
  1142. package/lib/interaction/action/element/highlight-by-color.js +0 -32
  1143. package/lib/interaction/action/element/highlight-by-color.js.map +0 -1
  1144. package/lib/interaction/action/element/highlight-by-x.d.ts +0 -15
  1145. package/lib/interaction/action/element/highlight-by-x.js +0 -53
  1146. package/lib/interaction/action/element/highlight-by-x.js.map +0 -1
  1147. package/lib/interaction/action/element/highlight-util.d.ts +0 -18
  1148. package/lib/interaction/action/element/highlight-util.js +0 -50
  1149. package/lib/interaction/action/element/highlight-util.js.map +0 -1
  1150. package/lib/interaction/action/element/highlight.d.ts +0 -21
  1151. package/lib/interaction/action/element/highlight.js +0 -96
  1152. package/lib/interaction/action/element/highlight.js.map +0 -1
  1153. package/lib/interaction/action/element/link-by-color.d.ts +0 -51
  1154. package/lib/interaction/action/element/link-by-color.js +0 -158
  1155. package/lib/interaction/action/element/link-by-color.js.map +0 -1
  1156. package/lib/interaction/action/element/range-active.d.ts +0 -13
  1157. package/lib/interaction/action/element/range-active.js +0 -25
  1158. package/lib/interaction/action/element/range-active.js.map +0 -1
  1159. package/lib/interaction/action/element/range-highlight.d.ts +0 -27
  1160. package/lib/interaction/action/element/range-highlight.js +0 -57
  1161. package/lib/interaction/action/element/range-highlight.js.map +0 -1
  1162. package/lib/interaction/action/element/range-selected.d.ts +0 -13
  1163. package/lib/interaction/action/element/range-selected.js +0 -25
  1164. package/lib/interaction/action/element/range-selected.js.map +0 -1
  1165. package/lib/interaction/action/element/range-state.d.ts +0 -38
  1166. package/lib/interaction/action/element/range-state.js +0 -166
  1167. package/lib/interaction/action/element/range-state.js.map +0 -1
  1168. package/lib/interaction/action/element/selected.d.ts +0 -14
  1169. package/lib/interaction/action/element/selected.js +0 -26
  1170. package/lib/interaction/action/element/selected.js.map +0 -1
  1171. package/lib/interaction/action/element/sibling-filter.d.ts +0 -19
  1172. package/lib/interaction/action/element/sibling-filter.js +0 -95
  1173. package/lib/interaction/action/element/sibling-filter.js.map +0 -1
  1174. package/lib/interaction/action/element/single-active.d.ts +0 -13
  1175. package/lib/interaction/action/element/single-active.js +0 -25
  1176. package/lib/interaction/action/element/single-active.js.map +0 -1
  1177. package/lib/interaction/action/element/single-highlight.d.ts +0 -16
  1178. package/lib/interaction/action/element/single-highlight.js +0 -37
  1179. package/lib/interaction/action/element/single-highlight.js.map +0 -1
  1180. package/lib/interaction/action/element/single-selected.d.ts +0 -13
  1181. package/lib/interaction/action/element/single-selected.js +0 -25
  1182. package/lib/interaction/action/element/single-selected.js.map +0 -1
  1183. package/lib/interaction/action/element/single-state.d.ts +0 -18
  1184. package/lib/interaction/action/element/single-state.js +0 -55
  1185. package/lib/interaction/action/element/single-state.js.map +0 -1
  1186. package/lib/interaction/action/element/state-base.d.ts +0 -39
  1187. package/lib/interaction/action/element/state-base.js +0 -61
  1188. package/lib/interaction/action/element/state-base.js.map +0 -1
  1189. package/lib/interaction/action/element/state.d.ts +0 -28
  1190. package/lib/interaction/action/element/state.js +0 -101
  1191. package/lib/interaction/action/element/state.js.map +0 -1
  1192. package/lib/interaction/action/index.d.ts +0 -2
  1193. package/lib/interaction/action/index.js +0 -13
  1194. package/lib/interaction/action/index.js.map +0 -1
  1195. package/lib/interaction/action/mask/base.d.ts +0 -62
  1196. package/lib/interaction/action/mask/base.js +0 -171
  1197. package/lib/interaction/action/mask/base.js.map +0 -1
  1198. package/lib/interaction/action/mask/circle.d.ts +0 -14
  1199. package/lib/interaction/action/mask/circle.js +0 -39
  1200. package/lib/interaction/action/mask/circle.js.map +0 -1
  1201. package/lib/interaction/action/mask/dim-rect.d.ts +0 -11
  1202. package/lib/interaction/action/mask/dim-rect.js +0 -64
  1203. package/lib/interaction/action/mask/dim-rect.js.map +0 -1
  1204. package/lib/interaction/action/mask/path.d.ts +0 -16
  1205. package/lib/interaction/action/mask/path.js +0 -46
  1206. package/lib/interaction/action/mask/path.js.map +0 -1
  1207. package/lib/interaction/action/mask/rect.d.ts +0 -17
  1208. package/lib/interaction/action/mask/rect.js +0 -41
  1209. package/lib/interaction/action/mask/rect.js.map +0 -1
  1210. package/lib/interaction/action/mask/smooth-path.d.ts +0 -9
  1211. package/lib/interaction/action/mask/smooth-path.js +0 -23
  1212. package/lib/interaction/action/mask/smooth-path.js.map +0 -1
  1213. package/lib/interaction/action/register.d.ts +0 -36
  1214. package/lib/interaction/action/register.js +0 -69
  1215. package/lib/interaction/action/register.js.map +0 -1
  1216. package/lib/interaction/action/util.d.ts +0 -140
  1217. package/lib/interaction/action/util.js +0 -387
  1218. package/lib/interaction/action/util.js.map +0 -1
  1219. package/lib/interaction/action/view/button.d.ts +0 -25
  1220. package/lib/interaction/action/view/button.js +0 -118
  1221. package/lib/interaction/action/view/button.js.map +0 -1
  1222. package/lib/interaction/action/view/drag.d.ts +0 -24
  1223. package/lib/interaction/action/view/drag.js +0 -75
  1224. package/lib/interaction/action/view/drag.js.map +0 -1
  1225. package/lib/interaction/action/view/mousewheel-scroll.d.ts +0 -5
  1226. package/lib/interaction/action/view/mousewheel-scroll.js +0 -37
  1227. package/lib/interaction/action/view/mousewheel-scroll.js.map +0 -1
  1228. package/lib/interaction/action/view/move.d.ts +0 -28
  1229. package/lib/interaction/action/view/move.js +0 -82
  1230. package/lib/interaction/action/view/move.js.map +0 -1
  1231. package/lib/interaction/action/view/scale-transform.d.ts +0 -18
  1232. package/lib/interaction/action/view/scale-transform.js +0 -53
  1233. package/lib/interaction/action/view/scale-transform.js.map +0 -1
  1234. package/lib/interaction/action/view/scale-translate.d.ts +0 -30
  1235. package/lib/interaction/action/view/scale-translate.js +0 -114
  1236. package/lib/interaction/action/view/scale-translate.js.map +0 -1
  1237. package/lib/interaction/action/view/scale-zoom.d.ts +0 -20
  1238. package/lib/interaction/action/view/scale-zoom.js +0 -85
  1239. package/lib/interaction/action/view/scale-zoom.js.map +0 -1
  1240. package/lib/interaction/context.d.ts +0 -65
  1241. package/lib/interaction/context.js +0 -144
  1242. package/lib/interaction/context.js.map +0 -1
  1243. package/lib/interaction/grammar-interaction.d.ts +0 -158
  1244. package/lib/interaction/grammar-interaction.js +0 -289
  1245. package/lib/interaction/grammar-interaction.js.map +0 -1
  1246. package/lib/interaction/index.d.ts +0 -25
  1247. package/lib/interaction/index.js +0 -54
  1248. package/lib/interaction/index.js.map +0 -1
  1249. package/lib/interaction/interaction.d.ts +0 -29
  1250. package/lib/interaction/interaction.js +0 -34
  1251. package/lib/interaction/interaction.js.map +0 -1
  1252. package/lib/interface.d.ts +0 -2264
  1253. package/lib/interface.js +0 -3
  1254. package/lib/interface.js.map +0 -1
  1255. package/lib/theme/index.d.ts +0 -12
  1256. package/lib/theme/index.js +0 -28
  1257. package/lib/theme/index.js.map +0 -1
  1258. package/lib/theme/style-sheet/dark.d.ts +0 -825
  1259. package/lib/theme/style-sheet/dark.js +0 -500
  1260. package/lib/theme/style-sheet/dark.js.map +0 -1
  1261. package/lib/theme/style-sheet/light.d.ts +0 -817
  1262. package/lib/theme/style-sheet/light.js +0 -496
  1263. package/lib/theme/style-sheet/light.js.map +0 -1
  1264. package/lib/theme/util/create-by-style-sheet.d.ts +0 -6
  1265. package/lib/theme/util/create-by-style-sheet.js +0 -1426
  1266. package/lib/theme/util/create-by-style-sheet.js.map +0 -1
  1267. package/lib/theme/util/create-theme.d.ts +0 -6
  1268. package/lib/theme/util/create-theme.js +0 -16
  1269. package/lib/theme/util/create-theme.js.map +0 -1
  1270. package/lib/theme/util/index.d.ts +0 -1
  1271. package/lib/theme/util/index.js +0 -6
  1272. package/lib/theme/util/index.js.map +0 -1
  1273. package/lib/util/annotation.d.ts +0 -7
  1274. package/lib/util/annotation.js +0 -43
  1275. package/lib/util/annotation.js.map +0 -1
  1276. package/lib/util/attr.d.ts +0 -10
  1277. package/lib/util/attr.js +0 -29
  1278. package/lib/util/attr.js.map +0 -1
  1279. package/lib/util/axis.d.ts +0 -100
  1280. package/lib/util/axis.js +0 -251
  1281. package/lib/util/axis.js.map +0 -1
  1282. package/lib/util/bbox.d.ts +0 -105
  1283. package/lib/util/bbox.js +0 -287
  1284. package/lib/util/bbox.js.map +0 -1
  1285. package/lib/util/collision-detect.d.ts +0 -16
  1286. package/lib/util/collision-detect.js +0 -132
  1287. package/lib/util/collision-detect.js.map +0 -1
  1288. package/lib/util/color.d.ts +0 -1
  1289. package/lib/util/color.js +0 -23
  1290. package/lib/util/color.js.map +0 -1
  1291. package/lib/util/context.d.ts +0 -4
  1292. package/lib/util/context.js +0 -15
  1293. package/lib/util/context.js.map +0 -1
  1294. package/lib/util/coordinate.d.ts +0 -86
  1295. package/lib/util/coordinate.js +0 -157
  1296. package/lib/util/coordinate.js.map +0 -1
  1297. package/lib/util/direction.d.ts +0 -19
  1298. package/lib/util/direction.js +0 -125
  1299. package/lib/util/direction.js.map +0 -1
  1300. package/lib/util/dom.d.ts +0 -19
  1301. package/lib/util/dom.js +0 -68
  1302. package/lib/util/dom.js.map +0 -1
  1303. package/lib/util/event.d.ts +0 -8
  1304. package/lib/util/event.js +0 -18
  1305. package/lib/util/event.js.map +0 -1
  1306. package/lib/util/facet.d.ts +0 -16
  1307. package/lib/util/facet.js +0 -48
  1308. package/lib/util/facet.js.map +0 -1
  1309. package/lib/util/graphics.d.ts +0 -58
  1310. package/lib/util/graphics.js +0 -212
  1311. package/lib/util/graphics.js.map +0 -1
  1312. package/lib/util/grid.d.ts +0 -36
  1313. package/lib/util/grid.js +0 -125
  1314. package/lib/util/grid.js.map +0 -1
  1315. package/lib/util/helper.d.ts +0 -34
  1316. package/lib/util/helper.js +0 -79
  1317. package/lib/util/helper.js.map +0 -1
  1318. package/lib/util/legend.d.ts +0 -45
  1319. package/lib/util/legend.js +0 -152
  1320. package/lib/util/legend.js.map +0 -1
  1321. package/lib/util/marker.d.ts +0 -10
  1322. package/lib/util/marker.js +0 -61
  1323. package/lib/util/marker.js.map +0 -1
  1324. package/lib/util/padding.d.ts +0 -14
  1325. package/lib/util/padding.js +0 -45
  1326. package/lib/util/padding.js.map +0 -1
  1327. package/lib/util/scale.d.ts +0 -38
  1328. package/lib/util/scale.js +0 -122
  1329. package/lib/util/scale.js.map +0 -1
  1330. package/lib/util/stat.d.ts +0 -10
  1331. package/lib/util/stat.js +0 -41
  1332. package/lib/util/stat.js.map +0 -1
  1333. package/lib/util/text.d.ts +0 -23
  1334. package/lib/util/text.js +0 -88
  1335. package/lib/util/text.js.map +0 -1
  1336. package/lib/util/tooltip.d.ts +0 -26
  1337. package/lib/util/tooltip.js +0 -422
  1338. package/lib/util/tooltip.js.map +0 -1
  1339. package/lib/util/transform.d.ts +0 -33
  1340. package/lib/util/transform.js +0 -69
  1341. package/lib/util/transform.js.map +0 -1
  1342. package/lib/util/types.d.ts +0 -6
  1343. package/lib/util/types.js +0 -3
  1344. package/lib/util/types.js.map +0 -1
@@ -1,1483 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var tslib_1 = require("tslib");
4
- var adjust_1 = require("@antv/adjust");
5
- var attr_1 = require("@antv/attr");
6
- var util_1 = require("@antv/util");
7
- var animate_1 = require("../animate");
8
- var base_1 = (0, tslib_1.__importDefault)(require("../base"));
9
- var constant_1 = require("../constant");
10
- var helper_1 = require("../util/helper");
11
- var element_1 = (0, tslib_1.__importDefault)(require("./element"));
12
- var label_1 = require("./label");
13
- var base_2 = require("./shape/base");
14
- var group_data_1 = require("./util/group-data");
15
- var is_model_change_1 = require("./util/is-model-change");
16
- var parse_fields_1 = require("./util/parse-fields");
17
- var diff_1 = require("./util/diff");
18
- var coordinate_1 = require("../util/coordinate");
19
- // 根据 elementId 查找对应的 label,因为有可能一个 element 对应多个 labels,所以在给 labels 打标识时做了处理
20
- // 打标规则详见 ./label/base.ts#L263
21
- function filterLabelsById(id, labelsMap) {
22
- var labels = [];
23
- (0, util_1.each)(labelsMap, function (label, labelId) {
24
- var elementId = labelId.split(' ')[0];
25
- if (elementId === id) {
26
- labels.push(label);
27
- }
28
- });
29
- return labels;
30
- }
31
- /**
32
- * Geometry 几何标记基类,主要负责数据到图形属性的映射以及绘制逻辑。
33
- */
34
- var Geometry = /** @class */ (function (_super) {
35
- (0, tslib_1.__extends)(Geometry, _super);
36
- /**
37
- * 创建 Geometry 实例。
38
- * @param cfg
39
- */
40
- function Geometry(cfg) {
41
- var _this = _super.call(this, cfg) || this;
42
- /** Geometry 几何标记类型。 */
43
- _this.type = 'base';
44
- // 内部产生的属性
45
- /** Attribute map */
46
- _this.attributes = {};
47
- /** Element map */
48
- _this.elements = [];
49
- /** 使用 key-value 结构存储 Element,key 为每个 Element 实例对应的唯一 ID */
50
- _this.elementsMap = {};
51
- /** animate 配置项 */
52
- _this.animateOption = true;
53
- /** 图形属性映射配置 */
54
- _this.attributeOption = {};
55
- /** 存储上一次渲染时的 element 映射表,用于更新逻辑 */
56
- _this.lastElementsMap = {};
57
- /** 是否生成多个点来绘制图形。 */
58
- _this.generatePoints = false;
59
- /** 存储发生图形属性映射前的数据 */
60
- _this.beforeMappingData = null;
61
- _this.adjusts = {};
62
- _this.idFields = [];
63
- _this.hasSorted = false;
64
- _this.isCoordinateChanged = false;
65
- var container = cfg.container, labelsContainer = cfg.labelsContainer, coordinate = cfg.coordinate, data = cfg.data, _a = cfg.sortable, sortable = _a === void 0 ? false : _a, _b = cfg.visible, visible = _b === void 0 ? true : _b, theme = cfg.theme, _c = cfg.scales, scales = _c === void 0 ? {} : _c, _d = cfg.scaleDefs, scaleDefs = _d === void 0 ? {} : _d,
66
- // 柱状图间隔与宽度相关配置
67
- intervalPadding = cfg.intervalPadding, dodgePadding = cfg.dodgePadding, maxColumnWidth = cfg.maxColumnWidth, minColumnWidth = cfg.minColumnWidth, columnWidthRatio = cfg.columnWidthRatio, roseWidthRatio = cfg.roseWidthRatio, multiplePieWidthRatio = cfg.multiplePieWidthRatio, zIndexReversed = cfg.zIndexReversed, sortZIndex = cfg.sortZIndex;
68
- _this.container = container;
69
- _this.labelsContainer = labelsContainer;
70
- _this.coordinate = coordinate;
71
- _this.data = data;
72
- _this.sortable = sortable;
73
- _this.visible = visible;
74
- _this.userTheme = theme;
75
- _this.scales = scales;
76
- _this.scaleDefs = scaleDefs;
77
- // 柱状图间隔与宽度相关配置
78
- _this.intervalPadding = intervalPadding;
79
- _this.dodgePadding = dodgePadding;
80
- _this.maxColumnWidth = maxColumnWidth;
81
- _this.minColumnWidth = minColumnWidth;
82
- _this.columnWidthRatio = columnWidthRatio;
83
- _this.roseWidthRatio = roseWidthRatio;
84
- _this.multiplePieWidthRatio = multiplePieWidthRatio;
85
- _this.zIndexReversed = zIndexReversed;
86
- _this.sortZIndex = sortZIndex;
87
- return _this;
88
- }
89
- /**
90
- * 配置 position 通道映射规则。
91
- *
92
- * @example
93
- * ```typescript
94
- * // 数据结构: [{ x: 'A', y: 10, color: 'red' }]
95
- * geometry.position('x*y');
96
- * geometry.position([ 'x', 'y' ]);
97
- * geometry.position({
98
- * fields: [ 'x', 'y' ],
99
- * });
100
- * ```
101
- *
102
- * @param cfg 映射规则
103
- * @returns
104
- */
105
- Geometry.prototype.position = function (cfg) {
106
- var positionCfg = cfg;
107
- if (!(0, util_1.isPlainObject)(cfg)) {
108
- // 字符串字段或者数组字段
109
- positionCfg = {
110
- fields: (0, parse_fields_1.parseFields)(cfg),
111
- };
112
- }
113
- var fields = (0, util_1.get)(positionCfg, 'fields');
114
- if (fields.length === 1) {
115
- // 默认填充一维 1*xx
116
- fields.unshift('1');
117
- (0, util_1.set)(positionCfg, 'fields', fields);
118
- }
119
- (0, util_1.set)(this.attributeOption, 'position', positionCfg);
120
- return this;
121
- };
122
- Geometry.prototype.color = function (field, cfg) {
123
- this.createAttrOption('color', field, cfg);
124
- return this;
125
- };
126
- Geometry.prototype.shape = function (field, cfg) {
127
- this.createAttrOption('shape', field, cfg);
128
- return this;
129
- };
130
- Geometry.prototype.size = function (field, cfg) {
131
- this.createAttrOption('size', field, cfg);
132
- return this;
133
- };
134
- /**
135
- * 设置数据调整方式。G2 目前内置了四种类型:
136
- * 1. dodge
137
- * 2. stack
138
- * 3. symmetric
139
- * 4. jitter
140
- *
141
- *
142
- * **Tip**
143
- * + 对于 'dodge' 类型,可以额外进行如下属性的配置:
144
- * ```typescript
145
- * geometry.adjust('dodge', {
146
- * marginRatio: 0, // 取 0 到 1 范围的值(相对于每个柱子宽度),用于控制一个分组中柱子之间的间距
147
- * dodgeBy: 'x', // 该属性只对 'dodge' 类型生效,声明以哪个数据字段为分组依据
148
- * });
149
- * ```
150
- *
151
- * + 对于 'stack' 类型,可以额外进行如下属性的配置:
152
- * ```typescript
153
- * geometry.adjust('stack', {
154
- * reverseOrder: false, // 用于控制是否对数据进行反序操作
155
- * });
156
- * ```
157
- *
158
- * @example
159
- * ```typescript
160
- * geometry.adjust('stack');
161
- *
162
- * geometry.adjust({
163
- * type: 'stack',
164
- * reverseOrder: false,
165
- * });
166
- *
167
- * // 组合使用 adjust
168
- * geometry.adjust([ 'stack', 'dodge' ]);
169
- *
170
- * geometry.adjust([
171
- * { type: 'stack' },
172
- * { type: 'dodge', dodgeBy: 'x' },
173
- * ]);
174
- * ```
175
- *
176
- * @param adjustCfg 数据调整配置
177
- * @returns
178
- */
179
- Geometry.prototype.adjust = function (adjustCfg) {
180
- var adjusts = adjustCfg;
181
- if ((0, util_1.isString)(adjustCfg) || (0, util_1.isPlainObject)(adjustCfg)) {
182
- adjusts = [adjustCfg];
183
- }
184
- (0, util_1.each)(adjusts, function (adjust, index) {
185
- if (!(0, util_1.isObject)(adjust)) {
186
- adjusts[index] = { type: adjust };
187
- }
188
- });
189
- this.adjustOption = adjusts;
190
- return this;
191
- };
192
- Geometry.prototype.style = function (field, styleFunc) {
193
- if ((0, util_1.isString)(field)) {
194
- var fields = (0, parse_fields_1.parseFields)(field);
195
- this.styleOption = {
196
- fields: fields,
197
- callback: styleFunc,
198
- };
199
- }
200
- else {
201
- var _a = field, fields = _a.fields, callback = _a.callback, cfg = _a.cfg;
202
- if (fields || callback || cfg) {
203
- this.styleOption = field;
204
- }
205
- else {
206
- this.styleOption = {
207
- cfg: field,
208
- };
209
- }
210
- }
211
- return this;
212
- };
213
- Geometry.prototype.tooltip = function (field, cfg) {
214
- if ((0, util_1.isString)(field)) {
215
- var fields = (0, parse_fields_1.parseFields)(field);
216
- this.tooltipOption = {
217
- fields: fields,
218
- callback: cfg,
219
- };
220
- }
221
- else {
222
- this.tooltipOption = field;
223
- }
224
- return this;
225
- };
226
- /**
227
- * Geometry 动画配置。
228
- *
229
- * + `animate(false)` 关闭动画
230
- * + `animate(true)` 开启动画,默认开启。
231
- *
232
- * 我们将动画分为四个场景:
233
- * 1. appear: 图表第一次加载时的入场动画;
234
- * 2. enter: 图表绘制完成,发生更新后,产生的新图形的进场动画;
235
- * 3. update: 图表绘制完成,数据发生变更后,有状态变更的图形的更新动画;
236
- * 4. leave: 图表绘制完成,数据发生变更后,被销毁图形的销毁动画。
237
- *
238
- * @example
239
- * ```typescript
240
- * animate({
241
- * enter: {
242
- * duration: 1000, // enter 动画执行时间
243
- * },
244
- * leave: false, // 关闭 leave 销毁动画
245
- * });
246
- * ```
247
- *
248
- * @param cfg 动画配置
249
- * @returns
250
- */
251
- Geometry.prototype.animate = function (cfg) {
252
- this.animateOption = cfg;
253
- return this;
254
- };
255
- Geometry.prototype.label = function (field, secondParam, thirdParam) {
256
- if ((0, util_1.isString)(field)) {
257
- var labelOption = {};
258
- var fields = (0, parse_fields_1.parseFields)(field);
259
- labelOption.fields = fields;
260
- if ((0, util_1.isFunction)(secondParam)) {
261
- labelOption.callback = secondParam;
262
- }
263
- else if ((0, util_1.isPlainObject)(secondParam)) {
264
- labelOption.cfg = secondParam;
265
- }
266
- if (thirdParam) {
267
- labelOption.cfg = thirdParam;
268
- }
269
- this.labelOption = labelOption;
270
- }
271
- else {
272
- this.labelOption = field;
273
- }
274
- return this;
275
- };
276
- /**
277
- * 设置状态对应的样式。
278
- *
279
- * @example
280
- * ```ts
281
- * chart.interval().state({
282
- * selected: {
283
- * animate: { duration: 100, easing: 'easeLinear' },
284
- * style: {
285
- * lineWidth: 2,
286
- * stroke: '#000',
287
- * },
288
- * },
289
- * });
290
- * ```
291
- *
292
- * 如果图形 shape 是由多个 shape 组成,即为一个 G.Group 对象,那么针对 group 中的每个 shape,我们需要使用下列方式进行状态样式设置:
293
- * 如果我们为 group 中的每个 shape 设置了 'name' 属性(shape.set('name', 'xx')),则以 'name' 作为 key,否则默认以索引值(即 shape 的 添加顺序)为 key。
294
- *
295
- * ```ts
296
- * chart.interval().shape('groupShape').state({
297
- * selected: {
298
- * style: {
299
- * 0: { lineWidth: 2 },
300
- * 1: { fillOpacity: 1 },
301
- * }
302
- * }
303
- * });
304
- * ```
305
- *
306
- * @param cfg 状态样式
307
- */
308
- Geometry.prototype.state = function (cfg) {
309
- this.stateOption = cfg;
310
- return this;
311
- };
312
- /**
313
- * 用于向 shape 中传入自定义的数据。目前可能仅仅可能用于在自定义 shape 的时候,像自定义 shape 中传入自定义的数据,方便实现自定义 shape 的配置能力。
314
- *
315
- * @example
316
- * ```ts
317
- * chart.interval().customInfo({ yourData: 'hello, g2!' });
318
- * ```
319
- *
320
- * 然后在自定义 shape 的时候,可以拿到这个信息。
321
- *
322
- * ```ts
323
- * registerShape('interval', 'your-shape', {
324
- * draw(shapeInfo, container) {
325
- * const { customInfo } = shapeInfo;
326
- * console.log(customInfo); // will log { yourData: 'hello, g2!' }.
327
- * }
328
- * });
329
- * ```
330
- *
331
- * @param cfg
332
- */
333
- Geometry.prototype.customInfo = function (cfg) {
334
- this.customOption = cfg;
335
- return this;
336
- };
337
- /**
338
- * 初始化 Geomtry 实例:
339
- * 创建 [[Attribute]] and [[Scale]] 实例,进行数据处理,包括分组、数值化以及数据调整。
340
- */
341
- Geometry.prototype.init = function (cfg) {
342
- if (cfg === void 0) { cfg = {}; }
343
- this.setCfg(cfg);
344
- this.initAttributes(); // 创建图形属性
345
- // 数据加工:分组 -> 数字化 -> adjust
346
- this.processData(this.data);
347
- // 调整 scale
348
- this.adjustScale();
349
- };
350
- /**
351
- * Geometry 更新。
352
- * @param [cfg] 更新的配置
353
- */
354
- Geometry.prototype.update = function (cfg) {
355
- if (cfg === void 0) { cfg = {}; }
356
- var data = cfg.data, isDataChanged = cfg.isDataChanged, isCoordinateChanged = cfg.isCoordinateChanged;
357
- var _a = this, attributeOption = _a.attributeOption, lastAttributeOption = _a.lastAttributeOption;
358
- if (!(0, util_1.isEqual)(attributeOption, lastAttributeOption)) {
359
- // 映射发生改变,则重新创建图形属性
360
- this.init(cfg);
361
- }
362
- else if (data && (isDataChanged || !(0, util_1.isEqual)(data, this.data))) {
363
- // 数据发生变化
364
- this.setCfg(cfg);
365
- this.initAttributes(); // 创建图形属性
366
- this.processData(data); // 数据加工:分组 -> 数字化 -> adjust
367
- }
368
- else {
369
- // 有可能 coordinate 变化
370
- this.setCfg(cfg);
371
- }
372
- // 调整 scale
373
- this.adjustScale();
374
- this.isCoordinateChanged = isCoordinateChanged;
375
- };
376
- /**
377
- * 将原始数据映射至图形空间,同时创建图形对象。
378
- */
379
- Geometry.prototype.paint = function (isUpdate) {
380
- if (isUpdate === void 0) { isUpdate = false; }
381
- if (this.animateOption) {
382
- this.animateOption = (0, util_1.deepMix)({}, (0, animate_1.getDefaultAnimateCfg)(this.type, this.coordinate), this.animateOption);
383
- }
384
- this.defaultSize = undefined;
385
- this.elementsMap = {};
386
- this.elements = [];
387
- var offscreenGroup = this.getOffscreenGroup();
388
- offscreenGroup.clear();
389
- var beforeMappingData = this.beforeMappingData;
390
- var dataArray = this.beforeMapping(beforeMappingData);
391
- this.dataArray = new Array(dataArray.length);
392
- for (var i = 0; i < dataArray.length; i++) {
393
- var data = dataArray[i];
394
- this.dataArray[i] = this.mapping(data);
395
- }
396
- this.updateElements(this.dataArray, isUpdate);
397
- this.lastElementsMap = this.elementsMap;
398
- if (this.canDoGroupAnimation(isUpdate)) {
399
- // 如果用户没有配置 appear.animation,就默认走整体动画
400
- var container = this.container;
401
- var type = this.type;
402
- var coordinate = this.coordinate;
403
- var animateCfg = (0, util_1.get)(this.animateOption, 'appear');
404
- var yScale = this.getYScale();
405
- var yMinPoint = coordinate.convert({
406
- x: 0,
407
- y: yScale.scale(this.getYMinValue()),
408
- });
409
- (0, animate_1.doGroupAppearAnimate)(container, animateCfg, type, coordinate, yMinPoint);
410
- }
411
- // 添加 label
412
- if (this.labelOption) {
413
- this.renderLabels((0, util_1.flatten)(this.dataArray), isUpdate);
414
- }
415
- // 缓存,用于更新
416
- this.lastAttributeOption = (0, tslib_1.__assign)({}, this.attributeOption);
417
- if (this.visible === false) {
418
- // 用户在初始化的时候声明 visible: false
419
- this.changeVisible(false);
420
- }
421
- };
422
- /**
423
- * 清空当前 Geometry,配置项仍保留,但是内部创建的对象全部清空。
424
- * @override
425
- */
426
- Geometry.prototype.clear = function () {
427
- var _a = this, container = _a.container, geometryLabel = _a.geometryLabel, offscreenGroup = _a.offscreenGroup;
428
- if (container) {
429
- container.clear();
430
- }
431
- if (geometryLabel) {
432
- geometryLabel.clear();
433
- }
434
- if (offscreenGroup) {
435
- offscreenGroup.clear();
436
- }
437
- // 属性恢复至出厂状态
438
- this.scaleDefs = undefined;
439
- this.attributes = {};
440
- this.scales = {};
441
- this.elementsMap = {};
442
- this.lastElementsMap = {};
443
- this.elements = [];
444
- this.adjusts = {};
445
- this.dataArray = null;
446
- this.beforeMappingData = null;
447
- this.lastAttributeOption = undefined;
448
- this.defaultSize = undefined;
449
- this.idFields = [];
450
- this.groupScales = undefined;
451
- this.hasSorted = false;
452
- this.isCoordinateChanged = false;
453
- };
454
- /**
455
- * 销毁 Geometry 实例。
456
- */
457
- Geometry.prototype.destroy = function () {
458
- this.clear();
459
- var container = this.container;
460
- container.remove(true);
461
- if (this.offscreenGroup) {
462
- this.offscreenGroup.remove(true);
463
- this.offscreenGroup = null;
464
- }
465
- if (this.geometryLabel) {
466
- this.geometryLabel.destroy();
467
- this.geometryLabel = null;
468
- }
469
- this.theme = undefined;
470
- this.shapeFactory = undefined;
471
- _super.prototype.destroy.call(this);
472
- };
473
- /**
474
- * 获取决定分组的图形属性对应的 scale 实例。
475
- * @returns
476
- */
477
- Geometry.prototype.getGroupScales = function () {
478
- return this.groupScales;
479
- };
480
- /**
481
- * 根据名字获取图形属性实例。
482
- */
483
- Geometry.prototype.getAttribute = function (name) {
484
- return this.attributes[name];
485
- };
486
- /** 获取 x 轴对应的 scale 实例。 */
487
- Geometry.prototype.getXScale = function () {
488
- return this.getAttribute('position').scales[0];
489
- };
490
- /** 获取 y 轴对应的 scale 实例。 */
491
- Geometry.prototype.getYScale = function () {
492
- return this.getAttribute('position').scales[1];
493
- };
494
- /**
495
- * 获取决定分组的图形属性实例。
496
- */
497
- Geometry.prototype.getGroupAttributes = function () {
498
- var rst = [];
499
- (0, util_1.each)(this.attributes, function (attr) {
500
- if (constant_1.GROUP_ATTRS.includes(attr.type)) {
501
- rst.push(attr);
502
- }
503
- });
504
- return rst;
505
- };
506
- /** 获取图形属性默认的映射值。 */
507
- Geometry.prototype.getDefaultValue = function (attrName) {
508
- var value;
509
- var attr = this.getAttribute(attrName);
510
- if (attr && (0, util_1.isEmpty)(attr.scales)) {
511
- // 获取映射至常量的值
512
- value = attr.values[0];
513
- }
514
- return value;
515
- };
516
- /**
517
- * 获取该数据发生图形映射后对应的 Attribute 图形空间数据。
518
- * @param attr Attribute 图形属性实例。
519
- * @param obj 需要进行映射的原始数据。
520
- * @returns
521
- */
522
- Geometry.prototype.getAttributeValues = function (attr, obj) {
523
- var params = [];
524
- var scales = attr.scales;
525
- for (var index = 0, length_1 = scales.length; index < length_1; index++) {
526
- var scale = scales[index];
527
- var field = scale.field;
528
- if (scale.isIdentity) {
529
- params.push(scale.values);
530
- }
531
- else {
532
- params.push(obj[field]);
533
- }
534
- }
535
- return attr.mapping.apply(attr, params);
536
- };
537
- /**
538
- * 获取对应的 adjust 实例
539
- * @param adjustType
540
- * @returns
541
- */
542
- Geometry.prototype.getAdjust = function (adjustType) {
543
- return this.adjusts[adjustType];
544
- };
545
- /**
546
- * 获得 coordinate 实例
547
- * @returns
548
- */
549
- Geometry.prototype.getCoordinate = function () {
550
- return this.coordinate;
551
- };
552
- Geometry.prototype.getData = function () {
553
- return this.data;
554
- };
555
- /**
556
- * 获取 shape 对应的 marker 样式。
557
- * @param shapeName shape 具体名字
558
- * @param cfg marker 信息
559
- * @returns
560
- */
561
- Geometry.prototype.getShapeMarker = function (shapeName, cfg) {
562
- var shapeFactory = this.getShapeFactory();
563
- return shapeFactory.getMarker(shapeName, cfg);
564
- };
565
- /**
566
- * 根据一定的规则查找 Geometry 的 Elements。
567
- *
568
- * ```typescript
569
- * getElementsBy((element) => {
570
- * const data = element.getData();
571
- *
572
- * return data.a === 'a';
573
- * });
574
- * ```
575
- *
576
- * @param condition 定义查找规则的回调函数。
577
- * @returns
578
- */
579
- Geometry.prototype.getElementsBy = function (condition) {
580
- return this.elements.filter(function (element) { return condition(element); });
581
- };
582
- /**
583
- * 获取 Geometry 的所有 Elements。
584
- *
585
- * ```typescript
586
- * getElements();
587
- * ```
588
- */
589
- Geometry.prototype.getElements = function () {
590
- return this.elements;
591
- };
592
- /**
593
- * 获取数据对应的唯一 id。
594
- * @param data Element 对应的绘制数据
595
- * @returns
596
- */
597
- Geometry.prototype.getElementId = function (data) {
598
- data = (0, util_1.isArray)(data) ? data[0] : data;
599
- var originData = data[constant_1.FIELD_ORIGIN];
600
- // 如果用户声明了使用哪些字段作为 id 值
601
- if (this.idFields.length) {
602
- var elementId = originData[this.idFields[0]];
603
- for (var index = 1; index < this.idFields.length; index++) {
604
- elementId += '-' + originData[this.idFields[index]];
605
- }
606
- return elementId;
607
- }
608
- var type = this.type;
609
- var xScale = this.getXScale();
610
- var yScale = this.getYScale();
611
- var xField = xScale.field || 'x';
612
- var yField = yScale.field || 'y';
613
- var yVal = originData[yField];
614
- var xVal;
615
- if (xScale.type === 'identity') {
616
- xVal = xScale.values[0];
617
- }
618
- else {
619
- xVal = originData[xField];
620
- }
621
- var id;
622
- if (type === 'interval' || type === 'schema') {
623
- id = "".concat(xVal);
624
- }
625
- else if (type === 'line' || type === 'area' || type === 'path') {
626
- id = type;
627
- }
628
- else {
629
- id = "".concat(xVal, "-").concat(yVal);
630
- }
631
- var groupScales = this.groupScales;
632
- if ((0, util_1.isEmpty)(groupScales)) {
633
- groupScales = (0, util_1.get)(this.getAttribute('color'), 'scales', []);
634
- }
635
- for (var index = 0, length_2 = groupScales.length; index < length_2; index++) {
636
- var groupScale = groupScales[index];
637
- var field = groupScale.field;
638
- id = "".concat(id, "-").concat(originData[field]);
639
- }
640
- // 用户在进行 dodge 类型的 adjust 调整的时候设置了 dodgeBy 属性
641
- var dodgeAdjust = this.getAdjust('dodge');
642
- if (dodgeAdjust) {
643
- var dodgeBy = dodgeAdjust.dodgeBy;
644
- if (dodgeBy) {
645
- id = "".concat(id, "-").concat(originData[dodgeBy]);
646
- }
647
- }
648
- if (this.getAdjust('jitter')) {
649
- id = "".concat(id, "-").concat(data.x, "-").concat(data.y);
650
- }
651
- return id;
652
- };
653
- /**
654
- * 获取所有需要创建 scale 的字段名称。
655
- */
656
- Geometry.prototype.getScaleFields = function () {
657
- var fields = [];
658
- var tmpMap = new Map();
659
- var _a = this, attributeOption = _a.attributeOption, labelOption = _a.labelOption, tooltipOption = _a.tooltipOption;
660
- // 获取图形属性上的 fields
661
- for (var attributeType in attributeOption) {
662
- if (attributeOption.hasOwnProperty(attributeType)) {
663
- var eachOpt = attributeOption[attributeType];
664
- if (eachOpt.fields) {
665
- (0, helper_1.uniq)(eachOpt.fields, fields, tmpMap);
666
- }
667
- else if (eachOpt.values) {
668
- // 考虑 size(10), shape('circle') 等场景
669
- (0, helper_1.uniq)(eachOpt.values, fields, tmpMap);
670
- }
671
- }
672
- }
673
- // 获取 label 上的字段
674
- if (labelOption && labelOption.fields) {
675
- (0, helper_1.uniq)(labelOption.fields, fields, tmpMap);
676
- }
677
- // 获取 tooltip 上的字段
678
- if ((0, util_1.isObject)(tooltipOption) && tooltipOption.fields) {
679
- (0, helper_1.uniq)(tooltipOption.fields, fields, tmpMap);
680
- }
681
- return fields;
682
- };
683
- /**
684
- * 显示或者隐藏 geometry。
685
- * @param visible
686
- */
687
- Geometry.prototype.changeVisible = function (visible) {
688
- _super.prototype.changeVisible.call(this, visible);
689
- var elements = this.elements;
690
- for (var index = 0, length_3 = elements.length; index < length_3; index++) {
691
- var element = elements[index];
692
- element.changeVisible(visible);
693
- }
694
- if (visible) {
695
- if (this.container) {
696
- this.container.show();
697
- }
698
- if (this.labelsContainer) {
699
- this.labelsContainer.show();
700
- }
701
- }
702
- else {
703
- if (this.container) {
704
- this.container.hide();
705
- }
706
- if (this.labelsContainer) {
707
- this.labelsContainer.hide();
708
- }
709
- }
710
- };
711
- /**
712
- * 获得所有的字段
713
- */
714
- Geometry.prototype.getFields = function () {
715
- var uniqMap = new Map();
716
- var fields = [];
717
- Object.values(this.attributeOption).forEach(function (cfg) {
718
- var fs = (cfg === null || cfg === void 0 ? void 0 : cfg.fields) || [];
719
- fs.forEach(function (f) {
720
- if (!uniqMap.has(f)) {
721
- fields.push(f);
722
- }
723
- uniqMap.set(f, true);
724
- });
725
- }, []);
726
- return fields;
727
- };
728
- /**
729
- * 获取当前配置中的所有分组 & 分类的字段。
730
- * @return fields string[]
731
- */
732
- Geometry.prototype.getGroupFields = function () {
733
- var groupFields = [];
734
- var tmpMap = new Map(); // 用于去重过滤
735
- for (var index = 0, length_4 = constant_1.GROUP_ATTRS.length; index < length_4; index++) {
736
- var attributeName = constant_1.GROUP_ATTRS[index];
737
- var cfg = this.attributeOption[attributeName];
738
- if (cfg && cfg.fields) {
739
- (0, helper_1.uniq)(cfg.fields, groupFields, tmpMap);
740
- }
741
- }
742
- return groupFields;
743
- };
744
- /**
745
- * 获得图形的 x y 字段。
746
- */
747
- Geometry.prototype.getXYFields = function () {
748
- var _a = this.attributeOption.position.fields, x = _a[0], y = _a[1];
749
- return [x, y];
750
- };
751
- /**
752
- * x 字段
753
- * @returns
754
- */
755
- Geometry.prototype.getXField = function () {
756
- return (0, util_1.get)(this.getXYFields(), [0]);
757
- };
758
- /**
759
- * y 字段
760
- * @returns
761
- */
762
- Geometry.prototype.getYField = function () {
763
- return (0, util_1.get)(this.getXYFields(), [1]);
764
- };
765
- /**
766
- * 获取该 Geometry 下所有生成的 shapes。
767
- * @returns shapes
768
- */
769
- Geometry.prototype.getShapes = function () {
770
- return this.elements.map(function (element) { return element.shape; });
771
- };
772
- /**
773
- * 获取虚拟 Group。
774
- * @returns
775
- */
776
- Geometry.prototype.getOffscreenGroup = function () {
777
- if (!this.offscreenGroup) {
778
- var GroupCtor = this.container.getGroupBase(); // 获取分组的构造函数
779
- this.offscreenGroup = new GroupCtor({});
780
- }
781
- return this.offscreenGroup;
782
- };
783
- // 对数据进行排序
784
- Geometry.prototype.sort = function (mappingArray) {
785
- if (!this.hasSorted) {
786
- // 未发生过排序
787
- var xScale_1 = this.getXScale();
788
- var xField_1 = xScale_1.field;
789
- for (var index = 0; index < mappingArray.length; index++) {
790
- var itemArr = mappingArray[index];
791
- itemArr.sort(function (obj1, obj2) {
792
- return xScale_1.translate(obj1[constant_1.FIELD_ORIGIN][xField_1]) - xScale_1.translate(obj2[constant_1.FIELD_ORIGIN][xField_1]);
793
- });
794
- }
795
- }
796
- this.hasSorted = true;
797
- };
798
- /**
799
- * 调整度量范围。主要针对发生层叠以及一些特殊需求的 Geometry,比如 Interval 下的柱状图 Y 轴默认从 0 开始。
800
- */
801
- Geometry.prototype.adjustScale = function () {
802
- var yScale = this.getYScale();
803
- // 如果数据发生过 stack adjust,需要调整下 yScale 的数据范围
804
- if (yScale && this.getAdjust('stack')) {
805
- this.updateStackRange(yScale, this.beforeMappingData);
806
- }
807
- };
808
- /**
809
- * 获取当前 Geometry 对应的 Shape 工厂实例。
810
- */
811
- Geometry.prototype.getShapeFactory = function () {
812
- var shapeType = this.shapeType;
813
- if (!(0, base_2.getShapeFactory)(shapeType)) {
814
- return;
815
- }
816
- if (!this.shapeFactory) {
817
- this.shapeFactory = (0, util_1.clone)((0, base_2.getShapeFactory)(shapeType)); // 防止多个 view 共享一个 shapeFactory 实例,导致 coordinate 被篡改
818
- }
819
- // 因为这里缓存了 shapeFactory,但是外部可能会变更 coordinate,导致无法重新设置到 shapeFactory 中
820
- this.shapeFactory.coordinate = this.coordinate;
821
- // theme 原因同上
822
- this.shapeFactory.theme = this.theme.geometries[shapeType] || {};
823
- return this.shapeFactory;
824
- };
825
- /**
826
- * 获取每个 Shape 对应的关键点数据。
827
- * @param obj 经过分组 -> 数字化 -> adjust 调整后的数据记录
828
- * @returns
829
- */
830
- Geometry.prototype.createShapePointsCfg = function (obj) {
831
- var xScale = this.getXScale();
832
- var yScale = this.getYScale();
833
- var x = this.normalizeValues(obj[xScale.field], xScale);
834
- var y; // 存在没有 y 的情况
835
- if (yScale) {
836
- y = this.normalizeValues(obj[yScale.field], yScale);
837
- }
838
- else {
839
- y = obj.y ? obj.y : 0.1;
840
- }
841
- return {
842
- x: x,
843
- y: y,
844
- y0: yScale ? yScale.scale(this.getYMinValue()) : undefined,
845
- };
846
- };
847
- /**
848
- * 创建 Element 实例。
849
- * @param mappingDatum Element 对应的绘制数据
850
- * @param [isUpdate] 是否处于更新阶段
851
- * @returns element 返回创建的 Element 实例
852
- */
853
- Geometry.prototype.createElement = function (mappingDatum, index, isUpdate) {
854
- if (isUpdate === void 0) { isUpdate = false; }
855
- var container = this.container;
856
- var shapeCfg = this.getDrawCfg(mappingDatum); // 获取绘制图形的配置信息
857
- var shapeFactory = this.getShapeFactory();
858
- var element = new element_1.default({
859
- shapeFactory: shapeFactory,
860
- container: container,
861
- offscreenGroup: this.getOffscreenGroup(),
862
- elementIndex: index,
863
- });
864
- element.animate = this.animateOption;
865
- element.geometry = this;
866
- element.draw(shapeCfg, isUpdate); // 绘制
867
- return element;
868
- };
869
- /**
870
- * 获取每条数据对应的图形绘制数据。
871
- * @param mappingDatum 映射后的数据
872
- * @returns draw cfg
873
- */
874
- Geometry.prototype.getDrawCfg = function (mappingDatum) {
875
- var originData = mappingDatum[constant_1.FIELD_ORIGIN]; // 原始数据
876
- var cfg = {
877
- mappingData: mappingDatum,
878
- data: originData,
879
- x: mappingDatum.x,
880
- y: mappingDatum.y,
881
- color: mappingDatum.color,
882
- size: mappingDatum.size,
883
- isInCircle: this.coordinate.isPolar,
884
- customInfo: this.customOption,
885
- };
886
- var shapeName = mappingDatum.shape;
887
- if (!shapeName && this.getShapeFactory()) {
888
- shapeName = this.getShapeFactory().defaultShapeType;
889
- }
890
- cfg.shape = shapeName;
891
- // 获取默认样式
892
- var theme = this.theme.geometries[this.shapeType];
893
- cfg.defaultStyle = (0, util_1.get)(theme, [shapeName, 'default'], {}).style;
894
- if (!cfg.defaultStyle && this.getShapeFactory()) {
895
- cfg.defaultStyle = this.getShapeFactory().getDefaultStyle(theme);
896
- }
897
- var styleOption = this.styleOption;
898
- if (styleOption) {
899
- cfg.style = this.getStyleCfg(styleOption, originData);
900
- }
901
- if (this.generatePoints) {
902
- cfg.points = mappingDatum.points;
903
- cfg.nextPoints = mappingDatum.nextPoints;
904
- }
905
- return cfg;
906
- };
907
- Geometry.prototype.updateElements = function (mappingDataArray, isUpdate) {
908
- if (isUpdate === void 0) { isUpdate = false; }
909
- var keyDatum = new Map();
910
- var keys = [];
911
- // 用来保持 diff 元素之后 added, updated 的相对顺序
912
- var keyIndex = new Map();
913
- var index = 0;
914
- // 获得更新数据所有的 keys
915
- // 将更新的数据用 key 索引
916
- for (var i = 0; i < mappingDataArray.length; i++) {
917
- var mappingData = mappingDataArray[i];
918
- for (var j = 0; j < mappingData.length; j++) {
919
- var mappingDatum = mappingData[j];
920
- var key = this.getElementId(mappingDatum);
921
- var finalKey = keyDatum.has(key) ? "".concat(key, "-").concat(i, "-").concat(j) : key;
922
- keys.push(finalKey);
923
- keyDatum.set(finalKey, mappingDatum);
924
- keyIndex.set(finalKey, index);
925
- index++;
926
- }
927
- }
928
- this.elements = new Array(index);
929
- var _a = (0, diff_1.diff)(this.lastElementsMap, keys), added = _a.added, updated = _a.updated, removed = _a.removed;
930
- // 新建 element
931
- for (var _i = 0, added_1 = added; _i < added_1.length; _i++) {
932
- var key = added_1[_i];
933
- var mappingDatum = keyDatum.get(key);
934
- var i = keyIndex.get(key);
935
- var element = this.createElement(mappingDatum, i, isUpdate);
936
- this.elements[i] = element;
937
- this.elementsMap[key] = element;
938
- if (element.shape) {
939
- element.shape.set('zIndex', this.zIndexReversed ? this.elements.length - i : i);
940
- }
941
- }
942
- // 更新 element
943
- for (var _b = 0, updated_1 = updated; _b < updated_1.length; _b++) {
944
- var key = updated_1[_b];
945
- var element = this.lastElementsMap[key];
946
- var mappingDatum = keyDatum.get(key);
947
- var currentShapeCfg = this.getDrawCfg(mappingDatum);
948
- var preShapeCfg = element.getModel();
949
- var i = keyIndex.get(key);
950
- if (this.isCoordinateChanged || (0, is_model_change_1.isModelChange)(currentShapeCfg, preShapeCfg)) {
951
- element.animate = this.animateOption;
952
- // 通过绘制数据的变更来判断是否需要更新,因为用户有可能会修改图形属性映射
953
- element.update(currentShapeCfg); // 更新对应的 element
954
- }
955
- this.elements[i] = element;
956
- this.elementsMap[key] = element;
957
- if (element.shape) {
958
- element.shape.set('zIndex', this.zIndexReversed ? this.elements.length - i : i);
959
- }
960
- }
961
- // 全部 setZIndex 之后,再执行 sort
962
- if (this.container) {
963
- this.container.sort();
964
- }
965
- // 销毁被删除的 elements
966
- for (var _c = 0, removed_1 = removed; _c < removed_1.length; _c++) {
967
- var key = removed_1[_c];
968
- var element = this.lastElementsMap[key];
969
- // 更新动画配置,用户有可能在更新之前有对动画进行配置操作
970
- element.animate = this.animateOption;
971
- element.destroy();
972
- }
973
- };
974
- /**
975
- * 获取渲染的 label 类型。
976
- */
977
- Geometry.prototype.getLabelType = function () {
978
- var _a = this, labelOption = _a.labelOption, coordinate = _a.coordinate, type = _a.type;
979
- var coordinateType = coordinate.type, isTransposed = coordinate.isTransposed;
980
- var labelType = (0, util_1.get)(labelOption, ['cfg', 'type']);
981
- if (!labelType) {
982
- // 用户未定义,则进行默认的逻辑
983
- if (coordinateType === 'polar') {
984
- // 极坐标下使用通用的极坐标文本,转置则使用饼图
985
- labelType = isTransposed ? 'pie' : 'polar';
986
- }
987
- else if (coordinateType === 'theta') {
988
- // theta 坐标系下使用饼图文本
989
- labelType = 'pie';
990
- }
991
- else if (type === 'interval' || type === 'polygon') {
992
- labelType = 'interval';
993
- }
994
- else {
995
- labelType = 'base';
996
- }
997
- }
998
- return labelType;
999
- };
1000
- /**
1001
- * 获取 Y 轴上的最小值。
1002
- */
1003
- Geometry.prototype.getYMinValue = function () {
1004
- var yScale = this.getYScale();
1005
- var min = yScale.min, max = yScale.max;
1006
- var value;
1007
- if (min >= 0) {
1008
- value = min;
1009
- }
1010
- else if (max <= 0) {
1011
- // 当值全位于负区间时,需要保证 ymin 在区域内,不可为 0
1012
- value = max;
1013
- }
1014
- else {
1015
- value = 0;
1016
- }
1017
- return value;
1018
- };
1019
- // 创建图形属性相关的配置项
1020
- Geometry.prototype.createAttrOption = function (attrName, field, cfg) {
1021
- if ((0, util_1.isNil)(field) || (0, util_1.isObject)(field)) {
1022
- if ((0, util_1.isObject)(field) && (0, util_1.isEqual)(Object.keys(field), ['values'])) {
1023
- // shape({ values: [ 'funnel' ] })
1024
- (0, util_1.set)(this.attributeOption, attrName, {
1025
- fields: field.values,
1026
- });
1027
- }
1028
- else {
1029
- (0, util_1.set)(this.attributeOption, attrName, field);
1030
- }
1031
- }
1032
- else {
1033
- var attrCfg = {};
1034
- if ((0, util_1.isNumber)(field)) {
1035
- // size(3)
1036
- attrCfg.values = [field];
1037
- }
1038
- else {
1039
- attrCfg.fields = (0, parse_fields_1.parseFields)(field);
1040
- }
1041
- if (cfg) {
1042
- if ((0, util_1.isFunction)(cfg)) {
1043
- attrCfg.callback = cfg;
1044
- }
1045
- else {
1046
- attrCfg.values = cfg;
1047
- }
1048
- }
1049
- (0, util_1.set)(this.attributeOption, attrName, attrCfg);
1050
- }
1051
- };
1052
- Geometry.prototype.initAttributes = function () {
1053
- var _this = this;
1054
- var _a = this, attributes = _a.attributes, attributeOption = _a.attributeOption, theme = _a.theme, shapeType = _a.shapeType;
1055
- this.groupScales = [];
1056
- var tmpMap = {};
1057
- var _loop_1 = function (attrType) {
1058
- if (attributeOption.hasOwnProperty(attrType)) {
1059
- var option = attributeOption[attrType];
1060
- if (!option) {
1061
- return { value: void 0 };
1062
- }
1063
- var attrCfg = (0, tslib_1.__assign)({}, option);
1064
- var callback = attrCfg.callback, values = attrCfg.values, _b = attrCfg.fields, fields = _b === void 0 ? [] : _b;
1065
- // 获取每一个字段对应的 scale
1066
- var scales = fields.map(function (field) {
1067
- var scale = _this.scales[field];
1068
- if (scale.isCategory && !tmpMap[field] && constant_1.GROUP_ATTRS.includes(attrType)) {
1069
- _this.groupScales.push(scale);
1070
- tmpMap[field] = true;
1071
- }
1072
- return scale;
1073
- });
1074
- attrCfg.scales = scales;
1075
- if (attrType !== 'position' && scales.length === 1 && scales[0].type === 'identity') {
1076
- // 用户在图形通道上声明了常量字段 color('red'), size(5)
1077
- attrCfg.values = scales[0].values;
1078
- }
1079
- else if (!callback && !values) {
1080
- // 用户没有指定任何规则,则使用默认的映射规则
1081
- if (attrType === 'size') {
1082
- attrCfg.values = theme.sizes;
1083
- }
1084
- else if (attrType === 'shape') {
1085
- attrCfg.values = theme.shapes[shapeType] || [];
1086
- }
1087
- else if (attrType === 'color') {
1088
- if (scales.length) {
1089
- // 根据数值个数使用对应的色板
1090
- attrCfg.values = scales[0].values.length <= 10 ? theme.colors10 : theme.colors20;
1091
- }
1092
- else {
1093
- attrCfg.values = theme.colors10;
1094
- }
1095
- }
1096
- }
1097
- var AttributeCtor = (0, attr_1.getAttribute)(attrType);
1098
- attributes[attrType] = new AttributeCtor(attrCfg);
1099
- }
1100
- };
1101
- // 遍历每一个 attrOption,各自创建 Attribute 实例
1102
- for (var attrType in attributeOption) {
1103
- var state_1 = _loop_1(attrType);
1104
- if (typeof state_1 === "object")
1105
- return state_1.value;
1106
- }
1107
- };
1108
- // 处理数据:分组 -> 数字化 -> adjust 调整
1109
- Geometry.prototype.processData = function (data) {
1110
- this.hasSorted = false;
1111
- var scales = this.getAttribute('position').scales;
1112
- var categoryScales = scales.filter(function (scale) { return scale.isCategory; });
1113
- var groupedArray = this.groupData(data); // 数据分组
1114
- var beforeAdjust = [];
1115
- for (var i = 0, len = groupedArray.length; i < len; i++) {
1116
- var subData = groupedArray[i];
1117
- var arr = [];
1118
- for (var j = 0, subLen = subData.length; j < subLen; j++) {
1119
- var originData = subData[j];
1120
- var item = {};
1121
- // tslint:disable-next-line: forin
1122
- for (var k in originData) {
1123
- item[k] = originData[k];
1124
- }
1125
- item[constant_1.FIELD_ORIGIN] = originData;
1126
- // 将分类数据翻译成数据, 仅对位置相关的度量进行数字化处理
1127
- for (var _i = 0, categoryScales_1 = categoryScales; _i < categoryScales_1.length; _i++) {
1128
- var scale = categoryScales_1[_i];
1129
- var field = scale.field;
1130
- item[field] = scale.translate(item[field]);
1131
- }
1132
- arr.push(item);
1133
- }
1134
- beforeAdjust.push(arr);
1135
- }
1136
- var dataArray = this.adjustData(beforeAdjust); // 进行 adjust 数据调整
1137
- this.beforeMappingData = dataArray;
1138
- return dataArray;
1139
- };
1140
- // 调整数据
1141
- Geometry.prototype.adjustData = function (dataArray) {
1142
- var adjustOption = this.adjustOption;
1143
- var _a = this, intervalPadding = _a.intervalPadding, dodgePadding = _a.dodgePadding, theme = _a.theme;
1144
- // 兼容theme配置
1145
- var maxColumnWidth = this.maxColumnWidth || theme.maxColumnWidth;
1146
- var minColumnWidth = this.minColumnWidth || theme.minColumnWidth;
1147
- var columnWidthRatio = this.columnWidthRatio || theme.columnWidthRatio;
1148
- var result = dataArray;
1149
- if (adjustOption) {
1150
- var xScale = this.getXScale();
1151
- var yScale = this.getYScale();
1152
- var xField = xScale.field;
1153
- var yField = yScale ? yScale.field : null;
1154
- var xDimensionLength = (0, coordinate_1.getXDimensionLength)(this.coordinate);
1155
- var groupNum = xScale.values.length;
1156
- // 传入size计算相关参数,默认宽度、最大最小宽度约束
1157
- var sizeAttr = this.getAttribute('size');
1158
- var defaultSize = void 0;
1159
- if (sizeAttr) {
1160
- defaultSize = sizeAttr.values[0];
1161
- }
1162
- for (var i = 0, len = adjustOption.length; i < len; i++) {
1163
- var adjust = adjustOption[i];
1164
- var adjustCfg = (0, tslib_1.__assign)({ xField: xField, yField: yField, intervalPadding: intervalPadding, dodgePadding: dodgePadding, xDimensionLength: xDimensionLength, groupNum: groupNum, defaultSize: defaultSize, maxColumnWidth: maxColumnWidth, minColumnWidth: minColumnWidth, columnWidthRatio: columnWidthRatio }, adjust);
1165
- var type = adjust.type;
1166
- if (type === 'dodge') {
1167
- var adjustNames = [];
1168
- if (xScale.isCategory || xScale.type === 'identity') {
1169
- adjustNames.push('x');
1170
- }
1171
- else if (!yScale) {
1172
- adjustNames.push('y');
1173
- }
1174
- else {
1175
- throw new Error('dodge is not support linear attribute, please use category attribute!');
1176
- }
1177
- adjustCfg.adjustNames = adjustNames;
1178
- // 每个分组内每条柱子的宽度占比,用户不可指定,用户需要通过 columnWidthRatio 指定
1179
- // 兼容theme配置
1180
- adjustCfg.dodgeRatio = columnWidthRatio;
1181
- }
1182
- else if (type === 'stack') {
1183
- var coordinate = this.coordinate;
1184
- if (!yScale) {
1185
- // 一维的情况下获取高度和默认size
1186
- adjustCfg.height = coordinate.getHeight();
1187
- var size = this.getDefaultValue('size') || 3;
1188
- adjustCfg.size = size;
1189
- }
1190
- // 不进行 transpose 时,用户又没有设置这个参数时,默认从上向下
1191
- if (!coordinate.isTransposed && (0, util_1.isNil)(adjustCfg.reverseOrder)) {
1192
- adjustCfg.reverseOrder = true;
1193
- }
1194
- }
1195
- var adjustCtor = (0, adjust_1.getAdjust)(type);
1196
- var adjustInstance = new adjustCtor(adjustCfg);
1197
- result = adjustInstance.process(result);
1198
- this.adjusts[type] = adjustInstance;
1199
- }
1200
- }
1201
- return result;
1202
- };
1203
- // 对数据进行分组
1204
- Geometry.prototype.groupData = function (data) {
1205
- var groupScales = this.getGroupScales();
1206
- var scaleDefs = this.scaleDefs;
1207
- var appendConditions = {};
1208
- var groupFields = [];
1209
- for (var index = 0; index < groupScales.length; index++) {
1210
- var scale = groupScales[index];
1211
- var field = scale.field;
1212
- groupFields.push(field);
1213
- if ((0, util_1.get)(scaleDefs, [field, 'values'])) {
1214
- // 用户通过 view.scale() 接口指定了 values 属性
1215
- appendConditions[field] = scaleDefs[field].values;
1216
- }
1217
- }
1218
- return (0, group_data_1.group)(data, groupFields, appendConditions);
1219
- };
1220
- // 更新发生层叠后的数据对应的度量范围
1221
- Geometry.prototype.updateStackRange = function (scale, dataArray) {
1222
- var mergeArray = (0, util_1.flatten)(dataArray);
1223
- var field = scale.field;
1224
- var min = scale.min;
1225
- var max = scale.max;
1226
- for (var index = 0; index < mergeArray.length; index++) {
1227
- var obj = mergeArray[index];
1228
- var tmpMin = Math.min.apply(null, obj[field]);
1229
- var tmpMax = Math.max.apply(null, obj[field]);
1230
- if (tmpMin < min) {
1231
- min = tmpMin;
1232
- }
1233
- if (tmpMax > max) {
1234
- max = tmpMax;
1235
- }
1236
- }
1237
- var scaleDefs = this.scaleDefs;
1238
- var cfg = {};
1239
- if (min < scale.min && !(0, util_1.get)(scaleDefs, [field, 'min'])) {
1240
- // 用户如果在列定义中定义了 min,则以用户定义的为准
1241
- cfg.min = min;
1242
- }
1243
- if (max > scale.max && !(0, util_1.get)(scaleDefs, [field, 'max'])) {
1244
- // 用户如果在列定义中定义了 max
1245
- cfg.max = max;
1246
- }
1247
- scale.change(cfg);
1248
- };
1249
- // 将数据映射至图形空间前的操作:排序以及关键点的生成
1250
- Geometry.prototype.beforeMapping = function (beforeMappingData) {
1251
- // 当初加 clone 是因为 points 的引用关系,导致更新失败,可是现在貌似复现不出来了,所以暂时不进行 clone
1252
- // const source = clone(beforeMappingData);
1253
- var source = beforeMappingData;
1254
- if (this.sortable) {
1255
- this.sort(source);
1256
- }
1257
- if (this.generatePoints) {
1258
- // 需要生成关键点
1259
- for (var index = 0, length_5 = source.length; index < length_5; index++) {
1260
- var currentData = source[index];
1261
- this.generateShapePoints(currentData);
1262
- var nextData = source[index + 1];
1263
- if (nextData) {
1264
- this.generateShapePoints(nextData);
1265
- currentData[0].nextPoints = nextData[0].points;
1266
- }
1267
- }
1268
- }
1269
- return source;
1270
- };
1271
- // 生成 shape 的关键点
1272
- Geometry.prototype.generateShapePoints = function (data) {
1273
- var shapeFactory = this.getShapeFactory();
1274
- var shapeAttr = this.getAttribute('shape');
1275
- for (var index = 0; index < data.length; index++) {
1276
- var obj = data[index];
1277
- var cfg = this.createShapePointsCfg(obj);
1278
- var shape = shapeAttr ? this.getAttributeValues(shapeAttr, obj) : null;
1279
- var points = shapeFactory.getShapePoints(shape, cfg);
1280
- obj.points = points;
1281
- }
1282
- };
1283
- // 将数据归一化
1284
- Geometry.prototype.normalizeValues = function (values, scale) {
1285
- var rst = [];
1286
- if ((0, util_1.isArray)(values)) {
1287
- for (var index = 0; index < values.length; index++) {
1288
- var value = values[index];
1289
- rst.push(scale.scale(value));
1290
- }
1291
- }
1292
- else {
1293
- rst = scale.scale(values);
1294
- }
1295
- return rst;
1296
- };
1297
- // 将数据映射至图形空间
1298
- Geometry.prototype.mapping = function (data) {
1299
- var attributes = this.attributes;
1300
- var mappingData = [];
1301
- for (var index = 0; index < data.length; index++) {
1302
- var record = data[index];
1303
- var newRecord = {
1304
- _origin: record[constant_1.FIELD_ORIGIN],
1305
- points: record.points,
1306
- nextPoints: record.nextPoints,
1307
- };
1308
- for (var k in attributes) {
1309
- if (attributes.hasOwnProperty(k)) {
1310
- var attr = attributes[k];
1311
- var names = attr.names;
1312
- var values = this.getAttributeValues(attr, record);
1313
- if (names.length > 1) {
1314
- // position 之类的生成多个字段的属性
1315
- for (var j = 0; j < values.length; j += 1) {
1316
- var val = values[j];
1317
- var name_1 = names[j];
1318
- newRecord[name_1] = (0, util_1.isArray)(val) && val.length === 1 ? val[0] : val; // 只有一个值时返回第一个属性值
1319
- }
1320
- }
1321
- else {
1322
- // values.length === 1 的判断是以下情况,获取用户设置的图形属性值
1323
- // shape('a', ['dot', 'dash']), color('a', ['red', 'yellow'])
1324
- newRecord[names[0]] = values.length === 1 ? values[0] : values;
1325
- }
1326
- }
1327
- }
1328
- this.convertPoint(newRecord); // 将 x、y 转换成画布坐标
1329
- mappingData.push(newRecord);
1330
- }
1331
- return mappingData;
1332
- };
1333
- // 将归一化的坐标值转换成画布坐标
1334
- Geometry.prototype.convertPoint = function (mappingRecord) {
1335
- var x = mappingRecord.x, y = mappingRecord.y;
1336
- var rstX;
1337
- var rstY;
1338
- var obj;
1339
- var coordinate = this.coordinate;
1340
- if ((0, util_1.isArray)(x) && (0, util_1.isArray)(y)) {
1341
- rstX = [];
1342
- rstY = [];
1343
- for (var i = 0, j = 0, xLen = x.length, yLen = y.length; i < xLen && j < yLen; i += 1, j += 1) {
1344
- obj = coordinate.convert({
1345
- x: x[i],
1346
- y: y[j],
1347
- });
1348
- rstX.push(obj.x);
1349
- rstY.push(obj.y);
1350
- }
1351
- }
1352
- else if ((0, util_1.isArray)(y)) {
1353
- rstY = [];
1354
- for (var index = 0; index < y.length; index++) {
1355
- var yVal = y[index];
1356
- obj = coordinate.convert({
1357
- x: x,
1358
- y: yVal,
1359
- });
1360
- if (rstX && rstX !== obj.x) {
1361
- if (!(0, util_1.isArray)(rstX)) {
1362
- rstX = [rstX];
1363
- }
1364
- rstX.push(obj.x);
1365
- }
1366
- else {
1367
- rstX = obj.x;
1368
- }
1369
- rstY.push(obj.y);
1370
- }
1371
- }
1372
- else if ((0, util_1.isArray)(x)) {
1373
- rstX = [];
1374
- for (var index = 0; index < x.length; index++) {
1375
- var xVal = x[index];
1376
- obj = coordinate.convert({
1377
- x: xVal,
1378
- y: y,
1379
- });
1380
- if (rstY && rstY !== obj.y) {
1381
- if (!(0, util_1.isArray)(rstY)) {
1382
- rstY = [rstY];
1383
- }
1384
- rstY.push(obj.y);
1385
- }
1386
- else {
1387
- rstY = obj.y;
1388
- }
1389
- rstX.push(obj.x);
1390
- }
1391
- }
1392
- else {
1393
- var point = coordinate.convert({
1394
- x: x,
1395
- y: y,
1396
- });
1397
- rstX = point.x;
1398
- rstY = point.y;
1399
- }
1400
- mappingRecord.x = rstX;
1401
- mappingRecord.y = rstY;
1402
- };
1403
- // 获取 style 配置
1404
- Geometry.prototype.getStyleCfg = function (styleOption, originData) {
1405
- var _a = styleOption.fields, fields = _a === void 0 ? [] : _a, callback = styleOption.callback, cfg = styleOption.cfg;
1406
- if (cfg) {
1407
- // 用户直接配置样式属性
1408
- return cfg;
1409
- }
1410
- var params = fields.map(function (field) {
1411
- return originData[field];
1412
- });
1413
- return callback.apply(void 0, params);
1414
- };
1415
- Geometry.prototype.setCfg = function (cfg) {
1416
- var _this = this;
1417
- var coordinate = cfg.coordinate, data = cfg.data, theme = cfg.theme, scaleDefs = cfg.scaleDefs;
1418
- if (coordinate) {
1419
- this.coordinate = coordinate;
1420
- }
1421
- if (data) {
1422
- this.data = data;
1423
- }
1424
- if (scaleDefs) {
1425
- this.scaleDefs = scaleDefs;
1426
- this.idFields = [];
1427
- (0, util_1.each)(scaleDefs, function (scaleDef, field) {
1428
- if (scaleDef && scaleDef.key) {
1429
- _this.idFields.push(field);
1430
- }
1431
- });
1432
- }
1433
- if (theme) {
1434
- this.theme = this.userTheme ? (0, util_1.deepMix)({}, theme, this.userTheme) : theme; // 支持 geometry 层级的主题设置
1435
- }
1436
- };
1437
- Geometry.prototype.renderLabels = function (mappingArray, isUpdate) {
1438
- if (isUpdate === void 0) { isUpdate = false; }
1439
- var geometryLabel = this.geometryLabel;
1440
- if (!geometryLabel) {
1441
- // 初次创建
1442
- var labelType = this.getLabelType();
1443
- var GeometryLabelsCtor = (0, label_1.getGeometryLabel)(labelType);
1444
- geometryLabel = new GeometryLabelsCtor(this);
1445
- this.geometryLabel = geometryLabel;
1446
- }
1447
- geometryLabel.render(mappingArray, isUpdate);
1448
- // 将 label 同 element 进行关联
1449
- var labelsMap = geometryLabel.labelsRenderer.shapesMap;
1450
- (0, util_1.each)(this.elementsMap, function (element, id) {
1451
- var labels = filterLabelsById(id, labelsMap); // element 实例同 label 进行绑定
1452
- if (labels.length) {
1453
- element.labelShape = labels;
1454
- for (var i = 0; i < labels.length; i++) {
1455
- var label = labels[i];
1456
- var labelChildren = label.getChildren();
1457
- for (var j = 0; j < labelChildren.length; j++) {
1458
- var child = labelChildren[j];
1459
- child.cfg.name = ['element', 'label'];
1460
- child.cfg.element = element;
1461
- }
1462
- }
1463
- }
1464
- });
1465
- };
1466
- /**
1467
- * 是否需要进行群组入场动画
1468
- * 规则:
1469
- * 1. 如果发生更新,则不进行
1470
- * 2. 如果用户关闭 geometry 动画,则不进行
1471
- * 3. 如果用户关闭了 appear 动画,则不进行
1472
- * 4. 如果用户配置了 appear.animation,则不进行
1473
- */
1474
- Geometry.prototype.canDoGroupAnimation = function (isUpdate) {
1475
- return (!isUpdate &&
1476
- this.animateOption &&
1477
- ((0, util_1.get)(this.animateOption, 'appear') === undefined ||
1478
- ((0, util_1.get)(this.animateOption, 'appear') && (0, util_1.get)(this.animateOption, ['appear', 'animation']) === undefined)));
1479
- };
1480
- return Geometry;
1481
- }(base_1.default));
1482
- exports.default = Geometry;
1483
- //# sourceMappingURL=base.js.map