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
brush.extent does not appear to resize the invisible overlay #43
Comments
|
You need to re-render the brush after you reconfigure it using selection.call(brush). The brush object doesn’t retain any reference to the selection you bind it to, so the only way to change the displayed state of the brush is to re-render it with brush or brush.move. |
Thanks. This is what we ended up doing. We though it was unintended behavior. |
Thanks, this brush re-rendering suggestion helped me out too in a similar situation. |
We expect (maybe wrongly) that a call to
brush.extent
would resize the invisible overlay capturing mouse events but it does not appear to be the case.Our usecase for making such a call is to adjust the overlay when the figure is resized. We also
move
the brush to correspond to the previously selected values.The text was updated successfully, but these errors were encountered: