fix: mistakenly hardcoding scale (#2925)

This commit is contained in:
David Luzar 2021-02-04 16:52:00 +01:00 committed by GitHub
parent 6c81a32d62
commit 23a8891e0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ export const exportToCanvas = (
const tempCanvas = document.createElement("canvas");
tempCanvas.width = width * scale;
tempCanvas.height = height * scale;
return { canvas: tempCanvas, scale: 1 };
return { canvas: tempCanvas, scale };
},
) => {
const sceneElements = getElementsAndWatermark(elements, shouldAddWatermark);