-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: bottom strategy controls go under selection outline (#6547)
**Problem:** ![image](https://github.com/user-attachments/assets/32e2698d-3d12-4e98-a37c-5ec411a3408c) Problem: The selection outline lives below the grid cell outline. Desired behavior:the grid cell outline should be among the bottommost controls/decorators we draw. **Fix:** The strategy controls already have a setting whether they want to be bottom, undefined or top. The fix is to actually sort them into three arrays by their position, and then render the bottom batch under any other control in NewCanvasControls. Mid and Top remain where they were. **Commit Details:** (< vv pls delete this section if's not relevant) - Added helper pushUniquelyBy - useGetApplicableStrategyControls exhaustively collects bottom, middle and top controls - NewCanvasControls is updated
- Loading branch information
1 parent
9c831a1
commit 7617ff1
Showing
5 changed files
with
84 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters