mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
lint
This commit is contained in:
parent
fb4e5948fa
commit
07897a2174
36 changed files with 434 additions and 310 deletions
|
@ -34,10 +34,13 @@ const { h } = window;
|
|||
export class API {
|
||||
static setSelectedElements = (elements: ExcalidrawElement[]) => {
|
||||
h.setState({
|
||||
selectedElementIds: elements.reduce((acc, element) => {
|
||||
acc[element.id] = true;
|
||||
return acc;
|
||||
}, {} as Record<ExcalidrawElement["id"], true>),
|
||||
selectedElementIds: elements.reduce(
|
||||
(acc, element) => {
|
||||
acc[element.id] = true;
|
||||
return acc;
|
||||
},
|
||||
{} as Record<ExcalidrawElement["id"], true>,
|
||||
),
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue