Skip to content

Commit

Permalink
Handle fill-opacity similarly to opacity attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfkthame committed Oct 27, 2022
1 parent b92ea96 commit aa03387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layerize.js
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ function processFile(fileName, data) {
fill = expandColor(fill) || defaultFill;
stroke = expandColor(stroke) || defaultStroke;

var opacity = (e['$']['opacity'] || 1.0) * defaultOpacity;
var opacity = (e['$']['opacity'] || e['$']['fill-opacity'] || 1.0) * defaultOpacity;

if (e['#name'] === 'g') {
if (e['$$'] !== undefined) {
Expand Down

0 comments on commit aa03387

Please sign in to comment.