How to save a gojs diagram image with highlighted selections

return this.myDiagram.makeImage({
            scale: 1,
            background: 'white',
            maxSize: new go.Size(bounds.width, bounds.height),
            type: 'image/png'
        });

So my question is that this function returns a diagram png image but without the diagram.selection. Is there a way gojs could produce an image with the selection highlighted?

Set the option showTemporary: true.

Note that that will render all Adornments, not just selection Adornments. So it would include resizing or rotating or relinking Adornments. But that is usually what one would want.

Thank you @walter. This is very helpful!