Overlapping groups and nodes

In my chart I have nodes and groups and when I move one of them, they can overlap, how can I avoid this?


I want to avoid this issue

Note: I’m using 2.3.17 version

This sample demonstrates the general idea of how to customize a node or group template so that the user cannot drag them to overlap avoidable nodes:
Drag Unoccupied | GoJS Diagramming Library

Thanks, I’m going to check the code