Loading...

Options

Required type

string

Plugin type

aspect

number | 'auto'

Camera viewport aspect ratio, only valid in perspective camera.

  • number : Specific aspect ratio

  • 'auto' : Automatically set to the aspect ratio of the canvas

azimuth

number

Azimuth

cameraType

'orbiting' | 'exploring' | 'tracking'

Camera type

  • 'orbiting': Fixed viewpoint, change camera position

  • 'exploring': Similar to orbiting, but allows the camera to rotate between the North Pole and the South Pole

  • 'tracking': Fixed camera position, change viewpoint

distance

number Default: 500

The distance from the camera to the target

elevation

number

Elevation

far

number

The position of the far plane

fov

number

Camera field of view, only valid in perspective camera

maxDistance

number

Maximum distance

minDistance

number

Minimum distance

near

number

The position of the near plane

projectionMode

'perspective' | 'orthographic'

Projection mode, perspective projection is only valid in 3D scenes

  • 'perspective' : perspective projection

  • 'orthographic' : Orthogonal projection

roll

number

Roll

API