Style, deployment diagram: Cant get <style> to work

+1 vote
asked Nov 11, 2021 in Bug by mawi (620 points)

Hi, I think this may be a defect. I cant get style to work for elements. 

Trying: 

@startuml
hide stereotype
<style>
document {
    BackgroundColor LightGreen
}

circle {
  BackGroundColor #ff3311
}
</style>
circle test
package {
    circle ME100 <<failedval>>
    circle ART213
    ME100 -d-> ART213
}
@enduml

But I cant get it to format the circle's. I want to disable shadows, etc.

http://www.plantuml.com/plantuml/uml/JS_1YeCm40RW-pn5OC-oPhs6uBOKB-sbz0L2CcfeJ2GP2r9yzuQgu1p__sE6gHEfIDFWeBS6MIAC66WU4KIYsQ444_Gqe2Vs1fRdfFIpYs7ovXnSYEngkvwQYEXX0T0sQeUPhh0vm9-shIhEinA_w-fT4oQ2CNFLuNPbQsuNNfPCY5PPX-Qbd9J7-l_--EFLDrbbOGgvfmlKw4t-x0C0

What am I doing wrong? Or is it a bug?

BR! /marcus

1 Answer

+1 vote
answered Nov 11, 2021 by plantuml (294,960 points)
selected Nov 15, 2021 by mawi
 
Best answer

Those circles are actually interface, so you can have:

@startuml
hide stereotype
<style>
document {
    BackgroundColor LightGreen
}

interface {
  BackGroundColor #ff3311
  Shadowing 0
}
</style>
circle test
package {
    circle ME100 <<failedval>>
    circle ART213
    ME100 -d-> ART213
}
@enduml

Sorry about the lack of documentation!

commented Nov 15, 2021 by mawi (620 points)
Aha, thanks! I think the docs are actually not bad.

This one was easy to misunderstand, since both circle and interface elements are there.

I guess it boils down to the diagram type.

Br! /marcus
...