@visactor/vchart 1.10.0-alpha.1 → 1.10.0-alpha.5

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 (1068) hide show
  1. package/build/es5/index.js +1 -1
  2. package/build/index.js +51324 -49290
  3. package/build/index.min.js +1 -1
  4. package/build/tsconfig.tsbuildinfo +1 -1
  5. package/cjs/animation/utils.js +5 -5
  6. package/cjs/animation/utils.js.map +1 -1
  7. package/cjs/chart/bar/bar-transformer.d.ts +1 -0
  8. package/cjs/chart/bar/bar-transformer.js +19 -2
  9. package/cjs/chart/bar/bar-transformer.js.map +1 -1
  10. package/cjs/chart/bar/interface.d.ts +3 -0
  11. package/cjs/chart/bar/interface.js.map +1 -1
  12. package/cjs/chart/base/base-chart-transformer.js +10 -12
  13. package/cjs/chart/base/base-chart-transformer.js.map +1 -1
  14. package/cjs/chart/base/base-chart.d.ts +2 -2
  15. package/cjs/chart/base/base-chart.js +4 -2
  16. package/cjs/chart/base/base-chart.js.map +1 -1
  17. package/cjs/chart/base/util.d.ts +1 -1
  18. package/cjs/chart/base/util.js +20 -10
  19. package/cjs/chart/base/util.js.map +1 -1
  20. package/cjs/chart/cartesian/cartesian-transformer.d.ts +1 -0
  21. package/cjs/chart/cartesian/cartesian-transformer.js +10 -7
  22. package/cjs/chart/cartesian/cartesian-transformer.js.map +1 -1
  23. package/cjs/chart/interface/chart.d.ts +1 -1
  24. package/cjs/chart/interface/chart.js.map +1 -1
  25. package/cjs/chart/polar/polar-transformer.js.map +1 -1
  26. package/cjs/chart/progress/circular/circular-progress-transformer.js +2 -0
  27. package/cjs/chart/progress/circular/circular-progress-transformer.js.map +1 -1
  28. package/cjs/compile/compiler.d.ts +1 -1
  29. package/cjs/compile/compiler.js +8 -4
  30. package/cjs/compile/compiler.js.map +1 -1
  31. package/cjs/compile/mark/compilable-mark.d.ts +4 -1
  32. package/cjs/compile/mark/compilable-mark.js +9 -1
  33. package/cjs/compile/mark/compilable-mark.js.map +1 -1
  34. package/cjs/compile/mark/interface.d.ts +4 -1
  35. package/cjs/compile/mark/interface.js.map +1 -1
  36. package/cjs/component/axis/base-axis.d.ts +10 -59
  37. package/cjs/component/axis/base-axis.js +112 -88
  38. package/cjs/component/axis/base-axis.js.map +1 -1
  39. package/cjs/component/axis/cartesian/axis.d.ts +1 -5
  40. package/cjs/component/axis/cartesian/axis.js +9 -31
  41. package/cjs/component/axis/cartesian/axis.js.map +1 -1
  42. package/cjs/component/axis/cartesian/band-axis.d.ts +5 -0
  43. package/cjs/component/axis/cartesian/band-axis.js +27 -5
  44. package/cjs/component/axis/cartesian/band-axis.js.map +1 -1
  45. package/cjs/component/axis/cartesian/interface/spec.d.ts +5 -0
  46. package/cjs/component/axis/cartesian/interface/spec.js.map +1 -1
  47. package/cjs/component/axis/cartesian/log-axis.js +2 -1
  48. package/cjs/component/axis/cartesian/log-axis.js.map +1 -1
  49. package/cjs/component/axis/cartesian/time-axis.d.ts +1 -1
  50. package/cjs/component/axis/cartesian/time-axis.js +3 -3
  51. package/cjs/component/axis/cartesian/time-axis.js.map +1 -1
  52. package/cjs/component/axis/cartesian/util/index.d.ts +0 -1
  53. package/cjs/component/axis/cartesian/util/index.js +1 -1
  54. package/cjs/component/axis/cartesian/util/index.js.map +1 -1
  55. package/cjs/component/axis/interface/common.d.ts +2 -1
  56. package/cjs/component/axis/interface/common.js.map +1 -1
  57. package/cjs/component/axis/interface/spec.d.ts +7 -6
  58. package/cjs/component/axis/interface/spec.js.map +1 -1
  59. package/cjs/component/axis/mixin/linear-axis-mixin.js +1 -1
  60. package/cjs/component/axis/mixin/linear-axis-mixin.js.map +1 -1
  61. package/cjs/component/axis/polar/axis.d.ts +1 -5
  62. package/cjs/component/axis/polar/axis.js +5 -23
  63. package/cjs/component/axis/polar/axis.js.map +1 -1
  64. package/cjs/component/base/base-component.d.ts +1 -1
  65. package/cjs/component/base/base-component.js +2 -2
  66. package/cjs/component/base/base-component.js.map +1 -1
  67. package/cjs/component/base/util.d.ts +5 -0
  68. package/cjs/component/base/util.js +24 -16
  69. package/cjs/component/base/util.js.map +1 -1
  70. package/cjs/component/brush/brush.d.ts +0 -3
  71. package/cjs/component/brush/brush.js +5 -33
  72. package/cjs/component/brush/brush.js.map +1 -1
  73. package/cjs/component/brush/interface.d.ts +0 -3
  74. package/cjs/component/brush/interface.js.map +1 -1
  75. package/cjs/component/crosshair/base.d.ts +4 -1
  76. package/cjs/component/crosshair/base.js +1 -10
  77. package/cjs/component/crosshair/base.js.map +1 -1
  78. package/cjs/component/crosshair/cartesian.d.ts +1 -7
  79. package/cjs/component/crosshair/cartesian.js +17 -208
  80. package/cjs/component/crosshair/cartesian.js.map +1 -1
  81. package/cjs/component/crosshair/config.js.map +1 -1
  82. package/cjs/component/crosshair/interface/cartesian.d.ts +46 -0
  83. package/cjs/component/crosshair/interface/cartesian.js +6 -0
  84. package/cjs/component/crosshair/interface/cartesian.js.map +1 -0
  85. package/cjs/component/crosshair/interface/common.d.ts +7 -0
  86. package/cjs/component/crosshair/interface/common.js +6 -0
  87. package/cjs/component/crosshair/interface/common.js.map +1 -0
  88. package/cjs/component/crosshair/interface/index.d.ts +3 -0
  89. package/cjs/component/crosshair/interface/index.js +3 -1
  90. package/cjs/component/crosshair/interface/index.js.map +1 -1
  91. package/cjs/component/crosshair/interface/polar.d.ts +23 -0
  92. package/cjs/component/crosshair/interface/polar.js +6 -0
  93. package/cjs/component/crosshair/interface/polar.js.map +1 -0
  94. package/cjs/component/crosshair/interface/spec.d.ts +1 -0
  95. package/cjs/component/crosshair/interface/spec.js.map +1 -1
  96. package/cjs/component/crosshair/polar.d.ts +2 -2
  97. package/cjs/component/crosshair/polar.js +17 -114
  98. package/cjs/component/crosshair/polar.js.map +1 -1
  99. package/cjs/component/crosshair/utils/cartesian.d.ts +32 -0
  100. package/cjs/component/crosshair/utils/cartesian.js +238 -0
  101. package/cjs/component/crosshair/utils/cartesian.js.map +1 -0
  102. package/{esm/component/crosshair/util.d.ts → cjs/component/crosshair/utils/common.d.ts} +3 -3
  103. package/cjs/component/crosshair/{util.js → utils/common.js} +2 -2
  104. package/cjs/component/crosshair/utils/common.js.map +1 -0
  105. package/cjs/component/crosshair/utils/index.d.ts +1 -0
  106. package/cjs/component/crosshair/utils/index.js +21 -0
  107. package/cjs/component/crosshair/utils/index.js.map +1 -0
  108. package/cjs/component/crosshair/utils/polar.d.ts +37 -0
  109. package/cjs/component/crosshair/utils/polar.js +133 -0
  110. package/cjs/component/crosshair/utils/polar.js.map +1 -0
  111. package/cjs/component/custom-mark/custom-mark.d.ts +1 -2
  112. package/cjs/component/custom-mark/custom-mark.js +2 -1
  113. package/cjs/component/custom-mark/custom-mark.js.map +1 -1
  114. package/cjs/component/data-zoom/data-filter-base-component.d.ts +3 -6
  115. package/cjs/component/data-zoom/data-filter-base-component.js +11 -21
  116. package/cjs/component/data-zoom/data-filter-base-component.js.map +1 -1
  117. package/cjs/component/data-zoom/data-zoom/data-zoom.d.ts +1 -0
  118. package/cjs/component/data-zoom/data-zoom/data-zoom.js +15 -9
  119. package/cjs/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
  120. package/cjs/component/data-zoom/data-zoom/interface.d.ts +4 -7
  121. package/cjs/component/data-zoom/data-zoom/interface.js.map +1 -1
  122. package/cjs/component/data-zoom/scroll-bar/interface.d.ts +2 -4
  123. package/cjs/component/data-zoom/scroll-bar/interface.js.map +1 -1
  124. package/cjs/component/data-zoom/util.d.ts +0 -4
  125. package/cjs/component/data-zoom/util.js +3 -15
  126. package/cjs/component/data-zoom/util.js.map +1 -1
  127. package/cjs/component/index.d.ts +1 -0
  128. package/cjs/component/index.js +16 -1
  129. package/cjs/component/index.js.map +1 -1
  130. package/cjs/component/indicator/indicator.js.map +1 -1
  131. package/cjs/component/indicator/interface.d.ts +5 -5
  132. package/cjs/component/indicator/interface.js.map +1 -1
  133. package/cjs/component/interface/theme.d.ts +8 -0
  134. package/cjs/component/interface/theme.js.map +1 -1
  135. package/cjs/component/label/base-label.d.ts +4 -4
  136. package/cjs/component/label/interface.d.ts +9 -10
  137. package/cjs/component/label/interface.js.map +1 -1
  138. package/cjs/component/label/label.js +1 -1
  139. package/cjs/component/label/label.js.map +1 -1
  140. package/cjs/component/label/total-label.js +14 -1
  141. package/cjs/component/label/total-label.js.map +1 -1
  142. package/cjs/component/label/util.d.ts +1 -1
  143. package/cjs/component/label/util.js +5 -12
  144. package/cjs/component/label/util.js.map +1 -1
  145. package/cjs/component/legend/continuous/interface.d.ts +6 -12
  146. package/cjs/component/legend/continuous/interface.js.map +1 -1
  147. package/cjs/component/legend/discrete/interface.d.ts +20 -6
  148. package/cjs/component/legend/discrete/interface.js.map +1 -1
  149. package/cjs/component/legend/discrete/legend.d.ts +1 -0
  150. package/cjs/component/legend/discrete/legend.js +11 -2
  151. package/cjs/component/legend/discrete/legend.js.map +1 -1
  152. package/cjs/component/legend/discrete/util.js +6 -4
  153. package/cjs/component/legend/discrete/util.js.map +1 -1
  154. package/cjs/component/legend/util.d.ts +2 -3
  155. package/cjs/component/legend/util.js +2 -6
  156. package/cjs/component/legend/util.js.map +1 -1
  157. package/cjs/component/marker/interface.d.ts +6 -6
  158. package/cjs/component/marker/interface.js.map +1 -1
  159. package/cjs/component/marker/mark-area/interface/theme.d.ts +1 -1
  160. package/cjs/component/marker/mark-area/interface/theme.js.map +1 -1
  161. package/cjs/component/marker/mark-area/mark-area.js +1 -1
  162. package/cjs/component/marker/mark-area/mark-area.js.map +1 -1
  163. package/cjs/component/marker/mark-line/interface/theme.d.ts +1 -1
  164. package/cjs/component/marker/mark-line/interface/theme.js.map +1 -1
  165. package/cjs/component/marker/mark-line/mark-line.js +1 -1
  166. package/cjs/component/marker/mark-line/mark-line.js.map +1 -1
  167. package/cjs/component/marker/mark-point/interface/theme.d.ts +1 -1
  168. package/cjs/component/marker/mark-point/interface/theme.js.map +1 -1
  169. package/cjs/component/marker/mark-point/mark-point.js +5 -2
  170. package/cjs/component/marker/mark-point/mark-point.js.map +1 -1
  171. package/cjs/component/player/interface/theme.d.ts +1 -1
  172. package/cjs/component/player/interface/theme.js.map +1 -1
  173. package/cjs/component/player/utils/transform.js.map +1 -1
  174. package/cjs/component/poptip/interface.d.ts +5 -2
  175. package/cjs/component/poptip/interface.js.map +1 -1
  176. package/cjs/component/title/interface/spec.d.ts +18 -7
  177. package/cjs/component/title/interface/spec.js.map +1 -1
  178. package/cjs/component/title/interface/theme.d.ts +2 -1
  179. package/cjs/component/title/interface/theme.js.map +1 -1
  180. package/cjs/component/tooltip/interface/common.d.ts +3 -3
  181. package/cjs/component/tooltip/interface/common.js.map +1 -1
  182. package/cjs/component/tooltip/interface/event.d.ts +0 -2
  183. package/cjs/component/tooltip/interface/event.js.map +1 -1
  184. package/cjs/component/tooltip/interface/index.d.ts +1 -0
  185. package/cjs/component/tooltip/interface/index.js +1 -1
  186. package/cjs/component/tooltip/interface/index.js.map +1 -1
  187. package/cjs/component/tooltip/interface/spec.d.ts +2 -2
  188. package/cjs/component/tooltip/interface/spec.js.map +1 -1
  189. package/cjs/component/tooltip/interface/theme.d.ts +6 -5
  190. package/cjs/component/tooltip/interface/theme.js.map +1 -1
  191. package/cjs/component/tooltip/processor/base.js +2 -2
  192. package/cjs/component/tooltip/processor/base.js.map +1 -1
  193. package/cjs/component/tooltip/processor/dimension-tooltip.js +2 -1
  194. package/cjs/component/tooltip/processor/dimension-tooltip.js.map +1 -1
  195. package/cjs/component/tooltip/processor/mark-tooltip.js +2 -1
  196. package/cjs/component/tooltip/processor/mark-tooltip.js.map +1 -1
  197. package/cjs/component/tooltip/tooltip.d.ts +3 -3
  198. package/cjs/component/tooltip/tooltip.js +13 -11
  199. package/cjs/component/tooltip/tooltip.js.map +1 -1
  200. package/cjs/component/tooltip/utils/show-tooltip.js +3 -0
  201. package/cjs/component/tooltip/utils/show-tooltip.js.map +1 -1
  202. package/cjs/component/util.d.ts +8 -0
  203. package/cjs/component/util.js +15 -3
  204. package/cjs/component/util.js.map +1 -1
  205. package/cjs/constant/index.d.ts +1 -0
  206. package/cjs/constant/index.js +5 -4
  207. package/cjs/constant/index.js.map +1 -1
  208. package/cjs/core/factory.d.ts +3 -0
  209. package/cjs/core/factory.js +6 -0
  210. package/cjs/core/factory.js.map +1 -1
  211. package/cjs/core/index.d.ts +2 -1
  212. package/cjs/core/index.js +3 -2
  213. package/cjs/core/index.js.map +1 -1
  214. package/cjs/core/interface.d.ts +1 -1
  215. package/cjs/core/interface.js.map +1 -1
  216. package/cjs/core/vchart.d.ts +2 -1
  217. package/cjs/core/vchart.js +5 -4
  218. package/cjs/core/vchart.js.map +1 -1
  219. package/cjs/data/initialize.js.map +1 -1
  220. package/cjs/data/transforms/dimension-statistics.d.ts +2 -0
  221. package/cjs/data/transforms/dimension-statistics.js +1 -1
  222. package/cjs/data/transforms/dimension-statistics.js.map +1 -1
  223. package/cjs/data/transforms/funnel.d.ts +1 -1
  224. package/cjs/data/transforms/waterfall.js +104 -29
  225. package/cjs/data/transforms/waterfall.js.map +1 -1
  226. package/cjs/event/event-dispatcher.js +1 -1
  227. package/cjs/event/event-dispatcher.js.map +1 -1
  228. package/cjs/event/events/dimension/interface.d.ts +3 -2
  229. package/cjs/event/events/dimension/interface.js.map +1 -1
  230. package/cjs/event/events/dimension/util/cartesian.js +1 -0
  231. package/cjs/event/events/dimension/util/cartesian.js.map +1 -1
  232. package/cjs/event/events/dimension/util/common.js +45 -48
  233. package/cjs/event/events/dimension/util/common.js.map +1 -1
  234. package/cjs/event/events/dimension/util/polar.js +2 -0
  235. package/cjs/event/events/dimension/util/polar.js.map +1 -1
  236. package/cjs/event/interface.d.ts +2 -1
  237. package/cjs/event/interface.js.map +1 -1
  238. package/cjs/index-lark.js +2 -2
  239. package/cjs/index-lark.js.map +1 -1
  240. package/cjs/index-wx-simple.js +2 -2
  241. package/cjs/index-wx-simple.js.map +1 -1
  242. package/cjs/index-wx.js +2 -2
  243. package/cjs/index-wx.js.map +1 -1
  244. package/cjs/index.d.ts +1 -0
  245. package/cjs/index.js +1 -1
  246. package/cjs/index.js.map +1 -1
  247. package/cjs/interaction/dimension-trigger.js +3 -1
  248. package/cjs/interaction/dimension-trigger.js.map +1 -1
  249. package/cjs/interaction/interaction.d.ts +5 -0
  250. package/cjs/interaction/interaction.js +17 -1
  251. package/cjs/interaction/interaction.js.map +1 -1
  252. package/cjs/interaction/interface.d.ts +4 -1
  253. package/cjs/interaction/interface.js.map +1 -1
  254. package/cjs/mark/arc.js +3 -1
  255. package/cjs/mark/arc.js.map +1 -1
  256. package/cjs/mark/base/base-mark.d.ts +3 -3
  257. package/cjs/mark/base/base-mark.js +20 -13
  258. package/cjs/mark/base/base-mark.js.map +1 -1
  259. package/cjs/mark/index.d.ts +2 -3
  260. package/cjs/mark/index.js +1 -10
  261. package/cjs/mark/index.js.map +1 -1
  262. package/cjs/mark/interface/type.d.ts +0 -1
  263. package/cjs/mark/interface/type.js +2 -3
  264. package/cjs/mark/interface/type.js.map +1 -1
  265. package/cjs/mark/label.d.ts +2 -2
  266. package/cjs/mark/label.js.map +1 -1
  267. package/cjs/mark/text.d.ts +16 -7
  268. package/cjs/mark/text.js +12 -6
  269. package/cjs/mark/text.js.map +1 -1
  270. package/cjs/plugin/chart/formatter/formatter.d.ts +28 -0
  271. package/cjs/plugin/chart/formatter/formatter.js +74 -0
  272. package/cjs/plugin/chart/formatter/formatter.js.map +1 -0
  273. package/cjs/plugin/chart/formatter/index.d.ts +1 -0
  274. package/cjs/plugin/chart/formatter/index.js +21 -0
  275. package/cjs/plugin/chart/formatter/index.js.map +1 -0
  276. package/cjs/plugin/components/index.d.ts +2 -5
  277. package/cjs/plugin/components/index.js +16 -7
  278. package/cjs/plugin/components/index.js.map +1 -1
  279. package/cjs/plugin/components/tooltip-handler/base.d.ts +6 -6
  280. package/cjs/plugin/components/tooltip-handler/base.js +126 -65
  281. package/cjs/plugin/components/tooltip-handler/base.js.map +1 -1
  282. package/cjs/plugin/components/tooltip-handler/canvas/canvas-tooltip-handler.d.ts +2 -2
  283. package/cjs/plugin/components/tooltip-handler/canvas/canvas-tooltip-handler.js.map +1 -1
  284. package/cjs/plugin/components/tooltip-handler/constants.d.ts +2 -2
  285. package/cjs/plugin/components/tooltip-handler/constants.js.map +1 -1
  286. package/cjs/plugin/components/tooltip-handler/dom/dom-tooltip-handler.d.ts +8 -4
  287. package/cjs/plugin/components/tooltip-handler/dom/dom-tooltip-handler.js +31 -10
  288. package/cjs/plugin/components/tooltip-handler/dom/dom-tooltip-handler.js.map +1 -1
  289. package/cjs/plugin/components/tooltip-handler/dom/model/base-tooltip-model.d.ts +2 -2
  290. package/cjs/plugin/components/tooltip-handler/dom/model/base-tooltip-model.js.map +1 -1
  291. package/cjs/plugin/components/tooltip-handler/dom/model/content-column-model.d.ts +2 -2
  292. package/cjs/plugin/components/tooltip-handler/dom/model/content-column-model.js +2 -3
  293. package/cjs/plugin/components/tooltip-handler/dom/model/content-column-model.js.map +1 -1
  294. package/cjs/plugin/components/tooltip-handler/dom/model/interface.d.ts +2 -2
  295. package/cjs/plugin/components/tooltip-handler/dom/model/interface.js.map +1 -1
  296. package/cjs/plugin/components/tooltip-handler/utils/attribute.d.ts +2 -2
  297. package/cjs/plugin/components/tooltip-handler/utils/attribute.js +3 -3
  298. package/cjs/plugin/components/tooltip-handler/utils/attribute.js.map +1 -1
  299. package/cjs/plugin/components/tooltip-handler/utils/common.d.ts +3 -3
  300. package/cjs/plugin/components/tooltip-handler/utils/common.js +9 -3
  301. package/cjs/plugin/components/tooltip-handler/utils/common.js.map +1 -1
  302. package/cjs/plugin/components/tooltip-handler/utils/compose.d.ts +2 -2
  303. package/cjs/plugin/components/tooltip-handler/utils/compose.js +9 -8
  304. package/cjs/plugin/components/tooltip-handler/utils/compose.js.map +1 -1
  305. package/cjs/plugin/components/tooltip-handler/utils/get-spec.js +14 -11
  306. package/cjs/plugin/components/tooltip-handler/utils/get-spec.js.map +1 -1
  307. package/cjs/plugin/components/tooltip-handler/utils/position.d.ts +18 -3
  308. package/cjs/plugin/components/tooltip-handler/utils/position.js +49 -8
  309. package/cjs/plugin/components/tooltip-handler/utils/position.js.map +1 -1
  310. package/cjs/plugin/index.d.ts +1 -0
  311. package/cjs/plugin/index.js +1 -1
  312. package/cjs/plugin/index.js.map +1 -1
  313. package/cjs/series/area/interface.d.ts +2 -1
  314. package/cjs/series/area/interface.js.map +1 -1
  315. package/cjs/series/bar/bar-3d.js.map +1 -1
  316. package/cjs/series/bar/bar.d.ts +11 -1
  317. package/cjs/series/bar/bar.js +102 -72
  318. package/cjs/series/bar/bar.js.map +1 -1
  319. package/cjs/series/bar/interface.d.ts +4 -3
  320. package/cjs/series/bar/interface.js.map +1 -1
  321. package/cjs/series/base/base-series-transformer.d.ts +4 -0
  322. package/cjs/series/base/base-series-transformer.js +33 -10
  323. package/cjs/series/base/base-series-transformer.js.map +1 -1
  324. package/cjs/series/base/base-series.d.ts +4 -1
  325. package/cjs/series/base/base-series.js +12 -3
  326. package/cjs/series/base/base-series.js.map +1 -1
  327. package/cjs/series/base/tooltip-helper.d.ts +3 -3
  328. package/cjs/series/base/tooltip-helper.js.map +1 -1
  329. package/cjs/series/cartesian/cartesian.d.ts +1 -2
  330. package/cjs/series/cartesian/cartesian.js +28 -24
  331. package/cjs/series/cartesian/cartesian.js.map +1 -1
  332. package/cjs/series/circle-packing/circle-packing.js.map +1 -1
  333. package/cjs/series/correlation/interface.d.ts +3 -3
  334. package/cjs/series/correlation/interface.js.map +1 -1
  335. package/cjs/series/dot/interface.d.ts +2 -2
  336. package/cjs/series/dot/interface.js.map +1 -1
  337. package/cjs/series/dot/tooltip-helper.js +2 -2
  338. package/cjs/series/dot/tooltip-helper.js.map +1 -1
  339. package/cjs/series/funnel/funnel.js.map +1 -1
  340. package/cjs/series/funnel/interface.d.ts +5 -4
  341. package/cjs/series/funnel/interface.js.map +1 -1
  342. package/cjs/series/gauge/constant.js +2 -2
  343. package/cjs/series/gauge/constant.js.map +1 -1
  344. package/cjs/series/gauge/gauge.js +2 -2
  345. package/cjs/series/gauge/gauge.js.map +1 -1
  346. package/cjs/series/gauge/interface.d.ts +3 -3
  347. package/cjs/series/gauge/interface.js.map +1 -1
  348. package/cjs/series/interface/common.d.ts +3 -1
  349. package/cjs/series/interface/common.js.map +1 -1
  350. package/cjs/series/line/interface.d.ts +3 -2
  351. package/cjs/series/line/interface.js.map +1 -1
  352. package/cjs/series/link/tooltip-helper.js +2 -2
  353. package/cjs/series/link/tooltip-helper.js.map +1 -1
  354. package/cjs/series/map/interface.d.ts +2 -5
  355. package/cjs/series/map/interface.js.map +1 -1
  356. package/cjs/series/mixin/line-mixin.js +1 -1
  357. package/cjs/series/mixin/line-mixin.js.map +1 -1
  358. package/cjs/series/pie/3d/pie-3d.d.ts +1 -1
  359. package/cjs/series/pie/3d/pie-3d.js +2 -4
  360. package/cjs/series/pie/3d/pie-3d.js.map +1 -1
  361. package/cjs/series/pie/interface.d.ts +5 -4
  362. package/cjs/series/pie/interface.js.map +1 -1
  363. package/cjs/series/pie/pie-transformer.js +5 -4
  364. package/cjs/series/pie/pie-transformer.js.map +1 -1
  365. package/cjs/series/pie/pie.js +1 -4
  366. package/cjs/series/pie/pie.js.map +1 -1
  367. package/cjs/series/polar/progress-like/progress-like.js +24 -26
  368. package/cjs/series/polar/progress-like/progress-like.js.map +1 -1
  369. package/cjs/series/progress/circular/circular.js +3 -4
  370. package/cjs/series/progress/circular/circular.js.map +1 -1
  371. package/cjs/series/progress/circular/constant.js +2 -2
  372. package/cjs/series/progress/circular/constant.js.map +1 -1
  373. package/cjs/series/progress/circular/interface.d.ts +5 -5
  374. package/cjs/series/progress/circular/interface.js.map +1 -1
  375. package/cjs/series/radar/interface.d.ts +2 -1
  376. package/cjs/series/radar/interface.js.map +1 -1
  377. package/cjs/series/range-area/tooltip-helper.js.map +1 -1
  378. package/cjs/series/range-column/interface.d.ts +5 -5
  379. package/cjs/series/range-column/interface.js.map +1 -1
  380. package/cjs/series/rose/interface.d.ts +2 -1
  381. package/cjs/series/rose/interface.js.map +1 -1
  382. package/cjs/series/rose/rose.js +1 -5
  383. package/cjs/series/rose/rose.js.map +1 -1
  384. package/cjs/series/sankey/interface.d.ts +2 -2
  385. package/cjs/series/sankey/interface.js.map +1 -1
  386. package/cjs/series/sankey/sankey.js.map +1 -1
  387. package/cjs/series/sankey/tooltip-helper.js.map +1 -1
  388. package/cjs/series/scatter/interface.d.ts +2 -1
  389. package/cjs/series/scatter/interface.js.map +1 -1
  390. package/cjs/series/sunburst/sunburst.d.ts +1 -1
  391. package/cjs/series/sunburst/sunburst.js.map +1 -1
  392. package/cjs/series/treemap/interface.d.ts +3 -2
  393. package/cjs/series/treemap/interface.js.map +1 -1
  394. package/cjs/series/treemap/treemap.d.ts +2 -0
  395. package/cjs/series/treemap/treemap.js +45 -45
  396. package/cjs/series/treemap/treemap.js.map +1 -1
  397. package/cjs/series/util/utils.js +1 -1
  398. package/cjs/series/util/utils.js.map +1 -1
  399. package/cjs/series/word-cloud/base.js.map +1 -1
  400. package/cjs/series/word-cloud/interface.d.ts +2 -6
  401. package/cjs/series/word-cloud/interface.js.map +1 -1
  402. package/cjs/theme/builtin/common/component/axis/cartesian-axis.js +9 -7
  403. package/cjs/theme/builtin/common/component/axis/cartesian-axis.js.map +1 -1
  404. package/cjs/theme/builtin/common/component/axis/common-axis.js +15 -10
  405. package/cjs/theme/builtin/common/component/axis/common-axis.js.map +1 -1
  406. package/cjs/theme/builtin/common/component/crosshair.js +121 -6
  407. package/cjs/theme/builtin/common/component/crosshair.js.map +1 -1
  408. package/cjs/theme/builtin/common/component/data-zoom.js +17 -5
  409. package/cjs/theme/builtin/common/component/data-zoom.js.map +1 -1
  410. package/cjs/theme/builtin/common/component/indicator.js +9 -7
  411. package/cjs/theme/builtin/common/component/indicator.js.map +1 -1
  412. package/cjs/theme/builtin/common/component/legend/continuous.js +33 -13
  413. package/cjs/theme/builtin/common/component/legend/continuous.js.map +1 -1
  414. package/cjs/theme/builtin/common/component/legend/discrete-legend.js +17 -9
  415. package/cjs/theme/builtin/common/component/legend/discrete-legend.js.map +1 -1
  416. package/cjs/theme/builtin/common/component/map-label.js +9 -7
  417. package/cjs/theme/builtin/common/component/map-label.js.map +1 -1
  418. package/cjs/theme/builtin/common/component/mark-area.js +5 -6
  419. package/cjs/theme/builtin/common/component/mark-area.js.map +1 -1
  420. package/cjs/theme/builtin/common/component/mark-line.js +5 -6
  421. package/cjs/theme/builtin/common/component/mark-line.js.map +1 -1
  422. package/cjs/theme/builtin/common/component/poptip.js +9 -7
  423. package/cjs/theme/builtin/common/component/poptip.js.map +1 -1
  424. package/cjs/theme/builtin/common/component/title.js +17 -9
  425. package/cjs/theme/builtin/common/component/title.js.map +1 -1
  426. package/cjs/theme/builtin/common/component/tooltip.js +25 -11
  427. package/cjs/theme/builtin/common/component/tooltip.js.map +1 -1
  428. package/cjs/theme/builtin/common/component/total-label.js +5 -6
  429. package/cjs/theme/builtin/common/component/total-label.js.map +1 -1
  430. package/cjs/theme/builtin/common/mark.js +12 -9
  431. package/cjs/theme/builtin/common/mark.js.map +1 -1
  432. package/cjs/theme/builtin/common/series/box-plot.js +5 -0
  433. package/cjs/theme/builtin/common/series/box-plot.js.map +1 -1
  434. package/cjs/theme/builtin/common/series/circle-packing.js +9 -7
  435. package/cjs/theme/builtin/common/series/circle-packing.js.map +1 -1
  436. package/cjs/theme/builtin/common/series/dot.js +17 -9
  437. package/cjs/theme/builtin/common/series/dot.js.map +1 -1
  438. package/cjs/theme/builtin/common/series/funnel.js +9 -7
  439. package/cjs/theme/builtin/common/series/funnel.js.map +1 -1
  440. package/cjs/theme/builtin/common/series/funnel3d.js +9 -7
  441. package/cjs/theme/builtin/common/series/funnel3d.js.map +1 -1
  442. package/cjs/theme/builtin/common/series/map.js +9 -7
  443. package/cjs/theme/builtin/common/series/map.js.map +1 -1
  444. package/cjs/theme/builtin/common/series/rangeColumn.js +1 -0
  445. package/cjs/theme/builtin/common/series/rangeColumn.js.map +1 -1
  446. package/cjs/theme/builtin/common/series/sunburst.js +9 -3
  447. package/cjs/theme/builtin/common/series/sunburst.js.map +1 -1
  448. package/cjs/theme/builtin/common/series/treemap.js +18 -10
  449. package/cjs/theme/builtin/common/series/treemap.js.map +1 -1
  450. package/cjs/theme/builtin/common/series/waterfall.js +9 -7
  451. package/cjs/theme/builtin/common/series/waterfall.js.map +1 -1
  452. package/cjs/theme/builtin/index.js +3 -3
  453. package/cjs/theme/builtin/index.js.map +1 -1
  454. package/cjs/theme/builtin/light/index.js +6 -2
  455. package/cjs/theme/builtin/light/index.js.map +1 -1
  456. package/cjs/theme/interface.d.ts +3 -19
  457. package/cjs/theme/interface.js.map +1 -1
  458. package/cjs/theme/theme-manager.d.ts +1 -1
  459. package/cjs/theme/theme-manager.js +2 -2
  460. package/cjs/theme/theme-manager.js.map +1 -1
  461. package/cjs/theme/token/builtin/default.d.ts +2 -0
  462. package/cjs/theme/{builtin/common/constants.js → token/builtin/default.js} +3 -5
  463. package/cjs/theme/token/builtin/default.js.map +1 -0
  464. package/cjs/theme/token/builtin/index.d.ts +2 -0
  465. package/cjs/theme/token/builtin/index.js +21 -0
  466. package/cjs/theme/token/builtin/index.js.map +1 -0
  467. package/cjs/theme/token/builtin/interface.d.ts +17 -0
  468. package/cjs/theme/token/builtin/interface.js +6 -0
  469. package/cjs/theme/token/builtin/interface.js.map +1 -0
  470. package/cjs/theme/token/index.d.ts +3 -0
  471. package/cjs/theme/token/index.js +22 -0
  472. package/cjs/theme/token/index.js.map +1 -0
  473. package/cjs/theme/token/interface.d.ts +6 -0
  474. package/cjs/theme/token/interface.js +6 -0
  475. package/cjs/theme/token/interface.js.map +1 -0
  476. package/cjs/theme/token/util.d.ts +3 -0
  477. package/cjs/theme/token/util.js +15 -0
  478. package/cjs/theme/token/util.js.map +1 -0
  479. package/cjs/typings/spec/common.d.ts +32 -22
  480. package/cjs/typings/spec/common.js.map +1 -1
  481. package/cjs/typings/tooltip/line.d.ts +5 -2
  482. package/cjs/typings/tooltip/line.js.map +1 -1
  483. package/cjs/typings/tooltip/position.d.ts +18 -24
  484. package/cjs/typings/tooltip/position.js +1 -12
  485. package/cjs/typings/tooltip/position.js.map +1 -1
  486. package/cjs/typings/tooltip/shape.d.ts +2 -2
  487. package/cjs/typings/tooltip/shape.js.map +1 -1
  488. package/cjs/typings/tooltip/tooltip.d.ts +8 -8
  489. package/cjs/typings/tooltip/tooltip.js.map +1 -1
  490. package/cjs/typings/visual.d.ts +15 -11
  491. package/cjs/typings/visual.js.map +1 -1
  492. package/cjs/util/data.d.ts +2 -1
  493. package/cjs/util/data.js +12 -7
  494. package/cjs/util/data.js.map +1 -1
  495. package/cjs/util/index.d.ts +1 -2
  496. package/cjs/util/index.js +2 -2
  497. package/cjs/util/index.js.map +1 -1
  498. package/cjs/util/spec/common.d.ts +0 -2
  499. package/cjs/util/spec/common.js +3 -8
  500. package/cjs/util/spec/common.js.map +1 -1
  501. package/cjs/util/spec/index.d.ts +2 -2
  502. package/cjs/util/spec/index.js +1 -1
  503. package/cjs/util/spec/index.js.map +1 -1
  504. package/cjs/util/text.js +3 -3
  505. package/cjs/util/text.js.map +1 -1
  506. package/cjs/util/theme/common.d.ts +2 -0
  507. package/cjs/util/theme/common.js +15 -0
  508. package/cjs/util/theme/common.js.map +1 -0
  509. package/cjs/util/theme/index.d.ts +3 -0
  510. package/cjs/util/theme/index.js +22 -0
  511. package/cjs/util/theme/index.js.map +1 -0
  512. package/cjs/util/{spec → theme}/merge-theme.js +3 -1
  513. package/cjs/util/theme/merge-theme.js.map +1 -0
  514. package/cjs/util/{spec → theme}/preprocess.d.ts +2 -1
  515. package/cjs/util/{spec → theme}/preprocess.js +5 -3
  516. package/cjs/util/theme/preprocess.js.map +1 -0
  517. package/cjs/vchart-all.js +2 -2
  518. package/cjs/vchart-all.js.map +1 -1
  519. package/cjs/vchart-simple.js +2 -2
  520. package/cjs/vchart-simple.js.map +1 -1
  521. package/esm/animation/utils.js +5 -5
  522. package/esm/animation/utils.js.map +1 -1
  523. package/esm/chart/bar/bar-transformer.d.ts +1 -0
  524. package/esm/chart/bar/bar-transformer.js +19 -1
  525. package/esm/chart/bar/bar-transformer.js.map +1 -1
  526. package/esm/chart/bar/interface.d.ts +3 -0
  527. package/esm/chart/bar/interface.js.map +1 -1
  528. package/esm/chart/base/base-chart-transformer.js +10 -12
  529. package/esm/chart/base/base-chart-transformer.js.map +1 -1
  530. package/esm/chart/base/base-chart.d.ts +2 -2
  531. package/esm/chart/base/base-chart.js +4 -2
  532. package/esm/chart/base/base-chart.js.map +1 -1
  533. package/esm/chart/base/util.d.ts +1 -1
  534. package/esm/chart/base/util.js +21 -9
  535. package/esm/chart/base/util.js.map +1 -1
  536. package/esm/chart/cartesian/cartesian-transformer.d.ts +1 -0
  537. package/esm/chart/cartesian/cartesian-transformer.js +10 -7
  538. package/esm/chart/cartesian/cartesian-transformer.js.map +1 -1
  539. package/esm/chart/interface/chart.d.ts +1 -1
  540. package/esm/chart/interface/chart.js.map +1 -1
  541. package/esm/chart/polar/polar-transformer.js.map +1 -1
  542. package/esm/chart/progress/circular/circular-progress-transformer.js +2 -0
  543. package/esm/chart/progress/circular/circular-progress-transformer.js.map +1 -1
  544. package/esm/compile/compiler.d.ts +1 -1
  545. package/esm/compile/compiler.js +9 -5
  546. package/esm/compile/compiler.js.map +1 -1
  547. package/esm/compile/mark/compilable-mark.d.ts +4 -1
  548. package/esm/compile/mark/compilable-mark.js +9 -1
  549. package/esm/compile/mark/compilable-mark.js.map +1 -1
  550. package/esm/compile/mark/interface.d.ts +4 -1
  551. package/esm/compile/mark/interface.js.map +1 -1
  552. package/esm/component/axis/base-axis.d.ts +10 -59
  553. package/esm/component/axis/base-axis.js +112 -86
  554. package/esm/component/axis/base-axis.js.map +1 -1
  555. package/esm/component/axis/cartesian/axis.d.ts +1 -5
  556. package/esm/component/axis/cartesian/axis.js +8 -26
  557. package/esm/component/axis/cartesian/axis.js.map +1 -1
  558. package/esm/component/axis/cartesian/band-axis.d.ts +5 -0
  559. package/esm/component/axis/cartesian/band-axis.js +27 -6
  560. package/esm/component/axis/cartesian/band-axis.js.map +1 -1
  561. package/esm/component/axis/cartesian/interface/spec.d.ts +5 -0
  562. package/esm/component/axis/cartesian/interface/spec.js.map +1 -1
  563. package/esm/component/axis/cartesian/log-axis.js +2 -1
  564. package/esm/component/axis/cartesian/log-axis.js.map +1 -1
  565. package/esm/component/axis/cartesian/time-axis.d.ts +1 -1
  566. package/esm/component/axis/cartesian/time-axis.js +2 -2
  567. package/esm/component/axis/cartesian/time-axis.js.map +1 -1
  568. package/esm/component/axis/cartesian/util/index.d.ts +0 -1
  569. package/esm/component/axis/cartesian/util/index.js +0 -2
  570. package/esm/component/axis/cartesian/util/index.js.map +1 -1
  571. package/esm/component/axis/interface/common.d.ts +2 -1
  572. package/esm/component/axis/interface/common.js.map +1 -1
  573. package/esm/component/axis/interface/spec.d.ts +7 -6
  574. package/esm/component/axis/interface/spec.js.map +1 -1
  575. package/esm/component/axis/mixin/linear-axis-mixin.js +1 -1
  576. package/esm/component/axis/mixin/linear-axis-mixin.js.map +1 -1
  577. package/esm/component/axis/polar/axis.d.ts +1 -5
  578. package/esm/component/axis/polar/axis.js +5 -23
  579. package/esm/component/axis/polar/axis.js.map +1 -1
  580. package/esm/component/base/base-component.d.ts +1 -1
  581. package/esm/component/base/base-component.js +3 -1
  582. package/esm/component/base/base-component.js.map +1 -1
  583. package/esm/component/base/util.d.ts +5 -0
  584. package/esm/component/base/util.js +12 -9
  585. package/esm/component/base/util.js.map +1 -1
  586. package/esm/component/brush/brush.d.ts +0 -3
  587. package/esm/component/brush/brush.js +5 -31
  588. package/esm/component/brush/brush.js.map +1 -1
  589. package/esm/component/brush/interface.d.ts +0 -3
  590. package/esm/component/brush/interface.js.map +1 -1
  591. package/esm/component/crosshair/base.d.ts +4 -1
  592. package/esm/component/crosshair/base.js +1 -10
  593. package/esm/component/crosshair/base.js.map +1 -1
  594. package/esm/component/crosshair/cartesian.d.ts +1 -7
  595. package/esm/component/crosshair/cartesian.js +20 -206
  596. package/esm/component/crosshair/cartesian.js.map +1 -1
  597. package/esm/component/crosshair/config.js.map +1 -1
  598. package/esm/component/crosshair/interface/cartesian.d.ts +46 -0
  599. package/esm/component/crosshair/interface/cartesian.js +2 -0
  600. package/esm/component/crosshair/interface/cartesian.js.map +1 -0
  601. package/esm/component/crosshair/interface/common.d.ts +7 -0
  602. package/esm/component/crosshair/interface/common.js +2 -0
  603. package/esm/component/crosshair/interface/common.js.map +1 -0
  604. package/esm/component/crosshair/interface/index.d.ts +3 -0
  605. package/esm/component/crosshair/interface/index.js +6 -0
  606. package/esm/component/crosshair/interface/index.js.map +1 -1
  607. package/esm/component/crosshair/interface/polar.d.ts +23 -0
  608. package/esm/component/crosshair/interface/polar.js +2 -0
  609. package/esm/component/crosshair/interface/polar.js.map +1 -0
  610. package/esm/component/crosshair/interface/spec.d.ts +1 -0
  611. package/esm/component/crosshair/interface/spec.js.map +1 -1
  612. package/esm/component/crosshair/polar.d.ts +2 -2
  613. package/esm/component/crosshair/polar.js +19 -116
  614. package/esm/component/crosshair/polar.js.map +1 -1
  615. package/esm/component/crosshair/utils/cartesian.d.ts +32 -0
  616. package/esm/component/crosshair/utils/cartesian.js +233 -0
  617. package/esm/component/crosshair/utils/cartesian.js.map +1 -0
  618. package/{cjs/component/crosshair/util.d.ts → esm/component/crosshair/utils/common.d.ts} +3 -3
  619. package/esm/component/crosshair/{util.js → utils/common.js} +6 -6
  620. package/esm/component/crosshair/utils/common.js.map +1 -0
  621. package/esm/component/crosshair/utils/index.d.ts +1 -0
  622. package/esm/component/crosshair/utils/index.js +2 -0
  623. package/esm/component/crosshair/utils/index.js.map +1 -0
  624. package/esm/component/crosshair/utils/polar.d.ts +37 -0
  625. package/esm/component/crosshair/utils/polar.js +125 -0
  626. package/esm/component/crosshair/utils/polar.js.map +1 -0
  627. package/esm/component/custom-mark/custom-mark.d.ts +1 -2
  628. package/esm/component/custom-mark/custom-mark.js +2 -1
  629. package/esm/component/custom-mark/custom-mark.js.map +1 -1
  630. package/esm/component/data-zoom/data-filter-base-component.d.ts +3 -6
  631. package/esm/component/data-zoom/data-filter-base-component.js +12 -20
  632. package/esm/component/data-zoom/data-filter-base-component.js.map +1 -1
  633. package/esm/component/data-zoom/data-zoom/data-zoom.d.ts +1 -0
  634. package/esm/component/data-zoom/data-zoom/data-zoom.js +16 -9
  635. package/esm/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
  636. package/esm/component/data-zoom/data-zoom/interface.d.ts +4 -7
  637. package/esm/component/data-zoom/data-zoom/interface.js.map +1 -1
  638. package/esm/component/data-zoom/scroll-bar/interface.d.ts +2 -4
  639. package/esm/component/data-zoom/scroll-bar/interface.js.map +1 -1
  640. package/esm/component/data-zoom/util.d.ts +0 -4
  641. package/esm/component/data-zoom/util.js +2 -15
  642. package/esm/component/data-zoom/util.js.map +1 -1
  643. package/esm/component/index.d.ts +1 -0
  644. package/esm/component/index.js +2 -0
  645. package/esm/component/index.js.map +1 -1
  646. package/esm/component/indicator/indicator.js.map +1 -1
  647. package/esm/component/indicator/interface.d.ts +5 -5
  648. package/esm/component/indicator/interface.js.map +1 -1
  649. package/esm/component/interface/theme.d.ts +8 -0
  650. package/esm/component/interface/theme.js.map +1 -1
  651. package/esm/component/label/base-label.d.ts +4 -4
  652. package/esm/component/label/interface.d.ts +9 -10
  653. package/esm/component/label/interface.js.map +1 -1
  654. package/esm/component/label/label.js +1 -1
  655. package/esm/component/label/label.js.map +1 -1
  656. package/esm/component/label/total-label.js +14 -1
  657. package/esm/component/label/total-label.js.map +1 -1
  658. package/esm/component/label/util.d.ts +1 -1
  659. package/esm/component/label/util.js +7 -11
  660. package/esm/component/label/util.js.map +1 -1
  661. package/esm/component/legend/continuous/interface.d.ts +6 -12
  662. package/esm/component/legend/continuous/interface.js.map +1 -1
  663. package/esm/component/legend/discrete/interface.d.ts +20 -6
  664. package/esm/component/legend/discrete/interface.js.map +1 -1
  665. package/esm/component/legend/discrete/legend.d.ts +1 -0
  666. package/esm/component/legend/discrete/legend.js +11 -1
  667. package/esm/component/legend/discrete/legend.js.map +1 -1
  668. package/esm/component/legend/discrete/util.js +3 -2
  669. package/esm/component/legend/discrete/util.js.map +1 -1
  670. package/esm/component/legend/util.d.ts +2 -3
  671. package/esm/component/legend/util.js +0 -4
  672. package/esm/component/legend/util.js.map +1 -1
  673. package/esm/component/marker/interface.d.ts +6 -6
  674. package/esm/component/marker/interface.js.map +1 -1
  675. package/esm/component/marker/mark-area/interface/theme.d.ts +1 -1
  676. package/esm/component/marker/mark-area/interface/theme.js.map +1 -1
  677. package/esm/component/marker/mark-area/mark-area.js +1 -1
  678. package/esm/component/marker/mark-area/mark-area.js.map +1 -1
  679. package/esm/component/marker/mark-line/interface/theme.d.ts +1 -1
  680. package/esm/component/marker/mark-line/interface/theme.js.map +1 -1
  681. package/esm/component/marker/mark-line/mark-line.js +1 -1
  682. package/esm/component/marker/mark-line/mark-line.js.map +1 -1
  683. package/esm/component/marker/mark-point/interface/theme.d.ts +1 -1
  684. package/esm/component/marker/mark-point/interface/theme.js.map +1 -1
  685. package/esm/component/marker/mark-point/mark-point.js +5 -2
  686. package/esm/component/marker/mark-point/mark-point.js.map +1 -1
  687. package/esm/component/player/interface/theme.d.ts +1 -1
  688. package/esm/component/player/interface/theme.js.map +1 -1
  689. package/esm/component/player/utils/transform.js.map +1 -1
  690. package/esm/component/poptip/interface.d.ts +5 -2
  691. package/esm/component/poptip/interface.js.map +1 -1
  692. package/esm/component/title/interface/spec.d.ts +18 -7
  693. package/esm/component/title/interface/spec.js.map +1 -1
  694. package/esm/component/title/interface/theme.d.ts +2 -1
  695. package/esm/component/title/interface/theme.js.map +1 -1
  696. package/esm/component/tooltip/interface/common.d.ts +3 -3
  697. package/esm/component/tooltip/interface/common.js.map +1 -1
  698. package/esm/component/tooltip/interface/event.d.ts +0 -2
  699. package/esm/component/tooltip/interface/event.js.map +1 -1
  700. package/esm/component/tooltip/interface/index.d.ts +1 -0
  701. package/esm/component/tooltip/interface/index.js +2 -0
  702. package/esm/component/tooltip/interface/index.js.map +1 -1
  703. package/esm/component/tooltip/interface/spec.d.ts +2 -2
  704. package/esm/component/tooltip/interface/spec.js.map +1 -1
  705. package/esm/component/tooltip/interface/theme.d.ts +6 -5
  706. package/esm/component/tooltip/interface/theme.js.map +1 -1
  707. package/esm/component/tooltip/processor/base.js +1 -3
  708. package/esm/component/tooltip/processor/base.js.map +1 -1
  709. package/esm/component/tooltip/processor/dimension-tooltip.js +2 -1
  710. package/esm/component/tooltip/processor/dimension-tooltip.js.map +1 -1
  711. package/esm/component/tooltip/processor/mark-tooltip.js +2 -1
  712. package/esm/component/tooltip/processor/mark-tooltip.js.map +1 -1
  713. package/esm/component/tooltip/tooltip.d.ts +3 -3
  714. package/esm/component/tooltip/tooltip.js +10 -10
  715. package/esm/component/tooltip/tooltip.js.map +1 -1
  716. package/esm/component/tooltip/utils/show-tooltip.js +3 -0
  717. package/esm/component/tooltip/utils/show-tooltip.js.map +1 -1
  718. package/esm/component/util.d.ts +8 -0
  719. package/esm/component/util.js +14 -0
  720. package/esm/component/util.js.map +1 -1
  721. package/esm/constant/index.d.ts +1 -0
  722. package/esm/constant/index.js +2 -0
  723. package/esm/constant/index.js.map +1 -1
  724. package/esm/core/factory.d.ts +3 -0
  725. package/esm/core/factory.js +6 -0
  726. package/esm/core/factory.js.map +1 -1
  727. package/esm/core/index.d.ts +2 -1
  728. package/esm/core/index.js +3 -1
  729. package/esm/core/index.js.map +1 -1
  730. package/esm/core/interface.d.ts +1 -1
  731. package/esm/core/interface.js.map +1 -1
  732. package/esm/core/vchart.d.ts +2 -1
  733. package/esm/core/vchart.js +7 -4
  734. package/esm/core/vchart.js.map +1 -1
  735. package/esm/data/initialize.js.map +1 -1
  736. package/esm/data/transforms/dimension-statistics.d.ts +2 -0
  737. package/esm/data/transforms/dimension-statistics.js +1 -1
  738. package/esm/data/transforms/dimension-statistics.js.map +1 -1
  739. package/esm/data/transforms/funnel.d.ts +1 -1
  740. package/esm/data/transforms/waterfall.js +104 -28
  741. package/esm/data/transforms/waterfall.js.map +1 -1
  742. package/esm/event/event-dispatcher.js +2 -2
  743. package/esm/event/event-dispatcher.js.map +1 -1
  744. package/esm/event/events/dimension/interface.d.ts +3 -2
  745. package/esm/event/events/dimension/interface.js.map +1 -1
  746. package/esm/event/events/dimension/util/cartesian.js +1 -0
  747. package/esm/event/events/dimension/util/cartesian.js.map +1 -1
  748. package/esm/event/events/dimension/util/common.js +44 -47
  749. package/esm/event/events/dimension/util/common.js.map +1 -1
  750. package/esm/event/events/dimension/util/polar.js +2 -0
  751. package/esm/event/events/dimension/util/polar.js.map +1 -1
  752. package/esm/event/interface.d.ts +2 -1
  753. package/esm/event/interface.js.map +1 -1
  754. package/esm/index-lark.js +4 -2
  755. package/esm/index-lark.js.map +1 -1
  756. package/esm/index-wx-simple.js +4 -2
  757. package/esm/index-wx-simple.js.map +1 -1
  758. package/esm/index-wx.js +1 -1
  759. package/esm/index-wx.js.map +1 -1
  760. package/esm/index.d.ts +1 -0
  761. package/esm/index.js +2 -0
  762. package/esm/index.js.map +1 -1
  763. package/esm/interaction/dimension-trigger.js +3 -1
  764. package/esm/interaction/dimension-trigger.js.map +1 -1
  765. package/esm/interaction/interaction.d.ts +5 -0
  766. package/esm/interaction/interaction.js +17 -1
  767. package/esm/interaction/interaction.js.map +1 -1
  768. package/esm/interaction/interface.d.ts +4 -1
  769. package/esm/interaction/interface.js.map +1 -1
  770. package/esm/mark/arc.js +3 -1
  771. package/esm/mark/arc.js.map +1 -1
  772. package/esm/mark/base/base-mark.d.ts +3 -3
  773. package/esm/mark/base/base-mark.js +20 -13
  774. package/esm/mark/base/base-mark.js.map +1 -1
  775. package/esm/mark/index.d.ts +2 -3
  776. package/esm/mark/index.js +1 -3
  777. package/esm/mark/index.js.map +1 -1
  778. package/esm/mark/interface/type.d.ts +0 -1
  779. package/esm/mark/interface/type.js +2 -3
  780. package/esm/mark/interface/type.js.map +1 -1
  781. package/esm/mark/label.d.ts +2 -2
  782. package/esm/mark/label.js.map +1 -1
  783. package/esm/mark/text.d.ts +16 -7
  784. package/esm/mark/text.js +13 -7
  785. package/esm/mark/text.js.map +1 -1
  786. package/esm/plugin/chart/formatter/formatter.d.ts +28 -0
  787. package/esm/plugin/chart/formatter/formatter.js +71 -0
  788. package/esm/plugin/chart/formatter/formatter.js.map +1 -0
  789. package/esm/plugin/chart/formatter/index.d.ts +1 -0
  790. package/esm/plugin/chart/formatter/index.js +2 -0
  791. package/esm/plugin/chart/formatter/index.js.map +1 -0
  792. package/esm/plugin/components/index.d.ts +2 -5
  793. package/esm/plugin/components/index.js +2 -4
  794. package/esm/plugin/components/index.js.map +1 -1
  795. package/esm/plugin/components/tooltip-handler/base.d.ts +6 -6
  796. package/esm/plugin/components/tooltip-handler/base.js +125 -66
  797. package/esm/plugin/components/tooltip-handler/base.js.map +1 -1
  798. package/esm/plugin/components/tooltip-handler/canvas/canvas-tooltip-handler.d.ts +2 -2
  799. package/esm/plugin/components/tooltip-handler/canvas/canvas-tooltip-handler.js.map +1 -1
  800. package/esm/plugin/components/tooltip-handler/constants.d.ts +2 -2
  801. package/esm/plugin/components/tooltip-handler/constants.js.map +1 -1
  802. package/esm/plugin/components/tooltip-handler/dom/dom-tooltip-handler.d.ts +8 -4
  803. package/esm/plugin/components/tooltip-handler/dom/dom-tooltip-handler.js +31 -9
  804. package/esm/plugin/components/tooltip-handler/dom/dom-tooltip-handler.js.map +1 -1
  805. package/esm/plugin/components/tooltip-handler/dom/model/base-tooltip-model.d.ts +2 -2
  806. package/esm/plugin/components/tooltip-handler/dom/model/base-tooltip-model.js.map +1 -1
  807. package/esm/plugin/components/tooltip-handler/dom/model/content-column-model.d.ts +2 -2
  808. package/esm/plugin/components/tooltip-handler/dom/model/content-column-model.js +2 -3
  809. package/esm/plugin/components/tooltip-handler/dom/model/content-column-model.js.map +1 -1
  810. package/esm/plugin/components/tooltip-handler/dom/model/interface.d.ts +2 -2
  811. package/esm/plugin/components/tooltip-handler/dom/model/interface.js.map +1 -1
  812. package/esm/plugin/components/tooltip-handler/utils/attribute.d.ts +2 -2
  813. package/esm/plugin/components/tooltip-handler/utils/attribute.js +4 -4
  814. package/esm/plugin/components/tooltip-handler/utils/attribute.js.map +1 -1
  815. package/esm/plugin/components/tooltip-handler/utils/common.d.ts +3 -3
  816. package/esm/plugin/components/tooltip-handler/utils/common.js +10 -1
  817. package/esm/plugin/components/tooltip-handler/utils/common.js.map +1 -1
  818. package/esm/plugin/components/tooltip-handler/utils/compose.d.ts +2 -2
  819. package/esm/plugin/components/tooltip-handler/utils/compose.js +5 -7
  820. package/esm/plugin/components/tooltip-handler/utils/compose.js.map +1 -1
  821. package/esm/plugin/components/tooltip-handler/utils/get-spec.js +14 -11
  822. package/esm/plugin/components/tooltip-handler/utils/get-spec.js.map +1 -1
  823. package/esm/plugin/components/tooltip-handler/utils/position.d.ts +18 -3
  824. package/esm/plugin/components/tooltip-handler/utils/position.js +39 -7
  825. package/esm/plugin/components/tooltip-handler/utils/position.js.map +1 -1
  826. package/esm/plugin/index.d.ts +1 -0
  827. package/esm/plugin/index.js +2 -0
  828. package/esm/plugin/index.js.map +1 -1
  829. package/esm/series/area/interface.d.ts +2 -1
  830. package/esm/series/area/interface.js.map +1 -1
  831. package/esm/series/bar/bar-3d.js.map +1 -1
  832. package/esm/series/bar/bar.d.ts +11 -1
  833. package/esm/series/bar/bar.js +99 -66
  834. package/esm/series/bar/bar.js.map +1 -1
  835. package/esm/series/bar/interface.d.ts +4 -3
  836. package/esm/series/bar/interface.js.map +1 -1
  837. package/esm/series/base/base-series-transformer.d.ts +4 -0
  838. package/esm/series/base/base-series-transformer.js +35 -10
  839. package/esm/series/base/base-series-transformer.js.map +1 -1
  840. package/esm/series/base/base-series.d.ts +4 -1
  841. package/esm/series/base/base-series.js +12 -3
  842. package/esm/series/base/base-series.js.map +1 -1
  843. package/esm/series/base/tooltip-helper.d.ts +3 -3
  844. package/esm/series/base/tooltip-helper.js.map +1 -1
  845. package/esm/series/cartesian/cartesian.d.ts +1 -2
  846. package/esm/series/cartesian/cartesian.js +28 -25
  847. package/esm/series/cartesian/cartesian.js.map +1 -1
  848. package/esm/series/circle-packing/circle-packing.js.map +1 -1
  849. package/esm/series/correlation/interface.d.ts +3 -3
  850. package/esm/series/correlation/interface.js.map +1 -1
  851. package/esm/series/dot/interface.d.ts +2 -2
  852. package/esm/series/dot/interface.js.map +1 -1
  853. package/esm/series/dot/tooltip-helper.js +1 -3
  854. package/esm/series/dot/tooltip-helper.js.map +1 -1
  855. package/esm/series/funnel/funnel.js.map +1 -1
  856. package/esm/series/funnel/interface.d.ts +5 -4
  857. package/esm/series/funnel/interface.js.map +1 -1
  858. package/esm/series/gauge/constant.js +2 -2
  859. package/esm/series/gauge/constant.js.map +1 -1
  860. package/esm/series/gauge/gauge.js +3 -3
  861. package/esm/series/gauge/gauge.js.map +1 -1
  862. package/esm/series/gauge/interface.d.ts +3 -3
  863. package/esm/series/gauge/interface.js.map +1 -1
  864. package/esm/series/interface/common.d.ts +3 -1
  865. package/esm/series/interface/common.js.map +1 -1
  866. package/esm/series/line/interface.d.ts +3 -2
  867. package/esm/series/line/interface.js.map +1 -1
  868. package/esm/series/link/tooltip-helper.js +1 -1
  869. package/esm/series/link/tooltip-helper.js.map +1 -1
  870. package/esm/series/map/interface.d.ts +2 -5
  871. package/esm/series/map/interface.js.map +1 -1
  872. package/esm/series/mixin/line-mixin.js +1 -1
  873. package/esm/series/mixin/line-mixin.js.map +1 -1
  874. package/esm/series/pie/3d/pie-3d.d.ts +1 -1
  875. package/esm/series/pie/3d/pie-3d.js +2 -3
  876. package/esm/series/pie/3d/pie-3d.js.map +1 -1
  877. package/esm/series/pie/interface.d.ts +5 -4
  878. package/esm/series/pie/interface.js.map +1 -1
  879. package/esm/series/pie/pie-transformer.js +5 -1
  880. package/esm/series/pie/pie-transformer.js.map +1 -1
  881. package/esm/series/pie/pie.js +1 -4
  882. package/esm/series/pie/pie.js.map +1 -1
  883. package/esm/series/polar/progress-like/progress-like.js +23 -25
  884. package/esm/series/polar/progress-like/progress-like.js.map +1 -1
  885. package/esm/series/progress/circular/circular.js +1 -3
  886. package/esm/series/progress/circular/circular.js.map +1 -1
  887. package/esm/series/progress/circular/constant.js +2 -2
  888. package/esm/series/progress/circular/constant.js.map +1 -1
  889. package/esm/series/progress/circular/interface.d.ts +5 -5
  890. package/esm/series/progress/circular/interface.js.map +1 -1
  891. package/esm/series/radar/interface.d.ts +2 -1
  892. package/esm/series/radar/interface.js.map +1 -1
  893. package/esm/series/range-area/tooltip-helper.js.map +1 -1
  894. package/esm/series/range-column/interface.d.ts +5 -5
  895. package/esm/series/range-column/interface.js.map +1 -1
  896. package/esm/series/rose/interface.d.ts +2 -1
  897. package/esm/series/rose/interface.js.map +1 -1
  898. package/esm/series/rose/rose.js +1 -5
  899. package/esm/series/rose/rose.js.map +1 -1
  900. package/esm/series/sankey/interface.d.ts +2 -2
  901. package/esm/series/sankey/interface.js.map +1 -1
  902. package/esm/series/sankey/sankey.js.map +1 -1
  903. package/esm/series/sankey/tooltip-helper.js.map +1 -1
  904. package/esm/series/scatter/interface.d.ts +2 -1
  905. package/esm/series/scatter/interface.js.map +1 -1
  906. package/esm/series/sunburst/sunburst.d.ts +1 -1
  907. package/esm/series/sunburst/sunburst.js.map +1 -1
  908. package/esm/series/treemap/interface.d.ts +3 -2
  909. package/esm/series/treemap/interface.js.map +1 -1
  910. package/esm/series/treemap/treemap.d.ts +2 -0
  911. package/esm/series/treemap/treemap.js +43 -46
  912. package/esm/series/treemap/treemap.js.map +1 -1
  913. package/esm/series/util/utils.js +1 -1
  914. package/esm/series/util/utils.js.map +1 -1
  915. package/esm/series/word-cloud/base.js.map +1 -1
  916. package/esm/series/word-cloud/interface.d.ts +2 -6
  917. package/esm/series/word-cloud/interface.js.map +1 -1
  918. package/esm/theme/builtin/common/component/axis/cartesian-axis.js +8 -4
  919. package/esm/theme/builtin/common/component/axis/cartesian-axis.js.map +1 -1
  920. package/esm/theme/builtin/common/component/axis/common-axis.js +14 -7
  921. package/esm/theme/builtin/common/component/axis/common-axis.js.map +1 -1
  922. package/esm/theme/builtin/common/component/crosshair.js +120 -7
  923. package/esm/theme/builtin/common/component/crosshair.js.map +1 -1
  924. package/esm/theme/builtin/common/component/data-zoom.js +16 -6
  925. package/esm/theme/builtin/common/component/data-zoom.js.map +1 -1
  926. package/esm/theme/builtin/common/component/indicator.js +8 -4
  927. package/esm/theme/builtin/common/component/indicator.js.map +1 -1
  928. package/esm/theme/builtin/common/component/legend/continuous.js +32 -10
  929. package/esm/theme/builtin/common/component/legend/continuous.js.map +1 -1
  930. package/esm/theme/builtin/common/component/legend/discrete-legend.js +16 -6
  931. package/esm/theme/builtin/common/component/legend/discrete-legend.js.map +1 -1
  932. package/esm/theme/builtin/common/component/map-label.js +8 -4
  933. package/esm/theme/builtin/common/component/map-label.js.map +1 -1
  934. package/esm/theme/builtin/common/component/mark-area.js +4 -3
  935. package/esm/theme/builtin/common/component/mark-area.js.map +1 -1
  936. package/esm/theme/builtin/common/component/mark-line.js +4 -3
  937. package/esm/theme/builtin/common/component/mark-line.js.map +1 -1
  938. package/esm/theme/builtin/common/component/poptip.js +8 -4
  939. package/esm/theme/builtin/common/component/poptip.js.map +1 -1
  940. package/esm/theme/builtin/common/component/title.js +16 -6
  941. package/esm/theme/builtin/common/component/title.js.map +1 -1
  942. package/esm/theme/builtin/common/component/tooltip.js +24 -8
  943. package/esm/theme/builtin/common/component/tooltip.js.map +1 -1
  944. package/esm/theme/builtin/common/component/total-label.js +4 -3
  945. package/esm/theme/builtin/common/component/total-label.js.map +1 -1
  946. package/esm/theme/builtin/common/mark.js +11 -6
  947. package/esm/theme/builtin/common/mark.js.map +1 -1
  948. package/esm/theme/builtin/common/series/box-plot.js +5 -0
  949. package/esm/theme/builtin/common/series/box-plot.js.map +1 -1
  950. package/esm/theme/builtin/common/series/circle-packing.js +8 -4
  951. package/esm/theme/builtin/common/series/circle-packing.js.map +1 -1
  952. package/esm/theme/builtin/common/series/dot.js +16 -6
  953. package/esm/theme/builtin/common/series/dot.js.map +1 -1
  954. package/esm/theme/builtin/common/series/funnel.js +8 -4
  955. package/esm/theme/builtin/common/series/funnel.js.map +1 -1
  956. package/esm/theme/builtin/common/series/funnel3d.js +8 -4
  957. package/esm/theme/builtin/common/series/funnel3d.js.map +1 -1
  958. package/esm/theme/builtin/common/series/map.js +8 -4
  959. package/esm/theme/builtin/common/series/map.js.map +1 -1
  960. package/esm/theme/builtin/common/series/rangeColumn.js +1 -0
  961. package/esm/theme/builtin/common/series/rangeColumn.js.map +1 -1
  962. package/esm/theme/builtin/common/series/sunburst.js +8 -4
  963. package/esm/theme/builtin/common/series/sunburst.js.map +1 -1
  964. package/esm/theme/builtin/common/series/treemap.js +17 -7
  965. package/esm/theme/builtin/common/series/treemap.js.map +1 -1
  966. package/esm/theme/builtin/common/series/waterfall.js +8 -4
  967. package/esm/theme/builtin/common/series/waterfall.js.map +1 -1
  968. package/esm/theme/builtin/index.js +4 -4
  969. package/esm/theme/builtin/index.js.map +1 -1
  970. package/esm/theme/builtin/light/index.js +7 -3
  971. package/esm/theme/builtin/light/index.js.map +1 -1
  972. package/esm/theme/interface.d.ts +3 -19
  973. package/esm/theme/interface.js.map +1 -1
  974. package/esm/theme/theme-manager.d.ts +1 -1
  975. package/esm/theme/theme-manager.js +2 -2
  976. package/esm/theme/theme-manager.js.map +1 -1
  977. package/esm/theme/token/builtin/default.d.ts +2 -0
  978. package/esm/theme/{builtin/common/constants.js → token/builtin/default.js} +3 -5
  979. package/esm/theme/token/builtin/default.js.map +1 -0
  980. package/esm/theme/token/builtin/index.d.ts +2 -0
  981. package/esm/theme/token/builtin/index.js +4 -0
  982. package/esm/theme/token/builtin/index.js.map +1 -0
  983. package/esm/theme/token/builtin/interface.d.ts +17 -0
  984. package/esm/theme/token/builtin/interface.js +2 -0
  985. package/esm/theme/token/builtin/interface.js.map +1 -0
  986. package/esm/theme/token/index.d.ts +3 -0
  987. package/esm/theme/token/index.js +6 -0
  988. package/esm/theme/token/index.js.map +1 -0
  989. package/esm/theme/token/interface.d.ts +6 -0
  990. package/esm/theme/token/interface.js +2 -0
  991. package/esm/theme/token/interface.js.map +1 -0
  992. package/esm/theme/token/util.d.ts +3 -0
  993. package/esm/theme/token/util.js +8 -0
  994. package/esm/theme/token/util.js.map +1 -0
  995. package/esm/typings/spec/common.d.ts +32 -22
  996. package/esm/typings/spec/common.js.map +1 -1
  997. package/esm/typings/tooltip/line.d.ts +5 -2
  998. package/esm/typings/tooltip/line.js.map +1 -1
  999. package/esm/typings/tooltip/position.d.ts +18 -24
  1000. package/esm/typings/tooltip/position.js +1 -15
  1001. package/esm/typings/tooltip/position.js.map +1 -1
  1002. package/esm/typings/tooltip/shape.d.ts +2 -2
  1003. package/esm/typings/tooltip/shape.js.map +1 -1
  1004. package/esm/typings/tooltip/tooltip.d.ts +8 -8
  1005. package/esm/typings/tooltip/tooltip.js.map +1 -1
  1006. package/esm/typings/visual.d.ts +15 -11
  1007. package/esm/typings/visual.js.map +1 -1
  1008. package/esm/util/data.d.ts +2 -1
  1009. package/esm/util/data.js +12 -8
  1010. package/esm/util/data.js.map +1 -1
  1011. package/esm/util/index.d.ts +1 -2
  1012. package/esm/util/index.js +1 -3
  1013. package/esm/util/index.js.map +1 -1
  1014. package/esm/util/spec/common.d.ts +0 -2
  1015. package/esm/util/spec/common.js +0 -8
  1016. package/esm/util/spec/common.js.map +1 -1
  1017. package/esm/util/spec/index.d.ts +2 -2
  1018. package/esm/util/spec/index.js +2 -2
  1019. package/esm/util/spec/index.js.map +1 -1
  1020. package/esm/util/text.js +4 -4
  1021. package/esm/util/text.js.map +1 -1
  1022. package/esm/util/theme/common.d.ts +2 -0
  1023. package/esm/util/theme/common.js +8 -0
  1024. package/esm/util/theme/common.js.map +1 -0
  1025. package/esm/util/theme/index.d.ts +3 -0
  1026. package/esm/util/theme/index.js +6 -0
  1027. package/esm/util/theme/index.js.map +1 -0
  1028. package/esm/util/{spec → theme}/merge-theme.js +3 -1
  1029. package/esm/util/theme/merge-theme.js.map +1 -0
  1030. package/esm/util/{spec → theme}/preprocess.d.ts +2 -1
  1031. package/esm/util/theme/preprocess.js +18 -0
  1032. package/esm/util/theme/preprocess.js.map +1 -0
  1033. package/esm/vchart-all.js +4 -2
  1034. package/esm/vchart-all.js.map +1 -1
  1035. package/esm/vchart-simple.js +1 -1
  1036. package/esm/vchart-simple.js.map +1 -1
  1037. package/package.json +18 -18
  1038. package/cjs/component/axis/cartesian/util/time.d.ts +0 -80
  1039. package/cjs/component/axis/cartesian/util/time.js +0 -204
  1040. package/cjs/component/axis/cartesian/util/time.js.map +0 -1
  1041. package/cjs/component/crosshair/util.js.map +0 -1
  1042. package/cjs/data/transforms/treemap.d.ts +0 -11
  1043. package/cjs/data/transforms/treemap.js +0 -15
  1044. package/cjs/data/transforms/treemap.js.map +0 -1
  1045. package/cjs/mark/progress-arc.d.ts +0 -14
  1046. package/cjs/mark/progress-arc.js +0 -55
  1047. package/cjs/mark/progress-arc.js.map +0 -1
  1048. package/cjs/theme/builtin/common/constants.d.ts +0 -2
  1049. package/cjs/theme/builtin/common/constants.js.map +0 -1
  1050. package/cjs/util/spec/merge-theme.js.map +0 -1
  1051. package/cjs/util/spec/preprocess.js.map +0 -1
  1052. package/esm/component/axis/cartesian/util/time.d.ts +0 -80
  1053. package/esm/component/axis/cartesian/util/time.js +0 -196
  1054. package/esm/component/axis/cartesian/util/time.js.map +0 -1
  1055. package/esm/component/crosshair/util.js.map +0 -1
  1056. package/esm/data/transforms/treemap.d.ts +0 -11
  1057. package/esm/data/transforms/treemap.js +0 -9
  1058. package/esm/data/transforms/treemap.js.map +0 -1
  1059. package/esm/mark/progress-arc.d.ts +0 -14
  1060. package/esm/mark/progress-arc.js +0 -47
  1061. package/esm/mark/progress-arc.js.map +0 -1
  1062. package/esm/theme/builtin/common/constants.d.ts +0 -2
  1063. package/esm/theme/builtin/common/constants.js.map +0 -1
  1064. package/esm/util/spec/merge-theme.js.map +0 -1
  1065. package/esm/util/spec/preprocess.js +0 -15
  1066. package/esm/util/spec/preprocess.js.map +0 -1
  1067. /package/cjs/util/{spec → theme}/merge-theme.d.ts +0 -0
  1068. /package/esm/util/{spec → theme}/merge-theme.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/theme/token/builtin/default.ts"],"names":[],"mappings":";;;AAGa,QAAA,QAAQ,GAAoB;IACvC,iBAAiB,EAEf,gKAAgK;IAClK,eAAe,EAAE,EAAE;IAEnB,UAAU,EAAE,EAAE;IACd,YAAY,EAAE,MAAM;IAEpB,UAAU,EAAE,EAAE;IACd,YAAY,EAAE,MAAM;IAEpB,UAAU,EAAE,EAAE;IACd,YAAY,EAAE,MAAM;IAEpB,UAAU,EAAE,EAAE;IACd,YAAY,EAAE,MAAM;IAEpB,UAAU,EAAE,EAAE;IACd,YAAY,EAAE,MAAM;IAEpB,UAAU,EAAE,EAAE;IACd,YAAY,EAAE,MAAM;CACrB,CAAC","file":"default.js","sourcesContent":["import type { BuiltinTokenMap } from './interface';\n\n/** 标准色板 */\nexport const tokenMap: BuiltinTokenMap = {\n defaultFontFamily:\n // eslint-disable-next-line max-len\n 'PingFang SC,Helvetica Neue,Microsoft Yahei,system-ui,-apple-system,segoe ui,Roboto,Helvetica,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol',\n defaultFontSize: 14,\n\n l1FontSize: 32,\n l1LineHeight: '150%',\n\n l2FontSize: 20,\n l2LineHeight: '140%',\n\n l3FontSize: 16,\n l3LineHeight: '150%',\n\n l4FontSize: 14,\n l4LineHeight: '150%',\n\n l5FontSize: 12,\n l5LineHeight: '130%',\n\n l6FontSize: 10,\n l6LineHeight: '120%'\n};\n"]}
@@ -0,0 +1,2 @@
1
+ export * from './default';
2
+ export * from './interface';
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ var __createBinding = this && this.__createBinding || (Object.create ? function(o, m, k, k2) {
4
+ void 0 === k2 && (k2 = k);
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ desc && !("get" in desc ? !m.__esModule : desc.writable || desc.configurable) || (desc = {
7
+ enumerable: !0,
8
+ get: function() {
9
+ return m[k];
10
+ }
11
+ }), Object.defineProperty(o, k2, desc);
12
+ } : function(o, m, k, k2) {
13
+ void 0 === k2 && (k2 = k), o[k2] = m[k];
14
+ }), __exportStar = this && this.__exportStar || function(m, exports) {
15
+ for (var p in m) "default" === p || Object.prototype.hasOwnProperty.call(exports, p) || __createBinding(exports, m, p);
16
+ };
17
+
18
+ Object.defineProperty(exports, "__esModule", {
19
+ value: !0
20
+ }), __exportStar(require("./default"), exports), __exportStar(require("./interface"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/theme/token/builtin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,8CAA4B","file":"index.js","sourcesContent":["export * from './default';\nexport * from './interface';\n"]}
@@ -0,0 +1,17 @@
1
+ import type { TokenMap } from '../interface';
2
+ export type BuiltinTokenMap = TokenMap & {
3
+ defaultFontFamily: string;
4
+ defaultFontSize: number;
5
+ l1FontSize: number;
6
+ l1LineHeight: number | string;
7
+ l2FontSize: number;
8
+ l2LineHeight: number | string;
9
+ l3FontSize: number;
10
+ l3LineHeight: number | string;
11
+ l4FontSize: number;
12
+ l4LineHeight: number | string;
13
+ l5FontSize: number;
14
+ l5LineHeight: number | string;
15
+ l6FontSize: number;
16
+ l6LineHeight: number | string;
17
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: !0
5
+ });
6
+ //# sourceMappingURL=interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/theme/token/builtin/interface.ts"],"names":[],"mappings":"","file":"interface.js","sourcesContent":["import type { TokenMap } from '../interface';\n\nexport type BuiltinTokenMap = TokenMap & {\n /** 默认字体 */\n defaultFontFamily: string;\n /** 默认字号 */\n defaultFontSize: number;\n\n /** 1级字阶字号,用于:环形图中间数值 / 展示型数值 */\n l1FontSize: number;\n /** 1级字阶行高 */\n l1LineHeight: number | string;\n\n /** 2级字阶字号,用于:展示型文字 / 指标卡数值 */\n l2FontSize: number;\n /** 2级字阶行高 */\n l2LineHeight: number | string;\n\n /** 3级字阶字号,用于:图表标题 */\n l3FontSize: number;\n /** 3级字阶行高 */\n l3LineHeight: number | string;\n\n /** 4级字阶字号,用于:数据标签、tooltip */\n l4FontSize: number;\n /** 4级字阶行高 */\n l4LineHeight: number | string;\n\n /** 5级字阶字号,用于:坐标轴标题、轴标签、图例文字 */\n l5FontSize: number;\n /** 5级字阶行高 */\n l5LineHeight: number | string;\n\n /** 6级字阶字号,用于:地图标签 */\n l6FontSize: number;\n /** 6级字阶行高 */\n l6LineHeight: number | string;\n};\n"]}
@@ -0,0 +1,3 @@
1
+ export * from './interface';
2
+ export * from './util';
3
+ export * from './builtin';
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ var __createBinding = this && this.__createBinding || (Object.create ? function(o, m, k, k2) {
4
+ void 0 === k2 && (k2 = k);
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ desc && !("get" in desc ? !m.__esModule : desc.writable || desc.configurable) || (desc = {
7
+ enumerable: !0,
8
+ get: function() {
9
+ return m[k];
10
+ }
11
+ }), Object.defineProperty(o, k2, desc);
12
+ } : function(o, m, k, k2) {
13
+ void 0 === k2 && (k2 = k), o[k2] = m[k];
14
+ }), __exportStar = this && this.__exportStar || function(m, exports) {
15
+ for (var p in m) "default" === p || Object.prototype.hasOwnProperty.call(exports, p) || __createBinding(exports, m, p);
16
+ };
17
+
18
+ Object.defineProperty(exports, "__esModule", {
19
+ value: !0
20
+ }), __exportStar(require("./interface"), exports), __exportStar(require("./util"), exports),
21
+ __exportStar(require("./builtin"), exports);
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/theme/token/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,yCAAuB;AACvB,4CAA0B","file":"index.js","sourcesContent":["export * from './interface';\nexport * from './util';\nexport * from './builtin';\n"]}
@@ -0,0 +1,6 @@
1
+ export interface ITokenKey<T = any> {
2
+ type: 'token';
3
+ key: string;
4
+ default?: T;
5
+ }
6
+ export type TokenMap = Record<string, any>;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: !0
5
+ });
6
+ //# sourceMappingURL=interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/theme/token/interface.ts"],"names":[],"mappings":"","file":"interface.js","sourcesContent":["/** 语义化 token 的索引 */\nexport interface ITokenKey<T = any> {\n /** type 声明 */\n type: 'token';\n /** token key */\n key: string;\n /** 默认值,在没有取到 key 对应的值时返回 */\n default?: T;\n}\n\nexport type TokenMap = Record<string, any>;\n"]}
@@ -0,0 +1,3 @@
1
+ import type { ITokenKey, TokenMap } from './interface';
2
+ export declare function queryToken<T>(tokenMap: TokenMap, tokenKey: ITokenKey<T>): T | undefined;
3
+ export declare function isTokenKey(obj: any): obj is ITokenKey;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ function queryToken(tokenMap, tokenKey) {
4
+ return tokenMap && tokenKey.key in tokenMap ? tokenMap[tokenKey.key] : tokenKey.default;
5
+ }
6
+
7
+ function isTokenKey(obj) {
8
+ return obj && "token" === obj.type && !!obj.key;
9
+ }
10
+
11
+ Object.defineProperty(exports, "__esModule", {
12
+ value: !0
13
+ }), exports.isTokenKey = exports.queryToken = void 0, exports.queryToken = queryToken,
14
+ exports.isTokenKey = isTokenKey;
15
+ //# sourceMappingURL=util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/theme/token/util.ts"],"names":[],"mappings":";;;AAKA,SAAgB,UAAU,CAAI,QAAkB,EAAE,QAAsB;IACtE,IAAI,QAAQ,IAAI,QAAQ,CAAC,GAAG,IAAI,QAAQ,EAAE;QACxC,OAAO,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;KAC/B;IACD,OAAO,QAAQ,CAAC,OAAO,CAAC;AAC1B,CAAC;AALD,gCAKC;AAED,SAAgB,UAAU,CAAC,GAAQ;IACjC,OAAO,GAAG,IAAK,GAAiB,CAAC,IAAI,KAAK,OAAO,IAAI,CAAC,CAAE,GAAiB,CAAC,GAAG,CAAC;AAChF,CAAC;AAFD,gCAEC","file":"util.js","sourcesContent":["import type { ITokenKey, TokenMap } from './interface';\n\n/**\n * 根据 tokenMap 和 token 索引查询 token 值\n */\nexport function queryToken<T>(tokenMap: TokenMap, tokenKey: ITokenKey<T>): T | undefined {\n if (tokenMap && tokenKey.key in tokenMap) {\n return tokenMap[tokenKey.key];\n }\n return tokenKey.default;\n}\n\nexport function isTokenKey(obj: any): obj is ITokenKey {\n return obj && (obj as ITokenKey).type === 'token' && !!(obj as ITokenKey).key;\n}\n"]}
@@ -7,7 +7,7 @@ import type { IHoverSpec, ISelectSpec, IInteractionSpec } from '../../interactio
7
7
  import type { IRenderOption } from '../../compile/interface';
8
8
  import type { ITooltipSpec } from '../../component/tooltip/interface';
9
9
  import type { ILayoutSpec } from '../../layout/interface';
10
- import type { ConvertToMarkStyleSpec, IArc3dMarkSpec, IArcMarkSpec, IAreaMarkSpec, IBoxPlotMarkSpec, ICommonSpec, IGroupMarkSpec, ILineMarkSpec, ILinkPathMarkSpec, IPathMarkSpec, IPolygonMarkSpec, IProgressArcMarkSpec, IPyramid3dMarkSpec, IRect3dMarkSpec, IRectMarkSpec, IRuleMarkSpec, ISymbolMarkSpec, IRippleMarkSpec, ITextMarkSpec, IVisualSpecScale } from '../visual';
10
+ import type { ConvertToMarkStyleSpec, IArc3dMarkSpec, IArcMarkSpec, IAreaMarkSpec, IBoxPlotMarkSpec, ICommonSpec, IGroupMarkSpec, ILineMarkSpec, ILinkPathMarkSpec, IPathMarkSpec, IPolygonMarkSpec, IPyramid3dMarkSpec, IRect3dMarkSpec, IRectMarkSpec, IRuleMarkSpec, ISymbolMarkSpec, IRippleMarkSpec, ITextMarkSpec, IVisualSpecScale } from '../visual';
11
11
  import type { StateValue } from '../../compile/mark';
12
12
  import type { ISeriesStyle, SeriesType } from '../../series/interface';
13
13
  import type { Datum, StringOrNumber } from '../common';
@@ -23,7 +23,7 @@ import type { IBrushSpec } from '../../component/brush';
23
23
  import type { ITotalLabelSpec } from '../../component/label';
24
24
  import type { ILegendSpec } from '../../component/legend';
25
25
  import type { ILayoutOrientPadding, ILayoutPaddingSpec } from '../layout';
26
- import type { ICustomPath2D } from '@visactor/vrender-core';
26
+ import type { ICustomPath2D, IRichTextCharacter } from '@visactor/vrender-core';
27
27
  import type { ICommonAxisSpec } from '../../component/axis';
28
28
  import type { IMediaQuerySpec } from '..';
29
29
  export type IChartPadding = ILayoutOrientPadding | number;
@@ -159,7 +159,7 @@ export interface ISeriesSpec extends IInteractionSpec {
159
159
  animationThreshold?: number;
160
160
  support3d?: boolean;
161
161
  morph?: IMorphSeriesSpec;
162
- extensionMark?: (IExtensionMarkSpec<Exclude<EnableMarkType, MarkTypeEnum.group>> | IExtensionGroupMarkSpec)[];
162
+ extensionMark?: (IExtensionMarkSpec<Exclude<EnableMarkType, 'group'>> | IExtensionGroupMarkSpec)[];
163
163
  }
164
164
  export type IChartExtendsSeriesSpec<T extends ISeriesSpec> = Omit<T, 'data' | 'morph' | 'stackValue'>;
165
165
  export type AdaptiveSpec<T, K extends keyof any> = {
@@ -236,40 +236,50 @@ export interface IPerformanceHook {
236
236
  afterVRenderDraw?: () => void;
237
237
  }
238
238
  export type IBuildinMarkSpec = {
239
- [MarkTypeEnum.group]: IGroupMarkSpec;
240
- [MarkTypeEnum.symbol]: ISymbolMarkSpec;
241
- [MarkTypeEnum.rule]: IRuleMarkSpec;
242
- [MarkTypeEnum.line]: ILineMarkSpec;
243
- [MarkTypeEnum.text]: ITextMarkSpec;
244
- [MarkTypeEnum.rect]: IRectMarkSpec;
245
- [MarkTypeEnum.rect3d]: IRect3dMarkSpec;
246
- [MarkTypeEnum.image]: IImageMarkSpec;
247
- [MarkTypeEnum.path]: IPathMarkSpec;
248
- [MarkTypeEnum.area]: IAreaMarkSpec;
249
- [MarkTypeEnum.arc]: IArcMarkSpec;
250
- [MarkTypeEnum.arc3d]: IArc3dMarkSpec;
251
- [MarkTypeEnum.polygon]: IPolygonMarkSpec;
252
- [MarkTypeEnum.pyramid3d]: IPyramid3dMarkSpec;
253
- [MarkTypeEnum.boxPlot]: IBoxPlotMarkSpec;
254
- [MarkTypeEnum.linkPath]: ILinkPathMarkSpec;
255
- [MarkTypeEnum.progressArc]: IProgressArcMarkSpec;
256
- [MarkTypeEnum.ripple]: IRippleMarkSpec;
239
+ group: IGroupMarkSpec;
240
+ symbol: ISymbolMarkSpec;
241
+ rule: IRuleMarkSpec;
242
+ line: ILineMarkSpec;
243
+ text: ITextMarkSpec;
244
+ rect: IRectMarkSpec;
245
+ rect3d: IRect3dMarkSpec;
246
+ image: IImageMarkSpec;
247
+ path: IPathMarkSpec;
248
+ area: IAreaMarkSpec;
249
+ arc: IArcMarkSpec;
250
+ arc3d: IArc3dMarkSpec;
251
+ polygon: IPolygonMarkSpec;
252
+ pyramid3d: IPyramid3dMarkSpec;
253
+ boxPlot: IBoxPlotMarkSpec;
254
+ linkPath: ILinkPathMarkSpec;
255
+ ripple: IRippleMarkSpec;
257
256
  };
258
257
  export type EnableMarkType = keyof IBuildinMarkSpec;
259
258
  export interface ICustomMarkSpec<T extends EnableMarkType> extends IMarkSpec<IBuildinMarkSpec[T]> {
260
259
  type: T;
261
260
  dataIndex?: number;
261
+ dataKey?: string | ((datum: any) => string);
262
262
  dataId?: StringOrNumber;
263
263
  componentType?: string;
264
264
  }
265
265
  export interface ICustomMarkGroupSpec extends ICustomMarkSpec<MarkTypeEnum.group> {
266
266
  children?: ICustomMarkSpec<EnableMarkType>[];
267
267
  }
268
- export interface IExtensionMarkSpec<T extends Exclude<EnableMarkType, MarkTypeEnum.group>> extends ICustomMarkSpec<T> {
268
+ export interface IExtensionMarkSpec<T extends Exclude<EnableMarkType, 'group'>> extends ICustomMarkSpec<T> {
269
269
  dataIndex?: number;
270
+ dataKey?: string | ((datum: any) => string);
270
271
  dataId?: StringOrNumber;
271
272
  componentType?: string;
272
273
  }
273
274
  export interface IExtensionGroupMarkSpec extends ICustomMarkSpec<MarkTypeEnum.group> {
274
275
  children?: ICustomMarkSpec<EnableMarkType>[];
275
276
  }
277
+ export type ITextFormatMethod<T extends any[]> = (...args: T) => ITextMarkSpec['text'] | {
278
+ type: 'text';
279
+ text: ITextMarkSpec['text'];
280
+ };
281
+ export type IRichTextFormatMethod<T extends any[]> = (...args: T) => {
282
+ type: 'rich';
283
+ text: IRichTextCharacter[];
284
+ } | IRichTextCharacter[];
285
+ export type IFormatMethod<T extends any[]> = (...args: T) => ReturnType<ITextFormatMethod<T>> | ReturnType<IRichTextFormatMethod<T>>;
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/typings/spec/common.ts"],"names":[],"mappings":";;;AA0HA,IAAY,cASX;AATD,WAAY,cAAc;IACxB,qDAAqC,CAAA;IACrC,mDAAmC,CAAA;IACnC,+BAAe,CAAA;IACf,mCAAmB,CAAA;IACnB,qCAAqB,CAAA;IACrB,2BAAW,CAAA;IACX,qDAAqC,CAAA;IACrC,+BAAe,CAAA;AACjB,CAAC,EATW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QASzB","file":"common.js","sourcesContent":["import type { IFillMarkSpec, IImageMarkSpec } from '../visual';\nimport type { LayoutCallBack } from '../../layout/interface';\nimport type { IElement, srIOption3DType } from '@visactor/vgrammar-core';\nimport type {\n DataSet,\n DataView,\n ISimplifyOptions,\n IFieldsOptions,\n IFilterOptions,\n IFoldOptions,\n IDsvParserOptions\n} from '@visactor/vdataset';\nimport type { IRegionSpec } from '../../region/interface';\nimport type { IHoverSpec, ISelectSpec, IInteractionSpec } from '../../interaction/interface';\nimport type { IRenderOption } from '../../compile/interface';\nimport type { ITooltipSpec } from '../../component/tooltip/interface';\n// eslint-disable-next-line no-duplicate-imports\nimport type { ILayoutSpec } from '../../layout/interface';\n// eslint-disable-next-line no-duplicate-imports\nimport type {\n ConvertToMarkStyleSpec,\n IArc3dMarkSpec,\n IArcMarkSpec,\n IAreaMarkSpec,\n IBoxPlotMarkSpec,\n ICommonSpec,\n IGroupMarkSpec,\n ILineMarkSpec,\n ILinkPathMarkSpec,\n IPathMarkSpec,\n IPolygonMarkSpec,\n IProgressArcMarkSpec,\n IPyramid3dMarkSpec,\n IRect3dMarkSpec,\n IRectMarkSpec,\n IRuleMarkSpec,\n ISymbolMarkSpec,\n IRippleMarkSpec,\n ITextMarkSpec,\n IVisualSpecScale\n} from '../visual';\nimport type { StateValue } from '../../compile/mark';\nimport type { ISeriesStyle, SeriesType } from '../../series/interface';\nimport type { Datum, StringOrNumber } from '../common';\nimport type { IInvalidType } from '../data';\nimport type { IMorphSeriesSpec } from '../../animation/spec';\nimport type { IPlayer } from '../../component/player';\nimport type { IMarkProgressiveConfig, MarkTypeEnum } from '../../mark/interface';\nimport type { IDataZoomSpec, IScrollBarSpec } from '../../component/data-zoom';\nimport type { ICrosshairSpec } from '../../component/crosshair/interface';\nimport type { ITheme } from '../../theme';\nimport type { ITitleSpec } from '../../component/title/interface';\nimport type { IBrushSpec } from '../../component/brush';\nimport type { ITotalLabelSpec } from '../../component/label';\nimport type { ILegendSpec } from '../../component/legend';\nimport type { ILayoutOrientPadding, ILayoutPaddingSpec } from '../layout';\nimport type { ICustomPath2D } from '@visactor/vrender-core';\nimport type { ICommonAxisSpec } from '../../component/axis';\nimport type { IMediaQuerySpec } from '..';\n\nexport type IChartPadding = ILayoutOrientPadding | number;\n\n/** chart option */\nexport interface IInitOption extends Omit<IRenderOption, 'pluginList'> {\n /**\n * **仅生效于浏览器环境。**\n * 图表挂载的父容器,可以直接指定容器 id,也可以传入 dom 对象\n */\n dom?: string | HTMLElement;\n /**\n * 除去选择 dom 属性进行挂载父容器,也可以使用 renderCanvas 属性直接传入 canvas 实例/ canvasId\n * 小程序/小组件环境请直接传入 id\n */\n renderCanvas?: string | HTMLCanvasElement;\n /** 数据集 */\n dataSet?: DataSet;\n /** 是否自适应容器大小 */\n autoFit?: boolean;\n /**\n * 性能测试钩子\n */\n performanceHook?: IPerformanceHook;\n /**\n * 是否开启动画\n */\n animation?: boolean;\n /**\n * 3d配置\n */\n options3d?: srIOption3DType;\n\n /**\n * 自定义布局函数\n */\n layout?: LayoutCallBack;\n\n /**\n * 当文本省略时,鼠标 hover 到文本上时是否显示 poptip\n * @default true\n */\n poptip?: boolean;\n\n /**\n * 报错的回调函数\n * @since 1.2.0\n */\n onError?: (...args: any[]) => void;\n\n /**\n * 默认主题(支持完整主题对象或者主题名称,主题名称需要提前在 `ThemeManager` 中注册)\n * @since 1.3.0\n */\n theme?: string | ITheme;\n\n /**\n * 是否关闭交互效果\n * @since 1.9.0\n * @default false\n */\n disableTriggerEvent?: boolean;\n}\n\nexport enum RenderModeEnum {\n 'desktop-browser' = 'desktop-browser',\n 'mobile-browser' = 'mobile-browser',\n 'node' = 'node',\n 'worker' = 'worker',\n 'miniApp' = 'miniApp',\n 'wx' = 'wx',\n 'desktop-miniApp' = 'desktop-miniApp',\n 'lynx' = 'lynx'\n}\nexport type RenderMode = keyof typeof RenderModeEnum;\n\n/** chart spec */\nexport interface IChartSpec {\n /** 图表类型 */\n type: string;\n /** 数据 */\n data?: IData;\n /** 画布宽度 */\n width?: number;\n /** 画布高度 */\n height?: number;\n /**\n * 图表宽高是否自适应容器,浏览器环境下默认为 true。\n * 该配置的优先级高于构造函数中的 autoFit 配置。\n * 如果用户配置了 width,则以用户配置的 width 为准,height 同理。\n */\n autoFit?: boolean;\n /**\n * 图表整体 padding 设置\n */\n padding?: ILayoutPaddingSpec;\n /**\n * 图表色系配置\n */\n color?: string[] | Omit<IVisualSpecScale<unknown, string>, 'id'>;\n /**\n * 系列\n * @description 仅在组合图中使用, 文档中除组合图外均未透出该配置\n */\n series?: ISeriesSpec[];\n /**\n * 系列样式\n * @description 仅在图表配置了seriesField时生效\n */\n seriesStyle?: ISeriesStyle;\n\n /**\n * 自动关闭动画的阀值,对应的是单系列data的长度\n * @since 1.2.0\n */\n animationThreshold?: number;\n\n /** hover 交互 */\n hover?: boolean | IHoverSpec;\n /** select 交互 */\n select?: boolean | ISelectSpec;\n\n /** region配置 */\n region?: IRegionSpec[];\n /** 图表标题配置 */\n title?: ITitleSpec;\n /** 布局配置 */\n layout?: ILayoutSpec;\n /** 图例配置 */\n legends?: ILegendSpec | ILegendSpec[];\n /** 十字辅助线配置 */\n crosshair?: ICrosshairSpec | ICrosshairSpec[];\n /** tooltip配置 */\n tooltip?: ITooltipSpec;\n /** 播放器配置 */\n player?: IPlayer;\n /** 缩略轴配置 */\n dataZoom?: IDataZoomSpec | IDataZoomSpec[];\n /** 滚动条配置 */\n scrollBar?: IScrollBarSpec | IScrollBarSpec[];\n /** 框选配置 */\n brush?: IBrushSpec;\n /** 全局 scale 配置 */\n scales?: IVisualSpecScale<unknown, unknown>[];\n /** 自定义mark */\n customMark?: ICustomMarkSpec<EnableMarkType>[];\n /** 轴 */\n axes?: ICommonAxisSpec[];\n /**\n * 图表上的主题定义。\n * 可以直接配置主题名,前提是该主题名已经注册\n */\n theme?: Omit<ITheme, 'name'> | string;\n /**\n * 图表背景色配置,优先级高于构造函数中的 background 配置\n */\n background?: IBackgroundSpec;\n\n // TODO:后续开放,现在仍有问题\n // poptip?: PopTipAttributes;\n // TODO: 补充动画配置\n\n /**\n * 堆积时是否逆序\n * @default false\n * @since 1.4.0\n */\n stackInverse?: boolean;\n /**\n * 媒体查询配置\n * @since 1.8.0\n */\n media?: IMediaQuerySpec;\n}\n\nexport type IBackgroundStyleSpec = ConvertToMarkStyleSpec<Omit<IFillMarkSpec, 'width' | 'height' | 'background'>> & {\n image?: IRectMarkSpec['background'];\n cornerRadius?: IRectMarkSpec['cornerRadius'];\n};\n\nexport type IBackgroundSpec = string | IBackgroundStyleSpec;\n\n/** data */\nexport type IDataType = IDataValues | DataView;\nexport type IData = IDataType | IDataType[];\nexport type DataKeyType = string | string[] | ((data: Datum, index: number) => string);\nexport type BuildInTransformOptions =\n | {\n /** 地理数据简化 */\n type: 'simplify';\n options: ISimplifyOptions;\n }\n | {\n /** 数据维度处理,包括排序,逆序,数据筛选能力 */\n type: 'fields';\n options: IFieldsOptions;\n }\n | {\n /** 使用回调的自定义筛选 */\n type: 'filter';\n options: IFilterOptions;\n }\n | {\n /** 数据展开 */\n type: 'fold';\n options: IFoldOptions;\n };\n\nexport interface IFieldsMeta {\n /** TODO: 字段通用format, 暂时先不支持 */\n // format?: (datum: Datum, index: number) => unknown;\n /** 字段别名 */\n alias?: string;\n /** 字段取值范围 */\n domain?: StringOrNumber[];\n /** 是否使用 domain 锁定统计信息。默认为 false */\n lockStatisticsByDomain?: boolean;\n /** 连续型 还是 离散型 */\n type?: 'ordinal' | 'linear';\n /** 排序顺序 不设置的话当前维度不进行排序 */\n sortIndex?: number;\n /** 排序时是否反转 默认为 false */\n sortReverse?: boolean;\n}\n\nexport interface SheetParseOptions extends CommonParseOptions {\n type: 'csv' | 'dsv' | 'tsv';\n options?: IDsvParserOptions;\n}\n\nexport interface CommonParseOptions {\n /**\n * 是否需要对数据进行 clone,默认为 true。\n * 如果考虑性能,你可以将其关闭,但是这会带了一些副作用,即我们会对传入的数据进行修改(不会对原有字段及值修改,只会在原有数据基础上添加一些字段)。\n * @default true\n * @since 1.3.0\n */\n clone?: boolean;\n}\n\nexport interface IDataValues {\n /**\n * 数据唯一标识\n */\n id?: StringOrNumber;\n /**\n * 数据\n */\n values: Datum[] | string;\n /**\n * 引用的数据索引\n */\n fromDataIndex?: number;\n /**\n * 引用的数据 id\n */\n fromDataId?: StringOrNumber;\n /**\n * 数据 transform 配置\n */\n transforms?: BuildInTransformOptions[];\n /**\n * 数据字段相关配置\n */\n fields?: Record<\n /** 字段key */\n string,\n IFieldsMeta\n >;\n\n parser?: SheetParseOptions | CommonParseOptions;\n}\n\nexport type IHierarchyNodeData = {\n value?: number;\n children?: IHierarchyNodeData[];\n} & Datum;\n\nexport interface IHierarchyDataValues extends Omit<IDataValues, 'values'> {\n values: IHierarchyNodeData;\n}\n\nexport type IHierarchyData = DataView | IHierarchyDataValues;\n\n/** series */\nexport interface ISeriesSpec extends IInteractionSpec {\n /** 系列类型 */\n type: SeriesType;\n\n /** 系列名称 */\n name?: string;\n\n /** 用户自定义的 series id */\n id?: StringOrNumber;\n /**\n * 系列数据\n * @description 系列可以配置自身的数据,也可以从chart.data中获取数据\n */\n data?: IDataType;\n /**\n * 系列关联的数据索引\n * @default 0\n */\n dataIndex?: number;\n /**\n * 系列关联的数据id\n */\n dataId?: StringOrNumber;\n /**\n * dataKey用于绑定数据与Mark的关系, 该配置在动画中非常重要.\n */\n dataKey?: DataKeyType;\n\n /**\n * 系列关联的region索引\n * @default 0\n */\n regionIndex?: number;\n /** 系列关联的region id */\n regionId?: StringOrNumber;\n /**\n * 分组字段\n */\n seriesField?: string;\n /**\n * 系列样式\n * @description 仅在图表配置了seriesField时生效\n */\n seriesStyle?: ISeriesStyle;\n\n /** 是否对数据进行堆叠处理 */\n stack?: boolean;\n\n /**\n * 堆叠时的分组值\n * stackValue 相等的系列将在一起堆积。没有配置的系列将在一组\n * @since 1.4.0\n */\n stackValue?: StringOrNumber;\n\n /** 堆叠汇总标签\n * @since 1.3.0\n */\n totalLabel?: ITotalLabelSpec;\n\n /** 是否对数据进行百分比处理 */\n percent?: boolean;\n\n /** 是否围绕中心轴偏移轮廓 */\n stackOffsetSilhouette?: boolean;\n\n /**\n * 非合规数据点连接方式\n * @description null,undefined等非法数据点连接方式。\n * @default 'break'\n * 'break'指在该数据点处断开\n * 'link' 指忽略该点保持连续\n * 'zero' 指该点默认数值为0\n * 'ignore' 指不处理\n */\n invalidType?: IInvalidType;\n\n /** 提示信息 */\n tooltip?: ITooltipSpec;\n\n /**\n * 是否开启系列动画\n */\n animation?: boolean;\n /**\n * 自动关闭动画的阀值,对应的是单系列data的长度\n * @since 1.2.0\n */\n animationThreshold?: number;\n\n /**\n * 是否支持3d视角\n */\n support3d?: boolean;\n /**\n * morph 动画配置\n */\n morph?: IMorphSeriesSpec;\n\n /**\n * 扩展mark\n */\n extensionMark?: (IExtensionMarkSpec<Exclude<EnableMarkType, MarkTypeEnum.group>> | IExtensionGroupMarkSpec)[];\n\n /**\n * series background\n * 作用是支持系列的图形对系列背景进行 mask,或者切分等效果。不是作为背景图\n * 暂时不开放api,避免出现break change\n */\n // background?: IBackgroundSpec;\n}\n\nexport type IChartExtendsSeriesSpec<T extends ISeriesSpec> = Omit<T, 'data' | 'morph' | 'stackValue'>;\n\nexport type AdaptiveSpec<T, K extends keyof any> = {\n [key in Exclude<keyof T, K>]: T[key];\n} & { [key in K]: any };\n\n/** markSpec */\nexport type IMarkSpec<T extends ICommonSpec = ICommonSpec> = {\n /**\n * 用户id\n */\n id?: StringOrNumber;\n /**\n * 是否响应交互\n */\n interactive?: boolean;\n // /**\n // * 是否会被region区域裁减\n // * @todo 暂未支持\n // */\n // clip?: boolean;\n /**\n * 与其他mark元素的层级\n */\n zIndex?: number;\n /**\n * mark 层 是否显示配置\n */\n visible?: boolean;\n /** 默认样式设置 */\n style?: ConvertToMarkStyleSpec<T>;\n /** 不同状态下的样式配置 */\n state?: Record<StateValue, IMarkStateSpec<T> | IMarkStateStyleSpec<T>>;\n /**\n * 状态排序方法,默认状态都是按照添加的顺序处理的,如果有特殊的需求,需要指定状态顺序,可以通过这个方法实现\n * @since 1.9.0\n */\n stateSort?: (stateA: string, stateB: string) => number;\n\n /* 是否是3d视角的mark */\n support3d?: boolean;\n /* customized shape of mark */\n customShape?: (datum: any[], attrs: any, path: ICustomPath2D) => ICustomPath2D;\n} & IMarkProgressiveConfig;\n\nexport type IMarkStateFilter =\n | {\n /** 维度筛选 */\n fields: { [key in string]: { type: 'ordinal' | 'linear'; domain: StringOrNumber[] } };\n }\n | {\n /** 筛选数据 */\n datums: Datum[];\n /** 筛选数据 */\n datumKeys: string[];\n }\n | {\n /** 筛选 item */\n items: IElement[];\n }\n /** 筛选函数 */\n | ((datum: Datum, options: Record<string, any>) => boolean);\n\nexport interface IMarkStateSpec<T> {\n /** 筛选器 */\n filter?: IMarkStateFilter;\n /** 状态优先级 */\n level?: number | undefined;\n style: ConvertToMarkStyleSpec<T>;\n}\n\nexport type IMarkStateStyleSpec<T> = ConvertToMarkStyleSpec<T>;\n\nexport type IMarkTheme<T> = {\n /**\n * mark 层 是否显示配置\n */\n visible?: boolean;\n /** 默认样式设置 */\n style?: T;\n /** 不同状态下的样式配置 */\n state?: Record<StateValue, T>;\n /**\n * 可交互的开关\n */\n interactive?: boolean;\n};\n\nexport interface IPerformanceHook {\n // InitRender\n // ├── InitializeChart\n // ├── CompileToVGrammar\n // ├── ParseView\n // | └── ParseExpression\n // ├── (new View)\n // | ├── CreateRuntime\n // | └── (view.initialize)\n // | └── CreateVRenderStage\n // └── SrViewEvaluateAsync / SrViewRunAsync\n // ├── MarkTransform\n // ├── FacetTransform\n // ├── CreateVRenderMark\n // └── VRenderDraw\n\n // 初始化图表配置\n beforeInitializeChart?: () => void;\n afterInitializeChart?: () => void;\n\n // 编译\n beforeCompileToVGrammar?: () => void;\n afterCompileToVGrammar?: () => void;\n // 各个图表模块编译\n beforeRegionCompile?: () => void;\n afterRegionCompile?: () => void;\n beforeSeriesCompile?: () => void;\n afterSeriesCompile?: () => void;\n beforeComponentCompile?: () => void;\n afterComponentCompile?: () => void;\n\n // resize的时候的钩子\n beforeResizeWithUpdate?: () => void;\n afterResizeWithUpdate?: () => void;\n\n // LayoutWithSceneGraph 二次布局\n beforeLayoutWithSceneGraph?: () => void;\n afterLayoutWithSceneGraph?: () => void;\n\n // VGrammar 解析spec\n beforeParseView?: () => void;\n afterParseView?: () => void;\n\n // 初始化runtime\n beforeCreateRuntime?: () => void;\n afterCreateRuntime?: () => void;\n\n // VGrammar EvaluateAsync 时间\n beforeSrViewEvaluateAsync?: () => void;\n afterSrViewEvaluateAsync?: () => void;\n\n // VGrammar RunAsync 时间\n beforeSrViewRunAsync?: () => void;\n afterSrViewRunAsync?: () => void;\n\n // transform测量\n beforeTransform?: (name: string) => void;\n afterTransform?: (name: string) => void;\n\n // Create VRender Stage 时间\n beforeCreateVRenderStage?: () => void;\n afterCreateVRenderStage?: () => void;\n\n // Create VRender Mark 时间\n beforeCreateVRenderMark?: () => void;\n afterCreateVRenderMark?: () => void;\n\n // VRender Draw 时间\n beforeVRenderDraw?: () => void;\n afterVRenderDraw?: () => void;\n}\n\nexport type IBuildinMarkSpec = {\n [MarkTypeEnum.group]: IGroupMarkSpec;\n\n [MarkTypeEnum.symbol]: ISymbolMarkSpec;\n [MarkTypeEnum.rule]: IRuleMarkSpec;\n [MarkTypeEnum.line]: ILineMarkSpec;\n [MarkTypeEnum.text]: ITextMarkSpec;\n [MarkTypeEnum.rect]: IRectMarkSpec;\n [MarkTypeEnum.rect3d]: IRect3dMarkSpec;\n [MarkTypeEnum.image]: IImageMarkSpec;\n [MarkTypeEnum.path]: IPathMarkSpec;\n [MarkTypeEnum.area]: IAreaMarkSpec;\n [MarkTypeEnum.arc]: IArcMarkSpec;\n [MarkTypeEnum.arc3d]: IArc3dMarkSpec;\n [MarkTypeEnum.polygon]: IPolygonMarkSpec;\n [MarkTypeEnum.pyramid3d]: IPyramid3dMarkSpec;\n [MarkTypeEnum.boxPlot]: IBoxPlotMarkSpec;\n [MarkTypeEnum.linkPath]: ILinkPathMarkSpec;\n [MarkTypeEnum.progressArc]: IProgressArcMarkSpec;\n [MarkTypeEnum.ripple]: IRippleMarkSpec;\n};\nexport type EnableMarkType = keyof IBuildinMarkSpec;\nexport interface ICustomMarkSpec<T extends EnableMarkType> extends IMarkSpec<IBuildinMarkSpec[T]> {\n type: T;\n /**\n * 关联的数据索引\n * @default 与系列使用同一份数据\n */\n dataIndex?: number;\n /**\n * 关联的数据id\n */\n dataId?: StringOrNumber;\n /**\n * specify the component type\n * @support since 1.9.0\n */\n componentType?: string;\n}\nexport interface ICustomMarkGroupSpec extends ICustomMarkSpec<MarkTypeEnum.group> {\n children?: ICustomMarkSpec<EnableMarkType>[];\n}\n\nexport interface IExtensionMarkSpec<T extends Exclude<EnableMarkType, MarkTypeEnum.group>> extends ICustomMarkSpec<T> {\n /**\n * 关联的数据索引\n * @default 与系列使用同一份数据\n */\n dataIndex?: number;\n /**\n * 关联的数据id\n */\n dataId?: StringOrNumber;\n /**\n * specify the component type\n * @support since 1.9.0\n */\n componentType?: string;\n}\n\nexport interface IExtensionGroupMarkSpec extends ICustomMarkSpec<MarkTypeEnum.group> {\n /**\n * 支持子节点\n */\n children?: ICustomMarkSpec<EnableMarkType>[];\n}\n"]}
1
+ {"version":3,"sources":["../src/typings/spec/common.ts"],"names":[],"mappings":";;;AAyHA,IAAY,cASX;AATD,WAAY,cAAc;IACxB,qDAAqC,CAAA;IACrC,mDAAmC,CAAA;IACnC,+BAAe,CAAA;IACf,mCAAmB,CAAA;IACnB,qCAAqB,CAAA;IACrB,2BAAW,CAAA;IACX,qDAAqC,CAAA;IACrC,+BAAe,CAAA;AACjB,CAAC,EATW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QASzB","file":"common.js","sourcesContent":["import type { IFillMarkSpec, IImageMarkSpec } from '../visual';\nimport type { LayoutCallBack } from '../../layout/interface';\nimport type { IElement, srIOption3DType } from '@visactor/vgrammar-core';\nimport type {\n DataSet,\n DataView,\n ISimplifyOptions,\n IFieldsOptions,\n IFilterOptions,\n IFoldOptions,\n IDsvParserOptions\n} from '@visactor/vdataset';\nimport type { IRegionSpec } from '../../region/interface';\nimport type { IHoverSpec, ISelectSpec, IInteractionSpec } from '../../interaction/interface';\nimport type { IRenderOption } from '../../compile/interface';\nimport type { ITooltipSpec } from '../../component/tooltip/interface';\n// eslint-disable-next-line no-duplicate-imports\nimport type { ILayoutSpec } from '../../layout/interface';\n// eslint-disable-next-line no-duplicate-imports\nimport type {\n ConvertToMarkStyleSpec,\n IArc3dMarkSpec,\n IArcMarkSpec,\n IAreaMarkSpec,\n IBoxPlotMarkSpec,\n ICommonSpec,\n IGroupMarkSpec,\n ILineMarkSpec,\n ILinkPathMarkSpec,\n IPathMarkSpec,\n IPolygonMarkSpec,\n IPyramid3dMarkSpec,\n IRect3dMarkSpec,\n IRectMarkSpec,\n IRuleMarkSpec,\n ISymbolMarkSpec,\n IRippleMarkSpec,\n ITextMarkSpec,\n IVisualSpecScale\n} from '../visual';\nimport type { StateValue } from '../../compile/mark';\nimport type { ISeriesStyle, SeriesType } from '../../series/interface';\nimport type { Datum, StringOrNumber } from '../common';\nimport type { IInvalidType } from '../data';\nimport type { IMorphSeriesSpec } from '../../animation/spec';\nimport type { IPlayer } from '../../component/player';\nimport type { IMarkProgressiveConfig, MarkTypeEnum } from '../../mark/interface';\nimport type { IDataZoomSpec, IScrollBarSpec } from '../../component/data-zoom';\nimport type { ICrosshairSpec } from '../../component/crosshair/interface';\nimport type { ITheme } from '../../theme';\nimport type { ITitleSpec } from '../../component/title/interface';\nimport type { IBrushSpec } from '../../component/brush';\nimport type { ITotalLabelSpec } from '../../component/label';\nimport type { ILegendSpec } from '../../component/legend';\nimport type { ILayoutOrientPadding, ILayoutPaddingSpec } from '../layout';\nimport type { ICustomPath2D, IRichTextCharacter } from '@visactor/vrender-core';\nimport type { ICommonAxisSpec } from '../../component/axis';\nimport type { IComposedTextMarkSpec, IMediaQuerySpec } from '..';\n\nexport type IChartPadding = ILayoutOrientPadding | number;\n\n/** chart option */\nexport interface IInitOption extends Omit<IRenderOption, 'pluginList'> {\n /**\n * **仅生效于浏览器环境。**\n * 图表挂载的父容器,可以直接指定容器 id,也可以传入 dom 对象\n */\n dom?: string | HTMLElement;\n /**\n * 除去选择 dom 属性进行挂载父容器,也可以使用 renderCanvas 属性直接传入 canvas 实例/ canvasId\n * 小程序/小组件环境请直接传入 id\n */\n renderCanvas?: string | HTMLCanvasElement;\n /** 数据集 */\n dataSet?: DataSet;\n /** 是否自适应容器大小 */\n autoFit?: boolean;\n /**\n * 性能测试钩子\n */\n performanceHook?: IPerformanceHook;\n /**\n * 是否开启动画\n */\n animation?: boolean;\n /**\n * 3d配置\n */\n options3d?: srIOption3DType;\n\n /**\n * 自定义布局函数\n */\n layout?: LayoutCallBack;\n\n /**\n * 当文本省略时,鼠标 hover 到文本上时是否显示 poptip\n * @default true\n */\n poptip?: boolean;\n\n /**\n * 报错的回调函数\n * @since 1.2.0\n */\n onError?: (...args: any[]) => void;\n\n /**\n * 默认主题(支持完整主题对象或者主题名称,主题名称需要提前在 `ThemeManager` 中注册)\n * @since 1.3.0\n */\n theme?: string | ITheme;\n\n /**\n * 是否关闭交互效果\n * @since 1.9.0\n * @default false\n */\n disableTriggerEvent?: boolean;\n}\n\nexport enum RenderModeEnum {\n 'desktop-browser' = 'desktop-browser',\n 'mobile-browser' = 'mobile-browser',\n 'node' = 'node',\n 'worker' = 'worker',\n 'miniApp' = 'miniApp',\n 'wx' = 'wx',\n 'desktop-miniApp' = 'desktop-miniApp',\n 'lynx' = 'lynx'\n}\nexport type RenderMode = keyof typeof RenderModeEnum;\n\n/** chart spec */\nexport interface IChartSpec {\n /** 图表类型 */\n type: string;\n /** 数据 */\n data?: IData;\n /** 画布宽度 */\n width?: number;\n /** 画布高度 */\n height?: number;\n /**\n * 图表宽高是否自适应容器,浏览器环境下默认为 true。\n * 该配置的优先级高于构造函数中的 autoFit 配置。\n * 如果用户配置了 width,则以用户配置的 width 为准,height 同理。\n */\n autoFit?: boolean;\n /**\n * 图表整体 padding 设置\n */\n padding?: ILayoutPaddingSpec;\n /**\n * 图表色系配置\n */\n color?: string[] | Omit<IVisualSpecScale<unknown, string>, 'id'>;\n /**\n * 系列\n * @description 仅在组合图中使用, 文档中除组合图外均未透出该配置\n */\n series?: ISeriesSpec[];\n /**\n * 系列样式\n * @description 仅在图表配置了seriesField时生效\n */\n seriesStyle?: ISeriesStyle;\n\n /**\n * 自动关闭动画的阀值,对应的是单系列data的长度\n * @since 1.2.0\n */\n animationThreshold?: number;\n\n /** hover 交互 */\n hover?: boolean | IHoverSpec;\n /** select 交互 */\n select?: boolean | ISelectSpec;\n\n /** region配置 */\n region?: IRegionSpec[];\n /** 图表标题配置 */\n title?: ITitleSpec;\n /** 布局配置 */\n layout?: ILayoutSpec;\n /** 图例配置 */\n legends?: ILegendSpec | ILegendSpec[];\n /** 十字辅助线配置 */\n crosshair?: ICrosshairSpec | ICrosshairSpec[];\n /** tooltip配置 */\n tooltip?: ITooltipSpec;\n /** 播放器配置 */\n player?: IPlayer;\n /** 缩略轴配置 */\n dataZoom?: IDataZoomSpec | IDataZoomSpec[];\n /** 滚动条配置 */\n scrollBar?: IScrollBarSpec | IScrollBarSpec[];\n /** 框选配置 */\n brush?: IBrushSpec;\n /** 全局 scale 配置 */\n scales?: IVisualSpecScale<unknown, unknown>[];\n /** 自定义mark */\n customMark?: ICustomMarkSpec<EnableMarkType>[];\n /** 轴 */\n axes?: ICommonAxisSpec[];\n /**\n * 图表上的主题定义。\n * 可以直接配置主题名,前提是该主题名已经注册\n */\n theme?: Omit<ITheme, 'name'> | string;\n /**\n * 图表背景色配置,优先级高于构造函数中的 background 配置\n */\n background?: IBackgroundSpec;\n\n // TODO:后续开放,现在仍有问题\n // poptip?: PopTipAttributes;\n // TODO: 补充动画配置\n\n /**\n * 堆积时是否逆序\n * @default false\n * @since 1.4.0\n */\n stackInverse?: boolean;\n /**\n * 媒体查询配置\n * @since 1.8.0\n */\n media?: IMediaQuerySpec;\n}\n\nexport type IBackgroundStyleSpec = ConvertToMarkStyleSpec<Omit<IFillMarkSpec, 'width' | 'height' | 'background'>> & {\n image?: IRectMarkSpec['background'];\n cornerRadius?: IRectMarkSpec['cornerRadius'];\n};\n\nexport type IBackgroundSpec = string | IBackgroundStyleSpec;\n\n/** data */\nexport type IDataType = IDataValues | DataView;\nexport type IData = IDataType | IDataType[];\nexport type DataKeyType = string | string[] | ((data: Datum, index: number) => string);\nexport type BuildInTransformOptions =\n | {\n /** 地理数据简化 */\n type: 'simplify';\n options: ISimplifyOptions;\n }\n | {\n /** 数据维度处理,包括排序,逆序,数据筛选能力 */\n type: 'fields';\n options: IFieldsOptions;\n }\n | {\n /** 使用回调的自定义筛选 */\n type: 'filter';\n options: IFilterOptions;\n }\n | {\n /** 数据展开 */\n type: 'fold';\n options: IFoldOptions;\n };\n\nexport interface IFieldsMeta {\n /** TODO: 字段通用format, 暂时先不支持 */\n // format?: (datum: Datum, index: number) => unknown;\n /** 字段别名 */\n alias?: string;\n /** 字段取值范围 */\n domain?: StringOrNumber[];\n /** 是否使用 domain 锁定统计信息。默认为 false */\n lockStatisticsByDomain?: boolean;\n /** 连续型 还是 离散型 */\n type?: 'ordinal' | 'linear';\n /** 排序顺序 不设置的话当前维度不进行排序 */\n sortIndex?: number;\n /** 排序时是否反转 默认为 false */\n sortReverse?: boolean;\n}\n\nexport interface SheetParseOptions extends CommonParseOptions {\n type: 'csv' | 'dsv' | 'tsv';\n options?: IDsvParserOptions;\n}\n\nexport interface CommonParseOptions {\n /**\n * 是否需要对数据进行 clone,默认为 true。\n * 如果考虑性能,你可以将其关闭,但是这会带了一些副作用,即我们会对传入的数据进行修改(不会对原有字段及值修改,只会在原有数据基础上添加一些字段)。\n * @default true\n * @since 1.3.0\n */\n clone?: boolean;\n}\n\nexport interface IDataValues {\n /**\n * 数据唯一标识\n */\n id?: StringOrNumber;\n /**\n * 数据\n */\n values: Datum[] | string;\n /**\n * 引用的数据索引\n */\n fromDataIndex?: number;\n /**\n * 引用的数据 id\n */\n fromDataId?: StringOrNumber;\n /**\n * 数据 transform 配置\n */\n transforms?: BuildInTransformOptions[];\n /**\n * 数据字段相关配置\n */\n fields?: Record<\n /** 字段key */\n string,\n IFieldsMeta\n >;\n\n parser?: SheetParseOptions | CommonParseOptions;\n}\n\nexport type IHierarchyNodeData = {\n value?: number;\n children?: IHierarchyNodeData[];\n} & Datum;\n\nexport interface IHierarchyDataValues extends Omit<IDataValues, 'values'> {\n values: IHierarchyNodeData;\n}\n\nexport type IHierarchyData = DataView | IHierarchyDataValues;\n\n/** series */\nexport interface ISeriesSpec extends IInteractionSpec {\n /** 系列类型 */\n type: SeriesType;\n\n /** 系列名称 */\n name?: string;\n\n /** 用户自定义的 series id */\n id?: StringOrNumber;\n /**\n * 系列数据\n * @description 系列可以配置自身的数据,也可以从chart.data中获取数据\n */\n data?: IDataType;\n /**\n * 系列关联的数据索引\n * @default 0\n */\n dataIndex?: number;\n /**\n * 系列关联的数据id\n */\n dataId?: StringOrNumber;\n /**\n * dataKey用于绑定数据与Mark的关系, 该配置在动画中非常重要.\n */\n dataKey?: DataKeyType;\n\n /**\n * 系列关联的region索引\n * @default 0\n */\n regionIndex?: number;\n /** 系列关联的region id */\n regionId?: StringOrNumber;\n /**\n * 分组字段\n */\n seriesField?: string;\n /**\n * 系列样式\n * @description 仅在图表配置了seriesField时生效\n */\n seriesStyle?: ISeriesStyle;\n\n /** 是否对数据进行堆叠处理 */\n stack?: boolean;\n\n /**\n * 堆叠时的分组值\n * stackValue 相等的系列将在一起堆积。没有配置的系列将在一组\n * @since 1.4.0\n */\n stackValue?: StringOrNumber;\n\n /** 堆叠汇总标签\n * @since 1.3.0\n */\n totalLabel?: ITotalLabelSpec;\n\n /** 是否对数据进行百分比处理 */\n percent?: boolean;\n\n /** 是否围绕中心轴偏移轮廓 */\n stackOffsetSilhouette?: boolean;\n\n /**\n * 非合规数据点连接方式\n * @description null,undefined等非法数据点连接方式。\n * @default 'break'\n * 'break'指在该数据点处断开\n * 'link' 指忽略该点保持连续\n * 'zero' 指该点默认数值为0\n * 'ignore' 指不处理\n */\n invalidType?: IInvalidType;\n\n /** 提示信息 */\n tooltip?: ITooltipSpec;\n\n /**\n * 是否开启系列动画\n */\n animation?: boolean;\n /**\n * 自动关闭动画的阀值,对应的是单系列data的长度\n * @since 1.2.0\n */\n animationThreshold?: number;\n\n /**\n * 是否支持3d视角\n */\n support3d?: boolean;\n /**\n * morph 动画配置\n */\n morph?: IMorphSeriesSpec;\n\n /**\n * 扩展mark\n */\n extensionMark?: (IExtensionMarkSpec<Exclude<EnableMarkType, 'group'>> | IExtensionGroupMarkSpec)[];\n\n /**\n * series background\n * 作用是支持系列的图形对系列背景进行 mask,或者切分等效果。不是作为背景图\n * 暂时不开放api,避免出现break change\n */\n // background?: IBackgroundSpec;\n}\n\nexport type IChartExtendsSeriesSpec<T extends ISeriesSpec> = Omit<T, 'data' | 'morph' | 'stackValue'>;\n\nexport type AdaptiveSpec<T, K extends keyof any> = {\n [key in Exclude<keyof T, K>]: T[key];\n} & { [key in K]: any };\n\n/** markSpec */\nexport type IMarkSpec<T extends ICommonSpec = ICommonSpec> = {\n /**\n * 用户id\n */\n id?: StringOrNumber;\n /**\n * 是否响应交互\n */\n interactive?: boolean;\n // /**\n // * 是否会被region区域裁减\n // * @todo 暂未支持\n // */\n // clip?: boolean;\n /**\n * 与其他mark元素的层级\n */\n zIndex?: number;\n /**\n * mark 层 是否显示配置\n */\n visible?: boolean;\n /** 默认样式设置 */\n style?: ConvertToMarkStyleSpec<T>;\n /** 不同状态下的样式配置 */\n state?: Record<StateValue, IMarkStateSpec<T> | IMarkStateStyleSpec<T>>;\n /**\n * 状态排序方法,默认状态都是按照添加的顺序处理的,如果有特殊的需求,需要指定状态顺序,可以通过这个方法实现\n * @since 1.9.0\n */\n stateSort?: (stateA: string, stateB: string) => number;\n\n /* 是否是3d视角的mark */\n support3d?: boolean;\n /* customized shape of mark */\n customShape?: (datum: any[], attrs: any, path: ICustomPath2D) => ICustomPath2D;\n} & IMarkProgressiveConfig;\n\nexport type IMarkStateFilter =\n | {\n /** 维度筛选 */\n fields: { [key in string]: { type: 'ordinal' | 'linear'; domain: StringOrNumber[] } };\n }\n | {\n /** 筛选数据 */\n datums: Datum[];\n /** 筛选数据 */\n datumKeys: string[];\n }\n | {\n /** 筛选 item */\n items: IElement[];\n }\n /** 筛选函数 */\n | ((datum: Datum, options: Record<string, any>) => boolean);\n\nexport interface IMarkStateSpec<T> {\n /** 筛选器 */\n filter?: IMarkStateFilter;\n /** 状态优先级 */\n level?: number | undefined;\n style: ConvertToMarkStyleSpec<T>;\n}\n\nexport type IMarkStateStyleSpec<T> = ConvertToMarkStyleSpec<T>;\n\nexport type IMarkTheme<T> = {\n /**\n * mark 层 是否显示配置\n */\n visible?: boolean;\n /** 默认样式设置 */\n style?: T;\n /** 不同状态下的样式配置 */\n state?: Record<StateValue, T>;\n /**\n * 可交互的开关\n */\n interactive?: boolean;\n};\n\nexport interface IPerformanceHook {\n // InitRender\n // ├── InitializeChart\n // ├── CompileToVGrammar\n // ├── ParseView\n // | └── ParseExpression\n // ├── (new View)\n // | ├── CreateRuntime\n // | └── (view.initialize)\n // | └── CreateVRenderStage\n // └── SrViewEvaluateAsync / SrViewRunAsync\n // ├── MarkTransform\n // ├── FacetTransform\n // ├── CreateVRenderMark\n // └── VRenderDraw\n\n // 初始化图表配置\n beforeInitializeChart?: () => void;\n afterInitializeChart?: () => void;\n\n // 编译\n beforeCompileToVGrammar?: () => void;\n afterCompileToVGrammar?: () => void;\n // 各个图表模块编译\n beforeRegionCompile?: () => void;\n afterRegionCompile?: () => void;\n beforeSeriesCompile?: () => void;\n afterSeriesCompile?: () => void;\n beforeComponentCompile?: () => void;\n afterComponentCompile?: () => void;\n\n // resize的时候的钩子\n beforeResizeWithUpdate?: () => void;\n afterResizeWithUpdate?: () => void;\n\n // LayoutWithSceneGraph 二次布局\n beforeLayoutWithSceneGraph?: () => void;\n afterLayoutWithSceneGraph?: () => void;\n\n // VGrammar 解析spec\n beforeParseView?: () => void;\n afterParseView?: () => void;\n\n // 初始化runtime\n beforeCreateRuntime?: () => void;\n afterCreateRuntime?: () => void;\n\n // VGrammar EvaluateAsync 时间\n beforeSrViewEvaluateAsync?: () => void;\n afterSrViewEvaluateAsync?: () => void;\n\n // VGrammar RunAsync 时间\n beforeSrViewRunAsync?: () => void;\n afterSrViewRunAsync?: () => void;\n\n // transform测量\n beforeTransform?: (name: string) => void;\n afterTransform?: (name: string) => void;\n\n // Create VRender Stage 时间\n beforeCreateVRenderStage?: () => void;\n afterCreateVRenderStage?: () => void;\n\n // Create VRender Mark 时间\n beforeCreateVRenderMark?: () => void;\n afterCreateVRenderMark?: () => void;\n\n // VRender Draw 时间\n beforeVRenderDraw?: () => void;\n afterVRenderDraw?: () => void;\n}\n\nexport type IBuildinMarkSpec = {\n group: IGroupMarkSpec;\n symbol: ISymbolMarkSpec;\n rule: IRuleMarkSpec;\n line: ILineMarkSpec;\n text: ITextMarkSpec;\n rect: IRectMarkSpec;\n rect3d: IRect3dMarkSpec;\n image: IImageMarkSpec;\n path: IPathMarkSpec;\n area: IAreaMarkSpec;\n arc: IArcMarkSpec;\n arc3d: IArc3dMarkSpec;\n polygon: IPolygonMarkSpec;\n pyramid3d: IPyramid3dMarkSpec;\n boxPlot: IBoxPlotMarkSpec;\n linkPath: ILinkPathMarkSpec;\n ripple: IRippleMarkSpec;\n};\n\nexport type EnableMarkType = keyof IBuildinMarkSpec;\nexport interface ICustomMarkSpec<T extends EnableMarkType> extends IMarkSpec<IBuildinMarkSpec[T]> {\n type: T;\n /**\n * 关联的数据索引\n * @default 与系列使用同一份数据\n */\n dataIndex?: number;\n /**\n * dataKey用于绑定数据与Mark的关系\n * 如果数据和系列数据一致,可以不配置,默认会读取系列中的配置\n *\n * @support since 1.9.5\n */\n dataKey?: string | ((datum: any) => string);\n /**\n * 关联的数据id\n */\n dataId?: StringOrNumber;\n /**\n * specify the component type\n * @support since 1.9.0\n */\n componentType?: string;\n}\nexport interface ICustomMarkGroupSpec extends ICustomMarkSpec<MarkTypeEnum.group> {\n children?: ICustomMarkSpec<EnableMarkType>[];\n}\n\nexport interface IExtensionMarkSpec<T extends Exclude<EnableMarkType, 'group'>> extends ICustomMarkSpec<T> {\n /**\n * 关联的数据索引\n * @default 与系列使用同一份数据\n */\n dataIndex?: number;\n /**\n * dataKey用于绑定数据与Mark的关系\n * 如果数据和系列数据一致,可以不配置,默认会读取系列中的配置\n *\n * @support since 1.9.5\n */\n dataKey?: string | ((datum: any) => string);\n /**\n * 关联的数据id\n */\n dataId?: StringOrNumber;\n /**\n * specify the component type\n * @support since 1.9.0\n */\n componentType?: string;\n}\n\nexport interface IExtensionGroupMarkSpec extends ICustomMarkSpec<MarkTypeEnum.group> {\n /**\n * 支持子节点\n */\n children?: ICustomMarkSpec<EnableMarkType>[];\n}\n\n/** 纯文本类型的 formatMethod */\nexport type ITextFormatMethod<T extends any[]> = (\n ...args: T\n) => ITextMarkSpec['text'] | { type: 'text'; text: ITextMarkSpec['text'] };\n\nexport type IRichTextFormatMethod<T extends any[]> = (...args: T) =>\n | {\n type: 'rich';\n text: IRichTextCharacter[];\n }\n | IRichTextCharacter[];\n\n/**\n * 常规 text.formatMethod 支持返回文字字符串,或统一的对象配置\n * (这里特指由 vgrammar 代理的 text 图元)\n */\nexport type IFormatMethod<T extends any[]> = (\n ...args: T\n) => ReturnType<ITextFormatMethod<T>> | ReturnType<IRichTextFormatMethod<T>>;\n"]}
@@ -2,9 +2,11 @@ import type { TooltipContentProperty } from './common';
2
2
  import type { ITooltipLabelActual, ITooltipLabelPattern } from './label';
3
3
  import type { ITooltipShapeActual, ITooltipShapePattern } from './shape';
4
4
  import type { TooltipRichTextAttrs } from '@visactor/vrender-components';
5
- export interface IToolTipLinePattern extends ITooltipShapePattern, ITooltipLabelPattern {
5
+ export interface ITooltipLinePattern extends ITooltipShapePattern, ITooltipLabelPattern {
6
6
  key?: TooltipContentProperty<string>;
7
+ keyFormatter?: string;
7
8
  value?: TooltipContentProperty<string | TooltipRichTextAttrs>;
9
+ valueFormatter?: string;
8
10
  visible?: TooltipContentProperty<boolean>;
9
11
  isKeyAdaptive?: TooltipContentProperty<boolean>;
10
12
  spaceRow?: TooltipContentProperty<number>;
@@ -13,9 +15,10 @@ export interface IToolTipLinePattern extends ITooltipShapePattern, ITooltipLabel
13
15
  valueTimeFormat?: string;
14
16
  valueTimeFormatMode?: 'utc' | 'local';
15
17
  }
16
- export interface IToolTipLineActual extends ITooltipShapeActual, ITooltipLabelActual {
18
+ export interface ITooltipLineActual extends ITooltipShapeActual, ITooltipLabelActual {
17
19
  key?: string;
18
20
  value?: string | TooltipRichTextAttrs;
21
+ valueFormatter?: string;
19
22
  visible?: boolean;
20
23
  isKeyAdaptive?: boolean;
21
24
  spaceRow?: number;
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/typings/tooltip/line.ts"],"names":[],"mappings":"","file":"line.js","sourcesContent":["import type { TooltipContentProperty } from './common';\nimport type { ITooltipLabelActual, ITooltipLabelPattern } from './label';\nimport type { ITooltipShapeActual, ITooltipShapePattern } from './shape';\nimport type { TooltipRichTextAttrs } from '@visactor/vrender-components';\n\nexport interface IToolTipLinePattern extends ITooltipShapePattern, ITooltipLabelPattern {\n /** tooltip key 值内容 */\n key?: TooltipContentProperty<string>;\n /** tooltip value 值内容\n * 支持富文本配置\n * - type 文本类型:text, rich, html\n * - text 文本内容:string | string[] | number | number[] | IRichTextCharacter[];\n */\n value?: TooltipContentProperty<string | TooltipRichTextAttrs>;\n /** 该行是否可见 */\n visible?: TooltipContentProperty<boolean>;\n /** key 列是否适应内容 */\n isKeyAdaptive?: TooltipContentProperty<boolean>;\n /**\n * 该行行间距\n * @since 1.4.0\n */\n spaceRow?: TooltipContentProperty<number>;\n /**\n * 如果配置了该值,则 key 字段的最终值会自动格式化为时间字符串\n * @since 1.9.0\n */\n keyTimeFormat?: string;\n keyTimeFormatMode?: 'utc' | 'local';\n /**\n * 如果配置了该值,则 value 字段的最终值会自动格式化为时间字符串\n * @since 1.9.0\n */\n valueTimeFormat?: string;\n valueTimeFormatMode?: 'utc' | 'local';\n}\n\nexport interface IToolTipLineActual extends ITooltipShapeActual, ITooltipLabelActual {\n /** tooltip key 值内容 */\n key?: string;\n /** tooltip value 值内容 */\n value?: string | TooltipRichTextAttrs;\n /** 该行是否可见 */\n visible?: boolean;\n /** key 列是否适应内容 */\n isKeyAdaptive?: boolean;\n /**\n * 该行行间距\n * @since 1.4.0\n */\n spaceRow?: number;\n /**\n * 该行对应的原始数据\n * @since 1.5.1\n */\n datum?: any;\n}\n"]}
1
+ {"version":3,"sources":["../src/typings/tooltip/line.ts"],"names":[],"mappings":"","file":"line.js","sourcesContent":["import type { TooltipContentProperty } from './common';\nimport type { ITooltipLabelActual, ITooltipLabelPattern } from './label';\nimport type { ITooltipShapeActual, ITooltipShapePattern } from './shape';\nimport type { TooltipRichTextAttrs } from '@visactor/vrender-components';\n\nexport interface ITooltipLinePattern extends ITooltipShapePattern, ITooltipLabelPattern {\n /** tooltip key 值内容 */\n key?: TooltipContentProperty<string>;\n /**\n * 格式化模板\n * @description 可以通过类似 `{value:.2f}%` 的形式对指定数据字段进行格式化\n * @since 0.18.0\n */\n keyFormatter?: string;\n /** tooltip value 值内容\n * 支持富文本配置\n * - type 文本类型:text, rich\n * - text 文本内容:string | string[] | number | number[] | IRichTextCharacter[];\n */\n value?: TooltipContentProperty<string | TooltipRichTextAttrs>;\n /**\n * 格式化模板\n * @description 可以通过类似 `{value:.2f}%` 的形式对指定数据字段进行格式化\n * @since 0.18.0\n */\n valueFormatter?: string;\n\n /** 该行是否可见 */\n visible?: TooltipContentProperty<boolean>;\n /** key 列是否适应内容 */\n isKeyAdaptive?: TooltipContentProperty<boolean>;\n /**\n * 该行行间距\n * @since 1.4.0\n */\n spaceRow?: TooltipContentProperty<number>;\n /**\n * 如果配置了该值,则 key 字段的最终值会自动格式化为时间字符串\n * @since 1.9.0\n */\n keyTimeFormat?: string;\n keyTimeFormatMode?: 'utc' | 'local';\n /**\n * 如果配置了该值,则 value 字段的最终值会自动格式化为时间字符串\n * @since 1.9.0\n */\n valueTimeFormat?: string;\n valueTimeFormatMode?: 'utc' | 'local';\n}\n\nexport interface ITooltipLineActual extends ITooltipShapeActual, ITooltipLabelActual {\n /** tooltip key 值内容 */\n key?: string;\n /** tooltip value 值内容 */\n value?: string | TooltipRichTextAttrs;\n\n valueFormatter?: string;\n /** 该行是否可见 */\n visible?: boolean;\n /** key 列是否适应内容 */\n isKeyAdaptive?: boolean;\n /**\n * 该行行间距\n * @since 1.4.0\n */\n spaceRow?: number;\n /**\n * 该行对应的原始数据\n * @since 1.5.1\n */\n datum?: any;\n}\n"]}
@@ -1,30 +1,24 @@
1
- export type ITooltipPositionCallback = (event: MouseEvent) => number;
2
- export interface ITooltipPositionPattern {
3
- left?: number | ITooltipPositionCallback;
4
- right?: number | ITooltipPositionCallback;
5
- top?: number | ITooltipPositionCallback;
6
- bottom?: number | ITooltipPositionCallback;
1
+ export type TooltipPositionCallback<T> = (event: MouseEvent) => T;
2
+ export type TooltipPositionValue = number | TooltipPositionCallback<number>;
3
+ export interface ITooltipPositionFixedValue {
4
+ orient: TooltipFixedPosition;
5
+ mode: TooltipPositionMode;
6
+ offset?: number;
7
7
  }
8
- export declare const enum TooltipFixedPosition {
9
- top = "top",
10
- bottom = "bottom",
11
- left = "left",
12
- right = "right",
13
- tl = "tl",
14
- lt = "lt",
15
- tr = "tr",
16
- rt = "rt",
17
- bl = "bl",
18
- lb = "lb",
19
- br = "br",
20
- rb = "rb",
21
- inside = "inside"
8
+ export type TooltipPositionPatternItem = TooltipPositionValue | ITooltipPositionFixedValue;
9
+ export type TooltipFixedPosition = 'top' | 'bottom' | 'left' | 'right' | 'tl' | 'lt' | 'tr' | 'rt' | 'bl' | 'lb' | 'br' | 'rb' | 'center' | 'centerTop' | 'centerBottom' | 'centerLeft' | 'centerRight' | 'inside';
10
+ export type TooltipPositionMode = 'pointer' | 'mark' | 'crosshair';
11
+ export interface IGlobalTooltipPositionPattern {
12
+ left?: TooltipPositionValue;
13
+ right?: TooltipPositionValue;
14
+ top?: TooltipPositionValue;
15
+ bottom?: TooltipPositionValue;
22
16
  }
23
- export declare const enum TooltipPositionMode {
24
- pointer = "pointer",
25
- mark = "mark"
17
+ export interface IFixedTooltipPositionPattern {
18
+ x: TooltipPositionPatternItem;
19
+ y: TooltipPositionPatternItem;
26
20
  }
27
- export type TooltipPosition = ITooltipPositionPattern | TooltipFixedPosition;
21
+ export type TooltipPosition = IGlobalTooltipPositionPattern | IFixedTooltipPositionPattern | TooltipFixedPosition;
28
22
  export interface ITooltipPositionActual {
29
23
  x: number;
30
24
  y: number;
@@ -1,17 +1,6 @@
1
1
  "use strict";
2
2
 
3
- var TooltipFixedPosition, TooltipPositionMode;
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: !0
7
- }), exports.TooltipPositionMode = exports.TooltipFixedPosition = void 0, function(TooltipFixedPosition) {
8
- TooltipFixedPosition.top = "top", TooltipFixedPosition.bottom = "bottom", TooltipFixedPosition.left = "left",
9
- TooltipFixedPosition.right = "right", TooltipFixedPosition.tl = "tl", TooltipFixedPosition.lt = "lt",
10
- TooltipFixedPosition.tr = "tr", TooltipFixedPosition.rt = "rt", TooltipFixedPosition.bl = "bl",
11
- TooltipFixedPosition.lb = "lb", TooltipFixedPosition.br = "br", TooltipFixedPosition.rb = "rb",
12
- TooltipFixedPosition.inside = "inside";
13
- }(TooltipFixedPosition = exports.TooltipFixedPosition || (exports.TooltipFixedPosition = {})),
14
- function(TooltipPositionMode) {
15
- TooltipPositionMode.pointer = "pointer", TooltipPositionMode.mark = "mark";
16
- }(TooltipPositionMode = exports.TooltipPositionMode || (exports.TooltipPositionMode = {}));
5
+ });
17
6
  //# sourceMappingURL=position.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/typings/tooltip/position.ts"],"names":[],"mappings":";;;AAUA,IAAkB,oBAmDjB;AAnDD,WAAkB,oBAAoB;IAEpC,mCAAW,CAAA;IAEX,yCAAiB,CAAA;IAEjB,qCAAa,CAAA;IAEb,uCAAe,CAAA;IAKf,iCAAS,CAAA;IAKT,iCAAS,CAAA;IAKT,iCAAS,CAAA;IAKT,iCAAS,CAAA;IAKT,iCAAS,CAAA;IAKT,iCAAS,CAAA;IAKT,iCAAS,CAAA;IAKT,iCAAS,CAAA;IAET,yCAAiB,CAAA;AACnB,CAAC,EAnDiB,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAmDrC;AAED,IAAkB,mBAKjB;AALD,WAAkB,mBAAmB;IAEnC,0CAAmB,CAAA;IAEnB,oCAAa,CAAA;AACf,CAAC,EALiB,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAKpC","file":"position.js","sourcesContent":["export type ITooltipPositionCallback = (event: MouseEvent) => number;\n\nexport interface ITooltipPositionPattern {\n left?: number | ITooltipPositionCallback;\n right?: number | ITooltipPositionCallback;\n top?: number | ITooltipPositionCallback;\n bottom?: number | ITooltipPositionCallback;\n}\n\n/** tooltip显示在鼠标所在图形的固定位置,只对mark tooltip有效 */\nexport const enum TooltipFixedPosition {\n /** tooltip显示在上侧 */\n top = 'top',\n /** tooltip显示在下侧 */\n bottom = 'bottom',\n /** tooltip显示在左侧 */\n left = 'left',\n /** tooltip显示在右侧 */\n right = 'right',\n /**\n * tooltip显示在左上角\n * @since 1.4.0\n */\n tl = 'tl',\n /**\n * tooltip显示在左上角(容错)\n * @since 1.4.0\n */\n lt = 'lt',\n /**\n * tooltip显示在右上角\n * @since 1.4.0\n */\n tr = 'tr',\n /**\n * tooltip显示在右上角(容错)\n * @since 1.4.0\n */\n rt = 'rt',\n /**\n * tooltip显示在左下角\n * @since 1.4.0\n */\n bl = 'bl',\n /**\n * tooltip显示在左下角(容错)\n * @since 1.4.0\n */\n lb = 'lb',\n /**\n * tooltip显示在右下角\n * @since 1.4.0\n */\n br = 'br',\n /**\n * tooltip显示在右下角(容错)\n * @since 1.4.0\n */\n rb = 'rb',\n /** tooltip显示在鼠标所在图形中心位置 */\n inside = 'inside'\n}\n\nexport const enum TooltipPositionMode {\n /** tooltip固定在鼠标指针附近 */\n pointer = 'pointer',\n /** tooltip固定在图元附近 */\n mark = 'mark'\n}\n\nexport type TooltipPosition = ITooltipPositionPattern | TooltipFixedPosition;\n\nexport interface ITooltipPositionActual {\n x: number;\n y: number;\n}\n"]}
1
+ {"version":3,"sources":["../src/typings/tooltip/position.ts"],"names":[],"mappings":"","file":"position.js","sourcesContent":["export type TooltipPositionCallback<T> = (event: MouseEvent) => T;\n\nexport type TooltipPositionValue = number | TooltipPositionCallback<number>;\n\nexport interface ITooltipPositionFixedValue {\n /** 固定方位 */\n orient: TooltipFixedPosition;\n /** 固定模式 */\n mode: TooltipPositionMode;\n /** 偏移量(像素值) */\n offset?: number;\n}\n\nexport type TooltipPositionPatternItem = TooltipPositionValue | ITooltipPositionFixedValue;\n\n/** tooltip显示在鼠标所在图形的固定位置,只对 mark tooltip 有效 */\nexport type TooltipFixedPosition =\n /** tooltip 显示在上侧 */\n | 'top'\n /** tooltip 显示在下侧 */\n | 'bottom'\n /** tooltip 显示在左侧 */\n | 'left'\n /** tooltip 显示在右侧 */\n | 'right'\n /**\n * tooltip 显示在左上角\n * @since 1.4.0\n */\n | 'tl'\n /**\n * tooltip 显示在左上角(容错)\n * @since 1.4.0\n */\n | 'lt'\n /**\n * tooltip 显示在右上角\n * @since 1.4.0\n */\n | 'tr'\n /**\n * tooltip 显示在右上角(容错)\n * @since 1.4.0\n */\n | 'rt'\n /**\n * tooltip 显示在左下角\n * @since 1.4.0\n */\n | 'bl'\n /**\n * tooltip 显示在左下角(容错)\n * @since 1.4.0\n */\n | 'lb'\n /**\n * tooltip 显示在右下角\n * @since 1.4.0\n */\n | 'br'\n /**\n * tooltip 显示在右下角(容错)\n * @since 1.4.0\n */\n | 'rb'\n /**\n * tooltip 显示在鼠标所在图形中心位置\n * @since 1.10.0\n */\n | 'center'\n /**\n * tooltip 显示在鼠标所在图形中心位置的上侧\n * @since 1.10.0\n */\n | 'centerTop'\n /**\n * tooltip 显示在鼠标所在图形中心位置的下侧\n * @since 1.10.0\n */\n | 'centerBottom'\n /**\n * tooltip 显示在鼠标所在图形中心位置的左侧\n * @since 1.10.0\n */\n | 'centerLeft'\n /**\n * tooltip 显示在鼠标所在图形中心位置的右侧\n * @since 1.10.0\n */\n | 'centerRight'\n /** tooltip 显示在鼠标所在图形中心位置(旧版兼容,建议用 `'center'`) */\n | 'inside';\n\nexport type TooltipPositionMode =\n /** tooltip 固定在鼠标指针附近 */\n | 'pointer'\n /** tooltip 固定在图元附近 */\n | 'mark'\n /** tooltip 固定在 crosshair 附近 */\n | 'crosshair';\n\n/** 相对于全局布局的 tooltip position,只支持像素值或者像素值的回调 */\nexport interface IGlobalTooltipPositionPattern {\n left?: TooltipPositionValue;\n right?: TooltipPositionValue;\n top?: TooltipPositionValue;\n bottom?: TooltipPositionValue;\n}\n\n/** 相对于某个图表元素的 tooltip position,支持像素值或者固定方位(x、y 可分别配置) */\nexport interface IFixedTooltipPositionPattern {\n x: TooltipPositionPatternItem;\n y: TooltipPositionPatternItem;\n}\n\nexport type TooltipPosition = IGlobalTooltipPositionPattern | IFixedTooltipPositionPattern | TooltipFixedPosition;\n\nexport interface ITooltipPositionActual {\n x: number;\n y: number;\n}\n"]}
@@ -8,8 +8,8 @@ export interface ITooltipShapePattern {
8
8
  shapeStroke?: TooltipContentProperty<string>;
9
9
  shapeLineWidth?: TooltipContentProperty<number>;
10
10
  shapeSize?: TooltipContentProperty<number>;
11
+ shapeHollow?: TooltipContentProperty<boolean>;
11
12
  shapeColor?: TooltipContentProperty<string>;
12
- shapeHollow?: boolean;
13
13
  }
14
14
  export interface ITooltipShapeActual {
15
15
  hasShape?: boolean;
@@ -18,6 +18,6 @@ export interface ITooltipShapeActual {
18
18
  shapeStroke?: string;
19
19
  shapeLineWidth?: number;
20
20
  shapeSize?: number;
21
- shapeColor?: string;
22
21
  shapeHollow?: boolean;
22
+ shapeColor?: string;
23
23
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/typings/tooltip/shape.ts"],"names":[],"mappings":"","file":"shape.js","sourcesContent":["import type { ShapeType } from '../shape';\nimport type { TooltipContentProperty } from './common';\n\nexport interface ITooltipShapePattern {\n /** 该 pattern 属于哪个系列id(用户不需要设置) */\n seriesId?: number;\n hasShape?: boolean;\n shapeType?: TooltipContentProperty<ShapeType | string>;\n /**\n * 形状填充颜色\n * @since 1.4.0\n */\n shapeFill?: TooltipContentProperty<string>;\n /**\n * 形状描边颜色\n * @since 1.4.0\n */\n shapeStroke?: TooltipContentProperty<string>;\n /**\n * 形状描边宽度\n * @since 1.4.0\n */\n shapeLineWidth?: TooltipContentProperty<number>;\n shapeSize?: TooltipContentProperty<number>;\n /** @deprecated 用户 spec 中建议用 shapeFill 代替,内部默认值可以维持使用 shapeColor */\n shapeColor?: TooltipContentProperty<string>;\n /** @deprecated */\n shapeHollow?: boolean;\n}\n\nexport interface ITooltipShapeActual {\n hasShape?: boolean;\n shapeType?: ShapeType | string;\n /**\n * 形状填充颜色\n * @since 1.4.0\n */\n shapeFill?: string;\n /**\n * 形状描边颜色\n * @since 1.4.0\n */\n shapeStroke?: string;\n /**\n * 形状描边宽度\n * @since 1.4.0\n */\n shapeLineWidth?: number;\n shapeSize?: number;\n /** @deprecated 用户 spec 中建议用 shapeFill 代替,内部默认值可以维持使用 shapeColor */\n shapeColor?: string;\n /** @deprecated */\n shapeHollow?: boolean;\n}\n"]}
1
+ {"version":3,"sources":["../src/typings/tooltip/shape.ts"],"names":[],"mappings":"","file":"shape.js","sourcesContent":["import type { ShapeType } from '../shape';\nimport type { TooltipContentProperty } from './common';\n\nexport interface ITooltipShapePattern {\n /** 该 pattern 属于哪个系列id(用户不需要设置) */\n seriesId?: number;\n hasShape?: boolean;\n shapeType?: TooltipContentProperty<ShapeType | string>;\n /**\n * 形状填充颜色\n * @since 1.4.0\n */\n shapeFill?: TooltipContentProperty<string>;\n /**\n * 形状描边颜色\n * @since 1.4.0\n */\n shapeStroke?: TooltipContentProperty<string>;\n /**\n * 形状描边宽度\n * @since 1.4.0\n */\n shapeLineWidth?: TooltipContentProperty<number>;\n shapeSize?: TooltipContentProperty<number>;\n /** 形状是否空心 */\n shapeHollow?: TooltipContentProperty<boolean>;\n\n /** @deprecated 规范命名,用户 spec 中建议用 shapeFill 代替,内部默认值可以维持使用 shapeColor */\n shapeColor?: TooltipContentProperty<string>;\n}\n\nexport interface ITooltipShapeActual {\n hasShape?: boolean;\n shapeType?: ShapeType | string;\n /**\n * 形状填充颜色\n * @since 1.4.0\n */\n shapeFill?: string;\n /**\n * 形状描边颜色\n * @since 1.4.0\n */\n shapeStroke?: string;\n /**\n * 形状描边宽度\n * @since 1.4.0\n */\n shapeLineWidth?: number;\n shapeSize?: number;\n shapeHollow?: boolean;\n /** @deprecated 用户 spec 中建议用 shapeFill 代替,内部默认值可以维持使用 shapeColor */\n shapeColor?: string;\n}\n"]}
@@ -1,25 +1,25 @@
1
1
  import type { MaybeArray } from '../common';
2
2
  import type { TooltipPatternProperty, TooltipUpdateCallback } from './common';
3
3
  import type { TooltipActiveType, TooltipData } from './handler';
4
- import type { IToolTipLineActual, IToolTipLinePattern } from './line';
4
+ import type { ITooltipLineActual, ITooltipLinePattern } from './line';
5
5
  import type { ITooltipPositionActual, TooltipPositionMode, TooltipPosition } from './position';
6
6
  import type { ITooltipShapePattern } from './shape';
7
7
  export interface ITooltipPattern extends ITooltipShapePattern {
8
8
  visible?: TooltipPatternProperty<boolean>;
9
- title?: TooltipPatternProperty<IToolTipLinePattern>;
10
- content?: MaybeArray<TooltipPatternProperty<MaybeArray<IToolTipLinePattern>>>;
9
+ title?: TooltipPatternProperty<ITooltipLinePattern>;
10
+ content?: MaybeArray<TooltipPatternProperty<MaybeArray<ITooltipLinePattern>>>;
11
11
  position?: TooltipPatternProperty<TooltipPosition>;
12
12
  positionMode?: TooltipPatternProperty<TooltipPositionMode>;
13
- updateTitle?: TooltipUpdateCallback<IToolTipLineActual>;
14
- updateContent?: TooltipUpdateCallback<IToolTipLineActual[]>;
13
+ updateTitle?: TooltipUpdateCallback<ITooltipLineActual>;
14
+ updateContent?: TooltipUpdateCallback<ITooltipLineActual[]>;
15
15
  updatePosition?: TooltipUpdateCallback<ITooltipPositionActual>;
16
16
  maxLineCount?: number;
17
17
  activeType?: TooltipActiveType;
18
18
  }
19
- export interface IToolTipActual {
19
+ export interface ITooltipActual {
20
20
  visible?: boolean;
21
- title?: IToolTipLineActual;
22
- content?: IToolTipLineActual[];
21
+ title?: ITooltipLineActual;
22
+ content?: ITooltipLineActual[];
23
23
  activeType?: TooltipActiveType;
24
24
  position?: ITooltipPositionActual;
25
25
  data?: TooltipData;
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/typings/tooltip/tooltip.ts"],"names":[],"mappings":"","file":"tooltip.js","sourcesContent":["import type { MaybeArray } from '../common';\nimport type { TooltipPatternProperty, TooltipUpdateCallback } from './common';\nimport type { TooltipActiveType, TooltipData } from './handler';\nimport type { IToolTipLineActual, IToolTipLinePattern } from './line';\nimport type { ITooltipPositionActual, TooltipPositionMode, TooltipPosition } from './position';\nimport type { ITooltipShapePattern } from './shape';\n\nexport interface ITooltipPattern extends ITooltipShapePattern {\n visible?: TooltipPatternProperty<boolean>;\n title?: TooltipPatternProperty<IToolTipLinePattern>;\n content?: MaybeArray<TooltipPatternProperty<MaybeArray<IToolTipLinePattern>>>;\n position?: TooltipPatternProperty<TooltipPosition>;\n /**\n * 决定 `position` 相对固定于什么图形,如固定在鼠标指针周围或图元周围。该配置只有 `position` 设为字符串时生效。默认为 `'mark'`\n * @since 1.4.0\n */\n positionMode?: TooltipPatternProperty<TooltipPositionMode>;\n\n updateTitle?: TooltipUpdateCallback<IToolTipLineActual>;\n updateContent?: TooltipUpdateCallback<IToolTipLineActual[]>;\n updatePosition?: TooltipUpdateCallback<ITooltipPositionActual>;\n\n /** tooltip content 保留的最大数据行数,默认为 20 */\n maxLineCount?: number;\n\n /** 方便内部逻辑辨别 tooltip 类型,不暴露给用户 */\n activeType?: TooltipActiveType;\n}\n\nexport interface IToolTipActual {\n visible?: boolean;\n title?: IToolTipLineActual;\n content?: IToolTipLineActual[];\n activeType?: TooltipActiveType;\n position?: ITooltipPositionActual;\n data?: TooltipData;\n}\n"]}
1
+ {"version":3,"sources":["../src/typings/tooltip/tooltip.ts"],"names":[],"mappings":"","file":"tooltip.js","sourcesContent":["import type { MaybeArray } from '../common';\nimport type { TooltipPatternProperty, TooltipUpdateCallback } from './common';\nimport type { TooltipActiveType, TooltipData } from './handler';\nimport type { ITooltipLineActual, ITooltipLinePattern } from './line';\nimport type { ITooltipPositionActual, TooltipPositionMode, TooltipPosition } from './position';\nimport type { ITooltipShapePattern } from './shape';\n\nexport interface ITooltipPattern extends ITooltipShapePattern {\n visible?: TooltipPatternProperty<boolean>;\n title?: TooltipPatternProperty<ITooltipLinePattern>;\n content?: MaybeArray<TooltipPatternProperty<MaybeArray<ITooltipLinePattern>>>;\n position?: TooltipPatternProperty<TooltipPosition>;\n /**\n * 决定 `position` 相对固定于什么图形,如固定在鼠标指针周围或图元周围。该配置只有 `position` 设为字符串时生效。默认为 `'mark'`\n * @since 1.4.0\n */\n positionMode?: TooltipPatternProperty<TooltipPositionMode>;\n\n updateTitle?: TooltipUpdateCallback<ITooltipLineActual>;\n updateContent?: TooltipUpdateCallback<ITooltipLineActual[]>;\n updatePosition?: TooltipUpdateCallback<ITooltipPositionActual>;\n\n /** tooltip content 保留的最大数据行数,默认为 20 */\n maxLineCount?: number;\n\n /** 方便内部逻辑辨别 tooltip 类型,不暴露给用户 */\n activeType?: TooltipActiveType;\n}\n\nexport interface ITooltipActual {\n visible?: boolean;\n title?: ITooltipLineActual;\n content?: ITooltipLineActual[];\n activeType?: TooltipActiveType;\n position?: ITooltipPositionActual;\n data?: TooltipData;\n}\n"]}