@samatawy/diagrams
    Preparing search index...

    Interface DiagramDeleteRequest

    Defines the structure of a diagram delete request event, which extends the diagram selection change event and includes an optional trigger property that represents the keyboard event that initiated the delete request. This interface can be used to provide detailed information about delete requests in the diagram, allowing for more specific handling of such events, such as confirming the delete action or performing additional cleanup.

    interface DiagramDeleteRequest {
        node?: INode;
        nodeId?: string;
        nodes: INode[];
        nodeIds: string[];
        trigger?: KeyboardEvent;
    }

    Hierarchy (View Summary)

    Index

    Properties

    node?: INode

    The node that is currently selected, if any. This property may be undefined if no single node is selected or if multiple nodes are selected.

    nodeId?: string

    The ID of the node that is currently selected, if any. This property may be undefined if no single node is selected or if multiple nodes are selected.

    nodes: INode[]

    The nodes that are currently selected. This array may be empty if no nodes are selected.

    nodeIds: string[]

    The IDs of the nodes that are currently selected. This array may be empty if no nodes are selected.

    trigger?: KeyboardEvent

    The keyboard event that triggered the delete request, if applicable. This property may be undefined if the delete request was not initiated by a keyboard event or if the event information is not available.