util.findIntersection(node, ref)
Find the intersection of a line starting in the center
of the SVG node
ending in the point ref
.
The function uses isPointInStroke()
and isPointInFill()
methods that are
not supported by all the browsers. However, a fallback
that finds the intersection of only the bounding box is provided in those cases.
Returns undefined
if no intersection is found.