mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Update renderElement.ts
This commit is contained in:
parent
17f9f64eda
commit
f017a60101
1 changed files with 2 additions and 1 deletions
|
@ -126,6 +126,7 @@ export const cappedElementCanvasSize = (
|
||||||
distance(y1, y2) * window.devicePixelRatio * zoomValue +
|
distance(y1, y2) * window.devicePixelRatio * zoomValue +
|
||||||
padding * zoomValue * 2;
|
padding * zoomValue * 2;
|
||||||
}
|
}
|
||||||
|
return {width, height, zoomValue};
|
||||||
} else {
|
} else {
|
||||||
let width =
|
let width =
|
||||||
element.width * window.devicePixelRatio * zoomValue +
|
element.width * window.devicePixelRatio * zoomValue +
|
||||||
|
@ -144,8 +145,8 @@ export const cappedElementCanvasSize = (
|
||||||
element.height * window.devicePixelRatio * zoomValue +
|
element.height * window.devicePixelRatio * zoomValue +
|
||||||
padding * zoomValue * 2;
|
padding * zoomValue * 2;
|
||||||
}
|
}
|
||||||
|
return {width, height, zoomValue};
|
||||||
}
|
}
|
||||||
return {width, height, zoomValue};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const generateElementCanvas = (
|
const generateElementCanvas = (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue