set roudness to null to fix drag points offset for elbows

This commit is contained in:
Ryan Di 2025-04-25 21:44:58 +10:00
parent 989cef51cc
commit 662baa3df2

View file

@ -608,7 +608,9 @@ export const switchShapes = (
fixedSegments, fixedSegments,
}, },
); );
mutateElement(element, app.scene.getNonDeletedElementsMap(), updates); mutateElement(element, app.scene.getNonDeletedElementsMap(), {
...updates,
});
} }
} }
} }
@ -776,7 +778,7 @@ const getElbowArrowProperties = (
endArrowhead: element.endArrowhead, endArrowhead: element.endArrowhead,
startBinding: element.startBinding, startBinding: element.startBinding,
endBinding: element.endBinding, endBinding: element.endBinding,
roundness: element.roundness, roundness: null,
fixedSegments: element.fixedSegments, fixedSegments: element.fixedSegments,
startIsSpecial: element.startIsSpecial, startIsSpecial: element.startIsSpecial,
endIsSpecial: element.endIsSpecial, endIsSpecial: element.endIsSpecial,
@ -1061,6 +1063,7 @@ export const convertElementType = <
type: "arrow", type: "arrow",
elbowed: true, elbowed: true,
fixedSegments: null, fixedSegments: null,
roundness: null,
}); });
return bumpVersion(nextElement); return bumpVersion(nextElement);