UNPKG

ng-devui

Version:

DevUI components based on Angular

26 lines (25 loc) 950 B
import { DocumentRef, WindowRef } from 'ng-devui/window-ref'; import * as i0 from "@angular/core"; export declare class PositionService { private documentRef; private windowRef; constructor(documentRef: DocumentRef, windowRef: WindowRef); position(element: HTMLElement, round?: boolean): any; offset(element: HTMLElement, round?: boolean): { height: number; width: number; top: number; bottom: number; left: number; right: number; }; getScrollParent(element: any): any; positionElements(hostElement: HTMLElement, targetElement: HTMLElement, placement: string | string[], appendToBody?: boolean): any; private getPlacement; private isInViewPort; private getStyle; private isStaticPositioned; private offsetParent; static ɵfac: i0.ɵɵFactoryDeclaration<PositionService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<PositionService>; }