Skip to content

Commit

Permalink
chore: update tsdocs and API file
Browse files Browse the repository at this point in the history
  • Loading branch information
haakonflatval-cognite committed Jul 17, 2024
1 parent 4f9a853 commit b4a1cce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions viewer/packages/camera-manager/src/CameraManagerHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@ export class CameraManagerHelper {
* Updates near and far plane of the camera based on the bounding box.
* @param camera Used camera instance.
* @param boundingBox Bounding box of all objects on the scene.
* @param nearAndFarPlaneBuffers to read from
* @param cameraFarBuffers
* @deprecated use instance method instead
*/
static updateCameraNearAndFar(camera: PerspectiveCamera, boundingBox: Box3): void {
Expand All @@ -126,6 +124,11 @@ export class CameraManagerHelper {
);
}

/**
* Updates near and far plane of the camera based on the bounding box.
* @param camera Used camera instance.
* @param boundingBox Bounding box of all objects on the scene.
*/
public updateCameraNearAndFar(camera: PerspectiveCamera, boundingBox: Box3): void {
CameraManagerHelper.updateCameraNearAndFarInternal(
camera,
Expand Down
2 changes: 2 additions & 0 deletions viewer/reveal.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,9 @@ export class CameraManagerHelper {
};
static calculateNewRotationFromTarget(camera: PerspectiveCamera, newTarget: Vector3): Quaternion;
static calculateNewTargetFromRotation(camera: PerspectiveCamera, rotation: Quaternion, currentTarget: Vector3, position: Vector3): Vector3;
// @deprecated
static updateCameraNearAndFar(camera: PerspectiveCamera, boundingBox: Box3): void;
updateCameraNearAndFar(camera: PerspectiveCamera, boundingBox: Box3): void;
}

// @public (undocumented)
Expand Down

0 comments on commit b4a1cce

Please sign in to comment.