Camera settings
These options control the camera behavior and settings for the 3D viewer.
| Option | Type | Default | Description |
|---|---|---|---|
camera.type | String | "orthographic" | Camera projection type: orthographic (parallel projection, the crystallographic convention) or perspective (uses camera.fov). |
camera.minDistance | Number | 1 | Minimum camera distance when zooming. |
camera.maxDistance | Number | 100 | Maximum camera distance when zooming. |
camera.wheelZoomSpeed | Number | 0.0008 | Speed of zooming when using the mouse wheel. |
camera.pinchZoomSpeed | Number | 0.001 | Speed of zooming when using pinch gestures on touch devices. |
camera.initialPosition | Array | [0, 0, 10] | Initial camera position as [x, y, z] coordinates. |
camera.fov | Number | 45 | Field of view in degrees. |
camera.near | Number | 0.1 | Near clipping plane distance. |
camera.far | Number | 1000 | Far clipping plane distance. |