add arrowBoundToElement check

This commit is contained in:
dwelle 2025-04-30 10:32:43 +02:00
parent 0d3e9cb1bc
commit 9ea9275fbd
2 changed files with 6 additions and 2 deletions

View file

@ -285,6 +285,10 @@ export const isBoundToContainer = (
);
};
export const isArrowBoundToElement = (element: ExcalidrawArrowElement) => {
return !!element.startBinding || !!element.endBinding;
};
export const isUsingAdaptiveRadius = (type: string) =>
type === "rectangle" ||
type === "embeddable" ||