Skip to content

findLayoutForSurface

function findLayoutForSurface<T>(
surfaceAspectRatio: AspectRatio,
layouts: T[],
): {
index: number;
layout: T;
};

Defined in: dynamic-line-utils/src/helpers/layoutHelpers.ts:11

Type Parameter
T extends LayoutWithAspectRatio
ParameterType
surfaceAspectRatioAspectRatio
layoutsT[]
{
index: number;
layout: T;
}
index: number;
layout: T;