Interface

IWindowResizeEvent

IWindowResizeEvent

Event emitted when the viewport/window size changes.

View Source lib/engine/interfaces.ts, line 336

Example

const e: IWindowResizeEvent = { width: window.innerWidth, height: window.innerHeight };

Members

number

# height

The new height of the window (innerHeight) in pixels

.

The new height of the window (innerHeight) in pixels

View Source lib/engine/interfaces.ts, line 351

number

# width

The new width of the window (innerWidth) in pixels

.

The new width of the window (innerWidth) in pixels

View Source lib/engine/interfaces.ts, line 347