Finally remove the _gradientMatrix hack.

This commit is contained in:
Jürg Lehni 2013-10-16 23:47:21 +02:00
parent 9956a6ff51
commit 922f224cbd

View file

@ -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);
} }