Events
viewer2d.dblclick
invoked when the user double clicks inside the viewer example usage const ondoubleclick = function (event) { const { intersects } = event; console log("viewer2d dblclick", "intersects ", intersects); }; viewer2d addeventlistener("viewer2d dblclick", ondoubleclick); jquery const ondoubleclick = function (event, location, objectid) { console log("viewer2d dblclick", "location ", location, "objectid ", objectid); }; $("#viewer 2d") on("viewer2d dblclick", ondoubleclick); parameters ondoubleclick function called when the user double clicks inside the viewer type (event object) => void event name type description intersects object object below the cursor, undefined if none srcevent object original dom event intersects name type description objectid string id of the object point vector3 docid\ gqdk6khl9iuzriegxvdd0 intersection point of the object normal vector3 docid\ gqdk6khl9iuzriegxvdd0 normal vector at the intersection point function called when the user double clicks inside the viewer type (event object, location object, objectid string?) => boolean/void event jquery event https //api jquery com/category/events/event object/ location coordinates of the position clicked name type description x number x coordinate of position clicked in pixels y number y coordinate of position clicked in pixels z number height of the last storey shown in meters objectid id of the object clicked, undefined if no object under cursor