@mui/x-charts-pro 8.16.0 → 8.18.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.js +1 -0
- package/CHANGELOG.md +208 -1
- package/ChartDataProviderPro/ChartDataProviderPro.d.ts +1 -2
- package/ChartDataProviderPro/ChartDataProviderPro.js +1 -3
- package/ChartZoomSlider/ChartZoomSlider.d.ts +1 -2
- package/ChartZoomSlider/internals/ChartAxisZoomSlider.d.ts +1 -2
- package/ChartZoomSlider/internals/ChartAxisZoomSlider.js +2 -2
- package/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.d.ts +1 -2
- package/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.js +6 -3
- package/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.d.ts +1 -2
- package/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.js +2 -2
- package/ChartZoomSlider/internals/ChartAxisZoomSliderPreviewContent.d.ts +1 -2
- package/ChartZoomSlider/internals/ChartAxisZoomSliderThumb.js +8 -5
- package/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.d.ts +1 -1
- package/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.js +6 -3
- package/ChartZoomSlider/internals/ChartsTooltipZoomSliderValue.d.ts +1 -1
- package/ChartZoomSlider/internals/previews/AreaPreviewPlot.d.ts +1 -1
- package/ChartZoomSlider/internals/previews/AreaPreviewPlot.js +2 -2
- package/ChartZoomSlider/internals/previews/BarPreviewPlot.d.ts +1 -2
- package/ChartZoomSlider/internals/previews/BarPreviewPlot.js +2 -4
- package/ChartZoomSlider/internals/previews/LinePreviewPlot.d.ts +1 -1
- package/ChartZoomSlider/internals/previews/LinePreviewPlot.js +2 -2
- package/ChartZoomSlider/internals/previews/ScatterPreviewPlot.d.ts +1 -2
- package/ChartZoomSlider/internals/previews/ScatterPreviewPlot.js +2 -2
- package/ChartsToolbarPro/ChartsToolbarImageExportTrigger.js +1 -0
- package/ChartsToolbarPro/ChartsToolbarPrintExportTrigger.js +1 -0
- package/ChartsToolbarPro/ChartsToolbarPro.d.ts +1 -2
- package/ChartsToolbarPro/ChartsToolbarPro.js +1 -0
- package/ChartsToolbarPro/internals/ChartsMenu.d.ts +1 -1
- package/FunnelChart/FunnelChart.js +1 -1
- package/FunnelChart/FunnelPlot.d.ts +1 -1
- package/FunnelChart/funnel.types.d.ts +1 -1
- package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.js +7 -7
- package/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.d.ts +6 -44
- package/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.js +3 -2
- package/FunnelChart/seriesConfig/index.d.ts +1 -1
- package/FunnelChart/seriesConfig/index.js +2 -2
- package/Heatmap/Heatmap.js +1 -1
- package/Heatmap/HeatmapItem.d.ts +1 -1
- package/Heatmap/HeatmapPlot.d.ts +1 -2
- package/Heatmap/HeatmapPlot.js +0 -2
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.d.ts +1 -2
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.js +0 -2
- package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.d.ts +1 -2
- package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.js +0 -2
- package/Heatmap/seriesConfig/index.d.ts +1 -1
- package/Heatmap/seriesConfig/index.js +2 -2
- package/SankeyChart/SankeyChart.js +1 -1
- package/SankeyChart/SankeyLinkElement.js +2 -2
- package/SankeyChart/SankeyNodeElement.js +2 -2
- package/SankeyChart/SankeyPlot.d.ts +1 -1
- package/SankeyChart/SankeyTooltip/SankeyTooltip.d.ts +1 -2
- package/SankeyChart/SankeyTooltip/SankeyTooltip.js +0 -2
- package/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.ts +1 -2
- package/SankeyChart/SankeyTooltip/SankeyTooltipContent.js +0 -2
- package/SankeyChart/calculateSankeyLayout.js +16 -7
- package/SankeyChart/plugins/useSankeyHighlight.js +8 -12
- package/SankeyChart/plugins/useSankeyHighlight.selectors.d.ts +19 -23
- package/SankeyChart/plugins/useSankeyHighlight.selectors.js +3 -3
- package/SankeyChart/sankey.types.d.ts +17 -4
- package/SankeyChart/seriesConfig/index.d.ts +1 -1
- package/SankeyChart/seriesConfig/index.js +2 -2
- package/esm/BarChartPro/BarChartPro.js +1 -0
- package/esm/ChartDataProviderPro/ChartDataProviderPro.d.ts +1 -2
- package/esm/ChartDataProviderPro/ChartDataProviderPro.js +1 -2
- package/esm/ChartZoomSlider/ChartZoomSlider.d.ts +1 -2
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSlider.d.ts +1 -2
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSlider.js +2 -2
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.d.ts +1 -2
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.js +6 -3
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.d.ts +1 -2
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.js +2 -2
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreviewContent.d.ts +1 -2
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderThumb.js +8 -5
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.d.ts +1 -1
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.js +6 -3
- package/esm/ChartZoomSlider/internals/ChartsTooltipZoomSliderValue.d.ts +1 -1
- package/esm/ChartZoomSlider/internals/previews/AreaPreviewPlot.d.ts +1 -1
- package/esm/ChartZoomSlider/internals/previews/AreaPreviewPlot.js +2 -2
- package/esm/ChartZoomSlider/internals/previews/BarPreviewPlot.d.ts +1 -2
- package/esm/ChartZoomSlider/internals/previews/BarPreviewPlot.js +2 -3
- package/esm/ChartZoomSlider/internals/previews/LinePreviewPlot.d.ts +1 -1
- package/esm/ChartZoomSlider/internals/previews/LinePreviewPlot.js +2 -2
- package/esm/ChartZoomSlider/internals/previews/ScatterPreviewPlot.d.ts +1 -2
- package/esm/ChartZoomSlider/internals/previews/ScatterPreviewPlot.js +2 -2
- package/esm/ChartsToolbarPro/ChartsToolbarImageExportTrigger.js +1 -0
- package/esm/ChartsToolbarPro/ChartsToolbarPrintExportTrigger.js +1 -0
- package/esm/ChartsToolbarPro/ChartsToolbarPro.d.ts +1 -2
- package/esm/ChartsToolbarPro/ChartsToolbarPro.js +1 -0
- package/esm/ChartsToolbarPro/internals/ChartsMenu.d.ts +1 -1
- package/esm/FunnelChart/FunnelChart.js +1 -1
- package/esm/FunnelChart/FunnelPlot.d.ts +1 -1
- package/esm/FunnelChart/funnel.types.d.ts +1 -1
- package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.js +7 -7
- package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.d.ts +6 -44
- package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.js +3 -2
- package/esm/FunnelChart/seriesConfig/index.d.ts +1 -1
- package/esm/FunnelChart/seriesConfig/index.js +1 -1
- package/esm/Heatmap/Heatmap.js +1 -1
- package/esm/Heatmap/HeatmapItem.d.ts +1 -1
- package/esm/Heatmap/HeatmapPlot.d.ts +1 -2
- package/esm/Heatmap/HeatmapPlot.js +0 -1
- package/esm/Heatmap/HeatmapTooltip/HeatmapTooltip.d.ts +1 -2
- package/esm/Heatmap/HeatmapTooltip/HeatmapTooltip.js +0 -1
- package/esm/Heatmap/HeatmapTooltip/HeatmapTooltipContent.d.ts +1 -2
- package/esm/Heatmap/HeatmapTooltip/HeatmapTooltipContent.js +0 -1
- package/esm/Heatmap/seriesConfig/index.d.ts +1 -1
- package/esm/Heatmap/seriesConfig/index.js +1 -1
- package/esm/SankeyChart/SankeyChart.js +1 -1
- package/esm/SankeyChart/SankeyLinkElement.js +2 -2
- package/esm/SankeyChart/SankeyNodeElement.js +2 -2
- package/esm/SankeyChart/SankeyPlot.d.ts +1 -1
- package/esm/SankeyChart/SankeyTooltip/SankeyTooltip.d.ts +1 -2
- package/esm/SankeyChart/SankeyTooltip/SankeyTooltip.js +0 -1
- package/esm/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.ts +1 -2
- package/esm/SankeyChart/SankeyTooltip/SankeyTooltipContent.js +0 -1
- package/esm/SankeyChart/calculateSankeyLayout.js +16 -7
- package/esm/SankeyChart/plugins/useSankeyHighlight.js +8 -12
- package/esm/SankeyChart/plugins/useSankeyHighlight.selectors.d.ts +19 -23
- package/esm/SankeyChart/plugins/useSankeyHighlight.selectors.js +3 -3
- package/esm/SankeyChart/sankey.types.d.ts +17 -4
- package/esm/SankeyChart/seriesConfig/index.d.ts +1 -1
- package/esm/SankeyChart/seriesConfig/index.js +1 -1
- package/esm/index.js +1 -1
- package/esm/internals/material/components/BaseMenuItem.d.ts +1 -2
- package/esm/internals/material/components/BaseMenuItem.js +0 -1
- package/esm/internals/material/components/BasePopper.d.ts +1 -2
- package/esm/internals/plugins/useChartProExport/exportImage.js +5 -3
- package/esm/internals/plugins/useChartProExport/print.d.ts +2 -1
- package/esm/internals/plugins/useChartProExport/print.js +3 -2
- package/esm/internals/plugins/useChartProExport/useChartProExport.types.d.ts +5 -0
- package/esm/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.d.ts +12 -6
- package/esm/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.js +2 -2
- package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.js +22 -14
- package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.js +26 -14
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.js +1 -1
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.js +1 -1
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.js +1 -1
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.js +1 -1
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.js +1 -1
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.js +30 -54
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +10 -26
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +1 -1
- package/esm/models/seriesType/heatmap.d.ts +1 -1
- package/index.js +1 -1
- package/internals/material/components/BaseMenuItem.d.ts +1 -2
- package/internals/material/components/BaseMenuItem.js +0 -2
- package/internals/material/components/BasePopper.d.ts +1 -2
- package/internals/plugins/useChartProExport/exportImage.js +5 -3
- package/internals/plugins/useChartProExport/print.d.ts +2 -1
- package/internals/plugins/useChartProExport/print.js +3 -2
- package/internals/plugins/useChartProExport/useChartProExport.types.d.ts +5 -0
- package/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.d.ts +12 -6
- package/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.js +2 -2
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.js +22 -14
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.js +26 -14
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.js +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.js +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.js +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.js +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.js +1 -1
- package/internals/plugins/useChartProZoom/useChartProZoom.js +30 -54
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +10 -26
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +1 -1
- package/models/seriesType/heatmap.d.ts +1 -1
- package/package.json +8 -8
|
@@ -40,15 +40,15 @@ const useChartFunnelAxis = ({
|
|
|
40
40
|
isFirstRender.current = false;
|
|
41
41
|
return;
|
|
42
42
|
}
|
|
43
|
-
store.update(
|
|
43
|
+
store.update({
|
|
44
44
|
funnel: {
|
|
45
45
|
gap: gap ?? 0
|
|
46
46
|
},
|
|
47
|
-
cartesianAxis:
|
|
47
|
+
cartesianAxis: {
|
|
48
48
|
x: (0, _internals.defaultizeXAxis)(xAxis, dataset),
|
|
49
49
|
y: (0, _internals.defaultizeYAxis)(yAxis, dataset)
|
|
50
|
-
}
|
|
51
|
-
})
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
52
|
}, [seriesConfig, drawingArea, xAxis, yAxis, dataset, store, gap]);
|
|
53
53
|
React.useEffect(() => {
|
|
54
54
|
const element = svgRef.current;
|
|
@@ -109,12 +109,12 @@ const useChartFunnelAxis = ({
|
|
|
109
109
|
const {
|
|
110
110
|
axis: xAxisWithScale,
|
|
111
111
|
axisIds: xAxisIds
|
|
112
|
-
} = (0, _useChartFunnelAxisRendering.selectorChartXAxis)(store.
|
|
112
|
+
} = (0, _useChartFunnelAxisRendering.selectorChartXAxis)(store.state);
|
|
113
113
|
const {
|
|
114
114
|
axis: yAxisWithScale,
|
|
115
115
|
axisIds: yAxisIds
|
|
116
|
-
} = (0, _useChartFunnelAxisRendering.selectorChartYAxis)(store.
|
|
117
|
-
const processedSeries = (0, _internals.selectorChartSeriesProcessed)(store.
|
|
116
|
+
} = (0, _useChartFunnelAxisRendering.selectorChartYAxis)(store.state);
|
|
117
|
+
const processedSeries = (0, _internals.selectorChartSeriesProcessed)(store.state);
|
|
118
118
|
const usedXAxis = xAxisIds[0];
|
|
119
119
|
const usedYAxis = yAxisIds[0];
|
|
120
120
|
let dataIndex = null;
|
|
@@ -3,54 +3,16 @@ import { UseChartFunnelAxisSignature } from "./useChartFunnelAxis.types.js";
|
|
|
3
3
|
export declare const selectorFunnel: (state: ChartState<[], [UseChartFunnelAxisSignature]>) => {
|
|
4
4
|
gap: number;
|
|
5
5
|
} | undefined;
|
|
6
|
-
export declare const selectorFunnelGap:
|
|
6
|
+
export declare const selectorFunnelGap: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<Pick<import("@mui/x-charts/internals").UseChartCartesianAxisState, "cartesianAxis"> & {
|
|
7
7
|
funnel: {
|
|
8
8
|
gap: number;
|
|
9
9
|
};
|
|
10
10
|
}> & {
|
|
11
11
|
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
12
|
-
}
|
|
12
|
+
}) => number;
|
|
13
|
+
export declare const selectorChartXAxis: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<import("@mui/x-charts/internals").UseChartCartesianAxisState> & {
|
|
13
14
|
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
14
|
-
}
|
|
15
|
-
export declare const
|
|
15
|
+
}) => import("./computeAxisValue.js").ComputeResult<import("@mui/x-charts").ChartsXAxisProps>;
|
|
16
|
+
export declare const selectorChartYAxis: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<import("@mui/x-charts/internals").UseChartCartesianAxisState> & {
|
|
16
17
|
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
17
|
-
}
|
|
18
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
19
|
-
} & {
|
|
20
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
21
|
-
} & {
|
|
22
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
23
|
-
} & {
|
|
24
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
25
|
-
} & {
|
|
26
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
27
|
-
} & {
|
|
28
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
29
|
-
} & Partial<Pick<import("@mui/x-charts/internals").UseChartCartesianAxisState, "cartesianAxis"> & {
|
|
30
|
-
funnel: {
|
|
31
|
-
gap: number;
|
|
32
|
-
};
|
|
33
|
-
}> & {
|
|
34
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
35
|
-
}, import("./computeAxisValue.js").ComputeResult<import("@mui/x-charts").ChartsXAxisProps>, []>;
|
|
36
|
-
export declare const selectorChartYAxis: import("reselect").Selector<import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<import("@mui/x-charts/internals").UseChartCartesianAxisState> & {
|
|
37
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
38
|
-
} & Partial<{}> & {
|
|
39
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
40
|
-
} & {
|
|
41
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
42
|
-
} & {
|
|
43
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
44
|
-
} & {
|
|
45
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
46
|
-
} & {
|
|
47
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
48
|
-
} & {
|
|
49
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
50
|
-
} & Partial<Pick<import("@mui/x-charts/internals").UseChartCartesianAxisState, "cartesianAxis"> & {
|
|
51
|
-
funnel: {
|
|
52
|
-
gap: number;
|
|
53
|
-
};
|
|
54
|
-
}> & {
|
|
55
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
56
|
-
}, import("./computeAxisValue.js").ComputeResult<import("@mui/x-charts").ChartsYAxisProps>, []>;
|
|
18
|
+
}) => import("./computeAxisValue.js").ComputeResult<import("@mui/x-charts").ChartsYAxisProps>;
|
|
@@ -4,12 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.selectorFunnelGap = exports.selectorFunnel = exports.selectorChartYAxis = exports.selectorChartXAxis = void 0;
|
|
7
|
+
var _store = require("@mui/x-internals/store");
|
|
7
8
|
var _internals = require("@mui/x-charts/internals");
|
|
8
9
|
var _computeAxisValue = require("./computeAxisValue");
|
|
9
10
|
const selectorFunnel = state => state.funnel;
|
|
10
11
|
exports.selectorFunnel = selectorFunnel;
|
|
11
12
|
const selectorFunnelGap = exports.selectorFunnelGap = (0, _internals.createSelector)([selectorFunnel], funnel => funnel?.gap ?? 0);
|
|
12
|
-
const selectorChartXAxis = exports.selectorChartXAxis = (0,
|
|
13
|
+
const selectorChartXAxis = exports.selectorChartXAxis = (0, _store.createSelectorMemoized)(_internals.selectorChartRawXAxis, _internals.selectorChartDrawingArea, _internals.selectorChartSeriesProcessed, _internals.selectorChartSeriesConfig, selectorFunnelGap, (axis, drawingArea, formattedSeries, seriesConfig, gap) => (0, _computeAxisValue.computeAxisValue)({
|
|
13
14
|
drawingArea,
|
|
14
15
|
formattedSeries,
|
|
15
16
|
axis,
|
|
@@ -17,7 +18,7 @@ const selectorChartXAxis = exports.selectorChartXAxis = (0, _internals.createSel
|
|
|
17
18
|
axisDirection: 'x',
|
|
18
19
|
gap
|
|
19
20
|
}));
|
|
20
|
-
const selectorChartYAxis = exports.selectorChartYAxis = (0,
|
|
21
|
+
const selectorChartYAxis = exports.selectorChartYAxis = (0, _store.createSelectorMemoized)(_internals.selectorChartRawYAxis, _internals.selectorChartDrawingArea, _internals.selectorChartSeriesProcessed, _internals.selectorChartSeriesConfig, selectorFunnelGap, (axis, drawingArea, formattedSeries, seriesConfig, gap) => (0, _computeAxisValue.computeAxisValue)({
|
|
21
22
|
drawingArea,
|
|
22
23
|
formattedSeries,
|
|
23
24
|
axis,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { ChartSeriesTypeConfig } from '@mui/x-charts/internals';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const funnelSeriesConfig: ChartSeriesTypeConfig<'funnel'>;
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
7
|
+
exports.funnelSeriesConfig = void 0;
|
|
8
8
|
var _extremums = require("./extremums");
|
|
9
9
|
var _seriesProcessor = _interopRequireDefault(require("./seriesProcessor"));
|
|
10
10
|
var _getColor = _interopRequireDefault(require("./getColor"));
|
|
@@ -12,7 +12,7 @@ var _legend = _interopRequireDefault(require("./legend"));
|
|
|
12
12
|
var _tooltip = _interopRequireDefault(require("./tooltip"));
|
|
13
13
|
var _getSeriesWithDefaultValues = _interopRequireDefault(require("./getSeriesWithDefaultValues"));
|
|
14
14
|
var _tooltipPosition = _interopRequireDefault(require("./tooltipPosition"));
|
|
15
|
-
const
|
|
15
|
+
const funnelSeriesConfig = exports.funnelSeriesConfig = {
|
|
16
16
|
seriesProcessor: _seriesProcessor.default,
|
|
17
17
|
colorProcessor: _getColor.default,
|
|
18
18
|
legendGetter: _legend.default,
|
package/Heatmap/Heatmap.js
CHANGED
|
@@ -30,7 +30,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
30
30
|
// The GnBu: https://github.com/d3/d3-scale-chromatic/blob/main/src/sequential-multi/GnBu.js
|
|
31
31
|
const defaultColorMap = (0, _d3Interpolate.interpolateRgbBasis)(['#f7fcf0', '#e0f3db', '#ccebc5', '#a8ddb5', '#7bccc4', '#4eb3d3', '#2b8cbe', '#0868ac', '#084081']);
|
|
32
32
|
const seriesConfig = {
|
|
33
|
-
heatmap: _seriesConfig.
|
|
33
|
+
heatmap: _seriesConfig.heatmapSeriesConfig
|
|
34
34
|
};
|
|
35
35
|
function getDefaultDataForAxis(series, dimension) {
|
|
36
36
|
if (series?.[0]?.data === undefined || series[0].data.length === 0) {
|
package/Heatmap/HeatmapItem.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ export interface HeatmapItemOwnerState {
|
|
|
42
42
|
/**
|
|
43
43
|
* @ignore - internal component.
|
|
44
44
|
*/
|
|
45
|
-
declare function HeatmapItem(props: HeatmapItemProps):
|
|
45
|
+
declare function HeatmapItem(props: HeatmapItemProps): import("react/jsx-runtime").JSX.Element;
|
|
46
46
|
declare namespace HeatmapItem {
|
|
47
47
|
var propTypes: any;
|
|
48
48
|
}
|
package/Heatmap/HeatmapPlot.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { HeatmapItemProps } from "./HeatmapItem.js";
|
|
3
2
|
export interface HeatmapPlotProps extends Pick<HeatmapItemProps, 'slots' | 'slotProps'> {}
|
|
4
|
-
declare function HeatmapPlot(props: HeatmapPlotProps):
|
|
3
|
+
declare function HeatmapPlot(props: HeatmapPlotProps): import("react/jsx-runtime").JSX.Element | null;
|
|
5
4
|
declare namespace HeatmapPlot {
|
|
6
5
|
var propTypes: any;
|
|
7
6
|
}
|
package/Heatmap/HeatmapPlot.js
CHANGED
|
@@ -2,12 +2,10 @@
|
|
|
2
2
|
'use client';
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
6
5
|
Object.defineProperty(exports, "__esModule", {
|
|
7
6
|
value: true
|
|
8
7
|
});
|
|
9
8
|
exports.HeatmapPlot = HeatmapPlot;
|
|
10
|
-
var React = _interopRequireWildcard(require("react"));
|
|
11
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
10
|
var _hooks = require("@mui/x-charts/hooks");
|
|
13
11
|
var _useHeatmapSeries = require("../hooks/useHeatmapSeries");
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { HeatmapTooltipProps } from "./HeatmapTooltip.types.js";
|
|
3
|
-
declare function HeatmapTooltip(props: HeatmapTooltipProps):
|
|
2
|
+
declare function HeatmapTooltip(props: HeatmapTooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
declare namespace HeatmapTooltip {
|
|
5
4
|
var propTypes: any;
|
|
6
5
|
}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
'use client';
|
|
3
3
|
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
6
5
|
Object.defineProperty(exports, "__esModule", {
|
|
7
6
|
value: true
|
|
8
7
|
});
|
|
9
8
|
exports.HeatmapTooltip = HeatmapTooltip;
|
|
10
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
-
var React = _interopRequireWildcard(require("react"));
|
|
12
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
11
|
var _HTMLElementType = _interopRequireDefault(require("@mui/utils/HTMLElementType"));
|
|
14
12
|
var _ChartsTooltip = require("@mui/x-charts/ChartsTooltip");
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { HeatmapTooltipProps } from "./HeatmapTooltip.types.js";
|
|
3
2
|
export interface HeatmapTooltipContentProps extends Pick<HeatmapTooltipProps, 'classes'> {}
|
|
4
|
-
export declare function HeatmapTooltipContent(props: HeatmapTooltipContentProps):
|
|
3
|
+
export declare function HeatmapTooltipContent(props: HeatmapTooltipContentProps): import("react/jsx-runtime").JSX.Element | null;
|
|
5
4
|
export declare namespace HeatmapTooltipContent {
|
|
6
5
|
var propTypes: any;
|
|
7
6
|
}
|
|
@@ -2,12 +2,10 @@
|
|
|
2
2
|
'use client';
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
6
5
|
Object.defineProperty(exports, "__esModule", {
|
|
7
6
|
value: true
|
|
8
7
|
});
|
|
9
8
|
exports.HeatmapTooltipContent = HeatmapTooltipContent;
|
|
10
|
-
var React = _interopRequireWildcard(require("react"));
|
|
11
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
10
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
13
11
|
var _ChartsTooltip = require("@mui/x-charts/ChartsTooltip");
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ChartSeriesTypeConfig } from '@mui/x-charts/internals';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const heatmapSeriesConfig: ChartSeriesTypeConfig<'heatmap'>;
|
|
@@ -4,14 +4,14 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
7
|
+
exports.heatmapSeriesConfig = void 0;
|
|
8
8
|
var _extremums = require("./extremums");
|
|
9
9
|
var _seriesProcessor = _interopRequireDefault(require("./seriesProcessor"));
|
|
10
10
|
var _getColor = _interopRequireDefault(require("./getColor"));
|
|
11
11
|
var _tooltip = _interopRequireDefault(require("./tooltip"));
|
|
12
12
|
var _getSeriesWithDefaultValues = _interopRequireDefault(require("./getSeriesWithDefaultValues"));
|
|
13
13
|
var _tooltipPosition = _interopRequireDefault(require("./tooltipPosition"));
|
|
14
|
-
const
|
|
14
|
+
const heatmapSeriesConfig = exports.heatmapSeriesConfig = {
|
|
15
15
|
seriesProcessor: _seriesProcessor.default,
|
|
16
16
|
colorProcessor: _getColor.default,
|
|
17
17
|
legendGetter: () => [],
|
|
@@ -23,7 +23,7 @@ var _seriesConfig = require("./seriesConfig");
|
|
|
23
23
|
var _SankeyTooltip = require("./SankeyTooltip");
|
|
24
24
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
25
|
const seriesConfig = {
|
|
26
|
-
sankey: _seriesConfig.
|
|
26
|
+
sankey: _seriesConfig.sankeySeriesConfig
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
29
29
|
* Sankey Chart component
|
|
@@ -33,8 +33,8 @@ const SankeyLinkElement = exports.SankeyLinkElement = /*#__PURE__*/React.forward
|
|
|
33
33
|
sourceId: link.source.id,
|
|
34
34
|
link
|
|
35
35
|
};
|
|
36
|
-
const isHighlighted = (0, _internals.useSelector)(store, _plugins.selectorIsLinkHighlighted,
|
|
37
|
-
const isFaded = (0, _internals.useSelector)(store, _useSankeyHighlight.selectorIsSankeyItemFaded,
|
|
36
|
+
const isHighlighted = (0, _internals.useSelector)(store, _plugins.selectorIsLinkHighlighted, link);
|
|
37
|
+
const isFaded = (0, _internals.useSelector)(store, _useSankeyHighlight.selectorIsSankeyItemFaded, isHighlighted);
|
|
38
38
|
|
|
39
39
|
// Add interaction props for tooltips
|
|
40
40
|
const interactionProps = (0, _internals.useInteractionItemProps)(identifier);
|
|
@@ -46,8 +46,8 @@ const SankeyNodeElement = exports.SankeyNodeElement = /*#__PURE__*/React.forward
|
|
|
46
46
|
nodeId: node.id,
|
|
47
47
|
node
|
|
48
48
|
};
|
|
49
|
-
const isHighlighted = (0, _internals.useSelector)(store, _plugins.selectorIsNodeHighlighted,
|
|
50
|
-
const isFaded = (0, _internals.useSelector)(store, _useSankeyHighlight.selectorIsSankeyItemFaded,
|
|
49
|
+
const isHighlighted = (0, _internals.useSelector)(store, _plugins.selectorIsNodeHighlighted, node.id);
|
|
50
|
+
const isFaded = (0, _internals.useSelector)(store, _useSankeyHighlight.selectorIsSankeyItemFaded, isHighlighted);
|
|
51
51
|
|
|
52
52
|
// Add interaction props for tooltips
|
|
53
53
|
const interactionProps = (0, _internals.useInteractionItemProps)(identifier);
|
|
@@ -22,7 +22,7 @@ export interface SankeyPlotProps {
|
|
|
22
22
|
/**
|
|
23
23
|
* Renders a Sankey diagram plot.
|
|
24
24
|
*/
|
|
25
|
-
declare function SankeyPlot(props: SankeyPlotProps):
|
|
25
|
+
declare function SankeyPlot(props: SankeyPlotProps): import("react/jsx-runtime").JSX.Element | null;
|
|
26
26
|
declare namespace SankeyPlot {
|
|
27
27
|
var propTypes: any;
|
|
28
28
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { SankeyTooltipProps } from "./SankeyTooltip.types.js";
|
|
3
|
-
declare function SankeyTooltip(props: SankeyTooltipProps):
|
|
2
|
+
declare function SankeyTooltip(props: SankeyTooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
declare namespace SankeyTooltip {
|
|
5
4
|
var propTypes: any;
|
|
6
5
|
}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
'use client';
|
|
3
3
|
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
6
5
|
Object.defineProperty(exports, "__esModule", {
|
|
7
6
|
value: true
|
|
8
7
|
});
|
|
9
8
|
exports.SankeyTooltip = SankeyTooltip;
|
|
10
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
-
var React = _interopRequireWildcard(require("react"));
|
|
12
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
11
|
var _ChartsTooltip = require("@mui/x-charts/ChartsTooltip");
|
|
14
12
|
var _SankeyTooltipContent = require("./SankeyTooltipContent");
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { SankeyTooltipProps } from "./SankeyTooltip.types.js";
|
|
3
2
|
export interface SankeyTooltipContentProps extends Pick<SankeyTooltipProps, 'classes'> {}
|
|
4
|
-
export declare function SankeyTooltipContent(props: SankeyTooltipContentProps):
|
|
3
|
+
export declare function SankeyTooltipContent(props: SankeyTooltipContentProps): import("react/jsx-runtime").JSX.Element | null;
|
|
5
4
|
export declare namespace SankeyTooltipContent {
|
|
6
5
|
var propTypes: any;
|
|
7
6
|
}
|
|
@@ -2,12 +2,10 @@
|
|
|
2
2
|
'use client';
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
6
5
|
Object.defineProperty(exports, "__esModule", {
|
|
7
6
|
value: true
|
|
8
7
|
});
|
|
9
8
|
exports.SankeyTooltipContent = SankeyTooltipContent;
|
|
10
|
-
var React = _interopRequireWildcard(require("react"));
|
|
11
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
10
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
13
11
|
var _ChartsTooltip = require("@mui/x-charts/ChartsTooltip");
|
|
@@ -30,11 +30,11 @@ function calculateSankeyLayout(data, drawingArea, theme, series = {}) {
|
|
|
30
30
|
width: nodeWidth = 15,
|
|
31
31
|
padding: nodePadding = 10,
|
|
32
32
|
align: nodeAlign = 'justify',
|
|
33
|
-
sort: nodeSort
|
|
33
|
+
sort: nodeSort
|
|
34
34
|
} = nodeOptions ?? {};
|
|
35
35
|
const {
|
|
36
36
|
color: linkColor = 'source',
|
|
37
|
-
sort: linkSort
|
|
37
|
+
sort: linkSort,
|
|
38
38
|
curveCorrection = 10
|
|
39
39
|
} = linkOptions ?? {};
|
|
40
40
|
const {
|
|
@@ -59,12 +59,21 @@ function calculateSankeyLayout(data, drawingArea, theme, series = {}) {
|
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
// Create the sankey layout generator
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
const sankeyGenerator = (0, _d3Sankey.sankey)().nodeWidth(nodeWidth).nodePadding(nodePadding).nodeAlign((0, _utils.getNodeAlignFunction)(nodeAlign)).extent([[left, top], [width + right, height + bottom]]).nodeId(d => d.id).iterations(iterations);
|
|
63
|
+
|
|
64
|
+
// For 'auto' or undefined, don't set anything (use d3-sankey default behavior)
|
|
65
|
+
if (typeof nodeSort === 'function') {
|
|
66
|
+
sankeyGenerator.nodeSort(nodeSort);
|
|
67
|
+
} else if (nodeSort === 'fixed') {
|
|
68
|
+
// Null is not accepted by the types.
|
|
69
|
+
// https://github.com/DefinitelyTyped/DefinitelyTyped/pull/73953
|
|
70
|
+
sankeyGenerator.nodeSort(null);
|
|
65
71
|
}
|
|
66
|
-
if (linkSort) {
|
|
67
|
-
sankeyGenerator
|
|
72
|
+
if (typeof linkSort === 'function') {
|
|
73
|
+
sankeyGenerator.linkSort(linkSort);
|
|
74
|
+
} else if (linkSort === 'fixed') {
|
|
75
|
+
// Null is not accepted by the types.
|
|
76
|
+
sankeyGenerator.linkSort(null);
|
|
68
77
|
}
|
|
69
78
|
|
|
70
79
|
// Generate the layout
|
|
@@ -26,18 +26,16 @@ const useSankeyHighlight = ({
|
|
|
26
26
|
defaultValue: null
|
|
27
27
|
});
|
|
28
28
|
(0, _useEnhancedEffect.default)(() => {
|
|
29
|
-
store.
|
|
30
|
-
highlight
|
|
29
|
+
if (store.state.highlight.item !== params.highlightedItem) {
|
|
30
|
+
store.set('highlight', (0, _extends2.default)({}, store.state.highlight, {
|
|
31
31
|
item: params.highlightedItem
|
|
32
|
-
})
|
|
33
|
-
}
|
|
32
|
+
}));
|
|
33
|
+
}
|
|
34
34
|
}, [store, params.highlightedItem]);
|
|
35
35
|
const clearHighlight = (0, _useEventCallback.default)(() => {
|
|
36
36
|
params.onHighlightChange?.(null);
|
|
37
|
-
store.
|
|
38
|
-
|
|
39
|
-
item: null
|
|
40
|
-
}
|
|
37
|
+
store.set('highlight', (0, _extends2.default)({}, store.state.highlight, {
|
|
38
|
+
item: null
|
|
41
39
|
}));
|
|
42
40
|
});
|
|
43
41
|
const setHighlight = (0, _useEventCallback.default)(newItem => {
|
|
@@ -46,10 +44,8 @@ const useSankeyHighlight = ({
|
|
|
46
44
|
return;
|
|
47
45
|
}
|
|
48
46
|
params.onHighlightChange?.(newItem);
|
|
49
|
-
store.
|
|
50
|
-
|
|
51
|
-
item: newItem
|
|
52
|
-
}
|
|
47
|
+
store.set('highlight', (0, _extends2.default)({}, store.state.highlight, {
|
|
48
|
+
item: newItem
|
|
53
49
|
}));
|
|
54
50
|
});
|
|
55
51
|
return {
|
|
@@ -1,63 +1,57 @@
|
|
|
1
|
-
import type { SankeyLayoutLink,
|
|
1
|
+
import type { SankeyLayoutLink, SankeyNodeId } from "../sankey.types.js";
|
|
2
2
|
import type { SankeyLinkFade, SankeyLinkHighlight, SankeyNodeFade, SankeyNodeHighlight } from "../sankey.highlight.types.js";
|
|
3
3
|
/**
|
|
4
4
|
* Get the node highlight configuration from the Sankey series.
|
|
5
5
|
* Defaults to 'nodes' if not specified.
|
|
6
6
|
*/
|
|
7
|
-
export declare const selectorNodeHighlightConfig:
|
|
7
|
+
export declare const selectorNodeHighlightConfig: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<{}> & {
|
|
8
8
|
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
9
|
-
}
|
|
10
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
11
|
-
}, SankeyNodeHighlight, any[]>;
|
|
9
|
+
}) => SankeyNodeHighlight;
|
|
12
10
|
/**
|
|
13
11
|
* Get the node fade configuration from the Sankey series.
|
|
14
12
|
* Defaults to 'none' if not specified.
|
|
15
13
|
*/
|
|
16
|
-
export declare const selectorNodeFadeConfig:
|
|
17
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
18
|
-
} & {
|
|
14
|
+
export declare const selectorNodeFadeConfig: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<{}> & {
|
|
19
15
|
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
20
|
-
}
|
|
16
|
+
}) => SankeyNodeFade;
|
|
21
17
|
/**
|
|
22
18
|
* Get the link highlight configuration from the Sankey series.
|
|
23
19
|
* Defaults to 'links' if not specified.
|
|
24
20
|
*/
|
|
25
|
-
export declare const selectorLinkHighlightConfig:
|
|
21
|
+
export declare const selectorLinkHighlightConfig: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<{}> & {
|
|
26
22
|
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
27
|
-
}
|
|
28
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
29
|
-
}, SankeyLinkHighlight, any[]>;
|
|
23
|
+
}) => SankeyLinkHighlight;
|
|
30
24
|
/**
|
|
31
25
|
* Get the link fade configuration from the Sankey series.
|
|
32
26
|
* Defaults to 'none' if not specified.
|
|
33
27
|
*/
|
|
34
|
-
export declare const selectorLinkFadeConfig:
|
|
35
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
36
|
-
} & {
|
|
28
|
+
export declare const selectorLinkFadeConfig: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<{}> & {
|
|
37
29
|
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
38
|
-
}
|
|
30
|
+
}) => SankeyLinkFade;
|
|
39
31
|
/**
|
|
40
32
|
* Get the currently highlighted item in the Sankey chart.
|
|
41
33
|
* @param {UseSankeyHighlightSignature['state']} state The state of the chart.
|
|
42
34
|
* @returns {SankeyItemIdentifier | null} The highlighted item identifier or null.
|
|
43
35
|
*/
|
|
44
|
-
export declare const selectorSankeyHighlightedItem:
|
|
45
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
46
|
-
}, import("../index.js").SankeyItemIdentifier | null, []>;
|
|
36
|
+
export declare const selectorSankeyHighlightedItem: (args_0: import("./useSankeyHighlight.types.js").UseSankeyHighlightState) => import("../index.js").SankeyItemIdentifier | null;
|
|
47
37
|
/**
|
|
48
38
|
* Determines if a specific node should be highlighted.
|
|
49
39
|
* A node is highlighted if:
|
|
50
40
|
* - It's the highlighted node (unless highlight mode is 'none')
|
|
51
41
|
* - It's connected to a highlighted link (based on linkOptions.highlight)
|
|
52
42
|
*/
|
|
53
|
-
export declare const selectorIsNodeHighlighted: import("
|
|
43
|
+
export declare const selectorIsNodeHighlighted: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<{}> & {
|
|
44
|
+
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
45
|
+
}, nodeId: SankeyNodeId) => boolean;
|
|
54
46
|
/**
|
|
55
47
|
* Selector that determines if a specific link should be highlighted.
|
|
56
48
|
* A link is highlighted if:
|
|
57
49
|
* - It's the highlighted link (unless highlight mode is 'none')
|
|
58
50
|
* - It's connected to a highlighted node (based on nodeOptions.highlight)
|
|
59
51
|
*/
|
|
60
|
-
export declare const selectorIsLinkHighlighted: import("
|
|
52
|
+
export declare const selectorIsLinkHighlighted: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<{}> & {
|
|
53
|
+
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
54
|
+
}, link: SankeyLayoutLink) => boolean;
|
|
61
55
|
/**
|
|
62
56
|
* Selector that determines if an item should be faded.
|
|
63
57
|
* An item is faded if:
|
|
@@ -65,4 +59,6 @@ export declare const selectorIsLinkHighlighted: import("reselect").Selector<any,
|
|
|
65
59
|
* - This item is not highlighted
|
|
66
60
|
* - The fade mode is 'global' for the highlighted element type
|
|
67
61
|
*/
|
|
68
|
-
export declare const selectorIsSankeyItemFaded: import("
|
|
62
|
+
export declare const selectorIsSankeyItemFaded: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<{}> & {
|
|
63
|
+
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
64
|
+
}, isHighlighted: boolean) => boolean;
|
|
@@ -49,7 +49,7 @@ const selectorSankeyHighlightedItem = exports.selectorSankeyHighlightedItem = (0
|
|
|
49
49
|
* - It's the highlighted node (unless highlight mode is 'none')
|
|
50
50
|
* - It's connected to a highlighted link (based on linkOptions.highlight)
|
|
51
51
|
*/
|
|
52
|
-
const selectorIsNodeHighlighted = exports.selectorIsNodeHighlighted = (0, _internals.createSelector)([selectorSankeyHighlightedItem, selectorNodeHighlightConfig, selectorLinkHighlightConfig
|
|
52
|
+
const selectorIsNodeHighlighted = exports.selectorIsNodeHighlighted = (0, _internals.createSelector)([selectorSankeyHighlightedItem, selectorNodeHighlightConfig, selectorLinkHighlightConfig], (highlightedItem, nodeHighlight, linkHighlight, nodeId) => {
|
|
53
53
|
if (!highlightedItem) {
|
|
54
54
|
return false;
|
|
55
55
|
}
|
|
@@ -84,7 +84,7 @@ const selectorIsNodeHighlighted = exports.selectorIsNodeHighlighted = (0, _inter
|
|
|
84
84
|
* - It's the highlighted link (unless highlight mode is 'none')
|
|
85
85
|
* - It's connected to a highlighted node (based on nodeOptions.highlight)
|
|
86
86
|
*/
|
|
87
|
-
const selectorIsLinkHighlighted = exports.selectorIsLinkHighlighted = (0, _internals.createSelector)([selectorSankeyHighlightedItem, selectorNodeHighlightConfig, selectorLinkHighlightConfig
|
|
87
|
+
const selectorIsLinkHighlighted = exports.selectorIsLinkHighlighted = (0, _internals.createSelector)([selectorSankeyHighlightedItem, selectorNodeHighlightConfig, selectorLinkHighlightConfig], (highlightedItem, nodeHighlight, linkHighlight, link) => {
|
|
88
88
|
if (!highlightedItem) {
|
|
89
89
|
return false;
|
|
90
90
|
}
|
|
@@ -117,7 +117,7 @@ const selectorIsLinkHighlighted = exports.selectorIsLinkHighlighted = (0, _inter
|
|
|
117
117
|
* - This item is not highlighted
|
|
118
118
|
* - The fade mode is 'global' for the highlighted element type
|
|
119
119
|
*/
|
|
120
|
-
const selectorIsSankeyItemFaded = exports.selectorIsSankeyItemFaded = (0, _internals.createSelector)([selectorSankeyHighlightedItem, selectorNodeFadeConfig, selectorLinkFadeConfig
|
|
120
|
+
const selectorIsSankeyItemFaded = exports.selectorIsSankeyItemFaded = (0, _internals.createSelector)([selectorSankeyHighlightedItem, selectorNodeFadeConfig, selectorLinkFadeConfig], (highlightedItem, nodeFade, linkFade, isHighlighted) => {
|
|
121
121
|
if (!highlightedItem || isHighlighted) {
|
|
122
122
|
return false;
|
|
123
123
|
}
|