Skip to content
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

#300 Fix all Add....Tag() related calls #301

Merged

Conversation

kirchsth
Copy link
Contributor

fix #300 Add....Tag() related calls do not overwrite the default values anymore

@startuml
'!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Component.puml
!include https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/C4_Component.puml


AddContainerTag(my_Container_tag_1, $bgColor=lightyellow, $fontColor=black, $legendText="This should have new styles")
AddContainerTag(my_Container_tag_2, $legendText="This should have default styles")
Container(regularContainer, Regular Container)
Container(taggedContainer1, Tagged Container With New Styles, $tags=my_Container_tag_1)
Container(taggedContainer2, Tagged Container With DefaultStyles, $tags=my_Container_tag_2)

AddSystemTag(my_System_tag_1, $bgColor=red, $fontColor=darkred, $legendText="This should have new styles")
AddSystemTag(my_System_tag_2, $legendText="This should have default styles")
System(regularSystem, Regular System)
System(taggedSystem1, Tagged System With New Styles, $tags=my_System_tag_1)
System(taggedSystem2, Tagged System With DefaultStyles, $tags=my_System_tag_2)

AddComponentTag(my_Component_tag_1, $bgColor=lightgreen, $fontColor=darkgreen, $legendText="This should have new styles")
AddComponentTag(my_Component_tag_2, $legendText="This should have default styles")
Component(regularComponent, Regular Component)
Component(taggedComponent1, Tagged Component With New Styles, $tags=my_Component_tag_1)
Component(taggedComponent2, Tagged Component With DefaultStyles, $tags=my_Component_tag_2)

AddPersonTag(my_Person_tag_1, $bgColor=lightblue, $fontColor=darkblue, $legendText="This should have new styles")
AddPersonTag(my_Person_tag_2, $legendText="This should have default styles")
Person(regularPerson, Regular Person)
Person(taggedPerson1, Tagged Person With New Styles, $tags=my_Person_tag_1)
Person(taggedPerson2, Tagged Person With DefaultStyles, $tags=my_Person_tag_2)


SHOW_LEGEND()
@enduml

It can be tested with my extended branch

BR
Helmut

@kirchsth kirchsth merged commit 4e0702c into plantuml-stdlib:master Apr 16, 2023
1 check passed
@kirchsth kirchsth deleted the feature/300_fix_AddContainerTag branch April 16, 2023 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants