Skip to content

resize

Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.

("resize", (x: number, y: number) => void): this;

Emitted when the device screen changes size.

this

When the resize event is fired, attached handler functions are called with two parameters, the width of the screen in pixels (x) and the height of the screen in pixels (y) .