如何使具有嵌套方框的PlantUML图垂直定向?

huangapple go评论45阅读模式
英文:

How is a plantuml diagram with nested boxes oriented vertically?

问题

I am trying to made a diagram that grow vertically (with the trick of hidden arrows to down), but plantuml is still drawing horizontally.

This is a tiny example of diagram

@startuml
skinparam linetype ortho
top to bottom direction

rectangle aaa {
  rectangle aaa111
}

rectangle bbb {
  rectangle ccc {
    rectangle ccc111
    rectangle ccc222
    rectangle ccc333
    
    aaa111 -right-> ccc111

    ccc111 -[hidden]-> ccc222
    ccc222 -[hidden]-> ccc333
  }
  rectangle ddd {
    rectangle ddd111
    rectangle ddd222

    ddd111 -[hidden]-> ddd222
  }
  rectangle eee {
    rectangle eee111
    rectangle eee222

    eee111 -[hidden]-> eee222
  }

  ccc -[hidden]-> ddd
  ddd -[hidden]-> eee
}
@enduml

如何使具有嵌套方框的PlantUML图垂直定向?

And this must be like:

aaa -> ccc
  
       ddd

       eee
英文:

I am trying to made a diagram that grow vertically (with the trick of hidden arrows to down), but plantuml is still drawing horizontally.

This is a tiny example of diagram

@startuml
skinparam linetype ortho
top to bottom direction

rectangle aaa {
  rectangle aaa111
}

rectangle bbb {
  rectangle ccc {
    rectangle ccc111
    rectangle ccc222
    rectangle ccc333
    
    aaa111 -right-> ccc111

    ccc111 -[hidden]-> ccc222
    ccc222 -[hidden]-> ccc333
  }
  rectangle ddd {
    rectangle ddd111
    rectangle ddd222

    ddd111 -[hidden]-> ddd222
  }
  rectangle eee {
    rectangle eee111
    rectangle eee222

    eee111 -[hidden]-> eee222
  }

  ccc -[hidden]-> ddd
  ddd -[hidden]-> eee
}
@enduml

如何使具有嵌套方框的PlantUML图垂直定向?

And this must be like:

aaa -> ccc
  
       ddd

       eee

答案1

得分: 1

这部分内容是一个包含PlantUML代码的段落,我会翻译其中的文字描述部分:

"It's not logical, but 'left to right direction' will do it:" 表示:“虽然不太合逻辑,但'从左到右方向' 将实现它:”

请注意,代码部分不会被翻译,只翻译文字描述部分。

英文:

It's not logical, but left to right direction will do it:

@startuml
skinparam linetype ortho
'top to bottom direction
left to right direction

rectangle aaa {
  rectangle aaa111
}

rectangle bbb {
  rectangle ccc {
    rectangle ccc111
    rectangle ccc222
    rectangle ccc333
    
    aaa111 --> ccc111

    ccc111 -[hidden]left-> ccc222
    ccc222 -[hidden]left-> ccc333
  }
  rectangle ddd {
    rectangle ddd111
    rectangle ddd222

    ddd111 -[hidden]left-> ddd222
  }
  rectangle eee {
    rectangle eee111
    rectangle eee222

    eee111 -[hidden]left-> eee222
  }

'  ccc -[hidden]-> ddd
'  ddd -[hidden]-> eee
}
@enduml

如何使具有嵌套方框的PlantUML图垂直定向?

huangapple
  • 本文由 发表于 2023年5月29日 18:50:33
  • 转载请务必保留本文链接:https://go.coder-hub.com/76356697.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定