Replacement for default link selection adornment

Hello,

I’d like to replace the default selection adornment with my own: instead of a blue line, I would like to make it a thicker orange line, with an arrow head.

I set the selectionAdornmentTemplate to something like this (no arrow head yet):

link.selectionAdornmentTemplate = $go(go.Adornment, “Link”, $(go.Shape, { strokeWidth: 1, stroke: “orange” }))


but I get a rectangle centered on the link. I wanted to play with the segment… properties, but did not really know if they would help here.


Could you give me some pointers please?


Thanks!
Marc.

http://gojs.net/latest/intro/selection.html

I think you’re just missing setting isPanelMain: true on the Shape that you want to get the Link’s geometry.

Thanks! I looked at a number of documentation pages but I had missed that one.