mirror of
https://github.com/PR0M3TH3AN/Artstr-Studio.git
synced 2026-11-06 13:40:39 +00:00
Merge branch 'main' into book-designer
This commit is contained in:
commit
8fca55ff35
1 file changed
+8
-1
+8
-1
@@ -16765,7 +16765,14 @@
|
||||
// to whatever pixel size the wrapper ends up at.
|
||||
function rebuildClipDefs(layers) {
|
||||
const defsRoot = ensureGlobalClipDefs();
|
||||
const defs = defsRoot.querySelector('defs');
|
||||
let defs = defsRoot.querySelector('defs');
|
||||
if (!defs) {
|
||||
// Pre-existing globalClipDefs SVG without an inner <defs>
|
||||
// (e.g. injected by an early DOM hook or an extension). Recreate
|
||||
// it so the rebuild doesn't crash and abort render().
|
||||
defs = document.createElementNS('http://www.w3.org/2000/svg', 'defs');
|
||||
defsRoot.appendChild(defs);
|
||||
}
|
||||
defs.innerHTML = '';
|
||||
const map = new Map();
|
||||
for (const layer of layers || []) {
|
||||
|
||||
Reference in new issue
Block a user