From 54721f2100c547d7bd351f9b8ae36f43a3392799 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sun, 19 Nov 2023 17:08:10 +0400 Subject: [PATCH] chore: clean up --- modules/ui/options.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/ui/options.js b/modules/ui/options.js index e39253c6..0bac147b 100644 --- a/modules/ui/options.js +++ b/modules/ui/options.js @@ -180,7 +180,6 @@ function mapSizeInputChange() { // on map creation function applyGraphSize() { - console.log("applyGraphSize"); graphWidth = +mapWidthInput.value; graphHeight = +mapHeightInput.value; @@ -194,7 +193,6 @@ function applyGraphSize() { // on generate, on load, on resize, on canvas size change function fitMapToScreen() { - console.log("fitMapToScreen"); svgWidth = Math.min(+mapWidthInput.value, window.innerWidth); svgHeight = Math.min(+mapHeightInput.value, window.innerHeight); svg.attr("width", svgWidth).attr("height", svgHeight); @@ -204,7 +202,7 @@ function fitMapToScreen() { [graphWidth, graphHeight] ]; - const zoomMin = rn(Math.max(svgWidth / graphWidth, svgHeight / graphHeight), 2); + const zoomMin = rn(Math.max(svgWidth / graphWidth, svgHeight / graphHeight), 3); zoomExtentMin.value = zoomMin; const zoomMax = +zoomExtentMax.value;