-
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
Descriptions for boundaries #350
Comments
HI @NathanDotTo, I will try to implement it in one of the next weekends.
like (follow the image link then you see the code) BR Helmut |
Cool, that worked, thanks! :-) |
I have also had cause to use the
|
Update: correct solution see next comment If you want a different type, then I would directly use a boundary and define its own $type like Boundary(anotherBoundary, "Another Boundary", $type="BOUNDARY TYPE", $tags="v1") { BR Helmut |
…tags If a sprite is defined then it displayed in the first line in front of the (with a smaller size, typically 50%) - AddBoundaryTag(..., ?sprite, ?legendSprite) - UpdateBoundaryStyle(..., ?sprite, ?legendSprite) - UpdateContainerBoundaryStyle(..., ?sprite, ?legendSprite) - UpdateSystemBoundaryStyle(..., ?sprite, ?legendSprite) - UpdateEnterpriseBoundaryStyle(..., ?sprite, ?legendSprite) Default sprite size can be changed via $BOUNDARY_IMAGE_SIZE_FACTOR
Hi @NathanDotTo, sorry, I forgot my implementation (indention) related to the $type support of a (System/Container/...)Boundary. BR Helmut |
- Boundary(..., ?descr) - Enterprise_Boundary(..., ?descr) - System_Boundary(..., ?descr) - Container_Boundary(..., ?descr)
…nd descriptions too
Hi @NathanDotTo, I implemented a version in my extended branch (details see #352) can you please check it via my branch? @startuml
!include https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/C4_Container.puml
AddBoundaryTag("chatGPT", $type="ChatGPT", $bgColor="red", $fontColor="white", $borderColor="darkred", $sprite="robot2")
Person(admin, "Administrator",$sprite="person2")
System_Boundary(c1, "Sample System", $descr="ChatGPT with model gpt-3.5-turbo. It has been updated to feature higher accuracy", $tags="chatGPT") {
Container(web_app, "Web Application", "C#, ASP.NET Core 2.1 MVC", "Allows users to compare multiple Twitter timelines")
}
System(twitter, "Twitter")
Rel(admin, web_app, "Uses", "HTTPS")
Rel(web_app, twitter, "Gets tweets from", "HTTPS")
SHOW_LEGEND()
@enduml Thank you and best regards |
Thank you for this. I will be able to test this next week. |
I have tested this, and it works, thank you :-) |
…rite #350 All boundaries supports descriptions and sprites too
Hi
It seems to me that adding a description to a boundary would be a good thing. That way we could describe what the boundary contains in a general sense. This also seems like an obvious idea, so I am wondering why it is not already possible.
To explore whether boundary descriptions might be possible, I am looking at the
Enterprise_Boundary
,System_Boundary
, andContainer_Boundary
procedures. For example:Which leads to, in C4.puml:
Which leads to:
Does anyone reading this know whether/how a rectangle can have a description?
Am I thinking about this in the right way please?
Thanks
Nathan
The text was updated successfully, but these errors were encountered: