fix(core): connection line pos not matching edge pos

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-04-01 00:35:45 +02:00
committed by Braks
parent 77729657fc
commit 44d1a4e3df
3 changed files with 37 additions and 20 deletions
+8 -2
View File
@@ -38,8 +38,14 @@ export function getHandles(
id: h.id || null,
type,
nodeId: node.id,
x: (node.computedPosition?.x ?? 0) + h.x + h.width / 2,
y: (node.computedPosition?.y ?? 0) + h.y + h.height / 2,
...getHandlePosition(
h.position,
{
...node.dimensions,
...node.computedPosition,
},
h,
),
})
}
return res