Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

element-position

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

element-position - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

CODE_OF_CONDUCT.md

7

package.json
{
"name": "element-position",
"version": "0.2.3",
"version": "0.2.4",
"description": "Calculates the position of the DOM.",

@@ -19,6 +19,7 @@ "main": "dist/index.min.js",

"devDependencies": {
"tslib": "^1.9.3",
"typescript": "^3.1.4",
"rollup": "^0.66.6",
"rollup-plugin-typescript": "^0.8.1",
"rollup-plugin-uglify": "^6.0.0",
"typescript": "^3.1.3"
"rollup-plugin-typescript": "^1.0.0"
},

@@ -25,0 +26,0 @@ "scripts": {

@@ -6,3 +6,28 @@ # Element Position

## Installation
```npm install element-position```
## Issue
https://github.com/TroyTae/element-position/issues
[Please register your issue here!](https://github.com/TroyTae/element-position/issues)
## Usage
```javascript
// ES Module
const el = document.getElementById('id');
ElementPosition.maxZIndex(el);
ElementPosition.getAbsolute(el);
ElementPosition.getNestedOffset(el);
ElementPosition.getNestedScroll(el);
```
```javascript
// CommonJS or AMD
import * as p from 'element-position';
const el = document.getElementById('id');
console.log(
p.maxZIndex(el),
p.getAbsolute(el),
p.getNestedOffset(el),
p.getNestedScroll(el)
);
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc