Skip to content

frontend-web-editor


Function: GetEdgePosition() ​

GetEdgePosition(node, intersectionPoint): Position

Defined in: utils/bayesianNodeIntersectionCalculator.ts:47

Determines the position on a node's edge where an edge should connect, based on an intersection point.

Parameters ​

node ​

Node

The node to which an edge is connecting.

intersectionPoint ​

XYPosition

The calculated intersection point where the edge meets the node's boundary.

Returns ​

Position

The position (Position) on the node's edge where the edge should connect, or null if the node's properties are not fully defined.

Remarks ​

This function determines whether an edge should connect to the top, bottom, left, or right side of a node based on the intersection point provided.