Move new modules into a svgedit 'namespace'

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1821 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Jeff Schiller
2010-10-26 16:33:44 +00:00
parent 6298d557cf
commit 0bd50af99b
3 changed files with 46 additions and 35 deletions

View File

@@ -89,10 +89,10 @@ if(window.opera) {
// config - An object that contains configuration data
$.SvgCanvas = function(container, config)
{
var isOpera = BrowserSupport.isOpera,
isWebkit = BrowserSupport.isWebkit,
isGecko = BrowserSupport.isGecko,
support = BrowserSupport,
var support = svgedit.BrowserSupport,
isOpera = support.isOpera,
isWebkit = support.isWebkit,
isGecko = support.isGecko,
// this defines which elements and attributes that we support
svgWhiteList = {
@@ -196,7 +196,7 @@ if(config) {
// Static class for various utility functions
// See svgutils.js.
var Utils = this.Utils = SVGEditUtilities;
var Utils = this.Utils = svgedit.Utilities;
// Function: snapToGrid
// round value to for snapping
@@ -8563,12 +8563,10 @@ this.importSvgString = function(xmlString) {
addToSelection([use_el]);
return true;
// TODO: Find way to add this in a recalculateDimensions-parsable way
// if (vb[0] != 0 || vb[1] != 0)
// ts = "translate(" + (-vb[0]) + "," + (-vb[1]) + ") " + ts;
} catch(e) {
console.log(e);
return false;
@@ -11306,7 +11304,7 @@ function disableAdvancedTextEdit() {
}
(function() {
if (!BrowserSupport.textCharPos) {
if (!svgedit.BrowserSupport.textCharPos) {
disableAdvancedTextEdit();
}