Removed redundant code snippet.
This commit is contained in:
parent
996ac62e1a
commit
feea091945
@ -93,20 +93,6 @@
|
||||
|
||||
svg.querySelector("svg").attributes.viewBox.value = `0 0 ${width} ${height}`;
|
||||
|
||||
/*
|
||||
svg.querySelectorAll("#content *").forEach(e => {
|
||||
if (typeof e.attributes.x === "undefined") {
|
||||
e.setAttribute("x", offsetX);
|
||||
} else {
|
||||
e.attributes.x.value = parseFloat(e.attributes.x.value) + offsetX;
|
||||
}
|
||||
if (typeof e.attributes.y === "undefined") {
|
||||
e.setAttribute("y", offsetY);
|
||||
} else {
|
||||
e.attributes.y.value = parseFloat(e.attributes.y.value) + offsetY;
|
||||
}
|
||||
});
|
||||
*/
|
||||
svg.querySelector("#content").setAttribute("transform", `translate(${offsetX},${offsetY})`);
|
||||
|
||||
const a = document.createElement('a');
|
||||
|
Loading…
Reference in New Issue
Block a user