Events
viewer2d.viewpoint
invoked when the user moves the viewpoint the viewpoint is an optional visual indicator that includes an arrow icon the viewpoint accepts mouse and touch events so that users can move it within the 2d viewer the viewpoint is typically used in conjunction with the 3d viewer to show the location and orientation of the 3d viewer camera within the 2d viewer example usage const onviewpointchange = function (event) { const { viewpoint } = event; console log("viewer2d viewpoint", "viewpoint ", viewpoint); }; viewer2d addeventlistener("viewer2d viewpoint", onviewpointchange); jquery const onviewpointchange = function (event, viewpoint) { console log("viewer2d viewpoint", "viewpoint ", viewpoint); }; $("#viewer 2d") on("viewer2d viewpoint", onviewpointchange); parameters onviewpointchange function called when the user moves the viewpoint type (event object) => void event name type description viewpoint object the current viewpoint viewpoint current direction, location and rotation of the viewpoint the location height is the height of the last shown storey in meters name type description direction vector3 docid\ gqdk6khl9iuzriegxvdd0 orientation of the viewpoint location vector3 docid\ gqdk6khl9iuzriegxvdd0 position of the viewpoint rotation number rotation of the viewpoint in degrees example { direction { x 1, y 1, }, location { x 1 0, y 50, z 1 0 }, rotation 90, } function called when the user moves the viewpoint type (event object, viewpoint object) => void event jquery event https //api jquery com/category/events/event object/ viewpoint current direction, location and rotation of the viewpoint the location height is the height of the last shown storey in meters name type description direction vector3 docid\ gqdk6khl9iuzriegxvdd0 orientation of the viewpoint location vector3 docid\ gqdk6khl9iuzriegxvdd0 position of the viewpoint rotation number rotation of the viewpoint in degrees example { direction { x 1, y 1, }, location { x 1 0, y 50, z 1 0 }, rotation 90, }