Methods
Viewpoint
setViewpoint
sets the location and orientation of 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 viewpoint = { direction 90, location { x 1, y 1, }, }; viewer2d setviewpoint(viewpoint); const viewpoint = { direction { x 1, y 0, }, location { x 1, y 1, }, }; viewer2d setviewpoint(viewpoint); parameters viewpoint location and orientation of the viewpoint type required object yes properties name type required description direction number or vector2 docid\ hfhnmbfsrrrisube9wggy yes orientation of the viewpoint in degrees or normalized vector location vector2 docid\ hfhnmbfsrrrisube9wggy yes position of the viewpoint