@visactor/vchart 1.9.0-alpha.0 → 1.9.0-alpha.1

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 (1368) hide show
  1. package/build/es5/index.js +1 -1
  2. package/build/index.js +19534 -17953
  3. package/build/index.min.js +1 -1
  4. package/build/tsconfig.tsbuildinfo +1 -1
  5. package/cjs/animation/config.js +1 -1
  6. package/cjs/animation/config.js.map +1 -1
  7. package/cjs/animation/utils.d.ts +1 -1
  8. package/cjs/animation/utils.js +15 -14
  9. package/cjs/animation/utils.js.map +1 -1
  10. package/cjs/chart/base/base-chart-transformer.d.ts +1 -0
  11. package/cjs/chart/base/base-chart-transformer.js +48 -23
  12. package/cjs/chart/base/base-chart-transformer.js.map +1 -1
  13. package/cjs/chart/base/base-chart.d.ts +1 -0
  14. package/cjs/chart/base/base-chart.js +20 -15
  15. package/cjs/chart/base/base-chart.js.map +1 -1
  16. package/cjs/chart/base/util.d.ts +7 -0
  17. package/cjs/chart/base/util.js +26 -0
  18. package/cjs/chart/base/util.js.map +1 -0
  19. package/cjs/chart/circle-packing/circle-packing-transformer.js +1 -7
  20. package/cjs/chart/circle-packing/circle-packing-transformer.js.map +1 -1
  21. package/cjs/chart/correlation/correlation-transformer.js +1 -7
  22. package/cjs/chart/correlation/correlation-transformer.js.map +1 -1
  23. package/cjs/chart/histogram/base/histogram-base-transformer.js +2 -1
  24. package/cjs/chart/histogram/base/histogram-base-transformer.js.map +1 -1
  25. package/cjs/chart/index.d.ts +5 -3
  26. package/cjs/chart/index.js +16 -2
  27. package/cjs/chart/index.js.map +1 -1
  28. package/cjs/chart/interface/chart.d.ts +1 -0
  29. package/cjs/chart/interface/chart.js.map +1 -1
  30. package/cjs/chart/interface/common.d.ts +2 -4
  31. package/cjs/chart/interface/common.js.map +1 -1
  32. package/cjs/chart/interface/type.d.ts +2 -1
  33. package/cjs/chart/interface/type.js +1 -1
  34. package/cjs/chart/interface/type.js.map +1 -1
  35. package/cjs/chart/liquid/index.d.ts +2 -0
  36. package/cjs/chart/liquid/index.js +21 -0
  37. package/cjs/chart/liquid/index.js.map +1 -0
  38. package/cjs/chart/liquid/interface.d.ts +7 -0
  39. package/cjs/chart/liquid/interface.js.map +1 -0
  40. package/cjs/chart/liquid/liquid-transformer.d.ts +6 -0
  41. package/cjs/chart/liquid/liquid-transformer.js +29 -0
  42. package/cjs/chart/liquid/liquid-transformer.js.map +1 -0
  43. package/cjs/chart/liquid/liquid.d.ts +13 -0
  44. package/cjs/chart/liquid/liquid.js +25 -0
  45. package/cjs/chart/liquid/liquid.js.map +1 -0
  46. package/cjs/chart/polar/polar-transformer.js +1 -7
  47. package/cjs/chart/polar/polar-transformer.js.map +1 -1
  48. package/cjs/chart/range-column/range-column-transformer.js +2 -1
  49. package/cjs/chart/range-column/range-column-transformer.js.map +1 -1
  50. package/cjs/chart/sankey/sankey-transformer.js +1 -7
  51. package/cjs/chart/sankey/sankey-transformer.js.map +1 -1
  52. package/cjs/chart/sunburst/sunburst-transformer.js +1 -7
  53. package/cjs/chart/sunburst/sunburst-transformer.js.map +1 -1
  54. package/cjs/chart/treemap/treemap-transformer.js +1 -7
  55. package/cjs/chart/treemap/treemap-transformer.js.map +1 -1
  56. package/cjs/chart/util.d.ts +4 -1
  57. package/cjs/chart/util.js +5 -5
  58. package/cjs/chart/util.js.map +1 -1
  59. package/cjs/chart/word-cloud/base/word-cloud-base-transformer.js +1 -7
  60. package/cjs/chart/word-cloud/base/word-cloud-base-transformer.js.map +1 -1
  61. package/cjs/compile/compiler.d.ts +16 -5
  62. package/cjs/compile/compiler.js +38 -42
  63. package/cjs/compile/compiler.js.map +1 -1
  64. package/cjs/compile/data/compilable-data.d.ts +1 -1
  65. package/cjs/compile/data/compilable-data.js +1 -1
  66. package/cjs/compile/data/compilable-data.js.map +1 -1
  67. package/cjs/compile/data/interface.d.ts +1 -1
  68. package/cjs/compile/data/interface.js.map +1 -1
  69. package/cjs/compile/grammar-item.js +2 -1
  70. package/cjs/compile/interface/compiler.d.ts +1 -0
  71. package/cjs/compile/interface/compiler.js.map +1 -1
  72. package/cjs/compile/mark/compilable-mark.d.ts +4 -2
  73. package/cjs/compile/mark/compilable-mark.js +4 -1
  74. package/cjs/compile/mark/compilable-mark.js.map +1 -1
  75. package/cjs/compile/mark/interface.d.ts +3 -2
  76. package/cjs/compile/mark/interface.js.map +1 -1
  77. package/cjs/compile/mark/mark-state-manager.d.ts +2 -2
  78. package/cjs/compile/mark/mark-state-manager.js +2 -2
  79. package/cjs/compile/mark/mark-state-manager.js.map +1 -1
  80. package/cjs/compile/signal/state-manager.d.ts +1 -1
  81. package/cjs/compile/signal/state-manager.js +2 -2
  82. package/cjs/compile/signal/state-manager.js.map +1 -1
  83. package/cjs/component/axis/base-axis.d.ts +10 -10
  84. package/cjs/component/axis/base-axis.js +35 -25
  85. package/cjs/component/axis/base-axis.js.map +1 -1
  86. package/cjs/component/axis/cartesian/axis.d.ts +5 -4
  87. package/cjs/component/axis/cartesian/axis.js +21 -13
  88. package/cjs/component/axis/cartesian/axis.js.map +1 -1
  89. package/cjs/component/axis/cartesian/band-axis.d.ts +1 -0
  90. package/cjs/component/axis/cartesian/band-axis.js +2 -1
  91. package/cjs/component/axis/cartesian/band-axis.js.map +1 -1
  92. package/cjs/component/axis/cartesian/interface/common.d.ts +3 -5
  93. package/cjs/component/axis/cartesian/interface/common.js.map +1 -1
  94. package/cjs/component/axis/cartesian/interface/spec.d.ts +1 -0
  95. package/cjs/component/axis/cartesian/interface/spec.js.map +1 -1
  96. package/cjs/component/axis/cartesian/time-axis.js +10 -17
  97. package/cjs/component/axis/cartesian/time-axis.js.map +1 -1
  98. package/cjs/component/axis/interface/common.d.ts +10 -0
  99. package/cjs/component/axis/interface/common.js.map +1 -1
  100. package/cjs/component/axis/interface/spec.d.ts +4 -7
  101. package/cjs/component/axis/interface/spec.js.map +1 -1
  102. package/cjs/component/axis/mixin/band-axis-mixin.d.ts +19 -2
  103. package/cjs/component/axis/mixin/band-axis-mixin.js +50 -2
  104. package/cjs/component/axis/mixin/band-axis-mixin.js.map +1 -1
  105. package/cjs/component/axis/mixin/linear-axis-mixin.d.ts +9 -1
  106. package/cjs/component/axis/mixin/linear-axis-mixin.js +19 -6
  107. package/cjs/component/axis/mixin/linear-axis-mixin.js.map +1 -1
  108. package/cjs/component/axis/polar/axis.d.ts +8 -4
  109. package/cjs/component/axis/polar/axis.js +52 -60
  110. package/cjs/component/axis/polar/axis.js.map +1 -1
  111. package/cjs/component/axis/polar/band-axis.d.ts +1 -0
  112. package/cjs/component/axis/util.d.ts +6 -0
  113. package/cjs/component/axis/util.js +13 -3
  114. package/cjs/component/axis/util.js.map +1 -1
  115. package/cjs/component/base/base-component.d.ts +0 -5
  116. package/cjs/component/base/base-component.js +0 -6
  117. package/cjs/component/base/base-component.js.map +1 -1
  118. package/cjs/component/base/util.js +4 -4
  119. package/cjs/component/base/util.js.map +1 -1
  120. package/cjs/component/brush/brush.d.ts +2 -1
  121. package/cjs/component/brush/brush.js +17 -11
  122. package/cjs/component/brush/brush.js.map +1 -1
  123. package/cjs/component/crosshair/base.d.ts +10 -2
  124. package/cjs/component/crosshair/base.js +118 -84
  125. package/cjs/component/crosshair/base.js.map +1 -1
  126. package/cjs/component/crosshair/cartesian.d.ts +5 -0
  127. package/cjs/component/crosshair/cartesian.js +96 -83
  128. package/cjs/component/crosshair/cartesian.js.map +1 -1
  129. package/cjs/component/crosshair/config.d.ts +1 -2
  130. package/cjs/component/crosshair/config.js +1 -1
  131. package/cjs/component/crosshair/config.js.map +1 -1
  132. package/cjs/component/crosshair/interface/spec.d.ts +2 -1
  133. package/cjs/component/crosshair/interface/spec.js.map +1 -1
  134. package/cjs/component/crosshair/polar.js +2 -1
  135. package/cjs/component/crosshair/polar.js.map +1 -1
  136. package/cjs/component/custom-mark/custom-mark.js +1 -1
  137. package/cjs/component/custom-mark/custom-mark.js.map +1 -1
  138. package/cjs/component/data-zoom/data-filter-base-component.d.ts +1 -1
  139. package/cjs/component/data-zoom/data-filter-base-component.js +5 -2
  140. package/cjs/component/data-zoom/data-filter-base-component.js.map +1 -1
  141. package/cjs/component/data-zoom/data-zoom/data-zoom.js +2 -1
  142. package/cjs/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
  143. package/cjs/component/data-zoom/scroll-bar/scroll-bar.js +2 -1
  144. package/cjs/component/data-zoom/scroll-bar/scroll-bar.js.map +1 -1
  145. package/cjs/component/geo/geo-coordinate.d.ts +1 -0
  146. package/cjs/component/geo/geo-coordinate.js +7 -6
  147. package/cjs/component/geo/geo-coordinate.js.map +1 -1
  148. package/cjs/component/indicator/indicator.d.ts +2 -0
  149. package/cjs/component/indicator/indicator.js +21 -12
  150. package/cjs/component/indicator/indicator.js.map +1 -1
  151. package/cjs/component/indicator/interface.d.ts +1 -0
  152. package/cjs/component/indicator/interface.js.map +1 -1
  153. package/cjs/component/interface/common.d.ts +1 -0
  154. package/cjs/component/interface/common.js.map +1 -1
  155. package/cjs/component/interface/theme.d.ts +1 -0
  156. package/cjs/component/interface/theme.js.map +1 -1
  157. package/cjs/component/label/base-label.d.ts +0 -3
  158. package/cjs/component/label/base-label.js +5 -8
  159. package/cjs/component/label/base-label.js.map +1 -1
  160. package/cjs/component/label/interface.d.ts +1 -0
  161. package/cjs/component/label/interface.js.map +1 -1
  162. package/cjs/component/label/label.js +18 -18
  163. package/cjs/component/label/label.js.map +1 -1
  164. package/cjs/component/label/total-label.js +7 -3
  165. package/cjs/component/label/total-label.js.map +1 -1
  166. package/cjs/component/label/util.d.ts +6 -0
  167. package/cjs/component/label/util.js +28 -5
  168. package/cjs/component/label/util.js.map +1 -1
  169. package/cjs/component/legend/base-legend.d.ts +1 -1
  170. package/cjs/component/legend/base-legend.js +1 -1
  171. package/cjs/component/legend/base-legend.js.map +1 -1
  172. package/cjs/component/legend/continuous/legend.js +3 -3
  173. package/cjs/component/legend/continuous/legend.js.map +1 -1
  174. package/cjs/component/legend/discrete/legend.d.ts +1 -0
  175. package/cjs/component/legend/discrete/legend.js +7 -4
  176. package/cjs/component/legend/discrete/legend.js.map +1 -1
  177. package/cjs/component/legend/util.d.ts +1 -1
  178. package/cjs/component/map-label/component.js +15 -15
  179. package/cjs/component/map-label/component.js.map +1 -1
  180. package/cjs/component/marker/interface.d.ts +3 -4
  181. package/cjs/component/marker/interface.js.map +1 -1
  182. package/cjs/component/marker/mark-area/mark-area.js +8 -16
  183. package/cjs/component/marker/mark-area/mark-area.js.map +1 -1
  184. package/cjs/component/marker/mark-line/mark-line.js +19 -24
  185. package/cjs/component/marker/mark-line/mark-line.js.map +1 -1
  186. package/cjs/component/marker/mark-point/interface/theme.d.ts +1 -0
  187. package/cjs/component/marker/mark-point/interface/theme.js.map +1 -1
  188. package/cjs/component/marker/mark-point/mark-point.js +33 -28
  189. package/cjs/component/marker/mark-point/mark-point.js.map +1 -1
  190. package/cjs/component/marker/utils.d.ts +2 -1
  191. package/cjs/component/marker/utils.js +47 -29
  192. package/cjs/component/marker/utils.js.map +1 -1
  193. package/cjs/component/player/player.js +3 -1
  194. package/cjs/component/player/player.js.map +1 -1
  195. package/cjs/component/title/title.js +2 -1
  196. package/cjs/component/title/title.js.map +1 -1
  197. package/cjs/component/tooltip/processor/base.js +13 -9
  198. package/cjs/component/tooltip/processor/base.js.map +1 -1
  199. package/cjs/component/tooltip/tooltip.js +11 -7
  200. package/cjs/component/tooltip/tooltip.js.map +1 -1
  201. package/cjs/component/tooltip/utils/show-tooltip.js +2 -1
  202. package/cjs/component/tooltip/utils/show-tooltip.js.map +1 -1
  203. package/cjs/constant/base.js +1 -2
  204. package/cjs/constant/scroll-bar.js +2 -1
  205. package/cjs/core/expression-function.js +1 -2
  206. package/cjs/core/factory.d.ts +5 -0
  207. package/cjs/core/factory.js +10 -1
  208. package/cjs/core/factory.js.map +1 -1
  209. package/cjs/core/index.d.ts +2 -1
  210. package/cjs/core/index.js +3 -3
  211. package/cjs/core/index.js.map +1 -1
  212. package/cjs/core/interface.d.ts +4 -1
  213. package/cjs/core/interface.js.map +1 -1
  214. package/cjs/core/vchart.d.ts +9 -5
  215. package/cjs/core/vchart.js +64 -84
  216. package/cjs/core/vchart.js.map +1 -1
  217. package/cjs/data/transforms/aggregation.js +25 -21
  218. package/cjs/data/transforms/aggregation.js.map +1 -1
  219. package/cjs/data/transforms/dimension-statistics.js +1 -1
  220. package/cjs/data/transforms/dimension-statistics.js.map +1 -1
  221. package/cjs/event/event-dispatcher.js +5 -5
  222. package/cjs/event/event-dispatcher.js.map +1 -1
  223. package/cjs/event/events/dimension/dimension-click.js +1 -1
  224. package/cjs/event/events/dimension/dimension-click.js.map +1 -1
  225. package/cjs/event/events/dimension/dimension-hover.js +4 -4
  226. package/cjs/event/events/dimension/dimension-hover.js.map +1 -1
  227. package/cjs/event/events/dimension/util/cartesian.d.ts +1 -1
  228. package/cjs/event/events/dimension/util/cartesian.js +28 -12
  229. package/cjs/event/events/dimension/util/cartesian.js.map +1 -1
  230. package/cjs/event/index.js +1 -2
  231. package/cjs/index-lark.js +2 -2
  232. package/cjs/index-lark.js.map +1 -1
  233. package/cjs/index-wx-simple.js +2 -2
  234. package/cjs/index-wx-simple.js.map +1 -1
  235. package/cjs/index-wx.js +2 -2
  236. package/cjs/index-wx.js.map +1 -1
  237. package/cjs/interaction/config.js +4 -4
  238. package/cjs/interaction/config.js.map +1 -1
  239. package/cjs/interaction/drill/drillable.js +1 -1
  240. package/cjs/interaction/drill/drillable.js.map +1 -1
  241. package/cjs/interaction/interface.d.ts +24 -2
  242. package/cjs/interaction/interface.js.map +1 -1
  243. package/cjs/interaction/zoom/zoomable.d.ts +2 -0
  244. package/cjs/interaction/zoom/zoomable.js +35 -30
  245. package/cjs/interaction/zoom/zoomable.js.map +1 -1
  246. package/cjs/layout/base-layout.d.ts +46 -2
  247. package/cjs/layout/base-layout.js +192 -34
  248. package/cjs/layout/base-layout.js.map +1 -1
  249. package/cjs/layout/interface.d.ts +3 -0
  250. package/cjs/layout/interface.js.map +1 -1
  251. package/cjs/layout/layout-item.d.ts +2 -1
  252. package/cjs/layout/layout-item.js +3 -2
  253. package/cjs/layout/layout-item.js.map +1 -1
  254. package/cjs/layout/layout3d/index.d.ts +1 -8
  255. package/cjs/layout/layout3d/index.js +10 -69
  256. package/cjs/layout/layout3d/index.js.map +1 -1
  257. package/cjs/layout/util.js +90 -118
  258. package/cjs/layout/util.js.map +1 -1
  259. package/cjs/mark/interface/type.d.ts +1 -0
  260. package/cjs/mark/interface/type.js +2 -1
  261. package/cjs/mark/interface/type.js.map +1 -1
  262. package/cjs/mark/liquid.d.ts +13 -0
  263. package/cjs/mark/liquid.js +32 -0
  264. package/cjs/mark/liquid.js.map +1 -0
  265. package/cjs/mark/mark-set/index.js +1 -1
  266. package/cjs/mark/mark-set/index.js.map +1 -1
  267. package/cjs/model/base-model-transformer.d.ts +2 -1
  268. package/cjs/model/base-model-transformer.js +6 -2
  269. package/cjs/model/base-model-transformer.js.map +1 -1
  270. package/cjs/model/base-model.d.ts +1 -2
  271. package/cjs/model/base-model.js +11 -10
  272. package/cjs/model/base-model.js.map +1 -1
  273. package/cjs/model/interface.d.ts +3 -2
  274. package/cjs/model/interface.js.map +1 -1
  275. package/cjs/plugin/chart/media-query/interface/common.d.ts +0 -4
  276. package/cjs/plugin/chart/media-query/interface/common.js.map +1 -1
  277. package/cjs/plugin/chart/media-query/interface/index.d.ts +1 -1
  278. package/cjs/plugin/chart/media-query/interface/index.js +1 -1
  279. package/cjs/plugin/chart/media-query/interface/index.js.map +1 -1
  280. package/cjs/plugin/chart/media-query/media-query.d.ts +3 -1
  281. package/cjs/plugin/chart/media-query/media-query.js +14 -11
  282. package/cjs/plugin/chart/media-query/media-query.js.map +1 -1
  283. package/cjs/plugin/chart/media-query/util/action.d.ts +2 -2
  284. package/cjs/plugin/chart/media-query/util/action.js +6 -3
  285. package/cjs/plugin/chart/media-query/util/action.js.map +1 -1
  286. package/cjs/plugin/chart/media-query/util/filter.d.ts +3 -3
  287. package/cjs/plugin/chart/media-query/util/filter.js +11 -14
  288. package/cjs/plugin/chart/media-query/util/filter.js.map +1 -1
  289. package/cjs/plugin/chart/register.js +2 -2
  290. package/cjs/plugin/chart/register.js.map +1 -1
  291. package/cjs/plugin/components/axis-sync/axis-sync.js.map +1 -0
  292. package/cjs/plugin/components/axis-sync/index.js.map +1 -0
  293. package/cjs/plugin/components/axis-sync/tick-align-transform.js.map +1 -0
  294. package/cjs/plugin/components/{axis-sync-plugin → axis-sync}/zero-align-transform.js +1 -1
  295. package/cjs/plugin/components/axis-sync/zero-align-transform.js.map +1 -0
  296. package/cjs/plugin/components/index.d.ts +1 -1
  297. package/cjs/plugin/components/index.js +2 -2
  298. package/cjs/plugin/components/index.js.map +1 -1
  299. package/cjs/plugin/components/register.d.ts +2 -0
  300. package/cjs/plugin/components/register.js +12 -0
  301. package/cjs/plugin/components/register.js.map +1 -0
  302. package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/base.d.ts +10 -9
  303. package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/base.js +29 -27
  304. package/cjs/plugin/components/tooltip-handler/base.js.map +1 -0
  305. package/{esm/component/tooltip/handler → cjs/plugin/components/tooltip-handler}/canvas/canvas-tooltip-handler.d.ts +7 -4
  306. package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/canvas/canvas-tooltip-handler.js +14 -6
  307. package/cjs/plugin/components/tooltip-handler/canvas/canvas-tooltip-handler.js.map +1 -0
  308. package/cjs/plugin/components/tooltip-handler/canvas/index.js.map +1 -0
  309. package/cjs/plugin/components/tooltip-handler/constants.js.map +1 -0
  310. package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/dom-tooltip-handler.d.ts +7 -4
  311. package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/dom-tooltip-handler.js +15 -7
  312. package/cjs/plugin/components/tooltip-handler/dom/dom-tooltip-handler.js.map +1 -0
  313. package/cjs/plugin/components/tooltip-handler/dom/index.js.map +1 -0
  314. package/cjs/plugin/components/tooltip-handler/dom/interface.js.map +1 -0
  315. package/cjs/plugin/components/tooltip-handler/dom/model/base-tooltip-model.js.map +1 -0
  316. package/cjs/plugin/components/tooltip-handler/dom/model/content-column-model.js.map +1 -0
  317. package/cjs/plugin/components/tooltip-handler/dom/model/content-model.js.map +1 -0
  318. package/cjs/plugin/components/tooltip-handler/dom/model/interface.js +6 -0
  319. package/cjs/plugin/components/tooltip-handler/dom/model/interface.js.map +1 -0
  320. package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/shape-model.js +4 -0
  321. package/cjs/plugin/components/tooltip-handler/dom/model/shape-model.js.map +1 -0
  322. package/cjs/plugin/components/tooltip-handler/dom/model/style-constants.js.map +1 -0
  323. package/cjs/plugin/components/tooltip-handler/dom/model/text-model.js.map +1 -0
  324. package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/title-model.js +7 -3
  325. package/cjs/plugin/components/tooltip-handler/dom/model/title-model.js.map +1 -0
  326. package/cjs/plugin/components/tooltip-handler/dom/model/tooltip-model.js.map +1 -0
  327. package/cjs/plugin/components/tooltip-handler/dom/util.js.map +1 -0
  328. package/cjs/plugin/components/tooltip-handler/index.js.map +1 -0
  329. package/cjs/plugin/components/tooltip-handler/interface/common.d.ts +4 -0
  330. package/cjs/plugin/{chart/media-query/interface/spec.js → components/tooltip-handler/interface/common.js} +1 -1
  331. package/cjs/plugin/components/tooltip-handler/interface/common.js.map +1 -0
  332. package/cjs/plugin/components/tooltip-handler/interface/index.d.ts +2 -0
  333. package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/interface/index.js +1 -1
  334. package/cjs/plugin/components/tooltip-handler/interface/index.js.map +1 -0
  335. package/cjs/plugin/components/tooltip-handler/interface/style.js.map +1 -0
  336. package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/attribute.d.ts +1 -2
  337. package/cjs/plugin/components/tooltip-handler/utils/attribute.js.map +1 -0
  338. package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/common.d.ts +1 -1
  339. package/cjs/plugin/components/tooltip-handler/utils/common.js.map +1 -0
  340. package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/compose.d.ts +1 -2
  341. package/cjs/plugin/components/tooltip-handler/utils/compose.js +106 -0
  342. package/cjs/plugin/components/tooltip-handler/utils/compose.js.map +1 -0
  343. package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/get-spec.d.ts +1 -1
  344. package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/get-spec.js +6 -6
  345. package/cjs/plugin/components/tooltip-handler/utils/get-spec.js.map +1 -0
  346. package/cjs/plugin/components/tooltip-handler/utils/index.js.map +1 -0
  347. package/cjs/plugin/components/tooltip-handler/utils/pattern.js.map +1 -0
  348. package/cjs/plugin/components/tooltip-handler/utils/position.js.map +1 -0
  349. package/cjs/region/interface.d.ts +0 -3
  350. package/cjs/region/interface.js.map +1 -1
  351. package/cjs/region/region.js +1 -1
  352. package/cjs/region/region.js.map +1 -1
  353. package/cjs/scale/global-scale.js +1 -1
  354. package/cjs/scale/global-scale.js.map +1 -1
  355. package/cjs/series/area/area-transformer.d.ts +2 -0
  356. package/cjs/series/area/area-transformer.js +18 -1
  357. package/cjs/series/area/area-transformer.js.map +1 -1
  358. package/cjs/series/area/area.d.ts +0 -1
  359. package/cjs/series/area/area.js +14 -27
  360. package/cjs/series/area/area.js.map +1 -1
  361. package/cjs/series/bar/bar.d.ts +16 -3
  362. package/cjs/series/bar/bar.js +168 -78
  363. package/cjs/series/bar/bar.js.map +1 -1
  364. package/cjs/series/bar/interface.d.ts +5 -2
  365. package/cjs/series/bar/interface.js.map +1 -1
  366. package/cjs/series/base/base-series-transformer.js +1 -2
  367. package/cjs/series/base/base-series-transformer.js.map +1 -1
  368. package/cjs/series/base/base-series.d.ts +34 -6
  369. package/cjs/series/base/base-series.js +103 -39
  370. package/cjs/series/base/base-series.js.map +1 -1
  371. package/cjs/series/base/constant.d.ts +4 -0
  372. package/cjs/series/base/constant.js +4 -3
  373. package/cjs/series/base/constant.js.map +1 -1
  374. package/cjs/series/box-plot/box-plot.js +3 -5
  375. package/cjs/series/box-plot/box-plot.js.map +1 -1
  376. package/cjs/series/cartesian/cartesian.d.ts +6 -0
  377. package/cjs/series/cartesian/cartesian.js +33 -23
  378. package/cjs/series/cartesian/cartesian.js.map +1 -1
  379. package/cjs/series/circle-packing/circle-packing.js +2 -2
  380. package/cjs/series/circle-packing/circle-packing.js.map +1 -1
  381. package/cjs/series/correlation/correlation.js +8 -8
  382. package/cjs/series/correlation/correlation.js.map +1 -1
  383. package/cjs/series/dot/dot.js +12 -12
  384. package/cjs/series/dot/dot.js.map +1 -1
  385. package/cjs/series/funnel/funnel.js +32 -21
  386. package/cjs/series/funnel/funnel.js.map +1 -1
  387. package/cjs/series/gauge/gauge-pointer.d.ts +1 -0
  388. package/cjs/series/gauge/gauge-pointer.js +4 -1
  389. package/cjs/series/gauge/gauge-pointer.js.map +1 -1
  390. package/cjs/series/gauge/gauge.js +5 -5
  391. package/cjs/series/gauge/gauge.js.map +1 -1
  392. package/cjs/series/heatmap/heatmap.d.ts +1 -0
  393. package/cjs/series/heatmap/heatmap.js +9 -4
  394. package/cjs/series/heatmap/heatmap.js.map +1 -1
  395. package/cjs/series/interface/common.d.ts +1 -1
  396. package/cjs/series/interface/common.js.map +1 -1
  397. package/cjs/series/interface/series.d.ts +2 -3
  398. package/cjs/series/interface/series.js.map +1 -1
  399. package/cjs/series/interface/theme.d.ts +2 -0
  400. package/cjs/series/interface/theme.js +3 -2
  401. package/cjs/series/interface/theme.js.map +1 -1
  402. package/cjs/series/interface/type.d.ts +6 -2
  403. package/cjs/series/interface/type.js +4 -2
  404. package/cjs/series/interface/type.js.map +1 -1
  405. package/cjs/series/line/line.js +8 -5
  406. package/cjs/series/line/line.js.map +1 -1
  407. package/cjs/series/link/link.d.ts +1 -0
  408. package/cjs/series/link/link.js +9 -4
  409. package/cjs/series/link/link.js.map +1 -1
  410. package/cjs/series/liquid/animation.d.ts +14 -0
  411. package/cjs/series/liquid/animation.js +63 -0
  412. package/cjs/series/liquid/animation.js.map +1 -0
  413. package/cjs/series/liquid/constant.d.ts +2 -0
  414. package/cjs/series/liquid/constant.js +23 -0
  415. package/cjs/series/liquid/constant.js.map +1 -0
  416. package/cjs/series/liquid/interface.d.ts +35 -0
  417. package/cjs/series/liquid/interface.js +6 -0
  418. package/cjs/series/liquid/interface.js.map +1 -0
  419. package/cjs/series/liquid/liquid.d.ts +50 -0
  420. package/cjs/series/liquid/liquid.js +200 -0
  421. package/cjs/series/liquid/liquid.js.map +1 -0
  422. package/cjs/series/liquid/tooltip-helper.d.ts +9 -0
  423. package/cjs/series/liquid/tooltip-helper.js +37 -0
  424. package/cjs/series/liquid/tooltip-helper.js.map +1 -0
  425. package/cjs/series/liquid/util.d.ts +2 -0
  426. package/cjs/series/liquid/util.js +15 -0
  427. package/cjs/series/liquid/util.js.map +1 -0
  428. package/cjs/series/map/map.js +4 -4
  429. package/cjs/series/map/map.js.map +1 -1
  430. package/cjs/series/mixin/line-mixin.d.ts +2 -2
  431. package/cjs/series/mixin/line-mixin.js +41 -24
  432. package/cjs/series/mixin/line-mixin.js.map +1 -1
  433. package/cjs/series/pie/pie.d.ts +1 -0
  434. package/cjs/series/pie/pie.js +11 -7
  435. package/cjs/series/pie/pie.js.map +1 -1
  436. package/cjs/series/polar/polar.d.ts +2 -0
  437. package/cjs/series/polar/polar.js +1 -1
  438. package/cjs/series/polar/polar.js.map +1 -1
  439. package/cjs/series/polar/progress-like/progress-like.js +4 -3
  440. package/cjs/series/polar/progress-like/progress-like.js.map +1 -1
  441. package/cjs/series/polar/rose-like/rose-like.js +4 -3
  442. package/cjs/series/polar/rose-like/rose-like.js.map +1 -1
  443. package/cjs/series/progress/circular/circular.d.ts +1 -0
  444. package/cjs/series/progress/circular/circular.js +15 -8
  445. package/cjs/series/progress/circular/circular.js.map +1 -1
  446. package/cjs/series/progress/linear/linear.d.ts +1 -0
  447. package/cjs/series/progress/linear/linear.js +56 -52
  448. package/cjs/series/progress/linear/linear.js.map +1 -1
  449. package/cjs/series/radar/animation.js +1 -1
  450. package/cjs/series/radar/animation.js.map +1 -1
  451. package/cjs/series/radar/radar.js +4 -3
  452. package/cjs/series/radar/radar.js.map +1 -1
  453. package/cjs/series/range-area/range-area.js +4 -3
  454. package/cjs/series/range-area/range-area.js.map +1 -1
  455. package/cjs/series/range-column/range-column.d.ts +5 -1
  456. package/cjs/series/range-column/range-column.js +29 -31
  457. package/cjs/series/range-column/range-column.js.map +1 -1
  458. package/cjs/series/rose/rose.js +5 -4
  459. package/cjs/series/rose/rose.js.map +1 -1
  460. package/cjs/series/sankey/sankey.js +13 -12
  461. package/cjs/series/sankey/sankey.js.map +1 -1
  462. package/cjs/series/scatter/scatter.js +10 -10
  463. package/cjs/series/scatter/scatter.js.map +1 -1
  464. package/cjs/series/sunburst/sunburst.js +5 -4
  465. package/cjs/series/sunburst/sunburst.js.map +1 -1
  466. package/cjs/series/treemap/treemap-transform.d.ts +6 -0
  467. package/cjs/series/treemap/treemap-transform.js +17 -0
  468. package/cjs/series/treemap/treemap-transform.js.map +1 -0
  469. package/cjs/series/treemap/treemap.d.ts +6 -3
  470. package/cjs/series/treemap/treemap.js +28 -45
  471. package/cjs/series/treemap/treemap.js.map +1 -1
  472. package/cjs/series/util/stack.js +1 -1
  473. package/cjs/series/util/stack.js.map +1 -1
  474. package/cjs/series/waterfall/waterfall-transformer.js +1 -1
  475. package/cjs/series/waterfall/waterfall-transformer.js.map +1 -1
  476. package/cjs/series/waterfall/waterfall.js +3 -2
  477. package/cjs/series/waterfall/waterfall.js.map +1 -1
  478. package/cjs/series/word-cloud/base.d.ts +7 -7
  479. package/cjs/series/word-cloud/base.js +42 -49
  480. package/cjs/series/word-cloud/base.js.map +1 -1
  481. package/cjs/series/word-cloud/interface.d.ts +1 -1
  482. package/cjs/series/word-cloud/interface.js.map +1 -1
  483. package/cjs/series/word-cloud/word-cloud-3d.js +4 -25
  484. package/cjs/series/word-cloud/word-cloud-3d.js.map +1 -1
  485. package/cjs/theme/builtin/common/component/axis/cartesian-axis.d.ts +1 -0
  486. package/cjs/theme/builtin/common/component/axis/cartesian-axis.js +6 -2
  487. package/cjs/theme/builtin/common/component/axis/cartesian-axis.js.map +1 -1
  488. package/cjs/theme/builtin/common/component/index.js +1 -0
  489. package/cjs/theme/builtin/common/component/index.js.map +1 -1
  490. package/cjs/theme/builtin/common/mark.js +2 -2
  491. package/cjs/theme/builtin/common/mark.js.map +1 -1
  492. package/cjs/theme/builtin/common/series/funnel.js +0 -2
  493. package/cjs/theme/builtin/common/series/funnel.js.map +1 -1
  494. package/cjs/theme/builtin/common/series/funnel3d.js +0 -2
  495. package/cjs/theme/builtin/common/series/funnel3d.js.map +1 -1
  496. package/cjs/theme/builtin/common/series/index.js +3 -2
  497. package/cjs/theme/builtin/common/series/index.js.map +1 -1
  498. package/cjs/theme/builtin/common/series/liquid.d.ts +2 -0
  499. package/cjs/theme/builtin/common/series/liquid.js +19 -0
  500. package/cjs/theme/builtin/common/series/liquid.js.map +1 -0
  501. package/cjs/theme/builtin/common/series/waterfall.js +1 -2
  502. package/cjs/theme/builtin/common/series/waterfall.js.map +1 -1
  503. package/cjs/theme/builtin/index.js +3 -1
  504. package/cjs/theme/builtin/index.js.map +1 -1
  505. package/cjs/typings/layout.d.ts +2 -1
  506. package/cjs/typings/layout.js.map +1 -1
  507. package/cjs/typings/spec/common.d.ts +5 -2
  508. package/cjs/typings/spec/common.js.map +1 -1
  509. package/cjs/typings/spec/index.d.ts +1 -0
  510. package/cjs/typings/spec/index.js +2 -1
  511. package/cjs/typings/spec/index.js.map +1 -1
  512. package/{esm/plugin/chart/media-query/interface/spec.d.ts → cjs/typings/spec/media-query.d.ts} +8 -5
  513. package/cjs/typings/spec/media-query.js +6 -0
  514. package/cjs/typings/spec/media-query.js.map +1 -0
  515. package/cjs/typings/tooltip/line.d.ts +4 -0
  516. package/cjs/typings/tooltip/line.js.map +1 -1
  517. package/cjs/typings/visual.d.ts +6 -0
  518. package/cjs/typings/visual.js.map +1 -1
  519. package/cjs/util/env.js +9 -7
  520. package/cjs/util/env.js.map +1 -1
  521. package/cjs/util/model.js.map +1 -1
  522. package/cjs/vchart-all.js +2 -2
  523. package/cjs/vchart-all.js.map +1 -1
  524. package/cjs/vchart-simple.js +2 -2
  525. package/cjs/vchart-simple.js.map +1 -1
  526. package/esm/animation/config.js +1 -1
  527. package/esm/animation/config.js.map +1 -1
  528. package/esm/animation/utils.d.ts +1 -1
  529. package/esm/animation/utils.js +15 -14
  530. package/esm/animation/utils.js.map +1 -1
  531. package/esm/chart/base/base-chart-transformer.d.ts +1 -0
  532. package/esm/chart/base/base-chart-transformer.js +49 -21
  533. package/esm/chart/base/base-chart-transformer.js.map +1 -1
  534. package/esm/chart/base/base-chart.d.ts +1 -0
  535. package/esm/chart/base/base-chart.js +20 -15
  536. package/esm/chart/base/base-chart.js.map +1 -1
  537. package/esm/chart/base/util.d.ts +7 -0
  538. package/esm/chart/base/util.js +16 -0
  539. package/esm/chart/base/util.js.map +1 -0
  540. package/esm/chart/circle-packing/circle-packing-transformer.js +1 -7
  541. package/esm/chart/circle-packing/circle-packing-transformer.js.map +1 -1
  542. package/esm/chart/correlation/correlation-transformer.js +1 -7
  543. package/esm/chart/correlation/correlation-transformer.js.map +1 -1
  544. package/esm/chart/histogram/base/histogram-base-transformer.js +2 -1
  545. package/esm/chart/histogram/base/histogram-base-transformer.js.map +1 -1
  546. package/esm/chart/index.d.ts +5 -3
  547. package/esm/chart/index.js +4 -2
  548. package/esm/chart/index.js.map +1 -1
  549. package/esm/chart/interface/chart.d.ts +1 -0
  550. package/esm/chart/interface/chart.js.map +1 -1
  551. package/esm/chart/interface/common.d.ts +2 -4
  552. package/esm/chart/interface/common.js.map +1 -1
  553. package/esm/chart/interface/type.d.ts +2 -1
  554. package/esm/chart/interface/type.js +1 -1
  555. package/esm/chart/interface/type.js.map +1 -1
  556. package/esm/chart/liquid/index.d.ts +2 -0
  557. package/esm/chart/liquid/index.js +4 -0
  558. package/esm/chart/liquid/index.js.map +1 -0
  559. package/esm/chart/liquid/interface.d.ts +7 -0
  560. package/esm/chart/liquid/interface.js.map +1 -0
  561. package/esm/chart/liquid/liquid-transformer.d.ts +6 -0
  562. package/esm/chart/liquid/liquid-transformer.js +23 -0
  563. package/esm/chart/liquid/liquid-transformer.js.map +1 -0
  564. package/esm/chart/liquid/liquid.d.ts +13 -0
  565. package/esm/chart/liquid/liquid.js +26 -0
  566. package/esm/chart/liquid/liquid.js.map +1 -0
  567. package/esm/chart/polar/polar-transformer.js +1 -7
  568. package/esm/chart/polar/polar-transformer.js.map +1 -1
  569. package/esm/chart/range-column/range-column-transformer.js +2 -1
  570. package/esm/chart/range-column/range-column-transformer.js.map +1 -1
  571. package/esm/chart/sankey/sankey-transformer.js +1 -7
  572. package/esm/chart/sankey/sankey-transformer.js.map +1 -1
  573. package/esm/chart/sunburst/sunburst-transformer.js +1 -7
  574. package/esm/chart/sunburst/sunburst-transformer.js.map +1 -1
  575. package/esm/chart/treemap/treemap-transformer.js +1 -7
  576. package/esm/chart/treemap/treemap-transformer.js.map +1 -1
  577. package/esm/chart/util.d.ts +4 -1
  578. package/esm/chart/util.js +4 -6
  579. package/esm/chart/util.js.map +1 -1
  580. package/esm/chart/word-cloud/base/word-cloud-base-transformer.js +1 -7
  581. package/esm/chart/word-cloud/base/word-cloud-base-transformer.js.map +1 -1
  582. package/esm/compile/compiler.d.ts +16 -5
  583. package/esm/compile/compiler.js +39 -41
  584. package/esm/compile/compiler.js.map +1 -1
  585. package/esm/compile/data/compilable-data.d.ts +1 -1
  586. package/esm/compile/data/compilable-data.js +1 -1
  587. package/esm/compile/data/compilable-data.js.map +1 -1
  588. package/esm/compile/data/interface.d.ts +1 -1
  589. package/esm/compile/data/interface.js.map +1 -1
  590. package/esm/compile/grammar-item.js +2 -1
  591. package/esm/compile/interface/compiler.d.ts +1 -0
  592. package/esm/compile/interface/compiler.js.map +1 -1
  593. package/esm/compile/mark/compilable-mark.d.ts +4 -2
  594. package/esm/compile/mark/compilable-mark.js +4 -1
  595. package/esm/compile/mark/compilable-mark.js.map +1 -1
  596. package/esm/compile/mark/interface.d.ts +3 -2
  597. package/esm/compile/mark/interface.js.map +1 -1
  598. package/esm/compile/mark/mark-state-manager.d.ts +2 -2
  599. package/esm/compile/mark/mark-state-manager.js +2 -2
  600. package/esm/compile/mark/mark-state-manager.js.map +1 -1
  601. package/esm/compile/signal/state-manager.d.ts +1 -1
  602. package/esm/compile/signal/state-manager.js +1 -1
  603. package/esm/compile/signal/state-manager.js.map +1 -1
  604. package/esm/component/axis/base-axis.d.ts +10 -10
  605. package/esm/component/axis/base-axis.js +36 -24
  606. package/esm/component/axis/base-axis.js.map +1 -1
  607. package/esm/component/axis/cartesian/axis.d.ts +5 -4
  608. package/esm/component/axis/cartesian/axis.js +21 -15
  609. package/esm/component/axis/cartesian/axis.js.map +1 -1
  610. package/esm/component/axis/cartesian/band-axis.d.ts +1 -0
  611. package/esm/component/axis/cartesian/band-axis.js +2 -1
  612. package/esm/component/axis/cartesian/band-axis.js.map +1 -1
  613. package/esm/component/axis/cartesian/interface/common.d.ts +3 -5
  614. package/esm/component/axis/cartesian/interface/common.js.map +1 -1
  615. package/esm/component/axis/cartesian/interface/spec.d.ts +1 -0
  616. package/esm/component/axis/cartesian/interface/spec.js.map +1 -1
  617. package/esm/component/axis/cartesian/time-axis.js +9 -18
  618. package/esm/component/axis/cartesian/time-axis.js.map +1 -1
  619. package/esm/component/axis/interface/common.d.ts +10 -0
  620. package/esm/component/axis/interface/common.js.map +1 -1
  621. package/esm/component/axis/interface/spec.d.ts +4 -7
  622. package/esm/component/axis/interface/spec.js.map +1 -1
  623. package/esm/component/axis/mixin/band-axis-mixin.d.ts +19 -2
  624. package/esm/component/axis/mixin/band-axis-mixin.js +54 -2
  625. package/esm/component/axis/mixin/band-axis-mixin.js.map +1 -1
  626. package/esm/component/axis/mixin/linear-axis-mixin.d.ts +9 -1
  627. package/esm/component/axis/mixin/linear-axis-mixin.js +20 -6
  628. package/esm/component/axis/mixin/linear-axis-mixin.js.map +1 -1
  629. package/esm/component/axis/polar/axis.d.ts +8 -4
  630. package/esm/component/axis/polar/axis.js +50 -58
  631. package/esm/component/axis/polar/axis.js.map +1 -1
  632. package/esm/component/axis/polar/band-axis.d.ts +1 -0
  633. package/esm/component/axis/util.d.ts +6 -0
  634. package/esm/component/axis/util.js +11 -2
  635. package/esm/component/axis/util.js.map +1 -1
  636. package/esm/component/base/base-component.d.ts +0 -5
  637. package/esm/component/base/base-component.js +0 -6
  638. package/esm/component/base/base-component.js.map +1 -1
  639. package/esm/component/base/util.js +4 -4
  640. package/esm/component/base/util.js.map +1 -1
  641. package/esm/component/brush/brush.d.ts +2 -1
  642. package/esm/component/brush/brush.js +17 -11
  643. package/esm/component/brush/brush.js.map +1 -1
  644. package/esm/component/crosshair/base.d.ts +10 -2
  645. package/esm/component/crosshair/base.js +118 -83
  646. package/esm/component/crosshair/base.js.map +1 -1
  647. package/esm/component/crosshair/cartesian.d.ts +5 -0
  648. package/esm/component/crosshair/cartesian.js +94 -83
  649. package/esm/component/crosshair/cartesian.js.map +1 -1
  650. package/esm/component/crosshair/config.d.ts +1 -2
  651. package/esm/component/crosshair/config.js +1 -1
  652. package/esm/component/crosshair/config.js.map +1 -1
  653. package/esm/component/crosshair/interface/spec.d.ts +2 -1
  654. package/esm/component/crosshair/interface/spec.js.map +1 -1
  655. package/esm/component/crosshair/polar.js +2 -1
  656. package/esm/component/crosshair/polar.js.map +1 -1
  657. package/esm/component/custom-mark/custom-mark.js +1 -1
  658. package/esm/component/custom-mark/custom-mark.js.map +1 -1
  659. package/esm/component/data-zoom/data-filter-base-component.d.ts +1 -1
  660. package/esm/component/data-zoom/data-filter-base-component.js +5 -3
  661. package/esm/component/data-zoom/data-filter-base-component.js.map +1 -1
  662. package/esm/component/data-zoom/data-zoom/data-zoom.js +2 -1
  663. package/esm/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
  664. package/esm/component/data-zoom/scroll-bar/scroll-bar.js +2 -1
  665. package/esm/component/data-zoom/scroll-bar/scroll-bar.js.map +1 -1
  666. package/esm/component/geo/geo-coordinate.d.ts +1 -0
  667. package/esm/component/geo/geo-coordinate.js +7 -6
  668. package/esm/component/geo/geo-coordinate.js.map +1 -1
  669. package/esm/component/indicator/indicator.d.ts +2 -0
  670. package/esm/component/indicator/indicator.js +20 -13
  671. package/esm/component/indicator/indicator.js.map +1 -1
  672. package/esm/component/indicator/interface.d.ts +1 -0
  673. package/esm/component/indicator/interface.js.map +1 -1
  674. package/esm/component/interface/common.d.ts +1 -0
  675. package/esm/component/interface/common.js.map +1 -1
  676. package/esm/component/interface/theme.d.ts +1 -0
  677. package/esm/component/interface/theme.js.map +1 -1
  678. package/esm/component/label/base-label.d.ts +0 -3
  679. package/esm/component/label/base-label.js +5 -8
  680. package/esm/component/label/base-label.js.map +1 -1
  681. package/esm/component/label/interface.d.ts +1 -0
  682. package/esm/component/label/interface.js.map +1 -1
  683. package/esm/component/label/label.js +18 -18
  684. package/esm/component/label/label.js.map +1 -1
  685. package/esm/component/label/total-label.js +7 -3
  686. package/esm/component/label/total-label.js.map +1 -1
  687. package/esm/component/label/util.d.ts +6 -0
  688. package/esm/component/label/util.js +24 -2
  689. package/esm/component/label/util.js.map +1 -1
  690. package/esm/component/legend/base-legend.d.ts +1 -1
  691. package/esm/component/legend/base-legend.js +1 -1
  692. package/esm/component/legend/base-legend.js.map +1 -1
  693. package/esm/component/legend/continuous/legend.js +3 -3
  694. package/esm/component/legend/continuous/legend.js.map +1 -1
  695. package/esm/component/legend/discrete/legend.d.ts +1 -0
  696. package/esm/component/legend/discrete/legend.js +7 -4
  697. package/esm/component/legend/discrete/legend.js.map +1 -1
  698. package/esm/component/legend/util.d.ts +1 -1
  699. package/esm/component/map-label/component.js +15 -15
  700. package/esm/component/map-label/component.js.map +1 -1
  701. package/esm/component/marker/interface.d.ts +3 -4
  702. package/esm/component/marker/interface.js.map +1 -1
  703. package/esm/component/marker/mark-area/mark-area.js +9 -17
  704. package/esm/component/marker/mark-area/mark-area.js.map +1 -1
  705. package/esm/component/marker/mark-line/mark-line.js +20 -25
  706. package/esm/component/marker/mark-line/mark-line.js.map +1 -1
  707. package/esm/component/marker/mark-point/interface/theme.d.ts +1 -0
  708. package/esm/component/marker/mark-point/interface/theme.js.map +1 -1
  709. package/esm/component/marker/mark-point/mark-point.js +34 -29
  710. package/esm/component/marker/mark-point/mark-point.js.map +1 -1
  711. package/esm/component/marker/utils.d.ts +2 -1
  712. package/esm/component/marker/utils.js +44 -27
  713. package/esm/component/marker/utils.js.map +1 -1
  714. package/esm/component/player/player.js +3 -1
  715. package/esm/component/player/player.js.map +1 -1
  716. package/esm/component/title/title.js +2 -1
  717. package/esm/component/title/title.js.map +1 -1
  718. package/esm/component/tooltip/processor/base.js +12 -8
  719. package/esm/component/tooltip/processor/base.js.map +1 -1
  720. package/esm/component/tooltip/tooltip.js +13 -11
  721. package/esm/component/tooltip/tooltip.js.map +1 -1
  722. package/esm/component/tooltip/utils/show-tooltip.js +2 -1
  723. package/esm/component/tooltip/utils/show-tooltip.js.map +1 -1
  724. package/esm/constant/base.js +1 -2
  725. package/esm/constant/scroll-bar.js +2 -1
  726. package/esm/core/expression-function.js +1 -2
  727. package/esm/core/factory.d.ts +5 -0
  728. package/esm/core/factory.js +10 -1
  729. package/esm/core/factory.js.map +1 -1
  730. package/esm/core/index.d.ts +2 -1
  731. package/esm/core/index.js +3 -1
  732. package/esm/core/index.js.map +1 -1
  733. package/esm/core/interface.d.ts +4 -1
  734. package/esm/core/interface.js.map +1 -1
  735. package/esm/core/vchart.d.ts +9 -5
  736. package/esm/core/vchart.js +66 -84
  737. package/esm/core/vchart.js.map +1 -1
  738. package/esm/data/transforms/aggregation.js +26 -22
  739. package/esm/data/transforms/aggregation.js.map +1 -1
  740. package/esm/data/transforms/dimension-statistics.js +1 -1
  741. package/esm/data/transforms/dimension-statistics.js.map +1 -1
  742. package/esm/event/event-dispatcher.js +5 -5
  743. package/esm/event/event-dispatcher.js.map +1 -1
  744. package/esm/event/events/dimension/dimension-click.js +1 -1
  745. package/esm/event/events/dimension/dimension-click.js.map +1 -1
  746. package/esm/event/events/dimension/dimension-hover.js +4 -4
  747. package/esm/event/events/dimension/dimension-hover.js.map +1 -1
  748. package/esm/event/events/dimension/util/cartesian.d.ts +1 -1
  749. package/esm/event/events/dimension/util/cartesian.js +28 -13
  750. package/esm/event/events/dimension/util/cartesian.js.map +1 -1
  751. package/esm/event/index.js +1 -2
  752. package/esm/index-lark.js +7 -1
  753. package/esm/index-lark.js.map +1 -1
  754. package/esm/index-wx-simple.js +5 -1
  755. package/esm/index-wx-simple.js.map +1 -1
  756. package/esm/index-wx.js +7 -1
  757. package/esm/index-wx.js.map +1 -1
  758. package/esm/interaction/config.js +4 -4
  759. package/esm/interaction/config.js.map +1 -1
  760. package/esm/interaction/drill/drillable.js +1 -1
  761. package/esm/interaction/drill/drillable.js.map +1 -1
  762. package/esm/interaction/interface.d.ts +24 -2
  763. package/esm/interaction/interface.js.map +1 -1
  764. package/esm/interaction/zoom/zoomable.d.ts +2 -0
  765. package/esm/interaction/zoom/zoomable.js +35 -30
  766. package/esm/interaction/zoom/zoomable.js.map +1 -1
  767. package/esm/layout/base-layout.d.ts +46 -2
  768. package/esm/layout/base-layout.js +190 -34
  769. package/esm/layout/base-layout.js.map +1 -1
  770. package/esm/layout/interface.d.ts +3 -0
  771. package/esm/layout/interface.js.map +1 -1
  772. package/esm/layout/layout-item.d.ts +2 -1
  773. package/esm/layout/layout-item.js +3 -2
  774. package/esm/layout/layout-item.js.map +1 -1
  775. package/esm/layout/layout3d/index.d.ts +1 -8
  776. package/esm/layout/layout3d/index.js +10 -69
  777. package/esm/layout/layout3d/index.js.map +1 -1
  778. package/esm/layout/util.js +90 -118
  779. package/esm/layout/util.js.map +1 -1
  780. package/esm/mark/interface/type.d.ts +1 -0
  781. package/esm/mark/interface/type.js +2 -1
  782. package/esm/mark/interface/type.js.map +1 -1
  783. package/esm/mark/liquid.d.ts +13 -0
  784. package/esm/mark/liquid.js +32 -0
  785. package/esm/mark/liquid.js.map +1 -0
  786. package/esm/mark/mark-set/index.js +1 -1
  787. package/esm/mark/mark-set/index.js.map +1 -1
  788. package/esm/model/base-model-transformer.d.ts +2 -1
  789. package/esm/model/base-model-transformer.js +6 -2
  790. package/esm/model/base-model-transformer.js.map +1 -1
  791. package/esm/model/base-model.d.ts +1 -2
  792. package/esm/model/base-model.js +11 -8
  793. package/esm/model/base-model.js.map +1 -1
  794. package/esm/model/interface.d.ts +3 -2
  795. package/esm/model/interface.js.map +1 -1
  796. package/esm/plugin/chart/media-query/interface/common.d.ts +0 -4
  797. package/esm/plugin/chart/media-query/interface/common.js.map +1 -1
  798. package/esm/plugin/chart/media-query/interface/index.d.ts +1 -1
  799. package/esm/plugin/chart/media-query/interface/index.js +1 -1
  800. package/esm/plugin/chart/media-query/interface/index.js.map +1 -1
  801. package/esm/plugin/chart/media-query/media-query.d.ts +3 -1
  802. package/esm/plugin/chart/media-query/media-query.js +14 -11
  803. package/esm/plugin/chart/media-query/media-query.js.map +1 -1
  804. package/esm/plugin/chart/media-query/util/action.d.ts +2 -2
  805. package/esm/plugin/chart/media-query/util/action.js +6 -3
  806. package/esm/plugin/chart/media-query/util/action.js.map +1 -1
  807. package/esm/plugin/chart/media-query/util/filter.d.ts +3 -3
  808. package/esm/plugin/chart/media-query/util/filter.js +10 -13
  809. package/esm/plugin/chart/media-query/util/filter.js.map +1 -1
  810. package/esm/plugin/chart/register.js +1 -1
  811. package/esm/plugin/chart/register.js.map +1 -1
  812. package/esm/plugin/components/axis-sync/axis-sync.js.map +1 -0
  813. package/esm/plugin/components/axis-sync/index.js.map +1 -0
  814. package/esm/plugin/components/axis-sync/tick-align-transform.js.map +1 -0
  815. package/esm/plugin/components/{axis-sync-plugin → axis-sync}/zero-align-transform.js +1 -1
  816. package/esm/plugin/components/axis-sync/zero-align-transform.js.map +1 -0
  817. package/esm/plugin/components/index.d.ts +1 -1
  818. package/esm/plugin/components/index.js +1 -1
  819. package/esm/plugin/components/index.js.map +1 -1
  820. package/esm/plugin/components/register.d.ts +2 -0
  821. package/esm/plugin/components/register.js +6 -0
  822. package/esm/plugin/components/register.js.map +1 -0
  823. package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/base.d.ts +10 -9
  824. package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/base.js +19 -13
  825. package/esm/plugin/components/tooltip-handler/base.js.map +1 -0
  826. package/{cjs/component/tooltip/handler → esm/plugin/components/tooltip-handler}/canvas/canvas-tooltip-handler.d.ts +7 -4
  827. package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/canvas/canvas-tooltip-handler.js +13 -2
  828. package/esm/plugin/components/tooltip-handler/canvas/canvas-tooltip-handler.js.map +1 -0
  829. package/esm/plugin/components/tooltip-handler/canvas/index.js.map +1 -0
  830. package/esm/plugin/components/tooltip-handler/constants.js.map +1 -0
  831. package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/dom-tooltip-handler.d.ts +7 -4
  832. package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/dom-tooltip-handler.js +14 -4
  833. package/esm/plugin/components/tooltip-handler/dom/dom-tooltip-handler.js.map +1 -0
  834. package/esm/plugin/components/tooltip-handler/dom/index.js.map +1 -0
  835. package/esm/plugin/components/tooltip-handler/dom/interface.js.map +1 -0
  836. package/esm/plugin/components/tooltip-handler/dom/model/base-tooltip-model.js.map +1 -0
  837. package/esm/plugin/components/tooltip-handler/dom/model/content-column-model.js.map +1 -0
  838. package/esm/plugin/components/tooltip-handler/dom/model/content-model.js.map +1 -0
  839. package/esm/plugin/components/tooltip-handler/dom/model/interface.js +2 -0
  840. package/esm/plugin/components/tooltip-handler/dom/model/interface.js.map +1 -0
  841. package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/shape-model.js +4 -0
  842. package/esm/plugin/components/tooltip-handler/dom/model/shape-model.js.map +1 -0
  843. package/esm/plugin/components/tooltip-handler/dom/model/style-constants.js.map +1 -0
  844. package/esm/plugin/components/tooltip-handler/dom/model/text-model.js.map +1 -0
  845. package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/title-model.js +7 -3
  846. package/esm/plugin/components/tooltip-handler/dom/model/title-model.js.map +1 -0
  847. package/esm/plugin/components/tooltip-handler/dom/model/tooltip-model.js.map +1 -0
  848. package/esm/plugin/components/tooltip-handler/dom/util.js.map +1 -0
  849. package/esm/plugin/components/tooltip-handler/index.js.map +1 -0
  850. package/esm/plugin/components/tooltip-handler/interface/common.d.ts +4 -0
  851. package/esm/plugin/components/tooltip-handler/interface/common.js +2 -0
  852. package/esm/plugin/components/tooltip-handler/interface/common.js.map +1 -0
  853. package/esm/plugin/components/tooltip-handler/interface/index.d.ts +2 -0
  854. package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/interface/index.js +2 -0
  855. package/esm/plugin/components/tooltip-handler/interface/index.js.map +1 -0
  856. package/esm/plugin/components/tooltip-handler/interface/style.js.map +1 -0
  857. package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/attribute.d.ts +1 -2
  858. package/esm/plugin/components/tooltip-handler/utils/attribute.js.map +1 -0
  859. package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/common.d.ts +1 -1
  860. package/esm/plugin/components/tooltip-handler/utils/common.js.map +1 -0
  861. package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/compose.d.ts +1 -2
  862. package/esm/plugin/components/tooltip-handler/utils/compose.js +94 -0
  863. package/esm/plugin/components/tooltip-handler/utils/compose.js.map +1 -0
  864. package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/get-spec.d.ts +1 -1
  865. package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/get-spec.js +2 -2
  866. package/esm/plugin/components/tooltip-handler/utils/get-spec.js.map +1 -0
  867. package/esm/plugin/components/tooltip-handler/utils/index.js.map +1 -0
  868. package/esm/plugin/components/tooltip-handler/utils/pattern.js.map +1 -0
  869. package/esm/plugin/components/tooltip-handler/utils/position.js.map +1 -0
  870. package/esm/region/interface.d.ts +0 -3
  871. package/esm/region/interface.js.map +1 -1
  872. package/esm/region/region.js +1 -1
  873. package/esm/region/region.js.map +1 -1
  874. package/esm/scale/global-scale.js +1 -1
  875. package/esm/scale/global-scale.js.map +1 -1
  876. package/esm/series/area/area-transformer.d.ts +2 -0
  877. package/esm/series/area/area-transformer.js +20 -0
  878. package/esm/series/area/area-transformer.js.map +1 -1
  879. package/esm/series/area/area.d.ts +0 -1
  880. package/esm/series/area/area.js +15 -26
  881. package/esm/series/area/area.js.map +1 -1
  882. package/esm/series/bar/bar.d.ts +16 -3
  883. package/esm/series/bar/bar.js +160 -71
  884. package/esm/series/bar/bar.js.map +1 -1
  885. package/esm/series/bar/interface.d.ts +5 -2
  886. package/esm/series/bar/interface.js.map +1 -1
  887. package/esm/series/base/base-series-transformer.js +1 -2
  888. package/esm/series/base/base-series-transformer.js.map +1 -1
  889. package/esm/series/base/base-series.d.ts +34 -6
  890. package/esm/series/base/base-series.js +105 -39
  891. package/esm/series/base/base-series.js.map +1 -1
  892. package/esm/series/base/constant.d.ts +4 -0
  893. package/esm/series/base/constant.js +10 -0
  894. package/esm/series/base/constant.js.map +1 -1
  895. package/esm/series/box-plot/box-plot.js +3 -4
  896. package/esm/series/box-plot/box-plot.js.map +1 -1
  897. package/esm/series/cartesian/cartesian.d.ts +6 -0
  898. package/esm/series/cartesian/cartesian.js +32 -21
  899. package/esm/series/cartesian/cartesian.js.map +1 -1
  900. package/esm/series/circle-packing/circle-packing.js +2 -2
  901. package/esm/series/circle-packing/circle-packing.js.map +1 -1
  902. package/esm/series/correlation/correlation.js +8 -6
  903. package/esm/series/correlation/correlation.js.map +1 -1
  904. package/esm/series/dot/dot.js +12 -12
  905. package/esm/series/dot/dot.js.map +1 -1
  906. package/esm/series/funnel/funnel.js +33 -22
  907. package/esm/series/funnel/funnel.js.map +1 -1
  908. package/esm/series/gauge/gauge-pointer.d.ts +1 -0
  909. package/esm/series/gauge/gauge-pointer.js +4 -1
  910. package/esm/series/gauge/gauge-pointer.js.map +1 -1
  911. package/esm/series/gauge/gauge.js +5 -5
  912. package/esm/series/gauge/gauge.js.map +1 -1
  913. package/esm/series/heatmap/heatmap.d.ts +1 -0
  914. package/esm/series/heatmap/heatmap.js +9 -4
  915. package/esm/series/heatmap/heatmap.js.map +1 -1
  916. package/esm/series/interface/common.d.ts +1 -1
  917. package/esm/series/interface/common.js.map +1 -1
  918. package/esm/series/interface/series.d.ts +2 -3
  919. package/esm/series/interface/series.js.map +1 -1
  920. package/esm/series/interface/theme.d.ts +2 -0
  921. package/esm/series/interface/theme.js +4 -1
  922. package/esm/series/interface/theme.js.map +1 -1
  923. package/esm/series/interface/type.d.ts +6 -2
  924. package/esm/series/interface/type.js +4 -2
  925. package/esm/series/interface/type.js.map +1 -1
  926. package/esm/series/line/line.js +8 -3
  927. package/esm/series/line/line.js.map +1 -1
  928. package/esm/series/link/link.d.ts +1 -0
  929. package/esm/series/link/link.js +9 -4
  930. package/esm/series/link/link.js.map +1 -1
  931. package/esm/series/liquid/animation.d.ts +14 -0
  932. package/esm/series/liquid/animation.js +55 -0
  933. package/esm/series/liquid/animation.js.map +1 -0
  934. package/esm/series/liquid/constant.d.ts +2 -0
  935. package/esm/series/liquid/constant.js +21 -0
  936. package/esm/series/liquid/constant.js.map +1 -0
  937. package/esm/series/liquid/interface.d.ts +35 -0
  938. package/esm/series/liquid/interface.js +2 -0
  939. package/esm/series/liquid/interface.js.map +1 -0
  940. package/esm/series/liquid/liquid.d.ts +50 -0
  941. package/esm/series/liquid/liquid.js +218 -0
  942. package/esm/series/liquid/liquid.js.map +1 -0
  943. package/esm/series/liquid/tooltip-helper.d.ts +9 -0
  944. package/esm/series/liquid/tooltip-helper.js +29 -0
  945. package/esm/series/liquid/tooltip-helper.js.map +1 -0
  946. package/esm/series/liquid/util.d.ts +2 -0
  947. package/esm/series/liquid/util.js +7 -0
  948. package/esm/series/liquid/util.js.map +1 -0
  949. package/esm/series/map/map.js +4 -4
  950. package/esm/series/map/map.js.map +1 -1
  951. package/esm/series/mixin/line-mixin.d.ts +2 -2
  952. package/esm/series/mixin/line-mixin.js +42 -22
  953. package/esm/series/mixin/line-mixin.js.map +1 -1
  954. package/esm/series/pie/pie.d.ts +1 -0
  955. package/esm/series/pie/pie.js +11 -7
  956. package/esm/series/pie/pie.js.map +1 -1
  957. package/esm/series/polar/polar.d.ts +2 -0
  958. package/esm/series/polar/polar.js +1 -1
  959. package/esm/series/polar/polar.js.map +1 -1
  960. package/esm/series/polar/progress-like/progress-like.js +4 -3
  961. package/esm/series/polar/progress-like/progress-like.js.map +1 -1
  962. package/esm/series/polar/rose-like/rose-like.js +4 -3
  963. package/esm/series/polar/rose-like/rose-like.js.map +1 -1
  964. package/esm/series/progress/circular/circular.d.ts +1 -0
  965. package/esm/series/progress/circular/circular.js +15 -8
  966. package/esm/series/progress/circular/circular.js.map +1 -1
  967. package/esm/series/progress/linear/linear.d.ts +1 -0
  968. package/esm/series/progress/linear/linear.js +56 -52
  969. package/esm/series/progress/linear/linear.js.map +1 -1
  970. package/esm/series/radar/animation.js +1 -1
  971. package/esm/series/radar/animation.js.map +1 -1
  972. package/esm/series/radar/radar.js +4 -3
  973. package/esm/series/radar/radar.js.map +1 -1
  974. package/esm/series/range-area/range-area.js +4 -3
  975. package/esm/series/range-area/range-area.js.map +1 -1
  976. package/esm/series/range-column/range-column.d.ts +5 -1
  977. package/esm/series/range-column/range-column.js +28 -33
  978. package/esm/series/range-column/range-column.js.map +1 -1
  979. package/esm/series/rose/rose.js +5 -4
  980. package/esm/series/rose/rose.js.map +1 -1
  981. package/esm/series/sankey/sankey.js +13 -12
  982. package/esm/series/sankey/sankey.js.map +1 -1
  983. package/esm/series/scatter/scatter.js +11 -8
  984. package/esm/series/scatter/scatter.js.map +1 -1
  985. package/esm/series/sunburst/sunburst.js +5 -4
  986. package/esm/series/sunburst/sunburst.js.map +1 -1
  987. package/esm/series/treemap/treemap-transform.d.ts +6 -0
  988. package/esm/series/treemap/treemap-transform.js +11 -0
  989. package/esm/series/treemap/treemap-transform.js.map +1 -0
  990. package/esm/series/treemap/treemap.d.ts +6 -3
  991. package/esm/series/treemap/treemap.js +29 -43
  992. package/esm/series/treemap/treemap.js.map +1 -1
  993. package/esm/series/util/stack.js +1 -1
  994. package/esm/series/util/stack.js.map +1 -1
  995. package/esm/series/waterfall/waterfall-transformer.js +1 -1
  996. package/esm/series/waterfall/waterfall-transformer.js.map +1 -1
  997. package/esm/series/waterfall/waterfall.js +3 -2
  998. package/esm/series/waterfall/waterfall.js.map +1 -1
  999. package/esm/series/word-cloud/base.d.ts +7 -7
  1000. package/esm/series/word-cloud/base.js +41 -47
  1001. package/esm/series/word-cloud/base.js.map +1 -1
  1002. package/esm/series/word-cloud/interface.d.ts +1 -1
  1003. package/esm/series/word-cloud/interface.js.map +1 -1
  1004. package/esm/series/word-cloud/word-cloud-3d.js +4 -25
  1005. package/esm/series/word-cloud/word-cloud-3d.js.map +1 -1
  1006. package/esm/theme/builtin/common/component/axis/cartesian-axis.d.ts +1 -0
  1007. package/esm/theme/builtin/common/component/axis/cartesian-axis.js +6 -0
  1008. package/esm/theme/builtin/common/component/axis/cartesian-axis.js.map +1 -1
  1009. package/esm/theme/builtin/common/component/index.js +2 -1
  1010. package/esm/theme/builtin/common/component/index.js.map +1 -1
  1011. package/esm/theme/builtin/common/mark.js +2 -2
  1012. package/esm/theme/builtin/common/mark.js.map +1 -1
  1013. package/esm/theme/builtin/common/series/funnel.js +0 -2
  1014. package/esm/theme/builtin/common/series/funnel.js.map +1 -1
  1015. package/esm/theme/builtin/common/series/funnel3d.js +0 -2
  1016. package/esm/theme/builtin/common/series/funnel3d.js.map +1 -1
  1017. package/esm/theme/builtin/common/series/index.js +4 -1
  1018. package/esm/theme/builtin/common/series/index.js.map +1 -1
  1019. package/esm/theme/builtin/common/series/liquid.d.ts +2 -0
  1020. package/esm/theme/builtin/common/series/liquid.js +15 -0
  1021. package/esm/theme/builtin/common/series/liquid.js.map +1 -0
  1022. package/esm/theme/builtin/common/series/waterfall.js +1 -2
  1023. package/esm/theme/builtin/common/series/waterfall.js.map +1 -1
  1024. package/esm/theme/builtin/index.js +2 -1
  1025. package/esm/theme/builtin/index.js.map +1 -1
  1026. package/esm/typings/layout.d.ts +2 -1
  1027. package/esm/typings/layout.js.map +1 -1
  1028. package/esm/typings/spec/common.d.ts +5 -2
  1029. package/esm/typings/spec/common.js.map +1 -1
  1030. package/esm/typings/spec/index.d.ts +1 -0
  1031. package/esm/typings/spec/index.js +2 -0
  1032. package/esm/typings/spec/index.js.map +1 -1
  1033. package/{cjs/plugin/chart/media-query/interface/spec.d.ts → esm/typings/spec/media-query.d.ts} +8 -5
  1034. package/esm/typings/spec/media-query.js +2 -0
  1035. package/esm/typings/spec/media-query.js.map +1 -0
  1036. package/esm/typings/tooltip/line.d.ts +4 -0
  1037. package/esm/typings/tooltip/line.js.map +1 -1
  1038. package/esm/typings/visual.d.ts +6 -0
  1039. package/esm/typings/visual.js.map +1 -1
  1040. package/esm/util/env.js +5 -3
  1041. package/esm/util/env.js.map +1 -1
  1042. package/esm/util/model.js.map +1 -1
  1043. package/esm/vchart-all.js +7 -1
  1044. package/esm/vchart-all.js.map +1 -1
  1045. package/esm/vchart-simple.js +5 -1
  1046. package/esm/vchart-simple.js.map +1 -1
  1047. package/package.json +23 -16
  1048. package/cjs/component/tooltip/handler/base.js.map +0 -1
  1049. package/cjs/component/tooltip/handler/canvas/canvas-tooltip-handler.js.map +0 -1
  1050. package/cjs/component/tooltip/handler/canvas/index.js.map +0 -1
  1051. package/cjs/component/tooltip/handler/constants.js.map +0 -1
  1052. package/cjs/component/tooltip/handler/dom/dom-tooltip-handler.js.map +0 -1
  1053. package/cjs/component/tooltip/handler/dom/index.js.map +0 -1
  1054. package/cjs/component/tooltip/handler/dom/interface.js.map +0 -1
  1055. package/cjs/component/tooltip/handler/dom/model/base-tooltip-model.js.map +0 -1
  1056. package/cjs/component/tooltip/handler/dom/model/content-column-model.js.map +0 -1
  1057. package/cjs/component/tooltip/handler/dom/model/content-model.js.map +0 -1
  1058. package/cjs/component/tooltip/handler/dom/model/interface.js.map +0 -1
  1059. package/cjs/component/tooltip/handler/dom/model/shape-model.js.map +0 -1
  1060. package/cjs/component/tooltip/handler/dom/model/style-constants.js.map +0 -1
  1061. package/cjs/component/tooltip/handler/dom/model/text-model.js.map +0 -1
  1062. package/cjs/component/tooltip/handler/dom/model/title-model.js.map +0 -1
  1063. package/cjs/component/tooltip/handler/dom/model/tooltip-model.js.map +0 -1
  1064. package/cjs/component/tooltip/handler/dom/util.js.map +0 -1
  1065. package/cjs/component/tooltip/handler/index.js.map +0 -1
  1066. package/cjs/component/tooltip/handler/interface/index.d.ts +0 -1
  1067. package/cjs/component/tooltip/handler/interface/index.js.map +0 -1
  1068. package/cjs/component/tooltip/handler/interface/style.js.map +0 -1
  1069. package/cjs/component/tooltip/handler/utils/attribute.js.map +0 -1
  1070. package/cjs/component/tooltip/handler/utils/common.js.map +0 -1
  1071. package/cjs/component/tooltip/handler/utils/compose.js +0 -106
  1072. package/cjs/component/tooltip/handler/utils/compose.js.map +0 -1
  1073. package/cjs/component/tooltip/handler/utils/get-spec.js.map +0 -1
  1074. package/cjs/component/tooltip/handler/utils/index.js.map +0 -1
  1075. package/cjs/component/tooltip/handler/utils/pattern.js.map +0 -1
  1076. package/cjs/component/tooltip/handler/utils/position.js.map +0 -1
  1077. package/cjs/interaction/trigger.d.ts +0 -38
  1078. package/cjs/interaction/trigger.js +0 -140
  1079. package/cjs/interaction/trigger.js.map +0 -1
  1080. package/cjs/plugin/chart/media-query/interface/spec.js.map +0 -1
  1081. package/cjs/plugin/components/axis-sync-plugin/axis-sync.js.map +0 -1
  1082. package/cjs/plugin/components/axis-sync-plugin/index.js.map +0 -1
  1083. package/cjs/plugin/components/axis-sync-plugin/tick-align-transform.js.map +0 -1
  1084. package/cjs/plugin/components/axis-sync-plugin/zero-align-transform.js.map +0 -1
  1085. package/cjs/theme/builtin/common-mobile/component/axis/band-axis.d.ts +0 -2
  1086. package/cjs/theme/builtin/common-mobile/component/axis/band-axis.js +0 -22
  1087. package/cjs/theme/builtin/common-mobile/component/axis/band-axis.js.map +0 -1
  1088. package/cjs/theme/builtin/common-mobile/component/axis/cartesian-axis.d.ts +0 -3
  1089. package/cjs/theme/builtin/common-mobile/component/axis/cartesian-axis.js +0 -36
  1090. package/cjs/theme/builtin/common-mobile/component/axis/cartesian-axis.js.map +0 -1
  1091. package/cjs/theme/builtin/common-mobile/component/axis/common-axis.d.ts +0 -2
  1092. package/cjs/theme/builtin/common-mobile/component/axis/common-axis.js +0 -42
  1093. package/cjs/theme/builtin/common-mobile/component/axis/common-axis.js.map +0 -1
  1094. package/cjs/theme/builtin/common-mobile/component/axis/linear-axis.d.ts +0 -2
  1095. package/cjs/theme/builtin/common-mobile/component/axis/linear-axis.js +0 -22
  1096. package/cjs/theme/builtin/common-mobile/component/axis/linear-axis.js.map +0 -1
  1097. package/cjs/theme/builtin/common-mobile/component/axis/polar-axis.d.ts +0 -3
  1098. package/cjs/theme/builtin/common-mobile/component/axis/polar-axis.js +0 -25
  1099. package/cjs/theme/builtin/common-mobile/component/axis/polar-axis.js.map +0 -1
  1100. package/cjs/theme/builtin/common-mobile/component/crosshair.d.ts +0 -2
  1101. package/cjs/theme/builtin/common-mobile/component/crosshair.js +0 -39
  1102. package/cjs/theme/builtin/common-mobile/component/crosshair.js.map +0 -1
  1103. package/cjs/theme/builtin/common-mobile/component/data-zoom.d.ts +0 -2
  1104. package/cjs/theme/builtin/common-mobile/component/data-zoom.js +0 -40
  1105. package/cjs/theme/builtin/common-mobile/component/data-zoom.js.map +0 -1
  1106. package/cjs/theme/builtin/common-mobile/component/index.d.ts +0 -2
  1107. package/cjs/theme/builtin/common-mobile/component/index.js +0 -33
  1108. package/cjs/theme/builtin/common-mobile/component/index.js.map +0 -1
  1109. package/cjs/theme/builtin/common-mobile/component/indicator.d.ts +0 -2
  1110. package/cjs/theme/builtin/common-mobile/component/indicator.js +0 -23
  1111. package/cjs/theme/builtin/common-mobile/component/indicator.js.map +0 -1
  1112. package/cjs/theme/builtin/common-mobile/component/legend/color-legend.d.ts +0 -2
  1113. package/cjs/theme/builtin/common-mobile/component/legend/color-legend.js +0 -23
  1114. package/cjs/theme/builtin/common-mobile/component/legend/color-legend.js.map +0 -1
  1115. package/cjs/theme/builtin/common-mobile/component/legend/continuous.d.ts +0 -2
  1116. package/cjs/theme/builtin/common-mobile/component/legend/continuous.js +0 -44
  1117. package/cjs/theme/builtin/common-mobile/component/legend/continuous.js.map +0 -1
  1118. package/cjs/theme/builtin/common-mobile/component/legend/discrete-legend.d.ts +0 -2
  1119. package/cjs/theme/builtin/common-mobile/component/legend/discrete-legend.js +0 -39
  1120. package/cjs/theme/builtin/common-mobile/component/legend/discrete-legend.js.map +0 -1
  1121. package/cjs/theme/builtin/common-mobile/component/legend/size-legend.d.ts +0 -2
  1122. package/cjs/theme/builtin/common-mobile/component/legend/size-legend.js +0 -23
  1123. package/cjs/theme/builtin/common-mobile/component/legend/size-legend.js.map +0 -1
  1124. package/cjs/theme/builtin/common-mobile/component/map-label.d.ts +0 -2
  1125. package/cjs/theme/builtin/common-mobile/component/map-label.js +0 -39
  1126. package/cjs/theme/builtin/common-mobile/component/map-label.js.map +0 -1
  1127. package/cjs/theme/builtin/common-mobile/component/mark-area.d.ts +0 -2
  1128. package/cjs/theme/builtin/common-mobile/component/mark-area.js +0 -24
  1129. package/cjs/theme/builtin/common-mobile/component/mark-area.js.map +0 -1
  1130. package/cjs/theme/builtin/common-mobile/component/mark-line.d.ts +0 -2
  1131. package/cjs/theme/builtin/common-mobile/component/mark-line.js +0 -33
  1132. package/cjs/theme/builtin/common-mobile/component/mark-line.js.map +0 -1
  1133. package/cjs/theme/builtin/common-mobile/component/mark-point.d.ts +0 -2
  1134. package/cjs/theme/builtin/common-mobile/component/mark-point.js +0 -19
  1135. package/cjs/theme/builtin/common-mobile/component/mark-point.js.map +0 -1
  1136. package/cjs/theme/builtin/common-mobile/component/player.d.ts +0 -2
  1137. package/cjs/theme/builtin/common-mobile/component/player.js +0 -51
  1138. package/cjs/theme/builtin/common-mobile/component/player.js.map +0 -1
  1139. package/cjs/theme/builtin/common-mobile/component/poptip.d.ts +0 -2
  1140. package/cjs/theme/builtin/common-mobile/component/poptip.js +0 -25
  1141. package/cjs/theme/builtin/common-mobile/component/poptip.js.map +0 -1
  1142. package/cjs/theme/builtin/common-mobile/component/title.d.ts +0 -2
  1143. package/cjs/theme/builtin/common-mobile/component/title.js +0 -23
  1144. package/cjs/theme/builtin/common-mobile/component/title.js.map +0 -1
  1145. package/cjs/theme/builtin/common-mobile/component/tooltip.d.ts +0 -2
  1146. package/cjs/theme/builtin/common-mobile/component/tooltip.js +0 -43
  1147. package/cjs/theme/builtin/common-mobile/component/tooltip.js.map +0 -1
  1148. package/cjs/theme/builtin/common-mobile/component/total-label.d.ts +0 -2
  1149. package/cjs/theme/builtin/common-mobile/component/total-label.js +0 -16
  1150. package/cjs/theme/builtin/common-mobile/component/total-label.js.map +0 -1
  1151. package/cjs/theme/builtin/common-mobile/constants.d.ts +0 -2
  1152. package/cjs/theme/builtin/common-mobile/constants.js +0 -23
  1153. package/cjs/theme/builtin/common-mobile/constants.js.map +0 -1
  1154. package/cjs/theme/builtin/common-mobile/mark.d.ts +0 -3
  1155. package/cjs/theme/builtin/common-mobile/mark.js +0 -35
  1156. package/cjs/theme/builtin/common-mobile/mark.js.map +0 -1
  1157. package/cjs/theme/builtin/dark-mobile/index.d.ts +0 -2
  1158. package/cjs/theme/builtin/dark-mobile/index.js +0 -18
  1159. package/cjs/theme/builtin/dark-mobile/index.js.map +0 -1
  1160. package/cjs/theme/builtin/light-mobile/index.d.ts +0 -2
  1161. package/cjs/theme/builtin/light-mobile/index.js +0 -18
  1162. package/cjs/theme/builtin/light-mobile/index.js.map +0 -1
  1163. package/esm/component/tooltip/handler/base.js.map +0 -1
  1164. package/esm/component/tooltip/handler/canvas/canvas-tooltip-handler.js.map +0 -1
  1165. package/esm/component/tooltip/handler/canvas/index.js.map +0 -1
  1166. package/esm/component/tooltip/handler/constants.js.map +0 -1
  1167. package/esm/component/tooltip/handler/dom/dom-tooltip-handler.js.map +0 -1
  1168. package/esm/component/tooltip/handler/dom/index.js.map +0 -1
  1169. package/esm/component/tooltip/handler/dom/interface.js.map +0 -1
  1170. package/esm/component/tooltip/handler/dom/model/base-tooltip-model.js.map +0 -1
  1171. package/esm/component/tooltip/handler/dom/model/content-column-model.js.map +0 -1
  1172. package/esm/component/tooltip/handler/dom/model/content-model.js.map +0 -1
  1173. package/esm/component/tooltip/handler/dom/model/interface.js.map +0 -1
  1174. package/esm/component/tooltip/handler/dom/model/shape-model.js.map +0 -1
  1175. package/esm/component/tooltip/handler/dom/model/style-constants.js.map +0 -1
  1176. package/esm/component/tooltip/handler/dom/model/text-model.js.map +0 -1
  1177. package/esm/component/tooltip/handler/dom/model/title-model.js.map +0 -1
  1178. package/esm/component/tooltip/handler/dom/model/tooltip-model.js.map +0 -1
  1179. package/esm/component/tooltip/handler/dom/util.js.map +0 -1
  1180. package/esm/component/tooltip/handler/index.js.map +0 -1
  1181. package/esm/component/tooltip/handler/interface/index.d.ts +0 -1
  1182. package/esm/component/tooltip/handler/interface/index.js.map +0 -1
  1183. package/esm/component/tooltip/handler/interface/style.js.map +0 -1
  1184. package/esm/component/tooltip/handler/utils/attribute.js.map +0 -1
  1185. package/esm/component/tooltip/handler/utils/common.js.map +0 -1
  1186. package/esm/component/tooltip/handler/utils/compose.js +0 -89
  1187. package/esm/component/tooltip/handler/utils/compose.js.map +0 -1
  1188. package/esm/component/tooltip/handler/utils/get-spec.js.map +0 -1
  1189. package/esm/component/tooltip/handler/utils/index.js.map +0 -1
  1190. package/esm/component/tooltip/handler/utils/pattern.js.map +0 -1
  1191. package/esm/component/tooltip/handler/utils/position.js.map +0 -1
  1192. package/esm/interaction/trigger.d.ts +0 -38
  1193. package/esm/interaction/trigger.js +0 -141
  1194. package/esm/interaction/trigger.js.map +0 -1
  1195. package/esm/plugin/chart/media-query/interface/spec.js +0 -2
  1196. package/esm/plugin/chart/media-query/interface/spec.js.map +0 -1
  1197. package/esm/plugin/components/axis-sync-plugin/axis-sync.js.map +0 -1
  1198. package/esm/plugin/components/axis-sync-plugin/index.js.map +0 -1
  1199. package/esm/plugin/components/axis-sync-plugin/tick-align-transform.js.map +0 -1
  1200. package/esm/plugin/components/axis-sync-plugin/zero-align-transform.js.map +0 -1
  1201. package/esm/theme/builtin/common-mobile/component/axis/band-axis.d.ts +0 -2
  1202. package/esm/theme/builtin/common-mobile/component/axis/band-axis.js +0 -18
  1203. package/esm/theme/builtin/common-mobile/component/axis/band-axis.js.map +0 -1
  1204. package/esm/theme/builtin/common-mobile/component/axis/cartesian-axis.d.ts +0 -3
  1205. package/esm/theme/builtin/common-mobile/component/axis/cartesian-axis.js +0 -32
  1206. package/esm/theme/builtin/common-mobile/component/axis/cartesian-axis.js.map +0 -1
  1207. package/esm/theme/builtin/common-mobile/component/axis/common-axis.d.ts +0 -2
  1208. package/esm/theme/builtin/common-mobile/component/axis/common-axis.js +0 -36
  1209. package/esm/theme/builtin/common-mobile/component/axis/common-axis.js.map +0 -1
  1210. package/esm/theme/builtin/common-mobile/component/axis/linear-axis.d.ts +0 -2
  1211. package/esm/theme/builtin/common-mobile/component/axis/linear-axis.js +0 -18
  1212. package/esm/theme/builtin/common-mobile/component/axis/linear-axis.js.map +0 -1
  1213. package/esm/theme/builtin/common-mobile/component/axis/polar-axis.d.ts +0 -3
  1214. package/esm/theme/builtin/common-mobile/component/axis/polar-axis.js +0 -23
  1215. package/esm/theme/builtin/common-mobile/component/axis/polar-axis.js.map +0 -1
  1216. package/esm/theme/builtin/common-mobile/component/crosshair.d.ts +0 -2
  1217. package/esm/theme/builtin/common-mobile/component/crosshair.js +0 -35
  1218. package/esm/theme/builtin/common-mobile/component/crosshair.js.map +0 -1
  1219. package/esm/theme/builtin/common-mobile/component/data-zoom.d.ts +0 -2
  1220. package/esm/theme/builtin/common-mobile/component/data-zoom.js +0 -34
  1221. package/esm/theme/builtin/common-mobile/component/data-zoom.js.map +0 -1
  1222. package/esm/theme/builtin/common-mobile/component/index.d.ts +0 -2
  1223. package/esm/theme/builtin/common-mobile/component/index.js +0 -65
  1224. package/esm/theme/builtin/common-mobile/component/index.js.map +0 -1
  1225. package/esm/theme/builtin/common-mobile/component/indicator.d.ts +0 -2
  1226. package/esm/theme/builtin/common-mobile/component/indicator.js +0 -17
  1227. package/esm/theme/builtin/common-mobile/component/indicator.js.map +0 -1
  1228. package/esm/theme/builtin/common-mobile/component/legend/color-legend.d.ts +0 -2
  1229. package/esm/theme/builtin/common-mobile/component/legend/color-legend.js +0 -17
  1230. package/esm/theme/builtin/common-mobile/component/legend/color-legend.js.map +0 -1
  1231. package/esm/theme/builtin/common-mobile/component/legend/continuous.d.ts +0 -2
  1232. package/esm/theme/builtin/common-mobile/component/legend/continuous.js +0 -38
  1233. package/esm/theme/builtin/common-mobile/component/legend/continuous.js.map +0 -1
  1234. package/esm/theme/builtin/common-mobile/component/legend/discrete-legend.d.ts +0 -2
  1235. package/esm/theme/builtin/common-mobile/component/legend/discrete-legend.js +0 -33
  1236. package/esm/theme/builtin/common-mobile/component/legend/discrete-legend.js.map +0 -1
  1237. package/esm/theme/builtin/common-mobile/component/legend/size-legend.d.ts +0 -2
  1238. package/esm/theme/builtin/common-mobile/component/legend/size-legend.js +0 -17
  1239. package/esm/theme/builtin/common-mobile/component/legend/size-legend.js.map +0 -1
  1240. package/esm/theme/builtin/common-mobile/component/map-label.d.ts +0 -2
  1241. package/esm/theme/builtin/common-mobile/component/map-label.js +0 -33
  1242. package/esm/theme/builtin/common-mobile/component/map-label.js.map +0 -1
  1243. package/esm/theme/builtin/common-mobile/component/mark-area.d.ts +0 -2
  1244. package/esm/theme/builtin/common-mobile/component/mark-area.js +0 -18
  1245. package/esm/theme/builtin/common-mobile/component/mark-area.js.map +0 -1
  1246. package/esm/theme/builtin/common-mobile/component/mark-line.d.ts +0 -2
  1247. package/esm/theme/builtin/common-mobile/component/mark-line.js +0 -27
  1248. package/esm/theme/builtin/common-mobile/component/mark-line.js.map +0 -1
  1249. package/esm/theme/builtin/common-mobile/component/mark-point.d.ts +0 -2
  1250. package/esm/theme/builtin/common-mobile/component/mark-point.js +0 -15
  1251. package/esm/theme/builtin/common-mobile/component/mark-point.js.map +0 -1
  1252. package/esm/theme/builtin/common-mobile/component/player.d.ts +0 -2
  1253. package/esm/theme/builtin/common-mobile/component/player.js +0 -47
  1254. package/esm/theme/builtin/common-mobile/component/player.js.map +0 -1
  1255. package/esm/theme/builtin/common-mobile/component/poptip.d.ts +0 -2
  1256. package/esm/theme/builtin/common-mobile/component/poptip.js +0 -19
  1257. package/esm/theme/builtin/common-mobile/component/poptip.js.map +0 -1
  1258. package/esm/theme/builtin/common-mobile/component/title.d.ts +0 -2
  1259. package/esm/theme/builtin/common-mobile/component/title.js +0 -17
  1260. package/esm/theme/builtin/common-mobile/component/title.js.map +0 -1
  1261. package/esm/theme/builtin/common-mobile/component/tooltip.d.ts +0 -2
  1262. package/esm/theme/builtin/common-mobile/component/tooltip.js +0 -37
  1263. package/esm/theme/builtin/common-mobile/component/tooltip.js.map +0 -1
  1264. package/esm/theme/builtin/common-mobile/component/total-label.d.ts +0 -2
  1265. package/esm/theme/builtin/common-mobile/component/total-label.js +0 -10
  1266. package/esm/theme/builtin/common-mobile/component/total-label.js.map +0 -1
  1267. package/esm/theme/builtin/common-mobile/constants.d.ts +0 -2
  1268. package/esm/theme/builtin/common-mobile/constants.js +0 -19
  1269. package/esm/theme/builtin/common-mobile/constants.js.map +0 -1
  1270. package/esm/theme/builtin/common-mobile/mark.d.ts +0 -3
  1271. package/esm/theme/builtin/common-mobile/mark.js +0 -31
  1272. package/esm/theme/builtin/common-mobile/mark.js.map +0 -1
  1273. package/esm/theme/builtin/dark-mobile/index.d.ts +0 -2
  1274. package/esm/theme/builtin/dark-mobile/index.js +0 -16
  1275. package/esm/theme/builtin/dark-mobile/index.js.map +0 -1
  1276. package/esm/theme/builtin/light-mobile/index.d.ts +0 -2
  1277. package/esm/theme/builtin/light-mobile/index.js +0 -16
  1278. package/esm/theme/builtin/light-mobile/index.js.map +0 -1
  1279. /package/cjs/{component/tooltip/handler/dom → chart/liquid}/interface.js +0 -0
  1280. /package/cjs/plugin/components/{axis-sync-plugin → axis-sync}/axis-sync.d.ts +0 -0
  1281. /package/cjs/plugin/components/{axis-sync-plugin → axis-sync}/axis-sync.js +0 -0
  1282. /package/cjs/plugin/components/{axis-sync-plugin → axis-sync}/index.d.ts +0 -0
  1283. /package/cjs/plugin/components/{axis-sync-plugin → axis-sync}/index.js +0 -0
  1284. /package/cjs/plugin/components/{axis-sync-plugin → axis-sync}/tick-align-transform.d.ts +0 -0
  1285. /package/cjs/plugin/components/{axis-sync-plugin → axis-sync}/tick-align-transform.js +0 -0
  1286. /package/cjs/plugin/components/{axis-sync-plugin → axis-sync}/zero-align-transform.d.ts +0 -0
  1287. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/canvas/index.d.ts +0 -0
  1288. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/canvas/index.js +0 -0
  1289. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/constants.d.ts +0 -0
  1290. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/constants.js +0 -0
  1291. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/index.d.ts +0 -0
  1292. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/index.js +0 -0
  1293. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/interface.d.ts +0 -0
  1294. /package/cjs/{component/tooltip/handler/dom/model → plugin/components/tooltip-handler/dom}/interface.js +0 -0
  1295. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/base-tooltip-model.d.ts +0 -0
  1296. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/base-tooltip-model.js +0 -0
  1297. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/content-column-model.d.ts +0 -0
  1298. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/content-column-model.js +0 -0
  1299. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/content-model.d.ts +0 -0
  1300. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/content-model.js +0 -0
  1301. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/interface.d.ts +0 -0
  1302. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/shape-model.d.ts +0 -0
  1303. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/style-constants.d.ts +0 -0
  1304. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/style-constants.js +0 -0
  1305. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/text-model.d.ts +0 -0
  1306. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/text-model.js +0 -0
  1307. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/title-model.d.ts +0 -0
  1308. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/tooltip-model.d.ts +0 -0
  1309. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/tooltip-model.js +0 -0
  1310. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/util.d.ts +0 -0
  1311. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/util.js +0 -0
  1312. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/index.d.ts +0 -0
  1313. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/index.js +0 -0
  1314. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/interface/style.d.ts +0 -0
  1315. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/interface/style.js +0 -0
  1316. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/attribute.js +0 -0
  1317. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/common.js +0 -0
  1318. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/index.d.ts +0 -0
  1319. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/index.js +0 -0
  1320. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/pattern.d.ts +0 -0
  1321. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/pattern.js +0 -0
  1322. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/position.d.ts +0 -0
  1323. /package/cjs/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/position.js +0 -0
  1324. /package/esm/{component/tooltip/handler/dom → chart/liquid}/interface.js +0 -0
  1325. /package/esm/plugin/components/{axis-sync-plugin → axis-sync}/axis-sync.d.ts +0 -0
  1326. /package/esm/plugin/components/{axis-sync-plugin → axis-sync}/axis-sync.js +0 -0
  1327. /package/esm/plugin/components/{axis-sync-plugin → axis-sync}/index.d.ts +0 -0
  1328. /package/esm/plugin/components/{axis-sync-plugin → axis-sync}/index.js +0 -0
  1329. /package/esm/plugin/components/{axis-sync-plugin → axis-sync}/tick-align-transform.d.ts +0 -0
  1330. /package/esm/plugin/components/{axis-sync-plugin → axis-sync}/tick-align-transform.js +0 -0
  1331. /package/esm/plugin/components/{axis-sync-plugin → axis-sync}/zero-align-transform.d.ts +0 -0
  1332. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/canvas/index.d.ts +0 -0
  1333. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/canvas/index.js +0 -0
  1334. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/constants.d.ts +0 -0
  1335. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/constants.js +0 -0
  1336. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/index.d.ts +0 -0
  1337. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/index.js +0 -0
  1338. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/interface.d.ts +0 -0
  1339. /package/esm/{component/tooltip/handler/dom/model → plugin/components/tooltip-handler/dom}/interface.js +0 -0
  1340. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/base-tooltip-model.d.ts +0 -0
  1341. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/base-tooltip-model.js +0 -0
  1342. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/content-column-model.d.ts +0 -0
  1343. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/content-column-model.js +0 -0
  1344. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/content-model.d.ts +0 -0
  1345. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/content-model.js +0 -0
  1346. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/interface.d.ts +0 -0
  1347. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/shape-model.d.ts +0 -0
  1348. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/style-constants.d.ts +0 -0
  1349. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/style-constants.js +0 -0
  1350. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/text-model.d.ts +0 -0
  1351. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/text-model.js +0 -0
  1352. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/title-model.d.ts +0 -0
  1353. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/tooltip-model.d.ts +0 -0
  1354. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/model/tooltip-model.js +0 -0
  1355. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/util.d.ts +0 -0
  1356. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/dom/util.js +0 -0
  1357. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/index.d.ts +0 -0
  1358. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/index.js +0 -0
  1359. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/interface/style.d.ts +0 -0
  1360. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/interface/style.js +0 -0
  1361. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/attribute.js +0 -0
  1362. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/common.js +0 -0
  1363. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/index.d.ts +0 -0
  1364. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/index.js +0 -0
  1365. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/pattern.d.ts +0 -0
  1366. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/pattern.js +0 -0
  1367. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/position.d.ts +0 -0
  1368. /package/esm/{component/tooltip/handler → plugin/components/tooltip-handler}/utils/position.js +0 -0
@@ -0,0 +1,14 @@
1
+ import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
2
+ export interface ILiquidAnimationParams {
3
+ height: {
4
+ from: () => number | number;
5
+ to: () => number | number;
6
+ };
7
+ y: {
8
+ from: () => number | number;
9
+ to: () => number | number;
10
+ };
11
+ }
12
+ export type LiquidAppearPreset = 'wave' | 'grow' | 'waveGrow';
13
+ export declare function liquidPresetAnimation(params: ILiquidAnimationParams, preset: LiquidAppearPreset): IAnimationTypeConfig;
14
+ export declare const registerLiquidAnimation: () => void;
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: !0
5
+ }), exports.registerLiquidAnimation = exports.liquidPresetAnimation = void 0;
6
+
7
+ const factory_1 = require("../../core/factory"), Appear_Wave = {
8
+ duration: 2e3,
9
+ loop: !0,
10
+ channel: {
11
+ wave: {
12
+ from: 0,
13
+ to: 1
14
+ }
15
+ }
16
+ }, Appear_Grow = params => ({
17
+ duration: 2e3,
18
+ channel: {
19
+ wave: {
20
+ from: 0,
21
+ to: 1
22
+ },
23
+ height: params.height,
24
+ y: params.y
25
+ }
26
+ }), Appear_WaveGrow = params => ({
27
+ duration: 2e3,
28
+ channel: {
29
+ wave: {
30
+ from: 0,
31
+ to: 1
32
+ },
33
+ height: params.height,
34
+ y: params.y
35
+ }
36
+ });
37
+
38
+ function liquidPresetAnimation(params, preset) {
39
+ switch (preset) {
40
+ case "wave":
41
+ default:
42
+ return Appear_Wave;
43
+
44
+ case "grow":
45
+ return Appear_Grow(params);
46
+
47
+ case "waveGrow":
48
+ return Appear_WaveGrow(params);
49
+ }
50
+ }
51
+
52
+ exports.liquidPresetAnimation = liquidPresetAnimation;
53
+
54
+ const registerLiquidAnimation = () => {
55
+ factory_1.Factory.registerAnimation("liquid", ((params, preset) => ({
56
+ appear: liquidPresetAnimation(params, preset),
57
+ enter: liquidPresetAnimation(params, preset),
58
+ exit: liquidPresetAnimation(params, preset)
59
+ })));
60
+ };
61
+
62
+ exports.registerLiquidAnimation = registerLiquidAnimation;
63
+ //# sourceMappingURL=animation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/series/liquid/animation.ts"],"names":[],"mappings":";;;AACA,gDAA6C;AAe7C,MAAM,WAAW,GAAyB;IACxC,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE,IAAI;IACV,OAAO,EAAE;QACP,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAA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AC,CAAC;AACL,CAAC,CAAC;AARW,QAAA,uBAAuB,2BAQlC","file":"animation.js","sourcesContent":["import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';\nimport { Factory } from '../../core/factory';\n\nexport interface ILiquidAnimationParams {\n height: {\n from: () => number | number;\n to: () => number | number;\n };\n y: {\n from: () => number | number;\n to: () => number | number;\n };\n}\n\nexport type LiquidAppearPreset = 'wave' | 'grow' | 'waveGrow';\n\nconst Appear_Wave: IAnimationTypeConfig = {\n duration: 2000,\n loop: true,\n channel: {\n wave: { from: 0, to: 1 }\n }\n};\n\nconst Appear_Grow = (params: ILiquidAnimationParams): IAnimationTypeConfig => {\n return {\n duration: 2000,\n channel: {\n wave: { from: 0, to: 1 },\n height: params.height,\n y: params.y\n }\n };\n};\n\nconst Appear_WaveGrow = (params: ILiquidAnimationParams): IAnimationTypeConfig => {\n return {\n duration: 2000,\n channel: {\n wave: { from: 0, to: 1 },\n height: params.height,\n y: params.y\n }\n };\n};\n\nexport function liquidPresetAnimation(\n params: ILiquidAnimationParams,\n preset: LiquidAppearPreset\n): IAnimationTypeConfig {\n switch (preset) {\n case 'wave':\n return Appear_Wave;\n case 'grow':\n return Appear_Grow(params);\n case 'waveGrow':\n return Appear_WaveGrow(params);\n default:\n return Appear_Wave;\n }\n}\n\nexport const registerLiquidAnimation = () => {\n Factory.registerAnimation('liquid', (params: ILiquidAnimationParams, preset: LiquidAppearPreset) => {\n return {\n appear: liquidPresetAnimation(params, preset),\n enter: liquidPresetAnimation(params, preset),\n exit: liquidPresetAnimation(params, preset)\n };\n });\n};\n"]}
@@ -0,0 +1,2 @@
1
+ import type { SeriesMarkMap } from '../interface/common';
2
+ export declare const LiquidSeriesMark: SeriesMarkMap;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: !0
5
+ }), exports.LiquidSeriesMark = void 0;
6
+
7
+ const type_1 = require("../../mark/interface/type"), constant_1 = require("../base/constant"), type_2 = require("../interface/type");
8
+
9
+ exports.LiquidSeriesMark = Object.assign(Object.assign({}, constant_1.baseSeriesMark), {
10
+ [type_2.SeriesMarkNameEnum.liquid]: {
11
+ name: type_2.SeriesMarkNameEnum.liquid,
12
+ type: type_1.MarkTypeEnum.liquid
13
+ },
14
+ [type_2.SeriesMarkNameEnum.liquidBackground]: {
15
+ name: type_2.SeriesMarkNameEnum.liquidBackground,
16
+ type: type_1.MarkTypeEnum.group
17
+ },
18
+ [type_2.SeriesMarkNameEnum.liquidOutline]: {
19
+ name: type_2.SeriesMarkNameEnum.liquidOutline,
20
+ type: type_1.MarkTypeEnum.symbol
21
+ }
22
+ });
23
+ //# sourceMappingURL=constant.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/series/liquid/constant.ts"],"names":[],"mappings":";;;AAAA,oDAAyD;AACzD,+CAAkD;AAElD,4CAAuD;AAE1C,QAAA,gBAAgB,mCACxB,yBAAc,KACjB,CAAC,yBAAkB,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,EAAE,yBAAkB,CAAC,MAAM,EAAE,IAAI,EAAE,mBAAY,CAAC,MAAM,EAAE,EAC3F,CAAC,yBAAkB,CAAC,gBAAgB,CAAC,EAAE,EAAE,IAAI,EAAE,yBAAkB,CAAC,gBAAgB,EAAE,IAAI,EAAE,mBAAY,CAAC,KAAK,EAAE,EAC9G,CAAC,yBAAkB,CAAC,aAAa,CAAC,EAAE,EAAE,IAAI,EAAE,yBAAkB,CAAC,aAAa,EAAE,IAAI,EAAE,mBAAY,CAAC,MAAM,EAAE,IACzG","file":"constant.js","sourcesContent":["import { MarkTypeEnum } from '../../mark/interface/type';\nimport { baseSeriesMark } from '../base/constant';\nimport type { SeriesMarkMap } from '../interface/common';\nimport { SeriesMarkNameEnum } from '../interface/type';\n\nexport const LiquidSeriesMark: SeriesMarkMap = {\n ...baseSeriesMark,\n [SeriesMarkNameEnum.liquid]: { name: SeriesMarkNameEnum.liquid, type: MarkTypeEnum.liquid },\n [SeriesMarkNameEnum.liquidBackground]: { name: SeriesMarkNameEnum.liquidBackground, type: MarkTypeEnum.group },\n [SeriesMarkNameEnum.liquidOutline]: { name: SeriesMarkNameEnum.liquidOutline, type: MarkTypeEnum.symbol }\n};\n"]}
@@ -0,0 +1,35 @@
1
+ import type { IMarkSpec, IMarkTheme } from '../../typings/spec/common';
2
+ import type { ILiquidMarkSpec, IGroupMarkSpec, ILiquidOutlineSpec } from '../../typings/visual';
3
+ import type { SeriesMarkNameEnum } from '../interface/type';
4
+ import type { IAnimationSpec } from '../../animation/spec';
5
+ import type { LiquidAppearPreset } from './animation';
6
+ import type { SymbolType } from '@visactor/vrender-core';
7
+ import type { ISymbolMark } from '../../mark/symbol';
8
+ type LiquidMarks = 'liquid';
9
+ export type LiquidShapeType = SymbolType | 'drop';
10
+ export type ILiquidPadding = {
11
+ left?: number;
12
+ right?: number;
13
+ top?: number;
14
+ bottom?: number;
15
+ };
16
+ export type ILiquidPaddingSpec = ILiquidPadding | number | number[];
17
+ export interface ILiquidSeriesSpec extends IAnimationSpec<LiquidMarks, LiquidAppearPreset> {
18
+ type: 'liquid';
19
+ valueField?: string;
20
+ maskShape?: LiquidShapeType;
21
+ outlineMargin?: ILiquidPaddingSpec;
22
+ outlinePadding?: ILiquidPaddingSpec;
23
+ indicatorSmartInvert?: boolean;
24
+ [SeriesMarkNameEnum.liquid]?: IMarkSpec<ILiquidMarkSpec>;
25
+ [SeriesMarkNameEnum.liquidBackground]?: IMarkSpec<IGroupMarkSpec>;
26
+ [SeriesMarkNameEnum.liquidOutline]?: IMarkSpec<ISymbolMark>;
27
+ }
28
+ export interface ILiquidSeriesTheme {
29
+ outlineMargin?: ILiquidPaddingSpec;
30
+ outlinePadding?: ILiquidPaddingSpec;
31
+ [SeriesMarkNameEnum.liquid]?: Partial<IMarkTheme<ILiquidMarkSpec>>;
32
+ [SeriesMarkNameEnum.liquidBackground]?: IMarkSpec<IGroupMarkSpec>;
33
+ [SeriesMarkNameEnum.liquidOutline]?: IMarkSpec<ILiquidOutlineSpec>;
34
+ }
35
+ export {};
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: !0
5
+ });
6
+ //# sourceMappingURL=interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/series/liquid/interface.ts"],"names":[],"mappings":"","file":"interface.js","sourcesContent":["import type { IMarkSpec, IMarkTheme } from '../../typings/spec/common';\nimport type { ILiquidMarkSpec, IGroupMarkSpec, ILiquidOutlineSpec } from '../../typings/visual';\nimport type { SeriesMarkNameEnum } from '../interface/type';\nimport type { IAnimationSpec } from '../../animation/spec';\nimport type { LiquidAppearPreset } from './animation';\nimport type { SymbolType } from '@visactor/vrender-core';\nimport type { ISymbolMark } from '../../mark/symbol';\n\ntype LiquidMarks = 'liquid';\n\nexport type LiquidShapeType = SymbolType | 'drop';\n\nexport type ILiquidPadding = {\n left?: number;\n right?: number;\n top?: number;\n bottom?: number;\n};\n\n/** 布局 padding的配置 */\nexport type ILiquidPaddingSpec = ILiquidPadding | number | number[];\n\nexport interface ILiquidSeriesSpec extends IAnimationSpec<LiquidMarks, LiquidAppearPreset> {\n /** 系列类型 */\n type: 'liquid';\n /**\n * value字段\n */\n valueField?: string;\n /**\n * 轮廓形状\n * @default 'circle'\n */\n maskShape?: LiquidShapeType;\n /**\n * 外轮廓与region边界之间的padding\n */\n outlineMargin?: ILiquidPaddingSpec;\n /**\n * 内轮廓与外轮廓之间的padding\n */\n outlinePadding?: ILiquidPaddingSpec;\n /**\n * 是否开启指标智能反色\n * @default false\n */\n indicatorSmartInvert?: boolean;\n\n /**\n * 水波图元配置\n */\n [SeriesMarkNameEnum.liquid]?: IMarkSpec<ILiquidMarkSpec>;\n /**\n * 水波背景图元配置\n */\n [SeriesMarkNameEnum.liquidBackground]?: IMarkSpec<IGroupMarkSpec>;\n /**\n * 水波外轮廓配置\n */\n [SeriesMarkNameEnum.liquidOutline]?: IMarkSpec<ISymbolMark>;\n}\n\nexport interface ILiquidSeriesTheme {\n outlineMargin?: ILiquidPaddingSpec;\n outlinePadding?: ILiquidPaddingSpec;\n [SeriesMarkNameEnum.liquid]?: Partial<IMarkTheme<ILiquidMarkSpec>>;\n [SeriesMarkNameEnum.liquidBackground]?: IMarkSpec<IGroupMarkSpec>;\n [SeriesMarkNameEnum.liquidOutline]?: IMarkSpec<ILiquidOutlineSpec>;\n}\n"]}
@@ -0,0 +1,50 @@
1
+ import type { SeriesMarkMap } from '../interface';
2
+ import { SeriesTypeEnum } from '../interface/type';
3
+ import type { Datum, ILiquidMarkSpec, IPoint } from '../../typings';
4
+ import type { ILiquidSeriesSpec } from './interface';
5
+ import type { IMark, IMarkRaw } from '../../mark/interface';
6
+ import { LineLikeSeriesSpecTransformer } from '../mixin/line-mixin-transformer';
7
+ import { BaseSeries } from '../base';
8
+ import type { DataView } from '@visactor/vdataset';
9
+ export type ILiquidMark = IMarkRaw<ILiquidMarkSpec>;
10
+ export declare class LiquidSeries<T extends ILiquidSeriesSpec = ILiquidSeriesSpec> extends BaseSeries<T> {
11
+ static readonly type: string;
12
+ type: SeriesTypeEnum;
13
+ static readonly mark: SeriesMarkMap;
14
+ static readonly transformerConstructor: typeof LineLikeSeriesSpecTransformer;
15
+ readonly transformerConstructor: typeof LineLikeSeriesSpecTransformer;
16
+ private _liquidMark?;
17
+ private _liquidBackgroundMark?;
18
+ private _liquidOutlineMark?;
19
+ private _paddingSpec?;
20
+ private _marginSpec?;
21
+ private _heightRatio?;
22
+ protected _valueField?: string;
23
+ setValueField(field: string): void;
24
+ getValueField(): string;
25
+ setAttrFromSpec(): void;
26
+ rawDataUpdate(d: DataView): void;
27
+ initMark(): void;
28
+ initMarkStyle(): void;
29
+ private _initLiquidOutlineMark;
30
+ private _initLiquidBackgroundMark;
31
+ private _initLiquidMark;
32
+ private _getPosAndSizeFormRegion;
33
+ private _initLiquidOutlineMarkStyle;
34
+ private _initLiquidBackgroundMarkStyle;
35
+ private _initLiquidMarkStyle;
36
+ protected initTooltip(): void;
37
+ initInteraction(): void;
38
+ initAnimation(): void;
39
+ protected initEvent(): void;
40
+ dataToPosition(data: Datum): IPoint;
41
+ dataToPositionX(data: Datum): number;
42
+ dataToPositionY(data: Datum): number;
43
+ valueToPosition(value1: any, value2?: any): IPoint;
44
+ getStatisticFields(): any[];
45
+ getGroupFields(): string[];
46
+ getStackGroupFields(): string[];
47
+ getStackValueField(): string;
48
+ getActiveMarks(): IMark[];
49
+ }
50
+ export declare const registerLiquidSeries: () => void;
@@ -0,0 +1,200 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: !0
5
+ }), exports.registerLiquidSeries = exports.LiquidSeries = void 0;
6
+
7
+ const type_1 = require("../interface/type"), vutils_1 = require("@visactor/vutils"), utils_1 = require("../../animation/utils"), animation_1 = require("./animation"), constant_1 = require("./constant"), factory_1 = require("../../core/factory"), line_mixin_transformer_1 = require("../mixin/line-mixin-transformer"), liquid_1 = require("../../mark/liquid"), constant_2 = require("../../constant"), base_1 = require("../base"), group_1 = require("../../mark/group"), util_1 = require("./util"), vrender_core_1 = require("@visactor/vrender-core"), vrender_components_1 = require("@visactor/vrender-components"), util_2 = require("../../util"), tooltip_helper_1 = require("./tooltip-helper");
8
+
9
+ class LiquidSeries extends base_1.BaseSeries {
10
+ constructor() {
11
+ super(...arguments), this.type = type_1.SeriesTypeEnum.liquid, this.transformerConstructor = line_mixin_transformer_1.LineLikeSeriesSpecTransformer,
12
+ this._liquidBackgroundMark = null, this._liquidOutlineMark = null;
13
+ }
14
+ setValueField(field) {
15
+ (0, vutils_1.isValid)(field) && (this._valueField = field);
16
+ }
17
+ getValueField() {
18
+ return this._valueField;
19
+ }
20
+ setAttrFromSpec() {
21
+ super.setAttrFromSpec(), this._marginSpec = (0, util_2.normalizeLayoutPaddingSpec)(this._spec.outlineMargin),
22
+ this._paddingSpec = (0, util_2.normalizeLayoutPaddingSpec)(this._spec.outlinePadding),
23
+ this.setValueField(this._spec.valueField);
24
+ }
25
+ rawDataUpdate(d) {
26
+ super.rawDataUpdate(d), this._heightRatio = (0, vutils_1.max)(...this._data.getLatestData().map((d => d[this._valueField])));
27
+ }
28
+ initMark() {
29
+ this._initLiquidOutlineMark(), this._initLiquidBackgroundMark(), this._initLiquidMark();
30
+ }
31
+ initMarkStyle() {
32
+ this._initLiquidOutlineMarkStyle(), this._initLiquidBackgroundMarkStyle(), this._initLiquidMarkStyle();
33
+ }
34
+ _initLiquidOutlineMark() {
35
+ return this._liquidOutlineMark = this._createMark(LiquidSeries.mark.liquidOutline, {
36
+ isSeriesMark: !0,
37
+ skipBeforeLayouted: !1
38
+ }), this._liquidOutlineMark;
39
+ }
40
+ _initLiquidBackgroundMark() {
41
+ return this._liquidBackgroundMark = this._createMark(LiquidSeries.mark.liquidBackground, {
42
+ isSeriesMark: !0,
43
+ skipBeforeLayouted: !1
44
+ }), this._liquidBackgroundMark;
45
+ }
46
+ _initLiquidMark() {
47
+ return this._liquidMark = this._createMark(LiquidSeries.mark.liquid, {
48
+ parent: this._liquidBackgroundMark,
49
+ isSeriesMark: !0,
50
+ skipBeforeLayouted: !1
51
+ }), this._liquidMark;
52
+ }
53
+ _getPosAndSizeFormRegion(isOutline = !1) {
54
+ const {top: marginTop = 0, bottom: marginBottom = 0, left: marginLeft = 0, right: marginRight = 0} = this._marginSpec, {top: paddingTop = 0, bottom: paddingBottom = 0, left: paddingLeft = 0, right: paddingRight = 0} = this._paddingSpec, {width: regionWidth, height: regionHeight} = this._region.getLayoutRect();
55
+ return isOutline ? {
56
+ x: regionWidth / 2 + (marginLeft - marginRight) / 2,
57
+ y: regionHeight / 2 + (marginTop - marginBottom) / 2,
58
+ size: Math.min(regionWidth - (marginLeft + marginRight), regionHeight - (marginTop + marginBottom))
59
+ } : {
60
+ x: regionWidth / 2 + (marginLeft + paddingRight - (marginRight + paddingRight)) / 2,
61
+ y: regionHeight / 2 + (marginTop + paddingTop - (marginBottom + paddingBottom)) / 2,
62
+ size: Math.min(regionWidth - (marginLeft + marginRight + paddingLeft + paddingRight), regionHeight - (marginTop + marginBottom + paddingTop + paddingBottom))
63
+ };
64
+ }
65
+ _initLiquidOutlineMarkStyle() {
66
+ const liquidOutlineMark = this._liquidOutlineMark;
67
+ liquidOutlineMark.setZIndex(this.layoutZIndex), liquidOutlineMark.created(), this.setMarkStyle(liquidOutlineMark, {
68
+ stroke: this.getColorAttribute(),
69
+ x: () => this._getPosAndSizeFormRegion(!0).x,
70
+ y: () => this._getPosAndSizeFormRegion(!0).y,
71
+ size: () => this._getPosAndSizeFormRegion(!0).size,
72
+ symbolType: () => {
73
+ var _a;
74
+ return (0, util_1.getShapes)(null !== (_a = this._spec.maskShape) && void 0 !== _a ? _a : "circle", this._getPosAndSizeFormRegion(!0).size);
75
+ }
76
+ }, "normal", constant_2.AttributeLevel.Series), this._liquidOutlineMark.setInteractive(!1);
77
+ }
78
+ _initLiquidBackgroundMarkStyle() {
79
+ const liquidBackgroundMark = this._liquidBackgroundMark;
80
+ liquidBackgroundMark.setZIndex(this.layoutZIndex), liquidBackgroundMark.created(),
81
+ this.setMarkStyle(liquidBackgroundMark, {
82
+ clip: !0,
83
+ width: () => this._region.getLayoutRect().width,
84
+ height: () => this._region.getLayoutRect().height,
85
+ path: () => {
86
+ var _a;
87
+ const {x: x, y: y, size: size} = this._getPosAndSizeFormRegion();
88
+ return [ (0, vrender_core_1.createSymbol)({
89
+ x: x,
90
+ y: y,
91
+ size: size,
92
+ symbolType: (0, util_1.getShapes)(null !== (_a = this._spec.maskShape) && void 0 !== _a ? _a : "circle", size),
93
+ fill: !0
94
+ }) ];
95
+ }
96
+ }, "normal", constant_2.AttributeLevel.Series), this._liquidBackgroundMark.setInteractive(!1);
97
+ }
98
+ _initLiquidMarkStyle() {
99
+ const liquidMark = this._liquidMark;
100
+ liquidMark && this.setMarkStyle(liquidMark, {
101
+ dx: () => this._region.getLayoutStartPoint().x + this._region.getLayoutRect().width / 2,
102
+ y: () => {
103
+ const {y: liquidBackY, size: liquidBackSize} = this._getPosAndSizeFormRegion();
104
+ return liquidBackY - liquidBackSize / 2 + liquidBackSize - liquidBackSize * this._heightRatio;
105
+ },
106
+ height: () => {
107
+ const {size: liquidBackSize} = this._getPosAndSizeFormRegion();
108
+ return liquidBackSize * this._heightRatio;
109
+ },
110
+ fill: this.getColorAttribute(),
111
+ wave: 0
112
+ }, "normal", constant_2.AttributeLevel.Series);
113
+ }
114
+ initTooltip() {
115
+ this._tooltipHelper = new tooltip_helper_1.LiquidSeriesTooltipHelper(this), this._liquidMark && this._tooltipHelper.activeTriggerSet.mark.add(this._liquidMark);
116
+ }
117
+ initInteraction() {
118
+ this._parseInteractionConfig(this._liquidMark ? [ this._liquidMark ] : []);
119
+ }
120
+ initAnimation() {
121
+ var _a, _b, _c;
122
+ const animationParams = {
123
+ y: {
124
+ from: () => {
125
+ const {y: liquidBackY, size: liquidBackSize} = this._getPosAndSizeFormRegion();
126
+ return liquidBackY - liquidBackSize / 2 + liquidBackSize;
127
+ },
128
+ to: () => {
129
+ const {y: liquidBackY, size: liquidBackSize} = this._getPosAndSizeFormRegion();
130
+ return liquidBackY - liquidBackSize / 2 + liquidBackSize - liquidBackSize * this._heightRatio;
131
+ }
132
+ },
133
+ height: {
134
+ from: 0,
135
+ to: () => {
136
+ const {size: liquidBackSize} = this._getPosAndSizeFormRegion();
137
+ return liquidBackSize * this._heightRatio;
138
+ }
139
+ }
140
+ }, appearPreset = null === (_b = null === (_a = this._spec) || void 0 === _a ? void 0 : _a.animationAppear) || void 0 === _b ? void 0 : _b.preset;
141
+ this._liquidMark.setAnimationConfig((0, utils_1.animationConfig)(null === (_c = factory_1.Factory.getAnimationInKey("liquid")) || void 0 === _c ? void 0 : _c(animationParams, appearPreset), (0,
142
+ utils_1.userAnimationConfig)(type_1.SeriesMarkNameEnum.liquid, this._spec, this._markAttributeContext)));
143
+ }
144
+ initEvent() {
145
+ super.initEvent(), this._spec.indicatorSmartInvert && this._option.getChart().getComponentsByKey("indicator") && this.event.on(constant_2.ChartEvent.renderFinished, (() => {
146
+ this._option.getChart().getComponentsByKey("indicator").forEach((indicatorComponent => {
147
+ var _a, _b;
148
+ const waveItem = this._liquidMark.getProduct().elements[0].glyphGraphicItems.wave1;
149
+ let {y1: waveY1, y2: waveY2} = waveItem.globalAABBBounds;
150
+ waveY1 += this._region.getLayoutStartPoint().y, waveY2 += this._region.getLayoutStartPoint().y,
151
+ null === (_b = null === (_a = null == indicatorComponent ? void 0 : indicatorComponent.getIndicatorComponent()) || void 0 === _a ? void 0 : _a.getChildren()[0]) || void 0 === _b || _b.getChildren().forEach((text => {
152
+ const {y1: textY1, y2: textY2} = text.globalAABBBounds;
153
+ if (waveY1 < textY1 && waveY2 > textY2) {
154
+ const foregroundColor = text.attribute.fill, backgroundColor = waveItem.attribute.fill, invertColor = (0,
155
+ vrender_components_1.labelSmartInvert)(foregroundColor, backgroundColor);
156
+ text.setAttribute("fill", invertColor);
157
+ }
158
+ }));
159
+ }));
160
+ }));
161
+ }
162
+ dataToPosition(data) {
163
+ return null;
164
+ }
165
+ dataToPositionX(data) {
166
+ return null;
167
+ }
168
+ dataToPositionY(data) {
169
+ return null;
170
+ }
171
+ valueToPosition(value1, value2) {
172
+ return null;
173
+ }
174
+ getStatisticFields() {
175
+ return [];
176
+ }
177
+ getGroupFields() {
178
+ return [];
179
+ }
180
+ getStackGroupFields() {
181
+ return [];
182
+ }
183
+ getStackValueField() {
184
+ return "";
185
+ }
186
+ getActiveMarks() {
187
+ return [ this._liquidMark ];
188
+ }
189
+ }
190
+
191
+ exports.LiquidSeries = LiquidSeries, LiquidSeries.type = type_1.SeriesTypeEnum.liquid,
192
+ LiquidSeries.mark = constant_1.LiquidSeriesMark, LiquidSeries.transformerConstructor = line_mixin_transformer_1.LineLikeSeriesSpecTransformer;
193
+
194
+ const registerLiquidSeries = () => {
195
+ (0, liquid_1.registerLiquidMark)(), (0, group_1.registerGroupMark)(), (0, animation_1.registerLiquidAnimation)(),
196
+ factory_1.Factory.registerSeries(LiquidSeries.type, LiquidSeries);
197
+ };
198
+
199
+ exports.registerLiquidSeries = registerLiquidSeries;
200
+ //# sourceMappingURL=liquid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/series/liquid/liquid.ts"],"names":[],"mappings":";;;AACA,4CAAuE;AAEvE,6CAAgD;AAEhD,iDAA6E;AAK7E,2CAAsD;AACtD,yCAA8C;AAC9C,gDAA6C;AAE7C,4EAAgF;AAChF,8CAAuD;AACvD,6CAA4D;AAC5D,kCAAqC;AAGrC,4CAAqD;AACrD,iCAAmC;AACnC,yDAAsD;AACtD,qEAAgE;AAChE,qCAAwD;AAExD,qDAA6D;AAI7D,MAAa,YAA8D,SAAQ,iBAAa;IAAhG;;QAEE,SAAI,GAAG,qBAAc,CAAC,MAAM,CAAC;QAIpB,2BAAsB,GAAG,sDAA6B,CAAC;QAExD,0BAAqB,GAAuB,IAAI,CAAC;QACjD,uBAAkB,GAAwB,IAAI,CAAC;IAiRzD,CAAC;IA1QC,aAAa,CAAC,KAAa;QACzB,IAAI,IAAA,gBAAO,EAAC,KAAK,CAAC,EAAE;YAClB,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;SAC1B;IACH,CAAC;IACD,aAAa;QACX,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IAED,eAAe;QACb,KAAK,CAAC,eAAe,EAAE,CAAC;QACxB,IAAI,CAAC,WAAW,GAAG,IAAA,iCAA0B,EAAC,IAAI,CAAC,KAAK,CAAC,aAAa,CAAmB,CAAC;QAC1F,IAAI,CAAC,YAAY,GAAG,IAAA,iCAA0B,EAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAmB,CAAC;QAC5F,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IAC5C,CAAC;IAED,aAAa,CAAC,CAAW;QACvB,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QACvB,IAAI,C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,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAC5B,CAAC;;AAzRH,oCA0RC;AAzRiB,iBAAI,GAAW,qBAAc,CAAC,MAAM,CAAC;AAGrC,iBAAI,GAAkB,2BAAgB,CAAC;AACvC,mCAAsB,GAAG,sDAA6B,CAAC;AAuRlE,MAAM,oBAAoB,GAAG,GAAG,EAAE;IACvC,IAAA,2BAAkB,GAAE,CAAC;IACrB,IAAA,yBAAiB,GAAE,CAAC;IACpB,IAAA,mCAAuB,GAAE,CAAC;IAC1B,iBAAO,CAAC,cAAc,CAAC,YAAY,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;AAC1D,CAAC,CAAC;AALW,QAAA,oBAAoB,wBAK/B","file":"liquid.js","sourcesContent":["import type { SeriesMarkMap } from '../interface';\nimport { SeriesMarkNameEnum, SeriesTypeEnum } from '../interface/type';\n// eslint-disable-next-line no-duplicate-imports\nimport { isValid, max } from '@visactor/vutils';\nimport type { Datum, ILiquidMarkSpec, IPoint } from '../../typings';\nimport { animationConfig, userAnimationConfig } from '../../animation/utils';\nimport type { ILiquidPadding, ILiquidSeriesSpec } from './interface';\nimport type { IStateAnimateSpec } from '../../animation/spec';\nimport type { LiquidAppearPreset } from './animation';\n// eslint-disable-next-line no-duplicate-imports\nimport { registerLiquidAnimation } from './animation';\nimport { LiquidSeriesMark } from './constant';\nimport { Factory } from '../../core/factory';\nimport type { IMark, IMarkRaw } from '../../mark/interface';\nimport { LineLikeSeriesSpecTransformer } from '../mixin/line-mixin-transformer';\nimport { registerLiquidMark } from '../../mark/liquid';\nimport { AttributeLevel, ChartEvent } from '../../constant';\nimport { BaseSeries } from '../base';\nimport type { IGroupMark } from '../../mark/group';\n// eslint-disable-next-line no-duplicate-imports\nimport { registerGroupMark } from '../../mark/group';\nimport { getShapes } from './util';\nimport { createSymbol } from '@visactor/vrender-core';\nimport { labelSmartInvert } from '@visactor/vrender-components';\nimport { normalizeLayoutPaddingSpec } from '../../util';\nimport type { DataView } from '@visactor/vdataset';\nimport { LiquidSeriesTooltipHelper } from './tooltip-helper';\nimport type { ISymbolMark } from '../../mark/symbol';\n\nexport type ILiquidMark = IMarkRaw<ILiquidMarkSpec>;\nexport class LiquidSeries<T extends ILiquidSeriesSpec = ILiquidSeriesSpec> extends BaseSeries<T> {\n static readonly type: string = SeriesTypeEnum.liquid;\n type = SeriesTypeEnum.liquid;\n\n static readonly mark: SeriesMarkMap = LiquidSeriesMark;\n static readonly transformerConstructor = LineLikeSeriesSpecTransformer;\n readonly transformerConstructor = LineLikeSeriesSpecTransformer;\n private _liquidMark?: ILiquidMark;\n private _liquidBackgroundMark?: IGroupMark | null = null;\n private _liquidOutlineMark?: ISymbolMark | null = null;\n private _paddingSpec?: ILiquidPadding;\n private _marginSpec?: ILiquidPadding;\n\n private _heightRatio?: number;\n\n protected _valueField?: string;\n setValueField(field: string) {\n if (isValid(field)) {\n this._valueField = field;\n }\n }\n getValueField() {\n return this._valueField;\n }\n\n setAttrFromSpec() {\n super.setAttrFromSpec();\n this._marginSpec = normalizeLayoutPaddingSpec(this._spec.outlineMargin) as ILiquidPadding;\n this._paddingSpec = normalizeLayoutPaddingSpec(this._spec.outlinePadding) as ILiquidPadding;\n this.setValueField(this._spec.valueField);\n }\n\n rawDataUpdate(d: DataView): void {\n super.rawDataUpdate(d);\n this._heightRatio = max(...this._data.getLatestData().map((d: Datum) => d[this._valueField]));\n }\n\n initMark(): void {\n this._initLiquidOutlineMark();\n this._initLiquidBackgroundMark();\n this._initLiquidMark();\n }\n\n initMarkStyle(): void {\n this._initLiquidOutlineMarkStyle();\n this._initLiquidBackgroundMarkStyle();\n this._initLiquidMarkStyle();\n }\n\n private _initLiquidOutlineMark() {\n this._liquidOutlineMark = this._createMark(LiquidSeries.mark.liquidOutline, {\n isSeriesMark: true,\n skipBeforeLayouted: false\n }) as ISymbolMark;\n return this._liquidOutlineMark;\n }\n\n private _initLiquidBackgroundMark() {\n this._liquidBackgroundMark = this._createMark(LiquidSeries.mark.liquidBackground, {\n isSeriesMark: true,\n skipBeforeLayouted: false\n }) as IGroupMark;\n return this._liquidBackgroundMark;\n }\n\n private _initLiquidMark() {\n this._liquidMark = this._createMark(LiquidSeries.mark.liquid, {\n parent: this._liquidBackgroundMark,\n isSeriesMark: true,\n skipBeforeLayouted: false\n }) as ILiquidMark;\n return this._liquidMark;\n }\n\n private _getPosAndSizeFormRegion(isOutline: boolean = false) {\n const {\n top: marginTop = 0,\n bottom: marginBottom = 0,\n left: marginLeft = 0,\n right: marginRight = 0\n } = this._marginSpec;\n const {\n top: paddingTop = 0,\n bottom: paddingBottom = 0,\n left: paddingLeft = 0,\n right: paddingRight = 0\n } = this._paddingSpec;\n\n const { width: regionWidth, height: regionHeight } = this._region.getLayoutRect();\n if (!isOutline) {\n return {\n x: regionWidth / 2 + (marginLeft + paddingRight - (marginRight + paddingRight)) / 2,\n y: regionHeight / 2 + (marginTop + paddingTop - (marginBottom + paddingBottom)) / 2,\n // eslint-disable-next-line max-len\n size: Math.min(\n regionWidth - (marginLeft + marginRight + paddingLeft + paddingRight),\n regionHeight - (marginTop + marginBottom + paddingTop + paddingBottom)\n )\n };\n }\n return {\n x: regionWidth / 2 + (marginLeft - marginRight) / 2,\n y: regionHeight / 2 + (marginTop - marginBottom) / 2,\n size: Math.min(regionWidth - (marginLeft + marginRight), regionHeight - (marginTop + marginBottom))\n };\n }\n\n private _initLiquidOutlineMarkStyle() {\n const liquidOutlineMark = this._liquidOutlineMark;\n liquidOutlineMark.setZIndex(this.layoutZIndex);\n liquidOutlineMark.created();\n this.setMarkStyle(\n liquidOutlineMark,\n {\n stroke: this.getColorAttribute(),\n x: () => this._getPosAndSizeFormRegion(true).x,\n y: () => this._getPosAndSizeFormRegion(true).y,\n size: () => this._getPosAndSizeFormRegion(true).size,\n symbolType: () => getShapes(this._spec.maskShape ?? 'circle', this._getPosAndSizeFormRegion(true).size)\n },\n 'normal',\n AttributeLevel.Series\n );\n this._liquidOutlineMark.setInteractive(false);\n }\n\n private _initLiquidBackgroundMarkStyle() {\n const liquidBackgroundMark = this._liquidBackgroundMark;\n liquidBackgroundMark.setZIndex(this.layoutZIndex);\n liquidBackgroundMark.created();\n this.setMarkStyle(\n liquidBackgroundMark,\n {\n clip: true,\n width: () => this._region.getLayoutRect().width,\n height: () => this._region.getLayoutRect().height,\n path: () => {\n const { x, y, size } = this._getPosAndSizeFormRegion();\n const symbolPath = createSymbol({\n x,\n y,\n size,\n symbolType: getShapes(this._spec.maskShape ?? 'circle', size),\n fill: true\n });\n return [symbolPath];\n }\n },\n 'normal',\n AttributeLevel.Series\n );\n this._liquidBackgroundMark.setInteractive(false);\n }\n\n private _initLiquidMarkStyle() {\n const liquidMark = this._liquidMark;\n if (liquidMark) {\n this.setMarkStyle(\n liquidMark,\n {\n dx: () => {\n return this._region.getLayoutStartPoint().x + this._region.getLayoutRect().width / 2;\n },\n y: () => {\n const { y: liquidBackY, size: liquidBackSize } = this._getPosAndSizeFormRegion();\n return liquidBackY - liquidBackSize / 2 + liquidBackSize - liquidBackSize * this._heightRatio;\n },\n height: () => {\n const { size: liquidBackSize } = this._getPosAndSizeFormRegion();\n return liquidBackSize * this._heightRatio;\n },\n fill: this.getColorAttribute(),\n wave: 0\n },\n 'normal',\n AttributeLevel.Series\n );\n }\n }\n\n protected initTooltip() {\n this._tooltipHelper = new LiquidSeriesTooltipHelper(this);\n this._liquidMark && this._tooltipHelper.activeTriggerSet.mark.add(this._liquidMark);\n }\n\n initInteraction(): void {\n this._parseInteractionConfig(this._liquidMark ? [this._liquidMark] : []);\n }\n\n initAnimation() {\n const animationParams = {\n y: {\n from: () => {\n const { y: liquidBackY, size: liquidBackSize } = this._getPosAndSizeFormRegion();\n return liquidBackY - liquidBackSize / 2 + liquidBackSize;\n },\n to: () => {\n const { y: liquidBackY, size: liquidBackSize } = this._getPosAndSizeFormRegion();\n return liquidBackY - liquidBackSize / 2 + liquidBackSize - liquidBackSize * this._heightRatio;\n }\n },\n height: {\n from: 0,\n to: () => {\n const { size: liquidBackSize } = this._getPosAndSizeFormRegion();\n return liquidBackSize * this._heightRatio;\n }\n }\n };\n const appearPreset = (this._spec?.animationAppear as IStateAnimateSpec<LiquidAppearPreset>)?.preset;\n this._liquidMark.setAnimationConfig(\n animationConfig(\n Factory.getAnimationInKey('liquid')?.(animationParams, appearPreset),\n userAnimationConfig(SeriesMarkNameEnum.liquid, this._spec, this._markAttributeContext)\n )\n );\n }\n\n protected initEvent(): void {\n super.initEvent();\n if (!this._spec.indicatorSmartInvert || !this._option.getChart().getComponentsByKey('indicator')) {\n return;\n }\n this.event.on(ChartEvent.renderFinished, () => {\n this._option\n .getChart()\n .getComponentsByKey('indicator')\n .forEach((indicatorComponent: any) => {\n // wave item比较特殊, 由wave1、wave2、wave3在x方向上偏移叠加而成\n // 由于在水波图中只需要判断y方向上是否重叠, 所以此处取wave1做y方向上对比\n const grammarMark = this._liquidMark.getProduct();\n const waveItem = (grammarMark.elements[0] as any).glyphGraphicItems.wave1;\n let { y1: waveY1, y2: waveY2 } = waveItem.globalAABBBounds;\n waveY1 += this._region.getLayoutStartPoint().y;\n waveY2 += this._region.getLayoutStartPoint().y;\n indicatorComponent\n ?.getIndicatorComponent()\n ?.getChildren()[0]\n ?.getChildren()\n .forEach((text: any) => {\n const { y1: textY1, y2: textY2 } = text.globalAABBBounds;\n if (waveY1 < textY1 && waveY2 > textY2) {\n const foregroundColor = text.attribute.fill;\n const backgroundColor = waveItem.attribute.fill;\n const invertColor = labelSmartInvert(foregroundColor, backgroundColor);\n text.setAttribute('fill', invertColor);\n }\n });\n });\n });\n }\n\n dataToPosition(data: Datum): IPoint {\n return null;\n }\n dataToPositionX(data: Datum): number {\n return null;\n }\n dataToPositionY(data: Datum): number {\n return null;\n }\n valueToPosition(value1: any, value2?: any): IPoint {\n return null;\n }\n\n getStatisticFields(): any[] {\n return [];\n }\n\n getGroupFields(): string[] {\n return [];\n }\n getStackGroupFields(): string[] {\n return [];\n }\n getStackValueField(): string {\n return '';\n }\n\n getActiveMarks(): IMark[] {\n return [this._liquidMark];\n }\n}\n\nexport const registerLiquidSeries = () => {\n registerLiquidMark();\n registerGroupMark();\n registerLiquidAnimation();\n Factory.registerSeries(LiquidSeries.type, LiquidSeries);\n};\n"]}
@@ -0,0 +1,9 @@
1
+ import type { ISeriesTooltipHelper } from '../interface';
2
+ import { BaseSeriesTooltipHelper } from '../base/tooltip-helper';
3
+ import type { Datum, ITooltipPattern, TooltipActiveType } from '../../typings';
4
+ export declare class LiquidSeriesTooltipHelper extends BaseSeriesTooltipHelper implements ISeriesTooltipHelper {
5
+ getDefaultTooltipPattern(activeType: TooltipActiveType): ITooltipPattern | null;
6
+ getContentKey: () => (datum: any) => string;
7
+ getContentValue: () => (datum: any) => any;
8
+ getLiquidFillColor: (datum: Datum) => any;
9
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: !0
5
+ }), exports.LiquidSeriesTooltipHelper = void 0;
6
+
7
+ const tooltip_helper_1 = require("../base/tooltip-helper");
8
+
9
+ class LiquidSeriesTooltipHelper extends tooltip_helper_1.BaseSeriesTooltipHelper {
10
+ constructor() {
11
+ super(...arguments), this.getContentKey = () => datum => this.series.getValueField(),
12
+ this.getContentValue = () => datum => datum[this.series.getValueField()], this.getLiquidFillColor = datum => this.series.getMarkInName("liquid").getAttribute("fill", datum);
13
+ }
14
+ getDefaultTooltipPattern(activeType) {
15
+ return {
16
+ visible: !0,
17
+ activeType: activeType,
18
+ title: {
19
+ key: void 0,
20
+ value: this.titleValueCallback,
21
+ hasShape: !1
22
+ },
23
+ content: [ {
24
+ key: this.getContentKey(),
25
+ value: this.getContentValue(),
26
+ hasShape: !0,
27
+ shapeType: this.contentShapeTypeCallback,
28
+ shapeColor: this.getLiquidFillColor,
29
+ shapeStroke: this.getLiquidFillColor,
30
+ shapeHollow: !1
31
+ } ]
32
+ };
33
+ }
34
+ }
35
+
36
+ exports.LiquidSeriesTooltipHelper = LiquidSeriesTooltipHelper;
37
+ //# sourceMappingURL=tooltip-helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/series/liquid/tooltip-helper.ts"],"names":[],"mappings":";;;AACA,2DAAiE;AAIjE,MAAa,yBAA0B,SAAQ,wCAAuB;IAAtE;;QAwBE,kBAAa,GAAG,GAAG,EAAE,CAAC,CAAC,KAAU,EAAE,EAAE;YACnC,OAAQ,IAAI,CAAC,MAAuB,CAAC,aAAa,EAAE,CAAC;QACvD,CAAC,CAAC;QAEF,oBAAe,GAAG,GAAG,EAAE,CAAC,CAAC,KAAU,EAAE,EAAE;YACrC,MAAM,UAAU,GAAI,IAAI,CAAC,MAAuB,CAAC,aAAa,EAAE,CAAC;YACjE,OAAO,KAAK,CAAC,UAAU,CAAC,CAAC;QAC3B,CAAC,CAAC;QAEF,uBAAkB,GAAG,CAAC,KAAY,EAAE,EAAE;YACpC,OAAO,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,MAAM,EAAE,KAAK,CAAQ,CAAC;QAChF,CAAC,CAAC;IACJ,CAAC;IAlCC,wBAAwB,CAAC,UAA6B;QACpD,OAAO;YACL,OAAO,EAAE,IAAI;YACb,UAAU;YACV,KAAK,EAAE;gBACL,GAAG,EAAE,SAAS;gBACd,KAAK,EAAE,IAAI,CAAC,kBAAkB;gBAC9B,QAAQ,EAAE,KAAK;aAChB;YACD,OAAO,EAAE;gBACP;oBACE,GAAG,EAAE,IAAI,CAAC,aAAa,EAAE;oBACzB,KAAK,EAAE,IAAI,CAAC,eAAe,EAAE;oBAC7B,QAAQ,EAAE,IAAI;oBACd,SAAS,EAAE,IAAI,CAAC,wBAAwB;oBACxC,UAAU,EAAE,IAAI,CAAC,kBAAkB;oBACnC,WAAW,EAAE,IAAI,CAAC,kBAAkB;oBACpC,WAAW,EAAE,KAAK;iBACnB;aACF;SACF,CAAC;IACJ,CAAC;CAaF;AApCD,8DAoCC","file":"tooltip-helper.js","sourcesContent":["import type { ISeriesTooltipHelper } from '../interface';\nimport { BaseSeriesTooltipHelper } from '../base/tooltip-helper';\nimport type { Datum, ITooltipPattern, TooltipActiveType } from '../../typings';\nimport type { LiquidSeries } from './liquid';\n\nexport class LiquidSeriesTooltipHelper extends BaseSeriesTooltipHelper implements ISeriesTooltipHelper {\n /** 获取默认的tooltip pattern */\n getDefaultTooltipPattern(activeType: TooltipActiveType): ITooltipPattern | null {\n return {\n visible: true,\n activeType,\n title: {\n key: undefined,\n value: this.titleValueCallback,\n hasShape: false\n },\n content: [\n {\n key: this.getContentKey(),\n value: this.getContentValue(),\n hasShape: true,\n shapeType: this.contentShapeTypeCallback,\n shapeColor: this.getLiquidFillColor,\n shapeStroke: this.getLiquidFillColor,\n shapeHollow: false\n }\n ]\n };\n }\n getContentKey = () => (datum: any) => {\n return (this.series as LiquidSeries).getValueField();\n };\n\n getContentValue = () => (datum: any) => {\n const valueField = (this.series as LiquidSeries).getValueField();\n return datum[valueField];\n };\n\n getLiquidFillColor = (datum: Datum) => {\n return this.series.getMarkInName('liquid').getAttribute('fill', datum) as any;\n };\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import type { LiquidShapeType } from './interface';
2
+ export declare const getShapes: (shapesType: LiquidShapeType, size: number) => string;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: !0
5
+ }), exports.getShapes = void 0;
6
+
7
+ const getShapes = (shapesType, size) => "drop" === shapesType ? pin(0, 0, size / 2) : shapesType;
8
+
9
+ function pin(x, y, radius) {
10
+ const w = 4 * radius / 3, h = Math.max(w, 2 * radius), r = w / 2, cx = x, cy = r + y - h / 2, theta = Math.asin(r / (.85 * (h - r))), dy = Math.sin(theta) * r, dx = Math.cos(theta) * r, x0 = cx - dx, y0 = cy + dy, cpX = x, cpY = cy + r / Math.sin(theta);
11
+ return `\n M ${x0} ${y0}\n A ${r} ${r} 0 1 1 ${x0 + 2 * dx} ${y0}\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G,CAAC,CAAC;IACd,MAAM,GAAG,GAAG,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAErC,OAAO;UACC,EAAE,IAAI,EAAE;UACR,CAAC,IAAI,CAAC,UAAU,EAAE,GAAG,EAAE,GAAG,CAAC,IAAI,EAAE;UACjC,GAAG,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;UAC5B,GAAG,IAAI,GAAG,IAAI,EAAE,IAAI,EAAE;;KAE3B,CAAC;AACN,CAAC","file":"util.js","sourcesContent":["import type { LiquidShapeType } from './interface';\n\nexport const getShapes = (shapesType: LiquidShapeType, size: number) => {\n if (shapesType === 'drop') {\n return pin(0, 0, size / 2);\n }\n return shapesType;\n};\n\n/* Adapted from liquid shapes by ai-qing-hai and hustcc\n * https://github.com/antvis/G2\n * Licensed under the MIT\n\n * url: https://github.com/antvis/G2/blob/v5/src/shape/liquid/shapes.ts\n * License: https://github.com/antvis/G2/blob/v5/LICENSE\n * @license\n */\nfunction pin(x: number, y: number, radius: number) {\n const w = (radius * 4) / 3;\n const h = Math.max(w, radius * 2);\n const r = w / 2;\n\n // Attrs of the upper circle.\n const cx = x;\n const cy = r + y - h / 2;\n const theta = Math.asin(r / ((h - r) * 0.85));\n const dy = Math.sin(theta) * r;\n const dx = Math.cos(theta) * r;\n\n // The start point of the path.\n const x0 = cx - dx;\n const y0 = cy + dy;\n\n // Control point.\n const cpX = x;\n const cpY = cy + r / Math.sin(theta);\n\n return `\n M ${x0} ${y0}\n A ${r} ${r} 0 1 1 ${x0 + dx * 2} ${y0}\n Q ${cpX} ${cpY} ${x} ${y + h / 2}\n Q ${cpX} ${cpY} ${x0} ${y0}\n Z \n `;\n}\n"]}
@@ -89,7 +89,7 @@ class MapSeries extends geo_1.GeoSeries {
89
89
  }, "normal", index_1.AttributeLevel.Series), pathMark.setPostProcess("fill", (result => (0,
90
90
  vutils_1.isValid)(result) ? result : this._spec.defaultFillColor)), this.setMarkStyle(pathMark, {
91
91
  smoothScale: !0
92
- }, "normal", index_1.AttributeLevel.Built_In), this._trigger.registerMark(pathMark));
92
+ }, "normal", index_1.AttributeLevel.Built_In));
93
93
  }
94
94
  initLabelMarkStyle(labelMark) {
95
95
  labelMark && (this._labelMark = labelMark, this.setMarkStyle(labelMark, {
@@ -131,7 +131,7 @@ class MapSeries extends geo_1.GeoSeries {
131
131
  return [ this.valueField ];
132
132
  }
133
133
  release() {
134
- super.release(), this._areaCache.clear(), this._nameMap = {}, this._trigger = this._mapViewData = null;
134
+ super.release(), this._areaCache.clear(), this._nameMap = {}, this._mapViewData = null;
135
135
  }
136
136
  handleZoom(e) {
137
137
  var _a, _b, _c;
@@ -142,7 +142,7 @@ class MapSeries extends geo_1.GeoSeries {
142
142
  postMatrix: new vutils_1.Matrix
143
143
  }), pathGroup.scale(scale, scale, scaleCenter));
144
144
  const vgrammarLabel = null === (_c = null === (_b = this._labelMark) || void 0 === _b ? void 0 : _b.getComponent()) || void 0 === _c ? void 0 : _c.getProduct();
145
- vgrammarLabel && vgrammarLabel.evaluateSync(null, null);
145
+ vgrammarLabel && vgrammarLabel.evaluate(null, null);
146
146
  }
147
147
  handlePan(e) {
148
148
  var _a, _b, _c;
@@ -153,7 +153,7 @@ class MapSeries extends geo_1.GeoSeries {
153
153
  postMatrix: new vutils_1.Matrix
154
154
  }), pathGroup.translate(delta[0], delta[1]));
155
155
  const vgrammarLabel = null === (_c = null === (_b = this._labelMark) || void 0 === _b ? void 0 : _b.getComponent()) || void 0 === _c ? void 0 : _c.getProduct();
156
- vgrammarLabel && vgrammarLabel.evaluateSync(null, null);
156
+ vgrammarLabel && vgrammarLabel.evaluate(null, null);
157
157
  }
158
158
  getDatumCenter(datum) {
159
159
  var _a, _b, _c, _d;