plantuml / plantuml

Generate diagrams from textual description
https://plantuml.com
Other
9.73k stars 881 forks source link

Smetana is not supporting colors in UML #1702

Open martinviszlai opened 2 months ago

martinviszlai commented 2 months ago

When using !pragma layout smetana, relation tags formatting is ignored.

Example of a simple diagram:

@startuml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml

AddRelTag("API", $lineColor="red", $textColor="red", $lineStyle="dashed")

System(service, "service", "My awesome service")
System(client, "client", "Client service")

Rel(client, service, "make API calls", "HTTP", "calls methods from interfaces", $tags="API")
@enduml
kirchsth commented 1 week ago

updated: I think smetana and ellk have the same skinparam related problem (skinparam ignored by arrows, and considered by e.g. rectangles)

Thank you and BR Helmut

The-Lum commented 6 days ago

Hello @arnaudroques, and all contributors,

Here is a minimal not working example:

@startuml
'!pragma layout smetana

<style>
.a {
  LineThickness 3
  Linecolor red
}
</style>

card a
a -> b <<a>>
@enduml
With GraphViz ✔️ With Smetana ❌

Observed on 1.2024.5beta1.

If that can help for debugging... Regards, Th.

The-Lum commented 5 days ago

FYI, it is the logical continuation of:

@Plantuml team: