@livelybone/scroll-get
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "@livelybone/scroll-get", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "A module for get left/top distance to client or page of element", | ||
@@ -5,0 +5,0 @@ "main": "./lib/umd/index.js", |
@@ -15,2 +15,5 @@ # @livelybone/scroll-get | ||
## Global name | ||
`ScrollGet` | ||
## Usage | ||
@@ -25,2 +28,8 @@ ```js | ||
var pos1 = posRelativeToClient(document.getElementById('id')) | ||
``` | ||
``` | ||
```js | ||
// when you want to set this module as external while you are developing another module, you should import it like this | ||
import * as ScrollGet from '@livleybone/scroll-get' | ||
const {posRelativeToPage, posRelativeToClient} = ScrollGet | ||
``` |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
33
0
4115
5
21