@antv/g2 5.2.9 → 5.2.11

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 (458) hide show
  1. package/dist/g2.lite.min.js +22 -22
  2. package/dist/g2.min.js +22 -22
  3. package/esm/animation/scaleInY.js +1 -1
  4. package/esm/animation/scaleInY.js.map +1 -1
  5. package/esm/animation/waveIn.js +1 -1
  6. package/esm/animation/waveIn.js.map +1 -1
  7. package/esm/api/runtime.js +0 -1
  8. package/esm/api/runtime.js.map +1 -1
  9. package/esm/component/axis.js +2 -2
  10. package/esm/component/axis.js.map +1 -1
  11. package/esm/component/legendCategory.js +1 -1
  12. package/esm/component/legendCategory.js.map +1 -1
  13. package/esm/component/legendContinuous.js +1 -1
  14. package/esm/component/legendContinuous.js.map +1 -1
  15. package/esm/component/slider.js +1 -1
  16. package/esm/component/slider.js.map +1 -1
  17. package/esm/composition/d3Projection.d.ts +1 -1
  18. package/esm/composition/d3Projection.js +1 -1
  19. package/esm/composition/d3Projection.js.map +1 -1
  20. package/esm/composition/facetRect.js +1 -1
  21. package/esm/composition/facetRect.js.map +1 -1
  22. package/esm/composition/geoView.js +1 -1
  23. package/esm/composition/geoView.js.map +1 -1
  24. package/esm/data/cluster.d.ts +1 -1
  25. package/esm/data/cluster.js +1 -1
  26. package/esm/data/cluster.js.map +1 -1
  27. package/esm/data/fetch.js +1 -1
  28. package/esm/data/fetch.js.map +1 -1
  29. package/esm/data/join.js +1 -1
  30. package/esm/data/join.js.map +1 -1
  31. package/esm/data/kde.js +1 -1
  32. package/esm/data/kde.js.map +1 -1
  33. package/esm/data/tree.js +1 -1
  34. package/esm/data/tree.js.map +1 -1
  35. package/esm/data/utils/arc/arc.js +1 -1
  36. package/esm/data/utils/arc/arc.js.map +1 -1
  37. package/esm/data/utils/d3-sankey/align.js +1 -1
  38. package/esm/data/utils/d3-sankey/align.js.map +1 -1
  39. package/esm/data/utils/d3-sankey/sankey.js +1 -1
  40. package/esm/data/utils/d3-sankey/sankey.js.map +1 -1
  41. package/esm/data/wordCloud.js +1 -1
  42. package/esm/data/wordCloud.js.map +1 -1
  43. package/esm/index.d.ts +2 -0
  44. package/esm/interaction/chartIndex.js +1 -1
  45. package/esm/interaction/chartIndex.js.map +1 -1
  46. package/esm/interaction/elementHighlight.js +1 -1
  47. package/esm/interaction/elementHighlight.js.map +1 -1
  48. package/esm/interaction/elementSelect.js +1 -1
  49. package/esm/interaction/elementSelect.js.map +1 -1
  50. package/esm/interaction/legendHighlight.js +1 -1
  51. package/esm/interaction/legendHighlight.js.map +1 -1
  52. package/esm/interaction/tooltip.js +3 -7
  53. package/esm/interaction/tooltip.js.map +1 -1
  54. package/esm/interaction/treemapDrillDown.d.ts +2 -2
  55. package/esm/interaction/treemapDrillDown.js.map +1 -1
  56. package/esm/interaction/utils.js +2 -2
  57. package/esm/interaction/utils.js.map +1 -1
  58. package/esm/label-transform/contrastReverse.js +1 -1
  59. package/esm/label-transform/contrastReverse.js.map +1 -1
  60. package/esm/label-transform/overlapDodgeY.js +1 -1
  61. package/esm/label-transform/overlapDodgeY.js.map +1 -1
  62. package/esm/lib/core.d.ts +1 -0
  63. package/esm/lib/core.js +2 -1
  64. package/esm/lib/core.js.map +1 -1
  65. package/esm/lib/std.d.ts +1 -0
  66. package/esm/mark/area.js +1 -1
  67. package/esm/mark/area.js.map +1 -1
  68. package/esm/mark/boxplot.js +1 -1
  69. package/esm/mark/boxplot.js.map +1 -1
  70. package/esm/mark/forceGraph.js +1 -1
  71. package/esm/mark/forceGraph.js.map +1 -1
  72. package/esm/mark/line.js +1 -1
  73. package/esm/mark/line.js.map +1 -1
  74. package/esm/mark/pack.js +1 -1
  75. package/esm/mark/pack.js.map +1 -1
  76. package/esm/mark/utils.d.ts +1 -1
  77. package/esm/runtime/component.js +2 -2
  78. package/esm/runtime/component.js.map +1 -1
  79. package/esm/runtime/layout.js +1 -1
  80. package/esm/runtime/layout.js.map +1 -1
  81. package/esm/runtime/mark.js +1 -1
  82. package/esm/runtime/mark.js.map +1 -1
  83. package/esm/runtime/plot.js +2 -2
  84. package/esm/runtime/plot.js.map +1 -1
  85. package/esm/runtime/scale.js +2 -2
  86. package/esm/runtime/scale.js.map +1 -1
  87. package/esm/runtime/transform.js +1 -1
  88. package/esm/runtime/transform.js.map +1 -1
  89. package/esm/runtime/types/mark.d.ts +1 -1
  90. package/esm/shape/area/area.js +1 -1
  91. package/esm/shape/area/area.js.map +1 -1
  92. package/esm/shape/area/curve.d.ts +1 -1
  93. package/esm/shape/area/curve.js +1 -1
  94. package/esm/shape/area/curve.js.map +1 -1
  95. package/esm/shape/area/hv.js +1 -1
  96. package/esm/shape/area/hv.js.map +1 -1
  97. package/esm/shape/area/hvh.js +1 -1
  98. package/esm/shape/area/hvh.js.map +1 -1
  99. package/esm/shape/area/smooth.js +1 -1
  100. package/esm/shape/area/smooth.js.map +1 -1
  101. package/esm/shape/area/vh.js +1 -1
  102. package/esm/shape/area/vh.js.map +1 -1
  103. package/esm/shape/box/box.js +1 -1
  104. package/esm/shape/box/box.js.map +1 -1
  105. package/esm/shape/box/violin.js +1 -1
  106. package/esm/shape/box/violin.js.map +1 -1
  107. package/esm/shape/connector/connector.js +1 -1
  108. package/esm/shape/connector/connector.js.map +1 -1
  109. package/esm/shape/density/density.js +1 -1
  110. package/esm/shape/density/density.js.map +1 -1
  111. package/esm/shape/heatmap/heatmap.js +2 -2
  112. package/esm/shape/heatmap/heatmap.js.map +1 -1
  113. package/esm/shape/interval/color.js +1 -1
  114. package/esm/shape/interval/color.js.map +1 -1
  115. package/esm/shape/interval/funnel.js +1 -1
  116. package/esm/shape/interval/funnel.js.map +1 -1
  117. package/esm/shape/label/position/area.js +1 -1
  118. package/esm/shape/label/position/area.js.map +1 -1
  119. package/esm/shape/label/position/utils.js +1 -1
  120. package/esm/shape/label/position/utils.js.map +1 -1
  121. package/esm/shape/line/curve.d.ts +1 -1
  122. package/esm/shape/line/curve.js +1 -1
  123. package/esm/shape/line/curve.js.map +1 -1
  124. package/esm/shape/line/hv.js +1 -1
  125. package/esm/shape/line/hv.js.map +1 -1
  126. package/esm/shape/line/hvh.js +1 -1
  127. package/esm/shape/line/hvh.js.map +1 -1
  128. package/esm/shape/line/line.js +1 -1
  129. package/esm/shape/line/line.js.map +1 -1
  130. package/esm/shape/line/smooth.js +1 -1
  131. package/esm/shape/line/smooth.js.map +1 -1
  132. package/esm/shape/line/trail.js +1 -1
  133. package/esm/shape/line/trail.js.map +1 -1
  134. package/esm/shape/line/vh.js +1 -1
  135. package/esm/shape/line/vh.js.map +1 -1
  136. package/esm/shape/lineXY/line.js +1 -1
  137. package/esm/shape/lineXY/line.js.map +1 -1
  138. package/esm/shape/link/arc.js +1 -1
  139. package/esm/shape/link/arc.js.map +1 -1
  140. package/esm/shape/link/smooth.js +1 -1
  141. package/esm/shape/link/smooth.js.map +1 -1
  142. package/esm/shape/link/vhv.js +1 -1
  143. package/esm/shape/link/vhv.js.map +1 -1
  144. package/esm/shape/polygon/polygon.js +1 -1
  145. package/esm/shape/polygon/polygon.js.map +1 -1
  146. package/esm/shape/polygon/ribbon.js +1 -1
  147. package/esm/shape/polygon/ribbon.js.map +1 -1
  148. package/esm/shape/text/advance.js +1 -1
  149. package/esm/shape/text/advance.js.map +1 -1
  150. package/esm/shape/utils.d.ts +1 -1
  151. package/esm/shape/utils.js +1 -1
  152. package/esm/shape/utils.js.map +1 -1
  153. package/esm/shape/vector/vector.js +1 -1
  154. package/esm/shape/vector/vector.js.map +1 -1
  155. package/esm/transform/bin.js +1 -1
  156. package/esm/transform/bin.js.map +1 -1
  157. package/esm/transform/flexX.js +1 -1
  158. package/esm/transform/flexX.js.map +1 -1
  159. package/esm/transform/groupN.js +1 -1
  160. package/esm/transform/groupN.js.map +1 -1
  161. package/esm/transform/normalizeY.js +1 -1
  162. package/esm/transform/normalizeY.js.map +1 -1
  163. package/esm/transform/sample.js +1 -1
  164. package/esm/transform/sample.js.map +1 -1
  165. package/esm/transform/select.js +1 -1
  166. package/esm/transform/select.js.map +1 -1
  167. package/esm/transform/sort.d.ts +1 -1
  168. package/esm/transform/sort.js +1 -1
  169. package/esm/transform/sort.js.map +1 -1
  170. package/esm/transform/stackEnter.js +1 -1
  171. package/esm/transform/stackEnter.js.map +1 -1
  172. package/esm/transform/symmetryY.js +1 -1
  173. package/esm/transform/symmetryY.js.map +1 -1
  174. package/esm/transform/utils/order.d.ts +1 -1
  175. package/esm/transform/utils/order.js +1 -1
  176. package/esm/transform/utils/order.js.map +1 -1
  177. package/esm/utils/bounds.d.ts +4 -2
  178. package/esm/utils/bounds.js +11 -4
  179. package/esm/utils/bounds.js.map +1 -1
  180. package/esm/utils/scale.js +1 -1
  181. package/esm/utils/scale.js.map +1 -1
  182. package/esm/utils/selection.js +1 -1
  183. package/esm/utils/selection.js.map +1 -1
  184. package/esm/utils/treeDataTransform.d.ts +9 -2
  185. package/esm/utils/treeDataTransform.js +6 -2
  186. package/esm/utils/treeDataTransform.js.map +1 -1
  187. package/lib/animation/scaleInY.js +1 -1
  188. package/lib/animation/scaleInY.js.map +1 -1
  189. package/lib/animation/waveIn.js +1 -1
  190. package/lib/animation/waveIn.js.map +1 -1
  191. package/lib/api/runtime.js +0 -1
  192. package/lib/api/runtime.js.map +1 -1
  193. package/lib/component/axis.js +2 -2
  194. package/lib/component/axis.js.map +1 -1
  195. package/lib/component/legendCategory.js +1 -1
  196. package/lib/component/legendCategory.js.map +1 -1
  197. package/lib/component/legendContinuous.js +1 -1
  198. package/lib/component/legendContinuous.js.map +1 -1
  199. package/lib/component/slider.js +1 -1
  200. package/lib/component/slider.js.map +1 -1
  201. package/lib/composition/d3Projection.d.ts +1 -1
  202. package/lib/composition/d3Projection.js +1 -1
  203. package/lib/composition/d3Projection.js.map +1 -1
  204. package/lib/composition/facetRect.js +1 -1
  205. package/lib/composition/facetRect.js.map +1 -1
  206. package/lib/composition/geoView.js +1 -1
  207. package/lib/composition/geoView.js.map +1 -1
  208. package/lib/data/cluster.d.ts +1 -1
  209. package/lib/data/cluster.js +1 -1
  210. package/lib/data/cluster.js.map +1 -1
  211. package/lib/data/fetch.js +1 -1
  212. package/lib/data/fetch.js.map +1 -1
  213. package/lib/data/join.js +1 -1
  214. package/lib/data/join.js.map +1 -1
  215. package/lib/data/kde.js +1 -1
  216. package/lib/data/kde.js.map +1 -1
  217. package/lib/data/tree.js +1 -1
  218. package/lib/data/tree.js.map +1 -1
  219. package/lib/data/utils/arc/arc.js +1 -1
  220. package/lib/data/utils/arc/arc.js.map +1 -1
  221. package/lib/data/utils/d3-sankey/align.js +1 -1
  222. package/lib/data/utils/d3-sankey/align.js.map +1 -1
  223. package/lib/data/utils/d3-sankey/sankey.js +1 -1
  224. package/lib/data/utils/d3-sankey/sankey.js.map +1 -1
  225. package/lib/data/wordCloud.js +1 -1
  226. package/lib/data/wordCloud.js.map +1 -1
  227. package/lib/index.d.ts +2 -0
  228. package/lib/interaction/chartIndex.js +1 -1
  229. package/lib/interaction/chartIndex.js.map +1 -1
  230. package/lib/interaction/elementHighlight.js +1 -1
  231. package/lib/interaction/elementHighlight.js.map +1 -1
  232. package/lib/interaction/elementSelect.js +1 -1
  233. package/lib/interaction/elementSelect.js.map +1 -1
  234. package/lib/interaction/legendHighlight.js +1 -1
  235. package/lib/interaction/legendHighlight.js.map +1 -1
  236. package/lib/interaction/tooltip.js +3 -7
  237. package/lib/interaction/tooltip.js.map +1 -1
  238. package/lib/interaction/treemapDrillDown.d.ts +2 -2
  239. package/lib/interaction/treemapDrillDown.js.map +1 -1
  240. package/lib/interaction/utils.js +2 -2
  241. package/lib/interaction/utils.js.map +1 -1
  242. package/lib/label-transform/contrastReverse.js +1 -1
  243. package/lib/label-transform/contrastReverse.js.map +1 -1
  244. package/lib/label-transform/overlapDodgeY.js +1 -1
  245. package/lib/label-transform/overlapDodgeY.js.map +1 -1
  246. package/lib/lib/core.d.ts +1 -0
  247. package/lib/lib/core.js +1 -0
  248. package/lib/lib/core.js.map +1 -1
  249. package/lib/lib/std.d.ts +1 -0
  250. package/lib/mark/area.js +1 -1
  251. package/lib/mark/area.js.map +1 -1
  252. package/lib/mark/boxplot.js +1 -1
  253. package/lib/mark/boxplot.js.map +1 -1
  254. package/lib/mark/forceGraph.js +1 -1
  255. package/lib/mark/forceGraph.js.map +1 -1
  256. package/lib/mark/line.js +1 -1
  257. package/lib/mark/line.js.map +1 -1
  258. package/lib/mark/pack.js +1 -1
  259. package/lib/mark/pack.js.map +1 -1
  260. package/lib/mark/utils.d.ts +1 -1
  261. package/lib/runtime/component.js +2 -2
  262. package/lib/runtime/component.js.map +1 -1
  263. package/lib/runtime/layout.js +1 -1
  264. package/lib/runtime/layout.js.map +1 -1
  265. package/lib/runtime/mark.js +1 -1
  266. package/lib/runtime/mark.js.map +1 -1
  267. package/lib/runtime/plot.js +2 -2
  268. package/lib/runtime/plot.js.map +1 -1
  269. package/lib/runtime/scale.js +2 -2
  270. package/lib/runtime/scale.js.map +1 -1
  271. package/lib/runtime/transform.js +1 -1
  272. package/lib/runtime/transform.js.map +1 -1
  273. package/lib/runtime/types/mark.d.ts +1 -1
  274. package/lib/shape/area/area.js +1 -1
  275. package/lib/shape/area/area.js.map +1 -1
  276. package/lib/shape/area/curve.d.ts +1 -1
  277. package/lib/shape/area/curve.js +1 -1
  278. package/lib/shape/area/curve.js.map +1 -1
  279. package/lib/shape/area/hv.js +1 -1
  280. package/lib/shape/area/hv.js.map +1 -1
  281. package/lib/shape/area/hvh.js +1 -1
  282. package/lib/shape/area/hvh.js.map +1 -1
  283. package/lib/shape/area/smooth.js +1 -1
  284. package/lib/shape/area/smooth.js.map +1 -1
  285. package/lib/shape/area/vh.js +1 -1
  286. package/lib/shape/area/vh.js.map +1 -1
  287. package/lib/shape/box/box.js +1 -1
  288. package/lib/shape/box/box.js.map +1 -1
  289. package/lib/shape/box/violin.js +1 -1
  290. package/lib/shape/box/violin.js.map +1 -1
  291. package/lib/shape/connector/connector.js +1 -1
  292. package/lib/shape/connector/connector.js.map +1 -1
  293. package/lib/shape/density/density.js +1 -1
  294. package/lib/shape/density/density.js.map +1 -1
  295. package/lib/shape/heatmap/heatmap.js +2 -2
  296. package/lib/shape/heatmap/heatmap.js.map +1 -1
  297. package/lib/shape/interval/color.js +1 -1
  298. package/lib/shape/interval/color.js.map +1 -1
  299. package/lib/shape/interval/funnel.js +1 -1
  300. package/lib/shape/interval/funnel.js.map +1 -1
  301. package/lib/shape/label/position/area.js +1 -1
  302. package/lib/shape/label/position/area.js.map +1 -1
  303. package/lib/shape/label/position/utils.js +1 -1
  304. package/lib/shape/label/position/utils.js.map +1 -1
  305. package/lib/shape/line/curve.d.ts +1 -1
  306. package/lib/shape/line/curve.js +1 -1
  307. package/lib/shape/line/curve.js.map +1 -1
  308. package/lib/shape/line/hv.js +1 -1
  309. package/lib/shape/line/hv.js.map +1 -1
  310. package/lib/shape/line/hvh.js +1 -1
  311. package/lib/shape/line/hvh.js.map +1 -1
  312. package/lib/shape/line/line.js +1 -1
  313. package/lib/shape/line/line.js.map +1 -1
  314. package/lib/shape/line/smooth.js +1 -1
  315. package/lib/shape/line/smooth.js.map +1 -1
  316. package/lib/shape/line/trail.js +1 -1
  317. package/lib/shape/line/trail.js.map +1 -1
  318. package/lib/shape/line/vh.js +1 -1
  319. package/lib/shape/line/vh.js.map +1 -1
  320. package/lib/shape/lineXY/line.js +1 -1
  321. package/lib/shape/lineXY/line.js.map +1 -1
  322. package/lib/shape/link/arc.js +1 -1
  323. package/lib/shape/link/arc.js.map +1 -1
  324. package/lib/shape/link/smooth.js +1 -1
  325. package/lib/shape/link/smooth.js.map +1 -1
  326. package/lib/shape/link/vhv.js +1 -1
  327. package/lib/shape/link/vhv.js.map +1 -1
  328. package/lib/shape/polygon/polygon.js +1 -1
  329. package/lib/shape/polygon/polygon.js.map +1 -1
  330. package/lib/shape/polygon/ribbon.js +1 -1
  331. package/lib/shape/polygon/ribbon.js.map +1 -1
  332. package/lib/shape/text/advance.js +1 -1
  333. package/lib/shape/text/advance.js.map +1 -1
  334. package/lib/shape/utils.d.ts +1 -1
  335. package/lib/shape/utils.js +1 -1
  336. package/lib/shape/utils.js.map +1 -1
  337. package/lib/shape/vector/vector.js +1 -1
  338. package/lib/shape/vector/vector.js.map +1 -1
  339. package/lib/transform/bin.js +1 -1
  340. package/lib/transform/bin.js.map +1 -1
  341. package/lib/transform/flexX.js +1 -1
  342. package/lib/transform/flexX.js.map +1 -1
  343. package/lib/transform/groupN.js +1 -1
  344. package/lib/transform/groupN.js.map +1 -1
  345. package/lib/transform/normalizeY.js +1 -1
  346. package/lib/transform/normalizeY.js.map +1 -1
  347. package/lib/transform/sample.js +1 -1
  348. package/lib/transform/sample.js.map +1 -1
  349. package/lib/transform/select.js +1 -1
  350. package/lib/transform/select.js.map +1 -1
  351. package/lib/transform/sort.d.ts +1 -1
  352. package/lib/transform/sort.js +1 -1
  353. package/lib/transform/sort.js.map +1 -1
  354. package/lib/transform/stackEnter.js +1 -1
  355. package/lib/transform/stackEnter.js.map +1 -1
  356. package/lib/transform/symmetryY.js +1 -1
  357. package/lib/transform/symmetryY.js.map +1 -1
  358. package/lib/transform/utils/order.d.ts +1 -1
  359. package/lib/transform/utils/order.js +1 -1
  360. package/lib/transform/utils/order.js.map +1 -1
  361. package/lib/utils/bounds.d.ts +4 -2
  362. package/lib/utils/bounds.js +11 -4
  363. package/lib/utils/bounds.js.map +1 -1
  364. package/lib/utils/scale.js +1 -1
  365. package/lib/utils/scale.js.map +1 -1
  366. package/lib/utils/selection.js +1 -1
  367. package/lib/utils/selection.js.map +1 -1
  368. package/lib/utils/treeDataTransform.d.ts +9 -2
  369. package/lib/utils/treeDataTransform.js +6 -2
  370. package/lib/utils/treeDataTransform.js.map +1 -1
  371. package/package.json +7 -22
  372. package/src/animation/scaleInY.ts +1 -1
  373. package/src/animation/waveIn.ts +1 -1
  374. package/src/api/runtime.ts +0 -1
  375. package/src/component/axis.ts +2 -2
  376. package/src/component/legendCategory.ts +1 -1
  377. package/src/component/legendContinuous.ts +1 -1
  378. package/src/component/slider.ts +1 -1
  379. package/src/composition/d3Projection.ts +1 -1
  380. package/src/composition/facetRect.ts +1 -1
  381. package/src/composition/geoView.ts +1 -1
  382. package/src/data/cluster.ts +1 -1
  383. package/src/data/fetch.ts +1 -1
  384. package/src/data/join.ts +1 -1
  385. package/src/data/kde.ts +1 -1
  386. package/src/data/tree.ts +1 -1
  387. package/src/data/utils/arc/arc.ts +1 -1
  388. package/src/data/utils/d3-sankey/align.ts +1 -1
  389. package/src/data/utils/d3-sankey/sankey.ts +1 -1
  390. package/src/data/wordCloud.ts +1 -1
  391. package/src/interaction/chartIndex.ts +1 -1
  392. package/src/interaction/elementHighlight.ts +1 -1
  393. package/src/interaction/elementSelect.ts +1 -1
  394. package/src/interaction/legendHighlight.ts +1 -1
  395. package/src/interaction/tooltip.ts +3 -1
  396. package/src/interaction/treemapDrillDown.ts +2 -3
  397. package/src/interaction/utils.ts +2 -2
  398. package/src/label-transform/contrastReverse.ts +1 -1
  399. package/src/label-transform/overlapDodgeY.ts +1 -1
  400. package/src/lib/core.ts +2 -0
  401. package/src/mark/area.ts +1 -1
  402. package/src/mark/boxplot.ts +6 -1
  403. package/src/mark/forceGraph.ts +1 -1
  404. package/src/mark/line.ts +1 -1
  405. package/src/mark/pack.ts +5 -1
  406. package/src/mark/utils.ts +1 -1
  407. package/src/runtime/component.ts +2 -2
  408. package/src/runtime/layout.ts +1 -1
  409. package/src/runtime/mark.ts +1 -1
  410. package/src/runtime/plot.ts +2 -2
  411. package/src/runtime/scale.ts +2 -2
  412. package/src/runtime/transform.ts +2 -2
  413. package/src/runtime/types/mark.ts +1 -1
  414. package/src/shape/area/area.ts +1 -1
  415. package/src/shape/area/curve.ts +1 -1
  416. package/src/shape/area/hv.ts +1 -1
  417. package/src/shape/area/hvh.ts +1 -1
  418. package/src/shape/area/smooth.ts +1 -1
  419. package/src/shape/area/vh.ts +1 -1
  420. package/src/shape/box/box.ts +1 -1
  421. package/src/shape/box/violin.ts +1 -1
  422. package/src/shape/connector/connector.ts +1 -1
  423. package/src/shape/density/density.ts +1 -1
  424. package/src/shape/heatmap/heatmap.ts +2 -2
  425. package/src/shape/interval/color.ts +1 -1
  426. package/src/shape/interval/funnel.ts +1 -1
  427. package/src/shape/label/position/area.ts +1 -1
  428. package/src/shape/label/position/utils.ts +1 -1
  429. package/src/shape/line/curve.ts +6 -1
  430. package/src/shape/line/hv.ts +1 -1
  431. package/src/shape/line/hvh.ts +1 -1
  432. package/src/shape/line/line.ts +1 -1
  433. package/src/shape/line/smooth.ts +1 -1
  434. package/src/shape/line/trail.ts +1 -1
  435. package/src/shape/line/vh.ts +1 -1
  436. package/src/shape/lineXY/line.ts +1 -1
  437. package/src/shape/link/arc.ts +1 -1
  438. package/src/shape/link/smooth.ts +1 -1
  439. package/src/shape/link/vhv.ts +1 -1
  440. package/src/shape/polygon/polygon.ts +1 -1
  441. package/src/shape/polygon/ribbon.ts +1 -1
  442. package/src/shape/text/advance.ts +1 -1
  443. package/src/shape/utils.ts +2 -2
  444. package/src/shape/vector/vector.ts +1 -1
  445. package/src/transform/bin.ts +6 -1
  446. package/src/transform/flexX.ts +1 -1
  447. package/src/transform/groupN.ts +1 -1
  448. package/src/transform/normalizeY.ts +1 -1
  449. package/src/transform/sample.ts +1 -1
  450. package/src/transform/select.ts +1 -1
  451. package/src/transform/sort.ts +1 -1
  452. package/src/transform/stackEnter.ts +1 -1
  453. package/src/transform/symmetryY.ts +1 -1
  454. package/src/transform/utils/order.ts +1 -1
  455. package/src/utils/bounds.ts +22 -4
  456. package/src/utils/scale.ts +1 -1
  457. package/src/utils/selection.ts +1 -1
  458. package/src/utils/treeDataTransform.ts +26 -13
