diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 7a478d0f..23eedae8 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -269,6 +269,9 @@ function SvgCanvas(c) current_mode = "resize"; current_resize_mode = this.id.substr(13,this.id.indexOf("_",13)-13); }); + $('#selectorGrip_rotate_'+id).mousedown( function() { + current_mode = "rotate"; + }); } this.showGrips = function(show) { @@ -1368,6 +1371,9 @@ function SvgCanvas(c) }, 100); } + break; + case "rotate": + started = true; break; default: console.log("Unknown mode in mousedown: " + current_mode); @@ -1660,6 +1666,8 @@ function SvgCanvas(c) } } break; + case "rotate": + break; default: break; } @@ -2026,6 +2034,11 @@ function SvgCanvas(c) canvas.addToSelection([evt.target]); } break; + case "rotate": + keep = true; + element = null; + current_mode = "select"; + break; default: console.log("Unknown mode in mouseup: " + current_mode); break;