-
Notifications
You must be signed in to change notification settings - Fork 161
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
Tip labels should only count visible tips #915
Comments
@jameshadfield I'd like to take this. The fix, I believe, is in labels.js, line 14:
should be
As I understand it, this will make the number of nodes being checked to determine whether to show the tips calculate based only on nodes which are fully "visible", not nodes which are visible, but unselected. If this looks acceptable to you, I have made a PR. |
…count of fully visible nodes, not all in-view nodes
Background:
Currently we only display tip labels when the total number of tips in-view is below a certain threshold. This prevents hundreds of tips being displayed on big trees, and allows small trees, or zoomed in sections of trees, to display labels.
In auspice we refer to nodes / branches which are displayed on the screen as "in view". These tips may be "unselected" (e.g. filtering is applied), so that they are rendered but appear skeletal (very thin lines). This is referred to in the code to whether a tip is visible or not.
(Potentially see #237 for further information)
This issue
The hardcoded # of branches selected should only count "visibile" tips which are also in-view. For instance, filtering a large tree (many "in-view" nodes) to only have a few tips visible (e.g. select USA on the nCoV tree) should result in tip labels being displayed.
The text was updated successfully, but these errors were encountered: