Trying to implement the below :
{
// a mouse-over highlights the link by changing the first main path shape's stroke:
mouseEnter: function(e, link) { link.elt(0).stroke = "rgba(0,90,156,0.3)"; },
mouseLeave: function(e, link) { link.elt(0).stroke = "transparent"; }
}
In typescript, this elt is not a known property of link. I had to fallback on link['elt'](0).stroke
Is there a better way ?