fix: do not modify elements while erasing (#7531)

This commit is contained in:
David Luzar 2024-01-11 16:00:07 +01:00 committed by GitHub
parent 3ecf72a507
commit 872973f145
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 101 additions and 113 deletions

View file

@ -266,6 +266,7 @@ export const exportToCanvas = async (
imageCache,
renderGrid: false,
isExporting: true,
elementsPendingErasure: new Set(),
},
});

View file

@ -7,6 +7,7 @@ import {
import {
AppClassProperties,
AppState,
ElementsPendingErasure,
InteractiveCanvasAppState,
StaticCanvasAppState,
} from "../types";
@ -20,6 +21,7 @@ export type StaticCanvasRenderConfig = {
/** when exporting the behavior is slightly different (e.g. we can't use
CSS filters), and we disable render optimizations for best output */
isExporting: boolean;
elementsPendingErasure: ElementsPendingErasure;
};
export type SVGRenderConfig = {