Request: Sequence diagram - Style duration arrow?

0 votes
asked Apr 9, 2021 in Wanted features by mawi (620 points)

Hi! How / Can we have style the duration arrow? Also, being able to control placement of the arrow, left/center/right would be cool.

But (a) color tagging the arrow does not work, and (b) would also love to skinparam the thickness of just the duration arrow and (c) use other linetypes like the normal messaging arrows.

BR! /mawi

@startuml

!pragma teoz true

title (a) Style duration arrow?

skinparam sequenceArrowThickness 2


 {start} Alice -> Bob : start doing things during duration

 Bob -> Max : something

 Max -> Bob : something else

 {end} Bob -> Alice : finish


 {start} <-> {end} : <color:#red> <&warning> I cant have color \nor set arrow style...

@enduml

http://www.plantuml.com/plantuml/umla/JL0zJyD03DtlLpo4X62W0sCKXPQDWGb65fEOvjJahjWEvKFzxpWN5LXyf-VtORsr6ebDun3EzaBRaM2Sls0oSR1e0-EIhl1ed_xh9Y6BEO54yk4sw2wcFGcDK7wREBMycHTFVMntYLLn4mA-Iy0Hco6sZEi6T_a55GgABiUqXVK-TRRtzpSb5AOB7kXZ5kIH2p4KuC_eX8C7PS_Zr1rFqYMqmcjCKVj_rzI-N9WLwZOFMQfpuQv1VN4WIMxNu1uj9KDFxun2mNFoeMnB0T2vbTLg5TRkv1N-0000

1 Answer

0 votes
answered Apr 4, 2022 by The-Lu (64,760 points)

Hello M.,

Now with style (from v1.2022.2+...), you can style `duration arrow`, just before duration arrow (not on global) as:

<style>
arrow {
  LineColor green /' (a) color tagging the arrow  '/
  LineThickness 3 /' (b) thickness of just the duration arrow '/
  LineStyle 6;3   /' (c) use other linetypes '/
}
</style>

If that can help,
Regards.

...