@odoo/o-spreadsheet
Version:
A spreadsheet component
9 lines (8 loc) • 464 B
TypeScript
import { Rect } from "../types";
/**
* Compute the intersection of two rectangles. Returns nothing if the two rectangles don't overlap
*/
export declare function rectIntersection(rect1: Rect, rect2: Rect): Rect | undefined;
/** Compute the union of the rectangles, ie. the smallest rectangle that contain them all */
export declare function rectUnion(...rects: Rect[]): Rect;
export declare function isPointInsideRect(x: number, y: number, rect: Rect): boolean;