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 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 viewpoint current direction, location and rotation of the viewpoint the location height is the height of the last shown storey in meters 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 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 true left unhandled content type left unhandled content type 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 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 example { direction { x 1, y 1, }, location { x 1 0, y 50, z 1 0 }, rotation 90, }