mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: vertical align for labelled arrows
This commit is contained in:
parent
da8dd389a9
commit
66ccc254f0
2 changed files with 20 additions and 2 deletions
|
@ -793,7 +793,11 @@ export const shouldAllowVerticalAlign = (
|
|||
const hasBoundContainer = isBoundToContainer(element);
|
||||
if (hasBoundContainer) {
|
||||
const container = getContainerElement(element);
|
||||
if (isTextElement(element) && isArrowElement(container)) {
|
||||
if (
|
||||
isTextElement(element) &&
|
||||
isArrowElement(container) &&
|
||||
container.points.length > 2
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue