This summer during the corona restrictions I wrote a little algorithm for calculating intersections of multiple circles and for converting them into connected paths (sequence of SVG arcs).
Full implementation is here: https://github.com/IkarosKappler/plot...