62 lines
1.3 KiB
Plaintext
62 lines
1.3 KiB
Plaintext
{
|
|
"nodes": [
|
|
{
|
|
"id": "module-main",
|
|
"type": "text",
|
|
"x": 0,
|
|
"y": 0,
|
|
"width": 280,
|
|
"height": 150,
|
|
"text": "# ModuleName\n\n## 职责\n- 功能描述1\n- 功能描述2\n\n## 公开接口\n- method1()\n- method2()"
|
|
},
|
|
{
|
|
"id": "module-dep1",
|
|
"type": "text",
|
|
"x": -350,
|
|
"y": 0,
|
|
"width": 200,
|
|
"height": 100,
|
|
"text": "# 依赖模块1\n\n被本模块调用",
|
|
"color": "3"
|
|
},
|
|
{
|
|
"id": "module-dep2",
|
|
"type": "text",
|
|
"x": 350,
|
|
"y": 0,
|
|
"width": 200,
|
|
"height": 100,
|
|
"text": "# 下游模块\n\n调用本模块",
|
|
"color": "5"
|
|
},
|
|
{
|
|
"id": "note-design",
|
|
"type": "text",
|
|
"x": 0,
|
|
"y": 200,
|
|
"width": 280,
|
|
"height": 100,
|
|
"text": "## 📝 设计决策\n\n- 为什么这样设计?\n- 有哪些权衡?",
|
|
"color": "6"
|
|
}
|
|
],
|
|
"edges": [
|
|
{
|
|
"id": "edge-dep1",
|
|
"fromNode": "module-main",
|
|
"toNode": "module-dep1",
|
|
"fromSide": "left",
|
|
"toSide": "right",
|
|
"label": "调用"
|
|
},
|
|
{
|
|
"id": "edge-dep2",
|
|
"fromNode": "module-dep2",
|
|
"toNode": "module-main",
|
|
"fromSide": "left",
|
|
"toSide": "right",
|
|
"label": "调用"
|
|
}
|
|
]
|
|
}
|