Bug: skinparam packageShadowing not working for class-diagrams

0 votes
asked Sep 17, 2018 in Bug by Sander

Using plantuml 1.2018.10 and the example below, setting the skinparam packageShadowing to false doesn't influence the appearance of a package in the generated image. This behaviour is in the class diagram. The behaviour for a stereotyped package is the same, it doesn't;t influence the generated image.

@startuml

skinparam packageShadowing false

skinparam packageShadowing<<Rectangle>> false

package Package1 {

class Comp1

}

package Package2 <<Rectangle>> {

class Comp2

}

@enduml

1 Answer

0 votes
answered Sep 17, 2018 by plantuml (295,000 points)
Thanks for the report.

This is fixed in last beta http://beta.plantuml.net/plantuml.jar

Tell us if it's not working for you
commented Sep 20, 2018 by Sander
Thanks for the fix. This now behaves as I expected.

For future readers: The issue is that in class diagrams `skinparam packageShadowing true/false` doesn't work. It's not related to the stereotype on the package.

The example doesn't really reflect the problem, as the `<<Rectangle>>` stereotype is a special case, and converts it to a rectangle type, which is affected by `skinparam rectangleShadowing`.

With reference to http://forum.plantuml.net/8232/skinparam-packageshadowing-doest-work-stereotyped-packages?show=8238#a8238 , shadowing also doesn't work for other component types in a component-diagram.
...