diff --git a/packages/tldraw/src/state/TldrawApp.ts b/packages/tldraw/src/state/TldrawApp.ts index 9fb35ec60..3358a94e9 100644 --- a/packages/tldraw/src/state/TldrawApp.ts +++ b/packages/tldraw/src/state/TldrawApp.ts @@ -1815,6 +1815,10 @@ export class TldrawApp extends StateManager { svg.setAttribute('width', String(commonBounds.width)) svg.setAttribute('height', String(commonBounds.height)) + svg.setAttribute('fill', 'transparent') + svg + .querySelectorAll('.tl-fill-hitarea, .tl-stroke-hitarea, .tl-binding-indicator') + .forEach((element) => element.remove()) const s = new XMLSerializer() diff --git a/packages/tldraw/src/state/__snapshots__/TldrawApp.spec.ts.snap b/packages/tldraw/src/state/__snapshots__/TldrawApp.spec.ts.snap index 663ed82f2..b2959c421 100644 --- a/packages/tldraw/src/state/__snapshots__/TldrawApp.spec.ts.snap +++ b/packages/tldraw/src/state/__snapshots__/TldrawApp.spec.ts.snap @@ -202,6 +202,6 @@ Array [ ] `; -exports[`TldrawTestApp When copying to SVG Copies grouped shapes.: copied svg with group 1`] = `""`; +exports[`TldrawTestApp When copying to SVG Copies grouped shapes.: copied svg with group 1`] = `""`; -exports[`TldrawTestApp When copying to SVG Copies shapes.: copied svg 1`] = `""`; +exports[`TldrawTestApp When copying to SVG Copies shapes.: copied svg 1`] = `""`; diff --git a/yarn.lock b/yarn.lock index 86b0e114c..731cf668f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2546,7 +2546,7 @@ resolved "https://registry.yarnpkg.com/@radix-ui/react-icons/-/react-icons-1.0.3.tgz#4ef61f1234f44991f7a19e108f77ca37032b4be2" integrity sha512-YbPAUZwTsvF/2H7IU35txaLUB+JNSV8GIhnswlqiFODP/P32t5op5keYUvQWsSj9TA0VLF367J24buUjIprn0w== -"@radix-ui/react-id@0.1.1", "@radix-ui/react-id@^0.1.1": +"@radix-ui/react-id@0.1.1": version "0.1.1" resolved "https://registry.yarnpkg.com/@radix-ui/react-id/-/react-id-0.1.1.tgz#42c8f3967875e6824b2ac9d49c66317047c8d6ff" integrity sha512-Vlg5me65+NUgxPBuA0Lk6FerNe+Mq4EuJ8xzpskGxS2t8p1puI3IkyLZ2wWtDSb1KXazoaHn8adBypagt+1P0g==