Skip to content

Rangeslider style on select fix#4022

Merged
etpinard merged 6 commits into
masterfrom
rangeslider-styleOnSelect-fixup
Jul 5, 2019
Merged

Rangeslider style on select fix#4022
etpinard merged 6 commits into
masterfrom
rangeslider-styleOnSelect-fixup

Conversation

@etpinard

@etpinard etpinard commented Jul 5, 2019

Copy link
Copy Markdown
Contributor

@plotly/plotly_js - tweaking a few things in selection / rangeslider land.

fixes #3957

before: https://codepen.io/mbkupfer/pen/zVGwoZ
after: https://codepen.io/etpinard/pen/KjxWzZ (try selecting the bars)

etpinard added 6 commits July 4, 2019 17:30
- which is a more centralised DRY place
- use nodeRangePlot3 for range-plot trace, that way
  we don't override node3 when plotting a trace in a range-plot
... for modules that define a _module.styleOnSelect method
- as they're only meant to be used on select!
... during selection mousemove.  To do so,
- make _module.styleOnSelect handle a 3rd argument
  (in practice, a d3 selection of <g.trace> of the main plot
  OR the range plot)
- similarly for _module.style methods that get called during selections
- N.B. has to "fix" one (wrong) finance select assertion
@etpinard etpinard added bug something broken status: reviewable labels Jul 5, 2019
@etpinard

etpinard commented Jul 5, 2019

Copy link
Copy Markdown
Contributor Author

Pinging @mbkupfer who seems to be very good at noticing rangeslider/selection bugs

Could you try https://codepen.io/etpinard/pen/KjxWzZ - if you get the chance? Thanks very much!

@archmoj

archmoj commented Jul 5, 2019

Copy link
Copy Markdown
Contributor

Looking good to my eyes.
@etpinard would you like to include this in 1.49.0?

@etpinard

etpinard commented Jul 5, 2019

Copy link
Copy Markdown
Contributor Author

would you like to include this in 1.49.0?

Yeah, that would be nice.

@mbkupfer

mbkupfer commented Jul 5, 2019

Copy link
Copy Markdown

Excellent. I tried to test out many different scenarios including click events and multiple series and didn't see any sync problems.
Thanks for the fix @etpinard, can't wait for the upgrade!

@archmoj archmoj added this to the v1.49.0 milestone Jul 5, 2019
@archmoj

archmoj commented Jul 5, 2019

Copy link
Copy Markdown
Contributor

@mbkupfer your review is much appreciated.

@etpinard thanks for the fix.
💃

@etpinard
etpinard merged commit 8d4ab24 into master Jul 5, 2019
@etpinard
etpinard deleted the rangeslider-styleOnSelect-fixup branch July 5, 2019 17:53
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.

Rangeslider selection display not updating

3 participants