before
after minimized
Either implement a Binding on them, like:
new go.Binding("visible", "isSubGraphExpanded").ofObject()
Or implement a Group.subGraphExpandedChanged event handler, Group | GoJS API and change the GraphObject.visible or GraphObject.opacity property of those objects.
As expected, thanks a lot