Fix Issue 26: context tools for rect, circle, ellipse, line are now editable

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@188 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Jeff Schiller
2009-06-24 04:33:09 +00:00
parent 96f74b4dae
commit 7c5c80beec
3 changed files with 28 additions and 15 deletions

View File

@@ -937,6 +937,15 @@ function SvgCanvas(c)
call("changed", selected);
}
}
this.changeSelectedAttribute = function(attr, val) {
if (selected != null && selected.getAttribute(attr) != val) {
selected.setAttribute(attr, val);
selectedBBox = selected.getBBox();
recalculateSelectedOutline();
call("changed", selected);
}
}
$(container).mouseup(mouseUp);
$(container).mousedown(mouseDown);