From 455441ea7f3f0f5055e8560854d7a170b7862dca Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Fri, 27 Aug 2021 12:54:54 -0400 Subject: [PATCH] Add an option to adjust the density of scale lines --- macrovision.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/macrovision.js b/macrovision.js index e2d056ac..c772953f 100644 --- a/macrovision.js +++ b/macrovision.js @@ -2301,6 +2301,31 @@ const settingsData = { } } }, + "axis-spacing": { + name: "Axis Spacing", + desc: "How frequent the axis lines are", + type: "select", + default: "standard", + options: [ + "dense", + "standard", + "sparse" + ], + get value() { + return config.axisSpacing; + }, + set value(param) { + config.axisSpacing = param; + const factor = { + "dense": 0.5, + "standard": 1, + "sparse": 2 + }[param]; + config.minLineSize = factor * 100; + config.maxLineSize = factor * 150; + updateSizes(); + } + }, "solid-ground": { name: "Ground", desc: "Draw solid ground at the y=0 line",