@@ -1,5 +1,5 @@
1
1
  import { DisplayObject } from '@antv/g';
2
- import { group } from 'd3-array';
2
+ import { group } from '@antv/vendor/d3-array';
3
3
  import { deepMix } from '@antv/util';
4
4
  import { subObject } from '../utils/helper';
5
5
  import {
@@ -1,4 +1,4 @@
1
- import { group } from 'd3-array';
1
+ import { group } from '@antv/vendor/d3-array';
2
2
  import { subObject } from '../utils/helper';
3
3
  import {
4
4
  mergeState,
@@ -1,5 +1,5 @@
1
1
  import { Circle, DisplayObject, IElement, Line } from '@antv/g';
2
- import { sort, group, mean, bisector, minIndex } from 'd3-array';
2
+ import { sort, group, mean, bisector, minIndex } from '@antv/vendor/d3-array';
3
3
  import { deepMix, lowerFirst, throttle } from '@antv/util';
4
4
  import { Tooltip as TooltipComponent } from '@antv/component';
5
5
  import { Constant, Band } from '@antv/scale';
@@ -872,6 +872,7 @@ export function seriesTooltip(
872
872
  ...event,
873
873
  nativeEvent: true,
874
874
  data: {
875
+ ...tooltipData,
875
876
  data: { x: invert(scale.x, transformedX, true) },
876
877
  },
877
878
  });
@@ -1095,6 +1096,7 @@ export function tooltip(
1095
1096
  ...event,
1096
1097
  nativeEvent: true,
1097
1098
  data: {
1099
+ ...data,
1098
1100
  data: dataOf(element, view),
1099
1101
  },
1100
1102
  });
@@ -1,11 +1,10 @@
1
1
  import { Text, Group } from '@antv/g';
2
2
  import { get, deepMix, pick, keys, find, size, last } from '@antv/util';
3
- import type { Node } from 'd3-hierarchy';
4
3
  import type { DisplayObject } from '@antv/g';
5
4
  import { subObject } from '../utils/helper';
6
5
  import { PLOT_CLASS_NAME } from '../runtime';
7
6
  import { select } from '../utils/selection';
8
- import { treeDataTransform } from '../utils/treeDataTransform';
7
+ import { Node, treeDataTransform } from '../utils/treeDataTransform';
9
8
  import { legendClearSetState } from './legendFilter';
10
9
  import { getElements } from './utils';
11
10
 
@@ -14,7 +13,7 @@ function selectPlotArea(root: DisplayObject): DisplayObject {
14
13
  }
15
14
 
16
15
  export type DrillDownOptions = {
17
- originData?: Node[];
16
+ originData?: Node<any>[];
18
17
  layout?: any;
19
18
  [key: string]: any;
20
19
  };
@@ -1,6 +1,6 @@
1
1
  import { DisplayObject, Path, AABB } from '@antv/g';
2
- import { path as d3Path } from 'd3-path';
3
- import { sort } from 'd3-array';
2
+ import { path as d3Path } from '@antv/vendor/d3-path';
3
+ import { sort } from '@antv/vendor/d3-array';
4
4
  import { Vector2 } from '@antv/coord';
5
5
  import { filter } from '@antv/util';
6
6
  import type { PathArray } from '@antv/util';
@@ -1,5 +1,5 @@
1
1
  import { DisplayObject } from '@antv/g';
2
- import { maxIndex } from 'd3-array';
2
+ import { maxIndex } from '@antv/vendor/d3-array';
3
3
  import { ContrastReverseLabelTransform } from '../spec';
4
4
  import { LabelTransformComponent as LLC } from '../runtime';
5
5
  import { parseToRGB } from '../utils/color';
@@ -1,5 +1,5 @@
1
1
  import { DisplayObject } from '@antv/g';
2
- import { ascending } from 'd3-array';
2
+ import { ascending } from '@antv/vendor/d3-array';
3
3
  import { OverlapDodgeYLabelTransform } from '../spec';
4
4
  import { LabelTransformComponent as LLC } from '../runtime';
5
5
 
package/src/lib/core.ts CHANGED
@@ -7,6 +7,7 @@ import {
7
7
  Fisheye,
8
8
  Radial,
9
9
  Radar,
10
+ Helix,
10
11
  } from '../coordinate';
11
12
  import { Constant, Field, Transform, Column } from '../encode';
12
13
  import {
@@ -216,6 +217,7 @@ export function corelib() {
216
217
  'coordinate.fisheye': Fisheye,
217
218
  'coordinate.radial': Radial,
218
219
  'coordinate.radar': Radar,
220
+ 'coordinate.helix': Helix,
219
221
  'encode.constant': Constant,
220
222
  'encode.field': Field,
221
223
  'encode.transform': Transform,
package/src/mark/area.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { group } from 'd3-array';
1
+ import { group } from '@antv/vendor/d3-array';
2
2
  import { MarkComponent as MC } from '../runtime';
3
3
  import { AreaMark } from '../spec';
4
4
  import { AreaShape, AreaHV, AreaHVH, AreaSmooth, AreaVH } from '../shape';
@@ -1,4 +1,9 @@
1
- import { min as d3Min, max as d3Max, quantile, group } from 'd3-array';
1
+ import {
2
+ min as d3Min,
3
+ max as d3Max,
4
+ quantile,
5
+ group,
6
+ } from '@antv/vendor/d3-array';
2
7
  import { CompositeMarkComponent as CC } from '../runtime';
3
8
  import { BoxPlotMark } from '../spec';
4
9
  import { subObject } from '../utils/helper';
@@ -5,7 +5,7 @@ import {
5
5
  forceX,
6
6
  forceY,
7
7
  forceCenter,
8
- } from 'd3-force';
8
+ } from '@antv/vendor/d3-force';
9
9
  import { deepMix } from '@antv/util';
10
10
  import { subObject } from '../utils/helper';
11
11
  import { CompositeMarkComponent as CC } from '../runtime';
package/src/mark/line.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Vector } from '@antv/coord';
2
- import { group } from 'd3-array';
2
+ import { group } from '@antv/vendor/d3-array';
3
3
  import { isParallel } from '../utils/coordinate';
4
4
  import { Mark, MarkComponent as MC, SingleMark, Vector2 } from '../runtime';
5
5
  import { LineMark } from '../spec';
package/src/mark/pack.ts CHANGED
@@ -1,5 +1,9 @@
1
1
  import { deepMix, isArray } from '@antv/util';
2
- import { stratify, hierarchy, pack as packLayout } from 'd3-hierarchy';
2
+ import {
3
+ stratify,
4
+ hierarchy,
5
+ pack as packLayout,
6
+ } from '@antv/vendor/d3-hierarchy';
3
7
  import { CompositionComponent as CC } from '../runtime';
4
8
  import { subObject } from '../utils/helper';
5
9
  import { PackMark } from '../spec';
package/src/mark/utils.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Band } from '@antv/scale';
2
- import { Primitive } from 'd3-array';
2
+ import { Primitive } from '@antv/vendor/d3-array';
3
3
  import { Vector2 } from '@antv/coord';
4
4
  import { Scale } from '../runtime/types/component';
5
5
  import { Channel } from '../runtime';
@@ -3,8 +3,8 @@
3
3
  */
4
4
  import { Coordinate } from '@antv/coord';
5
5
  import { deepMix, isEqual } from '@antv/util';
6
- import { groups, max, sum } from 'd3-array';
7
- import { format } from 'd3-format';
6
+ import { groups, max, sum } from '@antv/vendor/d3-array';
7
+ import { format } from '@antv/vendor/d3-format';
8
8
  import { DisplayObject, Text } from '@antv/g';
9
9
  import {
10
10
  getPolarOptions,
@@ -1,5 +1,5 @@
1
1
  import { Coordinate } from '@antv/coord';
2
- import { ascending, group, max, min, sum } from 'd3-array';
2
+ import { ascending, group, max, min, sum } from '@antv/vendor/d3-array';
3
3
  import { deepMix } from '@antv/util';
4
4
  import { isParallel, isPolar, isRadar, radiusOf } from '../utils/coordinate';
5
5
  import { capitalizeFirst, defined } from '../utils/helper';
@@ -1,4 +1,4 @@
1
- import { rollups } from 'd3-array';
1
+ import { rollups } from '@antv/vendor/d3-array';
2
2
  import { defined } from '../utils/helper';
3
3
  import { useLibrary } from './library';
4
4
  import { G2MarkState } from './types/common';
@@ -1,8 +1,8 @@
1
1
  import { Vector2 } from '@antv/coord';
2
2
  import { DisplayObject, IAnimation as GAnimation, Rect } from '@antv/g';
3
3
  import { deepMix, upperFirst, isArray } from '@antv/util';
4
- import { group, groups } from 'd3-array';
5
- import { format } from 'd3-format';
4
+ import { group, groups } from '@antv/vendor/d3-array';
5
+ import { format } from '@antv/vendor/d3-format';
6
6
  import { mapObject } from '../utils/array';
7
7
  import { ChartEvent } from '../utils/event';
8
8
  import {
@@ -1,6 +1,6 @@
1
1
  import { Linear, createInterpolateValue } from '@antv/scale';
2
- import { extent, max, rollups } from 'd3-array';
3
- import * as d3ScaleChromatic from 'd3-scale-chromatic';
2
+ import { extent, max, rollups } from '@antv/vendor/d3-array';
3
+ import * as d3ScaleChromatic from '@antv/vendor/d3-scale-chromatic';
4
4
  import { deepMix, omit, upperFirst } from '@antv/util';
5
5
  import { firstOf, lastOf, unique } from '../utils/array';
6
6
  import { defined, identity, isStrictObject } from '../utils/helper';
@@ -1,6 +1,6 @@
1
- import { Primitive } from 'd3-array';
1
+ import { Primitive } from '@antv/vendor/d3-array';
2
2
  import { deepMix, isNumber } from '@antv/util';
3
- import { format } from 'd3-format';
3
+ import { format } from '@antv/vendor/d3-format';
4
4
  import { indexOf, mapObject } from '../utils/array';
5
5
  import {
6
6
  composeAsync,
@@ -1,5 +1,5 @@
1
1
  import { Coordinate, Vector2 } from '@antv/coord';
2
- import { Primitive } from 'd3-array';
2
+ import { Primitive } from '@antv/vendor/d3-array';
3
3
  import { Channel } from './common';
4
4
  import { Scale } from './component';
5
5
  import { TransformSpec } from './transform';
@@ -1,4 +1,4 @@
1
- import { curveLinearClosed, curveLinear } from 'd3-shape';
1
+ import { curveLinearClosed, curveLinear } from '@antv/vendor/d3-shape';
2
2
  import { isPolar } from '../../utils/coordinate';
3
3
  import { ShapeComponent as SC } from '../../runtime';
4
4
  import { Curve } from './curve';
@@ -1,4 +1,4 @@
1
- import { area, areaRadial, CurveFactory } from 'd3-shape';
1
+ import { area, areaRadial, CurveFactory } from '@antv/vendor/d3-shape';
2
2
  import { select } from '../../utils/selection';
3
3
  import { isPolar, isTranspose } from '../../utils/coordinate';
4
4
  import { Vector2, ShapeComponent as SC } from '../../runtime';
@@ -1,4 +1,4 @@
1
- import { curveStepAfter } from 'd3-shape';
1
+ import { curveStepAfter } from '@antv/vendor/d3-shape';
2
2
  import { ShapeComponent as SC } from '../../runtime';
3
3
  import { Curve } from './curve';
4
4
 
@@ -1,4 +1,4 @@
1
- import { curveStep } from 'd3-shape';
1
+ import { curveStep } from '@antv/vendor/d3-shape';
2
2
  import { ShapeComponent as SC } from '../../runtime';
3
3
  import { Curve } from './curve';
4
4
 
@@ -2,7 +2,7 @@ import {
2
2
  curveCatmullRomClosed,
3
3
  curveMonotoneX,
4
4
  curveMonotoneY,
5
- } from 'd3-shape';
5
+ } from '@antv/vendor/d3-shape';
6
6
  import { isPolar, isTranspose } from '../../utils/coordinate';
7
7
  import { ShapeComponent as SC } from '../../runtime';
8
8
  import { Curve } from './curve';
@@ -1,4 +1,4 @@
1
- import { curveStepBefore } from 'd3-shape';
1
+ import { curveStepBefore } from '@antv/vendor/d3-shape';
2
2
  import { ShapeComponent as SC } from '../../runtime';
3
3
  import { Curve } from './curve';
4
4
 
@@ -1,4 +1,4 @@
1
- import { path as d3path } from 'd3-path';
1
+ import { path as d3path } from '@antv/vendor/d3-path';
2
2
  import { Coordinate } from '@antv/coord';
3
3
  import { applyStyle } from '../utils';
4
4
  import { select } from '../../utils/selection';
@@ -1,4 +1,4 @@
1
- import { path as d3path } from 'd3-path';
1
+ import { path as d3path } from '@antv/vendor/d3-path';
2
2
  import { Coordinate } from '@antv/coord';
3
3
  import { applyStyle } from '../utils';
4
4
  import { select } from '../../utils/selection';
@@ -2,7 +2,7 @@ import { Coordinate } from '@antv/coord';
2
2
  import type { PathArray } from '@antv/util';
3
3
  import { PathStyleProps, Path } from '@antv/g';
4
4
  import { Marker } from '@antv/component';
5
- import { line as d3line } from 'd3-shape';
5
+ import { line as d3line } from '@antv/vendor/d3-shape';
6
6
  import { ShapeComponent as SC, Vector2, WithPrefix } from '../../runtime';
7
7
  import { isTranspose } from '../../utils/coordinate';
8
8
  import { subObject } from '../../utils/helper';
@@ -1,4 +1,4 @@
1
- import { path as d3path } from 'd3-path';
1
+ import { path as d3path } from '@antv/vendor/d3-path';
2
2
  import { applyStyle } from '../utils';
3
3
  import { select } from '../../utils/selection';
4
4
  import { ShapeComponent as SC } from '../../runtime';
@@ -1,4 +1,4 @@
1
- import { max as d3max, min as d3min } from 'd3-array';
1
+ import { max as d3max, min as d3min } from '@antv/vendor/d3-array';
2
2
  import { applyStyle } from '../utils';
3
3
  import { select } from '../../utils/selection';
4
4
  import { ShapeComponent as SC } from '../../runtime';
@@ -66,7 +66,7 @@ export const Heatmap: SC<HeatmapOptions> = (options, context) => {
66
66
  .style('y', 0)
67
67
  .style('width', width)
68
68
  .style('height', height)
69
- .style('src', ctx.canvas)
69
+ .style('src', ctx.canvas.toDataURL())
70
70
  .style('transform', transform)
71
71
  .call(applyStyle, style)
72
72
  .node();
@@ -1,4 +1,4 @@
1
- import { arc } from 'd3-shape';
1
+ import { arc } from '@antv/vendor/d3-shape';
2
2
  import { Vector2, ShapeComponent as SC } from '../../runtime';
3
3
  import { isPolar, isHelix, isTranspose } from '../../utils/coordinate';
4
4
  import { select } from '../../utils/selection';
@@ -1,4 +1,4 @@
1
- import { line, curveLinearClosed } from 'd3-shape';
1
+ import { line, curveLinearClosed } from '@antv/vendor/d3-shape';
2
2
  import { Coordinate } from '@antv/coord';
3
3
  import { isTranspose } from '../../utils/coordinate';
4
4
  import { ShapeComponent as SC, Vector2 } from '../../runtime';
@@ -1,4 +1,4 @@
1
- import { maxIndex } from 'd3-array';
1
+ import { maxIndex } from '@antv/vendor/d3-array';
2
2
  import { Coordinate } from '@antv/coord';
3
3
  import { Vector2 } from '../../../runtime';
4
4
  import { sub, angle } from '../../../utils/vector';
@@ -1,4 +1,4 @@
1
- import { sort } from 'd3-array';
1
+ import { sort } from '@antv/vendor/d3-array';
2
2
 
3
3
  // Optimize antiCollision from: https://github.com/antvis/G2/blob/master/src/geometry/label/layout/pie/util.ts
4
4
  export function dodgeY(
@@ -1,4 +1,9 @@
1
- import { line, lineRadial, CurveFactory, CurveFactoryLineOnly } from 'd3-shape';
1
+ import {
2
+ line,
3
+ lineRadial,
4
+ CurveFactory,
5
+ CurveFactoryLineOnly,
6
+ } from '@antv/vendor/d3-shape';
2
7
  import { Vector2 } from '@antv/coord';
3
8
  import { isPolar, isTranspose } from '../../utils/coordinate';
4
9
  import { select } from '../../utils/selection';
@@ -1,4 +1,4 @@
1
- import { curveStepAfter } from 'd3-shape';
1
+ import { curveStepAfter } from '@antv/vendor/d3-shape';
2
2
  import { ShapeComponent as SC } from '../../runtime';
3
3
  import { Curve } from './curve';
4
4
 
@@ -1,4 +1,4 @@
1
- import { curveStep } from 'd3-shape';
1
+ import { curveStep } from '@antv/vendor/d3-shape';
2
2
  import { ShapeComponent as SC } from '../../runtime';
3
3
  import { Curve } from './curve';
4
4
 
@@ -1,4 +1,4 @@
1
- import { curveLinear, curveLinearClosed } from 'd3-shape';
1
+ import { curveLinear, curveLinearClosed } from '@antv/vendor/d3-shape';
2
2
  import { isPolar } from '../../utils/coordinate';
3
3
  import { ShapeComponent as SC } from '../../runtime';
4
4
  import { Curve } from './curve';
@@ -2,7 +2,7 @@ import {
2
2
  curveMonotoneX,
3
3
  curveMonotoneY,
4
4
  curveCatmullRomClosed,
5
- } from 'd3-shape';
5
+ } from '@antv/vendor/d3-shape';
6
6
  import { isPolar, isTranspose } from '../../utils/coordinate';
7
7
  import { ShapeComponent as SC } from '../../runtime';
8
8
  import { Curve } from './curve';
@@ -1,4 +1,4 @@
1
- import { path as d3path } from 'd3-path';
1
+ import { path as d3path } from '@antv/vendor/d3-path';
2
2
  import { ShapeComponent as SC } from '../../runtime';
3
3
  import { select } from '../../utils/selection';
4
4
  import { applyStyle } from '../utils';
@@ -1,4 +1,4 @@
1
- import { curveStepBefore } from 'd3-shape';
1
+ import { curveStepBefore } from '@antv/vendor/d3-shape';
2
2
  import { ShapeComponent as SC } from '../../runtime';
3
3
  import { Curve } from './curve';
4
4
 
@@ -1,6 +1,6 @@
1
1
  import { IDocument } from '@antv/g';
2
2
  import { Coordinate } from '@antv/coord';
3
- import { arc, line } from 'd3-shape';
3
+ import { arc, line } from '@antv/vendor/d3-shape';
4
4
  import { isPolar } from '../../utils/coordinate';
5
5
  import { select } from '../../utils/selection';
6
6
  import { dist } from '../../utils/vector';
@@ -1,4 +1,4 @@
1
- import { path as d3path } from 'd3-path';
1
+ import { path as d3path } from '@antv/vendor/d3-path';
2
2
  import { appendArc, applyStyle } from '../utils';
3
3
  import { select } from '../../utils/selection';
4
4
  import { isPolar } from '../../utils/coordinate';
@@ -1,4 +1,4 @@
1
- import { path as d3path } from 'd3-path';
1
+ import { path as d3path } from '@antv/vendor/d3-path';
2
2
  import { applyStyle } from '../utils';
3
3
  import { select } from '../../utils/selection';
4
4
  import { ShapeComponent as SC } from '../../runtime';
@@ -1,4 +1,4 @@
1
- import { path as d3path } from 'd3-path';
1
+ import { path as d3path } from '@antv/vendor/d3-path';
2
2
  import { Coordinate } from '@antv/coord';
3
3
  import { appendArc, applyStyle } from '../utils';
4
4
  import { select } from '../../utils/selection';
@@ -1,5 +1,5 @@
1
1
  import { Coordinate } from '@antv/coord';
2
- import { path as d3path } from 'd3-path';
2
+ import { path as d3path } from '@antv/vendor/d3-path';
3
3
  import { isPolar } from '../../utils/coordinate';
4
4
  import { applyStyle, appendPolygon, appendArc } from '../utils';
5
5
  import { select } from '../../utils/selection';
@@ -1,4 +1,4 @@
1
- import { path as d3path } from 'd3-path';
1
+ import { path as d3path } from '@antv/vendor/d3-path';
2
2
  import { Coordinate } from '@antv/coord';
3
3
  import { appendArc, applyStyle } from '../utils';
4
4
  import { select } from '../../utils/selection';
@@ -9,7 +9,7 @@ import {
9
9
  } from '@antv/g';
10
10
  import { isNumber } from '@antv/util';
11
11
  import { Marker } from '@antv/component';
12
- import { line } from 'd3-shape';
12
+ import { line } from '@antv/vendor/d3-shape';
13
13
  import { WithPrefix } from '../../runtime';
14
14
  import { createElement } from '../../utils/createElement';
15
15
  import { applyStyle } from '../utils';
@@ -1,8 +1,8 @@
1
1
  import { Coordinate } from '@antv/coord';
2
2
  import { Linear } from '@antv/scale';
3
3
  import { isNumber, lowerFirst } from '@antv/util';
4
- import { extent } from 'd3-array';
5
- import { Path as D3Path } from 'd3-path';
4
+ import { extent } from '@antv/vendor/d3-array';
5
+ import { Path as D3Path } from '@antv/vendor/d3-path';
6
6
  import { Primitive, Vector2, Vector3 } from '../runtime';
7
7
  import { indexOf } from '../utils/array';
8
8
  import { isPolar, isTranspose } from '../utils/coordinate';
@@ -1,4 +1,4 @@
1
- import { path as d3path } from 'd3-path';
1
+ import { path as d3path } from '@antv/vendor/d3-path';
2
2
  import { applyStyle, arrowPoints, ArrowOptions } from '../utils';
3
3
  import { select } from '../../utils/selection';
4
4
  import { ShapeComponent as SC } from '../../runtime';
@@ -1,4 +1,9 @@
1
- import { bin as d3Bin, group, thresholdScott, extent } from 'd3-array';
1
+ import {
2
+ bin as d3Bin,
3
+ group,
4
+ thresholdScott,
5
+ extent,
6
+ } from '@antv/vendor/d3-array';
2
7
  import { defined, subObject } from '../utils/helper';
3
8
  import { TransformComponent as TC } from '../runtime';
4
9
  import { BinTransform } from '../spec';
@@ -1,5 +1,5 @@
1
1
  import { deepMix } from '@antv/util';
2
- import { rollups, sum, Primitive } from 'd3-array';
2
+ import { rollups, sum, Primitive } from '@antv/vendor/d3-array';
3
3
  import { TransformComponent as TC } from '../runtime';
4
4
  import { FlexXTransform } from '../spec';
5
5
  import { columnOf } from './utils/helper';
@@ -5,7 +5,7 @@ import {
5
5
  sum as d3Sum,
6
6
  min as d3Min,
7
7
  median as d3Median,
8
- } from 'd3-array';
8
+ } from '@antv/vendor/d3-array';
9
9
  import { TransformComponent as TC, Primitive, G2Mark } from '../runtime';
10
10
  import { GroupTransform, Reducer } from '../spec';
11
11
  import { indexOf } from '../utils/array';
@@ -1,5 +1,5 @@
1
1
  import { deepMix } from '@antv/util';
2
- import { mean, deviation, median, sum, max, min } from 'd3-array';
2
+ import { mean, deviation, median, sum, max, min } from '@antv/vendor/d3-array';
3
3
  import { isUnset } from '../utils/helper';
4
4
  import { TransformComponent as TC } from '../runtime';
5
5
  import { NormalizeYTransform } from '../spec';
@@ -1,5 +1,5 @@
1
1
  // @ts-ignore medianIndex exist in d3-array@3.2.0, but @types/d3-array Expired.
2
- import { maxIndex, minIndex, medianIndex } from 'd3-array';
2
+ import { maxIndex, minIndex, medianIndex } from '@antv/vendor/d3-array';
3
3
  import { TransformComponent as TC, Primitive } from '../runtime';
4
4
  import { SampleTransform, SampleFunction } from '../spec';
5
5
  import { createGroups } from './utils/order';
@@ -1,4 +1,4 @@
1
- import { maxIndex, minIndex } from 'd3-array';
1
+ import { maxIndex, minIndex } from '@antv/vendor/d3-array';
2
2
  import { TransformComponent as TC } from '../runtime';
3
3
  import { SelectTransform, Selector } from '../spec';
4
4
  import { columnOf } from './utils/helper';
@@ -8,7 +8,7 @@ import {
8
8
  mean,
9
9
  median,
10
10
  sort,
11
- } from 'd3-array';
11
+ } from '@antv/vendor/d3-array';
12
12
  import { G2Mark, TransformComponent as TC } from '../runtime';
13
13
  import { columnOf } from './utils/helper';
14
14
 
@@ -1,5 +1,5 @@
1
1
  import { deepMix } from '@antv/util';
2
- import { group, max } from 'd3-array';
2
+ import { group, max } from '@antv/vendor/d3-array';
3
3
  import { TransformComponent as TC } from '../runtime';
4
4
  import { StackEnterTransform } from '../spec';
5
5
  import {
@@ -1,5 +1,5 @@
1
1
  import { deepMix } from '@antv/util';
2
- import { extent } from 'd3-array';
2
+ import { extent } from '@antv/vendor/d3-array';
3
3
  import { TransformComponent as TC } from '../runtime';
4
4
  import { SymmetryYTransform } from '../spec';
5
5
  import { columnOf, column } from './utils/helper';
@@ -1,4 +1,4 @@
1
- import { group, ascending, maxIndex, Primitive } from 'd3-array';
1
+ import { group, ascending, maxIndex, Primitive } from '@antv/vendor/d3-array';
2
2
  import { defined } from '../../utils/helper';
3
3
  import { TabularData, G2Mark } from '../../runtime';
4
4
  import { indexOf } from '../../utils/array';