浏览代码

feat(node): add component for model c4

pull/1000/head
Jeongseop Lim 6 个月前
父节点
当前提交
591b161e44
共有 1 个文件被更改,包括 13 次插入0 次删除
  1. +13
    -0
      diagrams/c4/__init__.py

+ 13
- 0
diagrams/c4/__init__.py 查看文件

@@ -57,6 +57,19 @@ def C4Node(name, technology="", description="", type="Container", **kwargs):
return Node(**node_attributes)


def Component(name, technology="", description="", **kwargs):
container_attributes = {
"name": name,
"technology": technology,
"description": description,
"type": "Component",
"fillcolor": "lightskyblue",
"fontcolor": "black",
}
container_attributes.update(kwargs)
return C4Node(**container_attributes)


def Container(name, technology="", description="", **kwargs):
container_attributes = {
"name": name,


正在加载...
取消
保存