export type IRect = Readonly < Pick < ClientRect | DOMRect , "left" | "top" | "right" | "bottom" > > ; export namespace Rect { export const empty = Object . freeze ( { left : + Infinity , top : + Infinity , right : - Infinity , bottom : - Infinity } ) ; }