@mui/x-charts-pro 8.0.0-alpha.10 → 8.0.0-alpha.12

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 (322) hide show
  1. package/BarChartPro/BarChartPro.d.ts +3 -4
  2. package/BarChartPro/BarChartPro.js +229 -223
  3. package/BarChartPro/BarChartPro.plugins.d.ts +4 -0
  4. package/BarChartPro/BarChartPro.plugins.js +9 -0
  5. package/BarChartPro/index.d.ts +1 -1
  6. package/BarChartPro/index.js +16 -1
  7. package/CHANGELOG.md +267 -2
  8. package/ChartContainerPro/ChartContainerPro.d.ts +7 -8
  9. package/ChartContainerPro/ChartContainerPro.js +178 -172
  10. package/ChartContainerPro/index.d.ts +2 -1
  11. package/ChartContainerPro/index.js +17 -1
  12. package/ChartContainerPro/useChartContainerProProps.d.ts +5 -5
  13. package/ChartContainerPro/useChartContainerProProps.js +25 -18
  14. package/ChartDataProviderPro/ChartDataProviderPro.d.ts +4 -4
  15. package/ChartDataProviderPro/ChartDataProviderPro.js +35 -213
  16. package/ChartDataProviderPro/index.d.ts +2 -1
  17. package/ChartDataProviderPro/index.js +17 -1
  18. package/ChartDataProviderPro/useChartDataProviderProProps.d.ts +4 -4
  19. package/ChartDataProviderPro/useChartDataProviderProProps.js +10 -4
  20. package/Heatmap/Heatmap.d.ts +44 -45
  21. package/Heatmap/Heatmap.js +212 -206
  22. package/Heatmap/Heatmap.plugins.d.ts +3 -0
  23. package/Heatmap/Heatmap.plugins.js +8 -0
  24. package/Heatmap/HeatmapItem.d.ts +33 -33
  25. package/Heatmap/HeatmapItem.js +39 -32
  26. package/Heatmap/HeatmapPlot.d.ts +4 -5
  27. package/Heatmap/HeatmapPlot.js +22 -16
  28. package/Heatmap/HeatmapTooltip.d.ts +3 -4
  29. package/Heatmap/HeatmapTooltip.js +97 -89
  30. package/Heatmap/heatmapClasses.d.ts +7 -7
  31. package/Heatmap/heatmapClasses.js +15 -7
  32. package/Heatmap/index.d.ts +4 -4
  33. package/Heatmap/index.js +47 -4
  34. package/Heatmap/{extremums.d.ts → seriesConfig/extremums.d.ts} +1 -1
  35. package/Heatmap/{getColor.d.ts → seriesConfig/getColor.d.ts} +1 -1
  36. package/Heatmap/seriesConfig/index.d.ts +2 -0
  37. package/{node/Heatmap/plugin.js → Heatmap/seriesConfig/index.js} +4 -4
  38. package/Heatmap/seriesConfig/seriesProcessor.d.ts +3 -0
  39. package/{node/Heatmap/formatter.js → Heatmap/seriesConfig/seriesProcessor.js} +2 -2
  40. package/Heatmap/{tooltip.d.ts → seriesConfig/tooltip.d.ts} +1 -1
  41. package/LineChartPro/LineChartPro.d.ts +3 -4
  42. package/LineChartPro/LineChartPro.js +241 -235
  43. package/LineChartPro/LineChartPro.plugins.d.ts +4 -0
  44. package/LineChartPro/LineChartPro.plugins.js +9 -0
  45. package/LineChartPro/index.d.ts +1 -1
  46. package/LineChartPro/index.js +16 -1
  47. package/ScatterChartPro/ScatterChartPro.d.ts +4 -4
  48. package/ScatterChartPro/ScatterChartPro.js +224 -211
  49. package/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -0
  50. package/ScatterChartPro/ScatterChartPro.plugins.js +9 -0
  51. package/ScatterChartPro/index.d.ts +1 -1
  52. package/ScatterChartPro/index.js +16 -1
  53. package/esm/BarChartPro/BarChartPro.d.ts +17 -0
  54. package/esm/BarChartPro/BarChartPro.js +455 -0
  55. package/esm/BarChartPro/BarChartPro.plugins.d.ts +4 -0
  56. package/esm/BarChartPro/BarChartPro.plugins.js +3 -0
  57. package/esm/BarChartPro/index.d.ts +1 -0
  58. package/esm/BarChartPro/index.js +1 -0
  59. package/esm/ChartContainerPro/ChartContainerPro.d.ts +35 -0
  60. package/esm/ChartContainerPro/ChartContainerPro.js +290 -0
  61. package/esm/ChartContainerPro/index.d.ts +2 -0
  62. package/esm/ChartContainerPro/index.js +2 -0
  63. package/esm/ChartContainerPro/useChartContainerProProps.d.ts +9 -0
  64. package/esm/ChartContainerPro/useChartContainerProProps.js +33 -0
  65. package/esm/ChartDataProviderPro/ChartDataProviderPro.d.ts +37 -0
  66. package/esm/ChartDataProviderPro/ChartDataProviderPro.js +105 -0
  67. package/esm/ChartDataProviderPro/index.d.ts +2 -0
  68. package/esm/ChartDataProviderPro/index.js +2 -0
  69. package/esm/ChartDataProviderPro/useChartDataProviderProProps.d.ts +8 -0
  70. package/esm/ChartDataProviderPro/useChartDataProviderProProps.js +15 -0
  71. package/esm/Heatmap/Heatmap.d.ts +56 -0
  72. package/esm/Heatmap/Heatmap.js +402 -0
  73. package/esm/Heatmap/Heatmap.plugins.d.ts +3 -0
  74. package/esm/Heatmap/Heatmap.plugins.js +2 -0
  75. package/esm/Heatmap/HeatmapItem.d.ts +49 -0
  76. package/esm/Heatmap/HeatmapItem.js +106 -0
  77. package/esm/Heatmap/HeatmapPlot.d.ts +8 -0
  78. package/{node → esm}/Heatmap/HeatmapPlot.js +16 -22
  79. package/esm/Heatmap/HeatmapTooltip.d.ts +8 -0
  80. package/esm/Heatmap/HeatmapTooltip.js +276 -0
  81. package/esm/Heatmap/heatmapClasses.d.ts +11 -0
  82. package/esm/Heatmap/heatmapClasses.js +14 -0
  83. package/esm/Heatmap/index.d.ts +4 -0
  84. package/esm/Heatmap/index.js +4 -0
  85. package/esm/Heatmap/seriesConfig/extremums.d.ts +2 -0
  86. package/esm/Heatmap/seriesConfig/getColor.d.ts +3 -0
  87. package/esm/Heatmap/seriesConfig/index.d.ts +2 -0
  88. package/{Heatmap/plugin.js → esm/Heatmap/seriesConfig/index.js} +3 -3
  89. package/esm/Heatmap/seriesConfig/seriesProcessor.d.ts +3 -0
  90. package/{Heatmap/formatter.js → esm/Heatmap/seriesConfig/seriesProcessor.js} +2 -2
  91. package/esm/Heatmap/seriesConfig/tooltip.d.ts +3 -0
  92. package/esm/LineChartPro/LineChartPro.d.ts +16 -0
  93. package/esm/LineChartPro/LineChartPro.js +506 -0
  94. package/esm/LineChartPro/LineChartPro.plugins.d.ts +4 -0
  95. package/esm/LineChartPro/LineChartPro.plugins.js +3 -0
  96. package/esm/LineChartPro/index.d.ts +1 -0
  97. package/esm/LineChartPro/index.js +1 -0
  98. package/esm/ScatterChartPro/ScatterChartPro.d.ts +17 -0
  99. package/esm/ScatterChartPro/ScatterChartPro.js +400 -0
  100. package/esm/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -0
  101. package/esm/ScatterChartPro/ScatterChartPro.plugins.js +3 -0
  102. package/esm/ScatterChartPro/index.d.ts +1 -0
  103. package/esm/ScatterChartPro/index.js +1 -0
  104. package/esm/hooks/index.d.ts +2 -0
  105. package/esm/hooks/index.js +2 -0
  106. package/esm/hooks/useHeatmapSeries.d.ts +33 -0
  107. package/esm/hooks/useHeatmapSeries.js +42 -0
  108. package/esm/hooks/zoom/index.d.ts +1 -0
  109. package/esm/hooks/zoom/index.js +1 -0
  110. package/esm/hooks/zoom/useIsZoomInteracting.d.ts +6 -0
  111. package/esm/hooks/zoom/useIsZoomInteracting.js +14 -0
  112. package/esm/index.d.ts +32 -0
  113. package/esm/index.js +43 -0
  114. package/esm/internals/plugins/allPlugins.d.ts +5 -0
  115. package/esm/internals/plugins/allPlugins.js +5 -0
  116. package/esm/internals/plugins/useChartProZoom/index.d.ts +3 -0
  117. package/esm/internals/plugins/useChartProZoom/index.js +3 -0
  118. package/esm/internals/plugins/useChartProZoom/useChartProZoom.d.ts +3 -0
  119. package/{node → esm}/internals/plugins/useChartProZoom/useChartProZoom.js +33 -44
  120. package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +201 -0
  121. package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +4 -0
  122. package/esm/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +44 -0
  123. package/esm/internals/plugins/useChartProZoom/useChartProZoom.utils.d.ts +45 -0
  124. package/{node → esm}/internals/plugins/useChartProZoom/useChartProZoom.utils.js +8 -22
  125. package/esm/internals/utils/releaseInfo.d.ts +1 -0
  126. package/esm/internals/utils/releaseInfo.js +13 -0
  127. package/esm/models/index.d.ts +2 -0
  128. package/esm/models/index.js +2 -0
  129. package/esm/models/seriesType/heatmap.d.ts +28 -0
  130. package/esm/models/seriesType/index.d.ts +1 -0
  131. package/esm/models/seriesType/index.js +1 -0
  132. package/esm/package.json +1 -0
  133. package/esm/themeAugmentation/components.d.ts +23 -0
  134. package/esm/themeAugmentation/index.d.ts +4 -0
  135. package/esm/themeAugmentation/index.js +0 -0
  136. package/esm/themeAugmentation/overrides.d.ts +11 -0
  137. package/esm/themeAugmentation/props.d.ts +20 -0
  138. package/esm/typeOverloads/index.d.ts +1 -0
  139. package/esm/typeOverloads/index.js +1 -0
  140. package/esm/typeOverloads/modules.d.ts +22 -0
  141. package/esm/typeOverloads/modules.js +1 -0
  142. package/hooks/index.d.ts +2 -2
  143. package/hooks/index.js +27 -2
  144. package/hooks/useHeatmapSeries.d.ts +33 -0
  145. package/hooks/useHeatmapSeries.js +48 -0
  146. package/hooks/zoom/index.d.ts +1 -1
  147. package/hooks/zoom/index.js +16 -1
  148. package/hooks/zoom/useIsZoomInteracting.d.ts +1 -1
  149. package/hooks/zoom/useIsZoomInteracting.js +10 -5
  150. package/index.d.ts +8 -8
  151. package/index.js +347 -37
  152. package/internals/plugins/allPlugins.d.ts +3 -9
  153. package/internals/plugins/allPlugins.js +9 -3
  154. package/internals/plugins/useChartProZoom/index.d.ts +3 -3
  155. package/internals/plugins/useChartProZoom/index.js +38 -3
  156. package/internals/plugins/useChartProZoom/useChartProZoom.d.ts +2 -2
  157. package/internals/plugins/useChartProZoom/useChartProZoom.js +40 -37
  158. package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +149 -325
  159. package/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +11 -10
  160. package/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +35 -41
  161. package/internals/plugins/useChartProZoom/useChartProZoom.types.js +5 -1
  162. package/internals/plugins/useChartProZoom/useChartProZoom.utils.d.ts +13 -13
  163. package/internals/plugins/useChartProZoom/useChartProZoom.utils.js +22 -8
  164. package/internals/utils/releaseInfo.d.ts +1 -1
  165. package/internals/utils/releaseInfo.js +13 -5
  166. package/models/index.d.ts +1 -1
  167. package/models/index.js +16 -2
  168. package/models/seriesType/heatmap.d.ts +17 -18
  169. package/models/seriesType/heatmap.js +5 -1
  170. package/models/seriesType/index.d.ts +1 -1
  171. package/models/seriesType/index.js +16 -1
  172. package/modern/BarChartPro/BarChartPro.d.ts +17 -0
  173. package/modern/BarChartPro/BarChartPro.js +5 -5
  174. package/modern/BarChartPro/BarChartPro.plugins.d.ts +4 -0
  175. package/modern/BarChartPro/BarChartPro.plugins.js +3 -0
  176. package/modern/BarChartPro/index.d.ts +1 -0
  177. package/modern/ChartContainerPro/ChartContainerPro.d.ts +35 -0
  178. package/modern/ChartContainerPro/index.d.ts +2 -0
  179. package/modern/ChartContainerPro/index.js +1 -0
  180. package/modern/ChartContainerPro/useChartContainerProProps.d.ts +9 -0
  181. package/modern/ChartContainerPro/useChartContainerProProps.js +11 -11
  182. package/modern/ChartDataProviderPro/ChartDataProviderPro.d.ts +37 -0
  183. package/modern/ChartDataProviderPro/ChartDataProviderPro.js +11 -195
  184. package/modern/ChartDataProviderPro/index.d.ts +2 -0
  185. package/modern/ChartDataProviderPro/index.js +1 -0
  186. package/modern/ChartDataProviderPro/useChartDataProviderProProps.d.ts +8 -0
  187. package/modern/Heatmap/Heatmap.d.ts +56 -0
  188. package/modern/Heatmap/Heatmap.js +7 -7
  189. package/modern/Heatmap/Heatmap.plugins.d.ts +3 -0
  190. package/modern/Heatmap/Heatmap.plugins.js +2 -0
  191. package/modern/Heatmap/HeatmapItem.d.ts +49 -0
  192. package/modern/Heatmap/HeatmapPlot.d.ts +8 -0
  193. package/modern/Heatmap/HeatmapPlot.js +2 -2
  194. package/modern/Heatmap/HeatmapTooltip.d.ts +8 -0
  195. package/modern/Heatmap/HeatmapTooltip.js +6 -4
  196. package/modern/Heatmap/heatmapClasses.d.ts +11 -0
  197. package/modern/Heatmap/index.d.ts +4 -0
  198. package/modern/Heatmap/seriesConfig/extremums.d.ts +2 -0
  199. package/modern/Heatmap/seriesConfig/getColor.d.ts +3 -0
  200. package/modern/Heatmap/seriesConfig/index.d.ts +2 -0
  201. package/modern/Heatmap/{plugin.js → seriesConfig/index.js} +3 -3
  202. package/modern/Heatmap/seriesConfig/seriesProcessor.d.ts +3 -0
  203. package/modern/Heatmap/{formatter.js → seriesConfig/seriesProcessor.js} +2 -2
  204. package/modern/Heatmap/seriesConfig/tooltip.d.ts +3 -0
  205. package/modern/LineChartPro/LineChartPro.d.ts +16 -0
  206. package/modern/LineChartPro/LineChartPro.js +5 -5
  207. package/modern/LineChartPro/LineChartPro.plugins.d.ts +4 -0
  208. package/modern/LineChartPro/LineChartPro.plugins.js +3 -0
  209. package/modern/LineChartPro/index.d.ts +1 -0
  210. package/modern/ScatterChartPro/ScatterChartPro.d.ts +17 -0
  211. package/modern/ScatterChartPro/ScatterChartPro.js +12 -5
  212. package/modern/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -0
  213. package/modern/ScatterChartPro/ScatterChartPro.plugins.js +3 -0
  214. package/modern/ScatterChartPro/index.d.ts +1 -0
  215. package/modern/hooks/index.d.ts +2 -0
  216. package/modern/hooks/index.js +1 -1
  217. package/modern/hooks/useHeatmapSeries.d.ts +33 -0
  218. package/modern/hooks/useHeatmapSeries.js +42 -0
  219. package/modern/hooks/zoom/index.d.ts +1 -0
  220. package/modern/hooks/zoom/useIsZoomInteracting.d.ts +6 -0
  221. package/modern/index.d.ts +32 -0
  222. package/modern/index.js +2 -3
  223. package/modern/internals/plugins/allPlugins.d.ts +5 -0
  224. package/modern/internals/plugins/useChartProZoom/index.d.ts +3 -0
  225. package/modern/internals/plugins/useChartProZoom/useChartProZoom.d.ts +3 -0
  226. package/modern/internals/plugins/useChartProZoom/useChartProZoom.js +4 -8
  227. package/modern/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +201 -0
  228. package/modern/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +1 -7
  229. package/modern/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +44 -0
  230. package/modern/internals/plugins/useChartProZoom/useChartProZoom.utils.d.ts +45 -0
  231. package/modern/internals/utils/releaseInfo.d.ts +1 -0
  232. package/modern/internals/utils/releaseInfo.js +1 -1
  233. package/modern/models/index.d.ts +2 -0
  234. package/modern/models/seriesType/heatmap.d.ts +28 -0
  235. package/modern/models/seriesType/index.d.ts +1 -0
  236. package/modern/package.json +1 -0
  237. package/modern/themeAugmentation/components.d.ts +23 -0
  238. package/modern/themeAugmentation/index.d.ts +4 -0
  239. package/modern/themeAugmentation/overrides.d.ts +11 -0
  240. package/modern/themeAugmentation/props.d.ts +20 -0
  241. package/modern/typeOverloads/index.d.ts +1 -0
  242. package/modern/typeOverloads/modules.d.ts +22 -0
  243. package/package.json +40 -10
  244. package/themeAugmentation/components.d.ts +1 -3
  245. package/themeAugmentation/index.d.ts +1 -1
  246. package/themeAugmentation/index.js +1 -0
  247. package/themeAugmentation/overrides.d.ts +2 -4
  248. package/themeAugmentation/props.d.ts +5 -7
  249. package/tsconfig.build.tsbuildinfo +1 -0
  250. package/typeOverloads/index.d.ts +1 -1
  251. package/typeOverloads/index.js +6 -1
  252. package/typeOverloads/modules.d.ts +20 -23
  253. package/typeOverloads/modules.js +5 -1
  254. package/BarChartPro/package.json +0 -6
  255. package/ChartContainerPro/package.json +0 -6
  256. package/ChartDataProviderPro/package.json +0 -6
  257. package/Heatmap/formatter.d.ts +0 -3
  258. package/Heatmap/package.json +0 -6
  259. package/Heatmap/plugin.d.ts +0 -2
  260. package/LineChartPro/package.json +0 -6
  261. package/ScatterChartPro/package.json +0 -6
  262. package/hooks/package.json +0 -6
  263. package/hooks/useSeries.d.ts +0 -9
  264. package/hooks/useSeries.js +0 -16
  265. package/internals/plugins/useChartProZoom/creatZoomLookup.d.ts +0 -3
  266. package/internals/plugins/useChartProZoom/creatZoomLookup.js +0 -12
  267. package/internals/plugins/useChartProZoom/defaultizeZoom.d.ts +0 -2
  268. package/internals/plugins/useChartProZoom/defaultizeZoom.js +0 -25
  269. package/internals/plugins/useChartProZoom/zoom.types.d.ts +0 -53
  270. package/models/package.json +0 -6
  271. package/modern/hooks/useSeries.js +0 -16
  272. package/modern/internals/plugins/useChartProZoom/creatZoomLookup.js +0 -12
  273. package/modern/internals/plugins/useChartProZoom/defaultizeZoom.js +0 -25
  274. package/node/BarChartPro/BarChartPro.js +0 -461
  275. package/node/BarChartPro/index.js +0 -16
  276. package/node/ChartContainerPro/ChartContainerPro.js +0 -296
  277. package/node/ChartContainerPro/index.js +0 -16
  278. package/node/ChartContainerPro/useChartContainerProProps.js +0 -40
  279. package/node/ChartDataProviderPro/ChartDataProviderPro.js +0 -295
  280. package/node/ChartDataProviderPro/index.js +0 -16
  281. package/node/ChartDataProviderPro/useChartDataProviderProProps.js +0 -21
  282. package/node/Heatmap/Heatmap.js +0 -408
  283. package/node/Heatmap/HeatmapItem.js +0 -113
  284. package/node/Heatmap/HeatmapTooltip.js +0 -280
  285. package/node/Heatmap/heatmapClasses.js +0 -22
  286. package/node/Heatmap/index.js +0 -47
  287. package/node/LineChartPro/LineChartPro.js +0 -512
  288. package/node/LineChartPro/index.js +0 -16
  289. package/node/ScatterChartPro/ScatterChartPro.js +0 -399
  290. package/node/ScatterChartPro/index.js +0 -16
  291. package/node/hooks/index.js +0 -27
  292. package/node/hooks/useSeries.js +0 -21
  293. package/node/hooks/zoom/index.js +0 -16
  294. package/node/hooks/zoom/useIsZoomInteracting.js +0 -19
  295. package/node/index.js +0 -365
  296. package/node/internals/plugins/allPlugins.js +0 -11
  297. package/node/internals/plugins/useChartProZoom/creatZoomLookup.js +0 -19
  298. package/node/internals/plugins/useChartProZoom/defaultizeZoom.js +0 -33
  299. package/node/internals/plugins/useChartProZoom/index.js +0 -38
  300. package/node/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +0 -18
  301. package/node/internals/plugins/useChartProZoom/useChartProZoom.types.js +0 -5
  302. package/node/internals/plugins/useChartProZoom/zoom.types.js +0 -5
  303. package/node/internals/utils/releaseInfo.js +0 -21
  304. package/node/models/index.js +0 -16
  305. package/node/models/seriesType/heatmap.js +0 -5
  306. package/node/models/seriesType/index.js +0 -16
  307. package/node/themeAugmentation/index.js +0 -1
  308. package/node/typeOverloads/index.js +0 -6
  309. package/node/typeOverloads/modules.js +0 -5
  310. package/themeAugmentation/package.json +0 -6
  311. package/typeOverloads/package.json +0 -6
  312. /package/{node/Heatmap → Heatmap/seriesConfig}/extremums.js +0 -0
  313. /package/{node/Heatmap → Heatmap/seriesConfig}/getColor.js +0 -0
  314. /package/{node/Heatmap → Heatmap/seriesConfig}/tooltip.js +0 -0
  315. /package/{Heatmap → esm/Heatmap/seriesConfig}/extremums.js +0 -0
  316. /package/{Heatmap → esm/Heatmap/seriesConfig}/getColor.js +0 -0
  317. /package/{Heatmap → esm/Heatmap/seriesConfig}/tooltip.js +0 -0
  318. /package/{internals/plugins/useChartProZoom/zoom.types.js → esm/internals/plugins/useChartProZoom/useChartProZoom.types.js} +0 -0
  319. /package/{modern/internals/plugins/useChartProZoom/zoom.types.js → esm/models/seriesType/heatmap.js} +0 -0
  320. /package/modern/Heatmap/{extremums.js → seriesConfig/extremums.js} +0 -0
  321. /package/modern/Heatmap/{getColor.js → seriesConfig/getColor.js} +0 -0
  322. /package/modern/Heatmap/{tooltip.js → seriesConfig/tooltip.js} +0 -0
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+ import { ScatterChartProps } from '@mui/x-charts/ScatterChart';
3
+ import { ChartContainerProProps } from "../ChartContainerPro/ChartContainerPro.js";
4
+ import { ScatterChartProPluginsSignatures } from "./ScatterChartPro.plugins.js";
5
+ export interface ScatterChartProProps extends Omit<ScatterChartProps, 'apiRef'>, Omit<ChartContainerProProps<'scatter', ScatterChartProPluginsSignatures>, 'series' | 'plugins' | 'seriesConfig' | 'onItemClick'> {}
6
+ /**
7
+ * Demos:
8
+ *
9
+ * - [Scatter](https://mui.com/x/react-charts/scatter/)
10
+ * - [Scatter demonstration](https://mui.com/x/react-charts/scatter-demo/)
11
+ *
12
+ * API:
13
+ *
14
+ * - [ScatterChart API](https://mui.com/x/api/charts/scatter-chart/)
15
+ */
16
+ declare const ScatterChartPro: React.ForwardRefExoticComponent<ScatterChartProProps & React.RefAttributes<SVGSVGElement>>;
17
+ export { ScatterChartPro };
@@ -8,7 +8,6 @@ import PropTypes from 'prop-types';
8
8
  import { useThemeProps } from '@mui/material/styles';
