mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: reset angle when binding text to arrow
This commit is contained in:
parent
6b13e889f1
commit
d6efa0f73c
1 changed files with 5 additions and 1 deletions
|
@ -439,7 +439,7 @@ const repairContainerElement = (
|
|||
// if defined, lest boundElements is stale
|
||||
!boundElement.containerId
|
||||
) {
|
||||
(boundElement as Mutable<ExcalidrawTextElement>).containerId =
|
||||
(boundElement as Mutable<typeof boundElement>).containerId =
|
||||
container.id;
|
||||
}
|
||||
}
|
||||
|
@ -464,6 +464,10 @@ const repairBoundElement = (
|
|||
? elementsMap.get(boundElement.containerId)
|
||||
: null;
|
||||
|
||||
if (boundElement.angle) {
|
||||
(boundElement as Mutable<typeof boundElement>).angle = 0 as Radians;
|
||||
}
|
||||
|
||||
if (!container) {
|
||||
boundElement.containerId = null;
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue