-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to add styles for System_Boundary, Container_Boundary #227
Comments
Styling all boundariesThe style of all boundaries can already be changed by using
Styling individual boundariesAlthough it is currently not possible to style individual boundaries as one would for elements (using
@vellala2000 does this suffice for your usecase, or is there something else you need? |
[Updated]
@startuml
!include <C4/C4_Container>
' workaround missing default boundary legend entry - should be part of C4 files -------------------
UpdateElementStyle("boundary", $bgColor=$BOUNDARY_BG_COLOR, $fontColor=$BOUNDARY_COLOR, $borderColor=$BOUNDARY_COLOR)
!$tagDefaultLegend = $tagDefaultLegend + "\nboundary"
' automatic add of ` (dashed, transparent?)` in legend is missing; $legendText=... could be used as workaround
' end of fix -------------------
' missing UpdateBoundaryStyle() and AddBoundaryTag() has to be simulated with ...Element...() calls
UpdateElementStyle("boundary", $bgColor="gold", $fontColor="brown", $borderColor="brown")
AddElementTag("special", $bgColor="green", $fontColor="white", $borderColor="blue", $shadowing="true", $shape = RoundedBoxShape(), $techn="A SPECIAL SYSTEM BOUNDARY", $legendText="special system boundary")
AddElementTag("existingContainersBoundary", $bgColor="red", $fontColor="white", $borderColor="white", $shape = RoundedBoxShape(), $techn="A SPECIAL SYSTEM BOUNDARY", $legendText="existing containers boundary")
System_Boundary(sb, "A System Boundary") {
}
System_Boundary(sb1, "Special System 1 Boundary", $tags="special") {
Container_Boundary(cb1, "Container Boundary\nwith tag", $tags="existingContainersBoundary") {
Container(e1, "existing 1", "xyz")
Container(e2, "existing 2", "xyz")
}
Container_Boundary(cb2, "Container_Boundary") {
Container(c2, "Container", "xyz")
}
}
System_Boundary(sb2, "Special System 2 Boundary", $tags="special") {
}
Lay_R(sb, sb1)
Lay_R(sb1, sb2)
SHOW_LEGEND()
@enduml I think I could fix missing @vellala2000 and @Potherca: what do you think? Did I oversee something? Best regards |
For the sake of consistency (or principle of least surprise, I think that would be a Good Idea:tm:
Agreed.
As usual, I think you got it spot-on. |
Hi @Potherca and @vellala2000 |
#227 Boundaries can be styled via tags
Add support to style System_Boundary, Container_Boundary
The text was updated successfully, but these errors were encountered: