mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-15 21:40:06 +02:00
Update renderElement.ts
This commit is contained in:
@@ -103,6 +103,7 @@ export const cappedElementCanvasSize = (
|
|||||||
zoomValue: NormalizedZoomValue;
|
zoomValue: NormalizedZoomValue;
|
||||||
} => {
|
} => {
|
||||||
const sizelimit = 16777216; // 2^24
|
const sizelimit = 16777216; // 2^24
|
||||||
|
const padding = getCanvasPadding(element);
|
||||||
let zoomValue = zoom.value;
|
let zoomValue = zoom.value;
|
||||||
|
|
||||||
if (isLinearElement(element) || isFreeDrawElement(element)) {
|
if (isLinearElement(element) || isFreeDrawElement(element)) {
|
||||||
|
Reference in New Issue
Block a user