antvis / antvis/X6

群组不支持框选/多选节点嵌入

Open
#3,636 6 comments 0 reactions 0 assignees View on GitHub
bug:selection
Dominant language
TypeScript
Stars
6.7k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug

当使用框选/多选功能时,选择多个节点
将选择的多个节点移动到群组中,群组节点只会将鼠标移动的节点嵌入群组节点内
其它被选中的节点未自动嵌入

### Your Example Website or App

https://codesandbox.io/s/vibrant-pare-yqc3if?file=/index.ts

### Steps to Reproduce the Bug or Issue

1. 将多个节点位置集中
2. 选中/框选多个节点
3. 移动框选中的子节点到群组节点内

### Expected behavior

群组节点支持批量嵌入功能
embedding中的findParent、validate支持批量节点的验证

### Screenshots or Videos

![image](https://github.com/antvis/X6/assets/33147972/0bb5e210-7922-4e65-aa1d-f6481e89acea)

### Platform

- OS: [e.g. macOS, Windows, Linux]
- Browser: [e.g. Chrome, Safari, Firefox]
- Version: [e.g. 91.1]

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Reproduce the behavior in the linked CodeSandbox by selecting multiple nodes and moving them into a group. Start with the embedding findParent and validate paths mentioned in the issue; done means all selected nodes are validated and embedded, not only the node under the pointer.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.