Nimble Pirate Monitor

    element-from-absolute-point

    0.0.4 • Public • Published

    JavaScript document.elementFromAbsolutePoint()

    CI Build Status Bower version Dependency Status

    This little library adds support for finding elements using absolute X/Y coordinates of the page, especially when elements are not currently visible on the page.

    The native document.elementFromPoint() only will return elements relative to the current visible viewport and return null if the element is outside of the current visible viewport.

    Further reading

    Installation

    bower install --save element-from-absolute-point
    

    Usage

    Use as you would with document.elementFromPoint.

    var element = document.elementFromAbsolutePoint(1000000, 1000000);

    Contributing

    1. Fork it
    2. Create your feature branch (git checkout -b my-new-feature)
    3. Commit your changes (git commit -am 'Added some feature')
    4. Push to the branch (git push origin my-new-feature)
    5. Create new Pull Request

    License

    This library is distributed under the MIT license. Please see the LICENSE file.

    Install

    npm i element-from-absolute-point

    DownloadsWeekly Downloads

    0

    Version

    0.0.4

    License

    MIT

    Last publish

    Collaborators

    • kylewelsby