Allow stereotypes on notes in component diagram

0 votes
asked Mar 4, 2021 in Wanted features by Lukasz
Hi,

It would be really useful, to allow stereotypes on notes in component diagram.

My use case is color, but I think it could be used in many other cases.

sample code;

@startuml
skinparam note{
    backgroundcolor<<data>> blue

}
componenet test
  note<<data>> left of test
  test note
  end note
@enduml

1 Answer

0 votes
answered Mar 4, 2021 by The-Lu (64,340 points)

Hello L.,

Just put the stereotype name at the end of the line, as :

  note left of test <<data>>
  test note
  end note

With that, we observe the expected result:

Regards,
Th.

commented Mar 4, 2021 by Lukasz
Hmmm.

It seams I have to upgrade my PlantUML :)

Thank you
...