Highlighted link z-index issue

Hi there! I am using the isHighlighted flag to change the color of connected links when the user hovers over a node.

Problem is, sometimes the highlighted link appears below the path of an unhighlighted link (see screenshot). We always want the highlighted link to appear on top of other link paths so the connections are clear.

How can this be accomplished?

You can also change the layerName of the Link to be "Foreground", and then back to the default "" layer when un-highlighted, and it will always be atop all the other links.

Awesome, thanks. Got it working now!