EVENTS
Since version 4.0.0
Event names
const EVENTS: {
BEFORE_RENDER: "beforeRender";
INPUT_END: "inputEnd";
INPUT_START: "inputStart";
LOAD: "load";
LOAD_START: "loadStart";
PROJECTION_CHANGE: "projectionChange";
READY: "ready";
RENDER: "render";
RESIZE: "resize";
STATIC_CLICK: "staticClick";
VIEW_CHANGE: "viewChange";
VR_END: "vrEnd";
VR_START: "vrStart"
}
Example
import View360, { EVENTS } from "@egjs/view360";
const viewer = new View360("#el_id");
viewer.on(EVENTS.READY, evt => {
console.log("View360 is ready!");
});