英文:
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
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
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论