ResizeEvent
Since version 4.0.0
An event that fires when View360#resize is called.
interface ResizeEvent
Properties
New height of the canvas. (=canvas.clientHeight
)
An instance of the component that triggered this event.
A type of the event.
This value is equal to event's name.
New width of the canvas. (=canvas.clientWidth
)
Properties
height
>=4.0.0
heightnumber
New height of the canvas. (=canvas.clientHeight
)
target
>=4.0.0
target
An instance of the component that triggered this event.
Example
viewer.on("ready", evt => {
console.log(evt.target); // = viewer
});
type
>=4.0.0
typestring
A type of the event.
This value is equal to event's name.
Example
viewer.on("ready", evt => {
console.log(evt.type); // "ready"
});
width
>=4.0.0
widthnumber
New width of the canvas. (=canvas.clientWidth
)