While not a "library", there is a utility that allows you to accurately draw what you describe. Called simply "SVG Utility", this is a free software with a graphic designer that allows you to define real family relationships (including multiple spouses, oriented children, etc.). See More About SVG Family Trees .
After development, the relationships and layout are recorded in a simple text file format so that they can be modified or reused. The utility generates a version of SVG for use on a blog or other web page. There are several possible configurations that allow you to display multiple SVG images on the same page, tooltips or tooltips behind personal boxes or "families", pan individual trees, thumbnails with captions, etc.
The installation kit, documentation, and samples are available in the Dropbox folder. Contact the author of the blog mentioned above to access it.
The utility was developed to work under Windows, but was also launched under the compatibility level with WINE on Mac.
ACProctor
source share