kit
    Preparing search index...

    Function getOffset

    • Get an element's distance from the top and left of the Document, minus the scroll of its offset parents.

      Type Parameters

      • T extends HTMLElement

      Parameters

      • elem: T

        The HTML node element

      Returns { left: number; top: number }

      Distance from the top and left in pixels