首页 > 其他分享 >plantuml配合graphviz

plantuml配合graphviz

时间:2022-10-23 19:36:48浏览次数:80  
标签:plantuml plantumlEncoder 配合 graphviz var encoded com

IDEA 安装插件

直接 IDEA 搜索 plantuml 即可

Mac 安装

 brew install graphviz

PS:收藏一个写的很好的homebrew脚本

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

plantuml编解码

https://github.com/markushedvall/plantuml-encoder

编码

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

解码

var plantumlEncoder = require('plantuml-encoder')

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

参考

https://zhuanlan.zhihu.com/p/111014448

标签:plantuml,plantumlEncoder,配合,graphviz,var,encoded,com
From: https://www.cnblogs.com/tangyouwei/p/plantuml-with-graphviz-2d1rfp.html

相关文章