Inheritance diagram builder
This builds an inheritance diagram for some node of interest (NOI). Initially it is designed to use in documentations with class description to show parent stack, mixed in nodes and the whole tree of children.
Nodes that contains
link property will be highlighted and will behave as usual link element to allow fast jumping to the next interested node in the documentation.
Mainly this library was created for JSDoc (the JSDoc plugin is
jsdoc-inheritance-diagram), but it can be used as a core for other purposes.
Limitations and known issues
Arrows at the end of connection line cannot inherit the line styles (colors).
Due to upcomming features/improvements in SVG v2 the above limitations will not have coded workarounds.
Hope SVG v2 will be released and implemented by browsers soon, or maybe some other idea comes to me later :)
The example can be found in
npm install inheritance-diagram
If CSS from an external file must be applied to the diagram, then an additional code is needed for this, for example:
const diagramBuilder = ; ;