mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-23 01:10:10 +02:00
preserve bindings for labelled arrows
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user