@mcut/editor
fitCanvasToVideoCollage
Generated TypeScript API reference for the public mcut SDK.
mcut SDK / editor/src / fitCanvasToVideoCollage
Function: fitCanvasToVideoCollage()
function fitCanvasToVideoCollage(
engine,
assets,
layout): object;Defined in: packages/editor/src/timeline-operators.ts:285
Fit the project canvas to the natural bounds of an equal-aspect video collage.
Parameters
engine
assets
readonly object[]
layout
"horizontal" | "vertical"
Returns
object
height
height: number;width
width: number;