mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Finally remove the _gradientMatrix hack.
This commit is contained in:
parent
9956a6ff51
commit
922f224cbd
1 changed files with 3 additions and 5 deletions
|
@ -212,9 +212,8 @@ new function() {
|
|||
if (!gradientNode) {
|
||||
var gradient = color.getGradient(),
|
||||
radial = gradient._radial,
|
||||
matrix = item._gradientMatrix,
|
||||
origin = color.getOrigin().transform(matrix),
|
||||
destination = color.getDestination().transform(matrix),
|
||||
origin = color.getOrigin().transform(),
|
||||
destination = color.getDestination().transform(),
|
||||
attrs;
|
||||
if (radial) {
|
||||
attrs = {
|
||||
|
@ -224,7 +223,7 @@ new function() {
|
|||
};
|
||||
var highlight = color.getHighlight();
|
||||
if (highlight) {
|
||||
highlight = highlight.transform(matrix);
|
||||
highlight = highlight.transform();
|
||||
attrs.fx = highlight.x;
|
||||
attrs.fy = highlight.y;
|
||||
}
|
||||
|
@ -321,7 +320,6 @@ new function() {
|
|||
if (item._visibility != null && !item._visibility)
|
||||
attrs.visibility = 'hidden';
|
||||
|
||||
delete item._gradientMatrix; // see exportPath()
|
||||
return setAttributes(node, attrs);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue