From f99d7b48ff525b745c20c19eb3e8bf2b4fd1c8c8 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Wed, 11 Mar 2020 18:44:03 -0400 Subject: [PATCH] Make units other than meters product even grid lines (for small numbers) Still need to make the divisions more reasonable for larger/smaller values --- macrovision.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macrovision.js b/macrovision.js index 745ea5c5..88816901 100644 --- a/macrovision.js +++ b/macrovision.js @@ -206,7 +206,7 @@ function drawScale() { let pixelsPer = (ctx.canvas.clientHeight - 100) / config.height.value; let heightPer = config.height.clone(); - heightPer.value = 1; + heightPer = math.divide(heightPer, heightPer.toNumber()) if (pixelsPer < config.minLineSize) { heightPer.value /= pixelsPer / config.minLineSize;