UNPKG

@taiga-ui/cdk

Version:

Base library for creating Angular components and applications using Taiga UI principles regarding of actual visual appearance

12 lines (11 loc) 340 B
/** * Calculates offset for an element relative to it's parent several levels above * * @param host parent element * @param element * @return object with offsetTop and offsetLeft number properties */ export declare function tuiGetElementOffset(host: Element, element: HTMLElement): { offsetLeft: number; offsetTop: number; };