plantuml / smetana

43 stars 9 forks source link

Minor issue when layouting 3D components #3

Open drachenpalme opened 2 years ago

drachenpalme commented 2 years ago

Dear all,

I just tried smetana instead of graphviz and I am impressed with its features. I have nonetheless found a minor issue:

@startuml
!pragma layout smetana

node "Some Node" {
  [Some Component] 
}

@enduml

With the current plantUML 1.2022.6 you will find, that the inner box "Some Component" is being center-aligned with respect to the "outer border" (meaning: the 3d horizontal line farther out on the z-axis) of "Some Node", therefore overlapping with the "inner border" (meaning: the 2D-rectangle of "Some Node"). My guess would be, you align with respect to the overall width of the outer component, ignoring, this width is in some way larger due to the 3d-effect.