@visactor/vchart-types 1.6.0

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 (757) hide show
  1. package/.eslintrc.js +7 -0
  2. package/.rush/temp/shrinkwrap-deps.json +4 -0
  3. package/README.md +30 -0
  4. package/package.json +29 -0
  5. package/tsconfig.eslint.json +9 -0
  6. package/tsconfig.json +3 -0
  7. package/tsconfig.test.json +5 -0
  8. package/tsconfig.tsbuildinfo +1 -0
  9. package/types/animation/animate-manager.d.ts +12 -0
  10. package/types/animation/config.d.ts +56 -0
  11. package/types/animation/interface.d.ts +29 -0
  12. package/types/animation/spec.d.ts +24 -0
  13. package/types/animation/utils.d.ts +17 -0
  14. package/types/chart/area/area.d.ts +12 -0
  15. package/types/chart/area/index.d.ts +2 -0
  16. package/types/chart/area/interface.d.ts +7 -0
  17. package/types/chart/bar/bar-3d.d.ts +9 -0
  18. package/types/chart/bar/bar.d.ts +11 -0
  19. package/types/chart/bar/index.d.ts +3 -0
  20. package/types/chart/bar/interface.d.ts +11 -0
  21. package/types/chart/base-chart.d.ts +154 -0
  22. package/types/chart/box-plot/box-plot.d.ts +11 -0
  23. package/types/chart/box-plot/index.d.ts +2 -0
  24. package/types/chart/box-plot/interface.d.ts +7 -0
  25. package/types/chart/cartesian/cartesian.d.ts +8 -0
  26. package/types/chart/cartesian/index.d.ts +2 -0
  27. package/types/chart/cartesian/interface.d.ts +15 -0
  28. package/types/chart/chart-meta/data.d.ts +15 -0
  29. package/types/chart/circle-packing/circle-packing.d.ts +12 -0
  30. package/types/chart/circle-packing/index.d.ts +2 -0
  31. package/types/chart/circle-packing/interface.d.ts +6 -0
  32. package/types/chart/common/common.d.ts +10 -0
  33. package/types/chart/common/index.d.ts +2 -0
  34. package/types/chart/common/interface.d.ts +41 -0
  35. package/types/chart/correlation/correlation.d.ts +11 -0
  36. package/types/chart/correlation/index.d.ts +2 -0
  37. package/types/chart/correlation/interface.d.ts +6 -0
  38. package/types/chart/funnel/base.d.ts +9 -0
  39. package/types/chart/funnel/funnel-3d.d.ts +8 -0
  40. package/types/chart/funnel/funnel.d.ts +8 -0
  41. package/types/chart/funnel/index.d.ts +3 -0
  42. package/types/chart/funnel/interface.d.ts +9 -0
  43. package/types/chart/gauge/gauge.d.ts +12 -0
  44. package/types/chart/gauge/index.d.ts +2 -0
  45. package/types/chart/gauge/interface.d.ts +10 -0
  46. package/types/chart/heatmap/heatmap.d.ts +9 -0
  47. package/types/chart/heatmap/index.d.ts +2 -0
  48. package/types/chart/heatmap/interface.d.ts +7 -0
  49. package/types/chart/histogram/base.d.ts +6 -0
  50. package/types/chart/histogram/histogram-3d.d.ts +8 -0
  51. package/types/chart/histogram/histogram.d.ts +9 -0
  52. package/types/chart/histogram/index.d.ts +3 -0
  53. package/types/chart/histogram/interface.d.ts +9 -0
  54. package/types/chart/index.d.ts +60 -0
  55. package/types/chart/interface/chart.d.ts +87 -0
  56. package/types/chart/interface/common.d.ts +32 -0
  57. package/types/chart/interface/index.d.ts +3 -0
  58. package/types/chart/interface/type.d.ts +35 -0
  59. package/types/chart/line/index.d.ts +2 -0
  60. package/types/chart/line/interface.d.ts +7 -0
  61. package/types/chart/line/line.d.ts +12 -0
  62. package/types/chart/map/index.d.ts +2 -0
  63. package/types/chart/map/interface.d.ts +6 -0
  64. package/types/chart/map/map.d.ts +13 -0
  65. package/types/chart/pie/base.d.ts +5 -0
  66. package/types/chart/pie/index.d.ts +3 -0
  67. package/types/chart/pie/interface.d.ts +11 -0
  68. package/types/chart/pie/pie-3d.d.ts +9 -0
  69. package/types/chart/pie/pie.d.ts +8 -0
  70. package/types/chart/polar/index.d.ts +4 -0
  71. package/types/chart/polar/interface.d.ts +7 -0
  72. package/types/chart/polar/polar.d.ts +9 -0
  73. package/types/chart/polar/progress-like.d.ts +7 -0
  74. package/types/chart/polar/rose-like.d.ts +7 -0
  75. package/types/chart/progress/circular/circular.d.ts +11 -0
  76. package/types/chart/progress/circular/index.d.ts +2 -0
  77. package/types/chart/progress/circular/interface.d.ts +7 -0
  78. package/types/chart/progress/interface.d.ts +8 -0
  79. package/types/chart/progress/linear/index.d.ts +2 -0
  80. package/types/chart/progress/linear/interface.d.ts +9 -0
  81. package/types/chart/progress/linear/linear.d.ts +13 -0
  82. package/types/chart/radar/index.d.ts +2 -0
  83. package/types/chart/radar/interface.d.ts +7 -0
  84. package/types/chart/radar/radar.d.ts +10 -0
  85. package/types/chart/range-area/index.d.ts +2 -0
  86. package/types/chart/range-area/interface.d.ts +7 -0
  87. package/types/chart/range-area/range-area.d.ts +10 -0
  88. package/types/chart/range-column/index.d.ts +3 -0
  89. package/types/chart/range-column/interface.d.ts +11 -0
  90. package/types/chart/range-column/range-column-3d.d.ts +9 -0
  91. package/types/chart/range-column/range-column.d.ts +10 -0
  92. package/types/chart/rose/index.d.ts +2 -0
  93. package/types/chart/rose/interface.d.ts +7 -0
  94. package/types/chart/rose/rose.d.ts +10 -0
  95. package/types/chart/sankey/index.d.ts +2 -0
  96. package/types/chart/sankey/interface.d.ts +6 -0
  97. package/types/chart/sankey/sankey.d.ts +11 -0
  98. package/types/chart/scatter/index.d.ts +2 -0
  99. package/types/chart/scatter/interface.d.ts +7 -0
  100. package/types/chart/scatter/scatter.d.ts +11 -0
  101. package/types/chart/sequence/index.d.ts +2 -0
  102. package/types/chart/sequence/interface.d.ts +24 -0
  103. package/types/chart/sequence/sequence.d.ts +12 -0
  104. package/types/chart/stack.d.ts +11 -0
  105. package/types/chart/sunburst/index.d.ts +2 -0
  106. package/types/chart/sunburst/interface.d.ts +6 -0
  107. package/types/chart/sunburst/sunburst.d.ts +12 -0
  108. package/types/chart/treemap/index.d.ts +2 -0
  109. package/types/chart/treemap/interface.d.ts +6 -0
  110. package/types/chart/treemap/treemap.d.ts +11 -0
  111. package/types/chart/util.d.ts +12 -0
  112. package/types/chart/waterfall/index.d.ts +2 -0
  113. package/types/chart/waterfall/interface.d.ts +7 -0
  114. package/types/chart/waterfall/waterfall.d.ts +11 -0
  115. package/types/chart/word-cloud/base.d.ts +6 -0
  116. package/types/chart/word-cloud/index.d.ts +3 -0
  117. package/types/chart/word-cloud/interface.d.ts +10 -0
  118. package/types/chart/word-cloud/word-cloud-3d.d.ts +11 -0
  119. package/types/chart/word-cloud/word-cloud.d.ts +11 -0
  120. package/types/compile/compilable-base.d.ts +11 -0
  121. package/types/compile/compiler.d.ts +60 -0
  122. package/types/compile/data/compilable-data.d.ts +23 -0
  123. package/types/compile/data/index.d.ts +2 -0
  124. package/types/compile/data/interface.d.ts +8 -0
  125. package/types/compile/grammar-item.d.ts +24 -0
  126. package/types/compile/interface/compilable-item.d.ts +36 -0
  127. package/types/compile/interface/compiler.d.ts +49 -0
  128. package/types/compile/interface/index.d.ts +2 -0
  129. package/types/compile/mark/compilable-mark.d.ts +111 -0
  130. package/types/compile/mark/index.d.ts +3 -0
  131. package/types/compile/mark/interface.d.ts +154 -0
  132. package/types/compile/mark/mark-data.d.ts +9 -0
  133. package/types/compile/mark/mark-state-manager.d.ts +26 -0
  134. package/types/compile/mark/util.d.ts +7 -0
  135. package/types/compile/signal/compilable-signal.d.ts +21 -0
  136. package/types/compile/signal/index.d.ts +4 -0
  137. package/types/compile/signal/interface.d.ts +12 -0
  138. package/types/compile/signal/signal-manager.d.ts +11 -0
  139. package/types/compile/signal/state-manager.d.ts +12 -0
  140. package/types/compile/util.d.ts +2 -0
  141. package/types/component/axis/base-axis.d.ts +149 -0
  142. package/types/component/axis/cartesian/axis.d.ts +112 -0
  143. package/types/component/axis/cartesian/band-axis.d.ts +40 -0
  144. package/types/component/axis/cartesian/config.d.ts +3 -0
  145. package/types/component/axis/cartesian/index.d.ts +7 -0
  146. package/types/component/axis/cartesian/interface/common.d.ts +56 -0
  147. package/types/component/axis/cartesian/interface/index.d.ts +3 -0
  148. package/types/component/axis/cartesian/interface/spec.d.ts +45 -0
  149. package/types/component/axis/cartesian/interface/theme.d.ts +22 -0
  150. package/types/component/axis/cartesian/linear-axis.d.ts +28 -0
  151. package/types/component/axis/cartesian/log-axis.d.ts +17 -0
  152. package/types/component/axis/cartesian/symlog-axis.d.ts +17 -0
  153. package/types/component/axis/cartesian/time-axis.d.ts +22 -0
  154. package/types/component/axis/cartesian/util/common.d.ts +13 -0
  155. package/types/component/axis/cartesian/util/index.d.ts +2 -0
  156. package/types/component/axis/cartesian/util/time.d.ts +80 -0
  157. package/types/component/axis/index.d.ts +3 -0
  158. package/types/component/axis/interface/common.d.ts +38 -0
  159. package/types/component/axis/interface/index.d.ts +3 -0
  160. package/types/component/axis/interface/spec.d.ts +91 -0
  161. package/types/component/axis/interface/theme.d.ts +15 -0
  162. package/types/component/axis/interface.d.ts +137 -0
  163. package/types/component/axis/mixin/band-axis-mixin.d.ts +42 -0
  164. package/types/component/axis/mixin/linear-axis-mixin.d.ts +57 -0
  165. package/types/component/axis/polar/axis.d.ts +85 -0
  166. package/types/component/axis/polar/band-axis.d.ts +33 -0
  167. package/types/component/axis/polar/config.d.ts +3 -0
  168. package/types/component/axis/polar/index.d.ts +4 -0
  169. package/types/component/axis/polar/interface/common.d.ts +34 -0
  170. package/types/component/axis/polar/interface/index.d.ts +4 -0
  171. package/types/component/axis/polar/interface/spec.d.ts +21 -0
  172. package/types/component/axis/polar/interface/theme.d.ts +11 -0
  173. package/types/component/axis/polar/linear-axis.d.ts +23 -0
  174. package/types/component/axis/util.d.ts +28 -0
  175. package/types/component/base/base-component.d.ts +45 -0
  176. package/types/component/base/index.d.ts +1 -0
  177. package/types/component/base/interface.d.ts +8 -0
  178. package/types/component/base/util.d.ts +3 -0
  179. package/types/component/brush/brush.d.ts +79 -0
  180. package/types/component/brush/index.d.ts +2 -0
  181. package/types/component/brush/interface.d.ts +48 -0
  182. package/types/component/common/trigger/config.d.ts +22 -0
  183. package/types/component/common/trigger/desktop.d.ts +10 -0
  184. package/types/component/common/trigger/interface.d.ts +8 -0
  185. package/types/component/common/trigger/mobile.d.ts +11 -0
  186. package/types/component/crosshair/base.d.ts +77 -0
  187. package/types/component/crosshair/cartesian.d.ts +67 -0
  188. package/types/component/crosshair/config.d.ts +12 -0
  189. package/types/component/crosshair/index.d.ts +3 -0
  190. package/types/component/crosshair/interface/index.d.ts +2 -0
  191. package/types/component/crosshair/interface/spec.d.ts +71 -0
  192. package/types/component/crosshair/interface/theme.d.ts +9 -0
  193. package/types/component/crosshair/polar.d.ts +78 -0
  194. package/types/component/crosshair/util.d.ts +10 -0
  195. package/types/component/custom-mark/custom-mark.d.ts +34 -0
  196. package/types/component/custom-mark/index.d.ts +1 -0
  197. package/types/component/data-zoom/constant.d.ts +4 -0
  198. package/types/component/data-zoom/data-filter-base-component.d.ts +122 -0
  199. package/types/component/data-zoom/data-zoom/data-zoom.d.ts +65 -0
  200. package/types/component/data-zoom/data-zoom/index.d.ts +2 -0
  201. package/types/component/data-zoom/data-zoom/interface.d.ts +59 -0
  202. package/types/component/data-zoom/index.d.ts +2 -0
  203. package/types/component/data-zoom/interface.d.ts +59 -0
  204. package/types/component/data-zoom/scroll-bar/index.d.ts +2 -0
  205. package/types/component/data-zoom/scroll-bar/interface.d.ts +23 -0
  206. package/types/component/data-zoom/scroll-bar/scroll-bar.d.ts +29 -0
  207. package/types/component/data-zoom/util.d.ts +19 -0
  208. package/types/component/geo/geo-coordinate.d.ts +62 -0
  209. package/types/component/geo/index.d.ts +2 -0
  210. package/types/component/geo/interface.d.ts +27 -0
  211. package/types/component/geo/projection.d.ts +17 -0
  212. package/types/component/index.d.ts +46 -0
  213. package/types/component/indicator/index.d.ts +2 -0
  214. package/types/component/indicator/indicator.d.ts +42 -0
  215. package/types/component/indicator/interface.d.ts +32 -0
  216. package/types/component/indicator/util.d.ts +13 -0
  217. package/types/component/interface/common.d.ts +36 -0
  218. package/types/component/interface/index.d.ts +4 -0
  219. package/types/component/interface/theme.d.ts +42 -0
  220. package/types/component/interface/tooltip-helper.d.ts +5 -0
  221. package/types/component/interface/type.d.ts +35 -0
  222. package/types/component/label/base-label.d.ts +40 -0
  223. package/types/component/label/index.d.ts +2 -0
  224. package/types/component/label/interface.d.ts +32 -0
  225. package/types/component/label/label.d.ts +47 -0
  226. package/types/component/label/totalLabel.d.ts +28 -0
  227. package/types/component/label/util.d.ts +57 -0
  228. package/types/component/legend/base-legend.d.ts +63 -0
  229. package/types/component/legend/continuous/index.d.ts +2 -0
  230. package/types/component/legend/continuous/interface.d.ts +58 -0
  231. package/types/component/legend/continuous/legend.d.ts +27 -0
  232. package/types/component/legend/continuous/util.d.ts +8 -0
  233. package/types/component/legend/discrete/index.d.ts +2 -0
  234. package/types/component/legend/discrete/interface.d.ts +61 -0
  235. package/types/component/legend/discrete/legend.d.ts +26 -0
  236. package/types/component/legend/discrete/util.d.ts +3 -0
  237. package/types/component/legend/index.d.ts +3 -0
  238. package/types/component/legend/interface.d.ts +39 -0
  239. package/types/component/legend/util.d.ts +26 -0
  240. package/types/component/map-label/component.d.ts +54 -0
  241. package/types/component/map-label/index.d.ts +2 -0
  242. package/types/component/map-label/interface.d.ts +40 -0
  243. package/types/component/map-label/layout.d.ts +23 -0
  244. package/types/component/marker/base-marker.d.ts +66 -0
  245. package/types/component/marker/interface.d.ts +65 -0
  246. package/types/component/marker/mark-area/index.d.ts +2 -0
  247. package/types/component/marker/mark-area/interface/index.d.ts +2 -0
  248. package/types/component/marker/mark-area/interface/spec.d.ts +26 -0
  249. package/types/component/marker/mark-area/interface/theme.d.ts +11 -0
  250. package/types/component/marker/mark-area/mark-area.d.ts +20 -0
  251. package/types/component/marker/mark-line/index.d.ts +2 -0
  252. package/types/component/marker/mark-line/interface/index.d.ts +2 -0
  253. package/types/component/marker/mark-line/interface/spec.d.ts +53 -0
  254. package/types/component/marker/mark-line/interface/theme.d.ts +13 -0
  255. package/types/component/marker/mark-line/mark-line.d.ts +20 -0
  256. package/types/component/marker/mark-line/util.d.ts +9 -0
  257. package/types/component/marker/mark-point/index.d.ts +2 -0
  258. package/types/component/marker/mark-point/interface/index.d.ts +2 -0
  259. package/types/component/marker/mark-point/interface/spec.d.ts +14 -0
  260. package/types/component/marker/mark-point/interface/theme.d.ts +37 -0
  261. package/types/component/marker/mark-point/mark-point.d.ts +20 -0
  262. package/types/component/marker/utils.d.ts +6 -0
  263. package/types/component/player/index.d.ts +2 -0
  264. package/types/component/player/interface/index.d.ts +2 -0
  265. package/types/component/player/interface/spec.d.ts +18 -0
  266. package/types/component/player/interface/theme.d.ts +32 -0
  267. package/types/component/player/player.d.ts +54 -0
  268. package/types/component/player/utils/index.d.ts +1 -0
  269. package/types/component/player/utils/orient.d.ts +3 -0
  270. package/types/component/player/utils/transform.d.ts +4 -0
  271. package/types/component/poptip/index.d.ts +1 -0
  272. package/types/component/poptip/interface.d.ts +15 -0
  273. package/types/component/title/index.d.ts +2 -0
  274. package/types/component/title/interface/index.d.ts +2 -0
  275. package/types/component/title/interface/spec.d.ts +45 -0
  276. package/types/component/title/interface/theme.d.ts +19 -0
  277. package/types/component/title/title.d.ts +49 -0
  278. package/types/component/title/utils.d.ts +2 -0
  279. package/types/component/tooltip/handler/base.d.ts +50 -0
  280. package/types/component/tooltip/handler/canvas/canvas-tooltip-handler.d.ts +19 -0
  281. package/types/component/tooltip/handler/canvas/index.d.ts +1 -0
  282. package/types/component/tooltip/handler/constants.d.ts +17 -0
  283. package/types/component/tooltip/handler/dom/dom-tooltip-handler.d.ts +25 -0
  284. package/types/component/tooltip/handler/dom/index.d.ts +1 -0
  285. package/types/component/tooltip/handler/dom/interface.d.ts +57 -0
  286. package/types/component/tooltip/handler/dom/model/base-tooltip-model.d.ts +25 -0
  287. package/types/component/tooltip/handler/dom/model/content-column-model.d.ts +23 -0
  288. package/types/component/tooltip/handler/dom/model/content-model.d.ts +15 -0
  289. package/types/component/tooltip/handler/dom/model/interface.d.ts +9 -0
  290. package/types/component/tooltip/handler/dom/model/shape-model.d.ts +22 -0
  291. package/types/component/tooltip/handler/dom/model/style-constants.d.ts +8 -0
  292. package/types/component/tooltip/handler/dom/model/text-model.d.ts +5 -0
  293. package/types/component/tooltip/handler/dom/model/title-model.d.ts +15 -0
  294. package/types/component/tooltip/handler/dom/model/tooltip-model.d.ts +21 -0
  295. package/types/component/tooltip/handler/dom/util.d.ts +6 -0
  296. package/types/component/tooltip/handler/index.d.ts +2 -0
  297. package/types/component/tooltip/handler/interface/index.d.ts +1 -0
  298. package/types/component/tooltip/handler/interface/style.d.ts +8 -0
  299. package/types/component/tooltip/handler/utils/attribute.d.ts +9 -0
  300. package/types/component/tooltip/handler/utils/common.d.ts +18 -0
  301. package/types/component/tooltip/handler/utils/compose.d.ts +5 -0
  302. package/types/component/tooltip/handler/utils/get-spec.d.ts +5 -0
  303. package/types/component/tooltip/handler/utils/index.d.ts +6 -0
  304. package/types/component/tooltip/handler/utils/pattern.d.ts +4 -0
  305. package/types/component/tooltip/handler/utils/position.d.ts +7 -0
  306. package/types/component/tooltip/index.d.ts +2 -0
  307. package/types/component/tooltip/interface/common.d.ts +24 -0
  308. package/types/component/tooltip/interface/event.d.ts +8 -0
  309. package/types/component/tooltip/interface/index.d.ts +3 -0
  310. package/types/component/tooltip/interface/spec.d.ts +29 -0
  311. package/types/component/tooltip/interface/theme.d.ts +49 -0
  312. package/types/component/tooltip/processor/base.d.ts +18 -0
  313. package/types/component/tooltip/processor/dimension-tooltip.d.ts +10 -0
  314. package/types/component/tooltip/processor/index.d.ts +5 -0
  315. package/types/component/tooltip/processor/interface.d.ts +16 -0
  316. package/types/component/tooltip/processor/mark-tooltip.d.ts +10 -0
  317. package/types/component/tooltip/processor/util.d.ts +4 -0
  318. package/types/component/tooltip/tooltip.d.ts +64 -0
  319. package/types/component/tooltip/utils/common.d.ts +5 -0
  320. package/types/component/tooltip/utils/index.d.ts +2 -0
  321. package/types/component/tooltip/utils/show-tooltip.d.ts +3 -0
  322. package/types/component/util.d.ts +4 -0
  323. package/types/constant/base.d.ts +3 -0
  324. package/types/constant/box-plot.d.ts +10 -0
  325. package/types/constant/correlation.d.ts +3 -0
  326. package/types/constant/event.d.ts +57 -0
  327. package/types/constant/funnel.d.ts +14 -0
  328. package/types/constant/hierarchy.d.ts +3 -0
  329. package/types/constant/index.d.ts +110 -0
  330. package/types/constant/label.d.ts +6 -0
  331. package/types/constant/layout.d.ts +2 -0
  332. package/types/constant/marker.d.ts +4 -0
  333. package/types/constant/polar.d.ts +23 -0
  334. package/types/constant/scatter.d.ts +7 -0
  335. package/types/constant/scroll-bar.d.ts +1 -0
  336. package/types/constant/sunburst.d.ts +1 -0
  337. package/types/constant/waterfall.d.ts +1 -0
  338. package/types/constant/word-cloud.d.ts +7 -0
  339. package/types/core/factory.d.ts +48 -0
  340. package/types/core/index.d.ts +12 -0
  341. package/types/core/instance-manager.d.ts +10 -0
  342. package/types/core/interface.d.ts +92 -0
  343. package/types/core/util.d.ts +3 -0
  344. package/types/core/vchart.d.ts +149 -0
  345. package/types/data/initialize.d.ts +21 -0
  346. package/types/data/parser/array.d.ts +2 -0
  347. package/types/data/parser/scale.d.ts +2 -0
  348. package/types/data/register.d.ts +3 -0
  349. package/types/data/transforms/add-property.d.ts +12 -0
  350. package/types/data/transforms/aggregation.d.ts +33 -0
  351. package/types/data/transforms/box-plot.d.ts +5 -0
  352. package/types/data/transforms/circle-packing.d.ts +7 -0
  353. package/types/data/transforms/copy-data-view.d.ts +5 -0
  354. package/types/data/transforms/correlation-center.d.ts +4 -0
  355. package/types/data/transforms/correlation.d.ts +17 -0
  356. package/types/data/transforms/data-key.d.ts +20 -0
  357. package/types/data/transforms/dimension-data.d.ts +10 -0
  358. package/types/data/transforms/dimension-statistics.d.ts +24 -0
  359. package/types/data/transforms/drill.d.ts +14 -0
  360. package/types/data/transforms/flatten.d.ts +9 -0
  361. package/types/data/transforms/funnel.d.ts +51 -0
  362. package/types/data/transforms/hierarchy-dimension-statistics.d.ts +3 -0
  363. package/types/data/transforms/invalid-travel.d.ts +8 -0
  364. package/types/data/transforms/legend-data/continuous/continuous.d.ts +4 -0
  365. package/types/data/transforms/legend-data/continuous/index.d.ts +2 -0
  366. package/types/data/transforms/legend-data/continuous/interface.d.ts +13 -0
  367. package/types/data/transforms/legend-data/discrete/discrete.d.ts +4 -0
  368. package/types/data/transforms/legend-data/discrete/index.d.ts +2 -0
  369. package/types/data/transforms/legend-data/discrete/interface.d.ts +15 -0
  370. package/types/data/transforms/link-dot-info.d.ts +13 -0
  371. package/types/data/transforms/lookup.d.ts +12 -0
  372. package/types/data/transforms/map.d.ts +7 -0
  373. package/types/data/transforms/obj-flat.d.ts +2 -0
  374. package/types/data/transforms/pie.d.ts +17 -0
  375. package/types/data/transforms/regression.d.ts +6 -0
  376. package/types/data/transforms/sankey-links.d.ts +2 -0
  377. package/types/data/transforms/sankey-nodes.d.ts +2 -0
  378. package/types/data/transforms/sankey.d.ts +22 -0
  379. package/types/data/transforms/stack-split.d.ts +6 -0
  380. package/types/data/transforms/sunburst.d.ts +7 -0
  381. package/types/data/transforms/treemap.d.ts +11 -0
  382. package/types/data/transforms/waterfall.d.ts +25 -0
  383. package/types/env/env.d.ts +7 -0
  384. package/types/env/index.d.ts +1 -0
  385. package/types/event/bubble.d.ts +15 -0
  386. package/types/event/event-dispatcher.d.ts +27 -0
  387. package/types/event/event.d.ts +18 -0
  388. package/types/event/events/dimension/base.d.ts +19 -0
  389. package/types/event/events/dimension/dimension-click.d.ts +7 -0
  390. package/types/event/events/dimension/dimension-hover.d.ts +9 -0
  391. package/types/event/events/dimension/index.d.ts +3 -0
  392. package/types/event/events/dimension/interface.d.ts +22 -0
  393. package/types/event/events/dimension/util/cartesian.d.ts +8 -0
  394. package/types/event/events/dimension/util/common.d.ts +8 -0
  395. package/types/event/events/dimension/util/index.d.ts +3 -0
  396. package/types/event/events/dimension/util/polar.d.ts +4 -0
  397. package/types/event/events/index.d.ts +5 -0
  398. package/types/event/interface.d.ts +160 -0
  399. package/types/index-lark.d.ts +4 -0
  400. package/types/index-wx.d.ts +4 -0
  401. package/types/index.d.ts +9 -0
  402. package/types/interaction/config.d.ts +22 -0
  403. package/types/interaction/dimension-trigger.d.ts +32 -0
  404. package/types/interaction/drill/drillable.d.ts +28 -0
  405. package/types/interaction/drill/index.d.ts +1 -0
  406. package/types/interaction/interaction.d.ts +20 -0
  407. package/types/interaction/interface.d.ts +49 -0
  408. package/types/interaction/trigger.d.ts +38 -0
  409. package/types/interaction/zoom/index.d.ts +1 -0
  410. package/types/interaction/zoom/zoomable.d.ts +80 -0
  411. package/types/layout/base-layout.d.ts +35 -0
  412. package/types/layout/grid-layout/grid-layout.d.ts +51 -0
  413. package/types/layout/index.d.ts +6 -0
  414. package/types/layout/interface.d.ts +45 -0
  415. package/types/layout/layout3d/index.d.ts +31 -0
  416. package/types/layout/util.d.ts +6 -0
  417. package/types/mark/arc-3d.d.ts +9 -0
  418. package/types/mark/arc.d.ts +20 -0
  419. package/types/mark/area.d.ts +11 -0
  420. package/types/mark/base/base-line.d.ts +8 -0
  421. package/types/mark/base/base-mark.d.ts +38 -0
  422. package/types/mark/base/index.d.ts +2 -0
  423. package/types/mark/box-plot.d.ts +12 -0
  424. package/types/mark/cell.d.ts +10 -0
  425. package/types/mark/component.d.ts +14 -0
  426. package/types/mark/group.d.ts +31 -0
  427. package/types/mark/image.d.ts +10 -0
  428. package/types/mark/index.d.ts +22 -0
  429. package/types/mark/interface/common.d.ts +77 -0
  430. package/types/mark/interface/index.d.ts +2 -0
  431. package/types/mark/interface/type.d.ts +24 -0
  432. package/types/mark/label.d.ts +27 -0
  433. package/types/mark/line.d.ts +11 -0
  434. package/types/mark/link-path.d.ts +12 -0
  435. package/types/mark/mark-set/index.d.ts +22 -0
  436. package/types/mark/path.d.ts +10 -0
  437. package/types/mark/polygon/base-polygon.d.ts +6 -0
  438. package/types/mark/polygon/polygon.d.ts +10 -0
  439. package/types/mark/polygon/pyramid-3d.d.ts +9 -0
  440. package/types/mark/progress-arc.d.ts +13 -0
  441. package/types/mark/rect-3d.d.ts +10 -0
  442. package/types/mark/rect.d.ts +10 -0
  443. package/types/mark/ripple.d.ts +12 -0
  444. package/types/mark/rule.d.ts +10 -0
  445. package/types/mark/symbol.d.ts +12 -0
  446. package/types/mark/text.d.ts +10 -0
  447. package/types/mark/utils/common.d.ts +3 -0
  448. package/types/mark/utils/index.d.ts +1 -0
  449. package/types/model/base-model.d.ts +84 -0
  450. package/types/model/interface.d.ts +188 -0
  451. package/types/model/layout-item.d.ts +59 -0
  452. package/types/model/tooltip-helper.d.ts +25 -0
  453. package/types/plugin/chart/interface.d.ts +6 -0
  454. package/types/plugin/components/axis-sync-plugin/axis-sync.d.ts +11 -0
  455. package/types/plugin/components/axis-sync-plugin/index.d.ts +1 -0
  456. package/types/plugin/components/axis-sync-plugin/tick-align-transform.d.ts +7 -0
  457. package/types/plugin/components/axis-sync-plugin/zero-align-transform.d.ts +15 -0
  458. package/types/plugin/components/basic-plugin.d.ts +9 -0
  459. package/types/plugin/components/index.d.ts +5 -0
  460. package/types/plugin/components/interface.d.ts +33 -0
  461. package/types/plugin/components/plugin-service.d.ts +15 -0
  462. package/types/plugin/interface.d.ts +4 -0
  463. package/types/plugin/series/interface.d.ts +9 -0
  464. package/types/region/interface.d.ts +59 -0
  465. package/types/region/region.d.ts +75 -0
  466. package/types/scale/color-ordinal-scale.d.ts +8 -0
  467. package/types/scale/global-scale.d.ts +37 -0
  468. package/types/scale/interface.d.ts +18 -0
  469. package/types/series/area/animation.d.ts +8 -0
  470. package/types/series/area/area.d.ts +32 -0
  471. package/types/series/area/constant.d.ts +2 -0
  472. package/types/series/area/interface.d.ts +22 -0
  473. package/types/series/area/tooltip-helpter.d.ts +5 -0
  474. package/types/series/bar/animation.d.ts +14 -0
  475. package/types/series/bar/bar-3d.d.ts +14 -0
  476. package/types/series/bar/bar.d.ts +52 -0
  477. package/types/series/bar/constant.d.ts +3 -0
  478. package/types/series/bar/interface.d.ts +39 -0
  479. package/types/series/base/base-series.d.ts +189 -0
  480. package/types/series/base/constant.d.ts +2 -0
  481. package/types/series/base/group.d.ts +12 -0
  482. package/types/series/base/series-data.d.ts +5 -0
  483. package/types/series/base/tooltip-helper.d.ts +29 -0
  484. package/types/series/box-plot/box-plot.d.ts +63 -0
  485. package/types/series/box-plot/constant.d.ts +2 -0
  486. package/types/series/box-plot/interface.d.ts +23 -0
  487. package/types/series/box-plot/tooltip-helper.d.ts +12 -0
  488. package/types/series/cartesian/cartesian.d.ts +95 -0
  489. package/types/series/cartesian/index.d.ts +2 -0
  490. package/types/series/cartesian/interface.d.ts +15 -0
  491. package/types/series/circle-packing/animation.d.ts +5 -0
  492. package/types/series/circle-packing/circle-packing.d.ts +45 -0
  493. package/types/series/circle-packing/constant.d.ts +2 -0
  494. package/types/series/circle-packing/interface.d.ts +21 -0
  495. package/types/series/circle-packing/tooltip-helper.d.ts +5 -0
  496. package/types/series/correlation/animation.d.ts +8 -0
  497. package/types/series/correlation/constant.d.ts +2 -0
  498. package/types/series/correlation/correlation.d.ts +55 -0
  499. package/types/series/correlation/interface.d.ts +37 -0
  500. package/types/series/dot/config.d.ts +4 -0
  501. package/types/series/dot/constant.d.ts +2 -0
  502. package/types/series/dot/dot.d.ts +73 -0
  503. package/types/series/dot/interface.d.ts +40 -0
  504. package/types/series/dot/tooltip-helper.d.ts +7 -0
  505. package/types/series/funnel/constant.d.ts +3 -0
  506. package/types/series/funnel/funnel-3d.d.ts +22 -0
  507. package/types/series/funnel/funnel.d.ts +95 -0
  508. package/types/series/funnel/interface.d.ts +61 -0
  509. package/types/series/funnel/tooltip-helper.d.ts +9 -0
  510. package/types/series/gauge/constant.d.ts +3 -0
  511. package/types/series/gauge/gauge-pointer.d.ts +37 -0
  512. package/types/series/gauge/gauge.d.ts +33 -0
  513. package/types/series/gauge/index.d.ts +3 -0
  514. package/types/series/gauge/interface.d.ts +48 -0
  515. package/types/series/geo/geo.d.ts +55 -0
  516. package/types/series/geo/interface.d.ts +4 -0
  517. package/types/series/heatmap/animation.d.ts +4 -0
  518. package/types/series/heatmap/constant.d.ts +2 -0
  519. package/types/series/heatmap/heatmap.d.ts +39 -0
  520. package/types/series/heatmap/interface.d.ts +23 -0
  521. package/types/series/heatmap/tooltip-helper.d.ts +6 -0
  522. package/types/series/index.d.ts +70 -0
  523. package/types/series/interface/common.d.ts +73 -0
  524. package/types/series/interface/index.d.ts +5 -0
  525. package/types/series/interface/series.d.ts +177 -0
  526. package/types/series/interface/theme.d.ts +104 -0
  527. package/types/series/interface/tooltip-helper.d.ts +13 -0
  528. package/types/series/interface/type.d.ts +91 -0
  529. package/types/series/line/animation.d.ts +7 -0
  530. package/types/series/line/constant.d.ts +2 -0
  531. package/types/series/line/interface.d.ts +21 -0
  532. package/types/series/line/line.d.ts +26 -0
  533. package/types/series/link/constant.d.ts +2 -0
  534. package/types/series/link/interface.d.ts +25 -0
  535. package/types/series/link/link.d.ts +53 -0
  536. package/types/series/link/tooltip-helper.d.ts +6 -0
  537. package/types/series/map/constant.d.ts +2 -0
  538. package/types/series/map/geo-source.d.ts +20 -0
  539. package/types/series/map/interface.d.ts +31 -0
  540. package/types/series/map/map.d.ts +48 -0
  541. package/types/series/map/tooltip-helper.d.ts +5 -0
  542. package/types/series/mixin/constant.d.ts +2 -0
  543. package/types/series/mixin/line-mixin.d.ts +60 -0
  544. package/types/series/pie/animation/animation.d.ts +25 -0
  545. package/types/series/pie/animation/centerOffset.d.ts +6 -0
  546. package/types/series/pie/constant.d.ts +3 -0
  547. package/types/series/pie/interface.d.ts +67 -0
  548. package/types/series/pie/pie-3d.d.ts +16 -0
  549. package/types/series/pie/pie.d.ts +83 -0
  550. package/types/series/polar/animation.d.ts +41 -0
  551. package/types/series/polar/interface.d.ts +22 -0
  552. package/types/series/polar/polar.d.ts +59 -0
  553. package/types/series/polar/progress-like/animation.d.ts +7 -0
  554. package/types/series/polar/progress-like/constant.d.ts +2 -0
  555. package/types/series/polar/progress-like/index.d.ts +3 -0
  556. package/types/series/polar/progress-like/interface.d.ts +21 -0
  557. package/types/series/polar/progress-like/progress-like.d.ts +34 -0
  558. package/types/series/polar/rose-like/index.d.ts +2 -0
  559. package/types/series/polar/rose-like/interface.d.ts +3 -0
  560. package/types/series/polar/rose-like/rose-like.d.ts +13 -0
  561. package/types/series/progress/circular/circular.d.ts +28 -0
  562. package/types/series/progress/circular/constant.d.ts +2 -0
  563. package/types/series/progress/circular/index.d.ts +1 -0
  564. package/types/series/progress/circular/interface.d.ts +20 -0
  565. package/types/series/progress/interface.d.ts +7 -0
  566. package/types/series/progress/linear/animation.d.ts +10 -0
  567. package/types/series/progress/linear/constant.d.ts +2 -0
  568. package/types/series/progress/linear/index.d.ts +1 -0
  569. package/types/series/progress/linear/interface.d.ts +26 -0
  570. package/types/series/progress/linear/linear.d.ts +27 -0
  571. package/types/series/progress/linear/tooltip-helper.d.ts +7 -0
  572. package/types/series/radar/animation.d.ts +73 -0
  573. package/types/series/radar/constant.d.ts +2 -0
  574. package/types/series/radar/interface.d.ts +22 -0
  575. package/types/series/radar/radar.d.ts +29 -0
  576. package/types/series/range-area/constant.d.ts +2 -0
  577. package/types/series/range-area/interface.d.ts +7 -0
  578. package/types/series/range-area/range-area.d.ts +15 -0
  579. package/types/series/range-area/tooltip-helper.d.ts +7 -0
  580. package/types/series/range-column/animation.d.ts +10 -0
  581. package/types/series/range-column/constant.d.ts +3 -0
  582. package/types/series/range-column/interface.d.ts +56 -0
  583. package/types/series/range-column/range-column-3d.d.ts +15 -0
  584. package/types/series/range-column/range-column.d.ts +26 -0
  585. package/types/series/range-column/tooltip-helper.d.ts +6 -0
  586. package/types/series/rose/animation.d.ts +13 -0
  587. package/types/series/rose/constant.d.ts +2 -0
  588. package/types/series/rose/interface.d.ts +19 -0
  589. package/types/series/rose/rose.d.ts +28 -0
  590. package/types/series/sankey/animation.d.ts +13 -0
  591. package/types/series/sankey/constant.d.ts +2 -0
  592. package/types/series/sankey/interface.d.ts +108 -0
  593. package/types/series/sankey/sankey.d.ts +61 -0
  594. package/types/series/sankey/tooltip-helper.d.ts +7 -0
  595. package/types/series/scatter/animation.d.ts +8 -0
  596. package/types/series/scatter/constant.d.ts +2 -0
  597. package/types/series/scatter/interface.d.ts +24 -0
  598. package/types/series/scatter/scatter.d.ts +37 -0
  599. package/types/series/sunburst/animation/enter.d.ts +3 -0
  600. package/types/series/sunburst/animation/exit.d.ts +3 -0
  601. package/types/series/sunburst/animation/index.d.ts +6 -0
  602. package/types/series/sunburst/animation/interface.d.ts +12 -0
  603. package/types/series/sunburst/animation/preset.d.ts +3 -0
  604. package/types/series/sunburst/animation/utils.d.ts +3 -0
  605. package/types/series/sunburst/constant.d.ts +2 -0
  606. package/types/series/sunburst/interface.d.ts +41 -0
  607. package/types/series/sunburst/sunburst.d.ts +60 -0
  608. package/types/series/sunburst/tooltip-helper.d.ts +5 -0
  609. package/types/series/treemap/animation.d.ts +5 -0
  610. package/types/series/treemap/constant.d.ts +2 -0
  611. package/types/series/treemap/interface.d.ts +41 -0
  612. package/types/series/treemap/tooltip-helper.d.ts +5 -0
  613. package/types/series/treemap/treemap.d.ts +58 -0
  614. package/types/series/util/label-mark.d.ts +4 -0
  615. package/types/series/util/spec.d.ts +2 -0
  616. package/types/series/util/stack.d.ts +9 -0
  617. package/types/series/util/utils.d.ts +5 -0
  618. package/types/series/waterfall/animation.d.ts +5 -0
  619. package/types/series/waterfall/constant.d.ts +2 -0
  620. package/types/series/waterfall/interface.d.ts +60 -0
  621. package/types/series/waterfall/waterfall.d.ts +40 -0
  622. package/types/series/word-cloud/animation.d.ts +14 -0
  623. package/types/series/word-cloud/base.d.ts +62 -0
  624. package/types/series/word-cloud/config.d.ts +16 -0
  625. package/types/series/word-cloud/constant.d.ts +2 -0
  626. package/types/series/word-cloud/interface.d.ts +120 -0
  627. package/types/series/word-cloud/word-cloud-3d.d.ts +13 -0
  628. package/types/series/word-cloud/word-cloud.d.ts +9 -0
  629. package/types/theme/builtin/common/component/axis/band-axis.d.ts +2 -0
  630. package/types/theme/builtin/common/component/axis/cartesian-axis.d.ts +3 -0
  631. package/types/theme/builtin/common/component/axis/common-axis.d.ts +2 -0
  632. package/types/theme/builtin/common/component/axis/linear-axis.d.ts +2 -0
  633. package/types/theme/builtin/common/component/axis/polar-axis.d.ts +3 -0
  634. package/types/theme/builtin/common/component/brush.d.ts +2 -0
  635. package/types/theme/builtin/common/component/crosshair.d.ts +2 -0
  636. package/types/theme/builtin/common/component/data-zoom.d.ts +2 -0
  637. package/types/theme/builtin/common/component/index.d.ts +2 -0
  638. package/types/theme/builtin/common/component/indicator.d.ts +2 -0
  639. package/types/theme/builtin/common/component/legend/color-legend.d.ts +2 -0
  640. package/types/theme/builtin/common/component/legend/continuous.d.ts +2 -0
  641. package/types/theme/builtin/common/component/legend/discrete-legend.d.ts +2 -0
  642. package/types/theme/builtin/common/component/legend/size-legend.d.ts +2 -0
  643. package/types/theme/builtin/common/component/map-label.d.ts +2 -0
  644. package/types/theme/builtin/common/component/mark-area.d.ts +2 -0
  645. package/types/theme/builtin/common/component/mark-line.d.ts +2 -0
  646. package/types/theme/builtin/common/component/mark-point.d.ts +2 -0
  647. package/types/theme/builtin/common/component/player.d.ts +2 -0
  648. package/types/theme/builtin/common/component/poptip.d.ts +2 -0
  649. package/types/theme/builtin/common/component/scroll-bar.d.ts +2 -0
  650. package/types/theme/builtin/common/component/title.d.ts +2 -0
  651. package/types/theme/builtin/common/component/tooltip.d.ts +2 -0
  652. package/types/theme/builtin/common/component/total-label.d.ts +2 -0
  653. package/types/theme/builtin/common/constants.d.ts +2 -0
  654. package/types/theme/builtin/common/legacy/index.d.ts +1 -0
  655. package/types/theme/builtin/common/legacy/legend/color-legend.d.ts +2 -0
  656. package/types/theme/builtin/common/legacy/legend/continuous.d.ts +2 -0
  657. package/types/theme/builtin/common/legacy/legend/index.d.ts +2 -0
  658. package/types/theme/builtin/common/legacy/legend/size-legend.d.ts +2 -0
  659. package/types/theme/builtin/common/mark.d.ts +3 -0
  660. package/types/theme/builtin/common/series/area.d.ts +2 -0
  661. package/types/theme/builtin/common/series/bar.d.ts +2 -0
  662. package/types/theme/builtin/common/series/bar3d.d.ts +2 -0
  663. package/types/theme/builtin/common/series/box-plot.d.ts +2 -0
  664. package/types/theme/builtin/common/series/circle-packing.d.ts +2 -0
  665. package/types/theme/builtin/common/series/circular-progress.d.ts +2 -0
  666. package/types/theme/builtin/common/series/correlation.d.ts +2 -0
  667. package/types/theme/builtin/common/series/dot.d.ts +2 -0
  668. package/types/theme/builtin/common/series/funnel.d.ts +2 -0
  669. package/types/theme/builtin/common/series/funnel3d.d.ts +2 -0
  670. package/types/theme/builtin/common/series/gauge-pointer.d.ts +2 -0
  671. package/types/theme/builtin/common/series/gauge.d.ts +2 -0
  672. package/types/theme/builtin/common/series/heatmap.d.ts +2 -0
  673. package/types/theme/builtin/common/series/index.d.ts +2 -0
  674. package/types/theme/builtin/common/series/line.d.ts +2 -0
  675. package/types/theme/builtin/common/series/linear-progress.d.ts +2 -0
  676. package/types/theme/builtin/common/series/link.d.ts +2 -0
  677. package/types/theme/builtin/common/series/map.d.ts +2 -0
  678. package/types/theme/builtin/common/series/pie.d.ts +2 -0
  679. package/types/theme/builtin/common/series/pie3d.d.ts +2 -0
  680. package/types/theme/builtin/common/series/radar.d.ts +2 -0
  681. package/types/theme/builtin/common/series/rangeColumn.d.ts +2 -0
  682. package/types/theme/builtin/common/series/rose.d.ts +2 -0
  683. package/types/theme/builtin/common/series/sankey.d.ts +2 -0
  684. package/types/theme/builtin/common/series/scatter.d.ts +2 -0
  685. package/types/theme/builtin/common/series/sunburst.d.ts +2 -0
  686. package/types/theme/builtin/common/series/treemap.d.ts +2 -0
  687. package/types/theme/builtin/common/series/waterfall.d.ts +2 -0
  688. package/types/theme/builtin/common/series/word-cloud.d.ts +2 -0
  689. package/types/theme/builtin/common/series/word-cloud3d.d.ts +2 -0
  690. package/types/theme/builtin/dark/color-scheme.d.ts +2 -0
  691. package/types/theme/builtin/dark/index.d.ts +2 -0
  692. package/types/theme/builtin/index.d.ts +15 -0
  693. package/types/theme/builtin/light/color-scheme.d.ts +2 -0
  694. package/types/theme/builtin/light/index.d.ts +2 -0
  695. package/types/theme/color-scheme/builtin/default.d.ts +2 -0
  696. package/types/theme/color-scheme/builtin/index.d.ts +2 -0
  697. package/types/theme/color-scheme/builtin/interface.d.ts +23 -0
  698. package/types/theme/color-scheme/index.d.ts +3 -0
  699. package/types/theme/color-scheme/interface.d.ts +30 -0
  700. package/types/theme/color-scheme/util.d.ts +10 -0
  701. package/types/theme/index.d.ts +4 -0
  702. package/types/theme/interface.d.ts +57 -0
  703. package/types/theme/theme-manager.d.ts +13 -0
  704. package/types/theme/util.d.ts +5 -0
  705. package/types/typings/common.d.ts +7 -0
  706. package/types/typings/coordinate.d.ts +9 -0
  707. package/types/typings/cursor.d.ts +1 -0
  708. package/types/typings/data.d.ts +2 -0
  709. package/types/typings/event.d.ts +1 -0
  710. package/types/typings/geo.d.ts +3 -0
  711. package/types/typings/group.d.ts +8 -0
  712. package/types/typings/index.d.ts +14 -0
  713. package/types/typings/interpolate.d.ts +5 -0
  714. package/types/typings/line-stroke.d.ts +3 -0
  715. package/types/typings/params.d.ts +17 -0
  716. package/types/typings/scale.d.ts +33 -0
  717. package/types/typings/shape.d.ts +27 -0
  718. package/types/typings/space.d.ts +19 -0
  719. package/types/typings/spec/chart.d.ts +61 -0
  720. package/types/typings/spec/common.d.ts +267 -0
  721. package/types/typings/spec/index.d.ts +4 -0
  722. package/types/typings/tooltip/common.d.ts +8 -0
  723. package/types/typings/tooltip/handler.d.ts +8 -0
  724. package/types/typings/tooltip/index.d.ts +6 -0
  725. package/types/typings/tooltip/label.d.ts +10 -0
  726. package/types/typings/tooltip/line.d.ts +18 -0
  727. package/types/typings/tooltip/position.d.ts +31 -0
  728. package/types/typings/tooltip/shape.d.ts +23 -0
  729. package/types/typings/tooltip/tooltip.d.ts +26 -0
  730. package/types/typings/visual.d.ts +285 -0
  731. package/types/util/array.d.ts +3 -0
  732. package/types/util/color.d.ts +3 -0
  733. package/types/util/data.d.ts +38 -0
  734. package/types/util/debug.d.ts +9 -0
  735. package/types/util/env.d.ts +7 -0
  736. package/types/util/hierarchy.d.ts +3 -0
  737. package/types/util/id.d.ts +2 -0
  738. package/types/util/image.d.ts +4 -0
  739. package/types/util/index.d.ts +22 -0
  740. package/types/util/math.d.ts +27 -0
  741. package/types/util/model.d.ts +4 -0
  742. package/types/util/object.d.ts +3 -0
  743. package/types/util/scale.d.ts +20 -0
  744. package/types/util/space.d.ts +14 -0
  745. package/types/util/spec/background.d.ts +4 -0
  746. package/types/util/spec/clone-deep.d.ts +1 -0
  747. package/types/util/spec/common.d.ts +5 -0
  748. package/types/util/spec/index.d.ts +7 -0
  749. package/types/util/spec/merge-spec.d.ts +5 -0
  750. package/types/util/spec/merge-theme.d.ts +6 -0
  751. package/types/util/spec/preprocess.d.ts +3 -0
  752. package/types/util/spec/transform.d.ts +3 -0
  753. package/types/util/style.d.ts +4 -0
  754. package/types/util/text.d.ts +5 -0
  755. package/types/util/type.d.ts +7 -0
  756. package/types/vchart-all.d.ts +2 -0
  757. package/types/vchart-simple.d.ts +3 -0
@@ -0,0 +1,57 @@
1
+ export { HOOK_EVENT as VGRAMMAR_HOOK_EVENT } from '@visactor/vgrammar-core';
2
+ export declare const BASE_EVENTS: string[];
3
+ export declare enum ChartEvent {
4
+ initialized = "initialized",
5
+ rendered = "rendered",
6
+ renderFinished = "renderFinished",
7
+ animationFinished = "animationFinished",
8
+ regionSeriesDataFilterOver = "regionSeriesDataFilterOver",
9
+ afterInitData = "afterInitData",
10
+ afterInitEvent = "afterInitEvent",
11
+ afterInitMark = "afterInitMark",
12
+ rawDataUpdate = "rawDataUpdate",
13
+ viewDataFilterOver = "viewDataFilterOver",
14
+ viewDataUpdate = "viewDataUpdate",
15
+ viewDataStatisticsUpdate = "viewDataStatisticsUpdate",
16
+ markDeltaYUpdate = "markDeltaYUpdate",
17
+ viewDataLabelUpdate = "viewDataLabelUpdate",
18
+ scaleDomainUpdate = "scaleDomainUpdate",
19
+ scaleUpdate = "scaleUpdate",
20
+ dataZoomChange = "dataZoomChange",
21
+ drill = "drill",
22
+ layoutStart = "layoutStart",
23
+ layoutEnd = "layoutEnd",
24
+ layoutRectUpdate = "layoutRectUpdate",
25
+ playerPlay = "playerPlay",
26
+ playerPause = "playerPause",
27
+ playerEnd = "playerEnd",
28
+ playerChange = "playerChange",
29
+ playerForward = "playerForward",
30
+ playerBackward = "playerBackward",
31
+ scrollBarChange = "scrollBarChange",
32
+ brushStart = "brushStart",
33
+ brushChange = "brushChange",
34
+ brushEnd = "brushEnd",
35
+ legendSelectedDataChange = "legendSelectedDataChange",
36
+ legendFilter = "legendFilter",
37
+ legendItemClick = "legendItemClick",
38
+ legendItemHover = "legendItemHover",
39
+ legendItemUnHover = "legendItemUnHover",
40
+ tooltipShow = "tooltipShow",
41
+ tooltipHide = "tooltipHide",
42
+ tooltipRelease = "tooltipRelease",
43
+ afterResize = "afterResize",
44
+ afterRender = "afterRender",
45
+ afterLayout = "afterLayout"
46
+ }
47
+ export declare enum Event_Source_Type {
48
+ chart = "chart",
49
+ window = "window",
50
+ canvas = "canvas"
51
+ }
52
+ export declare enum Event_Bubble_Level {
53
+ vchart = "vchart",
54
+ chart = "chart",
55
+ model = "model",
56
+ mark = "mark"
57
+ }
@@ -0,0 +1,14 @@
1
+ export declare const FUNNEL_TRANSFORM_RATIO: string;
2
+ export declare const FUNNEL_REACH_RATIO: string;
3
+ export declare const FUNNEL_HEIGHT_RATIO: string;
4
+ export declare const FUNNEL_VALUE_RATIO: string;
5
+ export declare const FUNNEL_LAST_VALUE_RATIO: string;
6
+ export declare const FUNNEL_NEXT_VALUE_RATIO: string;
7
+ export declare const FUNNEL_LAST_VALUE: string;
8
+ export declare const FUNNEL_CURRENT_VALUE: string;
9
+ export declare const FUNNEL_NEXT_VALUE: string;
10
+ export declare const FUNNEL_TRANSFORM_LEVEL: string;
11
+ export declare const FUNNEL_LABEL_LINE_LENGTH = 20;
12
+ export declare const FUNNEL_LABEL_SPACE_WIDTH = 5;
13
+ export declare const FUNNEL_MAX_SIZE = "80%";
14
+ export declare const FUNNEL_MIN_SIZE = 0;
@@ -0,0 +1,3 @@
1
+ export declare const DEFAULT_HIERARCHY_DEPTH: string;
2
+ export declare const DEFAULT_HIERARCHY_ROOT: string;
3
+ export declare const DEFAULT_HIERARCHY_ROOT_INDEX: string;
@@ -0,0 +1,110 @@
1
+ export declare const DEFAULT_MEASURE_CANVAS_ID: string;
2
+ export declare const DEFAULT_DATA_INDEX: string;
3
+ export declare const DEFAULT_DATA_KEY: string;
4
+ export declare const DEFAULT_DATA_SERIES_FIELD: string;
5
+ export declare const DEFAULT_SERIES_STYLE_NAME: string;
6
+ export declare enum AttributeLevel {
7
+ Default = 0,
8
+ Theme = 1,
9
+ Chart = 2,
10
+ Base_Series = 3,
11
+ Series = 4,
12
+ Mark = 5,
13
+ User_Chart = 6,
14
+ User_Series = 7,
15
+ User_Mark = 8,
16
+ Built_In = 99
17
+ }
18
+ export declare const STACK_FIELD_START: string;
19
+ export declare const STACK_FIELD_END: string;
20
+ export declare const STACK_FIELD_START_PERCENT: string;
21
+ export declare const STACK_FIELD_END_PERCENT: string;
22
+ export declare const STACK_FIELD_START_OffsetSilhouette: string;
23
+ export declare const STACK_FIELD_END_OffsetSilhouette: string;
24
+ export declare const STACK_FIELD_TOTAL: string;
25
+ export declare const STACK_FIELD_TOTAL_PERCENT: string;
26
+ export declare const STACK_FIELD_TOTAL_TOP: string;
27
+ export declare const SEGMENT_FIELD_START: string;
28
+ export declare const SEGMENT_FIELD_END: string;
29
+ export declare enum LayoutZIndex {
30
+ Axis_Grid = 50,
31
+ CrossHair_Grid = 100,
32
+ Region = 450,
33
+ Mark = 300,
34
+ Node = 400,
35
+ Axis = 100,
36
+ MarkLine = 500,
37
+ MarkArea = 100,
38
+ MarkPoint = 500,
39
+ DataZoom = 500,
40
+ ScrollBar = 500,
41
+ Player = 500,
42
+ Legend = 500,
43
+ CrossHair = 500,
44
+ Indicator = 500,
45
+ Title = 500,
46
+ Label = 500,
47
+ Brush = 500,
48
+ CustomMark = 500
49
+ }
50
+ export declare enum LayoutLevel {
51
+ Indicator = 10,
52
+ Region = 20,
53
+ Axis = 30,
54
+ DataZoom = 40,
55
+ Player = 40,
56
+ ScrollBar = 40,
57
+ Legend = 50,
58
+ Title = 70,
59
+ CustomMark = 70
60
+ }
61
+ export declare const GradientType: string[];
62
+ export declare const DEFAULT_LINEAR_GRADIENT_CONFIG: {
63
+ x0: number;
64
+ y0: number;
65
+ x1: number;
66
+ y1: number;
67
+ };
68
+ export declare const DEFAULT_RADIAL_GRADIENT_CONFIG: {
69
+ x0: number;
70
+ y0: number;
71
+ x1: number;
72
+ y1: number;
73
+ r0: number;
74
+ r1: number;
75
+ };
76
+ export declare const DEFAULT_CONICAL_GRADIENT_CONFIG: {
77
+ x: number;
78
+ y: number;
79
+ startAngle: number;
80
+ endAngle: number;
81
+ };
82
+ export declare const DEFAULT_GRADIENT_CONFIG: {
83
+ linear: {
84
+ x0: number;
85
+ y0: number;
86
+ x1: number;
87
+ y1: number;
88
+ };
89
+ radial: {
90
+ x0: number;
91
+ y0: number;
92
+ x1: number;
93
+ y1: number;
94
+ r0: number;
95
+ r1: number;
96
+ };
97
+ conical: {
98
+ x: number;
99
+ y: number;
100
+ startAngle: number;
101
+ endAngle: number;
102
+ };
103
+ };
104
+ export * from './base';
105
+ export * from './label';
106
+ export * from './polar';
107
+ export * from './layout';
108
+ export * from './event';
109
+ export * from './waterfall';
110
+ export * from './correlation';
@@ -0,0 +1,6 @@
1
+ export declare const DEFAULT_LABEL_LIMIT: string;
2
+ export declare const DEFAULT_LABEL_ALIGN: string;
3
+ export declare const DEFAULT_LABEL_TEXT: string;
4
+ export declare const DEFAULT_LABEL_VISIBLE: string;
5
+ export declare const DEFAULT_LABEL_X: string;
6
+ export declare const DEFAULT_LABEL_Y: string;
@@ -0,0 +1,2 @@
1
+ export declare const USER_LAYOUT_RECT_LEVEL = 9;
2
+ export declare const DEFAULT_LAYOUT_RECT_LEVEL = 0;
@@ -0,0 +1,4 @@
1
+ import type { IAggrType } from '../component/marker/interface';
2
+ import type { IRegressType } from '../component/marker/mark-area/interface';
3
+ export declare const AGGR_TYPE: IAggrType[];
4
+ export declare const REGRESS_TYPE: IRegressType[];
@@ -0,0 +1,23 @@
1
+ export declare const ARC_TRANSFORM_VALUE: string;
2
+ export declare const ARC_RATIO: string;
3
+ export declare const ARC_START_ANGLE: string;
4
+ export declare const ARC_END_ANGLE: string;
5
+ export declare const ARC_K: string;
6
+ export declare const ARC_LABEL_HOVER_AX: string;
7
+ export declare const ARC_LABEL_HOVER_AY: string;
8
+ export declare const ARC_LABEL_POINT_AX: string;
9
+ export declare const ARC_LABEL_POINT_AY: string;
10
+ export declare const ARC_LABEL_POINT_BX: string;
11
+ export declare const ARC_LABEL_POINT_BY: string;
12
+ export declare const ARC_LABEL_POINT_CX: string;
13
+ export declare const ARC_LABEL_POINT_CY: string;
14
+ export declare const ARC_LABEL_SELECTED_AX: string;
15
+ export declare const ARC_LABEL_SELECTED_AY: string;
16
+ export declare const ARC_MIDDLE_ANGLE: string;
17
+ export declare const ARC_QUADRANT: string;
18
+ export declare const ARC_RADIAN: string;
19
+ export declare const POLAR_START_RADIAN: number;
20
+ export declare const POLAR_END_RADIAN: number;
21
+ export declare const POLAR_START_ANGLE = -90;
22
+ export declare const POLAR_END_ANGLE = 270;
23
+ export declare const POLAR_DEFAULT_RADIUS = 0.6;
@@ -0,0 +1,7 @@
1
+ import { ScaleEnum } from '@visactor/vscale';
2
+ export declare const SCATTER_DEFAULT_SIZE = 10;
3
+ export declare const SCATTER_DEFAULT_RANGE_SIZE: number[];
4
+ export declare const SCATTER_DEFAULT_SIZE_SCALE_TYPE = ScaleEnum.Linear;
5
+ export declare const SCATTER_DEFAULT_SHAPE = "circle";
6
+ export declare const SCATTER_DEFAULT_SHAPE_SCALE_TYPE = ScaleEnum.Ordinal;
7
+ export declare const SCATTER_DEFAULT_RANGE_SHAPE: string[];
@@ -0,0 +1 @@
1
+ export declare const SCROLL_BAR_DEFAULT_SIZE = 12;
@@ -0,0 +1 @@
1
+ export declare const SUNBURST_AUTO_VISIBLE_DEFAULT_THRESHOLD = 10;
@@ -0,0 +1 @@
1
+ export declare const WaterfallDefaultSeriesField: string;
@@ -0,0 +1,7 @@
1
+ export declare const WORD_CLOUD_ANGLE: string;
2
+ export declare const WORD_CLOUD_FILLING_ANGLE: string;
3
+ export declare const WORD_CLOUD_WEIGHT: string;
4
+ export declare const WORDCLOUD_COLOR: string;
5
+ export declare const WORDCLOUD_DATA_TOTAL: string;
6
+ export declare const WORD_CLOUD_TEXT: string;
7
+ export declare const WORDCLOUD_SHAPE_DATA_TOTAL: string;
@@ -0,0 +1,48 @@
1
+ import type { IChartConstructor, IChartOption, IChart } from '../chart/interface';
2
+ import type { ISeriesConstructor, ISeriesOption } from '../series/interface';
3
+ import type { IComponentConstructor } from '../component/interface';
4
+ import type { IMarkOption, MarkConstructor } from '../mark/interface';
5
+ import type { IRegion, IRegionConstructor } from '../region/interface';
6
+ import type { IModelOption } from '../model/interface';
7
+ import type { Transform, Parser } from '@visactor/vdataset';
8
+ import type { ILayoutConstructor } from '../layout/interface';
9
+ import type { MarkAnimationSpec } from '@visactor/vgrammar-core';
10
+ export declare class Factory {
11
+ private static _charts;
12
+ private static _series;
13
+ private static _components;
14
+ private static _marks;
15
+ private static _regions;
16
+ private static _animations;
17
+ private static _implements;
18
+ static transforms: {
19
+ [key: string]: Transform;
20
+ };
21
+ static dataParser: {
22
+ [key: string]: Parser;
23
+ };
24
+ static _layout: {
25
+ [key: string]: ILayoutConstructor;
26
+ };
27
+ static registerChart(key: string, chart: IChartConstructor): void;
28
+ static registerSeries(key: string, series: ISeriesConstructor): void;
29
+ static registerComponent(key: string, cmp: IComponentConstructor): void;
30
+ static registerMark(key: string, mark: MarkConstructor): void;
31
+ static registerRegion(key: string, region: IRegionConstructor): void;
32
+ static registerTransform(key: string, transform: Transform): void;
33
+ static registerLayout(key: string, layout: ILayoutConstructor): void;
34
+ static registerAnimation(key: string, animation: (params?: any, preset?: any) => MarkAnimationSpec): void;
35
+ static registerImplement(key: string, implement: (...args: any) => void): void;
36
+ static createChart(chartType: string, spec: any, options: IChartOption): IChart | null;
37
+ static createRegion(regionType: string, spec: any, options: IModelOption): IRegion | null;
38
+ static createSeries(seriesType: string, spec: any, options: ISeriesOption): import("../series/interface").ISeries;
39
+ static createMark(markType: string, name: string, options: IMarkOption): import("../mark/interface").IMark;
40
+ static getComponents(): IComponentConstructor[];
41
+ static getComponentInKey(name: string): IComponentConstructor;
42
+ static getLayout(): ILayoutConstructor[];
43
+ static getLayoutInKey(name: string): ILayoutConstructor;
44
+ static getSeries(): ISeriesConstructor[];
45
+ static getSeriesInType(type: string): ISeriesConstructor;
46
+ static getAnimationInKey(key: string): (params?: any, preset?: any) => MarkAnimationSpec;
47
+ static getImplementInKey(key: string): (...args: any) => void;
48
+ }
@@ -0,0 +1,12 @@
1
+ import { VChart } from './vchart';
2
+ import { Factory } from './factory';
3
+ export { VChart, Factory };
4
+ export declare const version: string;
5
+ export type { IVChart } from './interface';
6
+ export type { IStateSpec, StateValueType } from '../compile/mark';
7
+ export * from '../typings/spec/common';
8
+ export * from '../event/interface';
9
+ export * from '../theme/interface';
10
+ export * from '../typings/spec/index';
11
+ export * from '../theme/index';
12
+ export { vglobal } from '@visactor/vrender-core';
@@ -0,0 +1,10 @@
1
+ import type { MaybeArray } from '../typings';
2
+ import type { IVChart } from './interface';
3
+ export declare class InstanceManager {
4
+ static readonly instances: Map<number, IVChart>;
5
+ static registerInstance(instance: IVChart): void;
6
+ static unregisterInstance(instance: IVChart): void;
7
+ static getInstance(id: number): IVChart | undefined;
8
+ static instanceExist(id: number): boolean;
9
+ static forEach(callbackfn: (instance: IVChart, id: number, map: Map<number, IVChart>) => void, excludeId?: MaybeArray<number>, thisArg?: any): void;
10
+ }
@@ -0,0 +1,92 @@
1
+ import type { DataSet } from '@visactor/vdataset';
2
+ import type { IParserOptions } from '@visactor/vdataset/es/parser';
3
+ import type { Datum, IMarkStateSpec, IPoint, IRegionQuerier, IShowTooltipOption, ISpec, ITooltipHandler, Maybe, MaybeArray, StringOrNumber } from '../typings';
4
+ import type { IMorphConfig } from '../animation/spec';
5
+ import type { IBoundsLike } from '@visactor/vutils';
6
+ import type { EventCallback, EventParams, EventQuery, EventType } from '../event/interface';
7
+ import type { IMark } from '../mark/interface';
8
+ import type { ISeries } from '../series/interface/series';
9
+ import type { ITheme } from '../theme';
10
+ import type { IComponent } from '../component/interface';
11
+ import type { LayoutCallBack } from '../layout/interface';
12
+ import type { Compiler } from '../compile/compiler';
13
+ import type { IChart } from '../chart/interface';
14
+ import type { IGradientColor, Stage } from '@visactor/vrender-core';
15
+ import type { IThemeColorScheme } from '../theme/color-scheme/interface';
16
+ export type DataLinkSeries = {
17
+ seriesId?: StringOrNumber;
18
+ seriesIndex?: number;
19
+ };
20
+ export type DataLinkAxis = {
21
+ axisId?: StringOrNumber;
22
+ axisIndex?: number;
23
+ };
24
+ export interface IVChart {
25
+ readonly id: number;
26
+ renderSync: (morphConfig?: IMorphConfig) => IVChart;
27
+ renderAsync: (morphConfig?: IMorphConfig) => Promise<IVChart>;
28
+ updateData: (id: StringOrNumber, data: Datum[] | string, options?: IParserOptions) => Promise<IVChart>;
29
+ updateDataInBatches: (list: {
30
+ id: string;
31
+ data: Datum[];
32
+ options?: IParserOptions;
33
+ }[]) => Promise<IVChart>;
34
+ updateDataSync: (id: StringOrNumber, data: Datum[], options?: IParserOptions) => IVChart;
35
+ updateSpec: (spec: ISpec, forceMerge?: boolean, morphConfig?: IMorphConfig) => Promise<IVChart>;
36
+ updateModelSpecSync: (filter: string | {
37
+ type: string;
38
+ index: number;
39
+ }, spec: unknown, forceMerge?: boolean, morphConfig?: IMorphConfig) => IVChart;
40
+ updateModelSpec: (filter: string | {
41
+ type: string;
42
+ index: number;
43
+ }, spec: unknown, forceMerge?: boolean, morphConfig?: IMorphConfig) => Promise<IVChart>;
44
+ updateViewBox: (viewBox: IBoundsLike, reRender?: boolean) => IVChart;
45
+ resize: (width: number, height: number) => Promise<IVChart>;
46
+ release: () => void;
47
+ on: ((eType: EventType, handler: EventCallback<EventParams>) => void) & ((eType: EventType, query: EventQuery, handler: EventCallback<EventParams>) => void);
48
+ off: (eType: EventType, handler?: EventCallback<EventParams>) => void;
49
+ updateState: (state: Record<string, Omit<IMarkStateSpec<unknown>, 'style'>>, filter?: (series: ISeries, mark: IMark, stateKey: string) => boolean) => void;
50
+ setSelected: (datum: MaybeArray<any> | null, filter?: (series: ISeries, mark: IMark) => boolean, region?: IRegionQuerier) => void;
51
+ setHovered: (datum: MaybeArray<Datum> | null, filter?: (series: ISeries, mark: IMark) => boolean, region?: IRegionQuerier) => void;
52
+ getCurrentTheme: () => ITheme;
53
+ getCurrentThemeName: () => string;
54
+ setCurrentTheme: (name: string) => Promise<IVChart>;
55
+ setTooltipHandler: (tooltipHandler: ITooltipHandler) => void;
56
+ getTooltipHandlerByUser: () => ITooltipHandler | undefined;
57
+ getTooltipHandler: () => ITooltipHandler | undefined;
58
+ showTooltip: (datum: Datum, options: IShowTooltipOption) => boolean;
59
+ hideTooltip: () => boolean;
60
+ getLegendDataById: (id: string) => Datum[];
61
+ getLegendDataByIndex: (index?: number) => Datum[];
62
+ getLegendSelectedDataById: (id: string) => StringOrNumber[];
63
+ getLegendSelectedDataByIndex: (index?: number) => StringOrNumber[];
64
+ setLegendSelectedDataById: (id: string, selectedData: StringOrNumber[]) => void;
65
+ setLegendSelectedDataByIndex: (index: number, selectedData: StringOrNumber[]) => void;
66
+ getDataURL: () => Promise<any>;
67
+ exportImg: (name?: string) => Promise<void>;
68
+ exportCanvas: () => HTMLCanvasElement | undefined;
69
+ getImageBuffer: () => void;
70
+ setLayout: (layout: LayoutCallBack) => void;
71
+ reLayout: () => void;
72
+ getCompiler: () => Compiler;
73
+ getChart: () => Maybe<IChart>;
74
+ getStage: () => Stage;
75
+ getCanvas: () => HTMLCanvasElement | undefined;
76
+ getContainer: () => Maybe<HTMLElement>;
77
+ getComponents: () => IComponent[];
78
+ getDataSet: () => Maybe<DataSet>;
79
+ convertDatumToPosition: (datum: Datum, dataLinkInfo?: DataLinkSeries, isRelativeToCanvas?: boolean) => IPoint | null;
80
+ convertValueToPosition: ((value: StringOrNumber, dataLinkInfo: DataLinkAxis, isRelativeToCanvas?: boolean) => number | null) & ((value: [StringOrNumber, StringOrNumber], dataLinkInfo: DataLinkSeries, isRelativeToCanvas?: boolean) => IPoint | null);
81
+ stopAnimation: () => void;
82
+ pauseAnimation: () => void;
83
+ resumeAnimation: () => void;
84
+ }
85
+ export interface IGlobalConfig {
86
+ uniqueTooltip?: boolean;
87
+ }
88
+ export interface IChartLevelTheme {
89
+ background?: string | IGradientColor;
90
+ fontFamily?: string;
91
+ colorScheme?: IThemeColorScheme;
92
+ }
@@ -0,0 +1,3 @@
1
+ export declare const VCHART_UTILS: {
2
+ measureText: (text: string, textSpec?: Partial<import("@visactor/vrender-core").ITextGraphicAttribute>, option?: Partial<import("@visactor/vutils").ITextMeasureOption>, useNaiveCanvas?: boolean) => import("@visactor/vutils").ITextSize;
3
+ };
@@ -0,0 +1,149 @@
1
+ import type { ISeries } from '../series/interface/series';
2
+ import type { ILayoutConstructor, LayoutCallBack } from '../layout/interface';
3
+ import type { IDataValues, IMarkStateSpec, IInitOption } from '../typings/spec/common';
4
+ import type { ISeriesConstructor } from '../series/interface';
5
+ import type { DimensionIndexOption, IChart, IChartConstructor } from '../chart/interface';
6
+ import type { IComponentConstructor } from '../component/interface';
7
+ import type { EventCallback, EventParams, EventQuery, EventType } from '../event/interface';
8
+ import type { IParserOptions } from '@visactor/vdataset/es/parser';
9
+ import type { Transform } from '@visactor/vdataset';
10
+ import { DataSet, DataView } from '@visactor/vdataset';
11
+ import type { Stage } from '@visactor/vrender-core';
12
+ import type { GeoSourceType } from '../typings/geo';
13
+ import type { GeoSourceOption } from '../series/map/geo-source';
14
+ import type { IMark, MarkConstructor } from '../mark/interface';
15
+ import type { ITooltipHandler } from '../typings/tooltip';
16
+ import type { Datum, IPoint, IRegionQuerier, IShowTooltipOption, ISpec, Maybe, MaybeArray, StringOrNumber } from '../typings';
17
+ import type { IBoundsLike, ILogger } from '@visactor/vutils';
18
+ import { ThemeManager } from '../theme/theme-manager';
19
+ import type { ITheme } from '../theme';
20
+ import type { IModel, IUpdateSpecResult } from '../model/interface';
21
+ import { Compiler } from '../compile/compiler';
22
+ import type { IMorphConfig } from '../animation/spec';
23
+ import type { DataLinkAxis, DataLinkSeries, IGlobalConfig, IVChart } from './interface';
24
+ import { InstanceManager } from './instance-manager';
25
+ export declare class VChart implements IVChart {
26
+ readonly id: number;
27
+ static useRegisters(comps: (() => void)[]): void;
28
+ static useChart(charts: IChartConstructor[]): void;
29
+ static useSeries(series: ISeriesConstructor[]): void;
30
+ static useComponent(components: IComponentConstructor[]): void;
31
+ static useMark(marks: MarkConstructor[]): void;
32
+ static useLayout(layouts: ILayoutConstructor[]): void;
33
+ static registerDataSetTransform(name: string, transform: Transform): void;
34
+ static registerMap(key: string, source: GeoSourceType, option?: GeoSourceOption): void;
35
+ static unregisterMap(key: string): void;
36
+ static getMap(key: string): GeoSourceType;
37
+ static hideTooltip(excludeId?: MaybeArray<number>): void;
38
+ static getLogger(): ILogger;
39
+ static readonly InstanceManager: typeof InstanceManager;
40
+ static readonly ThemeManager: typeof ThemeManager;
41
+ static globalConfig: IGlobalConfig;
42
+ static readonly Utils: {
43
+ measureText: (text: string, textSpec?: Partial<import("@visactor/vrender-core").ITextGraphicAttribute>, option?: Partial<import("@visactor/vutils").ITextMeasureOption>, useNaiveCanvas?: boolean) => import("@visactor/vutils").ITextSize;
44
+ };
45
+ protected _spec: any;
46
+ private _viewBox;
47
+ private _chart;
48
+ private _compiler;
49
+ private _event;
50
+ private _userEvents;
51
+ private _eventDispatcher;
52
+ private _dataSet;
53
+ getDataSet(): DataSet;
54
+ private _container?;
55
+ private _canvas?;
56
+ private _stage?;
57
+ private _autoSize;
58
+ private _option;
59
+ private _curSize;
60
+ private _observer;
61
+ private _currentThemeName;
62
+ private _currentChartLevelTheme;
63
+ private _onError?;
64
+ private _context;
65
+ constructor(spec: ISpec, options: IInitOption);
66
+ private _setSpec;
67
+ private _initChart;
68
+ private _releaseData;
69
+ private _bindVGrammarViewEvent;
70
+ private _bindResizeEvent;
71
+ private _unBindResizeEvent;
72
+ private _getCurSize;
73
+ private _doResize;
74
+ private _onResize;
75
+ private _initDataSet;
76
+ updateCustomConfigAndRerender(modifyConfig: () => IUpdateSpecResult | undefined, morphConfig?: IMorphConfig): Promise<IVChart>;
77
+ updateCustomConfigAndRerenderSync(modifyConfig: () => IUpdateSpecResult | undefined, morphConfig?: IMorphConfig): IVChart;
78
+ protected _reCompile(updateResult: IUpdateSpecResult): void;
79
+ renderSync(morphConfig?: IMorphConfig): IVChart;
80
+ renderAsync(morphConfig?: IMorphConfig): Promise<IVChart>;
81
+ release(): void;
82
+ updateData(id: StringOrNumber, data: DataView | Datum[] | string, options?: IParserOptions): Promise<IVChart>;
83
+ updateDataInBatches(list: {
84
+ id: string;
85
+ data: Datum[];
86
+ options?: IParserOptions;
87
+ }[]): Promise<IVChart>;
88
+ updateDataSync(id: StringOrNumber, data: DataView | Datum[], options?: IParserOptions): IVChart;
89
+ updateFullDataSync(data: IDataValues | IDataValues[], reRender?: boolean): IVChart;
90
+ updateFullData(data: IDataValues | IDataValues[], reRender?: boolean): Promise<IVChart>;
91
+ updateSpec(spec: ISpec, forceMerge?: boolean, morphConfig?: IMorphConfig): Promise<IVChart>;
92
+ updateSpecSync(spec: ISpec, forceMerge?: boolean, morphConfig?: IMorphConfig): IVChart;
93
+ updateModelSpec(filter: string | {
94
+ type: string;
95
+ index: number;
96
+ } | ((model: IModel) => boolean), spec: unknown, forceMerge?: boolean, morphConfig?: IMorphConfig): Promise<IVChart>;
97
+ updateModelSpecSync(filter: string | {
98
+ type: string;
99
+ index: number;
100
+ } | ((model: IModel) => boolean), spec: unknown, forceMerge?: boolean, morphConfig?: IMorphConfig): IVChart;
101
+ protected _updateModelSpec(model: IModel, spec: unknown, sync?: boolean, forceMerge?: boolean, morphConfig?: IMorphConfig): IVChart | Promise<IVChart>;
102
+ resize(width: number, height: number): Promise<IVChart>;
103
+ updateViewBox(viewBox: IBoundsLike, reRender?: boolean, reLayout?: boolean): IVChart;
104
+ on(eType: EventType, handler: EventCallback<EventParams>): void;
105
+ on(eType: EventType, query: EventQuery, handler: EventCallback<EventParams>): void;
106
+ off(eType: string, handler?: EventCallback<EventParams>): void;
107
+ updateState(state: Record<string, Omit<IMarkStateSpec<unknown>, 'style'>>, filter?: (series: ISeries, mark: IMark, stateKey: string) => boolean): void;
108
+ setSelected(datum: MaybeArray<any> | null, filter?: (series: ISeries, mark: IMark) => boolean, region?: IRegionQuerier): void;
109
+ setHovered(datum: MaybeArray<Datum> | null, filter?: (series: ISeries, mark: IMark) => boolean, region?: IRegionQuerier): void;
110
+ private _updateCurrentTheme;
111
+ private _shouldChartResize;
112
+ private _getBackground;
113
+ getCurrentTheme(): ITheme;
114
+ getCurrentThemeName(): string;
115
+ setCurrentTheme(name: string): Promise<IVChart>;
116
+ setCurrentThemeSync(name: string): IVChart;
117
+ private _getTooltipComponent;
118
+ setTooltipHandler(tooltipHandler: ITooltipHandler): void;
119
+ getTooltipHandlerByUser(): ITooltipHandler | undefined;
120
+ getTooltipHandler(): ITooltipHandler | undefined;
121
+ showTooltip(datum: Datum, options: IShowTooltipOption): boolean;
122
+ hideTooltip(): boolean;
123
+ getLegendDataById(id: string): Datum[];
124
+ getLegendDataByIndex(index?: number): Datum[];
125
+ getLegendSelectedDataById(id: string): StringOrNumber[];
126
+ getLegendSelectedDataByIndex(index?: number): StringOrNumber[];
127
+ setLegendSelectedDataById(id: string, selectedData: StringOrNumber[]): void;
128
+ setLegendSelectedDataByIndex(index: number, selectedData: StringOrNumber[]): void;
129
+ getDataURL(): Promise<string>;
130
+ exportImg(name?: string): Promise<void>;
131
+ exportCanvas(): HTMLCanvasElement | undefined;
132
+ getImageBuffer(): any;
133
+ setLayout(layout: LayoutCallBack): void;
134
+ reLayout(): void;
135
+ getCompiler(): Compiler;
136
+ getChart(): IChart;
137
+ getStage(): Stage;
138
+ getCanvas(): HTMLCanvasElement | undefined;
139
+ getContainer(): Maybe<HTMLElement>;
140
+ getComponents(): import("../component/interface").IComponent[];
141
+ setDimensionIndex(value: StringOrNumber, opt?: DimensionIndexOption): void;
142
+ stopAnimation(): void;
143
+ pauseAnimation(): void;
144
+ resumeAnimation(): void;
145
+ convertDatumToPosition(datum: Datum, dataLinkInfo?: DataLinkSeries, isRelativeToCanvas?: boolean): IPoint | null;
146
+ convertValueToPosition(value: StringOrNumber, dataLinkInfo: DataLinkAxis, isRelativeToCanvas?: boolean): number | null;
147
+ convertValueToPosition(value: [StringOrNumber, StringOrNumber], dataLinkInfo: DataLinkSeries, isRelativeToCanvas?: boolean): IPoint | null;
148
+ }
149
+ export declare const registerVChartCore: () => void;
@@ -0,0 +1,21 @@
1
+ import type { utilFunctionCtx } from '../typings/params';
2
+ import { DataSet, DataView } from '@visactor/vdataset';
3
+ import type { IDataViewOptions } from '@visactor/vdataset';
4
+ import type { IDataValues } from '../typings/spec/common';
5
+ export declare function initializeData(): void;
6
+ export declare function initCSVData(): void;
7
+ export declare function initData(): void;
8
+ export declare function initFoldData(): void;
9
+ export declare function dataViewFromDataView(rawData: DataView, dataSet?: DataSet, op?: IDataViewOptions): DataView;
10
+ export declare function dataToDataView(data: DataView | IDataValues, dataSet: DataSet, sourceDataViews?: DataView[], ctx?: utilFunctionCtx): DataView;
11
+ export declare function updateDataViewInData(dataView: DataView, data: IDataValues, forceMerge: boolean): void;
12
+ export declare enum TransformLevel {
13
+ copyDataView = -10,
14
+ treemapFilter = -8,
15
+ treemapFlatten = -7,
16
+ dotObjFlat = -7,
17
+ linkDotInfo = -7,
18
+ sankeyLayout = -7,
19
+ dataZoomFilter = -6,
20
+ legendFilter = -5
21
+ }
@@ -0,0 +1,2 @@
1
+ import type { Parser } from '@visactor/vdataset';
2
+ export declare const arrayParser: Parser;
@@ -0,0 +1,2 @@
1
+ import type { Parser } from '@visactor/vdataset';
2
+ export declare const scaleParser: Parser;
@@ -0,0 +1,3 @@
1
+ import type { DataSet, Parser, Transform } from '@visactor/vdataset';
2
+ export declare function registerDataSetInstanceTransform(dataSet: DataSet, name: string, transform: Transform): void;
3
+ export declare function registerDataSetInstanceParser(dataSet: DataSet, name: string, parse: Parser): void;
@@ -0,0 +1,12 @@
1
+ export type AddVChartPropertyContext = {
2
+ keyMap: Map<string, number>;
3
+ needDefaultSeriesField: boolean;
4
+ defaultSeriesField?: string;
5
+ getKey?: (d: any, i: number, context: AddVChartPropertyContext) => string;
6
+ categoryField?: string;
7
+ };
8
+ export interface IAddVChartPropertyOpt {
9
+ beforeCall: () => AddVChartPropertyContext;
10
+ call: (d: any, i: number, context: AddVChartPropertyContext) => void;
11
+ }
12
+ export declare const addVChartProperty: (data: Array<any>, op: IAddVChartPropertyOpt) => any[];