I have a problem that seems like it must come up for anyone using layers. I have a diagram with several groups of shapes. Each group is on a layer so I can hide/show any combination of groups. Shapes in each group (layer) can connect to shapes in any of the other groups. Naturally a line between shapes only makes sense if both the source and target shapes are visible.
Let's say I have Shape A in group 1. It can connect to Shape B in group 2 Shape C in group 3 and Shape D in group 4. No matter which layer I put the lines in there will be situations where connectors are left "hanging" with no connection. The only way to make this work with layers is to have a layer for each possible group to group relationship. For 7 groups that means 21 layers (all the possible combinations of 2 groups from a total of 7 groups). As I'm likely to have more than 7 groups this is not a viable approach.
What is needed is for connectors to automatically hide unless both their starting and ending shapes are visible which seems like it should be a default behavior. Typically connectors are only meaningful if they connect things.
Is there some other way to handle this I'm missing?