Skip to content

ResizeManager

Implements

  • IResizeManager

Constructors

new ResizeManager()

new ResizeManager(app, pSizeMin?, pSizeMax?): ResizeManager

Parameters

app: Application<any>

pSizeMin?: Point

pSizeMax?: Point

Returns

ResizeManager

Source

src/utils/ResizeManager.ts:24

Accessors

options

get options(): ResizeManagerOptions

set options(value): void

Parameters

value: ResizeManagerOptions

Returns

ResizeManagerOptions

Source

src/utils/ResizeManager.ts:46


scale

get scale(): number

Returns

number

Source

src/utils/ResizeManager.ts:68


scaleX

get scaleX(): number

Returns

number

Source

src/utils/ResizeManager.ts:76


scaleY

get scaleY(): number

Returns

number

Source

src/utils/ResizeManager.ts:84


screenSize

get screenSize(): Point

Returns

Point

Source

src/utils/ResizeManager.ts:64


size

get size(): Point

Returns

Point

Source

src/utils/ResizeManager.ts:60


sizeMax

set sizeMax(pSize): void

Parameters

pSize: Point

Source

src/utils/ResizeManager.ts:101


sizeMin

set sizeMin(pSize): void

Parameters

pSize: Point

Source

src/utils/ResizeManager.ts:96


useAspectRatio

get useAspectRatio(): boolean

Returns

boolean

Source

src/utils/ResizeManager.ts:92

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

Source

src/utils/ResizeManager.ts:125