Skip to content

Commit

Permalink
Consider stroke opacity
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Schneider committed Jun 12, 2010
1 parent 48107a7 commit b21baee
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/renderer/svg.js
Expand Up @@ -330,12 +330,14 @@
}else{
attrs.fill = color2string(fill);
var alpha = fill.alpha;
attrs.opacity = alpha == undefined ? 1 : alpha;
if(undefined != alpha){ attrs.fill_opacity = alpha; }
}
}else{ attrs.fill = "none"; }
if(line){
attrs.stroke = color2string(line.color);
attrs.stroke_width = Math.max(line.width, 1);
var color = line.color,
alpha = color.alpha;
attrs.stroke = color2string(color);
if(undefined != alpha){ attrs.stroke_opacity = alpha; }
}
t._setAttributes(node, attrs);
}
Expand Down

0 comments on commit b21baee

Please sign in to comment.