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 type (event object) => void event name type description selected array\[string] list of selected object ids function called when the user changes the set of selected objects in the viewer type (event object, objectids array\[string]) => void event jquery event https //api jquery com/category/events/event object/ objectids the ids of the selected objects