@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.
- package/BarChartPro/BarChartPro.d.mts +9 -1
- package/BarChartPro/BarChartPro.d.ts +9 -1
- package/BarChartPro/BarChartPro.js +14 -3
- package/BarChartPro/BarChartPro.mjs +14 -3
- package/BarChartPro/BarChartPro.plugins.d.mts +2 -1
- package/BarChartPro/BarChartPro.plugins.d.ts +2 -1
- package/BarChartPro/BarChartPro.plugins.js +2 -1
- package/BarChartPro/BarChartPro.plugins.mjs +2 -1
- package/CHANGELOG.md +119 -0
- package/ChartsContainerPro/useChartsContainerProProps.d.mts +6 -2
- package/ChartsContainerPro/useChartsContainerProProps.d.ts +6 -2
- package/ChartsContainerPro/useChartsContainerProProps.js +9 -1
- package/ChartsContainerPro/useChartsContainerProProps.mjs +8 -1
- package/ChartsDataProviderPro/ChartsDataProviderPro.d.mts +1 -1
- package/ChartsDataProviderPro/ChartsDataProviderPro.d.ts +1 -1
- package/ChartsDataProviderPro/ChartsDataProviderPro.js +14 -3
- package/ChartsDataProviderPro/ChartsDataProviderPro.mjs +14 -3
- package/ChartsToolbarPro/ChartsToolbarPro.d.mts +2 -1
- package/ChartsToolbarPro/ChartsToolbarPro.d.ts +2 -1
- package/ChartsToolbarPro/internals/ChartsMenu.d.mts +1 -1
- package/ChartsToolbarPro/internals/ChartsMenu.d.ts +1 -1
- package/ChartsZoomSlider/ChartsZoomSlider.d.mts +2 -1
- package/ChartsZoomSlider/ChartsZoomSlider.d.ts +2 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSlider.d.mts +2 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSlider.d.ts +2 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderActiveTrack.d.mts +2 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderActiveTrack.d.ts +2 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreview.d.mts +2 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreview.d.ts +2 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreviewContent.d.mts +2 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreviewContent.d.ts +2 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderTrack.d.mts +1 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderTrack.d.ts +1 -1
- package/ChartsZoomSlider/internals/ChartsTooltipZoomSliderValue.d.mts +1 -1
- package/ChartsZoomSlider/internals/ChartsTooltipZoomSliderValue.d.ts +1 -1
- package/ChartsZoomSlider/internals/previews/AreaPreviewPlot.d.mts +1 -1
- package/ChartsZoomSlider/internals/previews/AreaPreviewPlot.d.ts +1 -1
- package/ChartsZoomSlider/internals/previews/BarPreviewPlot.d.mts +1 -1
- package/ChartsZoomSlider/internals/previews/BarPreviewPlot.d.ts +1 -1
- package/ChartsZoomSlider/internals/previews/LineAreaPreviewPlot.d.mts +2 -1
- package/ChartsZoomSlider/internals/previews/LineAreaPreviewPlot.d.ts +2 -1
- package/ChartsZoomSlider/internals/previews/LinePreviewPlot.d.mts +1 -1
- package/ChartsZoomSlider/internals/previews/LinePreviewPlot.d.ts +1 -1
- package/ChartsZoomSlider/internals/previews/LinePreviewPlot.js +16 -1
- package/ChartsZoomSlider/internals/previews/LinePreviewPlot.mjs +17 -2
- package/ChartsZoomSlider/internals/previews/ScatterPreviewPlot.d.mts +2 -1
- package/ChartsZoomSlider/internals/previews/ScatterPreviewPlot.d.ts +2 -1
- package/FunnelChart/FocusedFunnelSection.d.mts +1 -1
- package/FunnelChart/FocusedFunnelSection.d.ts +1 -1
- package/FunnelChart/FunnelPlot.d.mts +1 -1
- package/FunnelChart/FunnelPlot.d.ts +1 -1
- package/FunnelChart/seriesConfig/index.js +2 -2
- package/FunnelChart/seriesConfig/index.mjs +2 -2
- package/FunnelChart/seriesConfig/tooltipPosition.d.mts +2 -3
- package/FunnelChart/seriesConfig/tooltipPosition.d.ts +2 -3
- package/FunnelChart/seriesConfig/tooltipPosition.js +11 -15
- package/FunnelChart/seriesConfig/tooltipPosition.mjs +11 -15
- package/Heatmap/FocusedHeatmapCell.d.mts +1 -1
- package/Heatmap/FocusedHeatmapCell.d.ts +1 -1
- package/Heatmap/HeatmapItem.d.mts +1 -1
- package/Heatmap/HeatmapItem.d.ts +1 -1
- package/Heatmap/HeatmapSVGPlot.d.mts +2 -1
- package/Heatmap/HeatmapSVGPlot.d.ts +2 -1
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.d.mts +1 -1
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.d.ts +1 -1
- package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.d.mts +1 -1
- package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.d.ts +1 -1
- package/Heatmap/seriesConfig/index.js +2 -2
- package/Heatmap/seriesConfig/index.mjs +2 -2
- package/Heatmap/seriesConfig/tooltipPosition.d.mts +2 -3
- package/Heatmap/seriesConfig/tooltipPosition.d.ts +2 -3
- package/Heatmap/seriesConfig/tooltipPosition.js +12 -16
- package/Heatmap/seriesConfig/tooltipPosition.mjs +12 -16
- package/LineChartPro/LineChartPro.d.mts +11 -1
- package/LineChartPro/LineChartPro.d.ts +11 -1
- package/LineChartPro/LineChartPro.js +16 -3
- package/LineChartPro/LineChartPro.mjs +16 -3
- package/LineChartPro/LineChartPro.plugins.d.mts +2 -1
- package/LineChartPro/LineChartPro.plugins.d.ts +2 -1
- package/LineChartPro/LineChartPro.plugins.js +2 -1
- package/LineChartPro/LineChartPro.plugins.mjs +2 -1
- package/SankeyChart/FocusedSankeyLink.d.mts +1 -1
- package/SankeyChart/FocusedSankeyLink.d.ts +1 -1
- package/SankeyChart/FocusedSankeyNode.d.mts +1 -1
- package/SankeyChart/FocusedSankeyNode.d.ts +1 -1
- package/SankeyChart/SankeyDataProvider.d.mts +1 -1
- package/SankeyChart/SankeyDataProvider.d.ts +1 -1
- package/SankeyChart/SankeyLinkLabelPlot.d.mts +1 -1
- package/SankeyChart/SankeyLinkLabelPlot.d.ts +1 -1
- package/SankeyChart/SankeyLinkPlot.d.mts +1 -1
- package/SankeyChart/SankeyLinkPlot.d.ts +1 -1
- package/SankeyChart/SankeyNodeLabelPlot.d.mts +1 -1
- package/SankeyChart/SankeyNodeLabelPlot.d.ts +1 -1
- package/SankeyChart/SankeyNodePlot.d.mts +1 -1
- package/SankeyChart/SankeyNodePlot.d.ts +1 -1
- package/SankeyChart/SankeyPlot.d.mts +1 -1
- package/SankeyChart/SankeyPlot.d.ts +1 -1
- package/SankeyChart/SankeyTooltip/SankeyTooltip.d.mts +1 -1
- package/SankeyChart/SankeyTooltip/SankeyTooltip.d.ts +1 -1
- package/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.mts +1 -1
- package/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.ts +1 -1
- package/SankeyChart/seriesConfig/index.js +2 -2
- package/SankeyChart/seriesConfig/index.mjs +2 -2
- package/SankeyChart/seriesConfig/tooltipPosition.d.mts +2 -3
- package/SankeyChart/seriesConfig/tooltipPosition.d.ts +2 -3
- package/SankeyChart/seriesConfig/tooltipPosition.js +6 -11
- package/SankeyChart/seriesConfig/tooltipPosition.mjs +5 -10
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/ChartsWatermark.d.mts +2 -1
- package/internals/ChartsWatermark.d.ts +2 -1
- package/internals/index.d.mts +2 -0
- package/internals/index.d.ts +2 -0
- package/internals/index.js +30 -0
- package/internals/index.mjs +2 -0
- package/internals/material/components/BaseMenuItem.d.mts +1 -1
- package/internals/material/components/BaseMenuItem.d.ts +1 -1
- package/internals/material/components/BasePopper.d.mts +2 -1
- package/internals/material/components/BasePopper.d.ts +2 -1
- package/internals/plugins/useChartProSampling/barSampler.d.mts +8 -0
- package/internals/plugins/useChartProSampling/barSampler.d.ts +8 -0
- package/internals/plugins/useChartProSampling/barSampler.js +18 -0
- package/internals/plugins/useChartProSampling/barSampler.mjs +12 -0
- package/internals/plugins/useChartProSampling/index.d.mts +2 -0
- package/internals/plugins/useChartProSampling/index.d.ts +2 -0
- package/internals/plugins/useChartProSampling/index.js +12 -0
- package/internals/plugins/useChartProSampling/index.mjs +1 -0
- package/internals/plugins/useChartProSampling/lineSampler.d.mts +8 -0
- package/internals/plugins/useChartProSampling/lineSampler.d.ts +8 -0
- package/internals/plugins/useChartProSampling/lineSampler.js +47 -0
- package/internals/plugins/useChartProSampling/lineSampler.mjs +41 -0
- package/internals/plugins/useChartProSampling/sampling.d.mts +38 -0
- package/internals/plugins/useChartProSampling/sampling.d.ts +38 -0
- package/internals/plugins/useChartProSampling/sampling.js +175 -0
- package/internals/plugins/useChartProSampling/sampling.line.d.mts +22 -0
- package/internals/plugins/useChartProSampling/sampling.line.d.ts +22 -0
- package/internals/plugins/useChartProSampling/sampling.line.js +172 -0
- package/internals/plugins/useChartProSampling/sampling.line.mjs +164 -0
- package/internals/plugins/useChartProSampling/sampling.mjs +164 -0
- package/internals/plugins/useChartProSampling/sampling.pyramid.types.d.mts +33 -0
- package/internals/plugins/useChartProSampling/sampling.pyramid.types.d.ts +33 -0
- package/internals/plugins/useChartProSampling/sampling.pyramid.types.js +5 -0
- package/internals/plugins/useChartProSampling/sampling.pyramid.types.mjs +1 -0
- package/internals/plugins/useChartProSampling/useChartProSampling.d.mts +4 -0
- package/internals/plugins/useChartProSampling/useChartProSampling.d.ts +4 -0
- package/internals/plugins/useChartProSampling/useChartProSampling.js +59 -0
- package/internals/plugins/useChartProSampling/useChartProSampling.mjs +52 -0
- package/internals/plugins/useChartProSampling/useChartProSampling.types.d.mts +25 -0
- package/internals/plugins/useChartProSampling/useChartProSampling.types.d.ts +25 -0
- package/internals/plugins/useChartProSampling/useChartProSampling.types.js +5 -0
- package/internals/plugins/useChartProSampling/useChartProSampling.types.mjs +1 -0
- package/internals/plugins/useChartProZoom/gestureHooks/useRegisterZoomGestures.d.mts +4 -3
- package/internals/plugins/useChartProZoom/gestureHooks/useRegisterZoomGestures.d.ts +4 -3
- package/internals/plugins/useChartProZoom/gestureHooks/useRegisterZoomGestures.mjs +1 -0
- package/package.json +6 -6
- package/typeOverloads/modules.d.mts +9 -1
- package/typeOverloads/modules.d.ts +9 -1
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
+
import { useEffectAfterFirstRender } from '@mui/x-internals/useEffectAfterFirstRender';
|
|
5
|
+
import { isDeepEqual } from '@mui/x-internals/isDeepEqual';
|
|
6
|
+
/** Toggles sampling. Pyramids and level selection live in community selectors. */
|
|
7
|
+
export const useChartProSampling = ({
|
|
8
|
+
params,
|
|
9
|
+
store
|
|
10
|
+
}) => {
|
|
11
|
+
const {
|
|
12
|
+
sampling
|
|
13
|
+
} = params;
|
|
14
|
+
useEffectAfterFirstRender(() => {
|
|
15
|
+
// Skip the update when unchanged so an inlined `sampling` config (a new object each render, e.g.
|
|
16
|
+
// in composition) doesn't replace the state and force the pyramids to recompute every render.
|
|
17
|
+
const next = toSamplingState(sampling);
|
|
18
|
+
if (!isDeepEqual(store.state.sampling, next)) {
|
|
19
|
+
store.set('sampling', next);
|
|
20
|
+
}
|
|
21
|
+
}, [sampling, store]);
|
|
22
|
+
return {};
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** Maps the per-series-type `sampling` config to the internal state (enabled methods per type). */
|
|
26
|
+
function toSamplingState(sampling = {}) {
|
|
27
|
+
const methods = {};
|
|
28
|
+
// Iterate generically so a new series type only needs its `sampling` config entry, no edit here.
|
|
29
|
+
Object.keys(sampling).forEach(seriesType => {
|
|
30
|
+
const method = sampling[seriesType];
|
|
31
|
+
if (method && method !== 'none') {
|
|
32
|
+
methods[seriesType] = method;
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
return {
|
|
36
|
+
enabled: Object.keys(methods).length > 0,
|
|
37
|
+
methods
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
useChartProSampling.params = {
|
|
41
|
+
sampling: true
|
|
42
|
+
};
|
|
43
|
+
useChartProSampling.getDefaultizedParams = ({
|
|
44
|
+
params
|
|
45
|
+
}) => _extends({}, params, {
|
|
46
|
+
sampling: params.sampling ?? {}
|
|
47
|
+
});
|
|
48
|
+
useChartProSampling.getInitialState = ({
|
|
49
|
+
sampling
|
|
50
|
+
}) => ({
|
|
51
|
+
sampling: toSamplingState(sampling)
|
|
52
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { SamplingState, SamplingConfig, ChartPluginSignature, UseChartCartesianAxisSignature, UseChartSeriesSignature } from '@mui/x-charts/internals';
|
|
2
|
+
export interface UseChartProSamplingParameters {
|
|
3
|
+
/**
|
|
4
|
+
* Per-series-type sampling configuration used to render large datasets when zoomed out.
|
|
5
|
+
* Each series type accepts only the methods valid for it:
|
|
6
|
+
* - bar: `'none'` | `'minmax'`.
|
|
7
|
+
* - line: `'none'` | `'minmax'` | `'m4'` | `'lttb'`.
|
|
8
|
+
*
|
|
9
|
+
* @example { line: 'lttb', bar: 'minmax' }
|
|
10
|
+
* @default {}
|
|
11
|
+
*/
|
|
12
|
+
sampling?: SamplingConfig;
|
|
13
|
+
}
|
|
14
|
+
export interface UseChartProSamplingDefaultizedParameters {
|
|
15
|
+
sampling: SamplingConfig;
|
|
16
|
+
}
|
|
17
|
+
export interface UseChartProSamplingState {
|
|
18
|
+
sampling: SamplingState;
|
|
19
|
+
}
|
|
20
|
+
export type UseChartProSamplingSignature = ChartPluginSignature<{
|
|
21
|
+
params: UseChartProSamplingParameters;
|
|
22
|
+
defaultizedParams: UseChartProSamplingDefaultizedParameters;
|
|
23
|
+
state: UseChartProSamplingState;
|
|
24
|
+
dependencies: [UseChartSeriesSignature, UseChartCartesianAxisSignature];
|
|
25
|
+
}>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { SamplingState, SamplingConfig, ChartPluginSignature, UseChartCartesianAxisSignature, UseChartSeriesSignature } from '@mui/x-charts/internals';
|
|
2
|
+
export interface UseChartProSamplingParameters {
|
|
3
|
+
/**
|
|
4
|
+
* Per-series-type sampling configuration used to render large datasets when zoomed out.
|
|
5
|
+
* Each series type accepts only the methods valid for it:
|
|
6
|
+
* - bar: `'none'` | `'minmax'`.
|
|
7
|
+
* - line: `'none'` | `'minmax'` | `'m4'` | `'lttb'`.
|
|
8
|
+
*
|
|
9
|
+
* @example { line: 'lttb', bar: 'minmax' }
|
|
10
|
+
* @default {}
|
|
11
|
+
*/
|
|
12
|
+
sampling?: SamplingConfig;
|
|
13
|
+
}
|
|
14
|
+
export interface UseChartProSamplingDefaultizedParameters {
|
|
15
|
+
sampling: SamplingConfig;
|
|
16
|
+
}
|
|
17
|
+
export interface UseChartProSamplingState {
|
|
18
|
+
sampling: SamplingState;
|
|
19
|
+
}
|
|
20
|
+
export type UseChartProSamplingSignature = ChartPluginSignature<{
|
|
21
|
+
params: UseChartProSamplingParameters;
|
|
22
|
+
defaultizedParams: UseChartProSamplingDefaultizedParameters;
|
|
23
|
+
state: UseChartProSamplingState;
|
|
24
|
+
dependencies: [UseChartSeriesSignature, UseChartCartesianAxisSignature];
|
|
25
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
|
|
1
|
+
import type { ChartUsedInstance } from '@mui/x-charts/internals';
|
|
3
2
|
/**
|
|
4
3
|
* Registers the gestures required by the zoom feature.
|
|
5
4
|
* They are registered here instead of in the core interaction listener plugin
|
|
@@ -7,4 +6,6 @@ import type { UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
|
|
|
7
6
|
*/
|
|
8
7
|
export declare const useRegisterZoomGestures: ({
|
|
9
8
|
instance
|
|
10
|
-
}:
|
|
9
|
+
}: {
|
|
10
|
+
instance: ChartUsedInstance<any>;
|
|
11
|
+
}) => void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { UseChartProZoomSignature } from "../useChartProZoom.types.js";
|
|
1
|
+
import type { ChartUsedInstance } from '@mui/x-charts/internals';
|
|
3
2
|
/**
|
|
4
3
|
* Registers the gestures required by the zoom feature.
|
|
5
4
|
* They are registered here instead of in the core interaction listener plugin
|
|
@@ -7,4 +6,6 @@ import type { UseChartProZoomSignature } from "../useChartProZoom.types.js";
|
|
|
7
6
|
*/
|
|
8
7
|
export declare const useRegisterZoomGestures: ({
|
|
9
8
|
instance
|
|
10
|
-
}:
|
|
9
|
+
}: {
|
|
10
|
+
instance: ChartUsedInstance<any>;
|
|
11
|
+
}) => void;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { PanGesture, PinchGesture, PressAndDragGesture, TapAndDragGesture, TapGesture, TurnWheelGesture } from '@mui/x-internal-gestures/core';
|
|
5
|
+
|
|
5
6
|
/**
|
|
6
7
|
* Registers the gestures required by the zoom feature.
|
|
7
8
|
* They are registered here instead of in the core interaction listener plugin
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-charts-pro",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.9.0",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "The Pro plan edition of the MUI X Charts components.",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@babel/runtime": "^7.29.7",
|
|
31
|
-
"@mui/utils": "^9.
|
|
31
|
+
"@mui/utils": "^9.2.0",
|
|
32
32
|
"clsx": "^2.1.1",
|
|
33
33
|
"prop-types": "^15.8.1",
|
|
34
34
|
"@mui/x-charts-vendor": "^9.4.0",
|
|
35
|
-
"@mui/x-charts": "^9.
|
|
36
|
-
"@mui/x-internal-gestures": "^9.
|
|
37
|
-
"@mui/x-
|
|
38
|
-
"@mui/x-
|
|
35
|
+
"@mui/x-charts": "^9.9.0",
|
|
36
|
+
"@mui/x-internal-gestures": "^9.9.0",
|
|
37
|
+
"@mui/x-license": "^9.9.0",
|
|
38
|
+
"@mui/x-internals": "^9.9.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@emotion/react": "^11.9.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DefaultizedProps, MakeRequired } from '@mui/x-internals/types';
|
|
2
|
-
import type { AxisId, CommonHighlightScope, SeriesId, ComputedXAxis, ComputedYAxis, ZoomOptions } from '@mui/x-charts/internals';
|
|
2
|
+
import type { AxisId, CommonHighlightScope, SeriesId, ComputedXAxis, ComputedYAxis, ZoomOptions, BarSamplingMethod, SamplingMethod } from '@mui/x-charts/internals';
|
|
3
3
|
import type { DefaultizedFunnelSeriesType, FunnelItemIdentifier, FunnelSeriesType, FunnelValueType } from "../FunnelChart/funnel.types.mjs";
|
|
4
4
|
import type { HeatmapItemIdentifier, HeatmapItemIdentifierWithData, HeatmapSeriesType, DefaultizedHeatmapSeriesType, HeatmapValueType } from "../models/seriesType/heatmap.mjs";
|
|
5
5
|
import type { SankeyLayout, SankeySeriesType, DefaultizedSankeySeriesType, SankeyItemIdentifier, SankeyItemIdentifierWithData } from "../SankeyChart/sankey.types.mjs";
|
|
@@ -71,6 +71,14 @@ declare module '@mui/x-charts/internals' {
|
|
|
71
71
|
highlightIdentifier: SankeyItemIdentifier;
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
|
+
interface BarSeriesExtension {
|
|
75
|
+
/** Bar `sampling` method. */
|
|
76
|
+
samplingMethod: BarSamplingMethod;
|
|
77
|
+
}
|
|
78
|
+
interface LineSeriesExtension {
|
|
79
|
+
/** Line `sampling` method. */
|
|
80
|
+
samplingMethod: SamplingMethod;
|
|
81
|
+
}
|
|
74
82
|
interface DefaultizedZoomOptions extends Required<ZoomOptions> {
|
|
75
83
|
axisId: AxisId;
|
|
76
84
|
axisDirection: 'x' | 'y';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DefaultizedProps, MakeRequired } from '@mui/x-internals/types';
|
|
2
|
-
import type { AxisId, CommonHighlightScope, SeriesId, ComputedXAxis, ComputedYAxis, ZoomOptions } from '@mui/x-charts/internals';
|
|
2
|
+
import type { AxisId, CommonHighlightScope, SeriesId, ComputedXAxis, ComputedYAxis, ZoomOptions, BarSamplingMethod, SamplingMethod } from '@mui/x-charts/internals';
|
|
3
3
|
import type { DefaultizedFunnelSeriesType, FunnelItemIdentifier, FunnelSeriesType, FunnelValueType } from "../FunnelChart/funnel.types.js";
|
|
4
4
|
import type { HeatmapItemIdentifier, HeatmapItemIdentifierWithData, HeatmapSeriesType, DefaultizedHeatmapSeriesType, HeatmapValueType } from "../models/seriesType/heatmap.js";
|
|
5
5
|
import type { SankeyLayout, SankeySeriesType, DefaultizedSankeySeriesType, SankeyItemIdentifier, SankeyItemIdentifierWithData } from "../SankeyChart/sankey.types.js";
|
|
@@ -71,6 +71,14 @@ declare module '@mui/x-charts/internals' {
|
|
|
71
71
|
highlightIdentifier: SankeyItemIdentifier;
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
|
+
interface BarSeriesExtension {
|
|
75
|
+
/** Bar `sampling` method. */
|
|
76
|
+
samplingMethod: BarSamplingMethod;
|
|
77
|
+
}
|
|
78
|
+
interface LineSeriesExtension {
|
|
79
|
+
/** Line `sampling` method. */
|
|
80
|
+
samplingMethod: SamplingMethod;
|
|
81
|
+
}
|
|
74
82
|
interface DefaultizedZoomOptions extends Required<ZoomOptions> {
|
|
75
83
|
axisId: AxisId;
|
|
76
84
|
axisDirection: 'x' | 'y';
|