Class: Sizes

Sizes()

Sizes class to manage window size and related events. Extends EventEmitter to emit 'resize' events.

Constructor

new Sizes()

Creates an instance of Sizes. Initializes width, height, and pixel ratio based on window dimensions. Sets up a resize event listener to update dimensions and trigger 'resize' events.
Source:

Members

height

Getter for the height of the window.
Source:

height

Setter for the height of the window.
Source:

pixelRatio

Getter for the pixel ratio of the window.
Source:

pixelRatio

Setter for the pixel ratio of the window.
Source:

width

Getter for the width of the window.
Source:

width

Setter for the width of the window.
Source: