Loading...
Loading...
Compare original and translation side by side
undefinedundefined| ID | Name | left | top | width | height | right | bottom |
|---|---|---|---|---|---|---|---|
| G1 | xxx | 230 | 90 | 160 | 120 | 390 | 210 |
| ID | Name | left | top | width | height | right | bottom |
|---|---|---|---|---|---|---|---|
| G1 | xxx | 230 | 90 | 160 | 120 | 390 | 210 |
| ID | Group | left | top | width | height |
|---|---|---|---|---|---|
| C1 | G1 | 246 | 116 | 128 | 40 |
undefined| ID | Group | left | top | width | height |
|---|---|---|---|---|---|
| C1 | G1 | 246 | 116 | 128 | 40 |
undefinedundefinedundefined| Group Pair | Result |
|---|---|
| G1 vs G2 | G1.right(390) < G2.left(420) OK, gap=30px |
undefined| Group Pair | Result |
|---|---|
| G1 vs G2 | G1.right(390) < G2.left(420) OK, gap=30px |
undefinedreferences/style-guide.mdreferences/style-guide.mdreferences/layout-rules.mdreferences/layout-rules.md| 锚点 | X 坐标 | Y 坐标 | 说明 |
|---|---|---|---|
| 左中 | left | top + height/2 | 组件左边框中点 |
| 右中 | right (=left+width) | top + height/2 | 组件右边框中点 |
| 上中 | left + width/2 | top | 组件上边框中点 |
| 下中 | left + width/2 | bottom (=top+height) | 组件下边框中点 |
| 锚点 | X 坐标 | Y 坐标 | 说明 |
|---|---|---|---|
| 左中 | left | top + height/2 | 组件左边框中点 |
| 右中 | right (=left+width) | top + height/2 | 组件右边框中点 |
| 上中 | left + width/2 | top | 组件上边框中点 |
| 下中 | left + width/2 | bottom (=top+height) | 组件下边框中点 |
| 场景 | 起点 | 终点 | 代码 |
|---|---|---|---|
| A在B左边,同行 | A右中 | B左中 | |
| A在B上边,同列 | A下中 | B上中 | |
| 跨行跨列 | A右中/下中 | B左中/上中 | |
| 场景 | 起点 | 终点 | 代码 |
|---|---|---|---|
| A在B左边,同行 | A右中 | B左中 | |
| A在B上边,同列 | A下中 | B上中 | |
| 跨行跨列 | A右中/下中 | B左中/上中 | |
| 语义 | 颜色 | 色值 |
|---|---|---|
| 主流程 | 灰色 | #94a3b8 |
| 数据流 | 绿色 | #059669 |
| 依赖 | 蓝色 | #2563eb |
| 配置 | 青色 | #0d9488 |
| 控制 | 红色 | #e11d48 |
| 事件 | 紫色 | #7c3aed |
| 语义 | 颜色 | 色值 |
|---|---|---|
| 主流程 | 灰色 | #94a3b8 |
| 数据流 | 绿色 | #059669 |
| 依赖 | 蓝色 | #2563eb |
| 配置 | 青色 | #0d9488 |
| 控制 | 红色 | #e11d48 |
| 事件 | 紫色 | #7c3aed |
[ ] 坐标是 10 的倍数
[ ] 同行组件间距 >= 30px
[ ] 组件不超出分组边界
[ ] 最大 right < 1140px
[ ] 拐点在空白区域[ ] 坐标是 10 的倍数
[ ] 同行组件间距 >= 30px
[ ] 组件不超出分组边界
[ ] 最大 right < 1140px
[ ] 拐点在空白区域references/html-template.mdreferences/html-template.md.box / .box.source / .box.dashed /* 组件 */
.group / .tag.teal/.blue/.green/.red/.violet /* 分组 */
.enclosure /* 基础设施层 */
.legend /* 图例 */
.connection /* 连线悬停高亮 */
.flow /* 连线流动动画 */.box / .box.source / .box.dashed /* 组件 */
.group / .tag.teal/.blue/.green/.red/.violet /* 分组 */
.enclosure /* 基础设施层 */
.legend /* 图例 */
.connection /* 连线悬停高亮 */
.flow /* 连线流动动画 */<!-- 水平连线:A右中 → B左中 -->
<line x1="A.left+A.width" y1="A.top+A.height/2"
x2="B.left" y2="B.top+B.height/2"
stroke="#94a3b8" stroke-width="1.5" marker-end="url(#ah)"
class="connection flow" />
<!-- 垂直连线:A下中 → B上中(注意:终点Y是B.top,不是B.left) -->
<line x1="A.left+A.width/2" y1="A.top+A.height"
x2="B.left+B.width/2" y2="B.top"
stroke="#94a3b8" stroke-width="1.5" marker-end="url(#ah)"
class="connection flow" />connectionflowB.topB.left+B.width/2<!-- 水平连线:A右中 → B左中 -->
<line x1="A.left+A.width" y1="A.top+A.height/2"
x2="B.left" y2="B.top+B.height/2"
stroke="#94a3b8" stroke-width="1.5" marker-end="url(#ah)"
class="connection flow" />
<!-- 垂直连线:A下中 → B上中(注意:终点Y是B.top,不是B.left) -->
<line x1="A.left+A.width/2" y1="A.top+A.height"
x2="B.left+B.width/2" y2="B.top"
stroke="#94a3b8" stroke-width="1.5" marker-end="url(#ah)"
class="connection flow" />connectionflowB.topB.left+B.width/2[ ] 所有组件可见,无遮挡
[ ] 连线清晰,无断裂
[ ] 图例与连线颜色一致
[ ] 响应式缩放正常[ ] 所有组件可见,无遮挡
[ ] 连线清晰,无断裂
[ ] 图例与连线颜色一致
[ ] 响应式缩放正常| Architecture Type | Layer Suggestion | Core Components |
|---|---|---|
| Frontend (Vue/React) | Entry, Router, Pages, Components, State, Utils | Router, Views, Components, Store, API |
| Microservice | Gateway, Service, Governance, Infrastructure | Gateway, Service Cluster, Registry, Config |
| Backend Layered | Presentation, Control, Service, Persistence | Controller, Service, DAO, Database |
| Deployment | Access, Compute, Storage | LB, Server Cluster, DB Cluster |
| 架构类型 | 层级建议 | 核心组件 |
|---|---|---|
| 前端 (Vue/React) | Entry, Router, Pages, Components, State, Utils | Router, Views, Components, Store, API |
| 微服务 | Gateway, Service, Governance, Infrastructure | Gateway, Service Cluster, Registry, Config |
| 后端分层 | Presentation, Control, Service, Persistence | Controller, Service, DAO, Database |
| 部署 | Access, Compute, Storage | LB, Server Cluster, DB Cluster |
| Resource | Purpose |
|---|---|
| 完整 HTML 模板 |
| 颜色系统、组件尺寸 |
| 坐标约束、碰撞检测 |
| Vue 3 前端架构示例 |
| 微服务架构示例 |
| 资源 | 用途 |
|---|---|
| 完整 HTML 模板 |
| 颜色系统、组件尺寸 |
| 坐标约束、碰撞检测 |
| Vue 3 前端架构示例 |
| 微服务架构示例 |