mirror of
https://github.com/excalidraw/excalidraw.git
synced 2026-12-04 02:20:44 +03:00
Update renderElement.ts
This commit is contained in:
1 parent
17f9f64eda
commit
f017a60101
1 file changed
+2
-1
@@ -126,6 +126,7 @@ export const cappedElementCanvasSize = (
|
||||
distance(y1, y2) * window.devicePixelRatio * zoomValue +
|
||||
padding * zoomValue * 2;
|
||||
}
|
||||
return {width, height, zoomValue};
|
||||
} else {
|
||||
let width =
|
||||
element.width * window.devicePixelRatio * zoomValue +
|
||||
@@ -144,8 +145,8 @@ export const cappedElementCanvasSize = (
|
||||
element.height * window.devicePixelRatio * zoomValue +
|
||||
padding * zoomValue * 2;
|
||||
}
|
||||
return {width, height, zoomValue};
|
||||
}
|
||||
return {width, height, zoomValue};
|
||||
}
|
||||
|
||||
const generateElementCanvas = (
|
||||
|
||||
Reference in new issue
Block a user