@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,20 +1,42 @@
1
- import type { IMarkStateStyle, MarkType } from '../../mark/interface';
1
+ import type { IMark, IMarkGraphic, IMarkStateStyle, MarkType } from '../../mark/interface';
2
2
  import type { IModel } from '../../model/interface';
3
- import type { GrammarItemCompileOption, GrammarItemInitOption, IGrammarItem } from '../interface';
3
+ import type { GrammarItemCompileOption, GrammarItemInitOption, IGrammarItem, StateValueMap } from '../interface';
4
4
  import type { DataView } from '@visactor/vdataset';
5
- import type { IAnimate, IAnimateArranger, IElement, IGroupMark, IMark, IMarkConfig, MarkAnimationSpec, Nil, TransformSpec } from '@visactor/vgrammar-core';
6
5
  import type { Maybe, Datum, StringOrNumber } from '../../typings';
7
6
  import type { IRegion } from '../../region/interface';
8
7
  import type { ICompilableData } from '../data/interface';
8
+ import type { ICustomPath2D, IGraphic, IGroup } from '@visactor/vrender-core';
9
+ import type { MarkAnimationSpec } from '../../animation/interface';
10
+ export interface IMarkConfig {
11
+ clipPath?: IGraphic[] | ((graphics: IGraphic[]) => IGraphic[]);
12
+ clip?: boolean;
13
+ zIndex?: number;
14
+ interactive?: boolean;
15
+ setCustomizedShape?: (datum: any[], attrs: any, path: ICustomPath2D) => ICustomPath2D;
16
+ large?: boolean;
17
+ largeThreshold?: number;
18
+ progressiveStep?: number;
19
+ progressiveThreshold?: number;
20
+ support3d?: boolean;
21
+ graphicName?: string | ((g: IMarkConfig) => string);
22
+ morph?: boolean;
23
+ morphKey?: string;
24
+ morphElementKey?: string;
25
+ overflow?: 'scroll' | 'hidden' | 'scroll-x' | 'scroll-y';
26
+ skipTheme?: boolean;
27
+ useSequentialAnimation?: boolean;
28
+ }
9
29
  export interface IMarkStateManager {
10
30
  getStateInfoList: () => IStateInfo[];
11
31
  getStateInfo: (stateValue: StateValue) => IStateInfo;
12
32
  addStateInfo: (stateInfo: IStateInfo) => void;
13
33
  changeStateInfo: (stateInfo: Partial<IStateInfo>) => void;
14
34
  clearStateInfo: (stateValues: StateValue[]) => void;
15
- checkOneState: (renderNode: IElement, datum: Datum | Datum[], state: IStateInfo, isMultiMark?: boolean) => 'in' | 'out' | 'skip';
16
- checkState: (renderNode: IElement, datum: Datum | Datum[]) => StateValue[];
17
- updateLayoutState: (noRender?: boolean) => void;
35
+ checkOneState: (renderNode: IMarkGraphic, datum: Datum[], state: IStateInfo) => 'in' | 'out' | 'skip';
36
+ checkState: (renderNode: IMarkGraphic, datum: Datum[]) => StateValue[];
37
+ getStateMap: () => StateValueMap;
38
+ updateState: (newState: Partial<StateValueMap>, noRender?: boolean) => void;
39
+ release: () => void;
18
40
  }
19
41
  export interface IMarkData extends ICompilableData {
20
42
  setCompiledProductId: (name: string) => any;
@@ -33,48 +55,38 @@ export interface ICompilableMark extends IGrammarItem {
33
55
  readonly name: string;
34
56
  readonly key?: string | ((datum: Datum) => string);
35
57
  readonly model: IModel;
36
- getData: () => IMarkData | undefined;
37
- setData: (d: IMarkData) => void;
58
+ commit: (render?: boolean, recursion?: boolean) => void;
59
+ uncommit: () => void;
60
+ isCommited: () => boolean;
61
+ getData: () => ICompilableData | undefined;
62
+ setData: (d: ICompilableData) => void;
38
63
  getDataView: () => DataView | undefined;
39
- setDataView: (d?: DataView, productId?: string) => void;
64
+ setDataView: (d: DataView) => void;
40
65
  state: IMarkStateManager;
41
66
  readonly stateStyle: IMarkStateStyle<any>;
42
67
  hasState: (state: string) => boolean;
43
68
  getState: (state: string) => any;
44
69
  updateState: (newState: Record<string, unknown>) => void;
45
- updateStaticEncode: () => void;
46
70
  compileEncode: () => void;
47
- updateLayoutState: (noRender?: boolean, recursion?: boolean) => void;
48
- updateMarkState: (key: string) => void;
49
- setTransform: (transform: TransformSpec[] | Nil) => void;
50
71
  setAnimationConfig: (config: Partial<MarkAnimationSpec>) => void;
51
72
  getAnimationConfig: () => Partial<MarkAnimationSpec>;
52
73
  getVisible: () => boolean;
53
74
  setVisible: (visible: boolean) => void;
54
- getGroupKey: () => string | undefined;
55
75
  setGroupKey: (groupKey: string) => void;
56
76
  getUserId: () => StringOrNumber | undefined;
57
77
  setUserId: (id: StringOrNumber) => void;
58
78
  compile: (option?: IMarkCompileOption) => void;
59
- getProduct: () => Maybe<IMark>;
60
- getProductElements: () => Maybe<IMark['elements']>;
79
+ getProduct: () => Maybe<IGroup>;
61
80
  getMarks: () => ICompilableMark[];
62
81
  setSkipBeforeLayouted: (skip: boolean) => void;
63
- getSkipBeforeLayouted: () => boolean;
64
- setStateSortCallback: (stateSort: (stateA: string, stateB: string) => number) => void;
65
82
  getMarkConfig: () => IMarkConfig;
66
83
  setMarkConfig: (config: IMarkConfig) => void;
67
- runAnimationByState: (animationState?: string) => IAnimateArranger;
68
- stopAnimationByState: (animationState?: string) => IAnimate;
69
- pauseAnimationByState: (animationState: string) => IAnimate;
70
- resumeAnimationByState: (animationState: string) => IAnimate;
71
- }
72
- export interface IMarkDataInitOption extends ICompilableMarkOption {
73
- mark: ICompilableMark;
84
+ getContext: () => any;
85
+ layout: (layoutCallback: () => void) => void;
86
+ setDataLabelType?: () => string;
74
87
  }
75
88
  export interface IMarkCompileOption extends GrammarItemCompileOption {
76
- group?: string | IGroupMark;
77
- ignoreChildren?: boolean;
89
+ group?: IGroup;
78
90
  context?: any;
79
91
  }
80
92
  export interface IStateInfo {
@@ -83,7 +95,11 @@ export interface IStateInfo {
83
95
  datums?: any[] | null | undefined;
84
96
  datumKeys?: string[] | null | undefined;
85
97
  items?: any[] | null | undefined;
86
- filter?: ((datum: any, options: Record<string, any>) => boolean) | null | undefined;
98
+ filter?: ((datum: any, options: {
99
+ mark?: IMark;
100
+ type?: string;
101
+ renderNode?: IGraphic;
102
+ }) => boolean) | null | undefined;
87
103
  cache?: {
88
104
  [key: string]: {
89
105
  [key: string]: boolean;
@@ -116,7 +132,10 @@ export declare enum STATE_VALUE_ENUM {
116
132
  STATE_SELECTED = "selected",
117
133
  STATE_SELECTED_REVERSE = "selected_reverse",
118
134
  STATE_SANKEY_EMPHASIS = "selected",
119
- STATE_SANKEY_EMPHASIS_REVERSE = "blur"
135
+ STATE_SANKEY_EMPHASIS_REVERSE = "blur",
136
+ STATE_HIGHLIGHT = "highlight",
137
+ STATE_BLUR = "blur",
138
+ STATE_ACTIVE = "active"
120
139
  }
121
140
  export declare enum STATE_VALUE_ENUM_REVERSE {
122
141
  STATE_HOVER_REVERSE = "hover_reverse",
@@ -130,11 +149,6 @@ export type STATE_CUSTOM = string;
130
149
  export type StateValueNot = STATE_HOVER_REVERSE | STATE_CUSTOM;
131
150
  export type StateValue = STATE_NORMAL | STATE_HOVER | STATE_CUSTOM;
132
151
  export type StateValueType = StateValue | StateValueNot;
133
- export interface IAttributeOpt {
134
- element: IElement;
135
- mark: IElement['mark'];
136
- parent: IElement['mark']['group'];
137
- }
138
152
  export interface IModelMarkAttributeContext {
139
153
  [key: string]: unknown;
140
154
  }
@@ -1,26 +1,25 @@
1
- import type { IElement, IMark as IVGrammarMark } from '@visactor/vgrammar-core';
1
+ import type { IMark, IMarkGraphic } from '../../mark/interface';
2
2
  import type { Datum, StringOrNumber } from '../../typings';
3
- import type { IStateManagerOption } from '../signal/interface';
4
- import { StateManager } from '../signal/state-manager';
5
- import type { CompilableMark } from './compilable-mark';
6
3
  import type { IMarkStateManager, IStateInfo, StateValue } from './interface';
4
+ import type { ICompilableInitOption } from '../interface/compilable-item';
5
+ import { StateManager } from '../state-manager';
7
6
  export declare class MarkStateManager extends StateManager implements IMarkStateManager {
8
- protected _mark: CompilableMark;
7
+ protected _mark: IMark;
9
8
  private _stateInfoList;
10
9
  getStateInfoList(): IStateInfo[];
11
- constructor(option: IStateManagerOption, mark: CompilableMark);
10
+ constructor(options: ICompilableInitOption, mark: IMark);
12
11
  protected _getDefaultStateMap(): Record<string, unknown>;
13
12
  getStateInfo(stateValue: StateValue): IStateInfo;
14
13
  addStateInfo(stateInfo: IStateInfo): void;
15
14
  private _clearStateBeforeSet;
16
15
  changeStateInfo(stateInfo: Partial<IStateInfo>): void;
17
16
  clearStateInfo(stateValues: StateValue[]): void;
18
- checkOneState(renderNode: IElement, datum: Datum | Datum[], state: IStateInfo, isMultiMark?: boolean): 'in' | 'out' | 'skip';
19
- checkState(renderNode: IElement, datum: Datum | Datum[]): StateValue[];
20
- checkDatumState(state: IStateInfo, datum: Datum | Datum[], isMultiMark: boolean): boolean;
17
+ protected _isMultiMark(): boolean;
18
+ checkOneState(renderNode: IMarkGraphic, datum: Datum[], state: IStateInfo): 'in' | 'out' | 'skip';
19
+ checkState(renderNode: IMarkGraphic, datum: Datum[]): StateValue[];
20
+ checkDatumState(state: IStateInfo, datum: Datum[]): boolean;
21
21
  checkItemsState(state: IStateInfo, item: any): boolean | undefined;
22
- checkFieldsState(state: IStateInfo, datum: Datum | Datum[], item: any, isMultiMark: boolean): boolean;
23
- checkLinearFieldState(domain: StringOrNumber[], key: string, datum: any, item: any, isMultiMark: boolean): boolean;
24
- updateLayoutState(noRender?: boolean): void;
25
- compileState(product: IVGrammarMark, stateSort?: (stateA: string, stateB: string) => number): void;
22
+ checkFieldsState(state: IStateInfo, datum: Datum[], item: any): boolean;
23
+ checkLinearFieldState(domain: StringOrNumber[], key: string, datum: any, item: any): boolean;
24
+ release(): void;
26
25
  }
@@ -2,4 +2,4 @@ import type { IAttrs, IMarkStateStyle } from '../../mark/interface';
2
2
  export declare function isAttrChangeable<T>(key: string, stateStyle: IMarkStateStyle<T>): boolean;
3
3
  export declare function isStateAttrChangeable<T>(key: string, stateStyle: Partial<IAttrs<T>>, facetField: string): boolean;
4
4
  export declare function stateInDefaultEnum(state: string): boolean;
5
- export declare function stateToReverse(state: string): any;
5
+ export declare function stateToReverse(state: string): string;
@@ -0,0 +1,3 @@
1
+ import type { IMark } from '../mark/interface';
2
+ import type { IMorphConfig } from '../animation/spec';
3
+ export declare const morph: (prevMarks: IMark[], nextMarks: IMark[], morphConfig?: IMorphConfig) => boolean;
@@ -0,0 +1,11 @@
1
+ import { CompilableBase } from './compilable-base';
2
+ import type { ICompilableInitOption, StateValueMap } from './interface/compilable-item';
3
+ export declare class StateManager extends CompilableBase {
4
+ compile(): void;
5
+ protected _stateMap: StateValueMap;
6
+ getStateMap(): StateValueMap;
7
+ protected _getDefaultStateMap(): StateValueMap;
8
+ constructor(options: ICompilableInitOption);
9
+ initStateMap(state?: StateValueMap): void;
10
+ updateState(newState: Partial<StateValueMap>, noRender?: boolean): void;
11
+ }
@@ -1,2 +1,16 @@
1
+ import type { IMorphConfig } from '../animation/spec';
2
+ import type { IMark } from '../mark/interface';
3
+ import type { DiffResult } from '../typings/common';
1
4
  import type { RenderMode } from '../typings/spec';
2
5
  export declare function toRenderMode(mode: RenderMode): any;
6
+ export declare function traverseGroupMark<T>(group: IMark, apply: (mark: IMark) => T, filter?: (mark: IMark) => boolean, leafFirst?: boolean, stop?: boolean): T | undefined;
7
+ export declare function findSimpleMarks(groups: IMark[]): IMark[];
8
+ export declare function diffUpdateByGroup(prev: IMark[], next: IMark[], prevKey: (datum: IMark) => string, nextKey: (datum: IMark) => string): {
9
+ prev: IMark[];
10
+ next: IMark[];
11
+ update: {
12
+ prev: IMark[];
13
+ next: IMark[];
14
+ }[];
15
+ };
16
+ export declare function diffMarks(prevMarks: IMark[], nextMarks: IMark[], runningConfig: IMorphConfig): DiffResult<IMark[], IMark[]>;
@@ -4,12 +4,14 @@ import type { IGraphic } from '@visactor/vrender-core';
4
4
  import type { IOrientType, IPolarOrientType, StringOrNumber, CoordinateType } from '../../typings';
5
5
  import { BaseComponent } from '../base/base-component';
6
6
  import { CompilableData } from '../../compile/data';
7
- import type { IAxis, ICommonAxisSpec, ITick } from './interface';
7
+ import { type IAxis, type ICommonAxisSpec, type ITick } from './interface';
8
8
  import { type IComponentOption } from '../interface';
9
9
  import type { ISeries } from '../../series/interface';
10
10
  import type { ITransformOptions } from '@visactor/vdataset';
11
11
  import { DataView } from '@visactor/vdataset';
12
12
  import type { IComponentMark } from '../../mark/interface/mark';
13
+ import type { ICompilableMark } from '../../compile/mark';
14
+ import type { ICompilableData } from './../../compile/data/interface';
13
15
  export declare abstract class AxisComponent<T extends ICommonAxisSpec & Record<string, any> = any> extends BaseComponent<T> implements IAxis {
14
16
  static specKey: string;
15
17
  specKey: string;
@@ -50,9 +52,10 @@ export declare abstract class AxisComponent<T extends ICommonAxisSpec & Record<s
50
52
  getCoordinateType(): CoordinateType;
51
53
  constructor(spec: T, options: IComponentOption);
52
54
  protected _getNeedClearVRenderComponents(): IGraphic[];
53
- getVRenderComponents(): any[];
55
+ getVRenderComponents(): import("@visactor/vrender-core").IGroup[];
54
56
  created(): void;
55
57
  protected _shouldComputeTickData(): boolean;
58
+ protected _onTickDataChange: (tickData?: ICompilableData) => void;
56
59
  protected _initData(): void;
57
60
  protected collectData(depth: number, rawData?: boolean): {
58
61
  min: number;
@@ -68,8 +71,9 @@ export declare abstract class AxisComponent<T extends ICommonAxisSpec & Record<s
68
71
  protected initEvent(): void;
69
72
  protected updateScaleDomain(): void;
70
73
  protected _clearRawDomain(): void;
71
- onLayoutEnd(ctx: any): void;
74
+ onLayoutEnd(): void;
72
75
  protected computeData(updateType?: 'domain' | 'range' | 'force'): void;
76
+ protected _updateTickDataMarks(m: ICompilableMark): void;
73
77
  protected initScales(): void;
74
78
  _compareSpec(spec: T, prevSpec: T): {
75
79
  change: boolean;
@@ -102,5 +106,8 @@ export declare abstract class AxisComponent<T extends ICommonAxisSpec & Record<s
102
106
  addTransformToTickData(options: ITransformOptions, execute?: boolean): void;
103
107
  dataToPosition(values: any[]): number;
104
108
  getDatum(childGraphic?: IGraphic): any;
109
+ scaleRangeFactor(_?: [number, number], slience?: boolean, clear?: boolean): any;
110
+ scaleRangeFactorEnd(_?: number, slience?: boolean, clear?: boolean): any;
111
+ scaleRangeFactorStart(_?: number, slience?: boolean, clear?: boolean): any;
105
112
  }
106
113
  export declare const registerAxis: () => void;
@@ -3,13 +3,14 @@ import type { IEffect, IModelInitOption, IModelSpecInfo } from '../../../model/i
3
3
  import type { ICartesianSeries } from '../../../series/interface';
4
4
  import type { IRegion } from '../../../region/interface';
5
5
  import type { ICartesianAxisCommonSpec, IAxisHelper } from './interface';
6
- import type { IOrientType, IRect } from '../../../typings/space';
6
+ import type { IOrientType, IPadding, IRect } from '../../../typings/space';
7
7
  import type { IBaseScale } from '@visactor/vscale';
8
8
  import type { StringOrNumber } from '../../../typings/common';
9
9
  import type { IPoint } from '../../../typings/coordinate';
10
10
  import type { ILayoutRect, ILayoutType } from '../../../typings/layout';
11
11
  import type { IComponentOption } from '../../interface';
12
12
  import { ComponentTypeEnum } from '../../interface/type';
13
+ import type { LineAxisAttributes } from '@visactor/vrender-components';
13
14
  import type { IAxis, ITick } from '../interface';
14
15
  import type { ICartesianTickDataOpt } from '@visactor/vrender-components';
15
16
  import type { DataSet } from '@visactor/vdataset';
@@ -28,11 +29,6 @@ export declare abstract class CartesianAxis<T extends ICartesianAxisCommonSpec =
28
29
  layoutZIndex: number;
29
30
  layoutLevel: number;
30
31
  protected _dataSet: DataSet;
31
- layout3dBox?: {
32
- width: number;
33
- height: number;
34
- length: number;
35
- };
36
32
  protected _orient: IOrientType;
37
33
  getOrient(): IOrientType;
38
34
  protected getDefaultInteractive(): boolean;
@@ -42,7 +38,7 @@ export declare abstract class CartesianAxis<T extends ICartesianAxisCommonSpec =
42
38
  protected _scales: IBaseScale[];
43
39
  getScales(): IBaseScale[];
44
40
  protected _tick: ITick | undefined;
45
- private _axisStyle;
41
+ protected _axisStyle: Partial<LineAxisAttributes>;
46
42
  private _latestBounds;
47
43
  private _verticalLimitSize;
48
44
  private _unitText;
@@ -61,11 +57,6 @@ export declare abstract class CartesianAxis<T extends ICartesianAxisCommonSpec =
61
57
  static getSpecInfo(chartSpec: any): Maybe<IModelSpecInfo[]>;
62
58
  static createComponent(specInfo: IModelSpecInfo, options: IComponentOption): IAxis;
63
59
  initLayout(): void;
64
- setLayout3dBox(box3d: {
65
- width: number;
66
- height: number;
67
- length: number;
68
- }): void;
69
60
  effect: IEffect;
70
61
  protected abstract computeDomain(data: {
71
62
  min: number;
@@ -77,7 +68,7 @@ export declare abstract class CartesianAxis<T extends ICartesianAxisCommonSpec =
77
68
  protected updateScaleRange(): boolean;
78
69
  init(option: IModelInitOption): void;
79
70
  setAttrFromSpec(): void;
80
- onLayoutStart(layoutRect: IRect, viewRect: ILayoutRect, ctx: any): void;
71
+ onLayoutStart(layoutRect: IRect, viewRect: ILayoutRect): void;
81
72
  protected getSeriesStatisticsField(s: ICartesianSeries): string[];
82
73
  protected _tickTransformOption(): ICartesianTickDataOpt;
83
74
  protected axisHelper(): IAxisHelper;
@@ -94,9 +85,10 @@ export declare abstract class CartesianAxis<T extends ICartesianAxisCommonSpec =
94
85
  y: number;
95
86
  };
96
87
  _transformLayoutRect: (result: ILayoutRect) => ILayoutRect;
88
+ _transformLayoutPadding: (padding: IPadding) => IPadding;
97
89
  getBoundsInRect(rect: ILayoutRect): IBoundsLike;
98
90
  positionToData(pos: number, isViewPos?: boolean): any;
99
- private _getTitleLimit;
91
+ protected _getTitleLimit(isX: boolean): number;
100
92
  protected _getUpdateAttribute(ignoreGrid: boolean): any;
101
93
  protected getLabelItems(length: number): any[];
102
94
  protected initEvent(): void;
@@ -104,6 +96,7 @@ export declare abstract class CartesianAxis<T extends ICartesianAxisCommonSpec =
104
96
  protected _getNormalizedValue(values: any[], length: number): number;
105
97
  private _fixAxisOnZero;
106
98
  protected _layoutCacheProcessing(rect: ILayoutRect): ILayoutRect;
99
+ reInit(spec?: T): void;
107
100
  _clearLayoutCache(): void;
108
101
  onDataUpdate(): void;
109
102
  private _appendAxisUnit;
@@ -10,6 +10,12 @@ export declare class CartesianBandAxis<T extends ICartesianBandAxisSpec = ICarte
10
10
  static type: ComponentTypeEnum;
11
11
  type: ComponentTypeEnum;
12
12
  static specKey: string;
13
+ static readonly builtInTheme: {
14
+ axis: import("../interface").IAxisCommonTheme;
15
+ axisBand: import("../interface").IBandAxisTheme;
16
+ axisX: import("./interface").ICartesianAxisCommonTheme;
17
+ axisY: import("./interface").ICartesianAxisCommonTheme;
18
+ };
13
19
  protected _scale: BandScale;
14
20
  protected _scales: BandScale[];
15
21
  protected computeDomain(data: {
@@ -1,7 +1,7 @@
1
1
  import type { LogScale } from '@visactor/vscale';
2
2
  import { LinearScale } from '@visactor/vscale';
3
3
  import { CartesianAxis } from './axis';
4
- import type { IAxisHelper, ICartesianLinearAxisSpec } from './interface';
4
+ import type { IAxisHelper, ICartesianAxisCommonTheme, ICartesianLinearAxisSpec } from './interface';
5
5
  import { ComponentTypeEnum } from '../../interface/type';
6
6
  import { LinearAxisMixin } from '../mixin/linear-axis-mixin';
7
7
  import type { ICartesianTickDataOpt } from '@visactor/vrender-components';
@@ -11,6 +11,7 @@ export declare class CartesianLinearAxis<T extends ICartesianLinearAxisSpec = IC
11
11
  static type: ComponentTypeEnum;
12
12
  type: ComponentTypeEnum;
13
13
  static specKey: string;
14
+ static readonly builtInTheme: Record<string, ICartesianAxisCommonTheme>;
14
15
  protected _zero: boolean;
15
16
  protected _nice: boolean;
16
17
  protected _extend: {
@@ -9,6 +9,12 @@ export declare class CartesianLogAxis<T extends ICartesianLogAxisSpec = ICartesi
9
9
  static type: ComponentTypeEnum;
10
10
  type: ComponentTypeEnum;
11
11
  static specKey: string;
12
+ static readonly builtInTheme: {
13
+ axis: import("../interface").IAxisCommonTheme;
14
+ axisLinear: import("../interface").IAxisCommonTheme;
15
+ axisX: import("./interface").ICartesianAxisCommonTheme;
16
+ axisY: import("./interface").ICartesianAxisCommonTheme;
17
+ };
12
18
  protected _zero: boolean;
13
19
  protected _scale: LogScale;
14
20
  protected _scales: LogScale[];
@@ -9,6 +9,12 @@ export declare class CartesianSymlogAxis<T extends ICartesianSymlogAxisSpec = IC
9
9
  static type: ComponentTypeEnum;
10
10
  type: ComponentTypeEnum;
11
11
  static specKey: string;
12
+ static readonly builtInTheme: {
13
+ axis: import("..").IAxisCommonTheme;
14
+ axisLinear: import("..").IAxisCommonTheme;
15
+ axisX: import("./interface").ICartesianAxisCommonTheme;
16
+ axisY: import("./interface").ICartesianAxisCommonTheme;
17
+ };
12
18
  protected _zero: boolean;
13
19
  protected _scale: SymlogScale;
14
20
  protected _scales: SymlogScale[];
@@ -10,12 +10,18 @@ export declare class CartesianTimeAxis<T extends ICartesianTimeAxisSpec = ICarte
10
10
  static type: ComponentTypeEnum;
11
11
  type: ComponentTypeEnum;
12
12
  static specKey: string;
13
+ static readonly builtInTheme: {
14
+ axis: import("..").IAxisCommonTheme;
15
+ axisX: import("./interface").ICartesianAxisCommonTheme;
16
+ axisY: import("./interface").ICartesianAxisCommonTheme;
17
+ };
13
18
  protected _layerTickData: CompilableData;
14
19
  protected _zero: boolean;
15
20
  effect: IEffect;
16
21
  setAttrFromSpec(): void;
17
22
  protected _initData(): void;
18
23
  protected computeData(updateType?: 'range' | 'domain' | 'force'): void;
24
+ created(): void;
19
25
  protected _getLabelFormatMethod(): any;
20
26
  protected getLabelItems(length: number): any[];
21
27
  protected registerTicksTransform(): string;
@@ -1,6 +1,7 @@
1
1
  import type { IOrientType } from '../../../../typings';
2
2
  import { Direction } from '../../../../typings/space';
3
3
  import type { ICartesianAxisCommonSpec } from '../interface';
4
+ import type { AxisType } from '../../interface/common';
4
5
  export declare function isXAxis(orient: IOrientType): boolean;
5
6
  export declare function isYAxis(orient: IOrientType): boolean;
6
7
  export declare function isZAxis(orient: IOrientType): boolean;
@@ -10,6 +11,7 @@ export declare function getDirectionByOrient(orient: IOrientType): Direction;
10
11
  export declare function isOrientInSameDirection(orient1: IOrientType, orient2: IOrientType): boolean;
11
12
  export declare function transformInverse(spec: ICartesianAxisCommonSpec, isHorizontal: boolean): boolean;
12
13
  export declare function getCartesianAxisInfo(spec: ICartesianAxisCommonSpec, isHorizontal?: boolean): {
13
- axisType: import("../..").AxisType;
14
+ axisType: AxisType;
14
15
  componentName: string;
15
16
  };
17
+ export declare const getCartesianAxisTheme: (orient: IOrientType, type: AxisType, getTheme: (...keys: string[]) => any) => any;
@@ -48,3 +48,11 @@ export interface ITickCalculationCfg {
48
48
  export interface IBandAxisLayer extends Omit<ITickCalculationCfg, 'noDecimals' | 'tickMode'> {
49
49
  visible?: boolean;
50
50
  }
51
+ export declare enum AxisEnum {
52
+ lineAxis = "lineAxis",
53
+ circleAxis = "circleAxis"
54
+ }
55
+ export declare enum GridEnum {
56
+ lineAxisGrid = "lineAxisGrid",
57
+ circleAxisGrid = "circleAxisGrid"
58
+ }
@@ -4,6 +4,7 @@ import type { Datum, IFormatMethod, IPadding, IRectMarkSpec, IRichTextFormatMeth
4
4
  import type { IComponentSpec } from '../../base/interface';
5
5
  import type { AxisType, IAxisItem, IBandAxisLayer, ITickCalculationCfg, StyleCallback } from './common';
6
6
  import type { IBaseScale } from '@visactor/vscale';
7
+ import type { IVChart } from '../../../core';
7
8
  export interface ICommonAxisSpec extends Omit<IComponentSpec, 'orient' | 'center'>, IAnimationSpec<string, string> {
8
9
  type?: AxisType;
9
10
  visible?: boolean;
@@ -63,7 +64,9 @@ export interface ITick extends IAxisItem<IRuleMarkSpec>, ITickCalculationCfg {
63
64
  alignWithLabel?: boolean;
64
65
  style?: IRuleMarkSpec | StyleCallback<IRuleMarkSpec | undefined>;
65
66
  state?: AxisItemStateStyle<IRuleMarkSpec>;
66
- dataFilter?: (data: AxisItem[]) => AxisItem[];
67
+ dataFilter?: (data: AxisItem[], context: {
68
+ vchart: IVChart;
69
+ }) => AxisItem[];
67
70
  }
68
71
  export interface ISubTick extends IAxisItem<IRuleMarkSpec> {
69
72
  tickCount?: number;
@@ -80,7 +83,9 @@ export interface ILabel extends IAxisItem<ITextMarkSpec> {
80
83
  minGap?: number;
81
84
  style?: ITextMarkSpec | StyleCallback<ITextMarkSpec | undefined>;
82
85
  state?: AxisItemStateStyle<ITextMarkSpec>;
83
- dataFilter?: (data: AxisItem[], layer: number) => AxisItem[];
86
+ dataFilter?: (data: AxisItem[], layer: number, context: {
87
+ vchart: IVChart;
88
+ }) => AxisItem[];
84
89
  }
85
90
  export interface IDomainLine extends IAxisItem<IRuleMarkSpec> {
86
91
  state?: AxisItemStateStyle<IRuleMarkSpec>;
@@ -32,6 +32,7 @@ export interface BandAxisMixin {
32
32
  _tickTransformOption: () => any;
33
33
  _forceLayout: () => void;
34
34
  _getNormalizedValue: (values: any[], length: number) => number;
35
+ _onTickDataChange: (compilableData: CompilableData) => void;
35
36
  }
36
37
  export declare class BandAxisMixin {
37
38
  private _tickDataMap;
@@ -10,6 +10,12 @@ export declare class PolarBandAxis<T extends IPolarBandAxisSpec = IPolarBandAxis
10
10
  static type: ComponentTypeEnum;
11
11
  type: ComponentTypeEnum;
12
12
  static specKey: string;
13
+ static readonly builtInTheme: {
14
+ axis: import("../interface").IAxisCommonTheme;
15
+ axisBand: import("../interface").IBandAxisTheme;
16
+ axisAngle: import("./interface").IPolarAxisCommonTheme;
17
+ axisRadius: import("./interface").IPolarAxisCommonTheme;
18
+ };
13
19
  protected _scale: BandScale;
14
20
  protected _scales: BandScale[];
15
21
  protected computeDomain(data: {
@@ -9,6 +9,12 @@ export declare class PolarLinearAxis<T extends IPolarLinearAxisSpec = IPolarLine
9
9
  static type: ComponentTypeEnum;
10
10
  type: ComponentTypeEnum;
11
11
  static specKey: string;
12
+ static readonly builtInTheme: {
13
+ axis: import("../interface").IAxisCommonTheme;
14
+ axisLinear: import("../interface").IAxisCommonTheme;
15
+ axisAngle: import("./interface").IPolarAxisCommonTheme;
16
+ axisRadius: import("./interface").IPolarAxisCommonTheme;
17
+ };
12
18
  protected _zero: boolean;
13
19
  protected _nice: boolean;
14
20
  protected _extend: {
@@ -1,8 +1,10 @@
1
1
  import type { IPolarAxisCommonSpec } from '../interface';
2
2
  import type { ILayoutRect } from '../../../../typings/layout';
3
3
  import type { IPoint } from '../../../../typings/coordinate';
4
+ import type { IPolarOrientType } from '../../../../typings/space';
5
+ import type { AxisType } from '../../interface/common';
4
6
  export declare const getPolarAxisInfo: (spec: IPolarAxisCommonSpec, chartSpec: any) => {
5
- axisType: import("../..").AxisType;
7
+ axisType: AxisType;
6
8
  componentName: string;
7
9
  startAngle: any;
8
10
  endAngle: any;
@@ -14,3 +16,4 @@ export declare const computeLayoutRadius: (getLayoutRadius: () => number | "auto
14
16
  startAngle: number;
15
17
  endAngle: number;
16
18
  }) => number;
19
+ export declare const getPolarAxisTheme: (orient: IPolarOrientType, type: AxisType, getTheme: (...keys: string[]) => any) => any;
@@ -1,8 +1,6 @@
1
- import type { IOrientType, IPolarOrientType } from '../../typings';
2
1
  import type { AxisType, ICommonAxisSpec, ILinearAxisSpec } from './interface';
3
- import type { ITheme } from '../../theme';
4
- import type { IAxisHelper } from './cartesian';
5
- import type { IPolarAxisHelper } from './polar';
2
+ import type { IAxisHelper } from './cartesian/interface/common';
3
+ import type { IPolarAxisHelper } from './polar/interface/common';
6
4
  export declare const DEFAULT_TITLE_STYLE: {
7
5
  left: {
8
6
  textAlign: string;
@@ -26,8 +24,6 @@ export declare function getLinearAxisSpecDomain(axisSpec: ILinearAxisSpec, defau
26
24
  };
27
25
  export declare function isValidCartesianAxis(spec: any): boolean;
28
26
  export declare function isValidPolarAxis(spec: any): boolean;
29
- export declare const getCartesianAxisTheme: (orient: IOrientType, type: AxisType, chartTheme: ITheme) => any;
30
- export declare const getPolarAxisTheme: (orient: IPolarOrientType, type: AxisType, chartTheme: ITheme) => any;
31
27
  export declare const isDiscreteAxis: (axisType: AxisType) => boolean;
32
28
  export declare function getAxisItem(value: any, normalizedValue: number): {
33
29
  id: any;
@@ -3,8 +3,6 @@ import type { IRegion } from '../../region/interface';
3
3
  import type { IComponent, IComponentOption } from '../interface';
4
4
  import type { IComponentPluginService, IComponentPlugin } from '../../plugin/components/interface';
5
5
  import type { IBoundsLike } from '@visactor/vutils';
6
- import type { IGroupMark } from '@visactor/vgrammar-core';
7
- import type { IAnimate } from '../../animation/interface';
8
6
  import type { Datum, ILayoutRect } from '../../typings';
9
7
  import type { IComponentSpec } from './interface';
10
8
  import { LayoutModel } from '../../model/layout-model';
@@ -22,8 +20,6 @@ export declare class BaseComponent<T extends IComponentSpec = IComponentSpec> ex
22
20
  getRegions(): IRegion[];
23
21
  protected _container: IGroup;
24
22
  created(): void;
25
- animate?: IAnimate;
26
- constructor(spec: T, options: IComponentOption);
27
23
  initLayout(): void;
28
24
  changeRegions(regions: IRegion[]): void;
29
25
  protected _getNeedClearVRenderComponents(): IGraphic[];
@@ -41,7 +37,7 @@ export declare class BaseComponent<T extends IComponentSpec = IComponentSpec> ex
41
37
  release(): void;
42
38
  clear(): void;
43
39
  compile(): void;
44
- compileMarks(group?: string | IGroupMark): void;
40
+ compileMarks(group?: IGroup): void;
45
41
  reAppendComponents(): void;
46
42
  protected _delegateEvent: (component: IGraphic, event: any, type: string, item?: any, datum?: Datum) => void;
47
43
  getBoundsInRect(rect: ILayoutRect, fullRect: ILayoutRect): IBoundsLike;
@@ -1,8 +1,7 @@
1
- import type { ITheme } from '../../theme';
2
1
  import { type IOrientType } from '../../typings';
3
2
  import type { ComponentThemeWithDirection } from '../interface';
4
3
  import { ComponentTypeEnum } from '../interface/type';
5
- export declare function getComponentThemeFromGlobalTheme(type: ComponentTypeEnum, chartTheme: ITheme, componentSpec: any, chartSpec: any): any;
4
+ export declare function getComponentThemeFromGlobalTheme(type: ComponentTypeEnum, getTheme: (...key: string[]) => any, componentSpec: any, chartSpec: any): any;
6
5
  export declare const getComponentThemeWithDirection: <T>(componentSpec: {
7
6
  orient?: IOrientType;
8
7
  }, originalTheme: ComponentThemeWithDirection<T>) => T;