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

Create table layers as non-selectable in pywwt #89

Merged
merged 1 commit into from
Nov 8, 2022

Conversation

Carifio24
Copy link
Member

This PR updates the glue-wwt table layer to be aware of the changes in WorldWideTelescope/pywwt#334. Recent versions of pywwt have the ability to allow the user to select sources from a catalog via a mouse click, and bring that information into Python. Since we aren't using this in glue-wwt, we don't want the cursor change that accompanies mousing over a point, and so this PR creates the layer with selectable=False when the option exists. We should also see a performance improvement when there are a lot of points displayed, since the pywwt JS does some calculations to determine when the cursor is over a selectable point. Note that this PR doesn't prevent us from using selectability in the future in e.g. some selection tool - the layer's selectable attribute can be modified after creation.

@astrofrog
Copy link
Member

Rebased to get rid of the changelog entry and see if CI passes now

@astrofrog astrofrog merged commit 2c5b962 into glue-viz:main Nov 8, 2022
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.

None yet

2 participants