-
-
Notifications
You must be signed in to change notification settings - Fork 902
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
Skinparameters for sequence groups affect non-empty packages #1795
Comments
Hello @nkhancock, Instead using of old @startuml
<style>
arrow {LineColor #limegreen}
classDiagram {
backgroundColor #white
LineColor #limegreen
LineThickness 1
}
package {
backgroundColor #white
fontSize 11
fontStyle normal
LineColor #LimeGreen
LineThickness 1
}
sequenceDiagram {
actor,participant {
LineColor #darkgreen
}
group {
BackgroundColor #darkgrey
LineColor #black
LineThickness 3
}
box {
BackgroundColor #whitesmoke
LineColor #whitesmoke
}
lifeLine {
BackGroundColor #limegreen
LineColor #limegreen
}
}
</style>
package "external-module" as external_module {
}
package "my-module" as my_module {
class "my-class" as my_class
}
external_module +-- my_module
@enduml See alslo doc. here: Enjoy, |
@The-Lum : Thanks for this information. Some initial quick attempts resulted in some unexpected behaviour such as style definitions for class diagrams affecting other skinparam definitions for other diagrams, such as packages. I'll have to investigate this further. Are there any know issues when mixing stye definitions with skinparam definitions? |
The bug
The sequence skinparameters
groupBorderColor
andgroupBorderThickness
override the package skinparametersborderColor
andborderThickness
for packages that include other elements, such as classes.groupBorderColor
andgroupBorderThickness
do not affect packages that contain no elements.This issue can be reproduced with PlantUML releases going back to at least plantuml-1.2022.12.
To Reproduce
The following PlantUML code can be used to reproduce this behavior.
Generating the above PlantUML code with release v1.2024.4 results in the following image:
Although the
borderColor
defined for packages isLimeGreen
and the border of the package without any contents isLimeGreen
, the border of the package containing the class is neverthelessblack
.After some experimenting, I found that the skinparameter
groupBorderColor
for sequences caused this behavior. The same was true forborderThickness
\groupBorderThickness
. There may be other such parameter pairs affected.Note that if skinparameter
groupBorderColor
is not defined, the border color of the package with the class isLimeGreen
as expected. If skinparametergroupBorderThickness
is not defined, the border thickness of the package with the class is as expected. So it seems that if a groupBorder* skinparameter is not explicitly defined, the value defined for packages is not affected.This can be reproduced by commenting out the parameters
groupBorderColor
andgroupBorderThickness
as shown in the following image:Expected behavior
The
borderColor
andborderThickness
defined as skinparamters of a package must apply to both empty packages and packages containing elements and not be affected by any other skinparameters, i.e., skinparameters for sequence groups.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: