scala

scala 代码到uml的转换

2018-01-05  本文已影响53人  逑熙
git clone https://github.com/mikeyhu/scaladiagrams
cd scaladiagrams
./build
sudo apt-get install -y graphviz
sudo yum install -y graphviz
./scaladiagrams -s **path/core/src/main/scala/org/apache/spark/rdd  > test.dot
dot test.dot -Tpng > test.png
dot test.dot -Tsvg > test.svg


./scaladiagrams -s **path/core/src/main/scala/org/apache/spark/rdd  |dot -Tpng > ~/test.png
./scaladiagrams -s **path/core/src/main/scala/org/apache/spark/rdd  |dot -Tsvg > ~/test.svg

dot文件第2行可以加入

rankdir=RL;
上一篇 下一篇

猜你喜欢

热点阅读