fix: Multi-point arrow closeness fallback

This commit is contained in:
Mark Tolmacs
2025-11-12 10:48:03 +01:00
parent cca904dd54
commit 344aa48a90

View File

@@ -1293,6 +1293,7 @@ export const bindPointToSnapToElementOutline = (
pointFromVector(halfVector, adjacentPoint), pointFromVector(halfVector, adjacentPoint),
pointFromVector(vectorScale(halfVector, -1), adjacentPoint), pointFromVector(vectorScale(halfVector, -1), adjacentPoint),
); );
intersection = intersection =
pointDistance(edgePoint, adjacentPoint) < 1 pointDistance(edgePoint, adjacentPoint) < 1
? edgePoint ? edgePoint
@@ -1583,7 +1584,8 @@ export const updateBoundPoint = (
!isOverlapping && !isOverlapping &&
arrow.startBinding && arrow.startBinding &&
arrow.endBinding && arrow.endBinding &&
otherBindableElement otherBindableElement &&
arrow.points.length === 2
) { ) {
const startFocusPoint = getGlobalFixedPointForBindableElement( const startFocusPoint = getGlobalFixedPointForBindableElement(
arrow.startBinding.fixedPoint, arrow.startBinding.fixedPoint,