mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
SVG Import: inline variable value.
This commit is contained in:
parent
808073fa63
commit
d45a4ce8ad
1 changed files with 2 additions and 3 deletions
|
@ -405,11 +405,10 @@ new function() {
|
|||
case 'fill-opacity':
|
||||
// http://www.w3.org/TR/SVG/painting.html#StrokeOpacityProperty
|
||||
case 'stroke-opacity':
|
||||
var opacity = Base.toFloat(value),
|
||||
color = item[name == 'fill-opacity'
|
||||
var color = item[name == 'fill-opacity'
|
||||
? 'getFillColor' : 'getStrokeColor']();
|
||||
if (color)
|
||||
color.setAlpha(opacity);
|
||||
color.setAlpha(Base.toFloat(value));
|
||||
break;
|
||||
case 'visibility':
|
||||
item.setVisible(value === 'visible');
|
||||
|
|
Loading…
Reference in a new issue