Having the ability to interact with compiler graphs could open up new opportunities that we don't currently have don't currently have with the static image files that seafoam currently generates. There are several such libraries available in JavaScript, with varying degrees of completeness and on-going support. We should evaluate several and pick the one that seems the best.
The compiler graphs can get large, so the evaluation should try to work with non-trivial sized graphs. Bonus points to any library that either ships with TypeScript type definitions or has them available on DefinitelyTyped. A non-comprensive list of options is:
For now, we went with d3-graphviz to visualize the DOT file. The con is that the nodes are not interactive, and that's something we can modify later on.
Having the ability to interact with compiler graphs could open up new opportunities that we don't currently have don't currently have with the static image files that
seafoam
currently generates. There are several such libraries available in JavaScript, with varying degrees of completeness and on-going support. We should evaluate several and pick the one that seems the best.The compiler graphs can get large, so the evaluation should try to work with non-trivial sized graphs. Bonus points to any library that either ships with TypeScript type definitions or has them available on DefinitelyTyped. A non-comprensive list of options is: