Commit 75a5818a by Tomas Alabes

@bjouhier - set stop-opacity in gradient defs

parent 3c97d14c
......@@ -2124,6 +2124,7 @@
if (dot.color.error) {
return null;
}
dot.opacity = dot.color.opacity;
dot.color = dot.color.hex;
par[2] && (dot.offset = par[2] + "%");
dots.push(dot);
......
......@@ -121,7 +121,8 @@ window.Raphael && window.Raphael.svg && function(R) {
for (var i = 0, ii = dots.length; i < ii; i++) {
el.appendChild($("stop", {
offset: dots[i].offset ? dots[i].offset : i ? "100%" : "0%",
"stop-color": dots[i].color || "#fff"
"stop-color": dots[i].color || "#fff",
"stop-opacity": isFinite(dots[i].opacity) ? dots[i].opacity : 1
}));
}
}
......
2.1.5 • WIP
------------------
* fixed rounding issue in RGB formatter
* Set stop-opacity in gradient defs
* Fixed rounding issue in RGB formatter
2.1.4 • 2015-03-09
------------------
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2503,6 +2503,7 @@
if (dot.color.error) {
return null;
}
dot.opacity = dot.color.opacity;
dot.color = dot.color.hex;
par[2] && (dot.offset = par[2] + "%");
dots.push(dot);
......@@ -5916,7 +5917,8 @@
for (var i = 0, ii = dots.length; i < ii; i++) {
el.appendChild($("stop", {
offset: dots[i].offset ? dots[i].offset : i ? "100%" : "0%",
"stop-color": dots[i].color || "#fff"
"stop-color": dots[i].color || "#fff",
"stop-opacity": isFinite(dots[i].opacity) ? dots[i].opacity : 1
}));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment