Skip to main content

Function: intersectFrames()

intersectFrames(frames): AspectFrameSize

Defined in: src/core/SafeArea.ts:64

Intersect frame rectangles that are all centered at the origin. The common rectangle has the smallest width and the smallest height.

Parameters​

frames​

readonly AspectFrameSize[]

One or more frames. Must not be empty.

Returns​

AspectFrameSize

The intersection rectangle, centered at the origin.

Throws​

If frames is empty.