diff options
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 |