@mui/x-charts 9.7.0 → 9.9.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 (334) hide show
  1. package/BarChart/AnimatedBarElement.d.mts +1 -1
  2. package/BarChart/AnimatedBarElement.d.ts +1 -1
  3. package/BarChart/BarClipPath.d.mts +1 -1
  4. package/BarChart/BarClipPath.d.ts +1 -1
  5. package/BarChart/BarElement.d.mts +1 -1
  6. package/BarChart/BarElement.d.ts +1 -1
  7. package/BarChart/BarLabel/BarLabelItem.d.mts +1 -1
  8. package/BarChart/BarLabel/BarLabelItem.d.ts +1 -1
  9. package/BarChart/BarLabel/BarLabelPlot.d.mts +2 -1
  10. package/BarChart/BarLabel/BarLabelPlot.d.ts +2 -1
  11. package/BarChart/BatchBarPlot/BarGroup.d.mts +1 -1
  12. package/BarChart/BatchBarPlot/BarGroup.d.ts +1 -1
  13. package/BarChart/BatchBarPlot/BatchBarPlot.d.mts +2 -1
  14. package/BarChart/BatchBarPlot/BatchBarPlot.d.ts +2 -1
  15. package/BarChart/FocusedBar.d.mts +1 -1
  16. package/BarChart/FocusedBar.d.ts +1 -1
  17. package/BarChart/IndividualBarPlot.d.mts +2 -1
  18. package/BarChart/IndividualBarPlot.d.ts +2 -1
  19. package/BarChart/seriesConfig/bar/tooltipPosition.d.mts +2 -3
  20. package/BarChart/seriesConfig/bar/tooltipPosition.d.ts +2 -3
  21. package/BarChart/seriesConfig/bar/tooltipPosition.js +19 -15
  22. package/BarChart/seriesConfig/bar/tooltipPosition.mjs +18 -14
  23. package/BarChart/seriesConfig/index.js +2 -2
  24. package/BarChart/seriesConfig/index.mjs +2 -2
  25. package/BarChart/useBarPlotData.d.mts +5 -1
  26. package/BarChart/useBarPlotData.d.ts +5 -1
  27. package/BarChart/useBarPlotData.js +102 -25
  28. package/BarChart/useBarPlotData.mjs +102 -26
  29. package/CHANGELOG.md +249 -1
  30. package/ChartsAxis/ChartsAxis.d.mts +2 -1
  31. package/ChartsAxis/ChartsAxis.d.ts +2 -1
  32. package/ChartsAxisHighlight/ChartsAxisHighlight.d.mts +2 -1
  33. package/ChartsAxisHighlight/ChartsAxisHighlight.d.ts +2 -1
  34. package/ChartsAxisHighlight/ChartsXAxisHighlight.d.mts +2 -1
  35. package/ChartsAxisHighlight/ChartsXAxisHighlight.d.ts +2 -1
  36. package/ChartsAxisHighlight/ChartsXAxisHighlight.js +22 -5
  37. package/ChartsAxisHighlight/ChartsXAxisHighlight.mjs +23 -6
  38. package/ChartsAxisHighlight/ChartsYAxisHighlight.d.mts +2 -1
  39. package/ChartsAxisHighlight/ChartsYAxisHighlight.d.ts +2 -1
  40. package/ChartsAxisHighlight/ChartsYAxisHighlight.js +22 -5
  41. package/ChartsAxisHighlight/ChartsYAxisHighlight.mjs +23 -6
  42. package/ChartsAxisHighlight/getSampledBandHighlight.d.mts +27 -0
  43. package/ChartsAxisHighlight/getSampledBandHighlight.d.ts +27 -0
  44. package/ChartsAxisHighlight/getSampledBandHighlight.js +35 -0
  45. package/ChartsAxisHighlight/getSampledBandHighlight.mjs +29 -0
  46. package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.d.mts +1 -1
  47. package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.d.ts +1 -1
  48. package/ChartsAxisHighlightValue/ChartsAxisHighlightValueItem.d.mts +2 -1
  49. package/ChartsAxisHighlightValue/ChartsAxisHighlightValueItem.d.ts +2 -1
  50. package/ChartsBrushOverlay/ChartsBrushOverlay.d.mts +2 -1
  51. package/ChartsBrushOverlay/ChartsBrushOverlay.d.ts +2 -1
  52. package/ChartsClipPath/ChartsClipPath.d.mts +1 -1
  53. package/ChartsClipPath/ChartsClipPath.d.ts +1 -1
  54. package/ChartsDataProvider/ChartsDataProvider.d.mts +1 -1
  55. package/ChartsDataProvider/ChartsDataProvider.d.ts +1 -1
  56. package/ChartsGrid/ChartsGrid.d.mts +1 -1
  57. package/ChartsGrid/ChartsGrid.d.ts +1 -1
  58. package/ChartsGrid/ChartsHorizontalGrid.d.mts +2 -1
  59. package/ChartsGrid/ChartsHorizontalGrid.d.ts +2 -1
  60. package/ChartsGrid/ChartsVerticalGrid.d.mts +2 -1
  61. package/ChartsGrid/ChartsVerticalGrid.d.ts +2 -1
  62. package/ChartsLocalizationProvider/ChartsLocalizationProvider.d.mts +1 -1
  63. package/ChartsLocalizationProvider/ChartsLocalizationProvider.d.ts +1 -1
  64. package/ChartsOverlay/ChartsLoadingOverlay.d.mts +1 -1
  65. package/ChartsOverlay/ChartsLoadingOverlay.d.ts +1 -1
  66. package/ChartsOverlay/ChartsNoDataOverlay.d.mts +1 -1
  67. package/ChartsOverlay/ChartsNoDataOverlay.d.ts +1 -1
  68. package/ChartsOverlay/ChartsOverlay.d.mts +1 -1
  69. package/ChartsOverlay/ChartsOverlay.d.ts +1 -1
  70. package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.d.mts +2 -1
  71. package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.d.ts +2 -1
  72. package/ChartsRadialAxisHighlight/ChartsRadiusAxisHighlight.d.mts +2 -1
  73. package/ChartsRadialAxisHighlight/ChartsRadiusAxisHighlight.d.ts +2 -1
  74. package/ChartsRadialAxisHighlight/ChartsRotationAxisHighlight.d.mts +2 -1
  75. package/ChartsRadialAxisHighlight/ChartsRotationAxisHighlight.d.ts +2 -1
  76. package/ChartsRadialDataProvider/ChartsRadialDataProvider.d.mts +1 -1
  77. package/ChartsRadialDataProvider/ChartsRadialDataProvider.d.ts +1 -1
  78. package/ChartsRadialGrid/ChartsRadialGrid.d.mts +1 -1
  79. package/ChartsRadialGrid/ChartsRadialGrid.d.ts +1 -1
  80. package/ChartsRadialGrid/ChartsRadiusGrid.d.mts +2 -1
  81. package/ChartsRadialGrid/ChartsRadiusGrid.d.ts +2 -1
  82. package/ChartsRadialGrid/ChartsRotationGrid.d.mts +2 -1
  83. package/ChartsRadialGrid/ChartsRotationGrid.d.ts +2 -1
  84. package/ChartsRadiusAxis/ChartsRadiusAxis.d.mts +1 -1
  85. package/ChartsRadiusAxis/ChartsRadiusAxis.d.ts +1 -1
  86. package/ChartsReferenceLine/ChartsReferenceLine.d.mts +1 -1
  87. package/ChartsReferenceLine/ChartsReferenceLine.d.ts +1 -1
  88. package/ChartsReferenceLine/ChartsXReferenceLine.d.mts +1 -1
  89. package/ChartsReferenceLine/ChartsXReferenceLine.d.ts +1 -1
  90. package/ChartsReferenceLine/ChartsYReferenceLine.d.mts +1 -1
  91. package/ChartsReferenceLine/ChartsYReferenceLine.d.ts +1 -1
  92. package/ChartsRotationAxis/ChartsRotationAxis.d.mts +1 -1
  93. package/ChartsRotationAxis/ChartsRotationAxis.d.ts +1 -1
  94. package/ChartsText/ChartsText.d.mts +1 -1
  95. package/ChartsText/ChartsText.d.ts +1 -1
  96. package/ChartsTooltip/ChartsAxisTooltipContent.d.mts +1 -1
  97. package/ChartsTooltip/ChartsAxisTooltipContent.d.ts +1 -1
  98. package/ChartsTooltip/ChartsItemTooltipContent.d.mts +2 -1
  99. package/ChartsTooltip/ChartsItemTooltipContent.d.ts +2 -1
  100. package/ChartsTooltip/ChartsTooltip.d.mts +1 -1
  101. package/ChartsTooltip/ChartsTooltip.d.ts +1 -1
  102. package/ChartsTooltip/ChartsTooltipContainer.d.mts +1 -1
  103. package/ChartsTooltip/ChartsTooltipContainer.d.ts +1 -1
  104. package/ChartsTooltip/ChartsTooltipContainer.js +10 -3
  105. package/ChartsTooltip/ChartsTooltipContainer.mjs +11 -4
  106. package/ChartsXAxis/ChartsGroupedXAxisTicks.d.mts +2 -1
  107. package/ChartsXAxis/ChartsGroupedXAxisTicks.d.ts +2 -1
  108. package/ChartsXAxis/ChartsGroupedXAxisTicks.js +3 -13
  109. package/ChartsXAxis/ChartsGroupedXAxisTicks.mjs +2 -12
  110. package/ChartsXAxis/ChartsSingleXAxisTicks.d.mts +2 -1
  111. package/ChartsXAxis/ChartsSingleXAxisTicks.d.ts +2 -1
  112. package/ChartsXAxis/ChartsXAxis.d.mts +1 -1
  113. package/ChartsXAxis/ChartsXAxis.d.ts +1 -1
  114. package/ChartsXAxis/ChartsXAxisImpl.d.mts +2 -1
  115. package/ChartsXAxis/ChartsXAxisImpl.d.ts +2 -1
  116. package/ChartsYAxis/ChartsGroupedYAxisTicks.d.mts +2 -1
  117. package/ChartsYAxis/ChartsGroupedYAxisTicks.d.ts +2 -1
  118. package/ChartsYAxis/ChartsGroupedYAxisTicks.js +4 -16
  119. package/ChartsYAxis/ChartsGroupedYAxisTicks.mjs +3 -13
  120. package/ChartsYAxis/ChartsSingleYAxisTicks.d.mts +2 -1
  121. package/ChartsYAxis/ChartsSingleYAxisTicks.d.ts +2 -1
  122. package/ChartsYAxis/ChartsYAxis.d.mts +1 -1
  123. package/ChartsYAxis/ChartsYAxis.d.ts +1 -1
  124. package/ChartsYAxis/ChartsYAxisImpl.d.mts +2 -1
  125. package/ChartsYAxis/ChartsYAxisImpl.d.ts +2 -1
  126. package/Gauge/GaugeProvider.d.mts +1 -1
  127. package/Gauge/GaugeProvider.d.ts +1 -1
  128. package/Gauge/GaugeReferenceArc.d.mts +1 -1
  129. package/Gauge/GaugeReferenceArc.d.ts +1 -1
  130. package/Gauge/GaugeValueArc.d.mts +1 -1
  131. package/Gauge/GaugeValueArc.d.ts +1 -1
  132. package/Gauge/GaugeValueText.d.mts +1 -1
  133. package/Gauge/GaugeValueText.d.ts +1 -1
  134. package/LineChart/AnimatedArea.d.mts +1 -1
  135. package/LineChart/AnimatedArea.d.ts +1 -1
  136. package/LineChart/AppearingMask.d.mts +1 -1
  137. package/LineChart/AppearingMask.d.ts +1 -1
  138. package/LineChart/AreaElement.d.mts +1 -1
  139. package/LineChart/AreaElement.d.ts +1 -1
  140. package/LineChart/AreaPlot.d.mts +1 -1
  141. package/LineChart/AreaPlot.d.ts +1 -1
  142. package/LineChart/CircleMarkElement.d.mts +1 -1
  143. package/LineChart/CircleMarkElement.d.ts +1 -1
  144. package/LineChart/FocusedLineMark.d.mts +1 -1
  145. package/LineChart/FocusedLineMark.d.ts +1 -1
  146. package/LineChart/LineElement.d.mts +1 -1
  147. package/LineChart/LineElement.d.ts +1 -1
  148. package/LineChart/LineHighlightElement.d.mts +1 -1
  149. package/LineChart/LineHighlightElement.d.ts +1 -1
  150. package/LineChart/LineHighlightPlot.d.mts +1 -1
  151. package/LineChart/LineHighlightPlot.d.ts +1 -1
  152. package/LineChart/LinePlot.d.mts +1 -1
  153. package/LineChart/LinePlot.d.ts +1 -1
  154. package/LineChart/LinePlot.js +3 -2
  155. package/LineChart/LinePlot.mjs +3 -2
  156. package/LineChart/MarkElement.d.mts +1 -1
  157. package/LineChart/MarkElement.d.ts +1 -1
  158. package/LineChart/MarkPlot.d.mts +1 -1
  159. package/LineChart/MarkPlot.d.ts +1 -1
  160. package/LineChart/seriesConfig/index.js +2 -2
  161. package/LineChart/seriesConfig/index.mjs +2 -2
  162. package/LineChart/seriesConfig/tooltipPosition.d.mts +2 -3
  163. package/LineChart/seriesConfig/tooltipPosition.d.ts +2 -3
  164. package/LineChart/seriesConfig/tooltipPosition.js +14 -14
  165. package/LineChart/seriesConfig/tooltipPosition.mjs +13 -13
  166. package/LineChart/useLinePlotData.d.mts +13 -1
  167. package/LineChart/useLinePlotData.d.ts +13 -1
  168. package/LineChart/useLinePlotData.js +90 -33
  169. package/LineChart/useLinePlotData.mjs +92 -34
  170. package/PieChart/FocusedPieArc.d.mts +1 -1
  171. package/PieChart/FocusedPieArc.d.ts +1 -1
  172. package/PieChart/PieArcLabelPlot.d.mts +1 -1
  173. package/PieChart/PieArcLabelPlot.d.ts +1 -1
  174. package/PieChart/PieArcPlot.d.mts +1 -1
  175. package/PieChart/PieArcPlot.d.ts +1 -1
  176. package/PieChart/PiePlot.d.mts +1 -1
  177. package/PieChart/PiePlot.d.ts +1 -1
  178. package/PieChart/seriesConfig/index.js +2 -2
  179. package/PieChart/seriesConfig/index.mjs +2 -2
  180. package/PieChart/seriesConfig/tooltipPosition.d.mts +2 -3
  181. package/PieChart/seriesConfig/tooltipPosition.d.ts +2 -3
  182. package/PieChart/seriesConfig/tooltipPosition.js +7 -11
  183. package/PieChart/seriesConfig/tooltipPosition.mjs +6 -10
  184. package/RadarChart/FocusedRadarMark.d.mts +1 -1
  185. package/RadarChart/FocusedRadarMark.d.ts +1 -1
  186. package/RadarChart/RadarAxis/RadarAxis.d.mts +1 -1
  187. package/RadarChart/RadarAxis/RadarAxis.d.ts +1 -1
  188. package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.mts +1 -1
  189. package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.ts +1 -1
  190. package/RadarChart/RadarDataProvider/RadarDataProvider.d.mts +2 -1
  191. package/RadarChart/RadarDataProvider/RadarDataProvider.d.ts +2 -1
  192. package/RadarChart/RadarGrid/CircularRadarGrid.d.mts +2 -1
  193. package/RadarChart/RadarGrid/CircularRadarGrid.d.ts +2 -1
  194. package/RadarChart/RadarGrid/CircularRadarStripes.d.mts +2 -1
  195. package/RadarChart/RadarGrid/CircularRadarStripes.d.ts +2 -1
  196. package/RadarChart/RadarGrid/RadarGrid.d.mts +2 -1
  197. package/RadarChart/RadarGrid/RadarGrid.d.ts +2 -1
  198. package/RadarChart/RadarGrid/SharpRadarGrid.d.mts +2 -1
  199. package/RadarChart/RadarGrid/SharpRadarGrid.d.ts +2 -1
  200. package/RadarChart/RadarGrid/SharpRadarStripes.d.mts +2 -1
  201. package/RadarChart/RadarGrid/SharpRadarStripes.d.ts +2 -1
  202. package/RadarChart/RadarMetricLabels/RadarMetricLabels.d.mts +2 -1
  203. package/RadarChart/RadarMetricLabels/RadarMetricLabels.d.ts +2 -1
  204. package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.mts +2 -1
  205. package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +2 -1
  206. package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.mts +2 -1
  207. package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +2 -1
  208. package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.d.mts +1 -1
  209. package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.d.ts +1 -1
  210. package/RadarChart/seriesConfig/index.js +2 -2
  211. package/RadarChart/seriesConfig/index.mjs +2 -2
  212. package/RadarChart/seriesConfig/tooltipPosition.d.mts +2 -3
  213. package/RadarChart/seriesConfig/tooltipPosition.d.ts +2 -3
  214. package/RadarChart/seriesConfig/tooltipPosition.js +9 -16
  215. package/RadarChart/seriesConfig/tooltipPosition.mjs +8 -15
  216. package/ScatterChart/BatchScatter.d.mts +2 -1
  217. package/ScatterChart/BatchScatter.d.ts +2 -1
  218. package/ScatterChart/FocusedScatterMark.d.mts +1 -1
  219. package/ScatterChart/FocusedScatterMark.d.ts +1 -1
  220. package/ScatterChart/HighlightedScatterMark.d.mts +1 -1
  221. package/ScatterChart/HighlightedScatterMark.d.ts +1 -1
  222. package/ScatterChart/Scatter.d.mts +1 -1
  223. package/ScatterChart/Scatter.d.ts +1 -1
  224. package/ScatterChart/ScatterMarker.d.mts +1 -1
  225. package/ScatterChart/ScatterMarker.d.ts +1 -1
  226. package/ScatterChart/ScatterPlot.d.mts +1 -1
  227. package/ScatterChart/ScatterPlot.d.ts +1 -1
  228. package/ScatterChart/async/ScatterAsync.d.mts +2 -1
  229. package/ScatterChart/async/ScatterAsync.d.ts +2 -1
  230. package/ScatterChart/async/ScatterAsyncBatch.d.mts +1 -1
  231. package/ScatterChart/async/ScatterAsyncBatch.d.ts +1 -1
  232. package/ScatterChart/seriesConfig/index.js +2 -2
  233. package/ScatterChart/seriesConfig/index.mjs +2 -2
  234. package/ScatterChart/seriesConfig/tooltipPosition.d.mts +2 -3
  235. package/ScatterChart/seriesConfig/tooltipPosition.d.ts +2 -3
  236. package/ScatterChart/seriesConfig/tooltipPosition.js +13 -13
  237. package/ScatterChart/seriesConfig/tooltipPosition.mjs +12 -12
  238. package/context/ChartsProvider/ChartsProvider.d.mts +1 -1
  239. package/context/ChartsProvider/ChartsProvider.d.ts +1 -1
  240. package/context/ChartsSlotsContext.d.mts +1 -1
  241. package/context/ChartsSlotsContext.d.ts +1 -1
  242. package/hooks/index.d.mts +2 -1
  243. package/hooks/index.d.ts +2 -1
  244. package/hooks/index.js +10 -2
  245. package/hooks/index.mjs +2 -1
  246. package/hooks/usePolarGeometry.d.mts +51 -0
  247. package/hooks/usePolarGeometry.d.ts +51 -0
  248. package/hooks/usePolarGeometry.js +47 -0
  249. package/hooks/usePolarGeometry.mjs +41 -0
  250. package/index.js +1 -1
  251. package/index.mjs +1 -1
  252. package/internals/animation/animation.d.mts +1 -1
  253. package/internals/animation/animation.d.ts +1 -1
  254. package/internals/commonNextFocusItem.d.mts +15 -5
  255. package/internals/commonNextFocusItem.d.ts +15 -5
  256. package/internals/commonNextFocusItem.js +6 -0
  257. package/internals/commonNextFocusItem.mjs +7 -0
  258. package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.d.mts +2 -1
  259. package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.d.ts +2 -1
  260. package/internals/components/ChartsAxesGradients/ChartsAxesGradients.d.mts +2 -1
  261. package/internals/components/ChartsAxesGradients/ChartsAxesGradients.d.ts +2 -1
  262. package/internals/components/ChartsAxesGradients/ChartsContinuousGradient.d.mts +1 -1
  263. package/internals/components/ChartsAxesGradients/ChartsContinuousGradient.d.ts +1 -1
  264. package/internals/components/ChartsAxesGradients/ChartsContinuousGradientObjectBound.d.mts +1 -1
  265. package/internals/components/ChartsAxesGradients/ChartsContinuousGradientObjectBound.d.ts +1 -1
  266. package/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.d.mts +2 -1
  267. package/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.d.ts +2 -1
  268. package/internals/createCommonKeyboardFocusHandler.d.mts +5 -1
  269. package/internals/createCommonKeyboardFocusHandler.d.ts +5 -1
  270. package/internals/createGetBarDimensions.d.mts +14 -1
  271. package/internals/createGetBarDimensions.d.ts +14 -1
  272. package/internals/createGetBarDimensions.js +45 -0
  273. package/internals/createGetBarDimensions.mjs +45 -0
  274. package/internals/geometry.js +1 -1
  275. package/internals/geometry.mjs +1 -1
  276. package/internals/getGroupingConfig.d.mts +6 -0
  277. package/internals/getGroupingConfig.d.ts +6 -0
  278. package/internals/getGroupingConfig.js +20 -0
  279. package/internals/getGroupingConfig.mjs +12 -0
  280. package/internals/index.d.mts +1 -2
  281. package/internals/index.d.ts +1 -2
  282. package/internals/index.js +12 -8
  283. package/internals/index.mjs +1 -2
  284. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.mts +2 -1
  285. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +2 -1
  286. package/internals/plugins/corePlugins/useChartSeriesConfig/types/colorProcessor.types.d.mts +1 -1
  287. package/internals/plugins/corePlugins/useChartSeriesConfig/types/colorProcessor.types.d.ts +1 -1
  288. package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.mts +1 -1
  289. package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.ts +1 -1
  290. package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.js +4 -4
  291. package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.mjs +1 -1
  292. package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.mts +13 -2
  293. package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.ts +13 -2
  294. package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionSelector.types.d.mts +18 -0
  295. package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionSelector.types.d.ts +18 -0
  296. package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.mts +2 -0
  297. package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +2 -0
  298. package/internals/plugins/featurePlugins/useChartCartesianAxis/index.js +12 -0
  299. package/internals/plugins/featurePlugins/useChartCartesianAxis/index.mjs +1 -0
  300. package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.d.mts +26 -0
  301. package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.d.ts +26 -0
  302. package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.js +89 -0
  303. package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.mjs +81 -0
  304. package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.types.d.mts +93 -0
  305. package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.types.d.ts +93 -0
  306. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.mts +5 -0
  307. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +5 -0
  308. package/internals/plugins/featurePlugins/useChartHighlight/createIsFaded.d.mts +1 -1
  309. package/internals/plugins/featurePlugins/useChartHighlight/createIsFaded.d.ts +1 -1
  310. package/internals/plugins/featurePlugins/useChartHighlight/createIsHighlighted.d.mts +1 -1
  311. package/internals/plugins/featurePlugins/useChartHighlight/createIsHighlighted.d.ts +1 -1
  312. package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.d.mts +3 -8
  313. package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.d.ts +3 -8
  314. package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.js +2 -57
  315. package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.mjs +2 -57
  316. package/internals/shallowEqual.d.mts +1 -1
  317. package/internals/shallowEqual.d.ts +1 -1
  318. package/internals/shallowEqual.js +1 -1
  319. package/internals/shallowEqual.mjs +1 -1
  320. package/models/seriesType/config.d.mts +6 -2
  321. package/models/seriesType/config.d.ts +6 -2
  322. package/package.json +6 -6
  323. package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.mts +0 -34
  324. package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.ts +0 -34
  325. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.d.mts +0 -49
  326. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.d.ts +0 -49
  327. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.js +0 -124
  328. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.mjs +0 -117
  329. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.d.mts +0 -64
  330. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.d.ts +0 -64
  331. /package/internals/plugins/corePlugins/useChartSeriesConfig/types/{tooltipItemPositionGetter.types.js → tooltipItemPositionSelector.types.js} +0 -0
  332. /package/internals/plugins/corePlugins/useChartSeriesConfig/types/{tooltipItemPositionGetter.types.mjs → tooltipItemPositionSelector.types.mjs} +0 -0
  333. /package/internals/plugins/featurePlugins/{useGeoProjection/useGeoProjection.types.js → useChartCartesianAxis/sampling.types.js} +0 -0
  334. /package/internals/plugins/featurePlugins/{useGeoProjection/useGeoProjection.types.mjs → useChartCartesianAxis/sampling.types.mjs} +0 -0
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import type { ChartsYAxisProps, ComputedAxis, ScaleName } from "../models/axis.js";
2
3
  interface ChartsYAxisImplProps extends Omit<ChartsYAxisProps, 'axis'> {
3
4
  axis: ComputedAxis<ScaleName, any, ChartsYAxisProps>;
@@ -8,5 +9,5 @@ interface ChartsYAxisImplProps extends Omit<ChartsYAxisProps, 'axis'> {
8
9
  export declare function ChartsYAxisImpl({
9
10
  axis,
10
11
  ...inProps
11
- }: ChartsYAxisImplProps): import("react/jsx-runtime").JSX.Element | null;
12
+ }: ChartsYAxisImplProps): React.JSX.Element | null;
12
13
  export {};
@@ -103,7 +103,7 @@ export declare const GaugeContext: React.Context<Required<GaugeConfig> & Process
103
103
  export interface GaugeProviderProps extends GaugeConfig, CircularConfig {
104
104
  children: React.ReactNode;
105
105
  }
106
- export declare function GaugeProvider(props: GaugeProviderProps): import("react/jsx-runtime").JSX.Element;
106
+ export declare function GaugeProvider(props: GaugeProviderProps): React.JSX.Element;
107
107
  export declare function useGaugeState(): Required<GaugeConfig> & ProcessedCircularConfig & {
108
108
  /**
109
109
  * The maximal radius from (cx, cy) that fits the arc in the drawing area.
@@ -103,7 +103,7 @@ export declare const GaugeContext: React.Context<Required<GaugeConfig> & Process
103
103
  export interface GaugeProviderProps extends GaugeConfig, CircularConfig {
104
104
  children: React.ReactNode;
105
105
  }
106
- export declare function GaugeProvider(props: GaugeProviderProps): import("react/jsx-runtime").JSX.Element;
106
+ export declare function GaugeProvider(props: GaugeProviderProps): React.JSX.Element;
107
107
  export declare function useGaugeState(): Required<GaugeConfig> & ProcessedCircularConfig & {
108
108
  /**
109
109
  * The maximal radius from (cx, cy) that fits the arc in the drawing area.
@@ -2,4 +2,4 @@ import * as React from 'react';
2
2
  export declare function GaugeReferenceArc({
3
3
  className,
4
4
  ...other
5
- }: React.ComponentProps<'path'>): import("react/jsx-runtime").JSX.Element;
5
+ }: React.ComponentProps<'path'>): React.JSX.Element;
@@ -2,4 +2,4 @@ import * as React from 'react';
2
2
  export declare function GaugeReferenceArc({
3
3
  className,
4
4
  ...other
5
- }: React.ComponentProps<'path'>): import("react/jsx-runtime").JSX.Element;
5
+ }: React.ComponentProps<'path'>): React.JSX.Element;
@@ -4,7 +4,7 @@ declare function GaugeValueArc({
4
4
  ...other
5
5
  }: React.ComponentProps<'path'> & {
6
6
  skipAnimation?: boolean;
7
- }): import("react/jsx-runtime").JSX.Element | null;
7
+ }): React.JSX.Element | null;
8
8
  declare namespace GaugeValueArc {
9
9
  var propTypes: any;
10
10
  }
@@ -4,7 +4,7 @@ declare function GaugeValueArc({
4
4
  ...other
5
5
  }: React.ComponentProps<'path'> & {
6
6
  skipAnimation?: boolean;
7
- }): import("react/jsx-runtime").JSX.Element | null;
7
+ }): React.JSX.Element | null;
8
8
  declare namespace GaugeValueArc {
9
9
  var propTypes: any;
10
10
  }
@@ -7,7 +7,7 @@ export interface GaugeFormatterParams {
7
7
  export interface GaugeValueTextProps extends Omit<ChartsTextProps, 'text'> {
8
8
  text?: string | ((params: GaugeFormatterParams) => string | null);
9
9
  }
10
- declare function GaugeValueText(props: GaugeValueTextProps): import("react/jsx-runtime").JSX.Element | null;
10
+ declare function GaugeValueText(props: GaugeValueTextProps): import("react").JSX.Element | null;
11
11
  declare namespace GaugeValueText {
12
12
  var propTypes: any;
13
13
  }
@@ -7,7 +7,7 @@ export interface GaugeFormatterParams {
7
7
  export interface GaugeValueTextProps extends Omit<ChartsTextProps, 'text'> {
8
8
  text?: string | ((params: GaugeFormatterParams) => string | null);
9
9
  }
10
- declare function GaugeValueText(props: GaugeValueTextProps): import("react/jsx-runtime").JSX.Element | null;
10
+ declare function GaugeValueText(props: GaugeValueTextProps): import("react").JSX.Element | null;
11
11
  declare namespace GaugeValueText {
12
12
  var propTypes: any;
13
13
  }
@@ -19,7 +19,7 @@ export interface AnimatedAreaProps extends React.ComponentPropsWithoutRef<'path'
19
19
  *
20
20
  * - [AreaElement API](https://mui.com/x/api/charts/animated-area/)
21
21
  */
22
- declare function AnimatedArea(props: AnimatedAreaProps): import("react/jsx-runtime").JSX.Element;
22
+ declare function AnimatedArea(props: AnimatedAreaProps): React.JSX.Element;
23
23
  declare namespace AnimatedArea {
24
24
  var propTypes: any;
25
25
  }
@@ -19,7 +19,7 @@ export interface AnimatedAreaProps extends React.ComponentPropsWithoutRef<'path'
19
19
  *
20
20
  * - [AreaElement API](https://mui.com/x/api/charts/animated-area/)
21
21
  */
22
- declare function AnimatedArea(props: AnimatedAreaProps): import("react/jsx-runtime").JSX.Element;
22
+ declare function AnimatedArea(props: AnimatedAreaProps): React.JSX.Element;
23
23
  declare namespace AnimatedArea {
24
24
  var propTypes: any;
25
25
  }
@@ -13,5 +13,5 @@ export declare const appearingMaskClasses: AppearingMaskClasses;
13
13
  /**
14
14
  * @ignore - internal component.
15
15
  */
16
- export declare function AppearingMask(props: AppearingMaskProps): import("react/jsx-runtime").JSX.Element;
16
+ export declare function AppearingMask(props: AppearingMaskProps): React.JSX.Element;
17
17
  export {};
@@ -13,5 +13,5 @@ export declare const appearingMaskClasses: AppearingMaskClasses;
13
13
  /**
14
14
  * @ignore - internal component.
15
15
  */
16
- export declare function AppearingMask(props: AppearingMaskProps): import("react/jsx-runtime").JSX.Element;
16
+ export declare function AppearingMask(props: AppearingMaskProps): React.JSX.Element;
17
17
  export {};
@@ -45,7 +45,7 @@ export interface AreaElementProps extends Omit<AreaElementOwnerState, 'isFaded'
45
45
  *
46
46
  * - [AreaElement API](https://mui.com/x/api/charts/area-element/)
47
47
  */
48
- declare function AreaElement(props: AreaElementProps): import("react/jsx-runtime").JSX.Element;
48
+ declare function AreaElement(props: AreaElementProps): React.JSX.Element;
49
49
  declare namespace AreaElement {
50
50
  var propTypes: any;
51
51
  }
@@ -45,7 +45,7 @@ export interface AreaElementProps extends Omit<AreaElementOwnerState, 'isFaded'
45
45
  *
46
46
  * - [AreaElement API](https://mui.com/x/api/charts/area-element/)
47
47
  */
48
- declare function AreaElement(props: AreaElementProps): import("react/jsx-runtime").JSX.Element;
48
+ declare function AreaElement(props: AreaElementProps): React.JSX.Element;
49
49
  declare namespace AreaElement {
50
50
  var propTypes: any;
51
51
  }
@@ -22,7 +22,7 @@ export interface AreaPlotProps extends React.SVGAttributes<SVGSVGElement>, Pick<
22
22
  *
23
23
  * - [AreaPlot API](https://mui.com/x/api/charts/area-plot/)
24
24
  */
25
- declare function AreaPlot(props: AreaPlotProps): import("react/jsx-runtime").JSX.Element;
25
+ declare function AreaPlot(props: AreaPlotProps): React.JSX.Element;
26
26
  declare namespace AreaPlot {
27
27
  var propTypes: any;
28
28
  }
@@ -22,7 +22,7 @@ export interface AreaPlotProps extends React.SVGAttributes<SVGSVGElement>, Pick<
22
22
  *
23
23
  * - [AreaPlot API](https://mui.com/x/api/charts/area-plot/)
24
24
  */
25
- declare function AreaPlot(props: AreaPlotProps): import("react/jsx-runtime").JSX.Element;
25
+ declare function AreaPlot(props: AreaPlotProps): React.JSX.Element;
26
26
  declare namespace AreaPlot {
27
27
  var propTypes: any;
28
28
  }
@@ -38,7 +38,7 @@ type CircleMarkElementProps = Omit<MarkElementOwnerState, 'isFaded' | 'isHighlig
38
38
  *
39
39
  * - [CircleMarkElement API](https://mui.com/x/api/charts/circle-mark-element/)
40
40
  */
41
- declare function CircleMarkElement(props: CircleMarkElementProps): import("react/jsx-runtime").JSX.Element;
41
+ declare function CircleMarkElement(props: CircleMarkElementProps): React.JSX.Element;
42
42
  declare namespace CircleMarkElement {
43
43
  var propTypes: any;
44
44
  }
@@ -38,7 +38,7 @@ type CircleMarkElementProps = Omit<MarkElementOwnerState, 'isFaded' | 'isHighlig
38
38
  *
39
39
  * - [CircleMarkElement API](https://mui.com/x/api/charts/circle-mark-element/)
40
40
  */
41
- declare function CircleMarkElement(props: CircleMarkElementProps): import("react/jsx-runtime").JSX.Element;
41
+ declare function CircleMarkElement(props: CircleMarkElementProps): React.JSX.Element;
42
42
  declare namespace CircleMarkElement {
43
43
  var propTypes: any;
44
44
  }
@@ -1 +1 @@
1
- export declare function FocusedLineMark(): import("react/jsx-runtime").JSX.Element | null;
1
+ export declare function FocusedLineMark(): import("react").JSX.Element | null;
@@ -1 +1 @@
1
- export declare function FocusedLineMark(): import("react/jsx-runtime").JSX.Element | null;
1
+ export declare function FocusedLineMark(): import("react").JSX.Element | null;
@@ -49,7 +49,7 @@ export interface LineElementProps extends Omit<LineElementOwnerState, 'isFaded'
49
49
  *
50
50
  * - [LineElement API](https://mui.com/x/api/charts/line-element/)
51
51
  */
52
- declare function LineElement(props: LineElementProps): import("react/jsx-runtime").JSX.Element;
52
+ declare function LineElement(props: LineElementProps): React.JSX.Element;
53
53
  declare namespace LineElement {
54
54
  var propTypes: any;
55
55
  }
@@ -49,7 +49,7 @@ export interface LineElementProps extends Omit<LineElementOwnerState, 'isFaded'
49
49
  *
50
50
  * - [LineElement API](https://mui.com/x/api/charts/line-element/)
51
51
  */
52
- declare function LineElement(props: LineElementProps): import("react/jsx-runtime").JSX.Element;
52
+ declare function LineElement(props: LineElementProps): React.JSX.Element;
53
53
  declare namespace LineElement {
54
54
  var propTypes: any;
55
55
  }
@@ -21,7 +21,7 @@ export type LineHighlightElementProps = (LineHighlightElementCommonProps & {
21
21
  *
22
22
  * - [LineHighlightElement API](https://mui.com/x/api/charts/line-highlight-element/)
23
23
  */
24
- declare function LineHighlightElement(props: LineHighlightElementProps): import("react/jsx-runtime").JSX.Element;
24
+ declare function LineHighlightElement(props: LineHighlightElementProps): React.JSX.Element;
25
25
  declare namespace LineHighlightElement {
26
26
  var propTypes: any;
27
27
  }
@@ -21,7 +21,7 @@ export type LineHighlightElementProps = (LineHighlightElementCommonProps & {
21
21
  *
22
22
  * - [LineHighlightElement API](https://mui.com/x/api/charts/line-highlight-element/)
23
23
  */
24
- declare function LineHighlightElement(props: LineHighlightElementProps): import("react/jsx-runtime").JSX.Element;
24
+ declare function LineHighlightElement(props: LineHighlightElementProps): React.JSX.Element;
25
25
  declare namespace LineHighlightElement {
26
26
  var propTypes: any;
27
27
  }
@@ -30,7 +30,7 @@ export interface LineHighlightPlotProps extends React.SVGAttributes<SVGSVGElemen
30
30
  *
31
31
  * - [LineHighlightPlot API](https://mui.com/x/api/charts/line-highlight-plot/)
32
32
  */
33
- declare function LineHighlightPlot(props: LineHighlightPlotProps): import("react/jsx-runtime").JSX.Element | null;
33
+ declare function LineHighlightPlot(props: LineHighlightPlotProps): React.JSX.Element | null;
34
34
  declare namespace LineHighlightPlot {
35
35
  var propTypes: any;
36
36
  }
@@ -30,7 +30,7 @@ export interface LineHighlightPlotProps extends React.SVGAttributes<SVGSVGElemen
30
30
  *
31
31
  * - [LineHighlightPlot API](https://mui.com/x/api/charts/line-highlight-plot/)
32
32
  */
33
- declare function LineHighlightPlot(props: LineHighlightPlotProps): import("react/jsx-runtime").JSX.Element | null;
33
+ declare function LineHighlightPlot(props: LineHighlightPlotProps): React.JSX.Element | null;
34
34
  declare namespace LineHighlightPlot {
35
35
  var propTypes: any;
36
36
  }
@@ -21,7 +21,7 @@ export interface LinePlotProps extends React.SVGAttributes<SVGSVGElement>, Pick<
21
21
  *
22
22
  * - [LinePlot API](https://mui.com/x/api/charts/line-plot/)
23
23
  */
24
- declare function LinePlot(props: LinePlotProps): import("react/jsx-runtime").JSX.Element;
24
+ declare function LinePlot(props: LinePlotProps): React.JSX.Element;
25
25
  declare namespace LinePlot {
26
26
  var propTypes: any;
27
27
  }
@@ -21,7 +21,7 @@ export interface LinePlotProps extends React.SVGAttributes<SVGSVGElement>, Pick<
21
21
  *
22
22
  * - [LinePlot API](https://mui.com/x/api/charts/line-plot/)
23
23
  */
24
- declare function LinePlot(props: LinePlotProps): import("react/jsx-runtime").JSX.Element;
24
+ declare function LinePlot(props: LinePlotProps): React.JSX.Element;
25
25
  declare namespace LinePlot {
26
26
  var propTypes: any;
27
27
  }
@@ -73,7 +73,8 @@ function LinePlot(props) {
73
73
  seriesId,
74
74
  color,
75
75
  gradientId,
76
- hidden
76
+ hidden,
77
+ isSampled
77
78
  }) => {
78
79
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_LineElement.LineElement, {
79
80
  seriesId: seriesId,
@@ -81,7 +82,7 @@ function LinePlot(props) {
81
82
  color: color,
82
83
  gradientId: gradientId,
83
84
  hidden: hidden,
84
- skipAnimation: skipAnimation,
85
+ skipAnimation: skipAnimation || isSampled,
85
86
  slots: slots,
86
87
  slotProps: slotProps,
87
88
  onClick: onItemClick && (event => onItemClick(event, {
@@ -66,7 +66,8 @@ function LinePlot(props) {
66
66
  seriesId,
67
67
  color,
68
68
  gradientId,
69
- hidden
69
+ hidden,
70
+ isSampled
70
71
  }) => {
71
72
  return /*#__PURE__*/_jsx(LineElement, {
72
73
  seriesId: seriesId,
@@ -74,7 +75,7 @@ function LinePlot(props) {
74
75
  color: color,
75
76
  gradientId: gradientId,
76
77
  hidden: hidden,
77
- skipAnimation: skipAnimation,
78
+ skipAnimation: skipAnimation || isSampled,
78
79
  slots: slots,
79
80
  slotProps: slotProps,
80
81
  onClick: onItemClick && (event => onItemClick(event, {
@@ -48,7 +48,7 @@ export type MarkElementProps = Omit<MarkElementOwnerState, 'isFaded' | 'isHighli
48
48
  *
49
49
  * - [MarkElement API](https://mui.com/x/api/charts/mark-element/)
50
50
  */
51
- declare function MarkElement(props: MarkElementProps): import("react/jsx-runtime").JSX.Element;
51
+ declare function MarkElement(props: MarkElementProps): React.JSX.Element;
52
52
  declare namespace MarkElement {
53
53
  var propTypes: any;
54
54
  }
@@ -48,7 +48,7 @@ export type MarkElementProps = Omit<MarkElementOwnerState, 'isFaded' | 'isHighli
48
48
  *
49
49
  * - [MarkElement API](https://mui.com/x/api/charts/mark-element/)
50
50
  */
51
- declare function MarkElement(props: MarkElementProps): import("react/jsx-runtime").JSX.Element;
51
+ declare function MarkElement(props: MarkElementProps): React.JSX.Element;
52
52
  declare namespace MarkElement {
53
53
  var propTypes: any;
54
54
  }
@@ -36,7 +36,7 @@ export interface MarkPlotProps extends React.SVGAttributes<SVGSVGElement>, Pick<
36
36
  *
37
37
  * - [MarkPlot API](https://mui.com/x/api/charts/mark-plot/)
38
38
  */
39
- declare function MarkPlot(props: MarkPlotProps): import("react/jsx-runtime").JSX.Element;
39
+ declare function MarkPlot(props: MarkPlotProps): React.JSX.Element;
40
40
  declare namespace MarkPlot {
41
41
  var propTypes: any;
42
42
  }
@@ -36,7 +36,7 @@ export interface MarkPlotProps extends React.SVGAttributes<SVGSVGElement>, Pick<
36
36
  *
37
37
  * - [MarkPlot API](https://mui.com/x/api/charts/mark-plot/)
38
38
  */
39
- declare function MarkPlot(props: MarkPlotProps): import("react/jsx-runtime").JSX.Element;
39
+ declare function MarkPlot(props: MarkPlotProps): React.JSX.Element;
40
40
  declare namespace MarkPlot {
41
41
  var propTypes: any;
42
42
  }
@@ -12,7 +12,7 @@ var _getColor = _interopRequireDefault(require("./getColor"));
12
12
  var _legend = _interopRequireDefault(require("./legend"));
13
13
  var _tooltip = _interopRequireWildcard(require("./tooltip"));
14
14
  var _getSeriesWithDefaultValues = _interopRequireDefault(require("./getSeriesWithDefaultValues"));
15
- var _tooltipPosition = _interopRequireDefault(require("./tooltipPosition"));
15
+ var _tooltipPosition = require("./tooltipPosition");
16
16
  var _getItemAtPosition = _interopRequireDefault(require("./getItemAtPosition"));
17
17
  var _keyboardFocusHandler = _interopRequireDefault(require("./keyboardFocusHandler"));
18
18
  var _identifierSerializer = require("../../internals/identifierSerializer");
@@ -24,7 +24,7 @@ const lineSeriesConfig = exports.lineSeriesConfig = {
24
24
  seriesProcessor: _seriesProcessor.default,
25
25
  legendGetter: _legend.default,
26
26
  tooltipGetter: _tooltip.default,
27
- tooltipItemPositionGetter: _tooltipPosition.default,
27
+ selectorTooltipItemPosition: _tooltipPosition.selectorTooltipItemPosition,
28
28
  axisTooltipGetter: _tooltip.axisTooltipGetter,
29
29
  xExtremumGetter: _extremums.getExtremumX,
30
30
  yExtremumGetter: _extremums.getExtremumY,
@@ -4,7 +4,7 @@ import getColor from "./getColor.mjs";
4
4
  import legendGetter from "./legend.mjs";
5
5
  import tooltipGetter, { axisTooltipGetter } from "./tooltip.mjs";
6
6
  import getSeriesWithDefaultValues from "./getSeriesWithDefaultValues.mjs";
7
- import tooltipItemPositionGetter from "./tooltipPosition.mjs";
7
+ import { selectorTooltipItemPosition } from "./tooltipPosition.mjs";
8
8
  import getItemAtPosition from "./getItemAtPosition.mjs";
9
9
  import keyboardFocusHandler from "./keyboardFocusHandler.mjs";
10
10
  import { identifierSerializerSeriesIdDataIndex } from "../../internals/identifierSerializer.mjs";
@@ -16,7 +16,7 @@ export const lineSeriesConfig = {
16
16
  seriesProcessor,
17
17
  legendGetter,
18
18
  tooltipGetter,
19
- tooltipItemPositionGetter,
19
+ selectorTooltipItemPosition,
20
20
  axisTooltipGetter,
21
21
  xExtremumGetter: getExtremumX,
22
22
  yExtremumGetter: getExtremumY,
@@ -1,3 +1,2 @@
1
- import type { TooltipItemPositionGetter } from "../../internals/plugins/corePlugins/useChartSeriesConfig/index.mjs";
2
- declare const tooltipItemPositionGetter: TooltipItemPositionGetter<'line'>;
3
- export default tooltipItemPositionGetter;
1
+ import type { TooltipItemPositionSelector } from "../../internals/plugins/corePlugins/useChartSeriesConfig/index.mjs";
2
+ export declare const selectorTooltipItemPosition: TooltipItemPositionSelector<'line'>;
@@ -1,3 +1,2 @@
1
- import type { TooltipItemPositionGetter } from "../../internals/plugins/corePlugins/useChartSeriesConfig/index.js";
2
- declare const tooltipItemPositionGetter: TooltipItemPositionGetter<'line'>;
3
- export default tooltipItemPositionGetter;
1
+ import type { TooltipItemPositionSelector } from "../../internals/plugins/corePlugins/useChartSeriesConfig/index.js";
2
+ export declare const selectorTooltipItemPosition: TooltipItemPositionSelector<'line'>;
@@ -3,31 +3,31 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
7
- const tooltipItemPositionGetter = params => {
8
- const {
9
- series,
10
- identifier,
11
- axesConfig
12
- } = params;
13
- if (!identifier || identifier.dataIndex === undefined) {
6
+ exports.selectorTooltipItemPosition = void 0;
7
+ var _store = require("@mui/x-internals/store");
8
+ var _useChartTooltip = require("../../internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors");
9
+ var _useChartSeries = require("../../internals/plugins/corePlugins/useChartSeries");
10
+ var _useChartCartesianAxisRendering = require("../../internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors");
11
+ const selectorTooltipItemPosition = exports.selectorTooltipItemPosition = (0, _store.createSelectorMemoized)(_useChartTooltip.selectorChartsTooltipItem, _useChartSeries.selectorChartSeriesProcessed, _useChartCartesianAxisRendering.selectorChartXAxis, _useChartCartesianAxisRendering.selectorChartYAxis, function selectorTooltipItemPosition(identifier, series, xAxes, yAxes) {
12
+ if (!identifier || identifier.type !== 'line' || identifier.dataIndex === undefined) {
14
13
  return null;
15
14
  }
16
15
  const itemSeries = series.line?.series[identifier.seriesId];
17
16
  if (itemSeries == null) {
18
17
  return null;
19
18
  }
20
- if (axesConfig.x === undefined || axesConfig.y === undefined) {
19
+ const xAxis = xAxes.axis[itemSeries.xAxisId ?? xAxes.axisIds[0]];
20
+ const yAxis = yAxes.axis[itemSeries.yAxisId ?? yAxes.axisIds[0]];
21
+ if (xAxis === undefined || yAxis === undefined) {
21
22
  return null;
22
23
  }
23
- const xValue = axesConfig.x.data?.[identifier.dataIndex];
24
+ const xValue = xAxis.data?.[identifier.dataIndex];
24
25
  const yValue = itemSeries.data[identifier.dataIndex] == null ? null : itemSeries.visibleStackedData[identifier.dataIndex][1];
25
26
  if (xValue == null || yValue == null) {
26
27
  return null;
27
28
  }
28
29
  return {
29
- x: axesConfig.x.scale(xValue),
30
- y: axesConfig.y.scale(yValue)
30
+ x: xAxis.scale(xValue),
31
+ y: yAxis.scale(yValue)
31
32
  };
32
- };
33
- var _default = exports.default = tooltipItemPositionGetter;
33
+ });
@@ -1,27 +1,27 @@
1
- const tooltipItemPositionGetter = params => {
2
- const {
3
- series,
4
- identifier,
5
- axesConfig
6
- } = params;
7
- if (!identifier || identifier.dataIndex === undefined) {
1
+ import { createSelectorMemoized } from '@mui/x-internals/store';
2
+ import { selectorChartsTooltipItem } from "../../internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.mjs";
3
+ import { selectorChartSeriesProcessed } from "../../internals/plugins/corePlugins/useChartSeries/index.mjs";
4
+ import { selectorChartXAxis, selectorChartYAxis } from "../../internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs";
5
+ export const selectorTooltipItemPosition = createSelectorMemoized(selectorChartsTooltipItem, selectorChartSeriesProcessed, selectorChartXAxis, selectorChartYAxis, function selectorTooltipItemPosition(identifier, series, xAxes, yAxes) {
6
+ if (!identifier || identifier.type !== 'line' || identifier.dataIndex === undefined) {
8
7
  return null;
9
8
  }
10
9
  const itemSeries = series.line?.series[identifier.seriesId];
11
10
  if (itemSeries == null) {
12
11
  return null;
13
12
  }
14
- if (axesConfig.x === undefined || axesConfig.y === undefined) {
13
+ const xAxis = xAxes.axis[itemSeries.xAxisId ?? xAxes.axisIds[0]];
14
+ const yAxis = yAxes.axis[itemSeries.yAxisId ?? yAxes.axisIds[0]];
15
+ if (xAxis === undefined || yAxis === undefined) {
15
16
  return null;
16
17
  }
17
- const xValue = axesConfig.x.data?.[identifier.dataIndex];
18
+ const xValue = xAxis.data?.[identifier.dataIndex];
18
19
  const yValue = itemSeries.data[identifier.dataIndex] == null ? null : itemSeries.visibleStackedData[identifier.dataIndex][1];
19
20
  if (xValue == null || yValue == null) {
20
21
  return null;
21
22
  }
22
23
  return {
23
- x: axesConfig.x.scale(xValue),
24
- y: axesConfig.y.scale(yValue)
24
+ x: xAxis.scale(xValue),
25
+ y: yAxis.scale(yValue)
25
26
  };
26
- };
27
- export default tooltipItemPositionGetter;
27
+ });
@@ -1,4 +1,5 @@
1
1
  import type { ComputedAxisConfig } from "../internals/plugins/featurePlugins/useChartCartesianAxis/index.mjs";
2
+ import type { ZoomMap } from "../internals/plugins/featurePlugins/useChartCartesianAxis/zoom.types.mjs";
2
3
  import type { ChartsXAxisProps, ChartsYAxisProps } from "../models/index.mjs";
3
4
  import type { SeriesId } from "../models/seriesType/common.mjs";
4
5
  interface LinePlotDataPoint {
@@ -7,6 +8,17 @@ interface LinePlotDataPoint {
7
8
  color: string;
8
9
  gradientId?: string;
9
10
  hidden: boolean;
11
+ /** Skip the path animation: morphing between different sampled point counts looks wrong. */
12
+ isSampled: boolean;
10
13
  }
11
- export declare function useLinePlotData(xAxes: ComputedAxisConfig<ChartsXAxisProps>, yAxes: ComputedAxisConfig<ChartsYAxisProps>): LinePlotDataPoint[];
14
+ export declare function useLinePlotData(xAxes: ComputedAxisConfig<ChartsXAxisProps>, yAxes: ComputedAxisConfig<ChartsYAxisProps>,
15
+ /**
16
+ * Overrides the zoom span and pixel size used for sampling. The zoom-slider preview passes its
17
+ * full-range zoom and own width so its density stays stable while the main chart zooms, instead
18
+ * of reading the active zoom from the store.
19
+ */
20
+ samplingOverride?: {
21
+ zoomMap: ZoomMap;
22
+ availableSize: number;
23
+ }): LinePlotDataPoint[];
12
24
  export {};
@@ -1,4 +1,5 @@
1
1
  import type { ComputedAxisConfig } from "../internals/plugins/featurePlugins/useChartCartesianAxis/index.js";
2
+ import type { ZoomMap } from "../internals/plugins/featurePlugins/useChartCartesianAxis/zoom.types.js";
2
3
  import type { ChartsXAxisProps, ChartsYAxisProps } from "../models/index.js";
3
4
  import type { SeriesId } from "../models/seriesType/common.js";
4
5
  interface LinePlotDataPoint {
@@ -7,6 +8,17 @@ interface LinePlotDataPoint {
7
8
  color: string;
8
9
  gradientId?: string;
9
10
  hidden: boolean;
11
+ /** Skip the path animation: morphing between different sampled point counts looks wrong. */
12
+ isSampled: boolean;
10
13
  }
11
- export declare function useLinePlotData(xAxes: ComputedAxisConfig<ChartsXAxisProps>, yAxes: ComputedAxisConfig<ChartsYAxisProps>): LinePlotDataPoint[];
14
+ export declare function useLinePlotData(xAxes: ComputedAxisConfig<ChartsXAxisProps>, yAxes: ComputedAxisConfig<ChartsYAxisProps>,
15
+ /**
16
+ * Overrides the zoom span and pixel size used for sampling. The zoom-slider preview passes its
17
+ * full-range zoom and own width so its density stays stable while the main chart zooms, instead
18
+ * of reading the active zoom from the store.
19
+ */
20
+ samplingOverride?: {
21
+ zoomMap: ZoomMap;
22
+ availableSize: number;
23
+ }): LinePlotDataPoint[];
12
24
  export {};