mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: center content
This commit is contained in:
parent
b77b7ccce1
commit
6edcb99c89
2 changed files with 15 additions and 8 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue