Methods
-
<static> innerBoxResize(containerSize, contentSize)
-
Calculate how to scale a content to fill its container in
inner-box
mode.Parameters:
Name Type Description containerSize
Vector Size of container.
contentSize
Vector Size of the content.
Returns:
{ left , top , scale }
- Type
- object
-
<static> outerBoxResize(containerSize, contentSize)
-
Calculate how to scale a content to fill its container in
outer-box
mode.Parameters:
Name Type Description containerSize
Vector Size of container.
contentSize
Vector Size of the content.
Returns:
{ left , top , scale }
- Type
- object