@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
@@ -5,17 +5,20 @@ import { RuleMark, registerRuleMark } from './rule';
5
5
  import { TextMark, registerTextMark } from './text';
6
6
  import { AreaMark, registerAreaMark } from './area';
7
7
  import { RectMark, registerRectMark } from './rect';
8
- import { Rect3dMark, registerRect3dMark } from './rect-3d';
9
8
  import { PathMark, registerPathMark } from './path';
10
- import { ArcMark, registerArcMark } from './arc';
11
- import { Arc3dMark, registerArc3dMark } from './arc-3d';
9
+ import { ArcMark, BaseArcMark, registerArcMark } from './arc';
12
10
  import { ComponentMark, registerComponentMark } from './component';
13
11
  import { RippleMark, registerRippleMark } from './ripple';
14
12
  import { BaseMark } from './base';
15
13
  import { PolygonMark, registerPolygonMark } from './polygon/polygon';
16
- import { Pyramid3dMark, registerPyramid3dMark } from './polygon/pyramid-3d';
17
14
  import { ImageMark, registerImageMark } from './image';
18
- export type { IBoxPlotMarkSpec, ILineMarkSpec, ISymbolMarkSpec, IGroupMarkSpec, IRuleMarkSpec, ITextMarkSpec, IAreaMarkSpec, IRect3dMarkSpec, IRectMarkSpec, IPathMarkSpec, IArcMarkSpec, IArc3dMarkSpec, ICommonSpec, IPolygonMarkSpec, IPyramid3dMarkSpec, ILinkPathMarkSpec, IRippleMarkSpec, ICellMarkSpec, ILiquidMarkSpec, ConvertToMarkStyleSpec } from '../typings/visual';
19
- export { LineMark, SymbolMark, GroupMark, RuleMark, TextMark, AreaMark, Rect3dMark, RectMark, PathMark, Arc3dMark, ArcMark, ComponentMark, PolygonMark, Pyramid3dMark, RippleMark, ImageMark, BaseMark };
20
- export { registerLineMark, registerSymbolMark, registerGroupMark, registerRuleMark, registerTextMark, registerAreaMark, registerRectMark, registerRect3dMark, registerPathMark, registerArcMark, registerArc3dMark, registerPolygonMark, registerPyramid3dMark, registerRippleMark, registerImageMark, registerComponentMark };
15
+ import { registerMarkFilterTransform } from './transform/filter';
16
+ import { registerMarkMapTransform } from './transform/map';
17
+ import { BasePolygonMark } from './polygon/base-polygon';
18
+ import { MarkTypeEnum } from './interface/type';
19
+ export type { IBoxPlotMarkSpec, ILineMarkSpec, ISymbolMarkSpec, IGroupMarkSpec, IRuleMarkSpec, ITextMarkSpec, IAreaMarkSpec, IRectMarkSpec, IPathMarkSpec, IArcMarkSpec, ICommonSpec, IPolygonMarkSpec, ILinkPathMarkSpec, IRippleMarkSpec, ICellMarkSpec, ILiquidMarkSpec, ConvertToMarkStyleSpec } from '../typings/visual';
20
+ export type { IMarkRaw, IMark, IMarkStyle } from './interface/common';
21
+ export type { ITextMark, ILabelMark, IRectMark, IRuleMark, IImageMark, IGroupMark } from './interface/mark';
22
+ export { MarkTypeEnum, LineMark, SymbolMark, GroupMark, RuleMark, TextMark, AreaMark, RectMark, PathMark, BaseArcMark, ArcMark, ComponentMark, BasePolygonMark, PolygonMark, RippleMark, ImageMark, BaseMark };
23
+ export { registerLineMark, registerSymbolMark, registerGroupMark, registerRuleMark, registerTextMark, registerAreaMark, registerRectMark, registerPathMark, registerArcMark, registerPolygonMark, registerRippleMark, registerImageMark, registerComponentMark, registerMarkMapTransform, registerMarkFilterTransform };
21
24
  export declare const registerAllMarks: () => void;
@@ -2,11 +2,12 @@ import type { IGlobalScale } from '../../scale/interface';
2
2
  import type { ICommonSpec, VisualType, ValueType, FunctionType } from '../../typings/visual';
3
3
  import type { IModel } from '../../model/interface';
4
4
  import type { IBaseScale } from '@visactor/vscale';
5
- import type { MarkType } from './type';
6
- import type { ICompilableMark, ICompilableMarkOption, IModelMarkAttributeContext, StateValueType } from '../../compile/mark/interface';
7
- import type { StringOrNumber } from '../../typings';
8
- import type { IMarkConfig } from '@visactor/vgrammar-core';
9
- import type { ICustomPath2D } from '@visactor/vrender-core';
5
+ import type { MarkType, MarkTypeEnum } from './type';
6
+ import type { ICompilableMark, ICompilableMarkOption, IMarkConfig, IModelMarkAttributeContext, StateValueType } from '../../compile/mark/interface';
7
+ import type { Datum, StringOrNumber } from '../../typings';
8
+ import type { IGraphic } from '@visactor/vrender-core';
9
+ import type { IGroupMark } from './mark';
10
+ import type { IAnimationConfig } from '../../animation/interface';
10
11
  export interface VisualScaleType {
11
12
  scale: IBaseScale;
12
13
  field: StringOrNumber;
@@ -33,22 +34,71 @@ export type IMarkStateStyle<T extends ICommonSpec> = Record<StateValueType, Part
33
34
  export type IMarkStyle<T extends ICommonSpec> = {
34
35
  [key in keyof T]: MarkInputStyle<T[key]>;
35
36
  };
37
+ export type DiffStateValues = 'update' | 'enter' | 'exit';
38
+ export type AnimationStateValues = 'appear' | 'enter' | 'update' | 'exit' | 'disappear';
39
+ export interface IGraphicContext {
40
+ markType: MarkTypeEnum;
41
+ markId: number;
42
+ modelId: number;
43
+ markUserId?: number | string;
44
+ modelUserId?: number | string;
45
+ diffState?: DiffStateValues;
46
+ reusing?: boolean;
47
+ lastAttrs?: Record<string, any>;
48
+ indexKey?: string;
49
+ diffAttrs?: Record<string, any>;
50
+ finalAttrs?: Record<string, any>;
51
+ fieldX?: string[];
52
+ originalFieldX?: string[];
53
+ fieldY?: string[];
54
+ originalFieldY?: string[];
55
+ animationState?: AnimationStateValues;
56
+ data?: Datum[];
57
+ uniqueKey?: string;
58
+ key?: string;
59
+ groupKey?: string;
60
+ states?: string[];
61
+ graphicCount?: number;
62
+ graphicIndex?: number;
63
+ stateAnimateConfig?: IAnimationConfig | IAnimationConfig[];
64
+ }
65
+ export interface IMarkGraphic extends IGraphic {
66
+ runtimeStateCache?: Record<string, any>;
67
+ context?: IGraphicContext;
68
+ isExiting?: boolean;
69
+ }
36
70
  export interface IMarkRaw<T extends ICommonSpec> extends ICompilableMark {
37
71
  readonly stateStyle: IMarkStateStyle<T>;
38
- getAttribute: <U extends keyof T>(key: U, datum: any, state?: StateValueType, opt?: any) => unknown;
72
+ getAttributesOfState: (datum: Datum, state?: StateValueType) => Partial<T>;
73
+ getAttribute: <U extends keyof T>(key: U, datum: any, state?: StateValueType) => unknown;
39
74
  setAttribute: <U extends keyof T>(attr: U, style: StyleConvert<T[U]>, state?: StateValueType, level?: number) => void;
40
75
  setStyle: (style: Partial<IMarkStyle<T>>, state?: StateValueType, level?: number) => void;
41
- setReferer: (mark: IMarkRaw<T>, styleKey?: string, state?: StateValueType, stateStyle?: IMarkStateStyle<T>) => void;
42
- initStyleWithSpec: (spec: any, key?: string) => void;
76
+ setSimpleStyle: (s: T) => void;
77
+ getSimpleStyle: () => T;
78
+ setReferer: (mark: IMarkRaw<T>, styleKey?: string, state?: StateValueType) => void;
79
+ initStyleWithSpec: (spec: any) => void;
43
80
  created: () => void;
44
81
  setPostProcess: <U extends keyof T, A>(key: U, postProcessFunc: IAttrConfig<A, T>['postProcess'], state?: StateValueType) => void;
82
+ updateMarkState: (key: string) => void;
83
+ render: () => void;
84
+ getGraphics: () => IMarkGraphic[];
85
+ reuse: (mark: IMark) => void;
86
+ prepareMorph: (mark: IMark) => void;
87
+ clearExitGraphics: () => void;
88
+ isProgressive: () => boolean;
89
+ isDoingProgressive: () => boolean;
90
+ clearProgressive: () => void;
91
+ restartProgressive: () => void;
92
+ renderProgressive: () => void;
93
+ canAnimateAfterProgressive: () => boolean;
94
+ updateAnimationState: (callback: (graphic: IMarkGraphic) => AnimationStateValues) => void;
95
+ runAnimation: () => void;
45
96
  }
46
97
  export type IMark = IMarkRaw<ICommonSpec>;
47
98
  export interface ICompileMarkConfig extends IMarkConfig {
48
99
  morph?: boolean;
49
100
  morphElementKey?: string;
50
101
  support3d?: boolean;
51
- setCustomizedShape?: (datum: any[], attrs: any, path: ICustomPath2D) => ICustomPath2D;
52
102
  clip?: boolean;
53
103
  skipTheme?: boolean;
54
104
  }
@@ -59,6 +109,7 @@ export interface IMarkOption extends ICompilableMarkOption {
59
109
  seriesId?: number;
60
110
  componentType?: string;
61
111
  attributeContext?: IModelMarkAttributeContext;
112
+ parent?: IGroupMark | false;
62
113
  }
63
114
  export interface IMarkConstructor {
64
115
  type: MarkType;
@@ -85,3 +136,24 @@ export interface IMarkOverlap {
85
136
  pointDisMul?: number;
86
137
  markOverlap?: boolean;
87
138
  }
139
+ export type GroupedData<T> = {
140
+ keys: string[];
141
+ data: Map<string, T[]>;
142
+ };
143
+ export interface IProgressiveTransformResult<Output = any> {
144
+ unfinished: () => boolean;
145
+ output: () => Output;
146
+ progressiveOutput: () => Output;
147
+ progressiveRun: () => void;
148
+ release: () => void;
149
+ canAnimate?: () => boolean;
150
+ }
151
+ export type IMarkDataTransform<Options = any, Input = any, Output = any> = (options: Options, data: Input) => Output | IProgressiveTransformResult<Output>;
152
+ export interface ProgressiveContext {
153
+ currentIndex: number;
154
+ totalStep: number;
155
+ step: number;
156
+ data: any[];
157
+ groupKeys?: string[];
158
+ groupedData?: Map<string, any[]>;
159
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum DiffState {
2
+ enter = "enter",
3
+ update = "update",
4
+ exit = "exit",
5
+ unChange = "unChange"
6
+ }
@@ -1,3 +1,4 @@
1
1
  export * from './common';
2
2
  export * from './type';
3
3
  export * from './mark';
4
+ export * from './enum';
@@ -1,8 +1,23 @@
1
+ import type { IGraphic } from '@visactor/vrender-core';
1
2
  import type { IMarkSpec } from '../../typings';
2
- import type { IArc3dMarkSpec, IArcMarkSpec, IAreaMarkSpec, IBoxPlotMarkSpec, ICellMarkSpec, ICommonSpec, IComposedTextMarkSpec, IGroupMarkSpec, IImageMarkSpec, ILineMarkSpec, ILinkPathMarkSpec, IPathMarkSpec, IPolygonMarkSpec, IPyramid3dMarkSpec, IRect3dMarkSpec, IRectMarkSpec, IRippleMarkSpec, IRuleMarkSpec, ISymbolMarkSpec } from '../../typings/visual';
3
+ import type { IArcMarkSpec, IAreaMarkSpec, IBoxPlotMarkSpec, ICellMarkSpec, ICommonSpec, IComposedTextMarkSpec, IGroupMarkSpec, IImageMarkSpec, ILineMarkSpec, ILinkPathMarkSpec, IPathMarkSpec, IPolygonMarkSpec, IRectMarkSpec, IRippleMarkSpec, IRuleMarkSpec, ISymbolMarkSpec } from '../../typings/visual';
3
4
  import type { IMark, IMarkRaw } from './common';
4
5
  import type { MarkType } from './type';
5
- export type IComponentMark = IMarkRaw<ICommonSpec>;
6
+ export interface IComponentMark extends IMarkRaw<ICommonSpec> {
7
+ renderInner: () => void;
8
+ getComponent: () => IGraphic;
9
+ clearComponent: () => void;
10
+ setAttributeTransform: (t: (attrs: any) => any) => any;
11
+ }
12
+ export interface IGlyphMark<T extends ICommonSpec = ICommonSpec, C = any> extends IMarkRaw<T> {
13
+ setGlyphConfig: (cfg: C) => void;
14
+ getGlyphConfig: () => C;
15
+ getSubMarks: () => Record<string, {
16
+ type: MarkType;
17
+ defaultAttributes?: any;
18
+ }>;
19
+ getPositionChannels: () => string[];
20
+ }
6
21
  export interface ILabelMark extends ITextMark {
7
22
  skipEncode: boolean;
8
23
  getRule: () => string;
@@ -18,9 +33,7 @@ export type ITextMark = IMarkRaw<IComposedTextMarkSpec> & {
18
33
  export type ITextSpec<T> = IMarkSpec<T> & {
19
34
  textType?: 'rich' | 'text';
20
35
  };
21
- export type IArc3dMark = IMarkRaw<IArc3dMarkSpec>;
22
36
  export type IPolygonMark = IMarkRaw<IPolygonMarkSpec>;
23
- export type IPyramid3dMark = IMarkRaw<IPyramid3dMarkSpec>;
24
37
  export type IArcMark = IMarkRaw<IArcMarkSpec>;
25
38
  export type IAreaMark = IMarkRaw<IAreaMarkSpec>;
26
39
  export type IBoxPlotMark = IMarkRaw<IBoxPlotMarkSpec>;
@@ -29,7 +42,6 @@ export type IImageMark = IMarkRaw<IImageMarkSpec>;
29
42
  export type ILineMark = IMarkRaw<ILineMarkSpec>;
30
43
  export type ILinkPathMark = IMarkRaw<ILinkPathMarkSpec>;
31
44
  export type IPathMark = IMarkRaw<IPathMarkSpec>;
32
- export type IRect3dMark = IMarkRaw<IRect3dMarkSpec>;
33
45
  export type IRectMark = IMarkRaw<IRectMarkSpec>;
34
46
  export type IRippleMark = IMarkRaw<IRippleMarkSpec>;
35
47
  export type IRuleMark = IMarkRaw<IRuleMarkSpec>;
@@ -42,3 +54,6 @@ export interface IGroupMark extends IMarkRaw<IGroupMarkSpec> {
42
54
  getMarkInId: (id: number) => IMark | undefined;
43
55
  getMarkInName: (name: string) => IMark[] | undefined;
44
56
  }
57
+ export interface ILinkPathConfig {
58
+ direction?: 'horizontal' | 'vertical' | 'LR' | 'RL' | 'TB' | 'BL' | 'radial';
59
+ }
@@ -6,20 +6,18 @@ export declare const enum MarkTypeEnum {
6
6
  line = "line",
7
7
  text = "text",
8
8
  rect = "rect",
9
- rect3d = "rect3d",
10
9
  image = "image",
11
10
  path = "path",
12
11
  area = "area",
13
12
  arc = "arc",
14
- arc3d = "arc3d",
15
13
  polygon = "polygon",
16
- pyramid3d = "pyramid3d",
17
14
  boxPlot = "boxPlot",
18
15
  linkPath = "linkPath",
19
16
  cell = "cell",
20
17
  ripple = "ripple",
21
18
  liquid = "liquid",
22
19
  component = "component",
20
+ dataLabel = "dataLabel",
23
21
  label = "label",
24
22
  pictogram = "pictogram"
25
23
  }
@@ -1,7 +1,7 @@
1
1
  import type { IMark } from './interface/common';
2
2
  import { MarkTypeEnum } from './interface/type';
3
3
  import { TextMark } from './text';
4
- import type { ILabelMark } from './interface/mark';
4
+ import type { IComponentMark, ILabelMark } from './interface/mark';
5
5
  export declare class LabelMark extends TextMark implements ILabelMark {
6
6
  static readonly type = MarkTypeEnum.text;
7
7
  static readonly constructorType = MarkTypeEnum.label;
@@ -13,7 +13,8 @@ export declare class LabelMark extends TextMark implements ILabelMark {
13
13
  getTarget(): IMark;
14
14
  setTarget(target: IMark): void;
15
15
  private _component;
16
- getComponent(): IMark;
17
- setComponent(component: IMark): void;
16
+ getComponent(): IComponentMark;
17
+ setComponent(component: IComponentMark): void;
18
+ render(): void;
18
19
  }
19
20
  export declare const registerLabelMark: () => void;
@@ -1,12 +1,42 @@
1
- import { BaseMark } from './base/base-mark';
2
1
  import type { ILinkPathMarkSpec } from '../typings/visual';
3
- import type { ILinkPathMark, IMarkStyle } from './interface';
2
+ import type { ILinkPathConfig, ILinkPathMark, IMarkStyle } from './interface';
4
3
  import { MarkTypeEnum } from './interface/type';
5
- import type { IGroupMark } from '@visactor/vgrammar-core';
6
- export declare class LinkPathMark extends BaseMark<ILinkPathMarkSpec> implements ILinkPathMark {
4
+ import { GlyphMark } from './glyph';
5
+ import type { IGlyph } from '@visactor/vrender-core';
6
+ import type { Datum } from '../typings/common';
7
+ export declare const getHorizontalPath: (options: ILinkPathMarkSpec, ratio?: number) => string;
8
+ export declare const getVerticalPath: (options: ILinkPathMarkSpec, ratio?: number) => string;
9
+ export declare class LinkPathMark extends GlyphMark<ILinkPathMarkSpec, ILinkPathConfig> implements ILinkPathMark {
7
10
  static readonly type = MarkTypeEnum.linkPath;
8
11
  readonly type = MarkTypeEnum.linkPath;
9
12
  protected _getDefaultStyle(): IMarkStyle<ILinkPathMarkSpec>;
10
- protected _initProduct(group?: string | IGroupMark): void;
13
+ protected _subMarks: {
14
+ back: {
15
+ type: string;
16
+ defaultAttributes: {
17
+ zIndex: number;
18
+ };
19
+ };
20
+ front: {
21
+ type: string;
22
+ defaultAttributes: {
23
+ zIndex: number;
24
+ };
25
+ };
26
+ };
27
+ protected _positionChannels: string[];
28
+ protected _channelEncoder: {
29
+ backgroundStyle: (val: any) => {
30
+ back: any;
31
+ };
32
+ };
33
+ protected _positionEncoder: (glyphAttrs: any, datum: Datum, g: IGlyph) => {
34
+ back: {
35
+ path: string;
36
+ };
37
+ front: {
38
+ path: string;
39
+ };
40
+ };
11
41
  }
12
42
  export declare const registerLinkPathMark: () => void;
@@ -1,13 +1,55 @@
1
- import type { ILiquidMarkSpec } from '../typings';
2
1
  import type { IMarkStyle } from './interface';
3
2
  import { MarkTypeEnum } from './interface/type';
4
- import { BaseMark } from './base';
5
3
  import type { ILiquidMark } from '../series/liquid/liquid';
6
- import type { IGroupMark } from '@visactor/vgrammar-core';
7
- export declare class LiquidMark extends BaseMark<ILiquidMarkSpec> implements ILiquidMark {
4
+ import { GlyphMark } from './glyph';
5
+ import { type IGlyph } from '@visactor/vrender-core';
6
+ import type { IPointLike } from '@visactor/vutils';
7
+ import type { ILiquidMarkSpec } from '../typings/visual';
8
+ import type { Datum } from '../typings/common';
9
+ export declare class LiquidMark extends GlyphMark<ILiquidMarkSpec> implements ILiquidMark {
8
10
  static readonly type = MarkTypeEnum.liquid;
9
11
  readonly type = MarkTypeEnum.liquid;
10
12
  protected _getDefaultStyle(): IMarkStyle<ILiquidMarkSpec>;
11
- protected _initProduct(group?: string | IGroupMark): void;
13
+ protected _subMarks: {
14
+ wave0: {
15
+ type: string;
16
+ defaultAttributes: {
17
+ curveType: string;
18
+ fillOpacity: number;
19
+ };
20
+ };
21
+ wave1: {
22
+ type: string;
23
+ defaultAttributes: {
24
+ curveType: string;
25
+ fillOpacity: number;
26
+ };
27
+ };
28
+ wave2: {
29
+ type: string;
30
+ defaultAttributes: {
31
+ curveType: string;
32
+ fillOpacity: number;
33
+ };
34
+ };
35
+ };
36
+ protected _positionChannels: string[];
37
+ protected _positionEncoder: (glyphAttrs: any, datum: Datum, g: IGlyph) => {
38
+ wave0: {
39
+ x: number;
40
+ y: number;
41
+ points: IPointLike[];
42
+ };
43
+ wave1: {
44
+ x: number;
45
+ y: number;
46
+ points: IPointLike[];
47
+ };
48
+ wave2: {
49
+ x: number;
50
+ y: number;
51
+ points: IPointLike[];
52
+ };
53
+ };
12
54
  }
13
55
  export declare const registerLiquidMark: () => void;
@@ -1,12 +1,47 @@
1
- import { BaseMark } from './base/base-mark';
2
1
  import type { IRippleMarkSpec } from '../typings/visual';
3
2
  import type { IMarkStyle, IRippleMark } from './interface';
4
3
  import { MarkTypeEnum } from './interface/type';
5
- import type { IGroupMark } from '@visactor/vgrammar-core';
6
- export declare class RippleMark extends BaseMark<IRippleMarkSpec> implements IRippleMark {
4
+ import { GlyphMark } from './glyph';
5
+ import type { Datum } from '../typings/common';
6
+ import { type IGlyph } from '@visactor/vrender-core';
7
+ export declare class RippleMark extends GlyphMark<IRippleMarkSpec> implements IRippleMark {
7
8
  static readonly type = MarkTypeEnum.ripple;
8
9
  readonly type = MarkTypeEnum.ripple;
9
10
  protected _getDefaultStyle(): IMarkStyle<IRippleMarkSpec>;
10
- protected _initProduct(group?: string | IGroupMark): void;
11
+ protected _subMarks: {
12
+ ripple0: {
13
+ type: string;
14
+ defaultAttributes: {
15
+ fillOpacity: number;
16
+ };
17
+ };
18
+ ripple1: {
19
+ type: string;
20
+ defaultAttributes: {
21
+ fillOpacity: number;
22
+ };
23
+ };
24
+ ripple2: {
25
+ type: string;
26
+ defaultAttributes: {
27
+ fillOpacity: number;
28
+ };
29
+ };
30
+ };
31
+ protected _positionChannels: string[];
32
+ protected _positionEncoder: (glyphAttrs: any, datum: Datum, g: IGlyph) => {
33
+ ripple0: {
34
+ size: any;
35
+ fillOpacity: number;
36
+ };
37
+ ripple1: {
38
+ size: any;
39
+ fillOpacity: number;
40
+ };
41
+ ripple2: {
42
+ size: any;
43
+ fillOpacity: number;
44
+ };
45
+ };
11
46
  }
12
47
  export declare const registerRippleMark: () => void;
@@ -1,10 +1,13 @@
1
1
  import type { IRuleMarkSpec } from '../typings/visual';
2
2
  import { BaseMark } from './base/base-mark';
3
- import type { IMarkStyle, IRuleMark } from './interface';
3
+ import type { IMarkGraphic, IMarkStyle, IRuleMark } from './interface';
4
4
  import { MarkTypeEnum } from './interface/type';
5
+ import type { IGraphic, ILineGraphicAttribute } from '@visactor/vrender-core';
5
6
  export declare class RuleMark extends BaseMark<IRuleMarkSpec> implements IRuleMark {
6
7
  static readonly type = MarkTypeEnum.rule;
7
8
  readonly type = MarkTypeEnum.rule;
8
9
  protected _getDefaultStyle(): IMarkStyle<IRuleMarkSpec>;
10
+ protected _transformGraphicAttributes(g: IMarkGraphic, attrs: any, groupAttrs?: any): any;
11
+ protected _createGraphic(attrs?: ILineGraphicAttribute): IGraphic;
9
12
  }
10
13
  export declare const registerRuleMark: () => void;
@@ -1,12 +1,11 @@
1
1
  import type { ISymbolMarkSpec } from '../typings/visual';
2
2
  import { BaseMark } from './base/base-mark';
3
- import type { IMarkStyle, ISymbolMark } from './interface';
3
+ import type { IMarkGraphic, IMarkStyle, ISymbolMark } from './interface';
4
4
  import { MarkTypeEnum } from './interface/type';
5
- export declare class BaseSymbolMark<T extends ISymbolMarkSpec> extends BaseMark<T> {
6
- protected _getDefaultStyle(): IMarkStyle<T>;
7
- }
8
- export declare class SymbolMark extends BaseSymbolMark<ISymbolMarkSpec> implements ISymbolMark {
5
+ export declare class SymbolMark extends BaseMark<ISymbolMarkSpec> implements ISymbolMark {
9
6
  static readonly type = MarkTypeEnum.symbol;
10
7
  readonly type = MarkTypeEnum.symbol;
8
+ protected _getDefaultStyle(): IMarkStyle<ISymbolMarkSpec>;
9
+ protected _transformGraphicAttributes(g: IMarkGraphic, attrs: any, groupAttrs?: any): any;
11
10
  }
12
11
  export declare const registerSymbolMark: () => void;
@@ -1,8 +1,9 @@
1
1
  import type { IComposedTextMarkSpec } from '../typings/visual';
2
2
  import { BaseMark } from './base/base-mark';
3
- import type { IMarkOption, IMarkStyle } from './interface';
3
+ import type { IMarkGraphic, IMarkOption, IMarkStyle } from './interface';
4
4
  import { MarkTypeEnum } from './interface';
5
5
  import type { ITextMark, ITextSpec } from './interface/mark';
6
+ import type { IGraphic, IRichTextGraphicAttribute, ITextGraphicAttribute } from '@visactor/vrender-core';
6
7
  export declare class TextMark extends BaseMark<IComposedTextMarkSpec> implements ITextMark {
7
8
  static readonly type = MarkTypeEnum.text;
8
9
  readonly type = MarkTypeEnum.text;
@@ -10,7 +11,8 @@ export declare class TextMark extends BaseMark<IComposedTextMarkSpec> implements
10
11
  getTextType(): "text" | "rich";
11
12
  constructor(name: string, option: IMarkOption);
12
13
  protected _getDefaultStyle(): IMarkStyle<IComposedTextMarkSpec>;
13
- initStyleWithSpec(spec: ITextSpec<IComposedTextMarkSpec>, key?: string): void;
14
- compileEncode(): void;
14
+ initStyleWithSpec(spec: ITextSpec<IComposedTextMarkSpec>): void;
15
+ protected _transformGraphicAttributes(g: IMarkGraphic, attrs: any, groupAttrs?: any): any;
16
+ protected _createGraphic(attrs?: ITextGraphicAttribute | IRichTextGraphicAttribute): IGraphic;
15
17
  }
16
18
  export declare const registerTextMark: () => void;
@@ -0,0 +1,10 @@
1
+ import type { Datum } from '../../typings/common';
2
+ export declare const dataSampling: (options: {
3
+ size: number | (() => number);
4
+ factor?: number;
5
+ skipfirst?: boolean;
6
+ yfield?: string;
7
+ groupBy?: string;
8
+ mode?: 'lttb' | 'min' | 'max' | 'average' | 'sum';
9
+ }, upstreamData: Datum[]) => Datum[];
10
+ export declare const registerDataSamplingTransform: () => void;
@@ -0,0 +1 @@
1
+ export declare const registerMarkFilterTransform: () => void;
@@ -0,0 +1 @@
1
+ export declare const registerMarkMapTransform: () => void;
@@ -0,0 +1,13 @@
1
+ import type { IMarkGraphic } from '../interface';
2
+ export declare const OVERLAP_HIDE_KEY: string;
3
+ export declare const transform: (options: {
4
+ direction: number;
5
+ delta?: number;
6
+ deltaMul?: number;
7
+ hideMode?: number;
8
+ forceUpdate?: boolean;
9
+ forceUpdateStamp?: number;
10
+ groupBy?: string;
11
+ sort?: boolean;
12
+ }, upstreamData: IMarkGraphic[]) => IMarkGraphic[];
13
+ export declare const registerSymbolOverlapTransform: () => void;
@@ -1,5 +1,8 @@
1
1
  import { MarkTypeEnum } from '../interface/type';
2
+ import type { Datum } from '../../typings';
3
+ import type { GroupedData } from '../interface/common';
2
4
  export declare const MultiDatumMark: string[];
3
5
  export declare function isMultiDatumMark(type: MarkTypeEnum): boolean;
4
6
  export declare function curveTypeTransform(type: string, direction: string): string;
5
- export declare function is3DMark(type: MarkTypeEnum): boolean;
7
+ export declare function groupData<T>(data: T[], groupBy: (datum: Datum, index: number) => string, sort?: (a: T, b: T) => number): GroupedData<T>;
8
+ export declare const runEncoder: (styles: Record<string, (datum: Datum) => any>, datum: Datum, attrs?: any) => any;
@@ -0,0 +1,2 @@
1
+ import type { IMarkGraphic } from '../interface/common';
2
+ export declare const addRuntimeState: (g: IMarkGraphic, stateName: string, attrs: any, keepCurrentStates?: boolean, hasAnimation?: boolean) => void;
@@ -1 +1,3 @@
1
1
  export * from './common';
2
+ export * from './line';
3
+ export * from './glyph';
@@ -0,0 +1,3 @@
1
+ import type { IColorStop } from '@visactor/vrender-core';
2
+ export declare const isStopsEqual: (prev: IColorStop[], next: IColorStop[]) => boolean;
3
+ export declare const isSegmentAttrEqual: (prev: any, next: any, key: string) => boolean;
@@ -3,12 +3,12 @@ import type { IEffect, IModel, IModelInitOption, IModelOption, IModelRenderOptio
3
3
  import type { CoordinateType } from '../typings/coordinate';
4
4
  import type { ICompileMarkConfig, IMark, IMarkOption, IMarkRaw, IMarkStyle } from '../mark/interface';
5
5
  import type { Datum, StateValueType, ConvertToMarkStyleSpec, ICommonSpec, StringOrNumber, IRect, ILayoutRect } from '../typings';
6
- import type { CompilableData } from '../compile/data/compilable-data';
7
- import type { IGroupMark } from '@visactor/vgrammar-core';
8
6
  import { MarkSet } from '../mark/mark-set';
9
7
  import type { ILayoutItem } from '../layout/interface';
10
8
  import { CompilableBase } from '../compile/compilable-base';
11
9
  import { BaseModelSpecTransformer } from './base-model-transformer';
10
+ import type { IGroup } from '@visactor/vrender-core';
11
+ import type { ICompilableData } from '../compile/data/interface';
12
12
  export declare abstract class BaseModel<T extends IModelSpec> extends CompilableBase implements IModel {
13
13
  readonly transformerConstructor: typeof BaseModelSpecTransformer;
14
14
  protected _spec: T;
@@ -21,8 +21,8 @@ export declare abstract class BaseModel<T extends IModelSpec> extends Compilable
21
21
  userId: StringOrNumber | undefined;
22
22
  readonly event: IEvent;
23
23
  readonly effect: IEffect;
24
- protected _data: CompilableData;
25
- getData(): CompilableData;
24
+ protected _data: ICompilableData;
25
+ getData(): ICompilableData;
26
26
  protected _layout?: ILayoutItem;
27
27
  get layout(): ILayoutItem;
28
28
  readonly specKey: string;
@@ -32,7 +32,7 @@ export declare abstract class BaseModel<T extends IModelSpec> extends Compilable
32
32
  getMarks(): IMark[];
33
33
  getMarkNameMap(): Record<string, IMark>;
34
34
  getMarkSet(): MarkSet;
35
- getChart(): import("../chart/interface").IChart;
35
+ getChart(): import("..").IChart;
36
36
  protected get _theme(): any;
37
37
  protected _lastLayoutRect: ILayoutRect;
38
38
  constructor(spec: T, option: IModelOption);
@@ -42,12 +42,13 @@ export declare abstract class BaseModel<T extends IModelSpec> extends Compilable
42
42
  init(option: IModelInitOption): void;
43
43
  afterInit(): void;
44
44
  getVisible(): boolean;
45
- onLayoutStart(layoutRect: IRect, viewRect: ILayoutRect, ctx: any): void;
46
- onLayoutEnd(ctx: any): void;
45
+ onLayoutStart(layoutRect: IRect, viewRect: ILayoutRect): void;
46
+ onLayoutEnd(): void;
47
47
  onEvaluateEnd(ctx: IModelEvaluateOption): void;
48
48
  abstract onRender(ctx: IModelRenderOption): void;
49
49
  onDataUpdate(): void;
50
50
  beforeRelease(): void;
51
+ clear(): void;
51
52
  release(): void;
52
53
  updateSpec(spec: T): {
53
54
  change: boolean;
@@ -68,13 +69,13 @@ export declare abstract class BaseModel<T extends IModelSpec> extends Compilable
68
69
  setAttrFromSpec(): void;
69
70
  protected _convertMarkStyle<T extends ICommonSpec = ICommonSpec>(style: Partial<IMarkStyle<T> | ConvertToMarkStyleSpec<T>>): Partial<IMarkStyle<T> | ConvertToMarkStyleSpec<T>>;
70
71
  setMarkStyle<T extends ICommonSpec>(mark: IMarkRaw<T>, style?: Partial<IMarkStyle<T> | ConvertToMarkStyleSpec<T>>, state?: StateValueType, level?: number): void;
71
- initMarkStyleWithSpec(mark?: IMark, spec?: any, key?: string): void;
72
+ initMarkStyleWithSpec(mark?: IMark, spec?: any): void;
72
73
  protected stateKeyToSignalName(key: string, opt?: string): string;
73
74
  compileData(): void;
74
- compileMarks(group?: string | IGroupMark): void;
75
+ compileMarks(group?: IGroup): void;
75
76
  protected _createMark<T extends IMark>(markInfo: IModelMarkInfo, option?: Partial<IMarkOption>, config?: ICompileMarkConfig): T;
76
77
  protected _getDataIdKey(): string | ((datum: Datum) => string) | undefined;
77
- getColorScheme(): import("..").IThemeColorScheme;
78
+ getColorScheme(): any;
78
79
  getSpecInfo(): IModelSpecInfo<any>;
79
80
  getSpecIndex(): number;
80
81
  }