From c0d622356bd44493a7d73cb4f060deceebcb1ca9 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Tue, 4 Sep 2018 23:48:21 +0300 Subject: [PATCH] v. 0.59.11b --- index.html | 11 ++++++++++- script.js | 6 ++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 57835823..739edef9 100644 --- a/index.html +++ b/index.html @@ -71,6 +71,13 @@ + + + + + + + @@ -299,8 +306,10 @@ + +
@@ -315,7 +324,7 @@
Label groups: - +
diff --git a/script.js b/script.js index 69afdadd..57e4fe04 100644 --- a/script.js +++ b/script.js @@ -8975,7 +8975,7 @@ function fantasyMap() { styleOceanPattern.checked = true; styleOceanLayers.checked = true; - labels.attr("opacity", 1); + labels.attr("opacity", 1).attr("stroke", "#3a3a3a").attr("stroke-width", 0); let size = rn(8 - regionsInput.value / 20); if (size < 3) size = 3; burgLabels.select("#capitals").attr("fill", "#3e3e4b").attr("opacity", 1).attr("font-family", "Almendra SC").attr("data-font", "Almendra+SC").attr("font-size", size).attr("data-size", size); @@ -9028,8 +9028,10 @@ function fantasyMap() { if (sel === "overlay") $("#styleOverlay").css("display", "block"); if (sel === "labels") { - $("#styleFill, #styleFontSize").css("display", "inline-block"); + $("#styleFill, #styleStroke, #styleStrokeWidth, #styleFontSize").css("display", "inline-block"); styleFillInput.value = styleFillOutput.value = el.select("g").attr("fill") || "#3e3e4b"; + styleStrokeInput.value = styleStrokeOutput.value = el.select("g").attr("stroke") || "#3a3a3a"; + styleStrokeWidthInput.value = styleStrokeWidthOutput.value = el.attr("stroke-width") || 0; $("#styleLabelGroups").css("display", "inline-block"); updateLabelGroups(); }