Events
viewer2d.contextmenu
invoked when the user performs a right click inside the viewer example usage const oncontextmenu = function (event) { const { intersects } = event; console log("viewer2d contextmenu", "intersects ", intersects); }; viewer2d addeventlistener("viewer2d contextmenu", oncontextmenu); jquery const oncontextmenu = function (event, location, objectid) { console log("viewer2d contextmenu", "location ", location, "objectid ", objectid); }; $("#viewer 2d") on("viewer2d contextmenu", oncontextmenu); parameters oncontextmenu function called when the user performs a right click inside the viewer true left unhandled content type left unhandled content type event true left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type intersects true left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type function called when the user performs a right click inside the viewer true left unhandled content type left unhandled content type event https //api jquery com/category/events/event object/ location coordinates of the position clicked true left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type objectid id of the object clicked, undefined if no object under cursor