platform-bible-react
    Preparing search index...

    Function measureElement

    • Experimental

      The current viewport rect of an element, or undefined when the element has no layout at all — the case when it, or an ancestor, is display: none, as inside an inactive rc-dock tab pane. Matches measureRange's rule: an element that IS laid out still returns its box even at zero width or height (a real, positioned point, such as a collapsed caret's element), because getClientRects() is empty only when nothing was painted, never merely because a box is small.

      This export is unstable and may change shape or disappear without notice

      Parameters

      • element: Element

      Returns undefined | DOMRect