Skip to content

SelectionRemovedEvent

since v0.8.0

Event payload emitted when selected elements are deleted from the diagram.

This event fires when the user deletes nodes and edges using the delete key, or programmatically through the diagram service.

deletedEdges: Edge<object>[]

Edges that were deleted from the diagram


deletedNodes: Node[]

Nodes that were deleted from the diagram


detachedEdges: Edge<object>[]

Edges that were detached into dangling edges instead of being deleted (see danglingEdges.detachOnNodeDelete). The snapshots are taken after the detach: the freed endpoints already have an empty source/target and their anchor positions set. Empty when nothing was detached.

1.4.0