UNPKG

@exadel/esl

Version:

Exadel Smart Library (ESL) is the lightweight custom elements library that provide a set of super-flexible components

17 lines (16 loc) 659 B
import { Rect } from './rect'; /** * Gets the window object associated with a document of the specified element. * @param node - element for which to get window * */ export declare function getWindow(node: Node | Window): Window; /** * Gets the size and position of the window (size also accounts for the height of * the horizontal scrollbar and width of the vertical scrollbar, if they are visible). */ export declare function getWindowRect(wnd?: Window): Rect; /** * Gets the size and position of the viewport (like window rect but excluding * the size of rendered scrollbars if any) */ export declare function getViewportRect(wnd?: Window): Rect;