mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-13 04:20:05 +02:00
feat: vertical align for labelled arrows
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user