plantuml-stdlib / C4-PlantUML

C4-PlantUML combines the benefits of PlantUML and the C4 model for providing a simple way of describing and communicate software architectures
MIT License
6.33k stars 1.1k forks source link

Wrong layout: "== Base Query" <<boundary>> as Base Query #345

Closed SHU-red closed 5 months ago

SHU-red commented 5 months ago

Can someone tell me what im doing wrong using the syntax below? The rendering isnt done properly and im not geeing errors

But the containers do not get the colors/formatting as they should

Here you see the result

@startuml
!include <C4/C4_Container>

' Highlighting Base Query elements
' AddBoundaryTag("Base Query", $fontColor="red", $borderColor="red", $lineStyle = SolidLine())

' Item Styles
AddElementTag("Requirement", $bgColor="#ff0000")
AddElementTag("Requirement Document", $bgColor="#ff6666")

AddElementTag("Specification", $bgColor="#008000")
AddElementTag("Specification Document", $bgColor="#66b266")

AddElementTag("Input", $bgColor="#ffffff", $fontColor="#000000")
AddElementTag("Input Document", $bgColor="#dddddd", $fontColor="#000000")

AddElementTag("Test Case", $bgColor="#0000ff")
AddElementTag("Test Suite", $bgColor="#6666FF")
AddElementTag("Test Session", $bgColor="#D6DAF1")
AddElementTag("Test Object", $bgColor="#9DA7DE")

AddElementTag("Interface", $bgColor="#999999")
AddElementTag("Interface Document", $bgColor="#c1c1c1")

AddElementTag("Configuration Item", $bgColor="#f9cb9c", $fontColor="#000000")
AddElementTag("Confiugration Document", $bgColor="#FADAB9", $fontColor="#000000")

AddElementTag("Delivery", $bgColor="#ffa500")

AddElementTag("Defect", $bgColor="#bdf836")
AddElementTag("Change Order", $bgColor="#90ba30")
AddElementTag("Change Analysis", $bgColor="#ecf2df", $fontColor="#000000")
AddElementTag("Change Package", $bgColor="#d0e0e3", $fontColor="#000000")
AddElementTag("Work Item", $bgColor="#fff2cc", $fontColor="#000000")

' Line Styles
AddRelTag("Versioned", $lineStyle = DashedLine())

' Boundaried/Containers

Boundary("Base Query", "Base Query") {
WithoutPropertyHeader()
Container(11584048, "11584048", "TestContainer", $link="http://www.google.com", $tags="Delivery+Queried")
WithoutPropertyHeader()
Container(11584100, "11584100", "TestContainer", $link="http://www.google.com", $tags="Delivery+Queried")
}

' Relationships

' Show legend
SHOW_LEGEND()

@enduml
kirchsth commented 5 months ago

Hi @SHU-red,

an alias of the elements/lines/... cannot have spaces in it. With Boundary("BaseQuery",... it is working. Additional if you use $borderStyle instead of $lineStyle in the AddBoundaryTag(... call then you have all your styles

BR Helmut

(if you click on the image you see the source)

SHU-red commented 5 months ago

Thank you very much

kirchsth commented 5 months ago

I update the link of my last commit. now you see the source too