new-eagle-eye

eagle eye for webpages

Usage no npm install needed!

<script type="module">
  import newEagleEye from 'https://cdn.skypack.dev/new-eagle-eye';
</script>

README

eagle-eye

  1. introduction:

    The eagle-eye is a minimal map for web pages, in this way, users can posite their position of web pages.

  2. usage:

    step 1: include the library into your project with npm:

    npm install --save new-eagle-eye
    

    step 2: use:

    import eagleEye from 'new-eagle-eye'
    
    eagleEye.init(config)
    

    the param is a object, default value is:

    {
      show=(pageWidth >= 2 * clientWidth || pageHeight >= 2 * clientHeight)
    }
    

Enjoy😋