containBoxSize
See source codeContains the size within the given box size
function containBoxSize(
originalSize: BoxWidthHeight,
containBoxSize: BoxWidthHeight
): BoxWidthHeight
Parameters
Name | Description |
---|---|
| The size of the asset |
| The container size |
Returns
Adjusted size
Prev
centerSelectionAroundPointNext
copyAs