likec4
likec4 copied to clipboard
[Feature request] apply styling to relationships with specific tag
Currently it's possible to style elements by tag under views:
views {
style element.tag = #optional {
color secondary
}
//NOT POSSIBLE
style relationship.tag = #optional {
line dotted
}
}
I would appreciate if this can be done for relationship.tag as well. My use case is I'm using relationships to represent dataflows, and I would like to mark some flows as #optional, and draw them differently.
Thanks!
@mind6 what you can do right now:
include * -> * where kind is optional with {
line dotted
}
While the proposed behaviour would be useful, one can also define a custom style for the relationship on the specification level:
-- specification
relationship optional {
line dotted
}
-- model
serviceA .optional serviceB