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?