antvis/G6

Do you want to work on this issue?

You can request for a bounty in order to promote it!

[Bug]: HTML node is always on top even with lower zIndex #6974

nishant-singh posted onGitHub

Describe the bug / é—®é¢˜ęčæ°

Description:

HTML type node are always rendered on top. Even after setting zIndex of edge to 99, it does not come on top of html node. Same happens with shadow element when dragging. Setting shadowZIndex to 99 does not have any effect.

Only happens when using canvas as renderer

No response

Steps to Reproduce the Bug or Issue / é‡ēŽ°ę­„éŖ¤

  1. Create a graph with html node
  2. Add drag-element behavior and set shadow to true
  3. Notice shadow is behind the HTML node, which does not change even after setting its zIndex

Same for edge overlap: Make edge overlapping the source and target by setting startArrowOffset and endArrowOffset. No matter what zIndex you set, edges are always behind HTML node.

Version / ē‰ˆęœ¬

šŸ†• 5.x

OS / ę“ä½œē³»ē»Ÿ

  • macOS
  • Windows
  • Linux
  • Others / 其他

Browser / ęµč§ˆå™Ø

  • Chrome
  • Edge
  • Firefox
  • Safari (Limited support / ęœ‰é™ę”ÆęŒ)
  • IE (Nonsupport / äøę”ÆęŒ)
  • Others / 其他

We'll look into the issue; if you're interested, feel free to submit a PR with your fix!

posted by yvonneyx 17 days ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests