plantuml配合graphviz

Terwer 经验分享评论26字数 579阅读1分55秒阅读模式

IDEA 安装插件

直接 IDEA 搜索 plantuml 即可文章源自浅海拾贝-https://blog.terwergreen.com/plantuml-with-graphviz-2d1rfp.html

Mac 安装

 brew install graphviz

PS:收藏一个写的很好的homebrew脚本文章源自浅海拾贝-https://blog.terwergreen.com/plantuml-with-graphviz-2d1rfp.html

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

plantuml编解码

https://github.com/markushedvall/plantuml-encoder文章源自浅海拾贝-https://blog.terwergreen.com/plantuml-with-graphviz-2d1rfp.html

编码文章源自浅海拾贝-https://blog.terwergreen.com/plantuml-with-graphviz-2d1rfp.html

var plantumlEncoder = require('plantuml-encoder')

var encoded = plantumlEncoder.encode('A -> B: Hello')
console.log(encoded) // SrJGjLDmibBmICt9oGS0

var url = 'http://www.plantuml.com/plantuml/img/' + encoded

解码文章源自浅海拾贝-https://blog.terwergreen.com/plantuml-with-graphviz-2d1rfp.html

var plantumlEncoder = require('plantuml-encoder')

var plain = plantumlEncoder.decode('SrJGjLDmibBmICt9oGS0')
console.log(plain) // A -> B: Hello

参考

https://zhuanlan.zhihu.com/p/111014448文章源自浅海拾贝-https://blog.terwergreen.com/plantuml-with-graphviz-2d1rfp.html

文章源自浅海拾贝-https://blog.terwergreen.com/plantuml-with-graphviz-2d1rfp.html

相关文章
  • 扫码加我微信
  • 验证消息请输入:来自你的博客
  • weinxin
  • 我的微信公众号
  • 微信扫一扫与我交流吧
  • weinxin
Terwer
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: