Prefer arrow functions (#2344)

This commit is contained in:
Lipis
2020-11-06 22:06:39 +02:00
committed by GitHub
parent e05acd6fd9
commit a20f3240fd
19 changed files with 304 additions and 336 deletions

View File

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