- Refactoring: Ensure file-global tags are at beginning of file

master
Brett Zamir 2019-12-31 16:31:28 +08:00
parent d9d4d94976
commit 7fc26e114d
15 changed files with 57 additions and 145 deletions

View File

@ -13,6 +13,7 @@
- Fix (openclipart browser): Redirect on lacking browser support
- Optimization: Remove unused `jquery-ui-1.8.custom.min.js` file
- Localization: Add 'SVG-Edit Home Page' to locale files
- Refactoring: Ensure file-global tags are at beginning of file
- Linting (ESLint): Simplify regexes
- Linting (ESLint): Replace `innerHTML` with `textContent` from old demo
- Linting (ESLint): Update as per latest ash-nazg (bad jsdoc)

23
dist/index-es.js vendored
View File

@ -9367,11 +9367,10 @@ var injectExtendedContextMenuItemsIntoDom = function injectExtendedContextMenuIt
});
};
// 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
*/
/**
@ -22312,7 +22311,6 @@ function jQueryPluginBBQ (jQuery) {
return jQuery;
}
// Todo: Move to own module (and have it import a modular base64 encoder)
/**
* @file SVG Icon Loader 2.0
*
@ -22398,7 +22396,6 @@ $(function () {
});
});
*/
var isOpera$1 = Boolean(window.opera);
var fixIDs = function fixIDs(svgEl, svgNum, force) {
@ -28815,22 +28812,6 @@ function loadStylesheets(stylesheets) {
}));
}
/**
* 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);

25
dist/index-es.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

23
dist/index-umd.js vendored
View File

@ -9373,11 +9373,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
*/
/**
@ -22318,7 +22317,6 @@
return jQuery;
}
// Todo: Move to own module (and have it import a modular base64 encoder)
/**
* @file SVG Icon Loader 2.0
*
@ -22404,7 +22402,6 @@
});
});
*/
var isOpera$1 = Boolean(window.opera);
var fixIDs = function fixIDs(svgEl, svgNum, force) {
@ -28821,22 +28818,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);

25
dist/index-umd.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -11272,11 +11272,10 @@ var SvgCanvas = (function () {
}
};
// 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
*/
/**

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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`)

View File

@ -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 $ = [

View File

@ -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) {

View File

@ -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);

View File

@ -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);