mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-08-22 17:57:03 +02:00
Prefer arrow functions (#2344)
This commit is contained in:
@@ -89,7 +89,7 @@ const calculateTranslation = (
|
||||
};
|
||||
};
|
||||
|
||||
function getCommonBoundingBox(elements: ExcalidrawElement[]): Box {
|
||||
const getCommonBoundingBox = (elements: ExcalidrawElement[]): Box => {
|
||||
const [minX, minY, maxX, maxY] = getCommonBounds(elements);
|
||||
return { minX, minY, maxX, maxY };
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user