🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
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

to
0.3.6

tsconfig.json

22

index.d.ts

@@ -0,20 +1,10 @@

import { Coordinates } from "type/coordinates";
import { PositionRect } from "type/position-rect";
declare namespace ElementPosition {
function getNestedOffset(el: HTMLElement): {
top: number,
left: number,
right: number,
bottom: number
}
function getNestedScroll(el: HTMLElement): {
x: number,
y: number
}
function getCoordinates(el: HTMLElement): {
top: number,
left: number,
right: number,
bottom: number
}
function getNestedOffset(el: HTMLElement): PositionRect
function getNestedScroll(el: HTMLElement): Coordinates
function getCoordinates(el: HTMLElement): PositionRect
}
export = ElementPosition;
{
"name": "element-position",
"version": "0.3.5",
"version": "0.3.6",
"description": "Calculates the position of the DOM.",

@@ -5,0 +5,0 @@ "main": "dist/index.min.js",