From 42f64b214c39cf55f503948c00cd795a47bdf95d Mon Sep 17 00:00:00 2001 From: moklick Date: Tue, 6 Dec 2022 16:52:38 +0100 Subject: [PATCH] chore(getNodePosOrigin): cleanup --- packages/core/src/utils/graph.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/utils/graph.ts b/packages/core/src/utils/graph.ts index ce728407..9a3d4c42 100644 --- a/packages/core/src/utils/graph.ts +++ b/packages/core/src/utils/graph.ts @@ -168,8 +168,8 @@ export const getNodePositionWithOrigin = ( ...position, positionAbsolute: node.positionAbsolute ? { - x: (node.positionAbsolute.x ?? 0) - offsetX, - y: (node.positionAbsolute.y ?? 0) - offsetY, + x: node.positionAbsolute.x - offsetX, + y: node.positionAbsolute.y - offsetY, } : position, };