How can I define note with stereotype?

0 votes
asked Apr 12, 2021 in Question / help by kirchsth (4,880 points)

Hi PlanttUML team,

how can I assigne a stereotype to a note with alias (and without position)?

1) combination of note/position/stereotype is working
2) note/alias is working
3) note/alias/stereotype produces invalid syntax

@startuml
skinparam shadowing<<legendnote>> false
skinparam note<<legendnote>> {
    backgroundcolor green
    bordercolor green
}

[Component 1] as C1

note bottom of C1 <<legendnote>>
Legend
text
end note

note as N1
Legend
stereotype not working
end note

N1 -L-> C1

/' How can I assign alias and stereotype
note as N2 <<legendnote>>
Legend
stereotype working
green
end note

note <<legendnote>> as N2
Legend
stereotype working
green
end note
'/

N2 -R-> C1
@enduml

BR Helmut

1 Answer

0 votes
answered Dec 6, 2022 by The-Lu (63,920 points)
selected Dec 6, 2022 by kirchsth
 
Best answer

Hello K., and all,

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

Here is the initial example:

@startuml
skinparam shadowing<<legendnote>> false
skinparam note<<legendnote>> {
    backgroundcolor green
    bordercolor green
}

[Component 1] as C1

note bottom of C1 <<legendnote>>
Legend
text
end note

note as N1
Legend
stereotype now working
end note

N1 -L-> C1

/' Assign alias and stereotype '/
note as N2 <<legendnote>>
Legend
stereotype working
green
end note

N2 -R-> C1
@enduml

Thanks to PlantUML team. yes
Regards.

commented Dec 6, 2022 by kirchsth (4,880 points)
thank you for the implementation
BR Helmut
...