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.
📤 è¾“å‡ºæ ¼å¼�
以多ç§�æ ¼å¼�输出您的图表,以满足您的需求,包括:
- PNG, 便于图�共享
- SVG,* 用于�缩放的矢�图形
- LaTeX,用于* 高质�排版
- ASCII art (仅适用于�列图),用于基于文本的表示