From 5c3bd9b3802e2001a7e77baf2911386135a03839 Mon Sep 17 00:00:00 2001 From: notoraptor Date: Wed, 14 Aug 2019 12:22:22 -0400 Subject: [Web] Integrated new maps on the web interface - Fixed bug with incorrect dislodged unit on pure map - [python] Make sure dummy powers are registered only for standard maps. - Hardcoded supply centers into SVG files. - Removed supply centers CSS classes. - Update positions for units and dislodged units on all maps. - Converted SVGs to React. - Removed "sym" classes and hardcode related styles into symbol definitions. - Reordered map list (standard at top, then other ones in alphabetical order) - Displayed + button for all maps and disable it for maps without variants. - Minified generated code when converting SVG files to React. - [web] Added ability to hide/display map abbreviations. --- diplomacy/maps/svg/standard.svg | 599 +++++++++++++++++++--------------------- 1 file changed, 283 insertions(+), 316 deletions(-) (limited to 'diplomacy/maps/svg/standard.svg') diff --git a/diplomacy/maps/svg/standard.svg b/diplomacy/maps/svg/standard.svg index b6450df..5eada69 100644 --- a/diplomacy/maps/svg/standard.svg +++ b/diplomacy/maps/svg/standard.svg @@ -1,10 +1,10 @@ - - - - + + + + @@ -35,403 +35,361 @@ - - - - - - - - - - + + + + + - - + + - - + + - - + + - - - + + - - + + - - + + - - + + - - + + - - - + + - - - + + - - + + - - + + - - + + - - - + + - - - + + - - - + + + + + + + + + + - - + + - - - + + - - - + + - - - + + - - + + - - - + + - - + + - - + + - - + + - - + + - - + + - - - + + - - + + - - - + + - - + + - - + + - - - + + - - - + + - - + + - - - + + - - - - - - - + + - - + + + + + + - - + + - - - + + - - - + + - - + + - - + + - - - + + - - + + - - + + - - + + - - + + - - - + + - - - + + - - + + - - + + - - - + + - - + + - - - + + - - + + - - - + + - - - + + - - - + + - - + + - - + + - - - + + - - - + + + + + + + + + + - - - + + + + + + + + + + - - - + + - - + + - - + + - - - + + - - - + + - - + + - - + + - - + + - - + + - - + + - - - + + - - - + + - - - + + - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -440,36 +398,17 @@ /* text */ svg { font-size: 100% } - .titletext {text-anchor:middle; stroke-width:0.3; font-family:sans-serif; font-size:0.7em; stroke:black; fill:black;} - .provtext {text-anchor:middle; stroke-width:0.3; font-family:sans-serif; font-size:0.7em; stroke:black; fill:black;} - .labeltext {stroke-width:0.1; stroke:black; fill:black;} - .unordered {fill:red; stroke:black; stroke-width:1; fill-opacity:0.90;} .labeltext24 {text-anchor:middle; stroke-width:0.1; stroke:black; fill:black; font-family:serif,sans-serif; font-style:italic; font-size:1.4em;} .labeltext18 {text-anchor:middle; stroke-width:0.1; stroke:black; fill:black; font-family:serif,sans-serif; font-style:italic; font-size:1.1em;} - .fulllabeltext {font-family:serif,sans-serif; font-style:italic; font-size:1.2em; fill:black; stroke:black;} .currentnotetext {font-family:serif,sans-serif; font-size:1.5em; fill:black; stroke:black;} .currentnoterect {fill:#c5dfea;} .currentphasetext {font-family:serif,sans-serif; font-size:2.5em; fill:black; stroke:black;} .labeltext24 text {cursor:default;} - /* NB: this style is not yet used. */ - .labeltext24 text.allowed { - font-weight:bold; - fill:blue; - font-size: 1.5em; - stroke: red; - stroke-width:2; - text-decoration: underline; - background-color: green; - } - /* map and object features */ - .seapoly {stroke:#000000; stroke-width:1; fill:#B5DEF8} - .dashline {stroke:darkslateblue; stroke-width:3; stroke-linecap:round; stroke-dasharray:5,6;} .impassable {fill:#353433; stroke:#000000; stroke-width:1} - .sealine {stroke:#B5DEFF; stroke-width:3;} /* invisible click rects fill:none does not work */ @@ -500,54 +439,25 @@ .unitaustria {fill:red; fill-opacity:0.85} .unitengland {fill:mediumpurple; fill-opacity:0.85} - .unitfrance {fill:deepskyblue; fill-opacity:0.85} + .unitfrance {fill:deepskyblue; fill-opacity:0.85} .unitgermany {fill:dimgray; fill-opacity:0.85} - .unititaly {fill:olive; fill-opacity:0.85} - .unitrussia {fill:white; fill-opacity:1.0} - .unitturkey {fill:yellow; fill-opacity:0.85} - - /* supply center styles */ - - .scnopower {fill:black; stroke:black;} - .scaustria {fill:black; stroke:black;} - .scengland {fill:black; stroke:black;} - .scfrance {fill:black; stroke:black;} - .scgermany {fill:black; stroke:black;} - .scitaly {fill:black; stroke:black;} - .scrussia {fill:black; stroke:black;} - .scturkey {fill:black; stroke:black;} + .unititaly {fill:olive; fill-opacity:0.85} + .unitrussia {fill:white; fill-opacity:1.0} + .unitturkey {fill:yellow; fill-opacity:0.85} /* order drawing styles, stroke and fill colors should not be specified */ - .defaultorder {stroke-width:6; fill:none;} .supportorder {stroke-width:6; fill:none; stroke-dasharray:5,5;} - .convoyorder {stroke-dasharray:15,5; stroke-width:6; fill:none;} - - .shadoworder {stroke-width:10; fill:none; stroke:black;} - .shadowdash {stroke-width:10; fill:none; stroke:black; opacity:0.45;} - - .varwidthorder {fill:none;} + .convoyorder {stroke-dasharray:15,5; stroke-width:6; fill:none;} + .shadowdash {stroke-width:10; fill:none; stroke:black; opacity:0.45;} + .varwidthorder {fill:none;} .varwidthshadow {fill:none; stroke:black;} - /* Symbol private styles. Always start with "sym" to avoid name collisions! */ - - .symBuildShadow {fill:none;stroke:black;opacity:0.5;stroke-width:7;} - .symBuild {stroke:yellow;stroke-width:7;fill:none;} - .symRemove {stroke:red;stroke-width:1;fill:none;} - - .symShadow {stroke:black;fill:black;stroke-width:1;opacity:0.40;} - .symDislodgedShadow {stroke:red;fill:red;stroke-width:1;opacity:0.50;} - .symDislodgedBorder {stroke:red;stroke-width:3%;} - - .symDarkener {fill:black;opacity:0.45;fill-opacity:0.45;} - .symCenterHub {fill:black; stroke:black; opacity:0.60; stroke-width:0.5px;} - .symBorder {stroke:black;stroke-width:3%;} - .symThinBorder {stroke:black;stroke-width:0.4;} - .symSilhouette {stroke:black;fill:black;stroke-width:1;} - ]]> + + @@ -563,15 +473,15 @@ - + - + - + @@ -580,14 +490,15 @@ - - + + + @@ -595,19 +506,40 @@ - + - + + + + + + + + + + + + + + + + + + + + + + - - - + + + @@ -621,9 +553,9 @@ - - - + + + @@ -638,9 +570,9 @@ - - - + + + @@ -654,9 +586,9 @@ - - - + + + @@ -779,7 +711,42 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3