Events
viewer3d.contextmenu
invoked when the user performs a right click inside the viewer example usage const oncontextmenu = function (event) { const { intersects } = event; console log("viewer3d contextmenu", "intersects ", intersects); }; viewer3d addeventlistener("viewer3d contextmenu", oncontextmenu); jquery const oncontextmenu = function (event, objectid, intersects) { console log("viewer contextmenu", "objectid ", objectid, "intersects ", intersects); }; $("#viewer 3d") on("viewer 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 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/ objectid id of the object clicked, undefined if no object under cursor intersects intersection point of the object below the cursor, undefined if no object under cursor 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