Skip to main content

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!");
});

Properties

BEFORE_RENDER

BEFORE_RENDER

"beforeRender"

INPUT_END

INPUT_END

"inputEnd"

INPUT_START

INPUT_START

"inputStart"

LOAD

LOAD

"load"

LOAD_START

LOAD_START

"loadStart"

PROJECTION_CHANGE

PROJECTION_CHANGE

"projectionChange"

READY

READY

"ready"

RENDER

RENDER

"render"

RESIZE

RESIZE

"resize"

STATIC_CLICK

STATIC_CLICK

"staticClick"

VIEW_CHANGE

VIEW_CHANGE

"viewChange"

VR_END

VR_END

"vrEnd"

VR_START

VR_START

"vrStart"