antvis / X6

🚀 JavaScript diagramming library that uses SVG and HTML for rendering.
https://x6.antv.antgroup.com
MIT License
5.7k stars 1.7k forks source link

node调用addTools时传入option.local: true会导致位置偏移 #4250

Open mya12321 opened 6 months ago

mya12321 commented 6 months ago

问题描述

node调用addTools时传入option.local: true会导致位置偏移

重现链接

https://codesandbox.io/p/sandbox/naughty-brown-9dw6nf?file=%2Fsrc%2Findex.js

重现步骤

  1. 进入页面
  2. 拖拽node1和node2比较
  3. node1正常, node2的删除按钮位置偏移

预期行为

node2的按钮位置正常

平台

屏幕截图或视频(可选)

image

补充说明(可选)

No response

x6-bot[bot] commented 6 months ago

👋 @mya12321

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.