ConnectionValidationContext
since v1.4.0Context passed to LinkingConfig.validateConnection. It describes the operation that is being validated.
draw— a new edge is being drawn, by a pointer gesture or bystartLinking/startLinkingFromPosition.relink— an endpoint ofedgeis being dragged to a new target.attach—NgDiagramModelService.attachEdgeconnects an endpoint ofedge.
Properties
Section titled “Properties”
optionaledge:Edge<object>
The existing edge whose endpoint is being connected (relink and attach only).
optionalend:EdgeEnd
Which endpoint of edge is being connected (relink and attach only).
reason
Section titled “reason”reason:
"draw"|"relink"|"attach"
The operation being validated.