Re:Literate programming: presenting code in human order
by jarmitage on Thursday July 07, 2016 @11:43AM
(#12050016)
That is so cool, thanks for sharing.
Is it possible to use the vis tool on other codebases?
Re:Literate programming: presenting code in human order
by h8liu on Thursday July 07, 2016 @12:06PM
(#12050181)
The layout engine is in this package:
https://godoc.org/e8vm.io/e8vm/dagvis
it is possible to layout any DAG (directed graph with no circles).
The dependency graph of golang programs are generated by this package:
https://godoc.org/e8vm.io/tools/godep
I have not very well packaged the drawing part (sorry), but the essentials are here:
https://github.com/e8vm/shanhu/blob/master/web/js/dag.js
it is using d3.
https://e8vm.io/e8vm
Source code:
https://github.com/e8vm/e8vm