From 7bfef032aada6d5967c66bd47790f5f2e5597dd3 Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Fri, 18 Dec 2009 19:07:01 +0000 Subject: [PATCH] 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 --- editor/svgcanvas.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 32a27191..8890a61b 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -1781,6 +1781,15 @@ function BatchCommand(text) { tlist.removeItem(N-2); 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 // if we had [ T1 ] [ M ] we want to transform this into [ M ] [ T2 ] // therefore [ T2 ] = [ M_inv ] [ T1 ] [ M ]