UNPKG

@mui/x-charts

Version:

The community edition of MUI X Charts components.

21 lines (20 loc) 553 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, reverse } = v; const defaultizedZoom = (0, _defaultizeZoom.defaultizeZoom)(zoom, axisId, axisDirection, reverse); if (defaultizedZoom) { acc[axisId] = defaultizedZoom; } return acc; }, {}); exports.createZoomLookup = createZoomLookup;