Update some TODOs, comment out some no-longer needed code

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@973 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Jeff Schiller 2009-11-24 06:54:43 +00:00
parent 7b6a304520
commit 27064ff8da
1 changed files with 10 additions and 8 deletions

View File

@ -1,10 +1,9 @@
/* /*
TODOs for TransformList: TODOs for TransformList:
* Ensure rotation works properly (extract the correct rotational center now?) * Fix Opera's centering of rotated, resized groups
* when groups are resized, center is not found properly (dx/dy are not calculated correctly) * Fix resizing of rotated already-resized groups (scales incorrect with mouse)
* clean up setRotationAngle() * Ensure groups with rotated children have properly located and sized selector box
* Ensure resized/rotated groups show the proper located and sized selector box
* Ensure ungrouping works (Issue 204) * Ensure ungrouping works (Issue 204)
*/ */
/* /*
@ -2524,7 +2523,7 @@ function BatchCommand(text) {
dx = r * Math.cos(theta); dx = r * Math.cos(theta);
dy = r * Math.sin(theta); dy = r * Math.sin(theta);
} }
// if not stretching in y direction, set dy to 0 // if not stretching in y direction, set dy to 0
// if not stretching in x direction, set dx to 0 // if not stretching in x direction, set dx to 0
if(current_resize_mode.indexOf("n")==-1 && current_resize_mode.indexOf("s")==-1) { if(current_resize_mode.indexOf("n")==-1 && current_resize_mode.indexOf("s")==-1) {
@ -2558,7 +2557,7 @@ function BatchCommand(text) {
translateOrigin.setTranslate(-(left+tx),-(top+ty)); translateOrigin.setTranslate(-(left+tx),-(top+ty));
if(evt.shiftKey) { if(evt.shiftKey) {
if(sx == 1) sx = sy if(sx == 1) sx = sy
else sy = sx; else sy = sx;
} }
scale.setScale(sx,sy); scale.setScale(sx,sy);
@ -2582,7 +2581,9 @@ function BatchCommand(text) {
if (ty) { if (ty) {
selectedBBox.y += dy; selectedBBox.y += dy;
} }
// I believe the following commented-out code is no longer required - schiller
/*
// update box width/height // update box width/height
selectedBBox.width = round(width*sx); selectedBBox.width = round(width*sx);
selectedBBox.height = round(height*sy); selectedBBox.height = round(height*sy);
@ -2608,8 +2609,9 @@ function BatchCommand(text) {
selectedBBox.y -= selectedBBox.height; selectedBBox.y -= selectedBBox.height;
} }
} }
*/
selectorManager.requestSelector(selected).resize();//selectedBBox); // TODO: remove box arg selectorManager.requestSelector(selected).resize();
break; break;
case "zoom": case "zoom":
x *= current_zoom; x *= current_zoom;