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/parse-layout.js | |
parent | 724fa1067c481560259149b47e1880c7decaf61a (diff) | |
download | maria-d8b4d3a57a161a7e96b46b1f4915e990c03a6614.tar.gz |
x
Diffstat (limited to 'tools/parse-layout.js')
-rw-r--r-- | tools/parse-layout.js | 8 |
1 files changed, 4 insertions, 4 deletions
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 |