Thickness reduction of the main box in sequence diagram

0 votes
asked Dec 24, 2020 in Question / help by UBB11

If you see, in this diagram I want to reduce the thickness (border basically) of the BLACK BOX.

I am not able to do it. What param should I use? I know how to reduce the thickness of the arrow but I am not able to do it for the box.

1 Answer

0 votes
answered Dec 24, 2020 by The-Lu (12,780 points)

Hello U.,

You can use style functionality, as:

<style>
group {
  LineThickness 1
}
</style>

And observe the expected result:


[See on plantUML server]

See also on documentation or other similar question:

If that can help,
Regards,
Th.

commented Dec 24, 2020 by UUU

You suggested:

<style>
group {
  LineThickness 1
}
</style>

But it is not working with the followiing:

@startuml

skinparam shadowing false

skinparam arrowThickness 2

skinparam sequenceMessageAlign left

skinparam sequence {

ArrowColor Black 

ParticipantBorderColor Black

ParticipantBackgroundColor LightBlue

ParticipantFontName Calibri

}

Title DEMOO

participant ACTOR1 as R

participant RESIDENCE as H

participant SMALL as S

participant Sno as E

    

R->>H: Req: wwwwwww

alt 1. this is line 1

    H->>R: CDDD

else 2. this is line 2

    H->>R: REDDD

    H->>R: DADASSSS

R->>H: AAAA

@enduml

****************************************************************************

If you see we have skinparam  and  skinparam sequence both here. So i am not sure how Style will fit with this.

can you pls provide the complete code?

I have added random names here so pls ignore that part. 

commented Dec 25, 2020 by The-Lu (12,780 points)

Hello U.,

Can you pls provide the complete code?

To see all the code, you can click on the image or on the link;
But, in your case, if we add an 'end' to close the alt/else, you can add:

<style>
group {
  LineThickness 1
}
</style>

on the first lines as:

@startuml
<style>
group {
  LineThickness 1
}
</style>

skinparam shadowing false
skinparam arrowThickness 2
skinparam sequenceMessageAlign left

skinparam sequence {
  ArrowColor Black
  ParticipantBorderColor Black
  ParticipantBackgroundColor LightBlue
  ParticipantFontName Calibri
}

Title DEMOo
participant ACTOR1 as R
participant RESIDENCE as H
participant SMALL as S
participant Sno as E

R->>H: Req: wwwwwww
alt 1. this is line 1
    H->>R: CDDD
else 2. this is line 2
    H->>R: REDDD
    H->>R: DADASSSS
end
R->>H: AAAA
@enduml

And observe the expected result:


[See on PlantUML server]

Regards,
Th.

...