Fix origin not being respected, when calulating rect

This commit is contained in:
peterkogo
2024-12-09 12:30:05 +01:00
parent 1e1eb06f2a
commit 7de640685a
2 changed files with 3 additions and 5 deletions
@@ -293,11 +293,10 @@ export function useSvelteFlow(): {
: nodeToUse.position;
const nodeWithPosition = {
id: nodeToUse.id,
...nodeToUse,
position,
width: nodeToUse.measured?.width ?? nodeToUse.width,
height: nodeToUse.measured?.height ?? nodeToUse.height,
data: nodeToUse.data
height: nodeToUse.measured?.height ?? nodeToUse.height
};
return nodeToRect(nodeWithPosition);