From d8b4d3a57a161a7e96b46b1f4915e990c03a6614 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 10 May 2024 17:43:25 +0200 Subject: x --- tools/parse-layout.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools/parse-layout.js') 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 -- cgit v1.2.3