Made small improvements to small icon mode, added fixed ratio resize option for resize+shift

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@942 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Alexis Deveria
2009-11-13 15:11:48 +00:00
parent 2a9f517306
commit 5e7da751ec
3 changed files with 17 additions and 9 deletions

View File

@@ -2563,7 +2563,13 @@ function BatchCommand(text) {
scale = svgroot.createSVGTransform(),
translateBack = svgroot.createSVGTransform();
translateOrigin.setTranslate(-(left+tx),-(top+ty));
if(evt.shiftKey) {
if(sx == 1) sx = sy
else sy = sx;
}
scale.setScale(sx,sy);
translateBack.setTranslate(left+tx,top+ty);
var N = tlist.numberOfItems;
tlist.replaceItem(translateBack, N-3);