mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Prefer arrow functions (#2344)
This commit is contained in:
parent
e05acd6fd9
commit
a20f3240fd
19 changed files with 304 additions and 336 deletions
|
@ -334,7 +334,7 @@ export const renderScene = (
|
|||
return acc;
|
||||
}, [] as { angle: number; elementX1: number; elementY1: number; elementX2: number; elementY2: number; selectionColors: string[] }[]);
|
||||
|
||||
function addSelectionForGroupId(groupId: GroupId) {
|
||||
const addSelectionForGroupId = (groupId: GroupId) => {
|
||||
const groupElements = getElementsInGroup(elements, groupId);
|
||||
const [elementX1, elementY1, elementX2, elementY2] = getCommonBounds(
|
||||
groupElements,
|
||||
|
@ -347,7 +347,7 @@ export const renderScene = (
|
|||
elementY2,
|
||||
selectionColors: [oc.black],
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
for (const groupId of getSelectedGroupIds(appState)) {
|
||||
// TODO: support multiplayer selected group IDs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue