Span a note across the width of a group in sequence diagrams

0 votes
asked May 2, 2024 in Wanted features by Ilias (180 points)

Hi, it would be helpfull to be able to have notes that span across the width of, all kinds of, groups.

That would mean a notation like:

note across group: 

I am aware this can be done manually by specifying note over pariticipant#1, pariticipant#X.... but this adds overhead and complexity especially when you reorder the participants

commented Feb 12 by The-Lu (85,440 points)

Hello I.,

See similar request here:

And the solution:

note across: note_description

See also doc. here:

Enjoy,
Regards,
Th.

commented Feb 12 by The-Lu (85,440 points)

Precision

Ah ok: that is already done for all participants.

But not yet for group...

Then your wanted feature remains...

1 Answer

0 votes
answered Mar 8 by dickmaley (4,160 points)

Appears to be possible

image

@startuml
Alice -> Bob: Authentication Request
Bob -> Alice: Authentication Failure
group My own label [My own label 2]
note across: note across group
Alice -> Log : Log attack start
loop 1000 times
Alice -> Bob: DNS Attack
end
Alice -> Log : Log attack end
end
@enduml

commented Mar 10 by The-Lu (85,440 points)

Hello D,

Thanks for your workaround.

But if you create a new participant like Eve:

  • How to have a note only across group, (not including Eve!)?
@startuml
Alice -> Bob: Authentication Request
Bob -> Alice: Authentication Failure
group My own label [My own label 2]
note across: note across group
Alice -> Log : Log attack start
loop 1000 times
Alice -> Bob: DNS Attack
end
Alice -> Log : Log attack end
end
Bob -> Eve
@enduml

Then the wanted feature remains...
Regards,
Th.
...