diff --git a/packages/x-charts-pro/src/internals/plugins/useChartProZoom/useChartProZoom.ts b/packages/x-charts-pro/src/internals/plugins/useChartProZoom/useChartProZoom.ts index d9d63cd2fbdfd..a5880296ac6d8 100644 --- a/packages/x-charts-pro/src/internals/plugins/useChartProZoom/useChartProZoom.ts +++ b/packages/x-charts-pro/src/internals/plugins/useChartProZoom/useChartProZoom.ts @@ -8,7 +8,7 @@ import { getSVGPoint, selectorChartDrawingArea, ZoomData, - creatZoomLookup, + createZoomLookup, selectorChartZoomOptionsLookup, } from '@mui/x-charts/internals'; import { UseChartProZoomSignature } from './useChartProZoom.types'; @@ -379,8 +379,8 @@ useChartProZoom.getDefaultizedParams = ({ params }) => { useChartProZoom.getInitialState = (params) => { const optionsLookup = { - ...creatZoomLookup('x')(params.defaultizedXAxis), - ...creatZoomLookup('y')(params.defaultizedYAxis), + ...createZoomLookup('x')(params.defaultizedXAxis), + ...createZoomLookup('y')(params.defaultizedYAxis), }; return { zoom: { diff --git a/packages/x-charts/src/internals/plugins/featurePlugins/useChartCartesianAxis/creatZoomLookup.ts b/packages/x-charts/src/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.ts similarity index 95% rename from packages/x-charts/src/internals/plugins/featurePlugins/useChartCartesianAxis/creatZoomLookup.ts rename to packages/x-charts/src/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.ts index 9501c1e397ad1..4f51ee4bbedeb 100644 --- a/packages/x-charts/src/internals/plugins/featurePlugins/useChartCartesianAxis/creatZoomLookup.ts +++ b/packages/x-charts/src/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.ts @@ -3,7 +3,7 @@ import { AxisId } from '../../../../models/axis'; import { defaultizeZoom } from './defaultizeZoom'; import { DefaultizedZoomOptions } from './useChartCartesianAxis.types'; -export const creatZoomLookup = +export const createZoomLookup = (axisDirection: 'x' | 'y') => (axes: AxisConfig[] = []) => axes.reduce>((acc, v) => { diff --git a/packages/x-charts/src/internals/plugins/featurePlugins/useChartCartesianAxis/index.ts b/packages/x-charts/src/internals/plugins/featurePlugins/useChartCartesianAxis/index.ts index ddd9c10a11b63..86291b5d8c349 100644 --- a/packages/x-charts/src/internals/plugins/featurePlugins/useChartCartesianAxis/index.ts +++ b/packages/x-charts/src/internals/plugins/featurePlugins/useChartCartesianAxis/index.ts @@ -3,5 +3,5 @@ export type * from './useChartCartesianAxis.types'; export * from './useChartCartesianAxis.selectors'; export { defaultizeAxis } from './defaultizeAxis'; export * from './computeAxisValue'; -export * from './creatZoomLookup'; +export * from './createZoomLookup'; export * from './zoom.types'; diff --git a/packages/x-charts/src/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.selectors.ts b/packages/x-charts/src/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.selectors.ts index fa2564ffd9465..4aca399dfd3e5 100644 --- a/packages/x-charts/src/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.selectors.ts +++ b/packages/x-charts/src/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.selectors.ts @@ -10,7 +10,7 @@ import { UseChartCartesianAxisSignature } from './useChartCartesianAxis.types'; import { ChartState } from '../../models/chart'; import { createAxisFilterMapper, createGetAxisFilters } from './createAxisFilterMapper'; import { ZoomAxisFilters, ZoomData } from './zoom.types'; -import { creatZoomLookup } from './creatZoomLookup'; +import { createZoomLookup } from './createZoomLookup'; export const createZoomMap = (zoom: ZoomData[]) => { const zoomItemMap = new Map(); @@ -45,9 +45,15 @@ const selectorChartZoomMap = createSelector( (zoom) => zoom?.zoomData && createZoomMap(zoom?.zoomData), ); -const selectorChartXZoomOptionsLookup = createSelector(selectorChartRawXAxis, creatZoomLookup('x')); +const selectorChartXZoomOptionsLookup = createSelector( + selectorChartRawXAxis, + createZoomLookup('x'), +); -const selectorChartYZoomOptionsLookup = createSelector(selectorChartRawYAxis, creatZoomLookup('y')); +const selectorChartYZoomOptionsLookup = createSelector( + selectorChartRawYAxis, + createZoomLookup('y'), +); export const selectorChartZoomOptionsLookup = createSelector( [selectorChartXZoomOptionsLookup, selectorChartYZoomOptionsLookup],