pivotick - v2.0.1
    Preparing search index...

    Interface DeleteContext

    interface DeleteContext {
        cascadingEdges: Edge[];
        confirm: (options?: ConfirmOptions) => Promise<boolean>;
        edges: Edge[];
        nodes: Node[];
        notes: Note[];
        origin: DeleteOrigin;
    }
    Index

    Properties

    cascadingEdges: Edge[]

    Edges that will also be destroyed as a consequence of removing nodes — graph.removeNode cascades into every incident edge. Resolved by the library, not the consumer. They follow whichever nodes survive a narrowed decision, so they can't be narrowed on their own.

    confirm: (options?: ConfirmOptions) => Promise<boolean>

    Open a confirmation modal, resolving true on confirm and false on any cancel path (Cancel, ×, overlay, Esc) — so if (!await confirm(…)) return false is the whole guard. Resolves false in UI modes with no modal slot.

    edges: Edge[]

    Edges the user asked to delete (never overlapping cascadingEdges).

    nodes: Node[]

    Nodes the user asked to delete.

    notes: Note[]

    Notes the user asked to delete.

    origin: DeleteOrigin

    Which affordance initiated the delete.