@angular2-material/core
Version:
Angular 2 Material core
17 lines (16 loc) • 436 B
TypeScript
/**
* Simple utility for getting the bounds of the browser viewport.
* TODO: internal
*/
export declare class ViewportRuler {
/** Gets a ClientRect for the viewport's bounds. */
getViewportRect(): ClientRect;
/**
* Gets the (top, left) scroll position of the viewport.
* @param documentRect
*/
getViewportScrollPosition(documentRect?: ClientRect): {
top: number;
left: number;
};
}