master
JFH 2020-07-26 21:49:14 +02:00
parent 2bd4da081a
commit ba603f4a3e
13 changed files with 17423 additions and 16023 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-87z"/><path fill="green" stroke="#000" d="M316 0h112v20H316z"/><path fill="url(#smooth)" d="M0 0h428v20H0z"/></g><g id="fg"><text class="shadow" x="5.5" y="15">Statements 37.49%</text><text class="high" x="5" y="14">Statements 37.49%</text><text class="shadow" x="125.5" y="15">Branches 28.78%</text><text class="high" x="125" y="14">Branches 28.78%</text><text class="shadow" x="234.5" y="15">Lines 38.44%</text><text class="high" x="234" y="14">Lines 38.44%</text><text class="shadow" x="321.5" y="15">Functions 47.27%</text><text class="high" x="321" y="14">Functions 47.27%</text></g></svg>
<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 37.49%</text><text class="high" x="5" y="14">Statements 37.49%</text><text class="shadow" x="125.5" y="15">Branches 28.78%</text><text class="high" x="125" y="14">Branches 28.78%</text><text class="shadow" x="234.5" y="15">Lines 38.44%</text><text class="high" x="234" y="14">Lines 38.44%</text><text class="shadow" x="321.5" y="15">Functions 47.18%</text><text class="high" x="321" y="14">Functions 47.18%</text></g></svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -63,6 +63,7 @@
var node = document.createDocumentFragment();
nodes.forEach(function (n) {
// // eslint-disable-next-line unicorn/prefer-node-append
node.appendChild(n);
});
return node;
@ -82,7 +83,8 @@
nodes[_key2] = arguments[_key2];
}
nodes = convertNodesIntoANode(nodes);
nodes = convertNodesIntoANode(nodes); // // eslint-disable-next-line unicorn/prefer-node-append
this.appendChild(nodes);
}
};

8
dist/index-es.js vendored
View File

@ -20894,10 +20894,14 @@ function SvgCanvas(container, config) {
elem.attr.id = changedIDs[elem.attr.id];
}
if (elem.children) elem.children.forEach(checkIDs);
if (elem.children) elem.children.forEach(function (child) {
return checkIDs(child);
});
}
clipb.forEach(checkIDs); // Give extensions like the connector extension a chance to reflect new IDs and remove invalid elements
clipb.forEach(function (elem) {
return checkIDs(elem);
}); // Give extensions like the connector extension a chance to reflect new IDs and remove invalid elements
/**
* Triggered when `pasteElements` is called from a paste action (context menu or key).

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

@ -20900,10 +20900,14 @@
elem.attr.id = changedIDs[elem.attr.id];
}
if (elem.children) elem.children.forEach(checkIDs);
if (elem.children) elem.children.forEach(function (child) {
return checkIDs(child);
});
}
clipb.forEach(checkIDs); // Give extensions like the connector extension a chance to reflect new IDs and remove invalid elements
clipb.forEach(function (elem) {
return checkIDs(elem);
}); // Give extensions like the connector extension a chance to reflect new IDs and remove invalid elements
/**
* Triggered when `pasteElements` is called from a paste action (context menu or key).

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -20581,10 +20581,14 @@ var SvgCanvas = (function () {
elem.attr.id = changedIDs[elem.attr.id];
}
if (elem.children) elem.children.forEach(checkIDs);
if (elem.children) elem.children.forEach(function (child) {
return checkIDs(child);
});
}
clipb.forEach(checkIDs); // Give extensions like the connector extension a chance to reflect new IDs and remove invalid elements
clipb.forEach(function (elem) {
return checkIDs(elem);
}); // Give extensions like the connector extension a chance to reflect new IDs and remove invalid elements
/**
* Triggered when `pasteElements` is called from a paste action (context menu or key).

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -20866,10 +20866,14 @@
* @returns {void}
*/
if (elem.children) elem.children.forEach(child => checkIDs(child));
}
clipb.forEach(elem => checkIDs(elem)); // Give extensions like the connector extension a chance to reflect new IDs and remove invalid elements
this.pasteElements = function (type, x, y) {
var clipb = JSON.parse(sessionStorage.getItem(CLIPBOARD_ID));
if (!clipb) return;
var len = clipb.length;
if (!len) return;
var pasted = [];
var batchCmd = new BatchCommand$1('Paste elements'); // const drawing = getCurrentDrawing();
/**
* @typedef {PlainObject<string, string>} module:svgcanvas.ChangedIDs
@ -20893,10 +20897,14 @@
elem.attr.id = changedIDs[elem.attr.id];
}
if (elem.children) elem.children.forEach(checkIDs);
if (elem.children) elem.children.forEach(function (child) {
return checkIDs(child);
});
}
clipb.forEach(checkIDs); // Give extensions like the connector extension a chance to reflect new IDs and remove invalid elements
clipb.forEach(function (elem) {
return checkIDs(elem);
}); // Give extensions like the connector extension a chance to reflect new IDs and remove invalid elements
/**
* Triggered when `pasteElements` is called from a paste action (context menu or key).

File diff suppressed because one or more lines are too long