From 61a1259efa0c27c99576683c2fcb507b5dd53faa Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Tue, 23 Jun 2009 17:30:30 +0000 Subject: [PATCH] Add in x,y,w,h contextual controls for rects (updated by not editable) git-svn-id: http://svg-edit.googlecode.com/svn/trunk@183 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.html | 8 ++++++++ editor/svg-editor.js | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/editor/svg-editor.html b/editor/svg-editor.html index cb4ec16f..3715e52d 100644 --- a/editor/svg-editor.html +++ b/editor/svg-editor.html @@ -59,6 +59,14 @@ + + + + + + + + diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 64773f8f..6e33236e 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -99,6 +99,10 @@ function svg_edit_setup() { case "rect": $('#rect_panel').show().css("display", "inline"); $('#rect_radius').val(elem.getAttribute("rx")||0); + $('#rect_x').val(elem.getAttribute("x")||0); + $('#rect_y').val(elem.getAttribute("y")||0); + $('#rect_w').val(elem.getAttribute("width")||0); + $('#rect_h').val(elem.getAttribute("height")||0); break; case "text": // jquery's show() always sets display to block