Link selection adornment


i want to edit your default selection adornment from blue color to black color , but i want to retain other properties that allows me to reshpae it , how can i do this


Something like:

var linkSelectionAdornmentTemplate =
  $(go.Adornment, "Link",
      // isPanelMain declares that this Shape shares the Link.geometry
      // strokeWidth: 0 will use selection object's strokeWidth
      { isPanelMain: true, fill: null, stroke: "deepskyblue", strokeWidth: 0 })

myDiagram.linkTemplate =
  $(go.Link,  // the whole link panel
      selectionAdornmentTemplate: linkSelectionAdornmentTemplate,
      // whatever other properties you want, such as:
      relinkableFrom: true, relinkableTo: true, reshapable: true
    // ... the rest of the link template

See draggable link for an example