Skip to content

intersectRects

intersectRects(a, b): Rect | undefined

Defined in: dom/src/dom-utils/position.ts:66

The overlap of two rectangles.

Rect

A rectangle.

Rect

Another one.

Rect | undefined

The overlap; undefined when they are apart or only touch.