- Linting (ESLint): As per latest ash-nazg (unicorn)

- npm: Update devDeps; use stable eslint-plugin-mocha-cleanup now that updated
- npm: Add scripts for reporting with test summaries (free of full noise during tests);
    auto-run at end of tests
- npm: Update devDeps. and use stable version of eslint-plugin-mocha-cleanup
This commit is contained in:
Brett Zamir
2020-03-11 00:23:54 +08:00
parent 231fdb2189
commit f3a83dcb1d
23 changed files with 315 additions and 113 deletions

View File

@@ -515,7 +515,11 @@ var svgEditorExtension_imagelib = (function () {
url = _ref2.url,
description = _ref2.description;
// Todo: Adopt some standard formatting library like `fluent.js` instead
url = url.replace(/\{path\}/g, extIconsPath).replace(/\{modularVersion\}/g, modularVersion ? imagelibStrings.moduleEnding || '-es' : '');
url = url // Keep these regexes as is in prep. for switching to `u` flag
// which will require escaping
// eslint-disable-next-line unicorn/better-regex
.replace(/\{path\}/g, extIconsPath).replace( // eslint-disable-next-line unicorn/better-regex
/\{modularVersion\}/g, modularVersion ? imagelibStrings.moduleEnding || '-es' : '');
return {
name: name,
url: url,

8
dist/index-es.js vendored
View File

@@ -18648,7 +18648,8 @@ function SvgCanvas(container, config) {
var _svgcontent = svgcontent,
nextSibling = _svgcontent.nextSibling;
var oldzoom = svgroot.removeChild(svgcontent);
svgcontent.remove();
var oldzoom = svgcontent;
batchCmd.addSubCommand(new RemoveElementCommand$1(oldzoom, nextSibling, svgroot)); // set new svg document
// If DOM3 adoptNode() available, use it. Otherwise fall back to DOM2 importNode()
@@ -20719,7 +20720,8 @@ function SvgCanvas(container, config) {
var _t = t,
nextSibling = _t.nextSibling;
var elem = parent.removeChild(t);
t.remove();
var elem = t;
selectedCopy.push(selected); // for the copy
batchCmd.addSubCommand(new RemoveElementCommand$1(elem, nextSibling, parent));
@@ -21255,7 +21257,7 @@ function SvgCanvas(container, config) {
clearSelection(); // delete the group element (but make undo-able)
var gNextSibling = g.nextSibling;
g = parent.removeChild(g);
g.remove();
batchCmd.addSubCommand(new RemoveElementCommand$1(g, gNextSibling, parent));
if (!batchCmd.isEmpty()) {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

8
dist/index-umd.js vendored
View File

@@ -18654,7 +18654,8 @@
var _svgcontent = svgcontent,
nextSibling = _svgcontent.nextSibling;
var oldzoom = svgroot.removeChild(svgcontent);
svgcontent.remove();
var oldzoom = svgcontent;
batchCmd.addSubCommand(new RemoveElementCommand$1(oldzoom, nextSibling, svgroot)); // set new svg document
// If DOM3 adoptNode() available, use it. Otherwise fall back to DOM2 importNode()
@@ -20725,7 +20726,8 @@
var _t = t,
nextSibling = _t.nextSibling;
var elem = parent.removeChild(t);
t.remove();
var elem = t;
selectedCopy.push(selected); // for the copy
batchCmd.addSubCommand(new RemoveElementCommand$1(elem, nextSibling, parent));
@@ -21261,7 +21263,7 @@
clearSelection(); // delete the group element (but make undo-able)
var gNextSibling = g.nextSibling;
g = parent.removeChild(g);
g.remove();
batchCmd.addSubCommand(new RemoveElementCommand$1(g, gNextSibling, parent));
if (!batchCmd.isEmpty()) {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -909,7 +909,7 @@
};
}
document.body.removeChild(svg);
svg.remove();
}
return box.width;

View File

@@ -18338,7 +18338,8 @@ var SvgCanvas = (function () {
var _svgcontent = svgcontent,
nextSibling = _svgcontent.nextSibling;
var oldzoom = svgroot.removeChild(svgcontent);
svgcontent.remove();
var oldzoom = svgcontent;
batchCmd.addSubCommand(new RemoveElementCommand$1(oldzoom, nextSibling, svgroot)); // set new svg document
// If DOM3 adoptNode() available, use it. Otherwise fall back to DOM2 importNode()
@@ -20409,7 +20410,8 @@ var SvgCanvas = (function () {
var _t = t,
nextSibling = _t.nextSibling;
var elem = parent.removeChild(t);
t.remove();
var elem = t;
selectedCopy.push(selected); // for the copy
batchCmd.addSubCommand(new RemoveElementCommand$1(elem, nextSibling, parent));
@@ -20945,7 +20947,7 @@ var SvgCanvas = (function () {
clearSelection(); // delete the group element (but make undo-able)
var gNextSibling = g.nextSibling;
g = parent.removeChild(g);
g.remove();
batchCmd.addSubCommand(new RemoveElementCommand$1(g, gNextSibling, parent));
if (!batchCmd.isEmpty()) {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long