mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-04 03:45:58 -05:00
Check for gradient Colors correctly.
This commit is contained in:
parent
5550ecaf25
commit
9b50020721
1 changed files with 3 additions and 3 deletions
|
@ -313,10 +313,10 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{
|
|||
var style = this._style,
|
||||
fillColor = style._fillColor,
|
||||
strokeColor = style._strokeColor;
|
||||
// Try calling transform on colors in case they are GradientColors.
|
||||
if (fillColor && fillColor.transform)
|
||||
// Try calling transform on colors in case they are gradients.
|
||||
if (fillColor && fillColor._type === 'gradient')
|
||||
fillColor.transform(matrix);
|
||||
if (strokeColor && strokeColor.transform)
|
||||
if (strokeColor && strokeColor._type === 'gradient')
|
||||
strokeColor.transform(matrix);
|
||||
return true;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue