mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: support toggling export padding
This commit is contained in:
parent
8d5d68e589
commit
0314e81396
8 changed files with 41 additions and 10 deletions
|
@ -492,7 +492,7 @@ export const getElementBounds = (
|
|||
|
||||
export const getCommonBounds = (
|
||||
elements: readonly ExcalidrawElement[],
|
||||
): [number, number, number, number] => {
|
||||
): [minX: number, minY: number, maxX: number, maxY: number] => {
|
||||
if (!elements.length) {
|
||||
return [0, 0, 0, 0];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue