Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: harmonise viewer.getViewState().camera with cameraManager.getCameraState() #4623

Closed
wants to merge 2 commits into from

Conversation

nabati
Copy link
Contributor

@nabati nabati commented Jun 20, 2024

…ger.getCameraState

Type of change

Refactor

Jira ticket 📘

https://cognitedata.atlassian.net/browse/

Description 📝

For Cognite3DViewer.getViewState().camera, we do not return the rotation, whereas for cameraManager.getCameraState() we include the rotation.

Harmonise these here for less confusion

https://cognitedata.slack.com/archives/C8A0QGMLN/p1718824099346349

How has this been tested? 🔍

Has not

Test instructions ℹ️

@nabati nabati requested a review from a team as a code owner June 20, 2024 07:48
@haakonflatval-cognite
Copy link
Contributor

I don't think I want this change - getViewerState is supposed to provide a perfectly serializable JSON object representing the state, which is only intended to be read back by setViewerState. In this process, having rotation is just overkill.

@haakonflatval-cognite
Copy link
Contributor

Closing for the above reason

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants