projects
/
raphael
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b271f7a
)
fixed stroke-opacity when opacity and gradient are defined.
author
Dmitry Baranovskiy
<Dmitry@Baranovskiy.com>
Thu, 19 Aug 2010 01:47:31 +0000
(11:47 +1000)
committer
Dmitry Baranovskiy
<Dmitry@Baranovskiy.com>
Thu, 19 Aug 2010 01:47:31 +0000
(11:47 +1000)
raphael.js
patch
|
blob
|
history
diff --git
a/raphael.js
b/raphael.js
index
4a21c84
..
9d7a700
100644
(file)
--- a/
raphael.js
+++ b/
raphael.js
@@
-1420,6
+1420,10
@@
(({circle: 1, ellipse: 1})[has](o.type) || Str(value).charAt() != "r") && addGradientFill(node, value, o.paper);
break;
case "opacity":
+ if (attrs.gradient && !attrs[has]("stroke-opacity")) {
+ $(node, {"stroke-opacity": value > 1 ? value / 100 : value});
+ }
+ // fall
case "fill-opacity":
if (attrs.gradient) {
var gradient = doc.getElementById(node.getAttribute(fillString)[rp](/^url\(#|\)$/g, E));