Skinparam RectangleBorderStyle doesn't work with stereotypes

0 votes
asked Mar 28 in Bug by ccharabaruk (190 points)

Example:

@startuml
skinparam rectangle {
    borderStyle<<Stereotype>> dashed
}
rectangle <<Stereotype>> {
    actor X
}
@enduml

This will show an actor inside a rectangle, but the rectangle won't have a dashed border.

1 Answer

0 votes
answered Mar 30 by ashatilo (210 points)
This maybe not fully correct syntax but you can easily workaround it in following way:

@startuml
skinparam rectangle {
    borderStyle<<Stereotype>> dashed
}
rectangle " " <<Stereotype>> {
    actor X
}
@enduml

The key is empty rectangle name, i.e. " "
...