mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Test fixes
This commit is contained in:
parent
28066034d7
commit
541725ff5a
2 changed files with 20 additions and 24 deletions
|
@ -1345,29 +1345,25 @@ const getElbowArrowData = (
|
|||
: [10, 10, 10, 10],
|
||||
hoveredEndElement ? aabbForElement(hoveredEndElement) : [10, 10, 10, 10],
|
||||
);
|
||||
const startOffsets = offsetFromHeading(
|
||||
startHeading,
|
||||
arrow.startArrowhead
|
||||
? FIXED_BINDING_DISTANCE * 4
|
||||
: FIXED_BINDING_DISTANCE * 2,
|
||||
1,
|
||||
);
|
||||
const endOffsets = offsetFromHeading(
|
||||
endHeading,
|
||||
arrow.endArrowhead
|
||||
? FIXED_BINDING_DISTANCE * 4
|
||||
: FIXED_BINDING_DISTANCE * 2,
|
||||
1,
|
||||
);
|
||||
const startElementBounds = hoveredStartElement
|
||||
? aabbForElement(
|
||||
hoveredStartElement,
|
||||
offsetFromHeading(
|
||||
startHeading,
|
||||
arrow.startArrowhead
|
||||
? FIXED_BINDING_DISTANCE
|
||||
: FIXED_BINDING_DISTANCE * 2,
|
||||
1,
|
||||
),
|
||||
)
|
||||
? aabbForElement(hoveredStartElement, startOffsets)
|
||||
: startPointBounds;
|
||||
const endElementBounds = hoveredEndElement
|
||||
? aabbForElement(
|
||||
hoveredEndElement,
|
||||
offsetFromHeading(
|
||||
endHeading,
|
||||
arrow.endArrowhead
|
||||
? FIXED_BINDING_DISTANCE
|
||||
: FIXED_BINDING_DISTANCE * 2,
|
||||
1,
|
||||
),
|
||||
)
|
||||
? aabbForElement(hoveredEndElement, endOffsets)
|
||||
: endPointBounds;
|
||||
const boundsOverlap =
|
||||
pointInsideBounds(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue