@kubit-ui-web/react-components
Version:
Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience
17 lines (16 loc) • 951 B
TypeScript
import { Rect, VirtualElement } from '../types';
export declare const isHTMLElement: (value: Window | Node) => boolean;
export declare const isElement: (value: Window | Node | VisualViewport | VirtualElement | Rect | object) => boolean;
export declare const isShadowRoot: (node: Node) => boolean;
export declare const isTableElement: (element: Element) => boolean;
export declare const isWebKit: () => boolean;
export declare const isContainingBlock: (element: Element) => boolean;
export declare const isLastTraversableNode: (node: Node) => boolean;
export declare const isOverflowElement: (element: Element) => boolean;
/**
* Determines whether or not `.getBoundingClientRect()` is affected by visual
* viewport offsets. In Safari, the `x`/`y` offsets are values relative to the
* visual viewport, while in other engines, they are values relative to the
* layout viewport.
*/
export declare function isClientRectVisualViewportBased(): boolean;