plantuml
#plantuml #sequence
オンラインジェネレータ
http://www.plantuml.com/plantuml/uml/SyfFKj2rKt3CoKnELR1Io4ZDoSa70000
command
PNG に変換
$ java -jar plantuml.jar -charset UTF-8 foo.pu
PlantUMLのウインドウ上でリアルタイムプレビュー
$ java -jar plantuml.jar -charset UTF-8 -gui
巨大なダイアグラムを生成したい場合
http://plantuml.com/faq
デフォルトでは縦幅、横幅共に 4096 が上限
PLANTUML_LIMIT_SIZE 環境変数で上限を設定できる
$ java -DPLANTUML_LIMIT_SIZE=8192 -jar plantuml.jar
java.awt.AWTError: Assistive Technology not found: org.GNOME.Accessibility.AtkWrappe エラーが出る場合
$ java -Djavax.accessibility.assistive_technologies=" " plantuml.jar
my config
c.f. https://plantuml-documentation.readthedocs.io/en/latest/formatting/all-skin-params.html
code:text
autonumber "<b>0."
hide footbox
skinparam shadowing false
skinparam sequence {
GroupBorderThickness 1
ReferenceBorderThickness 1
GroupBorderColor #aaaaaa
ReferenceBorderColor #aaaaaa
ReferenceBackgroundColor #fefece
}
cheat
code:text
@startuml
skinparam shadowing false
hide footbox
title タイトル
actor "ユーザー" as User
participant "Too Long Name" as Foo
database MyDB
== separator title ==
"User" -> "Foo" : message
activate Foo
"Foo" ->> "Bar" : 非同期メッセージ
note right of Bar
メモmemo
end note
alt 条件
"Foo" ->> "Bar" : hello
else 条件
"Foo" ->> "Bar" : world
end
"User" <-- "Foo" : response
deactivate Foo
@enduml