mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-22 07:19:57 -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.
|
// even when they share the same gradient defintion.
|
||||||
// http://www.svgopen.org/2011/papers/20-Separating_gradients_from_geometry/
|
// http://www.svgopen.org/2011/papers/20-Separating_gradients_from_geometry/
|
||||||
// TODO: Implement gradient merging in SvgImport
|
// TODO: Implement gradient merging in SvgImport
|
||||||
var gradient = color.gradient,
|
var gradientNode = getDefinition(color);
|
||||||
gradientNode = getDefinition(color);
|
|
||||||
if (!gradientNode) {
|
if (!gradientNode) {
|
||||||
var matrix = item._gradientMatrix,
|
var gradient = color.gradient,
|
||||||
|
matrix = item._gradientMatrix,
|
||||||
origin = color._origin.transform(matrix),
|
origin = color._origin.transform(matrix),
|
||||||
destination = color._destination.transform(matrix),
|
destination = color._destination.transform(matrix),
|
||||||
highlight = color._hilite && color._hilite.transform(matrix),
|
highlight = color._hilite && color._hilite.transform(matrix),
|
||||||
|
|
Loading…
Reference in a new issue