How can I find the point B(t) along a cubic Bezier curve that is closest to an arbitrary point P in the plane?
There is also DOM SVG specific implementations of the closest point algorithms from Mike Bostock’s:
https://bl.ocks.org/mbostock/8027637
https://bl.ocks.org/mbostock/8027835