feat(ui): create a canvas after dragging a panel clear for 0.5 seconds - #96
Merged
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
Dragging a single Panel completely clear of every canvas for 0.5 seconds arms canvas creation. A progress bar transitions to a green outline and a
Release to create canvasprompt. Releasing moves the entire Panel into a new canvas fitted to its physical dimensions at the drop position, including the board origin. Its contents, labels, note, internal layout and internal content groups are retained. The source canvas remains in place.Returning any part of the Panel to a canvas or leaving the board resets the dwell. Resizes and multiple-Panel drags do not arm creation; Escape cancels. Creation and transfer undo together, restoring the source canvas and its active dataset context. Cross-canvas tiling takes precedence over detachment. Both language versions of the layout guide are updated.
Validation
cargo pr-checkpassed atfdc60d0, including formatting, source size, dependency policy, both default frontends, Clippy and the reference-backend test suite.npm run buildindocs/passed (77 pages).cargo pr-checkand documentation build passed at23065db.UI display logic
This is a Panel-local direct manipulation gesture. The timer changes only the drag preview; a new canvas is created only by the user's release. It adds no Ribbon, menu or shortcut action, so no command-catalog registration is needed. The English and Simplified Chinese manuals are updated.