getLinkEndpointAlignment method

Alignment getLinkEndpointAlignment(
  1. ComponentData componentData,
  2. Offset targetPoint
)

Calculates an alignment of link endpoint on a component from ComponentData and targetPoint (nearest link point from this component).

With no implementation the link will attach to center of the component.

Implementation

Alignment getLinkEndpointAlignment(
  ComponentData componentData,
  Offset targetPoint,
) {
  return Alignment.center;
}