-
Notifications
You must be signed in to change notification settings - Fork 3
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
centering changes #239
centering changes #239
Conversation
`c` now centers on the bounding sphere of current frame if no atoms selected initiallly center the camera on the bounding sphere on start up added event.js file to improve code organisation
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really like the idea of the event.js
and I think this will make the code much easier to read in the longterm. I have two small comments which should be fixed / discussed.
In general great addition, thanks!
Now center corresponds to overall center if no atoms are selected and to the center of selected atoms otherwise Also inverted the if loop in World since the if part was empty
for more information, see https://pre-commit.ci
Codecov Report
@@ Coverage Diff @@
## main #239 +/- ##
=======================================
Coverage 48.75% 48.75%
=======================================
Files 7 7
Lines 281 281
=======================================
Hits 137 137
Misses 144 144 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@PythonFZ check the newest version. This changes the Atoms object, make sure you're happy with that. Should not affect overall performance but adds a nice indexing functionality. Might be useful elsewhere? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
c
now centers on the bounding sphere of current frame if no atoms selectedinitiallly center the camera on the bounding sphere on start up
added event.js file to improve code organisation
@PythonFZ, I didn't move the other events to the
event.js
but should be easy to do, and would make the code a bit cleaner.