Vertex Viewer SDK
    Preparing search index...

    Variable containFitConst

    containFit: (
        to: Dimensions.Dimensions,
        dimensions: Dimensions.Dimensions,
    ) => Dimensions.Dimensions

    Returns a Dimensions where the longest length of dimensions will be equal to the shortest length of to. The shortest length of dimensions will be proportionally scaled to match the aspect ratio of dimensions.

    Type Declaration

    #cropFit()