对于框选和群组的一点建议
- Dominant language
- TypeScript
- Stars
- 6.7k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the feature you'd like to request
目前的框选和群组设计不太符合习惯,原因如下:
1. 框选:当用户选择多个节点时,所希望的是能够同时对选中节点进行统一操作,比如同时缩放,但目前的功能则完全做不到,每个选中节点依然只能是独立操作,使得这个框选只有一个功能:就是同时移动节点,无法同时进行多节点按比例缩放。希望能够改进为如下行为:当框选多个节点时,仅显示整个选中区域的外框,不要显示各个独立节点的选中框,当拖动或缩放整个外框时,所有选中节点做相应移位或缩放;
2. 群组:当用户将多个节点合并作为一个群组时,所期望的行为是选中节点合并成了一个新的节点,而不是依然作为各自独立节点、移动居然还分主次。希望能够改进为如下行为:当多个节点合并为一个群组后,则视为一个节点,可以统一移动和缩放,仅在双击该群组后,允许对群组内的各个节点进行分别处理,群组内节点也不存在主从关系。
### Describe the solution you'd like
如上所述。
### Describe alternatives you've considered
所述行为无法用目前的方式实现。
### Your Example Website or App
_No response_
### Screenshots or Videos
_No response_
Contributor guide
Research direction
No files or tests are named. Start by reproducing multi-node selection and grouping in the editor, then trace the existing interaction entry points for selection, resizing, moving, and group editing. Done means selection supports a shared bounding box and proportional operations, while groups behave as one node until opened for editing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100