更改参与者的边框颜色
Change border color of participant
是否可以更改特定 participant
的边框/字体颜色而无需使用 skinparam
进行全局设置?
对于特定的 participant
,我需要使用与 skinparam
中定义的不同的边框 + 字体颜色。
使用用户定义的样式在 docs 中找到解决方案:
skinparam useBetaStyle true
<style>
' scope to sequenceDiagram elements
sequenceDiagram {
' define a new style, using CSS class syntax
.todo {
FontColor white
LineColor #52A0DC
BackgroundColor #52A0DC
}
.exists {
LineColor #a9a9a9
BackgroundColor #a9a9a9
}
}
}
</style>
participant Dockerfile <<todo>>
participant "AWS SSM" as SSM <<exists>>
结果符合预期:
是否可以更改特定 participant
的边框/字体颜色而无需使用 skinparam
进行全局设置?
对于特定的 participant
,我需要使用与 skinparam
中定义的不同的边框 + 字体颜色。
使用用户定义的样式在 docs 中找到解决方案:
skinparam useBetaStyle true
<style>
' scope to sequenceDiagram elements
sequenceDiagram {
' define a new style, using CSS class syntax
.todo {
FontColor white
LineColor #52A0DC
BackgroundColor #52A0DC
}
.exists {
LineColor #a9a9a9
BackgroundColor #a9a9a9
}
}
}
</style>
participant Dockerfile <<todo>>
participant "AWS SSM" as SSM <<exists>>
结果符合预期: