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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user