I have drawn a 2D wall-like structure using HTML5 shapes in HTML Canvas. Here, I\'m trying to connect two object joints like butt or square off joint by adjusting and moving