mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-14 21:10:37 +02:00
Update renderElement.ts
This commit is contained in:
@@ -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