Events
viewer2d.select
invoked when the user changes the set of selected objects in the viewer example usage const onselect = function (event) { const { selected } = event; console log("viewer2d select", "selected ", selected); }; viewer2d addeventlistener("viewer2d select", onselect); jquery const onselect = function (event, objectids) { console log("viewer2d select", "objectids ", objectids); }; $("#viewer 2d") on("viewer2d select", onselect); parameters onselect function called when the user changes the set of selected objects in the scene 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 function called when the user changes the set of selected objects in the viewer true left unhandled content type left unhandled content type event https //api jquery com/category/events/event object/ objectids the ids of the selected objects