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

fix: fix incorrect edge zindex when ends has hight zindex #6500

Merged
merged 4 commits into from
Nov 12, 2024
Merged

Conversation

Aarebecca
Copy link
Contributor

当添加边时,如果其端点具有更高的 zIndex,可能导致边被其他元素遮挡,这个 PR 将在添加边时动态计算默认 zIndex 值,规则如下:

  1. 当两端点都为节点时,边的 zIndex 为节点 zIndex 取较小者减 1
  2. 当两端点都为组合时,边的 zIndex 为组合 zIndex 取较大者加 1
  3. 当一端点为节点,一端点为组合时,分别基于上述规则计算 zIndex 然后取较大值

related issue: #6492

@Aarebecca Aarebecca merged commit 555de80 into v5 Nov 12, 2024
5 checks passed
@Aarebecca Aarebecca deleted the fix/z-index branch November 12, 2024 14:19
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

Successfully merging this pull request may close these issues.

1 participant