Skinparam RectangleBorderStyle doesn't work with stereotypes

0 votes
asked Mar 28, 2018 in Bug by ccharabaruk (250 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, 2018 by ashatilo (220 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. " "
...