UNPKG

@ysx-libs/mobile-picker

Version:
12 lines (11 loc) 513 B
declare function closest(el: HTMLElement, selector: string): HTMLElement | null; declare function getRect(target: HTMLElement): DOMRect; declare function beyondBoundary(target: HTMLElement, container: HTMLElement): { left: boolean; right: boolean; top: boolean; bottom: boolean; }; declare function index(el: HTMLElement, selector?: string): number; declare function isRectEqual(rect1: DOMRect, rect2: DOMRect): boolean; export { closest, getRect, beyondBoundary, index, isRectEqual };