You are reading the documentation for the version 2 of the ShapeDiver viewer API. Free support for this viewer version will be discontinued on June 1st, 2024.

Please refer to the version 3 documentation here. See also the migration guide from version 2 to version 3 here.

Class: CameraApiInterface

CameraApiInterface~ CameraApiInterface

Interface for the CameraApi. The CameraApi implements all functionality related to the camera.

//@interface CameraApiInterface

Methods

<abstract> get()

Returns the position and target of the camera as a CameraDefinition. If no target is available for this type of camera, the property target is undefined.

Returns:
Type Description
CameraDefinition

The current camera definition

Type Definitions

CameraDefinition

The camera definition including the camera's position and target as Point3d.

Type:
  • Object
Properties:
Name Type Description
position Point3d

The position of the camera in the scene

target Point3d

The position of the target in the scene

ShapeDiver 3D Viewer, Copyright © 2015-2018 ShapeDiver GmbH. Documentation generated by JSDoc 3.5.5 on Tue Jan 8th 2019 using the DocStrap template.