Sfoglia il codice sorgente

fix: mistakenly hardcoding scale (#2925)

David Luzar 4 anni fa
parent
commit
23a8891e0e
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/scene/export.ts

+ 1 - 1
src/scene/export.ts

@@ -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);