pdfrx_web
    Preparing search index...

    Interface ContextMenuContext

    What a ContextMenuBuilder is given when the context menu is requested.

    interface ContextMenuContext {
        close: () => void;
        hasSelection: boolean;
        isCopyAllowed: boolean;
        pointerType: string;
        viewPoint: Offset;
    }
    Index
    close: () => void

    Dismisses the menu — call it from your item handlers.

    hasSelection: boolean

    Whether there is a non-empty text selection (for enabling a Copy item).

    isCopyAllowed: boolean

    Whether the document permits copying (PdfrxViewer.isCopyAllowed).

    pointerType: string

    What triggered the menu ('mouse', 'touch', 'pen'), for sizing hit targets.

    viewPoint: Offset

    Where the menu was requested, view-space CSS pixels from the canvas top-left.