Round corners in component diagram

0 votes
asked Dec 13, 2016 by anonymous
I am using the component diagram to draw arbitrary rectangles.
I want to have rounded corners as seen as bellow.
Currently it doesn't seem to work. I think it would be fairly simple to fix though.
Is it possible to fix/add this?


rectangle "Concept Model" {
    rectangle "e" <<Concept>> as e
}


skinparam rectangle {
    roundCorner<<Concept>> 5
    backgroundColor<<Concept>> White

}

1 Answer

0 votes
answered Dec 13, 2016 by plantuml (134,510 points)

Sure, we like the idea!
So with last beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

You can have:

@startuml
skinparam rectangle {
    roundCorner<<Concept>> 25
    roundCorner<<Foo>> 45
    backgroundColor<<Concept>> White
}

rectangle "Concept Model" <<Foo>> {
    rectangle "e" <<Concept>> as e
    rectangle "F"
}
@enduml


This has not been widely tested, so feedback welcome!

...