原文地址:https://www.lujun9972.win/blog/2020/04/22/plantuml-tips之设置连接线风格/index.html
花图时,PlantUML默认使用曲线连接元素,不过我们可以通过 skinparam
的 linetype
参数对连接线的风格进行修改。
例如下面是默认的连接风格:
@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 cancel