@mui/x-charts-pro 9.8.0 → 9.9.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 (157) hide show
  1. package/BarChartPro/BarChartPro.d.mts +9 -1
  2. package/BarChartPro/BarChartPro.d.ts +9 -1
  3. package/BarChartPro/BarChartPro.js +14 -3
  4. package/BarChartPro/BarChartPro.mjs +14 -3
  5. package/BarChartPro/BarChartPro.plugins.d.mts +2 -1
  6. package/BarChartPro/BarChartPro.plugins.d.ts +2 -1
  7. package/BarChartPro/BarChartPro.plugins.js +2 -1
  8. package/BarChartPro/BarChartPro.plugins.mjs +2 -1
  9. package/CHANGELOG.md +119 -0
  10. package/ChartsContainerPro/useChartsContainerProProps.d.mts +6 -2
  11. package/ChartsContainerPro/useChartsContainerProProps.d.ts +6 -2
  12. package/ChartsContainerPro/useChartsContainerProProps.js +9 -1
  13. package/ChartsContainerPro/useChartsContainerProProps.mjs +8 -1
  14. package/ChartsDataProviderPro/ChartsDataProviderPro.d.mts +1 -1
  15. package/ChartsDataProviderPro/ChartsDataProviderPro.d.ts +1 -1
  16. package/ChartsDataProviderPro/ChartsDataProviderPro.js +14 -3
  17. package/ChartsDataProviderPro/ChartsDataProviderPro.mjs +14 -3
  18. package/ChartsToolbarPro/ChartsToolbarPro.d.mts +2 -1
  19. package/ChartsToolbarPro/ChartsToolbarPro.d.ts +2 -1
  20. package/ChartsToolbarPro/internals/ChartsMenu.d.mts +1 -1
  21. package/ChartsToolbarPro/internals/ChartsMenu.d.ts +1 -1
  22. package/ChartsZoomSlider/ChartsZoomSlider.d.mts +2 -1
  23. package/ChartsZoomSlider/ChartsZoomSlider.d.ts +2 -1
  24. package/ChartsZoomSlider/internals/ChartsAxisZoomSlider.d.mts +2 -1
  25. package/ChartsZoomSlider/internals/ChartsAxisZoomSlider.d.ts +2 -1
  26. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderActiveTrack.d.mts +2 -1
  27. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderActiveTrack.d.ts +2 -1
  28. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreview.d.mts +2 -1
  29. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreview.d.ts +2 -1
  30. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreviewContent.d.mts +2 -1
  31. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreviewContent.d.ts +2 -1
  32. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderTrack.d.mts +1 -1
  33. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderTrack.d.ts +1 -1
  34. package/ChartsZoomSlider/internals/ChartsTooltipZoomSliderValue.d.mts +1 -1
  35. package/ChartsZoomSlider/internals/ChartsTooltipZoomSliderValue.d.ts +1 -1
  36. package/ChartsZoomSlider/internals/previews/AreaPreviewPlot.d.mts +1 -1
  37. package/ChartsZoomSlider/internals/previews/AreaPreviewPlot.d.ts +1 -1
  38. package/ChartsZoomSlider/internals/previews/BarPreviewPlot.d.mts +1 -1
  39. package/ChartsZoomSlider/internals/previews/BarPreviewPlot.d.ts +1 -1
  40. package/ChartsZoomSlider/internals/previews/LineAreaPreviewPlot.d.mts +2 -1
  41. package/ChartsZoomSlider/internals/previews/LineAreaPreviewPlot.d.ts +2 -1
  42. package/ChartsZoomSlider/internals/previews/LinePreviewPlot.d.mts +1 -1
  43. package/ChartsZoomSlider/internals/previews/LinePreviewPlot.d.ts +1 -1
  44. package/ChartsZoomSlider/internals/previews/LinePreviewPlot.js +16 -1
  45. package/ChartsZoomSlider/internals/previews/LinePreviewPlot.mjs +17 -2
  46. package/ChartsZoomSlider/internals/previews/ScatterPreviewPlot.d.mts +2 -1
  47. package/ChartsZoomSlider/internals/previews/ScatterPreviewPlot.d.ts +2 -1
  48. package/FunnelChart/FocusedFunnelSection.d.mts +1 -1
  49. package/FunnelChart/FocusedFunnelSection.d.ts +1 -1
  50. package/FunnelChart/FunnelPlot.d.mts +1 -1
  51. package/FunnelChart/FunnelPlot.d.ts +1 -1
  52. package/FunnelChart/seriesConfig/index.js +2 -2
  53. package/FunnelChart/seriesConfig/index.mjs +2 -2
  54. package/FunnelChart/seriesConfig/tooltipPosition.d.mts +2 -3
  55. package/FunnelChart/seriesConfig/tooltipPosition.d.ts +2 -3
  56. package/FunnelChart/seriesConfig/tooltipPosition.js +11 -15
  57. package/FunnelChart/seriesConfig/tooltipPosition.mjs +11 -15
  58. package/Heatmap/FocusedHeatmapCell.d.mts +1 -1
  59. package/Heatmap/FocusedHeatmapCell.d.ts +1 -1
  60. package/Heatmap/HeatmapItem.d.mts +1 -1
  61. package/Heatmap/HeatmapItem.d.ts +1 -1
  62. package/Heatmap/HeatmapSVGPlot.d.mts +2 -1
  63. package/Heatmap/HeatmapSVGPlot.d.ts +2 -1
  64. package/Heatmap/HeatmapTooltip/HeatmapTooltip.d.mts +1 -1
  65. package/Heatmap/HeatmapTooltip/HeatmapTooltip.d.ts +1 -1
  66. package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.d.mts +1 -1
  67. package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.d.ts +1 -1
  68. package/Heatmap/seriesConfig/index.js +2 -2
  69. package/Heatmap/seriesConfig/index.mjs +2 -2
  70. package/Heatmap/seriesConfig/tooltipPosition.d.mts +2 -3
  71. package/Heatmap/seriesConfig/tooltipPosition.d.ts +2 -3
  72. package/Heatmap/seriesConfig/tooltipPosition.js +12 -16
  73. package/Heatmap/seriesConfig/tooltipPosition.mjs +12 -16
  74. package/LineChartPro/LineChartPro.d.mts +11 -1
  75. package/LineChartPro/LineChartPro.d.ts +11 -1
  76. package/LineChartPro/LineChartPro.js +16 -3
  77. package/LineChartPro/LineChartPro.mjs +16 -3
  78. package/LineChartPro/LineChartPro.plugins.d.mts +2 -1
  79. package/LineChartPro/LineChartPro.plugins.d.ts +2 -1
  80. package/LineChartPro/LineChartPro.plugins.js +2 -1
  81. package/LineChartPro/LineChartPro.plugins.mjs +2 -1
  82. package/SankeyChart/FocusedSankeyLink.d.mts +1 -1
  83. package/SankeyChart/FocusedSankeyLink.d.ts +1 -1
  84. package/SankeyChart/FocusedSankeyNode.d.mts +1 -1
  85. package/SankeyChart/FocusedSankeyNode.d.ts +1 -1
  86. package/SankeyChart/SankeyDataProvider.d.mts +1 -1
  87. package/SankeyChart/SankeyDataProvider.d.ts +1 -1
  88. package/SankeyChart/SankeyLinkLabelPlot.d.mts +1 -1
  89. package/SankeyChart/SankeyLinkLabelPlot.d.ts +1 -1
  90. package/SankeyChart/SankeyLinkPlot.d.mts +1 -1
  91. package/SankeyChart/SankeyLinkPlot.d.ts +1 -1
  92. package/SankeyChart/SankeyNodeLabelPlot.d.mts +1 -1
  93. package/SankeyChart/SankeyNodeLabelPlot.d.ts +1 -1
  94. package/SankeyChart/SankeyNodePlot.d.mts +1 -1
  95. package/SankeyChart/SankeyNodePlot.d.ts +1 -1
  96. package/SankeyChart/SankeyPlot.d.mts +1 -1
  97. package/SankeyChart/SankeyPlot.d.ts +1 -1
  98. package/SankeyChart/SankeyTooltip/SankeyTooltip.d.mts +1 -1
  99. package/SankeyChart/SankeyTooltip/SankeyTooltip.d.ts +1 -1
  100. package/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.mts +1 -1
  101. package/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.ts +1 -1
  102. package/SankeyChart/seriesConfig/index.js +2 -2
  103. package/SankeyChart/seriesConfig/index.mjs +2 -2
  104. package/SankeyChart/seriesConfig/tooltipPosition.d.mts +2 -3
  105. package/SankeyChart/seriesConfig/tooltipPosition.d.ts +2 -3
  106. package/SankeyChart/seriesConfig/tooltipPosition.js +6 -11
  107. package/SankeyChart/seriesConfig/tooltipPosition.mjs +5 -10
  108. package/index.js +1 -1
  109. package/index.mjs +1 -1
  110. package/internals/ChartsWatermark.d.mts +2 -1
  111. package/internals/ChartsWatermark.d.ts +2 -1
  112. package/internals/index.d.mts +2 -0
  113. package/internals/index.d.ts +2 -0
  114. package/internals/index.js +30 -0
  115. package/internals/index.mjs +2 -0
  116. package/internals/material/components/BaseMenuItem.d.mts +1 -1
  117. package/internals/material/components/BaseMenuItem.d.ts +1 -1
  118. package/internals/material/components/BasePopper.d.mts +2 -1
  119. package/internals/material/components/BasePopper.d.ts +2 -1
  120. package/internals/plugins/useChartProSampling/barSampler.d.mts +8 -0
  121. package/internals/plugins/useChartProSampling/barSampler.d.ts +8 -0
  122. package/internals/plugins/useChartProSampling/barSampler.js +18 -0
  123. package/internals/plugins/useChartProSampling/barSampler.mjs +12 -0
  124. package/internals/plugins/useChartProSampling/index.d.mts +2 -0
  125. package/internals/plugins/useChartProSampling/index.d.ts +2 -0
  126. package/internals/plugins/useChartProSampling/index.js +12 -0
  127. package/internals/plugins/useChartProSampling/index.mjs +1 -0
  128. package/internals/plugins/useChartProSampling/lineSampler.d.mts +8 -0
  129. package/internals/plugins/useChartProSampling/lineSampler.d.ts +8 -0
  130. package/internals/plugins/useChartProSampling/lineSampler.js +47 -0
  131. package/internals/plugins/useChartProSampling/lineSampler.mjs +41 -0
  132. package/internals/plugins/useChartProSampling/sampling.d.mts +38 -0
  133. package/internals/plugins/useChartProSampling/sampling.d.ts +38 -0
  134. package/internals/plugins/useChartProSampling/sampling.js +175 -0
  135. package/internals/plugins/useChartProSampling/sampling.line.d.mts +22 -0
  136. package/internals/plugins/useChartProSampling/sampling.line.d.ts +22 -0
  137. package/internals/plugins/useChartProSampling/sampling.line.js +172 -0
  138. package/internals/plugins/useChartProSampling/sampling.line.mjs +164 -0
  139. package/internals/plugins/useChartProSampling/sampling.mjs +164 -0
  140. package/internals/plugins/useChartProSampling/sampling.pyramid.types.d.mts +33 -0
  141. package/internals/plugins/useChartProSampling/sampling.pyramid.types.d.ts +33 -0
  142. package/internals/plugins/useChartProSampling/sampling.pyramid.types.js +5 -0
  143. package/internals/plugins/useChartProSampling/sampling.pyramid.types.mjs +1 -0
  144. package/internals/plugins/useChartProSampling/useChartProSampling.d.mts +4 -0
  145. package/internals/plugins/useChartProSampling/useChartProSampling.d.ts +4 -0
  146. package/internals/plugins/useChartProSampling/useChartProSampling.js +59 -0
  147. package/internals/plugins/useChartProSampling/useChartProSampling.mjs +52 -0
  148. package/internals/plugins/useChartProSampling/useChartProSampling.types.d.mts +25 -0
  149. package/internals/plugins/useChartProSampling/useChartProSampling.types.d.ts +25 -0
  150. package/internals/plugins/useChartProSampling/useChartProSampling.types.js +5 -0
  151. package/internals/plugins/useChartProSampling/useChartProSampling.types.mjs +1 -0
  152. package/internals/plugins/useChartProZoom/gestureHooks/useRegisterZoomGestures.d.mts +4 -3
  153. package/internals/plugins/useChartProZoom/gestureHooks/useRegisterZoomGestures.d.ts +4 -3
  154. package/internals/plugins/useChartProZoom/gestureHooks/useRegisterZoomGestures.mjs +1 -0
  155. package/package.json +6 -6
  156. package/typeOverloads/modules.d.mts +9 -1
  157. package/typeOverloads/modules.d.ts +9 -1
@@ -1,28 +1,25 @@
1
- import { isBandScaleConfig } from '@mui/x-charts/internals';
2
- const tooltipItemPositionGetter = params => {
3
- const {
4
- series,
5
- identifier,
6
- axesConfig,
7
- placement
8
- } = params;
9
- if (!identifier) {
1
+ import { createSelectorMemoized } from '@mui/x-internals/store';
2
+ import { isBandScaleConfig, selectorChartsTooltipItem, selectorChartSeriesProcessed, selectorChartXAxis, selectorChartYAxis } from '@mui/x-charts/internals';
3
+ export const selectorTooltipItemPosition = createSelectorMemoized(selectorChartsTooltipItem, selectorChartSeriesProcessed, selectorChartXAxis, selectorChartYAxis, function selectorTooltipItemPosition(identifier, series, xAxes, yAxes, placement) {
4
+ if (!identifier || identifier.type !== 'heatmap') {
10
5
  return null;
11
6
  }
12
7
  const itemSeries = series.heatmap?.series[identifier.seriesId];
13
8
  if (itemSeries == null) {
14
9
  return null;
15
10
  }
16
- if (axesConfig.x === undefined || axesConfig.y === undefined || !isBandScaleConfig(axesConfig.x) || !isBandScaleConfig(axesConfig.y)) {
11
+ const xAxis = xAxes.axis[itemSeries.xAxisId ?? xAxes.axisIds[0]];
12
+ const yAxis = yAxes.axis[itemSeries.yAxisId ?? yAxes.axisIds[0]];
13
+ if (xAxis === undefined || yAxis === undefined || !isBandScaleConfig(xAxis) || !isBandScaleConfig(yAxis)) {
17
14
  return null;
18
15
  }
19
- const x = axesConfig.x.scale(axesConfig.x.scale.domain()[identifier.xIndex]);
20
- const y = axesConfig.y.scale(axesConfig.y.scale.domain()[identifier.yIndex]);
16
+ const x = xAxis.scale(xAxis.scale.domain()[identifier.xIndex]);
17
+ const y = yAxis.scale(yAxis.scale.domain()[identifier.yIndex]);
21
18
  if (x === undefined || y === undefined) {
22
19
  return null;
23
20
  }
24
- const width = axesConfig.x.scale.bandwidth();
25
- const height = axesConfig.y.scale.bandwidth();
21
+ const width = xAxis.scale.bandwidth();
22
+ const height = yAxis.scale.bandwidth();
26
23
  switch (placement) {
27
24
  case 'bottom':
28
25
  return {
@@ -46,5 +43,4 @@ const tooltipItemPositionGetter = params => {
46
43
  y
47
44
  };
48
45
  }
49
- };
50
- export default tooltipItemPositionGetter;
46
+ });
@@ -1,12 +1,22 @@
1
1
  import * as React from 'react';
2
2
  import type { LineChartProps, LineChartSlots, LineChartSlotProps } from '@mui/x-charts/LineChart';
3
+ import type { SamplingMethod } from '@mui/x-charts/internals';
3
4
  import type { ChartsToolbarProSlotProps, ChartsToolbarProSlots } from "../ChartsToolbarPro/Toolbar.types.mjs";
4
5
  import type { ChartsSlotPropsPro, ChartsSlotsPro } from "../internals/material/index.mjs";
5
6
  import type { ChartsContainerProProps } from "../ChartsContainerPro/index.mjs";
6
7
  import type { LineChartProPluginSignatures } from "./LineChartPro.plugins.mjs";
7
8
  export interface LineChartProSlots extends Omit<LineChartSlots, 'toolbar'>, ChartsToolbarProSlots, Partial<ChartsSlotsPro> {}
8
9
  export interface LineChartProSlotProps extends Omit<LineChartSlotProps, 'toolbar'>, ChartsToolbarProSlotProps, Partial<ChartsSlotPropsPro> {}
9
- export interface LineChartProProps extends Omit<LineChartProps, 'apiRef' | 'slots' | 'slotProps' | 'plugins' | 'seriesConfig'>, Omit<ChartsContainerProProps<'line', LineChartProPluginSignatures>, 'series' | 'slots' | 'slotProps'> {
10
+ export interface LineChartProProps extends Omit<LineChartProps, 'apiRef' | 'slots' | 'slotProps' | 'plugins' | 'seriesConfig'>, Omit<ChartsContainerProProps<'line', LineChartProPluginSignatures>, 'series' | 'slots' | 'slotProps' | 'sampling'> {
11
+ /**
12
+ * Sampling method used to render large datasets when zoomed out.
13
+ * - `'none'`: render every point (no sampling).
14
+ * - `'minmax'`: keep the min and max per bucket.
15
+ * - `'m4'`: pixel-accurate—keep the first, min, max, and last per bucket.
16
+ * - `'lttb'`: Largest-Triangle-Three-Buckets, preserves the visual shape.
17
+ * @default 'none'
18
+ */
19
+ sampling?: SamplingMethod;
10
20
  /**
11
21
  * Overridable component slots.
12
22
  * @default {}
@@ -1,12 +1,22 @@
1
1
  import * as React from 'react';
2
2
  import type { LineChartProps, LineChartSlots, LineChartSlotProps } from '@mui/x-charts/LineChart';
3
+ import type { SamplingMethod } from '@mui/x-charts/internals';
3
4
  import type { ChartsToolbarProSlotProps, ChartsToolbarProSlots } from "../ChartsToolbarPro/Toolbar.types.js";
4
5
  import type { ChartsSlotPropsPro, ChartsSlotsPro } from "../internals/material/index.js";
5
6
  import type { ChartsContainerProProps } from "../ChartsContainerPro/index.js";
6
7
  import type { LineChartProPluginSignatures } from "./LineChartPro.plugins.js";
7
8
  export interface LineChartProSlots extends Omit<LineChartSlots, 'toolbar'>, ChartsToolbarProSlots, Partial<ChartsSlotsPro> {}
8
9
  export interface LineChartProSlotProps extends Omit<LineChartSlotProps, 'toolbar'>, ChartsToolbarProSlotProps, Partial<ChartsSlotPropsPro> {}
9
- export interface LineChartProProps extends Omit<LineChartProps, 'apiRef' | 'slots' | 'slotProps' | 'plugins' | 'seriesConfig'>, Omit<ChartsContainerProProps<'line', LineChartProPluginSignatures>, 'series' | 'slots' | 'slotProps'> {
10
+ export interface LineChartProProps extends Omit<LineChartProps, 'apiRef' | 'slots' | 'slotProps' | 'plugins' | 'seriesConfig'>, Omit<ChartsContainerProProps<'line', LineChartProPluginSignatures>, 'series' | 'slots' | 'slotProps' | 'sampling'> {
11
+ /**
12
+ * Sampling method used to render large datasets when zoomed out.
13
+ * - `'none'`: render every point (no sampling).
14
+ * - `'minmax'`: keep the min and max per bucket.
15
+ * - `'m4'`: pixel-accurate—keep the first, min, max, and last per bucket.
16
+ * - `'lttb'`: Largest-Triangle-Three-Buckets, preserves the visual shape.
17
+ * @default 'none'
18
+ */
19
+ sampling?: SamplingMethod;
10
20
  /**
11
21
  * Overridable component slots.
12
22
  * @default {}
@@ -30,7 +30,7 @@ var _useChartsContainerProProps = require("../ChartsContainerPro/useChartsContai
30
30
  var _ChartsDataProviderPro = require("../ChartsDataProviderPro");
31
31
  var _LineChartPro2 = require("./LineChartPro.plugins");
32
32
  var _jsxRuntime = require("react/jsx-runtime");
33
- const _excluded = ["initialZoom", "zoomData", "onZoomChange", "apiRef", "showToolbar"];
33
+ const _excluded = ["initialZoom", "zoomData", "onZoomChange", "apiRef", "showToolbar", "sampling"];
34
34
  /**
35
35
  * Demos:
36
36
  *
@@ -51,7 +51,8 @@ const LineChartPro = exports.LineChartPro = /*#__PURE__*/React.forwardRef(functi
51
51
  zoomData,
52
52
  onZoomChange,
53
53
  apiRef,
54
- showToolbar
54
+ showToolbar,
55
+ sampling
55
56
  } = props,
56
57
  other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
57
58
  const {
@@ -79,7 +80,10 @@ const LineChartPro = exports.LineChartPro = /*#__PURE__*/React.forwardRef(functi
79
80
  onZoomChange,
80
81
  apiRef,
81
82
  plugins: _LineChartPro2.LINE_CHART_PRO_PLUGINS
82
- }));
83
+ }), {
84
+ seriesType: 'line',
85
+ method: sampling
86
+ });
83
87
  const Tooltip = props.slots?.tooltip ?? _ChartsTooltip.ChartsTooltip;
84
88
  const Toolbar = props.slots?.toolbar ?? _ChartsToolbarPro.ChartsToolbarPro;
85
89
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsDataProviderPro.ChartsDataProviderPro, (0, _extends2.default)({}, chartsDataProviderProProps, {
@@ -364,6 +368,15 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes /* remove-proptyp
364
368
  * @param {ZoomData[]} zoomData Updated zoom data.
365
369
  */
366
370
  onZoomChange: _propTypes.default.func,
371
+ /**
372
+ * Sampling method used to render large datasets when zoomed out.
373
+ * - `'none'`: render every point (no sampling).
374
+ * - `'minmax'`: keep the min and max per bucket.
375
+ * - `'m4'`: pixel-accurate—keep the first, min, max, and last per bucket.
376
+ * - `'lttb'`: Largest-Triangle-Three-Buckets, preserves the visual shape.
377
+ * @default 'none'
378
+ */
379
+ sampling: _propTypes.default.oneOf(['lttb', 'm4', 'minmax', 'none']),
367
380
  /**
368
381
  * The series to display in the line chart.
369
382
  * An array of [[LineSeries]] objects.
@@ -2,7 +2,7 @@
2
2
 
3
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
5
- const _excluded = ["initialZoom", "zoomData", "onZoomChange", "apiRef", "showToolbar"];
5
+ const _excluded = ["initialZoom", "zoomData", "onZoomChange", "apiRef", "showToolbar", "sampling"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import { useThemeProps } from '@mui/material/styles';
@@ -44,7 +44,8 @@ const LineChartPro = /*#__PURE__*/React.forwardRef(function LineChartPro(inProps
44
44
  zoomData,
45
45
  onZoomChange,
46
46
  apiRef,
47
- showToolbar
47
+ showToolbar,
48
+ sampling
48
49
  } = props,
49
50
  other = _objectWithoutPropertiesLoose(props, _excluded);
50
51
  const {
@@ -72,7 +73,10 @@ const LineChartPro = /*#__PURE__*/React.forwardRef(function LineChartPro(inProps
72
73
  onZoomChange,
73
74
  apiRef,
74
75
  plugins: LINE_CHART_PRO_PLUGINS
75
- }));
76
+ }), {
77
+ seriesType: 'line',
78
+ method: sampling
79
+ });
76
80
  const Tooltip = props.slots?.tooltip ?? ChartsTooltip;
77
81
  const Toolbar = props.slots?.toolbar ?? ChartsToolbarPro;
78
82
  return /*#__PURE__*/_jsx(ChartsDataProviderPro, _extends({}, chartsDataProviderProProps, {
@@ -357,6 +361,15 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes /* remove-proptyp
357
361
  * @param {ZoomData[]} zoomData Updated zoom data.
358
362
  */
359
363
  onZoomChange: PropTypes.func,
364
+ /**
365
+ * Sampling method used to render large datasets when zoomed out.
366
+ * - `'none'`: render every point (no sampling).
367
+ * - `'minmax'`: keep the min and max per bucket.
368
+ * - `'m4'`: pixel-accurate—keep the first, min, max, and last per bucket.
369
+ * - `'lttb'`: Largest-Triangle-Three-Buckets, preserves the visual shape.
370
+ * @default 'none'
371
+ */
372
+ sampling: PropTypes.oneOf(['lttb', 'm4', 'minmax', 'none']),
360
373
  /**
361
374
  * The series to display in the line chart.
362
375
  * An array of [[LineSeries]] objects.
@@ -1,5 +1,6 @@
1
1
  import type { UseChartZAxisSignature, UseChartCartesianAxisSignature, UseChartTooltipSignature, UseChartInteractionSignature, UseChartHighlightSignature, UseChartKeyboardNavigationSignature, UseChartBrushSignature, ConvertSignaturesIntoPlugins, UseChartVisibilityManagerSignature } from '@mui/x-charts/internals';
2
2
  import type { UseChartProExportSignature } from "../internals/plugins/useChartProExport/index.mjs";
3
3
  import type { UseChartProZoomSignature } from "../internals/plugins/useChartProZoom/index.mjs";
4
- export type LineChartProPluginSignatures = [UseChartZAxisSignature, UseChartBrushSignature, UseChartTooltipSignature<'line'>, UseChartInteractionSignature, UseChartCartesianAxisSignature<'line'>, UseChartHighlightSignature<'line'>, UseChartVisibilityManagerSignature<'line'>, UseChartKeyboardNavigationSignature, UseChartProZoomSignature, UseChartProExportSignature];
4
+ import type { UseChartProSamplingSignature } from "../internals/plugins/useChartProSampling/index.mjs";
5
+ export type LineChartProPluginSignatures = [UseChartZAxisSignature, UseChartBrushSignature, UseChartTooltipSignature<'line'>, UseChartInteractionSignature, UseChartCartesianAxisSignature<'line'>, UseChartHighlightSignature<'line'>, UseChartVisibilityManagerSignature<'line'>, UseChartKeyboardNavigationSignature, UseChartProZoomSignature, UseChartProSamplingSignature, UseChartProExportSignature];
5
6
  export declare const LINE_CHART_PRO_PLUGINS: ConvertSignaturesIntoPlugins<LineChartProPluginSignatures>;
@@ -1,5 +1,6 @@
1
1
  import type { UseChartZAxisSignature, UseChartCartesianAxisSignature, UseChartTooltipSignature, UseChartInteractionSignature, UseChartHighlightSignature, UseChartKeyboardNavigationSignature, UseChartBrushSignature, ConvertSignaturesIntoPlugins, UseChartVisibilityManagerSignature } from '@mui/x-charts/internals';
2
2
  import type { UseChartProExportSignature } from "../internals/plugins/useChartProExport/index.js";
3
3
  import type { UseChartProZoomSignature } from "../internals/plugins/useChartProZoom/index.js";
4
- export type LineChartProPluginSignatures = [UseChartZAxisSignature, UseChartBrushSignature, UseChartTooltipSignature<'line'>, UseChartInteractionSignature, UseChartCartesianAxisSignature<'line'>, UseChartHighlightSignature<'line'>, UseChartVisibilityManagerSignature<'line'>, UseChartKeyboardNavigationSignature, UseChartProZoomSignature, UseChartProExportSignature];
4
+ import type { UseChartProSamplingSignature } from "../internals/plugins/useChartProSampling/index.js";
5
+ export type LineChartProPluginSignatures = [UseChartZAxisSignature, UseChartBrushSignature, UseChartTooltipSignature<'line'>, UseChartInteractionSignature, UseChartCartesianAxisSignature<'line'>, UseChartHighlightSignature<'line'>, UseChartVisibilityManagerSignature<'line'>, UseChartKeyboardNavigationSignature, UseChartProZoomSignature, UseChartProSamplingSignature, UseChartProExportSignature];
5
6
  export declare const LINE_CHART_PRO_PLUGINS: ConvertSignaturesIntoPlugins<LineChartProPluginSignatures>;
@@ -7,4 +7,5 @@ exports.LINE_CHART_PRO_PLUGINS = void 0;
7
7
  var _internals = require("@mui/x-charts/internals");
8
8
  var _useChartProExport = require("../internals/plugins/useChartProExport");
9
9
  var _useChartProZoom = require("../internals/plugins/useChartProZoom");
10
- const LINE_CHART_PRO_PLUGINS = exports.LINE_CHART_PRO_PLUGINS = [_internals.useChartZAxis, _internals.useChartBrush, _internals.useChartTooltip, _internals.useChartInteraction, _internals.useChartCartesianAxis, _internals.useChartHighlight, _internals.useChartVisibilityManager, _internals.useChartKeyboardNavigation, _useChartProZoom.useChartProZoom, _useChartProExport.useChartProExport];
10
+ var _useChartProSampling = require("../internals/plugins/useChartProSampling");
11
+ const LINE_CHART_PRO_PLUGINS = exports.LINE_CHART_PRO_PLUGINS = [_internals.useChartZAxis, _internals.useChartBrush, _internals.useChartTooltip, _internals.useChartInteraction, _internals.useChartCartesianAxis, _internals.useChartHighlight, _internals.useChartVisibilityManager, _internals.useChartKeyboardNavigation, _useChartProZoom.useChartProZoom, _useChartProSampling.useChartProSampling, _useChartProExport.useChartProExport];
@@ -1,4 +1,5 @@
1
1
  import { useChartZAxis, useChartCartesianAxis, useChartTooltip, useChartInteraction, useChartHighlight, useChartKeyboardNavigation, useChartBrush, useChartVisibilityManager } from '@mui/x-charts/internals';
2
2
  import { useChartProExport } from "../internals/plugins/useChartProExport/index.mjs";
3
3
  import { useChartProZoom } from "../internals/plugins/useChartProZoom/index.mjs";
4
- export const LINE_CHART_PRO_PLUGINS = [useChartZAxis, useChartBrush, useChartTooltip, useChartInteraction, useChartCartesianAxis, useChartHighlight, useChartVisibilityManager, useChartKeyboardNavigation, useChartProZoom, useChartProExport];
4
+ import { useChartProSampling } from "../internals/plugins/useChartProSampling/index.mjs";
5
+ export const LINE_CHART_PRO_PLUGINS = [useChartZAxis, useChartBrush, useChartTooltip, useChartInteraction, useChartCartesianAxis, useChartHighlight, useChartVisibilityManager, useChartKeyboardNavigation, useChartProZoom, useChartProSampling, useChartProExport];
@@ -1 +1 @@
1
- export declare function FocusedSankeyLink(props: React.SVGAttributes<SVGPathElement>): import("react/jsx-runtime").JSX.Element | null;
1
+ export declare function FocusedSankeyLink(props: React.SVGAttributes<SVGPathElement>): import("react").JSX.Element | null;
@@ -1 +1 @@
1
- export declare function FocusedSankeyLink(props: React.SVGAttributes<SVGPathElement>): import("react/jsx-runtime").JSX.Element | null;
1
+ export declare function FocusedSankeyLink(props: React.SVGAttributes<SVGPathElement>): import("react").JSX.Element | null;
@@ -1 +1 @@
1
- export declare function FocusedSankeyNode(props: React.SVGAttributes<SVGRectElement>): import("react/jsx-runtime").JSX.Element | null;
1
+ export declare function FocusedSankeyNode(props: React.SVGAttributes<SVGRectElement>): import("react").JSX.Element | null;
@@ -1 +1 @@
1
- export declare function FocusedSankeyNode(props: React.SVGAttributes<SVGRectElement>): import("react/jsx-runtime").JSX.Element | null;
1
+ export declare function FocusedSankeyNode(props: React.SVGAttributes<SVGRectElement>): import("react").JSX.Element | null;
@@ -15,7 +15,7 @@ export interface SankeyDataProviderProps extends Omit<ChartsContainerProProps<'s
15
15
  *
16
16
  * - [Composition](https://mui.com/x/api/charts/composition/)
17
17
  */
18
- declare function SankeyDataProvider(props: SankeyDataProviderProps): import("react/jsx-runtime").JSX.Element;
18
+ declare function SankeyDataProvider(props: SankeyDataProviderProps): React.JSX.Element;
19
19
  declare namespace SankeyDataProvider {
20
20
  var propTypes: any;
21
21
  }
@@ -15,7 +15,7 @@ export interface SankeyDataProviderProps extends Omit<ChartsContainerProProps<'s
15
15
  *
16
16
  * - [Composition](https://mui.com/x/api/charts/composition/)
17
17
  */
18
- declare function SankeyDataProvider(props: SankeyDataProviderProps): import("react/jsx-runtime").JSX.Element;
18
+ declare function SankeyDataProvider(props: SankeyDataProviderProps): React.JSX.Element;
19
19
  declare namespace SankeyDataProvider {
20
20
  var propTypes: any;
21
21
  }
@@ -5,7 +5,7 @@ export interface SankeyLinkLabelPlotProps {
5
5
  */
6
6
  classes?: Partial<SankeyClasses>;
7
7
  }
8
- declare function SankeyLinkLabelPlot(props: SankeyLinkLabelPlotProps): import("react/jsx-runtime").JSX.Element | null;
8
+ declare function SankeyLinkLabelPlot(props: SankeyLinkLabelPlotProps): import("react").JSX.Element | null;
9
9
  declare namespace SankeyLinkLabelPlot {
10
10
  var propTypes: any;
11
11
  }
@@ -5,7 +5,7 @@ export interface SankeyLinkLabelPlotProps {
5
5
  */
6
6
  classes?: Partial<SankeyClasses>;
7
7
  }
8
- declare function SankeyLinkLabelPlot(props: SankeyLinkLabelPlotProps): import("react/jsx-runtime").JSX.Element | null;
8
+ declare function SankeyLinkLabelPlot(props: SankeyLinkLabelPlotProps): import("react").JSX.Element | null;
9
9
  declare namespace SankeyLinkLabelPlot {
10
10
  var propTypes: any;
11
11
  }
@@ -13,7 +13,7 @@ export interface SankeyLinkPlotProps {
13
13
  */
14
14
  onClick?: (event: React.MouseEvent<SVGElement, MouseEvent>, link: SankeyLinkIdentifierWithData) => void;
15
15
  }
16
- declare function SankeyLinkPlot(props: SankeyLinkPlotProps): import("react/jsx-runtime").JSX.Element | null;
16
+ declare function SankeyLinkPlot(props: SankeyLinkPlotProps): React.JSX.Element | null;
17
17
  declare namespace SankeyLinkPlot {
18
18
  var propTypes: any;
19
19
  }
@@ -13,7 +13,7 @@ export interface SankeyLinkPlotProps {
13
13
  */
14
14
  onClick?: (event: React.MouseEvent<SVGElement, MouseEvent>, link: SankeyLinkIdentifierWithData) => void;
15
15
  }
16
- declare function SankeyLinkPlot(props: SankeyLinkPlotProps): import("react/jsx-runtime").JSX.Element | null;
16
+ declare function SankeyLinkPlot(props: SankeyLinkPlotProps): React.JSX.Element | null;
17
17
  declare namespace SankeyLinkPlot {
18
18
  var propTypes: any;
19
19
  }
@@ -5,7 +5,7 @@ export interface SankeyNodeLabelPlotProps {
5
5
  */
6
6
  classes?: Partial<SankeyClasses>;
7
7
  }
8
- declare function SankeyNodeLabelPlot(props: SankeyNodeLabelPlotProps): import("react/jsx-runtime").JSX.Element | null;
8
+ declare function SankeyNodeLabelPlot(props: SankeyNodeLabelPlotProps): import("react").JSX.Element | null;
9
9
  declare namespace SankeyNodeLabelPlot {
10
10
  var propTypes: any;
11
11
  }
@@ -5,7 +5,7 @@ export interface SankeyNodeLabelPlotProps {
5
5
  */
6
6
  classes?: Partial<SankeyClasses>;
7
7
  }
8
- declare function SankeyNodeLabelPlot(props: SankeyNodeLabelPlotProps): import("react/jsx-runtime").JSX.Element | null;
8
+ declare function SankeyNodeLabelPlot(props: SankeyNodeLabelPlotProps): import("react").JSX.Element | null;
9
9
  declare namespace SankeyNodeLabelPlot {
10
10
  var propTypes: any;
11
11
  }
@@ -13,7 +13,7 @@ export interface SankeyNodePlotProps {
13
13
  */
14
14
  onClick?: (event: React.MouseEvent<SVGElement, MouseEvent>, node: SankeyNodeIdentifierWithData) => void;
15
15
  }
16
- declare function SankeyNodePlot(props: SankeyNodePlotProps): import("react/jsx-runtime").JSX.Element | null;
16
+ declare function SankeyNodePlot(props: SankeyNodePlotProps): React.JSX.Element | null;
17
17
  declare namespace SankeyNodePlot {
18
18
  var propTypes: any;
19
19
  }
@@ -13,7 +13,7 @@ export interface SankeyNodePlotProps {
13
13
  */
14
14
  onClick?: (event: React.MouseEvent<SVGElement, MouseEvent>, node: SankeyNodeIdentifierWithData) => void;
15
15
  }
16
- declare function SankeyNodePlot(props: SankeyNodePlotProps): import("react/jsx-runtime").JSX.Element | null;
16
+ declare function SankeyNodePlot(props: SankeyNodePlotProps): React.JSX.Element | null;
17
17
  declare namespace SankeyNodePlot {
18
18
  var propTypes: any;
19
19
  }
@@ -26,7 +26,7 @@ export interface SankeyPlotProps {
26
26
  /**
27
27
  * Renders a Sankey diagram plot.
28
28
  */
29
- declare function SankeyPlot(props: SankeyPlotProps): import("react/jsx-runtime").JSX.Element | null;
29
+ declare function SankeyPlot(props: SankeyPlotProps): React.JSX.Element | null;
30
30
  declare namespace SankeyPlot {
31
31
  var propTypes: any;
32
32
  }
@@ -26,7 +26,7 @@ export interface SankeyPlotProps {
26
26
  /**
27
27
  * Renders a Sankey diagram plot.
28
28
  */
29
- declare function SankeyPlot(props: SankeyPlotProps): import("react/jsx-runtime").JSX.Element | null;
29
+ declare function SankeyPlot(props: SankeyPlotProps): React.JSX.Element | null;
30
30
  declare namespace SankeyPlot {
31
31
  var propTypes: any;
32
32
  }
@@ -1,5 +1,5 @@
1
1
  import type { SankeyTooltipProps } from "./SankeyTooltip.types.mjs";
2
- declare function SankeyTooltip(props: SankeyTooltipProps): import("react/jsx-runtime").JSX.Element;
2
+ declare function SankeyTooltip(props: SankeyTooltipProps): import("react").JSX.Element;
3
3
  declare namespace SankeyTooltip {
4
4
  var propTypes: any;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import type { SankeyTooltipProps } from "./SankeyTooltip.types.js";
2
- declare function SankeyTooltip(props: SankeyTooltipProps): import("react/jsx-runtime").JSX.Element;
2
+ declare function SankeyTooltip(props: SankeyTooltipProps): import("react").JSX.Element;
3
3
  declare namespace SankeyTooltip {
4
4
  var propTypes: any;
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import type { SankeyTooltipProps } from "./SankeyTooltip.types.mjs";
2
2
  export interface SankeyTooltipContentProps extends Pick<SankeyTooltipProps, 'classes'> {}
3
- export declare function SankeyTooltipContent(props: SankeyTooltipContentProps): import("react/jsx-runtime").JSX.Element | null;
3
+ export declare function SankeyTooltipContent(props: SankeyTooltipContentProps): import("react").JSX.Element | null;
4
4
  export declare namespace SankeyTooltipContent {
5
5
  var propTypes: any;
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import type { SankeyTooltipProps } from "./SankeyTooltip.types.js";
2
2
  export interface SankeyTooltipContentProps extends Pick<SankeyTooltipProps, 'classes'> {}
3
- export declare function SankeyTooltipContent(props: SankeyTooltipContentProps): import("react/jsx-runtime").JSX.Element | null;
3
+ export declare function SankeyTooltipContent(props: SankeyTooltipContentProps): import("react").JSX.Element | null;
4
4
  export declare namespace SankeyTooltipContent {
5
5
  var propTypes: any;
6
6
  }
@@ -8,7 +8,7 @@ exports.sankeySeriesConfig = void 0;
8
8
  var _getSeriesWithDefaultValues = require("./getSeriesWithDefaultValues");
9
9
  var _tooltipGetter = require("./tooltipGetter");
10
10
  var _calculateSankeyLayout = require("../calculateSankeyLayout");
11
- var _tooltipPosition = _interopRequireDefault(require("./tooltipPosition"));
11
+ var _tooltipPosition = require("./tooltipPosition");
12
12
  var _keyboardFocusHandler = _interopRequireDefault(require("./keyboardFocusHandler"));
13
13
  var _identifierSerializer = _interopRequireDefault(require("./identifierSerializer"));
14
14
  var _identifierCleaner = _interopRequireDefault(require("./identifierCleaner"));
@@ -35,7 +35,7 @@ const sankeySeriesConfig = exports.sankeySeriesConfig = {
35
35
  colorProcessor,
36
36
  legendGetter,
37
37
  tooltipGetter: _tooltipGetter.tooltipGetter,
38
- tooltipItemPositionGetter: _tooltipPosition.default,
38
+ selectorTooltipItemPosition: _tooltipPosition.selectorTooltipItemPosition,
39
39
  getSeriesWithDefaultValues: _getSeriesWithDefaultValues.getSeriesWithDefaultValues,
40
40
  keyboardFocusHandler: _keyboardFocusHandler.default,
41
41
  identifierSerializer: _identifierSerializer.default,
@@ -1,7 +1,7 @@
1
1
  import { getSeriesWithDefaultValues } from "./getSeriesWithDefaultValues.mjs";
2
2
  import { tooltipGetter } from "./tooltipGetter.mjs";
3
3
  import { calculateSankeyLayout } from "../calculateSankeyLayout.mjs";
4
- import tooltipItemPositionGetter from "./tooltipPosition.mjs";
4
+ import { selectorTooltipItemPosition } from "./tooltipPosition.mjs";
5
5
  import keyboardFocusHandler from "./keyboardFocusHandler.mjs";
6
6
  import identifierSerializer from "./identifierSerializer.mjs";
7
7
  import identifierCleaner from "./identifierCleaner.mjs";
@@ -29,7 +29,7 @@ export const sankeySeriesConfig = {
29
29
  colorProcessor,
30
30
  legendGetter,
31
31
  tooltipGetter,
32
- tooltipItemPositionGetter,
32
+ selectorTooltipItemPosition,
33
33
  getSeriesWithDefaultValues,
34
34
  keyboardFocusHandler,
35
35
  identifierSerializer,
@@ -1,3 +1,2 @@
1
- import type { TooltipItemPositionGetter } from '@mui/x-charts/internals';
2
- declare const tooltipItemPositionGetter: TooltipItemPositionGetter<'sankey'>;
3
- export default tooltipItemPositionGetter;
1
+ import type { TooltipItemPositionSelector } from '@mui/x-charts/internals';
2
+ export declare const selectorTooltipItemPosition: TooltipItemPositionSelector<'sankey'>;
@@ -1,3 +1,2 @@
1
- import type { TooltipItemPositionGetter } from '@mui/x-charts/internals';
2
- declare const tooltipItemPositionGetter: TooltipItemPositionGetter<'sankey'>;
3
- export default tooltipItemPositionGetter;
1
+ import type { TooltipItemPositionSelector } from '@mui/x-charts/internals';
2
+ export declare const selectorTooltipItemPosition: TooltipItemPositionSelector<'sankey'>;
@@ -3,15 +3,11 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
7
- const tooltipItemPositionGetter = params => {
8
- const {
9
- series,
10
- seriesLayout,
11
- identifier,
12
- placement
13
- } = params;
14
- if (!identifier) {
6
+ exports.selectorTooltipItemPosition = void 0;
7
+ var _store = require("@mui/x-internals/store");
8
+ var _internals = require("@mui/x-charts/internals");
9
+ const selectorTooltipItemPosition = exports.selectorTooltipItemPosition = (0, _store.createSelectorMemoized)(_internals.selectorChartsTooltipItem, _internals.selectorChartSeriesProcessed, _internals.selectorChartSeriesLayout, function selectorTooltipItemPosition(identifier, series, seriesLayout, placement) {
10
+ if (!identifier || identifier.type !== 'sankey') {
15
11
  return null;
16
12
  }
17
13
  const seriesItem = series.sankey?.series[identifier.seriesId];
@@ -92,5 +88,4 @@ const tooltipItemPositionGetter = params => {
92
88
  }
93
89
  }
94
90
  return null;
95
- };
96
- var _default = exports.default = tooltipItemPositionGetter;
91
+ });
@@ -1,11 +1,7 @@
1
- const tooltipItemPositionGetter = params => {
2
- const {
3
- series,
4
- seriesLayout,
5
- identifier,
6
- placement
7
- } = params;
8
- if (!identifier) {
1
+ import { createSelectorMemoized } from '@mui/x-internals/store';
2
+ import { selectorChartsTooltipItem, selectorChartSeriesProcessed, selectorChartSeriesLayout } from '@mui/x-charts/internals';
3
+ export const selectorTooltipItemPosition = createSelectorMemoized(selectorChartsTooltipItem, selectorChartSeriesProcessed, selectorChartSeriesLayout, function selectorTooltipItemPosition(identifier, series, seriesLayout, placement) {
4
+ if (!identifier || identifier.type !== 'sankey') {
9
5
  return null;
10
6
  }
11
7
  const seriesItem = series.sankey?.series[identifier.seriesId];
@@ -86,5 +82,4 @@ const tooltipItemPositionGetter = params => {
86
82
  }
87
83
  }
88
84
  return null;
89
- };
90
- export default tooltipItemPositionGetter;
85
+ });
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-charts-pro v9.8.0
2
+ * @mui/x-charts-pro v9.9.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
package/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-charts-pro v9.8.0
2
+ * @mui/x-charts-pro v9.9.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,6 +1,7 @@
1
+ import * as React from 'react';
1
2
  import type { CommercialPackageInfo } from '@mui/x-license/internals';
2
3
  interface ChartsWatermarkProps {
3
4
  packageInfo: CommercialPackageInfo;
4
5
  }
5
- export declare function ChartsWatermark(props: ChartsWatermarkProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function ChartsWatermark(props: ChartsWatermarkProps): React.JSX.Element;
6
7
  export {};
@@ -1,6 +1,7 @@
1
+ import * as React from 'react';
1
2
  import type { CommercialPackageInfo } from '@mui/x-license/internals';
2
3
  interface ChartsWatermarkProps {
3
4
  packageInfo: CommercialPackageInfo;
4
5
  }
5
- export declare function ChartsWatermark(props: ChartsWatermarkProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function ChartsWatermark(props: ChartsWatermarkProps): React.JSX.Element;
6
7
  export {};
@@ -3,6 +3,8 @@ export type { UseChartsContainerProPropsReturnValue } from "../ChartsContainerPr
3
3
  export type { ChartsSlotsPro, ChartsSlotPropsPro } from "./material/index.mjs";
4
4
  export { seriesPreviewPlotMap } from "../ChartsZoomSlider/internals/seriesPreviewPlotMap.mjs";
5
5
  export type { PreviewPlotProps } from "../ChartsZoomSlider/internals/previews/PreviewPlot.types.mjs";
6
+ export { useDragGesture, useWheelGesture, usePinchGesture, type UseDragGestureOptions, type UseWheelGestureOptions, type UsePinchGestureOptions, type GestureInstance, type PanGestureConfig } from "./plugins/zoomGestures/index.mjs";
7
+ export { useRegisterZoomGestures } from "./plugins/useChartProZoom/gestureHooks/useRegisterZoomGestures.mjs";
6
8
  export { defaultSeriesConfigPro } from "../ChartsDataProviderPro/ChartsDataProviderPro.mjs";
7
9
  export type { ProPluginsPerSeriesType } from "../context/ChartProApi.mjs";
8
10
  export { useHeatmapProps } from "../Heatmap/useHeatmapProps.mjs";
@@ -3,6 +3,8 @@ export type { UseChartsContainerProPropsReturnValue } from "../ChartsContainerPr
3
3
  export type { ChartsSlotsPro, ChartsSlotPropsPro } from "./material/index.js";
4
4
  export { seriesPreviewPlotMap } from "../ChartsZoomSlider/internals/seriesPreviewPlotMap.js";
5
5
  export type { PreviewPlotProps } from "../ChartsZoomSlider/internals/previews/PreviewPlot.types.js";
6
+ export { useDragGesture, useWheelGesture, usePinchGesture, type UseDragGestureOptions, type UseWheelGestureOptions, type UsePinchGestureOptions, type GestureInstance, type PanGestureConfig } from "./plugins/zoomGestures/index.js";
7
+ export { useRegisterZoomGestures } from "./plugins/useChartProZoom/gestureHooks/useRegisterZoomGestures.js";
6
8
  export { defaultSeriesConfigPro } from "../ChartsDataProviderPro/ChartsDataProviderPro.js";
7
9
  export type { ProPluginsPerSeriesType } from "../context/ChartProApi.js";
8
10
  export { useHeatmapProps } from "../Heatmap/useHeatmapProps.js";
@@ -6,6 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  var _exportNames = {
7
7
  useChartsContainerProProps: true,
8
8
  seriesPreviewPlotMap: true,
9
+ useDragGesture: true,
10
+ useWheelGesture: true,
11
+ usePinchGesture: true,
12
+ useRegisterZoomGestures: true,
9
13
  defaultSeriesConfigPro: true,
10
14
  useHeatmapProps: true,
11
15
  defaultSlotsMaterial: true,
@@ -41,14 +45,40 @@ Object.defineProperty(exports, "useChartsContainerProProps", {
41
45
  return _useChartsContainerProProps.useChartsContainerProProps;
42
46
  }
43
47
  });
48
+ Object.defineProperty(exports, "useDragGesture", {
49
+ enumerable: true,
50
+ get: function () {
51
+ return _zoomGestures.useDragGesture;
52
+ }
53
+ });
44
54
  Object.defineProperty(exports, "useHeatmapProps", {
45
55
  enumerable: true,
46
56
  get: function () {
47
57
  return _useHeatmapProps.useHeatmapProps;
48
58
  }
49
59
  });
60
+ Object.defineProperty(exports, "usePinchGesture", {
61
+ enumerable: true,
62
+ get: function () {
63
+ return _zoomGestures.usePinchGesture;
64
+ }
65
+ });
66
+ Object.defineProperty(exports, "useRegisterZoomGestures", {
67
+ enumerable: true,
68
+ get: function () {
69
+ return _useRegisterZoomGestures.useRegisterZoomGestures;
70
+ }
71
+ });
72
+ Object.defineProperty(exports, "useWheelGesture", {
73
+ enumerable: true,
74
+ get: function () {
75
+ return _zoomGestures.useWheelGesture;
76
+ }
77
+ });
50
78
  var _useChartsContainerProProps = require("../ChartsContainerPro/useChartsContainerProProps");
51
79
  var _seriesPreviewPlotMap = require("../ChartsZoomSlider/internals/seriesPreviewPlotMap");
80
+ var _zoomGestures = require("./plugins/zoomGestures");
81
+ var _useRegisterZoomGestures = require("./plugins/useChartProZoom/gestureHooks/useRegisterZoomGestures");
52
82
  var _ChartsDataProviderPro = require("../ChartsDataProviderPro/ChartsDataProviderPro");
53
83
  var _useHeatmapProps = require("../Heatmap/useHeatmapProps");
54
84
  var _material = require("./material");