Mermaid Translator Library - v1.1.0
    Preparing search index...

    Function getPopupPosition

    • Compute the popup position based on the selection rect.

      Parameters

      • rect: DOMRect

        Bounding rect for the current selection.

      Returns ButtonPosition

      Popup position anchored to the selection.