mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
preserve bindings for labelled arrows
This commit is contained in:
parent
f113a393e6
commit
da8e97ad14
1 changed files with 6 additions and 0 deletions
|
@ -683,6 +683,12 @@ export const convertToExcalidrawElements = (
|
||||||
if (container.type === "arrow") {
|
if (container.type === "arrow") {
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
const { start, end } = element;
|
const { start, end } = element;
|
||||||
|
mutateElement(container, {
|
||||||
|
//@ts-ignore
|
||||||
|
startBinding: element?.startBinding || null,
|
||||||
|
//@ts-ignore
|
||||||
|
endBinding: element.endBinding || null,
|
||||||
|
});
|
||||||
if (start) {
|
if (start) {
|
||||||
const width = start?.width ?? 100;
|
const width = start?.width ?? 100;
|
||||||
const height = start?.height ?? 100;
|
const height = start?.height ?? 100;
|
||||||
|
|
Loading…
Add table
Reference in a new issue