feat: support toggling export padding

This commit is contained in:
dwelle 2022-11-03 17:31:41 +01:00
parent 8d5d68e589
commit 0314e81396
8 changed files with 41 additions and 10 deletions

View file

@ -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];
}