From 0e79b5d09da5feb97e8a6eed930dd1b64966db06 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 24 Oct 2023 21:47:46 +0200 Subject: [PATCH] Use cached diagram more often --- mibpov.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/mibpov.js b/mibpov.js index d4342d0..730c4ee 100644 --- a/mibpov.js +++ b/mibpov.js @@ -1033,7 +1033,7 @@ function selectPoint(point) { return [true, true]; } elem.selected = "selected"; - draw(true); + draw(false); updateWidgetStates(); return [true, false]; } @@ -1394,32 +1394,32 @@ inputBiomeName.oninput = function() { /* Diagram view settings events */ inputViewY.oninput = function() { - draw(true); + draw(false); updateAltitudeText(); } inputCheckboxNames.onchange = function() { showNames = this.checked; - draw(true); + draw(false); } inputCheckboxPoints.onchange = function() { showPoints = this.checked; - draw(true); + draw(false); } inputCheckboxCellColors.onchange = function() { showCellColors = this.checked; - draw(true); + draw(false); } inputCheckboxGrid.onchange = function() { showGrid = this.checked; - draw(true); + draw(false); +} +inputCheckboxAxes.onchange = function() { + showAxes = this.checked; + draw(false); } /* Noise parameters events */ -inputCheckboxAxes.onchange = function() { - showAxes = this.checked; - draw(true); -} inputNoiseHeatScale.oninput = function() { noises.heat.scale = +this.value; clear();