Notes can not be added beside a grouping message

0 votes
asked Mar 10 in bug by roipoussiere (180 points)

This PlantUML code:

alt foo
Bob->Alice : hello
Bob<-Alice : hello
end
note right: Some explication on the large unused space beside the alt block.
Alice->John_smith : hello
Alice->An_other_actor : hello

generate this:

As you can see, I can't add a note at the right of the alt block.

2 Answers

0 votes
answered Mar 10 by Serge Wenger Work (5,360 points)

Hello,

You use the following woraround:

@startuml
alt foo
Bob->Alice : hello
note over John_smith, An_other_actor: Some explication \non the large unused\n space beside the alt block.
Bob<-Alice : hello
end
note over John_smith, An_other_actor: Another expalanation
 
Alice->John_smith : hello
Alice->An_other_actor : hello
@enduml
 
It would be also nice to have the possibility to put negative space like this:
|| -10||
With this new feature, you will have exactly what you want
Hope this helps
 
commented Mar 10 by roipoussiere (180 points)
Thank you.

Your code is not exactly what I am looking for, because the note is inside the alt block, not beside. ;-)
0 votes
answered Mar 13 by plantuml (134,510 points)
...