DiagramEventMap
Map of all available diagram events and their payload types
Properties
Section titled “Properties”clipboardPasted
Section titled “clipboardPasted”clipboardPasted:
ClipboardPastedEvent
Event emitted when clipboard content is pasted into the diagram.
This event fires when nodes and edges are added via paste operations, either through keyboard shortcuts or programmatic paste commands.
diagramInit
Section titled “diagramInit”diagramInit:
DiagramInitEvent
Event emitted when the diagram initialization is complete.
This event fires after all nodes and edges including their internal parts (ports, labels) have been measured and positioned.
edgeDrawn
Section titled “edgeDrawn”edgeDrawn:
EdgeDrawnEvent
Event emitted when a user manually draws an edge between two nodes.
This event only fires for user-initiated edge creation through the UI, but not for programmatically added edges.
groupMembershipChanged
Section titled “groupMembershipChanged”groupMembershipChanged:
GroupMembershipChangedEvent
Event emitted when nodes are grouped or ungrouped.
This event fires when the user moves nodes in or out of a group node, changing their group membership status.
nodeResized
Section titled “nodeResized”nodeResized:
NodeResizedEvent
Event emitted when a node or group size changes.
This event fires when a node is resized manually by dragging resize handles or programmatically using resize methods.
paletteItemDropped
Section titled “paletteItemDropped”paletteItemDropped:
PaletteItemDroppedEvent
Event emitted when a palette item is dropped onto the diagram.
This event fires when users drag items from the palette and drop them onto the canvas to create new nodes.
selectionChanged
Section titled “selectionChanged”selectionChanged:
SelectionChangedEvent
Event emitted when the selection state changes in the diagram.
This event fires when the user selects or deselects nodes and edges through clicking or programmatically using the diagram selection service.
selectionMoved
Section titled “selectionMoved”selectionMoved:
SelectionMovedEvent
Event emitted when selected nodes are moved within the diagram.
This event fires when the user moves nodes manually by dragging or programmatically using the diagram node service.
selectionRemoved
Section titled “selectionRemoved”selectionRemoved:
SelectionRemovedEvent
Event 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.
selectionRotated
Section titled “selectionRotated”selectionRotated:
SelectionRotatedEvent
Event emitted when a node is rotated in the diagram.
This event fires when the user rotates a node manually using the rotation handle or programmatically using the diagram node service.
viewportChanged
Section titled “viewportChanged”viewportChanged:
ViewportChangedEvent
Event emitted when the viewport changes through panning or zooming.
This event fires during pan and zoom operations, including mouse wheel zoom, and programmatic viewport changes.