mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-19 18:41:23 +01:00
Show/hide text of "ruler" class
This commit is contained in:
parent
c2c58c2894
commit
bb35d5149c
7 changed files with 86 additions and 12 deletions
|
|
@ -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()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue