mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
set roudness to null to fix drag points offset for elbows
This commit is contained in:
parent
989cef51cc
commit
662baa3df2
1 changed files with 5 additions and 2 deletions
|
@ -608,7 +608,9 @@ export const switchShapes = (
|
|||
fixedSegments,
|
||||
},
|
||||
);
|
||||
mutateElement(element, app.scene.getNonDeletedElementsMap(), updates);
|
||||
mutateElement(element, app.scene.getNonDeletedElementsMap(), {
|
||||
...updates,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -776,7 +778,7 @@ const getElbowArrowProperties = (
|
|||
endArrowhead: element.endArrowhead,
|
||||
startBinding: element.startBinding,
|
||||
endBinding: element.endBinding,
|
||||
roundness: element.roundness,
|
||||
roundness: null,
|
||||
fixedSegments: element.fixedSegments,
|
||||
startIsSpecial: element.startIsSpecial,
|
||||
endIsSpecial: element.endIsSpecial,
|
||||
|
@ -1061,6 +1063,7 @@ export const convertElementType = <
|
|||
type: "arrow",
|
||||
elbowed: true,
|
||||
fixedSegments: null,
|
||||
roundness: null,
|
||||
});
|
||||
|
||||
return bumpVersion(nextElement);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue