mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-08-30 13:47:12 +02:00
Remove deleted elements from svg export (#1021)
* Remove deleted elements from svg export * skip deleted elements * remove old comment Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:

committed by
GitHub

parent
1546c00c0c
commit
0ad6f4ec6b
@@ -289,12 +289,14 @@ export function renderSceneToSvg(
|
||||
}
|
||||
// render elements
|
||||
elements.forEach(element => {
|
||||
renderElementToSvg(
|
||||
element,
|
||||
rsvg,
|
||||
svgRoot,
|
||||
element.x + offsetX,
|
||||
element.y + offsetY,
|
||||
);
|
||||
if (!element.isDeleted) {
|
||||
renderElementToSvg(
|
||||
element,
|
||||
rsvg,
|
||||
svgRoot,
|
||||
element.x + offsetX,
|
||||
element.y + offsetY,
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user