fix: SVG export in dark mode with embedded bitmap image (#4285)

Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
zsviczian 2021-11-20 15:31:51 +01:00 committed by GitHub
parent 620b662085
commit b6ef953dc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 5 deletions

View file

@ -802,9 +802,11 @@ export const renderSceneToSvg = (
{
offsetX = 0,
offsetY = 0,
exportWithDarkMode = false,
}: {
offsetX?: number;
offsetY?: number;
exportWithDarkMode?: boolean;
} = {},
) => {
if (!svgRoot) {
@ -821,6 +823,7 @@ export const renderSceneToSvg = (
files,
element.x + offsetX,
element.y + offsetY,
exportWithDarkMode,
);
} catch (error: any) {
console.error(error);