floating-ui.utils.dom.d.ts 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. declare function getComputedStyle_2(element: Element): CSSStyleDeclaration;
  2. export { getComputedStyle_2 as getComputedStyle }
  3. export declare function getContainingBlock(element: Element): HTMLElement | null;
  4. export declare function getDocumentElement(node: Node | Window): HTMLElement;
  5. export declare function getNearestOverflowAncestor(node: Node): HTMLElement;
  6. export declare function getNodeName(node: Node | Window): string;
  7. export declare function getNodeScroll(element: Element | Window): {
  8. scrollLeft: number;
  9. scrollTop: number;
  10. };
  11. export declare function getOverflowAncestors(node: Node, list?: OverflowAncestors, traverseIframes?: boolean): OverflowAncestors;
  12. export declare function getParentNode(node: Node): Node;
  13. export declare function getWindow(node: any): typeof window;
  14. export declare function isContainingBlock(element: Element): boolean;
  15. export declare function isElement(value: unknown): value is Element;
  16. export declare function isHTMLElement(value: unknown): value is HTMLElement;
  17. export declare function isLastTraversableNode(node: Node): boolean;
  18. export declare function isNode(value: unknown): value is Node;
  19. export declare function isOverflowElement(element: Element): boolean;
  20. export declare function isShadowRoot(value: unknown): value is ShadowRoot;
  21. export declare function isTableElement(element: Element): boolean;
  22. export declare function isWebKit(): boolean;
  23. declare type OverflowAncestors = Array<Element | Window | VisualViewport>;
  24. export { }