Skip to main content

Interface: ViewerStateEvent

viewer.ViewerStateEvent

Interface for viewer state events.

example

// The `fov` event is an example of a `ViewerStateEvent`.// Set up an event listener on the viewer.viewer.on('fov', function(e) {  console.log('A fov event has occured');});

Hierarchy#

Properties#

target#

• target: IViewer

The viewer object that fired the event.

Inherited from#

ViewerEvent.target

Defined in#

viewer/events/ViewerEvent.ts:11


type#

• type: "fov" | "moveend" | "movestart" | "position" | "pov" | "remove"

The event type.

Overrides#

ViewerEvent.type

Defined in#

viewer/events/ViewerStateEvent.ts:19