ReadonlycloseDismisses the menu — call it from your item handlers.
ReadonlyhasWhether there is a non-empty text selection (for enabling a Copy item).
ReadonlyisWhether the document permits copying (PdfrxViewer.isCopyAllowed).
ReadonlypointerWhat triggered the menu ('mouse', 'touch', 'pen'), for sizing hit targets.
ReadonlyviewWhere the menu was requested, view-space CSS pixels from the canvas top-left.
What a ContextMenuBuilder is given when the context menu is requested.