Events
viewer3d.viewpoint
invoked when the viewpoint changes the viewpoint simulates the position of a camera looking at the scene example usage const onviewpointchange = function (event) { const { viewpoint } = event; console log("viewer3d viewpoint", "viewpoint ", viewpoint); }; viewer3d addeventlistener("viewer3d viewpoint", onviewpointchange); jquery const onviewpointchange = function (event, viewpoint) { console log("viewer viewpoint", "viewpoint ", viewpoint); }; $("#viewer 3d") on("viewer viewpoint", onviewpointchange); parameters onviewpointchange function called when the viewpoint changes type (event object) => void event name type description viewpoint object the current viewpoint orthogonal viewpoint name type description aspectratio number aspect ratio of the scene direction vector3 docid\ kewrhktc8iq2hlt48srfq direction of the camera location vector3 docid\ kewrhktc8iq2hlt48srfq location of the camera type string value is orthogonal up vector3 docid\ kewrhktc8iq2hlt48srfq normalized vector describing the camera orientation viewtoworldscale number the scale factor between the camera and the scene perspective viewpoint name type description aspectratio number aspect ratio of the scene direction @vector3 direction of the camera fov number field of view of the camera location vector3 docid\ kewrhktc8iq2hlt48srfq location of the camera type string value is perspective up vector3 docid\ kewrhktc8iq2hlt48srfq normalized vector describing the camera orientation function called when the viewpoint changes type (event object, viewpoint object) => void event jquery event https //api jquery com/category/events/event object/ orthogonal viewpoint name type description aspectratio number aspect ratio of the scene direction vector3 docid\ kewrhktc8iq2hlt48srfq direction of the camera location vector3 docid\ kewrhktc8iq2hlt48srfq location of the camera type string value is orthogonal up vector3 docid\ kewrhktc8iq2hlt48srfq normalized vector describing the camera orientation viewtoworldscale number the scale factor between the camera and the scene perspective viewpoint name type description aspectratio number aspect ratio of the scene direction vector3 docid\ gqdk6khl9iuzriegxvdd0 direction of the camera fov number field of view of the camera location vector3 docid\ kewrhktc8iq2hlt48srfq location of the camera type string value is perspective up vector3 docid\ kewrhktc8iq2hlt48srfq normalized vector describing the camera orientation