UNPKG

@mui/x-charts

Version:

The community edition of MUI X Charts components.

20 lines (19 loc) 531 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createZoomLookup = void 0; var _defaultizeZoom = require("./defaultizeZoom"); const createZoomLookup = axisDirection => (axes = []) => axes.reduce((acc, v) => { // @ts-ignore const { zoom, id: axisId } = v; const defaultizedZoom = (0, _defaultizeZoom.defaultizeZoom)(zoom, axisId, axisDirection); if (defaultizedZoom) { acc[axisId] = defaultizedZoom; } return acc; }, {}); exports.createZoomLookup = createZoomLookup;