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