如何更正PlantUML线路径 [英] How to correct PlantUML Line Path
问题描述
我使用以下代码创建了该图.但是正如您所看到的,从(取消订单)和(下订单)到(发布者)的行决定采用一条非常圆滑的路径来获取它们,而不是直接向右再向下再到发布者.我尝试使用"-down"之类的手动方向命令,但似乎都没有帮助.有人知道如何解决这个问题吗?
I created this diagram using the following code. But as you can see, the lines going from (Cancel Order) and (Place Order) to (Publisher) decide to take a terribly rounded path to get their, instead of going straight to the right and then down to publisher. I tried using manual direction commands like "-down" but none of them seemed to help. Does anybody know how to fix this?
这是我的代码.感谢您的帮助.谢谢.
And here is my code. I appreciate any help. Thank you.
@startUML EBook Use Case Diagram
left to right direction
Actor Customer as customer
Actor EBook as ebook
Actor Publisher as publisher
rectangle "Book Catalogue" {
together {
Actor "Book Database" as bookLog
(Retrieve Information) as getBook
customer -- getBook
getBook -- ebook
getBook -- bookLog
(Update Catalogue) as updateCatalogue
ebook -- updateCatalogue
updateCatalogue -- bookLog
}
together {
(Place Order) as order
customer -- order
order -- ebook
order--publisher
(Cancel Order) as cancelOrder
customer -- cancelOrder
cancelOrder -- ebook
cancelOrder--publisher
}
}
(Ship To EBook) as shipEBook
shipEBook -- publisher
(Ship To Customer) as shipCustomer
customer -- shipCustomer
ebook -- shipEBook
shipCustomer -- ebook
(Return to EBook) as returnCustomer
(Returnto Publisher) as returnPublisher
customer -- returnCustomer
returnCustomer -- ebook
ebook -- returnPublisher
returnPublisher -- publisher
@endUML
推荐答案
要使连接在布局中不那么重要,请使用[norank]
,例如a -[norank]-> b
To make a connection less important in the layout, use [norank]
, e.g., a -[norank]-> b
这篇关于如何更正PlantUML线路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!