Recently I decided to build my own variation on bar snapping. After several days of work, I have a pretty strong bar snapping module. If you are not sure what bar snapping is then, here goes:
We collect the coordinants for all of frame's points (TopLeft, BottomRight, etc). After that,
we compare those points to all of the other Magnets enabled frame's points to detect if two points are close enough to snap together. When docking frames together, only certain points can snap to each other. So, for example, the TopRight of the frame can only snap to the TopLeft of another frame. A frame may also dock to corners and middle points of edges of the screen.
My thought is that I could get a few people to look over my code to check for performance issues or other random bits of concern. Here's a link: Magnets
FetLife IMVU Canva
Thanks to anyone who cares to take a look and let me know what they think!
Ho I didn't know they had a built in code poster Thank you so much