Smetana Layout Error

0 votes
asked Jun 29 in Bug by zimchaa (1,100 points)
edited Jun 29 by zimchaa

I'm getting an odd error with a very specific diagram layout, which is arguably visually wrong, but scripted correctly:

Smetana error

Code:


@startuml
!pragma layout smetana

left to right direction

database "**Inventory Service**" as SYS1 
rectangle "**Inventory API**" as SYS2 
artifact "**User Interface**" as SYS3 
cloud "**Monitoring and Reporting Service**" as SYS4 

SYS1 <.r.> SYS2 : Sends inventory data\n real-time
SYS1 <.d.> SYS4 : Sends periodic inventory snapshots\n daily
SYS2 <.r.> SYS3 : 01234567890
SYS3 <.l.> SYS2 : 012345678

@enduml

This image can be generated in a couple ways successfully, any single of these - note the odd issue with the length of the line comment where they overlap on the diagram:

  • Turning off smetana layout (i.e. comment out line 2)
  • Not using 'left to right direction' (i.e. comment out line 4)
  • Changing the length of the comment on connection 3 (SYS2 <.r.> SYS3) or connection 4
  • Taking the l(eft) or r(ight) direction hints on either connection

e.g.

Working diagram


@startuml
!pragma layout smetana

left to right direction

database "**Inventory Service**" as SYS1 
rectangle "**Inventory API**" as SYS2 
artifact "**User Interface**" as SYS3 
cloud "**Monitoring and Reporting Service**" as SYS4 

SYS1 <.r.> SYS2 : Sends inventory data\n real-time
SYS1 <.d.> SYS4 : Sends periodic inventory snapshots\n daily
SYS2 <.r.> SYS3 : 01234567
SYS3 <.l.> SYS2 : 012345678

@enduml

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...