瀏覽代碼

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,


Loading…
取消
儲存