antvis / antvis/X6

Selection 插件位置变化后框选位置错误

Open
#3,617 1 comment 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

### 问题描述

框选后修改位置,选框没有更新到变化后的位置中

### 重现链接

https://codesandbox.io/p/sandbox/lucid-fog-ureldw

### 重现步骤

1. 按住ctrl 框选所有节点和边
2. 点击修改位置按钮

### 预期行为

我期望看到在框选后,调整位置,选框能保持对节点/边的框选,但实际上会出现选框没有框住节点的问题。

### 平台

- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox]
- X6 版本: [1.28.2 ... ]

### 屏幕截图或视频(可选)

![1684908059231](https://github.com/antvis/X6/assets/4516510/c1fcb07a-5c85-4c35-b74c-615d24b5c1a4)

### 补充说明(可选)

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the Selection plugin and reproduce the behavior using the linked CodeSandbox: select all nodes and edges with Ctrl, then click the position-change button. Check how the selection box responds after the nodes move. Done means the selection remains aligned and continues to enclose the selected nodes and edges after their positions change.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.