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

使用html渲染的节点期望可以进行手动连线 #3113

Closed
wellsmitch opened this issue Jan 5, 2023 · 5 comments
Closed

使用html渲染的节点期望可以进行手动连线 #3113

wellsmitch opened this issue Jan 5, 2023 · 5 comments

Comments

@wellsmitch
Copy link

wellsmitch commented Jan 5, 2023

功能描述

当前最新版本的node节点如果使用html渲染时 渲染后的结果foreignObject覆盖rect 导致无法使用手动连线功能(节点连接节点或节点节点连接 连接桩)。

期望解决方案

使用html渲染的节点时可以进行手动连线

@x6-bot
Copy link
Contributor

x6-bot bot commented Jan 5, 2023

👋 @wellsmitch

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.

@NewByVector
Copy link
Contributor

将 foreignObject 元素设置为 magnet 即可。

attrs: {
  fo: {
    magnet: true
  }
}

@wellsmitch
Copy link
Author

将 foreignObject 元素设置为 magnet 后 当前节点就不能够拖动了

@NewByVector
Copy link
Contributor

那你需要区分拖动元素与连线元素了,总之,具备 magnet=true 的元素就是可以连线的。

@x6-bot
Copy link
Contributor

x6-bot bot commented Jan 6, 2024

This thread has been automatically locked because it has not had recent activity.

Please open a new issue for related bugs and link to relevant comments in this thread.

@x6-bot x6-bot bot locked as resolved and limited conversation to collaborators Jan 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants