Interface DimensionChangeEvent

Fired when the dimensions of the HTML element changes.

interface DimensionChangeEvent {
    date: Date;
    height: number;
    type: "dimensionchange";
    width: number;
}

Hierarchy (view full)

  • Event<"dimensionchange">
    • DimensionChangeEvent

Properties

Properties

date: Date

The creation date of the event.

height: number

The current height of the player's HTML element, in pixels.

type

The type of the event.

width: number

The current width of the player's HTML element, in pixels.