2
0

💄 Improve edges alignment when connected to blocks

Related to #219
This commit is contained in:
Baptiste Arnaud
2023-01-27 15:25:03 +01:00
parent 409e7643ad
commit 068f9bbd17
4 changed files with 5 additions and 5 deletions

View File

@ -343,7 +343,7 @@ export const getEndpointTopOffset = ({
if (!endpointId) return
const endpointRef = endpoints[endpointId]?.ref
if (!endpointRef?.current) return
const endpointHeight = 34 * graphScale
const endpointHeight = 20 * graphScale
return (
(endpointRef.current.getBoundingClientRect().y +
endpointHeight / 2 -