Class Diagram: why "bold" and "thickness" for link are not shown as mixed?

0 votes
asked Jun 16 in Bug by xiaoqi (700 points)
edited Jun 16 by xiaoqi

Hello,

I'm learning reference guide 3.35 "Bracketed Relations Style", for the "mix" part, all of the sample are working fine except the "Bold" + "Thickness".

See below code:

@startuml
class foo
class bar1
class bar2
class bar3
class bar4

foo -[bold]-> bar1 : [bold]
foo -[thickness=8]-> bar2 : [Thickness=8]
foo -[bold,thickness=8]-> bar3 : [Bold and Thickness=8]\nwhy this is not mixed?
foo -[dashed,thickness=8]-> bar4 : [Dashed and Thickness=8]\nOK
@enduml

In online server: https://www.plantuml.com/plantuml/uml/SoWkIImgAStDuKhEIImkLaZBpuUoaXAB315C8mJJ6C4quU82Qb3GZKxApqc9rRK3QrAmKe3meN8b6Pd9sNcfnSMs5b0bHY0b8KZ2IAReO2et1Ybt0ief9EQbA23hYyahpwXK0EeeLW2YlFmIXTpCYjGKUwXvAOd56QdOJ3G1cUW2aiLcfhytbqDgNWemK000​, I assume the third link should be both [Bold] and [Thickness=8], but the result is the link restore to normal thickness.

Any hints on where I did wrong? I put the #4 link as comparison.

Thanks, Xiaoqi

1 Answer

+1 vote
answered Jun 16 by kirchsth
selected Jun 17 by xiaoqi
 
Best answer
Hallo Xiaoqi,

Bold is a short version of Thickness=2 and plantuml uses the higher value.
You can combine it with Thickness=0 and see the differences.

BR Helmut
commented Jun 17 by xiaoqi (700 points)
Got it, thanks for clarification
...