-
Notifications
You must be signed in to change notification settings - Fork 53
[201_70] 修复图片缩放的撤销问题 #2729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
+328
−77
Closed
[201_70] 修复图片缩放的撤销问题 #2729
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
3dac574
add table scale resize handles
AXeonV de9ef80
change cursor style when over table handles
AXeonV 0ce42c8
add devel/201_69.md
AXeonV 2fd3c07
delete visible parameter
AXeonV 2198257
modify scale implementation
AXeonV 5a6d982
fix clang-format
AXeonV 8eb5a12
WIP
AXeonV File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # [201_69] 表格支持鼠标缩放 | ||
|
|
||
| ## 如何测试 | ||
| 1. 插入标宽有框表格/普通有框表格,光标此时在表格内,应该在表格框外看到蓝色的正方形缩放手柄 | ||
| 2. 标宽有框表格只有底部一个手柄,可以向下拖拽;普通有框表格有右侧、底部、右下角三个手柄,可以向右、向下、对角线拖拽 | ||
| 3. 拖拽手柄时,对应的整行/列应当先均分空间再缩放大小(例如拖动右侧的手柄时,表格的各列宽度应当均分后再整体缩放) | ||
| 4. 拖拽过程应该符合预期。鼠标在手柄范围内应该变成对应的样式,且可以拖动;鼠标在手柄外则是默认样式,且不能拖动 | ||
| 5. **表格缩放时,会根据现在的行列宽高重新平均分配宽高** | ||
| (等比例缩放时间复杂度高,会有延迟感。现实现表格行列加到20以上均不会出现明显延迟感) | ||
| 6. 表格的右侧边框和下侧边框应该可以拖拽,仅影响最后一行/列的大小,不与缩放手柄冲突 | ||
| 7. 目前暂不支持大表格/小表格的缩放,理论上这两种表格的需求量不大 | ||
|
|
||
| ### 2026/1/28 | ||
| ### What | ||
| 1. 实现了表格支持鼠标缩放 | ||
| 2. 微调表格的交互优化的实现 | ||
|
|
||
| ### How | ||
| 在开发文档中详细阐述 | ||
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR title and description describe fixing image resizing undo issues and mention adding
image-resize-markinformat-geometry-edit.scm. However, all the actual code changes in this PR are about table scaling functionality, not image resizing. The description mentions implementing mark/undo session handling for image resize, but the image resize code informat-geometry-edit.scmdoes not have such changes. This appears to be a significant discrepancy - either the PR description is incorrect, or the wrong changes were included in this PR.