@visactor/vchart 1.5.1-alpha.6 → 1.5.2-alpha.0

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 (621) hide show
  1. package/build/es5/index.js +1 -1
  2. package/build/index.js +1407 -425
  3. package/build/index.min.js +1 -1
  4. package/build/tsconfig.tsbuildinfo +1 -1
  5. package/cjs/chart/base-chart.js +4 -1
  6. package/cjs/chart/base-chart.js.map +1 -1
  7. package/cjs/chart/common/interface.d.ts +2 -1
  8. package/cjs/chart/common/interface.js.map +1 -1
  9. package/cjs/chart/correlation/correlation.d.ts +11 -0
  10. package/cjs/chart/correlation/correlation.js +53 -0
  11. package/cjs/chart/correlation/correlation.js.map +1 -0
  12. package/cjs/chart/correlation/index.d.ts +2 -0
  13. package/cjs/chart/correlation/index.js +21 -0
  14. package/cjs/chart/correlation/index.js.map +1 -0
  15. package/cjs/chart/correlation/interface.d.ts +6 -0
  16. package/cjs/chart/correlation/interface.js +6 -0
  17. package/cjs/chart/correlation/interface.js.map +1 -0
  18. package/cjs/chart/gauge/gauge.js +5 -2
  19. package/cjs/chart/gauge/gauge.js.map +1 -1
  20. package/cjs/chart/index.d.ts +5 -3
  21. package/cjs/chart/index.js +16 -2
  22. package/cjs/chart/index.js.map +1 -1
  23. package/cjs/chart/interface/type.d.ts +2 -1
  24. package/cjs/chart/interface/type.js +2 -1
  25. package/cjs/chart/interface/type.js.map +1 -1
  26. package/cjs/chart/polar/progress-like.d.ts +1 -1
  27. package/cjs/chart/polar/progress-like.js +11 -4
  28. package/cjs/chart/polar/progress-like.js.map +1 -1
  29. package/cjs/chart/sequence/sequence.js +0 -1
  30. package/cjs/chart/sequence/sequence.js.map +1 -1
  31. package/cjs/chart/waterfall/waterfall.js.map +1 -1
  32. package/cjs/component/axis/base-axis.d.ts +2 -2
  33. package/cjs/component/axis/base-axis.js.map +1 -1
  34. package/cjs/component/axis/cartesian/axis.d.ts +4 -0
  35. package/cjs/component/axis/cartesian/axis.js +51 -9
  36. package/cjs/component/axis/cartesian/axis.js.map +1 -1
  37. package/cjs/component/axis/cartesian/interface/common.d.ts +6 -1
  38. package/cjs/component/axis/cartesian/interface/common.js.map +1 -1
  39. package/cjs/component/axis/cartesian/interface/spec.d.ts +2 -1
  40. package/cjs/component/axis/cartesian/interface/spec.js.map +1 -1
  41. package/cjs/component/axis/cartesian/interface/theme.d.ts +2 -1
  42. package/cjs/component/axis/cartesian/interface/theme.js.map +1 -1
  43. package/cjs/component/base/base-component.d.ts +1 -1
  44. package/cjs/component/base/base-component.js.map +1 -1
  45. package/cjs/component/brush/brush.d.ts +2 -2
  46. package/cjs/component/brush/brush.js.map +1 -1
  47. package/cjs/component/brush/interface.d.ts +1 -1
  48. package/cjs/component/brush/interface.js.map +1 -1
  49. package/cjs/component/common/trigger/desktop.d.ts +1 -0
  50. package/cjs/component/common/trigger/desktop.js +1 -0
  51. package/cjs/component/common/trigger/desktop.js.map +1 -1
  52. package/cjs/component/common/trigger/mobile.d.ts +1 -0
  53. package/cjs/component/common/trigger/mobile.js +1 -0
  54. package/cjs/component/common/trigger/mobile.js.map +1 -1
  55. package/cjs/component/crosshair/cartesian.d.ts +2 -2
  56. package/cjs/component/crosshair/cartesian.js.map +1 -1
  57. package/cjs/component/crosshair/polar.d.ts +2 -2
  58. package/cjs/component/crosshair/polar.js.map +1 -1
  59. package/cjs/component/custom-mark/custom-mark.d.ts +2 -2
  60. package/cjs/component/custom-mark/custom-mark.js.map +1 -1
  61. package/cjs/component/data-zoom/data-filter-base-component.d.ts +26 -9
  62. package/cjs/component/data-zoom/data-filter-base-component.js +92 -20
  63. package/cjs/component/data-zoom/data-filter-base-component.js.map +1 -1
  64. package/cjs/component/data-zoom/data-zoom/data-zoom.d.ts +2 -3
  65. package/cjs/component/data-zoom/data-zoom/data-zoom.js +16 -8
  66. package/cjs/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
  67. package/cjs/component/data-zoom/interface.d.ts +36 -2
  68. package/cjs/component/data-zoom/interface.js.map +1 -1
  69. package/cjs/component/data-zoom/scroll-bar/scroll-bar.d.ts +3 -3
  70. package/cjs/component/data-zoom/scroll-bar/scroll-bar.js +17 -9
  71. package/cjs/component/data-zoom/scroll-bar/scroll-bar.js.map +1 -1
  72. package/cjs/component/geo/geo-coordinate.d.ts +2 -2
  73. package/cjs/component/geo/geo-coordinate.js.map +1 -1
  74. package/cjs/component/indicator/indicator.d.ts +2 -2
  75. package/cjs/component/indicator/indicator.js.map +1 -1
  76. package/cjs/component/interface/common.d.ts +2 -2
  77. package/cjs/component/interface/common.js.map +1 -1
  78. package/cjs/component/label/base-label.d.ts +2 -2
  79. package/cjs/component/label/base-label.js.map +1 -1
  80. package/cjs/component/legend/base-legend.d.ts +2 -2
  81. package/cjs/component/legend/base-legend.js.map +1 -1
  82. package/cjs/component/legend/continuous/legend.d.ts +1 -1
  83. package/cjs/component/legend/discrete/legend.d.ts +1 -1
  84. package/cjs/component/legend/interface.d.ts +3 -0
  85. package/cjs/component/legend/interface.js.map +1 -1
  86. package/cjs/component/map-label/component.d.ts +3 -3
  87. package/cjs/component/map-label/component.js.map +1 -1
  88. package/cjs/component/marker/base-marker.d.ts +2 -2
  89. package/cjs/component/marker/base-marker.js.map +1 -1
  90. package/cjs/component/marker/mark-line/mark-line.js.map +1 -1
  91. package/cjs/component/marker/mark-point/mark-point.js.map +1 -1
  92. package/cjs/component/player/player.d.ts +2 -2
  93. package/cjs/component/player/player.js.map +1 -1
  94. package/cjs/component/title/title.d.ts +2 -2
  95. package/cjs/component/title/title.js.map +1 -1
  96. package/cjs/component/tooltip/handler/base.d.ts +1 -1
  97. package/cjs/component/tooltip/handler/dom/util.js.map +1 -1
  98. package/cjs/component/tooltip/handler/utils/common.js.map +1 -1
  99. package/cjs/component/tooltip/handler/utils/compose.js +2 -1
  100. package/cjs/component/tooltip/handler/utils/compose.js.map +1 -1
  101. package/cjs/component/tooltip/tooltip.d.ts +2 -2
  102. package/cjs/component/tooltip/tooltip.js.map +1 -1
  103. package/cjs/constant/correlation.d.ts +3 -0
  104. package/cjs/constant/correlation.js +11 -0
  105. package/cjs/constant/correlation.js.map +1 -0
  106. package/cjs/constant/index.d.ts +1 -0
  107. package/cjs/constant/index.js +2 -1
  108. package/cjs/constant/index.js.map +1 -1
  109. package/cjs/constant/word-cloud.js +1 -2
  110. package/cjs/core/factory.js +2 -1
  111. package/cjs/core/index.d.ts +1 -1
  112. package/cjs/core/index.js +1 -1
  113. package/cjs/core/index.js.map +1 -1
  114. package/cjs/data/transforms/correlation-center.d.ts +4 -0
  115. package/cjs/data/transforms/correlation-center.js +18 -0
  116. package/cjs/data/transforms/correlation-center.js.map +1 -0
  117. package/cjs/data/transforms/correlation.d.ts +17 -0
  118. package/cjs/data/transforms/correlation.js +58 -0
  119. package/cjs/data/transforms/correlation.js.map +1 -0
  120. package/cjs/interaction/dimension-trigger.js +1 -2
  121. package/cjs/interaction/interaction.js +2 -1
  122. package/cjs/interaction/zoom/zoomable.d.ts +20 -12
  123. package/cjs/interaction/zoom/zoomable.js +94 -74
  124. package/cjs/interaction/zoom/zoomable.js.map +1 -1
  125. package/cjs/layout/base-layout.d.ts +7 -1
  126. package/cjs/layout/base-layout.js +24 -10
  127. package/cjs/layout/base-layout.js.map +1 -1
  128. package/cjs/layout/layout3d/index.d.ts +6 -0
  129. package/cjs/layout/layout3d/index.js +14 -0
  130. package/cjs/layout/layout3d/index.js.map +1 -1
  131. package/cjs/mark/arc-3d.js +1 -1
  132. package/cjs/mark/index.d.ts +3 -2
  133. package/cjs/mark/index.js +10 -1
  134. package/cjs/mark/index.js.map +1 -1
  135. package/cjs/mark/interface/type.d.ts +1 -0
  136. package/cjs/mark/interface/type.js +1 -1
  137. package/cjs/mark/interface/type.js.map +1 -1
  138. package/cjs/mark/ripple.d.ts +12 -0
  139. package/cjs/mark/ripple.js +29 -0
  140. package/cjs/mark/ripple.js.map +1 -0
  141. package/cjs/model/base-model.d.ts +0 -3
  142. package/cjs/model/base-model.js +0 -3
  143. package/cjs/model/base-model.js.map +1 -1
  144. package/cjs/model/interface.d.ts +0 -2
  145. package/cjs/model/interface.js.map +1 -1
  146. package/cjs/series/area/area.js +4 -2
  147. package/cjs/series/area/area.js.map +1 -1
  148. package/cjs/series/bar/bar.d.ts +1 -0
  149. package/cjs/series/bar/bar.js +4 -3
  150. package/cjs/series/bar/bar.js.map +1 -1
  151. package/cjs/series/base/base-series.js +6 -9
  152. package/cjs/series/base/base-series.js.map +1 -1
  153. package/cjs/series/box-plot/box-plot.js +9 -9
  154. package/cjs/series/box-plot/box-plot.js.map +1 -1
  155. package/cjs/series/circle-packing/circle-packing.js +7 -6
  156. package/cjs/series/circle-packing/circle-packing.js.map +1 -1
  157. package/cjs/series/correlation/animation.d.ts +8 -0
  158. package/cjs/series/correlation/animation.js +22 -0
  159. package/cjs/series/correlation/animation.js.map +1 -0
  160. package/cjs/series/correlation/constant.d.ts +2 -0
  161. package/cjs/series/correlation/constant.js +27 -0
  162. package/cjs/series/correlation/constant.js.map +1 -0
  163. package/cjs/series/correlation/correlation.d.ts +57 -0
  164. package/cjs/series/correlation/correlation.js +215 -0
  165. package/cjs/series/correlation/correlation.js.map +1 -0
  166. package/cjs/series/correlation/interface.d.ts +37 -0
  167. package/cjs/series/correlation/interface.js +6 -0
  168. package/cjs/series/correlation/interface.js.map +1 -0
  169. package/cjs/series/dot/dot.js +2 -4
  170. package/cjs/series/dot/dot.js.map +1 -1
  171. package/cjs/series/funnel/funnel.js +4 -6
  172. package/cjs/series/funnel/funnel.js.map +1 -1
  173. package/cjs/series/gauge/gauge-pointer.d.ts +1 -0
  174. package/cjs/series/gauge/gauge-pointer.js +4 -2
  175. package/cjs/series/gauge/gauge-pointer.js.map +1 -1
  176. package/cjs/series/gauge/gauge.d.ts +1 -0
  177. package/cjs/series/gauge/gauge.js +5 -3
  178. package/cjs/series/gauge/gauge.js.map +1 -1
  179. package/cjs/series/heatmap/heatmap.js +2 -4
  180. package/cjs/series/heatmap/heatmap.js.map +1 -1
  181. package/cjs/series/index.d.ts +4 -2
  182. package/cjs/series/index.js +11 -2
  183. package/cjs/series/index.js.map +1 -1
  184. package/cjs/series/interface/series.d.ts +1 -1
  185. package/cjs/series/interface/series.js.map +1 -1
  186. package/cjs/series/interface/theme.d.ts +2 -0
  187. package/cjs/series/interface/theme.js +3 -2
  188. package/cjs/series/interface/theme.js.map +1 -1
  189. package/cjs/series/interface/type.d.ts +7 -2
  190. package/cjs/series/interface/type.js +4 -2
  191. package/cjs/series/interface/type.js.map +1 -1
  192. package/cjs/series/line/line.d.ts +1 -0
  193. package/cjs/series/line/line.js +4 -0
  194. package/cjs/series/line/line.js.map +1 -1
  195. package/cjs/series/link/link.js +6 -7
  196. package/cjs/series/link/link.js.map +1 -1
  197. package/cjs/series/map/map.js +2 -4
  198. package/cjs/series/map/map.js.map +1 -1
  199. package/cjs/series/mixin/line-mixin.js +2 -5
  200. package/cjs/series/mixin/line-mixin.js.map +1 -1
  201. package/cjs/series/pie/interface.d.ts +4 -0
  202. package/cjs/series/pie/interface.js.map +1 -1
  203. package/cjs/series/pie/pie-3d.js +6 -6
  204. package/cjs/series/pie/pie-3d.js.map +1 -1
  205. package/cjs/series/pie/pie.d.ts +2 -0
  206. package/cjs/series/pie/pie.js +18 -3
  207. package/cjs/series/pie/pie.js.map +1 -1
  208. package/cjs/series/progress/circular/circular.d.ts +1 -0
  209. package/cjs/series/progress/circular/circular.js +5 -3
  210. package/cjs/series/progress/circular/circular.js.map +1 -1
  211. package/cjs/series/progress/linear/linear.js +6 -6
  212. package/cjs/series/progress/linear/linear.js.map +1 -1
  213. package/cjs/series/radar/animation.js.map +1 -1
  214. package/cjs/series/radar/radar.d.ts +1 -0
  215. package/cjs/series/radar/radar.js +6 -2
  216. package/cjs/series/radar/radar.js.map +1 -1
  217. package/cjs/series/range-area/range-area.js +2 -3
  218. package/cjs/series/range-area/range-area.js.map +1 -1
  219. package/cjs/series/range-column/range-column.d.ts +1 -0
  220. package/cjs/series/range-column/range-column.js +11 -11
  221. package/cjs/series/range-column/range-column.js.map +1 -1
  222. package/cjs/series/rose/rose.d.ts +1 -0
  223. package/cjs/series/rose/rose.js +4 -2
  224. package/cjs/series/rose/rose.js.map +1 -1
  225. package/cjs/series/sankey/sankey.js +7 -9
  226. package/cjs/series/sankey/sankey.js.map +1 -1
  227. package/cjs/series/scatter/scatter.d.ts +1 -0
  228. package/cjs/series/scatter/scatter.js +4 -3
  229. package/cjs/series/scatter/scatter.js.map +1 -1
  230. package/cjs/series/sunburst/sunburst.js +4 -6
  231. package/cjs/series/sunburst/sunburst.js.map +1 -1
  232. package/cjs/series/treemap/treemap.js +10 -9
  233. package/cjs/series/treemap/treemap.js.map +1 -1
  234. package/cjs/series/word-cloud/base.d.ts +1 -0
  235. package/cjs/series/word-cloud/base.js +6 -3
  236. package/cjs/series/word-cloud/base.js.map +1 -1
  237. package/cjs/series/word-cloud/word-cloud-3d.js +2 -3
  238. package/cjs/series/word-cloud/word-cloud-3d.js.map +1 -1
  239. package/cjs/theme/builtin/common/component/axis/cartesian-axis.js +31 -3
  240. package/cjs/theme/builtin/common/component/axis/cartesian-axis.js.map +1 -1
  241. package/cjs/theme/builtin/common/component/axis/polar-axis.js +1 -1
  242. package/cjs/theme/builtin/common/component/axis/polar-axis.js.map +1 -1
  243. package/cjs/theme/builtin/common/component/indicator.js +1 -1
  244. package/cjs/theme/builtin/common/component/indicator.js.map +1 -1
  245. package/cjs/theme/builtin/common/component/legend/continuous.js +1 -1
  246. package/cjs/theme/builtin/common/component/legend/continuous.js.map +1 -1
  247. package/cjs/theme/builtin/common/component/legend/discrete-legend.js +1 -1
  248. package/cjs/theme/builtin/common/component/legend/discrete-legend.js.map +1 -1
  249. package/cjs/theme/builtin/common/component/mark-area.js +12 -10
  250. package/cjs/theme/builtin/common/component/mark-area.js.map +1 -1
  251. package/cjs/theme/builtin/common/component/mark-line.js +19 -12
  252. package/cjs/theme/builtin/common/component/mark-line.js.map +1 -1
  253. package/cjs/theme/builtin/common/component/mark-point.js +8 -2
  254. package/cjs/theme/builtin/common/component/mark-point.js.map +1 -1
  255. package/cjs/theme/builtin/common/component/poptip.js +1 -1
  256. package/cjs/theme/builtin/common/component/poptip.js.map +1 -1
  257. package/cjs/theme/builtin/common/component/title.js +1 -1
  258. package/cjs/theme/builtin/common/component/title.js.map +1 -1
  259. package/cjs/theme/builtin/common/component/tooltip.js +2 -2
  260. package/cjs/theme/builtin/common/component/tooltip.js.map +1 -1
  261. package/cjs/theme/builtin/common/component/total-label.js +1 -1
  262. package/cjs/theme/builtin/common/component/total-label.js.map +1 -1
  263. package/cjs/theme/builtin/common/series/area.js +4 -1
  264. package/cjs/theme/builtin/common/series/area.js.map +1 -1
  265. package/cjs/theme/builtin/common/series/bar.js +4 -1
  266. package/cjs/theme/builtin/common/series/bar.js.map +1 -1
  267. package/cjs/theme/builtin/common/series/circle-packing.js +4 -1
  268. package/cjs/theme/builtin/common/series/circle-packing.js.map +1 -1
  269. package/cjs/theme/builtin/common/series/correlation.d.ts +2 -0
  270. package/cjs/theme/builtin/common/series/correlation.js +22 -0
  271. package/cjs/theme/builtin/common/series/correlation.js.map +1 -0
  272. package/cjs/theme/builtin/common/series/funnel.js +12 -3
  273. package/cjs/theme/builtin/common/series/funnel.js.map +1 -1
  274. package/cjs/theme/builtin/common/series/index.js +3 -2
  275. package/cjs/theme/builtin/common/series/index.js.map +1 -1
  276. package/cjs/theme/builtin/common/series/line.js +4 -1
  277. package/cjs/theme/builtin/common/series/line.js.map +1 -1
  278. package/cjs/theme/builtin/common/series/map.js +4 -1
  279. package/cjs/theme/builtin/common/series/map.js.map +1 -1
  280. package/cjs/theme/builtin/common/series/pie.js +9 -1
  281. package/cjs/theme/builtin/common/series/pie.js.map +1 -1
  282. package/cjs/theme/builtin/common/series/radar.js +4 -1
  283. package/cjs/theme/builtin/common/series/radar.js.map +1 -1
  284. package/cjs/theme/builtin/common/series/rose.js +5 -1
  285. package/cjs/theme/builtin/common/series/rose.js.map +1 -1
  286. package/cjs/theme/builtin/common/series/scatter.js +4 -1
  287. package/cjs/theme/builtin/common/series/scatter.js.map +1 -1
  288. package/cjs/theme/builtin/common/series/treemap.js +4 -1
  289. package/cjs/theme/builtin/common/series/treemap.js.map +1 -1
  290. package/cjs/theme/builtin/dark/color-scheme.js +1 -1
  291. package/cjs/theme/builtin/dark/color-scheme.js.map +1 -1
  292. package/cjs/theme/builtin/light/color-scheme.js +3 -3
  293. package/cjs/theme/builtin/light/color-scheme.js.map +1 -1
  294. package/cjs/theme/color-scheme/builtin/interface.d.ts +1 -1
  295. package/cjs/theme/color-scheme/builtin/interface.js.map +1 -1
  296. package/cjs/theme/color-scheme/interface.d.ts +1 -1
  297. package/cjs/theme/color-scheme/interface.js.map +1 -1
  298. package/cjs/theme/color-scheme/util.js +3 -7
  299. package/cjs/theme/color-scheme/util.js.map +1 -1
  300. package/cjs/typings/event.d.ts +1 -0
  301. package/cjs/typings/event.js +6 -0
  302. package/cjs/typings/event.js.map +1 -0
  303. package/cjs/typings/spec/chart.d.ts +2 -0
  304. package/cjs/typings/spec/chart.js.map +1 -1
  305. package/cjs/typings/spec/common.d.ts +8 -6
  306. package/cjs/typings/spec/common.js.map +1 -1
  307. package/cjs/typings/tooltip/line.d.ts +1 -0
  308. package/cjs/typings/tooltip/line.js.map +1 -1
  309. package/cjs/typings/visual.d.ts +4 -0
  310. package/cjs/typings/visual.js.map +1 -1
  311. package/cjs/vchart-all.js +2 -2
  312. package/cjs/vchart-all.js.map +1 -1
  313. package/esm/chart/base-chart.js +4 -1
  314. package/esm/chart/base-chart.js.map +1 -1
  315. package/esm/chart/common/interface.d.ts +2 -1
  316. package/esm/chart/common/interface.js.map +1 -1
  317. package/esm/chart/correlation/correlation.d.ts +11 -0
  318. package/esm/chart/correlation/correlation.js +52 -0
  319. package/esm/chart/correlation/correlation.js.map +1 -0
  320. package/esm/chart/correlation/index.d.ts +2 -0
  321. package/esm/chart/correlation/index.js +4 -0
  322. package/esm/chart/correlation/index.js.map +1 -0
  323. package/esm/chart/correlation/interface.d.ts +6 -0
  324. package/esm/chart/correlation/interface.js +2 -0
  325. package/esm/chart/correlation/interface.js.map +1 -0
  326. package/esm/chart/gauge/gauge.js +5 -1
  327. package/esm/chart/gauge/gauge.js.map +1 -1
  328. package/esm/chart/index.d.ts +5 -3
  329. package/esm/chart/index.js +4 -2
  330. package/esm/chart/index.js.map +1 -1
  331. package/esm/chart/interface/type.d.ts +2 -1
  332. package/esm/chart/interface/type.js +2 -1
  333. package/esm/chart/interface/type.js.map +1 -1
  334. package/esm/chart/polar/progress-like.d.ts +1 -1
  335. package/esm/chart/polar/progress-like.js +12 -2
  336. package/esm/chart/polar/progress-like.js.map +1 -1
  337. package/esm/chart/sequence/sequence.js +0 -1
  338. package/esm/chart/sequence/sequence.js.map +1 -1
  339. package/esm/chart/waterfall/waterfall.js.map +1 -1
  340. package/esm/component/axis/base-axis.d.ts +2 -2
  341. package/esm/component/axis/base-axis.js.map +1 -1
  342. package/esm/component/axis/cartesian/axis.d.ts +4 -0
  343. package/esm/component/axis/cartesian/axis.js +52 -8
  344. package/esm/component/axis/cartesian/axis.js.map +1 -1
  345. package/esm/component/axis/cartesian/interface/common.d.ts +6 -1
  346. package/esm/component/axis/cartesian/interface/common.js.map +1 -1
  347. package/esm/component/axis/cartesian/interface/spec.d.ts +2 -1
  348. package/esm/component/axis/cartesian/interface/spec.js.map +1 -1
  349. package/esm/component/axis/cartesian/interface/theme.d.ts +2 -1
  350. package/esm/component/axis/cartesian/interface/theme.js.map +1 -1
  351. package/esm/component/base/base-component.d.ts +1 -1
  352. package/esm/component/base/base-component.js.map +1 -1
  353. package/esm/component/brush/brush.d.ts +2 -2
  354. package/esm/component/brush/brush.js.map +1 -1
  355. package/esm/component/brush/interface.d.ts +1 -1
  356. package/esm/component/brush/interface.js.map +1 -1
  357. package/esm/component/common/trigger/desktop.d.ts +1 -0
  358. package/esm/component/common/trigger/desktop.js +1 -0
  359. package/esm/component/common/trigger/desktop.js.map +1 -1
  360. package/esm/component/common/trigger/mobile.d.ts +1 -0
  361. package/esm/component/common/trigger/mobile.js +1 -0
  362. package/esm/component/common/trigger/mobile.js.map +1 -1
  363. package/esm/component/crosshair/cartesian.d.ts +2 -2
  364. package/esm/component/crosshair/cartesian.js.map +1 -1
  365. package/esm/component/crosshair/polar.d.ts +2 -2
  366. package/esm/component/crosshair/polar.js.map +1 -1
  367. package/esm/component/custom-mark/custom-mark.d.ts +2 -2
  368. package/esm/component/custom-mark/custom-mark.js.map +1 -1
  369. package/esm/component/data-zoom/data-filter-base-component.d.ts +26 -9
  370. package/esm/component/data-zoom/data-filter-base-component.js +91 -20
  371. package/esm/component/data-zoom/data-filter-base-component.js.map +1 -1
  372. package/esm/component/data-zoom/data-zoom/data-zoom.d.ts +2 -3
  373. package/esm/component/data-zoom/data-zoom/data-zoom.js +17 -9
  374. package/esm/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
  375. package/esm/component/data-zoom/interface.d.ts +36 -2
  376. package/esm/component/data-zoom/interface.js.map +1 -1
  377. package/esm/component/data-zoom/scroll-bar/scroll-bar.d.ts +3 -3
  378. package/esm/component/data-zoom/scroll-bar/scroll-bar.js +18 -10
  379. package/esm/component/data-zoom/scroll-bar/scroll-bar.js.map +1 -1
  380. package/esm/component/geo/geo-coordinate.d.ts +2 -2
  381. package/esm/component/geo/geo-coordinate.js.map +1 -1
  382. package/esm/component/indicator/indicator.d.ts +2 -2
  383. package/esm/component/indicator/indicator.js.map +1 -1
  384. package/esm/component/interface/common.d.ts +2 -2
  385. package/esm/component/interface/common.js.map +1 -1
  386. package/esm/component/label/base-label.d.ts +2 -2
  387. package/esm/component/label/base-label.js.map +1 -1
  388. package/esm/component/legend/base-legend.d.ts +2 -2
  389. package/esm/component/legend/base-legend.js.map +1 -1
  390. package/esm/component/legend/continuous/legend.d.ts +1 -1
  391. package/esm/component/legend/discrete/legend.d.ts +1 -1
  392. package/esm/component/legend/interface.d.ts +3 -0
  393. package/esm/component/legend/interface.js.map +1 -1
  394. package/esm/component/map-label/component.d.ts +3 -3
  395. package/esm/component/map-label/component.js.map +1 -1
  396. package/esm/component/marker/base-marker.d.ts +2 -2
  397. package/esm/component/marker/base-marker.js.map +1 -1
  398. package/esm/component/marker/mark-line/mark-line.js.map +1 -1
  399. package/esm/component/marker/mark-point/mark-point.js.map +1 -1
  400. package/esm/component/player/player.d.ts +2 -2
  401. package/esm/component/player/player.js.map +1 -1
  402. package/esm/component/title/title.d.ts +2 -2
  403. package/esm/component/title/title.js.map +1 -1
  404. package/esm/component/tooltip/handler/base.d.ts +1 -1
  405. package/esm/component/tooltip/handler/dom/util.js.map +1 -1
  406. package/esm/component/tooltip/handler/utils/common.js.map +1 -1
  407. package/esm/component/tooltip/handler/utils/compose.js +2 -1
  408. package/esm/component/tooltip/handler/utils/compose.js.map +1 -1
  409. package/esm/component/tooltip/tooltip.d.ts +2 -2
  410. package/esm/component/tooltip/tooltip.js.map +1 -1
  411. package/esm/constant/correlation.d.ts +3 -0
  412. package/esm/constant/correlation.js +8 -0
  413. package/esm/constant/correlation.js.map +1 -0
  414. package/esm/constant/index.d.ts +1 -0
  415. package/esm/constant/index.js +2 -0
  416. package/esm/constant/index.js.map +1 -1
  417. package/esm/constant/word-cloud.js +1 -2
  418. package/esm/core/factory.js +2 -1
  419. package/esm/core/index.d.ts +1 -1
  420. package/esm/core/index.js +1 -1
  421. package/esm/core/index.js.map +1 -1
  422. package/esm/data/transforms/correlation-center.d.ts +4 -0
  423. package/esm/data/transforms/correlation-center.js +14 -0
  424. package/esm/data/transforms/correlation-center.js.map +1 -0
  425. package/esm/data/transforms/correlation.d.ts +17 -0
  426. package/esm/data/transforms/correlation.js +49 -0
  427. package/esm/data/transforms/correlation.js.map +1 -0
  428. package/esm/interaction/dimension-trigger.js +1 -2
  429. package/esm/interaction/interaction.js +2 -1
  430. package/esm/interaction/zoom/zoomable.d.ts +20 -12
  431. package/esm/interaction/zoom/zoomable.js +96 -74
  432. package/esm/interaction/zoom/zoomable.js.map +1 -1
  433. package/esm/layout/base-layout.d.ts +7 -1
  434. package/esm/layout/base-layout.js +24 -10
  435. package/esm/layout/base-layout.js.map +1 -1
  436. package/esm/layout/layout3d/index.d.ts +6 -0
  437. package/esm/layout/layout3d/index.js +14 -0
  438. package/esm/layout/layout3d/index.js.map +1 -1
  439. package/esm/mark/arc-3d.js +1 -1
  440. package/esm/mark/index.d.ts +3 -2
  441. package/esm/mark/index.js +3 -1
  442. package/esm/mark/index.js.map +1 -1
  443. package/esm/mark/interface/type.d.ts +1 -0
  444. package/esm/mark/interface/type.js +1 -1
  445. package/esm/mark/interface/type.js.map +1 -1
  446. package/esm/mark/ripple.d.ts +12 -0
  447. package/esm/mark/ripple.js +27 -0
  448. package/esm/mark/ripple.js.map +1 -0
  449. package/esm/model/base-model.d.ts +0 -3
  450. package/esm/model/base-model.js +0 -3
  451. package/esm/model/base-model.js.map +1 -1
  452. package/esm/model/interface.d.ts +0 -2
  453. package/esm/model/interface.js.map +1 -1
  454. package/esm/series/area/area.js +4 -3
  455. package/esm/series/area/area.js.map +1 -1
  456. package/esm/series/bar/bar.d.ts +1 -0
  457. package/esm/series/bar/bar.js +4 -2
  458. package/esm/series/bar/bar.js.map +1 -1
  459. package/esm/series/base/base-series.js +5 -7
  460. package/esm/series/base/base-series.js.map +1 -1
  461. package/esm/series/box-plot/box-plot.js +10 -8
  462. package/esm/series/box-plot/box-plot.js.map +1 -1
  463. package/esm/series/circle-packing/circle-packing.js +7 -6
  464. package/esm/series/circle-packing/circle-packing.js.map +1 -1
  465. package/esm/series/correlation/animation.d.ts +8 -0
  466. package/esm/series/correlation/animation.js +16 -0
  467. package/esm/series/correlation/animation.js.map +1 -0
  468. package/esm/series/correlation/constant.d.ts +2 -0
  469. package/esm/series/correlation/constant.js +25 -0
  470. package/esm/series/correlation/constant.js.map +1 -0
  471. package/esm/series/correlation/correlation.d.ts +57 -0
  472. package/esm/series/correlation/correlation.js +237 -0
  473. package/esm/series/correlation/correlation.js.map +1 -0
  474. package/esm/series/correlation/interface.d.ts +37 -0
  475. package/esm/series/correlation/interface.js +2 -0
  476. package/esm/series/correlation/interface.js.map +1 -0
  477. package/esm/series/dot/dot.js +2 -3
  478. package/esm/series/dot/dot.js.map +1 -1
  479. package/esm/series/funnel/funnel.js +4 -5
  480. package/esm/series/funnel/funnel.js.map +1 -1
  481. package/esm/series/gauge/gauge-pointer.d.ts +1 -0
  482. package/esm/series/gauge/gauge-pointer.js +4 -2
  483. package/esm/series/gauge/gauge-pointer.js.map +1 -1
  484. package/esm/series/gauge/gauge.d.ts +1 -0
  485. package/esm/series/gauge/gauge.js +5 -3
  486. package/esm/series/gauge/gauge.js.map +1 -1
  487. package/esm/series/heatmap/heatmap.js +2 -4
  488. package/esm/series/heatmap/heatmap.js.map +1 -1
  489. package/esm/series/index.d.ts +4 -2
  490. package/esm/series/index.js +3 -1
  491. package/esm/series/index.js.map +1 -1
  492. package/esm/series/interface/series.d.ts +1 -1
  493. package/esm/series/interface/series.js.map +1 -1
  494. package/esm/series/interface/theme.d.ts +2 -0
  495. package/esm/series/interface/theme.js +4 -1
  496. package/esm/series/interface/theme.js.map +1 -1
  497. package/esm/series/interface/type.d.ts +7 -2
  498. package/esm/series/interface/type.js +4 -2
  499. package/esm/series/interface/type.js.map +1 -1
  500. package/esm/series/line/line.d.ts +1 -0
  501. package/esm/series/line/line.js +4 -0
  502. package/esm/series/line/line.js.map +1 -1
  503. package/esm/series/link/link.js +6 -5
  504. package/esm/series/link/link.js.map +1 -1
  505. package/esm/series/map/map.js +2 -3
  506. package/esm/series/map/map.js.map +1 -1
  507. package/esm/series/mixin/line-mixin.js +3 -5
  508. package/esm/series/mixin/line-mixin.js.map +1 -1
  509. package/esm/series/pie/interface.d.ts +4 -0
  510. package/esm/series/pie/interface.js.map +1 -1
  511. package/esm/series/pie/pie-3d.js +6 -6
  512. package/esm/series/pie/pie-3d.js.map +1 -1
  513. package/esm/series/pie/pie.d.ts +2 -0
  514. package/esm/series/pie/pie.js +16 -2
  515. package/esm/series/pie/pie.js.map +1 -1
  516. package/esm/series/progress/circular/circular.d.ts +1 -0
  517. package/esm/series/progress/circular/circular.js +5 -2
  518. package/esm/series/progress/circular/circular.js.map +1 -1
  519. package/esm/series/progress/linear/linear.js +5 -5
  520. package/esm/series/progress/linear/linear.js.map +1 -1
  521. package/esm/series/radar/animation.js.map +1 -1
  522. package/esm/series/radar/radar.d.ts +1 -0
  523. package/esm/series/radar/radar.js +6 -2
  524. package/esm/series/radar/radar.js.map +1 -1
  525. package/esm/series/range-area/range-area.js +2 -2
  526. package/esm/series/range-area/range-area.js.map +1 -1
  527. package/esm/series/range-column/range-column.d.ts +1 -0
  528. package/esm/series/range-column/range-column.js +10 -11
  529. package/esm/series/range-column/range-column.js.map +1 -1
  530. package/esm/series/rose/rose.d.ts +1 -0
  531. package/esm/series/rose/rose.js +4 -2
  532. package/esm/series/rose/rose.js.map +1 -1
  533. package/esm/series/sankey/sankey.js +7 -9
  534. package/esm/series/sankey/sankey.js.map +1 -1
  535. package/esm/series/scatter/scatter.d.ts +1 -0
  536. package/esm/series/scatter/scatter.js +4 -3
  537. package/esm/series/scatter/scatter.js.map +1 -1
  538. package/esm/series/sunburst/sunburst.js +4 -6
  539. package/esm/series/sunburst/sunburst.js.map +1 -1
  540. package/esm/series/treemap/treemap.js +10 -9
  541. package/esm/series/treemap/treemap.js.map +1 -1
  542. package/esm/series/word-cloud/base.d.ts +1 -0
  543. package/esm/series/word-cloud/base.js +6 -3
  544. package/esm/series/word-cloud/base.js.map +1 -1
  545. package/esm/series/word-cloud/word-cloud-3d.js +2 -3
  546. package/esm/series/word-cloud/word-cloud-3d.js.map +1 -1
  547. package/esm/theme/builtin/common/component/axis/cartesian-axis.js +28 -2
  548. package/esm/theme/builtin/common/component/axis/cartesian-axis.js.map +1 -1
  549. package/esm/theme/builtin/common/component/axis/polar-axis.js +1 -1
  550. package/esm/theme/builtin/common/component/axis/polar-axis.js.map +1 -1
  551. package/esm/theme/builtin/common/component/indicator.js +1 -1
  552. package/esm/theme/builtin/common/component/indicator.js.map +1 -1
  553. package/esm/theme/builtin/common/component/legend/continuous.js +1 -1
  554. package/esm/theme/builtin/common/component/legend/continuous.js.map +1 -1
  555. package/esm/theme/builtin/common/component/legend/discrete-legend.js +1 -1
  556. package/esm/theme/builtin/common/component/legend/discrete-legend.js.map +1 -1
  557. package/esm/theme/builtin/common/component/mark-area.js +12 -10
  558. package/esm/theme/builtin/common/component/mark-area.js.map +1 -1
  559. package/esm/theme/builtin/common/component/mark-line.js +19 -12
  560. package/esm/theme/builtin/common/component/mark-line.js.map +1 -1
  561. package/esm/theme/builtin/common/component/mark-point.js +8 -2
  562. package/esm/theme/builtin/common/component/mark-point.js.map +1 -1
  563. package/esm/theme/builtin/common/component/poptip.js +1 -1
  564. package/esm/theme/builtin/common/component/poptip.js.map +1 -1
  565. package/esm/theme/builtin/common/component/title.js +1 -1
  566. package/esm/theme/builtin/common/component/title.js.map +1 -1
  567. package/esm/theme/builtin/common/component/tooltip.js +2 -2
  568. package/esm/theme/builtin/common/component/tooltip.js.map +1 -1
  569. package/esm/theme/builtin/common/component/total-label.js +1 -1
  570. package/esm/theme/builtin/common/component/total-label.js.map +1 -1
  571. package/esm/theme/builtin/common/series/area.js +4 -1
  572. package/esm/theme/builtin/common/series/area.js.map +1 -1
  573. package/esm/theme/builtin/common/series/bar.js +4 -1
  574. package/esm/theme/builtin/common/series/bar.js.map +1 -1
  575. package/esm/theme/builtin/common/series/circle-packing.js +4 -1
  576. package/esm/theme/builtin/common/series/circle-packing.js.map +1 -1
  577. package/esm/theme/builtin/common/series/correlation.d.ts +2 -0
  578. package/esm/theme/builtin/common/series/correlation.js +18 -0
  579. package/esm/theme/builtin/common/series/correlation.js.map +1 -0
  580. package/esm/theme/builtin/common/series/funnel.js +12 -3
  581. package/esm/theme/builtin/common/series/funnel.js.map +1 -1
  582. package/esm/theme/builtin/common/series/index.js +4 -1
  583. package/esm/theme/builtin/common/series/index.js.map +1 -1
  584. package/esm/theme/builtin/common/series/line.js +4 -1
  585. package/esm/theme/builtin/common/series/line.js.map +1 -1
  586. package/esm/theme/builtin/common/series/map.js +4 -1
  587. package/esm/theme/builtin/common/series/map.js.map +1 -1
  588. package/esm/theme/builtin/common/series/pie.js +9 -1
  589. package/esm/theme/builtin/common/series/pie.js.map +1 -1
  590. package/esm/theme/builtin/common/series/radar.js +4 -1
  591. package/esm/theme/builtin/common/series/radar.js.map +1 -1
  592. package/esm/theme/builtin/common/series/rose.js +5 -1
  593. package/esm/theme/builtin/common/series/rose.js.map +1 -1
  594. package/esm/theme/builtin/common/series/scatter.js +4 -1
  595. package/esm/theme/builtin/common/series/scatter.js.map +1 -1
  596. package/esm/theme/builtin/common/series/treemap.js +4 -1
  597. package/esm/theme/builtin/common/series/treemap.js.map +1 -1
  598. package/esm/theme/builtin/dark/color-scheme.js +1 -1
  599. package/esm/theme/builtin/dark/color-scheme.js.map +1 -1
  600. package/esm/theme/builtin/light/color-scheme.js +3 -3
  601. package/esm/theme/builtin/light/color-scheme.js.map +1 -1
  602. package/esm/theme/color-scheme/builtin/interface.d.ts +1 -1
  603. package/esm/theme/color-scheme/builtin/interface.js.map +1 -1
  604. package/esm/theme/color-scheme/interface.d.ts +1 -1
  605. package/esm/theme/color-scheme/interface.js.map +1 -1
  606. package/esm/theme/color-scheme/util.js +4 -7
  607. package/esm/theme/color-scheme/util.js.map +1 -1
  608. package/esm/typings/event.d.ts +1 -0
  609. package/esm/typings/event.js +2 -0
  610. package/esm/typings/event.js.map +1 -0
  611. package/esm/typings/spec/chart.d.ts +2 -0
  612. package/esm/typings/spec/chart.js.map +1 -1
  613. package/esm/typings/spec/common.d.ts +8 -6
  614. package/esm/typings/spec/common.js.map +1 -1
  615. package/esm/typings/tooltip/line.d.ts +1 -0
  616. package/esm/typings/tooltip/line.js.map +1 -1
  617. package/esm/typings/visual.d.ts +4 -0
  618. package/esm/typings/visual.js.map +1 -1
  619. package/esm/vchart-all.js +4 -2
  620. package/esm/vchart-all.js.map +1 -1
  621. package/package.json +9 -6
package/build/index.js CHANGED
@@ -1226,12 +1226,12 @@
1226
1226
  function radianToDegree(radian) {
1227
1227
  return 180 * radian / Math.PI;
1228
1228
  }
1229
- const clampRadian = function () {
1229
+ const clampRadian$1 = function () {
1230
1230
  let angle = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
1231
1231
  if (angle < 0) for (; angle < -tau$1;) angle += tau$1;else if (angle > 0) for (; angle > tau$1;) angle -= tau$1;
1232
1232
  return angle;
1233
1233
  };
1234
- const clampAngleByRadian = clampRadian;
1234
+ const clampAngleByRadian = clampRadian$1;
1235
1235
  function polarToCartesian$2(center, radius, angleInRadian) {
1236
1236
  return {
1237
1237
  x: center.x + radius * Math.cos(angleInRadian),
@@ -6200,7 +6200,7 @@
6200
6200
  class DataSet {
6201
6201
  constructor(options) {
6202
6202
  let name;
6203
- this.options = options, this.isDataSet = !0, this.transformMap = {}, this.parserMap = {}, this.dataViewMap = {}, this.target = new EventEmitter(), this._callMap = new Map(), name = (null == options ? void 0 : options.name) ? options.name : getUUID("dataset"), this.name = name;
6203
+ this.options = options, this.isDataSet = !0, this.transformMap = {}, this.parserMap = {}, this.dataViewMap = {}, this.target = new EventEmitter(), name = (null == options ? void 0 : options.name) ? options.name : getUUID("dataset"), this.name = name;
6204
6204
  }
6205
6205
  getDataView(name) {
6206
6206
  return this.dataViewMap[name];
@@ -6231,6 +6231,7 @@
6231
6231
  return this.transformMap[name];
6232
6232
  }
6233
6233
  multipleDataViewAddListener(list, event, call) {
6234
+ this._callMap || (this._callMap = new Map());
6234
6235
  let callAd = this._callMap.get(call);
6235
6236
  callAd || (callAd = () => {
6236
6237
  list.some(l => l.isRunning) || call();
@@ -6242,10 +6243,12 @@
6242
6243
  this.multipleDataViewAddListener(Object.values(this.dataViewMap), event, call);
6243
6244
  }
6244
6245
  multipleDataViewRemoveListener(list, event, call) {
6245
- const callAd = this._callMap.get(call);
6246
- callAd && list.forEach(l => {
6247
- l.target.removeListener(event, callAd);
6248
- }), this._callMap.delete(call);
6246
+ if (this._callMap) {
6247
+ const callAd = this._callMap.get(call);
6248
+ callAd && list.forEach(l => {
6249
+ l.target.removeListener(event, callAd);
6250
+ }), this._callMap.delete(call);
6251
+ }
6249
6252
  }
6250
6253
  multipleDataViewUpdateInParse(newData) {
6251
6254
  newData.forEach(d => {
@@ -6275,19 +6278,20 @@
6275
6278
  constructor(dataSet, options) {
6276
6279
  var _this = this;
6277
6280
  let name;
6278
- this.dataSet = dataSet, this.options = options, this.isDataView = !0, this.target = new EventEmitter(), this.parseOption = null, this.transformsArr = [], this.isRunning = !1, this.rawData = {}, this.history = !1, this.historyData = [], this.parserData = {}, this.latestData = {}, this._fields = null, this._diffData = !1, this._diffKeys = null, this._diffMap = new Map(), this._diffRank = 0, this.reRunAllTransform = function () {
6281
+ this.dataSet = dataSet, this.options = options, this.isDataView = !0, this.target = new EventEmitter(), this.parseOption = null, this.transformsArr = [], this.isRunning = !1, this.rawData = {}, this.history = !1, this.parserData = {}, this.latestData = {}, this._fields = null, this.reRunAllTransform = function () {
6279
6282
  let opt = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
6280
6283
  pushHistory: !0,
6281
6284
  emitMessage: !0
6282
6285
  };
6283
6286
  return _this.isRunning = !0, _this.resetTransformData(), _this.transformsArr.forEach(t => {
6284
- _this.executeTransform(t, Object.assign(Object.assign({}, opt), {
6287
+ _this.executeTransform(t, {
6288
+ pushHistory: opt.pushHistory,
6285
6289
  emitMessage: !1
6286
- })), _this.isLastTransform(t) && _this.diffLastData();
6287
- }), _this.isRunning = !1, !1 !== (null == opt ? void 0 : opt.emitMessage) && _this.target.emit("change", []), _this;
6290
+ }), _this.isLastTransform(t) && _this.diffLastData();
6291
+ }), _this.isRunning = !1, !1 !== opt.emitMessage && _this.target.emit("change", []), _this;
6288
6292
  }, this.markRunning = () => {
6289
6293
  this.isRunning = !0, this.target.emit("markRunning", []);
6290
- }, name = (null == options ? void 0 : options.name) ? options.name : getUUID("dataview"), this.name = name, (null == options ? void 0 : options.history) && (this.history = options.history), this.dataSet.setDataView(name, this), this.setFields(null == options ? void 0 : options.fields);
6294
+ }, name = (null == options ? void 0 : options.name) ? options.name : getUUID("dataview"), this.name = name, (null == options ? void 0 : options.history) && (this.history = options.history, this.historyData = []), this.dataSet.setDataView(name, this), this.setFields(null == options ? void 0 : options.fields);
6291
6295
  }
6292
6296
  parse(data, options) {
6293
6297
  let emit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !1;
@@ -6295,7 +6299,6 @@
6295
6299
  this.isRunning = !0, emit && this.target.emit("beforeParse", []), options && (this.parseOption = options);
6296
6300
  const cloneData = this.cloneParseData(data, options);
6297
6301
  if (null == options ? void 0 : options.type) {
6298
- options = cloneDeep(options);
6299
6302
  const parserData = (null !== (_a = this.dataSet.getParser(options.type)) && void 0 !== _a ? _a : this.dataSet.getParser("bytejson"))(cloneData, options.options, this);
6300
6303
  this.rawData = cloneData, this.parserData = parserData, this.history && this.historyData.push(cloneData, parserData), this.latestData = parserData;
6301
6304
  } else this.parserData = cloneData, this.rawData = cloneData, this.history && this.historyData.push(cloneData), this.latestData = cloneData;
@@ -6312,7 +6315,7 @@
6312
6315
  }
6313
6316
  if (pushOption && this.transformsArr.push(options), execute) {
6314
6317
  const lastTag = this.isLastTransform(options);
6315
- options = cloneDeep(options), this.executeTransform(options), lastTag && this.diffLastData();
6318
+ this.executeTransform(options), lastTag && this.diffLastData();
6316
6319
  }
6317
6320
  }
6318
6321
  return this.sortTransform(), this.isRunning = !1, this;
@@ -6321,7 +6324,7 @@
6321
6324
  return this.transformsArr[this.transformsArr.length - 1] === options;
6322
6325
  }
6323
6326
  sortTransform() {
6324
- this.transformsArr.sort((a, b) => {
6327
+ this.transformsArr.length >= 2 && this.transformsArr.sort((a, b) => {
6325
6328
  var _a, _b;
6326
6329
  return (null !== (_a = a.level) && void 0 !== _a ? _a : 0) - (null !== (_b = b.level) && void 0 !== _b ? _b : 0);
6327
6330
  });
@@ -6342,10 +6345,10 @@
6342
6345
  this.latestData = this.parserData, this.history && (this.historyData.length = 0, this.historyData.push(this.rawData, this.parserData));
6343
6346
  }
6344
6347
  enableDiff(keys) {
6345
- this._diffData = !0, this._diffKeys = keys;
6348
+ this._diffData = !0, this._diffKeys = keys, this._diffMap = new Map(), this._diffRank = 0;
6346
6349
  }
6347
6350
  disableDiff() {
6348
- this._diffData = !1, this.resetDiff();
6351
+ this._diffData = !1, this._diffMap = null, this._diffRank = null;
6349
6352
  }
6350
6353
  resetDiff() {
6351
6354
  this._diffMap = new Map(), this._diffRank = 0;
@@ -6403,7 +6406,7 @@
6403
6406
  }, !1)) : fieldsOption && (fieldsOption.options.fields = this._fields);
6404
6407
  }
6405
6408
  destroy() {
6406
- this.dataSet.removeDataView(this.name), this.resetDiff(), this.latestData = null, this.rawData = null, this.parserData = null, this.transformsArr = null, this.target = null;
6409
+ this.dataSet.removeDataView(this.name), this._diffMap = null, this._diffRank = null, this.latestData = null, this.rawData = null, this.parserData = null, this.transformsArr = null, this.target = null;
6407
6410
  }
6408
6411
  }
6409
6412
 
@@ -14192,6 +14195,11 @@
14192
14195
  a.onEnd();
14193
14196
  });
14194
14197
  }
14198
+ onStart() {
14199
+ this.customAnimates.forEach(a => {
14200
+ a.onStart();
14201
+ });
14202
+ }
14195
14203
  onUpdate(end, ratio, out) {
14196
14204
  this.updating || (this.updating = !0, this.customAnimates.forEach(a => {
14197
14205
  const easing = a.easing,
@@ -16560,12 +16568,13 @@
16560
16568
  main: !1
16561
16569
  };
16562
16570
  this.tryInit();
16563
- const layerMode = this.getRecommendedLayerType(options.layerMode),
16564
- layerHandler = this.getLayerHandler(layerMode),
16571
+ let layerMode = this.getRecommendedLayerType(options.layerMode);
16572
+ layerMode = options.canvasId ? "static" : layerMode;
16573
+ const layerHandler = this.getLayerHandler(layerMode),
16565
16574
  layer = new Layer(stage, this.global, stage.window, Object.assign(Object.assign({
16566
16575
  main: !1
16567
16576
  }, options), {
16568
- layerMode: options.canvasId ? "static" : layerMode,
16577
+ layerMode: layerMode,
16569
16578
  canvasId: options.canvasId,
16570
16579
  layerHandler: layerHandler
16571
16580
  })),
@@ -25472,7 +25481,8 @@
25472
25481
  createLayer(canvasId, layerMode) {
25473
25482
  const layer = this.layerService.createLayer(this, {
25474
25483
  main: !1,
25475
- layerMode: layerMode
25484
+ layerMode: layerMode,
25485
+ canvasId: canvasId
25476
25486
  });
25477
25487
  return this.appendChild(layer), layer;
25478
25488
  }
@@ -26245,7 +26255,7 @@
26245
26255
  function intersect$1(a, b, sep) {
26246
26256
  return sep > Math.max(b.x1 - a.x2, a.x1 - b.x2, b.y1 - a.y2, a.y1 - b.y2);
26247
26257
  }
26248
- function hasOverlap$1(items, pad) {
26258
+ function hasOverlap$2(items, pad) {
26249
26259
  for (let b, i = 1, n = items.length, a = items[0]; i < n; a = b, ++i) if (b = items[i], intersect$1(a.AABBBounds, b.AABBBounds, pad)) return !0;
26250
26260
  return !1;
26251
26261
  }
@@ -26361,7 +26371,7 @@
26361
26371
  AABBBounds: bounds,
26362
26372
  value: scaleTicks[i]
26363
26373
  }));
26364
- for (; items.length >= 3 && hasOverlap$1(items, labelGap);) items = methods$2.parity(items);
26374
+ for (; items.length >= 3 && hasOverlap$2(items, labelGap);) items = methods$2.parity(items);
26365
26375
  const ticks = items.map(item => item.value);
26366
26376
  ticks.length < 3 && labelFlush && (ticks.length > 1 && ticks.pop(), last(ticks) !== last(scaleTicks) && ticks.push(last(scaleTicks))), scaleTicks = ticks;
26367
26377
  }
@@ -26840,7 +26850,7 @@
26840
26850
  return dataScheme;
26841
26851
  }
26842
26852
  function queryColorFromColorScheme(colorScheme, colorKey, seriesType) {
26843
- var _a;
26853
+ var _a, _b;
26844
26854
  const scheme = !isValid$1(seriesType) ? colorScheme.default : (_a = colorScheme[seriesType]) !== null && _a !== void 0 ? _a : colorScheme.default;
26845
26855
  if (!scheme) {
26846
26856
  return undefined;
@@ -26848,15 +26858,7 @@
26848
26858
  let color;
26849
26859
  const { palette } = scheme;
26850
26860
  if (isObject$2(palette)) {
26851
- for (const key of array(colorKey.key)) {
26852
- color = palette[key];
26853
- if (isValid$1(color)) {
26854
- break;
26855
- }
26856
- }
26857
- if (!color) {
26858
- color = colorKey.default;
26859
- }
26861
+ color = (_b = palette[colorKey.key]) !== null && _b !== void 0 ? _b : colorKey.default;
26860
26862
  }
26861
26863
  if (!color) {
26862
26864
  return undefined;
@@ -27200,15 +27202,15 @@
27200
27202
  disableFontColor: '#bcc1cb',
27201
27203
  labelReverseFontColor: '#ffffff',
27202
27204
  axisGridColor: '#f1f2f5',
27203
- axisDomainColor: '#D9DDE4',
27204
- axisLabelFontColor: '#89909d',
27205
- dataZoomHandlerStrokeColor: '#AEB5BE',
27205
+ axisDomainColor: '#d9dde4',
27206
+ dataZoomHandlerStrokeColor: '#aeb5be',
27206
27207
  dataZoomHandlerFillColor: '#ffffff',
27207
27208
  dataZoomBackgroundColor: '#f1f3f4',
27208
27209
  dataZoomChartColor: '#c9ced8',
27209
27210
  dataZoomSelectedColor: '#0040ff',
27210
27211
  scrollBarSliderColor: '#000000',
27211
27212
  tooltipBackgroundColor: '#ffffff',
27213
+ markLabelBackgroundColor: '#ffc528',
27212
27214
  titleFontColor: '#21252c',
27213
27215
  labelFontColor: '#89909d'
27214
27216
  }
@@ -27221,7 +27223,7 @@
27221
27223
  offset: 5,
27222
27224
  position: 'top',
27223
27225
  style: {
27224
- stroke: 'white',
27226
+ stroke: { type: 'palette', key: 'backgroundColor' },
27225
27227
  lineWidth: 2
27226
27228
  }
27227
27229
  },
@@ -27239,7 +27241,7 @@
27239
27241
  offset: 5,
27240
27242
  style: {
27241
27243
  lineWidth: 2,
27242
- stroke: 'white'
27244
+ stroke: { type: 'palette', key: 'backgroundColor' }
27243
27245
  }
27244
27246
  }
27245
27247
  };
@@ -27332,7 +27334,7 @@
27332
27334
  const funnel$1 = {
27333
27335
  transform: {
27334
27336
  style: {
27335
- fill: '#f5f5f5'
27337
+ fill: { type: 'palette', key: 'axisGridColor' }
27336
27338
  }
27337
27339
  },
27338
27340
  label: {
@@ -27346,7 +27348,7 @@
27346
27348
  style: {
27347
27349
  fontSize: THEME_CONSTANTS.l4FontSize,
27348
27350
  lineHeight: THEME_CONSTANTS.l4LineHeight,
27349
- fill: '#707070'
27351
+ fill: { type: 'palette', key: 'secondaryFontColor' }
27350
27352
  },
27351
27353
  line: {
27352
27354
  style: {
@@ -27358,7 +27360,7 @@
27358
27360
  style: {
27359
27361
  fontSize: THEME_CONSTANTS.l4FontSize,
27360
27362
  lineHeight: THEME_CONSTANTS.l4LineHeight,
27361
- fill: '#707070',
27363
+ fill: { type: 'palette', key: 'secondaryFontColor' },
27362
27364
  textBaseline: 'middle'
27363
27365
  }
27364
27366
  }
@@ -27452,7 +27454,7 @@
27452
27454
  offset: 5,
27453
27455
  style: {
27454
27456
  lineWidth: 2,
27455
- stroke: 'white'
27457
+ stroke: { type: 'palette', key: 'backgroundColor' }
27456
27458
  }
27457
27459
  },
27458
27460
  point: {
@@ -27502,7 +27504,7 @@
27502
27504
  lineHeight: THEME_CONSTANTS.l6LineHeight,
27503
27505
  textBaseline: 'middle',
27504
27506
  fill: { type: 'palette', key: 'secondaryFontColor', default: '#89909d' },
27505
- stroke: 'white'
27507
+ stroke: { type: 'palette', key: 'backgroundColor' }
27506
27508
  }
27507
27509
  }
27508
27510
  };
@@ -27519,9 +27521,14 @@
27519
27521
  position: 'outside',
27520
27522
  style: {
27521
27523
  fontWeight: 'normal',
27522
- stroke: 'white',
27524
+ stroke: { type: 'palette', key: 'backgroundColor' },
27523
27525
  fillOpacity: 1
27524
27526
  }
27527
+ },
27528
+ innerLabel: {
27529
+ style: {
27530
+ lineWidth: 2
27531
+ }
27525
27532
  }
27526
27533
  };
27527
27534
 
@@ -27545,7 +27552,7 @@
27545
27552
  offset: 5,
27546
27553
  style: {
27547
27554
  lineWidth: 2,
27548
- stroke: 'white'
27555
+ stroke: { type: 'palette', key: 'backgroundColor' }
27549
27556
  }
27550
27557
  },
27551
27558
  point: {
@@ -27570,7 +27577,7 @@
27570
27577
  position: 'top',
27571
27578
  style: {
27572
27579
  lineWidth: 2,
27573
- stroke: 'white'
27580
+ stroke: { type: 'palette', key: 'backgroundColor' }
27574
27581
  }
27575
27582
  }
27576
27583
  };
@@ -27647,7 +27654,7 @@
27647
27654
  padding: THEME_CONSTANTS.l5FontSize * 2,
27648
27655
  style: {
27649
27656
  fill: 'black',
27650
- stroke: 'white',
27657
+ stroke: { type: 'palette', key: 'backgroundColor' },
27651
27658
  lineWidth: 2,
27652
27659
  fontSize: THEME_CONSTANTS.l5FontSize,
27653
27660
  lineHeight: THEME_CONSTANTS.l5LineHeight,
@@ -28699,6 +28706,10 @@
28699
28706
  }
28700
28707
  }
28701
28708
 
28709
+ const delayMap$3 = {
28710
+ debounce: debounce,
28711
+ throttle: throttle
28712
+ };
28702
28713
  let ScrollBar$1 = class ScrollBar extends AbstractComponent {
28703
28714
  constructor(attributes) {
28704
28715
  super(merge$1({}, ScrollBar.defaultAttributes, attributes)), this.name = "scrollbar", this._onRailPointerDown = e => {
@@ -28733,29 +28744,44 @@
28733
28744
  } = this.attribute;
28734
28745
  this._prePos = "horizontal" === direction ? e.clientX : e.clientY, "browser" === vglobal.env ? (vglobal.addEventListener("pointermove", this._onSliderPointerMove, {
28735
28746
  capture: !0
28736
- }), vglobal.addEventListener("pointerup", this._onSliderPointerUp)) : (this._slider.addEventListener("pointermove", this._onSliderPointerMove, {
28747
+ }), vglobal.addEventListener("pointerup", this._onSliderPointerUp)) : (this.stage.addEventListener("pointermove", this._onSliderPointerMove, {
28737
28748
  capture: !0
28738
- }), this._slider.addEventListener("pointerup", this._onSliderPointerUp), this._slider.addEventListener("pointerupoutside", this._onSliderPointerUp));
28739
- }, this._onSliderPointerMove = e => {
28740
- e.stopPropagation();
28749
+ }), this.stage.addEventListener("pointerup", this._onSliderPointerUp), this.stage.addEventListener("pointerupoutside", this._onSliderPointerUp));
28750
+ }, this._computeScrollValue = e => {
28741
28751
  const {
28742
28752
  direction: direction
28743
28753
  } = this.attribute;
28744
28754
  let currentScrollValue,
28745
28755
  currentPos,
28746
28756
  delta = 0;
28757
+ const {
28758
+ width: width,
28759
+ height: height
28760
+ } = this._getSliderRenderBounds();
28761
+ return "vertical" === direction ? (currentPos = e.clientY, delta = currentPos - this._prePos, currentScrollValue = delta / height) : (currentPos = e.clientX, delta = currentPos - this._prePos, currentScrollValue = delta / width), [currentPos, currentScrollValue];
28762
+ }, this._onSliderPointerMove = delayMap$3[this.attribute.delayType](e => {
28763
+ e.stopPropagation();
28747
28764
  const preScrollRange = this.getScrollRange(),
28748
- {
28749
- width: width,
28750
- height: height
28751
- } = this._getSliderRenderBounds();
28752
- "vertical" === direction ? (currentPos = e.clientY, delta = currentPos - this._prePos, currentScrollValue = delta / height) : (currentPos = e.clientX, delta = currentPos - this._prePos, currentScrollValue = delta / width), this.setScrollRange([preScrollRange[0] + currentScrollValue, preScrollRange[1] + currentScrollValue], !0), this._prePos = currentPos;
28753
- }, this._onSliderPointerUp = e => {
28754
- e.preventDefault(), "browser" === vglobal.env ? (vglobal.removeEventListener("pointermove", this._onSliderPointerMove, {
28765
+ [currentPos, currentScrollValue] = this._computeScrollValue(e);
28766
+ this.setScrollRange([preScrollRange[0] + currentScrollValue, preScrollRange[1] + currentScrollValue], !0), this._prePos = currentPos;
28767
+ }, this.attribute.delayTime), this._onSliderPointerUp = e => {
28768
+ e.preventDefault();
28769
+ const {
28770
+ realTime = !0,
28771
+ range: preRange,
28772
+ limitRange = [0, 1]
28773
+ } = this.attribute,
28774
+ preScrollRange = this.getScrollRange(),
28775
+ [currentPos, currentScrollValue] = this._computeScrollValue(e),
28776
+ range = [preScrollRange[0] + currentScrollValue, preScrollRange[1] + currentScrollValue];
28777
+ realTime || this._onChange({
28778
+ pre: preRange,
28779
+ value: clampRange$1(range, limitRange[0], limitRange[1])
28780
+ }), "browser" === vglobal.env ? (vglobal.removeEventListener("pointermove", this._onSliderPointerMove, {
28755
28781
  capture: !0
28756
- }), vglobal.removeEventListener("pointerup", this._onSliderPointerUp)) : (this._slider.removeEventListener("pointermove", this._onSliderPointerMove, {
28782
+ }), vglobal.removeEventListener("pointerup", this._onSliderPointerUp)) : (this.stage.removeEventListener("pointermove", this._onSliderPointerMove, {
28757
28783
  capture: !0
28758
- }), this._slider.removeEventListener("pointerup", this._onSliderPointerUp), this._slider.removeEventListener("pointerupoutside", this._onSliderPointerUp));
28784
+ }), this.stage.removeEventListener("pointerup", this._onSliderPointerUp), this.stage.removeEventListener("pointerupoutside", this._onSliderPointerUp));
28759
28785
  };
28760
28786
  }
28761
28787
  setScrollRange(range) {
@@ -28764,14 +28790,15 @@
28764
28790
  const {
28765
28791
  direction = "horizontal",
28766
28792
  limitRange = [0, 1],
28767
- range: preRange
28793
+ range: preRange,
28794
+ realTime = !0
28768
28795
  } = this.attribute,
28769
28796
  currScrollRange = clampRange$1(range, limitRange[0], limitRange[1]);
28770
28797
  if (render) {
28771
28798
  const sliderPos = this._getSliderPos(currScrollRange);
28772
28799
  this._slider && ("horizontal" === direction ? this._slider.setAttribute("x", sliderPos[0], !0) : this._slider.setAttribute("y", sliderPos[0], !0), (null === (_a = this.stage) || void 0 === _a ? void 0 : _a.autoRender) || null === (_b = this.stage) || void 0 === _b || _b.renderNextFrame());
28773
28800
  }
28774
- this.attribute.range = currScrollRange, this._onChange({
28801
+ this.attribute.range = currScrollRange, realTime && this._onChange({
28775
28802
  pre: preRange,
28776
28803
  value: currScrollRange
28777
28804
  });
@@ -28780,7 +28807,12 @@
28780
28807
  return this.attribute.range;
28781
28808
  }
28782
28809
  bindEvents() {
28783
- this.attribute.disableTriggerEvent || (this._rail && this._rail.addEventListener("pointerdown", this._onRailPointerDown), this._slider && this._slider.addEventListener("pointerdown", this._onSliderPointerDown));
28810
+ if (this.attribute.disableTriggerEvent) return;
28811
+ const {
28812
+ delayType = "throttle",
28813
+ delayTime = 0
28814
+ } = this.attribute;
28815
+ this._rail && this._rail.addEventListener("pointerdown", delayMap$3[delayType](this._onRailPointerDown, delayTime)), this._slider && this._slider.addEventListener("pointerdown", this._onSliderPointerDown);
28784
28816
  }
28785
28817
  render() {
28786
28818
  this._reset();
@@ -28910,7 +28942,10 @@
28910
28942
  fill: "rgba(0, 0, 0, .0)"
28911
28943
  },
28912
28944
  padding: 2,
28913
- scrollRange: [0, 1]
28945
+ scrollRange: [0, 1],
28946
+ delayType: "throttle",
28947
+ delayTime: 0,
28948
+ realTime: !0
28914
28949
  };
28915
28950
 
28916
28951
  function traverseGroup(group, cb) {
@@ -30229,7 +30264,7 @@
30229
30264
  labeling(textBounds, graphicBounds, position, offset) {}
30230
30265
  _labelLine(text) {}
30231
30266
  render() {
30232
- if (this._prepare(), this._isCollectionBase && isNil$1(this._idToPoint) || !this._isCollectionBase && isNil$1(this._idToGraphic)) return;
30267
+ if (this._prepare(), isNil$1(this._idToGraphic) || this._isCollectionBase && isNil$1(this._idToPoint)) return;
30233
30268
  const {
30234
30269
  overlap: overlap,
30235
30270
  smartInvert: smartInvert,
@@ -30274,25 +30309,25 @@
30274
30309
  const {
30275
30310
  data: data
30276
30311
  } = this.attribute;
30277
- if (data && 0 !== data.length) if (this._isCollectionBase) {
30312
+ if (data && 0 !== data.length) if (this._idToGraphic || (this._idToGraphic = new Map()), this._isCollectionBase) {
30278
30313
  this._idToPoint || (this._idToPoint = new Map());
30279
- const baseMark = currentBaseMarks[0],
30280
- points = getPointsOfLineArea(baseMark);
30281
- if (null == points ? void 0 : points.length) for (let i = 0; i < points.length; i++) {
30282
- const textData = data[i];
30283
- textData && points[i] && (isValid$1(textData.id) || (textData.id = `vrender-component-${this.name}-${i}`), this._idToPoint.set(textData.id, points[i]));
30284
- }
30285
- } else {
30286
- this._idToGraphic || (this._idToGraphic = new Map());
30314
+ let cur = 0;
30287
30315
  for (let i = 0; i < currentBaseMarks.length; i++) {
30288
- const textData = data[i],
30289
- baseMark = currentBaseMarks[i];
30290
- textData && baseMark && (isValid$1(textData.id) || (textData.id = `vrender-component-${this.name}-${i}`), this._idToGraphic.set(textData.id, baseMark));
30316
+ const baseMark = currentBaseMarks[i],
30317
+ points = getPointsOfLineArea(baseMark);
30318
+ if (null == points ? void 0 : points.length) for (let j = 0; j < points.length; j++) {
30319
+ const textData = data[cur];
30320
+ textData && points[j] && (isValid$1(textData.id) || (textData.id = `vrender-component-${this.name}-${cur}`), this._idToPoint.set(textData.id, points[j]), this._idToGraphic.set(textData.id, baseMark)), cur++;
30321
+ }
30291
30322
  }
30323
+ } else for (let i = 0; i < currentBaseMarks.length; i++) {
30324
+ const textData = data[i],
30325
+ baseMark = currentBaseMarks[i];
30326
+ textData && baseMark && (isValid$1(textData.id) || (textData.id = `vrender-component-${this.name}-${i}`), this._idToGraphic.set(textData.id, baseMark));
30292
30327
  }
30293
30328
  }
30294
30329
  getRelatedGrphic(item) {
30295
- return this._isCollectionBase ? this._baseMarks[0] : this._idToGraphic.get(item.id);
30330
+ return this._idToGraphic.get(item.id);
30296
30331
  }
30297
30332
  _layout() {
30298
30333
  let data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
@@ -31871,11 +31906,14 @@
31871
31906
  value: tickDatum.rawValue,
31872
31907
  index: tickDatum.index,
31873
31908
  layer: layer
31874
- })), Object.assign(Object.assign(Object.assign({}, point), {
31909
+ })), Object.assign(Object.assign(Object.assign({}, this.getLabelPosition(point, vector, text, textStyle)), {
31875
31910
  text: text,
31876
31911
  lineHeight: null == textStyle ? void 0 : textStyle.fontSize
31877
31912
  }), textStyle);
31878
31913
  }
31914
+ getLabelPosition(point, vector, text, style) {
31915
+ return point;
31916
+ }
31879
31917
  _transformItems(items) {
31880
31918
  const data = [];
31881
31919
  return items.forEach(item => {
@@ -31900,7 +31938,7 @@
31900
31938
  function intersect(a, b, sep) {
31901
31939
  return sep > Math.max(b.x1 - a.x2, a.x1 - b.x2, b.y1 - a.y2, a.y1 - b.y2);
31902
31940
  }
31903
- function hasOverlap(items, pad) {
31941
+ function hasOverlap$1(items, pad) {
31904
31942
  for (let b, i = 1, n = items.length, a = items[0].AABBBounds; i < n; a = b, ++i) if (intersect(a, b = items[i].AABBBounds, pad)) return !0;
31905
31943
  }
31906
31944
  function hasBounds(item) {
@@ -31921,10 +31959,10 @@
31921
31959
  separation: sep = 0
31922
31960
  } = config,
31923
31961
  reduce = isFunction$1(method) ? method : methods$1[method] || methods$1.parity;
31924
- if (items.length >= 3 && hasOverlap(items, sep)) {
31962
+ if (items.length >= 3 && hasOverlap$1(items, sep)) {
31925
31963
  do {
31926
31964
  items = reduce(items, sep);
31927
- } while (items.length >= 3 && hasOverlap(items, sep));
31965
+ } while (items.length >= 3 && hasOverlap$1(items, sep));
31928
31966
  items.length < 3 && !last(source).attribute.opacity && (items.length > 1 && last(items).setAttribute("opacity", 0), last(source).setAttribute("opacity", 1));
31929
31967
  }
31930
31968
  source.forEach(item => {
@@ -32488,6 +32526,37 @@
32488
32526
  }
32489
32527
  }
32490
32528
 
32529
+ const clampRadian = function () {
32530
+ let angle = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
32531
+ if (angle < 0) for (; angle < 0;) angle += tau$1;else if (angle > 0) for (; angle > tau$1;) angle -= tau$1;
32532
+ return angle;
32533
+ };
32534
+ function isInRange(a, min, max) {
32535
+ return !isLess(a, min, 0, 1e-6) && !isGreater(a, max, 0, 1e-6);
32536
+ }
32537
+ function getLabelPosition(tickPosition, tickVector, text, style) {
32538
+ const labelBounds = getTextBounds(Object.assign({
32539
+ text: text
32540
+ }, style)),
32541
+ width = labelBounds.width(),
32542
+ height = labelBounds.height(),
32543
+ angle = clampRadian(Math.atan2(tickVector[1], tickVector[0])) - Math.PI,
32544
+ PI_3_4 = 3 * Math.PI / 4,
32545
+ PI_1_4 = Math.PI / 4,
32546
+ PI_1_2 = Math.PI / 2,
32547
+ baseX = tickPosition.x;
32548
+ let dx = 0;
32549
+ dx = isInRange(angle, -PI_3_4, -PI_1_4) ? ((angle + PI_3_4) / PI_1_2 - .5) * width : isInRange(angle, PI_1_4, PI_3_4) ? (.5 - (angle - PI_1_4) / PI_1_2) * width : Math.cos(angle) >= 0 ? .5 * width : .5 * -width;
32550
+ const x = baseX - dx,
32551
+ baseY = tickPosition.y;
32552
+ let dy = 0;
32553
+ dy = isInRange(angle, -PI_3_4, -PI_1_4) ? .5 * -height : isInRange(angle, PI_1_4, PI_3_4) ? .5 * height : Math.cos(angle) >= 0 ? (.5 - (PI_1_4 - angle) / PI_1_2) * height : (.5 - clampRadian(angle - PI_3_4) / PI_1_2) * height;
32554
+ return {
32555
+ x: x,
32556
+ y: baseY - dy
32557
+ };
32558
+ }
32559
+
32491
32560
  var __rest$3 = undefined && undefined.__rest || function (s, e) {
32492
32561
  var t = {};
32493
32562
  for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
@@ -32619,10 +32688,13 @@
32619
32688
  afterLabelsOverlap(labelShapes, labelData, labelContainer, layer, layerCount) {}
32620
32689
  getLabelAlign(vector, inside, angle) {
32621
32690
  return {
32622
- textAlign: this.getTextAlign(vector),
32623
- textBaseline: this.getTextBaseline(vector)
32691
+ textAlign: "center",
32692
+ textBaseline: "middle"
32624
32693
  };
32625
32694
  }
32695
+ getLabelPosition(point, vector, text, style) {
32696
+ return getLabelPosition(point, vector, text, style);
32697
+ }
32626
32698
  }
32627
32699
  CircleAxis.defaultAttributes = DEFAULT_AXIS_THEME, mixin(CircleAxis, CircleAxisMixin);
32628
32700
 
@@ -33120,6 +33192,12 @@
33120
33192
  orient: "bottom",
33121
33193
  showDetail: "auto",
33122
33194
  brushSelect: !0,
33195
+ zoomLock: !1,
33196
+ minSpan: 0,
33197
+ maxSpan: 1,
33198
+ delayType: "throttle",
33199
+ delayTime: 0,
33200
+ realTime: !0,
33123
33201
  backgroundStyle: {
33124
33202
  fill: "white",
33125
33203
  stroke: "#D1DBEE",
@@ -33217,6 +33295,10 @@
33217
33295
  }
33218
33296
  return t;
33219
33297
  };
33298
+ const delayMap$2 = {
33299
+ debounce: debounce,
33300
+ throttle: throttle
33301
+ };
33220
33302
  let DataZoom$1 = class DataZoom extends AbstractComponent {
33221
33303
  constructor(attributes) {
33222
33304
  super(merge$1({}, DataZoom.defaultAttributes, attributes)), this.name = "dataZoom", this._previewData = [], this._activeState = !1, this._activeCache = {
@@ -33240,9 +33322,10 @@
33240
33322
  }, this._onHandlerPointerMove = e => {
33241
33323
  e.stopPropagation();
33242
33324
  const {
33243
- start: start,
33244
- end: end,
33245
- brushSelect: brushSelect
33325
+ start: startAttr,
33326
+ end: endAttr,
33327
+ brushSelect: brushSelect,
33328
+ realTime = !0
33246
33329
  } = this.attribute,
33247
33330
  pos = this.eventPosToStagePos(e),
33248
33331
  {
@@ -33250,10 +33333,11 @@
33250
33333
  max: max
33251
33334
  } = this._layoutCache,
33252
33335
  dis = (pos[attPos] - this._activeCache.lastPos[attPos]) / max;
33253
- this._activeState && (this._activeTag === DataZoomActiveTag.middleHandler ? this.moveZoomWithMiddle((this.state.start + this.state.end) / 2 + dis) : this._activeTag === DataZoomActiveTag.startHandler ? this.state.start + dis > this.state.end ? (this.state.start = this.state.end, this.state.end = this.state.start + dis, this._activeTag = DataZoomActiveTag.endHandler) : this.state.start = this.state.start + dis : this._activeTag === DataZoomActiveTag.endHandler && (this.state.end + dis < this.state.start ? (this.state.end = this.state.start, this.state.start = this.state.end + dis, this._activeTag = DataZoomActiveTag.startHandler) : this.state.end = this.state.end + dis), this._activeCache.lastPos = pos, brushSelect && this.renderDragMask()), this.state.start = Math.min(Math.max(this.state.start, 0), 1), this.state.end = Math.min(Math.max(this.state.end, 0), 1), start === this.state.start && end === this.state.end || (this.setAttributes({
33254
- start: this.state.start,
33255
- end: this.state.end
33256
- }), this._updateStateCallback && this._updateStateCallback(this.state.start, this.state.end), this._dispatchChangeEvent(this.state.start, this.state.end));
33336
+ let {
33337
+ start: start,
33338
+ end: end
33339
+ } = this.state;
33340
+ this._activeState && (this._activeTag === DataZoomActiveTag.middleHandler ? this.moveZoomWithMiddle((this.state.start + this.state.end) / 2 + dis) : this._activeTag === DataZoomActiveTag.startHandler ? start + dis > end ? (start = end, end = start + dis, this._activeTag = DataZoomActiveTag.endHandler) : start += dis : this._activeTag === DataZoomActiveTag.endHandler && (end + dis < start ? (end = start, start = end + dis, this._activeTag = DataZoomActiveTag.startHandler) : end += dis), this._activeCache.lastPos = pos, brushSelect && this.renderDragMask()), start = Math.min(Math.max(start, 0), 1), end = Math.min(Math.max(end, 0), 1), startAttr === start && endAttr === end || (this.setStateAttr(start, end, !0), realTime && this._updateStateCallback && this._updateStateCallback(start, end), this._dispatchChangeEvent(start, end));
33257
33341
  };
33258
33342
  const {
33259
33343
  start: start,
@@ -33263,29 +33347,31 @@
33263
33347
  showDetail: showDetail,
33264
33348
  position: position,
33265
33349
  previewData: previewData,
33266
- previewCallbackX: previewCallbackX,
33267
- previewCallbackY: previewCallbackY,
33268
- previewCallbackX1: previewCallbackX1,
33269
- previewCallbackY1: previewCallbackY1,
33350
+ previewPointsX: previewPointsX,
33351
+ previewPointsY: previewPointsY,
33352
+ previewPointsX1: previewPointsX1,
33353
+ previewPointsY1: previewPointsY1,
33270
33354
  updateStateCallback: updateStateCallback
33271
33355
  } = this.attribute,
33272
33356
  {
33273
33357
  width: width,
33274
33358
  height: height
33275
33359
  } = size;
33276
- start && (this.state.start = start), end && (this.state.end = end), this._isHorizontal = "top" === orient || "bottom" === orient, this._layoutCache.max = this._isHorizontal ? width : height, this._layoutCache.attPos = this._isHorizontal ? "x" : "y", this._layoutCache.attSize = this._isHorizontal ? "width" : "height", this._activeCache.startPos = position, this._activeCache.lastPos = position, this._showText = "auto" !== showDetail && showDetail, previewData && (this._previewData = previewData), isFunction$1(previewCallbackX) && (this._previewCallbackX = previewCallbackX), isFunction$1(previewCallbackY) && (this._previewCallbackY = previewCallbackY), isFunction$1(previewCallbackX1) && (this._previewCallbackX1 = previewCallbackX1), isFunction$1(previewCallbackY1) && (this._previewCallbackY1 = previewCallbackY1), isFunction$1(updateStateCallback) && (this._updateStateCallback = updateStateCallback);
33360
+ start && (this.state.start = start), end && (this.state.end = end), this._spanCache = this.state.end - this.state.start, this._isHorizontal = "top" === orient || "bottom" === orient, this._layoutCache.max = this._isHorizontal ? width : height, this._layoutCache.attPos = this._isHorizontal ? "x" : "y", this._layoutCache.attSize = this._isHorizontal ? "width" : "height", this._activeCache.startPos = position, this._activeCache.lastPos = position, this._showText = "auto" !== showDetail && showDetail, previewData && (this._previewData = previewData), isFunction$1(previewPointsX) && (this._previewPointsX = previewPointsX), isFunction$1(previewPointsY) && (this._previewPointsY = previewPointsY), isFunction$1(previewPointsX1) && (this._previewPointsX1 = previewPointsX1), isFunction$1(previewPointsY1) && (this._previewPointsY1 = previewPointsY1), isFunction$1(updateStateCallback) && (this._updateStateCallback = updateStateCallback);
33277
33361
  }
33278
33362
  bindEvents() {
33279
33363
  if (this.attribute.disableTriggerEvent) return;
33280
33364
  const {
33281
33365
  showDetail: showDetail,
33282
- brushSelect: brushSelect
33366
+ brushSelect: brushSelect,
33367
+ delayType = "throttle",
33368
+ delayTime = 0
33283
33369
  } = this.attribute;
33284
33370
  this._startHandler && this._startHandler.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "start")), this._endHandler && this._endHandler.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "end")), this._middleHandlerSymbol && this._middleHandlerSymbol.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "middleSymbol")), this._middleHandlerRect && this._middleHandlerRect.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "middleRect"));
33285
33371
  const selectedTag = brushSelect ? "background" : "middleRect";
33286
- this._selectedBackground && this._selectedBackground.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, selectedTag)), brushSelect && this._background && this._background.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "background")), brushSelect && this._previewGroup && this._previewGroup.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "background")), this._selectedPreviewGroup && this._selectedPreviewGroup.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, selectedTag)), "browser" === vglobal.env && (vglobal.addEventListener("pointermove", this._onHandlerPointerMove.bind(this), {
33372
+ this._selectedBackground && this._selectedBackground.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, selectedTag)), brushSelect && this._background && this._background.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "background")), brushSelect && this._previewGroup && this._previewGroup.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "background")), this._selectedPreviewGroup && this._selectedPreviewGroup.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, selectedTag)), "browser" === vglobal.env && (vglobal.addEventListener("pointermove", delayMap$2[delayType](this._onHandlerPointerMove.bind(this), delayTime), {
33287
33373
  capture: !0
33288
- }), vglobal.addEventListener("pointerup", this._onHandlerPointerUp.bind(this))), this.addEventListener("pointermove", this._onHandlerPointerMove, {
33374
+ }), vglobal.addEventListener("pointerup", this._onHandlerPointerUp.bind(this))), this.addEventListener("pointermove", delayMap$2[delayType](this._onHandlerPointerMove, delayTime), {
33289
33375
  capture: !0
33290
33376
  }), this.addEventListener("pointerup", this._onHandlerPointerUp), this.addEventListener("pointerupoutside", this._onHandlerPointerUp), "auto" === showDetail && (this.addEventListener("pointerenter", this._onHandlerPointerEnter), this.addEventListener("pointerleave", this._onHandlerPointerLeave));
33291
33377
  }
@@ -33299,6 +33385,18 @@
33299
33385
  } = this._layoutCache;
33300
33386
  return this._activeCache.lastPos[attPos] - position[attPos] > max ? max + position[attPos] - this._activeCache.startPos[attPos] : this._activeCache.lastPos[attPos] - position[attPos] < 0 ? position[attPos] - this._activeCache.startPos[attPos] : this._activeCache.lastPos[attPos] - this._activeCache.startPos[attPos];
33301
33387
  }
33388
+ setStateAttr(start, end, shouldRender) {
33389
+ const {
33390
+ zoomLock = !1,
33391
+ minSpan = 0,
33392
+ maxSpan = 1
33393
+ } = this.attribute,
33394
+ span = end - start;
33395
+ span !== this._spanCache && (zoomLock || span < minSpan || span > maxSpan) || (this._spanCache = span, this.state.start = start, this.state.end = end, shouldRender && this.setAttributes({
33396
+ start: start,
33397
+ end: end
33398
+ }));
33399
+ }
33302
33400
  eventPosToStagePos(e) {
33303
33401
  var _a, _b, _c;
33304
33402
  const stagePosition = null === (_a = this.stage) || void 0 === _a ? void 0 : _a.window.getBoundingClientRect();
@@ -33312,16 +33410,14 @@
33312
33410
  const {
33313
33411
  start: start,
33314
33412
  end: end,
33315
- brushSelect: brushSelect
33413
+ brushSelect: brushSelect,
33414
+ realTime = !0
33316
33415
  } = this.attribute;
33317
33416
  if (this._activeState && this._activeTag === DataZoomActiveTag.background) {
33318
33417
  const pos = this.eventPosToStagePos(e);
33319
33418
  this.backgroundDragZoom(this._activeCache.startPos, pos);
33320
33419
  }
33321
- this._activeState = !1, brushSelect && this.renderDragMask(), start === this.state.start && end === this.state.end || (this.setAttributes({
33322
- start: this.state.start,
33323
- end: this.state.end
33324
- }), this._updateStateCallback && this._updateStateCallback(this.state.start, this.state.end), this._dispatchChangeEvent(this.state.start, this.state.end));
33420
+ this._activeState = !1, brushSelect && this.renderDragMask(), realTime && start === this.state.start && end === this.state.end || (this.setStateAttr(this.state.start, this.state.end, !0), this._updateStateCallback && this._updateStateCallback(this.state.start, this.state.end), this._dispatchChangeEvent(this.state.start, this.state.end));
33325
33421
  }
33326
33422
  _onHandlerPointerEnter(e) {
33327
33423
  e.stopPropagation(), this._showText = !0, this.renderText();
@@ -33341,11 +33437,11 @@
33341
33437
  endPosInComponent = endPos[attPos] - position[attPos],
33342
33438
  start = Math.min(Math.max(Math.min(startPosInComponent, endPosInComponent) / max, 0), 1),
33343
33439
  end = Math.min(Math.max(Math.max(startPosInComponent, endPosInComponent) / max, 0), 1);
33344
- Math.abs(start - end) < .01 ? this.moveZoomWithMiddle(start) : (this.state.start = start, this.state.end = end);
33440
+ Math.abs(start - end) < .01 ? this.moveZoomWithMiddle(start) : this.setStateAttr(start, end, !1);
33345
33441
  }
33346
33442
  moveZoomWithMiddle(middle) {
33347
33443
  let offset = middle - (this.state.start + this.state.end) / 2;
33348
- 0 !== offset && (offset > 0 ? this.state.end + offset > 1 && (offset = 1 - this.state.end) : offset < 0 && this.state.start + offset < 0 && (offset = -this.state.start), this.state.start = this.state.start + offset, this.state.end = this.state.end + offset);
33444
+ 0 !== offset && (offset > 0 ? this.state.end + offset > 1 && (offset = 1 - this.state.end) : offset < 0 && this.state.start + offset < 0 && (offset = -this.state.start), this.setStateAttr(this.state.start + offset, this.state.end + offset, !1));
33349
33445
  }
33350
33446
  renderDragMask() {
33351
33447
  const {
@@ -33616,8 +33712,8 @@
33616
33712
  }
33617
33713
  getPreviewLinePoints() {
33618
33714
  const previewPoints = this._previewData.map(d => ({
33619
- x: this._previewCallbackX && this._previewCallbackX(d),
33620
- y: this._previewCallbackY && this._previewCallbackY(d)
33715
+ x: this._previewPointsX && this._previewPointsX(d),
33716
+ y: this._previewPointsY && this._previewPointsY(d)
33621
33717
  }));
33622
33718
  if (0 === previewPoints.length) return previewPoints;
33623
33719
  const {
@@ -33628,10 +33724,10 @@
33628
33724
  }
33629
33725
  getPreviewAreaPoints() {
33630
33726
  const previewPoints = this._previewData.map(d => ({
33631
- x: this._previewCallbackX && this._previewCallbackX(d),
33632
- y: this._previewCallbackY && this._previewCallbackY(d),
33633
- x1: this._previewCallbackX1 && this._previewCallbackX1(d),
33634
- y1: this._previewCallbackY1 && this._previewCallbackY1(d)
33727
+ x: this._previewPointsX && this._previewPointsX(d),
33728
+ y: this._previewPointsY && this._previewPointsY(d),
33729
+ x1: this._previewPointsX1 && this._previewPointsX1(d),
33730
+ y1: this._previewPointsY1 && this._previewPointsY1(d)
33635
33731
  }));
33636
33732
  if (0 === previewPoints.length) return previewPoints;
33637
33733
  const {
@@ -33717,10 +33813,7 @@
33717
33813
  start: startAttr,
33718
33814
  end: endAttr
33719
33815
  } = this.attribute;
33720
- isValid$1(start) && isValid$1(end) && (start !== this.state.start || end !== this.state.end) && (this.state.start = start, this.state.end = end, startAttr === this.state.start && endAttr === this.state.end || (this.setAttributes({
33721
- start: start,
33722
- end: end
33723
- }), this._updateStateCallback && this._updateStateCallback(start, end), this._dispatchChangeEvent(start, end)));
33816
+ isValid$1(start) && isValid$1(end) && (start !== this.state.start || end !== this.state.end) && (this.state.start = start, this.state.end = end, startAttr === this.state.start && endAttr === this.state.end || (this.setStateAttr(start, end, !0), this._updateStateCallback && this._updateStateCallback(start, end), this._dispatchChangeEvent(start, end)));
33724
33817
  }
33725
33818
  setPreviewData(data) {
33726
33819
  this._previewData = data;
@@ -33746,17 +33839,17 @@
33746
33839
  setUpdateStateCallback(callback) {
33747
33840
  isFunction$1(callback) && (this._updateStateCallback = callback);
33748
33841
  }
33749
- setPreviewCallbackX(callback) {
33750
- isFunction$1(callback) && (this._previewCallbackX = callback);
33842
+ setPreviewPointsX(callback) {
33843
+ isFunction$1(callback) && (this._previewPointsX = callback);
33751
33844
  }
33752
- setPreviewCallbackY(callback) {
33753
- isFunction$1(callback) && (this._previewCallbackY = callback);
33845
+ setPreviewPointsY(callback) {
33846
+ isFunction$1(callback) && (this._previewPointsY = callback);
33754
33847
  }
33755
- setPreviewCallbackX1(callback) {
33756
- isFunction$1(callback) && (this._previewCallbackX1 = callback);
33848
+ setPreviewPointsX1(callback) {
33849
+ isFunction$1(callback) && (this._previewPointsX1 = callback);
33757
33850
  }
33758
- setPreviewCallbackY1(callback) {
33759
- isFunction$1(callback) && (this._previewCallbackY1 = callback);
33851
+ setPreviewPointsY1(callback) {
33852
+ isFunction$1(callback) && (this._previewPointsY1 = callback);
33760
33853
  }
33761
33854
  setStatePointToData(callback) {
33762
33855
  isFunction$1(callback) && (this._statePointToData = callback);
@@ -35153,9 +35246,9 @@
35153
35246
  super(merge$1({}, Slider.defaultAttributes, attributes)), this.name = "slider", this._isHorizontal = !0, this._startHandler = null, this._endHandler = null, this._startHandlerText = null, this._endHandlerText = null, this._currentHandler = null, this._currentValue = {}, this._onHandlerPointerdown = e => {
35154
35247
  e.stopPropagation(), this._currentHandler = e.target, this._prePos = this._isHorizontal ? e.clientX : e.clientY, "browser" === vglobal.env ? (vglobal.addEventListener("pointermove", this._onHandlerPointerMove, {
35155
35248
  capture: !0
35156
- }), vglobal.addEventListener("pointerup", this._onHandlerPointerUp)) : (this._currentHandler.addEventListener("pointermove", this._onHandlerPointerMove, {
35249
+ }), vglobal.addEventListener("pointerup", this._onHandlerPointerUp)) : (this.stage.addEventListener("pointermove", this._onHandlerPointerMove, {
35157
35250
  capture: !0
35158
- }), this._currentHandler.addEventListener("pointerup", this._onHandlerPointerUp), this._currentHandler.addEventListener("pointerupoutside", this._onHandlerPointerUp));
35251
+ }), this.stage.addEventListener("pointerup", this._onHandlerPointerUp), this.stage.addEventListener("pointerupoutside", this._onHandlerPointerUp));
35159
35252
  }, this._onHandlerPointerMove = e => {
35160
35253
  var _a, _b;
35161
35254
  e.stopPropagation();
@@ -35175,20 +35268,17 @@
35175
35268
  currentValue = newPos / railLen * (max - min) + min;
35176
35269
  "text" === this._currentHandler.type ? this._updateHandlerText(this._currentHandler, newPos, currentValue) : this._updateHandler(this._currentHandler, newPos, currentValue), this._updateTrack(), this._prePos = currentPos, this._dispatchChangeEvent();
35177
35270
  }, this._onHandlerPointerUp = e => {
35178
- if (e.preventDefault(), this._currentHandler = null, "browser" === vglobal.env) vglobal.removeEventListener("pointermove", this._onHandlerPointerMove, {
35271
+ e.preventDefault(), this._currentHandler = null, "browser" === vglobal.env ? (vglobal.removeEventListener("pointermove", this._onHandlerPointerMove, {
35179
35272
  capture: !0
35180
- }), vglobal.removeEventListener("pointerup", this._onHandlerPointerUp);else {
35181
- const currentTarget = e.target;
35182
- currentTarget.removeEventListener("pointermove", this._onHandlerPointerMove, {
35183
- capture: !0
35184
- }), currentTarget.removeEventListener("pointerup", this._onHandlerPointerUp), currentTarget.removeEventListener("pointerupoutside", this._onHandlerPointerUp);
35185
- }
35273
+ }), vglobal.removeEventListener("pointerup", this._onHandlerPointerUp)) : (this.stage.removeEventListener("pointermove", this._onHandlerPointerMove, {
35274
+ capture: !0
35275
+ }), this.stage.removeEventListener("pointerup", this._onHandlerPointerUp), this.stage.removeEventListener("pointerupoutside", this._onHandlerPointerUp));
35186
35276
  }, this._onTrackPointerdown = e => {
35187
35277
  e.stopPropagation(), this._prePos = this._isHorizontal ? e.clientX : e.clientY, "browser" === vglobal.env ? (vglobal.addEventListener("pointermove", this._onTrackPointerMove, {
35188
35278
  capture: !0
35189
- }), vglobal.addEventListener("pointerup", this._onTrackPointerUp)) : (this._track.addEventListener("pointermove", this._onTrackPointerMove, {
35279
+ }), vglobal.addEventListener("pointerup", this._onTrackPointerUp)) : (this.stage.addEventListener("pointermove", this._onTrackPointerMove, {
35190
35280
  capture: !0
35191
- }), this._track.addEventListener("pointerup", this._onTrackPointerUp), this._track.addEventListener("pointerupoutside", this._onTrackPointerUp));
35281
+ }), this.stage.addEventListener("pointerup", this._onTrackPointerUp), this.stage.addEventListener("pointerupoutside", this._onTrackPointerUp));
35192
35282
  }, this._onTrackPointerMove = e => {
35193
35283
  e.stopPropagation();
35194
35284
  const {
@@ -35227,9 +35317,9 @@
35227
35317
  }, this._onTrackPointerUp = e => {
35228
35318
  e.preventDefault(), "browser" === vglobal.env ? (vglobal.removeEventListener("pointermove", this._onTrackPointerMove, {
35229
35319
  capture: !0
35230
- }), vglobal.removeEventListener("pointerup", this._onTrackPointerUp)) : (this._track.removeEventListener("pointermove", this._onTrackPointerMove, {
35320
+ }), vglobal.removeEventListener("pointerup", this._onTrackPointerUp)) : (this.stage.removeEventListener("pointermove", this._onTrackPointerMove, {
35231
35321
  capture: !0
35232
- }), this._track.removeEventListener("pointerup", this._onTrackPointerUp), this._track.removeEventListener("pointerupoutside", this._onTrackPointerUp));
35322
+ }), this.stage.removeEventListener("pointerup", this._onTrackPointerUp), this.stage.removeEventListener("pointerupoutside", this._onTrackPointerUp));
35233
35323
  }, this._onRailPointerDown = e => {
35234
35324
  e.stopPropagation();
35235
35325
  const {
@@ -36703,7 +36793,7 @@
36703
36793
  };
36704
36794
  const DEFAULT_SIZE_THRESHOLD = 5;
36705
36795
 
36706
- const delayMap = {
36796
+ const delayMap$1 = {
36707
36797
  debounce: debounce,
36708
36798
  throttle: throttle
36709
36799
  };
@@ -36744,7 +36834,7 @@
36744
36834
  endTrigger = DEFAULT_BRUSH_ATTRIBUTES.endTrigger,
36745
36835
  resetTrigger = DEFAULT_BRUSH_ATTRIBUTES.resetTrigger
36746
36836
  } = this.attribute;
36747
- this.stage.addEventListener(trigger, this._onBrushStart), this.stage.addEventListener(updateTrigger, delayMap[delayType](this._onBrushing, delayTime)), this.stage.addEventListener(endTrigger, this._onBrushEnd), this.stage.addEventListener(resetTrigger, this._onBrushEnd);
36837
+ this.stage.addEventListener(trigger, this._onBrushStart), this.stage.addEventListener(updateTrigger, delayMap$1[delayType](this._onBrushing, delayTime)), this.stage.addEventListener(endTrigger, this._onBrushEnd), this.stage.addEventListener(resetTrigger, this._onBrushEnd);
36748
36838
  }
36749
36839
  _isPosInBrushMask(e) {
36750
36840
  const pos = this.eventPosToStagePos(e),
@@ -36939,7 +37029,7 @@
36939
37029
  endTrigger = DEFAULT_BRUSH_ATTRIBUTES.endTrigger,
36940
37030
  resetTrigger = DEFAULT_BRUSH_ATTRIBUTES.resetTrigger
36941
37031
  } = this.attribute;
36942
- this.stage.removeEventListener(trigger, this._onBrushStart), this.stage.removeEventListener(updateTrigger, delayMap[delayType](this._onBrushing, delayTime)), this.stage.removeEventListener(endTrigger, this._onBrushEnd), this.stage.removeEventListener(resetTrigger, this._onBrushEnd);
37032
+ this.stage.removeEventListener(trigger, this._onBrushStart), this.stage.removeEventListener(updateTrigger, delayMap$1[delayType](this._onBrushing, delayTime)), this.stage.removeEventListener(endTrigger, this._onBrushEnd), this.stage.removeEventListener(resetTrigger, this._onBrushEnd);
36943
37033
  }
36944
37034
  };
36945
37035
  Brush$1.defaultAttributes = DEFAULT_BRUSH_ATTRIBUTES;
@@ -44760,7 +44850,7 @@
44760
44850
  return !1 === untransformedPoint.defined && (invertedPoint.defined = !1), invertedPoint;
44761
44851
  }
44762
44852
  let theta = Math.atan(sin / cos);
44763
- theta += cos >= 0 ? 2 * Math.PI : Math.PI, theta >= 2 * Math.PI && (theta -= 2 * Math.PI), theta = clampRadian(theta);
44853
+ theta += cos >= 0 ? 2 * Math.PI : Math.PI, theta >= 2 * Math.PI && (theta -= 2 * Math.PI), theta = clampRadian$1(theta);
44764
44854
  const radius = isNumberClose(sin, 0) ? cos / Math.cos(theta) : sin / Math.sin(theta),
44765
44855
  invertedPoint = this.isTransposed() ? {
44766
44856
  r: theta,
@@ -47225,6 +47315,44 @@
47225
47315
  })), Factory$1.registerAnimationType("barBoxplotScaleIn", barBoxplotScaleIn), Factory$1.registerAnimationType("barBoxplotScaleOut", barBoxplotScaleOut);
47226
47316
  }
47227
47317
 
47318
+ const registerRippleGlyph = () => {
47319
+ Factory$1.registerGlyph("ripplePoint", {
47320
+ symbol: "symbol",
47321
+ ripple0: "symbol",
47322
+ ripple1: "symbol",
47323
+ ripple2: "symbol"
47324
+ }).registerFunctionEncoder((encodeValues, datum, element, config) => {
47325
+ var _a;
47326
+ const ripple = Math.max(0, Math.min(encodeValues.ripple, 1)),
47327
+ size = null !== (_a = encodeValues.size) && void 0 !== _a ? _a : element.getGraphicAttribute("size"),
47328
+ rippleSize = .5 * size;
47329
+ return {
47330
+ ripple0: {
47331
+ size: size + rippleSize * ripple,
47332
+ fillOpacity: .75 - .25 * ripple
47333
+ },
47334
+ ripple1: {
47335
+ size: size + rippleSize * (1 + ripple),
47336
+ fillOpacity: .5 - .25 * ripple
47337
+ },
47338
+ ripple2: {
47339
+ size: size + rippleSize * (2 + ripple),
47340
+ fillOpacity: .25 - .25 * ripple
47341
+ }
47342
+ };
47343
+ }).registerDefaultEncoder(() => ({
47344
+ ripple0: {
47345
+ fillOpacity: .75
47346
+ },
47347
+ ripple1: {
47348
+ fillOpacity: .5
47349
+ },
47350
+ ripple2: {
47351
+ fillOpacity: .25
47352
+ }
47353
+ }));
47354
+ };
47355
+
47228
47356
  const getHorizontalPath = (options, ratio) => {
47229
47357
  var _a;
47230
47358
  const curvature = null !== (_a = options.curvature) && void 0 !== _a ? _a : .5,
@@ -48844,6 +48972,10 @@
48844
48972
 
48845
48973
  const WaterfallDefaultSeriesField = `${PREFIX}_waterfall_default_seriesField`;
48846
48974
 
48975
+ const CORRELATION_X = `${PREFIX}_CORRELATION_X`;
48976
+ const CORRELATION_Y = `${PREFIX}_CORRELATION_Y`;
48977
+ const CORRELATION_SIZE = `${PREFIX}_CORRELATION_SIZE`;
48978
+
48847
48979
  const DEFAULT_DATA_INDEX = `${PREFIX}_DEFAULT_DATA_INDEX`;
48848
48980
  const DEFAULT_DATA_KEY = `${PREFIX}_DEFAULT_DATA_KEY`;
48849
48981
  const DEFAULT_DATA_SERIES_FIELD = `${PREFIX}_DEFAULT_DATA_SERIES_FIELD`;
@@ -49007,7 +49139,7 @@
49007
49139
  style: {
49008
49140
  cursor: 'pointer',
49009
49141
  fill: 'black',
49010
- stroke: 'white',
49142
+ stroke: { type: 'palette', key: 'backgroundColor' },
49011
49143
  lineWidth: 2,
49012
49144
  fontSize: THEME_CONSTANTS.l5FontSize,
49013
49145
  lineHeight: THEME_CONSTANTS.l5LineHeight
@@ -49044,7 +49176,8 @@
49044
49176
  },
49045
49177
  label: {
49046
49178
  style: {
49047
- stroke: 'white',
49179
+ lineWidth: 2,
49180
+ stroke: { type: 'palette', key: 'backgroundColor' },
49048
49181
  textAlign: 'center',
49049
49182
  textBaseline: 'middle'
49050
49183
  }
@@ -49059,6 +49192,24 @@
49059
49192
  }
49060
49193
  };
49061
49194
 
49195
+ const correlation$1 = {
49196
+ centerLabel: {
49197
+ visible: true,
49198
+ position: 'center',
49199
+ style: {
49200
+ fill: '#fff',
49201
+ text: ''
49202
+ }
49203
+ },
49204
+ label: {
49205
+ visible: true,
49206
+ position: 'bottom',
49207
+ style: {
49208
+ fill: '#000'
49209
+ }
49210
+ }
49211
+ };
49212
+
49062
49213
  const series = {
49063
49214
  scatter,
49064
49215
  line,
@@ -49087,7 +49238,8 @@
49087
49238
  heatmap,
49088
49239
  sankey: sankey$1,
49089
49240
  rose,
49090
- boxPlot
49241
+ boxPlot,
49242
+ correlation: correlation$1
49091
49243
  };
49092
49244
 
49093
49245
  const markByType = {
@@ -49182,7 +49334,16 @@
49182
49334
  title: {
49183
49335
  space: 8
49184
49336
  },
49185
- maxHeight: '30%'
49337
+ maxHeight: '30%',
49338
+ unit: {
49339
+ visible: false,
49340
+ style: {
49341
+ fontSize: THEME_CONSTANTS.l5FontSize,
49342
+ fill: { type: 'palette', key: 'axisFontColor' },
49343
+ fontWeight: 'normal',
49344
+ fillOpacity: 1
49345
+ }
49346
+ }
49186
49347
  };
49187
49348
  const axisY = {
49188
49349
  label: {
@@ -49193,7 +49354,16 @@
49193
49354
  space: 12,
49194
49355
  autoRotate: true
49195
49356
  },
49196
- maxWidth: '30%'
49357
+ maxWidth: '30%',
49358
+ unit: {
49359
+ visible: false,
49360
+ style: {
49361
+ fontSize: THEME_CONSTANTS.l5FontSize,
49362
+ fill: { type: 'palette', key: 'axisFontColor' },
49363
+ fontWeight: 'normal',
49364
+ fillOpacity: 1
49365
+ }
49366
+ }
49197
49367
  };
49198
49368
 
49199
49369
  const commonAxis = {
@@ -49299,7 +49469,7 @@
49299
49469
  }
49300
49470
  },
49301
49471
  label: {
49302
- space: 8
49472
+ space: 5
49303
49473
  }
49304
49474
  };
49305
49475
 
@@ -49498,7 +49668,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49498
49668
  autoFit: false,
49499
49669
  style: {
49500
49670
  fontSize: THEME_CONSTANTS.l1FontSize,
49501
- fill: { type: 'palette', key: ['titleFontColor', 'primaryFontColor'] },
49671
+ fill: { type: 'palette', key: 'primaryFontColor' },
49502
49672
  fontWeight: 'normal',
49503
49673
  fillOpacity: 1,
49504
49674
  textBaseline: 'top',
@@ -49529,7 +49699,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49529
49699
  fontSize: THEME_CONSTANTS.l5FontSize,
49530
49700
  lineHeight: THEME_CONSTANTS.l5LineHeight,
49531
49701
  fontWeight: 'normal',
49532
- fill: { type: 'palette', key: ['titleFontColor', 'primaryFontColor'] }
49702
+ fill: { type: 'palette', key: 'primaryFontColor' }
49533
49703
  },
49534
49704
  space: 12
49535
49705
  },
@@ -49607,7 +49777,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49607
49777
  textStyle: {
49608
49778
  fontSize: THEME_CONSTANTS.l5FontSize,
49609
49779
  lineHeight: THEME_CONSTANTS.l5LineHeight,
49610
- fill: { type: 'palette', key: ['titleFontColor', 'primaryFontColor'] },
49780
+ fill: { type: 'palette', key: 'primaryFontColor' },
49611
49781
  fontWeight: 'normal'
49612
49782
  },
49613
49783
  space: 12
@@ -49746,7 +49916,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49746
49916
  const markArea = {
49747
49917
  area: {
49748
49918
  style: {
49749
- fill: 'rgba(46, 47, 50, 0.1)'
49919
+ fill: { type: 'palette', key: 'axisDomainColor', a: 0.25 }
49750
49920
  }
49751
49921
  },
49752
49922
  label: {
@@ -49754,9 +49924,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49754
49924
  fontSize: THEME_CONSTANTS.l4FontSize,
49755
49925
  fontWeight: 'normal',
49756
49926
  fontStyle: 'normal',
49757
- fill: { type: 'palette', key: 'labelReverseFontColor' },
49758
- stroke: { type: 'palette', key: 'labelReverseFontColor' },
49759
- lineWidth: 0
49927
+ fill: { type: 'palette', key: 'primaryFontColor' }
49760
49928
  },
49761
49929
  labelBackground: {
49762
49930
  padding: {
@@ -49766,8 +49934,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49766
49934
  left: 4
49767
49935
  },
49768
49936
  style: {
49769
- cornerRadius: 0,
49770
- fill: '#F68484'
49937
+ cornerRadius: 3,
49938
+ fill: { type: 'palette', key: 'markLabelBackgroundColor' }
49771
49939
  }
49772
49940
  }
49773
49941
  }
@@ -49777,7 +49945,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49777
49945
  line: {
49778
49946
  style: {
49779
49947
  lineDash: [3, 3],
49780
- stroke: 'rgba(46, 47, 50)'
49948
+ stroke: { type: 'palette', key: 'primaryFontColor' }
49781
49949
  }
49782
49950
  },
49783
49951
  startSymbol: {
@@ -49787,7 +49955,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49787
49955
  style: {
49788
49956
  stroke: null,
49789
49957
  lineWidth: 0,
49790
- fill: 'rgba(46, 47, 50)'
49958
+ fill: { type: 'palette', key: 'primaryFontColor' }
49791
49959
  }
49792
49960
  },
49793
49961
  endSymbol: {
@@ -49797,7 +49965,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49797
49965
  style: {
49798
49966
  stroke: null,
49799
49967
  lineWidth: 0,
49800
- fill: 'rgba(46, 47, 50)'
49968
+ fill: { type: 'palette', key: 'primaryFontColor' }
49801
49969
  }
49802
49970
  },
49803
49971
  label: {
@@ -49806,9 +49974,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49806
49974
  fontSize: THEME_CONSTANTS.l4FontSize,
49807
49975
  fontWeight: 'normal',
49808
49976
  fontStyle: 'normal',
49809
- fill: { type: 'palette', key: 'labelReverseFontColor' },
49810
- stroke: { type: 'palette', key: 'labelReverseFontColor' },
49811
- lineWidth: 0
49977
+ fill: { type: 'palette', key: 'primaryFontColor' }
49812
49978
  },
49813
49979
  labelBackground: {
49814
49980
  padding: {
@@ -49818,8 +49984,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49818
49984
  left: 4
49819
49985
  },
49820
49986
  style: {
49821
- cornerRadius: 0,
49822
- fill: 'rgb(48, 115, 242)'
49987
+ cornerRadius: 3,
49988
+ fill: { type: 'palette', key: 'markLabelBackgroundColor' }
49823
49989
  }
49824
49990
  }
49825
49991
  }
@@ -49834,12 +50000,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49834
50000
  size: 5,
49835
50001
  visible: true,
49836
50002
  style: {
49837
- fill: '#eee'
50003
+ fill: { type: 'palette', key: 'primaryFontColor' }
49838
50004
  }
49839
50005
  },
49840
50006
  line: {
49841
50007
  style: {
49842
- stroke: '#eee'
50008
+ stroke: { type: 'palette', key: 'primaryFontColor' }
49843
50009
  }
49844
50010
  }
49845
50011
  },
@@ -49921,7 +50087,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49921
50087
  textStyle: {
49922
50088
  fontSize: THEME_CONSTANTS.l3FontSize,
49923
50089
  lineHeight: THEME_CONSTANTS.l3LineHeight,
49924
- fill: { type: 'palette', key: ['titleFontColor', 'primaryFontColor'] }
50090
+ fill: { type: 'palette', key: 'primaryFontColor' }
49925
50091
  },
49926
50092
  subtextStyle: {
49927
50093
  fontSize: THEME_CONSTANTS.l4FontSize,
@@ -49960,7 +50126,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49960
50126
  titleLabel: {
49961
50127
  fontSize: THEME_CONSTANTS.l4FontSize,
49962
50128
  lineHeight: THEME_CONSTANTS.l4LineHeight,
49963
- fontColor: { type: 'palette', key: ['titleFontColor', 'primaryFontColor'] },
50129
+ fontColor: { type: 'palette', key: 'primaryFontColor' },
49964
50130
  fontWeight: 'bold',
49965
50131
  textAlign: 'left',
49966
50132
  textBaseline: 'middle',
@@ -49981,7 +50147,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49981
50147
  valueLabel: {
49982
50148
  fontSize: THEME_CONSTANTS.l4FontSize,
49983
50149
  lineHeight: THEME_CONSTANTS.l4LineHeight,
49984
- fontColor: { type: 'palette', key: ['titleFontColor', 'primaryFontColor'] },
50150
+ fontColor: { type: 'palette', key: 'primaryFontColor' },
49985
50151
  fontWeight: 'bold',
49986
50152
  textBaseline: 'middle',
49987
50153
  spacing: 0
@@ -49995,7 +50161,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49995
50161
  titleStyle: {
49996
50162
  fontSize: THEME_CONSTANTS.l5FontSize,
49997
50163
  fontWeight: 'bold',
49998
- fill: { type: 'palette', key: ['titleFontColor', 'primaryFontColor'] }
50164
+ fill: { type: 'palette', key: 'primaryFontColor' }
49999
50165
  },
50000
50166
  contentStyle: {
50001
50167
  fontSize: THEME_CONSTANTS.l5FontSize,
@@ -50026,7 +50192,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
50026
50192
  animation: false,
50027
50193
  style: {
50028
50194
  fontSize: THEME_CONSTANTS.l4FontSize,
50029
- fill: { type: 'palette', key: ['titleFontColor', 'primaryFontColor'] }
50195
+ fill: { type: 'palette', key: 'primaryFontColor' }
50030
50196
  }
50031
50197
  };
50032
50198
 
@@ -50217,6 +50383,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
50217
50383
  SeriesTypeEnum["circlePacking"] = "circlePacking";
50218
50384
  SeriesTypeEnum["waterfall"] = "waterfall";
50219
50385
  SeriesTypeEnum["heatmap"] = "heatmap";
50386
+ SeriesTypeEnum["correlation"] = "correlation";
50220
50387
  })(SeriesTypeEnum || (SeriesTypeEnum = {}));
50221
50388
  var SeriesMarkNameEnum;
50222
50389
  (function (SeriesMarkNameEnum) {
@@ -50268,6 +50435,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
50268
50435
  SeriesMarkNameEnum["stackLabel"] = "stackLabel";
50269
50436
  SeriesMarkNameEnum["word"] = "word";
50270
50437
  SeriesMarkNameEnum["fillingWord"] = "fillingWord";
50438
+ SeriesMarkNameEnum["nodePoint"] = "nodePoint";
50439
+ SeriesMarkNameEnum["ripplePoint"] = "ripplePoint";
50440
+ SeriesMarkNameEnum["centerPoint"] = "centerPoint";
50441
+ SeriesMarkNameEnum["centerLabel"] = "centerLabel";
50271
50442
  })(SeriesMarkNameEnum || (SeriesMarkNameEnum = {}));
50272
50443
  const seriesMarkNameSet = new Set(Object.values(SeriesMarkNameEnum));
50273
50444
 
@@ -50291,6 +50462,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
50291
50462
  MarkTypeEnum["linkPath"] = "linkPath";
50292
50463
  MarkTypeEnum["progressArc"] = "progressArc";
50293
50464
  MarkTypeEnum["cell"] = "cell";
50465
+ MarkTypeEnum["ripple"] = "ripple";
50294
50466
  MarkTypeEnum["component"] = "component";
50295
50467
  MarkTypeEnum["label"] = "label";
50296
50468
  })(MarkTypeEnum || (MarkTypeEnum = {}));
@@ -50357,6 +50529,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
50357
50529
 
50358
50530
  const heatmapSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { [SeriesMarkNameEnum.cell]: { name: SeriesMarkNameEnum.cell, type: MarkTypeEnum.cell }, [SeriesMarkNameEnum.cellBackground]: { name: SeriesMarkNameEnum.cellBackground, type: MarkTypeEnum.cell } });
50359
50531
 
50532
+ const correlationSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { [SeriesMarkNameEnum.nodePoint]: { name: SeriesMarkNameEnum.nodePoint, type: MarkTypeEnum.symbol }, [SeriesMarkNameEnum.ripplePoint]: { name: SeriesMarkNameEnum.ripplePoint, type: MarkTypeEnum.ripple }, [SeriesMarkNameEnum.centerPoint]: { name: SeriesMarkNameEnum.centerPoint, type: MarkTypeEnum.symbol }, [SeriesMarkNameEnum.centerLabel]: { name: SeriesMarkNameEnum.centerLabel, type: MarkTypeEnum.text } });
50533
+
50360
50534
  const seriesMarkInfoMap = {
50361
50535
  [SeriesTypeEnum.bar]: barSeriesMark,
50362
50536
  [SeriesTypeEnum.bar3d]: bar3dSeriesMark,
@@ -50385,7 +50559,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
50385
50559
  [SeriesTypeEnum.sunburst]: sunburstSeriesMark,
50386
50560
  [SeriesTypeEnum.rangeColumn]: rangeColumnSeriesMark,
50387
50561
  [SeriesTypeEnum.circlePacking]: circlePackingSeriesMark,
50388
- [SeriesTypeEnum.heatmap]: heatmapSeriesMark
50562
+ [SeriesTypeEnum.heatmap]: heatmapSeriesMark,
50563
+ [SeriesTypeEnum.correlation]: correlationSeriesMark
50389
50564
  };
50390
50565
 
50391
50566
  function baseMerge(target, source, shallowArray = false) {
@@ -50543,7 +50718,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
50543
50718
  labelReverseFontColor: '#202226',
50544
50719
  axisGridColor: '#404349',
50545
50720
  axisDomainColor: '#4b4f54',
50546
- axisLabelFontColor: '#bbbdc3',
50547
50721
  dataZoomHandlerStrokeColor: '#888c93',
50548
50722
  dataZoomHandlerFillColor: '#202226',
50549
50723
  dataZoomBackgroundColor: '#404349',
@@ -50551,6 +50725,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
50551
50725
  dataZoomSelectedColor: '#4284FF',
50552
50726
  scrollBarSliderColor: '#ffffff',
50553
50727
  tooltipBackgroundColor: '#404349',
50728
+ markLabelBackgroundColor: '#f0bd30',
50554
50729
  titleFontColor: '#fdfdfd',
50555
50730
  labelFontColor: '#bbbdc3'
50556
50731
  }
@@ -53588,9 +53763,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
53588
53763
  getState() {
53589
53764
  return this.state._stateMap;
53590
53765
  }
53591
- get tooltipHelper() {
53592
- return this._tooltipHelper;
53593
- }
53594
53766
  constructor(spec, option) {
53595
53767
  var _a, _b, _c;
53596
53768
  super(option);
@@ -54704,21 +54876,21 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
54704
54876
  this.layoutNormalInlineItems(items.filter(x => x.layoutType === 'normal-inline'));
54705
54877
  this.layoutNormalItems(items.filter(x => x.layoutType === 'normal'));
54706
54878
  const layoutTemp = {
54707
- leftCurrent: this.leftCurrent,
54708
- topCurrent: this.topCurrent,
54709
- rightCurrent: this.rightCurrent,
54710
- bottomCurrent: this.bottomCurrent
54879
+ left: this.leftCurrent,
54880
+ top: this.topCurrent,
54881
+ right: this.rightCurrent,
54882
+ bottom: this.bottomCurrent
54711
54883
  };
54712
54884
  const regionItems = items.filter(x => x.layoutType === 'region');
54713
54885
  const relativeItems = items.filter(x => x.layoutType === 'region-relative');
54714
54886
  this.layoutRegionItems(regionItems, relativeItems);
54715
54887
  if (relativeItems.some(i => i.getAutoIndent())) {
54716
- const { top, bottom, left, right } = this._checkAutoIndent(relativeItems);
54888
+ const { top, bottom, left, right } = this._checkAutoIndent(relativeItems, layoutTemp);
54717
54889
  if (top || bottom || left || right) {
54718
- this.topCurrent = layoutTemp.topCurrent + top;
54719
- this.bottomCurrent = layoutTemp.bottomCurrent - bottom;
54720
- this.leftCurrent = layoutTemp.leftCurrent + left;
54721
- this.rightCurrent = layoutTemp.rightCurrent - right;
54890
+ this.topCurrent = layoutTemp.top + top;
54891
+ this.bottomCurrent = layoutTemp.bottom - bottom;
54892
+ this.leftCurrent = layoutTemp.left + left;
54893
+ this.rightCurrent = layoutTemp.right - right;
54722
54894
  this.layoutRegionItems(regionItems, relativeItems);
54723
54895
  }
54724
54896
  }
@@ -54877,32 +55049,42 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
54877
55049
  };
54878
55050
  return result;
54879
55051
  }
54880
- _checkAutoIndent(items) {
55052
+ _checkAutoIndent(items, layoutTemp) {
54881
55053
  const result = {
54882
55054
  top: 0,
54883
55055
  left: 0,
54884
55056
  bottom: 0,
54885
55057
  right: 0
54886
55058
  };
54887
- const rightCurrent = this._chartViewBox.x2 - this._chartViewBox.x1 - this.rightCurrent;
54888
- const bottomCurrent = this._chartViewBox.y2 - this._chartViewBox.y1 - this.bottomCurrent;
54889
55059
  items.forEach(i => {
54890
55060
  if (!i.getVisible() || !i.getAutoIndent()) {
54891
55061
  return;
54892
55062
  }
54893
55063
  const vOrH = i.layoutOrient === 'left' || i.layoutOrient === 'right';
54894
- const outer = i.getLastComputeOutBounds();
55064
+ const itemOuter = i.getLastComputeOutBounds();
55065
+ const outer = this._getOutInLayout(itemOuter, i, layoutTemp);
54895
55066
  if (vOrH) {
54896
- result.top = Math.max(result.top, outer.y1 - this.topCurrent);
54897
- result.bottom = Math.max(result.bottom, outer.y2 - bottomCurrent);
55067
+ result.top = Math.max(result.top, outer.top);
55068
+ result.bottom = Math.max(result.bottom, outer.bottom);
54898
55069
  }
54899
55070
  else {
54900
- result.left = Math.max(result.left, outer.x1 - this.leftCurrent);
54901
- result.right = Math.max(result.right, outer.x2 - rightCurrent);
55071
+ result.left = Math.max(result.left, outer.left);
55072
+ result.right = Math.max(result.right, outer.right);
54902
55073
  }
54903
55074
  });
54904
55075
  return result;
54905
55076
  }
55077
+ _getOutInLayout(itemOuter, i, tempBorder) {
55078
+ const { x, y } = i.getLayoutStartPoint();
55079
+ const { width, height } = i.getLayoutRect();
55080
+ const result = {
55081
+ left: tempBorder.left - (x - itemOuter.x1),
55082
+ right: x + width + itemOuter.x2 - tempBorder.right,
55083
+ top: tempBorder.top - (y - itemOuter.y1),
55084
+ bottom: y + height + itemOuter.y2 - tempBorder.bottom
55085
+ };
55086
+ return result;
55087
+ }
54906
55088
  }
54907
55089
  Layout.type = 'base';
54908
55090
 
@@ -55363,6 +55545,32 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
55363
55545
  };
55364
55546
  return result;
55365
55547
  }
55548
+ _checkAutoIndent(items) {
55549
+ const result = {
55550
+ top: 0,
55551
+ left: 0,
55552
+ bottom: 0,
55553
+ right: 0
55554
+ };
55555
+ const rightCurrent = this._chartViewBox.x2 - this._chartViewBox.x1 - this.rightCurrent;
55556
+ const bottomCurrent = this._chartViewBox.y2 - this._chartViewBox.y1 - this.bottomCurrent;
55557
+ items.forEach(i => {
55558
+ if (!i.getVisible() || !i.getAutoIndent()) {
55559
+ return;
55560
+ }
55561
+ const vOrH = i.layoutOrient === 'left' || i.layoutOrient === 'right';
55562
+ const outer = i.getLastComputeOutBounds();
55563
+ if (vOrH) {
55564
+ result.top = Math.max(result.top, outer.y1 - this.topCurrent);
55565
+ result.bottom = Math.max(result.bottom, outer.y2 - bottomCurrent);
55566
+ }
55567
+ else {
55568
+ result.left = Math.max(result.left, outer.x1 - this.leftCurrent);
55569
+ result.right = Math.max(result.right, outer.x2 - rightCurrent);
55570
+ }
55571
+ });
55572
+ return result;
55573
+ }
55366
55574
  }
55367
55575
  Layout3d.type = 'layout3d';
55368
55576
  const registerLayout3d = () => {
@@ -56711,6 +56919,26 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
56711
56919
  }
56712
56920
  LinkPathMark.type = MarkTypeEnum.linkPath;
56713
56921
 
56922
+ class RippleMark extends BaseMark {
56923
+ constructor() {
56924
+ super(...arguments);
56925
+ this.type = RippleMark.type;
56926
+ }
56927
+ _getDefaultStyle() {
56928
+ const defaultStyle = Object.assign(Object.assign({}, super._getDefaultStyle()), { x: 0, y: 0, ripple: 0 });
56929
+ return defaultStyle;
56930
+ }
56931
+ _initProduct(group) {
56932
+ registerRippleGlyph();
56933
+ const view = this.getVGrammarView();
56934
+ const id = this.getProductId();
56935
+ const glyphType = 'ripplePoint';
56936
+ this._product = view.glyph(glyphType, group !== null && group !== void 0 ? group : view.rootMark).id(id);
56937
+ this._compiledProductId = id;
56938
+ }
56939
+ }
56940
+ RippleMark.type = MarkTypeEnum.ripple;
56941
+
56714
56942
  class ProgressArcMark extends BaseArcMark {
56715
56943
  constructor() {
56716
56944
  super(...arguments);
@@ -57992,7 +58220,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
57992
58220
  };
57993
58221
  registerVChartCore();
57994
58222
 
57995
- const version = "1.5.1-alpha.6";
58223
+ const version = "1.5.2-alpha.0";
57996
58224
 
57997
58225
  class ChartData {
57998
58226
  get dataList() {
@@ -58895,6 +59123,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
58895
59123
  }
58896
59124
  else {
58897
59125
  const tempSpec = colorSpec;
59126
+ if (tempSpec.range) {
59127
+ tempSpec.range = tempSpec.range.map(color => { var _a; return getActualColor(color, (_a = this._theme) === null || _a === void 0 ? void 0 : _a.colorScheme); });
59128
+ }
58898
59129
  Object.prototype.hasOwnProperty.call(tempSpec, 'type') && (colorScaleSpec.type = tempSpec.type);
58899
59130
  Object.prototype.hasOwnProperty.call(tempSpec, 'domain') && (colorScaleSpec.domain = tempSpec.domain);
58900
59131
  Object.prototype.hasOwnProperty.call(tempSpec, 'range') && (colorScaleSpec.range = tempSpec.range);
@@ -59516,6 +59747,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
59516
59747
  ChartTypeEnum["sunburst"] = "sunburst";
59517
59748
  ChartTypeEnum["circlePacking"] = "circlePacking";
59518
59749
  ChartTypeEnum["heatmap"] = "heatmap";
59750
+ ChartTypeEnum["correlation"] = "correlation";
59519
59751
  })(ChartTypeEnum || (ChartTypeEnum = {}));
59520
59752
 
59521
59753
  const addVChartProperty = (data, op) => {
@@ -60525,6 +60757,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
60525
60757
  return this._stackOffsetSilhouette;
60526
60758
  }
60527
60759
  get tooltipHelper() {
60760
+ if (!this._tooltipHelper) {
60761
+ this.initTooltip();
60762
+ }
60528
60763
  return this._tooltipHelper;
60529
60764
  }
60530
60765
  getInvalidType() {
@@ -60566,7 +60801,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
60566
60801
  this.initStatisticalData();
60567
60802
  this.event.emit(ChartEvent.afterInitData, { model: this });
60568
60803
  this.initTrigger();
60569
- this.initTooltip();
60570
60804
  this.initRootMark();
60571
60805
  this.initMark();
60572
60806
  this._initExtensionMark();
@@ -60597,7 +60831,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
60597
60831
  };
60598
60832
  }
60599
60833
  setAttrFromSpec() {
60600
- var _a;
60601
60834
  super.setAttrFromSpec();
60602
60835
  this.setSeriesField(this._spec.seriesField);
60603
60836
  if (isBoolean$1(this._spec.stack)) {
@@ -60617,7 +60850,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
60617
60850
  if (isValid$1(this._spec.invalidType)) {
60618
60851
  this._invalidType = this._spec.invalidType;
60619
60852
  }
60620
- (_a = this._tooltipHelper) === null || _a === void 0 ? void 0 : _a.updateTooltipSpec();
60621
60853
  }
60622
60854
  initData() {
60623
60855
  var _a, _b, _c, _d;
@@ -61109,6 +61341,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
61109
61341
  });
61110
61342
  this._updateExtensionMarkSpec(lastSpec);
61111
61343
  this._updateSpecData();
61344
+ if (this._tooltipHelper) {
61345
+ this._tooltipHelper.updateTooltipSpec();
61346
+ }
61112
61347
  }
61113
61348
  onEvaluateEnd(ctx) {
61114
61349
  this._data.updateData();
@@ -61837,7 +62072,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
61837
62072
  return this._lineMark;
61838
62073
  }
61839
62074
  initLineMarkStyle(direction, areaCurveType) {
61840
- var _a, _b, _c;
62075
+ var _a, _b;
61841
62076
  const lineMark = this._lineMark;
61842
62077
  if (lineMark) {
61843
62078
  this.setMarkStyle(lineMark, {
@@ -61876,7 +62111,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
61876
62111
  z: this._fieldZ ? this.dataToPositionZ.bind(this) : null
61877
62112
  }, 'normal', AttributeLevel.Series);
61878
62113
  this._trigger.registerMark(lineMark);
61879
- (_c = this._tooltipHelper) === null || _c === void 0 ? void 0 : _c.activeTriggerSet.dimension.add(lineMark);
61880
62114
  }
61881
62115
  return lineMark;
61882
62116
  }
@@ -61930,7 +62164,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
61930
62164
  return this._symbolMark;
61931
62165
  }
61932
62166
  initSymbolMarkStyle() {
61933
- var _a;
61934
62167
  const symbolMark = this._symbolMark;
61935
62168
  if (!symbolMark) {
61936
62169
  return symbolMark;
@@ -61952,7 +62185,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
61952
62185
  z: this._fieldZ ? this.dataToPositionZ.bind(this) : null
61953
62186
  }, 'normal', AttributeLevel.Series);
61954
62187
  this._trigger.registerMark(symbolMark);
61955
- (_a = this._tooltipHelper) === null || _a === void 0 ? void 0 : _a.activeTriggerSet.mark.add(symbolMark);
61956
62188
  if (this._symbolActiveMark && this._symbolMark.stateStyle.dimension_hover) {
61957
62189
  this._symbolActiveMark.setVisible(true);
61958
62190
  this.event.on(DimensionEventEnum.dimensionHover, this._dimensionTrigger.bind(this));
@@ -62035,6 +62267,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
62035
62267
  this.initLineMark(progressive, seriesMark === 'line');
62036
62268
  this.initSymbolMark(progressive, seriesMark === 'point');
62037
62269
  }
62270
+ initTooltip() {
62271
+ super.initTooltip();
62272
+ this._lineMark && this._tooltipHelper.activeTriggerSet.dimension.add(this._lineMark);
62273
+ this._symbolMark && this._tooltipHelper.activeTriggerSet.mark.add(this._symbolMark);
62274
+ }
62038
62275
  initMarkStyle() {
62039
62276
  this.initLineMarkStyle(this._direction);
62040
62277
  this.initSymbolMarkStyle();
@@ -62278,7 +62515,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
62278
62515
  curveType
62279
62516
  }, 'normal', AttributeLevel.Built_In);
62280
62517
  this._trigger.registerMark(areaMark);
62281
- this._tooltipHelper.activeTriggerSet.dimension.add(areaMark);
62282
62518
  Object.keys(areaMark.stateStyle).forEach(state => {
62283
62519
  if (areaMark.stateStyle[state].stroke) {
62284
62520
  areaMark.setPostProcess('stroke', result => {
@@ -62307,6 +62543,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
62307
62543
  }
62308
62544
  initTooltip() {
62309
62545
  this._tooltipHelper = new AreaSeriesTooltipHelper(this);
62546
+ this._areaMark && this._tooltipHelper.activeTriggerSet.dimension.add(this._areaMark);
62547
+ this._lineMark && this._tooltipHelper.activeTriggerSet.dimension.add(this._lineMark);
62548
+ this._symbolMark && this._tooltipHelper.activeTriggerSet.mark.add(this._symbolMark);
62310
62549
  }
62311
62550
  viewDataStatisticsUpdate(d) {
62312
62551
  super.viewDataStatisticsUpdate(d);
@@ -62508,14 +62747,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
62508
62747
  });
62509
62748
  }
62510
62749
  initMarkStyle() {
62511
- var _a;
62512
62750
  const rectMark = this._rectMark;
62513
62751
  if (rectMark) {
62514
62752
  this.setMarkStyle(rectMark, {
62515
62753
  fill: this.getColorAttribute()
62516
62754
  }, 'normal', AttributeLevel.Series);
62517
62755
  this._trigger.registerMark(rectMark);
62518
- (_a = this._tooltipHelper) === null || _a === void 0 ? void 0 : _a.activeTriggerSet.mark.add(rectMark);
62519
62756
  }
62520
62757
  }
62521
62758
  initLabelMarkStyle(textMark) {
@@ -62530,6 +62767,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
62530
62767
  z: this._fieldZ ? this.dataToPositionZ.bind(this) : null
62531
62768
  });
62532
62769
  }
62770
+ initTooltip() {
62771
+ super.initTooltip();
62772
+ this._rectMark && this._tooltipHelper.activeTriggerSet.mark.add(this._rectMark);
62773
+ }
62533
62774
  init(option) {
62534
62775
  var _a, _b;
62535
62776
  super.init(option);
@@ -63027,7 +63268,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
63027
63268
  this._symbolMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('scatter')) === null || _c === void 0 ? void 0 : _c({}, appearPreset), userAnimationConfig(SeriesMarkNameEnum.point, this._spec)));
63028
63269
  }
63029
63270
  initSymbolMarkStyle() {
63030
- var _a;
63031
63271
  const symbolMark = this._symbolMark;
63032
63272
  if (!symbolMark) {
63033
63273
  return;
@@ -63056,7 +63296,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
63056
63296
  }, STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.User_Mark);
63057
63297
  }
63058
63298
  this._trigger.registerMark(symbolMark);
63059
- (_a = this._tooltipHelper) === null || _a === void 0 ? void 0 : _a.activeTriggerSet.mark.add(symbolMark);
63299
+ }
63300
+ initTooltip() {
63301
+ super.initTooltip();
63302
+ this._symbolMark && this._tooltipHelper.activeTriggerSet.mark.add(this._symbolMark);
63060
63303
  }
63061
63304
  viewDataStatisticsUpdate(d) {
63062
63305
  super.viewDataStatisticsUpdate(d);
@@ -64008,6 +64251,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
64008
64251
  }
64009
64252
  clearScroll() {
64010
64253
  }
64254
+ clearDrag() {
64255
+ }
64011
64256
  parserDragEvent() {
64012
64257
  return true;
64013
64258
  }
@@ -64046,6 +64291,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
64046
64291
  }
64047
64292
  clearScroll() {
64048
64293
  }
64294
+ clearDrag() {
64295
+ }
64049
64296
  }
64050
64297
 
64051
64298
  const defaultTriggerEvent = {
@@ -64099,6 +64346,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
64099
64346
  }
64100
64347
  };
64101
64348
 
64349
+ const delayMap = {
64350
+ debounce: debounce,
64351
+ throttle: throttle
64352
+ };
64102
64353
  class Zoomable {
64103
64354
  initZoomable(evt, mode = exports.RenderModeEnum['desktop-browser']) {
64104
64355
  this._eventObj = evt;
@@ -64111,112 +64362,124 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
64111
64362
  _getTriggerEvent(type) {
64112
64363
  return defaultTriggerEvent[this._renderMode][type];
64113
64364
  }
64114
- _bindZoomEventAsRegion(eventObj, regionOrSeries, callback) {
64115
- eventObj.on(this._getTriggerEvent('scrollEnd'), { level: Event_Bubble_Level.chart, consume: false }, params => {
64116
- this._zoomableTrigger.clearZoom();
64117
- });
64118
- eventObj.on(this._getTriggerEvent('scroll'), { level: Event_Bubble_Level.chart, consume: true }, params => {
64119
- if (!params.event) {
64120
- return;
64121
- }
64122
- const event = params.event.clone();
64123
- this._zoomableTrigger.parserZoomEvent(event);
64124
- const { zoomDelta, zoomX, zoomY } = event;
64125
- if (isNil$1(zoomDelta)) {
64126
- return;
64127
- }
64128
- if (!isPointInRect({
64129
- x: zoomX,
64130
- y: zoomY
64131
- }, Object.assign(Object.assign({}, regionOrSeries.getLayoutRect()), regionOrSeries.getLayoutStartPoint()))) {
64132
- return;
64133
- }
64134
- this._clickEnable = false;
64135
- if (callback) {
64136
- callback({ zoomDelta, zoomX, zoomY }, event);
64137
- }
64138
- this._eventObj.emit('zoom', {
64139
- scale: event.zoomDelta,
64140
- scaleCenter: { x: event.zoomX, y: event.zoomY },
64141
- model: this
64142
- });
64365
+ _zoomEventDispatch(params, regionOrSeries, callback) {
64366
+ if (!params.event) {
64367
+ return;
64368
+ }
64369
+ const event = params.event.clone();
64370
+ this._zoomableTrigger.parserZoomEvent(event);
64371
+ const { zoomDelta, zoomX, zoomY } = event;
64372
+ if (isNil$1(zoomDelta)) {
64373
+ return;
64374
+ }
64375
+ if (!isPointInRect({
64376
+ x: zoomX,
64377
+ y: zoomY
64378
+ }, Object.assign(Object.assign({}, regionOrSeries.getLayoutRect()), regionOrSeries.getLayoutStartPoint()))) {
64379
+ return;
64380
+ }
64381
+ this._clickEnable = false;
64382
+ if (callback) {
64383
+ callback({ zoomDelta, zoomX, zoomY }, event);
64384
+ }
64385
+ this._eventObj.emit('zoom', {
64386
+ scale: event.zoomDelta,
64387
+ scaleCenter: { x: event.zoomX, y: event.zoomY },
64388
+ model: this
64143
64389
  });
64144
64390
  }
64145
- initZoomEventOfSeries(s, callback) {
64391
+ _bindZoomEventAsRegion(eventObj, regionOrSeries, callback, option) {
64392
+ var _a, _b;
64393
+ const delayType = (_a = option === null || option === void 0 ? void 0 : option.delayType) !== null && _a !== void 0 ? _a : 'throttle';
64394
+ const delayTime = (_b = option === null || option === void 0 ? void 0 : option.delayTime) !== null && _b !== void 0 ? _b : 0;
64395
+ eventObj.on(this._getTriggerEvent('scrollEnd'), { level: Event_Bubble_Level.chart, consume: false }, delayMap[delayType]((params) => {
64396
+ this._zoomableTrigger.clearZoom();
64397
+ }, delayTime));
64398
+ eventObj.on(this._getTriggerEvent('scroll'), { level: Event_Bubble_Level.chart, consume: true }, delayMap[delayType]((params) => {
64399
+ this._zoomEventDispatch(params, regionOrSeries, callback);
64400
+ }, delayTime));
64401
+ }
64402
+ initZoomEventOfSeries(s, callback, option) {
64146
64403
  if (defaultTriggerEvent[this._renderMode]) {
64147
- this._bindZoomEventAsRegion(s.event, s, callback);
64404
+ this._bindZoomEventAsRegion(s.event, s, callback, option);
64148
64405
  }
64149
64406
  }
64150
- initZoomEventOfRegions(regions, filter, callback) {
64407
+ initZoomEventOfRegions(regions, filter, callback, option) {
64151
64408
  if (defaultTriggerEvent[this._renderMode]) {
64152
64409
  regions.forEach(r => {
64153
64410
  if (filter) {
64154
64411
  r.getSeries().forEach(s => {
64155
64412
  if (filter(s)) {
64156
- this._bindZoomEventAsRegion(s.event, s, callback);
64413
+ this._bindZoomEventAsRegion(s.event, s, callback, option);
64157
64414
  }
64158
64415
  });
64159
64416
  }
64160
64417
  else {
64161
- this._bindZoomEventAsRegion(this._eventObj, r, callback);
64418
+ this._bindZoomEventAsRegion(this._eventObj, r, callback, option);
64162
64419
  }
64163
64420
  });
64164
64421
  }
64165
64422
  }
64166
- initScrollEventOfSeries(s, callback) {
64423
+ _scrollEventDispatch(params, regionOrSeries, callback) {
64424
+ if (!params.event) {
64425
+ return;
64426
+ }
64427
+ const { event } = params;
64428
+ this._zoomableTrigger.parserScrollEvent(event);
64429
+ const { scrollX, scrollY } = event;
64430
+ if (isNil$1(scrollX) && isNil$1(scrollY)) {
64431
+ return;
64432
+ }
64433
+ if (!isPointInRect({
64434
+ x: event.canvasX,
64435
+ y: event.canvasY
64436
+ }, Object.assign(Object.assign({}, regionOrSeries.getLayoutRect()), regionOrSeries.getLayoutStartPoint()))) {
64437
+ return;
64438
+ }
64439
+ this._clickEnable = false;
64440
+ if (callback) {
64441
+ callback({ scrollX, scrollY }, event);
64442
+ }
64443
+ this._eventObj.emit('scroll', {
64444
+ scrollX,
64445
+ scrollY,
64446
+ model: this
64447
+ });
64448
+ }
64449
+ _bindScrollEventAsRegion(eventObj, regionOrSeries, callback, option) {
64450
+ var _a, _b;
64451
+ const delayType = (_a = option === null || option === void 0 ? void 0 : option.delayType) !== null && _a !== void 0 ? _a : 'throttle';
64452
+ const delayTime = (_b = option === null || option === void 0 ? void 0 : option.delayTime) !== null && _b !== void 0 ? _b : 0;
64453
+ eventObj.on(this._getTriggerEvent('scrollEnd'), { level: Event_Bubble_Level.chart, consume: false }, delayMap[delayType]((params) => {
64454
+ this._zoomableTrigger.clearScroll();
64455
+ }, delayTime));
64456
+ eventObj.on(this._getTriggerEvent('scroll'), { level: Event_Bubble_Level.chart, consume: true }, delayMap[delayType]((params) => {
64457
+ this._scrollEventDispatch(params, regionOrSeries, callback);
64458
+ }, delayTime));
64459
+ }
64460
+ initScrollEventOfSeries(s, callback, option) {
64167
64461
  if (defaultTriggerEvent[this._renderMode]) {
64168
- this._bindScrollEventAsRegion(s.event, s, callback);
64462
+ this._bindScrollEventAsRegion(s.event, s, callback, option);
64169
64463
  }
64170
64464
  }
64171
- initScrollEventOfRegions(regions, filter, callback) {
64465
+ initScrollEventOfRegions(regions, filter, callback, option) {
64172
64466
  if (defaultTriggerEvent[this._renderMode]) {
64173
64467
  regions.forEach(r => {
64174
64468
  if (filter) {
64175
64469
  r.getSeries().forEach(s => {
64176
64470
  if (filter(s)) {
64177
- this._bindScrollEventAsRegion(s.event, s, callback);
64471
+ this._bindScrollEventAsRegion(s.event, s, callback, option);
64178
64472
  }
64179
64473
  });
64180
64474
  }
64181
64475
  else {
64182
- this._bindScrollEventAsRegion(this._eventObj, r, callback);
64476
+ this._bindScrollEventAsRegion(this._eventObj, r, callback, option);
64183
64477
  }
64184
64478
  });
64185
64479
  }
64186
64480
  }
64187
- _bindScrollEventAsRegion(eventObj, regionOrSeries, callback) {
64188
- eventObj.on(this._getTriggerEvent('scrollEnd'), { level: Event_Bubble_Level.chart, consume: false }, params => {
64189
- this._zoomableTrigger.clearScroll();
64190
- });
64191
- eventObj.on(this._getTriggerEvent('scroll'), { level: Event_Bubble_Level.chart, consume: true }, params => {
64192
- if (!params.event) {
64193
- return;
64194
- }
64195
- const { event } = params;
64196
- this._zoomableTrigger.parserScrollEvent(event);
64197
- const { scrollX, scrollY } = event;
64198
- if (isNil$1(scrollX) && isNil$1(scrollY)) {
64199
- return;
64200
- }
64201
- if (!isPointInRect({
64202
- x: event.canvasX,
64203
- y: event.canvasY
64204
- }, Object.assign(Object.assign({}, regionOrSeries.getLayoutRect()), regionOrSeries.getLayoutStartPoint()))) {
64205
- return;
64206
- }
64207
- this._clickEnable = false;
64208
- if (callback) {
64209
- callback({ scrollX, scrollY }, event);
64210
- }
64211
- this._eventObj.emit('scroll', {
64212
- scrollX,
64213
- scrollY,
64214
- model: this
64215
- });
64216
- });
64217
- }
64218
- _bindDragEventAsRegion(eventObj, regionOrSeries, callback) {
64219
- eventObj.on(this._getTriggerEvent('start'), { level: Event_Bubble_Level.chart }, params => {
64481
+ _bindDragEventAsRegion(eventObj, regionOrSeries, callback, option) {
64482
+ eventObj.on(this._getTriggerEvent('start'), { level: Event_Bubble_Level.chart }, (params) => {
64220
64483
  if (!params.event) {
64221
64484
  return;
64222
64485
  }
@@ -64226,21 +64489,21 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
64226
64489
  y: event.canvasY
64227
64490
  }, Object.assign(Object.assign({}, regionOrSeries.getLayoutRect()), regionOrSeries.getLayoutStartPoint()));
64228
64491
  if (shouldTrigger) {
64229
- this._handleDrag(params, callback);
64492
+ this._handleDrag(params, callback, option);
64230
64493
  }
64231
64494
  });
64232
64495
  eventObj.on('click', { level: Event_Bubble_Level.chart }, () => {
64233
64496
  return !this._clickEnable;
64234
64497
  });
64235
64498
  }
64236
- initDragEventOfSeries(s, callback) {
64499
+ initDragEventOfSeries(s, callback, option) {
64237
64500
  if (defaultTriggerEvent[this._renderMode]) {
64238
64501
  s.event.on(this._getTriggerEvent('start'), { level: Event_Bubble_Level.model, filter: ({ model }) => (model === null || model === void 0 ? void 0 : model.id) === s.id }, params => {
64239
- this._handleDrag(params, callback);
64502
+ this._handleDrag(params, callback, option);
64240
64503
  });
64241
64504
  }
64242
64505
  }
64243
- initDragEventOfRegions(regions, filter, callback) {
64506
+ initDragEventOfRegions(regions, filter, callback, option) {
64244
64507
  if (defaultTriggerEvent[this._renderMode]) {
64245
64508
  regions.forEach(r => {
64246
64509
  if (filter) {
@@ -64256,45 +64519,65 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
64256
64519
  });
64257
64520
  }
64258
64521
  else {
64259
- this._bindDragEventAsRegion(this._eventObj, r, callback);
64522
+ this._bindDragEventAsRegion(this._eventObj, r, callback, option);
64260
64523
  }
64261
64524
  });
64262
64525
  }
64263
64526
  }
64264
- _handleDrag(params, callback) {
64527
+ _handleDrag(params, callback, option) {
64528
+ var _a, _b, _c;
64265
64529
  this._clickEnable = true;
64266
64530
  if (!this._zoomableTrigger.parserDragEvent(params.event)) {
64267
64531
  return;
64268
64532
  }
64533
+ const delayType = (_a = option === null || option === void 0 ? void 0 : option.delayType) !== null && _a !== void 0 ? _a : 'throttle';
64534
+ const delayTime = (_b = option === null || option === void 0 ? void 0 : option.delayTime) !== null && _b !== void 0 ? _b : 0;
64535
+ const realTime = (_c = option === null || option === void 0 ? void 0 : option.realTime) !== null && _c !== void 0 ? _c : true;
64269
64536
  const move = this._getTriggerEvent('move');
64270
64537
  const end = this._getTriggerEvent('end');
64271
64538
  const event = params.event;
64272
- let x = event.canvasX;
64273
- let y = event.canvasY;
64274
- const mouseup = () => {
64539
+ let moveX = event.canvasX;
64540
+ let moveY = event.canvasY;
64541
+ let upX = event.canvasX;
64542
+ let upY = event.canvasY;
64543
+ const mouseup = delayMap[delayType]((params) => {
64544
+ this._clickEnable = false;
64545
+ const event = params.event;
64546
+ const dx = event.canvasX - upX;
64547
+ const dy = event.canvasY - upY;
64548
+ const delta = [dx, dy];
64549
+ upX = event.canvasX;
64550
+ upY = event.canvasY;
64551
+ if (!realTime && callback) {
64552
+ callback(delta, params.event);
64553
+ }
64554
+ this._eventObj.emit('panend', {
64555
+ delta,
64556
+ model: this
64557
+ });
64275
64558
  this._zoomableTrigger.pointerId = null;
64276
64559
  this._eventObj.off(move, { level: Event_Bubble_Level.chart, source: Event_Source_Type.chart }, mousemove);
64277
64560
  this._eventObj.off(end, { level: Event_Bubble_Level.chart, source: Event_Source_Type.window }, mouseup);
64278
- };
64279
- const mousemove = (params) => {
64561
+ }, delayTime);
64562
+ const mousemove = delayMap[delayType]((params) => {
64280
64563
  if (!this._zoomableTrigger.parserDragEvent(params.event)) {
64281
64564
  return;
64282
64565
  }
64283
64566
  this._clickEnable = false;
64284
64567
  const event = params.event;
64285
- const dx = event.canvasX - x;
64286
- const dy = event.canvasY - y;
64568
+ const dx = event.canvasX - moveX;
64569
+ const dy = event.canvasY - moveY;
64287
64570
  const delta = [dx, dy];
64288
- x = event.canvasX;
64289
- y = event.canvasY;
64290
- if (callback) {
64571
+ moveX = event.canvasX;
64572
+ moveY = event.canvasY;
64573
+ if (realTime && callback) {
64291
64574
  callback(delta, params.event);
64292
64575
  }
64293
64576
  this._eventObj.emit('panmove', {
64294
64577
  delta,
64295
64578
  model: this
64296
64579
  });
64297
- };
64580
+ }, delayTime);
64298
64581
  this._eventObj.on(move, { level: Event_Bubble_Level.chart, source: Event_Source_Type.chart }, mousemove);
64299
64582
  this._eventObj.on(end, { level: Event_Bubble_Level.chart, source: Event_Source_Type.chart }, mouseup);
64300
64583
  }
@@ -64700,7 +64983,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
64700
64983
  });
64701
64984
  }
64702
64985
  initMarkStyle() {
64703
- var _a;
64704
64986
  const pathMark = this._pathMark;
64705
64987
  if (pathMark) {
64706
64988
  this.setMarkStyle(pathMark, {
@@ -64723,7 +65005,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
64723
65005
  smoothScale: true
64724
65006
  }, 'normal', AttributeLevel.Built_In);
64725
65007
  this._trigger.registerMark(pathMark);
64726
- (_a = this._tooltipHelper) === null || _a === void 0 ? void 0 : _a.activeTriggerSet.mark.add(pathMark);
64727
65008
  }
64728
65009
  }
64729
65010
  initLabelMarkStyle(labelMark) {
@@ -64746,6 +65027,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
64746
65027
  }
64747
65028
  initTooltip() {
64748
65029
  this._tooltipHelper = new MapSeriesTooltipHelper(this);
65030
+ this._pathMark && this._tooltipHelper.activeTriggerSet.mark.add(this._pathMark);
64749
65031
  }
64750
65032
  getPath(datum) {
64751
65033
  var _a;
@@ -65414,7 +65696,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
65414
65696
  });
65415
65697
  }
65416
65698
  initMarkStyle() {
65417
- var _a;
65418
65699
  const pieMark = this._pieMark;
65419
65700
  if (pieMark) {
65420
65701
  this.setMarkStyle(pieMark, {
@@ -65434,9 +65715,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
65434
65715
  centerOffset: this._centerOffset
65435
65716
  }, 'normal', AttributeLevel.Series);
65436
65717
  this._trigger.registerMark(pieMark);
65437
- (_a = this._tooltipHelper) === null || _a === void 0 ? void 0 : _a.activeTriggerSet.mark.add(pieMark);
65438
65718
  }
65439
65719
  }
65720
+ initTooltip() {
65721
+ super.initTooltip();
65722
+ this._pieMark && this._tooltipHelper.activeTriggerSet.mark.add(this._pieMark);
65723
+ }
65440
65724
  initMarkStyleWithSpec(mark, spec, key) {
65441
65725
  super.initMarkStyleWithSpec(mark, spec, key);
65442
65726
  if (mark.name === this._pieMarkName) {
@@ -65643,6 +65927,22 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
65643
65927
  getActiveMarks() {
65644
65928
  return [this._pieMark];
65645
65929
  }
65930
+ _mergeThemeToSpec() {
65931
+ if (this._shouldMergeThemeToSpec()) {
65932
+ const specFromChart = this._getDefaultSpecFromChart(this.getChart().getSpec());
65933
+ const merge = (originalSpec) => {
65934
+ const chartSpec = this._prepareSpecBeforeMergingTheme(specFromChart);
65935
+ const userSpec = this._prepareSpecBeforeMergingTheme(originalSpec);
65936
+ const labelSpec = mergeSpec({}, this._theme.label, chartSpec.label, userSpec.label);
65937
+ const labelTheme = mergeSpec({}, this._theme.label, labelSpec.position === 'inside' ? this._theme.innerLabel : this._theme.outerLabel);
65938
+ const newTheme = Object.assign(Object.assign({}, this._theme), { label: labelTheme });
65939
+ return mergeSpec({}, newTheme, chartSpec, userSpec);
65940
+ };
65941
+ const baseSpec = this._spec;
65942
+ this._spec = merge(baseSpec);
65943
+ }
65944
+ this._prepareSpecAfterMergingTheme();
65945
+ }
65646
65946
  }
65647
65947
  BasePieSeries.mark = pieSeriesMark;
65648
65948
  class PieSeries extends BasePieSeries {
@@ -65751,7 +66051,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
65751
66051
  this._angle3d = (_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.angle3d) !== null && _b !== void 0 ? _b : -Math.PI / 3;
65752
66052
  }
65753
66053
  initMarkStyle() {
65754
- var _a, _b, _c, _d, _e, _f, _g, _h;
66054
+ var _a, _b, _c, _d, _e, _f, _g;
65755
66055
  const pieMark = this._pieMark;
65756
66056
  if (pieMark) {
65757
66057
  this.setMarkStyle(pieMark, {
@@ -65774,12 +66074,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
65774
66074
  }
65775
66075
  }
65776
66076
  this._trigger.registerMark(pieMark);
65777
- (_a = this._tooltipHelper) === null || _a === void 0 ? void 0 : _a.activeTriggerSet.mark.add(pieMark);
65778
66077
  }
65779
66078
  const labelMark = this._labelMark;
65780
66079
  const spec = this.getSpec();
65781
66080
  const params3d = {};
65782
- if ((_b = spec === null || spec === void 0 ? void 0 : spec.label) === null || _b === void 0 ? void 0 : _b.support3d) {
66081
+ if ((_a = spec === null || spec === void 0 ? void 0 : spec.label) === null || _a === void 0 ? void 0 : _a.support3d) {
65783
66082
  params3d.beta = -Math.PI / 3;
65784
66083
  params3d.anchor3d = (datum) => {
65785
66084
  var _a, _b, _c, _d;
@@ -65791,7 +66090,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
65791
66090
  };
65792
66091
  }
65793
66092
  if (labelMark) {
65794
- this.setMarkStyle(labelMark, Object.assign({ visible: field$2(DEFAULT_LABEL_VISIBLE).bind(this), x: field$2(DEFAULT_LABEL_X).bind(this), y: field$2(DEFAULT_LABEL_Y).bind(this), text: field$2(DEFAULT_LABEL_TEXT).bind(this), fill: ((_d = (_c = this._spec.label) === null || _c === void 0 ? void 0 : _c.style) === null || _d === void 0 ? void 0 : _d.fill) || this.getColorAttribute(), textAlign: field$2(DEFAULT_LABEL_ALIGN).bind(this), textBaseline: ((_e = this._spec.label) === null || _e === void 0 ? void 0 : _e.position) === 'inside' ? 'middle' : 'top', angle: (datum) => {
66093
+ this.setMarkStyle(labelMark, Object.assign({ visible: field$2(DEFAULT_LABEL_VISIBLE).bind(this), x: field$2(DEFAULT_LABEL_X).bind(this), y: field$2(DEFAULT_LABEL_Y).bind(this), text: field$2(DEFAULT_LABEL_TEXT).bind(this), fill: ((_c = (_b = this._spec.label) === null || _b === void 0 ? void 0 : _b.style) === null || _c === void 0 ? void 0 : _c.fill) || this.getColorAttribute(), textAlign: field$2(DEFAULT_LABEL_ALIGN).bind(this), textBaseline: ((_d = this._spec.label) === null || _d === void 0 ? void 0 : _d.position) === 'inside' ? 'middle' : 'top', angle: (datum) => {
65795
66094
  var _a;
65796
66095
  const angle = datum[ARC_MIDDLE_ANGLE];
65797
66096
  return ((_a = this._spec.label) === null || _a === void 0 ? void 0 : _a.position) === 'inside' ? radianToDegree(angle) : 0;
@@ -65800,7 +66099,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
65800
66099
  }
65801
66100
  const labelLineMark = this._labelLineMark;
65802
66101
  if (labelLineMark) {
65803
- this.setMarkStyle(labelLineMark, Object.assign(Object.assign(Object.assign({ visible: field$2(DEFAULT_LABEL_VISIBLE).bind(this), stroke: ((_h = (_g = (_f = this._spec.label) === null || _f === void 0 ? void 0 : _f.line) === null || _g === void 0 ? void 0 : _g.style) === null || _h === void 0 ? void 0 : _h.stroke) || this.getColorAttribute(), lineWidth: 1 }, this.generateLinePath('normal')), params3d), { anchor3d: () => {
66102
+ this.setMarkStyle(labelLineMark, Object.assign(Object.assign(Object.assign({ visible: field$2(DEFAULT_LABEL_VISIBLE).bind(this), stroke: ((_g = (_f = (_e = this._spec.label) === null || _e === void 0 ? void 0 : _e.line) === null || _f === void 0 ? void 0 : _f.style) === null || _g === void 0 ? void 0 : _g.stroke) || this.getColorAttribute(), lineWidth: 1 }, this.generateLinePath('normal')), params3d), { anchor3d: () => {
65804
66103
  var _a, _b, _c, _d;
65805
66104
  return [
65806
66105
  (_b = (_a = this._center) === null || _a === void 0 ? void 0 : _a.x) !== null && _b !== void 0 ? _b : this._region.getLayoutRect().width / 2,
@@ -65971,7 +66270,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
65971
66270
  return angleBandWidth;
65972
66271
  }
65973
66272
  initRoseMarkStyle() {
65974
- var _a;
65975
66273
  const roseMark = this._roseMark;
65976
66274
  if (roseMark) {
65977
66275
  this.setMarkStyle(roseMark, {
@@ -65996,9 +66294,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
65996
66294
  }
65997
66295
  });
65998
66296
  this._trigger.registerMark(roseMark);
65999
- (_a = this._tooltipHelper) === null || _a === void 0 ? void 0 : _a.activeTriggerSet.mark.add(roseMark);
66000
66297
  }
66001
66298
  }
66299
+ initTooltip() {
66300
+ super.initTooltip();
66301
+ this._roseMark && this._tooltipHelper.activeTriggerSet.mark.add(this._roseMark);
66302
+ }
66002
66303
  initLabelMarkStyle(textMark) {
66003
66304
  var _a, _b, _c, _d, _e, _f, _g, _h;
66004
66305
  if (!textMark) {
@@ -66351,7 +66652,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
66351
66652
  });
66352
66653
  }
66353
66654
  initAreaMarkStyle() {
66354
- var _a;
66355
66655
  const areaMark = this._areaMark;
66356
66656
  if (areaMark) {
66357
66657
  this.setMarkStyle(areaMark, {
@@ -66384,9 +66684,14 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
66384
66684
  this.encodeDefined(areaMark, 'defined');
66385
66685
  });
66386
66686
  this._trigger.registerMark(areaMark);
66387
- (_a = this._tooltipHelper) === null || _a === void 0 ? void 0 : _a.activeTriggerSet.dimension.add(areaMark);
66388
66687
  }
66389
66688
  }
66689
+ initTooltip() {
66690
+ super.initTooltip();
66691
+ this._lineMark && this._tooltipHelper.activeTriggerSet.dimension.add(this._lineMark);
66692
+ this._symbolMark && this._tooltipHelper.activeTriggerSet.mark.add(this._symbolMark);
66693
+ this._areaMark && this._tooltipHelper.activeTriggerSet.dimension.add(this._areaMark);
66694
+ }
66390
66695
  initAnimation() {
66391
66696
  var _a, _b, _c, _d;
66392
66697
  const animationParams = {
@@ -66695,7 +67000,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
66695
67000
  });
66696
67001
  }
66697
67002
  initMarkStyle() {
66698
- var _a, _b, _c, _d, _e, _f;
67003
+ var _a, _b, _c, _d;
66699
67004
  const clipMark = this._clipMark;
66700
67005
  if (clipMark) {
66701
67006
  this.setMarkStyle(clipMark, {
@@ -66726,11 +67031,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
66726
67031
  y1: this.dataToPositionYTo.bind(this)
66727
67032
  }, 'normal', AttributeLevel.Series);
66728
67033
  this._trigger.registerMark(linkMark);
66729
- (_a = this._tooltipHelper) === null || _a === void 0 ? void 0 : _a.activeTriggerSet.mark.add(linkMark);
66730
67034
  }
66731
67035
  const arrowMark = this._arrowMark;
66732
67036
  if (arrowMark) {
66733
- const arrowSize = (_e = (_d = (_c = (_b = this._theme) === null || _b === void 0 ? void 0 : _b.arrow) === null || _c === void 0 ? void 0 : _c.style) === null || _d === void 0 ? void 0 : _d.size) !== null && _e !== void 0 ? _e : 10;
67037
+ const arrowSize = (_d = (_c = (_b = (_a = this._theme) === null || _a === void 0 ? void 0 : _a.arrow) === null || _b === void 0 ? void 0 : _b.style) === null || _c === void 0 ? void 0 : _c.size) !== null && _d !== void 0 ? _d : 10;
66734
67038
  this.setMarkStyle(arrowMark, {
66735
67039
  x: this.dataToPositionXTo.bind(this),
66736
67040
  y: (datum) => this.dataToPositionArrowYTo(datum, arrowSize),
@@ -66742,7 +67046,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
66742
67046
  }
66743
67047
  }, 'normal', AttributeLevel.Series);
66744
67048
  this._trigger.registerMark(arrowMark);
66745
- (_f = this._tooltipHelper) === null || _f === void 0 ? void 0 : _f.activeTriggerSet.mark.add(arrowMark);
66746
67049
  }
66747
67050
  }
66748
67051
  afterInitMark() {
@@ -66836,6 +67139,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
66836
67139
  }
66837
67140
  initTooltip() {
66838
67141
  this._tooltipHelper = new LinkSeriesTooltipHelper(this);
67142
+ this._linkMark && this._tooltipHelper.activeTriggerSet.mark.add(this._linkMark);
67143
+ this._arrowMark && this._tooltipHelper.activeTriggerSet.mark.add(this._arrowMark);
66839
67144
  }
66840
67145
  onMarkTreePositionUpdate(marks) {
66841
67146
  marks.forEach(m => {
@@ -67099,7 +67404,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
67099
67404
  });
67100
67405
  }
67101
67406
  initMarkStyle() {
67102
- var _a;
67103
67407
  const clipMark = this._clipMark;
67104
67408
  if (clipMark) {
67105
67409
  this.setMarkStyle(clipMark, {
@@ -67150,7 +67454,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
67150
67454
  fillOpacity: this.dataToOpacity.bind(this)
67151
67455
  }, 'normal', AttributeLevel.Series);
67152
67456
  this._trigger.registerMark(dotMark);
67153
- (_a = this._tooltipHelper) === null || _a === void 0 ? void 0 : _a.activeTriggerSet.mark.add(dotMark);
67154
67457
  }
67155
67458
  const titleMark = this._titleMark;
67156
67459
  if (titleMark) {
@@ -67272,6 +67575,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
67272
67575
  }
67273
67576
  initTooltip() {
67274
67577
  this._tooltipHelper = new DotSeriesTooltipHelper(this);
67578
+ this._dotMark && this._tooltipHelper.activeTriggerSet.mark.add(this._dotMark);
67275
67579
  }
67276
67580
  onEvaluateEnd(ctx) {
67277
67581
  super.onEvaluateEnd(ctx);
@@ -67451,7 +67755,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
67451
67755
  if (dataLength) {
67452
67756
  ratio = ((seriesSpec === null || seriesSpec === void 0 ? void 0 : seriesSpec.height) || defaultSeriesRowHeight) / (dataLength * 30);
67453
67757
  }
67454
- scrollBar.push(Object.assign({ orient: 'right', visible: seriesSpec.type === SeriesTypeEnum.dot && ratio < 1, id: `scrollBarRightRow${rowNum}`, start: 0, end: Math.min(ratio, 1), roam: false, filterMode: IFilterMode.axis, regionIndex: region.length - 1, axisId: `axesLeftRow${rowNum}` }, array(spec === null || spec === void 0 ? void 0 : spec.scrollBar)[0]));
67758
+ scrollBar.push(Object.assign({ orient: 'right', visible: seriesSpec.type === SeriesTypeEnum.dot && ratio < 1, id: `scrollBarRightRow${rowNum}`, start: 0, end: Math.min(ratio, 1), filterMode: IFilterMode.axis, regionIndex: region.length - 1, axisId: `axesLeftRow${rowNum}` }, array(spec === null || spec === void 0 ? void 0 : spec.scrollBar)[0]));
67455
67759
  }
67456
67760
  seriesSpec.regionIndex = region.length - 1;
67457
67761
  rowNum++;
@@ -67630,7 +67934,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
67630
67934
  const series = Object.assign(Object.assign({}, super._getDefaultSeriesSpec(spec)), { seriesField: spec.seriesField, categoryField: spec.categoryField || spec.radiusField, valueField: spec.valueField || spec.angleField, startAngle: spec.startAngle, endAngle: spec.endAngle, radius: spec.radius, innerRadius: spec.innerRadius, centerX: spec.centerX, centerY: spec.centerY });
67631
67935
  return series;
67632
67936
  }
67633
- _transformProgressAxisSpec(spec, angleAxisDefaultSpec, radiusAxisDefaultSpec) {
67937
+ _transformProgressAxisSpec(spec, angleAxisDefaultSpec, radiusAxisDefaultSpec, angleAxisAppendSpec, radiusAxisAppendSpec) {
67634
67938
  var _a;
67635
67939
  if (!spec.axes) {
67636
67940
  spec.axes = [];
@@ -67666,6 +67970,14 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
67666
67970
  if (isNil$1(axesPtr.angle.max)) {
67667
67971
  axesPtr.angle.max = domain.max;
67668
67972
  }
67973
+ if (angleAxisAppendSpec) {
67974
+ const newSpec = mergeSpec({}, angleAxisAppendSpec, axesPtr.angle);
67975
+ Object.assign(axesPtr.angle, newSpec);
67976
+ }
67977
+ if (radiusAxisAppendSpec) {
67978
+ const newSpec = mergeSpec({}, radiusAxisAppendSpec, axesPtr.radius);
67979
+ Object.assign(axesPtr.radius, newSpec);
67980
+ }
67669
67981
  }
67670
67982
  }
67671
67983
 
@@ -67972,7 +68284,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
67972
68284
  return this._progressMark;
67973
68285
  }
67974
68286
  _initProgressMarkStyle() {
67975
- var _a, _b;
68287
+ var _a;
67976
68288
  const progressMark = this._progressMark;
67977
68289
  if (progressMark) {
67978
68290
  this.setMarkStyle(progressMark, {
@@ -67990,9 +68302,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
67990
68302
  forceShowCap: true
67991
68303
  }, 'normal', AttributeLevel.Series);
67992
68304
  this._trigger.registerMark(progressMark);
67993
- (_b = this._tooltipHelper) === null || _b === void 0 ? void 0 : _b.activeTriggerSet.mark.add(progressMark);
67994
68305
  }
67995
68306
  }
68307
+ initTooltip() {
68308
+ super.initTooltip();
68309
+ this._progressMark && this._tooltipHelper.activeTriggerSet.mark.add(this._progressMark);
68310
+ }
67996
68311
  _initTrackMark() {
67997
68312
  this._trackMark = this._createMark(CircularProgressSeries.mark.track, {
67998
68313
  parent: this._arcGroupMark
@@ -68109,7 +68424,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
68109
68424
  initGroups() {
68110
68425
  }
68111
68426
  initPointerMarkStyle() {
68112
- var _a;
68113
68427
  const pointerMark = this._pointerMark;
68114
68428
  const pointerSpec = this._spec.pointer;
68115
68429
  if (pointerMark) {
@@ -68148,9 +68462,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
68148
68462
  });
68149
68463
  }
68150
68464
  this._trigger.registerMark(pointerMark);
68151
- (_a = this._tooltipHelper) === null || _a === void 0 ? void 0 : _a.activeTriggerSet.mark.add(pointerMark);
68152
68465
  }
68153
68466
  }
68467
+ initTooltip() {
68468
+ super.initTooltip();
68469
+ this._pointerMark && this._tooltipHelper.activeTriggerSet.mark.add(this._pointerMark);
68470
+ }
68154
68471
  _getPointerWidth() {
68155
68472
  return this._spec.pointer.width * this._computeLayoutRadius();
68156
68473
  }
@@ -68287,7 +68604,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
68287
68604
  this.initSegmentMarkStyle();
68288
68605
  }
68289
68606
  initSegmentMarkStyle() {
68290
- var _a, _b;
68607
+ var _a;
68291
68608
  const segmentMark = this._segmentMark;
68292
68609
  if (segmentMark) {
68293
68610
  this.setMarkStyle(segmentMark, {
@@ -68306,9 +68623,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
68306
68623
  });
68307
68624
  segmentMark.setLabelSpec(this._preprocessLabelSpec());
68308
68625
  this._trigger.registerMark(segmentMark);
68309
- (_b = this._tooltipHelper) === null || _b === void 0 ? void 0 : _b.activeTriggerSet.mark.add(segmentMark);
68310
68626
  }
68311
68627
  }
68628
+ initTooltip() {
68629
+ super.initTooltip();
68630
+ this._segmentMark && this._tooltipHelper.activeTriggerSet.mark.add(this._segmentMark);
68631
+ }
68312
68632
  initTrackMarkStyle() {
68313
68633
  const trackMark = this._trackMark;
68314
68634
  if (trackMark) {
@@ -68421,6 +68741,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
68421
68741
  }, {
68422
68742
  orient: 'radius',
68423
68743
  visible: false
68744
+ }, {
68745
+ zIndex: LayoutZIndex.Region + 50
68424
68746
  });
68425
68747
  }
68426
68748
  else {
@@ -68462,6 +68784,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
68462
68784
  if (isNil$1(axesPtr.radius.type)) {
68463
68785
  axesPtr.radius.type = 'linear';
68464
68786
  }
68787
+ if (isNil$1(axesPtr.angle.zIndex)) {
68788
+ axesPtr.angle.zIndex = LayoutZIndex.Region + 50;
68789
+ }
68465
68790
  }
68466
68791
  }
68467
68792
  GaugeChart.type = ChartTypeEnum.gauge;
@@ -68583,7 +68908,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
68583
68908
  }
68584
68909
  }
68585
68910
  initMarkStyle() {
68586
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
68911
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
68587
68912
  const wordMark = this._wordMark;
68588
68913
  const fillingWordMark = this._fillingWordMark;
68589
68914
  const textField = ((_a = this._spec.word) === null || _a === void 0 ? void 0 : _a.formatMethod) ? WORD_CLOUD_TEXT : this._nameField;
@@ -68626,9 +68951,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
68626
68951
  }, 'normal', AttributeLevel.User_Mark);
68627
68952
  }
68628
68953
  this._trigger.registerMark(wordMark);
68629
- (_m = this._tooltipHelper) === null || _m === void 0 ? void 0 : _m.activeTriggerSet.mark.add(wordMark);
68630
68954
  this._trigger.registerMark(fillingWordMark);
68631
- (_o = this._tooltipHelper) === null || _o === void 0 ? void 0 : _o.activeTriggerSet.mark.add(fillingWordMark);
68955
+ }
68956
+ initTooltip() {
68957
+ super.initTooltip();
68958
+ this._wordMark && this._tooltipHelper.activeTriggerSet.mark.add(this._wordMark);
68959
+ this._fillingWordMark && this._tooltipHelper.activeTriggerSet.mark.add(this._fillingWordMark);
68632
68960
  }
68633
68961
  initAnimation() {
68634
68962
  [this._wordMark, this._fillingWordMark].forEach(mark => {
@@ -71006,7 +71334,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
71006
71334
  }
71007
71335
  }
71008
71336
  initMarkStyle() {
71009
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
71337
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
71010
71338
  const wordMark = this._wordMark;
71011
71339
  const fillingWordMark = this._fillingWordMark;
71012
71340
  if (wordMark) {
@@ -71050,9 +71378,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
71050
71378
  }, 'normal', AttributeLevel.User_Mark);
71051
71379
  }
71052
71380
  this._trigger.registerMark(wordMark);
71053
- (_l = this._tooltipHelper) === null || _l === void 0 ? void 0 : _l.activeTriggerSet.mark.add(wordMark);
71054
71381
  this._trigger.registerMark(fillingWordMark);
71055
- (_m = this._tooltipHelper) === null || _m === void 0 ? void 0 : _m.activeTriggerSet.mark.add(fillingWordMark);
71056
71382
  }
71057
71383
  initAnimation() {
71058
71384
  var _a, _b;
@@ -71339,6 +71665,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
71339
71665
  }
71340
71666
  initTooltip() {
71341
71667
  this._tooltipHelper = new FunnelSeriesTooltipHelper(this);
71668
+ this._funnelMark && this._tooltipHelper.activeTriggerSet.mark.add(this._funnelMark);
71669
+ this._funnelTransformMark && this._tooltipHelper.activeTriggerSet.mark.add(this._funnelTransformMark);
71342
71670
  }
71343
71671
  getDimensionField() {
71344
71672
  return this._seriesField ? [this._seriesField] : [];
@@ -71350,7 +71678,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
71350
71678
  return null;
71351
71679
  }
71352
71680
  initMarkStyle() {
71353
- var _a, _b;
71354
71681
  const funnelMark = this._funnelMark;
71355
71682
  if (funnelMark) {
71356
71683
  this.setMarkStyle(funnelMark, {
@@ -71359,13 +71686,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
71359
71686
  fill: this.getColorAttribute()
71360
71687
  }, 'normal', AttributeLevel.Series);
71361
71688
  this._trigger.registerMark(funnelMark);
71362
- (_a = this._tooltipHelper) === null || _a === void 0 ? void 0 : _a.activeTriggerSet.mark.add(funnelMark);
71363
71689
  }
71364
71690
  const funnelTransformMark = this._funnelTransformMark;
71365
71691
  if (funnelTransformMark) {
71366
71692
  this.setMarkStyle(funnelTransformMark, { points: (datum) => this.getPoints(datum) }, 'normal', AttributeLevel.Series);
71367
71693
  this._trigger.registerMark(funnelTransformMark);
71368
- (_b = this._tooltipHelper) === null || _b === void 0 ? void 0 : _b.activeTriggerSet.mark.add(funnelTransformMark);
71369
71694
  }
71370
71695
  const outerLabelMark = this._funnelOuterLabelMark.label;
71371
71696
  if (outerLabelMark) {
@@ -72068,7 +72393,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
72068
72393
  return this._progressMark;
72069
72394
  }
72070
72395
  _initProgressMarkStyle() {
72071
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
72396
+ var _a, _b, _c, _d, _e, _f, _g, _h;
72072
72397
  const progressMark = this._progressMark;
72073
72398
  if (progressMark) {
72074
72399
  if (this._spec.direction === 'vertical') {
@@ -72110,7 +72435,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
72110
72435
  }, 'normal', AttributeLevel.Series);
72111
72436
  }
72112
72437
  this._trigger.registerMark(progressMark);
72113
- (_j = this._tooltipHelper) === null || _j === void 0 ? void 0 : _j.activeTriggerSet.mark.add(progressMark);
72114
72438
  }
72115
72439
  }
72116
72440
  _initTrackMark() {
@@ -72120,7 +72444,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
72120
72444
  return this._trackMark;
72121
72445
  }
72122
72446
  _initTrackMarkStyle() {
72123
- var _a;
72124
72447
  const trackMark = this._trackMark;
72125
72448
  if (trackMark) {
72126
72449
  if (this._spec.direction === 'vertical') {
@@ -72150,7 +72473,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
72150
72473
  }, 'normal', AttributeLevel.Series);
72151
72474
  }
72152
72475
  this._trigger.registerMark(trackMark);
72153
- (_a = this._tooltipHelper) === null || _a === void 0 ? void 0 : _a.activeTriggerSet.mark.add(trackMark);
72154
72476
  }
72155
72477
  }
72156
72478
  _initProgressGroupMark() {
@@ -72215,6 +72537,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
72215
72537
  }
72216
72538
  initTooltip() {
72217
72539
  this._tooltipHelper = new LinearProgressSeriesTooltipHelper(this);
72540
+ this._progressMark && this._tooltipHelper.activeTriggerSet.mark.add(this._progressMark);
72541
+ this._trackMark && this._tooltipHelper.activeTriggerSet.mark.add(this._trackMark);
72218
72542
  }
72219
72543
  getActiveMarks() {
72220
72544
  return [this._progressMark];
@@ -72578,7 +72902,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
72578
72902
  }
72579
72903
  }
72580
72904
  initMarkStyle() {
72581
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
72905
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
72582
72906
  super.initMarkStyle();
72583
72907
  const minLabelMark = this._minLabelMark;
72584
72908
  const minLabelSpec = (_a = this._spec.label) === null || _a === void 0 ? void 0 : _a.minLabel;
@@ -72606,13 +72930,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
72606
72930
  : this._rectMark.getAttribute('y', datum) +
72607
72931
  this._rectMark.getAttribute('height', datum);
72608
72932
  }, () => this._direction);
72609
- (_f = this._tooltipHelper) === null || _f === void 0 ? void 0 : _f.ignoreTriggerSet.mark.add(minLabelMark);
72610
72933
  }
72611
72934
  const maxLabelMark = this._maxLabelMark;
72612
- const maxLabelSpec = (_g = this._spec.label) === null || _g === void 0 ? void 0 : _g.maxLabel;
72935
+ const maxLabelSpec = (_f = this._spec.label) === null || _f === void 0 ? void 0 : _f.maxLabel;
72613
72936
  if (maxLabelMark) {
72614
72937
  this.setMarkStyle(maxLabelMark, {
72615
- fill: (_j = (_h = maxLabelSpec === null || maxLabelSpec === void 0 ? void 0 : maxLabelSpec.style) === null || _h === void 0 ? void 0 : _h.fill) !== null && _j !== void 0 ? _j : this.getColorAttribute(),
72938
+ fill: (_h = (_g = maxLabelSpec === null || maxLabelSpec === void 0 ? void 0 : maxLabelSpec.style) === null || _g === void 0 ? void 0 : _g.fill) !== null && _h !== void 0 ? _h : this.getColorAttribute(),
72616
72939
  text: (datum) => {
72617
72940
  const max = this._spec.direction === Direction.horizontal ? datum[this._spec.xField[1]] : datum[this._spec.yField[1]];
72618
72941
  if (maxLabelSpec === null || maxLabelSpec === void 0 ? void 0 : maxLabelSpec.formatMethod) {
@@ -72621,8 +72944,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
72621
72944
  return max;
72622
72945
  }
72623
72946
  });
72624
- const position = (_k = maxLabelSpec === null || maxLabelSpec === void 0 ? void 0 : maxLabelSpec.position) !== null && _k !== void 0 ? _k : 'start';
72625
- const offset = (_l = maxLabelSpec === null || maxLabelSpec === void 0 ? void 0 : maxLabelSpec.offset) !== null && _l !== void 0 ? _l : (this._direction === 'vertical' ? -20 : -25);
72947
+ const position = (_j = maxLabelSpec === null || maxLabelSpec === void 0 ? void 0 : maxLabelSpec.position) !== null && _j !== void 0 ? _j : 'start';
72948
+ const offset = (_k = maxLabelSpec === null || maxLabelSpec === void 0 ? void 0 : maxLabelSpec.offset) !== null && _k !== void 0 ? _k : (this._direction === 'vertical' ? -20 : -25);
72626
72949
  setRectLabelPos(this, maxLabelMark, position, offset, (datum) => this._rectMark.getAttribute('x', datum), (datum) => {
72627
72950
  return this._direction === 'vertical'
72628
72951
  ? this._rectMark.getAttribute('x', datum) +
@@ -72634,11 +72957,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
72634
72957
  : this._rectMark.getAttribute('y', datum) +
72635
72958
  this._rectMark.getAttribute('height', datum);
72636
72959
  }, () => this._direction);
72637
- (_m = this._tooltipHelper) === null || _m === void 0 ? void 0 : _m.ignoreTriggerSet.mark.add(maxLabelMark);
72638
72960
  }
72639
72961
  }
72640
72962
  initLabelMarkStyle(labelMark) {
72641
- var _a;
72642
72963
  if (!labelMark) {
72643
72964
  return;
72644
72965
  }
@@ -72658,7 +72979,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
72658
72979
  },
72659
72980
  z: this._fieldZ ? this.dataToPositionZ.bind(this) : null
72660
72981
  });
72661
- (_a = this._tooltipHelper) === null || _a === void 0 ? void 0 : _a.ignoreTriggerSet.mark.add(labelMark);
72982
+ this._labelMark = labelMark;
72662
72983
  }
72663
72984
  initBandRectMarkStyle() {
72664
72985
  var _a, _b, _c, _d;
@@ -72711,6 +73032,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
72711
73032
  }
72712
73033
  initTooltip() {
72713
73034
  this._tooltipHelper = new RangeColumnSeriesTooltipHelper(this);
73035
+ this._minLabelMark && this._tooltipHelper.ignoreTriggerSet.mark.add(this._minLabelMark);
73036
+ this._maxLabelMark && this._tooltipHelper.ignoreTriggerSet.mark.add(this._maxLabelMark);
73037
+ this._labelMark && this._tooltipHelper.ignoreTriggerSet.mark.add(this._labelMark);
72714
73038
  }
72715
73039
  }
72716
73040
  RangeColumnSeries.type = SeriesTypeEnum.rangeColumn;
@@ -73898,7 +74222,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
73898
74222
  this._initLabelMarkStyle();
73899
74223
  }
73900
74224
  _initArcMark() {
73901
- var _a;
73902
74225
  if (this._sunburst.visible === false) {
73903
74226
  return;
73904
74227
  }
@@ -73907,7 +74230,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
73907
74230
  });
73908
74231
  this._sunburstMark = sunburstMark;
73909
74232
  this._trigger.registerMark(this._sunburstMark);
73910
- (_a = this._tooltipHelper) === null || _a === void 0 ? void 0 : _a.activeTriggerSet.mark.add(this._sunburstMark);
73911
74233
  }
73912
74234
  _initArcMarkStyle() {
73913
74235
  if (isNil$1(this._sunburstMark)) {
@@ -73924,7 +74246,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
73924
74246
  }, STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
73925
74247
  }
73926
74248
  _initLabelMark() {
73927
- var _a;
73928
74249
  if (this._label.visible !== true) {
73929
74250
  return;
73930
74251
  }
@@ -73933,7 +74254,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
73933
74254
  });
73934
74255
  this._labelMark = labelMark;
73935
74256
  this._trigger.registerMark(labelMark);
73936
- (_a = this._tooltipHelper) === null || _a === void 0 ? void 0 : _a.activeTriggerSet.mark.add(labelMark);
73937
74257
  }
73938
74258
  _initLabelMarkStyle() {
73939
74259
  if (isNil$1(this._labelMark)) {
@@ -73960,6 +74280,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
73960
74280
  }
73961
74281
  initTooltip() {
73962
74282
  this._tooltipHelper = new SunburstTooltipHelper(this);
74283
+ this._sunburstMark && this._tooltipHelper.activeTriggerSet.mark.add(this._sunburstMark);
74284
+ this._labelMark && this._tooltipHelper.activeTriggerSet.mark.add(this._labelMark);
73963
74285
  }
73964
74286
  initAnimation() {
73965
74287
  var _a, _b;
@@ -74233,7 +74555,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
74233
74555
  this._initLabelMarkStyle();
74234
74556
  }
74235
74557
  _initCirclePackingMark() {
74236
- var _a, _b;
74558
+ var _a;
74237
74559
  if (((_a = this._circlePacking) === null || _a === void 0 ? void 0 : _a.visible) === false) {
74238
74560
  return;
74239
74561
  }
@@ -74242,7 +74564,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
74242
74564
  });
74243
74565
  this._circlePackingMark = circlePacking;
74244
74566
  this._trigger.registerMark(circlePacking);
74245
- (_b = this._tooltipHelper) === null || _b === void 0 ? void 0 : _b.activeTriggerSet.mark.add(circlePacking);
74246
74567
  }
74247
74568
  _initCirclePackingMarkStyle() {
74248
74569
  if (isNil$1(this._circlePackingMark)) {
@@ -74260,7 +74581,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
74260
74581
  }, STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
74261
74582
  }
74262
74583
  _initLabelMark() {
74263
- var _a, _b;
74584
+ var _a;
74264
74585
  if (((_a = this._label) === null || _a === void 0 ? void 0 : _a.visible) === false) {
74265
74586
  return;
74266
74587
  }
@@ -74269,7 +74590,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
74269
74590
  });
74270
74591
  this._labelMark = labelMark;
74271
74592
  this._trigger.registerMark(labelMark);
74272
- (_b = this._tooltipHelper) === null || _b === void 0 ? void 0 : _b.activeTriggerSet.mark.add(labelMark);
74273
74593
  }
74274
74594
  _initLabelMarkStyle() {
74275
74595
  if (isNil$1(this._labelMark)) {
@@ -74307,6 +74627,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
74307
74627
  }
74308
74628
  initTooltip() {
74309
74629
  this._tooltipHelper = new CirclePackingTooltipHelper(this);
74630
+ this._tooltipHelper.updateTooltipSpec();
74631
+ this._circlePackingMark && this._tooltipHelper.activeTriggerSet.mark.add(this._circlePackingMark);
74632
+ this._labelMark && this._tooltipHelper.activeTriggerSet.mark.add(this._labelMark);
74310
74633
  }
74311
74634
  initAnimation() {
74312
74635
  var _a, _b;
@@ -74615,7 +74938,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
74615
74938
  ]);
74616
74939
  }
74617
74940
  initMark() {
74618
- var _a, _b, _c, _d, _e, _f;
74941
+ var _a, _b;
74619
74942
  const nonLeafMark = this._createMark(TreemapSeries.mark.nonLeaf, { isSeriesMark: true });
74620
74943
  if (nonLeafMark) {
74621
74944
  nonLeafMark.setTransform([
@@ -74628,7 +74951,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
74628
74951
  ]);
74629
74952
  this._trigger.registerMark(nonLeafMark);
74630
74953
  this._nonLeafMark = nonLeafMark;
74631
- (_a = this._tooltipHelper) === null || _a === void 0 ? void 0 : _a.activeTriggerSet.mark.add(nonLeafMark);
74632
74954
  }
74633
74955
  const leafMark = this._createMark(TreemapSeries.mark.leaf, { isSeriesMark: true });
74634
74956
  if (leafMark) {
@@ -74642,9 +74964,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
74642
74964
  ]);
74643
74965
  this._leafMark = leafMark;
74644
74966
  this._trigger.registerMark(leafMark);
74645
- (_b = this._tooltipHelper) === null || _b === void 0 ? void 0 : _b.activeTriggerSet.mark.add(leafMark);
74646
74967
  }
74647
- if ((_c = this._spec.label) === null || _c === void 0 ? void 0 : _c.visible) {
74968
+ if ((_a = this._spec.label) === null || _a === void 0 ? void 0 : _a.visible) {
74648
74969
  const textMark = this._createMark(TreemapSeries.mark.label, {
74649
74970
  skipBeforeLayouted: false
74650
74971
  });
@@ -74659,10 +74980,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
74659
74980
  ]);
74660
74981
  this._labelMark = textMark;
74661
74982
  this._trigger.registerMark(textMark);
74662
- (_d = this._tooltipHelper) === null || _d === void 0 ? void 0 : _d.activeTriggerSet.mark.add(textMark);
74663
74983
  }
74664
74984
  }
74665
- if ((_e = this._spec.nonLeafLabel) === null || _e === void 0 ? void 0 : _e.visible) {
74985
+ if ((_b = this._spec.nonLeafLabel) === null || _b === void 0 ? void 0 : _b.visible) {
74666
74986
  const textMark = this._createMark(TreemapSeries.mark.nonLeafLabel);
74667
74987
  if (textMark) {
74668
74988
  textMark.setTransform([
@@ -74675,7 +74995,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
74675
74995
  ]);
74676
74996
  this._nonLeafLabelMark = textMark;
74677
74997
  this._trigger.registerMark(textMark);
74678
- (_f = this._tooltipHelper) === null || _f === void 0 ? void 0 : _f.activeTriggerSet.mark.add(textMark);
74679
74998
  }
74680
74999
  }
74681
75000
  }
@@ -74792,6 +75111,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
74792
75111
  }
74793
75112
  initTooltip() {
74794
75113
  this._tooltipHelper = new TreemapTooltipHelper(this);
75114
+ this._nonLeafLabelMark && this._tooltipHelper.activeTriggerSet.mark.add(this._nonLeafMark);
75115
+ this._leafMark && this._tooltipHelper.activeTriggerSet.mark.add(this._leafMark);
75116
+ this._labelMark && this._tooltipHelper.activeTriggerSet.mark.add(this._labelMark);
75117
+ this._nonLeafLabelMark && this._tooltipHelper.activeTriggerSet.mark.add(this._nonLeafLabelMark);
74795
75118
  }
74796
75119
  _shouldFilterElement(datum, nodeType) {
74797
75120
  const isLeaf = datum.isLeaf;
@@ -75594,7 +75917,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
75594
75917
  transformSpec(spec) {
75595
75918
  super.transformSpec(spec);
75596
75919
  if (spec.legends) {
75597
- array(spec.legends).forEach(l => {
75920
+ array(spec.legends).forEach((l) => {
75598
75921
  l.select = false;
75599
75922
  l.hover = false;
75600
75923
  l.filter = false;
@@ -75901,7 +76224,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
75901
76224
  });
75902
76225
  }
75903
76226
  initMarkStyle() {
75904
- var _a, _b, _c, _d, _e, _f, _g;
76227
+ var _a, _b, _c, _d, _e;
75905
76228
  const boxPlotMark = this._boxPlotMark;
75906
76229
  if (boxPlotMark) {
75907
76230
  const commonBoxplotStyles = {
@@ -75916,17 +76239,15 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
75916
76239
  ? Object.assign(Object.assign({ x: this.dataToPositionX.bind(this) }, commonBoxplotStyles), { boxWidth: () => { var _a; return (_a = this._boxWidth) !== null && _a !== void 0 ? _a : this._getMarkWidth(); }, ruleWidth: () => { var _a; return (_a = this._shaftWidth) !== null && _a !== void 0 ? _a : this._getMarkWidth(); }, q1q3Width: () => { var _a; return (_a = this._boxWidth) !== null && _a !== void 0 ? _a : this._getMarkWidth(); }, minMaxWidth: () => { var _a; return (_a = this._shaftWidth) !== null && _a !== void 0 ? _a : this._getMarkWidth(); } }) : Object.assign(Object.assign({ y: this.dataToPositionY.bind(this) }, commonBoxplotStyles), { boxHeight: () => { var _a; return (_a = this._boxWidth) !== null && _a !== void 0 ? _a : this._getMarkWidth(); }, ruleHeight: () => { var _a; return (_a = this._shaftWidth) !== null && _a !== void 0 ? _a : this._getMarkWidth(); }, q1q3Height: () => { var _a; return (_a = this._boxWidth) !== null && _a !== void 0 ? _a : this._getMarkWidth(); }, minMaxHeight: () => { var _a; return (_a = this._shaftWidth) !== null && _a !== void 0 ? _a : this._getMarkWidth(); } });
75917
76240
  this.setMarkStyle(boxPlotMark, boxPlotMarkStyles, STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
75918
76241
  this._trigger.registerMark(boxPlotMark);
75919
- (_c = this._tooltipHelper) === null || _c === void 0 ? void 0 : _c.activeTriggerSet.mark.add(boxPlotMark);
75920
76242
  }
75921
76243
  const outlierMark = this._outlierMark;
75922
76244
  if (outlierMark) {
75923
76245
  this.setMarkStyle(outlierMark, {
75924
- fill: (_e = (_d = this._outliersStyle) === null || _d === void 0 ? void 0 : _d.fill) !== null && _e !== void 0 ? _e : this.getColorAttribute(),
75925
- size: isNumber$2((_f = this._outliersStyle) === null || _f === void 0 ? void 0 : _f.size) ? this._outliersStyle.size : DEFAULT_OUTLIER_SIZE,
76246
+ fill: (_d = (_c = this._outliersStyle) === null || _c === void 0 ? void 0 : _c.fill) !== null && _d !== void 0 ? _d : this.getColorAttribute(),
76247
+ size: isNumber$2((_e = this._outliersStyle) === null || _e === void 0 ? void 0 : _e.size) ? this._outliersStyle.size : DEFAULT_OUTLIER_SIZE,
75926
76248
  symbolType: 'circle'
75927
76249
  }, STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
75928
76250
  this._trigger.registerMark(outlierMark);
75929
- (_g = this._tooltipHelper) === null || _g === void 0 ? void 0 : _g.activeTriggerSet.mark.add(outlierMark);
75930
76251
  }
75931
76252
  }
75932
76253
  initBoxPlotMarkStyle() {
@@ -76022,7 +76343,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
76022
76343
  this._autoBoxWidth = null;
76023
76344
  }
76024
76345
  _initAnimationSpec(config = {}) {
76025
- const newConfig = Object.assign({}, config);
76346
+ const newConfig = merge$1({}, config);
76026
76347
  ['appear', 'enter', 'update', 'exit', 'disappear'].forEach(state => {
76027
76348
  if (newConfig[state] && newConfig[state].type === 'scaleIn') {
76028
76349
  newConfig[state].type = this._shaftShape === 'line' ? 'boxplotScaleIn' : 'barBoxplotScaleIn';
@@ -76062,6 +76383,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
76062
76383
  }
76063
76384
  initTooltip() {
76064
76385
  this._tooltipHelper = new BoxPlotSeriesTooltipHelper(this);
76386
+ this._boxPlotMark && this._tooltipHelper.activeTriggerSet.mark.add(this._boxPlotMark);
76387
+ this._outlierMark && this._tooltipHelper.activeTriggerSet.mark.add(this._outlierMark);
76065
76388
  }
76066
76389
  getStatisticFields() {
76067
76390
  const fields = super.getStatisticFields();
@@ -77534,7 +77857,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
77534
77857
  this._initLabelMarkStyle();
77535
77858
  }
77536
77859
  _initNodeMarkStyle() {
77537
- var _a;
77538
77860
  const nodeMark = this._nodeMark;
77539
77861
  if (!nodeMark) {
77540
77862
  return;
@@ -77552,10 +77874,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
77552
77874
  }
77553
77875
  }, STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Mark);
77554
77876
  this._trigger.registerMark(nodeMark);
77555
- (_a = this._tooltipHelper) === null || _a === void 0 ? void 0 : _a.activeTriggerSet.mark.add(nodeMark);
77556
77877
  }
77557
77878
  _initLinkMarkStyle() {
77558
- var _a, _b;
77879
+ var _a;
77559
77880
  const linkMark = this._linkMark;
77560
77881
  if (!linkMark) {
77561
77882
  return;
@@ -77576,10 +77897,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
77576
77897
  direction: (_a = this._spec.direction) !== null && _a !== void 0 ? _a : 'horizontal'
77577
77898
  }, STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
77578
77899
  this._trigger.registerMark(linkMark);
77579
- (_b = this._tooltipHelper) === null || _b === void 0 ? void 0 : _b.activeTriggerSet.mark.add(linkMark);
77580
77900
  }
77581
77901
  _initLabelMarkStyle() {
77582
- var _a;
77583
77902
  if (!this._labelMark) {
77584
77903
  return;
77585
77904
  }
@@ -77731,7 +78050,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
77731
78050
  }
77732
78051
  this._labelMark.setZIndex(this._labelLayoutZIndex);
77733
78052
  this._trigger.registerMark(this._labelMark);
77734
- (_a = this._tooltipHelper) === null || _a === void 0 ? void 0 : _a.activeTriggerSet.mark.add(this._labelMark);
77735
78053
  }
77736
78054
  _createText(datum) {
77737
78055
  var _a;
@@ -77798,6 +78116,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
77798
78116
  }
77799
78117
  initTooltip() {
77800
78118
  this._tooltipHelper = new SankeySeriesTooltipHelper(this);
78119
+ this._nodeMark && this._tooltipHelper.activeTriggerSet.mark.add(this._nodeMark);
78120
+ this._linkMark && this._tooltipHelper.activeTriggerSet.mark.add(this._linkMark);
78121
+ this._labelMark && this._tooltipHelper.activeTriggerSet.mark.add(this._labelMark);
77801
78122
  }
77802
78123
  getNodeOrdinalColorScale(item) {
77803
78124
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
@@ -78073,11 +78394,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
78073
78394
  curveType
78074
78395
  }, 'normal', AttributeLevel.Built_In);
78075
78396
  this._trigger.registerMark(areaMark);
78076
- this._tooltipHelper.activeTriggerSet.dimension.add(areaMark);
78077
78397
  }
78078
78398
  }
78079
78399
  initTooltip() {
78080
78400
  this._tooltipHelper = new RangeAreaSeriesTooltipHelper(this);
78401
+ this._areaMark && this._tooltipHelper.activeTriggerSet.dimension.add(this._areaMark);
78081
78402
  }
78082
78403
  viewDataStatisticsUpdate(d) {
78083
78404
  super.viewDataStatisticsUpdate(d);
@@ -78196,7 +78517,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
78196
78517
  });
78197
78518
  }
78198
78519
  initCellMarkStyle() {
78199
- var _a;
78200
78520
  this.setMarkStyle(this._cellMark, {
78201
78521
  x: (datum) => {
78202
78522
  const pos = this.dataToPositionX(datum);
@@ -78212,7 +78532,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
78212
78532
  fill: this.getColorAttribute()
78213
78533
  }, 'normal', AttributeLevel.Series);
78214
78534
  this._trigger.registerMark(this._cellMark);
78215
- (_a = this._tooltipHelper) === null || _a === void 0 ? void 0 : _a.activeTriggerSet.mark.add(this._cellMark);
78216
78535
  }
78217
78536
  initCellBackgroundMarkStyle() {
78218
78537
  var _a, _b, _c;
@@ -78262,6 +78581,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
78262
78581
  }
78263
78582
  initTooltip() {
78264
78583
  this._tooltipHelper = new HeatmapSeriesTooltipHelper(this);
78584
+ this._cellMark && this._tooltipHelper.activeTriggerSet.mark.add(this._cellMark);
78265
78585
  }
78266
78586
  getDefaultShapeType() {
78267
78587
  return 'square';
@@ -78303,6 +78623,467 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
78303
78623
  Factory.registerChart(HeatmapChart.type, HeatmapChart);
78304
78624
  };
78305
78625
 
78626
+ const correlation = (data, options) => {
78627
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
78628
+ if (!data || !(options === null || options === void 0 ? void 0 : options.view) || !isArray$1(data)) {
78629
+ return data;
78630
+ }
78631
+ const viewBox = options.view();
78632
+ if (viewBox.x1 - viewBox.x0 === 0 ||
78633
+ viewBox.y1 - viewBox.y0 === 0 ||
78634
+ viewBox.x1 - viewBox.x0 === -Infinity ||
78635
+ viewBox.x1 - viewBox.x0 === Infinity ||
78636
+ viewBox.y1 - viewBox.y0 === -Infinity ||
78637
+ viewBox.y1 - viewBox.y0 === Infinity) {
78638
+ return data;
78639
+ }
78640
+ const startAngle = degreeToRadian((_a = options.startAngle) !== null && _a !== void 0 ? _a : -90);
78641
+ const endAngle = degreeToRadian((_b = options.endAngle) !== null && _b !== void 0 ? _b : 270);
78642
+ const maxRadius = Math.max((viewBox.x1 - viewBox.x0) / 2, (viewBox.y1 - viewBox.y0) / 2);
78643
+ const innerRadius = toPercent((_c = options.innerRadius) !== null && _c !== void 0 ? _c : 0, maxRadius);
78644
+ const outerRadius = toPercent(options.outerRadius, maxRadius);
78645
+ const center = [
78646
+ isNumber$2((_d = options.center) === null || _d === void 0 ? void 0 : _d[0])
78647
+ ? options.center[0]
78648
+ : viewBox.x0 + toPercent((_f = (_e = options.center) === null || _e === void 0 ? void 0 : _e[0]) !== null && _f !== void 0 ? _f : '50%', viewBox.x1 - viewBox.x0),
78649
+ isNumber$2((_g = options.center) === null || _g === void 0 ? void 0 : _g[1])
78650
+ ? options.center[1]
78651
+ : viewBox.y0 + toPercent((_j = (_h = options.center) === null || _h === void 0 ? void 0 : _h[1]) !== null && _j !== void 0 ? _j : '50%', viewBox.y1 - viewBox.y0)
78652
+ ];
78653
+ const fieldAccessor = field$3(options.field);
78654
+ const values = data.map(fieldAccessor);
78655
+ const [min, max] = extent$2(values);
78656
+ const radiusScale = min === max
78657
+ ? (val) => (innerRadius + outerRadius) / 2
78658
+ : (val) => innerRadius + ((outerRadius - innerRadius) * (val - min)) / (max - min);
78659
+ const sizeAccessor = !isNil$1(options.radiusField) ? field$3(options.radiusField) : fieldAccessor;
78660
+ const defaultSize = (_l = (_k = options === null || options === void 0 ? void 0 : options.radiusRange) === null || _k === void 0 ? void 0 : _k[1]) !== null && _l !== void 0 ? _l : 5;
78661
+ let sizeScale = (datum) => defaultSize;
78662
+ if (sizeAccessor) {
78663
+ const [minSize, maxSize] = sizeAccessor !== fieldAccessor ? extent$2(data.map(sizeAccessor)) : [min, max];
78664
+ const minR = (_o = (_m = options.radiusRange) === null || _m === void 0 ? void 0 : _m[0]) !== null && _o !== void 0 ? _o : 5;
78665
+ const maxR = (_q = (_p = options.radiusRange) === null || _p === void 0 ? void 0 : _p[1]) !== null && _q !== void 0 ? _q : 5;
78666
+ if (minSize !== maxSize) {
78667
+ sizeScale = (datum) => minR + ((maxR - minR) * (sizeAccessor(datum) - minSize)) / (maxSize - minSize);
78668
+ }
78669
+ }
78670
+ const minAngle = Math.min(startAngle, endAngle);
78671
+ const maxAngle = Math.max(startAngle, endAngle);
78672
+ const angles = getPartialAngles(minAngle, maxAngle, data.length);
78673
+ const res = [];
78674
+ const searchStep = 60;
78675
+ const searchAngle = (maxAngle - minAngle) / searchStep;
78676
+ data.forEach((datum, index) => {
78677
+ const radius = radiusScale(values[index]);
78678
+ const size = sizeScale(datum);
78679
+ let x;
78680
+ let y;
78681
+ let angle = angles[index];
78682
+ for (let i = 0; i < searchStep; i++) {
78683
+ x = center[0] + radius * Math.cos(angle);
78684
+ y = center[1] + radius * Math.sin(angle);
78685
+ if (hasOverlap({ x, y, size }, res) ||
78686
+ x - size < viewBox.x0 ||
78687
+ x + size > viewBox.x1 ||
78688
+ y - size < viewBox.y0 ||
78689
+ y + size > viewBox.y1) {
78690
+ if (i < searchStep - 1) {
78691
+ angle += searchAngle;
78692
+ if (angle > maxAngle) {
78693
+ angle = minAngle;
78694
+ }
78695
+ else if (angle < minAngle) {
78696
+ angle = maxAngle;
78697
+ }
78698
+ }
78699
+ continue;
78700
+ }
78701
+ else {
78702
+ break;
78703
+ }
78704
+ }
78705
+ res.push(Object.assign({ [CORRELATION_X]: x, [CORRELATION_Y]: y, [CORRELATION_SIZE]: size }, datum));
78706
+ });
78707
+ return res;
78708
+ };
78709
+ const getPartialAngles = (minAngle, maxAngle, count) => {
78710
+ let offsetAngle = 0;
78711
+ let stepCount = Math.max(Math.ceil((2 * (maxAngle - minAngle)) / Math.PI), 2);
78712
+ let stepAngle = (maxAngle - minAngle) / stepCount;
78713
+ let stepIndex = 0;
78714
+ let stepSign = 1;
78715
+ let i = 0;
78716
+ let j = 0;
78717
+ const res = [];
78718
+ let startAngle = minAngle;
78719
+ while (i < count) {
78720
+ if (j < stepCount) {
78721
+ res.push(startAngle + (j % 2 ? Math.floor(j / 2) + Math.floor(stepCount / 2) : j / 2) * stepAngle * stepSign);
78722
+ j++;
78723
+ }
78724
+ i++;
78725
+ if (j === stepCount) {
78726
+ j = 0;
78727
+ stepIndex += 1;
78728
+ stepSign *= -1;
78729
+ if (offsetAngle === 0) {
78730
+ offsetAngle = stepAngle / 2;
78731
+ }
78732
+ else {
78733
+ offsetAngle /= 2;
78734
+ }
78735
+ startAngle = stepSign === -1 ? maxAngle - offsetAngle : minAngle + offsetAngle;
78736
+ if (stepIndex >= 2) {
78737
+ stepAngle /= 2;
78738
+ stepCount *= 2;
78739
+ }
78740
+ }
78741
+ }
78742
+ return res;
78743
+ };
78744
+ const hasOverlap = (item, arr) => {
78745
+ if (!arr || !arr.length) {
78746
+ return false;
78747
+ }
78748
+ return arr.some(entry => {
78749
+ return Math.pow(item.x - entry.x, 2) + Math.pow(item.y - entry.y, 2) < Math.pow(item.size + entry.size, 2);
78750
+ });
78751
+ };
78752
+
78753
+ const correlationCenter = (data, options) => {
78754
+ if (!data || !isArray$1(data)) {
78755
+ return [];
78756
+ }
78757
+ const { keyword, categoryField } = options;
78758
+ const nodeInfo = data[0].latestData[0];
78759
+ const centerInfo = {
78760
+ [categoryField]: keyword,
78761
+ [DEFAULT_DATA_INDEX]: nodeInfo === null || nodeInfo === void 0 ? void 0 : nodeInfo[DEFAULT_DATA_INDEX],
78762
+ [DEFAULT_DATA_SERIES_FIELD]: nodeInfo === null || nodeInfo === void 0 ? void 0 : nodeInfo[DEFAULT_DATA_SERIES_FIELD]
78763
+ };
78764
+ return centerInfo;
78765
+ };
78766
+
78767
+ const correlationPresetAnimation = (_params, preset) => {
78768
+ switch (preset) {
78769
+ case 'fadeIn': {
78770
+ return {
78771
+ type: 'fadeIn'
78772
+ };
78773
+ }
78774
+ case 'scaleIn': {
78775
+ return {
78776
+ type: 'scaleIn'
78777
+ };
78778
+ }
78779
+ default: {
78780
+ return {
78781
+ type: 'scaleIn'
78782
+ };
78783
+ }
78784
+ }
78785
+ };
78786
+ const registerCorrelationAnimation = () => {
78787
+ Factory.registerAnimation('correlation', (params, preset) => (Object.assign({ appear: correlationPresetAnimation(params, preset) }, ScaleInOutAnimation)));
78788
+ };
78789
+
78790
+ class CorrelationSeries extends PolarSeries {
78791
+ constructor() {
78792
+ super(...arguments);
78793
+ this.type = SeriesTypeEnum.correlation;
78794
+ this._viewBox = new Bounds();
78795
+ }
78796
+ getCategoryField() {
78797
+ return this._categoryField;
78798
+ }
78799
+ setCategoryField(f) {
78800
+ this._categoryField = f;
78801
+ return this._categoryField;
78802
+ }
78803
+ getValueField() {
78804
+ return this._valueField;
78805
+ }
78806
+ setValueField(f) {
78807
+ this._valueField = f;
78808
+ return this._valueField;
78809
+ }
78810
+ getSeriesField() {
78811
+ return this._seriesField;
78812
+ }
78813
+ setSeriesField(field) {
78814
+ if (isValid$1(field)) {
78815
+ this._seriesField = field;
78816
+ }
78817
+ }
78818
+ getSizeField() {
78819
+ return this._sizeField;
78820
+ }
78821
+ setSizeField(field) {
78822
+ if (isValid$1(field)) {
78823
+ this._sizeField = field;
78824
+ }
78825
+ }
78826
+ getSizeRange() {
78827
+ return this._sizeRange;
78828
+ }
78829
+ setSizeRange(range) {
78830
+ if (isValid$1(range)) {
78831
+ this._sizeRange = range;
78832
+ }
78833
+ }
78834
+ setAttrFromSpec() {
78835
+ super.setAttrFromSpec();
78836
+ this.setCategoryField(this._spec.categoryField);
78837
+ this.setValueField(this._spec.valueField);
78838
+ this.setSeriesField(this._spec.seriesField);
78839
+ this.setSizeField(this._spec.sizeField);
78840
+ this.setSizeRange(this._spec.sizeRange);
78841
+ }
78842
+ initData() {
78843
+ var _a, _b, _c, _d;
78844
+ super.initData();
78845
+ if (!this._data) {
78846
+ return;
78847
+ }
78848
+ registerDataSetInstanceTransform(this._dataSet, 'correlation', correlation);
78849
+ const centerDataSet = new DataSet();
78850
+ registerDataSetInstanceParser(centerDataSet, 'dataview', dataViewParser);
78851
+ registerDataSetInstanceTransform(centerDataSet, 'correlationCenter', correlationCenter);
78852
+ const centerDataView = new DataView(centerDataSet);
78853
+ centerDataView.parse([this.getViewData()], {
78854
+ type: 'dataview'
78855
+ });
78856
+ centerDataView.transform({
78857
+ type: 'correlationCenter',
78858
+ options: {
78859
+ keyword: (_d = (_c = (_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.centerLabel) === null || _b === void 0 ? void 0 : _b.style) === null || _c === void 0 ? void 0 : _c.text) !== null && _d !== void 0 ? _d : '',
78860
+ categoryField: this._spec.categoryField
78861
+ }
78862
+ });
78863
+ this._centerSeriesData = new SeriesData(this._option, centerDataView);
78864
+ }
78865
+ _statisticViewData() {
78866
+ super._statisticViewData();
78867
+ this._data.getDataView().transform({
78868
+ type: 'correlation',
78869
+ options: {
78870
+ view: () => {
78871
+ return {
78872
+ x0: this._viewBox.x1,
78873
+ x1: this._viewBox.x2,
78874
+ y0: this._viewBox.y1,
78875
+ y1: this._viewBox.y2
78876
+ };
78877
+ },
78878
+ field: this._spec.valueField,
78879
+ radiusRange: this._spec.sizeRange,
78880
+ radiusField: this._spec.sizeField,
78881
+ center: [this._spec.centerX, this._spec.centerY],
78882
+ innerRadius: this._spec.innerRadius,
78883
+ outerRadius: this._spec.outerRadius,
78884
+ startAngle: this._spec.startAngle,
78885
+ endAngle: this._spec.endAngle
78886
+ }
78887
+ });
78888
+ }
78889
+ initMark() {
78890
+ const nodePointMark = this._createMark(CorrelationSeries.mark.nodePoint, {
78891
+ groupKey: this._seriesField,
78892
+ label: mergeSpec({ animation: this._spec.animation }, this._spec.label),
78893
+ isSeriesMark: true,
78894
+ key: DEFAULT_DATA_INDEX
78895
+ });
78896
+ if (nodePointMark) {
78897
+ nodePointMark.setZIndex(LayoutZIndex.Node);
78898
+ this._nodePointMark = nodePointMark;
78899
+ }
78900
+ const ripplePointMark = this._createMark(CorrelationSeries.mark.ripplePoint, {
78901
+ key: DEFAULT_DATA_INDEX,
78902
+ dataView: this._centerSeriesData.getDataView(),
78903
+ dataProductId: this._centerSeriesData.getProductId()
78904
+ });
78905
+ if (ripplePointMark) {
78906
+ this._ripplePointMark = ripplePointMark;
78907
+ }
78908
+ const centerPointMark = this._createMark(CorrelationSeries.mark.centerPoint, {
78909
+ label: mergeSpec({ animation: this._spec.animation }, this._spec.centerLabel),
78910
+ key: DEFAULT_DATA_INDEX,
78911
+ dataView: this._centerSeriesData.getDataView(),
78912
+ dataProductId: this._centerSeriesData.getProductId()
78913
+ });
78914
+ if (centerPointMark) {
78915
+ centerPointMark.setZIndex(LayoutZIndex.Node);
78916
+ this._centerPointMark = centerPointMark;
78917
+ }
78918
+ }
78919
+ initMarkStyle() {
78920
+ this._initNodePointMarkStyle();
78921
+ this._initRipplePointMarkStyle();
78922
+ this._initCenterPointMarkStyle();
78923
+ }
78924
+ _initNodePointMarkStyle() {
78925
+ var _a, _b, _c, _d, _e, _f, _g, _h;
78926
+ const nodePointMark = this._nodePointMark;
78927
+ if (!nodePointMark) {
78928
+ return;
78929
+ }
78930
+ this.setMarkStyle(nodePointMark, {
78931
+ x: (datum) => datum[CORRELATION_X],
78932
+ y: (datum) => datum[CORRELATION_Y],
78933
+ size: (datum) => datum[CORRELATION_SIZE],
78934
+ fill: (_d = (_c = (_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.nodePoint) === null || _b === void 0 ? void 0 : _b.style) === null || _c === void 0 ? void 0 : _c.fill) !== null && _d !== void 0 ? _d : this.getColorAttribute(),
78935
+ fillOpacity: (_h = (_g = (_f = (_e = this._spec) === null || _e === void 0 ? void 0 : _e.nodePoint) === null || _f === void 0 ? void 0 : _f.style) === null || _g === void 0 ? void 0 : _g.fillOpacity) !== null && _h !== void 0 ? _h : 1,
78936
+ lineWidth: 0
78937
+ }, STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
78938
+ this._trigger.registerMark(nodePointMark);
78939
+ }
78940
+ _initRipplePointMarkStyle() {
78941
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
78942
+ const ripplePointMark = this._ripplePointMark;
78943
+ if (!ripplePointMark) {
78944
+ return;
78945
+ }
78946
+ this.setMarkStyle(ripplePointMark, {
78947
+ x: () => {
78948
+ var _a, _b;
78949
+ return (_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.centerX) !== null && _b !== void 0 ? _b : (this._viewBox.x1 + this._viewBox.x2) / 2;
78950
+ },
78951
+ y: () => {
78952
+ var _a, _b;
78953
+ return (_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.centerY) !== null && _b !== void 0 ? _b : (this._viewBox.y1 + this._viewBox.y2) / 2;
78954
+ },
78955
+ size: () => {
78956
+ return Math.max(this._viewBox.x2 - this._viewBox.x1, this._viewBox.y2 - this._viewBox.y1) / 2;
78957
+ },
78958
+ fill: (_d = (_c = (_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.ripplePoint) === null || _b === void 0 ? void 0 : _b.style) === null || _c === void 0 ? void 0 : _c.fill) !== null && _d !== void 0 ? _d : this.getColorAttribute(),
78959
+ opacity: (_h = (_g = (_f = (_e = this._spec) === null || _e === void 0 ? void 0 : _e.ripplePoint) === null || _f === void 0 ? void 0 : _f.style) === null || _g === void 0 ? void 0 : _g.fillOpacity) !== null && _h !== void 0 ? _h : 0.2,
78960
+ ripple: (_m = (_l = (_k = (_j = this._spec) === null || _j === void 0 ? void 0 : _j.ripplePoint) === null || _k === void 0 ? void 0 : _k.style) === null || _l === void 0 ? void 0 : _l.ripple) !== null && _m !== void 0 ? _m : 0
78961
+ }, STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
78962
+ }
78963
+ _initCenterPointMarkStyle() {
78964
+ var _a, _b, _c, _d, _e, _f, _g, _h;
78965
+ const centerPointMark = this._centerPointMark;
78966
+ if (!centerPointMark) {
78967
+ return;
78968
+ }
78969
+ this.setMarkStyle(centerPointMark, {
78970
+ x: () => {
78971
+ var _a, _b;
78972
+ return (_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.centerX) !== null && _b !== void 0 ? _b : (this._viewBox.x1 + this._viewBox.x2) / 2;
78973
+ },
78974
+ y: () => {
78975
+ var _a, _b;
78976
+ return (_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.centerY) !== null && _b !== void 0 ? _b : (this._viewBox.y1 + this._viewBox.y2) / 2;
78977
+ },
78978
+ size: () => {
78979
+ return (0.2 * Math.max(this._viewBox.x2 - this._viewBox.x1, this._viewBox.y2 - this._viewBox.y1)) / 2;
78980
+ },
78981
+ fill: (_d = (_c = (_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.centerPoint) === null || _b === void 0 ? void 0 : _b.style) === null || _c === void 0 ? void 0 : _c.fill) !== null && _d !== void 0 ? _d : this.getColorAttribute(),
78982
+ fillOpacity: (_h = (_g = (_f = (_e = this._spec) === null || _e === void 0 ? void 0 : _e.centerPoint) === null || _f === void 0 ? void 0 : _f.style) === null || _g === void 0 ? void 0 : _g.fillOpacity) !== null && _h !== void 0 ? _h : 1
78983
+ }, STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
78984
+ this._trigger.registerMark(centerPointMark);
78985
+ }
78986
+ initTooltip() {
78987
+ super.initTooltip();
78988
+ this._nodePointMark && this._tooltipHelper.activeTriggerSet.mark.add(this._nodePointMark);
78989
+ }
78990
+ initLabelMarkStyle(labelMark) {
78991
+ if (!labelMark) {
78992
+ return;
78993
+ }
78994
+ this.setMarkStyle(labelMark, {
78995
+ fill: this.getColorAttribute(),
78996
+ text: (datum) => {
78997
+ return datum[this._categoryField];
78998
+ },
78999
+ z: this.dataToPositionZ.bind(this)
79000
+ }, STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
79001
+ }
79002
+ initAnimation() {
79003
+ var _a, _b, _c;
79004
+ const appearPreset = (_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.animationAppear) === null || _b === void 0 ? void 0 : _b.preset;
79005
+ this._nodePointMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('correlation')) === null || _c === void 0 ? void 0 : _c({}, appearPreset), userAnimationConfig(SeriesMarkNameEnum.nodePoint, this._spec)));
79006
+ }
79007
+ getGroupFields() {
79008
+ return [];
79009
+ }
79010
+ getStackGroupFields() {
79011
+ return [];
79012
+ }
79013
+ getStackValueField() {
79014
+ return '';
79015
+ }
79016
+ setValueFieldToStack() {
79017
+ return;
79018
+ }
79019
+ setValueFieldToPercent() {
79020
+ return;
79021
+ }
79022
+ getActiveMarks() {
79023
+ return [this._nodePointMark, this._centerPointMark];
79024
+ }
79025
+ getDimensionField() {
79026
+ return [this._categoryField];
79027
+ }
79028
+ getMeasureField() {
79029
+ return [this._valueField];
79030
+ }
79031
+ onLayoutEnd(ctx) {
79032
+ super.onLayoutEnd(ctx);
79033
+ this._viewBox.set(0, 0, this._region.getLayoutRect().width, this._region.getLayoutRect().height);
79034
+ this._rawData.reRunAllTransform();
79035
+ this.getViewData().reRunAllTransform();
79036
+ }
79037
+ }
79038
+ CorrelationSeries.type = SeriesTypeEnum.correlation;
79039
+ CorrelationSeries.mark = correlationSeriesMark;
79040
+ const registerCorrelationSeries = () => {
79041
+ Factory.registerMark(SymbolMark.type, SymbolMark);
79042
+ Factory.registerMark(RippleMark.type, RippleMark);
79043
+ Factory.registerSeries(CorrelationSeries.type, CorrelationSeries);
79044
+ registerCorrelationAnimation();
79045
+ };
79046
+
79047
+ class CorrelationChart extends BaseChart {
79048
+ constructor() {
79049
+ super(...arguments);
79050
+ this.type = ChartTypeEnum.correlation;
79051
+ this.seriesType = SeriesTypeEnum.correlation;
79052
+ }
79053
+ _getDefaultSeriesSpec(spec) {
79054
+ const series = Object.assign(Object.assign({}, super._getDefaultSeriesSpec(spec)), { categoryField: spec.categoryField, valueField: spec.valueField, seriesField: spec.seriesField, sizeField: spec.sizeField, sizeRange: spec.sizeRange, centerX: spec.centerX, centerY: spec.centerY, innerRadius: spec.innerRadius, outerRadius: spec.outerRadius, startAngle: spec.startAngle, endAngle: spec.endAngle, ripplePoint: spec.ripplePoint, centerPoint: spec.centerPoint, centerLabel: spec.centerLabel, nodePoint: spec.nodePoint, label: spec.label });
79055
+ const seriesType = SeriesTypeEnum.correlation;
79056
+ series.type = seriesType;
79057
+ series[seriesType] = spec[seriesType];
79058
+ return series;
79059
+ }
79060
+ transformSpec(spec) {
79061
+ super.transformSpec(spec);
79062
+ const defaultSeriesSpec = this._getDefaultSeriesSpec(spec);
79063
+ if (!spec.series || spec.series.length === 0) {
79064
+ spec.series = [defaultSeriesSpec];
79065
+ }
79066
+ else {
79067
+ spec.series.forEach(s => {
79068
+ if (!this.isValidSeries(s.type)) {
79069
+ return;
79070
+ }
79071
+ Object.keys(defaultSeriesSpec).forEach(k => {
79072
+ if (!(k in s)) {
79073
+ s[k] = defaultSeriesSpec[k];
79074
+ }
79075
+ });
79076
+ });
79077
+ }
79078
+ }
79079
+ }
79080
+ CorrelationChart.type = ChartTypeEnum.correlation;
79081
+ CorrelationChart.view = 'singleDefault';
79082
+ const registerCorrelationChart = () => {
79083
+ registerCorrelationSeries();
79084
+ Factory.registerChart(CorrelationChart.type, CorrelationChart);
79085
+ };
79086
+
78306
79087
  function isValidAlignDomain(domain) {
78307
79088
  return domain.length === 2 && isValidNumber$1(domain[0]) && isValidNumber$1(domain[1]) && domain[1] >= domain[0];
78308
79089
  }
@@ -79265,6 +80046,19 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
79265
80046
  });
79266
80047
  }
79267
80048
  this._delegateAxisContainerEvent(product.getGroupGraphicItem());
80049
+ if (this._unitText) {
80050
+ const bounds = product.graphicItem.AABBBounds;
80051
+ const pos = isXAxis(this._orient)
80052
+ ? {
80053
+ x: bounds.x2,
80054
+ y: this.getLayoutStartPoint().y
80055
+ }
80056
+ : {
80057
+ x: this.getLayoutStartPoint().x,
80058
+ y: bounds.y1
80059
+ };
80060
+ this._unitText.setAttributes(pos);
80061
+ }
79268
80062
  }
79269
80063
  });
79270
80064
  }
@@ -79412,17 +80206,14 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
79412
80206
  this.setLayoutRect(rect);
79413
80207
  this.updateScaleRange();
79414
80208
  this.computeData();
79415
- const isX = isXAxis(this.getOrient());
79416
80209
  const context = { skipLayout: false };
79417
- if (isX) {
79418
- this.pluginService &&
79419
- this.callPlugin(plugin => {
80210
+ const isX = isXAxis(this.getOrient());
80211
+ if (this.pluginService) {
80212
+ isX
80213
+ ? this.callPlugin(plugin => {
79420
80214
  plugin.onWillLayoutHorizontal && plugin.onWillLayoutHorizontal(this.pluginService, context, this);
79421
- });
79422
- }
79423
- else {
79424
- this.pluginService &&
79425
- this.callPlugin(plugin => {
80215
+ })
80216
+ : this.callPlugin(plugin => {
79426
80217
  plugin.onWillLayoutVertical && plugin.onWillLayoutVertical(this.pluginService, context, this);
79427
80218
  });
79428
80219
  }
@@ -79433,7 +80224,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
79433
80224
  const axisComponent = product.getGroupGraphicItem();
79434
80225
  const updateBounds = axisComponent.getBoundsWithoutRender(mergeSpec(Object.assign({}, this.getLayoutStartPoint()), this._axisStyle, attrs));
79435
80226
  if (isFinite(updateBounds.width())) {
79436
- result = updateBounds;
80227
+ result = this._appendAxisUnit(updateBounds, isX);
79437
80228
  this._latestBounds = updateBounds;
79438
80229
  }
79439
80230
  }
@@ -79617,6 +80408,56 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
79617
80408
  const chartSpec = this._option.getChart().getSpec();
79618
80409
  this._spec.inverse = transformInverse(this._spec, chartSpec.direction === Direction.horizontal);
79619
80410
  }
80411
+ _appendAxisUnit(bounds, isX) {
80412
+ var _a;
80413
+ if (this._spec.unit && this._spec.unit.visible) {
80414
+ const { text, style } = this._spec.unit;
80415
+ let pos;
80416
+ let unitTextStyle;
80417
+ if (isX) {
80418
+ pos = {
80419
+ x: bounds.x2,
80420
+ y: this.getLayoutStartPoint().y
80421
+ };
80422
+ unitTextStyle = {
80423
+ textAlign: 'left',
80424
+ textBaseline: 'middle'
80425
+ };
80426
+ }
80427
+ else {
80428
+ pos = {
80429
+ x: this.getLayoutStartPoint().x,
80430
+ y: bounds.y1
80431
+ };
80432
+ unitTextStyle = {
80433
+ textAlign: this._orient === 'left' ? 'left' : 'right',
80434
+ textBaseline: 'bottom'
80435
+ };
80436
+ }
80437
+ unitTextStyle = Object.assign(Object.assign(Object.assign({}, unitTextStyle), style), { x: pos.x, y: pos.y, text });
80438
+ if (this._unitText) {
80439
+ this._unitText.setAttributes(unitTextStyle);
80440
+ }
80441
+ else {
80442
+ this._unitText = createText(unitTextStyle);
80443
+ this._unitText.name = 'axis-unit';
80444
+ (_a = this.getContainer()) === null || _a === void 0 ? void 0 : _a.add(this._unitText);
80445
+ }
80446
+ const textBounds = this._unitText.AABBBounds;
80447
+ if (!isX) {
80448
+ bounds.x1 += textBounds.x1 < bounds.x1 ? textBounds.x1 - bounds.x1 : 0;
80449
+ bounds.y1 += textBounds.y1 < bounds.y1 ? textBounds.y1 - bounds.y1 : 0;
80450
+ }
80451
+ else {
80452
+ bounds.x2 += textBounds.x2 > bounds.x2 ? textBounds.x2 - bounds.x2 : 0;
80453
+ bounds.y2 += textBounds.y2 > bounds.y2 ? textBounds.y2 - bounds.y2 : 0;
80454
+ }
80455
+ }
80456
+ return bounds;
80457
+ }
80458
+ getVRenderComponents() {
80459
+ return this._unitText ? [this._unitText] : [];
80460
+ }
79620
80461
  }
79621
80462
  CartesianAxis.type = ComponentTypeEnum.cartesianAxis;
79622
80463
 
@@ -81670,7 +82511,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
81670
82511
  shapeColor,
81671
82512
  keyStyle,
81672
82513
  valueStyle,
81673
- spaceRow
82514
+ spaceRow,
82515
+ datum
81674
82516
  };
81675
82517
  };
81676
82518
 
@@ -85228,6 +86070,33 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
85228
86070
  setStartAndEnd(start, end) {
85229
86071
  this._handleChange(start, end, true);
85230
86072
  }
86073
+ enableInteraction() {
86074
+ this._activeRoam = true;
86075
+ }
86076
+ disableInteraction() {
86077
+ this._activeRoam = false;
86078
+ }
86079
+ zoomIn(location) {
86080
+ this._handleChartZoom({
86081
+ zoomDelta: 1.2,
86082
+ zoomX: location === null || location === void 0 ? void 0 : location.x,
86083
+ zoomY: location === null || location === void 0 ? void 0 : location.y
86084
+ });
86085
+ }
86086
+ zoomOut(location) {
86087
+ this._handleChartZoom({
86088
+ zoomDelta: 0.8,
86089
+ zoomX: location === null || location === void 0 ? void 0 : location.x,
86090
+ zoomY: location === null || location === void 0 ? void 0 : location.y
86091
+ });
86092
+ }
86093
+ _handleChange(start, end, updateComponent) {
86094
+ var _a;
86095
+ const zoomLock = (_a = this._spec.zoomLock) !== null && _a !== void 0 ? _a : false;
86096
+ if (zoomLock || end - start < this._minSpan || end - start > this._maxSpan) {
86097
+ return;
86098
+ }
86099
+ }
85231
86100
  get visible() {
85232
86101
  return this._visible;
85233
86102
  }
@@ -85236,6 +86105,22 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
85236
86105
  this.layoutType = 'region-relative';
85237
86106
  this._orient = 'left';
85238
86107
  this._stateField = 'x';
86108
+ this._activeRoam = true;
86109
+ this._zoomAttr = {
86110
+ enable: true,
86111
+ rate: 1,
86112
+ focus: true
86113
+ };
86114
+ this._dragAttr = {
86115
+ enable: true,
86116
+ rate: 1,
86117
+ reverse: true
86118
+ };
86119
+ this._scrollAttr = {
86120
+ enable: true,
86121
+ rate: 1,
86122
+ reverse: true
86123
+ };
85239
86124
  this.effect = {
85240
86125
  onZoomChange: () => {
85241
86126
  var _a;
@@ -85277,36 +86162,69 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
85277
86162
  (_b = (_a = this.effect).onZoomChange) === null || _b === void 0 ? void 0 : _b.call(_a);
85278
86163
  return true;
85279
86164
  };
85280
- this._handleChartScroll = (params, e) => {
85281
- this._handleChartDrag([params.scrollX, params.scrollY], e);
85282
- };
85283
- this._handleChartZoom = (params, e) => {
85284
- const { zoomDelta } = params;
86165
+ this._handleChartZoom = (params) => {
86166
+ var _a, _b;
86167
+ if (!this._activeRoam) {
86168
+ return;
86169
+ }
86170
+ const { zoomDelta, zoomX, zoomY } = params;
86171
+ const { x, y } = this._regions[0].getLayoutStartPoint();
86172
+ const { width, height } = this._regions[0].getLayoutRect();
85285
86173
  const delta = Math.abs(this._start - this._end);
85286
- const ZOOM_RATE = 0.15;
85287
- if (delta >= 1 && zoomDelta > 1) {
86174
+ const zoomRate = (_b = (_a = this._spec.roamZoom) === null || _a === void 0 ? void 0 : _a.rate) !== null && _b !== void 0 ? _b : 1;
86175
+ if (delta >= 1 && zoomDelta < 1) {
85288
86176
  return;
85289
86177
  }
85290
- if (delta <= 0.01 && zoomDelta < 1) {
86178
+ if (delta <= 0.01 && zoomDelta > 1) {
85291
86179
  return;
85292
86180
  }
85293
- const value = (delta * (zoomDelta - 1) * ZOOM_RATE) / 2;
85294
- const start = clamp$1(this._start - value, 0, 1);
85295
- const end = clamp$1(this._end + value, 0, 1);
86181
+ const focusLoc = this._isHorizontal ? zoomX : zoomY;
86182
+ const totalValue = delta * (zoomDelta - 1) * zoomRate;
86183
+ let startValue = totalValue / 2;
86184
+ let endValue = totalValue / 2;
86185
+ if (focusLoc) {
86186
+ const startLoc = this._isHorizontal ? x : y;
86187
+ const endLoc = this._isHorizontal ? width : height;
86188
+ startValue = (Math.abs(startLoc - focusLoc) / Math.abs(endLoc - startLoc)) * totalValue;
86189
+ endValue = (Math.abs(endLoc - focusLoc) / Math.abs(endLoc - startLoc)) * totalValue;
86190
+ }
86191
+ const start = clamp$1(this._start + startValue, 0, 1);
86192
+ const end = clamp$1(this._end - endValue, 0, 1);
85296
86193
  this._handleChange(Math.min(start, end), Math.max(start, end), true);
85297
86194
  };
86195
+ this._handleChartScroll = (params, e) => {
86196
+ var _a;
86197
+ if (!this._activeRoam) {
86198
+ return;
86199
+ }
86200
+ const { scrollX, scrollY } = params;
86201
+ let value = this._isHorizontal ? scrollX : scrollY;
86202
+ if (!this._scrollAttr.reverse) {
86203
+ value = -value;
86204
+ }
86205
+ this._handleChartMove(value, (_a = this._scrollAttr.rate) !== null && _a !== void 0 ? _a : 1);
86206
+ };
85298
86207
  this._handleChartDrag = (delta, e) => {
86208
+ var _a;
86209
+ if (!this._activeRoam) {
86210
+ return;
86211
+ }
85299
86212
  const [dx, dy] = delta;
85300
- const value = this._isHorizontal ? dx : dy;
86213
+ let value = this._isHorizontal ? dx : dy;
86214
+ if (this._dragAttr.reverse) {
86215
+ value = -value;
86216
+ }
86217
+ this._handleChartMove(value, (_a = this._dragAttr.rate) !== null && _a !== void 0 ? _a : 1);
86218
+ };
86219
+ this._handleChartMove = (value, rate) => {
85301
86220
  const totalValue = this._isHorizontal ? this.getLayoutRect().width : this.getLayoutRect().height;
85302
- const SCROLL_RATE = 0.02;
85303
86221
  if (Math.abs(value) >= 1e-6) {
85304
86222
  if (value > 0 && this._end < 1) {
85305
- const moveDelta = Math.min(1 - this._end, value / totalValue) * SCROLL_RATE;
86223
+ const moveDelta = Math.min(1 - this._end, value / totalValue) * rate;
85306
86224
  this._handleChange(this._start + moveDelta, this._end + moveDelta, true);
85307
86225
  }
85308
86226
  else if (value < 0 && this._start > 0) {
85309
- const moveDelta = Math.max(-this._start, value / totalValue) * SCROLL_RATE;
86227
+ const moveDelta = Math.max(-this._start, value / totalValue) * rate;
85310
86228
  this._handleChange(this._start + moveDelta, this._end + moveDelta, true);
85311
86229
  }
85312
86230
  }
@@ -85320,6 +86238,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
85320
86238
  super.created();
85321
86239
  this._setAxisFromSpec();
85322
86240
  this._setRegionsFromSpec();
86241
+ this._initEvent();
85323
86242
  this._initData();
85324
86243
  this._initStateScale();
85325
86244
  this._setStateFromSpec();
@@ -85393,6 +86312,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
85393
86312
  }
85394
86313
  return domain;
85395
86314
  }
86315
+ _initEvent() {
86316
+ this._initCommonEvent();
86317
+ }
85396
86318
  _initData() {
85397
86319
  const dataCollection = [];
85398
86320
  const stateFields = [];
@@ -85480,8 +86402,23 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
85480
86402
  setAttrFromSpec() {
85481
86403
  var _a;
85482
86404
  super.setAttrFromSpec();
85483
- if (this._spec.roam) {
85484
- this.initZoomable(this.event, this._option.mode);
86405
+ if (this._spec.roamZoom === true || this._spec.roamZoom) {
86406
+ this._zoomAttr = merge$1({}, this._zoomAttr, this._spec.roamZoom);
86407
+ }
86408
+ else {
86409
+ this._zoomAttr.enable = false;
86410
+ }
86411
+ if (this._spec.roamDrag === true || this._spec.roamDrag) {
86412
+ this._dragAttr = merge$1({}, this._dragAttr, this._spec.roamDrag);
86413
+ }
86414
+ else {
86415
+ this._dragAttr.enable = false;
86416
+ }
86417
+ if (this._spec.roamScroll === true || this._spec.roamScroll) {
86418
+ this._scrollAttr = merge$1({}, this._scrollAttr, this._spec.roamScroll);
86419
+ }
86420
+ else {
86421
+ this._scrollAttr.enable = false;
85485
86422
  }
85486
86423
  this._field = this._spec.field;
85487
86424
  this._width = this._computeWidth();
@@ -85513,6 +86450,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
85513
86450
  return (mode === 'percent' && this._spec.end) || (mode === 'value' && this._spec.endValue);
85514
86451
  }
85515
86452
  _setStateFromSpec() {
86453
+ var _a, _b;
85516
86454
  this._auto = !!this._spec.auto;
85517
86455
  let start;
85518
86456
  let end;
@@ -85535,6 +86473,18 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
85535
86473
  this._endValue = this._statePointToData(end);
85536
86474
  this._start = start;
85537
86475
  this._end = end;
86476
+ this._minSpan = (_a = this._spec.minSpan) !== null && _a !== void 0 ? _a : 0;
86477
+ this._maxSpan = (_b = this._spec.maxSpan) !== null && _b !== void 0 ? _b : 1;
86478
+ if (isContinuous(this._stateScale.type) && this._stateScale.domain[0] !== this._stateScale.domain[1]) {
86479
+ if (this._spec.minValueSpan) {
86480
+ this._minSpan = this._spec.minValueSpan / (this._stateScale.domain()[1] - this._stateScale.domain()[0]);
86481
+ }
86482
+ if (this._spec.maxValueSpan) {
86483
+ this._maxSpan = this._spec.maxValueSpan / (this._stateScale.domain()[1] - this._stateScale.domain()[0]);
86484
+ }
86485
+ }
86486
+ this._minSpan = Math.max(0, this._minSpan);
86487
+ this._maxSpan = Math.min(this._maxSpan, 1);
85538
86488
  if ((!this._relatedAxisComponent || this._filterMode !== IFilterMode.axis) &&
85539
86489
  (this._start !== 0 || this._end !== 1)) {
85540
86490
  this._newDomain = this._parseDomainFromState(this._startValue, this._endValue);
@@ -85627,18 +86577,25 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
85627
86577
  return allDomain.slice(Math.min(startIndex, endIndex), Math.max(startIndex, endIndex) + 1);
85628
86578
  }
85629
86579
  _initCommonEvent() {
85630
- if (this._spec.roam) {
85631
- this.initZoomEventOfRegions(this._regions, null, this._handleChartZoom);
85632
- this.initScrollEventOfRegions(this._regions, null, this._handleChartScroll);
85633
- this.initDragEventOfRegions(this._regions, null, this._handleChartDrag);
86580
+ var _a, _b, _c, _d, _e, _f, _g;
86581
+ const delayType = (_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.delayType) !== null && _b !== void 0 ? _b : 'throttle';
86582
+ const delayTime = isValid$1((_c = this._spec) === null || _c === void 0 ? void 0 : _c.delayType) ? (_e = (_d = this._spec) === null || _d === void 0 ? void 0 : _d.delayTime) !== null && _e !== void 0 ? _e : 30 : 0;
86583
+ const realTime = (_g = (_f = this._spec) === null || _f === void 0 ? void 0 : _f.realTime) !== null && _g !== void 0 ? _g : false;
86584
+ const option = { delayType, delayTime, realTime };
86585
+ if (this._zoomAttr.enable) {
86586
+ this.initZoomEventOfRegions(this._regions, null, this._handleChartZoom, option);
86587
+ }
86588
+ if (this._scrollAttr.enable) {
86589
+ this.initScrollEventOfRegions(this._regions, null, this._handleChartScroll, option);
86590
+ }
86591
+ if (this._dragAttr.enable) {
86592
+ this.initDragEventOfRegions(this._regions, null, this._handleChartDrag, option);
85634
86593
  }
85635
86594
  }
85636
86595
  updateLayoutAttribute() {
85637
86596
  if (this._visible) {
85638
86597
  this._createOrUpdateComponent();
85639
86598
  }
85640
- this._initCommonEvent();
85641
- this._initEvent();
85642
86599
  super.updateLayoutAttribute();
85643
86600
  }
85644
86601
  _boundsInRect(rect) {
@@ -85804,6 +86761,14 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
85804
86761
  setAttrFromSpec() {
85805
86762
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
85806
86763
  super.setAttrFromSpec();
86764
+ if (isBoolean$1(this._spec.roam)) {
86765
+ this._zoomAttr.enable = this._spec.roam;
86766
+ this._dragAttr.enable = this._spec.roam;
86767
+ this._scrollAttr.enable = this._spec.roam;
86768
+ }
86769
+ if (this._zoomAttr.enable || this._dragAttr.enable || this._scrollAttr.enable) {
86770
+ this.initZoomable(this.event, this._option.mode);
86771
+ }
85807
86772
  this._backgroundSize = (_b = (_a = this._spec.background) === null || _a === void 0 ? void 0 : _a.size) !== null && _b !== void 0 ? _b : 30;
85808
86773
  this._middleHandlerSize = this._computeMiddleHandlerSize();
85809
86774
  this._width = this._computeWidth();
@@ -85813,7 +86778,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
85813
86778
  ? this._height - this._middleHandlerSize
85814
86779
  : this._width - this._middleHandlerSize;
85815
86780
  }
85816
- if (isNil$1((_h = (_g = (_f = this._originalSpec) === null || _f === void 0 ? void 0 : _f.startHandler) === null || _g === void 0 ? void 0 : _g.style) === null || _h === void 0 ? void 0 : _h.size)) {
86781
+ if (isNil$1((_h = (_g = (_f = this._originalSpec) === null || _f === void 0 ? void 0 : _f.endHandler) === null || _g === void 0 ? void 0 : _g.style) === null || _h === void 0 ? void 0 : _h.size)) {
85817
86782
  this._spec.endHandler.style.size = this._isHorizontal
85818
86783
  ? this._height - this._middleHandlerSize
85819
86784
  : this._width - this._middleHandlerSize;
@@ -85924,7 +86889,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
85924
86889
  return true;
85925
86890
  }
85926
86891
  _createOrUpdateComponent() {
85927
- var _a, _b, _c;
86892
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
85928
86893
  if (!this._component && this._visible) {
85929
86894
  const container = this.getContainer();
85930
86895
  const xScale = this._isHorizontal ? this._stateScale : this._valueScale;
@@ -85936,12 +86901,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
85936
86901
  }, orient: this._orient, size: {
85937
86902
  width: this.getLayoutRect().width,
85938
86903
  height: this.getLayoutRect().height
85939
- }, showDetail: (_a = this._spec) === null || _a === void 0 ? void 0 : _a.showDetail, brushSelect: (_c = (_b = this._spec) === null || _b === void 0 ? void 0 : _b.brushSelect) !== null && _c !== void 0 ? _c : false, previewData: isNeedPreview && this._data.getLatestData(), previewCallbackX: isNeedPreview && this._dataToPositionX, previewCallbackY: isNeedPreview && this._dataToPositionY }, this._getComponentAttrs()));
86904
+ }, showDetail: (_a = this._spec) === null || _a === void 0 ? void 0 : _a.showDetail, brushSelect: (_c = (_b = this._spec) === null || _b === void 0 ? void 0 : _b.brushSelect) !== null && _c !== void 0 ? _c : false, zoomLock: (_e = (_d = this._spec) === null || _d === void 0 ? void 0 : _d.zoomLock) !== null && _e !== void 0 ? _e : false, minSpan: this._minSpan, maxSpan: this._maxSpan, delayType: (_f = this._spec) === null || _f === void 0 ? void 0 : _f.delayType, delayTime: isValid$1((_g = this._spec) === null || _g === void 0 ? void 0 : _g.delayType) ? (_j = (_h = this._spec) === null || _h === void 0 ? void 0 : _h.delayTime) !== null && _j !== void 0 ? _j : 30 : 0, realTime: (_l = (_k = this._spec) === null || _k === void 0 ? void 0 : _k.realTime) !== null && _l !== void 0 ? _l : true, previewData: isNeedPreview && this._data.getLatestData(), previewPointsX: isNeedPreview && this._dataToPositionX, previewPointsY: isNeedPreview && this._dataToPositionY }, this._getComponentAttrs()));
85940
86905
  if (this._isHorizontal) {
85941
- isNeedPreview && this._component.setPreviewCallbackY1(this._dataToPositionY2);
86906
+ isNeedPreview && this._component.setPreviewPointsY1(this._dataToPositionY2);
85942
86907
  }
85943
86908
  else {
85944
- isNeedPreview && this._component.setPreviewCallbackX1(this._dataToPositionX2);
86909
+ isNeedPreview && this._component.setPreviewPointsX1(this._dataToPositionX2);
85945
86910
  }
85946
86911
  this._component.setStatePointToData((state) => this._statePointToData(state));
85947
86912
  this._component.setUpdateStateCallback((start, end) => {
@@ -85952,6 +86917,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
85952
86917
  }
85953
86918
  }
85954
86919
  _handleChange(start, end, updateComponent) {
86920
+ super._handleChange(start, end, updateComponent);
85955
86921
  if (updateComponent && this._component) {
85956
86922
  this._component.setStartAndEnd(start, end);
85957
86923
  }
@@ -85984,8 +86950,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
85984
86950
  }
85985
86951
  }
85986
86952
  }
85987
- _initEvent() {
85988
- }
85989
86953
  _getComponentAttrs() {
85990
86954
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
85991
86955
  return {
@@ -86055,6 +87019,17 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
86055
87019
  this.layoutLevel = LayoutLevel.DataZoom;
86056
87020
  this._filterMode = (_a = spec.filterMode) !== null && _a !== void 0 ? _a : IFilterMode.axis;
86057
87021
  }
87022
+ setAttrFromSpec() {
87023
+ super.setAttrFromSpec();
87024
+ if (isBoolean$1(this._spec.roam)) {
87025
+ this._zoomAttr.enable = false;
87026
+ this._dragAttr.enable = this._spec.roam;
87027
+ this._scrollAttr.enable = this._spec.roam;
87028
+ }
87029
+ if (this._zoomAttr.enable || this._dragAttr.enable || this._scrollAttr.enable) {
87030
+ this.initZoomable(this.event, this._option.mode);
87031
+ }
87032
+ }
86058
87033
  onLayoutEnd(ctx) {
86059
87034
  var _a, _b;
86060
87035
  this._updateScaleRange();
@@ -86090,13 +87065,19 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
86090
87065
  return SCROLL_BAR_DEFAULT_SIZE;
86091
87066
  }
86092
87067
  _createOrUpdateComponent() {
87068
+ var _a, _b, _c, _d, _e, _f;
86093
87069
  if (!this._component) {
86094
87070
  const container = this.getContainer();
86095
- this._component = new ScrollBar$1(Object.assign({ zIndex: this.layoutZIndex, x: this.getLayoutStartPoint().x, y: this.getLayoutStartPoint().y, width: this.getLayoutRect().width, height: this.getLayoutRect().height, range: [this._start, this._end], direction: this._isHorizontal ? 'horizontal' : 'vertical' }, this._getComponentAttrs()));
87071
+ this._component = new ScrollBar$1(Object.assign({ zIndex: this.layoutZIndex, x: this.getLayoutStartPoint().x, y: this.getLayoutStartPoint().y, width: this.getLayoutRect().width, height: this.getLayoutRect().height, range: [this._start, this._end], direction: this._isHorizontal ? 'horizontal' : 'vertical', delayType: (_a = this._spec) === null || _a === void 0 ? void 0 : _a.delayType, delayTime: isValid$1((_b = this._spec) === null || _b === void 0 ? void 0 : _b.delayType) ? (_d = (_c = this._spec) === null || _c === void 0 ? void 0 : _c.delayTime) !== null && _d !== void 0 ? _d : 30 : 0, realTime: (_f = (_e = this._spec) === null || _e === void 0 ? void 0 : _e.realTime) !== null && _f !== void 0 ? _f : true }, this._getComponentAttrs()));
87072
+ this._component.addEventListener('scroll', (e) => {
87073
+ const value = e.detail.value;
87074
+ this._handleChange(value[0], value[1]);
87075
+ });
86096
87076
  container.add(this._component);
86097
87077
  }
86098
87078
  }
86099
87079
  _handleChange(start, end, updateComponent) {
87080
+ super._handleChange(start, end, updateComponent);
86100
87081
  if (updateComponent && this._component) {
86101
87082
  this._component.setAttribute('range', [start, end]);
86102
87083
  }
@@ -86119,7 +87100,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
86119
87100
  }
86120
87101
  _handleDataCollectionChange() {
86121
87102
  }
86122
- _initEvent() {
87103
+ _initCommonEvent() {
87104
+ super._initCommonEvent();
86123
87105
  if (this._component) {
86124
87106
  this._component.on('scroll', (e) => {
86125
87107
  const value = e.detail.value;
@@ -86127,12 +87109,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
86127
87109
  });
86128
87110
  }
86129
87111
  }
86130
- _initCommonEvent() {
86131
- if (this._spec.roam) {
86132
- this.initScrollEventOfRegions(this._regions, null, this._handleChartScroll);
86133
- this.initDragEventOfRegions(this._regions, null, this._handleChartDrag);
86134
- }
86135
- }
86136
87112
  _getComponentAttrs() {
86137
87113
  const { rail, slider, innerPadding } = this._spec;
86138
87114
  const attrs = {};
@@ -89169,6 +90145,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
89169
90145
  registerMapChart,
89170
90146
  registerGaugeChart,
89171
90147
  registerWordCloudChart,
90148
+ registerWordCloud3dChart,
89172
90149
  registerFunnelChart,
89173
90150
  registerWaterfallChart,
89174
90151
  registerBoxplotChart,
@@ -89182,6 +90159,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
89182
90159
  registerSankeyChart,
89183
90160
  registerHeatmapChart,
89184
90161
  registerSequenceChart,
90162
+ registerCorrelationChart,
89185
90163
  registerCommonChart,
89186
90164
  registerBar3dChart,
89187
90165
  registerPie3dChart,
@@ -89253,6 +90231,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
89253
90231
  exports.CommonChart = CommonChart;
89254
90232
  exports.ComponentMark = ComponentMark;
89255
90233
  exports.ContinuousLegend = ContinuousLegend;
90234
+ exports.CorrelationChart = CorrelationChart;
90235
+ exports.CorrelationSeries = CorrelationSeries;
89256
90236
  exports.CustomMark = CustomMark;
89257
90237
  exports.DataZoom = DataZoom;
89258
90238
  exports.DiscreteLegend = DiscreteLegend;
@@ -89316,6 +90296,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
89316
90296
  exports.RangeColumnSeries = RangeColumnSeries;
89317
90297
  exports.Rect3dMark = Rect3dMark;
89318
90298
  exports.RectMark = RectMark;
90299
+ exports.RippleMark = RippleMark;
89319
90300
  exports.RoseChart = RoseChart;
89320
90301
  exports.RoseLikeChart = RoseLikeChart;
89321
90302
  exports.RoseLikeSeries = RoseLikeSeries;
@@ -89368,6 +90349,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
89368
90349
  exports.registerCircularProgressSeries = registerCircularProgressSeries;
89369
90350
  exports.registerCommonChart = registerCommonChart;
89370
90351
  exports.registerContinuousLegend = registerContinuousLegend;
90352
+ exports.registerCorrelationChart = registerCorrelationChart;
89371
90353
  exports.registerCustomMark = registerCustomMark;
89372
90354
  exports.registerDataZoom = registerDataZoom;
89373
90355
  exports.registerDiscreteLegend = registerDiscreteLegend;