diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/layout.svg | 19 | ||||
-rw-r--r-- | tools/parse-layout.js | 11 |
2 files changed, 26 insertions, 4 deletions
diff --git a/tools/layout.svg b/tools/layout.svg index aa73244..eaebe43 100644 --- a/tools/layout.svg +++ b/tools/layout.svg @@ -97,6 +97,14 @@ x="192.34482" y="1554.1805" inkscape:label="#ItalyF" /> + <rect + style="fill:#ffffff;fill-opacity:0.54878" + id="rect2981" + width="46.448517" + height="47.972076" + x="211.69495" + y="211.56277" + inkscape:label="#SilesiaV" /> </g> <g id="g2467" @@ -14130,6 +14138,17 @@ id="tspan3000" x="2271.7117" y="1576.4519">Italy</tspan></text> + <text + xml:space="preserve" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:8px;line-height:1.25;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;font-feature-settings:normal;font-variation-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;shape-margin:0;inline-size:0;opacity:1;vector-effect:none;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;stop-color:#000000;stop-opacity:1" + x="933.59839" + y="123.14468" + id="text2992" + ><tspan + sodipodi:role="line" + x="237.59839" + y="239.14468" + id="tspan2994">Silesia Victory</tspan></text> </g> <g id="g2869" diff --git a/tools/parse-layout.js b/tools/parse-layout.js index 785bc8c..b36ac9e 100644 --- a/tools/parse-layout.js +++ b/tools/parse-layout.js @@ -450,10 +450,13 @@ let sets = { for (let i = 0; i < cities.length; ++i) { let city = cities[i] for (let key in city) { - if (arrays[key]) - arrays[key].push(city[key]) - if (sets[key]) - sets[key][city[key]].push(i) + let val = city[key] + if (val !== "UNKNOWN") { + if (arrays[key]) + arrays[key].push(city[key]) + if (sets[key]) + sets[key][city[key]].push(i) + } } } |