How can I deactivate the shadow and line of a note?

0 votes
asked Apr 11 in Question / help by kirchsth (800 points)

Hi PlantUML team,

I want to add a note without a visible border. I can change background and border color to white. But I cannot deactivate the shadow and the connection line(s).

@startuml
skinparam note {
    backgroundcolor white
    bordercolor white
' not working
    shadowing false
    linecolor white
}

package p {
[Component A]
}
[Component B]

note left of [Component B]
Text
endnote

note bottom of p
Text
endnote
@enduml

Thank you and best regards

Helmut

1 Answer

0 votes
answered Apr 11 by The-Lu (22,220 points)

Hello K.,

If you want, you can use style.
But it is only OK for simple note, not for note on nested objet, see result here:

<style>
note {
    backgroundcolor white
    shadowing 0
    linecolor transparent
}
</style>

Regards,
Th.

commented Apr 11 by kirchsth (800 points)

I found a solution based on https://forum.plantuml.net/6919/can-a-note-belong-to-several-components (set position via relations) and set shadowing global

```

@startuml
skinparam shadowing false

skinparam note {
  backgroundcolor white
  bordercolor white
}

package p as P{
  [Component A] as A
}

[Component B] as B

note as NB
Note B
endnote

note as NP
Note P
endnote

NB -[hidden]r- B
NP -[hidden]u- P
@enduml

```

 

...