|
@@ -219,9 +219,9 @@ const zoomValueToFitBoundsOnViewport = (
|
219
|
219
|
const zoomValueForHeight = viewportDimensions.height / commonBoundsHeight;
|
220
|
220
|
const smallestZoomValue = Math.min(zoomValueForWidth, zoomValueForHeight);
|
221
|
221
|
const zoomAdjustedToSteps =
|
222
|
|
- Math.floor(smallestZoomValue / ZOOM_STEP) * ZOOM_STEP;
|
|
222
|
+ Math.floor(smallestZoomValue / _ZOOM_STEP) * _ZOOM_STEP;
|
223
|
223
|
const clampedZoomValueToFitElements = Math.min(
|
224
|
|
- Math.max(zoomAdjustedToSteps, ZOOM_STEP),
|
|
224
|
+ Math.max(zoomAdjustedToSteps, _ZOOM_STEP),
|
225
|
225
|
// 1,
|
226
|
226
|
);
|
227
|
227
|
return clampedZoomValueToFitElements as NormalizedZoomValue;
|