Could you support floating notes for sequence and all other type of diagrams?

0 votes
asked Oct 12, 2022 in Wanted features by boshka (3,940 points)
Hello!

Currently floating notes are supported for component diagram:

@startuml

note as floatingLegend
   some legend
end note

component a {
}

component b {
}

a->b:test

@enduml

However, it breaks for sequence diagram:

@startuml

note as floatingLegend
   some legend
end note

participant a
participant b
a->b: test

@enduml

1 Answer

0 votes
answered Oct 12, 2022 by The-Lu (64,760 points)

Hello B.,

  • What is the meaning of a floating note on sequence?
If you want really a note outside the sequence, we can use sub-diagram, as:
@startuml
note as floatingLegend
   some legend
end note

label l [
{{
participant a
participant b
a->b: test
}}
]
@enduml

If that can help,
Regards.
Th.

...