Loading...
Loading...
Compare original and translation side by side
graphflowchartflowTDLRBTRLnodeId["Label"]"text with \"quotes\""%%A[Rectangle]
B(Rounded rectangle)
C([Stadium/Pill shape])
D[[Subroutine]]
E[(Database)]
F((Circle))
G>Flag/Asymmetric]
H{Decision diamond}
I{{Hexagon}}
J[/Parallelogram/]
K[\Reverse parallelogram\]
L[/Trapezoid\]
M[\Reverse trapezoid/]-->----.->-.-==>===--text-->---|text|---graphflowchartflowTDLRBTRLnodeId["标签"]"包含\"引号\"的文本"%%A[矩形]
B(圆角矩形)
C([体育场/胶囊形状])
D[[子程序]]
E[(数据库)]
F((圆形))
G>旗帜/不对称形状]
H{决策菱形}
I{{六边形}}
J[/平行四边形/]
K[\反向平行四边形\]
L[/梯形\]
M[\反向梯形/]-->----.->-.-==>===--text-->---|text|---flowchart TD
subgraph Frontend
A[Web App]
B[Mobile App]
end
subgraph Backend
C[API Server]
D[Database]
end
A --> C
B --> C
C --> Dflowchart TD
subgraph 前端
A[Web应用]
B[移动应用]
end
subgraph 后端
C[API服务器]
D[数据库]
end
A --> C
B --> C
C --> Dflowchart TD
A[Normal Node]
B[Important Node]
C[Critical Node]
classDef important fill:#ff9,stroke:#333,stroke-width:2px
classDef critical fill:#f99,stroke:#333,stroke-width:4px
class B important
class C criticalflowchart TD
A[Start]
B[Process]
C[End]
style A fill:#9f9,stroke:#333,stroke-width:2px
style C fill:#f99,stroke:#333,stroke-width:2pxfill:#f5f5f5,stroke:#333fill:#d4edda,stroke:#28a745fill:#fff3cd,stroke:#ffc107fill:#f8d7da,stroke:#dc3545fill:#d1ecf1,stroke:#17a2b8flowchart TD
A[普通节点]
B[重要节点]
C[关键节点]
classDef important fill:#ff9,stroke:#333,stroke-width:2px
classDef critical fill:#f99,stroke:#333,stroke-width:4px
class B important
class C criticalflowchart TD
A[开始]
B[处理]
C[结束]
style A fill:#9f9,stroke:#333,stroke-width:2px
style C fill:#f99,stroke:#333,stroke-width:2pxfill:#f5f5f5,stroke:#333fill:#d4edda,stroke:#28a745fill:#fff3cd,stroke:#ffc107fill:#f8d7da,stroke:#dc3545fill:#d1ecf1,stroke:#17a2b8flowchart TD
Start([Start]) --> Input[/Input Data/]
Input --> Process{Valid?}
Process -->|Yes| Action[Process Data]
Process -->|No| Error[Show Error]
Action --> Output[/Output Result/]
Error --> Input
Output --> End([End])flowchart TD
Start([开始]) --> Input[/输入数据/]
Input --> Process{有效?}
Process -->|是| Action[处理数据]
Process -->|否| Error[显示错误]
Action --> Output[/输出结果/]
Error --> Input
Output --> End([结束])sequenceDiagram
participant User
participant Frontend
participant API
participant Database
User->>Frontend: Click Submit
activate Frontend
Frontend->>API: POST /api/data
activate API
API->>Database: INSERT query
activate Database
Database-->>API: Success
deactivate Database
API-->>Frontend: 200 OK
deactivate API
Frontend-->>User: Show confirmation
deactivate Frontend-->>NoteloopaltoptparsequenceDiagram
participant User
participant Frontend
participant API
participant Database
User->>Frontend: 点击提交
activate Frontend
Frontend->>API: POST /api/data
activate API
API->>Database: INSERT 查询
activate Database
Database-->>API: 成功
deactivate Database
API-->>Frontend: 200 OK
deactivate API
Frontend-->>User: 显示确认信息
deactivate Frontend-->>NoteloopaltoptparclassDiagram
class Animal {
+String name
+int age
+makeSound() void
}
class Dog {
+String breed
+bark() void
}
class Cat {
+bool indoor
+meow() void
}
Animal <|-- Dog
Animal <|-- Cat<|--*--o---->--..>..|>classDiagram
class Animal {
+String name
+int age
+makeSound() void
}
class Dog {
+String breed
+bark() void
}
class Cat {
+bool indoor
+meow() void
}
Animal <|-- Dog
Animal <|-- Cat<|--*--o---->--..>..|>stateDiagram-v2
[*] --> Draft
Draft --> Review: Submit
Review --> Approved: Approve
Review --> Rejected: Reject
Rejected --> Draft: Revise
Approved --> Published: Publish
Published --> Archived: Archive
Archived --> [*][*][*]stateDiagram-v2
[*] --> 草稿
草稿 --> 审核: 提交
审核 --> 通过: 批准
审核 --> 驳回: 拒绝
驳回 --> 草稿: 修改
通过 --> 发布: 发布
发布 --> 归档: 归档
归档 --> [*][*][*]erDiagram
Customer ||--o{ Order : places
Customer {
string name
string email
int customer_id PK
}
Order ||--|{ OrderLine : contains
Order {
int order_id PK
date order_date
int customer_id FK
}
Product ||--o{ OrderLine : includes
OrderLine {
int order_id FK
int product_id FK
int quantity
}
Product {
int product_id PK
string name
decimal price
}||--||||--o{}o--o{||--|||o--o|erDiagram
Customer ||--o{ Order : 下单
Customer {
string name
string email
int customer_id PK
}
Order ||--|{ OrderLine : 包含
Order {
int order_id PK
date order_date
int customer_id FK
}
Product ||--o{ OrderLine : 包含
OrderLine {
int order_id FK
int product_id FK
int quantity
}
Product {
int product_id PK
string name
decimal price
}||--||||--o{}o--o{||--|||o--o|gantt
title Project Timeline
dateFormat YYYY-MM-DD
section Planning
Requirements :done, req, 2024-01-01, 2024-01-15
Design :active, design, 2024-01-16, 2024-02-01
section Development
Frontend :dev1, 2024-02-02, 30d
Backend :dev2, 2024-02-02, 30d
Integration :after dev1 dev2, 10d
section Testing
QA Testing :test, after dev1 dev2, 15d
UAT :after test, 10daftergantt
title 项目时间线
dateFormat YYYY-MM-DD
section 规划
需求分析 :done, req, 2024-01-01, 2024-01-15
设计 :active, design, 2024-01-16, 2024-02-01
section 开发
前端开发 :dev1, 2024-02-02, 30d
后端开发 :dev2, 2024-02-02, 30d
集成测试 :after dev1 dev2, 10d
section 测试
QA测试 :test, after dev1 dev2, 15d
用户验收测试 :after test, 10dafterflow TDflowchart TD#quot;flow TDflowchart TD#quot;flowchart TD
A[Homepage]
B[Product Page]
C[Checkout]
click A "https://example.com" "Go to homepage"
click B "https://example.com/products" "View products"flowchart TD
A[首页]
B[产品页]
C[结算页]
click A "https://example.com" "前往首页"
click B "https://example.com/products" "查看产品"flowchart LR
A[Start] --> B{Decision}
B -->|Path 1| C[Option A]
B -->|Path 2| D[Option B]
C --> E[End]
D --> E
classDef decision fill:#ffe6cc,stroke:#d79b00,stroke-width:2px
classDef terminal fill:#d5e8d4,stroke:#82b366,stroke-width:2px
class B decision
class A,E terminalflowchart LR
A[开始] --> B{决策}
B -->|路径1| C[选项A]
B -->|路径2| D[选项B]
C --> E[结束]
D --> E
classDef decision fill:#ffe6cc,stroke:#d79b00,stroke-width:2px
classDef terminal fill:#d5e8d4,stroke:#82b366,stroke-width:2px
class B decision
class A,E terminalflowchart TB
subgraph cloud[Cloud Infrastructure]
direction LR
A[Load Balancer]
B[App Server 1]
C[App Server 2]
end
D[User] --> A
A --> B
A --> C
style cloud fill:#e1f5ff,stroke:#01579bflowchart TB
subgraph cloud[云基础设施]
direction LR
A[负载均衡器]
B[应用服务器1]
C[应用服务器2]
end
D[用户] --> A
A --> B
A --> C
style cloud fill:#e1f5ff,stroke:#01579b