findLayoutForSurface
function findLayoutForSurface<T>( surfaceAspectRatio: AspectRatio, layouts: T[],): { index: number; layout: T;};Defined in: dynamic-line-utils/src/helpers/layoutHelpers.ts:11
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T extends LayoutWithAspectRatio |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
surfaceAspectRatio | AspectRatio |
layouts | T[] |
Returns
Section titled “Returns”{ index: number; layout: T;}index: number;layout
Section titled “layout”layout: T;