@mui/x-charts-pro 8.15.0 → 8.17.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 (204) hide show
  1. package/BarChartPro/BarChartPro.js +12 -2
  2. package/BarChartPro/BarChartPro.plugins.d.ts +1 -1
  3. package/BarChartPro/BarChartPro.plugins.js +1 -1
  4. package/CHANGELOG.md +207 -0
  5. package/ChartDataProviderPro/ChartDataProviderPro.d.ts +1 -2
  6. package/ChartDataProviderPro/ChartDataProviderPro.js +1 -3
  7. package/ChartZoomSlider/ChartZoomSlider.d.ts +1 -2
  8. package/ChartZoomSlider/internals/ChartAxisZoomSlider.d.ts +1 -2
  9. package/ChartZoomSlider/internals/ChartAxisZoomSlider.js +2 -2
  10. package/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.d.ts +1 -2
  11. package/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.js +1 -1
  12. package/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.d.ts +1 -2
  13. package/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.js +2 -2
  14. package/ChartZoomSlider/internals/ChartAxisZoomSliderPreviewContent.d.ts +1 -2
  15. package/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.d.ts +1 -1
  16. package/ChartZoomSlider/internals/ChartsTooltipZoomSliderValue.d.ts +1 -1
  17. package/ChartZoomSlider/internals/previews/AreaPreviewPlot.d.ts +1 -1
  18. package/ChartZoomSlider/internals/previews/AreaPreviewPlot.js +2 -2
  19. package/ChartZoomSlider/internals/previews/BarPreviewPlot.d.ts +1 -2
  20. package/ChartZoomSlider/internals/previews/BarPreviewPlot.js +2 -4
  21. package/ChartZoomSlider/internals/previews/LinePreviewPlot.d.ts +1 -1
  22. package/ChartZoomSlider/internals/previews/LinePreviewPlot.js +2 -2
  23. package/ChartZoomSlider/internals/previews/ScatterPreviewPlot.d.ts +1 -2
  24. package/ChartZoomSlider/internals/previews/ScatterPreviewPlot.js +2 -2
  25. package/ChartsToolbarPro/ChartsToolbarPro.d.ts +1 -2
  26. package/ChartsToolbarPro/internals/ChartsMenu.d.ts +1 -1
  27. package/FunnelChart/FunnelChart.js +1 -1
  28. package/FunnelChart/FunnelPlot.d.ts +1 -1
  29. package/FunnelChart/FunnelPlot.js +3 -23
  30. package/FunnelChart/coordinateMapper.d.ts +3 -0
  31. package/FunnelChart/coordinateMapper.js +18 -0
  32. package/FunnelChart/funnel.types.d.ts +1 -1
  33. package/FunnelChart/funnelAxisPlugin/computeAxisValue.js +1 -2
  34. package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.js +7 -7
  35. package/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.d.ts +6 -44
  36. package/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.js +3 -2
  37. package/FunnelChart/seriesConfig/getSeriesWithDefaultValues.js +5 -6
  38. package/FunnelChart/seriesConfig/index.d.ts +1 -1
  39. package/FunnelChart/seriesConfig/index.js +4 -2
  40. package/FunnelChart/seriesConfig/tooltipPosition.d.ts +3 -0
  41. package/FunnelChart/seriesConfig/tooltipPosition.js +62 -0
  42. package/Heatmap/Heatmap.js +1 -1
  43. package/Heatmap/Heatmap.plugins.d.ts +1 -1
  44. package/Heatmap/Heatmap.plugins.js +1 -1
  45. package/Heatmap/HeatmapItem.d.ts +1 -1
  46. package/Heatmap/HeatmapPlot.d.ts +1 -2
  47. package/Heatmap/HeatmapPlot.js +0 -2
  48. package/Heatmap/HeatmapTooltip/HeatmapTooltip.d.ts +1 -2
  49. package/Heatmap/HeatmapTooltip/HeatmapTooltip.js +9 -2
  50. package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.d.ts +1 -2
  51. package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.js +0 -2
  52. package/Heatmap/seriesConfig/getSeriesWithDefaultValues.js +3 -2
  53. package/Heatmap/seriesConfig/index.d.ts +1 -1
  54. package/Heatmap/seriesConfig/index.js +4 -2
  55. package/Heatmap/seriesConfig/tooltipPosition.d.ts +3 -0
  56. package/Heatmap/seriesConfig/tooltipPosition.js +57 -0
  57. package/LineChartPro/LineChartPro.js +11 -2
  58. package/LineChartPro/LineChartPro.plugins.d.ts +1 -1
  59. package/LineChartPro/LineChartPro.plugins.js +1 -1
  60. package/RadarChartPro/RadarChartPro.plugins.d.ts +1 -1
  61. package/RadarChartPro/RadarChartPro.plugins.js +1 -1
  62. package/SankeyChart/SankeyChart.js +1 -1
  63. package/SankeyChart/SankeyLinkElement.js +2 -2
  64. package/SankeyChart/SankeyNodeElement.js +2 -2
  65. package/SankeyChart/SankeyPlot.d.ts +1 -1
  66. package/SankeyChart/SankeyTooltip/SankeyTooltip.d.ts +1 -2
  67. package/SankeyChart/SankeyTooltip/SankeyTooltip.js +9 -2
  68. package/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.ts +1 -2
  69. package/SankeyChart/SankeyTooltip/SankeyTooltipContent.js +0 -2
  70. package/SankeyChart/plugins/useSankeyHighlight.js +8 -12
  71. package/SankeyChart/plugins/useSankeyHighlight.selectors.d.ts +19 -23
  72. package/SankeyChart/plugins/useSankeyHighlight.selectors.js +3 -3
  73. package/SankeyChart/seriesConfig/index.d.ts +1 -1
  74. package/SankeyChart/seriesConfig/index.js +2 -2
  75. package/ScatterChartPro/ScatterChartPro.js +11 -2
  76. package/ScatterChartPro/ScatterChartPro.plugins.d.ts +1 -1
  77. package/ScatterChartPro/ScatterChartPro.plugins.js +1 -1
  78. package/esm/BarChartPro/BarChartPro.js +12 -2
  79. package/esm/BarChartPro/BarChartPro.plugins.d.ts +1 -1
  80. package/esm/BarChartPro/BarChartPro.plugins.js +1 -1
  81. package/esm/ChartDataProviderPro/ChartDataProviderPro.d.ts +1 -2
  82. package/esm/ChartDataProviderPro/ChartDataProviderPro.js +1 -2
  83. package/esm/ChartZoomSlider/ChartZoomSlider.d.ts +1 -2
  84. package/esm/ChartZoomSlider/internals/ChartAxisZoomSlider.d.ts +1 -2
  85. package/esm/ChartZoomSlider/internals/ChartAxisZoomSlider.js +2 -2
  86. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.d.ts +1 -2
  87. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.js +1 -1
  88. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.d.ts +1 -2
  89. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.js +2 -2
  90. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreviewContent.d.ts +1 -2
  91. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.d.ts +1 -1
  92. package/esm/ChartZoomSlider/internals/ChartsTooltipZoomSliderValue.d.ts +1 -1
  93. package/esm/ChartZoomSlider/internals/previews/AreaPreviewPlot.d.ts +1 -1
  94. package/esm/ChartZoomSlider/internals/previews/AreaPreviewPlot.js +2 -2
  95. package/esm/ChartZoomSlider/internals/previews/BarPreviewPlot.d.ts +1 -2
  96. package/esm/ChartZoomSlider/internals/previews/BarPreviewPlot.js +2 -3
  97. package/esm/ChartZoomSlider/internals/previews/LinePreviewPlot.d.ts +1 -1
  98. package/esm/ChartZoomSlider/internals/previews/LinePreviewPlot.js +2 -2
  99. package/esm/ChartZoomSlider/internals/previews/ScatterPreviewPlot.d.ts +1 -2
  100. package/esm/ChartZoomSlider/internals/previews/ScatterPreviewPlot.js +2 -2
  101. package/esm/ChartsToolbarPro/ChartsToolbarPro.d.ts +1 -2
  102. package/esm/ChartsToolbarPro/internals/ChartsMenu.d.ts +1 -1
  103. package/esm/FunnelChart/FunnelChart.js +1 -1
  104. package/esm/FunnelChart/FunnelPlot.d.ts +1 -1
  105. package/esm/FunnelChart/FunnelPlot.js +4 -24
  106. package/esm/FunnelChart/coordinateMapper.d.ts +3 -0
  107. package/esm/FunnelChart/coordinateMapper.js +11 -0
  108. package/esm/FunnelChart/funnel.types.d.ts +1 -1
  109. package/esm/FunnelChart/funnelAxisPlugin/computeAxisValue.js +1 -2
  110. package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.js +7 -7
  111. package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.d.ts +6 -44
  112. package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.js +3 -2
  113. package/esm/FunnelChart/seriesConfig/getSeriesWithDefaultValues.js +5 -6
  114. package/esm/FunnelChart/seriesConfig/index.d.ts +1 -1
  115. package/esm/FunnelChart/seriesConfig/index.js +3 -1
  116. package/esm/FunnelChart/seriesConfig/tooltipPosition.d.ts +3 -0
  117. package/esm/FunnelChart/seriesConfig/tooltipPosition.js +56 -0
  118. package/esm/Heatmap/Heatmap.js +1 -1
  119. package/esm/Heatmap/Heatmap.plugins.d.ts +1 -1
  120. package/esm/Heatmap/Heatmap.plugins.js +1 -1
  121. package/esm/Heatmap/HeatmapItem.d.ts +1 -1
  122. package/esm/Heatmap/HeatmapPlot.d.ts +1 -2
  123. package/esm/Heatmap/HeatmapPlot.js +0 -1
  124. package/esm/Heatmap/HeatmapTooltip/HeatmapTooltip.d.ts +1 -2
  125. package/esm/Heatmap/HeatmapTooltip/HeatmapTooltip.js +9 -1
  126. package/esm/Heatmap/HeatmapTooltip/HeatmapTooltipContent.d.ts +1 -2
  127. package/esm/Heatmap/HeatmapTooltip/HeatmapTooltipContent.js +0 -1
  128. package/esm/Heatmap/seriesConfig/getSeriesWithDefaultValues.js +3 -2
  129. package/esm/Heatmap/seriesConfig/index.d.ts +1 -1
  130. package/esm/Heatmap/seriesConfig/index.js +3 -1
  131. package/esm/Heatmap/seriesConfig/tooltipPosition.d.ts +3 -0
  132. package/esm/Heatmap/seriesConfig/tooltipPosition.js +51 -0
  133. package/esm/LineChartPro/LineChartPro.js +11 -2
  134. package/esm/LineChartPro/LineChartPro.plugins.d.ts +1 -1
  135. package/esm/LineChartPro/LineChartPro.plugins.js +1 -1
  136. package/esm/RadarChartPro/RadarChartPro.plugins.d.ts +1 -1
  137. package/esm/RadarChartPro/RadarChartPro.plugins.js +1 -1
  138. package/esm/SankeyChart/SankeyChart.js +1 -1
  139. package/esm/SankeyChart/SankeyLinkElement.js +2 -2
  140. package/esm/SankeyChart/SankeyNodeElement.js +2 -2
  141. package/esm/SankeyChart/SankeyPlot.d.ts +1 -1
  142. package/esm/SankeyChart/SankeyTooltip/SankeyTooltip.d.ts +1 -2
  143. package/esm/SankeyChart/SankeyTooltip/SankeyTooltip.js +9 -1
  144. package/esm/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.ts +1 -2
  145. package/esm/SankeyChart/SankeyTooltip/SankeyTooltipContent.js +0 -1
  146. package/esm/SankeyChart/plugins/useSankeyHighlight.js +8 -12
  147. package/esm/SankeyChart/plugins/useSankeyHighlight.selectors.d.ts +19 -23
  148. package/esm/SankeyChart/plugins/useSankeyHighlight.selectors.js +3 -3
  149. package/esm/SankeyChart/seriesConfig/index.d.ts +1 -1
  150. package/esm/SankeyChart/seriesConfig/index.js +1 -1
  151. package/esm/ScatterChartPro/ScatterChartPro.js +11 -2
  152. package/esm/ScatterChartPro/ScatterChartPro.plugins.d.ts +1 -1
  153. package/esm/ScatterChartPro/ScatterChartPro.plugins.js +1 -1
  154. package/esm/index.js +1 -1
  155. package/esm/internals/material/components/BaseMenuItem.d.ts +1 -2
  156. package/esm/internals/material/components/BaseMenuItem.js +0 -1
  157. package/esm/internals/material/components/BasePopper.d.ts +1 -2
  158. package/esm/internals/plugins/allPlugins.d.ts +5 -5
  159. package/esm/internals/plugins/allPlugins.js +3 -3
  160. package/esm/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.d.ts +19 -4
  161. package/esm/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.js +4 -3
  162. package/esm/internals/plugins/useChartProZoom/ZoomInteractionConfig.types.d.ts +11 -3
  163. package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.js +23 -15
  164. package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.js +27 -15
  165. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoom.utils.d.ts +2 -2
  166. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoom.utils.js +2 -2
  167. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.d.ts +8 -0
  168. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.js +100 -0
  169. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.d.ts +8 -0
  170. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.js +57 -0
  171. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.js +2 -2
  172. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.js +2 -2
  173. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.js +2 -2
  174. package/esm/internals/plugins/useChartProZoom/useChartProZoom.js +34 -54
  175. package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +11 -27
  176. package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +1 -1
  177. package/esm/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +2 -2
  178. package/esm/models/seriesType/heatmap.d.ts +1 -1
  179. package/index.js +1 -1
  180. package/internals/material/components/BaseMenuItem.d.ts +1 -2
  181. package/internals/material/components/BaseMenuItem.js +0 -2
  182. package/internals/material/components/BasePopper.d.ts +1 -2
  183. package/internals/plugins/allPlugins.d.ts +5 -5
  184. package/internals/plugins/allPlugins.js +2 -2
  185. package/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.d.ts +19 -4
  186. package/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.js +4 -3
  187. package/internals/plugins/useChartProZoom/ZoomInteractionConfig.types.d.ts +11 -3
  188. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.js +23 -15
  189. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.js +27 -15
  190. package/internals/plugins/useChartProZoom/gestureHooks/useZoom.utils.d.ts +2 -2
  191. package/internals/plugins/useChartProZoom/gestureHooks/useZoom.utils.js +2 -2
  192. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.d.ts +8 -0
  193. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.js +107 -0
  194. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.d.ts +8 -0
  195. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.js +64 -0
  196. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.js +2 -2
  197. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.js +2 -2
  198. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.js +2 -2
  199. package/internals/plugins/useChartProZoom/useChartProZoom.js +34 -54
  200. package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +11 -27
  201. package/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +1 -1
  202. package/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +2 -2
  203. package/models/seriesType/heatmap.d.ts +1 -1
  204. package/package.json +4 -4
@@ -17,6 +17,7 @@ import { ChartsClipPath } from '@mui/x-charts/ChartsClipPath';
17
17
  import { ChartsSurface } from '@mui/x-charts/ChartsSurface';
18
18
  import { useLineChartProps } from '@mui/x-charts/internals';
19
19
  import { ChartsWrapper } from '@mui/x-charts/ChartsWrapper';
20
+ import { ChartsBrushOverlay } from '@mui/x-charts/ChartsBrushOverlay';
20
21
  import { ChartZoomSlider } from "../ChartZoomSlider/index.js";
21
22
  import { ChartsToolbarPro } from "../ChartsToolbarPro/index.js";
22
23
  import { useChartContainerProProps } from "../ChartContainerPro/useChartContainerProProps.js";
@@ -82,7 +83,7 @@ const LineChartPro = /*#__PURE__*/React.forwardRef(function LineChartPro(inProps
82
83
  })), /*#__PURE__*/_jsx(ChartsAxis, _extends({}, chartsAxisProps)), /*#__PURE__*/_jsx(ChartZoomSlider, {}), /*#__PURE__*/_jsx("g", {
83
84
  "data-drawing-container": true,
84
85
  children: /*#__PURE__*/_jsx(MarkPlot, _extends({}, markPlotProps))
85
- }), /*#__PURE__*/_jsx(LineHighlightPlot, _extends({}, lineHighlightPlotProps)), /*#__PURE__*/_jsx(ChartsClipPath, _extends({}, clipPathProps)), children]
86
+ }), /*#__PURE__*/_jsx(LineHighlightPlot, _extends({}, lineHighlightPlotProps)), /*#__PURE__*/_jsx(ChartsBrushOverlay, {}), /*#__PURE__*/_jsx(ChartsClipPath, _extends({}, clipPathProps)), children]
86
87
  })), !props.loading && /*#__PURE__*/_jsx(Tooltip, _extends({}, props.slotProps?.tooltip))]
87
88
  }))
88
89
  }));
@@ -1449,7 +1450,7 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
1449
1450
  requiredKeys: PropTypes.arrayOf(PropTypes.string),
1450
1451
  type: PropTypes.oneOf(['pressAndDrag']).isRequired
1451
1452
  })]).isRequired),
1452
- zoom: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf(['pinch', 'tapAndDrag', 'wheel']), PropTypes.shape({
1453
+ zoom: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf(['brush', 'doubleTapReset', 'pinch', 'tapAndDrag', 'wheel']), PropTypes.shape({
1453
1454
  pointerMode: PropTypes.any,
1454
1455
  requiredKeys: PropTypes.arrayOf(PropTypes.string),
1455
1456
  type: PropTypes.oneOf(['wheel']).isRequired
@@ -1461,6 +1462,14 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
1461
1462
  pointerMode: PropTypes.oneOf(['mouse', 'touch']),
1462
1463
  requiredKeys: PropTypes.arrayOf(PropTypes.string),
1463
1464
  type: PropTypes.oneOf(['tapAndDrag']).isRequired
1465
+ }), PropTypes.shape({
1466
+ pointerMode: PropTypes.oneOf(['mouse', 'touch']),
1467
+ requiredKeys: PropTypes.arrayOf(PropTypes.string),
1468
+ type: PropTypes.oneOf(['doubleTapReset']).isRequired
1469
+ }), PropTypes.shape({
1470
+ pointerMode: PropTypes.any,
1471
+ requiredKeys: PropTypes.array,
1472
+ type: PropTypes.oneOf(['brush']).isRequired
1464
1473
  })]).isRequired)
1465
1474
  })
1466
1475
  } : void 0;
@@ -1,5 +1,5 @@
1
1
  import { UseChartZAxisSignature, UseChartCartesianAxisSignature, UseChartInteractionSignature, UseChartHighlightSignature, UseChartKeyboardNavigationSignature, UseChartBrushSignature, ConvertSignaturesIntoPlugins } from '@mui/x-charts/internals';
2
2
  import { UseChartProExportSignature } from "../internals/plugins/useChartProExport/index.js";
3
3
  import { UseChartProZoomSignature } from "../internals/plugins/useChartProZoom/index.js";
4
- export type LineChartProPluginSignatures = [UseChartZAxisSignature, UseChartBrushSignature, UseChartCartesianAxisSignature<'line'>, UseChartInteractionSignature, UseChartHighlightSignature, UseChartKeyboardNavigationSignature, UseChartProZoomSignature, UseChartProExportSignature];
4
+ export type LineChartProPluginSignatures = [UseChartZAxisSignature, UseChartBrushSignature, UseChartInteractionSignature, UseChartCartesianAxisSignature<'line'>, UseChartHighlightSignature, UseChartKeyboardNavigationSignature, UseChartProZoomSignature, UseChartProExportSignature];
5
5
  export declare const LINE_CHART_PRO_PLUGINS: ConvertSignaturesIntoPlugins<LineChartProPluginSignatures>;
@@ -1,4 +1,4 @@
1
1
  import { useChartZAxis, useChartCartesianAxis, useChartInteraction, useChartHighlight, useChartKeyboardNavigation, useChartBrush } from '@mui/x-charts/internals';
2
2
  import { useChartProExport } from "../internals/plugins/useChartProExport/index.js";
3
3
  import { useChartProZoom } from "../internals/plugins/useChartProZoom/index.js";
4
- export const LINE_CHART_PRO_PLUGINS = [useChartZAxis, useChartBrush, useChartCartesianAxis, useChartInteraction, useChartHighlight, useChartKeyboardNavigation, useChartProZoom, useChartProExport];
4
+ export const LINE_CHART_PRO_PLUGINS = [useChartZAxis, useChartBrush, useChartInteraction, useChartCartesianAxis, useChartHighlight, useChartKeyboardNavigation, useChartProZoom, useChartProExport];
@@ -1,4 +1,4 @@
1
1
  import { ConvertSignaturesIntoPlugins, UseChartHighlightSignature, UseChartInteractionSignature, UseChartPolarAxisSignature } from '@mui/x-charts/internals';
2
2
  import { UseChartProExportSignature } from "../internals/plugins/useChartProExport/index.js";
3
- export type RadarChartProPluginSignatures = [UseChartPolarAxisSignature, UseChartInteractionSignature, UseChartHighlightSignature, UseChartProExportSignature];
3
+ export type RadarChartProPluginSignatures = [UseChartInteractionSignature, UseChartPolarAxisSignature, UseChartHighlightSignature, UseChartProExportSignature];
4
4
  export declare const RADAR_CHART_PRO_PLUGINS: ConvertSignaturesIntoPlugins<RadarChartProPluginSignatures>;
@@ -1,3 +1,3 @@
1
1
  import { useChartHighlight, useChartInteraction, useChartPolarAxis } from '@mui/x-charts/internals';
2
2
  import { useChartProExport } from "../internals/plugins/useChartProExport/index.js";
3
- export const RADAR_CHART_PRO_PLUGINS = [useChartPolarAxis, useChartInteraction, useChartHighlight, useChartProExport];
3
+ export const RADAR_CHART_PRO_PLUGINS = [useChartInteraction, useChartPolarAxis, useChartHighlight, useChartProExport];
@@ -12,7 +12,7 @@ import { useChartContainerProProps } from "../ChartContainerPro/useChartContaine
12
12
  import { SankeyPlot } from "./SankeyPlot.js";
13
13
  import { useSankeyChartProps } from "./useSankeyChartProps.js";
14
14
  import { SANKEY_CHART_PLUGINS } from "./SankeyChart.plugins.js";
15
- import { seriesConfig as sankeySeriesConfig } from "./seriesConfig/index.js";
15
+ import { sankeySeriesConfig } from "./seriesConfig/index.js";
16
16
  import { SankeyTooltip } from "./SankeyTooltip/index.js";
17
17
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
18
18
  const seriesConfig = {
@@ -26,8 +26,8 @@ export const SankeyLinkElement = /*#__PURE__*/React.forwardRef(function SankeyLi
26
26
  sourceId: link.source.id,
27
27
  link
28
28
  };
29
- const isHighlighted = useSelector(store, selectorIsLinkHighlighted, [link]);
30
- const isFaded = useSelector(store, selectorIsSankeyItemFaded, [isHighlighted]);
29
+ const isHighlighted = useSelector(store, selectorIsLinkHighlighted, link);
30
+ const isFaded = useSelector(store, selectorIsSankeyItemFaded, isHighlighted);
31
31
 
32
32
  // Add interaction props for tooltips
33
33
  const interactionProps = useInteractionItemProps(identifier);
@@ -39,8 +39,8 @@ export const SankeyNodeElement = /*#__PURE__*/React.forwardRef(function SankeyNo
39
39
  nodeId: node.id,
40
40
  node
41
41
  };
42
- const isHighlighted = useSelector(store, selectorIsNodeHighlighted, [node]);
43
- const isFaded = useSelector(store, selectorIsSankeyItemFaded, [isHighlighted]);
42
+ const isHighlighted = useSelector(store, selectorIsNodeHighlighted, node.id);
43
+ const isFaded = useSelector(store, selectorIsSankeyItemFaded, isHighlighted);
44
44
 
45
45
  // Add interaction props for tooltips
46
46
  const interactionProps = useInteractionItemProps(identifier);
@@ -22,7 +22,7 @@ export interface SankeyPlotProps {
22
22
  /**
23
23
  * Renders a Sankey diagram plot.
24
24
  */
25
- declare function SankeyPlot(props: SankeyPlotProps): React.JSX.Element | null;
25
+ declare function SankeyPlot(props: SankeyPlotProps): import("react/jsx-runtime").JSX.Element | null;
26
26
  declare namespace SankeyPlot {
27
27
  var propTypes: any;
28
28
  }
@@ -1,6 +1,5 @@
1
- import * as React from 'react';
2
1
  import { SankeyTooltipProps } from "./SankeyTooltip.types.js";
3
- declare function SankeyTooltip(props: SankeyTooltipProps): React.JSX.Element;
2
+ declare function SankeyTooltip(props: SankeyTooltipProps): import("react/jsx-runtime").JSX.Element;
4
3
  declare namespace SankeyTooltip {
5
4
  var propTypes: any;
6
5
  }
@@ -1,7 +1,6 @@
1
1
  'use client';
2
2
 
3
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
- import * as React from 'react';
5
4
  import PropTypes from 'prop-types';
6
5
  import { ChartsTooltipContainer } from '@mui/x-charts/ChartsTooltip';
7
6
  import { SankeyTooltipContent } from "./SankeyTooltipContent.js";
@@ -23,6 +22,11 @@ process.env.NODE_ENV !== "production" ? SankeyTooltip.propTypes = {
23
22
  // | These PropTypes are generated from the TypeScript type definitions |
24
23
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
25
24
  // ----------------------------------------------------------------------
25
+ /**
26
+ * Determine if the tooltip should be placed on the pointer location or on the node.
27
+ * @default 'pointer'
28
+ */
29
+ anchor: PropTypes.oneOf(['node', 'pointer']),
26
30
  /**
27
31
  * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
28
32
  * or a function that returns either.
@@ -171,6 +175,10 @@ process.env.NODE_ENV !== "production" ? SankeyTooltip.propTypes = {
171
175
  update: PropTypes.func.isRequired
172
176
  })
173
177
  })]),
178
+ /**
179
+ * Determines the tooltip position relatively to the anchor.
180
+ */
181
+ position: PropTypes.oneOf(['bottom', 'left', 'right', 'top']),
174
182
  /**
175
183
  * The props used for each slot inside the Popper.
176
184
  * @default {}
@@ -1,7 +1,6 @@
1
- import * as React from 'react';
2
1
  import { SankeyTooltipProps } from "./SankeyTooltip.types.js";
3
2
  export interface SankeyTooltipContentProps extends Pick<SankeyTooltipProps, 'classes'> {}
4
- export declare function SankeyTooltipContent(props: SankeyTooltipContentProps): React.JSX.Element | null;
3
+ export declare function SankeyTooltipContent(props: SankeyTooltipContentProps): import("react/jsx-runtime").JSX.Element | null;
5
4
  export declare namespace SankeyTooltipContent {
6
5
  var propTypes: any;
7
6
  }
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import PropTypes from 'prop-types';
5
4
  import clsx from 'clsx';
6
5
  import { ChartsTooltipPaper, ChartsTooltipTable, ChartsTooltipRow, ChartsTooltipCell, useItemTooltip } from '@mui/x-charts/ChartsTooltip';
@@ -19,18 +19,16 @@ export const useSankeyHighlight = ({
19
19
  defaultValue: null
20
20
  });
21
21
  useEnhancedEffect(() => {
22
- store.update(prevState => prevState.highlight.item === params.highlightedItem ? prevState : _extends({}, prevState, {
23
- highlight: _extends({}, prevState.highlight, {
22
+ if (store.state.highlight.item !== params.highlightedItem) {
23
+ store.set('highlight', _extends({}, store.state.highlight, {
24
24
  item: params.highlightedItem
25
- })
26
- }));
25
+ }));
26
+ }
27
27
  }, [store, params.highlightedItem]);
28
28
  const clearHighlight = useEventCallback(() => {
29
29
  params.onHighlightChange?.(null);
30
- store.update(prev => _extends({}, prev, {
31
- highlight: {
32
- item: null
33
- }
30
+ store.set('highlight', _extends({}, store.state.highlight, {
31
+ item: null
34
32
  }));
35
33
  });
36
34
  const setHighlight = useEventCallback(newItem => {
@@ -39,10 +37,8 @@ export const useSankeyHighlight = ({
39
37
  return;
40
38
  }
41
39
  params.onHighlightChange?.(newItem);
42
- store.update(prev => _extends({}, prev, {
43
- highlight: {
44
- item: newItem
45
- }
40
+ store.set('highlight', _extends({}, store.state.highlight, {
41
+ item: newItem
46
42
  }));
47
43
  });
48
44
  return {
@@ -1,63 +1,57 @@
1
- import type { SankeyLayoutLink, SankeyLayoutNode } from "../sankey.types.js";
1
+ import type { SankeyLayoutLink, SankeyNodeId } from "../sankey.types.js";
2
2
  import type { SankeyLinkFade, SankeyLinkHighlight, SankeyNodeFade, SankeyNodeHighlight } from "../sankey.highlight.types.js";
3
3
  /**
4
4
  * Get the node highlight configuration from the Sankey series.
5
5
  * Defaults to 'nodes' if not specified.
6
6
  */
7
- export declare const selectorNodeHighlightConfig: import("reselect").Selector<import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & 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 & Partial<{}> & {
7
+ export declare const selectorNodeHighlightConfig: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & 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 & Partial<{}> & {
8
8
  cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
9
- } & {
10
- cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
11
- }, SankeyNodeHighlight, any[]>;
9
+ }) => SankeyNodeHighlight;
12
10
  /**
13
11
  * Get the node fade configuration from the Sankey series.
14
12
  * Defaults to 'none' if not specified.
15
13
  */
16
- export declare const selectorNodeFadeConfig: import("reselect").Selector<import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & 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 & Partial<{}> & {
17
- cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
18
- } & {
14
+ export declare const selectorNodeFadeConfig: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & 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 & Partial<{}> & {
19
15
  cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
20
- }, SankeyNodeFade, any[]>;
16
+ }) => SankeyNodeFade;
21
17
  /**
22
18
  * Get the link highlight configuration from the Sankey series.
23
19
  * Defaults to 'links' if not specified.
24
20
  */
25
- export declare const selectorLinkHighlightConfig: import("reselect").Selector<import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & 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 & Partial<{}> & {
21
+ export declare const selectorLinkHighlightConfig: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & 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 & Partial<{}> & {
26
22
  cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
27
- } & {
28
- cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
29
- }, SankeyLinkHighlight, any[]>;
23
+ }) => SankeyLinkHighlight;
30
24
  /**
31
25
  * Get the link fade configuration from the Sankey series.
32
26
  * Defaults to 'none' if not specified.
33
27
  */
34
- export declare const selectorLinkFadeConfig: import("reselect").Selector<import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & 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 & Partial<{}> & {
35
- cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
36
- } & {
28
+ export declare const selectorLinkFadeConfig: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & 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 & Partial<{}> & {
37
29
  cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
38
- }, SankeyLinkFade, any[]>;
30
+ }) => SankeyLinkFade;
39
31
  /**
40
32
  * Get the currently highlighted item in the Sankey chart.
41
33
  * @param {UseSankeyHighlightSignature['state']} state The state of the chart.
42
34
  * @returns {SankeyItemIdentifier | null} The highlighted item identifier or null.
43
35
  */
44
- export declare const selectorSankeyHighlightedItem: import("reselect").Selector<import("./useSankeyHighlight.types.js").UseSankeyHighlightState & {
45
- cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
46
- }, import("../index.js").SankeyItemIdentifier | null, []>;
36
+ export declare const selectorSankeyHighlightedItem: (args_0: import("./useSankeyHighlight.types.js").UseSankeyHighlightState) => import("../index.js").SankeyItemIdentifier | null;
47
37
  /**
48
38
  * Determines if a specific node should be highlighted.
49
39
  * A node is highlighted if:
50
40
  * - It's the highlighted node (unless highlight mode is 'none')
51
41
  * - It's connected to a highlighted link (based on linkOptions.highlight)
52
42
  */
53
- export declare const selectorIsNodeHighlighted: import("reselect").Selector<any, boolean, [node: SankeyLayoutNode]>;
43
+ export declare const selectorIsNodeHighlighted: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & 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 & Partial<{}> & {
44
+ cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
45
+ }, nodeId: SankeyNodeId) => boolean;
54
46
  /**
55
47
  * Selector that determines if a specific link should be highlighted.
56
48
  * A link is highlighted if:
57
49
  * - It's the highlighted link (unless highlight mode is 'none')
58
50
  * - It's connected to a highlighted node (based on nodeOptions.highlight)
59
51
  */
60
- export declare const selectorIsLinkHighlighted: import("reselect").Selector<any, boolean, [link: SankeyLayoutLink]>;
52
+ export declare const selectorIsLinkHighlighted: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & 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 & Partial<{}> & {
53
+ cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
54
+ }, link: SankeyLayoutLink) => boolean;
61
55
  /**
62
56
  * Selector that determines if an item should be faded.
63
57
  * An item is faded if:
@@ -65,4 +59,6 @@ export declare const selectorIsLinkHighlighted: import("reselect").Selector<any,
65
59
  * - This item is not highlighted
66
60
  * - The fade mode is 'global' for the highlighted element type
67
61
  */
68
- export declare const selectorIsSankeyItemFaded: import("reselect").Selector<any, boolean, [isHighlighted: any]>;
62
+ export declare const selectorIsSankeyItemFaded: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & 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 & Partial<{}> & {
63
+ cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
64
+ }, isHighlighted: boolean) => boolean;
@@ -43,7 +43,7 @@ export const selectorSankeyHighlightedItem = createSelector([selectorSankeyHighl
43
43
  * - It's the highlighted node (unless highlight mode is 'none')
44
44
  * - It's connected to a highlighted link (based on linkOptions.highlight)
45
45
  */
46
- export const selectorIsNodeHighlighted = createSelector([selectorSankeyHighlightedItem, selectorNodeHighlightConfig, selectorLinkHighlightConfig, (_, node) => node.id], (highlightedItem, nodeHighlight, linkHighlight, nodeId) => {
46
+ export const selectorIsNodeHighlighted = createSelector([selectorSankeyHighlightedItem, selectorNodeHighlightConfig, selectorLinkHighlightConfig], (highlightedItem, nodeHighlight, linkHighlight, nodeId) => {
47
47
  if (!highlightedItem) {
48
48
  return false;
49
49
  }
@@ -78,7 +78,7 @@ export const selectorIsNodeHighlighted = createSelector([selectorSankeyHighlight
78
78
  * - It's the highlighted link (unless highlight mode is 'none')
79
79
  * - It's connected to a highlighted node (based on nodeOptions.highlight)
80
80
  */
81
- export const selectorIsLinkHighlighted = createSelector([selectorSankeyHighlightedItem, selectorNodeHighlightConfig, selectorLinkHighlightConfig, (_, link) => link], (highlightedItem, nodeHighlight, linkHighlight, link) => {
81
+ export const selectorIsLinkHighlighted = createSelector([selectorSankeyHighlightedItem, selectorNodeHighlightConfig, selectorLinkHighlightConfig], (highlightedItem, nodeHighlight, linkHighlight, link) => {
82
82
  if (!highlightedItem) {
83
83
  return false;
84
84
  }
@@ -111,7 +111,7 @@ export const selectorIsLinkHighlighted = createSelector([selectorSankeyHighlight
111
111
  * - This item is not highlighted
112
112
  * - The fade mode is 'global' for the highlighted element type
113
113
  */
114
- export const selectorIsSankeyItemFaded = createSelector([selectorSankeyHighlightedItem, selectorNodeFadeConfig, selectorLinkFadeConfig, (_, isHighlighted) => isHighlighted], (highlightedItem, nodeFade, linkFade, isHighlighted) => {
114
+ export const selectorIsSankeyItemFaded = createSelector([selectorSankeyHighlightedItem, selectorNodeFadeConfig, selectorLinkFadeConfig], (highlightedItem, nodeFade, linkFade, isHighlighted) => {
115
115
  if (!highlightedItem || isHighlighted) {
116
116
  return false;
117
117
  }
@@ -1,2 +1,2 @@
1
1
  import type { ChartSeriesTypeConfig } from '@mui/x-charts/internals';
2
- export declare const seriesConfig: ChartSeriesTypeConfig<'sankey'>;
2
+ export declare const sankeySeriesConfig: ChartSeriesTypeConfig<'sankey'>;
@@ -5,7 +5,7 @@ import { tooltipGetter } from "./tooltipGetter.js";
5
5
  const seriesProcessor = series => series;
6
6
  const colorProcessor = series => series;
7
7
  const legendGetter = () => [];
8
- export const seriesConfig = {
8
+ export const sankeySeriesConfig = {
9
9
  seriesProcessor,
10
10
  colorProcessor,
11
11
  legendGetter,
@@ -16,6 +16,7 @@ import { ChartsAxisHighlight } from '@mui/x-charts/ChartsAxisHighlight';
16
16
  import { ChartsTooltip } from '@mui/x-charts/ChartsTooltip';
17
17
  import { useScatterChartProps } from '@mui/x-charts/internals';
18
18
  import { ChartsWrapper } from '@mui/x-charts/ChartsWrapper';
19
+ import { ChartsBrushOverlay } from '@mui/x-charts/ChartsBrushOverlay';
19
20
  import { ChartZoomSlider } from "../ChartZoomSlider/index.js";
20
21
  import { ChartsToolbarPro } from "../ChartsToolbarPro/index.js";
21
22
  import { useChartContainerProProps } from "../ChartContainerPro/useChartContainerProProps.js";
@@ -74,7 +75,7 @@ const ScatterChartPro = /*#__PURE__*/React.forwardRef(function ScatterChartPro(i
74
75
  children: [/*#__PURE__*/_jsx(ChartsAxis, _extends({}, chartsAxisProps)), /*#__PURE__*/_jsx(ChartZoomSlider, {}), /*#__PURE__*/_jsx(ChartsGrid, _extends({}, gridProps)), /*#__PURE__*/_jsx("g", {
75
76
  "data-drawing-container": true,
76
77
  children: /*#__PURE__*/_jsx(ScatterPlot, _extends({}, scatterPlotProps))
77
- }), /*#__PURE__*/_jsx(ChartsOverlay, _extends({}, overlayProps)), /*#__PURE__*/_jsx(ChartsAxisHighlight, _extends({}, axisHighlightProps)), children]
78
+ }), /*#__PURE__*/_jsx(ChartsOverlay, _extends({}, overlayProps)), /*#__PURE__*/_jsx(ChartsAxisHighlight, _extends({}, axisHighlightProps)), /*#__PURE__*/_jsx(ChartsBrushOverlay, {}), children]
78
79
  })), !props.loading && /*#__PURE__*/_jsx(Tooltip, _extends({
79
80
  trigger: "item"
80
81
  }, props.slotProps?.tooltip))]
@@ -1431,7 +1432,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
1431
1432
  requiredKeys: PropTypes.arrayOf(PropTypes.string),
1432
1433
  type: PropTypes.oneOf(['pressAndDrag']).isRequired
1433
1434
  })]).isRequired),
1434
- zoom: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf(['pinch', 'tapAndDrag', 'wheel']), PropTypes.shape({
1435
+ zoom: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf(['brush', 'doubleTapReset', 'pinch', 'tapAndDrag', 'wheel']), PropTypes.shape({
1435
1436
  pointerMode: PropTypes.any,
1436
1437
  requiredKeys: PropTypes.arrayOf(PropTypes.string),
1437
1438
  type: PropTypes.oneOf(['wheel']).isRequired
@@ -1443,6 +1444,14 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
1443
1444
  pointerMode: PropTypes.oneOf(['mouse', 'touch']),
1444
1445
  requiredKeys: PropTypes.arrayOf(PropTypes.string),
1445
1446
  type: PropTypes.oneOf(['tapAndDrag']).isRequired
1447
+ }), PropTypes.shape({
1448
+ pointerMode: PropTypes.oneOf(['mouse', 'touch']),
1449
+ requiredKeys: PropTypes.arrayOf(PropTypes.string),
1450
+ type: PropTypes.oneOf(['doubleTapReset']).isRequired
1451
+ }), PropTypes.shape({
1452
+ pointerMode: PropTypes.any,
1453
+ requiredKeys: PropTypes.array,
1454
+ type: PropTypes.oneOf(['brush']).isRequired
1446
1455
  })]).isRequired)
1447
1456
  })
1448
1457
  } : void 0;
@@ -1,5 +1,5 @@
1
1
  import { UseChartZAxisSignature, UseChartCartesianAxisSignature, UseChartInteractionSignature, UseChartHighlightSignature, UseChartClosestPointSignature, UseChartKeyboardNavigationSignature, UseChartBrushSignature, ConvertSignaturesIntoPlugins } from '@mui/x-charts/internals';
2
2
  import { UseChartProExportSignature } from "../internals/plugins/useChartProExport/index.js";
3
3
  import { UseChartProZoomSignature } from "../internals/plugins/useChartProZoom/index.js";
4
- export type ScatterChartProPluginSignatures = [UseChartZAxisSignature, UseChartBrushSignature, UseChartCartesianAxisSignature<'scatter'>, UseChartInteractionSignature, UseChartHighlightSignature, UseChartClosestPointSignature, UseChartKeyboardNavigationSignature, UseChartProZoomSignature, UseChartProExportSignature];
4
+ export type ScatterChartProPluginSignatures = [UseChartZAxisSignature, UseChartBrushSignature, UseChartInteractionSignature, UseChartCartesianAxisSignature<'scatter'>, UseChartHighlightSignature, UseChartClosestPointSignature, UseChartKeyboardNavigationSignature, UseChartProZoomSignature, UseChartProExportSignature];
5
5
  export declare const SCATTER_CHART_PRO_PLUGINS: ConvertSignaturesIntoPlugins<ScatterChartProPluginSignatures>;
@@ -1,4 +1,4 @@
1
1
  import { useChartZAxis, useChartCartesianAxis, useChartInteraction, useChartHighlight, useChartClosestPoint, useChartKeyboardNavigation, useChartBrush } from '@mui/x-charts/internals';
2
2
  import { useChartProExport } from "../internals/plugins/useChartProExport/index.js";
3
3
  import { useChartProZoom } from "../internals/plugins/useChartProZoom/index.js";
4
- export const SCATTER_CHART_PRO_PLUGINS = [useChartZAxis, useChartBrush, useChartCartesianAxis, useChartInteraction, useChartHighlight, useChartClosestPoint, useChartKeyboardNavigation, useChartProZoom, useChartProExport];
4
+ export const SCATTER_CHART_PRO_PLUGINS = [useChartZAxis, useChartBrush, useChartInteraction, useChartCartesianAxis, useChartHighlight, useChartClosestPoint, useChartKeyboardNavigation, useChartProZoom, useChartProExport];
package/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-charts-pro v8.15.0
2
+ * @mui/x-charts-pro v8.17.0
3
3
  *
4
4
  * @license SEE LICENSE IN LICENSE
5
5
  * This source code is licensed under the SEE LICENSE IN LICENSE license found in the
@@ -1,3 +1,2 @@
1
- import * as React from 'react';
2
1
  import { ChartBaseMenuItemProps } from "../../slots/chartBaseSlotProps.js";
3
- export declare function BaseMenuItem(props: ChartBaseMenuItemProps): React.JSX.Element;
2
+ export declare function BaseMenuItem(props: ChartBaseMenuItemProps): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
3
  const _excluded = ["inert", "iconStart", "iconEnd", "children"];
4
- import * as React from 'react';
5
4
  import MenuItem from '@mui/material/MenuItem';
6
5
  import ListItemIcon from '@mui/material/ListItemIcon';
7
6
  import ListItemText from '@mui/material/ListItemText';
@@ -1,3 +1,2 @@
1
- import * as React from 'react';
2
1
  import { ChartBasePopperProps } from "../../slots/chartBaseSlotProps.js";
3
- export declare function BasePopper(props: ChartBasePopperProps): React.JSX.Element;
2
+ export declare function BasePopper(props: ChartBasePopperProps): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,9 @@
1
- import { ChartSeriesType, ConvertSignaturesIntoPlugins, UseChartCartesianAxisSignature, UseChartInteractionSignature, UseChartZAxisSignature, UseChartHighlightSignature, UseChartPolarAxisSignature } from '@mui/x-charts/internals';
1
+ import { ChartSeriesType, ConvertSignaturesIntoPlugins, UseChartCartesianAxisSignature, UseChartInteractionSignature, UseChartZAxisSignature, UseChartHighlightSignature, UseChartPolarAxisSignature, UseChartBrushSignature } from '@mui/x-charts/internals';
2
2
  import { UseChartProExportSignature } from "./useChartProExport/index.js";
3
3
  import { UseChartProZoomSignature } from "./useChartProZoom/index.js";
4
- export type AllPluginSignatures<TSeries extends ChartSeriesType = ChartSeriesType> = [UseChartZAxisSignature, UseChartCartesianAxisSignature<TSeries>, UseChartPolarAxisSignature<TSeries>, UseChartInteractionSignature, UseChartHighlightSignature, UseChartProZoomSignature, UseChartProExportSignature];
4
+ export type AllPluginSignatures<TSeries extends ChartSeriesType = ChartSeriesType> = [UseChartZAxisSignature, UseChartBrushSignature, UseChartInteractionSignature, UseChartCartesianAxisSignature<TSeries>, UseChartPolarAxisSignature<TSeries>, UseChartHighlightSignature, UseChartProZoomSignature, UseChartProExportSignature];
5
5
  export type AllPluginsType<TSeries extends ChartSeriesType = ChartSeriesType> = ConvertSignaturesIntoPlugins<AllPluginSignatures<TSeries>>;
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<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartPolarAxisSignature<any>>)[];
7
- export type DefaultPluginSignatures<TSeries extends ChartSeriesType = ChartSeriesType> = [UseChartZAxisSignature, UseChartCartesianAxisSignature<TSeries>, UseChartPolarAxisSignature<TSeries>, UseChartInteractionSignature, UseChartHighlightSignature, UseChartProZoomSignature, UseChartProExportSignature];
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<UseChartHighlightSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartPolarAxisSignature<any>>)[];
7
+ export type DefaultPluginSignatures<TSeries extends ChartSeriesType = ChartSeriesType> = [UseChartZAxisSignature, UseChartBrushSignature, UseChartInteractionSignature, UseChartCartesianAxisSignature<TSeries>, UseChartPolarAxisSignature<TSeries>, UseChartHighlightSignature, UseChartProZoomSignature, UseChartProExportSignature];
8
8
  export type DefaultPluginsType<TSeries extends ChartSeriesType = ChartSeriesType> = ConvertSignaturesIntoPlugins<DefaultPluginSignatures<TSeries>>;
9
- export declare const DEFAULT_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<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>>)[];
9
+ export declare const DEFAULT_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<UseChartHighlightSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>>)[];
@@ -1,7 +1,7 @@
1
1
  // This file should be removed after creating all plugins in favor of a file per chart type.
2
2
 
3
- import { useChartCartesianAxis, useChartInteraction, useChartZAxis, useChartHighlight, useChartPolarAxis } from '@mui/x-charts/internals';
3
+ import { useChartCartesianAxis, useChartInteraction, useChartZAxis, useChartHighlight, useChartPolarAxis, useChartBrush } from '@mui/x-charts/internals';
4
4
  import { useChartProExport } from "./useChartProExport/index.js";
5
5
  import { useChartProZoom } from "./useChartProZoom/index.js";
6
- export const ALL_PLUGINS = [useChartZAxis, useChartCartesianAxis, useChartPolarAxis, useChartInteraction, useChartHighlight, useChartProZoom, useChartProExport];
7
- export const DEFAULT_PLUGINS = [useChartZAxis, useChartCartesianAxis, useChartInteraction, useChartHighlight, useChartProZoom, useChartProExport];
6
+ export const ALL_PLUGINS = [useChartZAxis, useChartBrush, useChartInteraction, useChartCartesianAxis, useChartPolarAxis, useChartHighlight, useChartProZoom, useChartProExport];
7
+ export const DEFAULT_PLUGINS = [useChartZAxis, useChartBrush, useChartInteraction, useChartCartesianAxis, useChartHighlight, useChartProZoom, useChartProExport];
@@ -1,4 +1,6 @@
1
- export declare const selectorZoomInteractionConfig: import("reselect").Selector<any, (Omit<import("./ZoomInteractionConfig.types.js").ZoomInteraction, "pointerMode"> & {
1
+ export declare const selectorZoomInteractionConfig: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & 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<{}> & {
2
+ cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
3
+ }, interactionName: "wheel" | "pinch" | "tapAndDrag" | "doubleTapReset" | "brush") => (Omit<import("./ZoomInteractionConfig.types.js").ZoomInteraction, "pointerMode"> & {
2
4
  mouse: {
3
5
  requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[];
4
6
  };
@@ -6,8 +8,10 @@ export declare const selectorZoomInteractionConfig: import("reselect").Selector<
6
8
  requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[];
7
9
  };
8
10
  pointerMode?: import("@mui/x-internal-gestures/core").PointerMode[];
9
- }) | null, [interactionName: "wheel" | "pinch" | "tapAndDrag"]>;
10
- export declare const selectorPanInteractionConfig: import("reselect").Selector<any, (Omit<import("./ZoomInteractionConfig.types.js").PanInteraction, "pointerMode"> & {
11
+ }) | null;
12
+ export declare const selectorPanInteractionConfig: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & 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<{}> & {
13
+ cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
14
+ }, interactionName: "drag" | "pressAndDrag") => (Omit<import("./ZoomInteractionConfig.types.js").PanInteraction, "pointerMode"> & {
11
15
  mouse: {
12
16
  requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[];
13
17
  };
@@ -15,4 +19,15 @@ export declare const selectorPanInteractionConfig: import("reselect").Selector<a
15
19
  requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[];
16
20
  };
17
21
  pointerMode?: import("@mui/x-internal-gestures/core").PointerMode[];
18
- }) | null, [interactionName: "drag" | "pressAndDrag"]>;
22
+ }) | null;
23
+ export declare const selectorIsZoomBrushEnabled: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & 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 & Partial<import("@mui/x-charts/internals").UseChartCartesianAxisState> & {
24
+ cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
25
+ }) => false | (Omit<import("./ZoomInteractionConfig.types.js").ZoomInteraction, "pointerMode"> & {
26
+ mouse: {
27
+ requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[];
28
+ };
29
+ touch: {
30
+ requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[];
31
+ };
32
+ pointerMode?: import("@mui/x-internal-gestures/core").PointerMode[];
33
+ });
@@ -1,4 +1,5 @@
1
- import { createSelector } from '@mui/x-charts/internals';
1
+ import { createSelector, selectorChartZoomOptionsLookup } from '@mui/x-charts/internals';
2
2
  import { selectorChartZoomState } from "./useChartProZoom.selectors.js";
3
- export const selectorZoomInteractionConfig = createSelector([selectorChartZoomState, (_state, interactionName) => interactionName], (zoomState, interactionName) => zoomState.zoomInteractionConfig.zoom[interactionName] ?? null);
4
- export const selectorPanInteractionConfig = createSelector([selectorChartZoomState, (_state, interactionName) => interactionName], (zoomState, interactionName) => zoomState.zoomInteractionConfig.pan[interactionName] ?? null);
3
+ export const selectorZoomInteractionConfig = createSelector([selectorChartZoomState], (zoomState, interactionName) => zoomState.zoomInteractionConfig.zoom[interactionName] ?? null);
4
+ export const selectorPanInteractionConfig = createSelector([selectorChartZoomState], (zoomState, interactionName) => zoomState.zoomInteractionConfig.pan[interactionName] ?? null);
5
+ export const selectorIsZoomBrushEnabled = createSelector([selectorChartZoomOptionsLookup, state => selectorZoomInteractionConfig(state, 'brush')], (zoomOptions, zoomInteractionConfig) => Object.keys(zoomOptions).length > 0 && zoomInteractionConfig || false);
@@ -5,10 +5,12 @@ export type ZoomInteractionConfig = {
5
5
  * - `wheel`: Zooms in or out when the mouse wheel is scrolled.
6
6
  * - `pinch`: Zooms in or out when a pinch gesture is detected.
7
7
  * - `tapAndDrag`: Zooms in or out by tapping twice and then dragging vertically. Dragging up zooms in, dragging down zooms out.
8
+ * - `brush`: Zooms into a selected area by clicking and dragging to create a selection area. (Conflicts with `drag` pan interaction)
9
+ * - `doubleTapReset`: Resets the zoom level to the original state when double-tapping.
8
10
  *
9
11
  * @default ['wheel', 'pinch']
10
12
  */
11
- zoom?: (ZoomInteraction | ZoomInteraction['type'])[];
13
+ zoom?: readonly (ZoomInteraction | ZoomInteraction['type'])[];
12
14
  /**
13
15
  * Defines the interactions that trigger panning.
14
16
  * - `drag`: Pans the chart when dragged with the mouse.
@@ -16,7 +18,7 @@ export type ZoomInteractionConfig = {
16
18
  *
17
19
  * @default ['drag']
18
20
  */
19
- pan?: (PanInteraction | PanInteraction['type'])[];
21
+ pan?: readonly (PanInteraction | PanInteraction['type'])[];
20
22
  };
21
23
  type Entry<T extends AnyInteraction> = { [K in T['type']]?: Omit<T, 'pointerMode'> & {
22
24
  mouse: {
@@ -31,7 +33,7 @@ export type DefaultizedZoomInteractionConfig = {
31
33
  zoom: Entry<ZoomInteraction>;
32
34
  pan: Entry<PanInteraction>;
33
35
  };
34
- export type ZoomInteraction = WheelInteraction | PinchInteraction | TapAndDragInteraction;
36
+ export type ZoomInteraction = WheelInteraction | PinchInteraction | TapAndDragInteraction | DoubleTapResetInteraction | BrushInteraction;
35
37
  export type PanInteraction = DragInteraction | PressAndDragInteraction;
36
38
  export type ZoomInteractionName = ZoomInteraction['type'];
37
39
  export type PanInteractionName = PanInteraction['type'];
@@ -79,6 +81,12 @@ export type TapAndDragInteraction = Unpack<{
79
81
  export type PressAndDragInteraction = Unpack<{
80
82
  type: 'pressAndDrag';
81
83
  } & AllModeProp & AllKeysProp>;
84
+ export type DoubleTapResetInteraction = Unpack<{
85
+ type: 'doubleTapReset';
86
+ } & AllModeProp & AllKeysProp>;
87
+ export type BrushInteraction = Unpack<{
88
+ type: 'brush';
89
+ } & NoModeProp & NoKeysProp>;
82
90
  export type AnyInteraction = {
83
91
  type: string;
84
92
  pointerMode?: InteractionMode;