@ysx-libs/mobile-picker
Version:
A mobile list picker plugin, use vanilla ts
12 lines (11 loc) • 513 B
TypeScript
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 };