From 9467ce13ba3b66f537e94b44b9753254a9aa0985 Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Wed, 26 Aug 2009 23:15:32 +0000 Subject: [PATCH] Remaining TODOs for rotate handle git-svn-id: http://svg-edit.googlecode.com/svn/trunk@480 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 4af6cb6e..1f9064d4 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -1683,6 +1683,14 @@ function SvgCanvas(c) } break; case "rotate": + // TODO: figure out cx,cy of rotated handle in absolute coords + // TODO: determine new angle that will minimize the distance from x,y to cx,cy + // TODO: rotate the shape by that angle, setRotationAngle() + + var angle = canvas.getRotationAngle(current_poly) * Math.PI / 180.0; + if (angle) { + } + break; default: break;