I\'m trying to adapt this code so that instead of looping through all the points in the svg to find the closet point to the mouse, I can limit the search to a specific path.