lutaml / lutaml-uml

UML module for LutaML
2 stars 2 forks source link

Adopting a new diagram style #54

Open ronaldtse opened 3 years ago

ronaldtse commented 3 years ago

The current diagram style looks like this:

DisplayTemplate

It needs to be changed to something like this:

image

The original "style file" for PlantUML is this:

skinparam Dpi 150
skinparam Monochrome false
hide circle
skinparam Default {
  TextAlignment center
  FontName Helvetica
}

skinparam Class {
  AttributeIconSize 0
  BackgroundColor White
  ArrowColor Black
  BorderColor Black
  FontStyle bold
  StereotypeFontSize 10
}

skinparam Rectangle {
  BackgroundColor White
  ArrowColor Black
  BorderColor Black
  FontStyle bold
  FontSize 11
  StereotypeFontSize 10
}

skinparam Object {
  BackgroundColor White
  ArrowColor Black
  BorderColor Black
  FontStyle bold
  FontSize 11
  StereotypeFontSize 10
}

skinparam Entity {
  StereotypeFontSize 10
}
w00lf commented 3 years ago

@ronaldtse it seems that the main display feature we wont be able to implement here - graphviz does not support box-shadowing. I have not been able to find any mentions of such styling for graphviz, even for HTML labels.

image

Without this feature, diagrams will never visually close to our plantuml styling. I will try to search graphviz plugins that can do that, but in that case we will have an issue of actually shipping graphviz with plugins to the end users.