Update renderElement.ts

This commit is contained in:
zsviczian 2023-04-04 16:12:05 +02:00 committed by GitHub
parent 619e4061f5
commit 17f9f64eda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,6 +103,7 @@ export const cappedElementCanvasSize = (
zoomValue: NormalizedZoomValue;
} => {
const sizelimit = 16777216; // 2^24
const padding = getCanvasPadding(element);
let zoomValue = zoom.value;
if (isLinearElement(element) || isFreeDrawElement(element)) {