ResizeManager
Implements
IResizeManager
Constructors
new ResizeManager()
new ResizeManager(
app
,pSizeMin
?,pSizeMax
?):ResizeManager
Parameters
• app: Application
<any
>
• pSizeMin?: Point
• pSizeMax?: Point
Returns
Source
Accessors
options
get
options():ResizeManagerOptions
set
options(value
):void
Parameters
• value: ResizeManagerOptions
Returns
ResizeManagerOptions
Source
scale
get
scale():number
Returns
number
Source
scaleX
get
scaleX():number
Returns
number
Source
scaleY
get
scaleY():number
Returns
number
Source
screenSize
get
screenSize():Point
Returns
Point
Source
size
get
size():Point
Returns
Point
Source
sizeMax
set
sizeMax(pSize
):void
Parameters
• pSize: Point
Source
src/utils/ResizeManager.ts:101
sizeMin
set
sizeMin(pSize
):void
Parameters
• pSize: Point
Source
useAspectRatio
get
useAspectRatio():boolean
Returns
boolean
Source
Methods
getScaleRatio()
getScaleRatio(
size
):number
Parameters
• size: Point
= undefined
Returns
number
Source
src/utils/ResizeManager.ts:138
getSize()
getSize():
Point
Returns
Point
Implementation of
IResizeManager.getSize
Source
src/utils/ResizeManager.ts:118
getStageScale()
getStageScale():
number
Returns
number
Source
src/utils/ResizeManager.ts:158
initialize()
initialize():
void
Returns
void
Implementation of
IResizeManager.initialize
Source
src/utils/ResizeManager.ts:114
resize()
resize():
void
Returns
void
Implementation of
IResizeManager.resize
Source
src/utils/ResizeManager.ts:116
setDesiredSize()
setDesiredSize(
desiredSize
,maxFactor
):void
Parameters
• desiredSize: Point
• maxFactor: number
= 4
Returns
void