-
-
Notifications
You must be signed in to change notification settings - Fork 906
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
Skinparam inconsistencies on class diagram grouping elements #1464
Comments
Hi @DRKV333, and all, See similar/pseudo issue/request here:
See corresponding issue with @startuml
title %version()
allowmixing
<style>
package {
FontColor green
LineColor red
Title {
/* KO on nested package (OK on global) */
FontColor green
}
stereotype {
/* KO on nested package */
FontColor blue
}
}
</style>
package EmptyPackage <<something>>
package PackageWithThing <<something>> {
class a
}
rectangle EmptyRectangle <<something>>
rectangle RectangleWithThing <<something>> {
class b
}
@enduml @plantuml team: If that can help for debugging... |
Hi, @The-Lum, thanks for the reply.
I don't think this has much to do with @startuml
title %version()
skinparam packageFontColor green
skinparam packageBorderColor red
skinparam packageStereotypeFontColor blue
package EmptyPackage <<something>>
rectangle EmptyRectangle <<something>>
@enduml @startuml
title %version()
skinparam packageFontColor green
skinparam packageBorderColor red
skinparam packageStereotypeFontColor blue
package PackageWithThing <<something>> {
class a
}
rectangle RectangleWithThing <<something>> {
class b
}
@enduml From the issue that you've linked, I can see that Using a global @startuml
title %version()
allowmixing
<style>
title {
fontColor red
}
</style>
package EmptyPackage <<something>>
package PackageWithThing <<something>> {
class a
}
rectangle EmptyRectangle <<something>>
rectangle RectangleWithThing <<something>> {
class b
}
@enduml Using @startuml
title %version()
allowmixing
<style>
package {
lineColor red
}
</style>
package EmptyPackage <<something>>
package PackageWithThing <<something>> {
class a
}
rectangle EmptyRectangle <<something>>
rectangle RectangleWithThing <<something>> {
class b
}
@enduml But the @startuml
title %version()
allowmixing
<style>
composite {
lineColor red
}
</style>
package EmptyPackage <<something>>
package PackageWithThing <<something>> {
class a
}
rectangle EmptyRectangle <<something>>
rectangle RectangleWithThing <<something>> {
class b
}
@enduml
@startuml
title %version()
allowmixing
<style>
composite {
title {
fontColor red
}
}
</style>
package EmptyPackage <<something>>
package PackageWithThing <<something>> {
class a
}
rectangle EmptyRectangle <<something>>
rectangle RectangleWithThing <<something>> {
class b
}
@enduml
@startuml
title %version()
allowmixing
<style>
rectangle {
title {
fontColor red
}
stereotype {
fontColor purple
}
}
package {
title {
fontColor blue
}
stereotype {
fontColor green
}
}
</style>
package EmptyPackage <<something>>
package PackageWithThing <<something>> {
class a
}
rectangle EmptyRectangle <<something>>
rectangle RectangleWithThing <<something>> {
class b
}
@enduml |
Hi @DRKV333,
Sorry for the Then: Thanks a lot for all your examples, in order to help PlantUML team to debug... Regards. |
Many thanks for your tests, it really helps. We have fixed some issues in last snapshot (see this example) Unfortunately, we won't fix issues in skinparam. Skinparam are still supported for very simple case (and for ascending compatibility) but we would like people to migrate to style instead. (The main reason is that code for skinparam is too old and not very well written). There are also some issues in style (like the one you have found) but we do want to fix them. Tell us if you have some issues in migrating towards style as we may help you to do so! |
I've ran through all the previously mentioned cases in 1.2023.10beta1, here are the things that work now:
Things that still don't work;
Skinparam related things that don't work:
I don't really mind if these two are not fixed. Additionally, there seems to have been a regression, where
Right now I'm just using skinparam because it's what I know, but really I'm fine with using whichever works better. Also skinparam has more documentation. I didn't find much on style, though I'm sure that will improve over time. If you can point me at the bits of code that make style work, I could also look at writing some docs myself. |
Describe the bug
There are various problems with
skinparam
s on the nestable elements found in class/deployment diagrams.skinparameters
.rectangle
,node
, etc.) as well. However, it doesn't apply to empty versions of theses elements.Expected behavior
skinparameters
.skinparam
behavior should be consistent between nesting and empty elements of the same type.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: