Skip to content

ConnectionValidationContext

since v1.4.0

Context passed to LinkingConfig.validateConnection. It describes the operation that is being validated.

  • draw — a new edge is being drawn, by a pointer gesture or by startLinking / startLinkingFromPosition.
  • relink — an endpoint of edge is being dragged to a new target.
  • attach — NgDiagramModelService.attachEdge connects an endpoint of edge.

optional edge: Edge<object>

The existing edge whose endpoint is being connected (relink and attach only).


optional end: EdgeEnd

Which endpoint of edge is being connected (relink and attach only).


reason: "draw" | "relink" | "attach"

The operation being validated.