lazy-widgets
Version:
Typescript retained mode GUI for the HTML canvas API
13 lines (12 loc) • 493 B
TypeScript
import type { Rect } from "./Rect.js";
/**
* Merge a list of rectangles into a single rectangle. If there are no
* rectangles to merge, then null is returned. Note that, if a single rectangle
* is supplied, that same rectangle is returned without copying.
*
* @returns Returns the merged rectangle, or null if there are no input rectangles
*
* @category Helper
*/
export declare function mergeRects(rects: [Rect, ...Rect[]]): Rect;
export declare function mergeRects(rects: []): null;