mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Review fix
This commit is contained in:
parent
d17c29358b
commit
6668945282
1 changed files with 5 additions and 1 deletions
|
@ -61,7 +61,11 @@ export const mutateElement = <TElement extends Mutable<ExcalidrawElement>>(
|
||||||
...updates,
|
...updates,
|
||||||
angle: 0 as Radians,
|
angle: 0 as Radians,
|
||||||
...updateElbowArrowPoints(
|
...updateElbowArrowPoints(
|
||||||
element as ExcalidrawElbowArrowElement,
|
{
|
||||||
|
...element,
|
||||||
|
x: updates.x || element.x,
|
||||||
|
y: updates.y || element.y,
|
||||||
|
},
|
||||||
elementsMap as NonDeletedSceneElementsMap,
|
elementsMap as NonDeletedSceneElementsMap,
|
||||||
updates as ElementUpdate<ExcalidrawElbowArrowElement>,
|
updates as ElementUpdate<ExcalidrawElbowArrowElement>,
|
||||||
options,
|
options,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue