File tree Expand file tree Collapse file tree
packages/x-charts-pro/src/internals/plugins/useChartProZoom Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { createSelector } from '@mui/x-internals/store' ;
2- import { selectorChartZoomOptionsLookup } from '@mui/x-charts/internals' ;
32import { selectorChartZoomState } from './useChartProZoom.selectors' ;
43import type { ZoomInteractionName , PanInteractionName } from './ZoomInteractionConfig.types' ;
54
@@ -14,10 +13,3 @@ export const selectorPanInteractionConfig = createSelector(
1413 ( zoomState , interactionName : PanInteractionName ) =>
1514 zoomState . zoomInteractionConfig . pan [ interactionName ] ?? null ,
1615) ;
17-
18- export const selectorIsZoomBrushEnabled = createSelector (
19- selectorChartZoomOptionsLookup ,
20- ( state ) => selectorZoomInteractionConfig ( state , 'brush' ) ,
21- ( zoomOptions , zoomInteractionConfig ) =>
22- ( Object . keys ( zoomOptions ) . length > 0 && zoomInteractionConfig ) || false ,
23- ) ;
You can’t perform that action at this time.
0 commit comments