This custom DraggingTool class makes guidelines visible as a Part is dragged around a Diagram and is nearly aligned with another Part. If a locationObjectName is set, then this aligns Part.locationObjects instead. The tool is defined in its own file, as GuidedDraggingTool.js.

Usage can also be seen in the Floor Plan Editor sample.