feat: rectangle and brush type lasso selection #212
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds two new lasso types for selecting points: rectangle and brush. It also adds support for removing selected points and mapping multiple action onto the same modifier key.
In addition, this PR updates the example pages by moving settings to a Tweakpane panel.
Description
'rectangle'
and'brush'
. The lasso type can be changed vialassoType
. Additionally, for the brush lasso, you can adjust the brush size vialassoBrushSize
. The default lasso type is'freeform'
. (#186)keyMap
withactionKeyMap
to allow triggering multiple actions with the same modifier key.'remove'
key action to allow removing selecting points. By default, to rgitemove selected points hold downALT
and then lasso around selected points. (#105)Fixes #186
Fixes #105
Illustrating the brush and rectangle lasso types. When holding down
ALT
(by default), you can remove points from the selection (new). And when holding downCMD
(by default), you can add points to the selection (existed before).Screen.Recording.2025-01-19.at.1.39.43.PM.mp4
Checklist
CHANGELOG.md
updatedREADME.md
added or updated