Repository navigation
feat(canvas): 节点右键菜单(生成 / 复制一份 / 存为角色 / 加入泳道 / 在序列中定位 / 删除)+ 适应全部 / 适应选中 + Ctrl D / Ctrl ↵ - #292
Merged
Merged
Conversation
节点右键菜单(复用 PR-8a 的 CanvasMenuHost / CanvasMenuPanel,宽 196、不带搜索框):卡片上右键,没选中的先单选它,已在多选里的保持多选。生成 · 复制一份 | 存为角色 · 加入泳道 › · 在序列中定位 | 删除,不可用的置灰不隐藏(判据 util/node_menu_model.dart)。生成先冲挂起的防抖写入再交空补丁走 InspectorSubmitController.submit(提示词以库里那一行为准,不拿可能过期的内存节点去盖);复制一份同类型 / typeConfig / 泳道、右下偏一个 lg、只单选不挪相机、不复制边与产物;存为角色走 InkNameDialog + createFromImage;加入泳道是子菜单(色点 + 名称、当前那条打勾不可点、移出泳道),多选整批走 moveNode,位置一并挪进目标道的带里;在序列中定位与标签栏「在序列中查看」共用 sequence/util/view_in_sequence.dart(从 shell_tab_bar 原样搬出);删除走 deleteNodesWithUndo。菜单本体加置灰(↑↓ 跳过)、危险色、打勾、子菜单(第二个 OverlayPortal,同一个点击区组,右 / 下放不下翻转)。 适应全部(Shift+1,缩放条「适应」与空白处「适应视图」同一个动作)/ 适应选中(Shift+2):纯函数 util/viewport_fit.dart,只缩小不放大、扣掉顶部工具条那一条与底部缩放条那一截,泳道卡片的包围盒随缩放变(按缩放二分,矩形走 nodeStageRect)。⌘0 仍是缩放复位。Ctrl+D / Ctrl+↵ / Shift+1 / Shift+2 都对文本编辑让位(提示词条里的 ⌘↵ 只提交一次),进设置快捷键页,菜单行尾键位从同一张表取。剪切 / 复制、「当下一镜的首帧」、提示词条那一截的令牌记进 BOARD。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
做了什么
画布交互的第二批,对应设计稿「右键菜单」与「快捷键」两节。这是画布重设计的 PR-8b。
节点右键菜单
createFromImage。sequence/util/view_in_sequence.dart),两边行为一致。适应全部 / 适应选中
快捷键
刻意没做的(已记进 BOARD)
截图
截图由 widget test 渲染,界面是英文。
验证
flutter analyze lib test:无问题。flutter test --exclude-tags golden:3285 通过,0 失败。已知限制(已记进 BOARD)
画布重设计 PR-8b,这批交互到这里全部完成。
🤖 Generated with Claude Code