feat: center content

This commit is contained in:
Arnošt Pleskot 2023-08-10 23:25:33 +02:00
parent b77b7ccce1
commit 6edcb99c89
No known key found for this signature in database
2 changed files with 15 additions and 8 deletions

View file

@ -82,7 +82,7 @@ export const exportToCanvas = async (
exportBackgroundImage: appState.fancyBackgroundImageUrl,
};
if (appState.fancyBackgroundImageUrl) {
if (exportBackground && appState.fancyBackgroundImageUrl) {
const contentBounds = getCommonBounds(elements);
const updatedRenderProps = await applyFancyBackground({
canvas,