# get-element-offset

> Get accurate DOM element offset.

Latest version **1.1.0** (published 2022-12-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install get-element-offset
pnpm add get-element-offset
yarn add get-element-offset
bun add get-element-offset
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2022-12-07 |
| First published | 2022-04-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | stagas |
| Maintainers | stagas |
| Keywords | dom |

## Links

- npm: https://www.npmjs.com/package/get-element-offset
- Repository: https://git@github.com/stagas/get-element-offset
- Homepage: https://github.com/stagas/get-element-offset#readme
- Issues: https://github.com/stagas/get-element-offset/issues
- npm.io page: https://npm.io/package/get-element-offset

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2022-12-07
- 1.0.1 — 2022-04-16
- 1.0.0 — 2022-04-13

## README

<h1>
get-element-offset <a href="https://npmjs.org/package/get-element-offset"><img src="https://img.shields.io/badge/npm-v1.1.0-F00.svg?colorA=000"/></a> <a href="src"><img src="https://img.shields.io/badge/loc-9-FFF.svg?colorA=000"/></a> <a href="https://cdn.jsdelivr.net/npm/get-element-offset@1.1.0/dist/get-element-offset.min.js"><img src="https://img.shields.io/badge/brotli-182b-333.svg?colorA=000"/></a> <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-F0B.svg?colorA=000"/></a>
</h1>

<p></p>

Get accurate DOM element offset.

<h4>
<table><tr><td title="Triple click to select and copy paste">
<code>npm i get-element-offset </code>
</td><td title="Triple click to select and copy paste">
<code>pnpm add get-element-offset </code>
</td><td title="Triple click to select and copy paste">
<code>yarn add get-element-offset</code>
</td></tr></table>
</h4>


## API

<p>  <details id="getElementOffset$1" title="Function" open><summary><span><a href="#getElementOffset$1">#</a></span>  <code><strong>getElementOffset</strong></code><em>(el, maxDepth)</em>    </summary>  <a href=""></a>  <ul>    <p>    <details id="el$3" title="Parameter" ><summary><span><a href="#el$3">#</a></span>  <code><strong>el</strong></code>    </summary>    <ul><p><span>HTMLElement</span></p>        </ul></details><details id="maxDepth$4" title="Parameter" ><summary><span><a href="#maxDepth$4">#</a></span>  <code><strong>maxDepth</strong></code>  <span><span>&nbsp;=&nbsp;</span>  <code>Infinity</code></span>  </summary>    <ul><p>number</p>        </ul></details>  <p><strong>getElementOffset</strong><em>(el, maxDepth)</em>  &nbsp;=&gt;  <ul>{<p>  <details id="x$6" title="Property" ><summary><span><a href="#x$6">#</a></span>  <code><strong>x</strong></code>    </summary>  <a href=""></a>  <ul><p>number</p>        </ul></details><details id="y$7" title="Property" ><summary><span><a href="#y$7">#</a></span>  <code><strong>y</strong></code>    </summary>  <a href=""></a>  <ul><p>number</p>        </ul></details></p>}</ul></p></p>    </ul></details></p>



## Contributing

[Fork](https://github.com/stagas/get-element-offset/fork) or [edit](https://github.dev/stagas/get-element-offset) and submit a PR.

All contributions are welcome!

## License

<a href="LICENSE">MIT</a> &copy; 2022 [stagas](https://github.com/stagas)

---
_Source: https://npm.io/package/get-element-offset · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
