@mui/x-charts 9.4.0 → 9.6.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 (288) hide show
  1. package/BarChart/BarChart.js +1 -1
  2. package/BarChart/BarChart.mjs +1 -1
  3. package/BarChart/BarElement.js +2 -1
  4. package/BarChart/BarElement.mjs +2 -1
  5. package/BarChart/BarLabel/BarLabel.js +1 -1
  6. package/BarChart/BarLabel/BarLabel.mjs +1 -1
  7. package/BarChart/BarPlot.js +1 -1
  8. package/BarChart/BarPlot.mjs +1 -1
  9. package/CHANGELOG.md +251 -0
  10. package/ChartsAxis/ChartsAxis.js +1 -1
  11. package/ChartsAxis/ChartsAxis.mjs +1 -1
  12. package/ChartsAxisHighlight/ChartsAxisHighlight.js +1 -1
  13. package/ChartsAxisHighlight/ChartsAxisHighlight.mjs +1 -1
  14. package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.js +2 -2
  15. package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.mjs +2 -2
  16. package/ChartsBrushOverlay/ChartsBrushOverlay.d.mts +5 -1
  17. package/ChartsBrushOverlay/ChartsBrushOverlay.d.ts +5 -1
  18. package/ChartsBrushOverlay/ChartsBrushOverlay.js +12 -1
  19. package/ChartsBrushOverlay/ChartsBrushOverlay.mjs +14 -2
  20. package/ChartsClipPath/ChartsClipPath.js +1 -1
  21. package/ChartsClipPath/ChartsClipPath.mjs +1 -1
  22. package/ChartsContainer/ChartsContainer.js +5 -3
  23. package/ChartsContainer/ChartsContainer.mjs +5 -3
  24. package/ChartsDataProvider/ChartsDataProvider.js +5 -1
  25. package/ChartsDataProvider/ChartsDataProvider.mjs +5 -1
  26. package/ChartsGrid/ChartsGrid.js +5 -1
  27. package/ChartsGrid/ChartsGrid.mjs +5 -1
  28. package/ChartsLayerContainer/ChartsLayerContainer.js +1 -1
  29. package/ChartsLayerContainer/ChartsLayerContainer.mjs +1 -1
  30. package/ChartsLocalizationProvider/ChartsLocalizationProvider.js +1 -1
  31. package/ChartsLocalizationProvider/ChartsLocalizationProvider.mjs +1 -1
  32. package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.js +2 -2
  33. package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.mjs +2 -2
  34. package/ChartsRadialAxisHighlight/index.d.mts +6 -1
  35. package/ChartsRadialAxisHighlight/index.d.ts +6 -1
  36. package/ChartsRadialAxisHighlight/index.js +9 -2
  37. package/ChartsRadialAxisHighlight/index.mjs +8 -1
  38. package/ChartsRadialDataProvider/ChartsRadialDataProvider.d.mts +1 -1
  39. package/ChartsRadialDataProvider/ChartsRadialDataProvider.d.ts +1 -1
  40. package/ChartsRadialDataProvider/ChartsRadialDataProvider.js +10 -2
  41. package/ChartsRadialDataProvider/ChartsRadialDataProvider.mjs +10 -2
  42. package/ChartsRadialDataProvider/index.d.mts +5 -0
  43. package/ChartsRadialDataProvider/index.d.ts +5 -0
  44. package/ChartsRadialDataProvider/index.js +12 -1
  45. package/ChartsRadialDataProvider/index.mjs +7 -0
  46. package/ChartsRadialGrid/ChartsRadialGrid.js +5 -1
  47. package/ChartsRadialGrid/ChartsRadialGrid.mjs +5 -1
  48. package/ChartsRadialGrid/index.d.mts +6 -1
  49. package/ChartsRadialGrid/index.d.ts +6 -1
  50. package/ChartsRadialGrid/index.js +8 -2
  51. package/ChartsRadialGrid/index.mjs +8 -1
  52. package/ChartsRadiusAxis/ChartsRadiusAxis.d.mts +8 -2
  53. package/ChartsRadiusAxis/ChartsRadiusAxis.d.ts +8 -2
  54. package/ChartsRadiusAxis/ChartsRadiusAxis.js +143 -3
  55. package/ChartsRadiusAxis/ChartsRadiusAxis.mjs +144 -5
  56. package/ChartsRadiusAxis/index.d.mts +6 -1
  57. package/ChartsRadiusAxis/index.d.ts +6 -1
  58. package/ChartsRadiusAxis/index.js +10 -2
  59. package/ChartsRadiusAxis/index.mjs +7 -1
  60. package/ChartsReferenceLine/ChartsReferenceLine.js +1 -1
  61. package/ChartsReferenceLine/ChartsReferenceLine.mjs +1 -1
  62. package/ChartsRotationAxis/ChartsRotationAxis.d.mts +8 -2
  63. package/ChartsRotationAxis/ChartsRotationAxis.d.ts +8 -2
  64. package/ChartsRotationAxis/ChartsRotationAxis.js +140 -3
  65. package/ChartsRotationAxis/ChartsRotationAxis.mjs +141 -5
  66. package/ChartsRotationAxis/index.d.mts +6 -1
  67. package/ChartsRotationAxis/index.d.ts +6 -1
  68. package/ChartsRotationAxis/index.js +10 -2
  69. package/ChartsRotationAxis/index.mjs +7 -1
  70. package/ChartsSurface/ChartsSurface.js +1 -1
  71. package/ChartsSurface/ChartsSurface.mjs +1 -1
  72. package/ChartsSvgLayer/ChartsSvgLayer.js +1 -1
  73. package/ChartsSvgLayer/ChartsSvgLayer.mjs +1 -1
  74. package/ChartsText/ChartsText.js +2 -2
  75. package/ChartsText/ChartsText.mjs +2 -2
  76. package/ChartsTooltip/ChartsAxisTooltipContent.js +22 -3
  77. package/ChartsTooltip/ChartsAxisTooltipContent.mjs +22 -3
  78. package/ChartsTooltip/ChartsItemTooltipContent.js +52 -1
  79. package/ChartsTooltip/ChartsItemTooltipContent.mjs +52 -1
  80. package/ChartsTooltip/ChartsTooltip.js +13 -33
  81. package/ChartsTooltip/ChartsTooltip.mjs +13 -33
  82. package/ChartsTooltip/ChartsTooltipContainer.js +17 -30
  83. package/ChartsTooltip/ChartsTooltipContainer.mjs +17 -30
  84. package/ChartsWrapper/ChartsWrapper.js +1 -1
  85. package/ChartsWrapper/ChartsWrapper.mjs +1 -1
  86. package/ChartsXAxis/ChartsSingleXAxisTicks.js +1 -1
  87. package/ChartsXAxis/ChartsSingleXAxisTicks.mjs +1 -1
  88. package/ChartsXAxis/ChartsXAxis.js +11 -2
  89. package/ChartsXAxis/ChartsXAxis.mjs +11 -2
  90. package/ChartsYAxis/ChartsSingleYAxisTicks.js +1 -1
  91. package/ChartsYAxis/ChartsSingleYAxisTicks.mjs +1 -1
  92. package/ChartsYAxis/ChartsYAxis.js +11 -2
  93. package/ChartsYAxis/ChartsYAxis.mjs +11 -2
  94. package/ChartsYAxis/ChartsYAxisImpl.js +1 -1
  95. package/ChartsYAxis/ChartsYAxisImpl.mjs +1 -1
  96. package/Gauge/Gauge.js +1 -1
  97. package/Gauge/Gauge.mjs +1 -1
  98. package/Gauge/GaugeContainer.js +1 -1
  99. package/Gauge/GaugeContainer.mjs +1 -1
  100. package/Gauge/GaugeValueArc.js +2 -2
  101. package/Gauge/GaugeValueArc.mjs +2 -2
  102. package/Gauge/GaugeValueText.js +1 -1
  103. package/Gauge/GaugeValueText.mjs +1 -1
  104. package/LineChart/AnimatedArea.js +3 -3
  105. package/LineChart/AnimatedArea.mjs +3 -3
  106. package/LineChart/AnimatedLine.js +1 -1
  107. package/LineChart/AnimatedLine.mjs +1 -1
  108. package/LineChart/AreaElement.js +2 -2
  109. package/LineChart/AreaElement.mjs +2 -2
  110. package/LineChart/AreaPlot.js +1 -1
  111. package/LineChart/AreaPlot.mjs +1 -1
  112. package/LineChart/CircleMarkElement.js +1 -1
  113. package/LineChart/CircleMarkElement.mjs +1 -1
  114. package/LineChart/LineChart.js +1 -1
  115. package/LineChart/LineChart.mjs +1 -1
  116. package/LineChart/LineElement.js +5 -3
  117. package/LineChart/LineElement.mjs +5 -3
  118. package/LineChart/LineHighlightElement.js +1 -2
  119. package/LineChart/LineHighlightElement.mjs +1 -2
  120. package/LineChart/LineHighlightPlot.js +1 -1
  121. package/LineChart/LineHighlightPlot.mjs +1 -1
  122. package/LineChart/LinePlot.js +1 -1
  123. package/LineChart/LinePlot.mjs +1 -1
  124. package/LineChart/MarkElement.js +4 -3
  125. package/LineChart/MarkElement.mjs +4 -3
  126. package/LineChart/MarkPlot.js +2 -1
  127. package/LineChart/MarkPlot.mjs +2 -1
  128. package/PieChart/FocusedPieArc.d.mts +5 -1
  129. package/PieChart/FocusedPieArc.d.ts +5 -1
  130. package/PieChart/FocusedPieArc.js +22 -1
  131. package/PieChart/FocusedPieArc.mjs +24 -2
  132. package/PieChart/PieArc.js +1 -1
  133. package/PieChart/PieArc.mjs +1 -1
  134. package/PieChart/PieArcLabel.js +1 -1
  135. package/PieChart/PieArcLabel.mjs +1 -1
  136. package/PieChart/PieArcLabelPlot.js +7 -6
  137. package/PieChart/PieArcLabelPlot.mjs +7 -6
  138. package/PieChart/PieArcPlot.js +7 -6
  139. package/PieChart/PieArcPlot.mjs +7 -6
  140. package/PieChart/PieChart.js +1 -1
  141. package/PieChart/PieChart.mjs +1 -1
  142. package/PieChart/PiePlot.js +2 -1
  143. package/PieChart/PiePlot.mjs +2 -1
  144. package/RadarChart/RadarAxis/RadarAxis.js +5 -1
  145. package/RadarChart/RadarAxis/RadarAxis.mjs +5 -1
  146. package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.js +6 -2
  147. package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.mjs +6 -2
  148. package/RadarChart/RadarChart.js +1 -1
  149. package/RadarChart/RadarChart.mjs +1 -1
  150. package/RadarChart/RadarGrid/RadarGrid.js +1 -5
  151. package/RadarChart/RadarGrid/RadarGrid.mjs +1 -5
  152. package/RadarChart/RadarSeriesPlot/RadarSeriesArea.js +5 -1
  153. package/RadarChart/RadarSeriesPlot/RadarSeriesArea.mjs +5 -1
  154. package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +5 -1
  155. package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.mjs +5 -1
  156. package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +5 -1
  157. package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.mjs +5 -1
  158. package/ScatterChart/Scatter.js +1 -1
  159. package/ScatterChart/Scatter.mjs +1 -1
  160. package/ScatterChart/ScatterChart.js +12 -6
  161. package/ScatterChart/ScatterChart.mjs +12 -6
  162. package/ScatterChart/ScatterChart.plugins.d.mts +2 -1
  163. package/ScatterChart/ScatterChart.plugins.d.ts +2 -1
  164. package/ScatterChart/ScatterChart.plugins.js +2 -1
  165. package/ScatterChart/ScatterChart.plugins.mjs +2 -1
  166. package/ScatterChart/ScatterMarker.js +2 -2
  167. package/ScatterChart/ScatterMarker.mjs +2 -2
  168. package/ScatterChart/ScatterPlot.d.mts +12 -3
  169. package/ScatterChart/ScatterPlot.d.ts +12 -3
  170. package/ScatterChart/ScatterPlot.js +30 -5
  171. package/ScatterChart/ScatterPlot.mjs +30 -5
  172. package/ScatterChart/async/ScatterAsync.d.mts +9 -0
  173. package/ScatterChart/async/ScatterAsync.d.ts +9 -0
  174. package/ScatterChart/async/ScatterAsync.js +71 -0
  175. package/ScatterChart/async/ScatterAsync.mjs +67 -0
  176. package/ScatterChart/async/ScatterAsyncBatch.d.mts +24 -0
  177. package/ScatterChart/async/ScatterAsyncBatch.d.ts +24 -0
  178. package/ScatterChart/async/ScatterAsyncBatch.js +112 -0
  179. package/ScatterChart/async/ScatterAsyncBatch.mjs +106 -0
  180. package/ScatterChart/async/scatterRenderData.selectors.d.mts +38 -0
  181. package/ScatterChart/async/scatterRenderData.selectors.d.ts +38 -0
  182. package/ScatterChart/async/scatterRenderData.selectors.js +93 -0
  183. package/ScatterChart/async/scatterRenderData.selectors.mjs +87 -0
  184. package/ScatterChart/seriesConfig/getColor.js +6 -15
  185. package/ScatterChart/seriesConfig/getColor.mjs +6 -15
  186. package/SparkLineChart/SparkLineChart.js +3 -2
  187. package/SparkLineChart/SparkLineChart.mjs +3 -2
  188. package/Toolbar/Toolbar.js +1 -1
  189. package/Toolbar/Toolbar.mjs +1 -1
  190. package/Toolbar/ToolbarButton.js +1 -1
  191. package/Toolbar/ToolbarButton.mjs +1 -1
  192. package/index.d.mts +1 -1
  193. package/index.d.ts +1 -1
  194. package/index.js +1 -1
  195. package/index.mjs +1 -1
  196. package/internals/colorScale.d.mts +2 -2
  197. package/internals/colorScale.d.ts +2 -2
  198. package/internals/colorScale.js +2 -2
  199. package/internals/colorScale.mjs +2 -2
  200. package/internals/getSeriesColorFn.d.mts +5 -5
  201. package/internals/getSeriesColorFn.d.ts +5 -5
  202. package/internals/index.d.mts +3 -0
  203. package/internals/index.d.ts +3 -0
  204. package/internals/index.js +20 -0
  205. package/internals/index.mjs +3 -0
  206. package/internals/plugins/allPlugins.d.mts +4 -3
  207. package/internals/plugins/allPlugins.d.ts +4 -3
  208. package/internals/plugins/allPlugins.js +2 -1
  209. package/internals/plugins/allPlugins.mjs +2 -1
  210. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.mts +12 -3
  211. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.ts +12 -3
  212. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.js +10 -1
  213. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.mjs +10 -1
  214. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.mts +15 -1
  215. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.ts +15 -1
  216. package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.js +16 -30
  217. package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.mjs +17 -31
  218. package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.types.d.mts +8 -1
  219. package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.types.d.ts +8 -1
  220. package/internals/plugins/corePlugins/useChartSeriesConfig/types/colorProcessor.types.d.mts +1 -1
  221. package/internals/plugins/corePlugins/useChartSeriesConfig/types/colorProcessor.types.d.ts +1 -1
  222. package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.mts +7 -0
  223. package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.ts +7 -0
  224. package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.mts +0 -8
  225. package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.ts +0 -8
  226. package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.js +1 -2
  227. package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.mjs +2 -2
  228. package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisScale.js +27 -2
  229. package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisScale.mjs +27 -2
  230. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +1 -3
  231. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.mjs +1 -3
  232. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +1 -1
  233. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs +1 -1
  234. package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.js +6 -1
  235. package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.mjs +6 -1
  236. package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.js +6 -2
  237. package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.mjs +6 -2
  238. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.d.mts +49 -0
  239. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.d.ts +49 -0
  240. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.js +124 -0
  241. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.mjs +117 -0
  242. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.d.mts +64 -0
  243. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.d.ts +64 -0
  244. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.js +5 -0
  245. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.mjs +1 -0
  246. package/internals/plugins/featurePlugins/useProgressiveRendering/index.d.mts +3 -0
  247. package/internals/plugins/featurePlugins/useProgressiveRendering/index.d.ts +3 -0
  248. package/internals/plugins/featurePlugins/useProgressiveRendering/index.js +27 -0
  249. package/internals/plugins/featurePlugins/useProgressiveRendering/index.mjs +2 -0
  250. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.d.mts +13 -0
  251. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.d.ts +13 -0
  252. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.js +136 -0
  253. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.mjs +128 -0
  254. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.d.mts +42 -0
  255. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.d.ts +42 -0
  256. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.js +166 -0
  257. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.mjs +159 -0
  258. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.types.d.mts +34 -0
  259. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.types.d.ts +34 -0
  260. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.types.js +5 -0
  261. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.types.mjs +1 -0
  262. package/internals/resolveColorProcessor.js +4 -7
  263. package/internals/resolveColorProcessor.mjs +4 -7
  264. package/internals/scales/scaleBand.js +70 -43
  265. package/internals/scales/scaleBand.mjs +71 -44
  266. package/models/axis.d.mts +20 -4
  267. package/models/axis.d.ts +20 -4
  268. package/models/colorMapping.d.mts +8 -0
  269. package/models/colorMapping.d.ts +8 -0
  270. package/models/seriesType/bar.d.mts +1 -1
  271. package/models/seriesType/bar.d.ts +1 -1
  272. package/models/seriesType/common.d.mts +4 -4
  273. package/models/seriesType/common.d.ts +4 -4
  274. package/models/seriesType/config.d.mts +3 -3
  275. package/models/seriesType/config.d.ts +3 -3
  276. package/models/seriesType/line.d.mts +1 -1
  277. package/models/seriesType/line.d.ts +1 -1
  278. package/models/seriesType/pie.d.mts +1 -1
  279. package/models/seriesType/pie.d.ts +1 -1
  280. package/models/seriesType/radar.d.mts +1 -1
  281. package/models/seriesType/radar.d.ts +1 -1
  282. package/models/seriesType/scatter.d.mts +1 -1
  283. package/models/seriesType/scatter.d.ts +1 -1
  284. package/package.json +8 -5
  285. package/hooks/useIsHydrated.d.mts +0 -4
  286. package/hooks/useIsHydrated.d.ts +0 -4
  287. package/hooks/useIsHydrated.js +0 -19
  288. package/hooks/useIsHydrated.mjs +0 -14
@@ -16,6 +16,7 @@ var ReactDOM = _interopRequireWildcard(require("react-dom"));
16
16
  var _propTypes = _interopRequireDefault(require("prop-types"));
17
17
  var _HTMLElementType = _interopRequireDefault(require("@mui/utils/HTMLElementType"));
18
18
  var _useLazyRef = _interopRequireDefault(require("@mui/utils/useLazyRef"));
19
+ var _useEnhancedEffect = _interopRequireDefault(require("@mui/utils/useEnhancedEffect"));
19
20
  var _styles = require("@mui/material/styles");
20
21
  var _Popper = _interopRequireDefault(require("@mui/material/Popper"));
21
22
  var _NoSsr = _interopRequireDefault(require("@mui/material/NoSsr"));
@@ -109,7 +110,7 @@ function ChartsTooltipContainer(inProps) {
109
110
  }
110
111
  }
111
112
  const chartsLayerContainerRef = (0, _hooks.useChartsLayerContainerRef)();
112
- const anchorRef = React.useRef(null);
113
+ const [anchorEl, setAnchorEl] = React.useState(null);
113
114
  const classes = (0, _chartsTooltipClasses.useUtilityClasses)(propClasses);
114
115
  const pointerType = store.use(_useChartInteraction.selectorChartsPointerType);
115
116
  const isFineMainPointer = (0, _utils.useIsFineMainPointer)();
@@ -154,6 +155,12 @@ function ChartsTooltipContainer(inProps) {
154
155
  pointerUpdate.clear();
155
156
  };
156
157
  }, [chartsLayerContainerRef, positionRef, isTooltipNodeAnchored]);
158
+ (0, _useEnhancedEffect.default)(() => {
159
+ if (!isTooltipNodeAnchored) {
160
+ return;
161
+ }
162
+ popperRef.current?.update();
163
+ }, [isTooltipNodeAnchored, itemPosition?.x, itemPosition?.y]);
157
164
  const pointerAnchorEl = React.useMemo(() => ({
158
165
  getBoundingClientRect: () => ({
159
166
  x: positionRef.current.x,
@@ -198,7 +205,7 @@ function ChartsTooltipContainer(inProps) {
198
205
  }
199
206
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
200
207
  children: [chartsLayerContainerRef.current && /*#__PURE__*/ReactDOM.createPortal(/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
201
- ref: anchorRef,
208
+ ref: setAnchorEl,
202
209
  style: {
203
210
  position: 'absolute',
204
211
  display: 'hidden',
@@ -219,9 +226,9 @@ function ChartsTooltipContainer(inProps) {
219
226
  open: isOpen,
220
227
  placement: other.placement ?? position ?? (!isTooltipNodeAnchored && isMouse ? 'right-start' : 'top'),
221
228
  popperRef: popperRef,
222
- anchorEl: itemPosition ? anchorRef.current : pointerAnchorEl,
229
+ anchorEl: itemPosition ? anchorEl : pointerAnchorEl,
223
230
  modifiers: modifiers,
224
- container: chartsLayerContainerRef.current,
231
+ container: other.container ?? chartsLayerContainerRef.current,
225
232
  popperOptions: (0, _extends2.default)({}, other.popperOptions, {
226
233
  strategy: 'fixed'
227
234
  })
@@ -229,7 +236,7 @@ function ChartsTooltipContainer(inProps) {
229
236
  })]
230
237
  });
231
238
  }
232
- process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes = {
239
+ process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes /* remove-proptypes */ = {
233
240
  // ----------------------------- Warning --------------------------------
234
241
  // | These PropTypes are generated from the TypeScript type definitions |
235
242
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -238,7 +245,7 @@ process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes = {
238
245
  * Determine if the tooltip should be placed on the pointer location or on the node.
239
246
  * @default 'pointer'
240
247
  */
241
- anchor: _propTypes.default.oneOf(['node', 'pointer']),
248
+ anchor: _propTypes.default.oneOf(['chart', 'node', 'pointer']),
242
249
  /**
243
250
  * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
244
251
  * or a function that returns either.
@@ -259,25 +266,6 @@ process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes = {
259
266
  * Either a string to use a HTML element or a component.
260
267
  */
261
268
  component: _propTypes.default.elementType,
262
- /**
263
- * The components used for each slot inside the Popper.
264
- * Either a string to use a HTML element or a component.
265
- *
266
- * @deprecated use the `slots` prop instead. This prop will be removed in a future major release. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
267
- * @default {}
268
- */
269
- components: _propTypes.default.shape({
270
- Root: _propTypes.default.elementType
271
- }),
272
- /**
273
- * The props used for each slot inside the Popper.
274
- *
275
- * @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
276
- * @default {}
277
- */
278
- componentsProps: _propTypes.default.shape({
279
- root: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])
280
- }),
281
269
  /**
282
270
  * An HTML element or function that returns one.
283
271
  * The `container` will have the portal children appended to it.
@@ -290,10 +278,10 @@ process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes = {
290
278
  */
291
279
  container: _propTypes.default.oneOfType([(props, propName) => {
292
280
  if (props[propName] == null) {
293
- return new Error(process.env.NODE_ENV !== "production" ? `MUI X: Prop '${propName}' is required but wasn't specified` : (0, _formatErrorMessage2.default)(6, propName));
281
+ return new Error(process.env.NODE_ENV !== "production" ? `Prop '${propName}' is required but wasn't specified` : (0, _formatErrorMessage2.default)(6, propName));
294
282
  }
295
283
  if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {
296
- return new Error(process.env.NODE_ENV !== "production" ? `MUI X: Expected prop '${propName}' to be of type Element` : (0, _formatErrorMessage2.default)(7, propName));
284
+ return new Error(process.env.NODE_ENV !== "production" ? `Expected prop '${propName}' to be of type Element` : (0, _formatErrorMessage2.default)(49, propName));
297
285
  }
298
286
  return null;
299
287
  }, _propTypes.default.func]),
@@ -377,13 +365,12 @@ process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes = {
377
365
  */
378
366
  position: _propTypes.default.oneOf(['bottom', 'left', 'right', 'top']),
379
367
  /**
380
- * The props used for each slot inside the Popper.
368
+ * The props used for each component slot.
381
369
  * @default {}
382
370
  */
383
371
  slotProps: _propTypes.default.object,
384
372
  /**
385
- * The components used for each slot inside the Popper.
386
- * Either a string to use a HTML element or a component.
373
+ * Overridable component slots.
387
374
  * @default {}
388
375
  */
389
376
  slots: _propTypes.default.object,
@@ -9,6 +9,7 @@ import * as ReactDOM from 'react-dom';
9
9
  import PropTypes from 'prop-types';
10
10
  import HTMLElementType from '@mui/utils/HTMLElementType';
11
11
  import useLazyRef from '@mui/utils/useLazyRef';
12
+ import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
12
13
  import { styled, useThemeProps } from '@mui/material/styles';
13
14
  import Popper from '@mui/material/Popper';
14
15
  import NoSsr from '@mui/material/NoSsr';
@@ -102,7 +103,7 @@ function ChartsTooltipContainer(inProps) {
102
103
  }
103
104
  }
104
105
  const chartsLayerContainerRef = useChartsLayerContainerRef();
105
- const anchorRef = React.useRef(null);
106
+ const [anchorEl, setAnchorEl] = React.useState(null);
106
107
  const classes = useUtilityClasses(propClasses);
107
108
  const pointerType = store.use(selectorChartsPointerType);
108
109
  const isFineMainPointer = useIsFineMainPointer();
@@ -147,6 +148,12 @@ function ChartsTooltipContainer(inProps) {
147
148
  pointerUpdate.clear();
148
149
  };
149
150
  }, [chartsLayerContainerRef, positionRef, isTooltipNodeAnchored]);
151
+ useEnhancedEffect(() => {
152
+ if (!isTooltipNodeAnchored) {
153
+ return;
154
+ }
155
+ popperRef.current?.update();
156
+ }, [isTooltipNodeAnchored, itemPosition?.x, itemPosition?.y]);
150
157
  const pointerAnchorEl = React.useMemo(() => ({
151
158
  getBoundingClientRect: () => ({
152
159
  x: positionRef.current.x,
@@ -191,7 +198,7 @@ function ChartsTooltipContainer(inProps) {
191
198
  }
192
199
  return /*#__PURE__*/_jsxs(React.Fragment, {
193
200
  children: [chartsLayerContainerRef.current && /*#__PURE__*/ReactDOM.createPortal(/*#__PURE__*/_jsx("div", {
194
- ref: anchorRef,
201
+ ref: setAnchorEl,
195
202
  style: {
196
203
  position: 'absolute',
197
204
  display: 'hidden',
@@ -212,9 +219,9 @@ function ChartsTooltipContainer(inProps) {
212
219
  open: isOpen,
213
220
  placement: other.placement ?? position ?? (!isTooltipNodeAnchored && isMouse ? 'right-start' : 'top'),
214
221
  popperRef: popperRef,
215
- anchorEl: itemPosition ? anchorRef.current : pointerAnchorEl,
222
+ anchorEl: itemPosition ? anchorEl : pointerAnchorEl,
216
223
  modifiers: modifiers,
217
- container: chartsLayerContainerRef.current,
224
+ container: other.container ?? chartsLayerContainerRef.current,
218
225
  popperOptions: _extends({}, other.popperOptions, {
219
226
  strategy: 'fixed'
220
227
  })
@@ -222,7 +229,7 @@ function ChartsTooltipContainer(inProps) {
222
229
  })]
223
230
  });
224
231
  }
225
- process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes = {
232
+ process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes /* remove-proptypes */ = {
226
233
  // ----------------------------- Warning --------------------------------
227
234
  // | These PropTypes are generated from the TypeScript type definitions |
228
235
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -231,7 +238,7 @@ process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes = {
231
238
  * Determine if the tooltip should be placed on the pointer location or on the node.
232
239
  * @default 'pointer'
233
240
  */
234
- anchor: PropTypes.oneOf(['node', 'pointer']),
241
+ anchor: PropTypes.oneOf(['chart', 'node', 'pointer']),
235
242
  /**
236
243
  * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
237
244
  * or a function that returns either.
@@ -252,25 +259,6 @@ process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes = {
252
259
  * Either a string to use a HTML element or a component.
253
260
  */
254
261
  component: PropTypes.elementType,
255
- /**
256
- * The components used for each slot inside the Popper.
257
- * Either a string to use a HTML element or a component.
258
- *
259
- * @deprecated use the `slots` prop instead. This prop will be removed in a future major release. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
260
- * @default {}
261
- */
262
- components: PropTypes.shape({
263
- Root: PropTypes.elementType
264
- }),
265
- /**
266
- * The props used for each slot inside the Popper.
267
- *
268
- * @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
269
- * @default {}
270
- */
271
- componentsProps: PropTypes.shape({
272
- root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
273
- }),
274
262
  /**
275
263
  * An HTML element or function that returns one.
276
264
  * The `container` will have the portal children appended to it.
@@ -283,10 +271,10 @@ process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes = {
283
271
  */
284
272
  container: PropTypes.oneOfType([(props, propName) => {
285
273
  if (props[propName] == null) {
286
- return new Error(process.env.NODE_ENV !== "production" ? `MUI X: Prop '${propName}' is required but wasn't specified` : _formatErrorMessage(6, propName));
274
+ return new Error(process.env.NODE_ENV !== "production" ? `Prop '${propName}' is required but wasn't specified` : _formatErrorMessage(6, propName));
287
275
  }
288
276
  if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {
289
- return new Error(process.env.NODE_ENV !== "production" ? `MUI X: Expected prop '${propName}' to be of type Element` : _formatErrorMessage(7, propName));
277
+ return new Error(process.env.NODE_ENV !== "production" ? `Expected prop '${propName}' to be of type Element` : _formatErrorMessage(49, propName));
290
278
  }
291
279
  return null;
292
280
  }, PropTypes.func]),
@@ -370,13 +358,12 @@ process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes = {
370
358
  */
371
359
  position: PropTypes.oneOf(['bottom', 'left', 'right', 'top']),
372
360
  /**
373
- * The props used for each slot inside the Popper.
361
+ * The props used for each component slot.
374
362
  * @default {}
375
363
  */
376
364
  slotProps: PropTypes.object,
377
365
  /**
378
- * The components used for each slot inside the Popper.
379
- * Either a string to use a HTML element or a component.
366
+ * Overridable component slots.
380
367
  * @default {}
381
368
  */
382
369
  slots: PropTypes.object,
@@ -152,7 +152,7 @@ const ChartsWrapper = exports.ChartsWrapper = /*#__PURE__*/React.forwardRef(func
152
152
  }));
153
153
  });
154
154
  if (process.env.NODE_ENV !== "production") ChartsWrapper.displayName = "ChartsWrapper";
155
- process.env.NODE_ENV !== "production" ? ChartsWrapper.propTypes = {
155
+ process.env.NODE_ENV !== "production" ? ChartsWrapper.propTypes /* remove-proptypes */ = {
156
156
  // ----------------------------- Warning --------------------------------
157
157
  // | These PropTypes are generated from the TypeScript type definitions |
158
158
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -145,7 +145,7 @@ const ChartsWrapper = /*#__PURE__*/React.forwardRef(function ChartsWrapper(props
145
145
  }));
146
146
  });
147
147
  if (process.env.NODE_ENV !== "production") ChartsWrapper.displayName = "ChartsWrapper";
148
- process.env.NODE_ENV !== "production" ? ChartsWrapper.propTypes = {
148
+ process.env.NODE_ENV !== "production" ? ChartsWrapper.propTypes /* remove-proptypes */ = {
149
149
  // ----------------------------- Warning --------------------------------
150
150
  // | These PropTypes are generated from the TypeScript type definitions |
151
151
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -10,7 +10,7 @@ exports.ChartsSingleXAxisTicks = ChartsSingleXAxisTicks;
10
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
11
  var React = _interopRequireWildcard(require("react"));
12
12
  var _RtlProvider = require("@mui/system/RtlProvider");
13
- var _useIsHydrated = require("../hooks/useIsHydrated");
13
+ var _useIsHydrated = require("@mui/x-internals/useIsHydrated");
14
14
  var _useTicks = require("../hooks/useTicks");
15
15
  var _useMounted = require("../hooks/useMounted");
16
16
  var _useDrawingArea = require("../hooks/useDrawingArea");
@@ -3,7 +3,7 @@
3
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import * as React from 'react';
5
5
  import { useRtl } from '@mui/system/RtlProvider';
6
- import { useIsHydrated } from "../hooks/useIsHydrated.mjs";
6
+ import { useIsHydrated } from '@mui/x-internals/useIsHydrated';
7
7
  import { useTicks } from "../hooks/useTicks.mjs";
8
8
  import { useMounted } from "../hooks/useMounted.mjs";
9
9
  import { useDrawingArea } from "../hooks/useDrawingArea.mjs";
@@ -37,7 +37,7 @@ function ChartsXAxis(inProps) {
37
37
  axis: axis
38
38
  }));
39
39
  }
40
- process.env.NODE_ENV !== "production" ? ChartsXAxis.propTypes = {
40
+ process.env.NODE_ENV !== "production" ? ChartsXAxis.propTypes /* remove-proptypes */ = {
41
41
  // ----------------------------- Warning --------------------------------
42
42
  // | These PropTypes are generated from the TypeScript type definitions |
43
43
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -52,6 +52,10 @@ process.env.NODE_ENV !== "production" ? ChartsXAxis.propTypes = {
52
52
  * Override or extend the styles applied to the component.
53
53
  */
54
54
  classes: _propTypes.default.object,
55
+ /**
56
+ * A CSS class name applied to the root element.
57
+ */
58
+ className: _propTypes.default.string,
55
59
  /**
56
60
  * If true, the axis line is disabled.
57
61
  * @default false
@@ -141,5 +145,10 @@ process.env.NODE_ENV !== "production" ? ChartsXAxis.propTypes = {
141
145
  * The size of the ticks.
142
146
  * @default 6
143
147
  */
144
- tickSize: _propTypes.default.number
148
+ tickSize: _propTypes.default.number,
149
+ /**
150
+ * The minimum space between ticks when using an ordinal scale. It defines the minimum distance in pixels between two ticks.
151
+ * @default 0
152
+ */
153
+ tickSpacing: _propTypes.default.number
145
154
  } : void 0;
@@ -31,7 +31,7 @@ function ChartsXAxis(inProps) {
31
31
  axis: axis
32
32
  }));
33
33
  }
34
- process.env.NODE_ENV !== "production" ? ChartsXAxis.propTypes = {
34
+ process.env.NODE_ENV !== "production" ? ChartsXAxis.propTypes /* remove-proptypes */ = {
35
35
  // ----------------------------- Warning --------------------------------
36
36
  // | These PropTypes are generated from the TypeScript type definitions |
37
37
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -46,6 +46,10 @@ process.env.NODE_ENV !== "production" ? ChartsXAxis.propTypes = {
46
46
  * Override or extend the styles applied to the component.
47
47
  */
48
48
  classes: PropTypes.object,
49
+ /**
50
+ * A CSS class name applied to the root element.
51
+ */
52
+ className: PropTypes.string,
49
53
  /**
50
54
  * If true, the axis line is disabled.
51
55
  * @default false
@@ -135,6 +139,11 @@ process.env.NODE_ENV !== "production" ? ChartsXAxis.propTypes = {
135
139
  * The size of the ticks.
136
140
  * @default 6
137
141
  */
138
- tickSize: PropTypes.number
142
+ tickSize: PropTypes.number,
143
+ /**
144
+ * The minimum space between ticks when using an ordinal scale. It defines the minimum distance in pixels between two ticks.
145
+ * @default 0
146
+ */
147
+ tickSpacing: PropTypes.number
139
148
  } : void 0;
140
149
  export { ChartsXAxis };
@@ -10,7 +10,7 @@ exports.ChartsSingleYAxisTicks = ChartsSingleYAxisTicks;
10
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
11
  var React = _interopRequireWildcard(require("react"));
12
12
  var _RtlProvider = require("@mui/system/RtlProvider");
13
- var _useIsHydrated = require("../hooks/useIsHydrated");
13
+ var _useIsHydrated = require("@mui/x-internals/useIsHydrated");
14
14
  var _useTicks = require("../hooks/useTicks");
15
15
  var _useDrawingArea = require("../hooks/useDrawingArea");
16
16
  var _ChartsProvider = require("../context/ChartsProvider");
@@ -3,7 +3,7 @@
3
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import * as React from 'react';
5
5
  import { useRtl } from '@mui/system/RtlProvider';
6
- import { useIsHydrated } from "../hooks/useIsHydrated.mjs";
6
+ import { useIsHydrated } from '@mui/x-internals/useIsHydrated';
7
7
  import { useTicks } from "../hooks/useTicks.mjs";
8
8
  import { useDrawingArea } from "../hooks/useDrawingArea.mjs";
9
9
  import { useChartsContext } from "../context/ChartsProvider/index.mjs";
@@ -37,7 +37,7 @@ function ChartsYAxis(inProps) {
37
37
  axis: axis
38
38
  }));
39
39
  }
40
- process.env.NODE_ENV !== "production" ? ChartsYAxis.propTypes = {
40
+ process.env.NODE_ENV !== "production" ? ChartsYAxis.propTypes /* remove-proptypes */ = {
41
41
  // ----------------------------- Warning --------------------------------
42
42
  // | These PropTypes are generated from the TypeScript type definitions |
43
43
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -52,6 +52,10 @@ process.env.NODE_ENV !== "production" ? ChartsYAxis.propTypes = {
52
52
  * Override or extend the styles applied to the component.
53
53
  */
54
54
  classes: _propTypes.default.object,
55
+ /**
56
+ * A CSS class name applied to the root element.
57
+ */
58
+ className: _propTypes.default.string,
55
59
  /**
56
60
  * If true, the axis line is disabled.
57
61
  * @default false
@@ -135,5 +139,10 @@ process.env.NODE_ENV !== "production" ? ChartsYAxis.propTypes = {
135
139
  * The size of the ticks.
136
140
  * @default 6
137
141
  */
138
- tickSize: _propTypes.default.number
142
+ tickSize: _propTypes.default.number,
143
+ /**
144
+ * The minimum space between ticks when using an ordinal scale. It defines the minimum distance in pixels between two ticks.
145
+ * @default 0
146
+ */
147
+ tickSpacing: _propTypes.default.number
139
148
  } : void 0;
@@ -31,7 +31,7 @@ function ChartsYAxis(inProps) {
31
31
  axis: axis
32
32
  }));
33
33
  }
34
- process.env.NODE_ENV !== "production" ? ChartsYAxis.propTypes = {
34
+ process.env.NODE_ENV !== "production" ? ChartsYAxis.propTypes /* remove-proptypes */ = {
35
35
  // ----------------------------- Warning --------------------------------
36
36
  // | These PropTypes are generated from the TypeScript type definitions |
37
37
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -46,6 +46,10 @@ process.env.NODE_ENV !== "production" ? ChartsYAxis.propTypes = {
46
46
  * Override or extend the styles applied to the component.
47
47
  */
48
48
  classes: PropTypes.object,
49
+ /**
50
+ * A CSS class name applied to the root element.
51
+ */
52
+ className: PropTypes.string,
49
53
  /**
50
54
  * If true, the axis line is disabled.
51
55
  * @default false
@@ -129,6 +133,11 @@ process.env.NODE_ENV !== "production" ? ChartsYAxis.propTypes = {
129
133
  * The size of the ticks.
130
134
  * @default 6
131
135
  */
132
- tickSize: PropTypes.number
136
+ tickSize: PropTypes.number,
137
+ /**
138
+ * The minimum space between ticks when using an ordinal scale. It defines the minimum distance in pixels between two ticks.
139
+ * @default 0
140
+ */
141
+ tickSpacing: PropTypes.number
133
142
  } : void 0;
134
143
  export { ChartsYAxis };
@@ -13,13 +13,13 @@ var React = _interopRequireWildcard(require("react"));
13
13
  var _clsx = _interopRequireDefault(require("clsx"));
14
14
  var _useSlotProps = _interopRequireDefault(require("@mui/utils/useSlotProps"));
15
15
  var _styles = require("@mui/material/styles");
16
+ var _useIsHydrated = require("@mui/x-internals/useIsHydrated");
16
17
  var _ChartsSingleYAxisTicks = require("./ChartsSingleYAxisTicks");
17
18
  var _ChartsGroupedYAxisTicks = require("./ChartsGroupedYAxisTicks");
18
19
  var _ChartsText = require("../ChartsText");
19
20
  var _utilities = require("./utilities");
20
21
  var _isInfinity = require("../internals/isInfinity");
21
22
  var _useDrawingArea = require("../hooks/useDrawingArea");
22
- var _useIsHydrated = require("../hooks/useIsHydrated");
23
23
  var _scaleGuards = require("../internals/scaleGuards");
24
24
  var _domUtils = require("../internals/domUtils");
25
25
  var _AxisSharedComponents = require("../internals/components/AxisSharedComponents");
@@ -8,13 +8,13 @@ import * as React from 'react';
8
8
  import clsx from 'clsx';
9
9
  import useSlotProps from '@mui/utils/useSlotProps';
10
10
  import { useThemeProps, useTheme, styled } from '@mui/material/styles';
11
+ import { useIsHydrated } from '@mui/x-internals/useIsHydrated';
11
12
  import { ChartsSingleYAxisTicks } from "./ChartsSingleYAxisTicks.mjs";
12
13
  import { ChartsGroupedYAxisTicks } from "./ChartsGroupedYAxisTicks.mjs";
13
14
  import { ChartsText } from "../ChartsText/index.mjs";
14
15
  import { defaultProps, useUtilityClasses } from "./utilities.mjs";
15
16
  import { isInfinity } from "../internals/isInfinity.mjs";
16
17
  import { useDrawingArea } from "../hooks/useDrawingArea.mjs";
17
- import { useIsHydrated } from "../hooks/useIsHydrated.mjs";
18
18
  import { isOrdinalScale } from "../internals/scaleGuards.mjs";
19
19
  import { getStringSize } from "../internals/domUtils.mjs";
20
20
  import { AxisRoot } from "../internals/components/AxisSharedComponents.mjs";
package/Gauge/Gauge.js CHANGED
@@ -49,7 +49,7 @@ const Gauge = exports.Gauge = /*#__PURE__*/React.forwardRef(function Gauge(props
49
49
  }));
50
50
  });
51
51
  if (process.env.NODE_ENV !== "production") Gauge.displayName = "Gauge";
52
- process.env.NODE_ENV !== "production" ? Gauge.propTypes = {
52
+ process.env.NODE_ENV !== "production" ? Gauge.propTypes /* remove-proptypes */ = {
53
53
  // ----------------------------- Warning --------------------------------
54
54
  // | These PropTypes are generated from the TypeScript type definitions |
55
55
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
package/Gauge/Gauge.mjs CHANGED
@@ -42,7 +42,7 @@ const Gauge = /*#__PURE__*/React.forwardRef(function Gauge(props, ref) {
42
42
  }));
43
43
  });
44
44
  if (process.env.NODE_ENV !== "production") Gauge.displayName = "Gauge";
45
- process.env.NODE_ENV !== "production" ? Gauge.propTypes = {
45
+ process.env.NODE_ENV !== "production" ? Gauge.propTypes /* remove-proptypes */ = {
46
46
  // ----------------------------- Warning --------------------------------
47
47
  // | These PropTypes are generated from the TypeScript type definitions |
48
48
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -91,7 +91,7 @@ const GaugeContainer = exports.GaugeContainer = /*#__PURE__*/React.forwardRef(fu
91
91
  });
92
92
  });
93
93
  if (process.env.NODE_ENV !== "production") GaugeContainer.displayName = "GaugeContainer";
94
- process.env.NODE_ENV !== "production" ? GaugeContainer.propTypes = {
94
+ process.env.NODE_ENV !== "production" ? GaugeContainer.propTypes /* remove-proptypes */ = {
95
95
  // ----------------------------- Warning --------------------------------
96
96
  // | These PropTypes are generated from the TypeScript type definitions |
97
97
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -84,7 +84,7 @@ const GaugeContainer = /*#__PURE__*/React.forwardRef(function GaugeContainer(pro
84
84
  });
85
85
  });
86
86
  if (process.env.NODE_ENV !== "production") GaugeContainer.displayName = "GaugeContainer";
87
- process.env.NODE_ENV !== "production" ? GaugeContainer.propTypes = {
87
+ process.env.NODE_ENV !== "production" ? GaugeContainer.propTypes /* remove-proptypes */ = {
88
88
  // ----------------------------- Warning --------------------------------
89
89
  // | These PropTypes are generated from the TypeScript type definitions |
90
90
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -60,7 +60,7 @@ function GaugeValueArc(_ref) {
60
60
  outerRadius: outerRadius
61
61
  }));
62
62
  }
63
- process.env.NODE_ENV !== "production" ? GaugeValueArc.propTypes = {
63
+ process.env.NODE_ENV !== "production" ? GaugeValueArc.propTypes /* remove-proptypes */ = {
64
64
  // ----------------------------- Warning --------------------------------
65
65
  // | These PropTypes are generated from the TypeScript type definitions |
66
66
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -92,7 +92,7 @@ function AnimatedGaugeValueArc(_ref2) {
92
92
  transform: `translate(${cx}, ${cy})`
93
93
  }, other));
94
94
  }
95
- process.env.NODE_ENV !== "production" ? AnimatedGaugeValueArc.propTypes = {
95
+ process.env.NODE_ENV !== "production" ? AnimatedGaugeValueArc.propTypes /* remove-proptypes */ = {
96
96
  // ----------------------------- Warning --------------------------------
97
97
  // | These PropTypes are generated from the TypeScript type definitions |
98
98
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -53,7 +53,7 @@ function GaugeValueArc(_ref) {
53
53
  outerRadius: outerRadius
54
54
  }));
55
55
  }
56
- process.env.NODE_ENV !== "production" ? GaugeValueArc.propTypes = {
56
+ process.env.NODE_ENV !== "production" ? GaugeValueArc.propTypes /* remove-proptypes */ = {
57
57
  // ----------------------------- Warning --------------------------------
58
58
  // | These PropTypes are generated from the TypeScript type definitions |
59
59
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -86,7 +86,7 @@ function AnimatedGaugeValueArc(_ref2) {
86
86
  transform: `translate(${cx}, ${cy})`
87
87
  }, other));
88
88
  }
89
- process.env.NODE_ENV !== "production" ? AnimatedGaugeValueArc.propTypes = {
89
+ process.env.NODE_ENV !== "production" ? AnimatedGaugeValueArc.propTypes /* remove-proptypes */ = {
90
90
  // ----------------------------- Warning --------------------------------
91
91
  // | These PropTypes are generated from the TypeScript type definitions |
92
92
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -54,7 +54,7 @@ function GaugeValueText(props) {
54
54
  }, other))
55
55
  });
56
56
  }
57
- process.env.NODE_ENV !== "production" ? GaugeValueText.propTypes = {
57
+ process.env.NODE_ENV !== "production" ? GaugeValueText.propTypes /* remove-proptypes */ = {
58
58
  // ----------------------------- Warning --------------------------------
59
59
  // | These PropTypes are generated from the TypeScript type definitions |
60
60
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -48,7 +48,7 @@ function GaugeValueText(props) {
48
48
  }, other))
49
49
  });
50
50
  }
51
- process.env.NODE_ENV !== "production" ? GaugeValueText.propTypes = {
51
+ process.env.NODE_ENV !== "production" ? GaugeValueText.propTypes /* remove-proptypes */ = {
52
52
  // ----------------------------- Warning --------------------------------
53
53
  // | These PropTypes are generated from the TypeScript type definitions |
54
54
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -48,7 +48,7 @@ function AnimatedArea(props) {
48
48
  }, other, animatedProps))
49
49
  });
50
50
  }
51
- process.env.NODE_ENV !== "production" ? AnimatedArea.propTypes = {
51
+ process.env.NODE_ENV !== "production" ? AnimatedArea.propTypes /* remove-proptypes */ = {
52
52
  // ----------------------------- Warning --------------------------------
53
53
  // | These PropTypes are generated from the TypeScript type definitions |
54
54
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -58,9 +58,9 @@ process.env.NODE_ENV !== "production" ? AnimatedArea.propTypes = {
58
58
  classes: _propTypes.default.object,
59
59
  color: _propTypes.default.string.isRequired,
60
60
  gradientId: _propTypes.default.string,
61
- seriesId: _propTypes.default.string.isRequired,
62
61
  isFaded: _propTypes.default.bool.isRequired,
63
- isHighlighted: _propTypes.default.bool.isRequired
62
+ isHighlighted: _propTypes.default.bool.isRequired,
63
+ seriesId: _propTypes.default.string.isRequired
64
64
  }).isRequired,
65
65
  /**
66
66
  * If `true`, animations are skipped.
@@ -41,7 +41,7 @@ function AnimatedArea(props) {
41
41
  }, other, animatedProps))
42
42
  });
43
43
  }
44
- process.env.NODE_ENV !== "production" ? AnimatedArea.propTypes = {
44
+ process.env.NODE_ENV !== "production" ? AnimatedArea.propTypes /* remove-proptypes */ = {
45
45
  // ----------------------------- Warning --------------------------------
46
46
  // | These PropTypes are generated from the TypeScript type definitions |
47
47
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -51,9 +51,9 @@ process.env.NODE_ENV !== "production" ? AnimatedArea.propTypes = {
51
51
  classes: PropTypes.object,
52
52
  color: PropTypes.string.isRequired,
53
53
  gradientId: PropTypes.string,
54
- seriesId: PropTypes.string.isRequired,
55
54
  isFaded: PropTypes.bool.isRequired,
56
- isHighlighted: PropTypes.bool.isRequired
55
+ isHighlighted: PropTypes.bool.isRequired,
56
+ seriesId: PropTypes.string.isRequired
57
57
  }).isRequired,
58
58
  /**
59
59
  * If `true`, animations are skipped.
@@ -54,7 +54,7 @@ const AnimatedLine = exports.AnimatedLine = /*#__PURE__*/React.forwardRef(functi
54
54
  });
55
55
  });
56
56
  if (process.env.NODE_ENV !== "production") AnimatedLine.displayName = "AnimatedLine";
57
- process.env.NODE_ENV !== "production" ? AnimatedLine.propTypes = {
57
+ process.env.NODE_ENV !== "production" ? AnimatedLine.propTypes /* remove-proptypes */ = {
58
58
  // ----------------------------- Warning --------------------------------
59
59
  // | These PropTypes are generated from the TypeScript type definitions |
60
60
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -47,7 +47,7 @@ const AnimatedLine = /*#__PURE__*/React.forwardRef(function AnimatedLine(props,
47
47
  });
48
48
  });
49
49
  if (process.env.NODE_ENV !== "production") AnimatedLine.displayName = "AnimatedLine";
50
- process.env.NODE_ENV !== "production" ? AnimatedLine.propTypes = {
50
+ process.env.NODE_ENV !== "production" ? AnimatedLine.propTypes /* remove-proptypes */ = {
51
51
  // ----------------------------- Warning --------------------------------
52
52
  // | These PropTypes are generated from the TypeScript type definitions |
53
53
  // | To update them edit the TypeScript types and run "pnpm proptypes" |