Differences between PNG and SVG outputs, for ArrowLollipopColor on component diagram

0 votes
asked Feb 10, 2021 in Bug by The-Lu (49,840 points)
edited Feb 10, 2021 by The-Lu

Hello PlantUML team,

During testing some examples of PR#448;
We observe differences between PNG and SVG outputs, for ArrowLollipopColor on component diagram, (observed on version 1.2021.2beta6):

PNGSVG

Thanks for your support,
Regards,
Th.

1 Answer

0 votes
answered Mar 8, 2021 by The-Lu (49,840 points)
selected Mar 8, 2021 by The-Lu
 
Best answer

Hello all,

FYI, this is partially corrected on v1.2021.2,
It is OK, when we define a background (cf. OP). Thanks for PlantUML team.
But if we does not define a background, it is OK for PNG but KO for SVG:

PNG:

SVG:

(on SVG we observe white color instead of transparent for "-(0)-" or transparent or default value for "--(0", "0)--", "0)-(0" or "#-#" cheeky)

I can open a new ticket, if you want...

Thank for your support,
Regards,
Th.

asked Mar 8, 2021 in Bug by The-Lu (49,840 points) Lollipop overlaps with arrows label
commented Nov 5, 2021 by matthew16550 (140 points)
I mostly understand what is happening here, could you add the puml source for above image so I can be sure.
commented Nov 5, 2021 by The-Lu (49,840 points)

Hello M.,

You can click on the images to see their source code.
Otherwise, here is the full example:

@startuml
scale 2
skinparam ArrowLollipopColor yellow
skinparam Backgroundcolor transparent

component foo #pink
[bar]
foo -(0)- bar
foo -0)- bar
foo -(0- bar
foo 0--0 bar
foo 0)--(0 bar
foo #--# bar
@enduml

And thanks a lot for your PR, which seems to correct this issue:

Regards.

commented Nov 5, 2021 by The-Lu (49,840 points)

Hello M.,

Here are some other examples:

@startuml
scale 2
skinparam ArrowLollipopColor yellow
component foo #dc143c

[bar]
foo -(0)- bar
foo -0)- bar
foo -(0- bar
foo 0--0 bar
foo 0)--(0 bar
foo #--# bar
@enduml

And

@startuml
scale 2
skinparam ArrowLollipopColor yellow

<style>
root {
Backgroundcolor green
}
</style>
component foo #pink
[bar]
foo -(0)- bar
foo -0)- bar
foo -(0- bar
foo 0--0 bar
foo 0)--(0 bar
foo #--# bar
@enduml

Regards.

...