Skip to content

Commit

Permalink
fix returning strictly the specified return type and not Vector3
Browse files Browse the repository at this point in the history
  • Loading branch information
nabati committed Jul 23, 2024
1 parent c0aaedf commit 6cf570a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions viewer/packages/api/src/utilities/ViewStateHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,16 @@ export class ViewStateHelper {

return {
camera: {
position: cameraPosition,
target: cameraTarget
position: {
x: cameraPosition.x,
y: cameraPosition.y,
z: cameraPosition.z
},
target: {
x: cameraPosition.x,
y: cameraPosition.y,
z: cameraPosition.z
}
},
models: modelStates,
clippingPlanes: clippingPlanesState
Expand Down

0 comments on commit 6cf570a

Please sign in to comment.