Events

viewer2d.contextmenu

Invoked when the user performs a right click inside the viewer.

Example



Usage

JS
jQuery


Parameters

onContextMenu

JS
jQuery

Function called when the user performs a right click inside the viewer.

Type

(event: Object) => Void

event

Name

Type

Description

intersects

Object

Object below the cursor, undefined if none

preventDefault

Function

Disable space selection for right click event

srcEvent

Object

Original DOM event

intersects

Name

Type

Description

objectId

String

Id of the object

point

Vector3

Intersection point of the object

normal

Vector3

Normal vector at the intersection point