@visactor/vchart-extension 2.0.7-alpha.6 → 2.0.7-alpha.7

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 (351) hide show
  1. package/build/index.js +156 -158
  2. package/build/index.min.js +2 -2
  3. package/cjs/charts/3d/arc-3d.js +4 -5
  4. package/cjs/charts/3d/arc-3d.js.map +1 -1
  5. package/cjs/charts/3d/layout.d.ts +1 -1
  6. package/cjs/charts/3d/layout.js.map +1 -1
  7. package/cjs/charts/3d/plugin.js +4 -4
  8. package/cjs/charts/3d/plugin.js.map +1 -1
  9. package/cjs/charts/3d/pyramid-3d.js +4 -5
  10. package/cjs/charts/3d/pyramid-3d.js.map +1 -1
  11. package/cjs/charts/3d/rect-3d.js +4 -4
  12. package/cjs/charts/3d/rect-3d.js.map +1 -1
  13. package/cjs/charts/axis-3d/band-axis.js +2 -2
  14. package/cjs/charts/axis-3d/band-axis.js.map +1 -1
  15. package/cjs/charts/axis-3d/linear-axis.js +2 -2
  16. package/cjs/charts/axis-3d/linear-axis.js.map +1 -1
  17. package/cjs/charts/axis-3d/log-axis.js +2 -2
  18. package/cjs/charts/axis-3d/log-axis.js.map +1 -1
  19. package/cjs/charts/axis-3d/symlog-axis.js +3 -4
  20. package/cjs/charts/axis-3d/symlog-axis.js.map +1 -1
  21. package/cjs/charts/axis-3d/time-axis.js +2 -2
  22. package/cjs/charts/axis-3d/time-axis.js.map +1 -1
  23. package/cjs/charts/bar-3d/chart.js +2 -1
  24. package/cjs/charts/bar-3d/index.js +1 -1
  25. package/cjs/charts/bar-3d/interface.js +1 -1
  26. package/cjs/charts/bar-3d/series-spec-transformer.js +1 -1
  27. package/cjs/charts/bar-3d/series.js +1 -1
  28. package/cjs/charts/bar-3d/theme.js +1 -1
  29. package/cjs/charts/candlestick/candlestick-transformer.js +1 -1
  30. package/cjs/charts/candlestick/candlestick.d.ts +1 -1
  31. package/cjs/charts/candlestick/candlestick.js +2 -1
  32. package/cjs/charts/candlestick/candlestick.js.map +1 -1
  33. package/cjs/charts/candlestick/index.js +1 -1
  34. package/cjs/charts/candlestick/interface.js +1 -1
  35. package/cjs/charts/candlestick/mark/candlestick.d.ts +2 -1
  36. package/cjs/charts/candlestick/mark/candlestick.js +4 -4
  37. package/cjs/charts/candlestick/mark/candlestick.js.map +1 -1
  38. package/cjs/charts/candlestick/series/animation.d.ts +2 -2
  39. package/cjs/charts/candlestick/series/animation.js +17 -17
  40. package/cjs/charts/candlestick/series/animation.js.map +1 -1
  41. package/cjs/charts/candlestick/series/candlestick.d.ts +2 -1
  42. package/cjs/charts/candlestick/series/candlestick.js +4 -4
  43. package/cjs/charts/candlestick/series/candlestick.js.map +1 -1
  44. package/cjs/charts/candlestick/util.js +1 -1
  45. package/cjs/charts/combination-candlestick/combination-candlestick-transformer.js +14 -14
  46. package/cjs/charts/combination-candlestick/combination-candlestick-transformer.js.map +1 -1
  47. package/cjs/charts/combination-candlestick/combination-candlestick.js +3 -3
  48. package/cjs/charts/combination-candlestick/combination-candlestick.js.map +1 -1
  49. package/cjs/charts/combination-candlestick/constant.js +1 -1
  50. package/cjs/charts/combination-candlestick/index.js +1 -1
  51. package/cjs/charts/combination-candlestick/interface.js +1 -1
  52. package/cjs/charts/conversion-funnel/arrow-data-transform.d.ts +1 -1
  53. package/cjs/charts/conversion-funnel/arrow-data-transform.js +6 -6
  54. package/cjs/charts/conversion-funnel/arrow-data-transform.js.map +1 -1
  55. package/cjs/charts/conversion-funnel/constants.js +1 -1
  56. package/cjs/charts/conversion-funnel/conversion-funnel-transformer.js +3 -3
  57. package/cjs/charts/conversion-funnel/conversion-funnel-transformer.js.map +1 -1
  58. package/cjs/charts/conversion-funnel/conversion-funnel.d.ts +1 -1
  59. package/cjs/charts/conversion-funnel/conversion-funnel.js +3 -3
  60. package/cjs/charts/conversion-funnel/conversion-funnel.js.map +1 -1
  61. package/cjs/charts/conversion-funnel/index.js +1 -1
  62. package/cjs/charts/conversion-funnel/interface.js +1 -1
  63. package/cjs/charts/conversion-funnel/util.js +1 -1
  64. package/cjs/charts/funnel-3d/chart.js +2 -1
  65. package/cjs/charts/funnel-3d/constant.js +1 -1
  66. package/cjs/charts/funnel-3d/index.js +1 -1
  67. package/cjs/charts/funnel-3d/interface.js +1 -1
  68. package/cjs/charts/funnel-3d/series-spec-transformer.js +1 -1
  69. package/cjs/charts/funnel-3d/series.js +1 -1
  70. package/cjs/charts/funnel-3d/theme.js +1 -1
  71. package/cjs/charts/histogram-3d/chart.js +1 -1
  72. package/cjs/charts/image-cloud/series/animation.d.ts +2 -2
  73. package/cjs/charts/image-cloud/series/animation.js +8 -8
  74. package/cjs/charts/image-cloud/series/animation.js.map +1 -1
  75. package/cjs/charts/image-cloud/series/image-cloud.d.ts +4 -4
  76. package/cjs/charts/image-cloud/series/image-cloud.js +16 -16
  77. package/cjs/charts/image-cloud/series/image-cloud.js.map +1 -1
  78. package/cjs/charts/image-cloud/series/interface.d.ts +1 -1
  79. package/cjs/charts/image-cloud/series/interface.js.map +1 -1
  80. package/cjs/charts/pictogram/element-highlight-by-graphic-name.js +2 -2
  81. package/cjs/charts/pictogram/element-highlight-by-graphic-name.js.map +1 -1
  82. package/cjs/charts/pictogram/series/pictogram-transformer.js +3 -3
  83. package/cjs/charts/pictogram/series/pictogram-transformer.js.map +1 -1
  84. package/cjs/charts/pictogram/series/pictogram.d.ts +3 -3
  85. package/cjs/charts/pictogram/series/pictogram.js +27 -27
  86. package/cjs/charts/pictogram/series/pictogram.js.map +1 -1
  87. package/cjs/charts/pictogram/series/svg-source.d.ts +1 -2
  88. package/cjs/charts/pictogram/series/svg-source.js +3 -3
  89. package/cjs/charts/pictogram/series/svg-source.js.map +1 -1
  90. package/cjs/charts/pictogram/series/transform.d.ts +1 -1
  91. package/cjs/charts/pictogram/series/transform.js +6 -6
  92. package/cjs/charts/pictogram/series/transform.js.map +1 -1
  93. package/cjs/charts/ranking-bar/interface.d.ts +1 -1
  94. package/cjs/charts/ranking-bar/interface.js.map +1 -1
  95. package/cjs/charts/ranking-bar/ranking-bar-transformer.js +2 -2
  96. package/cjs/charts/ranking-bar/ranking-bar-transformer.js.map +1 -1
  97. package/cjs/charts/ranking-list/interface.d.ts +4 -4
  98. package/cjs/charts/ranking-list/interface.js.map +1 -1
  99. package/cjs/charts/ranking-list/ranking-list-transformer.d.ts +37 -37
  100. package/cjs/charts/ranking-list/ranking-list-transformer.js +5 -5
  101. package/cjs/charts/ranking-list/ranking-list-transformer.js.map +1 -1
  102. package/cjs/charts/ranking-list/utils.js +2 -2
  103. package/cjs/charts/ranking-list/utils.js.map +1 -1
  104. package/cjs/charts/sequence-scatter-kde/interface.d.ts +3 -3
  105. package/cjs/charts/sequence-scatter-kde/interface.js.map +1 -1
  106. package/cjs/charts/sequence-scatter-link/interface.d.ts +2 -2
  107. package/cjs/charts/sequence-scatter-link/interface.js.map +1 -1
  108. package/cjs/charts/sequence-scatter-pixel/interface.d.ts +3 -3
  109. package/cjs/charts/sequence-scatter-pixel/interface.js.map +1 -1
  110. package/cjs/charts/word-cloud-3d/animation.js +3 -3
  111. package/cjs/charts/word-cloud-3d/animation.js.map +1 -1
  112. package/cjs/components/bar-link/bar-link.d.ts +1 -1
  113. package/cjs/components/bar-link/bar-link.js +12 -12
  114. package/cjs/components/bar-link/bar-link.js.map +1 -1
  115. package/cjs/components/bar-link/constant.js +1 -1
  116. package/cjs/components/bar-link/index.js +1 -1
  117. package/cjs/components/bar-link/type.d.ts +1 -6
  118. package/cjs/components/bar-link/type.js +1 -1
  119. package/cjs/components/bar-link/type.js.map +1 -1
  120. package/cjs/components/bar-link/util.d.ts +1 -1
  121. package/cjs/components/bar-link/util.js +3 -3
  122. package/cjs/components/bar-link/util.js.map +1 -1
  123. package/cjs/components/bar-regression-line/index.d.ts +3 -3
  124. package/cjs/components/bar-regression-line/index.js +8 -8
  125. package/cjs/components/bar-regression-line/index.js.map +1 -1
  126. package/cjs/components/bar-regression-line/type.js +1 -1
  127. package/cjs/components/histogram-regression-line/index.d.ts +2 -2
  128. package/cjs/components/histogram-regression-line/index.js +9 -9
  129. package/cjs/components/histogram-regression-line/index.js.map +1 -1
  130. package/cjs/components/histogram-regression-line/type.js +1 -1
  131. package/cjs/components/map-label/index.js +1 -1
  132. package/cjs/components/map-label/layout.d.ts +1 -1
  133. package/cjs/components/map-label/layout.js +5 -5
  134. package/cjs/components/map-label/layout.js.map +1 -1
  135. package/cjs/components/map-label/map-label-transformer.js +1 -2
  136. package/cjs/components/map-label/map-label.d.ts +3 -4
  137. package/cjs/components/map-label/map-label.js +22 -22
  138. package/cjs/components/map-label/map-label.js.map +1 -1
  139. package/cjs/components/map-label/theme.js +1 -1
  140. package/cjs/components/map-label/type.d.ts +1 -1
  141. package/cjs/components/map-label/type.js +1 -1
  142. package/cjs/components/map-label/type.js.map +1 -1
  143. package/cjs/components/regression-line/index.js +1 -1
  144. package/cjs/components/regression-line/regression-line.d.ts +1 -1
  145. package/cjs/components/regression-line/regression-line.js +11 -11
  146. package/cjs/components/regression-line/regression-line.js.map +1 -1
  147. package/cjs/components/regression-line/type.d.ts +1 -1
  148. package/cjs/components/regression-line/type.js +1 -1
  149. package/cjs/components/regression-line/type.js.map +1 -1
  150. package/cjs/components/scatter-regression-line/index.d.ts +3 -3
  151. package/cjs/components/scatter-regression-line/index.js +11 -11
  152. package/cjs/components/scatter-regression-line/index.js.map +1 -1
  153. package/cjs/components/scatter-regression-line/type.js +1 -1
  154. package/cjs/components/series-break/constant.js +1 -1
  155. package/cjs/components/series-break/index.js +1 -1
  156. package/cjs/components/series-break/series-break.d.ts +2 -2
  157. package/cjs/components/series-break/series-break.js +11 -11
  158. package/cjs/components/series-break/series-break.js.map +1 -1
  159. package/cjs/components/series-break/type.d.ts +1 -2
  160. package/cjs/components/series-break/type.js +1 -1
  161. package/cjs/components/series-break/type.js.map +1 -1
  162. package/cjs/components/series-break/util.js +8 -8
  163. package/cjs/components/series-break/util.js.map +1 -1
  164. package/cjs/components/series-label/constant.js +1 -1
  165. package/cjs/components/series-label/index.js +1 -1
  166. package/cjs/components/series-label/series-label.d.ts +2 -2
  167. package/cjs/components/series-label/series-label.js +9 -10
  168. package/cjs/components/series-label/series-label.js.map +1 -1
  169. package/cjs/components/series-label/type.d.ts +1 -2
  170. package/cjs/components/series-label/type.js +1 -1
  171. package/cjs/components/series-label/type.js.map +1 -1
  172. package/cjs/components/series-label/util.d.ts +4 -4
  173. package/cjs/components/series-label/util.js +6 -6
  174. package/cjs/components/series-label/util.js.map +1 -1
  175. package/cjs/type/type.d.ts +1 -1
  176. package/cjs/type/type.js.map +1 -1
  177. package/esm/charts/3d/arc-3d.js +1 -3
  178. package/esm/charts/3d/arc-3d.js.map +1 -1
  179. package/esm/charts/3d/layout.d.ts +1 -1
  180. package/esm/charts/3d/layout.js.map +1 -1
  181. package/esm/charts/3d/plugin.js +1 -1
  182. package/esm/charts/3d/plugin.js.map +1 -1
  183. package/esm/charts/3d/pyramid-3d.js +1 -3
  184. package/esm/charts/3d/pyramid-3d.js.map +1 -1
  185. package/esm/charts/3d/rect-3d.js +1 -3
  186. package/esm/charts/3d/rect-3d.js.map +1 -1
  187. package/esm/charts/axis-3d/band-axis.js +1 -1
  188. package/esm/charts/axis-3d/band-axis.js.map +1 -1
  189. package/esm/charts/axis-3d/linear-axis.js +1 -1
  190. package/esm/charts/axis-3d/linear-axis.js.map +1 -1
  191. package/esm/charts/axis-3d/log-axis.js +1 -1
  192. package/esm/charts/axis-3d/log-axis.js.map +1 -1
  193. package/esm/charts/axis-3d/symlog-axis.js +2 -3
  194. package/esm/charts/axis-3d/symlog-axis.js.map +1 -1
  195. package/esm/charts/axis-3d/time-axis.js +1 -1
  196. package/esm/charts/axis-3d/time-axis.js.map +1 -1
  197. package/esm/charts/bar-3d/chart.js +2 -1
  198. package/esm/charts/bar-3d/index.js +1 -1
  199. package/esm/charts/bar-3d/interface.js +1 -1
  200. package/esm/charts/bar-3d/series-spec-transformer.js +1 -1
  201. package/esm/charts/bar-3d/series.js +1 -1
  202. package/esm/charts/bar-3d/theme.js +1 -1
  203. package/esm/charts/candlestick/candlestick-transformer.js +1 -1
  204. package/esm/charts/candlestick/candlestick.d.ts +1 -1
  205. package/esm/charts/candlestick/candlestick.js +2 -1
  206. package/esm/charts/candlestick/candlestick.js.map +1 -1
  207. package/esm/charts/candlestick/index.js +1 -1
  208. package/esm/charts/candlestick/interface.js +1 -1
  209. package/esm/charts/candlestick/mark/candlestick.d.ts +2 -1
  210. package/esm/charts/candlestick/mark/candlestick.js +1 -5
  211. package/esm/charts/candlestick/mark/candlestick.js.map +1 -1
  212. package/esm/charts/candlestick/series/animation.d.ts +2 -2
  213. package/esm/charts/candlestick/series/animation.js +2 -2
  214. package/esm/charts/candlestick/series/animation.js.map +1 -1
  215. package/esm/charts/candlestick/series/candlestick.d.ts +2 -1
  216. package/esm/charts/candlestick/series/candlestick.js +1 -1
  217. package/esm/charts/candlestick/series/candlestick.js.map +1 -1
  218. package/esm/charts/candlestick/util.js +1 -1
  219. package/esm/charts/combination-candlestick/combination-candlestick-transformer.js +2 -2
  220. package/esm/charts/combination-candlestick/combination-candlestick-transformer.js.map +1 -1
  221. package/esm/charts/combination-candlestick/combination-candlestick.js +2 -2
  222. package/esm/charts/combination-candlestick/combination-candlestick.js.map +1 -1
  223. package/esm/charts/combination-candlestick/constant.js +1 -1
  224. package/esm/charts/combination-candlestick/index.js +1 -1
  225. package/esm/charts/combination-candlestick/interface.js +1 -1
  226. package/esm/charts/conversion-funnel/arrow-data-transform.d.ts +1 -1
  227. package/esm/charts/conversion-funnel/arrow-data-transform.js +2 -2
  228. package/esm/charts/conversion-funnel/arrow-data-transform.js.map +1 -1
  229. package/esm/charts/conversion-funnel/constants.js +1 -1
  230. package/esm/charts/conversion-funnel/conversion-funnel-transformer.js +2 -2
  231. package/esm/charts/conversion-funnel/conversion-funnel-transformer.js.map +1 -1
  232. package/esm/charts/conversion-funnel/conversion-funnel.d.ts +1 -1
  233. package/esm/charts/conversion-funnel/conversion-funnel.js +2 -2
  234. package/esm/charts/conversion-funnel/conversion-funnel.js.map +1 -1
  235. package/esm/charts/conversion-funnel/index.js +1 -1
  236. package/esm/charts/conversion-funnel/interface.js +1 -1
  237. package/esm/charts/conversion-funnel/util.js +1 -1
  238. package/esm/charts/funnel-3d/chart.js +2 -1
  239. package/esm/charts/funnel-3d/constant.js +1 -1
  240. package/esm/charts/funnel-3d/index.js +1 -1
  241. package/esm/charts/funnel-3d/interface.js +1 -1
  242. package/esm/charts/funnel-3d/series-spec-transformer.js +1 -1
  243. package/esm/charts/funnel-3d/series.js +1 -1
  244. package/esm/charts/funnel-3d/theme.js +1 -1
  245. package/esm/charts/histogram-3d/chart.js +1 -1
  246. package/esm/charts/image-cloud/series/animation.d.ts +2 -2
  247. package/esm/charts/image-cloud/series/animation.js +2 -2
  248. package/esm/charts/image-cloud/series/animation.js.map +1 -1
  249. package/esm/charts/image-cloud/series/image-cloud.d.ts +4 -4
  250. package/esm/charts/image-cloud/series/image-cloud.js +3 -3
  251. package/esm/charts/image-cloud/series/image-cloud.js.map +1 -1
  252. package/esm/charts/image-cloud/series/interface.d.ts +1 -1
  253. package/esm/charts/image-cloud/series/interface.js.map +1 -1
  254. package/esm/charts/pictogram/element-highlight-by-graphic-name.js +1 -1
  255. package/esm/charts/pictogram/element-highlight-by-graphic-name.js.map +1 -1
  256. package/esm/charts/pictogram/series/pictogram-transformer.js +1 -1
  257. package/esm/charts/pictogram/series/pictogram-transformer.js.map +1 -1
  258. package/esm/charts/pictogram/series/pictogram.d.ts +3 -3
  259. package/esm/charts/pictogram/series/pictogram.js +3 -3
  260. package/esm/charts/pictogram/series/pictogram.js.map +1 -1
  261. package/esm/charts/pictogram/series/svg-source.d.ts +1 -2
  262. package/esm/charts/pictogram/series/svg-source.js +1 -1
  263. package/esm/charts/pictogram/series/svg-source.js.map +1 -1
  264. package/esm/charts/pictogram/series/transform.d.ts +1 -1
  265. package/esm/charts/pictogram/series/transform.js +1 -1
  266. package/esm/charts/pictogram/series/transform.js.map +1 -1
  267. package/esm/charts/ranking-bar/interface.d.ts +1 -1
  268. package/esm/charts/ranking-bar/interface.js.map +1 -1
  269. package/esm/charts/ranking-bar/ranking-bar-transformer.js +1 -1
  270. package/esm/charts/ranking-bar/ranking-bar-transformer.js.map +1 -1
  271. package/esm/charts/ranking-list/interface.d.ts +4 -4
  272. package/esm/charts/ranking-list/interface.js.map +1 -1
  273. package/esm/charts/ranking-list/ranking-list-transformer.d.ts +37 -37
  274. package/esm/charts/ranking-list/ranking-list-transformer.js +1 -1
  275. package/esm/charts/ranking-list/ranking-list-transformer.js.map +1 -1
  276. package/esm/charts/ranking-list/utils.js +1 -1
  277. package/esm/charts/ranking-list/utils.js.map +1 -1
  278. package/esm/charts/sequence-scatter-kde/interface.d.ts +3 -3
  279. package/esm/charts/sequence-scatter-kde/interface.js.map +1 -1
  280. package/esm/charts/sequence-scatter-link/interface.d.ts +2 -2
  281. package/esm/charts/sequence-scatter-link/interface.js.map +1 -1
  282. package/esm/charts/sequence-scatter-pixel/interface.d.ts +3 -3
  283. package/esm/charts/sequence-scatter-pixel/interface.js.map +1 -1
  284. package/esm/charts/word-cloud-3d/animation.js +1 -1
  285. package/esm/charts/word-cloud-3d/animation.js.map +1 -1
  286. package/esm/components/bar-link/bar-link.d.ts +1 -1
  287. package/esm/components/bar-link/bar-link.js +3 -5
  288. package/esm/components/bar-link/bar-link.js.map +1 -1
  289. package/esm/components/bar-link/constant.js +1 -1
  290. package/esm/components/bar-link/index.js +1 -1
  291. package/esm/components/bar-link/type.d.ts +1 -6
  292. package/esm/components/bar-link/type.js +1 -1
  293. package/esm/components/bar-link/type.js.map +1 -1
  294. package/esm/components/bar-link/util.d.ts +1 -1
  295. package/esm/components/bar-link/util.js +2 -2
  296. package/esm/components/bar-link/util.js.map +1 -1
  297. package/esm/components/bar-regression-line/index.d.ts +3 -3
  298. package/esm/components/bar-regression-line/index.js +2 -2
  299. package/esm/components/bar-regression-line/index.js.map +1 -1
  300. package/esm/components/bar-regression-line/type.js +1 -1
  301. package/esm/components/histogram-regression-line/index.d.ts +2 -2
  302. package/esm/components/histogram-regression-line/index.js +2 -2
  303. package/esm/components/histogram-regression-line/index.js.map +1 -1
  304. package/esm/components/histogram-regression-line/type.js +1 -1
  305. package/esm/components/map-label/index.js +1 -1
  306. package/esm/components/map-label/layout.d.ts +1 -1
  307. package/esm/components/map-label/layout.js +2 -2
  308. package/esm/components/map-label/layout.js.map +1 -1
  309. package/esm/components/map-label/map-label-transformer.js +1 -2
  310. package/esm/components/map-label/map-label.d.ts +3 -4
  311. package/esm/components/map-label/map-label.js +4 -6
  312. package/esm/components/map-label/map-label.js.map +1 -1
  313. package/esm/components/map-label/theme.js +1 -1
  314. package/esm/components/map-label/type.d.ts +1 -1
  315. package/esm/components/map-label/type.js +1 -1
  316. package/esm/components/map-label/type.js.map +1 -1
  317. package/esm/components/regression-line/index.js +1 -1
  318. package/esm/components/regression-line/regression-line.d.ts +1 -1
  319. package/esm/components/regression-line/regression-line.js +3 -5
  320. package/esm/components/regression-line/regression-line.js.map +1 -1
  321. package/esm/components/regression-line/type.d.ts +1 -1
  322. package/esm/components/regression-line/type.js +1 -1
  323. package/esm/components/regression-line/type.js.map +1 -1
  324. package/esm/components/scatter-regression-line/index.d.ts +3 -3
  325. package/esm/components/scatter-regression-line/index.js +2 -2
  326. package/esm/components/scatter-regression-line/index.js.map +1 -1
  327. package/esm/components/scatter-regression-line/type.js +1 -1
  328. package/esm/components/series-break/constant.js +1 -1
  329. package/esm/components/series-break/index.js +1 -1
  330. package/esm/components/series-break/series-break.d.ts +2 -2
  331. package/esm/components/series-break/series-break.js +3 -5
  332. package/esm/components/series-break/series-break.js.map +1 -1
  333. package/esm/components/series-break/type.d.ts +1 -2
  334. package/esm/components/series-break/type.js +1 -1
  335. package/esm/components/series-break/type.js.map +1 -1
  336. package/esm/components/series-break/util.js +2 -2
  337. package/esm/components/series-break/util.js.map +1 -1
  338. package/esm/components/series-label/constant.js +1 -1
  339. package/esm/components/series-label/index.js +1 -1
  340. package/esm/components/series-label/series-label.d.ts +2 -2
  341. package/esm/components/series-label/series-label.js +3 -6
  342. package/esm/components/series-label/series-label.js.map +1 -1
  343. package/esm/components/series-label/type.d.ts +1 -2
  344. package/esm/components/series-label/type.js +1 -1
  345. package/esm/components/series-label/type.js.map +1 -1
  346. package/esm/components/series-label/util.d.ts +4 -4
  347. package/esm/components/series-label/util.js +2 -2
  348. package/esm/components/series-label/util.js.map +1 -1
  349. package/esm/type/type.d.ts +1 -1
  350. package/esm/type/type.js.map +1 -1
  351. package/package.json +4 -4
package/build/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@visactor/vchart'), require('@visactor/vutils'), require('@visactor/vdataset'), require('@visactor/vrender-core'), require('@visactor/vrender-kits'), require('@visactor/vrender-animate'), require('@visactor/vlayouts'), require('@visactor/vrender-components')) :
3
- typeof define === 'function' && define.amd ? define(['exports', '@visactor/vchart', '@visactor/vutils', '@visactor/vdataset', '@visactor/vrender-core', '@visactor/vrender-kits', '@visactor/vrender-animate', '@visactor/vlayouts', '@visactor/vrender-components'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.VChartExtension = {}, global.VChart, global.vutils, global.vdataset, global.vrenderCore, global.vrenderKits, global.vrenderAnimate, global.vlayouts, global.vrenderComponents));
5
- })(this, (function (exports, vchart, vutils, vdataset, vrenderCore, vrenderKits, vrenderAnimate, vlayouts, vrenderComponents) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@visactor/vchart')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', '@visactor/vchart'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.VChartExtension = {}, global.VChart));
5
+ })(this, (function (exports, vchart) { 'use strict';
6
6
 
7
7
  class RankingBarChartSpecTransformer extends vchart.BaseChartSpecTransformer {
8
8
  transformSpec(spec) {
@@ -71,7 +71,7 @@
71
71
  data.sort((d1, d2) => Number(d2[xField]) - Number(d1[xField]));
72
72
  data.forEach(d => {
73
73
  const time = d[timeField];
74
- if (vutils.isValid(time)) {
74
+ if (vchart.isValid(time)) {
75
75
  timeNodes.add(time);
76
76
  }
77
77
  if (!timeData.has(time)) {
@@ -413,7 +413,7 @@
413
413
  const applyVisible = (spec, keyList) => {
414
414
  keyList.forEach(key => {
415
415
  var _a, _b, _c, _d, _e, _f, _g;
416
- if (vutils.isArray(spec[key])) {
416
+ if (vchart.isArray(spec[key])) {
417
417
  (_a = spec[key]) === null || _a === void 0 ? void 0 : _a.forEach((s, i) => {
418
418
  var _a, _b, _c;
419
419
  spec[key][i] = Object.assign(Object.assign({}, s), { style: Object.assign(Object.assign({}, s === null || s === void 0 ? void 0 : s.style), { visible: (_c = (_b = (_a = s === null || s === void 0 ? void 0 : s.style) === null || _a === void 0 ? void 0 : _a.visible) !== null && _b !== void 0 ? _b : s === null || s === void 0 ? void 0 : s.visible) !== null && _c !== void 0 ? _c : true }) });
@@ -590,13 +590,13 @@
590
590
  (_a = this.nameLabelTextMeasure) === null || _a === void 0 ? void 0 : _a.release();
591
591
  (_b = this.valueLabelTextMeasure) === null || _b === void 0 ? void 0 : _b.release();
592
592
  (_c = this.orderLabelTextMeasure) === null || _c === void 0 ? void 0 : _c.release();
593
- this.nameLabelTextMeasure = new vutils.TextMeasure({
593
+ this.nameLabelTextMeasure = new vchart.TextMeasure({
594
594
  defaultFontParams: (_e = (_d = spec.nameLabel) === null || _d === void 0 ? void 0 : _d.style) !== null && _e !== void 0 ? _e : {}
595
595
  });
596
- this.valueLabelTextMeasure = new vutils.TextMeasure({
596
+ this.valueLabelTextMeasure = new vchart.TextMeasure({
597
597
  defaultFontParams: (_g = (_f = spec.valueLabel) === null || _f === void 0 ? void 0 : _f.style) !== null && _g !== void 0 ? _g : {}
598
598
  });
599
- this.orderLabelTextMeasure = new vutils.TextMeasure({
599
+ this.orderLabelTextMeasure = new vchart.TextMeasure({
600
600
  defaultFontParams: (_j = (_h = spec.orderLabel) === null || _h === void 0 ? void 0 : _h.style) !== null && _j !== void 0 ? _j : {}
601
601
  });
602
602
  }
@@ -609,7 +609,7 @@
609
609
  var _a;
610
610
  if (!((_a = spec.data[0]) === null || _a === void 0 ? void 0 : _a.values)) {
611
611
  this.originalData = spec.data;
612
- this.originalSpec = vutils.cloneDeep(spec);
612
+ this.originalSpec = vchart.cloneDeep(spec);
613
613
  this.dataSpecs = this.processRankingData(spec);
614
614
  spec.data = this.dataSpecs[0].data;
615
615
  }
@@ -1177,7 +1177,7 @@
1177
1177
  var _a, _b, _c, _d, _e, _f, _g;
1178
1178
  const { text: textContent } = arrow;
1179
1179
  let displayTextContent = textContent;
1180
- if (vutils.isFunction(formatMethod)) {
1180
+ if (vchart.isFunction(formatMethod)) {
1181
1181
  const { vchart } = ctx;
1182
1182
  const { from, to } = arrow;
1183
1183
  const { field } = arrow.context;
@@ -1296,7 +1296,7 @@
1296
1296
  };
1297
1297
  function parseArrow(arrows, categoryField) {
1298
1298
  return arrows
1299
- .filter(arrow => vutils.isValidNumber(arrow.from * arrow.to))
1299
+ .filter(arrow => vchart.isValidNumber(arrow.from * arrow.to))
1300
1300
  .map((arrow, index) => {
1301
1301
  const { from, to, position = 'right' } = arrow;
1302
1302
  return Object.assign(Object.assign({}, arrow), { position, distance: arrow.distance || 40, from: Math.min(from, to), to: Math.max(from, to), span: Math.abs(from - to), isLayout: false, context: {
@@ -1313,7 +1313,7 @@
1313
1313
  const nodeDegreeMap = new Map();
1314
1314
  arrows.forEach(arrow => {
1315
1315
  const fromNodeDegree = nodeDegreeMap.get(arrow.from);
1316
- if (vutils.isValid(fromNodeDegree)) {
1316
+ if (vchart.isValid(fromNodeDegree)) {
1317
1317
  const firstNodeWidthSameFromTo = fromNodeDegree.fromArrows.find(node => isSameArrow(node, arrow));
1318
1318
  if (!firstNodeWidthSameFromTo) {
1319
1319
  fromNodeDegree.degree += 1;
@@ -1332,7 +1332,7 @@
1332
1332
  });
1333
1333
  }
1334
1334
  const toNodeDegree = nodeDegreeMap.get(arrow.to);
1335
- if (vutils.isValid(toNodeDegree)) {
1335
+ if (vchart.isValid(toNodeDegree)) {
1336
1336
  const firstNodeWidthSameFromTo = toNodeDegree.toArrows.find(node => isSameArrow(node, arrow));
1337
1337
  if (!firstNodeWidthSameFromTo) {
1338
1338
  toNodeDegree.degree += 1;
@@ -1361,7 +1361,7 @@
1361
1361
  .forEach(arrow => {
1362
1362
  var _a;
1363
1363
  const arrowsIsLayout = arrows.filter(arrow => arrow.layout.isLayout);
1364
- const maxLevelArrow = vutils.maxInArray(arrowsIsLayout, (cur, curMax) => cur.layout.level - curMax.layout.level);
1364
+ const maxLevelArrow = vchart.maxInArray(arrowsIsLayout, (cur, curMax) => cur.layout.level - curMax.layout.level);
1365
1365
  let level = (_a = maxLevelArrow === null || maxLevelArrow === void 0 ? void 0 : maxLevelArrow.layout.level) !== null && _a !== void 0 ? _a : 0;
1366
1366
  while (level >= 0) {
1367
1367
  if (arrowsIsLayout.some(arr => arr.layout.level === level && isArrowCross(arr, arrow))) {
@@ -1417,7 +1417,7 @@
1417
1417
  super.initData();
1418
1418
  const { conversionArrow } = this._spec;
1419
1419
  if (conversionArrow && ((_a = conversionArrow.arrows) === null || _a === void 0 ? void 0 : _a.length)) {
1420
- this._arrowData = new vdataset.DataView(this._dataSet, { name: `${vchart.PREFIX}_series_${this.id}_arrowData` });
1420
+ this._arrowData = new vchart.DataView(this._dataSet, { name: `${vchart.PREFIX}_series_${this.id}_arrowData` });
1421
1421
  if (!this._dataSet.getTransform('conversionArrow')) {
1422
1422
  this._dataSet.registerTransform('conversionArrow', conversionArrowTransform);
1423
1423
  }
@@ -2375,9 +2375,9 @@
2375
2375
  VChart3dPlugin.type = 'VChart3dPlugin';
2376
2376
  const register3DPlugin = () => {
2377
2377
  vchart.registerChartPlugin(VChart3dPlugin);
2378
- vrenderCore.registerDirectionalLight();
2379
- vrenderCore.registerOrthoCamera();
2380
- vrenderCore.registerViewTransform3dPlugin();
2378
+ vchart.registerDirectionalLight();
2379
+ vchart.registerOrthoCamera();
2380
+ vchart.registerViewTransform3dPlugin();
2381
2381
  };
2382
2382
 
2383
2383
  const bar3dSeriesMark = {
@@ -2423,10 +2423,10 @@
2423
2423
  Rect3dMark.type = "rect3d";
2424
2424
  const registerRect3dMark = () => {
2425
2425
  vchart.Factory.registerMark(Rect3dMark.type, Rect3dMark);
2426
- vrenderKits.registerShadowRoot();
2427
- vrenderKits.registerRect3d();
2426
+ vchart.registerShadowRoot();
2427
+ vchart.registerRect3d();
2428
2428
  vchart.registerRectAnimation();
2429
- vchart.Factory.registerGraphicComponent("rect3d", vrenderCore.createRect3d);
2429
+ vchart.Factory.registerGraphicComponent("rect3d", vchart.createRect3d);
2430
2430
  };
2431
2431
 
2432
2432
  const bar3d = {
@@ -2629,10 +2629,10 @@
2629
2629
  Pyramid3dMark.type = "pyramid3d";
2630
2630
  const registerPyramid3dMark = () => {
2631
2631
  vchart.Factory.registerMark(Pyramid3dMark.type, Pyramid3dMark);
2632
- vrenderKits.registerShadowRoot();
2633
- vrenderKits.registerPyramid3d();
2632
+ vchart.registerShadowRoot();
2633
+ vchart.registerPyramid3d();
2634
2634
  vchart.registerPolygonAnimation();
2635
- vchart.Factory.registerGraphicComponent("pyramid3d", vrenderCore.createPyramid3d);
2635
+ vchart.Factory.registerGraphicComponent("pyramid3d", vchart.createPyramid3d);
2636
2636
  };
2637
2637
 
2638
2638
  const funnel3d = vchart.getFunnelTheme(true);
@@ -2800,9 +2800,9 @@
2800
2800
  Arc3dMark.type = "arc3d";
2801
2801
  const registerArc3dMark = () => {
2802
2802
  vchart.registerArcAnimation();
2803
- vrenderKits.registerShadowRoot();
2804
- vrenderKits.registerArc3d();
2805
- vchart.Factory.registerGraphicComponent("arc3d", vrenderCore.createArc3d);
2803
+ vchart.registerShadowRoot();
2804
+ vchart.registerArc3d();
2805
+ vchart.Factory.registerGraphicComponent("arc3d", vchart.createArc3d);
2806
2806
  vchart.Factory.registerMark("arc3d", Arc3dMark);
2807
2807
  };
2808
2808
 
@@ -2980,10 +2980,10 @@
2980
2980
  CandlestickMark.type = CANDLESTICK_MARK_TYPE;
2981
2981
  const registerCandlestickMark = () => {
2982
2982
  vchart.registerGlyphMark();
2983
- vrenderKits.registerLine();
2984
- vrenderKits.registerRect();
2985
- vchart.Factory.registerGraphicComponent('line', (attrs) => vrenderCore.createLine(attrs));
2986
- vchart.Factory.registerGraphicComponent('rect', (attrs) => vrenderCore.createRect(attrs));
2983
+ vchart.registerLine();
2984
+ vchart.registerRect();
2985
+ vchart.Factory.registerGraphicComponent('line', (attrs) => vchart.createLine(attrs));
2986
+ vchart.Factory.registerGraphicComponent('rect', (attrs) => vchart.createRect(attrs));
2987
2987
  vchart.Factory.registerMark(CandlestickMark.type, CandlestickMark);
2988
2988
  };
2989
2989
 
@@ -2992,13 +2992,13 @@
2992
2992
  const finalAttribute = graphic.getFinalAttribute();
2993
2993
  const { x, y, open, high, low, close } = finalAttribute;
2994
2994
  const animateAttributes = { from: { x, y }, to: { x, y } };
2995
- if (vutils.isValidNumber(open) && vutils.isValidNumber(close)) {
2995
+ if (vchart.isValidNumber(open) && vchart.isValidNumber(close)) {
2996
2996
  if (open > close) {
2997
2997
  animateAttributes.from.open = low;
2998
2998
  animateAttributes.to.open = open;
2999
2999
  animateAttributes.from.close = low;
3000
3000
  animateAttributes.to.close = close;
3001
- if (vutils.isValidNumber(high)) {
3001
+ if (vchart.isValidNumber(high)) {
3002
3002
  animateAttributes.from.high = low;
3003
3003
  animateAttributes.to.high = high;
3004
3004
  }
@@ -3008,7 +3008,7 @@
3008
3008
  animateAttributes.to.open = open;
3009
3009
  animateAttributes.from.close = high;
3010
3010
  animateAttributes.to.close = close;
3011
- if (vutils.isValidNumber(low)) {
3011
+ if (vchart.isValidNumber(low)) {
3012
3012
  animateAttributes.from.low = high;
3013
3013
  animateAttributes.to.low = low;
3014
3014
  }
@@ -3022,13 +3022,13 @@
3022
3022
  const finalAttribute = graphic.getFinalAttribute();
3023
3023
  const { x, y, open, high, low, close } = finalAttribute;
3024
3024
  const animateAttributes = { from: { x, y }, to: { x, y } };
3025
- if (vutils.isValidNumber(open) && vutils.isValidNumber(close)) {
3025
+ if (vchart.isValidNumber(open) && vchart.isValidNumber(close)) {
3026
3026
  if (open > close) {
3027
3027
  animateAttributes.from.open = open;
3028
3028
  animateAttributes.to.open = low;
3029
3029
  animateAttributes.from.close = close;
3030
3030
  animateAttributes.to.close = low;
3031
- if (vutils.isValidNumber(high)) {
3031
+ if (vchart.isValidNumber(high)) {
3032
3032
  animateAttributes.from.high = high;
3033
3033
  animateAttributes.to.high = low;
3034
3034
  }
@@ -3038,7 +3038,7 @@
3038
3038
  animateAttributes.to.open = high;
3039
3039
  animateAttributes.from.close = close;
3040
3040
  animateAttributes.to.close = high;
3041
- if (vutils.isValidNumber(low)) {
3041
+ if (vchart.isValidNumber(low)) {
3042
3042
  animateAttributes.from.low = low;
3043
3043
  animateAttributes.to.low = high;
3044
3044
  }
@@ -3047,7 +3047,7 @@
3047
3047
  return animateAttributes;
3048
3048
  };
3049
3049
  };
3050
- class CandlestickScaleIn extends vrenderAnimate.ACustomAnimate {
3050
+ class CandlestickScaleIn extends vchart.ACustomAnimate {
3051
3051
  constructor(from, to, duration, easing, params) {
3052
3052
  super(from, to, duration, easing, params);
3053
3053
  }
@@ -3076,7 +3076,7 @@
3076
3076
  this.target.setAttributes(attribute);
3077
3077
  }
3078
3078
  }
3079
- class CandlestickScaleOut extends vrenderAnimate.ACustomAnimate {
3079
+ class CandlestickScaleOut extends vchart.ACustomAnimate {
3080
3080
  constructor(from, to, duration, easing, params) {
3081
3081
  super(from, to, duration, easing, params);
3082
3082
  }
@@ -3105,8 +3105,8 @@
3105
3105
  }
3106
3106
  }
3107
3107
  const registerCandlestickScaleAnimation = () => {
3108
- vrenderAnimate.AnimateExecutor.registerBuiltInAnimate('candlestickScaleIn', CandlestickScaleIn);
3109
- vrenderAnimate.AnimateExecutor.registerBuiltInAnimate('candlestickScaleOut', CandlestickScaleOut);
3108
+ vchart.AnimateExecutor.registerBuiltInAnimate('candlestickScaleIn', CandlestickScaleIn);
3109
+ vchart.AnimateExecutor.registerBuiltInAnimate('candlestickScaleOut', CandlestickScaleOut);
3110
3110
  };
3111
3111
 
3112
3112
  const CANDLESTICK_CHART_TYPE = 'candlestick';
@@ -3339,7 +3339,7 @@
3339
3339
  this.initCandlestickMarkStyle();
3340
3340
  }
3341
3341
  _initAnimationSpec(config = {}) {
3342
- const newConfig = vutils.merge({}, config);
3342
+ const newConfig = vchart.merge({}, config);
3343
3343
  ['appear', 'enter', 'update', 'exit', 'disappear'].forEach(state => {
3344
3344
  if (newConfig[state] && newConfig[state].type === 'scaleIn') {
3345
3345
  newConfig[state].type = 'candlestickScaleIn';
@@ -3364,9 +3364,9 @@
3364
3364
  this._candlestickMark && this._tooltipHelper.activeTriggerSet.mark.add(this._candlestickMark);
3365
3365
  }
3366
3366
  _buildMergedStyles(baseStyle, risingStyle, fallingStyle, dojiStyle) {
3367
- this._mergedStyles.rising = vutils.merge({}, baseStyle, risingStyle);
3368
- this._mergedStyles.falling = vutils.merge({}, baseStyle, fallingStyle);
3369
- this._mergedStyles.doji = vutils.merge({}, baseStyle, dojiStyle);
3367
+ this._mergedStyles.rising = vchart.merge({}, baseStyle, risingStyle);
3368
+ this._mergedStyles.falling = vchart.merge({}, baseStyle, fallingStyle);
3369
+ this._mergedStyles.doji = vchart.merge({}, baseStyle, dojiStyle);
3370
3370
  }
3371
3371
  mergeStyle(datum) {
3372
3372
  const open = this.getDatumPositionValues(datum, this._openField)[0];
@@ -3377,9 +3377,7 @@
3377
3377
  else if (open > close) {
3378
3378
  return this._mergedStyles.falling;
3379
3379
  }
3380
- else {
3381
- return this._mergedStyles.doji;
3382
- }
3380
+ return this._mergedStyles.doji;
3383
3381
  }
3384
3382
  _getMarkWidth() {
3385
3383
  if (this._autoBoxWidth) {
@@ -3467,7 +3465,7 @@
3467
3465
  const tempCandlestickSeries = spec.series.find(s => s.id === spec.candlestickSeries.id);
3468
3466
  let candlestickSpec;
3469
3467
  if (tempCandlestickSeries) {
3470
- vutils.merge(tempCandlestickSeries, spec.candlestickSeries);
3468
+ vchart.merge(tempCandlestickSeries, spec.candlestickSeries);
3471
3469
  candlestickSpec = tempCandlestickSeries;
3472
3470
  }
3473
3471
  else {
@@ -3478,11 +3476,11 @@
3478
3476
  this._transformSeriesData(spec, candlestickSpec);
3479
3477
  candlestickSpec.regionIndex = 0;
3480
3478
  if (spec.previewSeries) {
3481
- vutils.array(spec.previewSeries).forEach(previewSeries => {
3479
+ vchart.array(spec.previewSeries).forEach(previewSeries => {
3482
3480
  const tempPreviewSeries = spec.series.find(s => s.id === previewSeries.id);
3483
3481
  let previewSeriesSpec;
3484
3482
  if (tempPreviewSeries) {
3485
- vutils.merge(tempPreviewSeries, previewSeries);
3483
+ vchart.merge(tempPreviewSeries, previewSeries);
3486
3484
  previewSeriesSpec = tempPreviewSeries;
3487
3485
  }
3488
3486
  else {
@@ -3497,8 +3495,8 @@
3497
3495
  _transformSeriesData(spec, seriesSpec) {
3498
3496
  var _a;
3499
3497
  if (seriesSpec.data) {
3500
- spec.data = vutils.array((_a = spec.data) !== null && _a !== void 0 ? _a : []);
3501
- vutils.array(seriesSpec.data).forEach((d, index) => {
3498
+ spec.data = vchart.array((_a = spec.data) !== null && _a !== void 0 ? _a : []);
3499
+ vchart.array(seriesSpec.data).forEach((d, index) => {
3502
3500
  spec.data.push(d);
3503
3501
  if (index === 0) {
3504
3502
  seriesSpec.dataIndex = spec.data.length - 1;
@@ -3538,7 +3536,7 @@
3538
3536
  }
3539
3537
  _transformDataZoomSpec(spec) {
3540
3538
  if (spec.dataZoom) {
3541
- vutils.array(spec.dataZoom).forEach(dataZoom => {
3539
+ vchart.array(spec.dataZoom).forEach(dataZoom => {
3542
3540
  if (dataZoom.orient === 'left' || dataZoom.orient === 'right') {
3543
3541
  dataZoom.regionIndex = [0];
3544
3542
  }
@@ -3561,7 +3559,7 @@
3561
3559
  totalRow++;
3562
3560
  }
3563
3561
  if (spec.legends) {
3564
- const firstLegend = vutils.array(spec.legends)[0];
3562
+ const firstLegend = vchart.array(spec.legends)[0];
3565
3563
  if ((firstLegend === null || firstLegend === void 0 ? void 0 : firstLegend.visible) !== false) {
3566
3564
  if (firstLegend.orient === 'top' || firstLegend.orient === 'bottom') {
3567
3565
  totalRow++;
@@ -3572,7 +3570,7 @@
3572
3570
  }
3573
3571
  }
3574
3572
  if (spec.dataZoom) {
3575
- vutils.array(spec.dataZoom).forEach(dataZoom => {
3573
+ vchart.array(spec.dataZoom).forEach(dataZoom => {
3576
3574
  if ((dataZoom === null || dataZoom === void 0 ? void 0 : dataZoom.visible) !== false) {
3577
3575
  if (dataZoom.orient === 'top' || dataZoom.orient === 'bottom') {
3578
3576
  totalRow++;
@@ -3591,7 +3589,7 @@
3591
3589
  right: false,
3592
3590
  z: false
3593
3591
  };
3594
- vutils.array(spec.axes).forEach(axis => {
3592
+ vchart.array(spec.axes).forEach(axis => {
3595
3593
  if (hasLayout[axis.orient]) {
3596
3594
  return;
3597
3595
  }
@@ -3621,13 +3619,13 @@
3621
3619
  this._layoutOrientItem(layout, spec.title, temp, { specKey: 'title', index: 0 }, 'total');
3622
3620
  }
3623
3621
  if (spec.legends) {
3624
- const firstLegend = vutils.array(spec.legends)[0];
3622
+ const firstLegend = vchart.array(spec.legends)[0];
3625
3623
  if ((firstLegend === null || firstLegend === void 0 ? void 0 : firstLegend.visible) !== false) {
3626
3624
  this._layoutOrientItem(layout, firstLegend, temp, { specKey: 'legends', index: 0 }, 'less');
3627
3625
  }
3628
3626
  }
3629
3627
  if (spec.dataZoom) {
3630
- vutils.array(spec.dataZoom).forEach((dataZoom, index) => {
3628
+ vchart.array(spec.dataZoom).forEach((dataZoom, index) => {
3631
3629
  if ((dataZoom === null || dataZoom === void 0 ? void 0 : dataZoom.visible) === false) {
3632
3630
  return;
3633
3631
  }
@@ -3697,7 +3695,7 @@
3697
3695
  }
3698
3696
  }
3699
3697
  });
3700
- vutils.array(spec.dataZoom).forEach((dataZoom, index) => {
3698
+ vchart.array(spec.dataZoom).forEach((dataZoom, index) => {
3701
3699
  const dataZoomLayout = layout.elements.find(item => 'modelKey' in item && item.modelKey === 'dataZoom' && item.modelIndex === index);
3702
3700
  if (dataZoomLayout) {
3703
3701
  if (dataZoom.orient === 'top' || dataZoom.orient === 'bottom') {
@@ -3782,7 +3780,7 @@
3782
3780
  }
3783
3781
  CombinationCandlestickChart.type = CombinationCandlestickChart_TYPE;
3784
3782
  CombinationCandlestickChart.transformerConstructor = CombinationCandlestickChartSpecTransformer;
3785
- vutils.mixin(CombinationCandlestickChart, vchart.StackChartMixin);
3783
+ vchart.mixin(CombinationCandlestickChart, vchart.StackChartMixin);
3786
3784
  const registerCombinationCandlestickChart = () => {
3787
3785
  registerCandlestickSeries();
3788
3786
  vchart.Factory.registerChart(CombinationCandlestickChart.type, CombinationCandlestickChart);
@@ -3790,7 +3788,7 @@
3790
3788
 
3791
3789
  const WordCloud3dAnimation = (params) => {
3792
3790
  return {
3793
- custom: vrenderAnimate.RotateBySphereAnimate,
3791
+ custom: vchart.RotateBySphereAnimate,
3794
3792
  customParameters: () => params,
3795
3793
  easing: 'linear',
3796
3794
  loop: Infinity,
@@ -4025,35 +4023,35 @@
4025
4023
  vchart.registerCartesianBandAxis();
4026
4024
  const AxisCls = vchart.Factory.getComponentInKey(vchart.CartesianBandAxis.type);
4027
4025
  AxisCls.builtInTheme = Object.assign(Object.assign({}, AxisCls.builtInTheme), { axisZ: Object.assign(Object.assign({}, vchart.CartesianBandAxis.builtInTheme.axisX), axisZ) });
4028
- vutils.mixin(AxisCls, Axis3dMixin);
4026
+ vchart.mixin(AxisCls, Axis3dMixin);
4029
4027
  };
4030
4028
 
4031
4029
  const registerCartesianLinearAxis3d = () => {
4032
4030
  vchart.registerCartesianLinearAxis();
4033
4031
  const AxisCls = vchart.Factory.getComponentInKey(vchart.CartesianLinearAxis.type);
4034
4032
  AxisCls.builtInTheme = Object.assign(Object.assign({}, AxisCls.builtInTheme), { axisZ: Object.assign(Object.assign({}, vchart.CartesianLinearAxis.builtInTheme.axisX), axisZ) });
4035
- vutils.mixin(AxisCls, Axis3dMixin);
4033
+ vchart.mixin(AxisCls, Axis3dMixin);
4036
4034
  };
4037
4035
 
4038
4036
  const registerCartesianLogAxis3d = () => {
4039
4037
  vchart.registerCartesianLogAxis();
4040
4038
  const AxisCls = vchart.Factory.getComponentInKey(vchart.CartesianLogAxis.type);
4041
4039
  AxisCls.builtInTheme = Object.assign(Object.assign({}, AxisCls.builtInTheme), { axisZ: Object.assign(Object.assign({}, vchart.CartesianLogAxis.builtInTheme.axisX), axisZ) });
4042
- vutils.mixin(AxisCls, Axis3dMixin);
4040
+ vchart.mixin(AxisCls, Axis3dMixin);
4043
4041
  };
4044
4042
 
4045
4043
  const registerCartesianSymlogAxis3d = () => {
4046
4044
  vchart.registerCartesianLogAxis();
4047
4045
  const AxisCls = vchart.Factory.getComponentInKey(vchart.CartesianSymlogAxis.type);
4048
4046
  AxisCls.builtInTheme = Object.assign(Object.assign({}, AxisCls.builtInTheme), { axisZ: Object.assign(Object.assign({}, AxisCls.builtInTheme.axisX), axisZ) });
4049
- vutils.mixin(AxisCls, Axis3dMixin);
4047
+ vchart.mixin(AxisCls, Axis3dMixin);
4050
4048
  };
4051
4049
 
4052
4050
  const registerCartesianTimeAxis3d = () => {
4053
4051
  vchart.registerCartesianTimeAxis();
4054
4052
  const AxisCls = vchart.Factory.getComponentInKey(vchart.CartesianTimeAxis.type);
4055
4053
  AxisCls.builtInTheme = Object.assign(Object.assign({}, AxisCls.builtInTheme), { axisZ: Object.assign(Object.assign({}, AxisCls.builtInTheme.axisX), axisZ) });
4056
- vutils.mixin(AxisCls, Axis3dMixin);
4054
+ vchart.mixin(AxisCls, Axis3dMixin);
4057
4055
  };
4058
4056
 
4059
4057
  const registerAxis3dPlugin = () => {
@@ -4176,15 +4174,15 @@
4176
4174
  if (svgDataSet) {
4177
4175
  return;
4178
4176
  }
4179
- svgDataSet = new vdataset.DataSet();
4180
- vchart.registerDataSetInstanceParser(svgDataSet, 'svg', vdataset.svgParser);
4177
+ svgDataSet = new vchart.DataSet();
4178
+ vchart.registerDataSetInstanceParser(svgDataSet, 'svg', vchart.svgParser);
4181
4179
  }
4182
4180
  function registerSVGSource(key, source) {
4183
4181
  if (svgSourceMap.has(key)) {
4184
4182
  vchart.warn(`svg source key of '${key}' already exists, will be overwritten.`);
4185
4183
  }
4186
4184
  initSVGDataSet();
4187
- const dataView = new vdataset.DataView(svgDataSet);
4185
+ const dataView = new vchart.DataView(svgDataSet);
4188
4186
  dataView.parse(source, {
4189
4187
  type: 'svg'
4190
4188
  });
@@ -4212,7 +4210,7 @@
4212
4210
  const svg = chartSpec.svg;
4213
4211
  const elements = (_c = (_b = svgSourceMap.get(svg)) === null || _b === void 0 ? void 0 : _b.latestData) === null || _c === void 0 ? void 0 : _c.elements;
4214
4212
  if (elements && elements.length) {
4215
- const names = elements.map(e => e.name).filter(n => vutils.isValid(n));
4213
+ const names = elements.map(e => e.name).filter(n => vchart.isValid(n));
4216
4214
  names.forEach(name => {
4217
4215
  if (chartSpec[name]) {
4218
4216
  spec[name] = chartSpec[name];
@@ -4273,7 +4271,7 @@
4273
4271
  return e.node.name;
4274
4272
  }
4275
4273
  start(itemKey) {
4276
- if (vutils.isNil(itemKey)) {
4274
+ if (vchart.isNil(itemKey)) {
4277
4275
  return;
4278
4276
  }
4279
4277
  const { interaction, highlightState, blurState } = this.options;
@@ -4328,7 +4326,7 @@
4328
4326
 
4329
4327
  function isValidStrokeOrFill(attr) {
4330
4328
  var _a;
4331
- return vutils.isValid(attr) && attr !== 'none' && !((_a = attr.includes) === null || _a === void 0 ? void 0 : _a.call(attr, 'url'));
4329
+ return vchart.isValid(attr) && attr !== 'none' && !((_a = attr.includes) === null || _a === void 0 ? void 0 : _a.call(attr, 'url'));
4332
4330
  }
4333
4331
  const getLineWidth = (attributes) => {
4334
4332
  const strokeWidth = parseFloat(attributes.strokeWidth);
@@ -4409,10 +4407,10 @@
4409
4407
  visible: el.attributes.visibility !== 'hidden' && el.attributes.visibility !== 'collapse'
4410
4408
  };
4411
4409
  if (el.graphicType === 'text') {
4412
- vutils.merge(finalAttributes, el._inheritStyle, (_a = el.parent) === null || _a === void 0 ? void 0 : _a._textGroupStyle, el.attributes);
4410
+ vchart.merge(finalAttributes, el._inheritStyle, (_a = el.parent) === null || _a === void 0 ? void 0 : _a._textGroupStyle, el.attributes);
4413
4411
  }
4414
4412
  else if (el.graphicType !== 'group') {
4415
- vutils.merge(finalAttributes, el._inheritStyle, el.attributes);
4413
+ vchart.merge(finalAttributes, el._inheritStyle, el.attributes);
4416
4414
  }
4417
4415
  if (graphicAttributeTransform[type]) {
4418
4416
  el._finalAttributes = graphicAttributeTransform[type](finalAttributes, el.value);
@@ -4513,7 +4511,7 @@
4513
4511
  }
4514
4512
  _defaultSelectConfig(finalSelectSpec) {
4515
4513
  const isMultiple = finalSelectSpec.mode === 'multiple';
4516
- const triggerOff = vutils.isValid(finalSelectSpec.triggerOff)
4514
+ const triggerOff = vchart.isValid(finalSelectSpec.triggerOff)
4517
4515
  ? finalSelectSpec.triggerOff
4518
4516
  : isMultiple
4519
4517
  ? ['empty', 'self']
@@ -4611,7 +4609,7 @@
4611
4609
  if (viewBoxRect) {
4612
4610
  this._pictogramMark.setMarkConfig({
4613
4611
  clip: true,
4614
- clipPath: [vrenderCore.createRect(Object.assign(Object.assign({}, viewBoxRect), { fill: true }))]
4612
+ clipPath: [vchart.createRect(Object.assign(Object.assign({}, viewBoxRect), { fill: true }))]
4615
4613
  });
4616
4614
  }
4617
4615
  }
@@ -4622,10 +4620,10 @@
4622
4620
  if (mark) {
4623
4621
  this.setMarkStyle(mark, { keepStrokeScale: true }, 'normal', vchart.AttributeLevel.Built_In);
4624
4622
  if (valid) {
4625
- this.initMarkStyleWithSpec(mark, vutils.merge({}, this._spec.pictogram, this._spec[mark.name]));
4623
+ this.initMarkStyleWithSpec(mark, vchart.merge({}, this._spec.pictogram, this._spec[mark.name]));
4626
4624
  this.setMarkStyle(mark, attributes, 'normal', vchart.AttributeLevel.Series);
4627
4625
  mark.setPostProcess('fill', (result, datum) => {
4628
- return vutils.isValid(result) ? result : this._spec.defaultFillColor;
4626
+ return vchart.isValid(result) ? result : this._spec.defaultFillColor;
4629
4627
  });
4630
4628
  }
4631
4629
  else {
@@ -4659,7 +4657,7 @@
4659
4657
  if (!mark || mark.length === 0) {
4660
4658
  return null;
4661
4659
  }
4662
- let bounds = new vutils.Bounds();
4660
+ let bounds = new vchart.Bounds();
4663
4661
  if (global) {
4664
4662
  mark.forEach(m => {
4665
4663
  bounds = bounds.union(m.getGraphics()[0].globalAABBBounds);
@@ -4705,7 +4703,7 @@
4705
4703
  if (!parsedSvg) {
4706
4704
  (_a = this._option) === null || _a === void 0 ? void 0 : _a.onError('no valid svg found!');
4707
4705
  }
4708
- const svgData = new vdataset.DataView(this._dataSet, { name: `pictogram_${this.id}_data` });
4706
+ const svgData = new vchart.DataView(this._dataSet, { name: `pictogram_${this.id}_data` });
4709
4707
  vchart.registerDataSetInstanceTransform(this._dataSet, 'pictogram', pictogram);
4710
4708
  vchart.registerDataSetInstanceTransform(this._dataSet, 'lookup', vchart.lookup);
4711
4709
  svgData
@@ -4784,7 +4782,7 @@
4784
4782
  if (root) {
4785
4783
  if (!root.attribute.postMatrix) {
4786
4784
  root.setAttributes({
4787
- postMatrix: new vutils.Matrix()
4785
+ postMatrix: new vchart.Matrix()
4788
4786
  });
4789
4787
  }
4790
4788
  root.scale(scale, scale, scaleCenter);
@@ -4799,7 +4797,7 @@
4799
4797
  if (root) {
4800
4798
  if (!root.attribute.postMatrix) {
4801
4799
  root.setAttributes({
4802
- postMatrix: new vutils.Matrix()
4800
+ postMatrix: new vchart.Matrix()
4803
4801
  });
4804
4802
  }
4805
4803
  root.translate(delta[0], delta[1]);
@@ -4895,7 +4893,7 @@
4895
4893
  })(ImageCloudMarkNameEnum || (ImageCloudMarkNameEnum = {}));
4896
4894
  const imageCloudSeriesMark = Object.assign(Object.assign({}, vchart.baseSeriesMark), { ["image"]: { name: "image", type: "image" }, ["imageMask"]: { name: "imageMask", type: "rect" } });
4897
4895
 
4898
- class AxialRotateAnimation extends vrenderAnimate.ACustomAnimate {
4896
+ class AxialRotateAnimation extends vchart.ACustomAnimate {
4899
4897
  constructor(from, to, duration, easing, params) {
4900
4898
  var _a;
4901
4899
  super(from, to, duration, easing, params);
@@ -4903,7 +4901,7 @@
4903
4901
  }
4904
4902
  onBind() {
4905
4903
  this._scaleX = this.target.attribute.scaleX;
4906
- if (!vutils.isValidNumber(this._rotations)) {
4904
+ if (!vchart.isValidNumber(this._rotations)) {
4907
4905
  this.valid = false;
4908
4906
  }
4909
4907
  }
@@ -5019,7 +5017,7 @@
5019
5017
  this.type = IMAGE_CLOUD_SERIES_TYPE;
5020
5018
  }
5021
5019
  setValueField(field) {
5022
- if (vutils.isValid(field)) {
5020
+ if (vchart.isValid(field)) {
5023
5021
  this._valueField = field;
5024
5022
  }
5025
5023
  }
@@ -5128,7 +5126,7 @@
5128
5126
  maskConfig: this._spec.imageMask,
5129
5127
  layoutConfig: this._spec.layoutConfig,
5130
5128
  createCanvas: vchart.vglobal.createCanvas.bind(vchart.vglobal),
5131
- createImage: vrenderCore.createImage,
5129
+ createImage: vchart.createImage,
5132
5130
  onUpdateMaskCanvas: ((inputImage, maskImage) => {
5133
5131
  var _a;
5134
5132
  if (inputImage && this._maskMark) {
@@ -5226,7 +5224,7 @@
5226
5224
  registerImageCloudAnimation();
5227
5225
  vchart.Factory.registerSeries(ImageCloudSeries.type, ImageCloudSeries);
5228
5226
  vchart.Factory.registerGrammarTransform('imagecloud', {
5229
- transform: vlayouts.imagecloudTransform
5227
+ transform: vchart.imagecloudTransform
5230
5228
  });
5231
5229
  };
5232
5230
 
@@ -5274,7 +5272,7 @@
5274
5272
  const EPS = 1e-6;
5275
5273
  if (prevData.length) {
5276
5274
  prevData.forEach(prevEntry => {
5277
- if (vutils.isNumberClose(prevEntry.start[equalDim], start[equalDim])) {
5275
+ if (vchart.isNumberClose(prevEntry.start[equalDim], start[equalDim])) {
5278
5276
  const minDim = Math.min(start[diffDim], end[diffDim]);
5279
5277
  const maxDim = Math.max(start[diffDim], end[diffDim]);
5280
5278
  const prevMinDim = Math.min(prevEntry.start[diffDim], prevEntry.end[diffDim]);
@@ -5293,7 +5291,7 @@
5293
5291
  prevData.push(newEntry);
5294
5292
  }
5295
5293
  };
5296
- class SeriesBreakComponent extends vrenderComponents.AbstractComponent {
5294
+ class SeriesBreakComponent extends vchart.AbstractComponent {
5297
5295
  constructor() {
5298
5296
  super(...arguments);
5299
5297
  this.name = SERIES_BREAK;
@@ -5301,7 +5299,7 @@
5301
5299
  render() {
5302
5300
  this.removeAllChild();
5303
5301
  const { data = [] } = this.attribute;
5304
- if (vutils.isEmpty(data)) {
5302
+ if (vchart.isEmpty(data)) {
5305
5303
  return;
5306
5304
  }
5307
5305
  const verticalData = [];
@@ -5314,7 +5312,7 @@
5314
5312
  [...verticalData, ...horizontalData].forEach((breakData, id) => {
5315
5313
  var _a;
5316
5314
  const { start, end, size = 4, gap = 5, style = {} } = breakData, rest = __rest(breakData, ["start", "end", "size", "gap", "style"]);
5317
- const breakGroup = vrenderCore.createGroup({});
5315
+ const breakGroup = vchart.createGroup({});
5318
5316
  const isVertical = start.x === end.x;
5319
5317
  let startPathStart;
5320
5318
  let startPathEnd;
@@ -5359,9 +5357,9 @@
5359
5357
  const startPath = generateZigzagPath(startPathStart, startPathEnd, size, isVertical ? 75 : 15, isVertical);
5360
5358
  const centerPath = generateZigzagPath(start, end, size, isVertical ? 75 : 15, isVertical);
5361
5359
  const endPath = generateZigzagPath(endPathStart, endPathEnd, size, isVertical ? 75 : 15, isVertical);
5362
- breakGroup.add(vrenderCore.createPath(Object.assign(Object.assign({ path: startPath, stroke: '#000', lineWidth: 1 }, style), { pickable: false, zIndex: 1 })));
5363
- breakGroup.add(vrenderCore.createPath(Object.assign(Object.assign({ path: endPath, stroke: '#000', lineWidth: 1 }, style), { pickable: false, zIndex: 1 })));
5364
- breakGroup.add(vrenderCore.createPath({
5360
+ breakGroup.add(vchart.createPath(Object.assign(Object.assign({ path: startPath, stroke: '#000', lineWidth: 1 }, style), { pickable: false, zIndex: 1 })));
5361
+ breakGroup.add(vchart.createPath(Object.assign(Object.assign({ path: endPath, stroke: '#000', lineWidth: 1 }, style), { pickable: false, zIndex: 1 })));
5362
+ breakGroup.add(vchart.createPath({
5365
5363
  path: centerPath,
5366
5364
  stroke: '#fff',
5367
5365
  lineWidth: gap,
@@ -5370,7 +5368,7 @@
5370
5368
  }));
5371
5369
  breakGroup.name = 'series-break';
5372
5370
  breakGroup.data = rest;
5373
- if (vutils.isValid(rest.axisId)) {
5371
+ if (vchart.isValid(rest.axisId)) {
5374
5372
  breakGroup.id = `${(_a = rest.axisId) !== null && _a !== void 0 ? _a : ''}_${id}`;
5375
5373
  }
5376
5374
  this.add(breakGroup);
@@ -5418,16 +5416,16 @@
5418
5416
  style: {
5419
5417
  data: (datum, ctx) => {
5420
5418
  const seriesBreakData = [];
5421
- const vchart = ctx.vchart;
5422
- const chart = vchart.getChart();
5419
+ const vchart$1 = ctx.vchart;
5420
+ const chart = vchart$1.getChart();
5423
5421
  const series = chart.getAllSeries()[0];
5424
5422
  const isHorizontal = series.direction === 'horizontal';
5425
5423
  axesSpec.forEach((spec, index) => {
5426
5424
  var _a, _b;
5427
5425
  const axisId = spec.id;
5428
- const axisModel = vutils.isValid(axisId)
5426
+ const axisModel = vchart.isValid(axisId)
5429
5427
  ? chart.getComponentByUserId(axisId)
5430
- : axesIndex && vutils.isValid(axesIndex[index])
5428
+ : axesIndex && vchart.isValid(axesIndex[index])
5431
5429
  ? chart.getComponentByIndex('axes', axesIndex[index])
5432
5430
  : (_a = chart.getComponentsByKey('axes').filter((axis) => {
5433
5431
  const axisInnerSpec = axis.getSpec();
@@ -5438,7 +5436,7 @@
5438
5436
  }
5439
5437
  const parsedAxisId = axisId !== null && axisId !== void 0 ? axisId : `${axisModel.type}-${axisModel.id}`;
5440
5438
  const regionBounds = getAllRegionBounds(axisModel.getRegions());
5441
- vutils.array((_b = axisModel._break) === null || _b === void 0 ? void 0 : _b.breaks).forEach((breakConfig) => {
5439
+ vchart.array((_b = axisModel._break) === null || _b === void 0 ? void 0 : _b.breaks).forEach((breakConfig) => {
5442
5440
  const { range, breakSymbol, gap = 5 } = breakConfig;
5443
5441
  const pos1 = axisModel.valueToPosition(range[0]);
5444
5442
  const pos2 = axisModel.valueToPosition(range[1]);
@@ -5620,9 +5618,9 @@
5620
5618
  function getIntersectionsFromLineAndPolyline(line, points) {
5621
5619
  const intersections = [];
5622
5620
  for (let index = 1; index < points.length; index++) {
5623
- const intersection = vutils.getIntersectPoint([line.start.x, line.start.y], [line.end.x, line.end.y], [points[index].x, points[index].y], [points[index - 1].x, points[index - 1].y]);
5621
+ const intersection = vchart.getIntersectPoint([line.start.x, line.start.y], [line.end.x, line.end.y], [points[index].x, points[index].y], [points[index - 1].x, points[index - 1].y]);
5624
5622
  if (intersection &&
5625
- !intersections.find(point => isNumberEqual(vutils.PointService.distancePP({ x: point[0], y: point[1] }, { x: intersection[0], y: intersection[1] }), 0))) {
5623
+ !intersections.find(point => isNumberEqual(vchart.PointService.distancePP({ x: point[0], y: point[1] }, { x: intersection[0], y: intersection[1] }), 0))) {
5626
5624
  intersections.push(intersection);
5627
5625
  }
5628
5626
  }
@@ -5699,7 +5697,7 @@
5699
5697
  if ((_a = rawSpec.axes) === null || _a === void 0 ? void 0 : _a.length) {
5700
5698
  const breakedAxes = rawSpec.axes.filter((axis) => axis.breaks && axis.breaks.length && axis.visible !== false);
5701
5699
  if (breakedAxes.length) {
5702
- rawSpec.customMark = vutils.array(rawSpec.customMark).filter((obj) => obj.componentType !== SERIES_BREAK);
5700
+ rawSpec.customMark = vchart.array(rawSpec.customMark).filter((obj) => obj.componentType !== SERIES_BREAK);
5703
5701
  rawSpec.customMark.push(getSeriesBreakConfig(breakedAxes, breakedAxes.map((axisSpec) => {
5704
5702
  return rawSpec.axes.indexOf(axisSpec);
5705
5703
  })));
@@ -5711,14 +5709,14 @@
5711
5709
 
5712
5710
  const BAR_LINK = 'barLink';
5713
5711
 
5714
- class BarLinkComponent extends vrenderComponents.AbstractComponent {
5712
+ class BarLinkComponent extends vchart.AbstractComponent {
5715
5713
  constructor() {
5716
5714
  super(...arguments);
5717
5715
  this.name = BAR_LINK;
5718
5716
  }
5719
5717
  render() {
5720
5718
  const { data, linkStyle, areaStyle, styleMap, label, linkType = 'total' } = this.attribute;
5721
- if (vutils.isEmpty(data)) {
5719
+ if (vchart.isEmpty(data)) {
5722
5720
  return;
5723
5721
  }
5724
5722
  this.removeAllChild();
@@ -5726,7 +5724,7 @@
5726
5724
  var _a, _b, _c, _d, _e;
5727
5725
  const { linePoints, areaPoints, id = index, color, data: curData } = datum;
5728
5726
  if (areaPoints && ((_a = styleMap === null || styleMap === void 0 ? void 0 : styleMap[`area-${id}`]) === null || _a === void 0 ? void 0 : _a.visible) !== false) {
5729
- const area = vrenderCore.createArea(Object.assign(Object.assign({ points: areaPoints, fillOpacity: 0.3, fill: color, zIndex: 0 }, areaStyle), styleMap === null || styleMap === void 0 ? void 0 : styleMap[`area-${id}`]));
5727
+ const area = vchart.createArea(Object.assign(Object.assign({ points: areaPoints, fillOpacity: 0.3, fill: color, zIndex: 0 }, areaStyle), styleMap === null || styleMap === void 0 ? void 0 : styleMap[`area-${id}`]));
5730
5728
  area.name = 'bar-link-area';
5731
5729
  area.id = `area-${id}`;
5732
5730
  this.add(area);
@@ -5736,8 +5734,8 @@
5736
5734
  ((_c = linkStyle === null || linkStyle === void 0 ? void 0 : linkStyle.lineStyle) === null || _c === void 0 ? void 0 : _c.lineWidth) !== 0 &&
5737
5735
  ((_d = styleMap === null || styleMap === void 0 ? void 0 : styleMap[`line-${id}`]) === null || _d === void 0 ? void 0 : _d.lineWidth) !== 0) {
5738
5736
  const { startSymbol = {}, endSymbol = {}, lineStyle } = linkStyle || {};
5739
- const startSymbolAttrs = vutils.cloneDeep(startSymbol);
5740
- const endSymbolAttrs = vutils.cloneDeep(endSymbol);
5737
+ const startSymbolAttrs = vchart.cloneDeep(startSymbol);
5738
+ const endSymbolAttrs = vchart.cloneDeep(endSymbol);
5741
5739
  if ((styleMap === null || styleMap === void 0 ? void 0 : styleMap[`line-${id}`]) && styleMap[`line-${id}`].stroke) {
5742
5740
  startSymbolAttrs.style = Object.assign(Object.assign({}, startSymbolAttrs.style), { color: styleMap[`line-${id}`].stroke });
5743
5741
  endSymbolAttrs.style = Object.assign(Object.assign({}, endSymbolAttrs.style), { color: styleMap[`line-${id}`].stroke });
@@ -5748,7 +5746,7 @@
5748
5746
  if (!endSymbolAttrs.symbolType && !endSymbolAttrs.originSymbolType) {
5749
5747
  endSymbolAttrs.originSymbolType = 'solidArrow';
5750
5748
  }
5751
- const line = new vrenderComponents.Segment({
5749
+ const line = new vchart.Segment({
5752
5750
  points: linePoints,
5753
5751
  startSymbol: Object.assign({ size: 8 }, startSymbolAttrs),
5754
5752
  endSymbol: Object.assign({ size: 8 }, endSymbolAttrs),
@@ -5772,7 +5770,7 @@
5772
5770
  }
5773
5771
  const value = endValue - startValue;
5774
5772
  const percentage = ((endValue - startValue) / startValue) * 100;
5775
- const text = vrenderCore.createText(Object.assign(Object.assign({ x: (linePoints[0].x + linePoints[1].x) * 0.5, y: (linePoints[0].y + linePoints[1].y) * 0.5, text: formatMethod ? formatMethod(value, percentage, curData) : `${value} ${percentage}`, fontSize: 14, fill: '#000', stroke: '#fff', lineWidth: 1, textAlign: 'center', textBaseline: 'middle', background: '#fff', zIndex: 2 }, style), styleMap === null || styleMap === void 0 ? void 0 : styleMap[`label-${id}`]));
5773
+ const text = vchart.createText(Object.assign(Object.assign({ x: (linePoints[0].x + linePoints[1].x) * 0.5, y: (linePoints[0].y + linePoints[1].y) * 0.5, text: formatMethod ? formatMethod(value, percentage, curData) : `${value} ${percentage}`, fontSize: 14, fill: '#000', stroke: '#fff', lineWidth: 1, textAlign: 'center', textBaseline: 'middle', background: '#fff', zIndex: 2 }, style), styleMap === null || styleMap === void 0 ? void 0 : styleMap[`label-${id}`]));
5776
5774
  text.name = 'bar-link-label';
5777
5775
  text.id = `label-${id}`;
5778
5776
  this.add(text);
@@ -6041,7 +6039,7 @@
6041
6039
  };
6042
6040
  }
6043
6041
  function appendBarLinkConfig(rawSpec, barLinkSpec) {
6044
- rawSpec.customMark = vutils.array(rawSpec.customMark).filter((obj) => obj.componentType !== BAR_LINK);
6042
+ rawSpec.customMark = vchart.array(rawSpec.customMark).filter((obj) => obj.componentType !== BAR_LINK);
6045
6043
  rawSpec.customMark.push(getBarLinkConfig(barLinkSpec));
6046
6044
  }
6047
6045
 
@@ -6133,8 +6131,8 @@
6133
6131
  },
6134
6132
  data: (datum, ctx) => {
6135
6133
  var _a;
6136
- const vchart = ctx.vchart;
6137
- const chart = vchart.getChart();
6134
+ const vchart$1 = ctx.vchart;
6135
+ const chart = vchart$1.getChart();
6138
6136
  const series = chart.getAllSeries()[0];
6139
6137
  const isTransposed = series.direction === 'horizontal';
6140
6138
  const bandAxisHelper = (isTransposed ? series.getYAxisHelper() : series.getXAxisHelper());
@@ -6152,7 +6150,7 @@
6152
6150
  if (seriesTypes.length === 1 && ['bar', 'area', 'line', 'waterfall'].includes(seriesTypes[0])) {
6153
6151
  const positions = position === 'both-ends' ? ['start', 'end'] : [position];
6154
6152
  positions.forEach(pos => {
6155
- const targetValue = pos === 'end' ? vutils.last(bandAxisScale.domain()) : bandAxisScale.domain()[0];
6153
+ const targetValue = pos === 'end' ? vchart.last(bandAxisScale.domain()) : bandAxisScale.domain()[0];
6156
6154
  const region = series.getRegion();
6157
6155
  const { x: regionStartX, y: regionStartY } = region.getLayoutStartPoint();
6158
6156
  let i = 0;
@@ -6239,9 +6237,9 @@
6239
6237
  }
6240
6238
  function appendSeriesLabelConfig(rawSpec, seriesLabelSpec) {
6241
6239
  var _a, _b, _c;
6242
- rawSpec.customMark = vutils.array(rawSpec.customMark).filter((obj) => obj.componentType !== SERIES_LABEL);
6240
+ rawSpec.customMark = vchart.array(rawSpec.customMark).filter((obj) => obj.componentType !== SERIES_LABEL);
6243
6241
  if (!seriesLabelSpec) {
6244
- seriesLabelSpec = (_c = (_a = vutils.get(rawSpec, SERIES_LABEL)) !== null && _a !== void 0 ? _a : vutils.get((_b = rawSpec.series) === null || _b === void 0 ? void 0 : _b[0], SERIES_LABEL)) !== null && _c !== void 0 ? _c : {};
6242
+ seriesLabelSpec = (_c = (_a = vchart.get(rawSpec, SERIES_LABEL)) !== null && _a !== void 0 ? _a : vchart.get((_b = rawSpec.series) === null || _b === void 0 ? void 0 : _b[0], SERIES_LABEL)) !== null && _c !== void 0 ? _c : {};
6245
6243
  }
6246
6244
  if (seriesLabelSpec.visible) {
6247
6245
  const { position = 'end' } = seriesLabelSpec, rest = __rest(seriesLabelSpec, ["position"]);
@@ -6249,7 +6247,7 @@
6249
6247
  }
6250
6248
  }
6251
6249
 
6252
- class SeriesLabelComponent extends vrenderComponents.AbstractComponent {
6250
+ class SeriesLabelComponent extends vchart.AbstractComponent {
6253
6251
  constructor() {
6254
6252
  super(...arguments);
6255
6253
  this.name = SERIES_LABEL;
@@ -6258,7 +6256,7 @@
6258
6256
  var _a, _b, _c, _d;
6259
6257
  this.removeAllChild();
6260
6258
  const { data, layout, label, line = {} } = this.attribute;
6261
- if (vutils.isEmpty(data)) {
6259
+ if (vchart.isEmpty(data)) {
6262
6260
  return;
6263
6261
  }
6264
6262
  const labelStyleMap = (_a = label === null || label === void 0 ? void 0 : label.styleMap) !== null && _a !== void 0 ? _a : {};
@@ -6270,7 +6268,7 @@
6270
6268
  var _a, _b, _c, _d, _e, _f, _g, _h;
6271
6269
  const { label: text, color, textAlign, textBaseline, id } = datum;
6272
6270
  const formatMethod = (_b = (_a = labelStyleMap[id]) === null || _a === void 0 ? void 0 : _a.formatMethod) !== null && _b !== void 0 ? _b : (_c = this.attribute.label) === null || _c === void 0 ? void 0 : _c.formatMethod;
6273
- const textGraphic = vrenderCore.createText(Object.assign(Object.assign(Object.assign(Object.assign({ text: formatMethod
6271
+ const textGraphic = vchart.createText(Object.assign(Object.assign(Object.assign(Object.assign({ text: formatMethod
6274
6272
  ? formatMethod(text, datum.datum, {
6275
6273
  series: datum.series
6276
6274
  })
@@ -6307,7 +6305,7 @@
6307
6305
  y: point.y
6308
6306
  };
6309
6307
  const formatMethod = (_b = (_a = labelStyleMap[id]) === null || _a === void 0 ? void 0 : _a.formatMethod) !== null && _b !== void 0 ? _b : label === null || label === void 0 ? void 0 : label.formatMethod;
6310
- const textGraphic = vrenderCore.createText(Object.assign(Object.assign(Object.assign(Object.assign({ text: formatMethod
6308
+ const textGraphic = vchart.createText(Object.assign(Object.assign(Object.assign(Object.assign({ text: formatMethod
6311
6309
  ? formatMethod(text, datum.datum, {
6312
6310
  series: datum.series
6313
6311
  })
@@ -6345,13 +6343,13 @@
6345
6343
  };
6346
6344
  if (line.autoVisible !== false) {
6347
6345
  if ((layout === 'vertical' && start.y !== end.y) || (layout === 'horizontal' && start.x !== end.x)) {
6348
- const lineShape = vrenderCore.createLine(Object.assign({ points: [start, end], lineWidth: 1, stroke: color }, line.style));
6346
+ const lineShape = vchart.createLine(Object.assign({ points: [start, end], lineWidth: 1, stroke: color }, line.style));
6349
6347
  lineShape.name = 'series-label-line';
6350
6348
  this.add(lineShape);
6351
6349
  }
6352
6350
  }
6353
6351
  else {
6354
- const lineShape = vrenderCore.createLine(Object.assign({ points: [start, end], lineWidth: 1, stroke: color }, line.style));
6352
+ const lineShape = vchart.createLine(Object.assign({ points: [start, end], lineWidth: 1, stroke: color }, line.style));
6355
6353
  lineShape.name = 'series-label-line';
6356
6354
  this.add(lineShape);
6357
6355
  }
@@ -6431,7 +6429,7 @@
6431
6429
  }
6432
6430
  function layoutOuter(pairs, features, dataToPosition) {
6433
6431
  const _points = pairs.map(rect => rect.pointCoord);
6434
- const { x1, x2, y1, y2 } = vutils.getAABBFromPoints(_points);
6432
+ const { x1, x2, y1, y2 } = vchart.getAABBFromPoints(_points);
6435
6433
  const geoCenter = [(x1 + x2) / 2, (y1 + y2) / 2];
6436
6434
  const centerPosition = dataToPosition(geoCenter);
6437
6435
  if (!centerPosition) {
@@ -6481,7 +6479,7 @@
6481
6479
  const count = 5621 / distance;
6482
6480
  let curOrigin = origin;
6483
6481
  for (let i = 1; i <= count; i++) {
6484
- const dest = vutils.destination(curOrigin, distance, bearing);
6482
+ const dest = vchart.destination(curOrigin, distance, bearing);
6485
6483
  if (!isPointWithinFeatures(features, dest)) {
6486
6484
  return [dest.x, dest.y];
6487
6485
  }
@@ -6491,7 +6489,7 @@
6491
6489
  }
6492
6490
  function isPointWithinFeatures(features, p) {
6493
6491
  for (let i = 0; i < features.length; i++) {
6494
- const inside = vutils.isPointInPolygon(p, features[i]);
6492
+ const inside = vchart.isPointInPolygon(p, features[i]);
6495
6493
  if (inside) {
6496
6494
  return true;
6497
6495
  }
@@ -6583,7 +6581,7 @@
6583
6581
  }
6584
6582
  static getSpecInfo(chartSpec) {
6585
6583
  return vchart.getSpecInfo(chartSpec, this.specKey, this.type, (s) => {
6586
- return s.visible && vutils.isValid(s.seriesId);
6584
+ return s.visible && vchart.isValid(s.seriesId);
6587
6585
  });
6588
6586
  }
6589
6587
  setAttrFromSpec() {
@@ -6616,7 +6614,7 @@
6616
6614
  }
6617
6615
  const seriesData = series.getViewData();
6618
6616
  if (seriesData) {
6619
- const data = new vdataset.DataView(this._option.dataSet, { name: `${this.name}_data` });
6617
+ const data = new vchart.DataView(this._option.dataSet, { name: `${this.name}_data` });
6620
6618
  data.parse([seriesData], {
6621
6619
  type: 'dataview'
6622
6620
  });
@@ -6710,7 +6708,7 @@
6710
6708
  if (!this._markerComponents) {
6711
6709
  this._markerComponents = (_a = this._data) === null || _a === void 0 ? void 0 : _a.getLatestData().map((data, index) => {
6712
6710
  var _a;
6713
- const cmp = new vrenderComponents.MarkPoint({
6711
+ const cmp = new vchart.MarkPoint({
6714
6712
  position: undefined,
6715
6713
  animation: false
6716
6714
  });
@@ -6747,17 +6745,17 @@
6747
6745
  paddingHeight += ((padding === null || padding === void 0 ? void 0 : padding.top) || 0) + ((padding === null || padding === void 0 ? void 0 : padding.bottom) || 0);
6748
6746
  const contentMarks = {};
6749
6747
  const positionAttr = this.dataToPosition(data);
6750
- const container = vrenderCore.graphicCreator.group({});
6748
+ const container = vchart.graphicCreator.group({});
6751
6749
  container.name = `${this.name}_marker_itemContainer_${index}`;
6752
6750
  contentMarks.container = container;
6753
6751
  if ((_b = this._spec.background) === null || _b === void 0 ? void 0 : _b.visible) {
6754
- const labelBackground = vrenderCore.graphicCreator.rect(vchart.transformToGraphic(Object.assign({}, this._spec.background.style)));
6752
+ const labelBackground = vchart.graphicCreator.rect(vchart.transformToGraphic(Object.assign({}, this._spec.background.style)));
6755
6753
  labelBackground.setAttributes(positionAttr);
6756
6754
  contentMarks.labelBackground = labelBackground;
6757
6755
  container.appendChild(labelBackground);
6758
6756
  }
6759
6757
  if ((_c = this._spec.icon) === null || _c === void 0 ? void 0 : _c.visible) {
6760
- const icon = vrenderCore.graphicCreator.symbol(vchart.transformToGraphic(Object.assign({}, this._spec.icon.style)));
6758
+ const icon = vchart.graphicCreator.symbol(vchart.transformToGraphic(Object.assign({}, this._spec.icon.style)));
6761
6759
  icon.setAttributes(positionAttr);
6762
6760
  icon.setAttribute('symbolType', (_e = (_d = this._spec.icon.style) === null || _d === void 0 ? void 0 : _d.symbolType) !== null && _e !== void 0 ? _e : (_f = this._spec.icon.style) === null || _f === void 0 ? void 0 : _f.shape);
6763
6761
  const iconBound = icon.AABBBounds;
@@ -6770,7 +6768,7 @@
6770
6768
  contentItemCount++;
6771
6769
  }
6772
6770
  if ((_j = this._spec.nameLabel) === null || _j === void 0 ? void 0 : _j.visible) {
6773
- const nameLabel = vrenderCore.graphicCreator.text(vchart.transformToGraphic(Object.assign({}, this._spec.nameLabel.style)));
6771
+ const nameLabel = vchart.graphicCreator.text(vchart.transformToGraphic(Object.assign({}, this._spec.nameLabel.style)));
6774
6772
  nameLabel.setAttributes(positionAttr);
6775
6773
  nameLabel.setAttribute('text', data[this.nameField]);
6776
6774
  const nameLabelBound = nameLabel.AABBBounds;
@@ -6782,8 +6780,8 @@
6782
6780
  contentWidth += nameLabelWidth;
6783
6781
  contentItemCount++;
6784
6782
  }
6785
- if (((_m = this._spec.valueLabel) === null || _m === void 0 ? void 0 : _m.visible) && vutils.isValid(data[this.valueField])) {
6786
- const valueLabel = vrenderCore.graphicCreator.text(vchart.transformToGraphic(Object.assign({}, this._spec.valueLabel.style)));
6783
+ if (((_m = this._spec.valueLabel) === null || _m === void 0 ? void 0 : _m.visible) && vchart.isValid(data[this.valueField])) {
6784
+ const valueLabel = vchart.graphicCreator.text(vchart.transformToGraphic(Object.assign({}, this._spec.valueLabel.style)));
6787
6785
  valueLabel.setAttributes(positionAttr);
6788
6786
  valueLabel.setAttribute('text', data[this.valueField]);
6789
6787
  const valueLabelBound = valueLabel.AABBBounds;
@@ -6937,7 +6935,7 @@
6937
6935
  };
6938
6936
 
6939
6937
  const REGRESSION_LINE = 'regressionLine';
6940
- class RegressionLine extends vrenderComponents.AbstractComponent {
6938
+ class RegressionLine extends vchart.AbstractComponent {
6941
6939
  constructor() {
6942
6940
  super(...arguments);
6943
6941
  this.name = REGRESSION_LINE;
@@ -6945,24 +6943,24 @@
6945
6943
  render() {
6946
6944
  this.removeAllChild();
6947
6945
  const { data, line = {}, label, name = 'regression-line', confidenceInterval } = this.attribute;
6948
- if (vutils.isEmpty(data)) {
6946
+ if (vchart.isEmpty(data)) {
6949
6947
  return;
6950
6948
  }
6951
6949
  data.forEach(d => {
6952
6950
  const { color } = d;
6953
6951
  if (d.area && (confidenceInterval === null || confidenceInterval === void 0 ? void 0 : confidenceInterval.visible) !== false) {
6954
- const areaShape = vrenderCore.createArea(Object.assign(Object.assign({ points: d.area }, (vutils.isValid(color) ? { fill: color, fillOpacity: 0.12 } : null)), confidenceInterval === null || confidenceInterval === void 0 ? void 0 : confidenceInterval.style));
6952
+ const areaShape = vchart.createArea(Object.assign(Object.assign({ points: d.area }, (vchart.isValid(color) ? { fill: color, fillOpacity: 0.12 } : null)), confidenceInterval === null || confidenceInterval === void 0 ? void 0 : confidenceInterval.style));
6955
6953
  areaShape.name = 'scatter-regression-area';
6956
6954
  this.add(areaShape);
6957
6955
  }
6958
6956
  if (d.line && (line === null || line === void 0 ? void 0 : line.visible) !== false) {
6959
- const lineShape = vrenderCore.createLine(Object.assign(Object.assign({ points: d.line, lineWidth: 1 }, (vutils.isValid(color) ? { stroke: color } : null)), line === null || line === void 0 ? void 0 : line.style));
6957
+ const lineShape = vchart.createLine(Object.assign(Object.assign({ points: d.line, lineWidth: 1 }, (vchart.isValid(color) ? { stroke: color } : null)), line === null || line === void 0 ? void 0 : line.style));
6960
6958
  lineShape.name = `${name}-curve`;
6961
6959
  this.add(lineShape);
6962
6960
  }
6963
- const lastPoint = vutils.last(d.line);
6961
+ const lastPoint = vchart.last(d.line);
6964
6962
  if (label && label.visible !== false && label.text && lastPoint) {
6965
- const tag = vrenderCore.createText(Object.assign(Object.assign(Object.assign({}, lastPoint), { text: label.text, textAlign: 'end', textBaseline: 'middle' }), label.style));
6963
+ const tag = vchart.createText(Object.assign(Object.assign(Object.assign({}, lastPoint), { text: label.text, textAlign: 'end', textBaseline: 'middle' }), label.style));
6966
6964
  tag.name = `${name}-label`;
6967
6965
  this.add(tag);
6968
6966
  }
@@ -6976,13 +6974,13 @@
6976
6974
  const getRegressionByType$1 = (type, data, x = d => d.x, y = d => d.y, degree) => {
6977
6975
  switch (type) {
6978
6976
  case 'logisitc':
6979
- return vutils.regressionLogistic(data, x, y);
6977
+ return vchart.regressionLogistic(data, x, y);
6980
6978
  case 'lowess':
6981
- return vutils.regressionLowess(data, x, y);
6979
+ return vchart.regressionLowess(data, x, y);
6982
6980
  case 'polynomial':
6983
- return vutils.regressionPolynomial(data, x, y, { degree });
6981
+ return vchart.regressionPolynomial(data, x, y, { degree });
6984
6982
  default:
6985
- return vutils.regressionLinear(data, x, y);
6983
+ return vchart.regressionLinear(data, x, y);
6986
6984
  }
6987
6985
  };
6988
6986
  function getScatterRegressionLineConfig(type, config) {
@@ -7002,7 +7000,7 @@
7002
7000
  var _a, _b;
7003
7001
  const start = s.getRegion().getLayoutStartPoint();
7004
7002
  const rect = s.getRegion().getLayoutRect();
7005
- const yClamper = vutils.clamper(start.y, start.y + rect.height);
7003
+ const yClamper = vchart.clamper(start.y, start.y + rect.height);
7006
7004
  const colorAttrOptions = s.getColorAttribute();
7007
7005
  const groups = s.getSeriesKeys();
7008
7006
  const data = s.getViewData().latestData;
@@ -7054,9 +7052,9 @@
7054
7052
  var _a, _b;
7055
7053
  if (!spec) {
7056
7054
  spec =
7057
- (_a = vutils.get(chartSpec, REGRESSION_LINE)) !== null && _a !== void 0 ? _a : vutils.get((_b = chartSpec.series) === null || _b === void 0 ? void 0 : _b.find(s => s.type === vchart.SeriesTypeEnum.scatter), REGRESSION_LINE);
7055
+ (_a = vchart.get(chartSpec, REGRESSION_LINE)) !== null && _a !== void 0 ? _a : vchart.get((_b = chartSpec.series) === null || _b === void 0 ? void 0 : _b.find(s => s.type === vchart.SeriesTypeEnum.scatter), REGRESSION_LINE);
7058
7056
  }
7059
- const specs = vutils.array(spec);
7057
+ const specs = vchart.array(spec);
7060
7058
  specs.forEach((s) => {
7061
7059
  if (s.visible !== false) {
7062
7060
  if (!chartSpec.customMark) {
@@ -7087,7 +7085,7 @@
7087
7085
  const region = s.getRegion().getLayoutStartPoint();
7088
7086
  const start = s.getRegion().getLayoutStartPoint();
7089
7087
  const rect = s.getRegion().getLayoutRect();
7090
- const yClamper = vutils.clamper(start.y, start.y + rect.height);
7088
+ const yClamper = vchart.clamper(start.y, start.y + rect.height);
7091
7089
  const data = s.getViewData().latestData;
7092
7090
  const fieldX = (_a = s.fieldX) === null || _a === void 0 ? void 0 : _a[0];
7093
7091
  const fieldY = (_b = s.fieldY) === null || _b === void 0 ? void 0 : _b[0];
@@ -7096,7 +7094,7 @@
7096
7094
  if (isHorizontal || !fieldX || !fieldY || !data || data.length <= 2 || groups.length <= 2) {
7097
7095
  return;
7098
7096
  }
7099
- const { evaluateGrid, confidenceInterval } = vutils.regressionPolynomial(data, (datum) => groups.indexOf(datum === null || datum === void 0 ? void 0 : datum[fieldX]), (datum) => datum === null || datum === void 0 ? void 0 : datum[fieldY], { degree: config.degree });
7097
+ const { evaluateGrid, confidenceInterval } = vchart.regressionPolynomial(data, (datum) => groups.indexOf(datum === null || datum === void 0 ? void 0 : datum[fieldX]), (datum) => datum === null || datum === void 0 ? void 0 : datum[fieldY], { degree: config.degree });
7100
7098
  const N = groups.length;
7101
7099
  const lineData = evaluateGrid(N);
7102
7100
  const confidenceData = confidenceInterval(N);
@@ -7133,9 +7131,9 @@
7133
7131
  var _a, _b;
7134
7132
  if (!spec) {
7135
7133
  spec =
7136
- (_a = vutils.get(chartSpec, REGRESSION_LINE)) !== null && _a !== void 0 ? _a : vutils.get((_b = chartSpec.series) === null || _b === void 0 ? void 0 : _b.find(s => s.type === vchart.SeriesTypeEnum.bar), REGRESSION_LINE);
7134
+ (_a = vchart.get(chartSpec, REGRESSION_LINE)) !== null && _a !== void 0 ? _a : vchart.get((_b = chartSpec.series) === null || _b === void 0 ? void 0 : _b.find(s => s.type === vchart.SeriesTypeEnum.bar), REGRESSION_LINE);
7137
7135
  }
7138
- const specs = vutils.array(spec);
7136
+ const specs = vchart.array(spec);
7139
7137
  specs.forEach((s) => {
7140
7138
  if (s.visible !== false) {
7141
7139
  if (!chartSpec.customMark) {
@@ -7150,9 +7148,9 @@
7150
7148
  const getRegressionByType = (type, data, kdeOptions) => {
7151
7149
  switch (type) {
7152
7150
  case 'kde':
7153
- return vutils.kde(data, kdeOptions);
7151
+ return vchart.kde(data, kdeOptions);
7154
7152
  case 'ecdf':
7155
- return vutils.ecdf(data);
7153
+ return vchart.ecdf(data);
7156
7154
  }
7157
7155
  };
7158
7156
  function getHistogramRegressionLineConfig(type, config) {
@@ -7192,7 +7190,7 @@
7192
7190
  const lineData = res.evaluateGrid(N);
7193
7191
  const yRange = scaleY.range();
7194
7192
  const y0 = yRange[0];
7195
- const y1 = vutils.last(yRange);
7193
+ const y1 = vchart.last(yRange);
7196
7194
  const scaleR = type === 'kde'
7197
7195
  ? (k) => {
7198
7196
  return scaleY.scale(k * data.length * res.bandwidth);
@@ -7223,9 +7221,9 @@
7223
7221
  var _a, _b;
7224
7222
  if (!spec) {
7225
7223
  spec =
7226
- (_a = vutils.get(chartSpec, REGRESSION_LINE)) !== null && _a !== void 0 ? _a : vutils.get((_b = chartSpec.series) === null || _b === void 0 ? void 0 : _b.find(s => s.type === vchart.SeriesTypeEnum.bar), REGRESSION_LINE);
7224
+ (_a = vchart.get(chartSpec, REGRESSION_LINE)) !== null && _a !== void 0 ? _a : vchart.get((_b = chartSpec.series) === null || _b === void 0 ? void 0 : _b.find(s => s.type === vchart.SeriesTypeEnum.bar), REGRESSION_LINE);
7227
7225
  }
7228
- const specs = vutils.array(spec);
7226
+ const specs = vchart.array(spec);
7229
7227
  specs.forEach((s) => {
7230
7228
  if (s.visible !== false) {
7231
7229
  if (!chartSpec.customMark) {