Extend the legend based on styles/tags
dgutson opened this issue · comments
In order to avoid high textual pollution, I use different styles for technologies or special component "styles".
For example, a blue dashed arrow means https. It would be useful to add such custom notation to the legend (based on tags), for example by adding a property to the styles:
styles {
relationship "https" {
c4plantuml.legend "HTTPS Connection"
}
}
Support for dashed arrows was missing, so I've added it, and they will now show up in the legend as expected. Here's an example:
workspace {
model {
a = softwareSystem "A"
b = softwareSystem "B"
a -> b "Makes APIs calls using" {
tags "HTTPS Connection"
}
}
views {
systemLandscape {
include *
autoLayout
}
properties {
c4plantuml.tags true
}
styles {
relationship "HTTPS Connection" {
color #0000ff
style dashed
}
}
}
}
Dotted lines also work now too.
Awesome!