Skip to content

feat: enhance canvas foundation capabilities#1055

Merged
hexqi merged 9 commits intoopentiny:refactor/developfrom
SonyLeo:feat/canvasAbility
Feb 19, 2025
Merged

feat: enhance canvas foundation capabilities#1055
hexqi merged 9 commits intoopentiny:refactor/developfrom
SonyLeo:feat/canvasAbility

Conversation

@SonyLeo
Copy link
Copy Markdown
Contributor

@SonyLeo SonyLeo commented Jan 21, 2025

English | 简体中文

PR

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows our Commit Message Guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • Built its own designer, fully self-validated

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

Background and solution

What is the current behavior?

Issue Number: N/A

What is the new behavior?

  1. 右键添加父级容器

    在画布中右键页面元素 -> 添加父级 -> 容器:

    image

    选中指定 容器 点击 鼠标左键,

    image

    点击 画布元素 或点击 大纲树,即可查看新增的父容器

    image

  2. 节点多选能力

点击 Ctrl + 鼠标左键 进行 多选节点 ,支持快捷键操作复制粘贴删除

image

  1. 保存撤销 基础快捷键

焦点在 画布 时,快捷键生效

功能 Win 快捷键 支持多选
保存 Ctrl + S
复制 Ctrl + C
粘贴 Ctrl + V
剪切 Ctrl + X
删除 Del
前进 Ctrl + Y
后退/撤销 Ctrl + Z
多选 Ctrl + 🖱

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Summary by CodeRabbit

Summary by CodeRabbit

Release Notes

  • New Features

    • Added multi-selection functionality for canvas elements.
    • Introduced container insertion option in context menu.
    • Enhanced keyboard interaction for multi-node operations.
    • Added the ability to filter components based on their group classification.
  • Improvements

    • Updated component initialization logic for materials.
    • Refined node insertion and selection handling, including unique ID generation and parent node validation.
    • Improved error handling for node operations, including reference node checks.
    • Enhanced visibility and control flow in canvas action components.
  • Bug Fixes

    • Corrected style calculations for canvas actions.
    • Fixed clipboard and deletion operations for multiple nodes.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants