Drag a node around. Notice how you cannot force the dragged node to overlap any other (stationary) node. If you drag more than one node, notice how the relative positions of the dragged nodes are maintained except when forced to be shifted in order to avoid overlapping other nodes.

This functionality is implemented by a custom Part.dragComputation property function, which affects how the DraggingTool can move selected nodes.

加入 GoJS 交流群
GoJS 交流群 (769862113)