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.3.5 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",

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