@mui/x-charts 8.27.0 → 9.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (716) hide show
  1. package/BarChart/AnimatedBarElement.d.ts +2 -2
  2. package/BarChart/AnimatedBarElement.js +1 -1
  3. package/BarChart/BarChart.js +9 -4
  4. package/BarChart/BarElement.d.ts +2 -2
  5. package/BarChart/BarElement.js +9 -9
  6. package/BarChart/BarLabel/BarLabel.js +1 -1
  7. package/BarChart/FocusedBar.js +4 -6
  8. package/BarChart/IndividualBarPlot.js +1 -1
  9. package/BarChart/barClasses.d.ts +1 -1
  10. package/BarChart/barClasses.js +2 -2
  11. package/BarChart/barElementClasses.d.ts +2 -1
  12. package/BarChart/barElementClasses.js +2 -2
  13. package/BarChart/seriesConfig/bar/extremums.d.ts +1 -1
  14. package/BarChart/seriesConfig/bar/getColor.d.ts +1 -1
  15. package/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.d.ts +2 -2
  16. package/BarChart/seriesConfig/bar/keyboardFocusHandler.d.ts +2 -1
  17. package/BarChart/seriesConfig/bar/keyboardFocusHandler.js +4 -5
  18. package/BarChart/seriesConfig/bar/legend.d.ts +1 -1
  19. package/BarChart/seriesConfig/bar/legend.js +0 -1
  20. package/BarChart/seriesConfig/bar/seriesProcessor.d.ts +1 -1
  21. package/BarChart/seriesConfig/bar/tooltip.d.ts +1 -1
  22. package/BarChart/seriesConfig/bar/tooltipPosition.d.ts +1 -1
  23. package/BarChart/seriesConfig/bar/tooltipPosition.js +5 -6
  24. package/BarChart/seriesConfig/index.d.ts +1 -1
  25. package/BarChart/seriesConfig/index.js +3 -1
  26. package/BarChart/useBarPlotData.d.ts +1 -1
  27. package/BarChart/useBarPlotData.js +9 -10
  28. package/BarChart/useRegisterItemClickHandlers.js +2 -2
  29. package/CHANGELOG.md +255 -3
  30. package/ChartContainer/ChartContainer.d.ts +16 -29
  31. package/ChartContainer/ChartContainer.js +14 -1691
  32. package/ChartContainer/index.d.ts +1 -8
  33. package/ChartContainer/useChartContainerProps.d.ts +9 -10
  34. package/ChartContainer/useChartContainerProps.js +9 -94
  35. package/ChartDataProvider/ChartDataProvider.d.ts +5 -3
  36. package/ChartDataProvider/useChartDataProviderProps.d.ts +2 -2
  37. package/ChartDataProvider/useChartDataProviderProps.js +7 -6
  38. package/ChartsAxis/ChartsAxis.d.ts +1 -0
  39. package/ChartsAxis/ChartsAxis.js +4 -2
  40. package/ChartsAxis/axisClasses.d.ts +0 -7
  41. package/ChartsAxis/axisClasses.js +1 -1
  42. package/ChartsContainer/ChartsContainer.d.ts +37 -0
  43. package/ChartsContainer/ChartsContainer.js +1698 -0
  44. package/ChartsContainer/index.d.ts +1 -0
  45. package/ChartsContainer/index.js +16 -0
  46. package/ChartsContainer/useChartsContainerProps.d.ts +15 -0
  47. package/ChartsContainer/useChartsContainerProps.js +106 -0
  48. package/ChartsLabel/ChartsLabelMark.js +34 -32
  49. package/ChartsLabel/labelGradientClasses.d.ts +1 -1
  50. package/ChartsLabel/labelMarkClasses.d.ts +1 -3
  51. package/ChartsLabel/labelMarkClasses.js +1 -2
  52. package/ChartsLegend/ChartsLegend.js +1 -7
  53. package/ChartsLegend/chartsLegendClasses.d.ts +1 -1
  54. package/ChartsLegend/continuousColorLegendClasses.d.ts +1 -1
  55. package/ChartsLegend/legendContext.types.d.ts +1 -8
  56. package/ChartsLegend/piecewiseColorLegendClasses.d.ts +1 -1
  57. package/ChartsSurface/ChartsSurface.js +1 -3
  58. package/ChartsTooltip/ChartsAxisTooltipContent.d.ts +1 -0
  59. package/ChartsTooltip/ChartsItemTooltipContent.d.ts +1 -0
  60. package/ChartsTooltip/ChartsTooltipContainer.d.ts +16 -1
  61. package/ChartsTooltip/index.d.ts +1 -2
  62. package/ChartsTooltip/index.js +0 -12
  63. package/ChartsTooltip/useAxesTooltip.d.ts +29 -3
  64. package/ChartsTooltip/useAxesTooltip.js +173 -6
  65. package/ChartsTooltip/useItemTooltip.d.ts +1 -1
  66. package/ChartsTooltip/useItemTooltip.js +2 -2
  67. package/ChartsXAxis/ChartsXAxis.d.ts +3 -1
  68. package/ChartsXAxis/ChartsXAxis.js +2 -1
  69. package/ChartsXAxis/ChartsXAxisImpl.js +1 -1
  70. package/ChartsXAxis/getVisibleLabels.d.ts +2 -2
  71. package/ChartsXAxis/shortenLabels.d.ts +2 -2
  72. package/ChartsXAxis/useAxisTicksProps.d.ts +674 -671
  73. package/ChartsXAxis/useAxisTicksProps.js +1 -1
  74. package/ChartsXAxis/utilities.d.ts +1 -1
  75. package/ChartsXAxis/utilities.js +2 -3
  76. package/ChartsYAxis/ChartsYAxis.d.ts +3 -1
  77. package/ChartsYAxis/ChartsYAxis.js +2 -1
  78. package/ChartsYAxis/ChartsYAxisImpl.js +1 -1
  79. package/ChartsYAxis/shortenLabels.d.ts +2 -2
  80. package/ChartsYAxis/useAxisTicksProps.d.ts +674 -671
  81. package/ChartsYAxis/useAxisTicksProps.js +1 -1
  82. package/ChartsYAxis/utilities.js +2 -3
  83. package/Gauge/GaugeContainer.d.ts +1 -1
  84. package/Gauge/GaugeContainer.js +3 -1
  85. package/LineChart/AnimatedArea.js +3 -3
  86. package/LineChart/AnimatedLine.js +4 -4
  87. package/LineChart/AppearingMask.d.ts +1 -1
  88. package/LineChart/AppearingMask.js +1 -1
  89. package/LineChart/AreaElement.d.ts +2 -2
  90. package/LineChart/AreaElement.js +8 -8
  91. package/LineChart/AreaPlot.js +1 -1
  92. package/LineChart/CircleMarkElement.d.ts +1 -1
  93. package/LineChart/CircleMarkElement.js +5 -5
  94. package/LineChart/LineChart.js +9 -4
  95. package/LineChart/LineElement.d.ts +2 -2
  96. package/LineChart/LineElement.js +8 -8
  97. package/LineChart/LineHighlightElement.d.ts +3 -3
  98. package/LineChart/LineHighlightElement.js +4 -4
  99. package/LineChart/LineHighlightPlot.js +1 -1
  100. package/LineChart/LinePlot.js +1 -1
  101. package/LineChart/MarkElement.d.ts +1 -1
  102. package/LineChart/MarkElement.js +5 -5
  103. package/LineChart/MarkPlot.js +1 -1
  104. package/LineChart/markElementClasses.d.ts +1 -1
  105. package/LineChart/markElementClasses.js +2 -2
  106. package/LineChart/seriesConfig/extremums.d.ts +1 -1
  107. package/LineChart/seriesConfig/getColor.d.ts +1 -1
  108. package/LineChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  109. package/LineChart/seriesConfig/index.d.ts +1 -1
  110. package/LineChart/seriesConfig/index.js +3 -1
  111. package/LineChart/seriesConfig/keyboardFocusHandler.d.ts +2 -1
  112. package/LineChart/seriesConfig/keyboardFocusHandler.js +4 -5
  113. package/LineChart/seriesConfig/legend.d.ts +1 -1
  114. package/LineChart/seriesConfig/legend.js +0 -1
  115. package/LineChart/seriesConfig/seriesProcessor.d.ts +1 -1
  116. package/LineChart/seriesConfig/tooltip.d.ts +1 -1
  117. package/LineChart/seriesConfig/tooltipPosition.d.ts +1 -1
  118. package/PieChart/FocusedPieArc.d.ts +1 -1
  119. package/PieChart/FocusedPieArc.js +1 -1
  120. package/PieChart/PieArc.d.ts +4 -4
  121. package/PieChart/PieArc.js +7 -7
  122. package/PieChart/PieArcLabel.d.ts +4 -4
  123. package/PieChart/PieArcLabel.js +6 -6
  124. package/PieChart/PieArcLabelPlot.d.ts +5 -1
  125. package/PieChart/PieArcLabelPlot.js +5 -5
  126. package/PieChart/PieArcPlot.d.ts +5 -1
  127. package/PieChart/PieArcPlot.js +6 -6
  128. package/PieChart/PieChart.js +4 -4
  129. package/PieChart/PiePlot.js +2 -2
  130. package/PieChart/index.d.ts +1 -0
  131. package/PieChart/index.js +12 -0
  132. package/PieChart/pieClasses.d.ts +1 -1
  133. package/PieChart/seriesConfig/getColor.d.ts +1 -1
  134. package/PieChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  135. package/PieChart/seriesConfig/index.d.ts +1 -1
  136. package/PieChart/seriesConfig/index.js +3 -1
  137. package/PieChart/seriesConfig/legend.d.ts +1 -1
  138. package/PieChart/seriesConfig/legend.js +0 -1
  139. package/PieChart/seriesConfig/seriesLayout.d.ts +1 -1
  140. package/PieChart/seriesConfig/seriesProcessor.d.ts +1 -1
  141. package/PieChart/seriesConfig/tooltip.d.ts +1 -1
  142. package/PieChart/seriesConfig/tooltipPosition.d.ts +1 -1
  143. package/RadarChart/RadarAxisHighlight/index.d.ts +2 -1
  144. package/RadarChart/RadarChart.js +4 -4
  145. package/RadarChart/RadarGrid/index.d.ts +2 -1
  146. package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.ts +2 -0
  147. package/RadarChart/RadarSeriesPlot/useRadarRotationIndex.js +2 -2
  148. package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +2 -2
  149. package/RadarChart/seriesConfig/extremums.d.ts +1 -1
  150. package/RadarChart/seriesConfig/getColor.d.ts +1 -1
  151. package/RadarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  152. package/RadarChart/seriesConfig/index.d.ts +1 -1
  153. package/RadarChart/seriesConfig/index.js +3 -1
  154. package/RadarChart/seriesConfig/legend.d.ts +1 -1
  155. package/RadarChart/seriesConfig/legend.js +0 -1
  156. package/RadarChart/seriesConfig/seriesProcessor.d.ts +1 -1
  157. package/RadarChart/seriesConfig/tooltip.d.ts +1 -1
  158. package/RadarChart/seriesConfig/tooltipPosition.d.ts +1 -1
  159. package/ScatterChart/BatchScatter.d.ts +1 -1
  160. package/ScatterChart/Scatter.d.ts +1 -1
  161. package/ScatterChart/ScatterChart.js +9 -4
  162. package/ScatterChart/scatterClasses.js +2 -2
  163. package/ScatterChart/seriesConfig/extremums.d.ts +1 -1
  164. package/ScatterChart/seriesConfig/getColor.d.ts +1 -1
  165. package/ScatterChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  166. package/ScatterChart/seriesConfig/index.d.ts +1 -1
  167. package/ScatterChart/seriesConfig/index.js +3 -1
  168. package/ScatterChart/seriesConfig/keyboardFocusHandler.d.ts +2 -1
  169. package/ScatterChart/seriesConfig/keyboardFocusHandler.js +4 -5
  170. package/ScatterChart/seriesConfig/legend.d.ts +1 -1
  171. package/ScatterChart/seriesConfig/legend.js +0 -1
  172. package/ScatterChart/seriesConfig/seriesProcessor.d.ts +1 -1
  173. package/ScatterChart/seriesConfig/tooltip.d.ts +1 -1
  174. package/ScatterChart/seriesConfig/tooltipPosition.d.ts +1 -1
  175. package/SparkLineChart/SparkLineChart.d.ts +1 -1
  176. package/SparkLineChart/SparkLineChart.js +16 -16
  177. package/context/ChartProvider/ChartProvider.d.ts +3 -4
  178. package/context/ChartProvider/ChartProvider.js +2 -15
  179. package/context/ChartProvider/ChartProvider.types.d.ts +3 -18
  180. package/context/index.d.ts +2 -1
  181. package/esm/BarChart/AnimatedBarElement.d.ts +2 -2
  182. package/esm/BarChart/AnimatedBarElement.js +1 -1
  183. package/esm/BarChart/BarChart.js +9 -4
  184. package/esm/BarChart/BarElement.d.ts +2 -2
  185. package/esm/BarChart/BarElement.js +9 -9
  186. package/esm/BarChart/BarLabel/BarLabel.js +1 -1
  187. package/esm/BarChart/FocusedBar.js +4 -6
  188. package/esm/BarChart/IndividualBarPlot.js +1 -1
  189. package/esm/BarChart/barClasses.d.ts +1 -1
  190. package/esm/BarChart/barClasses.js +2 -2
  191. package/esm/BarChart/barElementClasses.d.ts +2 -1
  192. package/esm/BarChart/barElementClasses.js +2 -2
  193. package/esm/BarChart/seriesConfig/bar/extremums.d.ts +1 -1
  194. package/esm/BarChart/seriesConfig/bar/getColor.d.ts +1 -1
  195. package/esm/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.d.ts +2 -2
  196. package/esm/BarChart/seriesConfig/bar/keyboardFocusHandler.d.ts +2 -1
  197. package/esm/BarChart/seriesConfig/bar/keyboardFocusHandler.js +5 -6
  198. package/esm/BarChart/seriesConfig/bar/legend.d.ts +1 -1
  199. package/esm/BarChart/seriesConfig/bar/legend.js +0 -1
  200. package/esm/BarChart/seriesConfig/bar/seriesProcessor.d.ts +1 -1
  201. package/esm/BarChart/seriesConfig/bar/tooltip.d.ts +1 -1
  202. package/esm/BarChart/seriesConfig/bar/tooltipPosition.d.ts +1 -1
  203. package/esm/BarChart/seriesConfig/bar/tooltipPosition.js +5 -6
  204. package/esm/BarChart/seriesConfig/index.d.ts +1 -1
  205. package/esm/BarChart/seriesConfig/index.js +3 -1
  206. package/esm/BarChart/useBarPlotData.d.ts +1 -1
  207. package/esm/BarChart/useBarPlotData.js +9 -10
  208. package/esm/BarChart/useRegisterItemClickHandlers.js +2 -2
  209. package/esm/ChartContainer/ChartContainer.d.ts +16 -29
  210. package/esm/ChartContainer/ChartContainer.js +15 -1690
  211. package/esm/ChartContainer/index.d.ts +1 -8
  212. package/esm/ChartContainer/index.js +1 -6
  213. package/esm/ChartContainer/useChartContainerProps.d.ts +9 -10
  214. package/esm/ChartContainer/useChartContainerProps.js +10 -93
  215. package/esm/ChartDataProvider/ChartDataProvider.d.ts +5 -3
  216. package/esm/ChartDataProvider/useChartDataProviderProps.d.ts +2 -2
  217. package/esm/ChartDataProvider/useChartDataProviderProps.js +7 -6
  218. package/esm/ChartsAxis/ChartsAxis.d.ts +1 -0
  219. package/esm/ChartsAxis/ChartsAxis.js +4 -2
  220. package/esm/ChartsAxis/axisClasses.d.ts +0 -7
  221. package/esm/ChartsAxis/axisClasses.js +1 -1
  222. package/esm/ChartsContainer/ChartsContainer.d.ts +37 -0
  223. package/esm/ChartsContainer/ChartsContainer.js +1692 -0
  224. package/esm/ChartsContainer/index.d.ts +1 -0
  225. package/esm/ChartsContainer/index.js +1 -0
  226. package/esm/ChartsContainer/useChartsContainerProps.d.ts +15 -0
  227. package/esm/ChartsContainer/useChartsContainerProps.js +99 -0
  228. package/esm/ChartsLabel/ChartsLabelMark.js +35 -33
  229. package/esm/ChartsLabel/labelGradientClasses.d.ts +1 -1
  230. package/esm/ChartsLabel/labelMarkClasses.d.ts +1 -3
  231. package/esm/ChartsLabel/labelMarkClasses.js +1 -2
  232. package/esm/ChartsLegend/ChartsLegend.js +1 -7
  233. package/esm/ChartsLegend/chartsLegendClasses.d.ts +1 -1
  234. package/esm/ChartsLegend/continuousColorLegendClasses.d.ts +1 -1
  235. package/esm/ChartsLegend/legendContext.types.d.ts +1 -8
  236. package/esm/ChartsLegend/piecewiseColorLegendClasses.d.ts +1 -1
  237. package/esm/ChartsSurface/ChartsSurface.js +2 -4
  238. package/esm/ChartsTooltip/ChartsAxisTooltipContent.d.ts +1 -0
  239. package/esm/ChartsTooltip/ChartsItemTooltipContent.d.ts +1 -0
  240. package/esm/ChartsTooltip/ChartsTooltipContainer.d.ts +16 -1
  241. package/esm/ChartsTooltip/index.d.ts +1 -2
  242. package/esm/ChartsTooltip/index.js +0 -1
  243. package/esm/ChartsTooltip/useAxesTooltip.d.ts +29 -3
  244. package/esm/ChartsTooltip/useAxesTooltip.js +173 -5
  245. package/esm/ChartsTooltip/useItemTooltip.d.ts +1 -1
  246. package/esm/ChartsTooltip/useItemTooltip.js +1 -1
  247. package/esm/ChartsXAxis/ChartsXAxis.d.ts +3 -1
  248. package/esm/ChartsXAxis/ChartsXAxis.js +1 -2
  249. package/esm/ChartsXAxis/ChartsXAxisImpl.js +1 -1
  250. package/esm/ChartsXAxis/getVisibleLabels.d.ts +2 -2
  251. package/esm/ChartsXAxis/shortenLabels.d.ts +2 -2
  252. package/esm/ChartsXAxis/useAxisTicksProps.d.ts +674 -671
  253. package/esm/ChartsXAxis/useAxisTicksProps.js +1 -1
  254. package/esm/ChartsXAxis/utilities.d.ts +1 -1
  255. package/esm/ChartsXAxis/utilities.js +2 -3
  256. package/esm/ChartsYAxis/ChartsYAxis.d.ts +3 -1
  257. package/esm/ChartsYAxis/ChartsYAxis.js +1 -2
  258. package/esm/ChartsYAxis/ChartsYAxisImpl.js +1 -1
  259. package/esm/ChartsYAxis/shortenLabels.d.ts +2 -2
  260. package/esm/ChartsYAxis/useAxisTicksProps.d.ts +674 -671
  261. package/esm/ChartsYAxis/useAxisTicksProps.js +1 -1
  262. package/esm/ChartsYAxis/utilities.js +2 -3
  263. package/esm/Gauge/GaugeContainer.d.ts +1 -1
  264. package/esm/Gauge/GaugeContainer.js +3 -1
  265. package/esm/LineChart/AnimatedArea.js +3 -3
  266. package/esm/LineChart/AnimatedLine.js +4 -4
  267. package/esm/LineChart/AppearingMask.d.ts +1 -1
  268. package/esm/LineChart/AppearingMask.js +1 -1
  269. package/esm/LineChart/AreaElement.d.ts +2 -2
  270. package/esm/LineChart/AreaElement.js +8 -8
  271. package/esm/LineChart/AreaPlot.js +1 -1
  272. package/esm/LineChart/CircleMarkElement.d.ts +1 -1
  273. package/esm/LineChart/CircleMarkElement.js +5 -5
  274. package/esm/LineChart/LineChart.js +9 -4
  275. package/esm/LineChart/LineElement.d.ts +2 -2
  276. package/esm/LineChart/LineElement.js +8 -8
  277. package/esm/LineChart/LineHighlightElement.d.ts +3 -3
  278. package/esm/LineChart/LineHighlightElement.js +4 -4
  279. package/esm/LineChart/LineHighlightPlot.js +1 -1
  280. package/esm/LineChart/LinePlot.js +1 -1
  281. package/esm/LineChart/MarkElement.d.ts +1 -1
  282. package/esm/LineChart/MarkElement.js +5 -5
  283. package/esm/LineChart/MarkPlot.js +1 -1
  284. package/esm/LineChart/markElementClasses.d.ts +1 -1
  285. package/esm/LineChart/markElementClasses.js +2 -2
  286. package/esm/LineChart/seriesConfig/extremums.d.ts +1 -1
  287. package/esm/LineChart/seriesConfig/getColor.d.ts +1 -1
  288. package/esm/LineChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  289. package/esm/LineChart/seriesConfig/index.d.ts +1 -1
  290. package/esm/LineChart/seriesConfig/index.js +3 -1
  291. package/esm/LineChart/seriesConfig/keyboardFocusHandler.d.ts +2 -1
  292. package/esm/LineChart/seriesConfig/keyboardFocusHandler.js +5 -6
  293. package/esm/LineChart/seriesConfig/legend.d.ts +1 -1
  294. package/esm/LineChart/seriesConfig/legend.js +0 -1
  295. package/esm/LineChart/seriesConfig/seriesProcessor.d.ts +1 -1
  296. package/esm/LineChart/seriesConfig/tooltip.d.ts +1 -1
  297. package/esm/LineChart/seriesConfig/tooltipPosition.d.ts +1 -1
  298. package/esm/PieChart/FocusedPieArc.d.ts +1 -1
  299. package/esm/PieChart/FocusedPieArc.js +1 -1
  300. package/esm/PieChart/PieArc.d.ts +4 -4
  301. package/esm/PieChart/PieArc.js +7 -7
  302. package/esm/PieChart/PieArcLabel.d.ts +4 -4
  303. package/esm/PieChart/PieArcLabel.js +6 -6
  304. package/esm/PieChart/PieArcLabelPlot.d.ts +5 -1
  305. package/esm/PieChart/PieArcLabelPlot.js +5 -5
  306. package/esm/PieChart/PieArcPlot.d.ts +5 -1
  307. package/esm/PieChart/PieArcPlot.js +6 -6
  308. package/esm/PieChart/PieChart.js +4 -4
  309. package/esm/PieChart/PiePlot.js +2 -2
  310. package/esm/PieChart/index.d.ts +1 -0
  311. package/esm/PieChart/index.js +1 -0
  312. package/esm/PieChart/pieClasses.d.ts +1 -1
  313. package/esm/PieChart/seriesConfig/getColor.d.ts +1 -1
  314. package/esm/PieChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  315. package/esm/PieChart/seriesConfig/index.d.ts +1 -1
  316. package/esm/PieChart/seriesConfig/index.js +3 -1
  317. package/esm/PieChart/seriesConfig/legend.d.ts +1 -1
  318. package/esm/PieChart/seriesConfig/legend.js +0 -1
  319. package/esm/PieChart/seriesConfig/seriesLayout.d.ts +1 -1
  320. package/esm/PieChart/seriesConfig/seriesProcessor.d.ts +1 -1
  321. package/esm/PieChart/seriesConfig/tooltip.d.ts +1 -1
  322. package/esm/PieChart/seriesConfig/tooltipPosition.d.ts +1 -1
  323. package/esm/RadarChart/RadarAxisHighlight/index.d.ts +2 -1
  324. package/esm/RadarChart/RadarAxisHighlight/index.js +2 -1
  325. package/esm/RadarChart/RadarChart.js +4 -4
  326. package/esm/RadarChart/RadarGrid/index.d.ts +2 -1
  327. package/esm/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.ts +2 -0
  328. package/esm/RadarChart/RadarSeriesPlot/useRadarRotationIndex.js +2 -2
  329. package/esm/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +2 -2
  330. package/esm/RadarChart/seriesConfig/extremums.d.ts +1 -1
  331. package/esm/RadarChart/seriesConfig/getColor.d.ts +1 -1
  332. package/esm/RadarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  333. package/esm/RadarChart/seriesConfig/index.d.ts +1 -1
  334. package/esm/RadarChart/seriesConfig/index.js +3 -1
  335. package/esm/RadarChart/seriesConfig/legend.d.ts +1 -1
  336. package/esm/RadarChart/seriesConfig/legend.js +0 -1
  337. package/esm/RadarChart/seriesConfig/seriesProcessor.d.ts +1 -1
  338. package/esm/RadarChart/seriesConfig/tooltip.d.ts +1 -1
  339. package/esm/RadarChart/seriesConfig/tooltipPosition.d.ts +1 -1
  340. package/esm/ScatterChart/BatchScatter.d.ts +1 -1
  341. package/esm/ScatterChart/Scatter.d.ts +1 -1
  342. package/esm/ScatterChart/ScatterChart.js +9 -4
  343. package/esm/ScatterChart/scatterClasses.js +2 -2
  344. package/esm/ScatterChart/seriesConfig/extremums.d.ts +1 -1
  345. package/esm/ScatterChart/seriesConfig/getColor.d.ts +1 -1
  346. package/esm/ScatterChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  347. package/esm/ScatterChart/seriesConfig/index.d.ts +1 -1
  348. package/esm/ScatterChart/seriesConfig/index.js +3 -1
  349. package/esm/ScatterChart/seriesConfig/keyboardFocusHandler.d.ts +2 -1
  350. package/esm/ScatterChart/seriesConfig/keyboardFocusHandler.js +5 -6
  351. package/esm/ScatterChart/seriesConfig/legend.d.ts +1 -1
  352. package/esm/ScatterChart/seriesConfig/legend.js +0 -1
  353. package/esm/ScatterChart/seriesConfig/seriesProcessor.d.ts +1 -1
  354. package/esm/ScatterChart/seriesConfig/tooltip.d.ts +1 -1
  355. package/esm/ScatterChart/seriesConfig/tooltipPosition.d.ts +1 -1
  356. package/esm/SparkLineChart/SparkLineChart.d.ts +1 -1
  357. package/esm/SparkLineChart/SparkLineChart.js +16 -16
  358. package/esm/context/ChartProvider/ChartProvider.d.ts +3 -4
  359. package/esm/context/ChartProvider/ChartProvider.js +2 -14
  360. package/esm/context/ChartProvider/ChartProvider.types.d.ts +3 -18
  361. package/esm/context/index.d.ts +2 -1
  362. package/esm/hooks/index.d.ts +4 -1
  363. package/esm/hooks/index.js +3 -1
  364. package/esm/hooks/useAxisCoordinates.d.ts +30 -0
  365. package/esm/hooks/useAxisCoordinates.js +105 -0
  366. package/esm/hooks/useAxisTicks.d.ts +14 -0
  367. package/esm/hooks/useAxisTicks.js +68 -0
  368. package/esm/hooks/useChartRootRef.d.ts +1 -1
  369. package/esm/hooks/useChartRootRef.js +4 -2
  370. package/esm/hooks/useInteractionItemProps.d.ts +1 -1
  371. package/esm/hooks/useLegend.js +1 -1
  372. package/esm/hooks/useSvgRef.js +4 -5
  373. package/esm/hooks/useTicks.d.ts +19 -4
  374. package/esm/index.d.ts +3 -1
  375. package/esm/index.js +2 -1
  376. package/esm/internals/commonNextFocusItem.d.ts +2 -0
  377. package/esm/internals/commonNextFocusItem.js +3 -2
  378. package/esm/internals/components/WebGLContext.d.ts +3 -0
  379. package/esm/internals/components/WebGLContext.js +108 -0
  380. package/esm/internals/consumeSlots.js +1 -1
  381. package/esm/internals/consumeThemeProps.js +1 -1
  382. package/esm/internals/{getBarDimensions.d.ts → createGetBarDimensions.d.ts} +2 -4
  383. package/esm/internals/createGetBarDimensions.js +55 -0
  384. package/esm/internals/getChartPoint.d.ts +7 -0
  385. package/esm/internals/getChartPoint.js +13 -0
  386. package/esm/internals/getSeriesColorFn.d.ts +3 -2
  387. package/esm/internals/identifierCleaner.d.ts +11 -0
  388. package/esm/internals/identifierCleaner.js +12 -0
  389. package/esm/internals/index.d.ts +7 -2
  390. package/esm/internals/index.js +7 -3
  391. package/esm/internals/plugins/corePlugins/corePlugins.d.ts +5 -3
  392. package/esm/internals/plugins/corePlugins/corePlugins.js +3 -1
  393. package/esm/internals/plugins/corePlugins/index.d.ts +2 -1
  394. package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +1 -1
  395. package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +4 -1
  396. package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +5 -5
  397. package/esm/internals/plugins/corePlugins/useChartElementRef/index.d.ts +2 -0
  398. package/esm/internals/plugins/corePlugins/useChartElementRef/index.js +1 -0
  399. package/esm/internals/plugins/corePlugins/useChartElementRef/useChartElementRef.d.ts +3 -0
  400. package/esm/internals/plugins/corePlugins/useChartElementRef/useChartElementRef.js +14 -0
  401. package/esm/internals/plugins/corePlugins/useChartElementRef/useChartElementRef.types.d.ts +15 -0
  402. package/esm/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.ts +1 -1
  403. package/esm/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +1 -1
  404. package/esm/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.js +5 -2
  405. package/esm/internals/plugins/corePlugins/useChartSeries/processSeries.d.ts +1 -1
  406. package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.js +6 -14
  407. package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +4 -7
  408. package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +2 -2
  409. package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.types.d.ts +3 -16
  410. package/esm/internals/plugins/corePlugins/useChartSeries/useColorProcessor.d.ts +1 -1
  411. package/esm/internals/plugins/corePlugins/useChartSeries/useColorProcessor.js +1 -1
  412. package/esm/internals/plugins/corePlugins/useChartSeriesConfig/index.d.ts +4 -0
  413. package/esm/internals/plugins/corePlugins/useChartSeriesConfig/index.js +3 -0
  414. package/{internals/plugins/models/seriesConfig → esm/internals/plugins/corePlugins/useChartSeriesConfig/types}/cartesianExtremumGetter.types.d.ts +3 -3
  415. package/esm/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/colorProcessor.types.d.ts +4 -4
  416. package/esm/internals/plugins/corePlugins/useChartSeriesConfig/types/getItemAtPosition.types.d.ts +8 -0
  417. package/esm/internals/plugins/corePlugins/useChartSeriesConfig/types/getSeriesWithDefaultValues.types.d.ts +3 -0
  418. package/esm/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierCleaner.types.d.ts +3 -0
  419. package/esm/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierSerializer.types.d.ts +3 -0
  420. package/esm/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/index.d.ts +3 -1
  421. package/esm/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/index.js +3 -1
  422. package/esm/internals/plugins/corePlugins/useChartSeriesConfig/types/legendGetter.types.d.ts +4 -0
  423. package/esm/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/polarExtremumGetter.types.d.ts +3 -3
  424. package/{internals/plugins/models/seriesConfig → esm/internals/plugins/corePlugins/useChartSeriesConfig/types}/seriesConfig.types.d.ts +13 -5
  425. package/esm/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/seriesLayout.types.d.ts +3 -3
  426. package/{internals/plugins/models/seriesConfig → esm/internals/plugins/corePlugins/useChartSeriesConfig/types}/seriesProcessor.types.d.ts +4 -4
  427. package/esm/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/tooltipGetter.types.d.ts +5 -5
  428. package/esm/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.js +1 -0
  429. package/{internals/plugins/models/seriesConfig → esm/internals/plugins/corePlugins/useChartSeriesConfig/types}/tooltipItemPositionGetter.types.d.ts +6 -6
  430. package/esm/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.js +1 -0
  431. package/esm/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.d.ts +3 -0
  432. package/esm/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.js +35 -0
  433. package/esm/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.selectors.d.ts +6 -0
  434. package/esm/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.selectors.js +3 -0
  435. package/esm/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.d.ts +48 -0
  436. package/esm/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js +1 -0
  437. package/esm/internals/plugins/corePlugins/useChartSeriesConfig/utils/cleanIdentifier.d.ts +15 -0
  438. package/esm/internals/plugins/corePlugins/useChartSeriesConfig/utils/cleanIdentifier.js +18 -0
  439. package/esm/internals/plugins/corePlugins/{useChartSeries → useChartSeriesConfig/utils}/serializeIdentifier.d.ts +2 -2
  440. package/esm/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.d.ts +3 -2
  441. package/esm/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.js +2 -2
  442. package/esm/internals/plugins/featurePlugins/useChartBrush/useChartBrush.js +6 -4
  443. package/esm/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.d.ts +14 -14
  444. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +1 -1
  445. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.d.ts +2 -2
  446. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +4 -4
  447. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisDomainLimit.d.ts +4 -3
  448. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisExtrema.d.ts +1 -1
  449. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.ts +1 -1
  450. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +5 -5
  451. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.js +22 -9
  452. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +18 -12
  453. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +7 -1
  454. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.d.ts +3 -1
  455. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.js +2 -1
  456. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPosition.selectors.d.ts +1 -1
  457. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.d.ts +4 -4
  458. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.js +2 -1
  459. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +50 -51
  460. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +2 -1
  461. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.ts +6 -6
  462. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +8 -8
  463. package/esm/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.js +5 -3
  464. package/esm/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.selectors.d.ts +1 -1
  465. package/esm/internals/plugins/featurePlugins/useChartHighlight/createIsFaded.d.ts +2 -2
  466. package/esm/internals/plugins/featurePlugins/useChartHighlight/createIsHighlighted.d.ts +2 -2
  467. package/esm/internals/plugins/featurePlugins/useChartHighlight/highlightConfig.types.d.ts +1 -1
  468. package/esm/internals/plugins/featurePlugins/useChartHighlight/highlightStates.d.ts +11 -7
  469. package/esm/internals/plugins/featurePlugins/useChartHighlight/highlightStates.js +3 -3
  470. package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +17 -19
  471. package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.js +4 -4
  472. package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +6 -6
  473. package/esm/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.js +4 -4
  474. package/esm/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.types.d.ts +2 -1
  475. package/esm/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.js +8 -3
  476. package/esm/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.d.ts +7 -7
  477. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +1 -1
  478. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.ts +1 -1
  479. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.ts +1 -1
  480. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +8 -7
  481. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +5 -5
  482. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.js +2 -1
  483. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +6 -6
  484. package/esm/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.d.ts +5 -5
  485. package/esm/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.js +2 -1
  486. package/esm/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.js +4 -4
  487. package/esm/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.selectors.d.ts +3 -5
  488. package/esm/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.selectors.js +9 -4
  489. package/esm/internals/plugins/featurePlugins/useChartVisibilityManager/visibilityParamToMap.d.ts +1 -1
  490. package/esm/internals/plugins/featurePlugins/useChartVisibilityManager/visibilityParamToMap.js +1 -1
  491. package/esm/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +1 -1
  492. package/esm/internals/plugins/models/index.d.ts +1 -2
  493. package/esm/internals/plugins/models/index.js +1 -2
  494. package/esm/internals/plugins/models/plugin.d.ts +1 -16
  495. package/esm/internals/plugins/utils/defaultSeriesConfig.d.ts +2 -0
  496. package/esm/internals/plugins/utils/defaultSeriesConfig.js +10 -0
  497. package/esm/internals/seriesSelectorOfType.d.ts +8 -8
  498. package/esm/internals/seriesSelectorOfType.js +1 -1
  499. package/esm/internals/stacking/stackSeries.d.ts +3 -2
  500. package/esm/internals/stacking/stackSeries.js +0 -1
  501. package/esm/internals/store/useCharts.d.ts +2 -7
  502. package/esm/internals/store/useCharts.js +4 -12
  503. package/esm/internals/store/useCharts.types.d.ts +6 -0
  504. package/esm/models/axis.d.ts +16 -3
  505. package/esm/models/index.d.ts +1 -0
  506. package/esm/models/seriesType/bar.d.ts +1 -1
  507. package/esm/models/seriesType/common.d.ts +5 -5
  508. package/esm/models/seriesType/config.d.ts +8 -1
  509. package/esm/models/seriesType/index.d.ts +5 -30
  510. package/esm/models/seriesType/index.js +1 -32
  511. package/esm/models/seriesType/line.d.ts +1 -1
  512. package/esm/models/seriesType/pie.d.ts +1 -1
  513. package/esm/models/seriesType/radar.d.ts +1 -1
  514. package/esm/models/seriesType/scatter.d.ts +1 -1
  515. package/hooks/index.d.ts +4 -1
  516. package/hooks/index.js +28 -1
  517. package/hooks/useAxisCoordinates.d.ts +30 -0
  518. package/hooks/useAxisCoordinates.js +115 -0
  519. package/hooks/useAxisTicks.d.ts +14 -0
  520. package/hooks/useAxisTicks.js +75 -0
  521. package/hooks/useChartRootRef.d.ts +1 -1
  522. package/hooks/useChartRootRef.js +4 -2
  523. package/hooks/useInteractionItemProps.d.ts +1 -1
  524. package/hooks/useLegend.js +2 -2
  525. package/hooks/useSvgRef.js +4 -5
  526. package/hooks/useTicks.d.ts +19 -4
  527. package/index.d.ts +3 -1
  528. package/index.js +9 -1
  529. package/internals/commonNextFocusItem.d.ts +2 -0
  530. package/internals/commonNextFocusItem.js +4 -2
  531. package/internals/components/WebGLContext.d.ts +3 -0
  532. package/internals/components/WebGLContext.js +116 -0
  533. package/internals/consumeSlots.js +1 -1
  534. package/internals/consumeThemeProps.js +1 -1
  535. package/internals/{getBarDimensions.d.ts → createGetBarDimensions.d.ts} +2 -4
  536. package/internals/createGetBarDimensions.js +61 -0
  537. package/internals/getChartPoint.d.ts +7 -0
  538. package/internals/getChartPoint.js +19 -0
  539. package/internals/getSeriesColorFn.d.ts +3 -2
  540. package/internals/identifierCleaner.d.ts +11 -0
  541. package/internals/identifierCleaner.js +19 -0
  542. package/internals/index.d.ts +7 -2
  543. package/internals/index.js +64 -4
  544. package/internals/plugins/corePlugins/corePlugins.d.ts +5 -3
  545. package/internals/plugins/corePlugins/corePlugins.js +3 -1
  546. package/internals/plugins/corePlugins/index.d.ts +2 -1
  547. package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +1 -1
  548. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +4 -1
  549. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +5 -5
  550. package/internals/plugins/corePlugins/useChartElementRef/index.d.ts +2 -0
  551. package/internals/plugins/corePlugins/useChartElementRef/index.js +12 -0
  552. package/internals/plugins/corePlugins/useChartElementRef/useChartElementRef.d.ts +3 -0
  553. package/internals/plugins/corePlugins/useChartElementRef/useChartElementRef.js +21 -0
  554. package/internals/plugins/corePlugins/useChartElementRef/useChartElementRef.types.d.ts +15 -0
  555. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.ts +1 -1
  556. package/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +1 -1
  557. package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.js +5 -2
  558. package/internals/plugins/corePlugins/useChartSeries/processSeries.d.ts +1 -1
  559. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.js +6 -14
  560. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +4 -7
  561. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +5 -5
  562. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.types.d.ts +3 -16
  563. package/internals/plugins/corePlugins/useChartSeries/useColorProcessor.d.ts +1 -1
  564. package/internals/plugins/corePlugins/useChartSeries/useColorProcessor.js +2 -2
  565. package/internals/plugins/corePlugins/useChartSeriesConfig/index.d.ts +4 -0
  566. package/internals/plugins/corePlugins/useChartSeriesConfig/index.js +39 -0
  567. package/{esm/internals/plugins/models/seriesConfig → internals/plugins/corePlugins/useChartSeriesConfig/types}/cartesianExtremumGetter.types.d.ts +3 -3
  568. package/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/colorProcessor.types.d.ts +4 -4
  569. package/internals/plugins/corePlugins/useChartSeriesConfig/types/getItemAtPosition.types.d.ts +8 -0
  570. package/internals/plugins/corePlugins/useChartSeriesConfig/types/getSeriesWithDefaultValues.types.d.ts +3 -0
  571. package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierCleaner.types.d.ts +3 -0
  572. package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierSerializer.types.d.ts +3 -0
  573. package/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/index.d.ts +3 -1
  574. package/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/index.js +22 -0
  575. package/internals/plugins/corePlugins/useChartSeriesConfig/types/legendGetter.types.d.ts +4 -0
  576. package/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/polarExtremumGetter.types.d.ts +3 -3
  577. package/{esm/internals/plugins/models/seriesConfig → internals/plugins/corePlugins/useChartSeriesConfig/types}/seriesConfig.types.d.ts +13 -5
  578. package/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/seriesLayout.types.d.ts +3 -3
  579. package/{esm/internals/plugins/models/seriesConfig → internals/plugins/corePlugins/useChartSeriesConfig/types}/seriesProcessor.types.d.ts +4 -4
  580. package/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/tooltipGetter.types.d.ts +5 -5
  581. package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.js +5 -0
  582. package/{esm/internals/plugins/models/seriesConfig → internals/plugins/corePlugins/useChartSeriesConfig/types}/tooltipItemPositionGetter.types.d.ts +6 -6
  583. package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.js +5 -0
  584. package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.d.ts +3 -0
  585. package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.js +42 -0
  586. package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.selectors.d.ts +6 -0
  587. package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.selectors.js +10 -0
  588. package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.d.ts +48 -0
  589. package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js +5 -0
  590. package/internals/plugins/corePlugins/useChartSeriesConfig/utils/cleanIdentifier.d.ts +15 -0
  591. package/internals/plugins/corePlugins/useChartSeriesConfig/utils/cleanIdentifier.js +25 -0
  592. package/internals/plugins/corePlugins/{useChartSeries → useChartSeriesConfig/utils}/serializeIdentifier.d.ts +2 -2
  593. package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.d.ts +3 -2
  594. package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.js +2 -2
  595. package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.js +6 -4
  596. package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.d.ts +14 -14
  597. package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +1 -1
  598. package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.d.ts +2 -2
  599. package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +4 -4
  600. package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisDomainLimit.d.ts +4 -3
  601. package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisExtrema.d.ts +1 -1
  602. package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.ts +1 -1
  603. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +5 -5
  604. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.js +21 -8
  605. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +18 -12
  606. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +7 -1
  607. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.d.ts +3 -1
  608. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.js +4 -2
  609. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPosition.selectors.d.ts +1 -1
  610. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.d.ts +4 -4
  611. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.js +3 -2
  612. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +50 -51
  613. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +7 -6
  614. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.ts +6 -6
  615. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +8 -8
  616. package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.js +5 -3
  617. package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.selectors.d.ts +1 -1
  618. package/internals/plugins/featurePlugins/useChartHighlight/createIsFaded.d.ts +2 -2
  619. package/internals/plugins/featurePlugins/useChartHighlight/createIsHighlighted.d.ts +2 -2
  620. package/internals/plugins/featurePlugins/useChartHighlight/highlightConfig.types.d.ts +1 -1
  621. package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.d.ts +11 -7
  622. package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.js +5 -5
  623. package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +17 -19
  624. package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.js +3 -3
  625. package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +6 -6
  626. package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.js +4 -4
  627. package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.types.d.ts +2 -1
  628. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.js +8 -3
  629. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.d.ts +7 -7
  630. package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +1 -1
  631. package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.ts +1 -1
  632. package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.ts +1 -1
  633. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +8 -7
  634. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +5 -5
  635. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.js +3 -2
  636. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +6 -6
  637. package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.d.ts +5 -5
  638. package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.js +2 -1
  639. package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.js +4 -4
  640. package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.selectors.d.ts +3 -5
  641. package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.selectors.js +9 -4
  642. package/internals/plugins/featurePlugins/useChartVisibilityManager/visibilityParamToMap.d.ts +1 -1
  643. package/internals/plugins/featurePlugins/useChartVisibilityManager/visibilityParamToMap.js +1 -1
  644. package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +1 -1
  645. package/internals/plugins/models/index.d.ts +1 -2
  646. package/internals/plugins/models/index.js +0 -11
  647. package/internals/plugins/models/plugin.d.ts +1 -16
  648. package/internals/plugins/utils/defaultSeriesConfig.d.ts +2 -0
  649. package/internals/plugins/utils/defaultSeriesConfig.js +16 -0
  650. package/internals/seriesSelectorOfType.d.ts +8 -8
  651. package/internals/seriesSelectorOfType.js +1 -1
  652. package/internals/stacking/stackSeries.d.ts +3 -2
  653. package/internals/stacking/stackSeries.js +0 -1
  654. package/internals/store/useCharts.d.ts +2 -7
  655. package/internals/store/useCharts.js +4 -12
  656. package/internals/store/useCharts.types.d.ts +6 -0
  657. package/models/axis.d.ts +16 -3
  658. package/models/index.d.ts +1 -0
  659. package/models/seriesType/bar.d.ts +1 -1
  660. package/models/seriesType/common.d.ts +5 -5
  661. package/models/seriesType/config.d.ts +8 -1
  662. package/models/seriesType/index.d.ts +5 -30
  663. package/models/seriesType/index.js +1 -48
  664. package/models/seriesType/line.d.ts +1 -1
  665. package/models/seriesType/pie.d.ts +1 -1
  666. package/models/seriesType/radar.d.ts +1 -1
  667. package/models/seriesType/scatter.d.ts +1 -1
  668. package/package.json +5 -5
  669. package/ChartsTooltip/useAxisTooltip.d.ts +0 -42
  670. package/ChartsTooltip/useAxisTooltip.js +0 -181
  671. package/esm/ChartsTooltip/useAxisTooltip.d.ts +0 -42
  672. package/esm/ChartsTooltip/useAxisTooltip.js +0 -176
  673. package/esm/internals/getBarDimensions.js +0 -55
  674. package/esm/internals/getSVGPoint.d.ts +0 -6
  675. package/esm/internals/getSVGPoint.js +0 -11
  676. package/esm/internals/plugins/featurePlugins/useChartVisibilityManager/isIdentifierVisible.d.ts +0 -4
  677. package/esm/internals/plugins/featurePlugins/useChartVisibilityManager/isIdentifierVisible.js +0 -5
  678. package/esm/internals/plugins/models/seriesConfig/getItemAtPosition.types.d.ts +0 -8
  679. package/esm/internals/plugins/models/seriesConfig/getSeriesWithDefaultValues.types.d.ts +0 -3
  680. package/esm/internals/plugins/models/seriesConfig/identifierSerializer.types.d.ts +0 -2
  681. package/esm/internals/plugins/models/seriesConfig/legendGetter.types.d.ts +0 -4
  682. package/internals/getBarDimensions.js +0 -61
  683. package/internals/getSVGPoint.d.ts +0 -6
  684. package/internals/getSVGPoint.js +0 -17
  685. package/internals/plugins/featurePlugins/useChartVisibilityManager/isIdentifierVisible.d.ts +0 -4
  686. package/internals/plugins/featurePlugins/useChartVisibilityManager/isIdentifierVisible.js +0 -12
  687. package/internals/plugins/models/seriesConfig/getItemAtPosition.types.d.ts +0 -8
  688. package/internals/plugins/models/seriesConfig/getSeriesWithDefaultValues.types.d.ts +0 -3
  689. package/internals/plugins/models/seriesConfig/identifierSerializer.types.d.ts +0 -2
  690. package/internals/plugins/models/seriesConfig/legendGetter.types.d.ts +0 -4
  691. /package/esm/internals/plugins/{models/seriesConfig/cartesianExtremumGetter.types.js → corePlugins/useChartElementRef/useChartElementRef.types.js} +0 -0
  692. /package/esm/internals/plugins/{models/seriesConfig/colorProcessor.types.js → corePlugins/useChartSeriesConfig/types/cartesianExtremumGetter.types.js} +0 -0
  693. /package/esm/internals/plugins/{models/seriesConfig/getItemAtPosition.types.js → corePlugins/useChartSeriesConfig/types/colorProcessor.types.js} +0 -0
  694. /package/esm/internals/plugins/{models/seriesConfig/getSeriesWithDefaultValues.types.js → corePlugins/useChartSeriesConfig/types/getItemAtPosition.types.js} +0 -0
  695. /package/esm/internals/plugins/{models/seriesConfig/identifierSerializer.types.js → corePlugins/useChartSeriesConfig/types/getSeriesWithDefaultValues.types.js} +0 -0
  696. /package/esm/internals/plugins/{models/seriesConfig/legendGetter.types.js → corePlugins/useChartSeriesConfig/types/identifierCleaner.types.js} +0 -0
  697. /package/esm/internals/plugins/{models/seriesConfig/polarExtremumGetter.types.js → corePlugins/useChartSeriesConfig/types/identifierSerializer.types.js} +0 -0
  698. /package/esm/internals/plugins/{models/seriesConfig/seriesConfig.types.js → corePlugins/useChartSeriesConfig/types/legendGetter.types.js} +0 -0
  699. /package/esm/internals/plugins/{models/seriesConfig/seriesLayout.types.js → corePlugins/useChartSeriesConfig/types/polarExtremumGetter.types.js} +0 -0
  700. /package/esm/internals/plugins/{models/seriesConfig/seriesProcessor.types.js → corePlugins/useChartSeriesConfig/types/seriesConfig.types.js} +0 -0
  701. /package/esm/internals/plugins/{models/seriesConfig/tooltipGetter.types.js → corePlugins/useChartSeriesConfig/types/seriesLayout.types.js} +0 -0
  702. /package/esm/internals/plugins/{models/seriesConfig/tooltipItemPositionGetter.types.js → corePlugins/useChartSeriesConfig/types/seriesProcessor.types.js} +0 -0
  703. /package/esm/internals/plugins/corePlugins/{useChartSeries → useChartSeriesConfig/utils}/serializeIdentifier.js +0 -0
  704. /package/internals/plugins/{models/seriesConfig/cartesianExtremumGetter.types.js → corePlugins/useChartElementRef/useChartElementRef.types.js} +0 -0
  705. /package/internals/plugins/{models/seriesConfig/colorProcessor.types.js → corePlugins/useChartSeriesConfig/types/cartesianExtremumGetter.types.js} +0 -0
  706. /package/internals/plugins/{models/seriesConfig/getItemAtPosition.types.js → corePlugins/useChartSeriesConfig/types/colorProcessor.types.js} +0 -0
  707. /package/internals/plugins/{models/seriesConfig/getSeriesWithDefaultValues.types.js → corePlugins/useChartSeriesConfig/types/getItemAtPosition.types.js} +0 -0
  708. /package/internals/plugins/{models/seriesConfig/identifierSerializer.types.js → corePlugins/useChartSeriesConfig/types/getSeriesWithDefaultValues.types.js} +0 -0
  709. /package/internals/plugins/{models/seriesConfig/legendGetter.types.js → corePlugins/useChartSeriesConfig/types/identifierCleaner.types.js} +0 -0
  710. /package/internals/plugins/{models/seriesConfig/polarExtremumGetter.types.js → corePlugins/useChartSeriesConfig/types/identifierSerializer.types.js} +0 -0
  711. /package/internals/plugins/{models/seriesConfig/seriesConfig.types.js → corePlugins/useChartSeriesConfig/types/legendGetter.types.js} +0 -0
  712. /package/internals/plugins/{models/seriesConfig/seriesLayout.types.js → corePlugins/useChartSeriesConfig/types/polarExtremumGetter.types.js} +0 -0
  713. /package/internals/plugins/{models/seriesConfig/seriesProcessor.types.js → corePlugins/useChartSeriesConfig/types/seriesConfig.types.js} +0 -0
  714. /package/internals/plugins/{models/seriesConfig/tooltipGetter.types.js → corePlugins/useChartSeriesConfig/types/seriesLayout.types.js} +0 -0
  715. /package/internals/plugins/{models/seriesConfig/tooltipItemPositionGetter.types.js → corePlugins/useChartSeriesConfig/types/seriesProcessor.types.js} +0 -0
  716. /package/internals/plugins/corePlugins/{useChartSeries → useChartSeriesConfig/utils}/serializeIdentifier.js +0 -0
@@ -1,3 +1,3 @@
1
- import { type HighlightScope } from "./highlightConfig.types.js";
1
+ import { type ChartSeriesType, type HighlightScope } from "../../../../models/seriesType/config.js";
2
2
  import { type HighlightItemData } from "./useChartHighlight.types.js";
3
- export declare function createIsHighlighted(highlightScope: HighlightScope | null | undefined, highlightedItem: HighlightItemData | null): (item: HighlightItemData | null) => boolean;
3
+ export declare function createIsHighlighted<SeriesType extends Exclude<ChartSeriesType, 'sankey'>>(highlightScope: HighlightScope<SeriesType> | null | undefined, highlightedItem: HighlightItemData | null): (item: HighlightItemData | null) => boolean;
@@ -1,6 +1,6 @@
1
1
  export type HighlightOptions = 'none' | 'item' | 'series';
2
2
  export type FadeOptions = 'none' | 'series' | 'global';
3
- export type HighlightScope = {
3
+ export type CommonHighlightScope = {
4
4
  /**
5
5
  * The scope of highlighted elements.
6
6
  * - 'none': no highlight.
@@ -1,16 +1,20 @@
1
- import { type HighlightItemData } from "./useChartHighlight.types.js";
2
- import { type HighlightScope } from "./highlightConfig.types.js";
3
- import { type SeriesId } from "../../../../models/seriesType/common.js";
4
- export declare function isSeriesHighlighted(scope: Partial<HighlightScope> | null, item: HighlightItemData | null, seriesId: SeriesId): boolean;
5
- export declare function isSeriesFaded(scope: Partial<HighlightScope> | null, item: HighlightItemData | null, seriesId: SeriesId): boolean;
1
+ import type { SeriesId } from "../../../../models/seriesType/index.js";
2
+ import type { ChartsSeriesConfig, HighlightScope } from "../../../../models/seriesType/config.js";
3
+ import type { HighlightItemData } from "./useChartHighlight.types.js";
4
+ type SeriesTypeWithDataIndex = 'radar' | 'line' | 'scatter' | 'bar' | (ChartsSeriesConfig extends {
5
+ rangeBar: any;
6
+ } ? 'rangeBar' : never);
7
+ export declare function isSeriesHighlighted<SeriesType extends SeriesTypeWithDataIndex>(scope: Partial<HighlightScope<SeriesType>> | null, item: HighlightItemData | null, seriesId: SeriesId): boolean;
8
+ export declare function isSeriesFaded<SeriesType extends SeriesTypeWithDataIndex>(scope: Partial<HighlightScope<SeriesType>> | null, item: HighlightItemData | null, seriesId: SeriesId): boolean;
6
9
  /**
7
10
  * Returns the data index of the highlighted item for a specific series.
8
11
  * If the item is not highlighted, it returns `null`.
9
12
  */
10
- export declare function getSeriesHighlightedItem(scope: Partial<HighlightScope> | null, item: HighlightItemData | null, seriesId: SeriesId): number | null | undefined;
13
+ export declare function getSeriesHighlightedDataIndex<SeriesType extends SeriesTypeWithDataIndex>(scope: Partial<HighlightScope<SeriesType>> | null, item: HighlightItemData | null, seriesId: SeriesId): number | null | undefined;
11
14
  /**
12
15
  * Returns the data index of the "unfaded item" for a specific series.
13
16
  * An "unfaded item" is the only item of a faded series that shouldn't be faded.
14
17
  * If the series is not faded or if there is no highlighted item, it returns `null`.
15
18
  */
16
- export declare function getSeriesUnfadedItem(scope: Partial<HighlightScope> | null, item: HighlightItemData | null, seriesId: SeriesId): number | null | undefined;
19
+ export declare function getSeriesUnfadedDataIndex<SeriesType extends SeriesTypeWithDataIndex>(scope: Partial<HighlightScope<SeriesType>> | null, item: HighlightItemData | null, seriesId: SeriesId): number | null | undefined;
20
+ export {};
@@ -12,7 +12,7 @@ export function isSeriesFaded(scope, item, seriesId) {
12
12
  * Returns the data index of the highlighted item for a specific series.
13
13
  * If the item is not highlighted, it returns `null`.
14
14
  */
15
- export function getSeriesHighlightedItem(scope, item, seriesId) {
15
+ export function getSeriesHighlightedDataIndex(scope, item, seriesId) {
16
16
  return scope?.highlight === 'item' && item?.seriesId === seriesId ? item.dataIndex : null;
17
17
  }
18
18
 
@@ -21,11 +21,11 @@ export function getSeriesHighlightedItem(scope, item, seriesId) {
21
21
  * An "unfaded item" is the only item of a faded series that shouldn't be faded.
22
22
  * If the series is not faded or if there is no highlighted item, it returns `null`.
23
23
  */
24
- export function getSeriesUnfadedItem(scope, item, seriesId) {
24
+ export function getSeriesUnfadedDataIndex(scope, item, seriesId) {
25
25
  if (isSeriesHighlighted(scope, item, seriesId)) {
26
26
  return null;
27
27
  }
28
- if (getSeriesHighlightedItem(scope, item, seriesId) === item?.dataIndex) {
28
+ if (getSeriesHighlightedDataIndex(scope, item, seriesId) === item?.dataIndex) {
29
29
  return null;
30
30
  }
31
31
  return (scope?.fade === 'series' || scope?.fade === 'global') && item?.seriesId === seriesId ? item.dataIndex : null;
@@ -1,36 +1,34 @@
1
- import { type SeriesId } from "../../../../models/seriesType/common.js";
2
1
  import { type HighlightItemData } from "./useChartHighlight.types.js";
3
- import { type HighlightScope } from "./highlightConfig.types.js";
4
- export declare const selectorChartsHighlightScopePerSeriesId: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<{}> & {
2
+ export declare const selectorChartsHighlightScopePerSeriesId: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<{}> & {
5
3
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
6
- }) => Map<SeriesId, Partial<HighlightScope> | undefined>;
7
- export declare const selectorChartsHighlightedItem: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<{}> & {
4
+ }) => Map<string, Partial<any> | undefined>;
5
+ export declare const selectorChartsHighlightedItem: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<{}> & {
8
6
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
9
7
  }) => HighlightItemData | null;
10
- export declare const selectorChartsHighlightScope: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<{}> & {
8
+ export declare const selectorChartsHighlightScope: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<{}> & {
11
9
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
12
- }) => Partial<HighlightScope> | null;
13
- export declare const selectorChartsIsHighlightedCallback: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<{}> & {
10
+ }) => Partial<any> | null;
11
+ export declare const selectorChartsIsHighlightedCallback: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<{}> & {
14
12
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
15
13
  }) => (item: HighlightItemData | null) => boolean;
16
- export declare const selectorChartsIsFadedCallback: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<{}> & {
14
+ export declare const selectorChartsIsFadedCallback: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<{}> & {
17
15
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
18
16
  }) => (item: HighlightItemData | null) => boolean;
19
- export declare const selectorChartsIsHighlighted: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<{}> & {
17
+ export declare const selectorChartsIsHighlighted: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<{}> & {
20
18
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
21
19
  }, item: HighlightItemData | null) => boolean;
22
- export declare const selectorChartIsSeriesHighlighted: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<{}> & {
20
+ export declare const selectorChartIsSeriesHighlighted: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<{}> & {
23
21
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
24
- }, seriesId: SeriesId) => boolean;
25
- export declare const selectorChartIsSeriesFaded: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<{}> & {
22
+ }, seriesId: string) => boolean;
23
+ export declare const selectorChartIsSeriesFaded: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<{}> & {
26
24
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
27
- }, seriesId: SeriesId) => boolean;
28
- export declare const selectorChartSeriesUnfadedItem: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<{}> & {
25
+ }, seriesId: string) => boolean;
26
+ export declare const selectorChartSeriesUnfadedItem: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<{}> & {
29
27
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
30
- }, seriesId: SeriesId) => number | null | undefined;
31
- export declare const selectorChartSeriesHighlightedItem: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<{}> & {
28
+ }, seriesId: string) => number | null | undefined;
29
+ export declare const selectorChartSeriesHighlightedItem: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<{}> & {
32
30
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
33
- }, seriesId: SeriesId) => number | null | undefined;
34
- export declare const selectorChartsIsFaded: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<{}> & {
31
+ }, seriesId: string) => number | null | undefined;
32
+ export declare const selectorChartsIsFaded: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<{}> & {
35
33
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
36
34
  }, item: HighlightItemData | null) => boolean;
@@ -1,11 +1,11 @@
1
1
  import { createSelector, createSelectorMemoized } from '@mui/x-internals/store';
2
2
  import { createIsHighlighted } from "./createIsHighlighted.js";
3
3
  import { createIsFaded } from "./createIsFaded.js";
4
- import { getSeriesHighlightedItem, getSeriesUnfadedItem, isSeriesFaded, isSeriesHighlighted } from "./highlightStates.js";
4
+ import { getSeriesHighlightedDataIndex, getSeriesUnfadedDataIndex, isSeriesFaded, isSeriesHighlighted } from "./highlightStates.js";
5
5
  import { selectorChartsKeyboardItem } from "../useChartKeyboardNavigation/index.js";
6
6
  import { selectorChartSeriesProcessed } from "../../corePlugins/useChartSeries/useChartSeries.selectors.js";
7
7
  const selectHighlight = state => state.highlight;
8
- export const selectorChartsHighlightScopePerSeriesId = createSelector(selectorChartSeriesProcessed, processedSeries => {
8
+ export const selectorChartsHighlightScopePerSeriesId = createSelectorMemoized(selectorChartSeriesProcessed, processedSeries => {
9
9
  const map = new Map();
10
10
  Object.keys(processedSeries).forEach(seriesType => {
11
11
  const seriesData = processedSeries[seriesType];
@@ -36,8 +36,8 @@ export const selectorChartsIsHighlighted = createSelector(selectorChartsHighligh
36
36
  });
37
37
  export const selectorChartIsSeriesHighlighted = createSelector(selectorChartsHighlightScope, selectorChartsHighlightedItem, isSeriesHighlighted);
38
38
  export const selectorChartIsSeriesFaded = createSelector(selectorChartsHighlightScope, selectorChartsHighlightedItem, isSeriesFaded);
39
- export const selectorChartSeriesUnfadedItem = createSelector(selectorChartsHighlightScope, selectorChartsHighlightedItem, getSeriesUnfadedItem);
40
- export const selectorChartSeriesHighlightedItem = createSelector(selectorChartsHighlightScope, selectorChartsHighlightedItem, getSeriesHighlightedItem);
39
+ export const selectorChartSeriesUnfadedItem = createSelector(selectorChartsHighlightScope, selectorChartsHighlightedItem, getSeriesUnfadedDataIndex);
40
+ export const selectorChartSeriesHighlightedItem = createSelector(selectorChartsHighlightScope, selectorChartsHighlightedItem, getSeriesHighlightedDataIndex);
41
41
  export const selectorChartsIsFaded = createSelector(selectorChartsHighlightScope, selectorChartsHighlightedItem, function selectorChartsIsFaded(highlightScope, highlightedItem, item) {
42
42
  return createIsFaded(highlightScope, highlightedItem)(item);
43
43
  });
@@ -1,18 +1,18 @@
1
- export declare const selectorChartsInteractionIsInitialized: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartInteraction.types.js").UseChartInteractionState> & {
1
+ export declare const selectorChartsInteractionIsInitialized: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartInteraction.types.js").UseChartInteractionState> & {
2
2
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
3
3
  }) => boolean;
4
- export declare const selectorChartsInteractionPointer: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartInteraction.types.js").UseChartInteractionState> & {
4
+ export declare const selectorChartsInteractionPointer: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartInteraction.types.js").UseChartInteractionState> & {
5
5
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
6
6
  }) => import("./useChartInteraction.types.js").Coordinate | null;
7
- export declare const selectorChartsInteractionPointerX: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartInteraction.types.js").UseChartInteractionState> & {
7
+ export declare const selectorChartsInteractionPointerX: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartInteraction.types.js").UseChartInteractionState> & {
8
8
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
9
9
  }) => number | null;
10
- export declare const selectorChartsInteractionPointerY: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartInteraction.types.js").UseChartInteractionState> & {
10
+ export declare const selectorChartsInteractionPointerY: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartInteraction.types.js").UseChartInteractionState> & {
11
11
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
12
12
  }) => number | null;
13
- export declare const selectorChartsLastInteraction: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartInteraction.types.js").UseChartInteractionState> & {
13
+ export declare const selectorChartsLastInteraction: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartInteraction.types.js").UseChartInteractionState> & {
14
14
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
15
15
  }) => import("./useChartInteraction.types.js").InteractionUpdateSource | undefined;
16
- export declare const selectorChartsPointerType: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartInteraction.types.js").UseChartInteractionState> & {
16
+ export declare const selectorChartsPointerType: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartInteraction.types.js").UseChartInteractionState> & {
17
17
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
18
18
  }) => "mouse" | "pen" | "touch" | null;
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- import { getSVGPoint } from "../../../getSVGPoint.js";
3
+ import { getChartPoint } from "../../../getChartPoint.js";
4
4
  export const useChartItemClick = ({
5
5
  params,
6
6
  store,
@@ -15,14 +15,14 @@ export const useChartItemClick = ({
15
15
  };
16
16
  }
17
17
  const getItemPosition = event => {
18
- const svgPoint = getSVGPoint(event?.currentTarget, event);
18
+ const svgPoint = getChartPoint(event?.currentTarget, event);
19
19
  if (!instance.isPointInside(svgPoint.x, svgPoint.y)) {
20
20
  return undefined;
21
21
  }
22
22
  let item = undefined;
23
- for (const seriesType of Object.keys(store.state.series.seriesConfig)) {
23
+ for (const seriesType of Object.keys(store.state.seriesConfig.config)) {
24
24
  // @ts-ignore The type inference for store.state does not support generic yet
25
- item = store.state.series.seriesConfig[seriesType].getItemAtPosition?.(store.state, {
25
+ item = store.state.seriesConfig.config[seriesType].getItemAtPosition?.(store.state, {
26
26
  x: svgPoint.x,
27
27
  y: svgPoint.y
28
28
  });
@@ -1,6 +1,7 @@
1
- import type { ChartPluginSignature, ChartSeriesTypeRequiredPlugins } from "../../models/index.js";
1
+ import type { ChartPluginSignature } from "../../models/index.js";
2
2
  import type { ChartSeriesType } from "../../../../models/seriesType/config.js";
3
3
  import type { SeriesItemIdentifier } from "../../../../models/seriesType/index.js";
4
+ import type { ChartSeriesTypeRequiredPlugins } from "../../corePlugins/useChartSeriesConfig/index.js";
4
5
  export interface UseChartItemClickParameters<SeriesType extends ChartSeriesType = ChartSeriesType> {
5
6
  /**
6
7
  * The callback fired when an item is clicked.
@@ -5,11 +5,15 @@ import * as React from 'react';
5
5
  import useEventCallback from '@mui/utils/useEventCallback';
6
6
  import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
7
7
  import { selectorChartDefaultizedSeries } from "../../corePlugins/useChartSeries/useChartSeries.selectors.js";
8
+ import { selectorChartSeriesConfig } from "../../corePlugins/useChartSeriesConfig/index.js";
8
9
  export const useChartKeyboardNavigation = ({
9
10
  params,
10
11
  store,
11
- svgRef
12
+ instance
12
13
  }) => {
14
+ const {
15
+ svgRef
16
+ } = instance;
13
17
  const removeFocus = useEventCallback(function removeFocus() {
14
18
  if (store.state.keyboardNavigation.item !== null) {
15
19
  store.set('keyboardNavigation', _extends({}, store.state.keyboardNavigation, {
@@ -24,14 +28,15 @@ export const useChartKeyboardNavigation = ({
24
28
  }
25
29
  function keyboardHandler(event) {
26
30
  let newFocusedItem = store.state.keyboardNavigation.item;
31
+ const seriesConfig = selectorChartSeriesConfig(store.state);
27
32
  let seriesType = newFocusedItem?.type;
28
33
  if (!seriesType) {
29
- seriesType = Object.keys(selectorChartDefaultizedSeries(store.state)).find(key => store.state.series.seriesConfig[key] !== undefined);
34
+ seriesType = Object.keys(selectorChartDefaultizedSeries(store.state)).find(key => seriesConfig[key] !== undefined);
30
35
  if (seriesType === undefined) {
31
36
  return;
32
37
  }
33
38
  }
34
- const calculateFocusedItem = store.state.series.seriesConfig[seriesType]?.keyboardFocusHandler?.(event);
39
+ const calculateFocusedItem = seriesConfig[seriesType]?.keyboardFocusHandler?.(event);
35
40
  if (!calculateFocusedItem) {
36
41
  return;
37
42
  }
@@ -1,23 +1,23 @@
1
1
  import type { FocusedItemIdentifier } from "../../../../models/seriesType/index.js";
2
2
  import { type AxisItemIdentifier } from "../../../../models/axis.js";
3
- export declare const selectorChartsItemIsFocused: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartKeyboardNavigation.types.js").UseChartKeyboardNavigationState> & {
3
+ export declare const selectorChartsItemIsFocused: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartKeyboardNavigation.types.js").UseChartKeyboardNavigationState> & {
4
4
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
5
5
  }, item: FocusedItemIdentifier<keyof import("../../../index.js").ChartsSeriesConfig>) => boolean;
6
- export declare const selectorChartsHasFocusedItem: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartKeyboardNavigation.types.js").UseChartKeyboardNavigationState> & {
6
+ export declare const selectorChartsHasFocusedItem: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartKeyboardNavigation.types.js").UseChartKeyboardNavigationState> & {
7
7
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
8
8
  }) => boolean;
9
- export declare const selectorChartsFocusedItem: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartKeyboardNavigation.types.js").UseChartKeyboardNavigationState> & {
9
+ export declare const selectorChartsFocusedItem: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartKeyboardNavigation.types.js").UseChartKeyboardNavigationState> & {
10
10
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
11
11
  }) => FocusedItemIdentifier<keyof import("../../../index.js").ChartsSeriesConfig> | null;
12
- export declare const selectorChartsIsKeyboardNavigationEnabled: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartKeyboardNavigation.types.js").UseChartKeyboardNavigationState> & {
12
+ export declare const selectorChartsIsKeyboardNavigationEnabled: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartKeyboardNavigation.types.js").UseChartKeyboardNavigationState> & {
13
13
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
14
14
  }) => boolean;
15
- export declare const selectorChartsKeyboardXAxisIndex: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartKeyboardNavigation.types.js").UseChartKeyboardNavigationState> & {
15
+ export declare const selectorChartsKeyboardXAxisIndex: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartKeyboardNavigation.types.js").UseChartKeyboardNavigationState> & {
16
16
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
17
17
  }) => AxisItemIdentifier | undefined;
18
- export declare const selectorChartsKeyboardYAxisIndex: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartKeyboardNavigation.types.js").UseChartKeyboardNavigationState> & {
18
+ export declare const selectorChartsKeyboardYAxisIndex: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartKeyboardNavigation.types.js").UseChartKeyboardNavigationState> & {
19
19
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
20
20
  }) => AxisItemIdentifier | undefined;
21
- export declare const selectorChartsKeyboardItem: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartKeyboardNavigation.types.js").UseChartKeyboardNavigationState> & {
21
+ export declare const selectorChartsKeyboardItem: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartKeyboardNavigation.types.js").UseChartKeyboardNavigationState> & {
22
22
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
23
23
  }) => FocusedItemIdentifier<keyof import("../../../index.js").ChartsSeriesConfig> | null;
@@ -2,7 +2,7 @@ import { type AxisConfig, type ScaleName } from "../../../../models/index.js";
2
2
  import { type ChartsAxisProps, type ChartsRotationAxisProps, type ChartsRadiusAxisProps, type PolarAxisDefaultized, type AxisId } from "../../../../models/axis.js";
3
3
  import { type ChartSeriesType } from "../../../../models/seriesType/config.js";
4
4
  import type { ChartDrawingArea } from "../../../../hooks/index.js";
5
- import { type ChartSeriesConfig } from "../../models/seriesConfig/index.js";
5
+ import { type ChartSeriesConfig } from "../../corePlugins/useChartSeriesConfig/index.js";
6
6
  import { type ProcessedSeries } from "../../corePlugins/useChartSeries/useChartSeries.types.js";
7
7
  export type DefaultizedAxisConfig<AxisProps extends ChartsRotationAxisProps | ChartsRadiusAxisProps> = {
8
8
  [axisId: AxisId]: PolarAxisDefaultized<ScaleName, any, AxisProps>;
@@ -1,5 +1,5 @@
1
1
  import { type AxisConfig } from "../../../../models/axis.js";
2
2
  import { type PolarChartSeriesType } from "../../../../models/seriesType/config.js";
3
- import { type ChartSeriesConfig } from "../../models/seriesConfig/index.js";
3
+ import { type ChartSeriesConfig } from "../../corePlugins/useChartSeriesConfig/index.js";
4
4
  import { type ProcessedSeries } from "../../corePlugins/useChartSeries/useChartSeries.types.js";
5
5
  export declare const getAxisExtremum: <TSeriesType extends PolarChartSeriesType>(axis: AxisConfig, axisDirection: "rotation" | "radius", seriesConfig: ChartSeriesConfig<TSeriesType>, axisIndex: number, formattedSeries: ProcessedSeries<TSeriesType>) => number[];
@@ -1,5 +1,5 @@
1
1
  import { type PolarChartSeriesType } from "../../../../models/seriesType/config.js";
2
- import { type ChartSeriesConfig } from "../../models/seriesConfig/index.js";
2
+ import { type ChartSeriesConfig } from "../../corePlugins/useChartSeriesConfig/index.js";
3
3
  import { type ProcessedSeries } from "../../corePlugins/useChartSeries/useChartSeries.types.js";
4
4
  import { type AxisId } from "../../../../models/axis.js";
5
5
  export declare const getAxisTriggerTooltip: <TSeriesType extends PolarChartSeriesType>(axisDirection: "radius" | "rotation", seriesConfig: ChartSeriesConfig<TSeriesType>, formattedSeries: ProcessedSeries<TSeriesType>, defaultAxisId: AxisId) => Set<AxisId>;
@@ -7,7 +7,7 @@ import { selectorChartDrawingArea } from "../../corePlugins/useChartDimensions/u
7
7
  import { defaultizeAxis } from "./defaultizeAxis.js";
8
8
  import { selectorChartsInteractionIsInitialized } from "../useChartInteraction/index.js";
9
9
  import { selectorChartPolarCenter, selectorChartRadiusAxis, selectorChartRotationAxis } from "./useChartPolarAxis.selectors.js";
10
- import { getSVGPoint } from "../../../getSVGPoint.js";
10
+ import { getChartPoint } from "../../../getChartPoint.js";
11
11
  import { generatePolar2svg, generateSvg2polar, generateSvg2rotation } from "./coordinateTransformation.js";
12
12
  import { getAxisIndex } from "./getAxisIndex.js";
13
13
  import { selectorChartSeriesProcessed } from "../../corePlugins/useChartSeries/index.js";
@@ -15,10 +15,11 @@ import { checkHasInteractionPlugin } from "../useChartInteraction/checkHasIntera
15
15
  export const useChartPolarAxis = ({
16
16
  params,
17
17
  store,
18
- seriesConfig,
19
- svgRef,
20
18
  instance
21
19
  }) => {
20
+ const {
21
+ svgRef
22
+ } = instance;
22
23
  const {
23
24
  rotationAxis,
24
25
  radiusAxis,
@@ -56,7 +57,7 @@ export const useChartPolarAxis = ({
56
57
  rotation: defaultizeAxis(rotationAxis, dataset, 'rotation'),
57
58
  radius: defaultizeAxis(radiusAxis, dataset, 'radius')
58
59
  }));
59
- }, [seriesConfig, drawingArea, rotationAxis, radiusAxis, dataset, store]);
60
+ }, [drawingArea, rotationAxis, radiusAxis, dataset, store]);
60
61
  const svg2rotation = React.useMemo(() => generateSvg2rotation({
61
62
  cx: center.cx,
62
63
  cy: center.cy
@@ -114,7 +115,7 @@ export const useChartPolarAxis = ({
114
115
  instance.cleanInteraction?.();
115
116
  return;
116
117
  }
117
- const svgPoint = getSVGPoint(element, srcEvent);
118
+ const svgPoint = getChartPoint(element, srcEvent);
118
119
  mousePosition.current.isInChart = true;
119
120
  instance.setPointerCoordinate?.(svgPoint);
120
121
  return;
@@ -122,7 +123,7 @@ export const useChartPolarAxis = ({
122
123
 
123
124
  // On mouse, we want to restrict the interaction to the drawing area and radar circle.
124
125
 
125
- const svgPoint = getSVGPoint(element, srcEvent);
126
+ const svgPoint = getChartPoint(element, srcEvent);
126
127
 
127
128
  // Test if it's in the drawing area
128
129
  if (!instance.isPointInside(svgPoint.x, svgPoint.y, event.detail.target)) {
@@ -167,7 +168,7 @@ export const useChartPolarAxis = ({
167
168
  const axisClickHandler = instance.addInteractionListener('tap', event => {
168
169
  let dataIndex = null;
169
170
  let isRotationAxis = false;
170
- const svgPoint = getSVGPoint(element, event.detail.srcEvent);
171
+ const svgPoint = getChartPoint(element, event.detail.srcEvent);
171
172
  const rotation = generateSvg2rotation(center)(svgPoint.x, svgPoint.y);
172
173
  const rotationIndex = getAxisIndex(rotationAxisWithScale[usedRotationAxisId], rotation);
173
174
  isRotationAxis = rotationIndex !== -1;
@@ -5,26 +5,26 @@ export declare const selectorChartPolarAxisState: (state: ChartState<[], [UseCha
5
5
  rotation: import("../../../index.js").AxisConfig<import("../../../index.js").ScaleName, any, import("../../../index.js").ChartsRotationAxisProps>[];
6
6
  radius: import("../../../index.js").AxisConfig<"linear", any, import("../../../index.js").ChartsRadiusAxisProps>[];
7
7
  } | undefined;
8
- export declare const selectorChartRawRotationAxis: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartPolarAxis.types.js").UseChartPolarAxisState> & {
8
+ export declare const selectorChartRawRotationAxis: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartPolarAxis.types.js").UseChartPolarAxisState> & {
9
9
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
10
10
  }) => import("../../../index.js").AxisConfig<keyof import("../../../index.js").AxisScaleConfig, any, import("../../../index.js").ChartsRotationAxisProps>[] | undefined;
11
- export declare const selectorChartRawRadiusAxis: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartPolarAxis.types.js").UseChartPolarAxisState> & {
11
+ export declare const selectorChartRawRadiusAxis: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartPolarAxis.types.js").UseChartPolarAxisState> & {
12
12
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
13
13
  }) => import("../../../index.js").AxisConfig<"linear", any, import("../../../index.js").ChartsRadiusAxisProps>[] | undefined;
14
14
  /**
15
15
  * The only interesting selectors that merge axis data and zoom if provided.
16
16
  */
17
- export declare const selectorChartRotationAxis: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartPolarAxis.types.js").UseChartPolarAxisState> & {
17
+ export declare const selectorChartRotationAxis: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartPolarAxis.types.js").UseChartPolarAxisState> & {
18
18
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
19
19
  }) => import("./computeAxisValue.js").ComputeResult<import("../../../index.js").ChartsRotationAxisProps>;
20
- export declare const selectorChartRadiusAxis: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartPolarAxis.types.js").UseChartPolarAxisState> & {
20
+ export declare const selectorChartRadiusAxis: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartPolarAxis.types.js").UseChartPolarAxisState> & {
21
21
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
22
22
  }) => import("./computeAxisValue.js").ComputeResult<import("../../../index.js").ChartsRadiusAxisProps>;
23
23
  export declare function getDrawingAreaCenter(drawingArea: ChartDrawingArea): {
24
24
  cx: number;
25
25
  cy: number;
26
26
  };
27
- export declare const selectorChartPolarCenter: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<{}> & {
27
+ export declare const selectorChartPolarCenter: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<{}> & {
28
28
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
29
29
  }) => {
30
30
  cx: number;
@@ -1,7 +1,8 @@
1
1
  import { createSelector, createSelectorMemoized } from '@mui/x-internals/store';
2
2
  import { selectorChartDrawingArea } from "../../corePlugins/useChartDimensions/index.js";
3
- import { selectorChartSeriesConfig, selectorChartSeriesProcessed } from "../../corePlugins/useChartSeries/index.js";
3
+ import { selectorChartSeriesProcessed } from "../../corePlugins/useChartSeries/index.js";
4
4
  import { computeAxisValue } from "./computeAxisValue.js";
5
+ import { selectorChartSeriesConfig } from "../../corePlugins/useChartSeriesConfig/index.js";
5
6
  export const selectorChartPolarAxisState = state => state.polarAxis;
6
7
  export const selectorChartRawRotationAxis = createSelector(selectorChartPolarAxisState, axis => axis?.rotation);
7
8
  export const selectorChartRawRadiusAxis = createSelector(selectorChartPolarAxisState, axis => axis?.radius);