mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
mark elements params as readonly & remove unnecessary copying
This commit is contained in:
parent
88006ab426
commit
332fc518b7
9 changed files with 41 additions and 34 deletions
|
@ -34,7 +34,7 @@ export function resizeTest(
|
|||
}
|
||||
|
||||
export function getElementWithResizeHandler(
|
||||
elements: ExcalidrawElement[],
|
||||
elements: readonly ExcalidrawElement[],
|
||||
{ x, y }: { x: number; y: number },
|
||||
{ scrollX, scrollY }: SceneScroll
|
||||
) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue