1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-04 02:09:22 +02:00
Daniel Neto 2025-07-10 12:49:02 -03:00
parent 47f2df41f5
commit 24c0191104
2754 changed files with 152589 additions and 1339109 deletions

View file

@ -1,13 +1,20 @@
export type Offset = {
width: number;
height: number;
left: number;
right: number;
top: number;
bottom: number;
absoluteTop: number;
absoluteLeft: number;
absoluteRight: number;
absoluteBottom: number;
};
/**
* Get an element position on the page relative to another element (or body)
* Get an element position on the page relative to another element (or body) including scroll offset
* Thanks to `meouw`: http://stackoverflow.com/a/442474/375966
*
* @api private
* @returns Element's position info
*/
export default function getOffset(element: HTMLElement, relativeEl?: HTMLElement): {
width: number;
height: number;
left: number;
top: number;
};
export default function getOffset(element: HTMLElement, relativeEl?: HTMLElement): Offset;