UNPKG

@ng-doc/ui-kit

Version:

<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/ng-doc/ng-doc"> <img src="https://ng-doc.com/assets/images/ng-doc.svg?raw=true" alt="Logo" height="150px"> </a>

16 lines (15 loc) 697 B
import { Point } from '@angular/cdk/drag-drop'; export declare class NgDocPositionUtils { /** * Getting the position of the element relative to the viewPort, this function is faster than BoundingClientRect, * it also takes into account the change in the position of the element through transform * @param element */ static getElementPosition(element: HTMLElement | null): Point; /** * An implementation of the element.offsetParent function, this implementation closes a bug in Firefox when it * returns an offsetParent for elements with position: fixed * @param element */ static getOffsetParent(element: HTMLElement): HTMLElement | null; }