puiu91
11/16/2015 - 3:08 PM

gistfile1.txt


            // check if there is an SVG <path> behind the selected <g> object
            // if true
            // select the <path> element behind it
            // calculate a center coordinate 
            // for complex shapes, best solution may be to add up all the x, all the y, and divide each by
            // respective count of x, count of y
            // for current item that was being dragged, set its new x + y position to the new calculated center
            // point of the <path> behind