Events
viewer2d.click
invoked when the user clicks inside the viewer example usage const onclick = function (event) { const { intersects } = event; console log("viewer2d click", "intersects ", intersects); }; viewer2d addeventlistener("viewer2d click", onclick); jquery const onclick = function (event, location, objectid) { console log("viewer2d click", "location ", location, "objectid ", objectid); }; $("#viewer 2d") on("viewer2d 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/ 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