Function: GetNodeIntersection()
GetNodeIntersection(
sourceNode,targetNode):XYPosition
Defined in: utils/bayesianNodeIntersectionCalculator.ts:14
Calculates the intersection point of an edge with the source node's boundaries when drawing an edge from the source node to the target node in a graph.
Parameters
sourceNode
Node
The source node from which the edge starts.
targetNode
Node
The target node at which the edge ends.
Returns
XYPosition
The intersection point as an XYPosition object if both nodes have dimensions and position defined, otherwise null.
Remarks
This function assumes that both the source and target nodes have width and height properties defined, as well as position. It calculates a point on the edge of the source node that is closest to the target node.
