My team has been asked to recreate functionality seen in similar tools that allows users to align elements on the diagram with other elements using guidelines and snapping. While moving an element around the canvas, we would like to generate snappable lines along the top, bottom, right, left, and center point of other objects that can be used to align the currently held object to existing objects. See example:
Do you potentially have any examples of this functionality we can build off of? If not, do you have any specific tools or tips we can start with?