Selection adornment on a svg shape

Hi GoJS team,

I have a shape as SVG and want to apply a selection adornment on the outline. I am currently only able to have a rectangle selection outline but not exactly match the outline of my shape.

    this.selectionAdornment = this.$(go.Adornment, "Auto",
        this.$(go.Shape, {
            fill: null,
            stroke: "#3399ff",
            strokeWidth: 2

For example, when selecting the shape below, a blue rectangle box comes out but not the real outline of the shape. Is there anyway I can make a perfect outline? Thanks.


You can specify a custom Part.selectionAdornmentTemplate to be whatever you like. See