Skip to content

Added focalPoint as prop and setting on update - #66

Merged
floryst merged 1 commit into
Kitware:masterfrom
jun-sironamedical:feature/focalpoint_prop
Jul 19, 2022
Merged

Added focalPoint as prop and setting on update#66
floryst merged 1 commit into
Kitware:masterfrom
jun-sironamedical:feature/focalpoint_prop

Conversation

@jun-sironamedical

@jun-sironamedical jun-sironamedical commented May 27, 2022

Copy link
Copy Markdown
Contributor

Issue: focalPoint is reset due to resetCamera call for each position update.
I added focalPoint as prop, and setting it after resetCamera, to retain focalpoint.

line 465
if (previous) { this.resetCamera(); }

@jun-sironamedical

jun-sironamedical commented May 27, 2022

Copy link
Copy Markdown
Contributor Author

Not sure why we need to call cameraReset every positional update but I tried to keep everything the same. Have concern on moving the order of operation to resetCamera and then setCamera, but if my logic is correct, the only difference should be focalPoint is retained.

Comment thread src/core/View.js Outdated
Comment thread src/core/View.js Outdated
@floryst
floryst force-pushed the feature/focalpoint_prop branch 3 times, most recently from abf2895 to 4b789a2 Compare July 15, 2022 16:10
@floryst
floryst force-pushed the feature/focalpoint_prop branch from 4b789a2 to ce8c428 Compare July 19, 2022 16:42
@floryst
floryst merged commit 769c19b into Kitware:master Jul 19, 2022
github-actions Bot pushed a commit that referenced this pull request Jul 19, 2022
Added focalPoint as prop and setting on update 769c19b
@jourdain

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 1.13.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants