Methods
-
<static> innerBoxResize(containerSize, contentSize)
-
Calculate how to scale a content to fill its container in
inner-boxmode.Parameters:
Name Type Description containerSizeVector Size of container.
contentSizeVector 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-boxmode.Parameters:
Name Type Description containerSizeVector Size of container.
contentSizeVector Size of the content.
Returns:
{ left , top , scale }
- Type
- object