summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-10-16 22:37:33 +0200
committerTor Andersson <tor@ccxvii.net>2024-10-16 22:49:23 +0200
commit2c02556ce1d58e7ed89b42da5cc579809347d251 (patch)
tree68f4819aa0d5703d118da0c589ca6f95748fa804 /tools
parent0c8cc28fc48a192d476c5b394256468735861289 (diff)
downloadmaria-2c02556ce1d58e7ed89b42da5cc579809347d251.tar.gz
layout box
Diffstat (limited to 'tools')
-rw-r--r--tools/layout.svg19
-rw-r--r--tools/parse-layout.js11
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)
+ }
}
}