Type Definitions
Version 8 preview
This page documents a preview of the Viewer SDK v8. APIs and content can still change before the final release.
ViewParams
Describes a camera view. An Camera can be used as ViewParams.
Properties
| position | Camera position. |
| target | Point the camera is looking at. |
| up | Up vector of the camera. |
| fov number | Vertical field of view in degrees. Only used for perspective projection. |
| isPerspective boolean | True for perspective projection, false for orthographic projection. For orthographic projection, the height of the visible area equals the distance between position and target. |
| orthoScale number | Height of the visible area for orthographic projection. If specified, the distance between position and target is adjusted to match. Only used for orthographic projection. |