Add Padding to rnote (note)

0 votes
asked Mar 20, 2022 in Question / help by jack2022 (140 points)

I'm using 'rnote' with custom background color and border color. The border is too close to the text, so i want to set some 'Padding'. I'm able to set the global padding as shown below. But i want to set padding only for the note. Is there a way to achieve this?

skinparam padding 10 ' This works but applies padding globally

commented Mar 21, 2022 by The-Lu (63,920 points)

Here is an attempt with style:

@startuml
<style>
note {
 Padding 30
 Margin 50
 LineThickness 15
 Linecolor red
 Backgroundcolor palegreen
}
</style>

caller -> server : conReq
hnote over caller : idle
caller <- server : conConf
rnote over server
 "r" as rectangle
 "h" as hexagon
endrnote
rnote over server
 this is
 on several
 lines
endrnote
hnote over caller
 this is
 on several
 lines
endhnote
@enduml

But without success...

@PlantUML team : could you have a look ?...

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.
...