ProjectionChangeEvent
Since version 4.0.0
An event that fires after projection changes
interface ProjectionChangeEvent
Properties
An instance of new projection applied
An instance of the component that triggered this event.
A type of the event.
This value is equal to event's name.
Properties
projection
>=4.0.0
projection
An instance of new projection applied
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"
});