Support transparency in Alt, Opt, Loop, Par ... insequence diagram

0 votes
asked Aug 2, 2021 in Wanted features by PascalChap (340 points)

2 Answers

0 votes
answered Aug 6, 2021 by kirchsth (4,960 points)

it works with the color "transparent"

@startuml
box "device 1" #LightBlue
    participant "input task" as p1
    database "Storage" as s1
end box
box "device 2" #Aquamarine
    participant "input task" as p2
    database "Storage" as s2
end box

alt #transparent "if Condition 1 then"
    [-> p1 ++ : trig
    p1 -> p2 ++ : send(data)
    p2 -> s2 ++: store(data)
    s2 --> p2 -- : done
    p2 --> p1 -- : ack
    deactivate p1
else #blue "else"
    [-> p1 ++ : trig
    p1 -> s1 ++ : store(data)
    s1 -> p1 -- : done
    deactivate p1
end
@enduml

0 votes
answered Aug 11, 2021 by The-Lu (64,340 points)

Hello all,

In fact it is good for SVG, but not for PNG...
The defect is for PNG output: @PlantUML team: Thank for a correction...

See comparison:

SVG : OKPNG : KO

Regards,
Th.

commented Aug 15, 2021 by PASCAL CHAPIER
Exactly what I was looking for. I hope it can be fixed with png.
...