Stereotypes cannot be overwritten anymore

0 votes
asked Mar 5, 2022 in Question / help by kirchsth (4,960 points)

In older version it was possible to overwrite existing stereotypes.
In the new version it is not possible anymore (only border color of a "package" rectangle is working)

@startuml
skinparam rectangle {
    StereotypeFontSize 12
    shadowing false
}

' the package workaround which was required in old version too
skinparam package {
    StereotypeFontSize 6
    StereotypeFontColor transparent
    FontStyle plain
    BackgroundColor transparent
    BorderColor #444444
}

' this defintion cannot be overwritten anymore. It has to be removed that it is working like in the old version
skinparam rectangle<<boundary>> {
    Shadowing false
    StereotypeFontSize 6
    StereotypeFontColor transparent
    FontColor #444444
    BorderColor #444444
    BackgroundColor transparent
    BorderStyle dashed
}

' rectangle ignores part of the definition if the same stereotype was defined
' - package border color is working
' - all other font colors and the border of the normal rectangle is not working
skinparam rectangle<<boundary>> {
    StereotypeFontColor green
    FontColor green
    BorderColor green
    BackgroundColor transparent
    BorderStyle dashed
}

rectangle "Sample" <<boundary>> as c1  {
    rectangle "sub system" <<boundary>> as sub_sys
    rectangle "component" <<component>> as web_app
}
@enduml


BR Helmut

1 Answer

0 votes
answered Mar 6, 2022 by kirchsth (4,960 points)
thank you for the fix in v.2022.2 (locally tested; the online server is still 2022.2beta11)
...