Skip to content

ResizerPlugin

Defined in: plugins/ResizerPlugin.ts:48

Interface for Resizer module.

Extends

Implements

Constructors

new ResizerPlugin()

new ResizerPlugin(id): ResizerPlugin

Defined in: plugins/Plugin.ts:40

Parameters

id

string = 'Plugin'

Returns

ResizerPlugin

Inherited from

Plugin.constructor

Properties

__dill_pixel_method_binding_root

__dill_pixel_method_binding_root: boolean

Defined in: plugins/Plugin.ts:37

Inherited from

Plugin.__dill_pixel_method_binding_root


id

readonly id: "resizer" = 'resizer'

Defined in: plugins/ResizerPlugin.ts:49

Implementation of

IResizerPlugin.id

Overrides

Plugin.id

Accessors

app

Get Signature

get app(): T

Defined in: plugins/Plugin.ts:45

Returns

T

Implementation of

IResizerPlugin.app

Inherited from

Plugin.app


scale

Get Signature

get scale(): number

Defined in: plugins/ResizerPlugin.ts:61

Returns

number

Implementation of

IResizerPlugin.scale


size

Get Signature

get size(): Size

Defined in: plugins/ResizerPlugin.ts:57

Returns

Size

Implementation of

IResizerPlugin.size

Methods

_cancelResize()

_cancelResize(): void

Defined in: plugins/ResizerPlugin.ts:90

Returns

void


_resize()

_resize(): void

Defined in: plugins/ResizerPlugin.ts:122

Resizes the application based on window size and module options.

Returns

void


_resizeInternal()

_resizeInternal(w, h, minWidth, minHeight, letterbox): object

Defined in: plugins/ResizerPlugin.ts:97

Parameters

w

number

h

number

minWidth

number

minHeight

number

letterbox

boolean

Returns

object

aspectRatio

aspectRatio: number

height

height: number

width

width: number


addSignalConnection()

addSignalConnection(…args): void

Defined in: plugins/Plugin.ts:71

Add signal connections to the container.

Parameters

args

SignalConnection[]

The signal connections to add.

Returns

void

Implementation of

IResizerPlugin.addSignalConnection

Inherited from

Plugin.addSignalConnection


clearSignalConnections()

clearSignalConnections(): void

Defined in: plugins/Plugin.ts:77

Returns

void

Implementation of

IResizerPlugin.clearSignalConnections

Inherited from

Plugin.clearSignalConnections


destroy()

destroy(): void

Defined in: plugins/Plugin.ts:49

Returns

void

Implementation of

IResizerPlugin.destroy

Inherited from

Plugin.destroy


initialize()

initialize(_app, options): Promise<void>

Defined in: plugins/ResizerPlugin.ts:68

Initializes the Resizer module.

Parameters

_app

IApplication

options

Partial<ResizerPluginOptions> = {}

Returns

Promise<void>

Implementation of

IResizerPlugin.initialize

Overrides

Plugin.initialize


postInitialize()

postInitialize(): Promise<void>

Defined in: plugins/ResizerPlugin.ts:76

Post-initialization of the Resizer module. when this is called, the renderer is already created, and the dom element has been appended

Returns

Promise<void>

Implementation of

IResizerPlugin.postInitialize

Overrides

Plugin.postInitialize


resize()

resize(): Promise<Size>

Defined in: plugins/ResizerPlugin.ts:80

Returns

Promise<Size>

Implementation of

IResizerPlugin.resize