projects
/
g.raphael
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87989a0
)
g.circular.js
author
edward
<edward@roojs.com>
Fri, 22 Jun 2018 04:56:23 +0000
(12:56 +0800)
committer
edward
<edward@roojs.com>
Fri, 22 Jun 2018 04:56:23 +0000
(12:56 +0800)
g.circular.js
patch
|
blob
|
history
diff --git
a/g.circular.js
b/g.circular.js
index
7b99185
..
18f85f4
100644
(file)
--- a/
g.circular.js
+++ b/
g.circular.js
@@
-52,11
+52,8
@@
Roo = typeof(Roo) != 'undefined' ? Roo: (imports ? imports.seed.Roo.Roo: {});
x = cx + R * Math.cos(a),
y = cy - R * Math.sin(a),
path;
- if (total == value) {
- path = [["M", cx, cy - R], ["A", R, R, 0, 1, 1, cx - 1, cy - R]];
- } else {
- path = [["M", cx, cy - R], ["A", R, R, 0, +(alpha > 180), 1, x, y]];
- }
+
+ path = [["M", cx, cy - R], ["A", R, R, 0, +(alpha > 180), 1, x, y]];
return {path: path, stroke: color};
};