New! Render PlantUML diagrams directly inside GitHub
with our official browser extension —
No server. No tokens. No tracking. Zero permissions but clipboard. —
Try it out and let us know what you think!
This editor runs entirely in your browser thanks to our JavaScript rendering engine. Edit the code on the left and see the diagram update instantly!
🌱 PlantUML 一览
🚀 快速入门
PlantUML是一个通用性很强的工具,可以快速、直接地创建各种图表。
利用简单直观的语言,用户可以毫不费力地绘制各种类型的图表。
如需详细了解该语言的功能和语法,请参阅《PlantUML 语言参考指南》。
如果您是 PlantUML 的新用户,我们建议您从我们的快速入门页面开始
并快速运行。如果您有任何问题,我们的常见问题页面是一个很有价值的资源。
此外,PlantUML 可以与其他各种工具无缝集成,以增强您的工作流程。
🧩 支持的 UML 图表
使用 PlantUML,您可以创建结构良好的 UML 图表,包括但不限于以下内容:
📈 支持的非 UML 图表
除了传统的 UML 图表,PlantUML 还支持创建其他各种图表类型,如
- JSON 数据
- YAML 数据
- EBNF 图表
- Regex 图表
- 网络图 (nwdiag)
- 用户界面模型 (salt)
- 架构图
- 规范和描述语言(SDL)
- Ditaa 图表
- 甘特图
- 时序图
- 思维导图
- WBS 图表
- 使用 AsciiMath 或 JLaTeXMath 符号进行数学计算
- 信息工程图
- 实体关系图
- Chart diagram
- Files diagram
WARNING
This translation need to be updated. WARNING
📣 其他功能
利用这些附加功能增强图表的活力和信息量:
- 超链接和工具提示可* 提供额外的上下文和交互性
- 丰富的文本格式、表情符号、Unicode 和 Creole 图标可提供具有* 视觉吸引力的演示
- OpenIconic 图标可* 增强可视化表示
- Sprite 图标可* 添加自定义符号
- AsciiMath 数学表达式可* 提供精确的数学表示
📥 输入格式
PlantUML 允许您从各种源输入格式生成图表:
您可以选择不同的内部编码:
⚙ Layout Engines and Options
PlantUML allows you to use several different layout engines:
- Graphviz is the default engine. Relies on an external program;
- Smetana (Use
!pragma layout smetanain the file or-Playout=smetanaon the command-line.) is a internal port of Graphviz to Java. Tends to make slightly straighter arrows; - VizJs uses JavaScript. (Use
-graphvizdot vizjson the command line.) Tends to space out nodes more, resulting in a bigger diagram; - ELK (Eclipse Layout Kernel). (Use
!pragma layout elkin the file or-Playout=elkon the command-line.) Supports only orthogonal layout, and doesn't cover all features.
- Puma is the older and still default engine;
- Teoz (Use
!pragma teoz truein the file or-Pteoz=trueon the command-line) is a new engine that has some unique features: anchors (named arrows/messages), duration, nested boxes...
Achieving good layout with PlantUML is sometimes non-trivial. See PlantUML GraphViz Layout by Mark George at University of Otago for more advice.