@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
@@ -26,4 +26,14 @@ export interface IMapSeriesTheme {
26
26
  }>;
27
27
  area?: Partial<IMarkTheme<Omit<IPathMarkSpec, 'smoothScale'>>>;
28
28
  }
29
+ export interface GeometryData {
30
+ type: 'Point' | 'MultiPoint' | 'LineString' | 'MultiLineString' | 'Polygon' | 'MultiPolygon' | 'GeometryCollection';
31
+ coordinates?: [number, number] | [number, number][] | [number, number][][] | [number, number][][][];
32
+ arcs?: number[][];
33
+ }
34
+ export interface FeatureData {
35
+ type: 'Feature';
36
+ geometry: GeometryData;
37
+ properties?: Record<string, any>;
38
+ }
29
39
  export {};
@@ -11,6 +11,9 @@ export declare class MapSeries<T extends IMapSeriesSpec = IMapSeriesSpec> extend
11
11
  static readonly type: string;
12
12
  type: SeriesTypeEnum;
13
13
  static readonly mark: SeriesMarkMap;
14
+ static readonly builtInTheme: {
15
+ map: import("./interface").IMapSeriesTheme;
16
+ };
14
17
  static readonly transformerConstructor: any;
15
18
  readonly transformerConstructor: typeof MapSeriesSpecTransformer;
16
19
  map: string;
@@ -1,12 +1,12 @@
1
1
  import type { ISeriesOption } from '../interface/common';
2
2
  import type { ISeries } from '../interface/series';
3
- import type { ICompileMarkConfig, IMark, IMarkProgressiveConfig, ILabelMark, ILineMark, ISymbolMark, ITextMark } from '../../mark/interface';
3
+ import type { ICompileMarkConfig, IMark, ILabelMark, ILineMark, ISymbolMark, ITextMark } from '../../mark/interface';
4
4
  import type { DirectionType, IInvalidType, InterpolateType, Maybe, Datum, ILayoutRect } from '../../typings';
5
5
  import type { ISeriesMarkInfo, ISeriesMarkInitOption, ISeriesTooltipHelper } from '../interface';
6
6
  import type { DimensionEventParams } from '../../event/events/dimension';
7
7
  import type { IRegion } from '../../region/interface';
8
- import type { SeriesData } from '../base/series-data';
9
8
  import type { ILineLikeSeriesTheme } from './interface';
9
+ import type { ICompilableData } from '../../compile/data';
10
10
  export interface LineLikeSeriesMixin extends ISeries {
11
11
  _spec: any;
12
12
  _option: ISeriesOption;
@@ -16,7 +16,7 @@ export interface LineLikeSeriesMixin extends ISeries {
16
16
  _invalidType: IInvalidType;
17
17
  _region: IRegion;
18
18
  _direction: DirectionType;
19
- _data: SeriesData;
19
+ _data: ICompilableData;
20
20
  _lineMark: ILineMark;
21
21
  _symbolMark: ISymbolMark;
22
22
  _symbolActiveMark: ISymbolMark;
@@ -33,11 +33,11 @@ export declare class LineLikeSeriesMixin {
33
33
  addSamplingCompile(): void;
34
34
  addOverlapCompile(): void;
35
35
  reCompileSampling(): void;
36
- initLineMark(progressive?: IMarkProgressiveConfig, isSeriesMark?: boolean): ILineMark;
36
+ initLineMark(isSeriesMark?: boolean): ILineMark;
37
37
  initLineMarkStyle(direction?: DirectionType, areaCurveType?: InterpolateType): ILineMark;
38
38
  protected _getEventElement(params: DimensionEventParams, reverse?: boolean): Datum[];
39
39
  protected _dimensionTrigger(params: DimensionEventParams): void;
40
- initSymbolMark(progressive?: IMarkProgressiveConfig, isSeriesMark?: boolean): ISymbolMark;
40
+ initSymbolMark(isSeriesMark?: boolean): ISymbolMark;
41
41
  initSymbolMarkStyle(): ISymbolMark;
42
42
  private _initSymbolMark;
43
43
  private _initSymbolActiveMarkAlone;
@@ -1,10 +1,12 @@
1
1
  import { BarSeries } from '../bar/bar';
2
2
  import { SeriesTypeEnum } from '../interface/type';
3
3
  import type { IMosaicSeriesSpec } from './interface';
4
+ import type { IBarSeriesTheme } from '../bar/interface';
4
5
  export declare class MosaicSeries<T extends IMosaicSeriesSpec = IMosaicSeriesSpec> extends BarSeries<any> {
5
6
  static readonly type: string;
6
7
  type: SeriesTypeEnum;
7
8
  protected _spec: T;
9
+ static readonly builtInTheme: Record<string, IBarSeriesTheme>;
8
10
  static readonly transformerConstructor: any;
9
11
  readonly transformerConstructor: any;
10
12
  getStack(): boolean;
@@ -27,6 +27,7 @@ export declare class PictogramSeries<T extends IPictogramSeriesSpec = IPictogram
27
27
  protected _pictogramMark: GroupMark;
28
28
  protected _parsedSvgResult: SVGParserResult;
29
29
  private _labelMark;
30
+ private _idToMark;
30
31
  setAttrFromSpec(): void;
31
32
  getDatumCenter(datum: SVGParsedElementExtend): [number, number];
32
33
  getDatumName(datum: SVGParsedElementExtend): string;
@@ -74,5 +75,6 @@ export declare class PictogramSeries<T extends IPictogramSeriesSpec = IPictogram
74
75
  getMeasureField(): string[];
75
76
  getDimensionField(): string[];
76
77
  protected _getSeriesInfo(field: string, keys: string[]): ISeriesSeriesInfo[];
78
+ release(): void;
77
79
  }
78
80
  export declare const registerPictogramSeries: () => void;
@@ -1,7 +1,7 @@
1
1
  import type { ISeriesTooltipHelper } from '../interface';
2
2
  import { BaseSeriesTooltipHelper } from '../base/tooltip-helper';
3
- import { TooltipHandlerParams } from '../../component';
4
- import { Datum } from '../../typings';
3
+ import type { TooltipHandlerParams } from '../../component';
4
+ import type { Datum } from '../../typings';
5
5
  export declare class PictogramSeriesTooltipHelper extends BaseSeriesTooltipHelper implements ISeriesTooltipHelper {
6
6
  dimensionTooltipTitleCallback: (datum: any) => any;
7
7
  markTooltipValueCallback: (datum: Datum, params?: TooltipHandlerParams) => any;
@@ -1,8 +1,9 @@
1
- import type { IElement, IAnimationTypeConfig } from '@visactor/vgrammar-core';
1
+ import type { IAnimationTypeConfig } from '../../../animation/interface';
2
2
  import { AnimationStateEnum } from '../../../animation/interface';
3
3
  import type { Datum } from '../../../typings';
4
4
  import type { IPieAnimationParams, PieAppearPreset } from '../interface';
5
- export declare function pieGrowOption(pieParams: IPieAnimationParams, isOverall: boolean, state: AnimationStateEnum): (datum: Datum, element: IElement, params: AnimationStateEnum) => {
5
+ import type { IMarkGraphic } from '../../../core';
6
+ export declare function pieGrowOption(pieParams: IPieAnimationParams, isOverall: boolean, state: AnimationStateEnum): (datum: Datum, graphic: IMarkGraphic, params: AnimationStateEnum) => {
6
7
  overall: number;
7
8
  } | {
8
9
  overall: boolean;
@@ -14,9 +15,8 @@ export declare const Appear_FadeIn: {
14
15
  export declare const pieEnter: (params: IPieAnimationParams) => IAnimationTypeConfig;
15
16
  export declare const pieExit: (params: IPieAnimationParams) => IAnimationTypeConfig;
16
17
  export declare const pieDisappear: (params: IPieAnimationParams) => IAnimationTypeConfig;
17
- export declare function piePresetAnimation(params: IPieAnimationParams, preset: PieAppearPreset | boolean): IAnimationTypeConfig | {
18
+ export declare function piePresetAnimation(params: IPieAnimationParams, preset: PieAppearPreset | boolean): import("../../../animation/interface").CommonAnimationConfigItem | {
18
19
  type: string;
19
20
  };
20
21
  export declare const registerPieAnimation: () => void;
21
22
  export declare const registerEmptyCircleAnimation: () => void;
22
- export declare const registerPie3dAnimation: () => void;
@@ -1,3 +1,3 @@
1
- import type { IAnimationTimeline, IAnimationTypeConfig } from '@visactor/vgrammar-core';
2
1
  import type { IArcMark } from '../../../mark/interface';
2
+ import type { IAnimationTimeline, IAnimationTypeConfig } from '../../../animation/interface';
3
3
  export declare function centerOffsetConfig(mark: IArcMark, originalConfig: IAnimationTypeConfig): IAnimationTimeline;
@@ -1,3 +1,2 @@
1
1
  import type { SeriesMarkMap } from '../interface/common';
2
2
  export declare const pieSeriesMark: SeriesMarkMap;
3
- export declare const pie3dSeriesMark: SeriesMarkMap;
@@ -1,6 +1,6 @@
1
1
  import type { IAnimationSpec } from '../../animation/spec';
2
2
  import type { IMarkSpec, IMarkTheme } from '../../typings/spec/common';
3
- import type { IArcMarkSpec, ITextMarkSpec, IArc3dMarkSpec, ILineMarkSpec } from '../../typings/visual';
3
+ import type { IArcMarkSpec, ITextMarkSpec, ILineMarkSpec } from '../../typings/visual';
4
4
  import type { SeriesMarkNameEnum } from '../interface/type';
5
5
  import type { IPolarSeriesSpec, IPolarSeriesTheme } from '../polar/interface';
6
6
  import type { ILabelSpec, IMultiLabelSpec } from '../../component/label/interface';
@@ -8,11 +8,11 @@ import type { ICustomPath2D, ILineGraphicAttribute, ITextGraphicAttribute } from
8
8
  import type { ILayoutRect, IPercent } from '../../typings/layout';
9
9
  import type { IPointLike } from '@visactor/vutils';
10
10
  import type { AnimationStateEnum } from '../../animation/interface';
11
- import type { IElement } from '@visactor/vgrammar-core';
12
11
  import type { Datum } from '../../typings/common';
12
+ import type { IMarkGraphic } from '../../mark/interface';
13
13
  export interface IPieAnimationParams {
14
14
  growField?: 'angle' | 'radius';
15
- growFrom: (datum: Datum, element: IElement, state: AnimationStateEnum) => number;
15
+ growFrom: (datum: Datum, g: IMarkGraphic, state: AnimationStateEnum) => number;
16
16
  }
17
17
  export type PieAppearPreset = 'growAngle' | 'growRadius' | 'fadeIn';
18
18
  export type PieMarks = 'pie' | 'label' | 'labelLine';
@@ -51,16 +51,6 @@ export interface IPieSeriesTheme extends IPolarSeriesTheme {
51
51
  outerLabel?: IArcLabelSpec;
52
52
  emptyCircle?: Partial<IMarkTheme<IArcMarkSpec>>;
53
53
  }
54
- export type IPie3dSeriesSpec = {
55
- type: 'pie3d';
56
- angle3d?: number;
57
- } & Omit<IPieSeriesSpec, 'type'>;
58
- export interface IPie3dSeriesTheme extends IPolarSeriesTheme {
59
- [SeriesMarkNameEnum.pie3d]?: Partial<IMarkTheme<IArc3dMarkSpec>>;
60
- [SeriesMarkNameEnum.label]?: IArcLabelSpec;
61
- innerLabel?: IArcLabelSpec;
62
- outerLabel?: IArcLabelSpec;
63
- }
64
54
  export interface IArcLabelLineSpec extends Omit<IMarkSpec<ILineMarkSpec>, 'customShape'> {
65
55
  visible?: boolean;
66
56
  line1MinLength?: number;
@@ -1,20 +1,19 @@
1
1
  import type { IPoint, Datum, StateValueType } from '../../typings';
2
- import type { IModelLayoutOption } from '../../model/interface';
3
2
  import { PolarSeries } from '../polar/polar';
4
3
  import type { IArcMark, IMark, IPathMark, ITextMark } from '../../mark/interface';
5
- import { MarkTypeEnum } from '../../mark/interface/type';
6
4
  import type { IArcSeries, SeriesMarkMap } from '../interface';
7
- import { SeriesMarkNameEnum, SeriesTypeEnum } from '../interface/type';
8
- import type { IBasePieSeriesSpec, IPieSeriesSpec } from './interface';
9
- import { SeriesData } from '../base/series-data';
5
+ import { SeriesTypeEnum } from '../interface/type';
6
+ import type { IBasePieSeriesSpec, IPieSeriesSpec, IPieSeriesTheme } from './interface';
10
7
  import { PieSeriesSpecTransformer } from './pie-transformer';
8
+ import type { ICompilableData } from '../../compile/data';
11
9
  export declare class BasePieSeries<T extends IBasePieSeriesSpec> extends PolarSeries<T> implements IArcSeries {
12
10
  static readonly transformerConstructor: any;
13
11
  readonly transformerConstructor: typeof PieSeriesSpecTransformer;
14
- protected _pieMarkName: SeriesMarkNameEnum;
15
- protected _pieMarkType: MarkTypeEnum;
12
+ protected _pieMarkName: string;
13
+ protected _pieMarkType: string;
16
14
  static readonly mark: SeriesMarkMap;
17
- protected _viewDataLabel: SeriesData;
15
+ static readonly builtInTheme: Record<string, IPieSeriesTheme>;
16
+ protected _viewDataLabel: ICompilableData;
18
17
  getCenter: () => IPoint;
19
18
  protected _centerOffset: number;
20
19
  protected _cornerRadius: number;
@@ -37,14 +36,17 @@ export declare class BasePieSeries<T extends IBasePieSeriesSpec> extends PolarSe
37
36
  private endAngleScale;
38
37
  protected _computeLayoutRadius(): number;
39
38
  initMarkStyle(): void;
40
- initInteraction(): void;
39
+ getInteractionTriggers(): {
40
+ trigger: Partial<import("../../interaction/interface/trigger").IBaseTriggerOptions>;
41
+ marks: IMark[];
42
+ }[];
41
43
  protected initTooltip(): void;
42
- initMarkStyleWithSpec(mark?: IMark, spec?: any, key?: string): void;
44
+ initMarkStyleWithSpec(mark?: IMark, spec?: any): void;
43
45
  initLabelMarkStyle(textMark: ITextMark): void;
44
46
  afterInitMark(): void;
45
47
  initEvent(): void;
46
48
  initGroups(): void;
47
- onLayoutEnd(ctx: IModelLayoutOption): void;
49
+ onLayoutEnd(): void;
48
50
  getDimensionField(): string[];
49
51
  getMeasureField(): string[];
50
52
  private viewDataLabelUpdate;
@@ -1,6 +1,6 @@
1
1
  import type { EasingType } from '@visactor/vrender-core';
2
2
  import type { IPointLike } from '@visactor/vutils';
3
- import { ACustomAnimate, TagPointsUpdate } from '@visactor/vrender-core';
3
+ import { ACustomAnimate, TagPointsUpdate } from '@visactor/vrender-animate';
4
4
  export declare class PolarPointUpdate extends ACustomAnimate<{
5
5
  x: number;
6
6
  y: number;
@@ -30,9 +30,7 @@ export declare class PolarTagPointsUpdate extends TagPointsUpdate {
30
30
  private interpolatePoints;
31
31
  private _center;
32
32
  private _prevCenter;
33
- constructor(from: any, to: any, duration: number, easing: EasingType, params?: {
34
- newPointAnimateType?: 'grow' | 'appear';
35
- });
33
+ onBind(): void;
36
34
  onUpdate(end: boolean, ratio: number, out: Record<string, any>): void;
37
35
  private _interpolationSinglePoint;
38
36
  private polarPointInterpolation;
@@ -1,4 +1,4 @@
1
- import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
1
+ import type { IAnimationTypeConfig } from '../../../animation/interface';
2
2
  import type { IProgressLikeAnimationParams, ProgressLikeAppearPreset } from './interface';
3
3
  export declare function progressLikePresetAnimation(params: IProgressLikeAnimationParams, preset: ProgressLikeAppearPreset): IAnimationTypeConfig;
4
4
  export declare const registerProgressLikeAnimation: () => void;
@@ -17,6 +17,7 @@ export interface IProgressLikeSeriesSpec extends IPolarSeriesSpec {
17
17
  roundCap?: boolean | [boolean, boolean];
18
18
  cornerRadius?: number;
19
19
  tickMask?: Omit<IMarkSpec<IArcMarkSpec>, 'state'> & ITickMaskSpec;
20
+ clamp?: boolean;
20
21
  }
21
22
  export interface IProgressLikeSeriesTheme extends IPolarSeriesTheme {
22
23
  roundCap?: boolean | [boolean, boolean];
@@ -1,6 +1,5 @@
1
- import type { Datum } from '@visactor/vgrammar-core';
2
1
  import type { IGroupMark, IMarkStyle } from '../../../mark/interface';
3
- import type { ConvertToMarkStyleSpec, ICommonSpec } from '../../../typings';
2
+ import type { ConvertToMarkStyleSpec, Datum, ICommonSpec } from '../../../typings';
4
3
  import { PolarSeries } from '../polar';
5
4
  import type { IContinuousTickData, IProgressLikeSeriesSpec } from './interface';
6
5
  import type { IPolarAxis } from '../../../component/axis';
@@ -9,6 +9,9 @@ export declare class CircularProgressSeries<T extends ICircularProgressSeriesSpe
9
9
  static readonly type: string;
10
10
  type: SeriesTypeEnum;
11
11
  static readonly mark: SeriesMarkMap;
12
+ static readonly builtInTheme: {
13
+ circularProgress: import("./interface").ICircularProgressSeriesTheme;
14
+ };
12
15
  static readonly transformerConstructor: any;
13
16
  readonly transformerConstructor: typeof CircularProgressSeriesSpecTransformer;
14
17
  private _progressMark;
@@ -19,7 +22,10 @@ export declare class CircularProgressSeries<T extends ICircularProgressSeriesSpe
19
22
  initMarkStyle(): void;
20
23
  private _initProgressMark;
21
24
  private _initProgressMarkStyle;
22
- initInteraction(): void;
25
+ getInteractionTriggers(): {
26
+ trigger: Partial<import("../../../interaction/interface/trigger").IBaseTriggerOptions>;
27
+ marks: IMark[];
28
+ }[];
23
29
  protected initTooltip(): void;
24
30
  private _initTrackMark;
25
31
  private _initTrackMarkStyle;
@@ -1,6 +1,6 @@
1
- import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
2
1
  import type { ILinearProgressAnimationParams, LinearProgressAppearPreset } from './interface';
2
+ import type { IAnimationTypeConfig } from '../../../animation/interface';
3
3
  export declare const linearProgressDisappear: (params: ILinearProgressAnimationParams) => IAnimationTypeConfig;
4
4
  export declare const Appear_FadeIn: IAnimationTypeConfig;
5
- export declare function linearProgressPresetAnimation(params: ILinearProgressAnimationParams, preset: LinearProgressAppearPreset | boolean): IAnimationTypeConfig;
5
+ export declare function linearProgressPresetAnimation(params: ILinearProgressAnimationParams, preset?: LinearProgressAppearPreset | boolean): IAnimationTypeConfig;
6
6
  export declare const registerLinearProgressAnimation: () => void;
@@ -14,6 +14,7 @@ export interface ILinearProgressSeriesSpec extends IProgressSeriesSpec, IAnimati
14
14
  yField: string | string[];
15
15
  direction?: DirectionType;
16
16
  bandWidth?: number;
17
+ clamp?: boolean;
17
18
  [SeriesMarkNameEnum.progress]?: IMarkSpec<IRectMarkSpec> & {
18
19
  topPadding?: number;
19
20
  bottomPadding?: number;
@@ -7,6 +7,9 @@ export declare class LinearProgressSeries<T extends ILinearProgressSeriesSpec =
7
7
  static readonly type: string;
8
8
  type: SeriesTypeEnum;
9
9
  static readonly mark: SeriesMarkMap;
10
+ static readonly builtInTheme: {
11
+ linearProgress: import("./interface").ILinearProgressSeriesTheme;
12
+ };
10
13
  private _progressMark;
11
14
  private _trackMark;
12
15
  initMark(): void;
@@ -16,7 +19,10 @@ export declare class LinearProgressSeries<T extends ILinearProgressSeriesSpec =
16
19
  private _defaultProgressCustomShape;
17
20
  private _initTrackMark;
18
21
  private _initTrackMarkStyle;
19
- initInteraction(): void;
22
+ getInteractionTriggers(): {
23
+ trigger: Partial<import("../../../interaction/interface/trigger").IBaseTriggerOptions>;
24
+ marks: IMark[];
25
+ }[];
20
26
  initAnimation(): void;
21
27
  protected initTooltip(): void;
22
28
  getActiveMarks(): IMark[];
@@ -1,12 +1,14 @@
1
- import type { Datum, IAnimationTypeConfig, IElement } from '@visactor/vgrammar-core';
1
+ import type { IGraphic } from '@visactor/vrender-core';
2
2
  import type { IRadarAnimationParams, RadarAppearPreset } from './interface';
3
+ import type { IAnimationTypeConfig } from '../../animation/interface';
4
+ import type { Datum } from '../../typings/common';
3
5
  export declare const radarFadeAnimation: (animationType: 'in' | 'out') => {
4
6
  type: string;
5
7
  };
6
8
  export declare const radarGrowAnimation: (params: IRadarAnimationParams, animationType: 'in' | 'out') => {
7
9
  type: string;
8
10
  options: () => {
9
- center: import("../../typings").IPoint;
11
+ center: import("../..").IPoint;
10
12
  };
11
13
  };
12
14
  export declare function radarPresetAnimation(params: IRadarAnimationParams, preset: RadarAppearPreset, animationType: 'in' | 'out'): {
@@ -16,21 +18,21 @@ export declare const radarSymbolMoveAnimation: (params: IRadarAnimationParams, a
16
18
  channel: {
17
19
  x: {
18
20
  from: () => number;
19
- to: (datum: Datum, element: IElement) => any;
21
+ to: (datum: Datum, element: IGraphic) => any;
20
22
  };
21
23
  y: {
22
24
  from: () => number;
23
- to: (datum: Datum, element: IElement) => any;
25
+ to: (datum: Datum, element: IGraphic) => any;
24
26
  };
25
27
  };
26
28
  } | {
27
29
  channel: {
28
30
  x: {
29
- from: (datum: Datum, element: IElement) => any;
31
+ from: (datum: Datum, element: IGraphic) => any;
30
32
  to: () => number;
31
33
  };
32
34
  y: {
33
- from: (datum: Datum, element: IElement) => any;
35
+ from: (datum: Datum, element: IGraphic) => any;
34
36
  to: () => number;
35
37
  };
36
38
  };
@@ -41,21 +43,21 @@ export declare function radarSymbolPresetAnimation(params: IRadarAnimationParams
41
43
  channel: {
42
44
  x: {
43
45
  from: () => number;
44
- to: (datum: any, element: IElement) => any;
46
+ to: (datum: Datum, element: IGraphic<Partial<import("@visactor/vrender-core").IGraphicAttribute>>) => any;
45
47
  };
46
48
  y: {
47
49
  from: () => number;
48
- to: (datum: any, element: IElement) => any;
50
+ to: (datum: Datum, element: IGraphic<Partial<import("@visactor/vrender-core").IGraphicAttribute>>) => any;
49
51
  };
50
52
  };
51
53
  } | {
52
54
  channel: {
53
55
  x: {
54
- from: (datum: any, element: IElement) => any;
56
+ from: (datum: Datum, element: IGraphic<Partial<import("@visactor/vrender-core").IGraphicAttribute>>) => any;
55
57
  to: () => number;
56
58
  };
57
59
  y: {
58
- from: (datum: any, element: IElement) => any;
60
+ from: (datum: Datum, element: IGraphic<Partial<import("@visactor/vrender-core").IGraphicAttribute>>) => any;
59
61
  to: () => number;
60
62
  };
61
63
  };
@@ -1,5 +1,5 @@
1
1
  import { LineLikeSeriesMixin } from '../mixin/line-mixin';
2
- import type { IMark, IMarkProgressiveConfig } from '../../mark/interface';
2
+ import type { IMark } from '../../mark/interface';
3
3
  import type { Datum } from '../../typings';
4
4
  import type { SeriesMarkMap } from '../interface';
5
5
  import { SeriesTypeEnum } from '../interface/type';
@@ -12,6 +12,9 @@ export declare class RadarSeries<T extends IRadarSeriesSpec = IRadarSeriesSpec>
12
12
  static readonly type: string;
13
13
  type: SeriesTypeEnum;
14
14
  static readonly mark: SeriesMarkMap;
15
+ static readonly builtInTheme: {
16
+ radar: import("./interface").IRadarSeriesTheme;
17
+ };
15
18
  static readonly transformerConstructor: any;
16
19
  readonly transformerConstructor: typeof LineLikeSeriesSpecTransformer;
17
20
  private _areaMark;
@@ -20,7 +23,7 @@ export declare class RadarSeries<T extends IRadarSeriesSpec = IRadarSeriesSpec>
20
23
  compile(): void;
21
24
  initMark(): void;
22
25
  initMarkStyle(): void;
23
- initAreaMark(progressive: IMarkProgressiveConfig, isSeriesMark: boolean): void;
26
+ initAreaMark(isSeriesMark: boolean): void;
24
27
  initAreaMarkStyle(): void;
25
28
  protected initTooltip(): void;
26
29
  initAnimation(): void;
@@ -1,4 +1,4 @@
1
- import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
1
+ import type { IAnimationTypeConfig } from '../../animation/interface';
2
2
  import type { IRangeColumnAnimationParams, RangeColumnAppearPreset } from './interface';
3
3
  export declare const rangeColumnGrowIn: (params: IRangeColumnAnimationParams) => IAnimationTypeConfig;
4
4
  export declare const rangeColumnGrowOut: (params: IRangeColumnAnimationParams) => IAnimationTypeConfig;
@@ -1,3 +1,2 @@
1
1
  import type { SeriesMarkMap } from '../interface/common';
2
2
  export declare const rangeColumnSeriesMark: SeriesMarkMap;
3
- export declare const rangeColumn3dSeriesMark: SeriesMarkMap;
@@ -54,7 +54,4 @@ export interface IRangeColumnSeriesTheme extends ICartesianSeriesTheme {
54
54
  }>;
55
55
  };
56
56
  }
57
- export interface IRangeColumn3dSeriesSpec extends Omit<IRangeColumnSeriesSpec, 'type'> {
58
- type: 'rangeColumn3d';
59
- }
60
57
  export {};
@@ -1,18 +1,19 @@
1
1
  import { BarSeries } from '../bar/bar';
2
- import { MarkTypeEnum } from '../../mark/interface/type';
3
2
  import type { SeriesMarkMap } from '../interface';
4
- import { SeriesTypeEnum } from '../interface/type';
5
3
  import type { Datum } from '../../typings';
6
4
  import type { IRangeColumnSeriesSpec } from './interface';
7
5
  import type { ITextMark } from '../../mark/interface';
8
6
  export declare const DefaultBandWidth = 6;
9
7
  export declare class RangeColumnSeries<T extends IRangeColumnSeriesSpec = IRangeColumnSeriesSpec> extends BarSeries<any> {
10
8
  static readonly type: string;
11
- type: SeriesTypeEnum;
12
- protected _barMarkType: MarkTypeEnum;
9
+ type: string;
10
+ protected _barMarkType: string;
13
11
  protected _barName: string;
14
12
  protected _spec: T;
15
13
  static readonly mark: SeriesMarkMap;
14
+ static readonly builtInTheme: {
15
+ rangeColumn: import("./interface").IRangeColumnSeriesTheme;
16
+ };
16
17
  static readonly transformerConstructor: any;
17
18
  readonly transformerConstructor: any;
18
19
  private _minLabelMark?;
@@ -1,5 +1,5 @@
1
- import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
2
1
  import type { IRoseAnimationParams, RoseAppearPreset } from './interface';
2
+ import type { IAnimationTypeConfig } from '../../animation/interface';
3
3
  export declare const Appear_Grow: (params: IRoseAnimationParams) => IAnimationTypeConfig;
4
4
  export declare const Appear_FadeIn: IAnimationTypeConfig;
5
5
  export declare const roseEnter: (params: IRoseAnimationParams) => IAnimationTypeConfig;
@@ -9,6 +9,9 @@ export declare class RoseSeries<T extends IRoseSeriesSpec = IRoseSeriesSpec> ext
9
9
  static readonly type: string;
10
10
  type: SeriesTypeEnum;
11
11
  static readonly mark: SeriesMarkMap;
12
+ static readonly builtInTheme: {
13
+ rose: import("./interface").IRoseSeriesTheme;
14
+ };
12
15
  static readonly transformerConstructor: any;
13
16
  readonly transformerConstructor: typeof RoseSeriesSpecTransformer;
14
17
  private _roseMark;
@@ -1,7 +1,20 @@
1
- import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
2
1
  import type { ISankeyAnimationParams, SankeyAppearPreset } from './interface';
2
+ import type { IAnimationTypeConfig } from '../../animation/interface';
3
+ import { ACustomAnimate } from '@visactor/vrender-animate';
3
4
  export declare const sankeyGrowIn: (params: ISankeyAnimationParams, isOverall?: boolean) => IAnimationTypeConfig;
4
5
  export declare const sankeyGrowOut: (params: ISankeyAnimationParams, isOverall?: boolean) => IAnimationTypeConfig;
5
6
  export declare const sankeyNodePresetAnimation: (params: ISankeyAnimationParams, preset: SankeyAppearPreset) => IAnimationTypeConfig;
6
7
  export declare const sankeyLinkPresetAnimation: (preset: SankeyAppearPreset) => IAnimationTypeConfig;
8
+ export declare class LinkPathGrowIn extends ACustomAnimate<Record<string, number>> {
9
+ onBind(): void;
10
+ onUpdate(end: boolean, ratio: number, out: Record<string, any>): void;
11
+ }
12
+ export declare class LinkPathGrowOut extends ACustomAnimate<Record<string, number>> {
13
+ onBind(): void;
14
+ onUpdate(end: boolean, ratio: number, out: Record<string, any>): void;
15
+ }
16
+ export declare class LinkPathUpdate extends ACustomAnimate<Record<string, number>> {
17
+ onBind(): void;
18
+ onUpdate(end: boolean, ratio: number, out: Record<string, any>): void;
19
+ }
7
20
  export declare const registerSankeyAnimation: () => void;
@@ -15,7 +15,6 @@ export type ISankeyLabelSpec = ILabelSpec & {
15
15
  limit?: number;
16
16
  };
17
17
  export interface ISankeySeriesSpec extends Omit<ISeriesSpec, 'data'>, IAnimationSpec<SankeyMark, SankeyAppearPreset> {
18
- nameKey: any;
19
18
  type: 'sankey';
20
19
  categoryField: string;
21
20
  valueField: string;
@@ -2,11 +2,10 @@ import { CartesianSeries } from '../cartesian/cartesian';
2
2
  import type { SeriesMarkMap } from '../interface';
3
3
  import { SeriesTypeEnum } from '../interface/type';
4
4
  import type { Datum, StringOrNumber } from '../../typings';
5
- import { SeriesData } from '../base/series-data';
5
+ import { DataView } from '@visactor/vdataset';
6
6
  import type { ISankeySeriesSpec } from './interface';
7
7
  import type { ExtendEventParam } from '../../event/interface';
8
- import type { IElement, IGlyphElement, IMark as IVgrammarMark } from '@visactor/vgrammar-core';
9
- import type { IMark, ITextMark } from '../../mark/interface';
8
+ import type { IMark, IMarkGraphic, ITextMark } from '../../mark/interface';
10
9
  import { SankeySeriesSpecTransformer } from './sankey-transformer';
11
10
  import type { ILabelSpec } from '../../component';
12
11
  export declare class SankeySeries<T extends ISankeySeriesSpec = ISankeySeriesSpec> extends CartesianSeries<T> {
@@ -15,18 +14,21 @@ export declare class SankeySeries<T extends ISankeySeriesSpec = ISankeySeriesSpe
15
14
  static readonly transformerConstructor: any;
16
15
  readonly transformerConstructor: typeof SankeySeriesSpecTransformer;
17
16
  static readonly mark: SeriesMarkMap;
17
+ static readonly builtInTheme: {
18
+ sankey: import("./interface").ISankeySeriesTheme;
19
+ };
18
20
  private _nodeMark;
19
21
  private _linkMark;
20
22
  private _nodeLayoutZIndex;
21
23
  private _labelLayoutZIndex;
22
- protected _nodesSeriesData?: SeriesData;
23
- protected _linksSeriesData?: SeriesData;
24
+ protected _nodesSeriesData?: DataView;
25
+ protected _linksSeriesData?: DataView;
24
26
  private _viewBox;
25
27
  protected _categoryField: string;
26
28
  private _colorScale;
27
29
  private _nodeList;
28
30
  private _needClear;
29
- get direction(): "vertical" | "horizontal";
31
+ get direction(): "horizontal" | "vertical";
30
32
  getCategoryField(): string;
31
33
  setCategoryField(f: string): string;
32
34
  protected _valueField: string;
@@ -54,11 +56,11 @@ export declare class SankeySeries<T extends ISankeySeriesSpec = ISankeySeriesSpe
54
56
  private linksSeriesDataUpdate;
55
57
  protected _handleEmphasisElement: (params: ExtendEventParam) => void;
56
58
  protected _handleClearEmpty: () => void;
57
- protected _handleNodeAdjacencyClick: (element: IElement) => void;
58
- protected _handleLinkAdjacencyClick: (element: IGlyphElement) => void;
59
- protected _handleNodeRelatedClick: (element: IElement) => void;
60
- protected _handleLinkRelatedClick: (element: IGlyphElement) => void;
61
- protected _highLightElements(vGrammarElements: IVgrammarMark['elements'], highlightNodes: string[]): void;
59
+ protected _handleNodeAdjacencyClick: (graphic: IMarkGraphic) => void;
60
+ protected _handleLinkAdjacencyClick: (graphic: IMarkGraphic) => void;
61
+ protected _handleNodeRelatedClick: (graphic: IMarkGraphic) => void;
62
+ protected _handleLinkRelatedClick: (graphic: IMarkGraphic) => void;
63
+ protected _highLightElements(graphics: IMarkGraphic[], highlightNodes: string[]): void;
62
64
  protected initTooltip(): void;
63
65
  _setNodeOrdinalColorScale(): void;
64
66
  getNodeList(): any;
@@ -73,7 +75,7 @@ export declare class SankeySeries<T extends ISankeySeriesSpec = ISankeySeriesSpe
73
75
  max?: number;
74
76
  };
75
77
  private _collectByField;
76
- onLayoutEnd(ctx: any): void;
78
+ onLayoutEnd(): void;
77
79
  getDefaultShapeType(): string;
78
80
  protected _noAnimationDataKey(datum: Datum, index: number): unknown | undefined;
79
81
  getActiveMarks(): IMark[];
@@ -1,6 +1,6 @@
1
1
  import type { ISeriesTooltipHelper } from '../interface';
2
2
  import { BaseSeriesTooltipHelper } from '../base/tooltip-helper';
3
- import type { Datum } from '@visactor/vgrammar-core';
3
+ import type { Datum } from '../../typings/common';
4
4
  export declare class SankeySeriesTooltipHelper extends BaseSeriesTooltipHelper implements ISeriesTooltipHelper {
5
5
  protected _getDimensionData: (datum: any) => any;
6
6
  markTooltipValueCallback: (datum: Datum) => string | undefined;
@@ -1,4 +1,4 @@
1
- import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
2
1
  import type { IScatterAnimationParams, ScatterAppearPreset } from './interface';
2
+ import type { IAnimationTypeConfig } from '../../animation/interface';
3
3
  export declare const scatterPresetAnimation: (_params: IScatterAnimationParams, preset: ScatterAppearPreset) => IAnimationTypeConfig;
4
4
  export declare const registerScatterAnimation: () => void;
@@ -10,6 +10,9 @@ export declare class ScatterSeries<T extends IScatterSeriesSpec = IScatterSeries
10
10
  static readonly type: string;
11
11
  type: SeriesTypeEnum;
12
12
  static readonly mark: SeriesMarkMap;
13
+ static readonly builtInTheme: {
14
+ scatter: import("./interface").IScatterSeriesTheme;
15
+ };
13
16
  static readonly transformerConstructor: any;
14
17
  readonly transformerConstructor: typeof ScatterSeriesSpecTransformer;
15
18
  private _symbolMark;
@@ -1,3 +1,3 @@
1
- import type { IAnimationTypeConfig } from '@visactor/vgrammar-core';
2
1
  import type { ISunburstAnimationParams } from './interface';
2
+ import type { IAnimationTypeConfig } from '../../../animation/interface';
3
3
  export declare const sunburstEnter: (params: ISunburstAnimationParams) => IAnimationTypeConfig;