Add support for canvas layouts and blank spacer zones#110
Open
ChaoticGood007 wants to merge 4 commits into
Open
Add support for canvas layouts and blank spacer zones#110ChaoticGood007 wants to merge 4 commits into
ChaoticGood007 wants to merge 4 commits into
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Overview
This PR implements support for custom Canvas / Overlapping Layouts (
type: 2) in thegSnaplayout editor, allowing users to define freely-positioned, overlapping window regions alongside standard Grid layouts. It adds a native dropdown dialog selector to choose the layout type when creating new layouts, drag-and-drop movement, edge/corner resizing, double-click zone creation, standard splitting/editing controls, and customizable overlap snapping preferences.Key Features Added
1. Canvas / Overlapping Layout Type (
type: 2)type: 2) supporting absolute coordinates (x,y,w,h) instead of traditional grid constraints.2. Interactive Canvas Editor
ns-resize,ew-resize) or corners (nwse-resize,nesw-resize) to resize zones with appropriate cursor feedback.3. Layout Type Selection Dropdown in Creation Dialog
PopupMenudropdown menu selector to the layout creation dialog (where previously only layout naming was supported)."Grid Layout"and"Canvas Layout"."Layout Type:"on the left and the selector button on the right.PopupMenuManagerto manage overlay focus and prevent pointer/click lockouts.Main.uiGroup.4. Overlap Snapping Strategy Preference Setting
Technical Implementations
cursor_typetoStWidgetinsidegnometypes.tsfor clean TypeScript compilation.README.mdto detail both Grid and Canvas editing controls.Verification & Testing