@mui/x-charts-pro 8.1.0 → 8.3.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 (198) hide show
  1. package/BarChartPro/BarChartPro.d.ts +7 -1
  2. package/BarChartPro/BarChartPro.js +62 -5
  3. package/CHANGELOG.md +233 -7
  4. package/ChartContainerPro/useChartContainerProProps.d.ts +1 -1
  5. package/ChartDataProviderPro/ChartDataProviderPro.js +1 -1
  6. package/ChartDataProviderPro/useChartDataProviderProProps.d.ts +2 -2
  7. package/ChartZoomSlider/ChartZoomSlider.d.ts +5 -0
  8. package/ChartZoomSlider/ChartZoomSlider.js +47 -0
  9. package/ChartZoomSlider/index.d.ts +2 -0
  10. package/ChartZoomSlider/index.js +27 -0
  11. package/ChartZoomSlider/internals/ChartAxisZoomSlider.d.ts +23 -0
  12. package/ChartZoomSlider/internals/ChartAxisZoomSlider.js +348 -0
  13. package/ChartZoomSlider/internals/ChartAxisZoomSliderHandle.d.ts +12 -0
  14. package/ChartZoomSlider/internals/ChartAxisZoomSliderHandle.js +92 -0
  15. package/ChartZoomSlider/internals/chartAxisZoomSliderHandleClasses.d.ts +17 -0
  16. package/ChartZoomSlider/internals/chartAxisZoomSliderHandleClasses.js +27 -0
  17. package/ChartsToolbarPro/ChartsToolbarPro.d.ts +2 -0
  18. package/ChartsToolbarPro/ChartsToolbarPro.js +31 -0
  19. package/ChartsToolbarPro/index.d.ts +1 -0
  20. package/ChartsToolbarPro/index.js +16 -0
  21. package/ChartsToolbarPro/internal/ChartsToolbarZoomInButton.d.ts +13 -0
  22. package/ChartsToolbarPro/internal/ChartsToolbarZoomInButton.js +36 -0
  23. package/ChartsToolbarPro/internal/ChartsToolbarZoomOutButton.d.ts +13 -0
  24. package/ChartsToolbarPro/internal/ChartsToolbarZoomOutButton.js +36 -0
  25. package/FunnelChart/FunnelChart.js +9 -8
  26. package/FunnelChart/FunnelPlot.d.ts +5 -0
  27. package/FunnelChart/FunnelPlot.js +36 -18
  28. package/FunnelChart/FunnelSection.d.ts +1 -0
  29. package/FunnelChart/FunnelSection.js +12 -7
  30. package/FunnelChart/curves/borderRadiusPolygon.d.ts +8 -0
  31. package/FunnelChart/curves/borderRadiusPolygon.js +42 -0
  32. package/FunnelChart/curves/bump.d.ts +27 -0
  33. package/FunnelChart/curves/bump.js +81 -0
  34. package/FunnelChart/curves/curve.types.d.ts +38 -0
  35. package/FunnelChart/curves/curve.types.js +5 -0
  36. package/FunnelChart/curves/getFunnelCurve.d.ts +3 -0
  37. package/FunnelChart/curves/getFunnelCurve.js +30 -0
  38. package/FunnelChart/curves/index.d.ts +2 -0
  39. package/FunnelChart/curves/index.js +27 -0
  40. package/FunnelChart/curves/linear.d.ts +32 -0
  41. package/FunnelChart/curves/linear.js +88 -0
  42. package/FunnelChart/curves/pyramid.d.ts +34 -0
  43. package/FunnelChart/curves/pyramid.js +127 -0
  44. package/FunnelChart/curves/step-pyramid.d.ts +31 -0
  45. package/FunnelChart/curves/step-pyramid.js +107 -0
  46. package/FunnelChart/curves/step.d.ts +32 -0
  47. package/FunnelChart/curves/step.js +88 -0
  48. package/FunnelChart/curves/utils.d.ts +4 -0
  49. package/FunnelChart/curves/utils.js +29 -0
  50. package/FunnelChart/funnel.types.d.ts +25 -4
  51. package/FunnelChart/funnelPlotSlots.types.d.ts +1 -1
  52. package/FunnelChart/funnelSectionClasses.d.ts +6 -2
  53. package/FunnelChart/funnelSectionClasses.js +5 -2
  54. package/FunnelChart/index.d.ts +3 -2
  55. package/FunnelChart/seriesConfig/getSeriesWithDefaultValues.js +1 -0
  56. package/FunnelChart/useFunnelChartProps.d.ts +1 -6
  57. package/FunnelChart/useFunnelChartProps.js +7 -15
  58. package/Heatmap/Heatmap.d.ts +3 -3
  59. package/Heatmap/Heatmap.js +3 -21
  60. package/LineChartPro/LineChartPro.d.ts +7 -1
  61. package/LineChartPro/LineChartPro.js +62 -5
  62. package/ScatterChartPro/ScatterChartPro.d.ts +7 -1
  63. package/ScatterChartPro/ScatterChartPro.js +62 -5
  64. package/esm/BarChartPro/BarChartPro.d.ts +7 -1
  65. package/esm/BarChartPro/BarChartPro.js +62 -5
  66. package/esm/ChartContainerPro/useChartContainerProProps.d.ts +1 -1
  67. package/esm/ChartDataProviderPro/ChartDataProviderPro.js +1 -1
  68. package/esm/ChartDataProviderPro/useChartDataProviderProProps.d.ts +2 -2
  69. package/esm/ChartZoomSlider/ChartZoomSlider.d.ts +5 -0
  70. package/esm/ChartZoomSlider/ChartZoomSlider.js +41 -0
  71. package/esm/ChartZoomSlider/index.d.ts +2 -0
  72. package/esm/ChartZoomSlider/index.js +2 -0
  73. package/esm/ChartZoomSlider/internals/ChartAxisZoomSlider.d.ts +23 -0
  74. package/esm/ChartZoomSlider/internals/ChartAxisZoomSlider.js +339 -0
  75. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderHandle.d.ts +12 -0
  76. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderHandle.js +85 -0
  77. package/esm/ChartZoomSlider/internals/chartAxisZoomSliderHandleClasses.d.ts +17 -0
  78. package/esm/ChartZoomSlider/internals/chartAxisZoomSliderHandleClasses.js +17 -0
  79. package/esm/ChartsToolbarPro/ChartsToolbarPro.d.ts +2 -0
  80. package/esm/ChartsToolbarPro/ChartsToolbarPro.js +24 -0
  81. package/esm/ChartsToolbarPro/index.d.ts +1 -0
  82. package/esm/ChartsToolbarPro/index.js +1 -0
  83. package/esm/ChartsToolbarPro/internal/ChartsToolbarZoomInButton.d.ts +13 -0
  84. package/esm/ChartsToolbarPro/internal/ChartsToolbarZoomInButton.js +29 -0
  85. package/esm/ChartsToolbarPro/internal/ChartsToolbarZoomOutButton.d.ts +13 -0
  86. package/esm/ChartsToolbarPro/internal/ChartsToolbarZoomOutButton.js +29 -0
  87. package/esm/FunnelChart/FunnelChart.js +9 -8
  88. package/esm/FunnelChart/FunnelPlot.d.ts +5 -0
  89. package/esm/FunnelChart/FunnelPlot.js +37 -19
  90. package/esm/FunnelChart/FunnelSection.d.ts +1 -0
  91. package/esm/FunnelChart/FunnelSection.js +12 -7
  92. package/esm/FunnelChart/curves/borderRadiusPolygon.d.ts +8 -0
  93. package/esm/FunnelChart/curves/borderRadiusPolygon.js +36 -0
  94. package/esm/FunnelChart/curves/bump.d.ts +27 -0
  95. package/esm/FunnelChart/curves/bump.js +74 -0
  96. package/esm/FunnelChart/curves/curve.types.d.ts +38 -0
  97. package/esm/FunnelChart/curves/curve.types.js +1 -0
  98. package/esm/FunnelChart/curves/getFunnelCurve.d.ts +3 -0
  99. package/esm/FunnelChart/curves/getFunnelCurve.js +23 -0
  100. package/esm/FunnelChart/curves/index.d.ts +2 -0
  101. package/esm/FunnelChart/curves/index.js +2 -0
  102. package/esm/FunnelChart/curves/linear.d.ts +32 -0
  103. package/esm/FunnelChart/curves/linear.js +82 -0
  104. package/esm/FunnelChart/curves/pyramid.d.ts +34 -0
  105. package/esm/FunnelChart/curves/pyramid.js +121 -0
  106. package/esm/FunnelChart/curves/step-pyramid.d.ts +31 -0
  107. package/esm/FunnelChart/curves/step-pyramid.js +101 -0
  108. package/esm/FunnelChart/curves/step.d.ts +32 -0
  109. package/esm/FunnelChart/curves/step.js +82 -0
  110. package/esm/FunnelChart/curves/utils.d.ts +4 -0
  111. package/esm/FunnelChart/curves/utils.js +19 -0
  112. package/esm/FunnelChart/funnel.types.d.ts +25 -4
  113. package/esm/FunnelChart/funnelPlotSlots.types.d.ts +1 -1
  114. package/esm/FunnelChart/funnelSectionClasses.d.ts +6 -2
  115. package/esm/FunnelChart/funnelSectionClasses.js +5 -2
  116. package/esm/FunnelChart/index.d.ts +3 -2
  117. package/esm/FunnelChart/seriesConfig/getSeriesWithDefaultValues.js +1 -0
  118. package/esm/FunnelChart/useFunnelChartProps.d.ts +1 -6
  119. package/esm/FunnelChart/useFunnelChartProps.js +7 -15
  120. package/esm/Heatmap/Heatmap.d.ts +3 -3
  121. package/esm/Heatmap/Heatmap.js +3 -21
  122. package/esm/LineChartPro/LineChartPro.d.ts +7 -1
  123. package/esm/LineChartPro/LineChartPro.js +62 -5
  124. package/esm/ScatterChartPro/ScatterChartPro.d.ts +7 -1
  125. package/esm/ScatterChartPro/ScatterChartPro.js +62 -5
  126. package/esm/index.d.ts +4 -1
  127. package/esm/index.js +5 -2
  128. package/esm/internals/material/icons.d.ts +3 -0
  129. package/esm/internals/material/icons.js +13 -0
  130. package/esm/internals/material/index.d.ts +4 -0
  131. package/esm/internals/material/index.js +12 -0
  132. package/esm/internals/plugins/useChartProExport/common.d.ts +1 -0
  133. package/esm/internals/plugins/useChartProExport/common.js +8 -0
  134. package/esm/internals/plugins/useChartProExport/exportImage.d.ts +3 -0
  135. package/esm/internals/plugins/useChartProExport/exportImage.js +85 -0
  136. package/esm/internals/plugins/useChartProExport/print.js +6 -50
  137. package/esm/internals/plugins/useChartProExport/useChartProExport.js +22 -2
  138. package/esm/internals/plugins/useChartProExport/useChartProExport.types.d.ts +32 -0
  139. package/esm/internals/plugins/useChartProZoom/calculateZoom.d.ts +23 -0
  140. package/esm/internals/plugins/useChartProZoom/calculateZoom.js +32 -0
  141. package/esm/internals/plugins/useChartProZoom/useChartProZoom.d.ts +1 -1
  142. package/esm/internals/plugins/useChartProZoom/useChartProZoom.js +46 -4
  143. package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +84 -32
  144. package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +3 -2
  145. package/esm/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +17 -2
  146. package/esm/internals/slots/chartBaseSlotProps.d.ts +10 -0
  147. package/esm/internals/slots/chartBaseSlotProps.js +1 -0
  148. package/esm/internals/slots/chartsBaseSlots.d.ts +6 -0
  149. package/esm/internals/slots/chartsBaseSlots.js +1 -0
  150. package/esm/internals/slots/chartsIconSlots.d.ts +14 -0
  151. package/esm/internals/slots/chartsIconSlots.js +1 -0
  152. package/esm/themeAugmentation/components.d.ts +0 -4
  153. package/esm/themeAugmentation/components.js +1 -0
  154. package/esm/themeAugmentation/index.d.ts +3 -3
  155. package/esm/themeAugmentation/overrides.d.ts +0 -3
  156. package/esm/themeAugmentation/overrides.js +2 -0
  157. package/esm/themeAugmentation/props.d.ts +0 -6
  158. package/esm/themeAugmentation/props.js +2 -0
  159. package/esm/typeOverloads/modules.d.ts +1 -1
  160. package/index.d.ts +4 -1
  161. package/index.js +90 -1
  162. package/internals/material/icons.d.ts +3 -0
  163. package/internals/material/icons.js +20 -0
  164. package/internals/material/index.d.ts +4 -0
  165. package/internals/material/index.js +19 -0
  166. package/internals/plugins/useChartProExport/common.d.ts +1 -0
  167. package/internals/plugins/useChartProExport/common.js +14 -0
  168. package/internals/plugins/useChartProExport/exportImage.d.ts +3 -0
  169. package/internals/plugins/useChartProExport/exportImage.js +95 -0
  170. package/internals/plugins/useChartProExport/print.js +6 -50
  171. package/internals/plugins/useChartProExport/useChartProExport.js +22 -2
  172. package/internals/plugins/useChartProExport/useChartProExport.types.d.ts +32 -0
  173. package/internals/plugins/useChartProZoom/calculateZoom.d.ts +23 -0
  174. package/internals/plugins/useChartProZoom/calculateZoom.js +39 -0
  175. package/internals/plugins/useChartProZoom/useChartProZoom.d.ts +1 -1
  176. package/internals/plugins/useChartProZoom/useChartProZoom.js +45 -3
  177. package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +84 -32
  178. package/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +3 -2
  179. package/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +17 -2
  180. package/internals/slots/chartBaseSlotProps.d.ts +10 -0
  181. package/internals/slots/chartBaseSlotProps.js +5 -0
  182. package/internals/slots/chartsBaseSlots.d.ts +6 -0
  183. package/internals/slots/chartsBaseSlots.js +5 -0
  184. package/internals/slots/chartsIconSlots.d.ts +14 -0
  185. package/internals/slots/chartsIconSlots.js +5 -0
  186. package/package.json +10 -7
  187. package/themeAugmentation/components.d.ts +0 -4
  188. package/themeAugmentation/components.js +5 -0
  189. package/themeAugmentation/index.d.ts +3 -3
  190. package/themeAugmentation/overrides.d.ts +0 -3
  191. package/themeAugmentation/overrides.js +5 -0
  192. package/themeAugmentation/props.d.ts +0 -6
  193. package/themeAugmentation/props.js +5 -0
  194. package/typeOverloads/modules.d.ts +1 -1
  195. package/FunnelChart/funnelStepCurve.d.ts +0 -4
  196. package/FunnelChart/funnelStepCurve.js +0 -74
  197. package/esm/FunnelChart/funnelStepCurve.d.ts +0 -4
  198. package/esm/FunnelChart/funnelStepCurve.js +0 -67
@@ -2,10 +2,11 @@
2
2
 
3
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import * as React from 'react';
5
- import { useSelector, getSVGPoint, selectorChartDrawingArea, createZoomLookup, selectorChartZoomOptionsLookup } from '@mui/x-charts/internals';
5
+ import { useSelector, getSVGPoint, selectorChartDrawingArea, createZoomLookup, selectorChartZoomOptionsLookup, selectorChartAxisZoomOptionsLookup } from '@mui/x-charts/internals';
6
6
  import { useEventCallback } from '@mui/material/utils';
7
7
  import { rafThrottle } from '@mui/x-internals/rafThrottle';
8
8
  import debounce from '@mui/utils/debounce';
9
+ import { calculateZoom } from "./calculateZoom.js";
9
10
  import { getDiff, getHorizontalCenterRatio, getPinchScaleRatio, getVerticalCenterRatio, getWheelScaleRatio, isSpanValid, preventDefault, zoomAtPoint } from "./useChartProZoom.utils.js";
10
11
 
11
12
  // It is helpful to avoid the need to provide the possibly auto-generated id for each axis.
@@ -54,7 +55,7 @@ export const useChartProZoom = ({
54
55
  }
55
56
  store.update(prevState => {
56
57
  if (process.env.NODE_ENV !== 'production' && !prevState.zoom.isControlled) {
57
- console.error([`MUI X: A chart component is changing the \`zoomData\` from uncontrolled to controlled.`, 'Elements should not switch from uncontrolled to controlled (or vice versa).', 'Decide between using a controlled or uncontrolled for the lifetime of the component.', "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", 'More info: https://fb.me/react-controlled-components'].join('\n'));
58
+ console.error([`MUI X Charts: A chart component is changing the \`zoomData\` from uncontrolled to controlled.`, 'Elements should not switch from uncontrolled to controlled (or vice versa).', 'Decide between using a controlled or uncontrolled for the lifetime of the component.', "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", 'More info: https://fb.me/react-controlled-components'].join('\n'));
58
59
  }
59
60
  return _extends({}, prevState, {
60
61
  zoom: _extends({}, prevState.zoom, {
@@ -101,6 +102,34 @@ export const useChartProZoom = ({
101
102
  });
102
103
  });
103
104
  }, [onZoomChange, store, removeIsInteracting]);
105
+ const moveZoomRange = React.useCallback((axisId, by) => {
106
+ setZoomDataCallback(prevZoomData => {
107
+ return prevZoomData.map(zoom => {
108
+ if (zoom.axisId !== axisId) {
109
+ return zoom;
110
+ }
111
+ const options = optionsLookup[axisId];
112
+ if (!options) {
113
+ return zoom;
114
+ }
115
+ let start = zoom.start;
116
+ let end = zoom.end;
117
+ if (by > 0) {
118
+ const span = end - start;
119
+ end = Math.min(end + by, options.maxEnd);
120
+ start = end - span;
121
+ } else {
122
+ const span = end - start;
123
+ start = Math.max(start + by, options.minStart);
124
+ end = start + span;
125
+ }
126
+ return _extends({}, zoom, {
127
+ start,
128
+ end
129
+ });
130
+ });
131
+ });
132
+ }, [optionsLookup, setZoomDataCallback]);
104
133
  React.useEffect(() => {
105
134
  return () => {
106
135
  removeIsInteracting.clear();
@@ -327,12 +356,25 @@ export const useChartProZoom = ({
327
356
  rafThrottledSetZoomData.clear();
328
357
  };
329
358
  }, [svgRef, drawingArea, isZoomEnabled, optionsLookup, instance, setZoomDataCallback]);
359
+ const zoom = React.useCallback(step => {
360
+ setZoomDataCallback(prev => prev.map(zoomData => {
361
+ const zoomOptions = selectorChartAxisZoomOptionsLookup(store.getSnapshot(), zoomData.axisId);
362
+ return calculateZoom(zoomData, step, zoomOptions);
363
+ }));
364
+ }, [setZoomDataCallback, store]);
365
+ const zoomIn = React.useCallback(() => zoom(0.1), [zoom]);
366
+ const zoomOut = React.useCallback(() => zoom(-0.1), [zoom]);
330
367
  return {
331
368
  publicAPI: {
332
- setZoomData: setZoomDataCallback
369
+ setZoomData: setZoomDataCallback,
370
+ zoomIn,
371
+ zoomOut
333
372
  },
334
373
  instance: {
335
- setZoomData: setZoomDataCallback
374
+ setZoomData: setZoomDataCallback,
375
+ moveZoomRange,
376
+ zoomIn,
377
+ zoomOut
336
378
  }
337
379
  };
338
380
  };
@@ -1,7 +1,7 @@
1
- import { ChartRootSelector } from '@mui/x-charts/internals';
1
+ import { AxisId, ChartRootSelector } from '@mui/x-charts/internals';
2
2
  import { UseChartProZoomSignature } from "./useChartProZoom.types.js";
3
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("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("./useChartProZoom.types").UseChartProZoomState & Partial<{}> & {
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("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("./useChartProZoom.types.js").UseChartProZoomState & Partial<{}> & {
5
5
  cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
6
6
  }) => boolean) & {
7
7
  clearCache: () => void;
@@ -62,11 +62,11 @@ export declare const selectorChartZoomIsEnabled: ((state: import("@mui/x-charts/
62
62
  resultsCount: () => number;
63
63
  resetResultsCount: () => void;
64
64
  } & {
65
- 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>) => {
65
+ resultFunc: (resultFuncArgs_0: Record<AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>, resultFuncArgs_1: Record<AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>) => {
66
66
  [x: string]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
67
67
  [x: number]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
68
68
  };
69
- 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>) => {
69
+ memoizedResultFunc: ((resultFuncArgs_0: Record<AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>, resultFuncArgs_1: Record<AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>) => {
70
70
  [x: string]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
71
71
  [x: number]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
72
72
  }) & {
@@ -80,41 +80,41 @@ export declare const selectorChartZoomIsEnabled: ((state: import("@mui/x-charts/
80
80
  };
81
81
  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/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & Partial<import("@mui/x-charts/internals").UseChartCartesianAxisState> & {
82
82
  cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
83
- }) => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>) & {
83
+ }) => Record<AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>) & {
84
84
  clearCache: () => void;
85
85
  resultsCount: () => number;
86
86
  resetResultsCount: () => void;
87
87
  } & {
88
- resultFunc: (resultFuncArgs_0: import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsXAxisProps>[] | undefined) => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>;
89
- memoizedResultFunc: ((resultFuncArgs_0: import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsXAxisProps>[] | undefined) => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>) & {
88
+ resultFunc: (resultFuncArgs_0: import("@mui/x-charts/internals").DefaultedXAxis[] | undefined) => Record<AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>;
89
+ memoizedResultFunc: ((resultFuncArgs_0: import("@mui/x-charts/internals").DefaultedXAxis[] | undefined) => Record<AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>) & {
90
90
  clearCache: () => void;
91
91
  resultsCount: () => number;
92
92
  resetResultsCount: () => void;
93
93
  };
94
- lastResult: () => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>;
94
+ lastResult: () => Record<AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>;
95
95
  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/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & Partial<import("@mui/x-charts/internals").UseChartCartesianAxisState> & {
96
96
  cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
97
- }) => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsXAxisProps>[] | undefined) & {
97
+ }) => import("@mui/x-charts/internals").DefaultedXAxis[] | undefined) & {
98
98
  clearCache: () => void;
99
99
  resultsCount: () => number;
100
100
  resetResultsCount: () => void;
101
101
  } & {
102
102
  resultFunc: (resultFuncArgs_0: {
103
- x: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsXAxisProps>[];
104
- y: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsYAxisProps>[];
105
- } | undefined) => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsXAxisProps>[] | undefined;
103
+ x: import("@mui/x-charts/internals").DefaultedXAxis[];
104
+ y: import("@mui/x-charts/internals").DefaultedYAxis[];
105
+ } | undefined) => import("@mui/x-charts/internals").DefaultedXAxis[] | undefined;
106
106
  memoizedResultFunc: ((resultFuncArgs_0: {
107
- x: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsXAxisProps>[];
108
- y: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsYAxisProps>[];
109
- } | undefined) => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsXAxisProps>[] | undefined) & {
107
+ x: import("@mui/x-charts/internals").DefaultedXAxis[];
108
+ y: import("@mui/x-charts/internals").DefaultedYAxis[];
109
+ } | undefined) => import("@mui/x-charts/internals").DefaultedXAxis[] | undefined) & {
110
110
  clearCache: () => void;
111
111
  resultsCount: () => number;
112
112
  resetResultsCount: () => void;
113
113
  };
114
- lastResult: () => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsXAxisProps>[] | undefined;
114
+ lastResult: () => import("@mui/x-charts/internals").DefaultedXAxis[] | undefined;
115
115
  dependencies: [(state: import("@mui/x-charts/internals").ChartState<[], [import("@mui/x-charts/internals").UseChartCartesianAxisSignature]>) => {
116
- x: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsXAxisProps>[];
117
- y: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsYAxisProps>[];
116
+ x: import("@mui/x-charts/internals").DefaultedXAxis[];
117
+ y: import("@mui/x-charts/internals").DefaultedYAxis[];
118
118
  } | undefined];
119
119
  recomputations: () => number;
120
120
  resetRecomputations: () => void;
@@ -133,41 +133,41 @@ export declare const selectorChartZoomIsEnabled: ((state: import("@mui/x-charts/
133
133
  argsMemoize: typeof import("reselect").weakMapMemoize;
134
134
  }, ((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/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & Partial<import("@mui/x-charts/internals").UseChartCartesianAxisState> & {
135
135
  cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
136
- }) => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>) & {
136
+ }) => Record<AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>) & {
137
137
  clearCache: () => void;
138
138
  resultsCount: () => number;
139
139
  resetResultsCount: () => void;
140
140
  } & {
141
- resultFunc: (resultFuncArgs_0: import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsYAxisProps>[] | undefined) => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>;
142
- memoizedResultFunc: ((resultFuncArgs_0: import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsYAxisProps>[] | undefined) => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>) & {
141
+ resultFunc: (resultFuncArgs_0: import("@mui/x-charts/internals").DefaultedYAxis[] | undefined) => Record<AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>;
142
+ memoizedResultFunc: ((resultFuncArgs_0: import("@mui/x-charts/internals").DefaultedYAxis[] | undefined) => Record<AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>) & {
143
143
  clearCache: () => void;
144
144
  resultsCount: () => number;
145
145
  resetResultsCount: () => void;
146
146
  };
147
- lastResult: () => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>;
147
+ lastResult: () => Record<AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>;
148
148
  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/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & Partial<import("@mui/x-charts/internals").UseChartCartesianAxisState> & {
149
149
  cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
150
- }) => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsYAxisProps>[] | undefined) & {
150
+ }) => import("@mui/x-charts/internals").DefaultedYAxis[] | undefined) & {
151
151
  clearCache: () => void;
152
152
  resultsCount: () => number;
153
153
  resetResultsCount: () => void;
154
154
  } & {
155
155
  resultFunc: (resultFuncArgs_0: {
156
- x: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsXAxisProps>[];
157
- y: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsYAxisProps>[];
158
- } | undefined) => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsYAxisProps>[] | undefined;
156
+ x: import("@mui/x-charts/internals").DefaultedXAxis[];
157
+ y: import("@mui/x-charts/internals").DefaultedYAxis[];
158
+ } | undefined) => import("@mui/x-charts/internals").DefaultedYAxis[] | undefined;
159
159
  memoizedResultFunc: ((resultFuncArgs_0: {
160
- x: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsXAxisProps>[];
161
- y: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsYAxisProps>[];
162
- } | undefined) => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsYAxisProps>[] | undefined) & {
160
+ x: import("@mui/x-charts/internals").DefaultedXAxis[];
161
+ y: import("@mui/x-charts/internals").DefaultedYAxis[];
162
+ } | undefined) => import("@mui/x-charts/internals").DefaultedYAxis[] | undefined) & {
163
163
  clearCache: () => void;
164
164
  resultsCount: () => number;
165
165
  resetResultsCount: () => void;
166
166
  };
