Cannot easily customize note on class members

0 votes
asked Sep 12 in Closed feature request by dragondive (300 points)

It appears customization of notes on class members is currently limited. In particular, you cannot specify the background colour for the note using the "standard" syntax:

note left of class_name::member/' cannot specify color anywhere on this line '/
    this is a note
end note

You can instead customize a floating note and then attach it to the class attribute. It works but often changes the layout in unusual ways. Using the [hidden] connector between the classes is not always successful.

I (mis?)understand from the history that this feature is still a work in progress. Can we have a cleaner and more consistent syntax for this?

Please see the example here: http://www.plantuml.com/plantuml/uml/SoWkIImgAStDuKhEIImkLeY0qf5GEWfAEq9f9oZjp0LbkENdArHpAG11Kc8HLoqNLuI2JOskBaWSneo4CQ9W34SOmmdA09cNbr-Igf1OhE1dgA0Sd5tfb5EQ2ZQt92EpM0684XL0AhXIyr8W32wWGZqza4LMLY2x7O0oG8y00000

@startuml
class X
class Y
class Z
class A
class B
class C

class Foo {
    bar
}

X <|-- Foo
X <|-- Y
X <|-- Z
X <|-- A
X <|-- B
X <|-- C

note as N1 #SkyBlue
    this is a note
end note

N1 .. Foo::bar
@enduml

commented Sep 12 by The-Lu (31,200 points)

Hello D.,

See pseudo-similar request here:


And a complement for class member, for PlantUML test teamwith minimal style example:

@startuml
<style>
note {
  BackGroundColor palegreen
}
</style>

class class_name {
member
}

note left of class_name
  note on class Ok
  (palegreen)
end note

note right of class_name::member 
  <color:#red>note on member KO
  (always yellow!)
end note

@enduml


Regards,
Th.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...