Hi,
I have node selectionChanged
implemented where it temporarily moves the node into the “Foreground” layer while selected, then back to the default layer when deselected.
The pattern is very similar to this layers example: GoJS Layers -- Northwoods Software
What I’d like to happen:
After selecting and deselecting a node, it returns to it’s view order based on the node order in the array.
What happens now:
After selecting and deselecting a node, the most recently selected node stays on top, even if it was previously behind.
This can be also be seen in this layers demo: GoJS Layers -- Northwoods Software
The zOrder example on that page keeps everything in order, but it does not change layers like I want
Any solutions on how to implement this would be greatly appreciated! Thanks in advance