@gravity-ui/charts 1.42.0 → 1.42.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (663) hide show
  1. package/dist/cjs/components/AxisX/AxisX.js +2 -1
  2. package/dist/cjs/components/AxisX/prepare-axis-data.js +2 -2
  3. package/dist/cjs/components/AxisX/types.d.ts +1 -1
  4. package/dist/cjs/components/AxisY/AxisY.js +2 -1
  5. package/dist/cjs/components/AxisY/prepare-axis-data.js +1 -1
  6. package/dist/cjs/components/AxisY/prepare-axis-title.js +1 -1
  7. package/dist/cjs/components/AxisY/types.d.ts +1 -1
  8. package/dist/cjs/components/AxisY/utils.js +1 -1
  9. package/dist/cjs/components/ChartInner/index.js +3 -2
  10. package/dist/cjs/components/ChartInner/useChartInnerHandlers.d.ts +1 -1
  11. package/dist/cjs/components/ChartInner/useChartInnerHandlers.js +4 -4
  12. package/dist/cjs/components/ChartInner/useChartInnerProps.d.ts +1 -1
  13. package/dist/cjs/components/ChartInner/useChartInnerProps.js +4 -4
  14. package/dist/cjs/components/ChartInner/useChartInnerState.js +1 -1
  15. package/dist/cjs/components/ChartInner/useDefaultState.d.ts +1 -1
  16. package/dist/cjs/components/ChartInner/useDefaultState.js +4 -4
  17. package/dist/cjs/components/ChartInner/utils/axis.d.ts +2 -2
  18. package/dist/cjs/components/ChartInner/utils/axis.js +1 -1
  19. package/dist/cjs/components/ChartInner/utils/normalized-original-data.js +1 -1
  20. package/dist/cjs/components/ChartInner/utils/title.js +1 -1
  21. package/dist/cjs/components/ChartInner/utils/tooltip.js +1 -1
  22. package/dist/cjs/components/ChartInner/utils/zoom.d.ts +1 -1
  23. package/dist/cjs/components/ChartInner/utils/zoom.js +1 -1
  24. package/dist/cjs/components/Legend/index.js +4 -3
  25. package/dist/cjs/components/PlotTitle/index.d.ts +1 -1
  26. package/dist/cjs/components/RangeSlider/index.js +2 -1
  27. package/dist/cjs/components/Tooltip/DefaultTooltipContent/RowWithAggregation.js +1 -1
  28. package/dist/cjs/components/Tooltip/DefaultTooltipContent/index.js +2 -2
  29. package/dist/cjs/components/Tooltip/DefaultTooltipContent/utils.js +3 -3
  30. package/dist/cjs/components/index.js +3 -3
  31. package/dist/cjs/components/utils/axis-title.js +1 -1
  32. package/dist/cjs/components/utils/index.d.ts +1 -1
  33. package/dist/cjs/components/utils/index.js +1 -1
  34. package/dist/cjs/core/axes/index.d.ts +5 -0
  35. package/dist/cjs/core/axes/index.js +5 -0
  36. package/dist/{esm/hooks/useAxis → cjs/core/axes}/range-slider.js +1 -1
  37. package/dist/cjs/core/axes/types.d.ts +84 -0
  38. package/dist/{esm/hooks/useAxis → cjs/core/axes}/utils.js +1 -1
  39. package/dist/cjs/{hooks/useAxis → core/axes}/x-axis.js +4 -4
  40. package/dist/cjs/{hooks/useAxis → core/axes}/y-axis.d.ts +2 -2
  41. package/dist/cjs/{hooks/useAxis → core/axes}/y-axis.js +3 -3
  42. package/dist/cjs/core/index.d.ts +10 -0
  43. package/dist/cjs/core/index.js +10 -0
  44. package/dist/{esm/utils/chart → cjs/core/layout}/chart-dimensions.d.ts +3 -1
  45. package/dist/cjs/{utils/chart → core/layout}/chart-dimensions.js +1 -1
  46. package/dist/cjs/core/layout/index.d.ts +3 -0
  47. package/dist/cjs/core/layout/index.js +3 -0
  48. package/dist/cjs/{hooks/useSplit/index.d.ts → core/layout/split.d.ts} +1 -1
  49. package/dist/{esm/hooks/useSplit/index.js → cjs/core/layout/split.js} +1 -1
  50. package/dist/cjs/core/scales/index.d.ts +4 -0
  51. package/dist/cjs/core/scales/index.js +4 -0
  52. package/dist/{esm/hooks/useAxisScales → cjs/core/scales}/utils.d.ts +3 -2
  53. package/dist/{esm/hooks/useAxisScales → cjs/core/scales}/utils.js +2 -2
  54. package/dist/{esm/hooks/useAxisScales → cjs/core/scales}/x-scale.d.ts +4 -2
  55. package/dist/{esm/hooks/useAxisScales → cjs/core/scales}/x-scale.js +3 -3
  56. package/dist/{esm/hooks/useAxisScales → cjs/core/scales}/y-scale.d.ts +3 -2
  57. package/dist/{esm/hooks/useAxisScales → cjs/core/scales}/y-scale.js +3 -3
  58. package/dist/cjs/{hooks/useSeries → core/series}/constants.d.ts +1 -1
  59. package/dist/cjs/core/series/index.d.ts +4 -0
  60. package/dist/cjs/core/series/index.js +4 -0
  61. package/dist/cjs/{hooks/useSeries → core/series}/prepare-area.d.ts +1 -1
  62. package/dist/{esm/hooks/useSeries → cjs/core/series}/prepare-area.js +2 -2
  63. package/dist/{esm/hooks/useSeries → cjs/core/series}/prepare-bar-x.js +2 -2
  64. package/dist/cjs/{hooks/useSeries → core/series}/prepare-bar-y.js +3 -3
  65. package/dist/cjs/{hooks/useSeries → core/series}/prepare-funnel.js +2 -2
  66. package/dist/cjs/{hooks/useSeries → core/series}/prepare-heatmap.js +2 -2
  67. package/dist/{esm/hooks/useSeries → cjs/core/series}/prepare-legend.d.ts +1 -1
  68. package/dist/{esm/hooks/useSeries → cjs/core/series}/prepare-legend.js +2 -2
  69. package/dist/{esm/hooks/useSeries → cjs/core/series}/prepare-line.d.ts +1 -1
  70. package/dist/cjs/{hooks/useSeries → core/series}/prepare-line.js +2 -2
  71. package/dist/cjs/{hooks/useSeries → core/series}/prepare-options.js +1 -1
  72. package/dist/{esm/hooks/useSeries → cjs/core/series}/prepare-pie.js +2 -2
  73. package/dist/{esm/hooks/useSeries → cjs/core/series}/prepare-radar.d.ts +1 -1
  74. package/dist/{esm/hooks/useSeries → cjs/core/series}/prepare-radar.js +2 -2
  75. package/dist/cjs/{hooks/useSeries → core/series}/prepare-sankey.js +2 -2
  76. package/dist/cjs/{hooks/useSeries → core/series}/prepare-scatter.js +2 -2
  77. package/dist/cjs/{hooks/useSeries → core/series}/prepare-treemap.js +2 -2
  78. package/dist/{esm/hooks/useSeries → cjs/core/series}/prepare-waterfall.js +2 -2
  79. package/dist/cjs/core/series/types.d.ts +346 -0
  80. package/dist/cjs/core/series/utils.d.ts +11 -0
  81. package/dist/cjs/core/series/utils.js +37 -0
  82. package/dist/{esm → cjs/core}/types/chart/base.d.ts +19 -0
  83. package/dist/{esm → cjs/core}/types/chart/tooltip.d.ts +1 -1
  84. package/dist/cjs/core/types/formatter.d.ts +40 -0
  85. package/dist/cjs/core/types/index.d.ts +96 -0
  86. package/dist/cjs/core/types/index.js +24 -0
  87. package/dist/{esm/utils/chart → cjs/core/utils}/common.js +2 -2
  88. package/dist/cjs/{utils/chart → core/utils}/format.d.ts +1 -1
  89. package/dist/cjs/{utils/chart → core/utils}/format.js +1 -1
  90. package/dist/cjs/{utils/chart → core/utils}/get-closest-data.js +2 -2
  91. package/dist/{esm/utils/chart → cjs/core/utils}/get-hovered-plots.d.ts +2 -2
  92. package/dist/cjs/{utils/chart → core/utils}/index.d.ts +4 -2
  93. package/dist/{esm/utils/chart → cjs/core/utils}/index.js +4 -2
  94. package/dist/cjs/{utils/chart → core/utils}/series/line.d.ts +1 -1
  95. package/dist/{esm/utils/chart → cjs/core/utils}/series/sorting.js +2 -2
  96. package/dist/cjs/{utils/chart → core/utils}/symbol.d.ts +1 -1
  97. package/dist/{esm/utils/chart → cjs/core/utils}/symbol.js +1 -1
  98. package/dist/cjs/{utils/chart → core/utils}/text.js +1 -1
  99. package/dist/{esm/utils/chart → cjs/core/utils}/ticks/datetime.js +1 -1
  100. package/dist/{esm → cjs/core}/validation/index.js +1 -1
  101. package/dist/cjs/{validation → core/validation}/validate-axes.js +1 -1
  102. package/dist/cjs/core/zoom/index.d.ts +1 -0
  103. package/dist/cjs/core/zoom/index.js +1 -0
  104. package/dist/cjs/{utils/chart → core/zoom}/zoom.d.ts +3 -1
  105. package/dist/cjs/{utils/chart → core/zoom}/zoom.js +1 -1
  106. package/dist/cjs/hooks/index.d.ts +5 -5
  107. package/dist/cjs/hooks/index.js +5 -5
  108. package/dist/cjs/hooks/useAxis/index.d.ts +4 -4
  109. package/dist/cjs/hooks/useAxis/index.js +3 -3
  110. package/dist/cjs/hooks/useAxis/types.d.ts +1 -84
  111. package/dist/cjs/hooks/useAxis/types.js +1 -1
  112. package/dist/cjs/hooks/useAxisScales/index.d.ts +4 -4
  113. package/dist/cjs/hooks/useAxisScales/index.js +6 -6
  114. package/dist/cjs/hooks/useBrush/types.d.ts +1 -1
  115. package/dist/cjs/hooks/useCrosshair/index.js +1 -1
  116. package/dist/cjs/hooks/useCrosshair/useCrosshairHover.js +1 -1
  117. package/dist/cjs/hooks/useRangeSlider/index.d.ts +1 -1
  118. package/dist/cjs/hooks/useRangeSlider/index.js +2 -2
  119. package/dist/cjs/hooks/useRangeSlider/types.d.ts +1 -1
  120. package/dist/cjs/hooks/useRangeSlider/utils.d.ts +1 -1
  121. package/dist/cjs/hooks/useRangeSlider/utils.js +1 -1
  122. package/dist/cjs/hooks/useSeries/index.d.ts +1 -1
  123. package/dist/cjs/hooks/useSeries/index.js +2 -2
  124. package/dist/cjs/hooks/useSeries/types.d.ts +1 -346
  125. package/dist/cjs/hooks/useSeries/types.js +1 -1
  126. package/dist/cjs/hooks/useSeries/utils.d.ts +1 -11
  127. package/dist/cjs/hooks/useSeries/utils.js +1 -37
  128. package/dist/cjs/hooks/useShapes/area/index.js +2 -1
  129. package/dist/cjs/hooks/useShapes/area/prepare-data.d.ts +2 -2
  130. package/dist/cjs/hooks/useShapes/area/prepare-data.js +2 -2
  131. package/dist/cjs/hooks/useShapes/bar-x/index.js +2 -1
  132. package/dist/cjs/hooks/useShapes/bar-x/prepare-data.d.ts +2 -2
  133. package/dist/cjs/hooks/useShapes/bar-x/prepare-data.js +2 -2
  134. package/dist/cjs/hooks/useShapes/bar-y/prepare-data.d.ts +1 -1
  135. package/dist/cjs/hooks/useShapes/bar-y/prepare-data.js +2 -2
  136. package/dist/cjs/hooks/useShapes/funnel/index.js +2 -1
  137. package/dist/cjs/hooks/useShapes/funnel/prepare-data.js +1 -1
  138. package/dist/cjs/hooks/useShapes/funnel/types.d.ts +1 -1
  139. package/dist/cjs/hooks/useShapes/heatmap/prepare-data.d.ts +1 -1
  140. package/dist/cjs/hooks/useShapes/heatmap/prepare-data.js +1 -1
  141. package/dist/cjs/hooks/useShapes/index.d.ts +3 -3
  142. package/dist/cjs/hooks/useShapes/index.js +2 -2
  143. package/dist/cjs/hooks/useShapes/line/index.js +2 -1
  144. package/dist/cjs/hooks/useShapes/line/prepare-data.d.ts +2 -2
  145. package/dist/cjs/hooks/useShapes/line/prepare-data.js +2 -2
  146. package/dist/cjs/hooks/useShapes/line/types.d.ts +1 -1
  147. package/dist/cjs/hooks/useShapes/marker.d.ts +1 -1
  148. package/dist/cjs/hooks/useShapes/marker.js +3 -2
  149. package/dist/cjs/hooks/useShapes/pie/index.js +2 -1
  150. package/dist/cjs/hooks/useShapes/pie/prepare-data.js +3 -3
  151. package/dist/cjs/hooks/useShapes/radar/prepare-data.js +2 -2
  152. package/dist/cjs/hooks/useShapes/sankey/prepare-data.js +1 -1
  153. package/dist/cjs/hooks/useShapes/scatter/prepare-data.d.ts +1 -1
  154. package/dist/cjs/hooks/useShapes/scatter/prepare-data.js +1 -1
  155. package/dist/cjs/hooks/useShapes/treemap/prepare-data.js +3 -3
  156. package/dist/cjs/hooks/useShapes/utils.d.ts +1 -1
  157. package/dist/cjs/hooks/useShapes/utils.js +1 -1
  158. package/dist/cjs/hooks/useShapes/waterfall/index.js +3 -2
  159. package/dist/cjs/hooks/useShapes/waterfall/prepare-data.d.ts +1 -1
  160. package/dist/cjs/hooks/useShapes/waterfall/prepare-data.js +2 -2
  161. package/dist/cjs/hooks/useZoom/index.d.ts +2 -2
  162. package/dist/cjs/hooks/useZoom/utils.d.ts +2 -2
  163. package/dist/cjs/hooks/useZoom/utils.js +1 -1
  164. package/dist/cjs/hooks/utils/bar-y.d.ts +1 -1
  165. package/dist/cjs/hooks/utils/bar-y.js +1 -1
  166. package/dist/cjs/hooks/utils/get-band-size.js +1 -1
  167. package/dist/cjs/index.d.ts +3 -2
  168. package/dist/cjs/index.js +3 -2
  169. package/dist/cjs/types/chart-ui.d.ts +1 -1
  170. package/dist/cjs/types/index.d.ts +1 -96
  171. package/dist/cjs/types/index.js +1 -24
  172. package/dist/cjs/utils/chart-ui/pie-center-text.js +2 -2
  173. package/dist/cjs/utils/index.d.ts +0 -3
  174. package/dist/cjs/utils/index.js +0 -3
  175. package/dist/esm/components/AxisX/AxisX.js +2 -1
  176. package/dist/esm/components/AxisX/prepare-axis-data.js +2 -2
  177. package/dist/esm/components/AxisX/types.d.ts +1 -1
  178. package/dist/esm/components/AxisY/AxisY.js +2 -1
  179. package/dist/esm/components/AxisY/prepare-axis-data.js +1 -1
  180. package/dist/esm/components/AxisY/prepare-axis-title.js +1 -1
  181. package/dist/esm/components/AxisY/types.d.ts +1 -1
  182. package/dist/esm/components/AxisY/utils.js +1 -1
  183. package/dist/esm/components/ChartInner/index.js +3 -2
  184. package/dist/esm/components/ChartInner/useChartInnerHandlers.d.ts +1 -1
  185. package/dist/esm/components/ChartInner/useChartInnerHandlers.js +4 -4
  186. package/dist/esm/components/ChartInner/useChartInnerProps.d.ts +1 -1
  187. package/dist/esm/components/ChartInner/useChartInnerProps.js +4 -4
  188. package/dist/esm/components/ChartInner/useChartInnerState.js +1 -1
  189. package/dist/esm/components/ChartInner/useDefaultState.d.ts +1 -1
  190. package/dist/esm/components/ChartInner/useDefaultState.js +4 -4
  191. package/dist/esm/components/ChartInner/utils/axis.d.ts +2 -2
  192. package/dist/esm/components/ChartInner/utils/axis.js +1 -1
  193. package/dist/esm/components/ChartInner/utils/normalized-original-data.js +1 -1
  194. package/dist/esm/components/ChartInner/utils/title.js +1 -1
  195. package/dist/esm/components/ChartInner/utils/tooltip.js +1 -1
  196. package/dist/esm/components/ChartInner/utils/zoom.d.ts +1 -1
  197. package/dist/esm/components/ChartInner/utils/zoom.js +1 -1
  198. package/dist/esm/components/Legend/index.js +4 -3
  199. package/dist/esm/components/PlotTitle/index.d.ts +1 -1
  200. package/dist/esm/components/RangeSlider/index.js +2 -1
  201. package/dist/esm/components/Tooltip/DefaultTooltipContent/RowWithAggregation.js +1 -1
  202. package/dist/esm/components/Tooltip/DefaultTooltipContent/index.js +2 -2
  203. package/dist/esm/components/Tooltip/DefaultTooltipContent/utils.js +3 -3
  204. package/dist/esm/components/index.js +3 -3
  205. package/dist/esm/components/utils/axis-title.js +1 -1
  206. package/dist/esm/components/utils/index.d.ts +1 -1
  207. package/dist/esm/components/utils/index.js +1 -1
  208. package/dist/esm/core/axes/index.d.ts +5 -0
  209. package/dist/esm/core/axes/index.js +5 -0
  210. package/dist/{cjs/hooks/useAxis → esm/core/axes}/range-slider.js +1 -1
  211. package/dist/esm/core/axes/types.d.ts +84 -0
  212. package/dist/{cjs/hooks/useAxis → esm/core/axes}/utils.js +1 -1
  213. package/dist/esm/{hooks/useAxis → core/axes}/x-axis.js +4 -4
  214. package/dist/esm/{hooks/useAxis → core/axes}/y-axis.d.ts +2 -2
  215. package/dist/esm/{hooks/useAxis → core/axes}/y-axis.js +3 -3
  216. package/dist/esm/core/index.d.ts +10 -0
  217. package/dist/esm/core/index.js +10 -0
  218. package/dist/{cjs/utils/chart → esm/core/layout}/chart-dimensions.d.ts +3 -1
  219. package/dist/esm/{utils/chart → core/layout}/chart-dimensions.js +1 -1
  220. package/dist/esm/core/layout/index.d.ts +3 -0
  221. package/dist/esm/core/layout/index.js +3 -0
  222. package/dist/esm/{hooks/useSplit/index.d.ts → core/layout/split.d.ts} +1 -1
  223. package/dist/{cjs/hooks/useSplit/index.js → esm/core/layout/split.js} +1 -1
  224. package/dist/esm/core/scales/index.d.ts +4 -0
  225. package/dist/esm/core/scales/index.js +4 -0
  226. package/dist/{cjs/hooks/useAxisScales → esm/core/scales}/utils.d.ts +3 -2
  227. package/dist/{cjs/hooks/useAxisScales → esm/core/scales}/utils.js +2 -2
  228. package/dist/{cjs/hooks/useAxisScales → esm/core/scales}/x-scale.d.ts +4 -2
  229. package/dist/{cjs/hooks/useAxisScales → esm/core/scales}/x-scale.js +3 -3
  230. package/dist/{cjs/hooks/useAxisScales → esm/core/scales}/y-scale.d.ts +3 -2
  231. package/dist/{cjs/hooks/useAxisScales → esm/core/scales}/y-scale.js +3 -3
  232. package/dist/esm/{hooks/useSeries → core/series}/constants.d.ts +1 -1
  233. package/dist/esm/core/series/index.d.ts +4 -0
  234. package/dist/esm/core/series/index.js +4 -0
  235. package/dist/esm/{hooks/useSeries → core/series}/prepare-area.d.ts +1 -1
  236. package/dist/{cjs/hooks/useSeries → esm/core/series}/prepare-area.js +2 -2
  237. package/dist/{cjs/hooks/useSeries → esm/core/series}/prepare-bar-x.js +2 -2
  238. package/dist/esm/{hooks/useSeries → core/series}/prepare-bar-y.d.ts +3 -3
  239. package/dist/esm/{hooks/useSeries → core/series}/prepare-bar-y.js +3 -3
  240. package/dist/esm/{hooks/useSeries → core/series}/prepare-funnel.js +2 -2
  241. package/dist/esm/{hooks/useSeries → core/series}/prepare-heatmap.js +2 -2
  242. package/dist/{cjs/hooks/useSeries → esm/core/series}/prepare-legend.d.ts +1 -1
  243. package/dist/{cjs/hooks/useSeries → esm/core/series}/prepare-legend.js +2 -2
  244. package/dist/{cjs/hooks/useSeries → esm/core/series}/prepare-line.d.ts +1 -1
  245. package/dist/esm/{hooks/useSeries → core/series}/prepare-line.js +2 -2
  246. package/dist/esm/{hooks/useSeries → core/series}/prepare-options.js +1 -1
  247. package/dist/{cjs/hooks/useSeries → esm/core/series}/prepare-pie.js +2 -2
  248. package/dist/{cjs/hooks/useSeries → esm/core/series}/prepare-radar.d.ts +1 -1
  249. package/dist/{cjs/hooks/useSeries → esm/core/series}/prepare-radar.js +2 -2
  250. package/dist/esm/{hooks/useSeries → core/series}/prepare-sankey.js +2 -2
  251. package/dist/esm/{hooks/useSeries → core/series}/prepare-scatter.js +2 -2
  252. package/dist/esm/{hooks/useSeries → core/series}/prepare-treemap.js +2 -2
  253. package/dist/{cjs/hooks/useSeries → esm/core/series}/prepare-waterfall.js +2 -2
  254. package/dist/esm/core/series/types.d.ts +346 -0
  255. package/dist/esm/core/series/utils.d.ts +11 -0
  256. package/dist/esm/core/series/utils.js +37 -0
  257. package/dist/{cjs → esm/core}/types/chart/base.d.ts +19 -0
  258. package/dist/{cjs → esm/core}/types/chart/tooltip.d.ts +1 -1
  259. package/dist/esm/core/types/chart/zoom.js +1 -0
  260. package/dist/esm/core/types/formatter.d.ts +40 -0
  261. package/dist/esm/core/types/formatter.js +1 -0
  262. package/dist/esm/core/types/index.d.ts +96 -0
  263. package/dist/esm/core/types/index.js +24 -0
  264. package/dist/esm/core/types/misc.js +1 -0
  265. package/dist/{cjs/utils/chart → esm/core/utils}/common.js +2 -2
  266. package/dist/esm/{utils/chart → core/utils}/format.d.ts +1 -1
  267. package/dist/esm/{utils/chart → core/utils}/format.js +1 -1
  268. package/dist/esm/{utils/chart → core/utils}/get-closest-data.js +2 -2
  269. package/dist/{cjs/utils/chart → esm/core/utils}/get-hovered-plots.d.ts +2 -2
  270. package/dist/esm/{utils/chart → core/utils}/index.d.ts +4 -2
  271. package/dist/{cjs/utils/chart → esm/core/utils}/index.js +4 -2
  272. package/dist/esm/{utils/chart → core/utils}/series/line.d.ts +1 -1
  273. package/dist/{cjs/utils/chart → esm/core/utils}/series/sorting.js +2 -2
  274. package/dist/esm/{utils/chart → core/utils}/symbol.d.ts +1 -1
  275. package/dist/{cjs/utils/chart → esm/core/utils}/symbol.js +1 -1
  276. package/dist/esm/{utils/chart → core/utils}/text.js +1 -1
  277. package/dist/{cjs/utils/chart → esm/core/utils}/ticks/datetime.js +1 -1
  278. package/dist/esm/{utils/chart → core/utils}/tooltip.d.ts +1 -1
  279. package/dist/esm/core/utils/types.js +1 -0
  280. package/dist/{cjs → esm/core}/validation/index.js +1 -1
  281. package/dist/esm/{validation → core/validation}/validate-axes.js +1 -1
  282. package/dist/esm/core/zoom/index.d.ts +1 -0
  283. package/dist/esm/core/zoom/index.js +1 -0
  284. package/dist/esm/{utils/chart → core/zoom}/zoom.d.ts +3 -1
  285. package/dist/esm/{utils/chart → core/zoom}/zoom.js +1 -1
  286. package/dist/esm/hooks/index.d.ts +5 -5
  287. package/dist/esm/hooks/index.js +5 -5
  288. package/dist/esm/hooks/useAxis/index.d.ts +4 -4
  289. package/dist/esm/hooks/useAxis/index.js +3 -3
  290. package/dist/esm/hooks/useAxis/types.d.ts +1 -84
  291. package/dist/esm/hooks/useAxis/types.js +1 -1
  292. package/dist/esm/hooks/useAxisScales/index.d.ts +4 -4
  293. package/dist/esm/hooks/useAxisScales/index.js +6 -6
  294. package/dist/esm/hooks/useBrush/types.d.ts +1 -1
  295. package/dist/esm/hooks/useCrosshair/index.js +1 -1
  296. package/dist/esm/hooks/useCrosshair/useCrosshairHover.js +1 -1
  297. package/dist/esm/hooks/useRangeSlider/index.d.ts +1 -1
  298. package/dist/esm/hooks/useRangeSlider/index.js +2 -2
  299. package/dist/esm/hooks/useRangeSlider/types.d.ts +1 -1
  300. package/dist/esm/hooks/useRangeSlider/utils.d.ts +1 -1
  301. package/dist/esm/hooks/useRangeSlider/utils.js +1 -1
  302. package/dist/esm/hooks/useSeries/index.d.ts +1 -1
  303. package/dist/esm/hooks/useSeries/index.js +2 -2
  304. package/dist/esm/hooks/useSeries/types.d.ts +1 -346
  305. package/dist/esm/hooks/useSeries/types.js +1 -1
  306. package/dist/esm/hooks/useSeries/utils.d.ts +1 -11
  307. package/dist/esm/hooks/useSeries/utils.js +1 -37
  308. package/dist/esm/hooks/useShapes/area/index.js +2 -1
  309. package/dist/esm/hooks/useShapes/area/prepare-data.d.ts +2 -2
  310. package/dist/esm/hooks/useShapes/area/prepare-data.js +2 -2
  311. package/dist/esm/hooks/useShapes/bar-x/index.js +2 -1
  312. package/dist/esm/hooks/useShapes/bar-x/prepare-data.d.ts +2 -2
  313. package/dist/esm/hooks/useShapes/bar-x/prepare-data.js +2 -2
  314. package/dist/esm/hooks/useShapes/bar-y/prepare-data.d.ts +1 -1
  315. package/dist/esm/hooks/useShapes/bar-y/prepare-data.js +2 -2
  316. package/dist/esm/hooks/useShapes/funnel/index.js +2 -1
  317. package/dist/esm/hooks/useShapes/funnel/prepare-data.js +1 -1
  318. package/dist/esm/hooks/useShapes/funnel/types.d.ts +1 -1
  319. package/dist/esm/hooks/useShapes/heatmap/prepare-data.d.ts +1 -1
  320. package/dist/esm/hooks/useShapes/heatmap/prepare-data.js +1 -1
  321. package/dist/esm/hooks/useShapes/index.d.ts +3 -3
  322. package/dist/esm/hooks/useShapes/index.js +2 -2
  323. package/dist/esm/hooks/useShapes/line/index.js +2 -1
  324. package/dist/esm/hooks/useShapes/line/prepare-data.d.ts +2 -2
  325. package/dist/esm/hooks/useShapes/line/prepare-data.js +2 -2
  326. package/dist/esm/hooks/useShapes/line/types.d.ts +1 -1
  327. package/dist/esm/hooks/useShapes/marker.d.ts +1 -1
  328. package/dist/esm/hooks/useShapes/marker.js +3 -2
  329. package/dist/esm/hooks/useShapes/pie/index.js +2 -1
  330. package/dist/esm/hooks/useShapes/pie/prepare-data.js +3 -3
  331. package/dist/esm/hooks/useShapes/radar/prepare-data.js +2 -2
  332. package/dist/esm/hooks/useShapes/sankey/prepare-data.js +1 -1
  333. package/dist/esm/hooks/useShapes/scatter/prepare-data.d.ts +1 -1
  334. package/dist/esm/hooks/useShapes/scatter/prepare-data.js +1 -1
  335. package/dist/esm/hooks/useShapes/treemap/prepare-data.js +3 -3
  336. package/dist/esm/hooks/useShapes/utils.d.ts +1 -1
  337. package/dist/esm/hooks/useShapes/utils.js +1 -1
  338. package/dist/esm/hooks/useShapes/waterfall/index.js +3 -2
  339. package/dist/esm/hooks/useShapes/waterfall/prepare-data.d.ts +1 -1
  340. package/dist/esm/hooks/useShapes/waterfall/prepare-data.js +2 -2
  341. package/dist/esm/hooks/useZoom/index.d.ts +2 -2
  342. package/dist/esm/hooks/useZoom/utils.d.ts +2 -2
  343. package/dist/esm/hooks/useZoom/utils.js +1 -1
  344. package/dist/esm/hooks/utils/bar-y.d.ts +1 -1
  345. package/dist/esm/hooks/utils/bar-y.js +1 -1
  346. package/dist/esm/hooks/utils/get-band-size.js +1 -1
  347. package/dist/esm/index.d.ts +3 -2
  348. package/dist/esm/index.js +3 -2
  349. package/dist/esm/types/chart-ui.d.ts +1 -1
  350. package/dist/esm/types/index.d.ts +1 -96
  351. package/dist/esm/types/index.js +1 -24
  352. package/dist/esm/utils/chart-ui/pie-center-text.js +2 -2
  353. package/dist/esm/utils/index.d.ts +0 -3
  354. package/dist/esm/utils/index.js +0 -3
  355. package/package.json +1 -1
  356. package/dist/cjs/types/formatter.d.ts +0 -13
  357. package/dist/esm/types/formatter.d.ts +0 -13
  358. /package/dist/cjs/{hooks/useAxis → core/axes}/range-slider.d.ts +0 -0
  359. /package/dist/cjs/{hooks/useAxisScales → core/axes}/types.js +0 -0
  360. /package/dist/cjs/{hooks/useAxis → core/axes}/utils.d.ts +0 -0
  361. /package/dist/cjs/{hooks/useAxis → core/axes}/x-axis.d.ts +0 -0
  362. /package/dist/cjs/{constants → core/constants}/axis.d.ts +0 -0
  363. /package/dist/cjs/{constants → core/constants}/axis.js +0 -0
  364. /package/dist/cjs/{constants → core/constants}/chart-types.d.ts +0 -0
  365. /package/dist/cjs/{constants → core/constants}/chart-types.js +0 -0
  366. /package/dist/cjs/{constants → core/constants}/datetime.d.ts +0 -0
  367. /package/dist/cjs/{constants → core/constants}/datetime.js +0 -0
  368. /package/dist/cjs/{constants → core/constants}/defaults/axis.d.ts +0 -0
  369. /package/dist/cjs/{constants → core/constants}/defaults/axis.js +0 -0
  370. /package/dist/cjs/{constants → core/constants}/defaults/brush.d.ts +0 -0
  371. /package/dist/cjs/{constants → core/constants}/defaults/brush.js +0 -0
  372. /package/dist/cjs/{constants → core/constants}/defaults/data-labels.d.ts +0 -0
  373. /package/dist/cjs/{constants → core/constants}/defaults/data-labels.js +0 -0
  374. /package/dist/cjs/{constants → core/constants}/defaults/index.d.ts +0 -0
  375. /package/dist/cjs/{constants → core/constants}/defaults/index.js +0 -0
  376. /package/dist/cjs/{constants → core/constants}/defaults/legend.d.ts +0 -0
  377. /package/dist/cjs/{constants → core/constants}/defaults/legend.js +0 -0
  378. /package/dist/cjs/{constants → core/constants}/defaults/series-options.d.ts +0 -0
  379. /package/dist/cjs/{constants → core/constants}/defaults/series-options.js +0 -0
  380. /package/dist/cjs/{constants → core/constants}/index.d.ts +0 -0
  381. /package/dist/cjs/{constants → core/constants}/index.js +0 -0
  382. /package/dist/cjs/{constants → core/constants}/layout-algorithms.d.ts +0 -0
  383. /package/dist/cjs/{constants → core/constants}/layout-algorithms.js +0 -0
  384. /package/dist/cjs/{constants → core/constants}/line-styles.d.ts +0 -0
  385. /package/dist/cjs/{constants → core/constants}/line-styles.js +0 -0
  386. /package/dist/cjs/{constants → core/constants}/misc.d.ts +0 -0
  387. /package/dist/cjs/{constants → core/constants}/misc.js +0 -0
  388. /package/dist/cjs/{constants → core/constants}/palette.d.ts +0 -0
  389. /package/dist/cjs/{constants → core/constants}/palette.js +0 -0
  390. /package/dist/cjs/{constants → core/constants}/symbol-types.d.ts +0 -0
  391. /package/dist/cjs/{constants → core/constants}/symbol-types.js +0 -0
  392. /package/dist/cjs/{constants → core/constants}/tooltip.d.ts +0 -0
  393. /package/dist/cjs/{constants → core/constants}/tooltip.js +0 -0
  394. /package/dist/cjs/{constants → core/constants}/typography.d.ts +0 -0
  395. /package/dist/cjs/{constants → core/constants}/typography.js +0 -0
  396. /package/dist/cjs/{constants → core/constants}/zoom.d.ts +0 -0
  397. /package/dist/cjs/{constants → core/constants}/zoom.js +0 -0
  398. /package/dist/cjs/{i18n → core/i18n}/index.d.ts +0 -0
  399. /package/dist/cjs/{i18n → core/i18n}/index.js +0 -0
  400. /package/dist/cjs/{i18n → core/i18n}/keysets/en.json +0 -0
  401. /package/dist/cjs/{i18n → core/i18n}/keysets/ru.json +0 -0
  402. /package/dist/cjs/{hooks/useSplit/types.d.ts → core/layout/split-types.d.ts} +0 -0
  403. /package/dist/cjs/{hooks/useSplit/types.js → core/layout/split-types.js} +0 -0
  404. /package/dist/cjs/{hooks/useAxisScales → core/scales}/types.d.ts +0 -0
  405. /package/dist/cjs/{utils/chart → core/scales}/types.js +0 -0
  406. /package/dist/cjs/{hooks/useSeries → core/series}/constants.js +0 -0
  407. /package/dist/cjs/{hooks/useSeries → core/series}/prepare-bar-x.d.ts +0 -0
  408. /package/dist/cjs/{hooks/useSeries → core/series}/prepare-bar-y.d.ts +0 -0
  409. /package/dist/cjs/{hooks/useSeries → core/series}/prepare-funnel.d.ts +0 -0
  410. /package/dist/cjs/{hooks/useSeries → core/series}/prepare-heatmap.d.ts +0 -0
  411. /package/dist/cjs/{hooks/useSeries → core/series}/prepare-options.d.ts +0 -0
  412. /package/dist/cjs/{hooks/useSeries → core/series}/prepare-pie.d.ts +0 -0
  413. /package/dist/cjs/{hooks/useSeries → core/series}/prepare-sankey.d.ts +0 -0
  414. /package/dist/cjs/{hooks/useSeries → core/series}/prepare-scatter.d.ts +0 -0
  415. /package/dist/cjs/{hooks/useSeries → core/series}/prepare-treemap.d.ts +0 -0
  416. /package/dist/cjs/{hooks/useSeries → core/series}/prepare-waterfall.d.ts +0 -0
  417. /package/dist/cjs/{hooks/useSeries → core/series}/prepareSeries.d.ts +0 -0
  418. /package/dist/cjs/{hooks/useSeries → core/series}/prepareSeries.js +0 -0
  419. /package/dist/{esm/hooks/useAxisScales → cjs/core/series}/types.js +0 -0
  420. /package/dist/cjs/{types → core/types}/chart/area.d.ts +0 -0
  421. /package/dist/cjs/{types → core/types}/chart/area.js +0 -0
  422. /package/dist/cjs/{types → core/types}/chart/axis.d.ts +0 -0
  423. /package/dist/cjs/{types → core/types}/chart/axis.js +0 -0
  424. /package/dist/cjs/{types → core/types}/chart/bar-x.d.ts +0 -0
  425. /package/dist/cjs/{types → core/types}/chart/bar-x.js +0 -0
  426. /package/dist/cjs/{types → core/types}/chart/bar-y.d.ts +0 -0
  427. /package/dist/cjs/{types → core/types}/chart/bar-y.js +0 -0
  428. /package/dist/cjs/{types → core/types}/chart/base.js +0 -0
  429. /package/dist/cjs/{types → core/types}/chart/brush.d.ts +0 -0
  430. /package/dist/cjs/{types → core/types}/chart/brush.js +0 -0
  431. /package/dist/cjs/{types → core/types}/chart/chart.d.ts +0 -0
  432. /package/dist/cjs/{types → core/types}/chart/chart.js +0 -0
  433. /package/dist/cjs/{types → core/types}/chart/funnel.d.ts +0 -0
  434. /package/dist/cjs/{types → core/types}/chart/funnel.js +0 -0
  435. /package/dist/cjs/{types → core/types}/chart/halo.d.ts +0 -0
  436. /package/dist/cjs/{types → core/types}/chart/halo.js +0 -0
  437. /package/dist/cjs/{types → core/types}/chart/heatmap.d.ts +0 -0
  438. /package/dist/cjs/{types → core/types}/chart/heatmap.js +0 -0
  439. /package/dist/cjs/{types → core/types}/chart/legend.d.ts +0 -0
  440. /package/dist/cjs/{types → core/types}/chart/legend.js +0 -0
  441. /package/dist/cjs/{types → core/types}/chart/line.d.ts +0 -0
  442. /package/dist/cjs/{types → core/types}/chart/line.js +0 -0
  443. /package/dist/cjs/{types → core/types}/chart/marker.d.ts +0 -0
  444. /package/dist/cjs/{types → core/types}/chart/marker.js +0 -0
  445. /package/dist/cjs/{types → core/types}/chart/pie.d.ts +0 -0
  446. /package/dist/cjs/{types → core/types}/chart/pie.js +0 -0
  447. /package/dist/cjs/{types → core/types}/chart/radar.d.ts +0 -0
  448. /package/dist/cjs/{types → core/types}/chart/radar.js +0 -0
  449. /package/dist/cjs/{types → core/types}/chart/sankey.d.ts +0 -0
  450. /package/dist/cjs/{types → core/types}/chart/sankey.js +0 -0
  451. /package/dist/cjs/{types → core/types}/chart/scatter.d.ts +0 -0
  452. /package/dist/cjs/{types → core/types}/chart/scatter.js +0 -0
  453. /package/dist/cjs/{types → core/types}/chart/series.d.ts +0 -0
  454. /package/dist/cjs/{types → core/types}/chart/series.js +0 -0
  455. /package/dist/cjs/{types → core/types}/chart/split.d.ts +0 -0
  456. /package/dist/cjs/{types → core/types}/chart/split.js +0 -0
  457. /package/dist/cjs/{types → core/types}/chart/title.d.ts +0 -0
  458. /package/dist/cjs/{types → core/types}/chart/title.js +0 -0
  459. /package/dist/cjs/{types → core/types}/chart/tooltip.js +0 -0
  460. /package/dist/cjs/{types → core/types}/chart/treemap.d.ts +0 -0
  461. /package/dist/cjs/{types → core/types}/chart/treemap.js +0 -0
  462. /package/dist/cjs/{types → core/types}/chart/waterfall.d.ts +0 -0
  463. /package/dist/cjs/{types → core/types}/chart/waterfall.js +0 -0
  464. /package/dist/cjs/{types → core/types}/chart/zoom.d.ts +0 -0
  465. /package/dist/cjs/{types → core/types}/chart/zoom.js +0 -0
  466. /package/dist/cjs/{types → core/types}/formatter.js +0 -0
  467. /package/dist/cjs/{types → core/types}/misc.d.ts +0 -0
  468. /package/dist/cjs/{types → core/types}/misc.js +0 -0
  469. /package/dist/cjs/{utils/chart → core/utils}/array.d.ts +0 -0
  470. /package/dist/cjs/{utils/chart → core/utils}/array.js +0 -0
  471. /package/dist/cjs/{utils/chart → core/utils}/axis/common.d.ts +0 -0
  472. /package/dist/cjs/{utils/chart → core/utils}/axis/common.js +0 -0
  473. /package/dist/cjs/{utils/chart → core/utils}/axis/x-axis.d.ts +0 -0
  474. /package/dist/cjs/{utils/chart → core/utils}/axis/x-axis.js +0 -0
  475. /package/dist/cjs/{utils/chart → core/utils}/axis-generators/bottom.d.ts +0 -0
  476. /package/dist/cjs/{utils/chart → core/utils}/axis-generators/bottom.js +0 -0
  477. /package/dist/cjs/{utils/chart → core/utils}/axis-generators/index.d.ts +0 -0
  478. /package/dist/cjs/{utils/chart → core/utils}/axis-generators/index.js +0 -0
  479. /package/dist/cjs/{utils/chart → core/utils}/color.d.ts +0 -0
  480. /package/dist/cjs/{utils/chart → core/utils}/color.js +0 -0
  481. /package/dist/cjs/{utils/chart → core/utils}/common.d.ts +0 -0
  482. /package/dist/cjs/{utils → core/utils}/dispatcher.d.ts +0 -0
  483. /package/dist/cjs/{utils → core/utils}/dispatcher.js +0 -0
  484. /package/dist/cjs/{utils/chart → core/utils}/get-closest-data.d.ts +0 -0
  485. /package/dist/cjs/{utils/chart → core/utils}/get-hovered-plots.js +0 -0
  486. /package/dist/cjs/{utils/chart → core/utils}/labels.d.ts +0 -0
  487. /package/dist/cjs/{utils/chart → core/utils}/labels.js +0 -0
  488. /package/dist/cjs/{utils/chart → core/utils}/legend.d.ts +0 -0
  489. /package/dist/cjs/{utils/chart → core/utils}/legend.js +0 -0
  490. /package/dist/cjs/{utils/chart → core/utils}/math.d.ts +0 -0
  491. /package/dist/cjs/{utils/chart → core/utils}/math.js +0 -0
  492. /package/dist/cjs/{utils → core/utils}/misc.d.ts +0 -0
  493. /package/dist/cjs/{utils → core/utils}/misc.js +0 -0
  494. /package/dist/cjs/{utils/chart → core/utils}/series/index.d.ts +0 -0
  495. /package/dist/cjs/{utils/chart → core/utils}/series/index.js +0 -0
  496. /package/dist/cjs/{utils/chart → core/utils}/series/line.js +0 -0
  497. /package/dist/cjs/{utils/chart → core/utils}/series/sorting.d.ts +0 -0
  498. /package/dist/cjs/{utils/chart → core/utils}/series/waterfall.d.ts +0 -0
  499. /package/dist/cjs/{utils/chart → core/utils}/series/waterfall.js +0 -0
  500. /package/dist/cjs/{utils/chart → core/utils}/series-type-guards.d.ts +0 -0
  501. /package/dist/cjs/{utils/chart → core/utils}/series-type-guards.js +0 -0
  502. /package/dist/cjs/{utils/chart → core/utils}/text.d.ts +0 -0
  503. /package/dist/cjs/{utils/chart → core/utils}/ticks/datetime.d.ts +0 -0
  504. /package/dist/cjs/{utils/chart → core/utils}/ticks/index.d.ts +0 -0
  505. /package/dist/cjs/{utils/chart → core/utils}/ticks/index.js +0 -0
  506. /package/dist/cjs/{utils/chart → core/utils}/time.d.ts +0 -0
  507. /package/dist/cjs/{utils/chart → core/utils}/time.js +0 -0
  508. /package/dist/cjs/{utils/chart → core/utils}/tooltip.d.ts +0 -0
  509. /package/dist/cjs/{utils/chart → core/utils}/tooltip.js +0 -0
  510. /package/dist/cjs/{utils/chart → core/utils}/types.d.ts +0 -0
  511. /package/dist/{esm/hooks/useSplit → cjs/core/utils}/types.js +0 -0
  512. /package/dist/cjs/{validation → core/validation}/index.d.ts +0 -0
  513. /package/dist/cjs/{validation → core/validation}/validate-axes.d.ts +0 -0
  514. /package/dist/esm/{hooks/useAxis → core/axes}/range-slider.d.ts +0 -0
  515. /package/dist/esm/{utils/chart → core/axes}/types.js +0 -0
  516. /package/dist/esm/{hooks/useAxis → core/axes}/utils.d.ts +0 -0
  517. /package/dist/esm/{hooks/useAxis → core/axes}/x-axis.d.ts +0 -0
  518. /package/dist/esm/{constants → core/constants}/axis.d.ts +0 -0
  519. /package/dist/esm/{constants → core/constants}/axis.js +0 -0
  520. /package/dist/esm/{constants → core/constants}/chart-types.d.ts +0 -0
  521. /package/dist/esm/{constants → core/constants}/chart-types.js +0 -0
  522. /package/dist/esm/{constants → core/constants}/datetime.d.ts +0 -0
  523. /package/dist/esm/{constants → core/constants}/datetime.js +0 -0
  524. /package/dist/esm/{constants → core/constants}/defaults/axis.d.ts +0 -0
  525. /package/dist/esm/{constants → core/constants}/defaults/axis.js +0 -0
  526. /package/dist/esm/{constants → core/constants}/defaults/brush.d.ts +0 -0
  527. /package/dist/esm/{constants → core/constants}/defaults/brush.js +0 -0
  528. /package/dist/esm/{constants → core/constants}/defaults/data-labels.d.ts +0 -0
  529. /package/dist/esm/{constants → core/constants}/defaults/data-labels.js +0 -0
  530. /package/dist/esm/{constants → core/constants}/defaults/index.d.ts +0 -0
  531. /package/dist/esm/{constants → core/constants}/defaults/index.js +0 -0
  532. /package/dist/esm/{constants → core/constants}/defaults/legend.d.ts +0 -0
  533. /package/dist/esm/{constants → core/constants}/defaults/legend.js +0 -0
  534. /package/dist/esm/{constants → core/constants}/defaults/series-options.d.ts +0 -0
  535. /package/dist/esm/{constants → core/constants}/defaults/series-options.js +0 -0
  536. /package/dist/esm/{constants → core/constants}/index.d.ts +0 -0
  537. /package/dist/esm/{constants → core/constants}/index.js +0 -0
  538. /package/dist/esm/{constants → core/constants}/layout-algorithms.d.ts +0 -0
  539. /package/dist/esm/{constants → core/constants}/layout-algorithms.js +0 -0
  540. /package/dist/esm/{constants → core/constants}/line-styles.d.ts +0 -0
  541. /package/dist/esm/{constants → core/constants}/line-styles.js +0 -0
  542. /package/dist/esm/{constants → core/constants}/misc.d.ts +0 -0
  543. /package/dist/esm/{constants → core/constants}/misc.js +0 -0
  544. /package/dist/esm/{constants → core/constants}/palette.d.ts +0 -0
  545. /package/dist/esm/{constants → core/constants}/palette.js +0 -0
  546. /package/dist/esm/{constants → core/constants}/symbol-types.d.ts +0 -0
  547. /package/dist/esm/{constants → core/constants}/symbol-types.js +0 -0
  548. /package/dist/esm/{constants → core/constants}/tooltip.d.ts +0 -0
  549. /package/dist/esm/{constants → core/constants}/tooltip.js +0 -0
  550. /package/dist/esm/{constants → core/constants}/typography.d.ts +0 -0
  551. /package/dist/esm/{constants → core/constants}/typography.js +0 -0
  552. /package/dist/esm/{constants → core/constants}/zoom.d.ts +0 -0
  553. /package/dist/esm/{constants → core/constants}/zoom.js +0 -0
  554. /package/dist/esm/{i18n → core/i18n}/index.d.ts +0 -0
  555. /package/dist/esm/{i18n → core/i18n}/index.js +0 -0
  556. /package/dist/esm/{i18n → core/i18n}/keysets/en.json +0 -0
  557. /package/dist/esm/{i18n → core/i18n}/keysets/ru.json +0 -0
  558. /package/dist/esm/{hooks/useSplit/types.d.ts → core/layout/split-types.d.ts} +0 -0
  559. /package/dist/esm/{types/chart/area.js → core/layout/split-types.js} +0 -0
  560. /package/dist/esm/{hooks/useAxisScales → core/scales}/types.d.ts +0 -0
  561. /package/dist/esm/{types/chart/axis.js → core/scales/types.js} +0 -0
  562. /package/dist/esm/{hooks/useSeries → core/series}/constants.js +0 -0
  563. /package/dist/esm/{hooks/useSeries → core/series}/prepare-bar-x.d.ts +0 -0
  564. /package/dist/esm/{hooks/useSeries → core/series}/prepare-funnel.d.ts +0 -0
  565. /package/dist/esm/{hooks/useSeries → core/series}/prepare-heatmap.d.ts +0 -0
  566. /package/dist/esm/{hooks/useSeries → core/series}/prepare-options.d.ts +0 -0
  567. /package/dist/esm/{hooks/useSeries → core/series}/prepare-pie.d.ts +0 -0
  568. /package/dist/esm/{hooks/useSeries → core/series}/prepare-sankey.d.ts +0 -0
  569. /package/dist/esm/{hooks/useSeries → core/series}/prepare-scatter.d.ts +0 -0
  570. /package/dist/esm/{hooks/useSeries → core/series}/prepare-treemap.d.ts +0 -0
  571. /package/dist/esm/{hooks/useSeries → core/series}/prepare-waterfall.d.ts +0 -0
  572. /package/dist/esm/{hooks/useSeries → core/series}/prepareSeries.d.ts +0 -0
  573. /package/dist/esm/{hooks/useSeries → core/series}/prepareSeries.js +0 -0
  574. /package/dist/esm/{types/chart/bar-x.js → core/series/types.js} +0 -0
  575. /package/dist/esm/{types → core/types}/chart/area.d.ts +0 -0
  576. /package/dist/esm/{types/chart/bar-y.js → core/types/chart/area.js} +0 -0
  577. /package/dist/esm/{types → core/types}/chart/axis.d.ts +0 -0
  578. /package/dist/esm/{types/chart/base.js → core/types/chart/axis.js} +0 -0
  579. /package/dist/esm/{types → core/types}/chart/bar-x.d.ts +0 -0
  580. /package/dist/esm/{types/chart/brush.js → core/types/chart/bar-x.js} +0 -0
  581. /package/dist/esm/{types → core/types}/chart/bar-y.d.ts +0 -0
  582. /package/dist/esm/{types/chart/chart.js → core/types/chart/bar-y.js} +0 -0
  583. /package/dist/esm/{types/chart/funnel.js → core/types/chart/base.js} +0 -0
  584. /package/dist/esm/{types → core/types}/chart/brush.d.ts +0 -0
  585. /package/dist/esm/{types/chart/halo.js → core/types/chart/brush.js} +0 -0
  586. /package/dist/esm/{types → core/types}/chart/chart.d.ts +0 -0
  587. /package/dist/esm/{types/chart/heatmap.js → core/types/chart/chart.js} +0 -0
  588. /package/dist/esm/{types → core/types}/chart/funnel.d.ts +0 -0
  589. /package/dist/esm/{types/chart/legend.js → core/types/chart/funnel.js} +0 -0
  590. /package/dist/esm/{types → core/types}/chart/halo.d.ts +0 -0
  591. /package/dist/esm/{types/chart/line.js → core/types/chart/halo.js} +0 -0
  592. /package/dist/esm/{types → core/types}/chart/heatmap.d.ts +0 -0
  593. /package/dist/esm/{types/chart/marker.js → core/types/chart/heatmap.js} +0 -0
  594. /package/dist/esm/{types → core/types}/chart/legend.d.ts +0 -0
  595. /package/dist/esm/{types/chart/pie.js → core/types/chart/legend.js} +0 -0
  596. /package/dist/esm/{types → core/types}/chart/line.d.ts +0 -0
  597. /package/dist/esm/{types/chart/radar.js → core/types/chart/line.js} +0 -0
  598. /package/dist/esm/{types → core/types}/chart/marker.d.ts +0 -0
  599. /package/dist/esm/{types/chart/sankey.js → core/types/chart/marker.js} +0 -0
  600. /package/dist/esm/{types → core/types}/chart/pie.d.ts +0 -0
  601. /package/dist/esm/{types/chart/scatter.js → core/types/chart/pie.js} +0 -0
  602. /package/dist/esm/{types → core/types}/chart/radar.d.ts +0 -0
  603. /package/dist/esm/{types/chart/series.js → core/types/chart/radar.js} +0 -0
  604. /package/dist/esm/{types → core/types}/chart/sankey.d.ts +0 -0
  605. /package/dist/esm/{types/chart/split.js → core/types/chart/sankey.js} +0 -0
  606. /package/dist/esm/{types → core/types}/chart/scatter.d.ts +0 -0
  607. /package/dist/esm/{types/chart/title.js → core/types/chart/scatter.js} +0 -0
  608. /package/dist/esm/{types → core/types}/chart/series.d.ts +0 -0
  609. /package/dist/esm/{types/chart/tooltip.js → core/types/chart/series.js} +0 -0
  610. /package/dist/esm/{types → core/types}/chart/split.d.ts +0 -0
  611. /package/dist/esm/{types/chart/treemap.js → core/types/chart/split.js} +0 -0
  612. /package/dist/esm/{types → core/types}/chart/title.d.ts +0 -0
  613. /package/dist/esm/{types/chart/waterfall.js → core/types/chart/title.js} +0 -0
  614. /package/dist/esm/{types/chart/zoom.js → core/types/chart/tooltip.js} +0 -0
  615. /package/dist/esm/{types → core/types}/chart/treemap.d.ts +0 -0
  616. /package/dist/esm/{types/formatter.js → core/types/chart/treemap.js} +0 -0
  617. /package/dist/esm/{types → core/types}/chart/waterfall.d.ts +0 -0
  618. /package/dist/esm/{types/misc.js → core/types/chart/waterfall.js} +0 -0
  619. /package/dist/esm/{types → core/types}/chart/zoom.d.ts +0 -0
  620. /package/dist/esm/{types → core/types}/misc.d.ts +0 -0
  621. /package/dist/esm/{utils/chart → core/utils}/array.d.ts +0 -0
  622. /package/dist/esm/{utils/chart → core/utils}/array.js +0 -0
  623. /package/dist/esm/{utils/chart → core/utils}/axis/common.d.ts +0 -0
  624. /package/dist/esm/{utils/chart → core/utils}/axis/common.js +0 -0
  625. /package/dist/esm/{utils/chart → core/utils}/axis/x-axis.d.ts +0 -0
  626. /package/dist/esm/{utils/chart → core/utils}/axis/x-axis.js +0 -0
  627. /package/dist/esm/{utils/chart → core/utils}/axis-generators/bottom.d.ts +0 -0
  628. /package/dist/esm/{utils/chart → core/utils}/axis-generators/bottom.js +0 -0
  629. /package/dist/esm/{utils/chart → core/utils}/axis-generators/index.d.ts +0 -0
  630. /package/dist/esm/{utils/chart → core/utils}/axis-generators/index.js +0 -0
  631. /package/dist/esm/{utils/chart → core/utils}/color.d.ts +0 -0
  632. /package/dist/esm/{utils/chart → core/utils}/color.js +0 -0
  633. /package/dist/esm/{utils/chart → core/utils}/common.d.ts +0 -0
  634. /package/dist/esm/{utils → core/utils}/dispatcher.d.ts +0 -0
  635. /package/dist/esm/{utils → core/utils}/dispatcher.js +0 -0
  636. /package/dist/esm/{utils/chart → core/utils}/get-closest-data.d.ts +0 -0
  637. /package/dist/esm/{utils/chart → core/utils}/get-hovered-plots.js +0 -0
  638. /package/dist/esm/{utils/chart → core/utils}/labels.d.ts +0 -0
  639. /package/dist/esm/{utils/chart → core/utils}/labels.js +0 -0
  640. /package/dist/esm/{utils/chart → core/utils}/legend.d.ts +0 -0
  641. /package/dist/esm/{utils/chart → core/utils}/legend.js +0 -0
  642. /package/dist/esm/{utils/chart → core/utils}/math.d.ts +0 -0
  643. /package/dist/esm/{utils/chart → core/utils}/math.js +0 -0
  644. /package/dist/esm/{utils → core/utils}/misc.d.ts +0 -0
  645. /package/dist/esm/{utils → core/utils}/misc.js +0 -0
  646. /package/dist/esm/{utils/chart → core/utils}/series/index.d.ts +0 -0
  647. /package/dist/esm/{utils/chart → core/utils}/series/index.js +0 -0
  648. /package/dist/esm/{utils/chart → core/utils}/series/line.js +0 -0
  649. /package/dist/esm/{utils/chart → core/utils}/series/sorting.d.ts +0 -0
  650. /package/dist/esm/{utils/chart → core/utils}/series/waterfall.d.ts +0 -0
  651. /package/dist/esm/{utils/chart → core/utils}/series/waterfall.js +0 -0
  652. /package/dist/esm/{utils/chart → core/utils}/series-type-guards.d.ts +0 -0
  653. /package/dist/esm/{utils/chart → core/utils}/series-type-guards.js +0 -0
  654. /package/dist/esm/{utils/chart → core/utils}/text.d.ts +0 -0
  655. /package/dist/esm/{utils/chart → core/utils}/ticks/datetime.d.ts +0 -0
  656. /package/dist/esm/{utils/chart → core/utils}/ticks/index.d.ts +0 -0
  657. /package/dist/esm/{utils/chart → core/utils}/ticks/index.js +0 -0
  658. /package/dist/esm/{utils/chart → core/utils}/time.d.ts +0 -0
  659. /package/dist/esm/{utils/chart → core/utils}/time.js +0 -0
  660. /package/dist/esm/{utils/chart → core/utils}/tooltip.js +0 -0
  661. /package/dist/esm/{utils/chart → core/utils}/types.d.ts +0 -0
  662. /package/dist/esm/{validation → core/validation}/index.d.ts +0 -0
  663. /package/dist/esm/{validation → core/validation}/validate-axes.d.ts +0 -0
@@ -1,346 +1 @@
1
- import type { DashStyle, LayoutAlgorithm, LineCap, LineJoin, SeriesOptionsDefaults, SymbolType } from '../../constants';
2
- import type { AreaSeries, AreaSeriesData, BarXSeries, BarXSeriesData, BarYSeries, BarYSeriesData, BaseTextStyle, ChartLegend, ChartSeries, ChartSeriesRangeSliderOptions, ConnectorCurve, ConnectorShape, FunnelSeries, FunnelSeriesData, HeatmapSeries, HeatmapSeriesData, LineSeries, LineSeriesData, LineSeriesLineBaseStyle, PathLegendSymbolOptions, PieSeries, PieSeriesData, RadarSeries, RadarSeriesCategory, RadarSeriesData, RectLegendSymbolOptions, SankeySeries, SankeySeriesData, ScatterSeries, ScatterSeriesData, SymbolLegendSymbolOptions, TreemapSeries, TreemapSeriesData, ValueFormat, WaterfallSeries, WaterfallSeriesData } from '../../types';
3
- export type RectLegendSymbol = {
4
- shape: 'rect';
5
- } & Required<RectLegendSymbolOptions>;
6
- export type PathLegendSymbol = {
7
- shape: 'path';
8
- strokeWidth: number;
9
- } & Required<PathLegendSymbolOptions>;
10
- export type SymbolLegendSymbol = {
11
- shape: 'symbol';
12
- symbolType: `${SymbolType}`;
13
- } & Required<SymbolLegendSymbolOptions>;
14
- export type PreparedLegendSymbol = (RectLegendSymbol | PathLegendSymbol | SymbolLegendSymbol) & {
15
- bboxWidth: number;
16
- };
17
- export type PreparedLegend = Required<Omit<ChartLegend, 'title' | 'colorScale'>> & {
18
- height: number;
19
- lineHeight: number;
20
- title: {
21
- enable: boolean;
22
- text: string;
23
- margin: number;
24
- style: BaseTextStyle;
25
- height: number;
26
- align: Required<Required<ChartLegend>['title']>['align'];
27
- };
28
- ticks: {
29
- labelsMargin: number;
30
- labelsLineHeight: number;
31
- style: BaseTextStyle;
32
- };
33
- colorScale: {
34
- colors: string[];
35
- domain: number[];
36
- stops: number[];
37
- };
38
- };
39
- export type OnLegendItemClick = (data: {
40
- id: string;
41
- name: string;
42
- metaKey: boolean;
43
- }) => void;
44
- export type LegendItem = {
45
- id: string;
46
- color: string;
47
- height: number;
48
- name: string;
49
- text: string;
50
- symbol: PreparedLegendSymbol;
51
- textWidth: number;
52
- dashStyle?: DashStyle;
53
- overflowed?: boolean;
54
- visible?: boolean;
55
- };
56
- export type PreparedHaloOptions = {
57
- enabled: boolean;
58
- opacity: number;
59
- size: number;
60
- };
61
- type BasePreparedSeries = {
62
- color: string;
63
- name: string;
64
- id: string;
65
- visible: boolean;
66
- legend: {
67
- groupId: string;
68
- itemText: string;
69
- enabled: boolean;
70
- symbol: PreparedLegendSymbol;
71
- };
72
- cursor: string | null;
73
- tooltip: ChartSeries['tooltip'];
74
- };
75
- type BasePreparedAxisRelatedSeries = {
76
- rangeSlider: Required<ChartSeriesRangeSliderOptions> & Partial<LineSeriesLineBaseStyle>;
77
- };
78
- export type PreparedScatterSeries = {
79
- type: ScatterSeries['type'];
80
- data: ScatterSeriesData[];
81
- marker: {
82
- states: {
83
- normal: {
84
- symbol: `${SymbolType}`;
85
- enabled: boolean;
86
- radius: number;
87
- borderWidth: number;
88
- borderColor: string;
89
- };
90
- hover: {
91
- enabled: boolean;
92
- radius: number;
93
- borderWidth: number;
94
- borderColor: string;
95
- halo: PreparedHaloOptions;
96
- };
97
- };
98
- };
99
- yAxis: number;
100
- } & BasePreparedSeries & BasePreparedAxisRelatedSeries;
101
- export type PreparedBarXSeries = {
102
- type: BarXSeries['type'];
103
- data: BarXSeriesData[];
104
- stackId: string;
105
- stacking: BarXSeries['stacking'];
106
- dataLabels: {
107
- enabled: boolean;
108
- inside: boolean;
109
- style: BaseTextStyle;
110
- allowOverlap: boolean;
111
- padding: number;
112
- html: boolean;
113
- format?: ValueFormat;
114
- };
115
- borderRadius: number;
116
- yAxis: number;
117
- } & BasePreparedSeries & BasePreparedAxisRelatedSeries;
118
- export type PreparedBarYSeries = {
119
- type: BarYSeries['type'];
120
- data: BarYSeriesData[];
121
- stackId: string;
122
- stacking: BarYSeries['stacking'];
123
- dataLabels: {
124
- padding: number;
125
- enabled: boolean;
126
- inside: boolean;
127
- style: BaseTextStyle;
128
- maxHeight: number;
129
- maxWidth: number;
130
- html: boolean;
131
- format?: ValueFormat;
132
- allowOverlap: boolean;
133
- };
134
- borderRadius: number;
135
- borderWidth: number;
136
- borderColor: string;
137
- } & BasePreparedSeries;
138
- export type PreparedHeatmapSeries = {
139
- type: HeatmapSeries['type'];
140
- data: HeatmapSeriesData[];
141
- dataLabels: {
142
- enabled: boolean;
143
- style: BaseTextStyle;
144
- html: boolean;
145
- format?: ValueFormat;
146
- };
147
- borderWidth: number;
148
- borderColor: string;
149
- } & BasePreparedSeries;
150
- export type PreparedPieSeries = {
151
- type: PieSeries['type'];
152
- data: PieSeriesData;
153
- value: PieSeriesData['value'];
154
- borderColor: string;
155
- borderWidth: number;
156
- borderRadius: number;
157
- center?: [string | number | null, string | number | null];
158
- radius?: string | number;
159
- innerRadius?: string | number;
160
- minRadius?: string | number;
161
- stackId: string;
162
- label?: PieSeriesData['label'];
163
- dataLabels: {
164
- enabled: boolean;
165
- padding: number;
166
- style: BaseTextStyle;
167
- allowOverlap: boolean;
168
- connectorPadding: number;
169
- connectorShape: ConnectorShape;
170
- distance: number;
171
- connectorCurve: ConnectorCurve;
172
- html: boolean;
173
- format?: ValueFormat;
174
- };
175
- states: {
176
- hover: {
177
- halo: PreparedHaloOptions;
178
- };
179
- };
180
- renderCustomShape?: PieSeries['renderCustomShape'];
181
- opacity: number | null;
182
- } & BasePreparedSeries;
183
- export type PreparedLineSeries = {
184
- type: LineSeries['type'];
185
- data: LineSeriesData[];
186
- lineWidth: number;
187
- dataLabels: {
188
- enabled: boolean;
189
- style: BaseTextStyle;
190
- padding: number;
191
- allowOverlap: boolean;
192
- html: boolean;
193
- format?: ValueFormat;
194
- };
195
- marker: {
196
- states: {
197
- normal: {
198
- symbol: `${SymbolType}`;
199
- enabled: boolean;
200
- radius: number;
201
- borderWidth: number;
202
- borderColor: string;
203
- };
204
- hover: {
205
- enabled: boolean;
206
- radius: number;
207
- borderWidth: number;
208
- borderColor: string;
209
- halo: PreparedHaloOptions;
210
- };
211
- };
212
- };
213
- dashStyle: DashStyle;
214
- linecap: LineCap;
215
- linejoin: LineJoin;
216
- opacity: number | null;
217
- yAxis: number;
218
- } & BasePreparedSeries & BasePreparedAxisRelatedSeries;
219
- export type PreparedAreaSeries = {
220
- type: AreaSeries['type'];
221
- data: AreaSeriesData[];
222
- stacking: AreaSeries['stacking'];
223
- stackId: string;
224
- lineWidth: number;
225
- opacity: number;
226
- nullMode: AreaSeries['nullMode'];
227
- dataLabels: {
228
- enabled: boolean;
229
- style: BaseTextStyle;
230
- padding: number;
231
- allowOverlap: boolean;
232
- html: boolean;
233
- format?: ValueFormat;
234
- };
235
- marker: {
236
- states: {
237
- normal: {
238
- symbol: `${SymbolType}`;
239
- enabled: boolean;
240
- radius: number;
241
- borderWidth: number;
242
- borderColor: string;
243
- };
244
- hover: {
245
- enabled: boolean;
246
- radius: number;
247
- borderWidth: number;
248
- borderColor: string;
249
- halo: PreparedHaloOptions;
250
- };
251
- };
252
- };
253
- yAxis: number;
254
- } & BasePreparedSeries & BasePreparedAxisRelatedSeries;
255
- export type PreparedTreemapSeries = {
256
- type: TreemapSeries['type'];
257
- data: TreemapSeriesData[];
258
- dataLabels: {
259
- enabled: boolean;
260
- style: BaseTextStyle;
261
- padding: number;
262
- allowOverlap: boolean;
263
- html: boolean;
264
- align: Required<Required<TreemapSeries>['dataLabels']>['align'];
265
- format?: ValueFormat;
266
- };
267
- layoutAlgorithm: `${LayoutAlgorithm}`;
268
- sorting: Required<TreemapSeries['sorting']>;
269
- } & BasePreparedSeries & Required<Omit<TreemapSeries, keyof BasePreparedSeries>>;
270
- export type PreparedWaterfallSeriesData = WaterfallSeriesData & {
271
- index: number;
272
- };
273
- export type PreparedWaterfallSeries = {
274
- type: WaterfallSeries['type'];
275
- data: PreparedWaterfallSeriesData[];
276
- dataLabels: {
277
- enabled: boolean;
278
- style: BaseTextStyle;
279
- allowOverlap: boolean;
280
- padding: number;
281
- html: boolean;
282
- format?: ValueFormat;
283
- };
284
- } & BasePreparedSeries;
285
- export type PreparedSankeySeries = {
286
- type: SankeySeries['type'];
287
- data: SankeySeriesData[];
288
- dataLabels: {
289
- enabled: boolean;
290
- style: BaseTextStyle;
291
- format?: ValueFormat;
292
- };
293
- } & BasePreparedSeries & Omit<SankeySeries, keyof BasePreparedSeries>;
294
- export type PreparedRadarSeries = {
295
- type: RadarSeries['type'];
296
- data: RadarSeriesData[];
297
- categories: RadarSeriesCategory[];
298
- borderColor: string;
299
- borderWidth: number;
300
- fillOpacity: number;
301
- dataLabels: {
302
- enabled: boolean;
303
- style: BaseTextStyle;
304
- padding: number;
305
- allowOverlap: boolean;
306
- html: boolean;
307
- format?: ValueFormat;
308
- };
309
- marker: {
310
- states: {
311
- normal: {
312
- symbol: `${SymbolType}`;
313
- enabled: boolean;
314
- radius: number;
315
- borderWidth: number;
316
- borderColor: string;
317
- };
318
- hover: {
319
- enabled: boolean;
320
- radius: number;
321
- borderWidth: number;
322
- borderColor: string;
323
- halo: PreparedHaloOptions;
324
- };
325
- };
326
- };
327
- } & BasePreparedSeries;
328
- export type PreparedFunnelSeries = {
329
- type: FunnelSeries['type'];
330
- data: FunnelSeriesData;
331
- dataLabels: {
332
- enabled: boolean;
333
- style: BaseTextStyle;
334
- html: boolean;
335
- format?: ValueFormat;
336
- align: Required<Required<FunnelSeries>['dataLabels']>['align'];
337
- };
338
- connectors: Required<FunnelSeries['connectors']>;
339
- } & BasePreparedSeries;
340
- export type PreparedSeries = PreparedScatterSeries | PreparedBarXSeries | PreparedBarYSeries | PreparedPieSeries | PreparedLineSeries | PreparedAreaSeries | PreparedTreemapSeries | PreparedWaterfallSeries | PreparedSankeySeries | PreparedRadarSeries | PreparedHeatmapSeries | PreparedFunnelSeries;
341
- export type PreparedZoomableSeries = Extract<PreparedSeries, {
342
- data: Array<unknown>;
343
- }>;
344
- export type PreparedSeriesOptions = SeriesOptionsDefaults;
345
- export type StackedSeries = BarXSeries | AreaSeries | BarYSeries;
346
- export {};
1
+ export * from '~core/series/types';
@@ -1 +1 @@
1
- export {};
1
+ export * from '~core/series/types';
@@ -1,11 +1 @@
1
- import { SymbolType } from '../../constants';
2
- import type { RectLegendSymbolOptions } from '../../types';
3
- import type { PathLegendSymbol, PreparedLegendSymbol, PreparedSeries, StackedSeries } from './types';
4
- export declare const getActiveLegendItems: (series: PreparedSeries[]) => string[];
5
- export declare const getAllLegendItems: (series: PreparedSeries[]) => string[];
6
- export declare function prepareLegendSymbol(series: {
7
- legend?: {
8
- symbol?: RectLegendSymbolOptions | PathLegendSymbol;
9
- };
10
- }, symbolType?: `${SymbolType}`): PreparedLegendSymbol;
11
- export declare function getSeriesStackId(series: StackedSeries): string;
1
+ export * from '~core/series/utils';
@@ -1,37 +1 @@
1
- import memoize from 'lodash/memoize';
2
- import { SymbolType } from '../../constants';
3
- import { getSymbolBBoxWidth } from '../../utils';
4
- import { getUniqId } from '../../utils/misc';
5
- import { DEFAULT_LEGEND_SYMBOL_PADDING, DEFAULT_LEGEND_SYMBOL_SIZE } from './constants';
6
- export const getActiveLegendItems = (series) => {
7
- return series.reduce((acc, s) => {
8
- if (s.legend.enabled && s.visible) {
9
- acc.push(s.legend.groupId);
10
- }
11
- return acc;
12
- }, []);
13
- };
14
- export const getAllLegendItems = (series) => {
15
- return series.map((s) => s.legend.groupId);
16
- };
17
- export function prepareLegendSymbol(series, symbolType) {
18
- var _a;
19
- const symbolOptions = ((_a = series.legend) === null || _a === void 0 ? void 0 : _a.symbol) || {};
20
- const width = (symbolOptions === null || symbolOptions === void 0 ? void 0 : symbolOptions.width) || DEFAULT_LEGEND_SYMBOL_SIZE;
21
- const type = symbolType || SymbolType.Circle;
22
- return {
23
- shape: 'symbol',
24
- symbolType: type,
25
- width,
26
- bboxWidth: getSymbolBBoxWidth({ symbolSize: Math.pow(width, 2), symbolType: type }),
27
- padding: (symbolOptions === null || symbolOptions === void 0 ? void 0 : symbolOptions.padding) || DEFAULT_LEGEND_SYMBOL_PADDING,
28
- };
29
- }
30
- const getCommonStackId = memoize(getUniqId);
31
- export function getSeriesStackId(series) {
32
- let stackId = series.stackId;
33
- if (!stackId) {
34
- stackId = series.stacking ? getCommonStackId() : getUniqId();
35
- }
36
- return stackId;
37
- }
1
+ export * from '~core/series/utils';
@@ -3,7 +3,8 @@ import { color } from 'd3-color';
3
3
  import { select } from 'd3-selection';
4
4
  import { area as areaGenerator, line as lineGenerator } from 'd3-shape';
5
5
  import get from 'lodash/get';
6
- import { block, filterOverlappingLabels } from '../../../utils';
6
+ import { filterOverlappingLabels } from '~core/utils';
7
+ import { block } from '../../../utils';
7
8
  import { HtmlLayer } from '../HtmlLayer';
8
9
  import { getMarkerHaloVisibility, getMarkerVisibility, renderMarker, selectMarkerHalo, selectMarkerSymbol, setMarker, } from '../marker';
9
10
  import { setActiveState } from '../utils';
@@ -1,7 +1,7 @@
1
+ import type { PreparedSplit } from '~core/layout/split-types';
2
+ import type { ChartScale } from '~core/scales/types';
1
3
  import type { PreparedXAxis, PreparedYAxis } from '../../useAxis/types';
2
- import type { ChartScale } from '../../useAxisScales/types';
3
4
  import type { PreparedAreaSeries } from '../../useSeries/types';
4
- import type { PreparedSplit } from '../../useSplit/types';
5
5
  import type { PreparedAreaData } from './types';
6
6
  export declare const prepareAreaData: (args: {
7
7
  series: PreparedAreaSeries[];
@@ -1,8 +1,8 @@
1
1
  import { group } from 'd3-array';
2
2
  import isNil from 'lodash/isNil';
3
3
  import round from 'lodash/round';
4
- import { getDataCategoryValue, getLabelsSize, getTextSizeFn } from '../../../utils';
5
- import { getFormattedValue } from '../../../utils/chart/format';
4
+ import { getDataCategoryValue, getLabelsSize, getTextSizeFn } from '~core/utils';
5
+ import { getFormattedValue } from '~core/utils/format';
6
6
  import { getXValue, getYValue } from '../utils';
7
7
  function getXValues(series, xAxis, xScale) {
8
8
  const categories = xAxis.categories || [];
@@ -2,7 +2,8 @@ import React from 'react';
2
2
  import { color } from 'd3-color';
3
3
  import { select } from 'd3-selection';
4
4
  import get from 'lodash/get';
5
- import { block, filterOverlappingLabels } from '../../../utils';
5
+ import { filterOverlappingLabels } from '~core/utils';
6
+ import { block } from '../../../utils';
6
7
  import { HtmlLayer } from '../HtmlLayer';
7
8
  import { getRectPath } from '../utils';
8
9
  export { prepareBarXData } from './prepare-data';
@@ -1,7 +1,7 @@
1
+ import type { PreparedSplit } from '~core/layout/split-types';
2
+ import type { ChartScale } from '~core/scales/types';
1
3
  import type { PreparedXAxis, PreparedYAxis } from '../../useAxis/types';
2
- import type { ChartScale } from '../../useAxisScales/types';
3
4
  import type { PreparedBarXSeries, PreparedSeriesOptions } from '../../useSeries/types';
4
- import type { PreparedSplit } from '../../useSplit/types';
5
5
  import type { PreparedBarXData } from './types';
6
6
  export declare const prepareBarXData: (args: {
7
7
  series: PreparedBarXSeries[];
@@ -1,7 +1,7 @@
1
1
  import { ascending, descending, max, reverse, sort } from 'd3-array';
2
2
  import get from 'lodash/get';
3
- import { getDataCategoryValue, getLabelsSize } from '../../../utils';
4
- import { getFormattedValue } from '../../../utils/chart/format';
3
+ import { getDataCategoryValue, getLabelsSize } from '~core/utils';
4
+ import { getFormattedValue } from '~core/utils/format';
5
5
  import { MIN_BAR_GAP, MIN_BAR_GROUP_GAP, MIN_BAR_WIDTH } from '../../constants';
6
6
  import { getSeriesStackId } from '../../useSeries/utils';
7
7
  import { getBandSize } from '../../utils/get-band-size';
@@ -1,5 +1,5 @@
1
+ import type { ChartScale } from '~core/scales/types';
1
2
  import type { PreparedXAxis, PreparedYAxis } from '../../useAxis/types';
2
- import type { ChartScale } from '../../useAxisScales/types';
3
3
  import type { PreparedBarYSeries, PreparedSeriesOptions } from '../../useSeries/types';
4
4
  import type { BarYShapesArgs } from './types';
5
5
  export declare function prepareBarYData(args: {
@@ -1,7 +1,7 @@
1
1
  import { ascending, descending, sort } from 'd3-array';
2
2
  import get from 'lodash/get';
3
- import { filterOverlappingLabels, getHtmlLabelConstraintedPosition, getLabelsSize, getSvgLabelConstraintedPosition, getTextSizeFn, } from '../../../utils';
4
- import { getFormattedValue } from '../../../utils/chart/format';
3
+ import { filterOverlappingLabels, getHtmlLabelConstraintedPosition, getLabelsSize, getSvgLabelConstraintedPosition, getTextSizeFn, } from '~core/utils';
4
+ import { getFormattedValue } from '~core/utils/format';
5
5
  import { getBarYLayout, groupBarYDataByYValue } from '../../utils';
6
6
  export async function prepareBarYData(args) {
7
7
  var _a, _b;
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
2
  import { color } from 'd3-color';
3
3
  import { select } from 'd3-selection';
4
- import { block, getLineDashArray } from '../../../utils';
4
+ import { getLineDashArray } from '~core/utils';
5
+ import { block } from '../../../utils';
5
6
  export { prepareFunnelData } from './prepare-data';
6
7
  export * from './types';
7
8
  const b = block('funnel');
@@ -1,5 +1,5 @@
1
1
  import { path } from 'd3-path';
2
- import { calculateNumericProperty, getFormattedValue, getTextSizeFn } from '../../../utils';
2
+ import { calculateNumericProperty, getFormattedValue, getTextSizeFn } from '~core/utils';
3
3
  function getLineConnectorPaths(args) {
4
4
  const { points } = args;
5
5
  const leftPath = path();
@@ -1,5 +1,5 @@
1
1
  import type { Path } from 'd3-path';
2
- import type { DashStyle } from 'src/constants';
2
+ import type { DashStyle } from 'src/core/constants';
3
3
  import type { FunnelSeriesData, LabelData } from '../../../types';
4
4
  import type { PreparedFunnelSeries } from '../../useSeries/types';
5
5
  export type FunnelItemData = {
@@ -1,5 +1,5 @@
1
+ import type { ChartScale } from '~core/scales/types';
1
2
  import type { PreparedXAxis, PreparedYAxis } from '../../../hooks/useAxis/types';
2
- import type { ChartScale } from '../../../hooks/useAxisScales/types';
3
3
  import type { PreparedHeatmapSeries } from '../../useSeries/types';
4
4
  import type { PreparedHeatmapData } from './types';
5
5
  type PrepareHeatmapDataArgs = {
@@ -1,5 +1,5 @@
1
+ import { getDomainDataXBySeries, getDomainDataYBySeries, getFormattedValue, getLabelsSize, getTextSizeFn, getTextWithElipsis, isBandScale, } from '~core/utils';
1
2
  import { getBandSize } from '../../../hooks/utils/get-band-size';
2
- import { getDomainDataXBySeries, getDomainDataYBySeries, getFormattedValue, getLabelsSize, getTextSizeFn, getTextWithElipsis, isBandScale, } from '../../../utils';
3
3
  export async function prepareHeatmapData({ series, xAxis, xScale, yAxis, yScale, }) {
4
4
  var _a, _b, _c, _d, _e;
5
5
  const yDomainData = getDomainDataYBySeries([series]);
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import type { Dispatch } from 'd3-dispatch';
3
- import type { SeriesType } from '../../constants';
3
+ import type { SeriesType } from '~core/constants';
4
+ import type { PreparedSplit } from '~core/layout/split-types';
5
+ import type { ChartScale } from '~core/scales/types';
4
6
  import type { PreparedXAxis, PreparedYAxis } from '../useAxis/types';
5
- import type { ChartScale } from '../useAxisScales/types';
6
7
  import type { PreparedSeries, PreparedSeriesOptions } from '../useSeries/types';
7
- import type { PreparedSplit } from '../useSplit/types';
8
8
  import type { ZoomState } from '../useZoom/types';
9
9
  import type { PreparedAreaData } from './area/types';
10
10
  import type { PreparedBarXData } from './bar-x';
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { group } from 'd3-array';
3
- import { SERIES_TYPE } from '../../constants';
3
+ import { SERIES_TYPE } from '~core/constants';
4
+ import { getOnlyVisibleSeries } from '~core/utils';
4
5
  import { ChartError } from '../../libs';
5
- import { getOnlyVisibleSeries } from '../../utils';
6
6
  import { AreaSeriesShapes } from './area';
7
7
  import { prepareAreaData } from './area/prepare-data';
8
8
  import { BarXSeriesShapes, prepareBarXData } from './bar-x';
@@ -3,7 +3,8 @@ import { color } from 'd3-color';
3
3
  import { select } from 'd3-selection';
4
4
  import { line as lineGenerator } from 'd3-shape';
5
5
  import get from 'lodash/get';
6
- import { block, filterOverlappingLabels, getLineDashArray } from '../../../utils';
6
+ import { filterOverlappingLabels, getLineDashArray } from '~core/utils';
7
+ import { block } from '../../../utils';
7
8
  import { HtmlLayer } from '../HtmlLayer';
8
9
  import { getMarkerHaloVisibility, getMarkerVisibility, renderMarker, selectMarkerHalo, selectMarkerSymbol, setMarker, } from '../marker';
9
10
  import { setActiveState } from '../utils';
@@ -1,7 +1,7 @@
1
+ import type { PreparedSplit } from '~core/layout/split-types';
2
+ import type { ChartScale } from '~core/scales/types';
1
3
  import type { PreparedXAxis, PreparedYAxis } from '../../useAxis/types';
2
- import type { ChartScale } from '../../useAxisScales/types';
3
4
  import type { PreparedLineSeries } from '../../useSeries/types';
4
- import type { PreparedSplit } from '../../useSplit/types';
5
5
  import type { PreparedLineData } from './types';
6
6
  export declare const prepareLineData: (args: {
7
7
  series: PreparedLineSeries[];
@@ -1,5 +1,5 @@
1
- import { getLabelsSize, getTextSizeFn } from '../../../utils';
2
- import { getFormattedValue } from '../../../utils/chart/format';
1
+ import { getLabelsSize, getTextSizeFn } from '~core/utils';
2
+ import { getFormattedValue } from '~core/utils/format';
3
3
  import { getXValue, getYValue } from '../utils';
4
4
  async function getHtmlLabel(point, series, xMax) {
5
5
  var _a;
@@ -1,4 +1,4 @@
1
- import type { DashStyle, LineCap, LineJoin } from '../../../constants';
1
+ import type { DashStyle, LineCap, LineJoin } from '~core/constants';
2
2
  import type { HtmlItem, LabelData, LineSeriesData, LineSeriesLineBaseStyle } from '../../../types';
3
3
  import type { PreparedLineSeries } from '../../useSeries/types';
4
4
  export type PointData = {
@@ -1,5 +1,5 @@
1
1
  import type { BaseType, Selection } from 'd3-selection';
2
- import { SymbolType } from '../../constants';
2
+ import { SymbolType } from '~core/constants';
3
3
  import type { MarkerData as AreaMarkerData } from './area/types';
4
4
  import type { MarkerData as LineMarkerData } from './line/types';
5
5
  import type { RadarMarkerData } from './radar/types';
@@ -1,7 +1,8 @@
1
1
  import { symbol } from 'd3-shape';
2
2
  import get from 'lodash/get';
3
- import { SymbolType } from '../../constants';
4
- import { block, getSymbol } from '../../utils';
3
+ import { SymbolType } from '~core/constants';
4
+ import { getSymbol } from '~core/utils';
5
+ import { block } from '../../utils';
5
6
  const b = block('marker');
6
7
  const haloClassName = b('halo');
7
8
  const symbolClassName = b('symbol');
@@ -3,7 +3,8 @@ import { color } from 'd3-color';
3
3
  import { select } from 'd3-selection';
4
4
  import { arc } from 'd3-shape';
5
5
  import get from 'lodash/get';
6
- import { block, setEllipsisForOverflowTexts } from '../../../utils';
6
+ import { setEllipsisForOverflowTexts } from '~core/utils';
7
+ import { block } from '../../../utils';
7
8
  import { HtmlLayer } from '../HtmlLayer';
8
9
  import { setActiveState } from '../utils';
9
10
  const b = block('pie');
@@ -1,9 +1,9 @@
1
1
  import { group, max } from 'd3-array';
2
2
  import { arc, line as lineGenerator } from 'd3-shape';
3
3
  import merge from 'lodash/merge';
4
- import { DEFAULT_DATALABELS_STYLE } from '../../../constants';
5
- import { calculateNumericProperty, getLabelsSize, getLeftPosition, getTextSizeFn, isLabelsOverlapping, } from '../../../utils';
6
- import { getFormattedValue } from '../../../utils/chart/format';
4
+ import { DEFAULT_DATALABELS_STYLE } from '~core/constants';
5
+ import { calculateNumericProperty, getLabelsSize, getLeftPosition, getTextSizeFn, isLabelsOverlapping, } from '~core/utils';
6
+ import { getFormattedValue } from '~core/utils/format';
7
7
  import { getCurveFactory, getInscribedAngle, pieGenerator } from './utils';
8
8
  const FULL_CIRCLE = Math.PI * 2;
9
9
  const getCenter = (boundsWidth, boundsHeight, center) => {
@@ -1,8 +1,8 @@
1
1
  import { range } from 'd3-array';
2
2
  import { scaleLinear } from 'd3-scale';
3
3
  import { curveLinearClosed, line } from 'd3-shape';
4
- import { getLabelsSize } from '../../../utils';
5
- import { getFormattedValue } from '../../../utils/chart/format';
4
+ import { getLabelsSize } from '~core/utils';
5
+ import { getFormattedValue } from '~core/utils/format';
6
6
  export async function prepareRadarData(args) {
7
7
  const { series: preparedSeries, boundsWidth, boundsHeight } = args;
8
8
  const maxRadius = Math.min(boundsWidth, boundsHeight) / 2;