mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-14 21:10:37 +02:00
feat: use elements dimensions for scaling
This commit is contained in:
@@ -83,12 +83,17 @@ export const exportToCanvas = async (
|
||||
};
|
||||
|
||||
if (appState.fancyBackgroundImageUrl) {
|
||||
const contentBounds = getCommonBounds(elements);
|
||||
const updatedRenderProps = await applyFancyBackground({
|
||||
canvas,
|
||||
fancyBackgroundImageUrl: appState.fancyBackgroundImageUrl,
|
||||
backgroundColor: viewBackgroundColor,
|
||||
scale,
|
||||
renderConfig,
|
||||
contentDimensions: {
|
||||
w: contentBounds[2] - contentBounds[0],
|
||||
h: contentBounds[3] - contentBounds[1],
|
||||
},
|
||||
});
|
||||
|
||||
renderConfig = updatedRenderProps.renderConfig;
|
||||
|
Reference in New Issue
Block a user