Events
viewer3d.click
invoked when the user clicks inside the viewer example usage const onclick = function (event) { const { intersects } = event; console log("viewer3d click", "intersects ", intersects); }; viewer3d addeventlistener("viewer3d click", onclick); jquery const onclick = function (event, objectid, intersects) { console log("viewer click", "objectid ", objectid, "intersects ", intersects); }; $("#viewer 3d") on("viewer click", onclick); parameters onclick function called when the user clicks 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 clicks inside the viewer returning false from the onclick function will disable object selection for click event 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