- Refactoring: Ensure file-global tags are at beginning of file
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
// MIT License
|
||||
// From: https://github.com/uupaa/dynamic-import-polyfill/blob/master/importModule.js
|
||||
|
||||
/**
|
||||
* Adapted from {@link https://github.com/uupaa/dynamic-import-polyfill/blob/master/importModule.js}.
|
||||
* @module importModule
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -64,6 +63,7 @@ export async function importSetGlobal (url, {global: glob, returnDefault}) {
|
||||
await importScript(url);
|
||||
return window[glob];
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Brett Zamir (other items are from `dynamic-import-polyfill`)
|
||||
|
||||
@@ -1,4 +1,19 @@
|
||||
/* globals jQuery */
|
||||
/**
|
||||
* The main module for the visual SVG Editor.
|
||||
*
|
||||
* @license MIT
|
||||
*
|
||||
* @copyright 2010 Alexis Deveria
|
||||
* 2010 Pavol Rusnak
|
||||
* 2010 Jeff Schiller
|
||||
* 2010 Narendra Sisodiya
|
||||
* 2014 Brett Zamir
|
||||
* @exports module:SVGEditor
|
||||
* @borrows module:locale.putLocale as putLocale
|
||||
* @borrows module:locale.readLang as readLang
|
||||
* @borrows module:locale.setStrings as setStrings
|
||||
*/
|
||||
|
||||
import './touch.js';
|
||||
import {NS} from './namespaces.js';
|
||||
@@ -30,21 +45,6 @@ import {
|
||||
} from './locale/locale.js';
|
||||
import loadStylesheets from './external/load-stylesheets/index-es.js';
|
||||
|
||||
/**
|
||||
* The main module for the visual SVG Editor.
|
||||
*
|
||||
* @license MIT
|
||||
*
|
||||
* @copyright 2010 Alexis Deveria
|
||||
* 2010 Pavol Rusnak
|
||||
* 2010 Jeff Schiller
|
||||
* 2010 Narendra Sisodiya
|
||||
* 2014 Brett Zamir
|
||||
* @exports module:SVGEditor
|
||||
* @borrows module:locale.putLocale as putLocale
|
||||
* @borrows module:locale.readLang as readLang
|
||||
* @borrows module:locale.setStrings as setStrings
|
||||
*/
|
||||
const editor = {};
|
||||
|
||||
const $ = [
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
// Todo: Move to own module (and have it import a modular base64 encoder)
|
||||
import {encode64} from '../utilities.js';
|
||||
/**
|
||||
* @file SVG Icon Loader 2.0
|
||||
*
|
||||
@@ -86,6 +84,9 @@ $(function () {
|
||||
});
|
||||
*/
|
||||
|
||||
// Todo: Move to own module (and have it import a modular base64 encoder)
|
||||
import {encode64} from '../utilities.js';
|
||||
|
||||
const isOpera = Boolean(window.opera);
|
||||
|
||||
const fixIDs = function (svgEl, svgNum, force) {
|
||||
|
||||
@@ -9370,11 +9370,10 @@
|
||||
});
|
||||
};
|
||||
|
||||
// MIT License
|
||||
// From: https://github.com/uupaa/dynamic-import-polyfill/blob/master/importModule.js
|
||||
|
||||
/**
|
||||
* Adapted from {@link https://github.com/uupaa/dynamic-import-polyfill/blob/master/importModule.js}.
|
||||
* @module importModule
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -22315,7 +22314,6 @@
|
||||
return jQuery;
|
||||
}
|
||||
|
||||
// Todo: Move to own module (and have it import a modular base64 encoder)
|
||||
/**
|
||||
* @file SVG Icon Loader 2.0
|
||||
*
|
||||
@@ -22401,7 +22399,6 @@
|
||||
});
|
||||
});
|
||||
*/
|
||||
|
||||
var isOpera$1 = Boolean(window.opera);
|
||||
|
||||
var fixIDs = function fixIDs(svgEl, svgNum, force) {
|
||||
@@ -28818,22 +28815,6 @@
|
||||
}));
|
||||
}
|
||||
|
||||
/**
|
||||
* The main module for the visual SVG Editor.
|
||||
*
|
||||
* @license MIT
|
||||
*
|
||||
* @copyright 2010 Alexis Deveria
|
||||
* 2010 Pavol Rusnak
|
||||
* 2010 Jeff Schiller
|
||||
* 2010 Narendra Sisodiya
|
||||
* 2014 Brett Zamir
|
||||
* @exports module:SVGEditor
|
||||
* @borrows module:locale.putLocale as putLocale
|
||||
* @borrows module:locale.readLang as readLang
|
||||
* @borrows module:locale.setStrings as setStrings
|
||||
*/
|
||||
|
||||
var editor = {};
|
||||
var $$b = [jQueryPluginJSHotkeys, jQueryPluginBBQ, jQueryPluginSVGIcons, jQueryPluginJGraduate, jQueryPluginSpinButton, jQueryPluginSVG, jQueryContextMenu, jPicker].reduce(function (jq, func) {
|
||||
return func(jq);
|
||||
|
||||
Reference in New Issue
Block a user