Skip to content

Commit

Permalink
Small changes
Browse files Browse the repository at this point in the history
Removed +0 and changed for setting uninitilized path
  • Loading branch information
axelssonHakan committed Oct 27, 2013
1 parent 44ac815 commit 19d5ecf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions justgage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 + " ";
Expand All @@ -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 + " ";
Expand Down

0 comments on commit 19d5ecf

Please sign in to comment.