Please provide a hexagon shape

+3 votes
asked Nov 6, 2019 in Wanted features by dawnfly (120 points)
The hexagon shape is commonly used to depict a microservice.

Another usage would be in a hexagonal architecture diagram.

//

It could be a keyword for grouping components on component diagrams (similar to the existing node and cloud).

It could be an element on deployment diagrams (similar to the existing node and cloud).

2 Answers

0 votes
answered 2 days ago by Potherca (200 points)

This is also something that has been requested for plantuml-stdlib/C4-PlantUML

0 votes
answered 1 day ago by plantuml (240,420 points)

Nice idea!

With last beta http://beta.plantuml.net/plantuml.jar, you can now have :

http://www.plantuml.com/plantuml/uml/SoWkIImgAStDuSf8hKXCpyzJA4fDBZ7a0f69UUavgM2-4OgiCGhF1Cu3qOPSOAs62hgwTb01i05eV6CqlWaIto4rBmNe8000

@startuml
hexagon rect1
rectangle rect2
hexagon rect3
hexagon rect4
hexagon hexa1

rect1 --> hexa1
rect2 --> hexa1
rect3 --> hexa1
rect4 --> hexa1
@enduml

Is this what you are looking for ?

commented 17 hours ago by The-Lu (12,360 points)

Hello PlantUML teams,

That is good for simple component, as requested on:

It could be an element on deployment diagrams (similar to the existing node and cloud).

But not for nested component, as requested on:

It could be a keyword for grouping components on component diagrams (similar to the existing node and cloud).

  • Could you accept hexagon to be a nested component?
@startuml
rectangle r1 {
 rectangle r11
 hexagon h11
}

hexagon h2 {
 rectangle r21
 hexagon h21
}
@enduml

Thanks for your support,
Regards,
Th.

...