Please allow to set notes skimparams by stereotypes in all notes

0 votes
asked Apr 27 in Wanted features by alonbl (180 points)

Hi,

Similar to https://forum.plantuml.net/3891/please-allow-to-set-notes-skimparams-by-stereotypes

Strangely It was implemented only to sequence diagrams as far as I can see...

Can you please consider implementing this for all types of diagrams? It should be more or less the same... no? :)

Thanks!

Alon

Sequence:

@startuml
skinparam note {
    BackgroundColor<<x>> #black
}
a -> b: x
note <<x>> left
    bla
end note
@enduml

Block:

@startuml
skinparam note {
    BackgroundColor<<x>> #black
}
rectangle "XXX"
note <<x>> left
    bla
end note
@enduml

1 Answer

0 votes
answered Apr 27 by plantuml (226,400 points)

You're right : is has not been generalized everywhere...

This one is fixed in last beta http://beta.plantuml.net/plantuml.jar

@startuml
skinparam note {
    BackgroundColor<<x>> #black
}
rectangle "XXX"
note left <<x>>
    bla
end note
@enduml

Note that we have changed the order of left and <<x>>

Tell us if it's not working for you or if you find other issues !

commented Apr 30 by alonbl (180 points)
Thanks!!! Working.
commented May 26 by mfed
edited May 26

Hi!

Doesn't work on notes like this:

@startuml
skinparam note {
    BackgroundColor<<x>> #black
}
rectangle "XXX" as R1
rectangle "YYY" as R2
note as N
    bla
end note
N .. R1
N .. R2
@enduml

I tried different positions for "<<x>>", all of them lead to "syntax error".

...