I stumbled over the interesting concept of Leader lines which, apparently, are lines pointing from one HTML-element to another HTML-element.
The whole package is 0.6MB zipped (TW is 2.5MB), no dependencies and MIT license. Maybe it’s possible to extract parts of it?
Go to the link and test out thir interactive overview demo that looks like this: