UNPKG

react-calendar-kit

Version:

React Calendar Kit is a powerful and flexible library for building accessible and highly customizable calendar and date/time picker components in your React applications. React Calendar Kit provides a solid foundation for creating inclusive user experienc

12 lines (10 loc) 456 B
/** * Checks if two DOMRect objects intersect each other. * * @param rect1 - The first DOMRect object. * @param rect2 - The second DOMRect object. * @returns A boolean indicating whether the two DOMRect objects intersect. */ declare function areRectsIntersecting(rect1: DOMRect, rect2: DOMRect): boolean; declare function calculateIntersectionArea(rect1: DOMRect, rect2: DOMRect): number; export { areRectsIntersecting, calculateIntersectionArea };