fix(heatmap): limit brush tool#1270
Conversation
| top: start.y, | ||
| left: start.x, | ||
| width: end.x - start.x - chartDimensions.left, | ||
| height: reachXAxis ? dragShape!.height - start.y : end.y - start.y, |
There was a problem hiding this comment.
dragShape can be undefined, we should be careful here
There was a problem hiding this comment.
Thank you, good catch. I added checking for dragShape in 5fc5f9c
|
jenkins test this |
|
jenkins test this |
|
jenkins test this |
|
jenkins, test this |
|
Do we want to continue to sport the unusual white border around the actually selected, snapped area? I get it if it needs to be a separate PR but is there consensus toward solving it? |
monfera
left a comment
There was a problem hiding this comment.
The code changes look good!
I see a bit of grey flashing on the very bottom of the "After" version gif, toward the end of the gif recording, not sure if it means that the issue scope is not fully met, so I'm planning to approve right after the acceptability of that flashing is clarified
Not the scope of this PR, I can't vouch for the preexisting grey/white/grey banding so I'd leave it to @markov00 to consider the timing of a design update there
|
Good call @monfera, no rush to approve this PR or anything, but the refactoring done since those initial screenshots seem to have fixed the issue. I'll update the after screenshot in the issue too. Here is a new giphy: Aug-19-2021.08-33-31.mp4 |
markov00
left a comment
There was a problem hiding this comment.
It works correctly after the last changes.
Please merge master and update the screenshots accordingly
Good to merge after that
monfera
left a comment
There was a problem hiding this comment.
LGTM!
I's not the making or the topic of this PR, could you please create and link an issue to this PR to discuss the grey/white/grey nested selection box styling concern? I think the simplest solution would be the removal of the inner grey rectangle, which looks off, is an unusual aesthetic. But maybe there have been discussions about it
|
🎉 This PR is included in version 34.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Summary
This PR restricts the brush tool to the chart container so it doesn't overflow.
Before
After
Aug-19-2021.08-33-31.mp4
Details
Issues
Fixes #1216
Checklist