antvis / antvis/X6

同时添加edge-editor工具和调整箭头工具的使用

Open
#4,307 5 comments 0 reactions 0 assignees View on GitHub
oscp type: bug 缺陷
Dominant language
TypeScript
Stars
6.7k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug

同时添加edge-editor工具和调整箭头工具(source-arrowhead、target-arrowhead),
在移除调整箭头工具时,会移除edge-editor编辑的label文本

### Your Example Website or App

暂无

### Steps to Reproduce the Bug or Issue

1、编辑文本后鼠标移出边edge就会导致label文本的丢失
2、编辑文本后鼠标点击边edge会保存label文本不消失

### Expected behavior

预期的正常行为应该是,在具备调整箭头工具的同时,可以正常使用edge-editor工具

### Screenshots or Videos

![image](https://github.com/antvis/X6/assets/57739479/bf28ab66-89a1-4ea2-8da0-37f225da090c)
![ceshi](https://github.com/antvis/X6/assets/57739479/b22c490b-64d2-45c2-8feb-c30c6c69edf1)
![ceshi2](https://github.com/antvis/X6/assets/57739479/9a66794c-67c4-4cd9-88b1-736372e97db2)

### Platform

- OS: [Windows]
- Browser: [Chrome]
- Version: [124.0.6367.207]
-

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

The issue names no files or tests. Start by reproducing the edge-editor label loss in Chrome while the source-arrowhead and target-arrowhead tools are enabled, then verify that editing and removing those tools no longer removes the edge label.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.