Show/hide text of "ruler" class

This commit is contained in:
Ángel Montero Lamas 2024-08-29 16:45:06 +02:00
parent c2c58c2894
commit bb35d5149c
7 changed files with 86 additions and 12 deletions

View file

@ -76,7 +76,10 @@ function prepareMapData() {
const rulerPreferences = JSON.stringify({
initialLength: localStorage.getItem("rulerInitialLength") || "100",
whiteColor: localStorage.getItem("rulerWhiteLineColor") || "#ffffff",
grayColor: localStorage.getItem("rulerGrayLineColor") || "#808080",
grayColor: localStorage.getItem("rulerGrayLineColor") || "#3d3d3d",
whiteWidth: parseFloat(localStorage.getItem("rulerWhiteLineWidth")) || 1,
grayWidth: parseFloat(localStorage.getItem("rulerGrayLineWidth")) || 1.2,
showText: localStorage.getItem("rulerShowText") || true
});
const rulersString = rulers.toString();
const fonts = JSON.stringify(getUsedFonts(svg.node()));