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