pdf文档 PlantUML 1.2021.3 Справочное руководство по языку

4.33 MB 406 页 0 评论
语言 格式 评分
俄语
.pdf
3
摘要
文档主要介绍了PlantUML 1.2021.3版本的功能和语法,包括部署图、实体关系图、数学公式显示、AWS库的使用以及YAML数据的展示。文档详细说明了如何通过PlantUML绘制各种图表,并提供了相关的语法示例和库的集成方法。
AI总结
### Summary of "PlantUML 1.2021.3 Справочное руководство по языку" This documentation provides a comprehensive guide to the PlantUML language, covering various diagram types, features, and usage scenarios. Below is a concise summary of the key points: --- #### **1. Deployment Diagram** - **Elements**: Deployment diagrams allow you to represent deployment structures, including elements like `actor`, `agent`, `artifact`, `boundary`, `card`, `circle`, `cloud`, `component`, `control`, `database`, `entity`, `file`, `folder`, `frame`, `hexagon`, `interface`, `label`, `node`, `package`, `queue`, `rectangle`, `stack`, `storage`, and `usecase`. - **Inline Styling**: Elements can be styled using inline syntax (e.g., `hexagon #aliceblue;line:blue;line.dotted;text:blue`). --- #### **2. Mathematical Formulas** - **Integration**: PlantUML supports mathematical formulas using: - **AsciiMath**: Converts AsciiMath notation to LaTeX. - **JLatexMath**: Displays LaTeX formulas. - **Java Compatibility**: - Java 8 uses Nashorn (deprecated in Java 11). - Java 11+ requires GraalVM JavaScript Engine to avoid deprecation warnings. - Add GraalVM dependencies for compatibility. - **Example**: ```latex \sum_{i=0}^{n-1} (a_i + b_i^2) ``` --- #### **3. AWS Library** - **Features**: The Amazon Labs AWS library provides PlantUML macros, sprites, and includes for AWS services. - **Resources**: - GitHub repositories: - [awslib](https://github.com/plantuml/plantuml-stdlib/tree/master/awslib) - [AWS Icons](https://github.com/awslabs/aws-icons-for-plantuml) - **Example**: ```plantuml !include !include AMAZONS3(s3_internal,"Default S3") ``` --- #### **4. Entity Relationship Diagram (Information Engineering Notation)** - **Extension**: Extends class diagrams with: - Additional relations (e.g., `|o--`, `||--`, `}o--`, `}|--`). - Entity aliases and mandatory attributes (marked with `*`). - **Example**: ```plantuml Entity01 }|..|| Entity02 Entity03 }o..o| Entity04 ``` --- #### **5. Database Diagrams** - **Features**: Use database elements (e.g., `DEV_MYSQL`) with custom styling. - **Example**: ```plantuml !include DEV_MYSQL(db1, "Database 1", database, white) ``` --- #### **6. YAML and JSON Data Visualization** - **YAML**: Activate with `@startyaml` and `@endyaml`. - **JSON**: Supports JSON data embedding. - **Example**: ```yaml fruit: Apple size: Large color: Red ``` --- #### **7. Known Issues and Workarounds** - **Word Wrap**: PlantUML does not support automatic line wrapping. Use `\n` for explicit line breaks. - **Unlinked Elements**: Use `@unlinked` to remove connections. - **References**: Issues like QA-11052 and QA-13123 are noted. --- This guide highlights PlantUML's versatility in creating diagrams, including deployment, entity relationships, mathematical formulas, AWS integration, and data visualization. It also addresses compatibility and known issues for seamless implementation.
P1
P2
P3
P4
P5
P6
P7
P8
P9
P10
P11
P12
下载文档到本地,方便使用
- 可预览页数已用完,剩余 394 页请下载阅读 -
文档评分
请文明评论,理性发言.