feat: add drill-down and deep select support to selection state #160
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 update enhances the Selection System to provide library users with more control over navigating nested object structures. Two new options,
drillDownanddeepSelect, have been added to theSelectionStateconfiguration.1. Drill-down Selection (
drillDown)Description: Allows users to "enter" nested groups step-by-step. When enabled, a double-click (or subsequent clicks) on a previously selected group will search for and select the specific child object located at the click point.
User Experience: Instead of always selecting the top-most group, users can repeatedly click to drill into the exact component they wish to modify.
2. Deep Select (
deepSelect)Description: Provides a shortcut to bypass standard selection units (like 'highestGroup'). When enabled, holding the Ctrl (Windows) or Meta/Cmd (Mac) key during a click will force the selection logic to target the lower-level 'grid' unit immediately.
User Experience: Users can quickly select specific items within complex layouts without needing to navigate the group hierarchy manually.
How to Activate
You can enable these features by passing them as options when setting the
selectionstate via thestateManager.