/** * Represents a rectangle defined by its origin and dimensions. * Compatible with the return value of `Element.getBoundingClientRect()`. */ export default interface Rect { /** X coordinate of the top-left corner in pixels. */ x: number; /** Y coordinate of the top-left corner in pixels. */ y: number; /** Width of the rectangle in pixels. */ width: number; /** Height of the rectangle in pixels. */ height: number; }