import { MIN_ZOOM, MAX_ZOOM } from './consts';
const roundZoom = (value) => parseFloat(value.toFixed(4));
export const updateZoom = (zoom, factor) => {
    return Math.min(Math.max(MIN_ZOOM, roundZoom(zoom * factor)), MAX_ZOOM);
};
