run tests after update

master
JFH 2020-07-25 19:57:19 +02:00
parent bb5cb2c955
commit 630a76c1b6
15 changed files with 38 additions and 43 deletions

View File

@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="428" height="20"><defs><style>text{font-size:11px;font-family:Verdana,DejaVu Sans,Geneva,sans-serif}text.shadow{fill:#010101;fill-opacity:.3}text.high{fill:#fff}</style><linearGradient id="smooth" x2="0" y2="100%"><stop offset="0" stop-color="#aaa" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="round"><rect width="100%" height="100%" rx="3" fill="#fff"/></mask></defs><g id="bg" mask="url(#round)"><path fill="orange" stroke="#000" d="M0 0h120v20H0zM120 0h109v20H120zM229 0h87v20h-87zM316 0h112v20H316z"/><path fill="url(#smooth)" d="M0 0h428v20H0z"/></g><g id="fg"><text class="shadow" x="5.5" y="15">Statements 44.92%</text><text class="high" x="5" y="14">Statements 44.92%</text><text class="shadow" x="125.5" y="15">Branches 33.59%</text><text class="high" x="125" y="14">Branches 33.59%</text><text class="shadow" x="234.5" y="15">Lines 46.07%</text><text class="high" x="234" y="14">Lines 46.07%</text><text class="shadow" x="321.5" y="15">Functions 51.19%</text><text class="high" x="321" y="14">Functions 51.19%</text></g></svg>
<svg xmlns="http://www.w3.org/2000/svg" width="421" height="20"><defs><style>text{font-size:11px;font-family:Verdana,DejaVu Sans,Geneva,sans-serif}text.shadow{fill:#010101;fill-opacity:.3}text.high{fill:#fff}</style><linearGradient id="smooth" x2="0" y2="100%"><stop offset="0" stop-color="#aaa" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="round"><rect width="100%" height="100%" rx="3" fill="#fff"/></mask></defs><g id="bg" mask="url(#round)"><path fill="orange" stroke="#000" d="M0 0h120v20H0zM120 0h102v20H120zM222 0h87v20h-87zM309 0h112v20H309z"/><path fill="url(#smooth)" d="M0 0h421v20H0z"/></g><g id="fg"><text class="shadow" x="5.5" y="15">Statements 37.51%</text><text class="high" x="5" y="14">Statements 37.51%</text><text class="shadow" x="125.5" y="15">Branches 28.8%</text><text class="high" x="125" y="14">Branches 28.8%</text><text class="shadow" x="227.5" y="15">Lines 38.46%</text><text class="high" x="227" y="14">Lines 38.46%</text><text class="shadow" x="314.5" y="15">Functions 47.27%</text><text class="high" x="314" y="14">Functions 47.27%</text></g></svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="97" height="20"><defs><style>text{font-size:11px;font-family:Verdana,DejaVu Sans,Geneva,sans-serif}text.shadow{fill:#010101;fill-opacity:.3}text.high{fill:#fff}</style><linearGradient id="smooth" x2="0" y2="100%"><stop offset="0" stop-color="#aaa" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="round"><rect width="100%" height="100%" rx="3" fill="#fff"/></mask></defs><g id="bg" mask="url(#round)"><path fill="#696969" d="M0 0h41v20H0z"/><path fill="#e05d44" d="M41 0h56v20H41z"/><path fill="url(#smooth)" d="M0 0h97v20H0z"/></g><g id="fg"><text class="shadow" x="5.5" y="15">Tests</text><text class="high" x="5" y="14">Tests</text><text class="shadow" x="46.5" y="15">130/131</text><text class="high" x="46" y="14">130/131</text></g></svg>
<svg xmlns="http://www.w3.org/2000/svg" width="97" height="20"><defs><style>text{font-size:11px;font-family:Verdana,DejaVu Sans,Geneva,sans-serif}text.shadow{fill:#010101;fill-opacity:.3}text.high{fill:#fff}</style><linearGradient id="smooth" x2="0" y2="100%"><stop offset="0" stop-color="#aaa" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="round"><rect width="100%" height="100%" rx="3" fill="#fff"/></mask></defs><g id="bg" mask="url(#round)"><path fill="#696969" d="M0 0h41v20H0z"/><path fill="#4c1" d="M41 0h56v20H41z"/><path fill="url(#smooth)" d="M0 0h97v20H0z"/></g><g id="fg"><text class="shadow" x="5.5" y="15">Tests</text><text class="high" x="5" y="14">Tests</text><text class="shadow" x="46.5" y="15">131/131</text><text class="high" x="46" y="14">131/131</text></g></svg>

Before

Width:  |  Height:  |  Size: 823 B

After

Width:  |  Height:  |  Size: 820 B

View File

@ -1,8 +1,6 @@
var svgEditorExtension_connector = (function () {
'use strict';
/* eslint-disable unicorn/no-fn-reference-in-iterator */
/**
* @file ext-connector.js
*

View File

@ -765,8 +765,7 @@
while (node.childNodes[j]) {
const cn = node.childNodes[j];
cn.remove(); // `j` should stay the same as removing will cause node to be present
} // eslint-disable-next-line unicorn/no-fn-reference-in-iterator
}
attVal.childNodes.forEach(_childrenToJML(node));
} else {
@ -792,13 +791,11 @@
}
if (attVal.head) {
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
attVal.head.forEach(_appendJML(head));
}
}
if (attVal.body) {
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
attVal.body.forEach(_appendJMLOrText(body));
}
}
@ -1067,7 +1064,7 @@
// Todo: Fix to allow application of stylesheets of style tags within fragments?
return nodes.length <= 1 ? nodes[0] // eslint-disable-next-line unicorn/no-fn-reference-in-iterator
return nodes.length <= 1 ? nodes[0] // eslint-disable-next-line
: nodes.reduce(_fragReducer, doc.createDocumentFragment()); // nodes;
}

10
dist/index-es.js vendored
View File

@ -4826,7 +4826,7 @@ const getElem = supportsSelectors() ? function (id) {
}, 9, null).singleNodeValue;
} : function (id) {
// jQuery lookup: twice as slow as xpath in FF
return $$1(svgroot_).find('[id=' + id + ']')[0];
return $$1(svgroot_).find(`[id=${id}]`)[0];
};
/**
* Assigns multiple attributes to an element.
@ -5721,7 +5721,6 @@ class Command {
* @implements {module:history.HistoryCommand}
*/
class MoveElementCommand extends Command {
/**
* @param {Element} elem - The DOM element that was moved
@ -6051,7 +6050,7 @@ class BatchCommand extends Command {
unapply(handler) {
super.unapply(handler, () => {
this.stack.forEach(stackItem => {
this.stack.reverse().forEach(stackItem => {
console.assert(stackItem, 'stack item should not be null');
stackItem && stackItem.unapply(handler);
});
@ -6282,6 +6281,7 @@ class UndoManager {
var hstry = /*#__PURE__*/Object.freeze({
__proto__: null,
HistoryEventTypes: HistoryEventTypes,
Command: Command,
MoveElementCommand: MoveElementCommand,
InsertElementCommand: InsertElementCommand,
RemoveElementCommand: RemoveElementCommand,
@ -12953,7 +12953,7 @@ const init$6 = function (config, svgFactory) {
const getSelectorManager = () => selectorManager_;
/* eslint-disable indent, unicorn/no-fn-reference-in-iterator */
/* eslint-disable indent */
let $$a = jQueryPluginSVG(jQuery);
const {
MoveElementCommand: MoveElementCommand$1,
@ -27221,7 +27221,7 @@ const jPicker = function ($) {
return $;
};
/* eslint-disable unicorn/no-fn-reference-in-iterator */
/* globals jQuery */
const $$b = jQuery;
let langParam;
/**

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

12
dist/index-umd.js vendored
View File

@ -1,7 +1,7 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = global || self, global.svgEditor = factory());
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.svgEditor = factory());
}(this, (function () { 'use strict';
// http://ross.posterous.com/2008/08/19/iphone-touch-events-in-javascript/
@ -4832,7 +4832,7 @@
}, 9, null).singleNodeValue;
} : function (id) {
// jQuery lookup: twice as slow as xpath in FF
return $$1(svgroot_).find('[id=' + id + ']')[0];
return $$1(svgroot_).find(`[id=${id}]`)[0];
};
/**
* Assigns multiple attributes to an element.
@ -5727,7 +5727,6 @@
* @implements {module:history.HistoryCommand}
*/
class MoveElementCommand extends Command {
/**
* @param {Element} elem - The DOM element that was moved
@ -6057,7 +6056,7 @@
unapply(handler) {
super.unapply(handler, () => {
this.stack.forEach(stackItem => {
this.stack.reverse().forEach(stackItem => {
console.assert(stackItem, 'stack item should not be null');
stackItem && stackItem.unapply(handler);
});
@ -6288,6 +6287,7 @@
var hstry = /*#__PURE__*/Object.freeze({
__proto__: null,
HistoryEventTypes: HistoryEventTypes,
Command: Command,
MoveElementCommand: MoveElementCommand,
InsertElementCommand: InsertElementCommand,
RemoveElementCommand: RemoveElementCommand,
@ -12959,7 +12959,7 @@
const getSelectorManager = () => selectorManager_;
/* eslint-disable indent, unicorn/no-fn-reference-in-iterator */
/* eslint-disable indent */
let $$a = jQueryPluginSVG(jQuery);
const {
MoveElementCommand: MoveElementCommand$1,
@ -27227,7 +27227,7 @@
return $;
};
/* eslint-disable unicorn/no-fn-reference-in-iterator */
/* globals jQuery */
const $$b = jQuery;
let langParam;
/**

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -4635,7 +4635,7 @@ var SvgCanvas = (function () {
}, 9, null).singleNodeValue;
} : function (id) {
// jQuery lookup: twice as slow as xpath in FF
return $$1(svgroot_).find('[id=' + id + ']')[0];
return $$1(svgroot_).find(`[id=${id}]`)[0];
};
/**
* Assigns multiple attributes to an element.
@ -5129,7 +5129,6 @@ var SvgCanvas = (function () {
* @implements {module:history.HistoryCommand}
*/
class MoveElementCommand extends Command {
/**
* @param {Element} elem - The DOM element that was moved
@ -5459,7 +5458,7 @@ var SvgCanvas = (function () {
unapply(handler) {
super.unapply(handler, () => {
this.stack.forEach(stackItem => {
this.stack.reverse().forEach(stackItem => {
console.assert(stackItem, 'stack item should not be null');
stackItem && stackItem.unapply(handler);
});
@ -5690,6 +5689,7 @@ var SvgCanvas = (function () {
var hstry = /*#__PURE__*/Object.freeze({
__proto__: null,
HistoryEventTypes: HistoryEventTypes,
Command: Command,
MoveElementCommand: MoveElementCommand,
InsertElementCommand: InsertElementCommand,
RemoveElementCommand: RemoveElementCommand,
@ -12541,7 +12541,7 @@ var SvgCanvas = (function () {
const getSelectorManager = () => selectorManager_;
/* eslint-disable indent, unicorn/no-fn-reference-in-iterator */
/* eslint-disable indent */
let $$9 = jQueryPluginSVG(jQuery);
const {
MoveElementCommand: MoveElementCommand$1,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -4829,7 +4829,7 @@
}, 9, null).singleNodeValue;
} : function (id) {
// jQuery lookup: twice as slow as xpath in FF
return $$1(svgroot_).find('[id=' + id + ']')[0];
return $$1(svgroot_).find(`[id=${id}]`)[0];
};
/**
* Assigns multiple attributes to an element.
@ -5724,7 +5724,6 @@
* @implements {module:history.HistoryCommand}
*/
class MoveElementCommand extends Command {
/**
* @param {Element} elem - The DOM element that was moved
@ -6054,7 +6053,7 @@
unapply(handler) {
super.unapply(handler, () => {
this.stack.forEach(stackItem => {
this.stack.reverse().forEach(stackItem => {
console.assert(stackItem, 'stack item should not be null');
stackItem && stackItem.unapply(handler);
});
@ -6285,6 +6284,7 @@
var hstry = /*#__PURE__*/Object.freeze({
__proto__: null,
HistoryEventTypes: HistoryEventTypes,
Command: Command,
MoveElementCommand: MoveElementCommand,
InsertElementCommand: InsertElementCommand,
RemoveElementCommand: RemoveElementCommand,
@ -12956,7 +12956,7 @@
const getSelectorManager = () => selectorManager_;
/* eslint-disable indent, unicorn/no-fn-reference-in-iterator */
/* eslint-disable indent */
let $$a = jQueryPluginSVG(jQuery);
const {
MoveElementCommand: MoveElementCommand$1,
@ -27224,7 +27224,7 @@
return $;
};
/* eslint-disable unicorn/no-fn-reference-in-iterator */
/* globals jQuery */
const $$b = jQuery;
let langParam;
/**

View File

@ -4829,7 +4829,7 @@
}, 9, null).singleNodeValue;
} : function (id) {
// jQuery lookup: twice as slow as xpath in FF
return $$1(svgroot_).find('[id=' + id + ']')[0];
return $$1(svgroot_).find(`[id=${id}]`)[0];
};
/**
* Assigns multiple attributes to an element.
@ -5724,7 +5724,6 @@
* @implements {module:history.HistoryCommand}
*/
class MoveElementCommand extends Command {
/**
* @param {Element} elem - The DOM element that was moved
@ -6054,7 +6053,7 @@
unapply(handler) {
super.unapply(handler, () => {
this.stack.forEach(stackItem => {
this.stack.reverse().forEach(stackItem => {
console.assert(stackItem, 'stack item should not be null');
stackItem && stackItem.unapply(handler);
});
@ -6285,6 +6284,7 @@
var hstry = /*#__PURE__*/Object.freeze({
__proto__: null,
HistoryEventTypes: HistoryEventTypes,
Command: Command,
MoveElementCommand: MoveElementCommand,
InsertElementCommand: InsertElementCommand,
RemoveElementCommand: RemoveElementCommand,
@ -12956,7 +12956,7 @@
const getSelectorManager = () => selectorManager_;
/* eslint-disable indent, unicorn/no-fn-reference-in-iterator */
/* eslint-disable indent */
let $$a = jQueryPluginSVG(jQuery);
const {
MoveElementCommand: MoveElementCommand$1,
@ -27224,7 +27224,7 @@
return $;
};
/* eslint-disable unicorn/no-fn-reference-in-iterator */
/* globals jQuery */
const $$b = jQuery;
let langParam;
/**