【发布时间】:2017-07-12 03:52:38
【问题描述】:
我在here 找到了一个很好的活动图,但没有源代码。它如下所示:
我尝试用 plantuml 绘制它,下面是我的代码:
@startuml
skinparam linetype ortho
(*) -down-> "clone repository"
note right
A:git clone url/to/repository
scp -p url/to/hooks/commit_msg repository/.git/hooks
end note
-down->[get an assignment] "coding"
-down-> "commit locally"
note right
B:git add xxx
git commit
end note
-down-> "review"
note right
C:git push origin refs/for/<branch>
end note
if "" then
-left->[rejected] "rework"
-up-> "recommit"
'note left
'D:git add xxx
'git commit --amend
'end note
-right-> "review"
else
--right-->[approved] "submit"
note right: E:click "submit" on on corresponding gerrit page
-up-> "update local repository"
note right
F:git pull --rebase
end note
-left->[get another task(a new cycle)] "coding"
@enduml
显然,还是不像原图:
- 上面/下面的注释不起作用,不知道怎么做(比如下面应该有E注释)
- 中心流不在直线上。
- “提交”到“更新本地存储库”已更改 2 次。
我怎样才能像原始输出一样改进它?
【问题讨论】:
-
要将注释添加到活动的顶部,请在活动之后使用
note top。底部使用note bottom。除此之外,使用不同大小的箭头需要反复试验。
标签: plantuml