MCPcopy Create free account
hub / github.com/6174/comflowyspace / getNodePositionOutOfGroup

Function getNodePositionOutOfGroup

packages/common/utils/workflow.ts:32–37  ·  view source on GitHub ↗
(node: Node, containerNode: Node)

Source from the content-addressed store, hash-verified

30}
31
32export function getNodePositionOutOfGroup(node: Node, containerNode: Node) {
33 const nodePosition = node.position ?? { x: 0, y: 0 };
34 nodePosition.x = nodePosition.x + containerNode.position.x;
35 nodePosition.y = nodePosition.y + containerNode.position.y;
36 return nodePosition;
37}

Callers 1

createHookFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected