This is cool. I wonder if this could just be a CSS library instead, where you just add the class "annotate-circle" to an element and it will use pseudo-elements (:before, :after) to draw the lines.
To draw these irregular lines / shapes with normal CSS it's really hard, maybe if you inline some SVG.