fixtransforms branch: skewed and rotated groups can now be resized properly

git-svn-id: http://svg-edit.googlecode.com/svn/branches/fixtransforms@1070 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Jeff Schiller 2009-12-18 19:07:01 +00:00
parent 2736be370b
commit 7bfef032aa
1 changed files with 9 additions and 0 deletions

View File

@ -1781,6 +1781,15 @@ function BatchCommand(text) {
tlist.removeItem(N-2); tlist.removeItem(N-2);
tlist.removeItem(N-3); tlist.removeItem(N-3);
} }
else if (N >= 3 && tlist.getItem(N-1).type == 1)
{
operation = 3; // scale
m = transformListToTransform(tlist).matrix;
var e2t = svgroot.createSVGTransform();
e2t.setMatrix(m);
tlist.clear();
tlist.appendItem(e2t);
}
// next, check if the first transform was a translate // next, check if the first transform was a translate
// if we had [ T1 ] [ M ] we want to transform this into [ M ] [ T2 ] // if we had [ T1 ] [ M ] we want to transform this into [ M ] [ T2 ]
// therefore [ T2 ] = [ M_inv ] [ T1 ] [ M ] // therefore [ T2 ] = [ M_inv ] [ T1 ] [ M ]