Skip to main content

Interface: ElementRect

mugshot.ElementRect

Identify a rectangle on the screen relative to the top left corner (0, 0).

The x and y properties are named like that instead of left and top (that would match width and height in style) because it's meant to align with the builtin DOMRect type.

Properties#

height#

height: number

Defined in: packages/mugshot/src/lib/mugshot.ts:79


width#

width: number

Defined in: packages/mugshot/src/lib/mugshot.ts:78


x#

x: number

Defined in: packages/mugshot/src/lib/mugshot.ts:76


y#

y: number

Defined in: packages/mugshot/src/lib/mugshot.ts:77