regl-scatterplot
regl-scatterplot copied to clipboard
allow to deselect via lasso?
Hey @flekschas
Thanks again for this great library. As an idea I was wondering how easy it would be to after selecting different regions with the lasso tool, to then be able to deselect certain subregions also with the lasso mode, eg. when pressing shift+option+ctrl?
I am happy to have a poke at this if you think this would be a good addition?
Best
I think this would be a nice addition. And it shouldn't be too hard to implement this but it'd required adjusting a few different functions:
- We need to extend
checkModKey()to accept a tuple of action keys - We need to extend the handling of the action key map to allow combinations of multiple keys. Maybe via concatenation with
+. E.g.,alt+shift. - We need to add a new action key for removing points. E.g.,
KEY_ACTION_REMOVE - We need to extend the
select(),lassoEnd()lasso manager'send()functions to allowremove.