@mui/x-charts-pro 9.5.0 → 9.7.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 (363) hide show
  1. package/BarChartPro/BarChartPro.d.mts +5 -5
  2. package/BarChartPro/BarChartPro.d.ts +5 -5
  3. package/BarChartPro/BarChartPro.js +5 -3
  4. package/BarChartPro/BarChartPro.mjs +5 -3
  5. package/BarChartPro/BarChartPro.plugins.d.mts +3 -3
  6. package/BarChartPro/BarChartPro.plugins.d.ts +3 -3
  7. package/CHANGELOG.md +261 -0
  8. package/ChartZoomSlider/index.d.mts +2 -1
  9. package/ChartZoomSlider/index.d.ts +2 -1
  10. package/ChartZoomSlider/index.mjs +0 -1
  11. package/ChartsContainerPro/ChartsContainerPro.d.mts +4 -4
  12. package/ChartsContainerPro/ChartsContainerPro.d.ts +4 -4
  13. package/ChartsContainerPro/useChartsContainerProProps.d.mts +2 -2
  14. package/ChartsContainerPro/useChartsContainerProProps.d.ts +2 -2
  15. package/ChartsDataProviderPro/ChartsDataProviderPro.d.mts +4 -4
  16. package/ChartsDataProviderPro/ChartsDataProviderPro.d.ts +4 -4
  17. package/ChartsDataProviderPro/ChartsDataProviderPro.js +7 -3
  18. package/ChartsDataProviderPro/ChartsDataProviderPro.mjs +7 -3
  19. package/ChartsDataProviderPro/useChartsDataProviderProProps.d.mts +1 -1
  20. package/ChartsDataProviderPro/useChartsDataProviderProProps.d.ts +1 -1
  21. package/ChartsToolbarPro/ChartsToolbarImageExportTrigger.d.mts +3 -3
  22. package/ChartsToolbarPro/ChartsToolbarImageExportTrigger.d.ts +3 -3
  23. package/ChartsToolbarPro/ChartsToolbarImageExportTrigger.js +1 -1
  24. package/ChartsToolbarPro/ChartsToolbarImageExportTrigger.mjs +1 -1
  25. package/ChartsToolbarPro/ChartsToolbarPrintExportTrigger.d.mts +3 -3
  26. package/ChartsToolbarPro/ChartsToolbarPrintExportTrigger.d.ts +3 -3
  27. package/ChartsToolbarPro/ChartsToolbarPrintExportTrigger.js +1 -1
  28. package/ChartsToolbarPro/ChartsToolbarPrintExportTrigger.mjs +1 -1
  29. package/ChartsToolbarPro/ChartsToolbarPro.d.mts +5 -5
  30. package/ChartsToolbarPro/ChartsToolbarPro.d.ts +5 -5
  31. package/ChartsToolbarPro/ChartsToolbarPro.js +3 -2
  32. package/ChartsToolbarPro/ChartsToolbarPro.mjs +3 -2
  33. package/ChartsToolbarPro/ChartsToolbarRangeButtonTrigger.d.mts +3 -3
  34. package/ChartsToolbarPro/ChartsToolbarRangeButtonTrigger.d.ts +3 -3
  35. package/ChartsToolbarPro/ChartsToolbarRangeButtonTrigger.js +1 -1
  36. package/ChartsToolbarPro/ChartsToolbarRangeButtonTrigger.mjs +1 -1
  37. package/ChartsToolbarPro/ChartsToolbarZoomInTrigger.d.mts +2 -2
  38. package/ChartsToolbarPro/ChartsToolbarZoomInTrigger.d.ts +2 -2
  39. package/ChartsToolbarPro/ChartsToolbarZoomInTrigger.js +1 -1
  40. package/ChartsToolbarPro/ChartsToolbarZoomInTrigger.mjs +1 -1
  41. package/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.d.mts +2 -2
  42. package/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.d.ts +2 -2
  43. package/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.js +1 -1
  44. package/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.mjs +1 -1
  45. package/ChartsToolbarPro/Toolbar.types.d.mts +1 -1
  46. package/ChartsToolbarPro/Toolbar.types.d.ts +1 -1
  47. package/ChartsToolbarPro/internals/ChartsMenu.d.mts +1 -1
  48. package/ChartsToolbarPro/internals/ChartsMenu.d.ts +1 -1
  49. package/ChartsToolbarPro/internals/ChartsToolbarDivider.d.mts +1 -1
  50. package/ChartsToolbarPro/internals/ChartsToolbarDivider.d.ts +1 -1
  51. package/ChartsZoomSlider/internals/ChartsAxisZoomSlider.d.mts +1 -1
  52. package/ChartsZoomSlider/internals/ChartsAxisZoomSlider.d.ts +1 -1
  53. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderActiveTrack.d.mts +1 -1
  54. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderActiveTrack.d.ts +1 -1
  55. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreview.d.mts +1 -1
  56. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreview.d.ts +1 -1
  57. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreviewContent.d.mts +1 -1
  58. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreviewContent.d.ts +1 -1
  59. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderTrack.d.mts +1 -1
  60. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderTrack.d.ts +1 -1
  61. package/ChartsZoomSlider/internals/ChartsTooltipZoomSliderValue.d.mts +1 -1
  62. package/ChartsZoomSlider/internals/ChartsTooltipZoomSliderValue.d.ts +1 -1
  63. package/ChartsZoomSlider/internals/previews/AreaPreviewPlot.d.mts +2 -2
  64. package/ChartsZoomSlider/internals/previews/AreaPreviewPlot.d.ts +2 -2
  65. package/ChartsZoomSlider/internals/previews/BarPreviewPlot.d.mts +1 -1
  66. package/ChartsZoomSlider/internals/previews/BarPreviewPlot.d.ts +1 -1
  67. package/ChartsZoomSlider/internals/previews/BarPreviewPlot.mjs +1 -2
  68. package/ChartsZoomSlider/internals/previews/LineAreaPreviewPlot.d.mts +1 -1
  69. package/ChartsZoomSlider/internals/previews/LineAreaPreviewPlot.d.ts +1 -1
  70. package/ChartsZoomSlider/internals/previews/LinePreviewPlot.d.mts +1 -1
  71. package/ChartsZoomSlider/internals/previews/LinePreviewPlot.d.ts +1 -1
  72. package/ChartsZoomSlider/internals/previews/PreviewPlot.types.d.mts +1 -1
  73. package/ChartsZoomSlider/internals/previews/PreviewPlot.types.d.ts +1 -1
  74. package/ChartsZoomSlider/internals/previews/ScatterPreviewPlot.d.mts +1 -1
  75. package/ChartsZoomSlider/internals/previews/ScatterPreviewPlot.d.ts +1 -1
  76. package/ChartsZoomSlider/internals/seriesPreviewPlotMap.d.mts +1 -1
  77. package/ChartsZoomSlider/internals/seriesPreviewPlotMap.d.ts +1 -1
  78. package/ChartsZoomSlider/internals/zoom-utils.d.mts +2 -2
  79. package/ChartsZoomSlider/internals/zoom-utils.d.ts +2 -2
  80. package/FunnelChart/FunnelChart.d.mts +9 -9
  81. package/FunnelChart/FunnelChart.d.ts +9 -9
  82. package/FunnelChart/FunnelChart.js +1 -1
  83. package/FunnelChart/FunnelChart.mjs +1 -1
  84. package/FunnelChart/FunnelChart.plugins.d.mts +3 -3
  85. package/FunnelChart/FunnelChart.plugins.d.ts +3 -3
  86. package/FunnelChart/FunnelPlot.d.mts +2 -2
  87. package/FunnelChart/FunnelPlot.d.ts +2 -2
  88. package/FunnelChart/FunnelPlot.js +5 -1
  89. package/FunnelChart/FunnelPlot.mjs +5 -1
  90. package/FunnelChart/FunnelSection.d.mts +2 -2
  91. package/FunnelChart/FunnelSection.d.ts +2 -2
  92. package/FunnelChart/FunnelSectionLabel.d.mts +2 -2
  93. package/FunnelChart/FunnelSectionLabel.d.ts +2 -2
  94. package/FunnelChart/categoryAxis.types.d.mts +2 -2
  95. package/FunnelChart/categoryAxis.types.d.ts +2 -2
  96. package/FunnelChart/coordinateMapper.d.mts +2 -2
  97. package/FunnelChart/coordinateMapper.d.ts +2 -2
  98. package/FunnelChart/curves/borderRadiusPolygon.d.mts +1 -1
  99. package/FunnelChart/curves/borderRadiusPolygon.d.ts +1 -1
  100. package/FunnelChart/curves/bump.d.mts +1 -1
  101. package/FunnelChart/curves/bump.d.ts +1 -1
  102. package/FunnelChart/curves/curve.types.d.mts +1 -1
  103. package/FunnelChart/curves/curve.types.d.ts +1 -1
  104. package/FunnelChart/curves/getFunnelCurve.d.mts +1 -1
  105. package/FunnelChart/curves/getFunnelCurve.d.ts +1 -1
  106. package/FunnelChart/curves/linear.d.mts +1 -1
  107. package/FunnelChart/curves/linear.d.ts +1 -1
  108. package/FunnelChart/curves/pyramid.d.mts +1 -1
  109. package/FunnelChart/curves/pyramid.d.ts +1 -1
  110. package/FunnelChart/curves/step-pyramid.d.mts +1 -1
  111. package/FunnelChart/curves/step-pyramid.d.ts +1 -1
  112. package/FunnelChart/curves/step.d.mts +1 -1
  113. package/FunnelChart/curves/step.d.ts +1 -1
  114. package/FunnelChart/funnel.types.d.mts +5 -5
  115. package/FunnelChart/funnel.types.d.ts +5 -5
  116. package/FunnelChart/funnelAxisPlugin/computeAxisValue.d.mts +4 -4
  117. package/FunnelChart/funnelAxisPlugin/computeAxisValue.d.ts +4 -4
  118. package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.d.mts +2 -2
  119. package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.d.ts +2 -2
  120. package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.types.d.mts +1 -1
  121. package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.types.d.ts +1 -1
  122. package/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.d.mts +2 -2
  123. package/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.d.ts +2 -2
  124. package/FunnelChart/funnelClasses.d.mts +1 -1
  125. package/FunnelChart/funnelClasses.d.ts +1 -1
  126. package/FunnelChart/funnelPlotSlots.types.d.mts +1 -1
  127. package/FunnelChart/funnelPlotSlots.types.d.ts +1 -1
  128. package/FunnelChart/funnelSlots.types.d.mts +6 -6
  129. package/FunnelChart/funnelSlots.types.d.ts +6 -6
  130. package/FunnelChart/labelUtils.d.mts +2 -2
  131. package/FunnelChart/labelUtils.d.ts +2 -2
  132. package/FunnelChart/seriesConfig/descriptionGetter.d.mts +1 -1
  133. package/FunnelChart/seriesConfig/descriptionGetter.d.ts +1 -1
  134. package/FunnelChart/seriesConfig/extremums.d.mts +1 -1
  135. package/FunnelChart/seriesConfig/extremums.d.ts +1 -1
  136. package/FunnelChart/seriesConfig/getColor.d.mts +1 -1
  137. package/FunnelChart/seriesConfig/getColor.d.ts +1 -1
  138. package/FunnelChart/seriesConfig/getSeriesWithDefaultValues.d.mts +1 -1
  139. package/FunnelChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  140. package/FunnelChart/seriesConfig/index.d.mts +1 -1
  141. package/FunnelChart/seriesConfig/index.d.ts +1 -1
  142. package/FunnelChart/seriesConfig/keyboardFocusHandler.d.mts +1 -1
  143. package/FunnelChart/seriesConfig/keyboardFocusHandler.d.ts +1 -1
  144. package/FunnelChart/seriesConfig/legend.d.mts +1 -1
  145. package/FunnelChart/seriesConfig/legend.d.ts +1 -1
  146. package/FunnelChart/seriesConfig/seriesProcessor.d.mts +1 -1
  147. package/FunnelChart/seriesConfig/seriesProcessor.d.ts +1 -1
  148. package/FunnelChart/seriesConfig/tooltip.d.mts +1 -1
  149. package/FunnelChart/seriesConfig/tooltip.d.ts +1 -1
  150. package/FunnelChart/seriesConfig/tooltipPosition.d.mts +1 -1
  151. package/FunnelChart/seriesConfig/tooltipPosition.d.ts +1 -1
  152. package/FunnelChart/useFunnelChartProps.d.mts +7 -7
  153. package/FunnelChart/useFunnelChartProps.d.ts +7 -7
  154. package/Heatmap/Heatmap.d.mts +12 -12
  155. package/Heatmap/Heatmap.d.ts +12 -12
  156. package/Heatmap/Heatmap.js +5 -3
  157. package/Heatmap/Heatmap.mjs +5 -3
  158. package/Heatmap/Heatmap.plugins.d.mts +3 -3
  159. package/Heatmap/Heatmap.plugins.d.ts +3 -3
  160. package/Heatmap/Heatmap.types.d.mts +1 -1
  161. package/Heatmap/Heatmap.types.d.ts +1 -1
  162. package/Heatmap/HeatmapCell.js +1 -1
  163. package/Heatmap/HeatmapCell.mjs +1 -1
  164. package/Heatmap/HeatmapItem.d.mts +2 -2
  165. package/Heatmap/HeatmapItem.d.ts +2 -2
  166. package/Heatmap/HeatmapPlot.d.mts +1 -1
  167. package/Heatmap/HeatmapPlot.d.ts +1 -1
  168. package/Heatmap/HeatmapPlot.js +1 -1
  169. package/Heatmap/HeatmapPlot.mjs +1 -1
  170. package/Heatmap/HeatmapSVGPlot.d.mts +1 -1
  171. package/Heatmap/HeatmapSVGPlot.d.ts +1 -1
  172. package/Heatmap/HeatmapTooltip/HeatmapTooltip.classes.d.mts +1 -1
  173. package/Heatmap/HeatmapTooltip/HeatmapTooltip.classes.d.ts +1 -1
  174. package/Heatmap/HeatmapTooltip/HeatmapTooltip.d.mts +1 -1
  175. package/Heatmap/HeatmapTooltip/HeatmapTooltip.d.ts +1 -1
  176. package/Heatmap/HeatmapTooltip/HeatmapTooltip.js +5 -25
  177. package/Heatmap/HeatmapTooltip/HeatmapTooltip.mjs +5 -25
  178. package/Heatmap/HeatmapTooltip/HeatmapTooltip.types.d.mts +1 -1
  179. package/Heatmap/HeatmapTooltip/HeatmapTooltip.types.d.ts +1 -1
  180. package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.d.mts +1 -1
  181. package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.d.ts +1 -1
  182. package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.js +1 -1
  183. package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.mjs +1 -1
  184. package/Heatmap/seriesConfig/extremums.d.mts +1 -1
  185. package/Heatmap/seriesConfig/extremums.d.ts +1 -1
  186. package/Heatmap/seriesConfig/getColor.d.mts +1 -1
  187. package/Heatmap/seriesConfig/getColor.d.ts +1 -1
  188. package/Heatmap/seriesConfig/getSeriesWithDefaultValues.d.mts +1 -1
  189. package/Heatmap/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  190. package/Heatmap/seriesConfig/identifierSerializer.d.mts +1 -1
  191. package/Heatmap/seriesConfig/identifierSerializer.d.ts +1 -1
  192. package/Heatmap/seriesConfig/index.d.mts +1 -1
  193. package/Heatmap/seriesConfig/index.d.ts +1 -1
  194. package/Heatmap/seriesConfig/seriesProcessor.d.mts +1 -1
  195. package/Heatmap/seriesConfig/seriesProcessor.d.ts +1 -1
  196. package/Heatmap/seriesConfig/tooltip.d.mts +1 -1
  197. package/Heatmap/seriesConfig/tooltip.d.ts +1 -1
  198. package/Heatmap/seriesConfig/tooltipPosition.d.mts +1 -1
  199. package/Heatmap/seriesConfig/tooltipPosition.d.ts +1 -1
  200. package/Heatmap/useHeatmapProps.d.mts +7 -7
  201. package/Heatmap/useHeatmapProps.d.ts +7 -7
  202. package/LineChartPro/LineChartPro.d.mts +5 -5
  203. package/LineChartPro/LineChartPro.d.ts +5 -5
  204. package/LineChartPro/LineChartPro.js +5 -3
  205. package/LineChartPro/LineChartPro.mjs +5 -3
  206. package/LineChartPro/LineChartPro.plugins.d.mts +3 -3
  207. package/LineChartPro/LineChartPro.plugins.d.ts +3 -3
  208. package/PieChartPro/PieChartPro.d.mts +5 -5
  209. package/PieChartPro/PieChartPro.d.ts +5 -5
  210. package/PieChartPro/PieChartPro.js +1 -1
  211. package/PieChartPro/PieChartPro.mjs +1 -1
  212. package/PieChartPro/PieChartPro.plugins.d.mts +2 -2
  213. package/PieChartPro/PieChartPro.plugins.d.ts +2 -2
  214. package/RadarChartPro/RadarChartPro.d.mts +4 -4
  215. package/RadarChartPro/RadarChartPro.d.ts +4 -4
  216. package/RadarChartPro/RadarChartPro.js +1 -1
  217. package/RadarChartPro/RadarChartPro.mjs +1 -1
  218. package/RadarChartPro/RadarChartPro.plugins.d.mts +1 -1
  219. package/RadarChartPro/RadarChartPro.plugins.d.ts +1 -1
  220. package/SankeyChart/SankeyChart.d.mts +2 -2
  221. package/SankeyChart/SankeyChart.d.ts +2 -2
  222. package/SankeyChart/SankeyChart.js +1 -1
  223. package/SankeyChart/SankeyChart.mjs +1 -1
  224. package/SankeyChart/SankeyChart.plugins.d.mts +2 -2
  225. package/SankeyChart/SankeyChart.plugins.d.ts +2 -2
  226. package/SankeyChart/SankeyDataProvider.d.mts +4 -1
  227. package/SankeyChart/SankeyDataProvider.d.ts +4 -1
  228. package/SankeyChart/SankeyDataProvider.js +170 -1
  229. package/SankeyChart/SankeyDataProvider.mjs +169 -0
  230. package/SankeyChart/SankeyLinkLabel.d.mts +1 -1
  231. package/SankeyChart/SankeyLinkLabel.d.ts +1 -1
  232. package/SankeyChart/SankeyLinkLabelPlot.d.mts +4 -1
  233. package/SankeyChart/SankeyLinkLabelPlot.d.ts +4 -1
  234. package/SankeyChart/SankeyLinkLabelPlot.js +12 -1
  235. package/SankeyChart/SankeyLinkLabelPlot.mjs +11 -0
  236. package/SankeyChart/SankeyLinkPlot.d.mts +4 -1
  237. package/SankeyChart/SankeyLinkPlot.d.ts +4 -1
  238. package/SankeyChart/SankeyLinkPlot.js +18 -1
  239. package/SankeyChart/SankeyLinkPlot.mjs +17 -0
  240. package/SankeyChart/SankeyNodeLabelPlot.d.mts +4 -1
  241. package/SankeyChart/SankeyNodeLabelPlot.d.ts +4 -1
  242. package/SankeyChart/SankeyNodeLabelPlot.js +12 -1
  243. package/SankeyChart/SankeyNodeLabelPlot.mjs +11 -0
  244. package/SankeyChart/SankeyNodePlot.d.mts +4 -1
  245. package/SankeyChart/SankeyNodePlot.d.ts +4 -1
  246. package/SankeyChart/SankeyNodePlot.js +18 -1
  247. package/SankeyChart/SankeyNodePlot.mjs +17 -0
  248. package/SankeyChart/SankeyPlot.d.mts +2 -2
  249. package/SankeyChart/SankeyPlot.d.ts +2 -2
  250. package/SankeyChart/SankeyPlot.js +5 -1
  251. package/SankeyChart/SankeyPlot.mjs +5 -1
  252. package/SankeyChart/SankeyTooltip/SankeyTooltip.d.mts +1 -1
  253. package/SankeyChart/SankeyTooltip/SankeyTooltip.d.ts +1 -1
  254. package/SankeyChart/SankeyTooltip/SankeyTooltip.js +8 -28
  255. package/SankeyChart/SankeyTooltip/SankeyTooltip.mjs +8 -28
  256. package/SankeyChart/SankeyTooltip/SankeyTooltip.types.d.mts +1 -1
  257. package/SankeyChart/SankeyTooltip/SankeyTooltip.types.d.ts +1 -1
  258. package/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.mts +1 -1
  259. package/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.ts +1 -1
  260. package/SankeyChart/SankeyTooltip/SankeyTooltipContent.js +1 -1
  261. package/SankeyChart/SankeyTooltip/SankeyTooltipContent.mjs +1 -1
  262. package/SankeyChart/d3Sankey/sankeyLinkHorizontal.d.mts +1 -1
  263. package/SankeyChart/d3Sankey/sankeyLinkHorizontal.d.ts +1 -1
  264. package/SankeyChart/sankeySlots.types.d.mts +4 -4
  265. package/SankeyChart/sankeySlots.types.d.ts +4 -4
  266. package/SankeyChart/seriesConfig/identifierSerializer.d.mts +1 -1
  267. package/SankeyChart/seriesConfig/identifierSerializer.d.ts +1 -1
  268. package/SankeyChart/useSankeyChartProps.d.mts +1 -1
  269. package/SankeyChart/useSankeyChartProps.d.ts +1 -1
  270. package/SankeyChart/useSankeyChartProps.mjs +0 -1
  271. package/ScatterChartPro/ScatterChartPro.d.mts +6 -6
  272. package/ScatterChartPro/ScatterChartPro.d.ts +6 -6
  273. package/ScatterChartPro/ScatterChartPro.js +5 -3
  274. package/ScatterChartPro/ScatterChartPro.mjs +5 -3
  275. package/ScatterChartPro/ScatterChartPro.plugins.d.mts +3 -3
  276. package/ScatterChartPro/ScatterChartPro.plugins.d.ts +3 -3
  277. package/context/ChartProApi.d.mts +10 -10
  278. package/context/ChartProApi.d.ts +10 -10
  279. package/context/useChartProApiContext.d.mts +1 -1
  280. package/context/useChartProApiContext.d.ts +1 -1
  281. package/hooks/useChartProApiRef.d.mts +3 -3
  282. package/hooks/useChartProApiRef.d.ts +3 -3
  283. package/hooks/useFunnelSeries.d.mts +1 -1
  284. package/hooks/useFunnelSeries.d.ts +1 -1
  285. package/hooks/useHeatmapSeries.d.mts +1 -1
  286. package/hooks/useHeatmapSeries.d.ts +1 -1
  287. package/hooks/useSankeySeries.d.mts +2 -2
  288. package/hooks/useSankeySeries.d.ts +2 -2
  289. package/index.js +1 -1
  290. package/index.mjs +1 -1
  291. package/internals/ChartsWatermark.d.mts +1 -1
  292. package/internals/ChartsWatermark.d.ts +1 -1
  293. package/internals/material/components/BaseMenuItem.d.mts +1 -1
  294. package/internals/material/components/BaseMenuItem.d.ts +1 -1
  295. package/internals/material/components/BasePopper.d.mts +1 -1
  296. package/internals/material/components/BasePopper.d.ts +1 -1
  297. package/internals/material/index.d.mts +2 -2
  298. package/internals/material/index.d.ts +2 -2
  299. package/internals/plugins/allPlugins.d.mts +3 -3
  300. package/internals/plugins/allPlugins.d.ts +3 -3
  301. package/internals/plugins/useChartProExport/exportImage.d.mts +1 -1
  302. package/internals/plugins/useChartProExport/exportImage.d.ts +1 -1
  303. package/internals/plugins/useChartProExport/print.d.mts +1 -1
  304. package/internals/plugins/useChartProExport/print.d.ts +1 -1
  305. package/internals/plugins/useChartProExport/useChartProExport.d.mts +2 -2
  306. package/internals/plugins/useChartProExport/useChartProExport.d.ts +2 -2
  307. package/internals/plugins/useChartProExport/useChartProExport.types.d.mts +1 -1
  308. package/internals/plugins/useChartProExport/useChartProExport.types.d.ts +1 -1
  309. package/internals/plugins/useChartProZoom/calculateZoom.d.mts +1 -1
  310. package/internals/plugins/useChartProZoom/calculateZoom.d.ts +1 -1
  311. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.d.mts +2 -2
  312. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.d.ts +2 -2
  313. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.d.mts +2 -2
  314. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.d.ts +2 -2
  315. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnWheel.d.mts +2 -2
  316. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnWheel.d.ts +2 -2
  317. package/internals/plugins/useChartProZoom/gestureHooks/useRegisterZoomGestures.d.mts +10 -0
  318. package/internals/plugins/useChartProZoom/gestureHooks/useRegisterZoomGestures.d.ts +10 -0
  319. package/internals/plugins/useChartProZoom/gestureHooks/useRegisterZoomGestures.js +49 -0
  320. package/internals/plugins/useChartProZoom/gestureHooks/useRegisterZoomGestures.mjs +42 -0
  321. package/internals/plugins/useChartProZoom/gestureHooks/useZoom.utils.d.mts +1 -1
  322. package/internals/plugins/useChartProZoom/gestureHooks/useZoom.utils.d.ts +1 -1
  323. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.d.mts +2 -2
  324. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.d.ts +2 -2
  325. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.d.mts +2 -2
  326. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.d.ts +2 -2
  327. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.d.mts +2 -2
  328. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.d.ts +2 -2
  329. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.d.mts +2 -2
  330. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.d.ts +2 -2
  331. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.d.mts +2 -2
  332. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.d.ts +2 -2
  333. package/internals/plugins/useChartProZoom/useChartProZoom.d.mts +2 -2
  334. package/internals/plugins/useChartProZoom/useChartProZoom.d.ts +2 -2
  335. package/internals/plugins/useChartProZoom/useChartProZoom.js +2 -0
  336. package/internals/plugins/useChartProZoom/useChartProZoom.mjs +2 -0
  337. package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.mts +2 -2
  338. package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +2 -2
  339. package/internals/plugins/useChartProZoom/useChartProZoom.types.d.mts +3 -3
  340. package/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +3 -3
  341. package/internals/plugins/zoomGestures/useDragGesture.d.mts +2 -2
  342. package/internals/plugins/zoomGestures/useDragGesture.d.ts +2 -2
  343. package/internals/plugins/zoomGestures/useWheelGesture.d.mts +2 -2
  344. package/internals/plugins/zoomGestures/useWheelGesture.d.ts +2 -2
  345. package/internals/plugins/zoomGestures/useWheelGesture.js +1 -1
  346. package/internals/plugins/zoomGestures/useWheelGesture.mjs +1 -1
  347. package/internals/slots/chartBaseSlotProps.d.mts +1 -1
  348. package/internals/slots/chartBaseSlotProps.d.ts +1 -1
  349. package/internals/slots/chartsBaseSlots.d.mts +2 -2
  350. package/internals/slots/chartsBaseSlots.d.ts +2 -2
  351. package/internals/slots/chartsIconSlots.d.mts +1 -1
  352. package/internals/slots/chartsIconSlots.d.ts +1 -1
  353. package/models/seriesType/heatmap.d.mts +2 -2
  354. package/models/seriesType/heatmap.d.ts +2 -2
  355. package/package.json +9 -6
  356. package/plugins/selectors/useChartHeatmapPosition.selectors.d.mts +1 -1
  357. package/plugins/selectors/useChartHeatmapPosition.selectors.d.ts +1 -1
  358. package/themeAugmentation/components.d.mts +1 -1
  359. package/themeAugmentation/components.d.ts +1 -1
  360. package/themeAugmentation/overrides.d.mts +1 -1
  361. package/themeAugmentation/overrides.d.ts +1 -1
  362. package/themeAugmentation/props.d.mts +8 -8
  363. package/themeAugmentation/props.d.ts +8 -8
@@ -1,2 +1,2 @@
1
- import { type ChartBasePopperProps } from "../../slots/chartBaseSlotProps.mjs";
1
+ import type { ChartBasePopperProps } from "../../slots/chartBaseSlotProps.mjs";
2
2
  export declare function BasePopper(props: ChartBasePopperProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { type ChartBasePopperProps } from "../../slots/chartBaseSlotProps.js";
1
+ import type { ChartBasePopperProps } from "../../slots/chartBaseSlotProps.js";
2
2
  export declare function BasePopper(props: ChartBasePopperProps): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import type * as React from 'react';
2
- import { type ChartsBaseSlotsPro } from "../slots/chartsBaseSlots.mjs";
3
- import { type ChartsIconSlotsPro } from "../slots/chartsIconSlots.mjs";
2
+ import type { ChartsBaseSlotsPro } from "../slots/chartsBaseSlots.mjs";
3
+ import type { ChartsIconSlotsPro } from "../slots/chartsIconSlots.mjs";
4
4
  export type ChartsSlotsPro = ChartsBaseSlotsPro & ChartsIconSlotsPro;
5
5
  export type ChartsSlotPropsPro = { [key in keyof ChartsSlotsPro]: React.ComponentProps<ChartsSlotsPro[key]> };
6
6
  export declare const defaultSlotsMaterial: ChartsSlotsPro;
@@ -1,6 +1,6 @@
1
1
  import type * as React from 'react';
2
- import { type ChartsBaseSlotsPro } from "../slots/chartsBaseSlots.js";
3
- import { type ChartsIconSlotsPro } from "../slots/chartsIconSlots.js";
2
+ import type { ChartsBaseSlotsPro } from "../slots/chartsBaseSlots.js";
3
+ import type { ChartsIconSlotsPro } from "../slots/chartsIconSlots.js";
4
4
  export type ChartsSlotsPro = ChartsBaseSlotsPro & ChartsIconSlotsPro;
5
5
  export type ChartsSlotPropsPro = { [key in keyof ChartsSlotsPro]: React.ComponentProps<ChartsSlotsPro[key]> };
6
6
  export declare const defaultSlotsMaterial: ChartsSlotsPro;
@@ -1,6 +1,6 @@
1
- import { type ChartSeriesType, type ConvertSignaturesIntoPlugins, type UseChartCartesianAxisSignature, type UseChartTooltipSignature, type UseChartInteractionSignature, type UseChartZAxisSignature, type UseChartHighlightSignature, type UseChartPolarAxisSignature, type UseChartBrushSignature, type UseChartVisibilityManagerSignature, type UseProgressiveRenderingSignature } from '@mui/x-charts/internals';
2
- import { type UseChartProExportSignature } from "./useChartProExport/index.mjs";
3
- import { type UseChartProZoomSignature } from "./useChartProZoom/index.mjs";
1
+ import type { ChartSeriesType, ConvertSignaturesIntoPlugins, UseChartCartesianAxisSignature, UseChartTooltipSignature, UseChartInteractionSignature, UseChartZAxisSignature, UseChartHighlightSignature, UseChartPolarAxisSignature, UseChartBrushSignature, UseChartVisibilityManagerSignature, UseProgressiveRenderingSignature } from '@mui/x-charts/internals';
2
+ import type { UseChartProExportSignature } from "./useChartProExport/index.mjs";
3
+ import type { UseChartProZoomSignature } from "./useChartProZoom/index.mjs";
4
4
  export type AllPluginSignatures<SeriesType extends ChartSeriesType = ChartSeriesType> = [UseChartZAxisSignature, UseChartBrushSignature, UseChartTooltipSignature<SeriesType>, UseChartInteractionSignature, UseChartCartesianAxisSignature<SeriesType>, UseChartPolarAxisSignature<SeriesType>, UseChartHighlightSignature<SeriesType>, UseChartVisibilityManagerSignature<SeriesType>, UseChartProZoomSignature, UseChartProExportSignature, UseChartVisibilityManagerSignature<SeriesType>, UseProgressiveRenderingSignature];
5
5
  export type AllPluginsType<SeriesType extends ChartSeriesType = ChartSeriesType> = ConvertSignaturesIntoPlugins<AllPluginSignatures<SeriesType>>;
6
6
  export declare const ALL_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<UseChartProZoomSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartBrushSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseProgressiveRenderingSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartTooltipSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartPolarAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartVisibilityManagerSignature<any>>)[];
@@ -1,6 +1,6 @@
1
- import { type ChartSeriesType, type ConvertSignaturesIntoPlugins, type UseChartCartesianAxisSignature, type UseChartTooltipSignature, type UseChartInteractionSignature, type UseChartZAxisSignature, type UseChartHighlightSignature, type UseChartPolarAxisSignature, type UseChartBrushSignature, type UseChartVisibilityManagerSignature, type UseProgressiveRenderingSignature } from '@mui/x-charts/internals';
2
- import { type UseChartProExportSignature } from "./useChartProExport/index.js";
3
- import { type UseChartProZoomSignature } from "./useChartProZoom/index.js";
1
+ import type { ChartSeriesType, ConvertSignaturesIntoPlugins, UseChartCartesianAxisSignature, UseChartTooltipSignature, UseChartInteractionSignature, UseChartZAxisSignature, UseChartHighlightSignature, UseChartPolarAxisSignature, UseChartBrushSignature, UseChartVisibilityManagerSignature, UseProgressiveRenderingSignature } from '@mui/x-charts/internals';
2
+ import type { UseChartProExportSignature } from "./useChartProExport/index.js";
3
+ import type { UseChartProZoomSignature } from "./useChartProZoom/index.js";
4
4
  export type AllPluginSignatures<SeriesType extends ChartSeriesType = ChartSeriesType> = [UseChartZAxisSignature, UseChartBrushSignature, UseChartTooltipSignature<SeriesType>, UseChartInteractionSignature, UseChartCartesianAxisSignature<SeriesType>, UseChartPolarAxisSignature<SeriesType>, UseChartHighlightSignature<SeriesType>, UseChartVisibilityManagerSignature<SeriesType>, UseChartProZoomSignature, UseChartProExportSignature, UseChartVisibilityManagerSignature<SeriesType>, UseProgressiveRenderingSignature];
5
5
  export type AllPluginsType<SeriesType extends ChartSeriesType = ChartSeriesType> = ConvertSignaturesIntoPlugins<AllPluginSignatures<SeriesType>>;
6
6
  export declare const ALL_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<UseChartProZoomSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartBrushSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseProgressiveRenderingSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartTooltipSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartPolarAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartVisibilityManagerSignature<any>>)[];
@@ -1,3 +1,3 @@
1
- import { type ChartImageExportOptions } from "./useChartProExport.types.mjs";
1
+ import type { ChartImageExportOptions } from "./useChartProExport.types.mjs";
2
2
  export declare const getDrawDocument: () => Promise<typeof import("rasterizehtml").drawDocument>;
3
3
  export declare function exportImage(element: Element, svg: HTMLElement | SVGElement, params?: ChartImageExportOptions): Promise<void>;
@@ -1,3 +1,3 @@
1
- import { type ChartImageExportOptions } from "./useChartProExport.types.js";
1
+ import type { ChartImageExportOptions } from "./useChartProExport.types.js";
2
2
  export declare const getDrawDocument: () => Promise<typeof import("rasterizehtml").drawDocument>;
3
3
  export declare function exportImage(element: Element, svg: HTMLElement | SVGElement, params?: ChartImageExportOptions): Promise<void>;
@@ -1,4 +1,4 @@
1
- import { type ChartPrintExportOptions } from "./useChartProExport.types.mjs";
1
+ import type { ChartPrintExportOptions } from "./useChartProExport.types.mjs";
2
2
  export declare function printChart(element: Element, {
3
3
  fileName,
4
4
  onBeforeExport,
@@ -1,4 +1,4 @@
1
- import { type ChartPrintExportOptions } from "./useChartProExport.types.js";
1
+ import type { ChartPrintExportOptions } from "./useChartProExport.types.js";
2
2
  export declare function printChart(element: Element, {
3
3
  fileName,
4
4
  onBeforeExport,
@@ -1,3 +1,3 @@
1
- import { type ChartPlugin } from '@mui/x-charts/internals';
2
- import { type UseChartProExportSignature } from "./useChartProExport.types.mjs";
1
+ import type { ChartPlugin } from '@mui/x-charts/internals';
2
+ import type { UseChartProExportSignature } from "./useChartProExport.types.mjs";
3
3
  export declare const useChartProExport: ChartPlugin<UseChartProExportSignature>;
@@ -1,3 +1,3 @@
1
- import { type ChartPlugin } from '@mui/x-charts/internals';
2
- import { type UseChartProExportSignature } from "./useChartProExport.types.js";
1
+ import type { ChartPlugin } from '@mui/x-charts/internals';
2
+ import type { UseChartProExportSignature } from "./useChartProExport.types.js";
3
3
  export declare const useChartProExport: ChartPlugin<UseChartProExportSignature>;
@@ -1,4 +1,4 @@
1
- import { type ChartPluginSignature } from '@mui/x-charts/internals';
1
+ import type { ChartPluginSignature } from '@mui/x-charts/internals';
2
2
  export interface UseChartProExportParameters {}
3
3
  export type UseChartProExportDefaultizedParameters = UseChartProExportParameters;
4
4
  export interface UseChartProExportState {
@@ -1,4 +1,4 @@
1
- import { type ChartPluginSignature } from '@mui/x-charts/internals';
1
+ import type { ChartPluginSignature } from '@mui/x-charts/internals';
2
2
  export interface UseChartProExportParameters {}
3
3
  export type UseChartProExportDefaultizedParameters = UseChartProExportParameters;
4
4
  export interface UseChartProExportState {
@@ -1,4 +1,4 @@
1
- import { type DefaultizedZoomOptions, type ZoomData } from '@mui/x-charts/internals';
1
+ import type { DefaultizedZoomOptions, ZoomData } from '@mui/x-charts/internals';
2
2
  /**
3
3
  * Calculates the new zoom range based on the current zoom, step, and constraints.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { type DefaultizedZoomOptions, type ZoomData } from '@mui/x-charts/internals';
1
+ import type { DefaultizedZoomOptions, ZoomData } from '@mui/x-charts/internals';
2
2
  /**
3
3
  * Calculates the new zoom range based on the current zoom, step, and constraints.
4
4
  *
@@ -1,5 +1,5 @@
1
- import { type ChartPlugin, type ZoomData } from '@mui/x-charts/internals';
2
- import { type UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
1
+ import type { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
2
+ import type { UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
3
3
  export declare const usePanOnDrag: ({
4
4
  store,
5
5
  instance
@@ -1,5 +1,5 @@
1
- import { type ChartPlugin, type ZoomData } from '@mui/x-charts/internals';
2
- import { type UseChartProZoomSignature } from "../useChartProZoom.types.js";
1
+ import type { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
2
+ import type { UseChartProZoomSignature } from "../useChartProZoom.types.js";
3
3
  export declare const usePanOnDrag: ({
4
4
  store,
5
5
  instance
@@ -1,5 +1,5 @@
1
- import { type ChartPlugin, type ZoomData } from '@mui/x-charts/internals';
2
- import { type UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
1
+ import type { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
2
+ import type { UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
3
3
  export declare const usePanOnPressAndDrag: ({
4
4
  store,
5
5
  instance
@@ -1,5 +1,5 @@
1
- import { type ChartPlugin, type ZoomData } from '@mui/x-charts/internals';
2
- import { type UseChartProZoomSignature } from "../useChartProZoom.types.js";
1
+ import type { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
2
+ import type { UseChartProZoomSignature } from "../useChartProZoom.types.js";
3
3
  export declare const usePanOnPressAndDrag: ({
4
4
  store,
5
5
  instance
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { type ChartPlugin, type ZoomData } from '@mui/x-charts/internals';
3
- import { type UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
2
+ import type { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
3
+ import type { UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
4
4
  export declare const usePanOnWheel: ({
5
5
  store,
6
6
  instance
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { type ChartPlugin, type ZoomData } from '@mui/x-charts/internals';
3
- import { type UseChartProZoomSignature } from "../useChartProZoom.types.js";
2
+ import type { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
3
+ import type { UseChartProZoomSignature } from "../useChartProZoom.types.js";
4
4
  export declare const usePanOnWheel: ({
5
5
  store,
6
6
  instance
@@ -0,0 +1,10 @@
1
+ import type { ChartPlugin } from '@mui/x-charts/internals';
2
+ import type { UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
3
+ /**
4
+ * Registers the gestures required by the zoom feature.
5
+ * They are registered here instead of in the core interaction listener plugin
6
+ * so their implementations are only bundled with the zoom plugin.
7
+ */
8
+ export declare const useRegisterZoomGestures: ({
9
+ instance
10
+ }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], "instance">) => void;
@@ -0,0 +1,10 @@
1
+ import type { ChartPlugin } from '@mui/x-charts/internals';
2
+ import type { UseChartProZoomSignature } from "../useChartProZoom.types.js";
3
+ /**
4
+ * Registers the gestures required by the zoom feature.
5
+ * They are registered here instead of in the core interaction listener plugin
6
+ * so their implementations are only bundled with the zoom plugin.
7
+ */
8
+ export declare const useRegisterZoomGestures: ({
9
+ instance
10
+ }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], "instance">) => void;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ 'use client';
3
+
4
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.useRegisterZoomGestures = void 0;
9
+ var React = _interopRequireWildcard(require("react"));
10
+ var _core = require("@mui/x-internal-gestures/core");
11
+ /**
12
+ * Registers the gestures required by the zoom feature.
13
+ * They are registered here instead of in the core interaction listener plugin
14
+ * so their implementations are only bundled with the zoom plugin.
15
+ */
16
+ const useRegisterZoomGestures = ({
17
+ instance
18
+ }) => {
19
+ React.useEffect(() => {
20
+ return instance.registerGestures([new _core.PanGesture({
21
+ name: 'zoomPan',
22
+ threshold: 0,
23
+ preventIf: ['zoomTapAndDrag', 'zoomPressAndDrag']
24
+ }), new _core.PinchGesture({
25
+ name: 'zoomPinch',
26
+ threshold: 5
27
+ }), new _core.TurnWheelGesture({
28
+ name: 'zoomTurnWheel',
29
+ sensitivity: 0.01,
30
+ initialDelta: 1,
31
+ passive: false
32
+ }), new _core.TurnWheelGesture({
33
+ name: 'panTurnWheel',
34
+ sensitivity: 0.5,
35
+ passive: false
36
+ }), new _core.TapAndDragGesture({
37
+ name: 'zoomTapAndDrag',
38
+ dragThreshold: 10
39
+ }), new _core.PressAndDragGesture({
40
+ name: 'zoomPressAndDrag',
41
+ dragThreshold: 10,
42
+ preventIf: ['zoomPinch']
43
+ }), new _core.TapGesture({
44
+ name: 'zoomDoubleTapReset',
45
+ taps: 2
46
+ })]);
47
+ }, [instance]);
48
+ };
49
+ exports.useRegisterZoomGestures = useRegisterZoomGestures;
@@ -0,0 +1,42 @@
1
+ 'use client';
2
+
3
+ import * as React from 'react';
4
+ import { PanGesture, PinchGesture, PressAndDragGesture, TapAndDragGesture, TapGesture, TurnWheelGesture } from '@mui/x-internal-gestures/core';
5
+ /**
6
+ * Registers the gestures required by the zoom feature.
7
+ * They are registered here instead of in the core interaction listener plugin
8
+ * so their implementations are only bundled with the zoom plugin.
9
+ */
10
+ export const useRegisterZoomGestures = ({
11
+ instance
12
+ }) => {
13
+ React.useEffect(() => {
14
+ return instance.registerGestures([new PanGesture({
15
+ name: 'zoomPan',
16
+ threshold: 0,
17
+ preventIf: ['zoomTapAndDrag', 'zoomPressAndDrag']
18
+ }), new PinchGesture({
19
+ name: 'zoomPinch',
20
+ threshold: 5
21
+ }), new TurnWheelGesture({
22
+ name: 'zoomTurnWheel',
23
+ sensitivity: 0.01,
24
+ initialDelta: 1,
25
+ passive: false
26
+ }), new TurnWheelGesture({
27
+ name: 'panTurnWheel',
28
+ sensitivity: 0.5,
29
+ passive: false
30
+ }), new TapAndDragGesture({
31
+ name: 'zoomTapAndDrag',
32
+ dragThreshold: 10
33
+ }), new PressAndDragGesture({
34
+ name: 'zoomPressAndDrag',
35
+ dragThreshold: 10,
36
+ preventIf: ['zoomPinch']
37
+ }), new TapGesture({
38
+ name: 'zoomDoubleTapReset',
39
+ taps: 2
40
+ })]);
41
+ }, [instance]);
42
+ };
@@ -1,4 +1,4 @@
1
- import { type DefaultizedZoomOptions, type ZoomData } from '@mui/x-charts/internals';
1
+ import type { DefaultizedZoomOptions, ZoomData } from '@mui/x-charts/internals';
2
2
  /**
3
3
  * Helper to get the range (in percents of a reference range) corresponding to a given scale.
4
4
  * @param centerRatio {number} The ratio of the point that should not move between the previous and next range.
@@ -1,4 +1,4 @@
1
- import { type DefaultizedZoomOptions, type ZoomData } from '@mui/x-charts/internals';
1
+ import type { DefaultizedZoomOptions, ZoomData } from '@mui/x-charts/internals';
2
2
  /**
3
3
  * Helper to get the range (in percents of a reference range) corresponding to a given scale.
4
4
  * @param centerRatio {number} The ratio of the point that should not move between the previous and next range.
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { type ChartPlugin, type ZoomData } from '@mui/x-charts/internals';
3
- import { type UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
2
+ import type { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
3
+ import type { UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
4
4
  export declare const useZoomOnBrush: ({
5
5
  store,
6
6
  instance
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { type ChartPlugin, type ZoomData } from '@mui/x-charts/internals';
3
- import { type UseChartProZoomSignature } from "../useChartProZoom.types.js";
2
+ import type { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
3
+ import type { UseChartProZoomSignature } from "../useChartProZoom.types.js";
4
4
  export declare const useZoomOnBrush: ({
5
5
  store,
6
6
  instance
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { type ChartPlugin, type ZoomData } from '@mui/x-charts/internals';
3
- import { type UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
2
+ import type { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
3
+ import type { UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
4
4
  export declare const useZoomOnDoubleTapReset: ({
5
5
  store,
6
6
  instance
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { type ChartPlugin, type ZoomData } from '@mui/x-charts/internals';
3
- import { type UseChartProZoomSignature } from "../useChartProZoom.types.js";
2
+ import type { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
3
+ import type { UseChartProZoomSignature } from "../useChartProZoom.types.js";
4
4
  export declare const useZoomOnDoubleTapReset: ({
5
5
  store,
6
6
  instance
@@ -1,5 +1,5 @@
1
- import { type ChartPlugin, type ZoomData } from '@mui/x-charts/internals';
2
- import { type UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
1
+ import type { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
2
+ import type { UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
3
3
  export declare const useZoomOnPinch: ({
4
4
  store,
5
5
  instance
@@ -1,5 +1,5 @@
1
- import { type ChartPlugin, type ZoomData } from '@mui/x-charts/internals';
2
- import { type UseChartProZoomSignature } from "../useChartProZoom.types.js";
1
+ import type { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
2
+ import type { UseChartProZoomSignature } from "../useChartProZoom.types.js";
3
3
  export declare const useZoomOnPinch: ({
4
4
  store,
5
5
  instance
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { type ChartPlugin, type ZoomData } from '@mui/x-charts/internals';
3
- import { type UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
2
+ import type { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
3
+ import type { UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
4
4
  export declare const useZoomOnTapAndDrag: ({
5
5
  store,
6
6
  instance
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { type ChartPlugin, type ZoomData } from '@mui/x-charts/internals';
3
- import { type UseChartProZoomSignature } from "../useChartProZoom.types.js";
2
+ import type { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
3
+ import type { UseChartProZoomSignature } from "../useChartProZoom.types.js";
4
4
  export declare const useZoomOnTapAndDrag: ({
5
5
  store,
6
6
  instance
@@ -1,5 +1,5 @@
1
- import { type ChartPlugin, type ZoomData } from '@mui/x-charts/internals';
2
- import { type UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
1
+ import type { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
2
+ import type { UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
3
3
  export declare const useZoomOnWheel: ({
4
4
  store,
5
5
  instance
@@ -1,5 +1,5 @@
1
- import { type ChartPlugin, type ZoomData } from '@mui/x-charts/internals';
2
- import { type UseChartProZoomSignature } from "../useChartProZoom.types.js";
1
+ import type { ChartPlugin, ZoomData } from '@mui/x-charts/internals';
2
+ import type { UseChartProZoomSignature } from "../useChartProZoom.types.js";
3
3
  export declare const useZoomOnWheel: ({
4
4
  store,
5
5
  instance
@@ -1,3 +1,3 @@
1
- import { type ChartPlugin } from '@mui/x-charts/internals';
2
- import { type UseChartProZoomSignature } from "./useChartProZoom.types.mjs";
1
+ import type { ChartPlugin } from '@mui/x-charts/internals';
2
+ import type { UseChartProZoomSignature } from "./useChartProZoom.types.mjs";
3
3
  export declare const useChartProZoom: ChartPlugin<UseChartProZoomSignature>;
@@ -1,3 +1,3 @@
1
- import { type ChartPlugin } from '@mui/x-charts/internals';
2
- import { type UseChartProZoomSignature } from "./useChartProZoom.types.js";
1
+ import type { ChartPlugin } from '@mui/x-charts/internals';
2
+ import type { UseChartProZoomSignature } from "./useChartProZoom.types.js";
3
3
  export declare const useChartProZoom: ChartPlugin<UseChartProZoomSignature>;
@@ -27,6 +27,7 @@ var _useZoomOnBrush = require("./gestureHooks/useZoomOnBrush");
27
27
  var _useZoomOnDoubleTapReset = require("./gestureHooks/useZoomOnDoubleTapReset");
28
28
  var _initializeZoomInteractionConfig = require("./initializeZoomInteractionConfig");
29
29
  var _initializeZoomData = require("./initializeZoomData");
30
+ var _useRegisterZoomGestures = require("./gestureHooks/useRegisterZoomGestures");
30
31
  /**
31
32
  * Type guard for `initialZoom` entries provided as a range value.
32
33
  */
@@ -193,6 +194,7 @@ const useChartProZoom = pluginData => {
193
194
  }, [removeIsInteracting]);
194
195
 
195
196
  // Add events
197
+ (0, _useRegisterZoomGestures.useRegisterZoomGestures)(pluginData);
196
198
  (0, _usePanOnDrag.usePanOnDrag)(pluginData, setZoomDataCallback);
197
199
  (0, _usePanOnPressAndDrag.usePanOnPressAndDrag)(pluginData, setZoomDataCallback);
198
200
  (0, _usePanOnWheel.usePanOnWheel)(pluginData, setZoomDataCallback);
@@ -20,6 +20,7 @@ import { useZoomOnBrush } from "./gestureHooks/useZoomOnBrush.mjs";
20
20
  import { useZoomOnDoubleTapReset } from "./gestureHooks/useZoomOnDoubleTapReset.mjs";
21
21
  import { initializeZoomInteractionConfig } from "./initializeZoomInteractionConfig.mjs";
22
22
  import { initializeZoomData } from "./initializeZoomData.mjs";
23
+ import { useRegisterZoomGestures } from "./gestureHooks/useRegisterZoomGestures.mjs";
23
24
 
24
25
  /**
25
26
  * Type guard for `initialZoom` entries provided as a range value.
@@ -187,6 +188,7 @@ export const useChartProZoom = pluginData => {
187
188
  }, [removeIsInteracting]);
188
189
 
189
190
  // Add events
191
+ useRegisterZoomGestures(pluginData);
190
192
  usePanOnDrag(pluginData, setZoomDataCallback);
191
193
  usePanOnPressAndDrag(pluginData, setZoomDataCallback);
192
194
  usePanOnWheel(pluginData, setZoomDataCallback);
@@ -1,5 +1,5 @@
1
- import { type AxisId, type ChartRootSelector } from '@mui/x-charts/internals';
2
- import { type UseChartProZoomSignature } from "./useChartProZoom.types.mjs";
1
+ import type { AxisId, ChartRootSelector } from '@mui/x-charts/internals';
2
+ import type { UseChartProZoomSignature } from "./useChartProZoom.types.mjs";
3
3
  export declare const selectorChartZoomState: ChartRootSelector<UseChartProZoomSignature, 'zoom'>;
4
4
  export declare const selectorChartZoomIsInteracting: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types").UseChartSeriesConfigState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & import("./useChartProZoom.types.mjs").UseChartProZoomState & Partial<{}> & {
5
5
  cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
@@ -1,5 +1,5 @@
1
- import { type AxisId, type ChartRootSelector } from '@mui/x-charts/internals';
2
- import { type UseChartProZoomSignature } from "./useChartProZoom.types.js";
1
+ import type { AxisId, ChartRootSelector } from '@mui/x-charts/internals';
2
+ import type { UseChartProZoomSignature } from "./useChartProZoom.types.js";
3
3
  export declare const selectorChartZoomState: ChartRootSelector<UseChartProZoomSignature, 'zoom'>;
4
4
  export declare const selectorChartZoomIsInteracting: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types").UseChartSeriesConfigState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & import("./useChartProZoom.types.js").UseChartProZoomState & Partial<{}> & {
5
5
  cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
@@ -1,6 +1,6 @@
1
- import { type UseChartSeriesSignature, type ChartPluginSignature, type UseChartCartesianAxisSignature, type UseChartCartesianAxisDefaultizedParameters, type ZoomData, type AxisId, type UseChartBrushSignature } from '@mui/x-charts/internals';
2
- import { type ZoomInteractionConfig, type DefaultizedZoomInteractionConfig } from "./ZoomInteractionConfig.types.mjs";
3
- import { type RangeButtonValue } from "../../../ChartsToolbarPro/rangeButtonValueToZoom.mjs";
1
+ import type { UseChartSeriesSignature, ChartPluginSignature, UseChartCartesianAxisSignature, UseChartCartesianAxisDefaultizedParameters, ZoomData, AxisId, UseChartBrushSignature } from '@mui/x-charts/internals';
2
+ import type { ZoomInteractionConfig, DefaultizedZoomInteractionConfig } from "./ZoomInteractionConfig.types.mjs";
3
+ import type { RangeButtonValue } from "../../../ChartsToolbarPro/rangeButtonValueToZoom.mjs";
4
4
  /**
5
5
  * Initializes the zoom of an axis with a range value instead of zoom percentages.
6
6
  */
@@ -1,6 +1,6 @@
1
- import { type UseChartSeriesSignature, type ChartPluginSignature, type UseChartCartesianAxisSignature, type UseChartCartesianAxisDefaultizedParameters, type ZoomData, type AxisId, type UseChartBrushSignature } from '@mui/x-charts/internals';
2
- import { type ZoomInteractionConfig, type DefaultizedZoomInteractionConfig } from "./ZoomInteractionConfig.types.js";
3
- import { type RangeButtonValue } from "../../../ChartsToolbarPro/rangeButtonValueToZoom.js";
1
+ import type { UseChartSeriesSignature, ChartPluginSignature, UseChartCartesianAxisSignature, UseChartCartesianAxisDefaultizedParameters, ZoomData, AxisId, UseChartBrushSignature } from '@mui/x-charts/internals';
2
+ import type { ZoomInteractionConfig, DefaultizedZoomInteractionConfig } from "./ZoomInteractionConfig.types.js";
3
+ import type { RangeButtonValue } from "../../../ChartsToolbarPro/rangeButtonValueToZoom.js";
4
4
  /**
5
5
  * Initializes the zoom of an axis with a range value instead of zoom percentages.
6
6
  */
@@ -1,5 +1,5 @@
1
- import { type PanEvent } from '@mui/x-internal-gestures/core';
2
- import { type ChartPoint, type GestureInstance, type PanGestureConfig } from "./zoomGestures.types.mjs";
1
+ import type { PanEvent } from '@mui/x-internal-gestures/core';
2
+ import type { ChartPoint, GestureInstance, PanGestureConfig } from "./zoomGestures.types.mjs";
3
3
  export interface UseDragGestureOptions {
4
4
  /** Whether the gesture is active. */
5
5
  enabled: boolean;
@@ -1,5 +1,5 @@
1
- import { type PanEvent } from '@mui/x-internal-gestures/core';
2
- import { type ChartPoint, type GestureInstance, type PanGestureConfig } from "./zoomGestures.types.js";
1
+ import type { PanEvent } from '@mui/x-internal-gestures/core';
2
+ import type { ChartPoint, GestureInstance, PanGestureConfig } from "./zoomGestures.types.js";
3
3
  export interface UseDragGestureOptions {
4
4
  /** Whether the gesture is active. */
5
5
  enabled: boolean;
@@ -1,5 +1,5 @@
1
- import { type KeyboardKey } from '@mui/x-internal-gestures/core';
2
- import { type ChartPoint, type GestureInstance } from "./zoomGestures.types.mjs";
1
+ import type { KeyboardKey } from '@mui/x-internal-gestures/core';
2
+ import type { ChartPoint, GestureInstance } from "./zoomGestures.types.mjs";
3
3
  export interface UseWheelGestureOptions {
4
4
  /** Whether the gesture is active. */
5
5
  enabled: boolean;
@@ -1,5 +1,5 @@
1
- import { type KeyboardKey } from '@mui/x-internal-gestures/core';
2
- import { type ChartPoint, type GestureInstance } from "./zoomGestures.types.js";
1
+ import type { KeyboardKey } from '@mui/x-internal-gestures/core';
2
+ import type { ChartPoint, GestureInstance } from "./zoomGestures.types.js";
3
3
  export interface UseWheelGestureOptions {
4
4
  /** Whether the gesture is active. */
5
5
  enabled: boolean;
@@ -42,7 +42,7 @@ function useWheelGesture(instance, options) {
42
42
  if (element === null || !enabled) {
43
43
  return () => {};
44
44
  }
45
- const rafThrottledOnWheel = (0, _rafThrottle.rafThrottle)(onWheelRef.current);
45
+ const rafThrottledOnWheel = (0, _rafThrottle.rafThrottle)((point, event) => onWheelRef.current(point, event));
46
46
  const handler = instance.addInteractionListener('zoomTurnWheel', event => {
47
47
  const point = (0, _internals.getChartPoint)(element, {
48
48
  clientX: event.detail.centroid.x,
@@ -36,7 +36,7 @@ export function useWheelGesture(instance, options) {
36
36
  if (element === null || !enabled) {
37
37
  return () => {};
38
38
  }
39
- const rafThrottledOnWheel = rafThrottle(onWheelRef.current);
39
+ const rafThrottledOnWheel = rafThrottle((point, event) => onWheelRef.current(point, event));
40
40
  const handler = instance.addInteractionListener('zoomTurnWheel', event => {
41
41
  const point = getChartPoint(element, {
42
42
  clientX: event.detail.centroid.x,
@@ -1,5 +1,5 @@
1
1
  import type * as React from 'react';
2
- import { type ChartBaseCommonProps } from '@mui/x-charts/models';
2
+ import type { ChartBaseCommonProps } from '@mui/x-charts/models';
3
3
  export type ChartBaseTooltipProps = ChartBaseCommonProps & {
4
4
  children: React.ReactElement<any, any>;
5
5
  enterDelay?: number;
@@ -1,5 +1,5 @@
1
1
  import type * as React from 'react';
2
- import { type ChartBaseCommonProps } from '@mui/x-charts/models';
2
+ import type { ChartBaseCommonProps } from '@mui/x-charts/models';
3
3
  export type ChartBaseTooltipProps = ChartBaseCommonProps & {
4
4
  children: React.ReactElement<any, any>;
5
5
  enterDelay?: number;
@@ -1,6 +1,6 @@
1
- import { type ChartsBaseSlots } from '@mui/x-charts/models';
1
+ import type { ChartsBaseSlots } from '@mui/x-charts/models';
2
2
  import type * as React from 'react';
3
- import { type ChartBaseDividerProps, type ChartBaseMenuItemProps, type ChartBaseMenuListProps, type ChartBasePopperProps, type ChartBaseTooltipProps } from "./chartBaseSlotProps.mjs";
3
+ import type { ChartBaseDividerProps, ChartBaseMenuItemProps, ChartBaseMenuListProps, ChartBasePopperProps, ChartBaseTooltipProps } from "./chartBaseSlotProps.mjs";
4
4
  import type { BaseDividerPropsOverrides, BaseMenuItemPropsOverrides, BaseMenuListPropsOverrides, BasePopperPropsOverrides, BaseTooltipPropsOverrides } from "../../models/chartsSlotsComponentsPropsPro.mjs";
5
5
  export interface ChartsBaseSlotsPro extends ChartsBaseSlots {
6
6
  baseDivider: React.ComponentType<ChartBaseDividerProps & BaseDividerPropsOverrides>;