Skip to content

Edge hover styling #1063

Answered by bcakmakoglu
gitHoussem asked this question in Q&A
Jul 31, 2023 · 1 comments · 5 replies
Discussion options

You must be logged in to vote
onEdgeMouseEnter(({ edge }) => {
  edge.zIndex = 9999
  edge.style = {
    stroke: 'orange',
    strokeWidth: '2px',
  }
})

onEdgeMouseLeave(({ edge }) => {
  edge.zIndex = undefined
  edge.style = {}
})

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@gitHoussem
Comment options

@gitHoussem
Comment options

@bcakmakoglu
Comment options

Answer selected by gitHoussem
@bcakmakoglu
Comment options

@gitHoussem
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants