@visactor/vchart-types 1.15.5-alpha.8 → 2.0.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 (341) hide show
  1. package/package.json +3 -3
  2. package/tsconfig.tsbuildinfo +1 -1
  3. package/types/animation/animate-manager.d.ts +0 -12
  4. package/types/animation/animation-planner.d.ts +13 -0
  5. package/types/animation/config.d.ts +5 -5
  6. package/types/animation/grammar-dector.d.ts +22 -0
  7. package/types/animation/index.d.ts +7 -0
  8. package/types/animation/interface.d.ts +98 -7
  9. package/types/animation/sequential-animate.d.ts +1 -0
  10. package/types/animation/spec.d.ts +27 -3
  11. package/types/animation/state-transition.d.ts +1 -0
  12. package/types/animation/strategy/common.d.ts +17 -0
  13. package/types/animation/strategy/horizontal-bar-split.d.ts +11 -0
  14. package/types/animation/strategy/vertical-bar-split.d.ts +11 -0
  15. package/types/animation/utils.d.ts +3 -4
  16. package/types/chart/area/area.d.ts +1 -0
  17. package/types/chart/bar/bar.d.ts +1 -0
  18. package/types/chart/bar/index.d.ts +0 -1
  19. package/types/chart/bar/interface.d.ts +1 -5
  20. package/types/chart/base/base-chart.d.ts +22 -9
  21. package/types/chart/box-plot/box-plot.d.ts +1 -0
  22. package/types/chart/common/common.d.ts +1 -0
  23. package/types/chart/common/interface.d.ts +5 -5
  24. package/types/chart/funnel/index.d.ts +0 -1
  25. package/types/chart/funnel/interface.d.ts +1 -4
  26. package/types/chart/funnel/util.d.ts +2 -0
  27. package/types/chart/histogram/histogram.d.ts +1 -0
  28. package/types/chart/histogram/index.d.ts +0 -1
  29. package/types/chart/histogram/interface.d.ts +1 -4
  30. package/types/chart/index.d.ts +19 -17
  31. package/types/chart/interface/chart.d.ts +14 -5
  32. package/types/chart/interface/common.d.ts +2 -9
  33. package/types/chart/interface/type.d.ts +1 -8
  34. package/types/chart/line/line.d.ts +1 -0
  35. package/types/chart/mosaic/mosaic.d.ts +1 -0
  36. package/types/chart/pictogram/interface.d.ts +1 -1
  37. package/types/chart/pie/index.d.ts +0 -1
  38. package/types/chart/pie/interface.d.ts +1 -5
  39. package/types/chart/progress/circular/circular.d.ts +1 -0
  40. package/types/chart/progress/linear/linear.d.ts +1 -0
  41. package/types/chart/radar/radar.d.ts +1 -0
  42. package/types/chart/range-area/range-area.d.ts +1 -0
  43. package/types/chart/range-column/index.d.ts +0 -1
  44. package/types/chart/range-column/interface.d.ts +1 -5
  45. package/types/chart/range-column/range-column.d.ts +1 -0
  46. package/types/chart/rose/rose.d.ts +1 -0
  47. package/types/chart/sankey/sankey.d.ts +1 -1
  48. package/types/chart/scatter/scatter.d.ts +1 -0
  49. package/types/chart/waterfall/waterfall.d.ts +1 -0
  50. package/types/chart/word-cloud/index.d.ts +0 -1
  51. package/types/chart/word-cloud/interface.d.ts +1 -5
  52. package/types/chart/word-cloud/word-cloud.d.ts +4 -8
  53. package/types/compile/compilable-base.d.ts +1 -1
  54. package/types/compile/compiler.d.ts +35 -25
  55. package/types/compile/data/compilable-data.d.ts +7 -7
  56. package/types/compile/data/interface.d.ts +4 -1
  57. package/types/compile/grammar-item.d.ts +7 -13
  58. package/types/compile/interface/compilable-item.d.ts +22 -28
  59. package/types/compile/interface/compiler.d.ts +14 -4
  60. package/types/compile/mark/compilable-mark.d.ts +1 -0
  61. package/types/compile/mark/index.d.ts +0 -1
  62. package/types/compile/mark/interface.d.ts +48 -34
  63. package/types/compile/mark/mark-state-manager.d.ts +12 -13
  64. package/types/compile/mark/util.d.ts +1 -1
  65. package/types/compile/morph.d.ts +3 -0
  66. package/types/compile/state-manager.d.ts +11 -0
  67. package/types/compile/util.d.ts +14 -0
  68. package/types/component/axis/base-axis.d.ts +10 -3
  69. package/types/component/axis/cartesian/axis.d.ts +7 -14
  70. package/types/component/axis/cartesian/band-axis.d.ts +6 -0
  71. package/types/component/axis/cartesian/linear-axis.d.ts +2 -1
  72. package/types/component/axis/cartesian/log-axis.d.ts +6 -0
  73. package/types/component/axis/cartesian/symlog-axis.d.ts +6 -0
  74. package/types/component/axis/cartesian/time-axis.d.ts +6 -0
  75. package/types/component/axis/cartesian/util/common.d.ts +3 -1
  76. package/types/component/axis/interface/common.d.ts +8 -0
  77. package/types/component/axis/interface/spec.d.ts +7 -2
  78. package/types/component/axis/mixin/band-axis-mixin.d.ts +1 -0
  79. package/types/component/axis/polar/band-axis.d.ts +6 -0
  80. package/types/component/axis/polar/linear-axis.d.ts +6 -0
  81. package/types/component/axis/polar/util/common.d.ts +4 -1
  82. package/types/component/axis/util.d.ts +2 -6
  83. package/types/component/base/base-component.d.ts +1 -5
  84. package/types/component/base/util.d.ts +1 -2
  85. package/types/component/brush/brush.d.ts +35 -30
  86. package/types/component/brush/interface.d.ts +2 -0
  87. package/types/component/common/trigger/desktop.d.ts +0 -2
  88. package/types/component/common/trigger/interface.d.ts +0 -2
  89. package/types/component/common/trigger/mobile.d.ts +0 -2
  90. package/types/component/crosshair/base.d.ts +25 -36
  91. package/types/component/crosshair/cartesian.d.ts +9 -29
  92. package/types/component/crosshair/interface/common.d.ts +67 -2
  93. package/types/component/crosshair/interface/index.d.ts +0 -2
  94. package/types/component/crosshair/interface/spec.d.ts +8 -4
  95. package/types/component/crosshair/polar.d.ts +10 -23
  96. package/types/component/crosshair/utils/cartesian.d.ts +10 -21
  97. package/types/component/crosshair/utils/common.d.ts +2 -3
  98. package/types/component/crosshair/utils/polar.d.ts +18 -11
  99. package/types/component/custom-mark/custom-mark.d.ts +1 -0
  100. package/types/component/data-zoom/data-filter-base-component.d.ts +4 -4
  101. package/types/component/data-zoom/data-zoom/data-zoom.d.ts +4 -1
  102. package/types/component/data-zoom/data-zoom/interface.d.ts +2 -3
  103. package/types/component/data-zoom/interface.d.ts +11 -0
  104. package/types/component/data-zoom/scroll-bar/scroll-bar.d.ts +4 -2
  105. package/types/component/geo/geo-coordinate.d.ts +2 -2
  106. package/types/component/geo/interface.d.ts +1 -1
  107. package/types/component/index.d.ts +14 -8
  108. package/types/component/indicator/indicator.d.ts +3 -0
  109. package/types/component/interface/common.d.ts +0 -2
  110. package/types/component/interface/theme.d.ts +1 -3
  111. package/types/component/interface/type.d.ts +0 -1
  112. package/types/component/label/base-label.d.ts +9 -4
  113. package/types/component/label/interface.d.ts +14 -8
  114. package/types/component/label/label.d.ts +5 -3
  115. package/types/component/label/total-label.d.ts +4 -1
  116. package/types/component/label/util.d.ts +9 -10
  117. package/types/component/legend/continuous/legend.d.ts +4 -0
  118. package/types/component/legend/discrete/legend.d.ts +3 -0
  119. package/types/component/legend/util.d.ts +2 -2
  120. package/types/component/marker/base-marker.d.ts +1 -1
  121. package/types/component/marker/mark-area/cartesian-mark-area.d.ts +3 -0
  122. package/types/component/marker/mark-area/interface/theme.d.ts +4 -3
  123. package/types/component/marker/mark-area/polar-mark-area.d.ts +3 -0
  124. package/types/component/marker/mark-line/cartesian-mark-line.d.ts +3 -0
  125. package/types/component/marker/mark-line/interface/theme.d.ts +4 -3
  126. package/types/component/marker/mark-line/polar-mark-line.d.ts +3 -0
  127. package/types/component/marker/mark-point/cartesian-mark-point.d.ts +3 -0
  128. package/types/component/marker/mark-point/geo-mark-point.d.ts +3 -0
  129. package/types/component/marker/mark-point/interface/theme.d.ts +5 -2
  130. package/types/component/marker/mark-point/polar-mark-point.d.ts +3 -0
  131. package/types/component/marker/utils.d.ts +12 -0
  132. package/types/component/player/player.d.ts +3 -0
  133. package/types/component/title/title.d.ts +3 -0
  134. package/types/component/tooltip/constant.d.ts +6 -2
  135. package/types/component/tooltip/interface/common.d.ts +2 -1
  136. package/types/component/tooltip/processor/base.d.ts +4 -5
  137. package/types/component/tooltip/processor/dimension-tooltip.d.ts +1 -0
  138. package/types/component/tooltip/processor/group-tooltip.d.ts +1 -0
  139. package/types/component/tooltip/processor/interface.d.ts +12 -1
  140. package/types/component/tooltip/processor/mark-tooltip.d.ts +1 -0
  141. package/types/component/tooltip/processor/util.d.ts +1 -1
  142. package/types/component/tooltip/tooltip.d.ts +8 -5
  143. package/types/component/util.d.ts +1 -2
  144. package/types/constant/data.d.ts +1 -0
  145. package/types/constant/event.d.ts +55 -2
  146. package/types/core/factory.d.ts +31 -2
  147. package/types/core/index.d.ts +18 -2
  148. package/types/core/interface.d.ts +19 -5
  149. package/types/core/vchart.d.ts +8 -7
  150. package/types/data/transforms/circle-packing.d.ts +1 -1
  151. package/types/data/transforms/data-key.d.ts +1 -1
  152. package/types/data/transforms/flatten.d.ts +1 -1
  153. package/types/data/transforms/funnel.d.ts +1 -6
  154. package/types/data/transforms/pictogram.d.ts +2 -10
  155. package/types/data/transforms/sankey-links.d.ts +1 -2
  156. package/types/data/transforms/sankey-nodes.d.ts +1 -2
  157. package/types/data/transforms/sankey.d.ts +4 -4
  158. package/types/data/transforms/sunburst.d.ts +1 -1
  159. package/types/data/transforms/treemap.d.ts +5 -6
  160. package/types/data/transforms/venn.d.ts +10 -0
  161. package/types/data/transforms/waterfall.d.ts +1 -0
  162. package/types/event/event-dispatcher.d.ts +4 -1
  163. package/types/event/event.d.ts +4 -1
  164. package/types/event/events/base.d.ts +1 -2
  165. package/types/event/events/dimension/util/cartesian.d.ts +2 -1
  166. package/types/event/events/index.d.ts +1 -5
  167. package/types/event/index.d.ts +1 -0
  168. package/types/event/interface.d.ts +19 -13
  169. package/types/index-harmony-simple.d.ts +4 -4
  170. package/types/index-harmony.d.ts +1 -1
  171. package/types/index.d.ts +11 -0
  172. package/types/interaction/config.d.ts +13 -0
  173. package/types/interaction/index.d.ts +10 -1
  174. package/types/interaction/interaction.d.ts +17 -25
  175. package/types/interaction/interface/common.d.ts +22 -0
  176. package/types/interaction/interface/spec.d.ts +53 -0
  177. package/types/interaction/interface/trigger.d.ts +87 -0
  178. package/types/interaction/triggers/base.d.ts +28 -0
  179. package/types/interaction/triggers/dimension-hover.d.ts +22 -0
  180. package/types/interaction/triggers/element-active-by-legend.d.ts +21 -0
  181. package/types/interaction/triggers/element-active.d.ts +20 -0
  182. package/types/interaction/triggers/element-highlight-by-group.d.ts +23 -0
  183. package/types/interaction/triggers/element-highlight-by-key.d.ts +9 -0
  184. package/types/interaction/triggers/element-highlight-by-legend.d.ts +22 -0
  185. package/types/interaction/triggers/element-highlight-by-name.d.ts +24 -0
  186. package/types/interaction/triggers/element-highlight.d.ts +25 -0
  187. package/types/interaction/triggers/element-select.d.ts +24 -0
  188. package/types/interaction/triggers/enum.d.ts +6 -0
  189. package/types/interaction/triggers/util.d.ts +12 -0
  190. package/types/interaction/zoom/zoomable.d.ts +5 -0
  191. package/types/layout/base-layout.d.ts +12 -9
  192. package/types/layout/index.d.ts +4 -4
  193. package/types/layout/interface.d.ts +8 -3
  194. package/types/layout/layout-item.d.ts +7 -3
  195. package/types/layout/util.d.ts +17 -4
  196. package/types/mark/arc.d.ts +3 -3
  197. package/types/mark/area.d.ts +2 -0
  198. package/types/mark/base/base-line.d.ts +25 -2
  199. package/types/mark/base/base-mark.d.ts +160 -13
  200. package/types/mark/box-plot.d.ts +11 -5
  201. package/types/mark/cell.d.ts +6 -3
  202. package/types/mark/component.d.ts +12 -3
  203. package/types/mark/glyph.d.ts +30 -0
  204. package/types/mark/group.d.ts +11 -6
  205. package/types/mark/index.d.ts +10 -7
  206. package/types/mark/interface/common.d.ts +81 -9
  207. package/types/mark/interface/enum.d.ts +6 -0
  208. package/types/mark/interface/index.d.ts +1 -0
  209. package/types/mark/interface/mark.d.ts +20 -5
  210. package/types/mark/interface/type.d.ts +1 -3
  211. package/types/mark/label.d.ts +4 -3
  212. package/types/mark/link-path.d.ts +35 -5
  213. package/types/mark/liquid.d.ts +47 -5
  214. package/types/mark/ripple.d.ts +39 -4
  215. package/types/mark/rule.d.ts +4 -1
  216. package/types/mark/symbol.d.ts +4 -5
  217. package/types/mark/text.d.ts +5 -3
  218. package/types/mark/transform/data-sampling.d.ts +10 -0
  219. package/types/mark/transform/filter.d.ts +1 -0
  220. package/types/mark/transform/map.d.ts +1 -0
  221. package/types/mark/transform/symbol-overlap.d.ts +13 -0
  222. package/types/mark/utils/common.d.ts +4 -1
  223. package/types/mark/utils/glyph.d.ts +2 -0
  224. package/types/mark/utils/index.d.ts +2 -0
  225. package/types/mark/utils/line.d.ts +3 -0
  226. package/types/model/base-model.d.ts +11 -10
  227. package/types/model/interface.d.ts +11 -10
  228. package/types/model/layout-model.d.ts +4 -3
  229. package/types/plugin/chart/index.d.ts +1 -0
  230. package/types/plugin/components/tooltip-handler/base.d.ts +2 -2
  231. package/types/plugin/components/tooltip-handler/utils/attribute.d.ts +2 -3
  232. package/types/plugin/components/tooltip-handler/utils/position.d.ts +1 -14
  233. package/types/plugin/other.d.ts +3 -4
  234. package/types/region/interface.d.ts +0 -4
  235. package/types/region/region.d.ts +3 -11
  236. package/types/series/area/animation.d.ts +1 -1
  237. package/types/series/area/area.d.ts +3 -2
  238. package/types/series/bar/animation.d.ts +1 -2
  239. package/types/series/bar/bar.d.ts +9 -9
  240. package/types/series/bar/constant.d.ts +0 -1
  241. package/types/series/bar/interface.d.ts +1 -7
  242. package/types/series/base/base-series-transformer.d.ts +1 -1
  243. package/types/series/base/base-series.d.ts +23 -40
  244. package/types/series/base/tooltip-helper.d.ts +1 -2
  245. package/types/series/box-plot/animation.d.ts +52 -0
  246. package/types/series/box-plot/box-plot.d.ts +6 -3
  247. package/types/series/cartesian/cartesian.d.ts +1 -1
  248. package/types/series/circle-packing/animation.d.ts +1 -1
  249. package/types/series/circle-packing/circle-packing.d.ts +4 -1
  250. package/types/series/correlation/animation.d.ts +1 -1
  251. package/types/series/correlation/correlation.d.ts +6 -4
  252. package/types/series/dot/dot.d.ts +5 -2
  253. package/types/series/funnel/constant.d.ts +0 -1
  254. package/types/series/funnel/funnel.d.ts +10 -11
  255. package/types/series/funnel/interface.d.ts +2 -13
  256. package/types/series/funnel/tooltip-helper.d.ts +4 -2
  257. package/types/series/gauge/animation.d.ts +1 -1
  258. package/types/series/gauge/gauge-pointer.d.ts +7 -1
  259. package/types/series/gauge/gauge.d.ts +5 -2
  260. package/types/series/geo/geo.d.ts +3 -4
  261. package/types/series/heatmap/animation.d.ts +1 -1
  262. package/types/series/heatmap/heatmap.d.ts +7 -1
  263. package/types/series/index.d.ts +24 -19
  264. package/types/series/interface/common.d.ts +1 -4
  265. package/types/series/interface/series.d.ts +6 -1
  266. package/types/series/interface/theme.d.ts +5 -16
  267. package/types/series/interface/type.d.ts +1 -11
  268. package/types/series/line/animation.d.ts +1 -1
  269. package/types/series/line/line.d.ts +4 -1
  270. package/types/series/link/link.d.ts +8 -2
  271. package/types/series/liquid/animation.d.ts +1 -1
  272. package/types/series/liquid/liquid.d.ts +7 -1
  273. package/types/series/map/interface.d.ts +10 -0
  274. package/types/series/map/map.d.ts +3 -0
  275. package/types/series/mixin/line-mixin.d.ts +5 -5
  276. package/types/series/mosaic/mosaic.d.ts +2 -0
  277. package/types/series/pictogram/pictogram.d.ts +2 -0
  278. package/types/series/pictogram/tooltip-helper.d.ts +2 -2
  279. package/types/series/pie/animation/animation.d.ts +4 -4
  280. package/types/series/pie/animation/centerOffset.d.ts +1 -1
  281. package/types/series/pie/constant.d.ts +0 -1
  282. package/types/series/pie/interface.d.ts +3 -13
  283. package/types/series/pie/pie.d.ts +13 -11
  284. package/types/series/polar/animation.d.ts +2 -4
  285. package/types/series/polar/progress-like/animation.d.ts +1 -1
  286. package/types/series/polar/progress-like/interface.d.ts +1 -0
  287. package/types/series/polar/progress-like/progress-like.d.ts +1 -2
  288. package/types/series/progress/circular/circular.d.ts +7 -1
  289. package/types/series/progress/linear/animation.d.ts +2 -2
  290. package/types/series/progress/linear/interface.d.ts +1 -0
  291. package/types/series/progress/linear/linear.d.ts +7 -1
  292. package/types/series/radar/animation.d.ts +12 -10
  293. package/types/series/radar/radar.d.ts +5 -2
  294. package/types/series/range-column/animation.d.ts +1 -1
  295. package/types/series/range-column/constant.d.ts +0 -1
  296. package/types/series/range-column/interface.d.ts +0 -3
  297. package/types/series/range-column/range-column.d.ts +5 -4
  298. package/types/series/rose/animation.d.ts +1 -1
  299. package/types/series/rose/rose.d.ts +3 -0
  300. package/types/series/sankey/animation.d.ts +14 -1
  301. package/types/series/sankey/interface.d.ts +0 -1
  302. package/types/series/sankey/sankey.d.ts +14 -12
  303. package/types/series/sankey/tooltip-helper.d.ts +1 -1
  304. package/types/series/scatter/animation.d.ts +1 -1
  305. package/types/series/scatter/scatter.d.ts +3 -0
  306. package/types/series/sunburst/animation/enter.d.ts +1 -1
  307. package/types/series/sunburst/animation/exit.d.ts +1 -1
  308. package/types/series/sunburst/animation/preset.d.ts +1 -1
  309. package/types/series/sunburst/animation/utils.d.ts +2 -2
  310. package/types/series/sunburst/interface.d.ts +1 -1
  311. package/types/series/sunburst/sunburst.d.ts +4 -1
  312. package/types/series/treemap/animation.d.ts +1 -1
  313. package/types/series/treemap/interface.d.ts +1 -1
  314. package/types/series/treemap/treemap.d.ts +4 -2
  315. package/types/series/venn/animation.d.ts +12 -1
  316. package/types/series/venn/venn.d.ts +5 -1
  317. package/types/series/waterfall/animation.d.ts +1 -1
  318. package/types/series/waterfall/waterfall.d.ts +6 -2
  319. package/types/series/word-cloud/animation.d.ts +2 -4
  320. package/types/series/word-cloud/base.d.ts +4 -3
  321. package/types/series/word-cloud/interface.d.ts +2 -20
  322. package/types/theme/builtin/common/component/axis/cartesian-axis.d.ts +0 -1
  323. package/types/theme/builtin/common/series/funnel.d.ts +2 -2
  324. package/types/theme/builtin/common/series/word-cloud.d.ts +1 -2
  325. package/types/theme/builtin/index.d.ts +3 -1
  326. package/types/theme/color-scheme/util.d.ts +1 -1
  327. package/types/typings/common.d.ts +13 -0
  328. package/types/typings/spec/chart.d.ts +6 -12
  329. package/types/typings/spec/common.d.ts +40 -41
  330. package/types/typings/tooltip/position.d.ts +1 -1
  331. package/types/typings/visual.d.ts +11 -13
  332. package/types/util/array.d.ts +1 -0
  333. package/types/util/index.d.ts +1 -0
  334. package/types/util/mark.d.ts +5 -0
  335. package/types/util/math.d.ts +1 -1
  336. package/types/util/region.d.ts +5 -0
  337. package/types/util/scale.d.ts +1 -0
  338. package/types/util/theme/common.d.ts +1 -1
  339. package/types/util/theme/merge-theme.d.ts +2 -2
  340. package/types/util/theme/preprocess.d.ts +1 -2
  341. package/types/vrender-tools.d.ts +1 -0
@@ -1,3 +1,4 @@
1
+ import type { BaseEventParams } from '../../event/interface';
1
2
  import type { IOrientType } from '../../typings';
2
3
  import type { IDelayType } from '../../typings/event';
3
4
  import type { IComponentSpec } from '../base/interface';
@@ -35,12 +36,22 @@ export interface IDataFilterComponentSpec extends Omit<IComponentSpec, 'width' |
35
36
  }
36
37
  export interface IRoamDragSpec extends IRoamSpec {
37
38
  reverse?: boolean;
39
+ filter?: (delta: [number, number], e?: BaseEventParams['event']) => boolean;
38
40
  }
39
41
  export interface IRoamScrollSpec extends IRoamSpec {
40
42
  reverse?: boolean;
43
+ filter?: (params: {
44
+ scrollX: number;
45
+ scrollY: number;
46
+ }, e?: BaseEventParams['event']) => boolean;
41
47
  }
42
48
  export interface IRoamZoomSpec extends IRoamSpec {
43
49
  focus?: boolean;
50
+ filter?: (params: {
51
+ zoomDelta: number;
52
+ zoomX?: number;
53
+ zoomY?: number;
54
+ }, e?: BaseEventParams['event']) => boolean;
44
55
  }
45
56
  export interface IRoamSpec {
46
57
  enable?: boolean;
@@ -10,6 +10,9 @@ export declare class ScrollBar<T extends IScrollBarSpec = IScrollBarSpec> extend
10
10
  static type: ComponentTypeEnum;
11
11
  type: ComponentTypeEnum;
12
12
  name: string;
13
+ static readonly builtInTheme: {
14
+ scrollBar: import("./interface").IScrollBarTheme;
15
+ };
13
16
  static specKey: string;
14
17
  specKey: string;
15
18
  layoutZIndex: number;
@@ -18,7 +21,7 @@ export declare class ScrollBar<T extends IScrollBarSpec = IScrollBarSpec> extend
18
21
  protected _component: ScrollBarComponent;
19
22
  constructor(spec: T, options: IComponentOption);
20
23
  setAttrFromSpec(): void;
21
- onLayoutEnd(ctx: any): void;
24
+ onLayoutEnd(): void;
22
25
  protected _updateScaleRange(): void;
23
26
  protected _computeWidth(): number;
24
27
  protected _computeHeight(): number;
@@ -26,7 +29,6 @@ export declare class ScrollBar<T extends IScrollBarSpec = IScrollBarSpec> extend
26
29
  protected _createOrUpdateComponent(): void;
27
30
  protected _handleChange(start: number, end: number, updateComponent?: boolean): void;
28
31
  protected _handleDataCollectionChange(): void;
29
- protected _initCommonEvent(): void;
30
32
  protected _getComponentAttrs(): Partial<ScrollBarAttributes>;
31
33
  protected _getNeedClearVRenderComponents(): IGraphic[];
32
34
  }
@@ -1,6 +1,6 @@
1
1
  import type { IPoint } from '../../typings/coordinate';
2
2
  import { Projection } from './projection';
3
- import type { IEffect, IModelLayoutOption, IModelRenderOption, IModelSpecInfo } from '../../model/interface';
3
+ import type { IEffect, IModelRenderOption, IModelSpecInfo } from '../../model/interface';
4
4
  import { ComponentTypeEnum } from '../interface/type';
5
5
  import { BaseComponent } from '../base/base-component';
6
6
  import type { IGeoRegionSpec, IRegion } from '../../region/interface';
@@ -42,7 +42,7 @@ export declare class GeoCoordinate extends BaseComponent<IGeoRegionSpec> impleme
42
42
  initEvent(): void;
43
43
  initProjection(): void;
44
44
  coordinateHelper(): void;
45
- onLayoutEnd(ctx: IModelLayoutOption): void;
45
+ onLayoutEnd(): void;
46
46
  onRender(ctx: IModelRenderOption): void;
47
47
  changeRegions(regions: IRegion[]): void;
48
48
  protected _getNeedClearVRenderComponents(): IGraphic[];
@@ -1,6 +1,6 @@
1
1
  import type { IPoint } from '../../typings/coordinate';
2
- import type { ProjectionType } from '@visactor/vgrammar-core';
3
2
  import type { IComponent } from '../interface';
3
+ export type ProjectionType = 'albers' | 'albersUsa' | 'azimuthalEqualArea' | 'azimuthalEquidistant' | 'conicConformal' | 'conicEqualArea' | 'conicEquidistant' | 'equalEarth' | 'equirectangular' | 'gnomonic' | 'identity' | 'mercator' | 'naturalEarth1' | 'orthographic' | 'stereographic' | 'transverseMercator';
4
4
  export interface IProjectionSpec {
5
5
  name: string;
6
6
  type: ProjectionType;
@@ -6,9 +6,7 @@ import { DataZoom, registerDataZoom } from './data-zoom/data-zoom/data-zoom';
6
6
  import { CustomMark, registerCustomMark } from './custom-mark/custom-mark';
7
7
  import type { IBrushSpec, IBrushTheme } from './brush';
8
8
  import { Brush, registerBrush } from './brush/brush';
9
- import type { IMapLabelSpec, IMapLabelTheme } from './map-label';
10
- import { MapLabelComponent, registerMapLabel } from './map-label/component';
11
- import type { ICartesianLinearAxisSpec, ICartesianBandAxisSpec, ICartesianTimeAxisSpec, ICartesianAxisSpec, ICartesianLogAxisSpec, ICartesianAxisCommonTheme } from './axis/cartesian/index';
9
+ import type { ICartesianLinearAxisSpec, ICartesianBandAxisSpec, ICartesianTimeAxisSpec, ICartesianAxisSpec, ICartesianLogAxisSpec, ICartesianAxisCommonTheme, ICartesianSymlogAxisSpec } from './axis/cartesian/index';
12
10
  import { CartesianAxis, CartesianLinearAxis, CartesianBandAxis, CartesianTimeAxis, CartesianLogAxis, CartesianSymlogAxis, registerCartesianBandAxis, registerCartesianLinearAxis, registerCartesianLogAxis, registerCartesianSymlogAxis, registerCartesianTimeAxis } from './axis/cartesian/index';
13
11
  import type { IPolarAxisCommonTheme, IPolarAxisSpec, IPolarBandAxisSpec, IPolarLinearAxisSpec } from './axis/polar';
14
12
  import { PolarAxis, PolarBandAxis, PolarLinearAxis, registerPolarBandAxis, registerPolarLinearAxis } from './axis/polar';
@@ -39,10 +37,18 @@ import { Label, registerLabel } from './label';
39
37
  import { TotalLabel, registerTotalLabel } from './label/total-label';
40
38
  import { registerPoptip } from './poptip/index';
41
39
  import type { IComponentTheme } from './interface';
42
- import type { IAxisCommonTheme, IAxisItemTheme, IBandAxisTheme } from './axis/interface';
40
+ import type { IAxis, IAxisCommonTheme, IAxisItemTheme, IBandAxisTheme } from './axis/interface';
43
41
  import type { IPoptipTheme } from './poptip/interface';
44
- export { ScrollBar, DataZoom, CustomMark, Brush, MapLabelComponent, CartesianAxis, CartesianBandAxis, CartesianLinearAxis, CartesianTimeAxis, CartesianLogAxis, CartesianSymlogAxis, PolarAxis, PolarBandAxis, PolarLinearAxis, DiscreteLegend, ContinuousLegend, Indicator, Title, GeoCoordinate, CartesianCrossHair, PolarCrossHair, Player, CartesianMarkLine, CartesianMarkArea, CartesianMarkPoint, PolarMarkLine, PolarMarkArea, PolarMarkPoint, GeoMarkPoint, Tooltip, Label, TotalLabel };
45
- export { registerBrush, registerScrollBar, registerTitle, registerTooltip, registerCartesianBandAxis, registerCartesianCrossHair, registerCartesianLinearAxis, registerCartesianLogAxis, registerCartesianSymlogAxis, registerCartesianTimeAxis, registerContinuousLegend, registerCustomMark, registerDataZoom, registerDiscreteLegend, registerGeoCoordinate, registerIndicator, registerLabel, registerTotalLabel, registerMapLabel, registerMarkLine, registerMarkArea, registerMarkPoint, registerPolarMarkLine, registerPolarMarkArea, registerPolarMarkPoint, registerGeoMarkPoint, registerPlayer, registerPolarBandAxis, registerPolarCrossHair, registerPolarLinearAxis, registerPoptip };
46
- export type { IComponent, IScrollBarSpec, IBrushSpec, ICartesianAxisSpec, ICartesianBandAxisSpec, ICartesianCrosshairSpec, ICartesianLinearAxisSpec, ICartesianTimeAxisSpec, ICartesianLogAxisSpec, IContinuousLegendSpec, IDataZoomSpec, IDiscreteLegendSpec, IGeoCoordinateSpec, IIndicatorSpec, ILabelSpec, ITotalLabelSpec, IMapLabelSpec, IMarkAreaSpec, IMarkLineSpec, IStepMarkLineSpec, IMarkPointSpec, IPlayerSpec, IPolarAxisSpec, IPolarBandAxisSpec, IPolarCrosshairSpec, IPolarLinearAxisSpec, ITitleSpec, ITooltipSpec };
47
- export type { IComponentTheme, ICrosshairTheme, IAxisItemTheme, IAxisCommonTheme, IBandAxisTheme, IPolarAxisCommonTheme, ICartesianAxisCommonTheme, IBrushTheme, IDataZoomTheme, IScrollBarTheme, IIndicatorTheme, IMapLabelTheme, ITotalLabelTheme, ISizeLegendTheme, IColorLegendTheme, IDiscreteLegendTheme, IContinuousLegendTheme, IMarkAreaTheme, IMarkLineTheme, IMarkPointTheme, IPlayerTheme, IPoptipTheme, ITitleTheme, ITooltipTheme };
42
+ import { registerDimensionTooltipProcessor } from './tooltip/processor/dimension-tooltip';
43
+ import { registerMarkTooltipProcessor } from './tooltip/processor/mark-tooltip';
44
+ import { getCartesianCrosshairRect } from './crosshair/utils/cartesian';
45
+ import { registerGroupTooltipProcessor } from './tooltip/processor/group-tooltip';
46
+ import { BandAxisMixin } from './axis/mixin/band-axis-mixin';
47
+ import { LinearAxisMixin } from './axis/mixin/linear-axis-mixin';
48
+ export { ScrollBar, DataZoom, CustomMark, Brush, BandAxisMixin, LinearAxisMixin, CartesianAxis, CartesianBandAxis, CartesianLinearAxis, CartesianTimeAxis, CartesianLogAxis, CartesianSymlogAxis, PolarAxis, PolarBandAxis, PolarLinearAxis, DiscreteLegend, ContinuousLegend, Indicator, Title, GeoCoordinate, CartesianCrossHair, PolarCrossHair, Player, CartesianMarkLine, CartesianMarkArea, CartesianMarkPoint, PolarMarkLine, PolarMarkArea, PolarMarkPoint, GeoMarkPoint, Tooltip, Label, TotalLabel };
49
+ export { getCartesianCrosshairRect };
50
+ export { registerBrush, registerScrollBar, registerTitle, registerMarkTooltipProcessor, registerDimensionTooltipProcessor, registerGroupTooltipProcessor, registerTooltip, registerCartesianBandAxis, registerCartesianCrossHair, registerCartesianLinearAxis, registerCartesianLogAxis, registerCartesianSymlogAxis, registerCartesianTimeAxis, registerContinuousLegend, registerCustomMark, registerDataZoom, registerDiscreteLegend, registerGeoCoordinate, registerIndicator, registerLabel, registerTotalLabel, registerMarkLine, registerMarkArea, registerMarkPoint, registerPolarMarkLine, registerPolarMarkArea, registerPolarMarkPoint, registerGeoMarkPoint, registerPlayer, registerPolarBandAxis, registerPolarCrossHair, registerPolarLinearAxis, registerPoptip };
51
+ export type { IAxis, IComponent, IScrollBarSpec, IBrushSpec, ICartesianAxisSpec, ICartesianBandAxisSpec, ICartesianCrosshairSpec, ICartesianLinearAxisSpec, ICartesianTimeAxisSpec, ICartesianLogAxisSpec, ICartesianSymlogAxisSpec, IContinuousLegendSpec, IDataZoomSpec, IDiscreteLegendSpec, IGeoCoordinateSpec, IIndicatorSpec, ILabelSpec, ITotalLabelSpec, IMarkAreaSpec, IMarkLineSpec, IStepMarkLineSpec, IMarkPointSpec, IPlayerSpec, IPolarAxisSpec, IPolarBandAxisSpec, IPolarCrosshairSpec, IPolarLinearAxisSpec, ITitleSpec, ITooltipSpec };
52
+ export type { IComponentTheme, ICrosshairTheme, IAxisItemTheme, IAxisCommonTheme, IBandAxisTheme, IPolarAxisCommonTheme, ICartesianAxisCommonTheme, IBrushTheme, IDataZoomTheme, IScrollBarTheme, IIndicatorTheme, ITotalLabelTheme, ISizeLegendTheme, IColorLegendTheme, IDiscreteLegendTheme, IContinuousLegendTheme, IMarkAreaTheme, IMarkLineTheme, IMarkPointTheme, IPlayerTheme, IPoptipTheme, ITitleTheme, ITooltipTheme };
48
53
  export * from './tooltip/interface';
54
+ export { isXAxis, isYAxis, isZAxis } from './axis/cartesian/util';
@@ -10,6 +10,9 @@ export declare class Indicator<T extends IIndicatorSpec> extends BaseComponent<T
10
10
  static type: ComponentTypeEnum;
11
11
  type: ComponentTypeEnum;
12
12
  name: string;
13
+ static readonly builtInTheme: {
14
+ indicator: import("./interface").IIndicatorTheme;
15
+ };
13
16
  static specKey: string;
14
17
  specKey: string;
15
18
  layoutType: 'none';
@@ -1,5 +1,4 @@
1
1
  import type { ISeriesFilter } from '../../region/interface';
2
- import type { IAnimate } from '../../animation/interface';
3
2
  import type { ILayoutModel, IModelConstructor, IModelOption, IModelSpecInfo } from '../../model/interface';
4
3
  import type { IRegion } from '../../region/interface';
5
4
  import type { ISeries } from '../../series/interface';
@@ -23,7 +22,6 @@ export interface IComponentOption extends IModelOption {
23
22
  }
24
23
  export interface IComponent extends ILayoutModel {
25
24
  readonly name: string;
26
- readonly animate?: IAnimate;
27
25
  getRegions: () => IRegion[];
28
26
  getBindSeriesFilter?: () => ISeriesFilter;
29
27
  changeRegions: (regions: IRegion[]) => void;
@@ -6,7 +6,6 @@ import type { IScrollBarTheme } from '../data-zoom/scroll-bar/interface';
6
6
  import type { IIndicatorTheme } from '../indicator/interface';
7
7
  import type { IDiscreteLegendTheme } from '../legend/discrete/interface';
8
8
  import type { IColorLegendTheme, ISizeLegendTheme } from '../legend/continuous/interface';
9
- import type { IMapLabelTheme } from '../map-label/interface';
10
9
  import type { IMarkAreaTheme } from '../marker/mark-area/interface';
11
10
  import type { IMarkLineTheme } from '../marker/mark-line/interface';
12
11
  import type { IMarkPointTheme } from '../marker/mark-point/interface';
@@ -26,7 +25,6 @@ export interface IComponentTheme {
26
25
  axisLinear?: IAxisCommonTheme;
27
26
  axisX?: ICartesianAxisCommonTheme;
28
27
  axisY?: ICartesianAxisCommonTheme;
29
- axisZ?: ICartesianAxisCommonTheme;
30
28
  axisRadius?: IPolarAxisCommonTheme;
31
29
  axisAngle?: IPolarAxisCommonTheme;
32
30
  [ComponentTypeEnum.discreteLegend]?: IDiscreteLegendTheme;
@@ -47,9 +45,9 @@ export interface IComponentTheme {
47
45
  [ComponentTypeEnum.player]?: IPlayerTheme;
48
46
  [ComponentTypeEnum.brush]?: IBrushTheme;
49
47
  [ComponentTypeEnum.title]?: ITitleTheme;
50
- [ComponentTypeEnum.mapLabel]?: IMapLabelTheme;
51
48
  [ComponentTypeEnum.poptip]?: IPoptipTheme;
52
49
  [ComponentTypeEnum.totalLabel]?: ITotalLabelTheme;
50
+ [key: string]: any;
53
51
  }
54
52
  export type ComponentThemeWithDirection<T extends {
55
53
  orient?: IOrientType;
@@ -19,7 +19,6 @@ export declare enum ComponentTypeEnum {
19
19
  continuousLegend = "continuousLegend",
20
20
  colorLegend = "colorLegend",
21
21
  sizeLegend = "sizeLegend",
22
- mapLabel = "mapLabel",
23
22
  markLine = "markLine",
24
23
  markArea = "markArea",
25
24
  markPoint = "markPoint",
@@ -5,6 +5,9 @@ import type { IRegion } from '../../region/interface';
5
5
  import type { IModelRenderOption } from '../../model/interface';
6
6
  import type { ILabelSpec } from './interface';
7
7
  import type { IGraphic } from '@visactor/vrender-core';
8
+ import type { IComponentMark } from '../../mark/interface/mark';
9
+ import type { ICompilableMark } from '../../compile/mark/interface';
10
+ import type { IMark } from '../../mark/interface/common';
8
11
  export declare abstract class BaseLabelComponent<T = any> extends BaseComponent<T> {
9
12
  static type: ComponentTypeEnum;
10
13
  type: ComponentTypeEnum;
@@ -16,10 +19,10 @@ export declare abstract class BaseLabelComponent<T = any> extends BaseComponent<
16
19
  hover: boolean;
17
20
  select: boolean;
18
21
  state: {
19
- hover?: Partial<import("../../typings").IComposedTextMarkSpec>;
20
- hover_reverse?: Partial<import("../../typings").IComposedTextMarkSpec>;
21
- selected?: Partial<import("../../typings").IComposedTextMarkSpec>;
22
- selected_reverse?: Partial<import("../../typings").IComposedTextMarkSpec>;
22
+ hover?: Partial<import("../../core").IComposedTextMarkSpec>;
23
+ hover_reverse?: Partial<import("../../core").IComposedTextMarkSpec>;
24
+ selected?: Partial<import("../../core").IComposedTextMarkSpec>;
25
+ selected_reverse?: Partial<import("../../core").IComposedTextMarkSpec>;
23
26
  };
24
27
  };
25
28
  _compareSpec(spec: T, prevSpec: T): {
@@ -29,6 +32,8 @@ export declare abstract class BaseLabelComponent<T = any> extends BaseComponent<
29
32
  reSize: boolean;
30
33
  reCompile: boolean;
31
34
  };
35
+ _getDataLabelType(baseMark: ICompilableMark, type?: string): string;
36
+ _setTransformOfComponent(labelComponent: IComponentMark, baseMark: IMark | IMark[]): void;
32
37
  onRender(ctx: IModelRenderOption): void;
33
38
  changeRegions(regions: IRegion[]): void;
34
39
  protected _getNeedClearVRenderComponents(): IGraphic[];
@@ -1,12 +1,10 @@
1
- import type { BaseLabelAttrs } from '@visactor/vrender-components';
1
+ import type { BaseLabelAttrs, DataLabelAttrs } from '@visactor/vrender-components';
2
2
  import type { ConvertToMarkStyleSpec, Datum, IComposedTextMarkSpec, IFormatMethod, ITextMarkSpec } from '../../typings';
3
- import type { IComponentSpec } from '../base/interface';
4
- import type { ILabelMark } from '../../mark/interface';
3
+ import type { ILabelMark, IMark } from '../../mark/interface';
5
4
  import type { ISeries } from '../../series/interface';
6
- import type { ICompilableMark } from '../../compile/mark/interface';
7
5
  import type { IRegion } from '../../region/interface';
8
6
  export interface ILabelInfo {
9
- baseMark: ICompilableMark;
7
+ baseMark: IMark;
10
8
  labelMark: ILabelMark;
11
9
  series: ISeries;
12
10
  labelSpec: TransformedLabelSpec;
@@ -18,7 +16,8 @@ export interface ILabelComponentContext {
18
16
  export interface ILabelFormatMethodContext {
19
17
  series?: ISeries;
20
18
  }
21
- export interface ILabelSpec extends IComponentSpec, ILabelAnimationSpec {
19
+ export interface ILabelSpec extends ILabelAnimationSpec {
20
+ zIndex?: number;
22
21
  visible?: boolean;
23
22
  interactive?: boolean;
24
23
  textType?: 'text' | 'rich';
@@ -28,15 +27,19 @@ export interface ILabelSpec extends IComponentSpec, ILabelAnimationSpec {
28
27
  position?: string;
29
28
  style?: ConvertToMarkStyleSpec<IComposedTextMarkSpec>;
30
29
  state?: LabelStateStyle<Partial<IComposedTextMarkSpec>>;
31
- overlap?: BaseLabelAttrs['overlap'];
30
+ overlap?: BaseLabelAttrs['overlap'] & {
31
+ padding?: DataLabelAttrs['size']['padding'];
32
+ };
32
33
  smartInvert?: BaseLabelAttrs['smartInvert'];
33
34
  stackDataFilterType?: 'min' | 'max';
34
35
  dataFilter?: BaseLabelAttrs['dataFilter'];
35
36
  customLayoutFunc?: BaseLabelAttrs['customLayoutFunc'];
36
37
  customOverlapFunc?: BaseLabelAttrs['customOverlapFunc'];
38
+ onAfterOverlapping?: BaseLabelAttrs['onAfterOverlapping'];
37
39
  labelLayout?: 'series' | 'region';
38
40
  support3d?: boolean;
39
41
  syncState?: boolean;
42
+ showRelatedMarkTooltip?: boolean;
40
43
  }
41
44
  export type ILabelAnimationSpec = Pick<BaseLabelAttrs, 'animation' | 'animationEnter' | 'animationUpdate' | 'animationExit'>;
42
45
  export type IMultiLabelSpec<T extends Omit<ILabelSpec, 'position'>> = T | T[];
@@ -46,7 +49,10 @@ type LabelStateStyle<T> = {
46
49
  selected?: T;
47
50
  selected_reverse?: T;
48
51
  };
49
- export type ITotalLabelSpec = Pick<ILabelSpec, 'visible' | 'formatMethod' | 'interactive' | 'offset' | 'style' | 'state' | 'textType' | 'overlap'>;
52
+ export type ITotalLabelSpec = Pick<ILabelSpec, 'visible' | 'formatMethod' | 'interactive' | 'offset' | 'style' | 'state' | 'textType' | 'overlap'> & {
53
+ position?: 'top' | 'bottom';
54
+ alwayCalculateTotal?: boolean;
55
+ };
50
56
  export interface ITotalLabelTheme extends Pick<ILabelSpec, 'visible' | 'interactive' | 'offset' | 'overlap' | 'smartInvert' | 'animation'> {
51
57
  style?: ITextMarkSpec;
52
58
  }
@@ -2,14 +2,15 @@ import type { IComponentOption } from '../interface';
2
2
  import { ComponentTypeEnum } from '../interface/type';
3
3
  import type { IRegion } from '../../region/interface';
4
4
  import type { IModelInitOption, IModelSpecInfo } from '../../model/interface';
5
- import type { IComponentMark } from '../../mark/interface';
6
- import type { ILabel, IMark as IVGrammarMark } from '@visactor/vgrammar-core';
5
+ import type { IMark } from '../../mark/interface';
6
+ import { type IComponentMark } from '../../mark/interface';
7
7
  import { BaseLabelComponent } from './base-label';
8
8
  import type { Maybe } from '@visactor/vutils';
9
9
  import type { ILabelInfo } from './interface';
10
10
  import type { IChartSpecInfo } from '../../chart/interface';
11
11
  import type { IChartSpec } from '../../typings';
12
12
  import { LabelSpecTransformer } from './label-transformer';
13
+ import type { IGraphic } from '@visactor/vrender-core';
13
14
  export declare class Label<T extends IChartSpec = any> extends BaseLabelComponent<T> {
14
15
  static type: ComponentTypeEnum;
15
16
  type: ComponentTypeEnum;
@@ -33,8 +34,9 @@ export declare class Label<T extends IChartSpec = any> extends BaseLabelComponen
33
34
  updateLayoutAttribute(): void;
34
35
  protected _updateMultiLabelAttribute(labelInfo: ILabelInfo[], labelComponent: IComponentMark): void;
35
36
  protected _updateSingleLabelAttribute(labelInfo: ILabelInfo, labelComponent: IComponentMark): void;
36
- protected _updateLabelComponentAttribute(component: ILabel, target: IVGrammarMark | IVGrammarMark[], labelInfos: ILabelInfo[]): void;
37
+ protected _updateLabelComponentAttribute(labelComponent: IComponentMark, baseMark: IMark | IMark[], labelInfos: ILabelInfo[]): void;
37
38
  compileMarks(): void;
38
39
  getVRenderComponents(): any[];
40
+ getLabelInfoByTextGraphic(text: IGraphic): ILabelInfo;
39
41
  }
40
42
  export declare const registerLabel: () => void;
@@ -9,6 +9,9 @@ export declare class TotalLabel extends BaseLabelComponent {
9
9
  static type: ComponentTypeEnum;
10
10
  type: ComponentTypeEnum;
11
11
  name: string;
12
+ static readonly builtInTheme: {
13
+ totalLabel: import("./interface").ITotalLabelTheme;
14
+ };
12
15
  static specKey: string;
13
16
  specKey: string;
14
17
  layoutZIndex: number;
@@ -25,5 +28,5 @@ export declare class TotalLabel extends BaseLabelComponent {
25
28
  getVRenderComponents(): any[];
26
29
  protected _getSeries(): ISeries;
27
30
  }
28
- export declare function totalLabelPosition(series: ISeries, type: MarkType): string;
31
+ export declare function totalLabelPosition(series: ISeries, type: MarkType, position?: 'top' | 'bottom'): string;
29
32
  export declare const registerTotalLabel: () => void;
@@ -1,6 +1,6 @@
1
1
  import type { WaterfallSeries } from './../../series/waterfall/waterfall';
2
2
  import type { Datum } from '../../typings/common';
3
- import type { LabelItem, Strategy } from '@visactor/vrender-components';
3
+ import type { LabelItem, OverlapAttrs, Strategy } from '@visactor/vrender-components';
4
4
  import type { ILabelInfo, ILabelSpec } from './interface';
5
5
  export declare const labelRuleMap: {
6
6
  rect: typeof barLabel;
@@ -17,20 +17,14 @@ export declare const labelRuleMap: {
17
17
  venn: typeof vennLabel;
18
18
  };
19
19
  export declare function defaultLabelConfig(rule: string, labelInfo: ILabelInfo): any;
20
- export declare function textAttribute(labelInfo: ILabelInfo, datum: Datum, formatMethod?: ILabelSpec['formatMethod'], formatter?: ILabelSpec['formatter']): any;
20
+ export declare function textAttribute(labelInfo: ILabelInfo, datum: Datum, formatMethod?: ILabelSpec['formatMethod'], formatter?: ILabelSpec['formatter']): Partial<import("../../core").IComposedTextMarkSpec>;
21
21
  export declare function symbolLabel(labelInfo: ILabelInfo): {
22
22
  position: string | ((datum: Datum) => any);
23
- overlap: boolean | {
24
- strategy: Strategy[] | import("@visactor/vrender-components").ShiftYStrategy;
25
- avoidBaseMark: boolean;
26
- };
23
+ overlap: boolean | OverlapAttrs;
27
24
  };
28
25
  export declare function lineDataLabel(labelInfo: ILabelInfo): {
29
26
  position: string | ((datum: Datum) => any);
30
- overlap: boolean | {
31
- strategy: Strategy[] | import("@visactor/vrender-components").ShiftYStrategy;
32
- avoidBaseMark: boolean;
33
- };
27
+ overlap: boolean | OverlapAttrs;
34
28
  };
35
29
  export declare function barLabel(labelInfo: ILabelInfo): {
36
30
  position: (data: any) => string;
@@ -42,6 +36,7 @@ export declare function barLabel(labelInfo: ILabelInfo): {
42
36
  export declare function pointLabel(labelInfo: ILabelInfo): {
43
37
  position: string;
44
38
  overlap: boolean | {
39
+ clampForce: boolean;
45
40
  avoidBaseMark: boolean;
46
41
  };
47
42
  };
@@ -69,6 +64,10 @@ export declare function vennLabel(labelInfo: ILabelInfo): {
69
64
  export declare function LineLabel(labelInfo: ILabelInfo): {
70
65
  position: string;
71
66
  data: any;
67
+ overlap: {
68
+ avoidBaseMark: boolean;
69
+ clampForce: boolean;
70
+ };
72
71
  };
73
72
  export declare function sankeyLabel(labelInfo: ILabelInfo): {
74
73
  position: import("@visactor/vrender-components").Functional<string>;
@@ -8,6 +8,10 @@ import { BaseLegend } from '../base-legend';
8
8
  import type { ILayoutRect } from '../../../typings/layout';
9
9
  export declare class ContinuousLegend<T extends IColorLegendSpec | ISizeLegendSpec = IColorLegendSpec | ISizeLegendSpec> extends BaseLegend<T> {
10
10
  static specKey: string;
11
+ static readonly builtInTheme: {
12
+ colorLegend: import("./interface").IColorLegendTheme;
13
+ sizeLegend: import("./interface").ISizeLegendTheme;
14
+ };
11
15
  static type: ComponentTypeEnum;
12
16
  type: ComponentTypeEnum;
13
17
  name: string;
@@ -10,6 +10,9 @@ import type { ILayoutRect } from '../../../typings/layout';
10
10
  import type { StringOrNumber } from '../../../typings';
11
11
  export declare class DiscreteLegend extends BaseLegend<IDiscreteLegendSpec> {
12
12
  static specKey: string;
13
+ static readonly builtInTheme: {
14
+ discreteLegend: import("./interface").IDiscreteLegendTheme;
15
+ };
13
16
  static type: ComponentTypeEnum;
14
17
  type: ComponentTypeEnum;
15
18
  name: string;
@@ -13,7 +13,7 @@ export declare function transformLegendTitleAttributes(title: ITitle): {
13
13
  };
14
14
  background?: {
15
15
  visible?: boolean;
16
- style?: Omit<import("./interface").NoVisibleMarkStyle<import("../..").IRectMarkSpec>, "width" | "height" | "visible">;
16
+ style?: Omit<import("./interface").NoVisibleMarkStyle<import("../..").IRectMarkSpec>, "visible" | "width" | "height">;
17
17
  };
18
18
  text?: string | number | string[] | number[] | {
19
19
  type?: "text";
@@ -32,10 +32,10 @@ export declare function transformLegendTitleAttributes(title: ITitle): {
32
32
  element: any;
33
33
  } & import("@visactor/vrender-core").SimpleDomStyleOptions & import("@visactor/vrender-core").CommonDomOptions;
34
34
  };
35
+ visible?: boolean;
35
36
  padding?: import("@visactor/vrender-components").Padding;
36
37
  maxWidth?: number;
37
38
  minWidth?: number;
38
- visible?: boolean;
39
39
  space?: number;
40
40
  align?: "start" | "end" | "center";
41
41
  };
@@ -59,7 +59,7 @@ export declare abstract class BaseMarker<T extends IMarkerSpec> extends BaseComp
59
59
  clear(): void;
60
60
  private _getFirstSeries;
61
61
  protected _getNeedClearVRenderComponents(): IGraphic[];
62
- onLayoutStart(layoutRect: IRect, chartViewRect: ILayoutRect, ctx: any): void;
62
+ onLayoutStart(layoutRect: IRect, chartViewRect: ILayoutRect): void;
63
63
  _compareSpec(spec: T, prevSpec: T): {
64
64
  change: boolean;
65
65
  reMake: boolean;
@@ -10,6 +10,9 @@ export declare class CartesianMarkArea extends BaseMarkArea {
10
10
  name: string;
11
11
  static coordinateType: string;
12
12
  coordinateType: CoordinateType;
13
+ static readonly builtInTheme: {
14
+ markArea: import("./interface").IMarkAreaTheme;
15
+ };
13
16
  protected _newMarkAreaComponent(attr: MarkAreaAttrs): MarkAreaComponent;
14
17
  protected _computePointsAttr(): {
15
18
  points: IPoint[];
@@ -1,9 +1,10 @@
1
1
  import type { IMarkAreaLabelPosition, IMarkCommonArcLabelPosition } from '@visactor/vrender-components';
2
2
  import type { IArcMarkSpec, IPolygonMarkSpec } from '../../../../typings';
3
3
  import type { IMarkerLabelWithoutRefSpec, IMarkerState } from '../../interface';
4
+ export type IMarkAreaLabel = {
5
+ position?: keyof typeof IMarkAreaLabelPosition | IMarkCommonArcLabelPosition;
6
+ } & IMarkerLabelWithoutRefSpec;
4
7
  export interface IMarkAreaTheme {
5
8
  area?: Partial<IMarkerState<IPolygonMarkSpec | IArcMarkSpec>>;
6
- label?: {
7
- position?: keyof typeof IMarkAreaLabelPosition | IMarkCommonArcLabelPosition;
8
- } & IMarkerLabelWithoutRefSpec;
9
+ label?: IMarkAreaLabel | IMarkAreaLabel[];
9
10
  }
@@ -10,6 +10,9 @@ export declare class PolarMarkArea extends BaseMarkArea {
10
10
  name: string;
11
11
  static coordinateType: string;
12
12
  coordinateType: CoordinateType;
13
+ static readonly builtInTheme: {
14
+ polarMarkArea: import("./interface").IMarkAreaTheme;
15
+ };
13
16
  protected _markerComponent: MarkArcAreaComponent;
14
17
  protected _newMarkAreaComponent(attr: MarkArcAreaAttrs | MarkAreaAttrs): MarkArcAreaComponent | MarkAreaComponent;
15
18
  protected _computePointsAttr(): {
@@ -9,6 +9,9 @@ export declare class CartesianMarkLine extends BaseMarkLine {
9
9
  name: string;
10
10
  static coordinateType: string;
11
11
  coordinateType: CoordinateType;
12
+ static readonly builtInTheme: {
13
+ markLine: import("./interface").IMarkLineTheme;
14
+ };
12
15
  protected _markerComponent: MarkLineComponent;
13
16
  protected _newMarkLineComponent(attr: MarkLineAttrs): MarkLineComponent;
14
17
  protected _computePointsAttr(): {
@@ -1,11 +1,12 @@
1
1
  import type { IMarkCommonArcLabelPosition, IMarkLineLabelPosition } from '@visactor/vrender-components';
2
2
  import type { IArcMarkSpec, ILineMarkSpec } from '../../../../typings';
3
3
  import type { IMarkerLabelSpec, IMarkerState, IMarkerSymbol } from '../../interface';
4
+ export type IMarkLineLabel = {
5
+ position?: keyof typeof IMarkLineLabelPosition | IMarkCommonArcLabelPosition;
6
+ } & IMarkerLabelSpec;
4
7
  export interface IMarkLineTheme {
5
8
  line?: Partial<IMarkerState<ILineMarkSpec | IArcMarkSpec>>;
6
- label?: {
7
- position?: keyof typeof IMarkLineLabelPosition | IMarkCommonArcLabelPosition;
8
- } & IMarkerLabelSpec;
9
+ label?: IMarkLineLabel | IMarkLineLabel[];
9
10
  startSymbol?: IMarkerSymbol;
10
11
  endSymbol?: IMarkerSymbol;
11
12
  }
@@ -9,6 +9,9 @@ export declare class PolarMarkLine extends BaseMarkLine {
9
9
  name: string;
10
10
  static coordinateType: string;
11
11
  coordinateType: CoordinateType;
12
+ static readonly builtInTheme: {
13
+ polarMarkLine: import("./interface").IMarkLineTheme;
14
+ };
12
15
  protected _markerComponent: MarkArcLineComponent;
13
16
  protected _newMarkLineComponent(attr: MarkArcLineAttrs | MarkLineAttrs): MarkArcLineComponent | MarkLineComponent;
14
17
  protected _computePointsAttr(): {
@@ -8,6 +8,9 @@ export declare class CartesianMarkPoint extends BaseMarkPoint {
8
8
  name: string;
9
9
  static coordinateType: string;
10
10
  coordinateType: CoordinateType;
11
+ static readonly builtInTheme: {
12
+ markPoint: import("./interface").IMarkPointTheme<Partial<import("../interface").IMarkerSymbol>>;
13
+ };
11
14
  protected _computePointsAttr(): {
12
15
  point: IPoint;
13
16
  };
@@ -7,6 +7,9 @@ export declare class GeoMarkPoint extends BaseMarkPoint {
7
7
  name: string;
8
8
  static coordinateType: string;
9
9
  coordinateType: CoordinateType;
10
+ static readonly builtInTheme: {
11
+ geoMarkPoint: import("./interface").IMarkPointTheme<Partial<import("../interface").IMarkerSymbol>>;
12
+ };
10
13
  protected _computePointsAttr(): {
11
14
  point: import("../../../typings").IPoint;
12
15
  };
@@ -1,15 +1,18 @@
1
1
  import type { IImageGraphicAttribute, IRichTextGraphicAttribute, IGroupGraphicAttribute } from '@visactor/vrender-core';
2
2
  import type { IMarkPointItemPosition } from '@visactor/vrender-components';
3
3
  import type { ILineMarkSpec, ISymbolMarkSpec } from '../../../../typings';
4
- import type { IMarkerLabelSpec, IMarkerRef, IMarkerState, IMarkerSymbol } from '../../interface';
4
+ import type { IMarkerLabelSpec, IMarkerRef, IMarkerState, IMarkerSymbol, MarkerStateCallback, MarkerStateValue, MarkerStyleCallback } from '../../interface';
5
5
  import type { IRegion } from '../../../../region/interface';
6
6
  export type IOffsetCallback = (region: IRegion) => number;
7
+ export type IItemContentStyle = ISymbolMarkSpec | IImageGraphicAttribute | IGroupGraphicAttribute;
7
8
  export interface IItemContent extends IMarkerRef {
8
- type?: 'symbol' | 'text' | 'image' | 'richText';
9
9
  position?: keyof typeof IMarkPointItemPosition;
10
10
  offsetX?: number | 'regionRight' | 'regionLeft' | IOffsetCallback;
11
11
  offsetY?: number | 'regionTop' | 'regionBottom' | IOffsetCallback;
12
12
  confine?: boolean;
13
+ type?: 'symbol' | 'text' | 'image' | 'custom';
14
+ style?: IItemContentStyle | MarkerStyleCallback<IItemContentStyle> | IMarkerLabelSpec;
15
+ state?: Record<MarkerStateValue, IItemContentStyle | MarkerStateCallback<IItemContentStyle>>;
13
16
  symbol?: Partial<IMarkerState<ISymbolMarkSpec>>;
14
17
  image?: Partial<IMarkerState<IImageGraphicAttribute>>;
15
18
  text?: IMarkerLabelSpec;
@@ -8,6 +8,9 @@ export declare class PolarMarkPoint extends BaseMarkPoint {
8
8
  name: string;
9
9
  static coordinateType: string;
10
10
  coordinateType: CoordinateType;
11
+ static readonly builtInTheme: {
12
+ polarMarkPoint: import("./interface").IMarkPointTheme<Partial<import("../interface").IMarkerSymbol>>;
13
+ };
11
14
  protected _computePointsAttr(): {
12
15
  point: {
13
16
  x: number;
@@ -22,6 +22,18 @@ export declare function transformState(state: {} | Record<MarkerStateValue, any
22
22
  export declare function transformStyle(style: any, markerData: DataView, markerAttributeContext: IMarkerAttributeContext): any;
23
23
  export declare function transformOffset(offset: string | number | Function, region: IRegion): any;
24
24
  export declare function computeOffsetFromRegion(point: IPointLike, offset: string | number, region: IRegion): number;
25
+ export declare function getProcessInfo(spec: any): {
26
+ isXProcess: boolean;
27
+ isYProcess: boolean;
28
+ isX1Process: boolean;
29
+ isY1Process: boolean;
30
+ isAngleProcess: boolean;
31
+ isRadiusProcess: boolean;
32
+ isAngle1Process: boolean;
33
+ isRadius1Process: boolean;
34
+ isCoordinatesProcess: boolean;
35
+ isValidProcess: boolean;
36
+ };
25
37
  export declare function getMarkLineProcessInfo(spec: any): {
26
38
  doXProcess: boolean;
27
39
  doXYY1Process: boolean;
@@ -9,6 +9,9 @@ import { BaseComponent } from '../base/base-component';
9
9
  export declare class Player extends BaseComponent<IPlayer> implements IComponent {
10
10
  layoutZIndex: number;
11
11
  layoutLevel: number;
12
+ static readonly builtinThemes: {
13
+ player: import("./interface").IPlayerTheme;
14
+ };
12
15
  static specKey: string;
13
16
  specKey: string;
14
17
  static type: ComponentTypeEnum;
@@ -15,6 +15,9 @@ export declare class Title<T extends ITitleSpec = ITitleSpec> extends BaseCompon
15
15
  layoutType: ILayoutType;
16
16
  layoutZIndex: number;
17
17
  layoutLevel: number;
18
+ static readonly builtInTheme: {
19
+ title: import("./interface").ITitleTheme;
20
+ };
18
21
  protected _orient: IOrientType;
19
22
  private _titleComponent;
20
23
  private _cacheAttrs;
@@ -1,4 +1,4 @@
1
- import type { ITooltipLineActual, TooltipActiveType } from '../../typings';
1
+ import type { ITooltipLineActual } from '../../typings';
2
2
  export declare const TooltipHandlerType: {
3
3
  dom: string;
4
4
  canvas: string;
@@ -6,5 +6,9 @@ export declare const TooltipHandlerType: {
6
6
  export declare const TOOLTIP_EL_CLASS_NAME = "vchart-tooltip-element";
7
7
  export declare const TOOLTIP_MAX_LINE_COUNT = 20;
8
8
  export declare const TOOLTIP_OTHERS_LINE: ITooltipLineActual;
9
- export declare const TOOLTIP_TYPES: TooltipActiveType[];
9
+ export declare const enum TooltipType {
10
+ group = "group",
11
+ mark = "mark",
12
+ dimension = "dimension"
13
+ }
10
14
  export declare const DEFAULT_SHOW_DELAY = 50;