mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Remove last get/setTransform (#964)
My original hack to put the scale when we create the canvas element doesn't make much sense. It should be done when we are rendering the scene. I moved it there in this PR. The rest was all about forwarding the scale to where it's needed.
This commit is contained in:
parent
79ea76b48b
commit
2937efacde
6 changed files with 31 additions and 13 deletions
|
@ -36,7 +36,6 @@ export function exportToCanvas(
|
|||
const height = distance(minY, maxY) + exportPadding * 2;
|
||||
|
||||
const tempCanvas: any = createCanvas(width, height);
|
||||
tempCanvas.getContext("2d")?.scale(scale, scale);
|
||||
|
||||
renderScene(
|
||||
elements,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue