import Event from "./Event"; declare namespace starling.events { /** * A ResizeEvent is dispatched by the stage when the size of the Flash container changes. * * Use it to update the Starling viewport and the stage size. * * * *

The event contains properties containing the updated width and height of the Flash * * player. If you want to scale the contents of your stage to fill the screen, update the * * Starling.current.viewPort rectangle accordingly. If you want to make use of * * the additional screen estate, update the values of stage.stageWidth and * * stage.stageHeight as well.

* * * * @see starling.display.Stage * * @see starling.core.Starling * */ export class ResizeEvent extends Event { /** * Creates a new ResizeEvent. */ constructor(type: string, width: number, height: number, bubbles?: boolean); /** * The updated width of the player. */ get width(): number; /** * The updated height of the player. */ get height(): number; } } export default starling.events.ResizeEvent;