Shape outer bound

Can I get the outer bound of the Shape? I mean the red rectangle, not the yellow one that is a document bound.

image

Here you go: https://gojs.net/extras/minimalPolygonBoundsAdornment.html

Thank you funny sample, this really fun, Again can i get build in shape outer bound like “fig”:“StopSign” ?

What do you mean? It was nice when you first provided a sketch showing a non-trivial situation.

Sorry, My mistake, It works even at build in shape! really Cool ! thank you Walter.

But can you any suggestion of PathSegment is curved?
it more difficult?

Yes, it’s more work. Sorry.