From 19d5ecff32ae04bc5a4aaf1e7a55652c44670b6f Mon Sep 17 00:00:00 2001 From: axelssonHakan Date: Sun, 27 Oct 2013 15:05:45 +0100 Subject: [PATCH] Small changes Removed +0 and changed for setting uninitilized path --- justgage.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/justgage.js b/justgage.js index 1e1f05c..54230dd 100644 --- a/justgage.js +++ b/justgage.js @@ -473,11 +473,11 @@ Cy = h / 1.95 + dy; Xo = w / 2 + dx + Ro * Math.cos(alpha); - Yo = h - (h - Cy) + 0 - Ro * Math.sin(alpha); + Yo = h - (h - Cy) - Ro * Math.sin(alpha); Xi = w / 2 + dx + Ri * Math.cos(alpha); - Yi = h - (h - Cy) + 0 - Ri * Math.sin(alpha); + Yi = h - (h - Cy) - Ri * Math.sin(alpha); - path += "M" + (Cx - Ri) + "," + Cy + " "; + path = "M" + (Cx - Ri) + "," + Cy + " "; path += "L" + (Cx - Ro) + "," + Cy + " "; if (value > ((max - min) / 2)) { path += "A" + Ro + "," + Ro + " 0 0 1 " + (Cx + Ro) + "," + Cy + " "; @@ -501,11 +501,11 @@ Cy = h / 1.25 + dy; Xo = w / 2 + dx + Ro * Math.cos(alpha); - Yo = h - (h - Cy) + 0 - Ro * Math.sin(alpha); + Yo = h - (h - Cy) - Ro * Math.sin(alpha); Xi = w / 2 + dx + Ri * Math.cos(alpha); - Yi = h - (h - Cy) + 0 - Ri * Math.sin(alpha); + Yi = h - (h - Cy) - Ri * Math.sin(alpha); - path += "M" + (Cx - Ri) + "," + Cy + " "; + path = "M" + (Cx - Ri) + "," + Cy + " "; path += "L" + (Cx - Ro) + "," + Cy + " "; path += "A" + Ro + "," + Ro + " 0 0 1 " + Xo + "," + Yo + " "; path += "L" + Xi + "," + Yi + " ";