UNPKG

1.03 kBTypeScriptView Raw
1export declare function isBrowserIE(): boolean;
2export declare function isBrowserEdge(): boolean;
3export declare function isBrowserSafari(): boolean;
4export declare function isBrowserChrome(): boolean;
5export declare function isBrowserFirefox(): boolean;
6export declare function isIOSUserAgent(): boolean;
7export declare function getTabIndex(el: HTMLElement | null): string | null;
8export declare function getMaxDivHeight(): number;
9export declare function getScrollbarWidth(): number | null;
10export declare function isInvisibleScrollbar(): boolean;
11/** @deprecated */
12export declare function hasOverflowScrolling(): boolean;
13/**
14 * Gets the document body width
15 * from: http://stackoverflow.com/questions/1038727/how-to-get-browser-width-using-javascript-code
16 * @returns {number}
17 */
18export declare function getBodyWidth(): number;
19/**
20 * Gets the body height
21 * from: http://stackoverflow.com/questions/1038727/how-to-get-browser-width-using-javascript-code
22 * @returns {number}
23 */
24export declare function getBodyHeight(): number;