Accept hexagon with smetana [Deployment diagram]

0 votes
asked Feb 3, 2021 in Bug by The-Lu (63,920 points)

Hello PlantUML,

- Now: combinatorial is more and more -

  • Could you accept hexagon element with smetana (the internal Java port of GraphViz/Dot embedded in PlantUML sources)?

Here is the result of the test:

elementnodehexagon
code
@startuml
!pragma graphviz_dot smetana
node h [
more
and
more
combinatorial
]
@enduml
@startuml
!pragma graphviz_dot smetana
hexagon h [
more
and
more
combinatorial
]
@enduml
output
resultOK with nodeKO (NullPointerException) with hexagon

Thanks for your support,
Regards,
Th.

commented Apr 28, 2021 by The-Lu (63,920 points)

Hello PlantUML,

Idem (NullPointerException) with:

!pragma layout smetana

Regards,
Th.

commented Oct 30, 2021 by The-Lu (63,920 points)

Hello PlantUML team,

  • Could you have a look on this 'NullPointerException'?

For the theme gallery, I wanted to use 'smetana' to avoid installing GraphViz, but I keep getting this error... (in the diagrams that contains a hexagon...)

Thanks for yours works,
Th.

1 Answer

0 votes
answered Nov 1, 2021 by matthew16550 (140 points)
I had a quick look but do not understand that part of the code enough.
commented Nov 1, 2021 by plantuml (294,960 points)
This one is hard to fix, because it has an impact on the portage C-to-Java of graphviz library (portage which is not finished...)

A first and quick fix could to be to simply ignore the hexagon (and draw a rectangle instead).
commented Nov 1, 2021 by The-Lu (63,920 points)
Ok, no problem...
commented Nov 1, 2021 by kirchsth (4,880 points)

In C4-Stdlib a rectangle based "octagon" (via skinparam DiagonalCorner 18)  is used instead of the hexagon (I think it has the better text layout at all).

@startuml
skinparam DiagonalCorner 18
!pragma layout smetana
rectangle h [
more
and
more
combinatorial
]
@enduml

BR Helmut

commented Nov 2, 2021 by matthew16550 (140 points)

Thats very nice yes

commented Nov 2, 2021 by The-Lu (63,920 points)

Thanks a lot @Kirchsth,

But DiagonalCorner also affects agent...wink

@startuml
skinparam DiagonalCorner 18
!pragma layout smetana

agent agent
rectangle rectangle
@enduml

Then:

  • either I install Graphviz,
  • either I wait for the correction in Smetana...
    and in the meantime I do not use the hexagon.

Ok, no problem...
Regards,
Th.

commented Nov 2, 2021 by kirchsth (4,880 points)

OK, my description was too short wink

@startuml
!pragma layout smetana

skinparam rectangle<<octagon>> {
    DiagonalCorner 18
}

agent agent
rectangle rectangle
rectangle service <<octagon>>
@enduml

commented Nov 2, 2021 by The-Lu (63,920 points)

Ah! OK. Thank a lot. yes

But with style and new [beta] style, I no longer use skinparam and I forgot all about skinparam...

Regards.

...