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

egde会压盖node的markup上配置的元素,导致markup上配置的事件不能响应。zindex设置无效 #2374

Closed
AnitaTang opened this issue Jul 19, 2022 · 5 comments
Labels
type: discussion 讨论 Usage questions, guidance, and other discussions

Comments

@AnitaTang
Copy link

问题描述

点击节点的markup配置的+按钮隐藏该节点的所有后继节点,
再显示之后,该节点与直接后继节点的连线(edge)会压盖该节点上配置的要素,导致不能正确响应隐藏后继节点的事件

重现链接

编译失败

重现步骤

  1. 参考https://antv-x6.gitee.io/zh/examples/showcase/practices#mindmap中mindmap实现点击节点markup配置的+按钮显示或隐藏该节点的所有后继节点,通过node.toggleVisible()实现
  2. 隐藏再显示之后,该节点与直接后继节点的连线(edge)会压盖该节点上配置的要素,导致不能正确响应隐藏后继节点的事件
    20220719230706
    20220719230806

预期行为

edge在最底层绘制,不影响节点的事件

平台

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

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Jul 19, 2022

👋 @AnitaTang

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

你的场景可以将 edge 的 zIndex 设置最低(比如 -1),这样就不会影响了。

@NewByVector NewByVector added the type: discussion 讨论 Usage questions, guidance, and other discussions label Jul 20, 2022
@AnitaTang
Copy link
Author

前面忘记说了,zIndex设置了-1也没达到预期效果。
20220720141644

@NewByVector
Copy link
Contributor

将 sorting 配置为 approx 即可解决你的问题。

@x6-bot
Copy link
Contributor

x6-bot bot commented Sep 5, 2023

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 Sep 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: discussion 讨论 Usage questions, guidance, and other discussions
Projects
None yet
Development

No branches or pull requests

2 participants