mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -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) {
|
if (!gradientNode) {
|
||||||
var gradient = color.getGradient(),
|
var gradient = color.getGradient(),
|
||||||
radial = gradient._radial,
|
radial = gradient._radial,
|
||||||
matrix = item._gradientMatrix,
|
origin = color.getOrigin().transform(),
|
||||||
origin = color.getOrigin().transform(matrix),
|
destination = color.getDestination().transform(),
|
||||||
destination = color.getDestination().transform(matrix),
|
|
||||||
attrs;
|
attrs;
|
||||||
if (radial) {
|
if (radial) {
|
||||||
attrs = {
|
attrs = {
|
||||||
|
@ -224,7 +223,7 @@ new function() {
|
||||||
};
|
};
|
||||||
var highlight = color.getHighlight();
|
var highlight = color.getHighlight();
|
||||||
if (highlight) {
|
if (highlight) {
|
||||||
highlight = highlight.transform(matrix);
|
highlight = highlight.transform();
|
||||||
attrs.fx = highlight.x;
|
attrs.fx = highlight.x;
|
||||||
attrs.fy = highlight.y;
|
attrs.fy = highlight.y;
|
||||||
}
|
}
|
||||||
|
@ -321,7 +320,6 @@ new function() {
|
||||||
if (item._visibility != null && !item._visibility)
|
if (item._visibility != null && !item._visibility)
|
||||||
attrs.visibility = 'hidden';
|
attrs.visibility = 'hidden';
|
||||||
|
|
||||||
delete item._gradientMatrix; // see exportPath()
|
|
||||||
return setAttributes(node, attrs);
|
return setAttributes(node, attrs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue