element-position
Advanced tools
Comparing version 0.2.3 to 0.2.4
{ | ||
"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) | ||
); | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9814
7
33
5