@mui/x-charts-pro 8.0.0-alpha.8 → 8.0.0-alpha.9
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.js +5 -6
- package/CHANGELOG.md +436 -3
- package/ChartContainerPro/ChartContainerPro.d.ts +8 -7
- package/ChartContainerPro/ChartContainerPro.js +8 -18
- package/ChartContainerPro/useChartContainerProProps.d.ts +2 -1
- package/ChartDataProviderPro/ChartDataProviderPro.d.ts +37 -0
- package/ChartDataProviderPro/ChartDataProviderPro.js +292 -0
- package/ChartDataProviderPro/index.d.ts +1 -0
- package/ChartDataProviderPro/index.js +1 -0
- package/ChartDataProviderPro/package.json +6 -0
- package/ChartDataProviderPro/useChartDataProviderProProps.d.ts +8 -0
- package/ChartDataProviderPro/useChartDataProviderProProps.js +17 -0
- package/Heatmap/plugin.js +1 -0
- package/LineChartPro/LineChartPro.js +6 -17
- package/ScatterChartPro/ScatterChartPro.js +4 -5
- package/index.d.ts +3 -0
- package/index.js +4 -1
- package/internals/plugins/useChartProZoom/creatZoomLookup.d.ts +3 -0
- package/internals/plugins/useChartProZoom/creatZoomLookup.js +12 -0
- package/internals/plugins/useChartProZoom/useChartProZoom.js +2 -23
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +263 -35
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +6 -2
- package/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +0 -4
- package/internals/utils/releaseInfo.js +1 -1
- package/modern/BarChartPro/BarChartPro.js +5 -6
- package/modern/ChartContainerPro/ChartContainerPro.js +8 -18
- package/modern/ChartDataProviderPro/ChartDataProviderPro.js +292 -0
- package/modern/ChartDataProviderPro/index.js +1 -0
- package/modern/ChartDataProviderPro/useChartDataProviderProProps.js +17 -0
- package/modern/Heatmap/plugin.js +1 -0
- package/modern/LineChartPro/LineChartPro.js +6 -17
- package/modern/ScatterChartPro/ScatterChartPro.js +4 -5
- package/modern/index.js +4 -1
- package/modern/internals/plugins/useChartProZoom/creatZoomLookup.js +12 -0
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.js +2 -23
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +6 -2
- package/modern/internals/utils/releaseInfo.js +1 -1
- package/node/BarChartPro/BarChartPro.js +5 -6
- package/node/ChartContainerPro/ChartContainerPro.js +7 -17
- package/node/ChartDataProviderPro/ChartDataProviderPro.js +298 -0
- package/node/ChartDataProviderPro/index.js +16 -0
- package/node/ChartDataProviderPro/useChartDataProviderProProps.js +23 -0
- package/node/Heatmap/plugin.js +1 -0
- package/node/LineChartPro/LineChartPro.js +6 -17
- package/node/ScatterChartPro/ScatterChartPro.js +4 -5
- package/node/index.js +34 -1
- package/node/internals/plugins/useChartProZoom/creatZoomLookup.js +19 -0
- package/node/internals/plugins/useChartProZoom/useChartProZoom.js +2 -23
- package/node/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +6 -1
- package/node/internals/utils/releaseInfo.js +1 -1
- package/package.json +4 -4
|
@@ -1,29 +1,141 @@
|
|
|
1
1
|
import { ChartRootSelector } from '@mui/x-charts/internals';
|
|
2
2
|
import { UseChartProZoomSignature } from './useChartProZoom.types';
|
|
3
3
|
export declare const selectorChartZoomState: ChartRootSelector<UseChartProZoomSignature>;
|
|
4
|
-
export declare const selectorChartZoomOptionsLookup: ((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("
|
|
4
|
+
export declare const selectorChartZoomOptionsLookup: ((state: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals").UseChartCartesianAxisState & Partial<{}> & {
|
|
5
5
|
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
6
|
-
}
|
|
6
|
+
} & {
|
|
7
|
+
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
8
|
+
}) => {
|
|
9
|
+
[x: string]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
|
|
10
|
+
[x: number]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
|
|
11
|
+
}) & {
|
|
7
12
|
clearCache: () => void;
|
|
8
13
|
resultsCount: () => number;
|
|
9
14
|
resetResultsCount: () => void;
|
|
10
15
|
} & {
|
|
11
|
-
resultFunc: (resultFuncArgs_0: {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
zoomData: import("@mui/x-charts/internals").ZoomData[];
|
|
20
|
-
}) => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>) & {
|
|
16
|
+
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>) => {
|
|
17
|
+
[x: string]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
|
|
18
|
+
[x: number]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
|
|
19
|
+
};
|
|
20
|
+
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>) => {
|
|
21
|
+
[x: string]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
|
|
22
|
+
[x: number]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
|
|
23
|
+
}) & {
|
|
21
24
|
clearCache: () => void;
|
|
22
25
|
resultsCount: () => number;
|
|
23
26
|
resetResultsCount: () => void;
|
|
24
27
|
};
|
|
25
|
-
lastResult: () =>
|
|
26
|
-
|
|
28
|
+
lastResult: () => {
|
|
29
|
+
[x: string]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
|
|
30
|
+
[x: number]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
|
|
31
|
+
};
|
|
32
|
+
dependencies: [((state: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals").UseChartCartesianAxisState & Partial<{}> & {
|
|
33
|
+
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
34
|
+
}) => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>) & {
|
|
35
|
+
clearCache: () => void;
|
|
36
|
+
resultsCount: () => number;
|
|
37
|
+
resetResultsCount: () => void;
|
|
38
|
+
} & {
|
|
39
|
+
resultFunc: (resultFuncArgs_0: import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsXAxisProps>[]) => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>;
|
|
40
|
+
memoizedResultFunc: ((resultFuncArgs_0: import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsXAxisProps>[]) => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>) & {
|
|
41
|
+
clearCache: () => void;
|
|
42
|
+
resultsCount: () => number;
|
|
43
|
+
resetResultsCount: () => void;
|
|
44
|
+
};
|
|
45
|
+
lastResult: () => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>;
|
|
46
|
+
dependencies: [((state: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals").UseChartCartesianAxisState & Partial<{}> & {
|
|
47
|
+
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
48
|
+
}) => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsXAxisProps>[]) & {
|
|
49
|
+
clearCache: () => void;
|
|
50
|
+
resultsCount: () => number;
|
|
51
|
+
resetResultsCount: () => void;
|
|
52
|
+
} & {
|
|
53
|
+
resultFunc: (resultFuncArgs_0: {
|
|
54
|
+
x: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsXAxisProps>[];
|
|
55
|
+
y: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsYAxisProps>[];
|
|
56
|
+
}) => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsXAxisProps>[];
|
|
57
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
58
|
+
x: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsXAxisProps>[];
|
|
59
|
+
y: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsYAxisProps>[];
|
|
60
|
+
}) => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsXAxisProps>[]) & {
|
|
61
|
+
clearCache: () => void;
|
|
62
|
+
resultsCount: () => number;
|
|
63
|
+
resetResultsCount: () => void;
|
|
64
|
+
};
|
|
65
|
+
lastResult: () => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsXAxisProps>[];
|
|
66
|
+
dependencies: [(state: import("@mui/x-charts/internals").ChartState<[import("@mui/x-charts/internals").UseChartCartesianAxisSignature]>) => {
|
|
67
|
+
x: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsXAxisProps>[];
|
|
68
|
+
y: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsYAxisProps>[];
|
|
69
|
+
}];
|
|
70
|
+
recomputations: () => number;
|
|
71
|
+
resetRecomputations: () => void;
|
|
72
|
+
dependencyRecomputations: () => number;
|
|
73
|
+
resetDependencyRecomputations: () => void;
|
|
74
|
+
} & {
|
|
75
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
76
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
77
|
+
}];
|
|
78
|
+
recomputations: () => number;
|
|
79
|
+
resetRecomputations: () => void;
|
|
80
|
+
dependencyRecomputations: () => number;
|
|
81
|
+
resetDependencyRecomputations: () => void;
|
|
82
|
+
} & {
|
|
83
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
84
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
85
|
+
}, ((state: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals").UseChartCartesianAxisState & Partial<{}> & {
|
|
86
|
+
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
87
|
+
}) => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>) & {
|
|
88
|
+
clearCache: () => void;
|
|
89
|
+
resultsCount: () => number;
|
|
90
|
+
resetResultsCount: () => void;
|
|
91
|
+
} & {
|
|
92
|
+
resultFunc: (resultFuncArgs_0: import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsYAxisProps>[]) => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>;
|
|
93
|
+
memoizedResultFunc: ((resultFuncArgs_0: import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsYAxisProps>[]) => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>) & {
|
|
94
|
+
clearCache: () => void;
|
|
95
|
+
resultsCount: () => number;
|
|
96
|
+
resetResultsCount: () => void;
|
|
97
|
+
};
|
|
98
|
+
lastResult: () => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>;
|
|
99
|
+
dependencies: [((state: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals").UseChartCartesianAxisState & Partial<{}> & {
|
|
100
|
+
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
101
|
+
}) => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsYAxisProps>[]) & {
|
|
102
|
+
clearCache: () => void;
|
|
103
|
+
resultsCount: () => number;
|
|
104
|
+
resetResultsCount: () => void;
|
|
105
|
+
} & {
|
|
106
|
+
resultFunc: (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
|
+
}) => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsYAxisProps>[];
|
|
110
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
111
|
+
x: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsXAxisProps>[];
|
|
112
|
+
y: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsYAxisProps>[];
|
|
113
|
+
}) => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsYAxisProps>[]) & {
|
|
114
|
+
clearCache: () => void;
|
|
115
|
+
resultsCount: () => number;
|
|
116
|
+
resetResultsCount: () => void;
|
|
117
|
+
};
|
|
118
|
+
lastResult: () => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsYAxisProps>[];
|
|
119
|
+
dependencies: [(state: import("@mui/x-charts/internals").ChartState<[import("@mui/x-charts/internals").UseChartCartesianAxisSignature]>) => {
|
|
120
|
+
x: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsXAxisProps>[];
|
|
121
|
+
y: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsYAxisProps>[];
|
|
122
|
+
}];
|
|
123
|
+
recomputations: () => number;
|
|
124
|
+
resetRecomputations: () => void;
|
|
125
|
+
dependencyRecomputations: () => number;
|
|
126
|
+
resetDependencyRecomputations: () => void;
|
|
127
|
+
} & {
|
|
128
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
129
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
130
|
+
}];
|
|
131
|
+
recomputations: () => number;
|
|
132
|
+
resetRecomputations: () => void;
|
|
133
|
+
dependencyRecomputations: () => number;
|
|
134
|
+
resetDependencyRecomputations: () => void;
|
|
135
|
+
} & {
|
|
136
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
137
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
138
|
+
}];
|
|
27
139
|
recomputations: () => number;
|
|
28
140
|
resetRecomputations: () => void;
|
|
29
141
|
dependencyRecomputations: () => number;
|
|
@@ -40,12 +152,10 @@ export declare const selectorChartZoomData: ((state: import("@mui/x-charts/inter
|
|
|
40
152
|
resetResultsCount: () => void;
|
|
41
153
|
} & {
|
|
42
154
|
resultFunc: (resultFuncArgs_0: {
|
|
43
|
-
optionsLookup: Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>;
|
|
44
155
|
isInteracting: boolean;
|
|
45
156
|
zoomData: import("@mui/x-charts/internals").ZoomData[];
|
|
46
157
|
}) => import("@mui/x-charts/internals").ZoomData[];
|
|
47
158
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
48
|
-
optionsLookup: Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>;
|
|
49
159
|
isInteracting: boolean;
|
|
50
160
|
zoomData: import("@mui/x-charts/internals").ZoomData[];
|
|
51
161
|
}) => import("@mui/x-charts/internals").ZoomData[]) & {
|
|
@@ -71,12 +181,10 @@ export declare const selectorChartZoomIsInteracting: ((state: import("@mui/x-cha
|
|
|
71
181
|
resetResultsCount: () => void;
|
|
72
182
|
} & {
|
|
73
183
|
resultFunc: (resultFuncArgs_0: {
|
|
74
|
-
optionsLookup: Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>;
|
|
75
184
|
isInteracting: boolean;
|
|
76
185
|
zoomData: import("@mui/x-charts/internals").ZoomData[];
|
|
77
186
|
}) => boolean;
|
|
78
187
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
79
|
-
optionsLookup: Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>;
|
|
80
188
|
isInteracting: boolean;
|
|
81
189
|
zoomData: import("@mui/x-charts/internals").ZoomData[];
|
|
82
190
|
}) => boolean) & {
|
|
@@ -94,43 +202,163 @@ export declare const selectorChartZoomIsInteracting: ((state: import("@mui/x-cha
|
|
|
94
202
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
95
203
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
96
204
|
};
|
|
97
|
-
export declare const selectorChartZoomIsEnabled: ((state: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("
|
|
205
|
+
export declare const selectorChartZoomIsEnabled: ((state: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals").UseChartCartesianAxisState & Partial<{}> & {
|
|
206
|
+
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
207
|
+
} & {
|
|
98
208
|
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
99
209
|
}) => boolean) & {
|
|
100
210
|
clearCache: () => void;
|
|
101
211
|
resultsCount: () => number;
|
|
102
212
|
resetResultsCount: () => void;
|
|
103
213
|
} & {
|
|
104
|
-
resultFunc: (resultFuncArgs_0:
|
|
105
|
-
|
|
214
|
+
resultFunc: (resultFuncArgs_0: {
|
|
215
|
+
[x: string]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
|
|
216
|
+
[x: number]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
|
|
217
|
+
}) => boolean;
|
|
218
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
219
|
+
[x: string]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
|
|
220
|
+
[x: number]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
|
|
221
|
+
}) => boolean) & {
|
|
106
222
|
clearCache: () => void;
|
|
107
223
|
resultsCount: () => number;
|
|
108
224
|
resetResultsCount: () => void;
|
|
109
225
|
};
|
|
110
226
|
lastResult: () => boolean;
|
|
111
|
-
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("
|
|
227
|
+
dependencies: [((state: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals").UseChartCartesianAxisState & Partial<{}> & {
|
|
112
228
|
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
113
|
-
}
|
|
229
|
+
} & {
|
|
230
|
+
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
231
|
+
}) => {
|
|
232
|
+
[x: string]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
|
|
233
|
+
[x: number]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
|
|
234
|
+
}) & {
|
|
114
235
|
clearCache: () => void;
|
|
115
236
|
resultsCount: () => number;
|
|
116
237
|
resetResultsCount: () => void;
|
|
117
238
|
} & {
|
|
118
|
-
resultFunc: (resultFuncArgs_0: {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
zoomData: import("@mui/x-charts/internals").ZoomData[];
|
|
127
|
-
}) => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>) & {
|
|
239
|
+
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>) => {
|
|
240
|
+
[x: string]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
|
|
241
|
+
[x: number]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
|
|
242
|
+
};
|
|
243
|
+
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>) => {
|
|
244
|
+
[x: string]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
|
|
245
|
+
[x: number]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
|
|
246
|
+
}) & {
|
|
128
247
|
clearCache: () => void;
|
|
129
248
|
resultsCount: () => number;
|
|
130
249
|
resetResultsCount: () => void;
|
|
131
250
|
};
|
|
132
|
-
lastResult: () =>
|
|
133
|
-
|
|
251
|
+
lastResult: () => {
|
|
252
|
+
[x: string]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
|
|
253
|
+
[x: number]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
|
|
254
|
+
};
|
|
255
|
+
dependencies: [((state: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals").UseChartCartesianAxisState & Partial<{}> & {
|
|
256
|
+
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
257
|
+
}) => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>) & {
|
|
258
|
+
clearCache: () => void;
|
|
259
|
+
resultsCount: () => number;
|
|
260
|
+
resetResultsCount: () => void;
|
|
261
|
+
} & {
|
|
262
|
+
resultFunc: (resultFuncArgs_0: import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsXAxisProps>[]) => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>;
|
|
263
|
+
memoizedResultFunc: ((resultFuncArgs_0: import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsXAxisProps>[]) => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>) & {
|
|
264
|
+
clearCache: () => void;
|
|
265
|
+
resultsCount: () => number;
|
|
266
|
+
resetResultsCount: () => void;
|
|
267
|
+
};
|
|
268
|
+
lastResult: () => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>;
|
|
269
|
+
dependencies: [((state: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals").UseChartCartesianAxisState & Partial<{}> & {
|
|
270
|
+
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
271
|
+
}) => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsXAxisProps>[]) & {
|
|
272
|
+
clearCache: () => void;
|
|
273
|
+
resultsCount: () => number;
|
|
274
|
+
resetResultsCount: () => void;
|
|
275
|
+
} & {
|
|
276
|
+
resultFunc: (resultFuncArgs_0: {
|
|
277
|
+
x: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsXAxisProps>[];
|
|
278
|
+
y: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsYAxisProps>[];
|
|
279
|
+
}) => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsXAxisProps>[];
|
|
280
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
281
|
+
x: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsXAxisProps>[];
|
|
282
|
+
y: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsYAxisProps>[];
|
|
283
|
+
}) => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsXAxisProps>[]) & {
|
|
284
|
+
clearCache: () => void;
|
|
285
|
+
resultsCount: () => number;
|
|
286
|
+
resetResultsCount: () => void;
|
|
287
|
+
};
|
|
288
|
+
lastResult: () => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsXAxisProps>[];
|
|
289
|
+
dependencies: [(state: import("@mui/x-charts/internals").ChartState<[import("@mui/x-charts/internals").UseChartCartesianAxisSignature]>) => {
|
|
290
|
+
x: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsXAxisProps>[];
|
|
291
|
+
y: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsYAxisProps>[];
|
|
292
|
+
}];
|
|
293
|
+
recomputations: () => number;
|
|
294
|
+
resetRecomputations: () => void;
|
|
295
|
+
dependencyRecomputations: () => number;
|
|
296
|
+
resetDependencyRecomputations: () => void;
|
|
297
|
+
} & {
|
|
298
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
299
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
300
|
+
}];
|
|
301
|
+
recomputations: () => number;
|
|
302
|
+
resetRecomputations: () => void;
|
|
303
|
+
dependencyRecomputations: () => number;
|
|
304
|
+
resetDependencyRecomputations: () => void;
|
|
305
|
+
} & {
|
|
306
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
307
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
308
|
+
}, ((state: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals").UseChartCartesianAxisState & Partial<{}> & {
|
|
309
|
+
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
310
|
+
}) => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>) & {
|
|
311
|
+
clearCache: () => void;
|
|
312
|
+
resultsCount: () => number;
|
|
313
|
+
resetResultsCount: () => void;
|
|
314
|
+
} & {
|
|
315
|
+
resultFunc: (resultFuncArgs_0: import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsYAxisProps>[]) => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>;
|
|
316
|
+
memoizedResultFunc: ((resultFuncArgs_0: import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsYAxisProps>[]) => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>) & {
|
|
317
|
+
clearCache: () => void;
|
|
318
|
+
resultsCount: () => number;
|
|
319
|
+
resetResultsCount: () => void;
|
|
320
|
+
};
|
|
321
|
+
lastResult: () => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>;
|
|
322
|
+
dependencies: [((state: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals").UseChartCartesianAxisState & Partial<{}> & {
|
|
323
|
+
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
324
|
+
}) => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsYAxisProps>[]) & {
|
|
325
|
+
clearCache: () => void;
|
|
326
|
+
resultsCount: () => number;
|
|
327
|
+
resetResultsCount: () => void;
|
|
328
|
+
} & {
|
|
329
|
+
resultFunc: (resultFuncArgs_0: {
|
|
330
|
+
x: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsXAxisProps>[];
|
|
331
|
+
y: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsYAxisProps>[];
|
|
332
|
+
}) => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsYAxisProps>[];
|
|
333
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
334
|
+
x: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsXAxisProps>[];
|
|
335
|
+
y: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsYAxisProps>[];
|
|
336
|
+
}) => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsYAxisProps>[]) & {
|
|
337
|
+
clearCache: () => void;
|
|
338
|
+
resultsCount: () => number;
|
|
339
|
+
resetResultsCount: () => void;
|
|
340
|
+
};
|
|
341
|
+
lastResult: () => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsYAxisProps>[];
|
|
342
|
+
dependencies: [(state: import("@mui/x-charts/internals").ChartState<[import("@mui/x-charts/internals").UseChartCartesianAxisSignature]>) => {
|
|
343
|
+
x: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsXAxisProps>[];
|
|
344
|
+
y: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsYAxisProps>[];
|
|
345
|
+
}];
|
|
346
|
+
recomputations: () => number;
|
|
347
|
+
resetRecomputations: () => void;
|
|
348
|
+
dependencyRecomputations: () => number;
|
|
349
|
+
resetDependencyRecomputations: () => void;
|
|
350
|
+
} & {
|
|
351
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
352
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
353
|
+
}];
|
|
354
|
+
recomputations: () => number;
|
|
355
|
+
resetRecomputations: () => void;
|
|
356
|
+
dependencyRecomputations: () => number;
|
|
357
|
+
resetDependencyRecomputations: () => void;
|
|
358
|
+
} & {
|
|
359
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
360
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
361
|
+
}];
|
|
134
362
|
recomputations: () => number;
|
|
135
363
|
resetRecomputations: () => void;
|
|
136
364
|
dependencyRecomputations: () => number;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import { createSelector, selectorChartRawXAxis, selectorChartRawYAxis } from '@mui/x-charts/internals';
|
|
3
|
+
import { creatZoomLookup } from "./creatZoomLookup.js";
|
|
2
4
|
export const selectorChartZoomState = state => state.zoom;
|
|
3
|
-
|
|
5
|
+
const selectorChartXZoomOptionsLookup = createSelector(selectorChartRawXAxis, creatZoomLookup);
|
|
6
|
+
const selectorChartYZoomOptionsLookup = createSelector(selectorChartRawYAxis, creatZoomLookup);
|
|
7
|
+
export const selectorChartZoomOptionsLookup = createSelector([selectorChartXZoomOptionsLookup, selectorChartYZoomOptionsLookup], (xLookup, yLookup) => _extends({}, xLookup, yLookup));
|
|
4
8
|
export const selectorChartZoomData = createSelector(selectorChartZoomState, zoom => zoom.zoomData);
|
|
5
9
|
export const selectorChartZoomIsInteracting = createSelector(selectorChartZoomState, zoom => zoom.isInteracting);
|
|
6
10
|
export const selectorChartZoomIsEnabled = createSelector(selectorChartZoomOptionsLookup, optionsLookup => Object.keys(optionsLookup).length > 0);
|
|
@@ -19,10 +19,6 @@ export type UseChartProZoomDefaultizedParameters = UseChartProZoomParameters & U
|
|
|
19
19
|
};
|
|
20
20
|
export interface UseChartProZoomState {
|
|
21
21
|
zoom: {
|
|
22
|
-
/**
|
|
23
|
-
* The zoom options for each axis.
|
|
24
|
-
*/
|
|
25
|
-
optionsLookup: Record<AxisId, DefaultizedZoomOptions>;
|
|
26
22
|
/**
|
|
27
23
|
* Whether the user is currently interacting with the chart.
|
|
28
24
|
* This is useful to disable animations while the user is interacting.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import ponyfillGlobal from '@mui/utils/ponyfillGlobal';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTczNzY1ODgwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|
|
@@ -16,15 +16,15 @@ import { ChartsAxisHighlight } from '@mui/x-charts/ChartsAxisHighlight';
|
|
|
16
16
|
import { ChartsTooltip } from '@mui/x-charts/ChartsTooltip';
|
|
17
17
|
import { ChartsClipPath } from '@mui/x-charts/ChartsClipPath';
|
|
18
18
|
import { useBarChartProps, ChartsWrapper } from '@mui/x-charts/internals';
|
|
19
|
-
import { ChartDataProvider } from '@mui/x-charts/context';
|
|
20
19
|
import { ChartsSurface } from '@mui/x-charts/ChartsSurface';
|
|
21
20
|
import { useIsZoomInteracting } from "../hooks/zoom/index.js";
|
|
22
21
|
import { useChartContainerProProps } from "../ChartContainerPro/useChartContainerProProps.js";
|
|
22
|
+
import { ChartDataProviderPro } from "../ChartDataProviderPro/index.js";
|
|
23
23
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
24
|
function BarChartPlotZoom(props) {
|
|
25
25
|
const isInteracting = useIsZoomInteracting();
|
|
26
26
|
return /*#__PURE__*/_jsx(BarPlot, _extends({}, props, {
|
|
27
|
-
skipAnimation: isInteracting ||
|
|
27
|
+
skipAnimation: isInteracting || props.skipAnimation
|
|
28
28
|
}));
|
|
29
29
|
}
|
|
30
30
|
process.env.NODE_ENV !== "production" ? BarChartPlotZoom.propTypes = {
|
|
@@ -106,13 +106,12 @@ const BarChartPro = /*#__PURE__*/React.forwardRef(function BarChartPro(inProps,
|
|
|
106
106
|
chartDataProviderProProps,
|
|
107
107
|
chartsSurfaceProps
|
|
108
108
|
} = useChartContainerProProps(_extends({}, chartContainerProps, {
|
|
109
|
+
initialZoom,
|
|
110
|
+
onZoomChange,
|
|
109
111
|
apiRef
|
|
110
112
|
}), ref);
|
|
111
113
|
const Tooltip = props.slots?.tooltip ?? ChartsTooltip;
|
|
112
|
-
return /*#__PURE__*/_jsx(
|
|
113
|
-
apiRef: apiRef,
|
|
114
|
-
initialZoom: initialZoom,
|
|
115
|
-
onZoomChange: onZoomChange,
|
|
114
|
+
return /*#__PURE__*/_jsx(ChartDataProviderPro, _extends({}, chartDataProviderProProps, {
|
|
116
115
|
children: /*#__PURE__*/_jsxs(ChartsWrapper, _extends({}, chartsWrapperProps, {
|
|
117
116
|
children: [!props.hideLegend && /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), /*#__PURE__*/_jsxs(ChartsSurface, _extends({}, chartsSurfaceProps, {
|
|
118
117
|
children: [props.onAxisClick && /*#__PURE__*/_jsx(ChartsOnAxisClickHandler, _extends({}, axisClickHandlerProps)), /*#__PURE__*/_jsx(ChartsGrid, _extends({}, gridProps)), /*#__PURE__*/_jsxs("g", _extends({}, clipPathGroupProps, {
|
|
@@ -3,23 +3,18 @@
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
|
-
import { Watermark } from '@mui/x-license/Watermark';
|
|
7
|
-
import { useLicenseVerifier } from '@mui/x-license/useLicenseVerifier';
|
|
8
6
|
import { ChartsSurface } from '@mui/x-charts/ChartsSurface';
|
|
9
|
-
import { ChartDataProvider } from '@mui/x-charts/context';
|
|
10
|
-
import { getReleaseInfo } from "../internals/utils/releaseInfo.js";
|
|
11
7
|
import { useChartContainerProProps } from "./useChartContainerProProps.js";
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
import { ChartDataProviderPro } from "../ChartDataProviderPro/index.js";
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
10
|
/**
|
|
16
11
|
* It sets up the data providers as well as the `<svg>` for the chart.
|
|
17
12
|
*
|
|
18
|
-
* This is a combination of both the `
|
|
13
|
+
* This is a combination of both the `ChartDataProviderPro` and `ChartsSurface` components.
|
|
19
14
|
*
|
|
20
15
|
* Demos:
|
|
21
16
|
*
|
|
22
|
-
* - [Composition](
|
|
17
|
+
* - [Composition](https://mui.com/x/api/charts/composition/)
|
|
23
18
|
*
|
|
24
19
|
* API:
|
|
25
20
|
*
|
|
@@ -42,19 +37,14 @@ const ChartContainerPro = /*#__PURE__*/React.forwardRef(function ChartContainerP
|
|
|
42
37
|
children,
|
|
43
38
|
chartsSurfaceProps
|
|
44
39
|
} = useChartContainerProProps(props, ref);
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
children: [/*#__PURE__*/_jsx(ChartsSurface, _extends({}, chartsSurfaceProps, {
|
|
40
|
+
return /*#__PURE__*/_jsx(ChartDataProviderPro, _extends({}, chartDataProviderProProps, {
|
|
41
|
+
children: /*#__PURE__*/_jsx(ChartsSurface, _extends({}, chartsSurfaceProps, {
|
|
48
42
|
children: children
|
|
49
|
-
}))
|
|
50
|
-
packageName: "x-charts-pro",
|
|
51
|
-
releaseInfo: releaseInfo
|
|
52
|
-
})]
|
|
43
|
+
}))
|
|
53
44
|
}));
|
|
54
45
|
});
|
|
55
46
|
|
|
56
|
-
// @ts-
|
|
57
|
-
|
|
47
|
+
// @ts-expect-error the type coercion breaks the prop types
|
|
58
48
|
process.env.NODE_ENV !== "production" ? ChartContainerPro.propTypes = {
|
|
59
49
|
// ----------------------------- Warning --------------------------------
|
|
60
50
|
// | These PropTypes are generated from the TypeScript type definitions |
|