Vertex Viewer SDK
    Preparing search index...

    Variable scaleFitConst

    scaleFit: (
        to: number,
        dimensions: Dimensions.Dimensions,
    ) => Dimensions.Dimensions

    Returns a Dimensions where each side of dimensions will be reduced proportionally to have an area less than or equal to the provided to value. The returned dimensions will be centered within the original bounds of dimensions.

    Type Declaration