I was trying to find similar issues in the forum, but none of the suggested solutions worked. The problem I have is, when expanding the group, I want it’s subgraph to appear in the front of all other nodes, which can be done easily by setting any included child
layerName to be
Foreground, but the incoming or outgoing links then appear behind it, which is not right in my case.
What I did is added a new layer
ExpandedGroups, which is behind the
And whenever we expand the subgraph I move related parts into appropriate layers - incoming and outgoing links into
Foreground, group with it’s contents into
ExpandedGroups. Links, which were temporary moved to the
Foreground layer does not appear on top of the expanded group… I’ve also tried zOrder, but that didn’t worked.
The event listener which I’ve attached to the group:
Inspiration for this I took from the other issue in the forum: Force Nodes to be always on top when expanding a group
Current diagram preview:
How can I achieve the result I need?
P.S: GoJS version is 1.7.26