Style for note on Component and Deployement diagram, Class,...

0 votes
asked Jun 3, 2020 in Wanted features by The-Lu (64,340 points)

Hello Plantuml team,

After some test on style for note:

That is OK for Sequence diagram, see:


[Click to see code on PlantUML server]

But for Class diagram or Component and Deployement that is KO (on version 2020.11):
Here are the code:

@startuml
skinparam useBetaStyle true
<style>
note {
  FontSize 10
  BackGroundColor #fff
  .green {
        BackgroundColor green
   }
}
</style>

class Foo
note<<green>> left: On last defined class
@enduml

→ Link

And:

@startuml
'skinparam useBetaStyle true
<style>
note {
  FontSize 10
  BackGroundColor #fff
  .green {
        BackgroundColor green
   }
}
</style>

node n
file f
note<<green>> left of n: note that is green
@enduml

→ Link

Perhaps style is not yet implement on Class and Deployement ?
We made no test on Activity or State diagram.

Thanks for your analyse,
Regards,
Th.

related to an answer for: note assigne different styles

1 Answer

+1 vote
answered Dec 6, 2022 by The-Lu (64,340 points)
 
Best answer

Hello all,

FYI: this now works with the last version (V1.2022.13), with:

@startuml
<style>
note {
  FontSize 10
  BackGroundColor #fff
  .green {
        BackgroundColor green
   }
}
</style>

class Foo
note left <<green>>: On last defined class
@enduml

And:

@startuml
<style>
note {
  FontSize 10
  BackGroundColor #fff
  .green {
        BackgroundColor green
   }
}
</style>

node n
file f
note left of n <<green>>: note that is green
@enduml

Thanks to PlantUML team. yes
Regards.

...