Skip to content

scattergl selection fixes #3810

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

Merged
merged 4 commits into from
Apr 26, 2019
Merged

scattergl selection fixes #3810

merged 4 commits into from
Apr 26, 2019

Conversation

etpinard
Copy link
Contributor

fixes #3740, #2958

before (context in #3740): https://codepen.io/Convo/pen/GLZYdw
after: https://codepen.io/etpinard/pen/xemRqV

@plotly/plotly_js see commit msg in 81367f1 for more info.

- (un)selectBatch are always arrays (no more `null`)
- when selectBatch===[] && unselectBatch===[], use 'base' draws
- when selectBatch!==[] || unselectBatche!==[], switch into
  selection draw calls
- this helps handling in/out of selection scenarios
- adapt tests accordingly
... in a similar way than for scattergl in previous commit
... locking down fixes for:
    - #3740
    - #2958
@etpinard etpinard added bug something broken status: reviewable labels Apr 25, 2019
@etpinard etpinard added this to the v1.48.0 milestone Apr 25, 2019
Copy link
Contributor

@archmoj archmoj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a great fix.
@etpinard please find my question below.
Thanks.

@archmoj
Copy link
Contributor

archmoj commented Apr 26, 2019

Excellently done.
💃

@etpinard
Copy link
Contributor Author

Ok let's start merging things for 1.48.0

@etpinard etpinard merged commit 29f94b6 into master Apr 26, 2019
@etpinard etpinard deleted the scattergl-selection-fixes branch April 26, 2019 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Selection changes Z-order when using scattergl
2 participants