Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

edge.setLabels 设置的labels 会被addEdge中的attrs属性覆盖 #4176

Open
a1235 opened this issue Jan 23, 2024 · 1 comment
Open

edge.setLabels 设置的labels 会被addEdge中的attrs属性覆盖 #4176

a1235 opened this issue Jan 23, 2024 · 1 comment

Comments

@a1235
Copy link

a1235 commented Jan 23, 2024

问题描述

我初始化了2个节点node1和node2,并且通过addEdge把两个节点连线,用setLabels设置上了label,但是拖动节点后label文案会发生变化

重现链接

https://codesandbox.io/p/sandbox/antv-x6-demo-mzx74g?file=%2Findex.ts

重现步骤

  1. 进入页面
  2. 查看label文案,默认展示为setLables设置的label
  3. 随意拖动节点,label文案变成了addEdge设置的text了

预期行为

拖动节点,展示的label还是最近一次设置的label

平台

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

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Jan 23, 2024

👋 @a1235

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant