box params in sequence diagram

0 votes
asked Jan 12 in Question / help by Fuhrmanator (1,460 points)

I found skinparam boxPadding which works, but I'm trying to make box borders to be transparent.

skinparam boxbordercolor transparent
skinparam boxpadding 40
box "insider info" #pink
participant A
participant B
end box
box "spy"
participant C
end box
A->B : hello
B->C : A said hello

1 Answer

0 votes
answered Jan 12 by Fuhrmanator (1,460 points)

OK, I found it using the VSCode PlantUML plugin (which does nifty code completion).

skinparam SequenceBoxBorderColor transparent
skinparam boxpadding 40
box "insider info" #pink
participant A
participant B
end box
box "spy"
participant C
end box
A->B : hello
B->C : A said hello

commented Jan 12 by albert (2,900 points)

A bit strange that plantuml didn't give an error / warning (I tried it in the plantuml webserver and local with version 1.2020.00 but didn't get an error or warning either).

When running plantuml with the option -language and doing a case in-sensitve grep for bordercolor a big list appears but only one with box i.e. SequenceBoxBorderColor.

Doing a case in-sensitve grep for padding only one possibility appears.

@plantuml

- shouldn't an error / warning be emitted when a wrong skinparameter is requested?

- is there a reason for having a BoxPadding for all but no specific padding for different types? (or did I overlook something).

...