Link label Z order

in the state chart demo there is a label on the link.

when the user select the link the link line hides part of the label,
How can I make the label to hide the line (probably higher Z order)

All elements of any one Part have the same z-order compared with any other Part, including any Adornment. So one cannot change the z-ordering of a Link label relative to the Link’s selection Adornment without also cganging the z-ordering of the Link.path and all other link labels.

I suggest that you turn off Link.selectionAdorned and change the appearance of the link path Shape: GoJS Selection -- Northwoods Software

thanks works like charm