mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Minor code clean up.
This commit is contained in:
parent
7df4338ef5
commit
66c491a8fd
1 changed files with 3 additions and 3 deletions
|
@ -387,10 +387,10 @@ new function() {
|
|||
// even when they share the same gradient defintion.
|
||||
// http://www.svgopen.org/2011/papers/20-Separating_gradients_from_geometry/
|
||||
// TODO: Implement gradient merging in SvgImport
|
||||
var gradient = color.gradient,
|
||||
gradientNode = getDefinition(color);
|
||||
var gradientNode = getDefinition(color);
|
||||
if (!gradientNode) {
|
||||
var matrix = item._gradientMatrix,
|
||||
var gradient = color.gradient,
|
||||
matrix = item._gradientMatrix,
|
||||
origin = color._origin.transform(matrix),
|
||||
destination = color._destination.transform(matrix),
|
||||
highlight = color._hilite && color._hilite.transform(matrix),
|
||||
|
|
Loading…
Reference in a new issue