containBoxSize

See source code

Contains the size within the given box size

function containBoxSize(
  originalSize: BoxWidthHeight,
  containBoxSize: BoxWidthHeight
): BoxWidthHeight

Parameters

NameDescription

originalSize

The size of the asset

containBoxSize

The container size

Returns

Adjusted size

Prev
centerSelectionAroundPoint
Next
copyAs
hi

We use cookies on this website.
Learn more in our Cookie Policy.