工具

四款技术方案免费绘图工具推荐

2024-01-30  本文已影响0人  FesonX

编写技术方案或梳理业务时,大家经常会有绘制流程图、类图、时序图等需求,然而 传统的 Microsoft Visio 要付费,Process On 虽然可以免费体验,但无法集成在 Markdown 文档中,无法用 GitHub、Gitlab 协作。

今天就给大家介绍大厂也在用的几款绘图工具和他们的优缺点。分别是
darw.io, Mermaid, graphviz, Excalidraw

Draw.io(现在的地址是 app.diagrams.net)

强大的在线绘图工具(也有 App 可下载)

优点

缺点

适合的图表

样例

Mermaid

当下开源界最流行的绘图框架 https://mermaid.js.org/
GitHub、Gitlab、飞书等官方支持直接嵌入的绘图框架,Sentry 等顶流项目均有它的身影。

优势:

缺点

适合的图表

样例

graph TD
app[Your Application] --> |SDK| lb{{Load Balancer}}
lb --> |"sentry.example.com/api/\d+/store/"| relay
lb --> |"sentry.example.com"| sentry_web["Sentry (web)"]
symbolicator --> sentry_web
relay --> kafka
relay --> redis
sentry_web --> snuba
sentry_web --> memcached
sentry_web --> postgres
sentry_web --> redis
snuba --> kafka
snuba --> redis
snuba --> clickhouse
...

Graphviz

文本绘图鼻祖 https://graphviz.org
早在 mermaid 之前就风靡技术圈,现在仍有它独特的使用场景

优点:

缺点:

适合的图表:

样例

digraph regexp { 
 fontname="Helvetica,Arial,sans-serif"
 node [fontname="Helvetica,Arial,sans-serif"]
 edge [fontname="Helvetica,Arial,sans-serif"]
 n0 [label="regexp", URL="https://godoc.org/regexp", tooltip="Package regexp implements regular expression search."];
 n1 [label="bytes", URL="https://godoc.org/bytes", tooltip="Package bytes implements functions for the manipulation of byte slices."];
 n2 [label="io", URL="https://godoc.org/io", tooltip="Package io provides basic interfaces to I/O primitives."];
 n3 [label="regexp/syntax", URL="https://godoc.org/regexp/syntax", tooltip="Package syntax parses regular expressions into parse trees and compiles parse trees into programs."];
 n4 [label="sort", URL="https://godoc.org/sort", tooltip="Package sort provides primitives for sorting slices and user-defined collections."];
 n5 [label="strconv", URL="https://godoc.org/strconv", tooltip="Package strconv implements conversions to and from string representations of basic data types."];
 n6 [label="strings", URL="https://godoc.org/strings", tooltip="Package strings implements simple functions to manipulate UTF-8 encoded strings."];
 n7 [label="sync", URL="https://godoc.org/sync", tooltip="Package sync provides basic synchronization primitives such as mutual exclusion locks."];

....
 n0 -> n1;
 n0 -> n2;
 n0 -> n3;
 n0 -> n4;
 n0 -> n5;
 n0 -> n6;
....
}

Excalidraw

手绘风格的简单绘图工具。https://excalidraw.com/

优点

缺点:

适合的图表

样例

上一篇 下一篇

猜你喜欢

热点阅读