mcut
@mcut/timeline

getLayout

Generated TypeScript API reference for the public mcut SDK.

mcut SDK


mcut SDK / timeline/src / getLayout

Function: getLayout()

function getLayout(layouts, layoutId):
  | {
  id: string;
  name: string;
  slots: object[];
}
  | null;

Defined in: packages/timeline/src/layouts.ts:99

The layout with this id, or null.

Parameters

layouts

readonly object[]

layoutId

string

Returns

Type Literal

{
  id: string;
  name: string;
  slots: object[];
}

id

id: string;

name

name: string;

slots

slots: object[];

Paint order: first slot is painted first (bottom).


null

On this page