-
Notifications
You must be signed in to change notification settings - Fork 715
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
[feature][vx-brush] add Brush component #553
Conversation
Now the movement of BrushSelection in minimap is not smooth, I guess it is caused by the way update the main view here. I don't know if we change it to a new way e.g. using zoom or rescale might be better. The code in docs would update once the demo code updated finally. |
Thanks @geekplux for the migration/addition! I will take a look at the PR ASAP in the next day or two 🎉 |
Woo! Thanks for the PR. Haven't had a chance to do an full review but a quick read through looks good. Looks like this PR needs to update tests for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did a quick pass, will try an get the @vx/drag
re-write done so you can leverage the types.
I saw the lint test is still failed, but there is no detail info to figure out which lines caused these errors. |
TypeError: Cannot set property 'hasAwait' of null
Occurred while linting ~/vx/packages/vx-responsive/test/ScaleSVG.test.tsx:12
at Object.AwaitExpression (~/vx/node_modules/eslint/lib/rules/require-await.js:92:36)
at ReturnStatement (~/vx/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js:68:27) https://github.com/hshoff/vx/blob/master/packages/vx-responsive/test/ScaleSVG.test.tsx Can probably just disable the eslint rule for now: test('it should expose its ref via an innerRef prop', () => {
// eslint-disable-next-line require-await
return new Promise(done => { |
seems no |
@geekplux thanks again for your work on this! I am going to try and wrap up the TS project over the next week and experiment with an alpha release which will include this. Will ping you when it's out! 🙌 |
Test coverage went down which is why the build is 🔴 . Going to merge and hope we can circle back on tests. |
No problem, feel free to contact me if any issues. Merry Christmas! |
@geekplux playing with this locally I don't get the brush selection. I should have time to debug today but if you have thoughts lmk 👍 |
I think I figured it out. Will post a PR soon with a couple TS changes as well and tag you 👍 |
Thanks a lot. It's LGTM on my local windows PC and I didn't test it on other machines. It might be a CSS error if only selection area is hidden. Anyway, sounds good the solution you have found. |
Is there any documentation on how to use this? |
Closes: #556
🚀 Enhancements
Inspired and migrated from data-ui
Please check and review.