Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/axelssonHakan/justgage in…
Browse files Browse the repository at this point in the history
…to axelssonHakan-master
  • Loading branch information
toorshia committed Oct 29, 2013
2 parents 0432487 + 19d5ecf commit 554e9ca
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions justgage.js
Expand Up @@ -504,11 +504,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 @@ -532,11 +532,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 554e9ca

Please sign in to comment.