From e4e4cdfb07c9ef1fec73e0c93152b2e68b0e4220 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Mon, 6 Aug 2018 00:03:48 +0300 Subject: [PATCH] v. 0.58.08b --- index.css | 2 +- script.js | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/index.css b/index.css index a83b9dc0..62c496ca 100644 --- a/index.css +++ b/index.css @@ -47,7 +47,7 @@ button, select, a { } #cults { - stroke-width: 0.7; + stroke-width: 2; mask: url(#shape); mask-mode: alpha; pointer-events: none; diff --git a/script.js b/script.js index ab5f68c6..7941b10a 100644 --- a/script.js +++ b/script.js @@ -4183,7 +4183,7 @@ function fantasyMap() { path += lineGen(edgesOrdered); } var color = states[region].color; - regions.append("path").attr("d", round(path, 1)).attr("fill", "none").attr("stroke", color).attr("stroke-width", 1.5).attr("class", "region"+region); + regions.append("path").attr("d", round(path, 1)).attr("fill", "none").attr("stroke", color).attr("stroke-width", 3).attr("class", "region"+region); } function drawBorders(edges, type) { @@ -7161,6 +7161,7 @@ function fantasyMap() { function undraw() { viewbox.selectAll("path, circle, line, text, use, #ruler > g").remove(); svg.select("#shape").remove(); + landmass.select("rect").remove(); cells = [], land = [], riversData = [], manors = [], states = [], features = [], queue = []; } @@ -8507,9 +8508,9 @@ function fantasyMap() { viewbox.on("touchmove mousemove", moved); landmass.attr("opacity", 1).attr("fill", "#eef6fb"); coastline.attr("opacity", .5).attr("stroke", "#1f3846").attr("stroke-width", .7).attr("filter", "url(#dropShadow)"); - regions.attr("opacity", .6).attr("filter", "url(#splotch)"); - stateBorders.attr("opacity", .8).attr("stroke", "#56566d").attr("stroke-width", .5).attr("stroke-dasharray", "1.2 1.5").attr("stroke-linecap", "butt"); - neutralBorders.attr("opacity", .8).attr("stroke", "#56566d").attr("stroke-width", .3).attr("stroke-dasharray", "1 1.5").attr("stroke-linecap", "butt"); + regions.attr("opacity", .4); + stateBorders.attr("opacity", .8).attr("stroke", "#56566d").attr("stroke-width", .7).attr("stroke-dasharray", "1.2 1.5").attr("stroke-linecap", "butt"); + neutralBorders.attr("opacity", .8).attr("stroke", "#56566d").attr("stroke-width", .5).attr("stroke-dasharray", "1 1.5").attr("stroke-linecap", "butt"); cults.attr("opacity", .6); rivers.attr("opacity", 1).attr("fill", "#5d97bb"); lakes.attr("opacity", .5).attr("fill", "#a6c1fd").attr("stroke", "#5f799d").attr("stroke-width", .7);