Notes can not be added beside a grouping message

0 votes
asked Mar 10, 2017 in Bug by roipoussiere (140 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, 2017 by Serge Wenger Work (15,620 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, 2017 by roipoussiere (140 points)
Thank you.

Your code is not exactly what I am looking for, because the note is inside the alt block, not beside. ;-)
asked Mar 13, 2017 in Wanted features by Serge Wenger Work (15,620 points) Sequence diagram negative space
+1 vote
answered Mar 13, 2017 by plantuml (295,000 points)
...