mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Add Arrowheads to Arrows (#2452)
Co-authored-by: dwelle <luzar.david@gmail.com> Co-authored-by: Lipis <lipiridis@gmail.com>
This commit is contained in:
parent
bd8e860d7f
commit
c291edfc44
25 changed files with 711 additions and 101 deletions
|
@ -90,6 +90,11 @@ const restoreElement = (
|
|||
case "draw":
|
||||
case "line":
|
||||
case "arrow": {
|
||||
const {
|
||||
startArrowhead = null,
|
||||
endArrowhead = element.type === "arrow" ? "arrow" : null,
|
||||
} = element;
|
||||
|
||||
return restoreElementWithProperties(element, {
|
||||
startBinding: element.startBinding,
|
||||
endBinding: element.endBinding,
|
||||
|
@ -102,6 +107,8 @@ const restoreElement = (
|
|||
]
|
||||
: element.points,
|
||||
lastCommittedPoint: null,
|
||||
startArrowhead,
|
||||
endArrowhead,
|
||||
});
|
||||
}
|
||||
// generic elements
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue