omg got it working jumping to nearest corner

next up:
- include nearest side midpoint in optimization space
- mixed parameters, like a DOM element to a coordinate array
- handle d3 and jquery objects too