Right click to expand or hide?

I would like to right-click on the expansion map.
Expand details near the original node.
I hope the connecting line is not blocked.

I’m sorry. I didn’t describe it clearly
For example, right click to show some nodes.
I need to right-click to show details in the ring.
These detail nodes can automatically surround nearby.

I refer to it.
demo: https://github.com/NorthwoodsSoftware/GoJS/blob/28581a45554121905794a800434db2873ea25460/intro/templateMaps.html

‘itemArray’ is used in my project.
But I still don’t understand how to combine them

I’m sorry, but I do not understand what you want the user to do.

I’ve rewritten the description.