diff --git a/CHANGES b/CHANGES new file mode 100644 index 00000000..f78a6d30 --- /dev/null +++ b/CHANGES @@ -0,0 +1,10 @@ +2.0.1 - ???? ??, ???? +--------------------- +* added tooltips (by codedread) +* fix flyout menus (by codedread) +* ask before clearing the drawing (by martin.vidner) + +2.0 - June 03, 2009 +------------------ +* rewritten SVG-edit, so now it uses OOP +* created HTML interface similar to Inkscape diff --git a/svg-editor.css b/svg-editor.css index 23e9a74d..ed7db647 100644 --- a/svg-editor.css +++ b/svg-editor.css @@ -18,6 +18,11 @@ border: 1px solid #808080; } +#svg_editor #svgcanvas { + width: 642px; + height: 482px; +} + #svg_editor div#palette_holder { border: 1px solid #808080; border-top: none; diff --git a/svg-editor.js b/svg-editor.js index a142da8a..b21e8039 100644 --- a/svg-editor.js +++ b/svg-editor.js @@ -105,7 +105,9 @@ $(document).ready(function(){ }); $('#tool_clear').click(function(){ - SvgCanvas.clear(); + if( confirm('Do you want to clear the drawing?') ) { + SvgCanvas.clear(); + } }); $('#tool_submit').click(function(){ @@ -155,21 +157,12 @@ $(document).ready(function(){ $('.tools_flyout').hide(); $('#tools_rect').show(); }); -/* - $('#tools_rect').mouseout(function(){ - $('#tools_rect').hide(); - }); -*/ + // This hides any flyouts and then shows the circle flyout $('#tools_ellipse_show').click(function(){ $('.tools_flyout').hide(); $('#tools_ellipse').show(); }); -/* - $('#tools_ellipse').mouseout(function(){ - $('#tools_ellipse').hide(); - }); -*/ }) function serializeHandler(svg) {