preserve bindings for labelled arrows

This commit is contained in:
Aakansha Doshi 2023-05-23 16:55:41 +05:30
parent f113a393e6
commit da8e97ad14

View file

@ -683,6 +683,12 @@ export const convertToExcalidrawElements = (
if (container.type === "arrow") {
//@ts-ignore
const { start, end } = element;
mutateElement(container, {
//@ts-ignore
startBinding: element?.startBinding || null,
//@ts-ignore
endBinding: element.endBinding || null,
});
if (start) {
const width = start?.width ?? 100;
const height = start?.height ?? 100;