mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-12-09 14:04:29 +01:00
chore: Minor refactoring for consistency (#2425)
This commit is contained in:
@@ -20,7 +20,7 @@ export const getNewZoom = (
|
||||
};
|
||||
};
|
||||
|
||||
export const normalizeZoomValue = (zoom: number): NormalizedZoomValue => {
|
||||
export const getNormalizedZoom = (zoom: number): NormalizedZoomValue => {
|
||||
const normalizedZoom = parseFloat(zoom.toFixed(2));
|
||||
const clampedZoom = Math.max(0.1, Math.min(normalizedZoom, 2));
|
||||
return clampedZoom as NormalizedZoomValue;
|
||||
|
||||
Reference in New Issue
Block a user