From 2b4270163ed526748259b8ba310a197ad8b4a606 Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Fri, 12 Mar 2010 20:43:33 +0000 Subject: [PATCH] Added support for loading config data from URL, prevented creation of unneeded global variables git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1459 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/jgraduate/jquery.jgraduate.js | 4 + editor/svg-editor.css | 3 +- editor/svg-editor.html | 2 + editor/svg-editor.js | 125 ++++++++++++++++++++------- editor/svgcanvas.js | 37 ++++---- 5 files changed, 120 insertions(+), 51 deletions(-) diff --git a/editor/jgraduate/jquery.jgraduate.js b/editor/jgraduate/jquery.jgraduate.js index 137919be..7518af5c 100644 --- a/editor/jgraduate/jquery.jgraduate.js +++ b/editor/jgraduate/jquery.jgraduate.js @@ -46,6 +46,9 @@ $.jGraduate.Paint({hex: "#rrggbb", linearGradient: o}) -> throws an exception? * */ + +(function() { + var ns = { svg: 'http://www.w3.org/2000/svg', xlink: 'http://www.w3.org/1999/xlink' }; if(!window.console) { window.console = new function() { @@ -1083,3 +1086,4 @@ jQuery.fn.jGraduate = $this.show(); }); }; +})(); \ No newline at end of file diff --git a/editor/svg-editor.css b/editor/svg-editor.css index fee343fd..5b25747a 100644 --- a/editor/svg-editor.css +++ b/editor/svg-editor.css @@ -674,7 +674,7 @@ span.zoom_tool { } #svg_editor #tools_bottom_2 { - width: 204px; + width: 215px; position: relative; float: left; } @@ -706,6 +706,7 @@ span.zoom_tool { -moz-border-radius-bottomleft: 4px; -webkit-border-top-left-radius: 4px; -webkit-border-bottom-left-radius: 4px; + padding-right: 0; } .color_tool > *:last-child { diff --git a/editor/svg-editor.html b/editor/svg-editor.html index 1c2e68a9..7ca582b1 100644 --- a/editor/svg-editor.html +++ b/editor/svg-editor.html @@ -14,6 +14,7 @@ + @@ -27,6 +28,7 @@