diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-05-10 17:43:25 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-05-10 17:43:25 +0200 |
commit | d8b4d3a57a161a7e96b46b1f4915e990c03a6614 (patch) | |
tree | cba013963bd8d5adee003bcfb4b9cb704945620e /tools | |
parent | 724fa1067c481560259149b47e1880c7decaf61a (diff) | |
download | maria-d8b4d3a57a161a7e96b46b1f4915e990c03a6614.tar.gz |
x
Diffstat (limited to 'tools')
-rw-r--r-- | tools/layout.svg | 22 | ||||
-rw-r--r-- | tools/parse-layout.js | 8 |
2 files changed, 15 insertions, 15 deletions
diff --git a/tools/layout.svg b/tools/layout.svg index abc84cc..7fe274c 100644 --- a/tools/layout.svg +++ b/tools/layout.svg @@ -40,7 +40,7 @@ inkscape:window-height="480" id="namedview6" showgrid="false" - inkscape:zoom="0.5" + inkscape:zoom="0.42996109" inkscape:cx="1321.8811" inkscape:cy="745.19143" inkscape:current-layer="svg4" @@ -53,14 +53,14 @@ <image sodipodi:absref="/home/tor/src/rally/public/maria/Maria.Gameboard.150.png" xlink:href="../Maria.Gameboard.150.png" - id="image2" - sodipodi:insensitive="true" - image-rendering="pixelated" - height="1654" - width="2485" - y="0" + style="display:none" x="0" - style="display:none" /> + y="0" + width="2485" + height="1654" + image-rendering="pixelated" + sodipodi:insensitive="true" + id="image2" /> <g id="g3013" inkscape:label="box"> @@ -4059,7 +4059,7 @@ </g> <g id="g3273" - inkscape:label="main_road" + inkscape:label="major_road" sodipodi:insensitive="true" style="stroke:#b3b3b3"> <path @@ -15129,8 +15129,8 @@ <g id="g4011" inkscape:label="$HRE_W" - sodipodi:insensitive="true" - style="display:none"> + style="display:none" + sodipodi:insensitive="true"> <rect style="fill:#ffff00;fill-opacity:0.54878" id="rect3976" diff --git a/tools/parse-layout.js b/tools/parse-layout.js index 468f83c..f2443fd 100644 --- a/tools/parse-layout.js +++ b/tools/parse-layout.js @@ -50,14 +50,14 @@ function parse_path_data(path) { for (let i = 0; i < path.length;) { switch (path[i]) { case 'M': - x = cx = Number(path[i+1]) - y = cy = Number(path[i+2]) + x2 = x = cx = Number(path[i+1]) + y2 = y = cy = Number(path[i+2]) i += 3 abs = true break case 'm': - x = cx = cx + Number(path[i+1]) - y = cy = cy + Number(path[i+2]) + x2 = x = cx = cx + Number(path[i+1]) + y2 = y = cy = cy + Number(path[i+2]) i += 3 abs = false break |