CameraManager
Methods
centerOn
async centerOn(object: AdsumObject3D, animated = true: boolean, options = null: CameraCenterOnOptions|object|null): Promise<boolean, Error>
Center the camera an AdsumObject3D
Parameters:
Name | Type | Required | Default | Description |
---|---|---|---|---|
object | AdsumObject3D | Yes | - | The AdsumObject3D to center on, or null if you want the default site view |
animated | boolean | No | true | |
options | CameraCenterOnOptions | object | null | No | null | Define the CameraCenterOnOptions to use, if null it will use the one provided while instanciating AdsumWebMap |
Returns:
Resolve with a boolean indicating if the animation has been completed, or false if it has been interrupted and forcing the animation to complete in one frame.
Type: Promise<boolean, Error>
centerOnFloor
async centerOnFloor(floor: ?FloorObject, animated = true: boolean): Promise<boolean, Error>
Center the camera on the Floor using the defined Calibration on the Studio.
Parameters:
Name | Type | Required | Default | Description |
---|---|---|---|---|
floor | ?FloorObject | Yes | - | The floor to center on, or null if you want the default site view |
animated | boolean | No | true |
Returns:
Resolve with a boolean indicating if the animation has been completed, or false if it has been interrupted and forcing the animation to complete in one frame.
Type: Promise<boolean, Error>