Skip to content

EdgeDrawCancelReason

since v1.2.0

EdgeDrawCancelReason = "noTarget" | "invalidConnection" | "invalidTarget" | "cancelled"

Reason an edge draw gesture was cancelled.

  • noTarget — the user released on empty space (no target node/port snapped)
  • invalidConnectionvalidateConnection() returned false
  • invalidTarget — the target node doesn’t exist or the target port has wrong type
  • cancelled — the gesture was aborted programmatically (e.g. Esc key, NgDiagramService.cancelActiveInteraction)