Plantuml plantuml.2017.08.jar / sequence diagram / box color gets hidden by the goup definition

0 votes
asked Apr 3, 2017 in bug by boshka (1,460 points)
edited Apr 3, 2017 by boshka

The background of the group/end container should be transparent. The "new" behavior of plantuml.2017.08.jar is not consistent with the previous versions. The defect impacts much more large diagrams where there are many groups defined or a group container overlays almost the whole sequence. The "new" behavior worsens diagram readability from coloring perspective.

This should be either fixed or there should be a way to configure the "old" behavior within @plantuml definition

Please try:

 

@startuml
box "A" #DD55DD
participant user
end box
 
box "B" #55CCDD
participant device
end box
 
user->device: do something
group if condition 1
device->user: done
end
@enduml
 

1 Answer

0 votes
answered Apr 3, 2017 by plantuml (137,940 points)

Sorry, there are been some changes here (see http://plantuml.sourceforge.net/qa/?qa=5639/grouping-messages-should-be-on-top-level )

Fortunately, you can add transparent like this:

@startuml
box "A" #DD55DD
participant user
end box
 
box "B" #55CCDD
participant device
end box
 
user->device: do something
group #transparent if condition 1
device->user: done
end
@enduml

Does is sound good to you ?

commented Apr 3, 2017 by boshka (1,460 points)
edited Apr 3, 2017 by boshka
Thank you. Not quite.
Am I able to specify the tranparency globaly for all groups, alts, loops and opts at once?

This way:
    !define group group #transparent
    !define alt alt #transparent
    !define opt opt #transparent

does not look good since there can be texts with words alt, group, opt in the sequence that will be broken.

This one (is for header) does not work either:
    skinparam sequenceGroupBackgroundColor #transparent

Could we have something similar to sequenceGroupBackgroundColor but for body and supporting #transparent value?
commented Apr 3, 2017 by Serge Wenger Work (6,780 points)
skinparam SequenceGroupBodyBackgroundColor exist but didn't work with transparent. It is OK with other colors

It would be nice if the parser give an error if the color is unknown
commented Apr 3, 2017 by plantuml (137,940 points)
With last beta (20)
https://www.dropbox.com/s/koo42q3d9gxw288/plantuml.jar?dl=0

You can now have transparent for SequenceGroupBodyBackgroundColor :

 @startuml
 skinparam SequenceGroupBodyBackGroundColor transparent

 box "A" #DD55DD
 participant user
 end box

 box "B" #55CCDD
 participant device
 end box

 user->device: do something
 group if condition 1
 device->user: done
 end
 @enduml

Thanks!
commented Apr 3, 2017 by Serge Wenger Work (6,780 points)
Thanks it is OK
commented Apr 3, 2017 by boshka (1,460 points)
That should work! thank you!
commented May 4, 2017 by boshka (1,460 points)
Could you tell when this will be in the release? For ex, I see the latest eclipse plugin still does not support this
commented May 4, 2017 by plantuml (137,940 points)
It's in last release of PlantUML.
Not sure when the Eclipse team will upgrade. You can contact them :-)
...