9
9
  import { ChartsOverlay } from '@mui/x-charts/ChartsOverlay';
10
10
  import { ScatterPlot } from '@mui/x-charts/ScatterChart';
11
- import { ChartsVoronoiHandler } from '@mui/x-charts/ChartsVoronoiHandler';
12
11
  import { ChartsAxis } from '@mui/x-charts/ChartsAxis';
13
12
  import { ChartsGrid } from '@mui/x-charts/ChartsGrid';
14
13
  import { ChartsLegend } from '@mui/x-charts/ChartsLegend';
@@ -18,6 +17,7 @@ import { ChartsTooltip } from '@mui/x-charts/ChartsTooltip';
18
17
  import { useScatterChartProps, ChartsWrapper } from '@mui/x-charts/internals';
19
18
  import { useChartContainerProProps } from "../ChartContainerPro/useChartContainerProProps.js";
20
19
  import { ChartDataProviderPro } from "../ChartDataProviderPro/index.js";
20
+ import { SCATTER_CHART_PRO_PLUGINS } from "./ScatterChartPro.plugins.js";
21
21
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
22
22
  /**
23
23
  * Demos:
@@ -43,7 +43,6 @@ const ScatterChartPro = /*#__PURE__*/React.forwardRef(function ScatterChartPro(i
43
43
  const {
44
44
  chartsWrapperProps,
45
45
  chartContainerProps,
46
- voronoiHandlerProps,
47
46
  chartsAxisProps,
48
47
  gridProps,
49
48
  scatterPlotProps,
@@ -58,13 +57,14 @@ const ScatterChartPro = /*#__PURE__*/React.forwardRef(function ScatterChartPro(i
58
57
  } = useChartContainerProProps(_extends({}, chartContainerProps, {
59
58
  initialZoom,
60
59
  onZoomChange,
61
- apiRef
60
+ apiRef,
61
+ plugins: SCATTER_CHART_PRO_PLUGINS
62
62
  }), ref);
63
63
  const Tooltip = props.slots?.tooltip ?? ChartsTooltip;
64
64
  return /*#__PURE__*/_jsx(ChartDataProviderPro, _extends({}, chartDataProviderProProps, {
65
65
  children: /*#__PURE__*/_jsxs(ChartsWrapper, _extends({}, chartsWrapperProps, {
66
66
  children: [!props.hideLegend && /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), /*#__PURE__*/_jsxs(ChartsSurface, _extends({}, chartsSurfaceProps, {
67
- children: [!props.disableVoronoi && /*#__PURE__*/_jsx(ChartsVoronoiHandler, _extends({}, voronoiHandlerProps)), /*#__PURE__*/_jsx(ChartsAxis, _extends({}, chartsAxisProps)), /*#__PURE__*/_jsx(ChartsGrid, _extends({}, gridProps)), /*#__PURE__*/_jsx("g", {
67
+ children: [/*#__PURE__*/_jsx(ChartsAxis, _extends({}, chartsAxisProps)), /*#__PURE__*/_jsx(ChartsGrid, _extends({}, gridProps)), /*#__PURE__*/_jsx("g", {
68
68
  "data-drawing-container": true,
69
69
  children: /*#__PURE__*/_jsx(ScatterPlot, _extends({}, scatterPlotProps))
70
70
  }), /*#__PURE__*/_jsx(ChartsOverlay, _extends({}, overlayProps)), /*#__PURE__*/_jsx(ChartsAxisHighlight, _extends({}, axisHighlightProps)), !props.loading && /*#__PURE__*/_jsx(Tooltip, _extends({}, props?.slotProps?.tooltip, {
@@ -103,7 +103,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
103
103
  className: PropTypes.string,
104
104
  /**
105
105
  * Color palette used to colorize multiple series.
106
- * @default blueberryTwilightPalette
106
+ * @default rainbowSurgePalette
107
107
  */
108
108
  colors: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
109
109
  /**
@@ -180,6 +180,13 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
180
180
  right: PropTypes.number,
181
181
  top: PropTypes.number
182
182
  }),
183
+ /**
184
+ * The function called for onClick events.
185
+ * The second argument contains information about all line/bar elements at the current mouse position.
186
+ * @param {MouseEvent} event The mouse event recorded on the `<svg/>` element.
187
+ * @param {null | AxisData} data The data about the clicked axis and items associated with it.
188
+ */
189
+ onAxisClick: PropTypes.func,
183
190
  /**
184
191
  * The callback fired when the highlighted item changes.
185
192
  *
@@ -0,0 +1,4 @@
1
+ import { UseChartZAxisSignature, UseChartCartesianAxisSignature, UseChartInteractionSignature, UseChartHighlightSignature, UseChartVoronoiSignature, ConvertSignaturesIntoPlugins } from '@mui/x-charts/internals';
2
+ import { UseChartProZoomSignature } from "../internals/plugins/useChartProZoom/index.js";
3
+ export type ScatterChartProPluginsSignatures = [UseChartZAxisSignature, UseChartCartesianAxisSignature<'scatter'>, UseChartInteractionSignature, UseChartHighlightSignature, UseChartVoronoiSignature, UseChartProZoomSignature];
4
+ export declare const SCATTER_CHART_PRO_PLUGINS: ConvertSignaturesIntoPlugins<ScatterChartProPluginsSignatures>;
@@ -0,0 +1,3 @@
1
+ import { useChartZAxis, useChartCartesianAxis, useChartInteraction, useChartHighlight, useChartVoronoi } from '@mui/x-charts/internals';
2
+ import { useChartProZoom } from "../internals/plugins/useChartProZoom/index.js";
3
+ export const SCATTER_CHART_PRO_PLUGINS = [useChartZAxis, useChartCartesianAxis, useChartInteraction, useChartHighlight, useChartVoronoi, useChartProZoom];
@@ -0,0 +1 @@
1
+ export * from "./ScatterChartPro.js";
@@ -0,0 +1,2 @@
1
+ export { useHeatmapSeries } from "./useHeatmapSeries.js";
2
+ export * from "./zoom/index.js";
@@ -1,2 +1,2 @@
1
- export { useHeatmapSeries as unstable_useHeatmapSeries } from "./useSeries.js";
1
+ export { useHeatmapSeries } from "./useHeatmapSeries.js";
2
2
  export * from "./zoom/index.js";
@@ -0,0 +1,33 @@
1
+ import { ProcessedSeries, SeriesId, ChartSeriesDefaultized } from '@mui/x-charts/internals';
2
+ export type UseHeatmapSeriesReturnValue = ChartSeriesDefaultized<'heatmap'>;
3
+ export type UseHeatmapSeriesContextReturnValue = ProcessedSeries['heatmap'];
4
+ /**
5
+ * Get access to the internal state of heatmap series.
6
+ *
7
+ * @param {SeriesId} seriesId The id of the series to get.
8
+ * @returns {UseHeatmapSeriesReturnValue} the heatmap series
9
+ */
10
+ export declare function useHeatmapSeries(seriesId: SeriesId): UseHeatmapSeriesReturnValue | undefined;
11
+ /**
12
+ * Get access to the internal state of heatmap series.
13
+ *
14
+ * When called without arguments, it returns all heatmap series.
15
+ *
16
+ * @returns {UseHeatmapSeriesReturnValue[]} the heatmap series
17
+ */
18
+ export declare function useHeatmapSeries(): UseHeatmapSeriesReturnValue[];
19
+ /**
20
+ * Get access to the internal state of heatmap series.
21
+ *
22
+ * @param {SeriesId[]} seriesIds The ids of the series to get. Order is preserved.
23
+ * @returns {UseHeatmapSeriesReturnValue[]} the heatmap series
24
+ */
25
+ export declare function useHeatmapSeries(seriesIds: SeriesId[]): UseHeatmapSeriesReturnValue[];
26
+ /**
27
+ * Get access to the internal state of heatmap series.
28
+ * The returned object contains:
29
+ * - series: a mapping from ids to series attributes.
30
+ * - seriesOrder: the array of series ids.
31
+ * @returns the heatmap series
32
+ */
33
+ export declare function useHeatmapSeriesContext(): UseHeatmapSeriesContextReturnValue;
@@ -0,0 +1,42 @@
1
+ 'use client';
2
+
3
+ import { createAllSeriesSelectorOfType, createSeriesSelectorsOfType } from '@mui/x-charts/internals';
4
+ const useSelectorSeries = createSeriesSelectorsOfType('heatmap');
5
+ const useSelectorSeriesContext = createAllSeriesSelectorOfType('heatmap');
6
+
7
+ /**
8
+ * Get access to the internal state of heatmap series.
9
+ *
10
+ * @param {SeriesId} seriesId The id of the series to get.
11
+ * @returns {UseHeatmapSeriesReturnValue} the heatmap series
12
+ */
13
+
14
+ /**
15
+ * Get access to the internal state of heatmap series.
16
+ *
17
+ * When called without arguments, it returns all heatmap series.
18
+ *
19
+ * @returns {UseHeatmapSeriesReturnValue[]} the heatmap series
20
+ */
21
+
22
+ /**
23
+ * Get access to the internal state of heatmap series.
24
+ *
25
+ * @param {SeriesId[]} seriesIds The ids of the series to get. Order is preserved.
26
+ * @returns {UseHeatmapSeriesReturnValue[]} the heatmap series
27
+ */
28
+
29
+ export function useHeatmapSeries(seriesIds) {
30
+ return useSelectorSeries(seriesIds);
31
+ }
32
+
33
+ /**
34
+ * Get access to the internal state of heatmap series.
35
+ * The returned object contains:
36
+ * - series: a mapping from ids to series attributes.
37
+ * - seriesOrder: the array of series ids.
38
+ * @returns the heatmap series
39
+ */
40
+ export function useHeatmapSeriesContext() {
41
+ return useSelectorSeriesContext();
42
+ }
@@ -0,0 +1 @@
1
+ export * from "./useIsZoomInteracting.js";
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Get access to the zoom state.
3
+ *
4
+ * @returns {boolean} Inform the zoom is interacting.
5
+ */
6
+ export declare function useIsZoomInteracting(): boolean;
@@ -0,0 +1,32 @@
1
+ import "./typeOverloads/modules.js";
2
+ export * from '@mui/x-charts/constants';
3
+ export * from '@mui/x-charts/context';
4
+ export * from '@mui/x-charts/hooks';
5
+ export * from '@mui/x-charts/colorPalettes';
6
+ export * from '@mui/x-charts/models';
7
+ export * from '@mui/x-charts/ChartsClipPath';
8
+ export * from '@mui/x-charts/ChartsReferenceLine';
9
+ export * from '@mui/x-charts/ChartsAxis';
10
+ export * from '@mui/x-charts/ChartsXAxis';
11
+ export * from '@mui/x-charts/ChartsYAxis';
12
+ export * from '@mui/x-charts/ChartsGrid';
13
+ export * from '@mui/x-charts/ChartsText';
14
+ export * from '@mui/x-charts/ChartsTooltip';
15
+ export * from '@mui/x-charts/ChartsLegend';
16
+ export * from '@mui/x-charts/ChartsAxisHighlight';
17
+ export * from '@mui/x-charts/BarChart';
18
+ export * from '@mui/x-charts/LineChart';
19
+ export * from '@mui/x-charts/PieChart';
20
+ export * from '@mui/x-charts/ScatterChart';
21
+ export * from '@mui/x-charts/SparkLineChart';
22
+ export * from '@mui/x-charts/Gauge';
23
+ export * from '@mui/x-charts/ChartsSurface';
24
+ export * from '@mui/x-charts/ChartDataProvider';
25
+ export * from '@mui/x-charts/ChartsLabel';
26
+ export * from "./hooks/index.js";
27
+ export * from "./Heatmap/index.js";
28
+ export * from "./ChartContainerPro/index.js";
29
+ export * from "./ChartDataProviderPro/index.js";
30
+ export * from "./ScatterChartPro/index.js";
31
+ export * from "./BarChartPro/index.js";
32
+ export * from "./LineChartPro/index.js";
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-charts-pro v8.0.0-alpha.10
2
+ * @mui/x-charts-pro v8.0.0-alpha.12
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -23,8 +23,6 @@ export * from '@mui/x-charts/ChartsText';
23
23
  export * from '@mui/x-charts/ChartsTooltip';
24
24
  export * from '@mui/x-charts/ChartsLegend';
25
25
  export * from '@mui/x-charts/ChartsAxisHighlight';
26
- export * from '@mui/x-charts/ChartsVoronoiHandler';
27
- export * from '@mui/x-charts/ChartsOnAxisClickHandler';
28
26
  export * from '@mui/x-charts/BarChart';
29
27
  export * from '@mui/x-charts/LineChart';
30
28
  export * from '@mui/x-charts/PieChart';
@@ -36,6 +34,7 @@ export * from '@mui/x-charts/ChartDataProvider';
36
34
  export * from '@mui/x-charts/ChartsLabel';
37
35
 
38
36
  // Pro components
37
+ export * from "./hooks/index.js";
39
38
  export * from "./Heatmap/index.js";
40
39
  export * from "./ChartContainerPro/index.js";
41
40
  export * from "./ChartDataProviderPro/index.js";
@@ -0,0 +1,5 @@
1
+ import { ChartSeriesType, ConvertSignaturesIntoPlugins, UseChartCartesianAxisSignature, UseChartInteractionSignature, UseChartZAxisSignature, UseChartHighlightSignature } from '@mui/x-charts/internals';
2
+ import { UseChartProZoomSignature } from "./useChartProZoom/index.js";
3
+ export type AllPluginSignatures<TSeries extends ChartSeriesType = ChartSeriesType> = [UseChartZAxisSignature, UseChartCartesianAxisSignature<TSeries>, UseChartInteractionSignature, UseChartHighlightSignature, UseChartProZoomSignature];
4
+ export type AllPluginsType<TSeries extends ChartSeriesType = ChartSeriesType> = ConvertSignaturesIntoPlugins<AllPluginSignatures<TSeries>>;
5
+ export declare const ALL_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<UseChartProZoomSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>>)[];
@@ -0,0 +1,3 @@
1
+ export * from "./useChartProZoom.selectors.js";
2
+ export * from "./useChartProZoom.js";
3
+ export * from "./useChartProZoom.types.js";
@@ -0,0 +1,3 @@
1
+ import { ChartPlugin } from '@mui/x-charts/internals';
2
+ import { UseChartProZoomSignature } from "./useChartProZoom.types.js";
3
+ export declare const useChartProZoom: ChartPlugin<UseChartProZoomSignature>;
@@ -2,10 +2,8 @@
2
2
 
3
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import * as React from 'react';
5
- import { useSelector, getSVGPoint, selectorChartDrawingArea } from '@mui/x-charts/internals';
6
- import { creatZoomLookup } from "./creatZoomLookup.js";
5
+ import { useSelector, getSVGPoint, selectorChartDrawingArea, createZoomLookup, selectorChartZoomOptionsLookup } from '@mui/x-charts/internals';
7
6
  import { getDiff, getHorizontalCenterRatio, getPinchScaleRatio, getVerticalCenterRatio, getWheelScaleRatio, isSpanValid, preventDefault, zoomAtPoint } from "./useChartProZoom.utils.js";
8
- import { selectorChartZoomOptionsLookup } from "./useChartProZoom.selectors.js";
9
7
 
10
8
  // It is helpful to avoid the need to provide the possibly auto-generated id for each axis.
11
9
  function initializeZoomData(options) {
@@ -288,15 +286,13 @@ useChartProZoom.params = {
288
286
  useChartProZoom.getDefaultizedParams = ({
289
287
  params
290
288
  }) => {
291
- const optionsLookup = _extends({}, creatZoomLookup('x')(params.defaultizedXAxis), creatZoomLookup('y')(params.defaultizedYAxis));
292
- return _extends({}, params, {
293
- optionsLookup
294
- });
289
+ return _extends({}, params);
295
290
  };
296
291
  useChartProZoom.getInitialState = params => {
292
+ const optionsLookup = _extends({}, createZoomLookup('x')(params.defaultizedXAxis), createZoomLookup('y')(params.defaultizedYAxis));
297
293
  return {
298
294
  zoom: {
299
- zoomData: params.initialZoom === undefined ? initializeZoomData(params.optionsLookup) : params.initialZoom,
295
+ zoomData: params.initialZoom === undefined ? initializeZoomData(optionsLookup) : params.initialZoom,
300
296
  isInteracting: false
301
297
  }
302
298
  };
@@ -0,0 +1,201 @@
1
+ import { ChartRootSelector } from '@mui/x-charts/internals';
2
+ import { UseChartProZoomSignature } from "./useChartProZoom.types.js";
3
+ export declare const selectorChartZoomState: ChartRootSelector<UseChartProZoomSignature>;
4
+ export declare const selectorChartZoomIsInteracting: ((state: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & 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("./useChartProZoom.types").UseChartProZoomState & Partial<{}> & {
5
+ cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
6
+ }) => boolean) & {
7
+ clearCache: () => void;
8
+ resultsCount: () => number;
9
+ resetResultsCount: () => void;
10
+ } & {
11
+ resultFunc: (resultFuncArgs_0: {
12
+ isInteracting: boolean;
13
+ zoomData: import("@mui/x-charts/internals").ZoomData[];
14
+ }) => boolean;
15
+ memoizedResultFunc: ((resultFuncArgs_0: {
16
+ isInteracting: boolean;
17
+ zoomData: import("@mui/x-charts/internals").ZoomData[];
18
+ }) => boolean) & {
19
+ clearCache: () => void;
20
+ resultsCount: () => number;
21
+ resetResultsCount: () => void;
22
+ };
23
+ lastResult: () => boolean;
24
+ dependencies: [ChartRootSelector<UseChartProZoomSignature>];
25
+ recomputations: () => number;
26
+ resetRecomputations: () => void;
27
+ dependencyRecomputations: () => number;
28
+ resetDependencyRecomputations: () => void;
29
+ } & {
30
+ argsMemoize: typeof import("reselect").weakMapMemoize;
31
+ memoize: typeof import("reselect").weakMapMemoize;
32
+ };
33
+ export declare const selectorChartZoomIsEnabled: ((state: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & 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").UseChartCartesianAxisState & Partial<{}> & {
34
+ cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
35
+ }) => boolean) & {
36
+ clearCache: () => void;
37
+ resultsCount: () => number;
38
+ resetResultsCount: () => void;
39
+ } & {
40
+ resultFunc: (resultFuncArgs_0: {
41
+ [x: string]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
42
+ [x: number]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
43
+ }) => boolean;
44
+ memoizedResultFunc: ((resultFuncArgs_0: {
45
+ [x: string]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
46
+ [x: number]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
47
+ }) => boolean) & {
48
+ clearCache: () => void;
49
+ resultsCount: () => number;
50
+ resetResultsCount: () => void;
51
+ };
52
+ lastResult: () => boolean;
53
+ dependencies: [((state: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & 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").UseChartCartesianAxisState & Partial<{}> & {
54
+ cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
55
+ }) => {
56
+ [x: string]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
57
+ [x: number]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
58
+ }) & {
59
+ clearCache: () => void;
60
+ resultsCount: () => number;
61
+ resetResultsCount: () => void;
62
+ } & {
63
+ resultFunc: (resultFuncArgs_0: Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>, resultFuncArgs_1: Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>) => {
64
+ [x: string]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
65
+ [x: number]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
66
+ };
67
+ memoizedResultFunc: ((resultFuncArgs_0: Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>, resultFuncArgs_1: Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>) => {
68
+ [x: string]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
69
+ [x: number]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
70
+ }) & {
71
+ clearCache: () => void;
72
+ resultsCount: () => number;
73
+ resetResultsCount: () => void;
74
+ };
75
+ lastResult: () => {
76
+ [x: string]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
77
+ [x: number]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
78
+ };
79
+ dependencies: [((state: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & 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").UseChartCartesianAxisState & Partial<{}> & {
80
+ cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
81
+ }) => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>) & {
82
+ clearCache: () => void;
83
+ resultsCount: () => number;
84
+ resetResultsCount: () => void;
85
+ } & {
86
+ resultFunc: (resultFuncArgs_0: import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsXAxisProps>[]) => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>;
87
+ memoizedResultFunc: ((resultFuncArgs_0: import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsXAxisProps>[]) => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>) & {
88
+ clearCache: () => void;
89
+ resultsCount: () => number;
90
+ resetResultsCount: () => void;
91
+ };
92
+ lastResult: () => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>;
93
+ dependencies: [((state: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & 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").UseChartCartesianAxisState & Partial<{}> & {
94
+ cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
95
+ }) => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsXAxisProps>[]) & {
96
+ clearCache: () => void;
97
+ resultsCount: () => number;
98
+ resetResultsCount: () => void;
99
+ } & {
100
+ resultFunc: (resultFuncArgs_0: {
101
+ x: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsXAxisProps>[];
102
+ y: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsYAxisProps>[];
103
+ }) => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsXAxisProps>[];
104
+ memoizedResultFunc: ((resultFuncArgs_0: {
105
+ x: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsXAxisProps>[];
106
+ y: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsYAxisProps>[];
107
+ }) => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsXAxisProps>[]) & {
108
+ clearCache: () => void;
109
+ resultsCount: () => number;
110
+ resetResultsCount: () => void;
111
+ };
112
+ lastResult: () => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsXAxisProps>[];
113
+ dependencies: [(state: import("@mui/x-charts/internals").ChartState<[import("@mui/x-charts/internals").UseChartCartesianAxisSignature]>) => {
114
+ x: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsXAxisProps>[];
115
+ y: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsYAxisProps>[];
116
+ }];
117
+ recomputations: () => number;
118
+ resetRecomputations: () => void;
119
+ dependencyRecomputations: () => number;
120
+ resetDependencyRecomputations: () => void;
121
+ } & {
122
+ memoize: typeof import("reselect").weakMapMemoize;
123
+ argsMemoize: typeof import("reselect").weakMapMemoize;
124
+ }];
125
+ recomputations: () => number;
126
+ resetRecomputations: () => void;
127
+ dependencyRecomputations: () => number;
128
+ resetDependencyRecomputations: () => void;
129
+ } & {
130
+ memoize: typeof import("reselect").weakMapMemoize;
131
+ argsMemoize: typeof import("reselect").weakMapMemoize;
132
+ }, ((state: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & 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").UseChartCartesianAxisState & Partial<{}> & {
133
+ cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
134
+ }) => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>) & {
135
+ clearCache: () => void;
136
+ resultsCount: () => number;
137
+ resetResultsCount: () => void;
138
+ } & {
139
+ resultFunc: (resultFuncArgs_0: import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsYAxisProps>[]) => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>;
140
+ memoizedResultFunc: ((resultFuncArgs_0: import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsYAxisProps>[]) => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>) & {
141
+ clearCache: () => void;
142
+ resultsCount: () => number;
143
+ resetResultsCount: () => void;
144
+ };
145
+ lastResult: () => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>;
146
+ dependencies: [((state: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & 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").UseChartCartesianAxisState & Partial<{}> & {
147
+ cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
148
+ }) => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsYAxisProps>[]) & {
149
+ clearCache: () => void;
150
+ resultsCount: () => number;
151
+ resetResultsCount: () => void;
152
+ } & {
153
+ resultFunc: (resultFuncArgs_0: {
154
+ x: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsXAxisProps>[];
155
+ y: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsYAxisProps>[];
156
+ }) => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsYAxisProps>[];
157
+ memoizedResultFunc: ((resultFuncArgs_0: {
158
+ x: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsXAxisProps>[];
159
+ y: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsYAxisProps>[];
160
+ }) => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsYAxisProps>[]) & {
161
+ clearCache: () => void;
162
+ resultsCount: () => number;
163
+ resetResultsCount: () => void;
164
+ };
165
+ lastResult: () => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsYAxisProps>[];
166
+ dependencies: [(state: import("@mui/x-charts/internals").ChartState<[import("@mui/x-charts/internals").UseChartCartesianAxisSignature]>) => {
167
+ x: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsXAxisProps>[];
168
+ y: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsYAxisProps>[];
169
+ }];
170
+ recomputations: () => number;
171
+ resetRecomputations: () => void;
172
+ dependencyRecomputations: () => number;
173
+ resetDependencyRecomputations: () => void;
174
+ } & {
175
+ memoize: typeof import("reselect").weakMapMemoize;
176
+ argsMemoize: typeof import("reselect").weakMapMemoize;
177
+ }];
178
+ recomputations: () => number;
179
+ resetRecomputations: () => void;
180
+ dependencyRecomputations: () => number;
181
+ resetDependencyRecomputations: () => void;
182
+ } & {
183
+ memoize: typeof import("reselect").weakMapMemoize;
184
+ argsMemoize: typeof import("reselect").weakMapMemoize;
185
+ }];
186
+ recomputations: () => number;
187
+ resetRecomputations: () => void;
188
+ dependencyRecomputations: () => number;
189
+ resetDependencyRecomputations: () => void;
190
+ } & {
191
+ memoize: typeof import("reselect").weakMapMemoize;
192
+ argsMemoize: typeof import("reselect").weakMapMemoize;
193
+ }];
194
+ recomputations: () => number;
195
+ resetRecomputations: () => void;
196
+ dependencyRecomputations: () => number;
197
+ resetDependencyRecomputations: () => void;
198
+ } & {
199
+ argsMemoize: typeof import("reselect").weakMapMemoize;
200
+ memoize: typeof import("reselect").weakMapMemoize;
201
+ };
@@ -1,10 +1,4 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import { createSelector, selectorChartRawXAxis, selectorChartRawYAxis } from '@mui/x-charts/internals';
3
- import { creatZoomLookup } from "./creatZoomLookup.js";
1
+ import { createSelector, selectorChartZoomOptionsLookup } from '@mui/x-charts/internals';
4
2
  export const selectorChartZoomState = state => state.zoom;
5
- const selectorChartXZoomOptionsLookup = createSelector(selectorChartRawXAxis, creatZoomLookup('x'));
6
- const selectorChartYZoomOptionsLookup = createSelector(selectorChartRawYAxis, creatZoomLookup('y'));
7
- export const selectorChartZoomOptionsLookup = createSelector([selectorChartXZoomOptionsLookup, selectorChartYZoomOptionsLookup], (xLookup, yLookup) => _extends({}, xLookup, yLookup));
8
- export const selectorChartZoomData = createSelector(selectorChartZoomState, zoom => zoom.zoomData);
9
3
  export const selectorChartZoomIsInteracting = createSelector(selectorChartZoomState, zoom => zoom.isInteracting);
10
4
  export const selectorChartZoomIsEnabled = createSelector(selectorChartZoomOptionsLookup, optionsLookup => Object.keys(optionsLookup).length > 0);
@@ -0,0 +1,44 @@
1
+ import { UseChartSeriesSignature, ChartPluginSignature, UseChartCartesianAxisSignature, UseChartCartesianAxisDefaultizedParameters, ZoomData } from '@mui/x-charts/internals';
2
+ export interface UseChartProZoomParameters {
3
+ /**
4
+ * The list of zoom data related to each axis.
5
+ */
6
+ initialZoom?: ZoomData[];
7
+ /**
8
+ * Callback fired when the zoom has changed.
9
+ *
10
+ * @param {ZoomData[]} zoomData Updated zoom data.
11
+ */
12
+ onZoomChange?: (zoomData: ZoomData[] | ((zoomData: ZoomData[]) => ZoomData[])) => void;
13
+ }
14
+ export type UseChartProZoomDefaultizedParameters = UseChartProZoomParameters & UseChartCartesianAxisDefaultizedParameters;
15
+ export interface UseChartProZoomState {
16
+ zoom: {
17
+ /**
18
+ * Whether the user is currently interacting with the chart.
19
+ * This is useful to disable animations while the user is interacting.
20
+ */
21
+ isInteracting: boolean;
22
+ /**
23
+ * Mapping of axis id to the zoom data.
24
+ */
25
+ zoomData: ZoomData[];
26
+ };
27
+ }
28
+ export interface UseChartProZoomPublicApi {
29
+ /**
30
+ * Set the zoom data state.
31
+ * @param {ZoomData[] | ((prev: ZoomData[]) => ZoomData[])} value The new value. Can either be the new zoom data, or an updater function.
32
+ * @returns {void}
33
+ */
34
+ setZoomData: (value: ZoomData[] | ((prev: ZoomData[]) => ZoomData[])) => void;
35
+ }
36
+ export interface UseChartProZoomInstance extends UseChartProZoomPublicApi {}
37
+ export type UseChartProZoomSignature = ChartPluginSignature<{
38
+ params: UseChartProZoomParameters;
39
+ defaultizedParams: UseChartProZoomDefaultizedParameters;
40
+ state: UseChartProZoomState;
41
+ publicAPI: UseChartProZoomPublicApi;
42
+ instance: UseChartProZoomInstance;
43
+ dependencies: [UseChartSeriesSignature, UseChartCartesianAxisSignature];
44
+ }>;
@@ -0,0 +1,45 @@
1
+ import { DefaultizedZoomOptions, ZoomData } from '@mui/x-charts/internals';
2
+ /**
3
+ * Helper to get the range (in percents of a reference range) corresponding to a given scale.
4
+ * @param centerRatio {number} The ratio of the point that should not move between the previous and next range.
5
+ * @param scaleRatio {number} The target scale ratio.
6
+ * @returns The range to display.
7
+ */
8
+ export declare const zoomAtPoint: (centerRatio: number, scaleRatio: number, currentZoomData: ZoomData, options: DefaultizedZoomOptions) => number[];
9
+ /**
10
+ * Checks if the new span is valid.
11
+ */
12
+ export declare function isSpanValid(minRange: number, maxRange: number, isZoomIn: boolean, option: DefaultizedZoomOptions): boolean;
13
+ /**
14
+ * Get the scale ratio and if it's a zoom in or out from a wheel event.
15
+ */
16
+ export declare function getWheelScaleRatio(event: WheelEvent, step: number): {
17
+ scaleRatio: number;
18
+ isZoomIn: boolean;
19
+ };
20
+ /**
21
+ * Get the scale ratio and if it's a zoom in or out from a pinch gesture.
22
+ */
23
+ export declare function getPinchScaleRatio(curDiff: number, prevDiff: number, step: number): {
24
+ scaleRatio: number;
25
+ isZoomIn: boolean;
26
+ };
27
+ export declare function getDiff(eventCache: PointerEvent[]): number;
28
+ /**
29
+ * Get the ratio of the point in the horizontal center of the area.
30
+ */
31
+ export declare function getHorizontalCenterRatio(point: {
32
+ x: number;
33
+ y: number;
34
+ }, area: {
35
+ left: number;
36
+ width: number;
37
+ }): number;
38
+ export declare function preventDefault(event: TouchEvent): void;
39
+ export declare function getVerticalCenterRatio(point: {
40
+ x: number;
41
+ y: number;
42
+ }, area: {
43
+ top: number;
44
+ height: number;
45
+ }): number;
@@ -0,0 +1 @@
1
+ export declare const getReleaseInfo: () => any;
@@ -1,6 +1,6 @@
1
1
  import ponyfillGlobal from '@mui/utils/ponyfillGlobal';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTczODI5OTYwMDAwMA==";
3
+ const releaseInfo = "MTczOTc0NjgwMDAwMA==";
4
4
  if (process.env.NODE_ENV !== 'production') {
5
5
  // A simple hack to set the value in the test environment (has no build step).
6
6
  // eslint-disable-next-line no-useless-concat
@@ -0,0 +1,2 @@
1
+ export type { ZoomData } from '@mui/x-charts/internals';
2
+ export * from "./seriesType/index.js";