-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Mixin for plugin_opened and use for compass #1153
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1153 +/- ##
==========================================
- Coverage 76.86% 76.10% -0.76%
==========================================
Files 87 87
Lines 6661 6667 +6
==========================================
- Hits 5120 5074 -46
- Misses 1541 1593 +52
Continue to review full report at Codecov.
|
A quick test with Compass (without #1152) seems very promising! If we want to focus on Compass, Imviz viewer also manually redraw at two other places but we can leave those alone unless performance becomes a problem again:
|
I think in both of these cases, |
Please rebase to pick up new matrix, thanks! |
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 don't see any reason not to do this.
9455528
to
e83238b
Compare
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 can confirm the code is code. Nice work! 😄
Description
This pull request moves the logic in LineAnalysis to act differently if the plugin is opened or closed into the
PluginTemplateMixin
to be available to all plugins, and then used in the compass plugin to only re-draw the compass when the plugin is opened.Checklist for package maintainer(s)
This checklist is meant to remind the package maintainer(s) who will review this pull request of some common things to look for. This list is not exhaustive.
trivial
label.CHANGES.rst
?