@samatawy/diagrams
    Preparing search index...

    Interface DiagramSelectionChange

    Defines the structure of a diagram selection change event, which includes information about the selected nodes and their IDs. This interface can be used to provide detailed information about selection changes in the diagram, allowing for more specific handling of selection-related interactions and updates.

    interface DiagramSelectionChange {
        node?: INode;
        nodeId?: string;
        nodes: INode[];
        nodeIds: string[];
    }

    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.