167
- lastResult: () => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsYAxisProps>[] | undefined;
167
+ lastResult: () => import("@mui/x-charts/internals").DefaultedYAxis[] | undefined;
168
168
  dependencies: [(state: import("@mui/x-charts/internals").ChartState<[], [import("@mui/x-charts/internals").UseChartCartesianAxisSignature]>) => {
169
- x: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsXAxisProps>[];
170
- y: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsYAxisProps>[];
169
+ x: import("@mui/x-charts/internals").DefaultedXAxis[];
170
+ y: import("@mui/x-charts/internals").DefaultedYAxis[];
171
171
  } | undefined];
172
172
  recomputations: () => number;
173
173
  resetRecomputations: () => void;
@@ -200,4 +200,56 @@ export declare const selectorChartZoomIsEnabled: ((state: import("@mui/x-charts/
200
200
  } & {
201
201
  argsMemoize: typeof import("reselect").weakMapMemoize;
202
202
  memoize: typeof import("reselect").weakMapMemoize;
203
+ };
204
+ export declare const selectorChartAxisZoomData: ((state: any, axisId: AxisId) => import("@mui/x-charts/internals").ZoomData | undefined) & {
205
+ clearCache: () => void;
206
+ resultsCount: () => number;
207
+ resetResultsCount: () => void;
208
+ } & {
209
+ resultFunc: (resultFuncArgs_0: Map<AxisId, import("@mui/x-charts/internals").ZoomData> | undefined, resultFuncArgs_1: AxisId) => import("@mui/x-charts/internals").ZoomData | undefined;
210
+ memoizedResultFunc: ((resultFuncArgs_0: Map<AxisId, import("@mui/x-charts/internals").ZoomData> | undefined, resultFuncArgs_1: AxisId) => import("@mui/x-charts/internals").ZoomData | undefined) & {
211
+ clearCache: () => void;
212
+ resultsCount: () => number;
213
+ resetResultsCount: () => void;
214
+ };
215
+ lastResult: () => import("@mui/x-charts/internals").ZoomData | undefined;
216
+ 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/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & Partial<import("@mui/x-charts/internals").UseChartCartesianAxisState> & {
217
+ cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
218
+ }) => Map<AxisId, import("@mui/x-charts/internals").ZoomData> | undefined) & {
219
+ clearCache: () => void;
220
+ resultsCount: () => number;
221
+ resetResultsCount: () => void;
222
+ } & {
223
+ resultFunc: (resultFuncArgs_0: {
224
+ isInteracting: boolean;
225
+ zoomData: readonly import("@mui/x-charts/internals").ZoomData[];
226
+ } | undefined) => Map<AxisId, import("@mui/x-charts/internals").ZoomData> | undefined;
227
+ memoizedResultFunc: ((resultFuncArgs_0: {
228
+ isInteracting: boolean;
229
+ zoomData: readonly import("@mui/x-charts/internals").ZoomData[];
230
+ } | undefined) => Map<AxisId, import("@mui/x-charts/internals").ZoomData> | undefined) & {
231
+ clearCache: () => void;
232
+ resultsCount: () => number;
233
+ resetResultsCount: () => void;
234
+ };
235
+ lastResult: () => Map<AxisId, import("@mui/x-charts/internals").ZoomData> | undefined;
236
+ dependencies: [(state: import("@mui/x-charts/internals").ChartState<[], [import("@mui/x-charts/internals").UseChartCartesianAxisSignature]>) => {
237
+ isInteracting: boolean;
238
+ zoomData: readonly import("@mui/x-charts/internals").ZoomData[];
239
+ } | undefined];
240
+ recomputations: () => number;
241
+ resetRecomputations: () => void;
242
+ dependencyRecomputations: () => number;
243
+ resetDependencyRecomputations: () => void;
244
+ } & {
245
+ memoize: typeof import("reselect").weakMapMemoize;
246
+ argsMemoize: typeof import("reselect").weakMapMemoize;
247
+ }, (state: any, axisId: AxisId) => AxisId];
248
+ recomputations: () => number;
249
+ resetRecomputations: () => void;
250
+ dependencyRecomputations: () => number;
251
+ resetDependencyRecomputations: () => void;
252
+ } & {
253
+ argsMemoize: typeof import("reselect").weakMapMemoize;
254
+ memoize: typeof import("reselect").weakMapMemoize;
203
255
  };
@@ -1,4 +1,5 @@
1
- import { createSelector, selectorChartZoomOptionsLookup } from '@mui/x-charts/internals';
1
+ import { createSelector, selectorChartZoomMap, selectorChartZoomOptionsLookup } from '@mui/x-charts/internals';
2
2
  export const selectorChartZoomState = state => state.zoom;
3
3
  export const selectorChartZoomIsInteracting = createSelector(selectorChartZoomState, zoom => zoom.isInteracting);
4
- export const selectorChartZoomIsEnabled = createSelector(selectorChartZoomOptionsLookup, optionsLookup => Object.keys(optionsLookup).length > 0);
4
+ export const selectorChartZoomIsEnabled = createSelector(selectorChartZoomOptionsLookup, optionsLookup => Object.keys(optionsLookup).length > 0);
5
+ export const selectorChartAxisZoomData = createSelector([selectorChartZoomMap, (state, axisId) => axisId], (zoomMap, axisId) => zoomMap?.get(axisId));
@@ -1,4 +1,4 @@
1
- import { UseChartSeriesSignature, ChartPluginSignature, UseChartCartesianAxisSignature, UseChartCartesianAxisDefaultizedParameters, ZoomData } from '@mui/x-charts/internals';
1
+ import { UseChartSeriesSignature, ChartPluginSignature, UseChartCartesianAxisSignature, UseChartCartesianAxisDefaultizedParameters, ZoomData, AxisId } from '@mui/x-charts/internals';
2
2
  export interface UseChartProZoomParameters {
3
3
  /**
4
4
  * The list of zoom data related to each axis.
@@ -42,7 +42,22 @@ export interface UseChartProZoomPublicApi {
42
42
  */
43
43
  setZoomData: (value: ZoomData[] | ((prev: ZoomData[]) => ZoomData[])) => void;
44
44
  }
45
- export interface UseChartProZoomInstance extends UseChartProZoomPublicApi {}
45
+ export interface UseChartProZoomInstance extends UseChartProZoomPublicApi {
46
+ /**
47
+ * Translate the zoom range (i.e., both start and end) for a specific axis.
48
+ * @param {AxisId} axisId The id of the axis to move the zoom range for.
49
+ * @param {number} by The amount to move the zoom range by. Ranges from 0 to 100.
50
+ */
51
+ moveZoomRange: (axisId: AxisId, by: number) => void;
52
+ /**
53
+ * Zoom in the chart.
54
+ */
55
+ zoomIn: () => void;
56
+ /**
57
+ * Zoom out the chart.
58
+ */
59
+ zoomOut: () => void;
60
+ }
46
61
  export type UseChartProZoomSignature = ChartPluginSignature<{
47
62
  params: UseChartProZoomParameters;
48
63
  defaultizedParams: UseChartProZoomDefaultizedParameters;
@@ -0,0 +1,10 @@
1
+ import type * as React from 'react';
2
+ import { ChartBaseCommonProps } from '@mui/x-charts/models';
3
+ export type ChartBaseTooltipProps = ChartBaseCommonProps & {
4
+ children: React.ReactElement<any, any>;
5
+ enterDelay?: number;
6
+ title: React.ReactNode;
7
+ };
8
+ export type ChartBaseIconButtonProps = ChartBaseCommonProps & {
9
+ ref?: React.Ref<HTMLButtonElement>;
10
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import { ChartsBaseSlots } from '@mui/x-charts/models';
2
+ import * as React from 'react';
3
+ import { ChartBaseTooltipProps } from "./chartBaseSlotProps.js";
4
+ export interface ChartsBaseSlotsPro extends ChartsBaseSlots {
5
+ baseTooltip: React.ComponentType<ChartBaseTooltipProps>;
6
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ import { ChartBaseIconProps, ChartsIconSlots } from '@mui/x-charts/models';
3
+ export interface ChartsIconSlotsPro extends ChartsIconSlots {
4
+ /**
5
+ * Icon displayed on the toolbar's zoom in button.
6
+ * @default ChartsZoomInIcon
7
+ */
8
+ zoomInIcon: React.ComponentType<ChartBaseIconProps>;
9
+ /**
10
+ * Icon displayed on the toolbar's zoom out button.
11
+ * @default ChartsZoomOutIcon
12
+ */
13
+ zoomOutIcon: React.ComponentType<ChartBaseIconProps>;
14
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,19 +1,15 @@
1
1
  import { ComponentsProps, ComponentsOverrides } from '@mui/material/styles';
2
2
  export interface ChartsProComponents<Theme = unknown> {
3
- // BarChartPro components
4
3
  MuiBarChartPro?: {
5
4
  defaultProps?: ComponentsProps['MuiBarChartPro'];
6
5
  };
7
- // LineChartPro components
8
6
  MuiLineChartPro?: {
9
7
  defaultProps?: ComponentsProps['MuiLineChartPro'];
10
8
  };
11
- // Heatmap components
12
9
  MuiHeatmap?: {
13
10
  defaultProps?: ComponentsProps['MuiHeatmap'];
14
11
  styleOverrides?: ComponentsOverrides<Theme>['MuiHeatmap'];
15
12
  };
16
- // ScatterChartPro components
17
13
  MuiScatterChartPro?: {
18
14
  defaultProps?: ComponentsProps['MuiScatterChartPro'];
19
15
  };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,4 @@
1
1
  export type * from '@mui/x-charts/themeAugmentation';
2
- export type * from './overrides';
3
- export type * from './props';
4
- export type * from './components';
2
+ export type * from "./overrides.js";
3
+ export type * from "./props.js";
4
+ export type * from "./components.js";
@@ -1,11 +1,8 @@
1
1
  import { HeatmapClassKey } from "../Heatmap/index.js";
2
2
  export interface ChartsProComponentNameToClassKey {
3
- // Heatmap components
4
3
  MuiHeatmap: HeatmapClassKey;
5
4
  }
6
5
  declare module '@mui/material/styles' {
7
6
  interface ComponentNameToClassKey extends ChartsProComponentNameToClassKey {}
8
7
  }
9
-
10
- // disable automatic export
11
8
  export {};
@@ -0,0 +1,2 @@
1
+ // disable automatic export
2
+ export {};
@@ -3,18 +3,12 @@ import { BarChartProProps } from "../BarChartPro/index.js";
3
3
  import { HeatmapProps } from "../Heatmap/Heatmap.js";
4
4
  import { LineChartProProps } from "../LineChartPro/index.js";
5
5
  export interface ChartsProComponentsPropsList {
6
- // BarChartPro components
7
6
  MuiBarChartPro: BarChartProProps;
8
- // LineChartPro components
9
7
  MuiLineChartPro: LineChartProProps;
10
- // Heatmap components
11
8
  MuiHeatmap: HeatmapProps;
12
- // ScatterChartPro components
13
9
  MuiScatterChartPro: ScatterChartProProps;
14
10
  }
15
11
  declare module '@mui/material/styles' {
16
12
  interface ComponentsPropsList extends ChartsProComponentsPropsList {}
17
13
  }
18
-
19
- // disable automatic export
20
14
  export {};
@@ -0,0 +1,2 @@
1
+ // disable automatic export
2
+ export {};
@@ -1,7 +1,7 @@
1
1
  import { DefaultizedProps, MakeRequired } from '@mui/x-internals/types';
2
2
  import { AxisId, ZoomOptions } from '@mui/x-charts/internals';
3
- import { HeatmapItemIdentifier, HeatmapSeriesType, DefaultizedHeatmapSeriesType, HeatmapValueType } from "../models/seriesType/heatmap.js";
4
3
  import { DefaultizedFunnelSeriesType, FunnelItemIdentifier, FunnelSeriesType, FunnelValueType } from "../FunnelChart/funnel.types.js";
4
+ import { HeatmapItemIdentifier, HeatmapSeriesType, DefaultizedHeatmapSeriesType, HeatmapValueType } from "../models/seriesType/heatmap.js";
5
5
  declare module '@mui/x-charts/internals' {
6
6
  interface ChartsSeriesConfig {
7
7
  heatmap: {
package/index.d.ts CHANGED
@@ -25,6 +25,7 @@ export * from '@mui/x-charts/RadarChart';
25
25
  export * from '@mui/x-charts/ChartsSurface';
26
26
  export * from '@mui/x-charts/ChartDataProvider';
27
27
  export * from '@mui/x-charts/ChartsLabel';
28
+ export { ZoomData, ZoomFilterMode, ZoomOptions, ZoomSliderOptions } from '@mui/x-charts/internals';
28
29
  export * from "./hooks/index.js";
29
30
  export * from "./Heatmap/index.js";
30
31
  export * from "./ChartContainerPro/index.js";
@@ -32,4 +33,6 @@ export * from "./ChartDataProviderPro/index.js";
32
33
  export * from "./ScatterChartPro/index.js";
33
34
  export * from "./BarChartPro/index.js";
34
35
  export * from "./LineChartPro/index.js";
35
- export * from "./FunnelChart/index.js";
36
+ export * from "./FunnelChart/index.js";
37
+ export * from "./ChartZoomSlider/index.js";
38
+ export * from "./ChartsToolbarPro/index.js";