- 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:
@@ -22,8 +22,12 @@ export default {
|
||||
imagelibStrings.imgLibs = imagelibStrings.imgLibs.map(({name, url, description}) => {
|
||||
// Todo: Adopt some standard formatting library like `fluent.js` instead
|
||||
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')
|
||||
|
||||
@@ -428,7 +428,7 @@ const svgElementToPdf = function (element, pdf, options) {
|
||||
} catch (error) {
|
||||
box = {width: 0};
|
||||
}
|
||||
document.body.removeChild(svg);
|
||||
svg.remove();
|
||||
}
|
||||
return box.width;
|
||||
};
|
||||
|
||||
@@ -4511,7 +4511,9 @@ this.setSvgString = function (xmlString, preventUndo) {
|
||||
|
||||
// remove old svg document
|
||||
const {nextSibling} = svgcontent;
|
||||
const oldzoom = svgroot.removeChild(svgcontent);
|
||||
|
||||
svgcontent.remove();
|
||||
const oldzoom = svgcontent;
|
||||
batchCmd.addSubCommand(new RemoveElementCommand(oldzoom, nextSibling, svgroot));
|
||||
|
||||
// set new svg document
|
||||
@@ -6327,7 +6329,8 @@ this.deleteSelectedElements = function () {
|
||||
}
|
||||
|
||||
const {nextSibling} = t;
|
||||
const elem = parent.removeChild(t);
|
||||
t.remove();
|
||||
const elem = t;
|
||||
selectedCopy.push(selected); // for the copy
|
||||
batchCmd.addSubCommand(new RemoveElementCommand(elem, nextSibling, parent));
|
||||
}
|
||||
@@ -6825,7 +6828,7 @@ this.ungroupSelectedElement = function () {
|
||||
|
||||
// delete the group element (but make undo-able)
|
||||
const gNextSibling = g.nextSibling;
|
||||
g = parent.removeChild(g);
|
||||
g.remove();
|
||||
batchCmd.addSubCommand(new RemoveElementCommand(g, gNextSibling, parent));
|
||||
|
||||
if (!batchCmd.isEmpty()) { addCommandToHistory(batchCmd); }
|
||||
|
||||
@@ -18651,7 +18651,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()
|
||||
|
||||
@@ -20722,7 +20723,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));
|
||||
@@ -21258,7 +21260,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()) {
|
||||
|
||||
Reference in New Issue
Block a user