Missing background color of databases after LaTeX export

0 votes
asked Sep 28, 2017 in Bug by Dresaan (400 points)

When exporting a diagramm with a "database" object to latex, the background color is missing. This can be fixed by adding "fill=plantucolorN" to the main form. Below is a part of Latex export with the fix marked:

\draw[color=red,line width=1.5pt, fill=blue] (473.5pt,155pt) ..controls (473.5pt,145pt) and (535pt,145pt) .. (535pt,145pt) ..controls (535pt,145pt) and (596.5pt,145pt) .. (596.5pt,155pt) -- (596.5pt,181.6094pt) ..controls (596.5pt,191.6094pt) and (535pt,191.6094pt) .. (535pt,191.6094pt) ..controls (535pt,191.6094pt) and (473.5pt,191.6094pt) .. (473.5pt,181.6094pt) -- (473.5pt,155pt);
\draw[color=red,line width=1.5pt] (473.5pt,155pt) ..controls (473.5pt,165pt) and (535pt,165pt) .. (535pt,165pt) ..controls (535pt,165pt) and (596.5pt,165pt) .. (596.5pt,155pt);
\node at (483.5pt,169pt)[below right]{MyDataBase};

 

(p.s. the eyesight killing colors are just for testing)

1 Answer

0 votes
answered Sep 28, 2017 by plantuml (295,000 points)
selected Oct 10, 2017 by Dresaan
 
Best answer

Thanks for the report.

It should be fixed in last beta :

https://www.dropbox.com/s/koo42q3d9gxw288/plantuml.jar?dl=0

Note that it does not work with gradient :-)

Tell us if it's an issue for you.

Regards,

commented Sep 29, 2017 by Dresaan (400 points)
It is :-D

Do you need the TikZ code? It's the same as in http://plantuml.sourceforge.net/qa/?qa=6481/exceptions-during-export-with-color-gradients

Also: the database gets the wrong color. It gets the same as my classes top color.
commented Sep 29, 2017 by plantuml (295,000 points)
Ok, we've fixed several thinks (including text color). BTW, the \ gradient is working for us, could you double check?
You can use beta16 here
https://www.dropbox.com/s/koo42q3d9gxw288/plantuml.jar?dl=0

We are using the following test diagram:

@startuml
allow_mixing
skinparam class {
  BackgroundColor #c3d8f4\#6192d1
  BorderColor #00FFFF
  FontColor #50FFFF
}
skinparam database {
  BackgroundColor #FFd8f4\#FF92d1
  BorderColor #50FF50
  FontColor #FF5050
}
class dummy1 {
  foo1
}
database dummy2
@enduml

It seems to us that color for gradient are inverted. If you look at both results, PNG and LaTeX gradient are inverted.
So we should invert "top color" and "bottom color", right ?

PNG:
http://www.plantuml.com/plantuml/uml/ROz12i8m44NtEKMW5sYg5TqLXPn2aB7Jbj8aKv8K5UdTJPeY2ftb-yD_CvNpOFsa5GEbw77J_RCt7ND3RqQme7cjm3d-PfoVeHuwIvF12ocoFAjtU6ptr-mWJWMAk44M6xkcUIx312h9-9MLYSq__GWUxk2QROMKII7bbYBMbVc_8fB0PfOEnqdhbrZAMo8H-5UuH0Mh6eFn_my0

LaTeX:
https://www.overleaf.com/read/gsmnmrpkfnjy#/42761071/

Please continue to post if you find issues!
commented Oct 2, 2017 by Dresaan (400 points)
Only the \ is inverted. The other gradients are correct. It would probably be easier to change the ange from -45 to 135 instead of switching the colors. Sorry for providing the wrong angle.

I realized thet the \ is only failing if I use !define. So
BackgroundColor #c3d8f4\#6192d1
is working, but

!define MyBlue #6192d1
BackgroundColor white\MyBlue
is not.
commented Oct 10, 2017 by Dresaan (400 points)
I reposted the \-Bug in http://plantuml.sourceforge.net/qa/?qa=6571/color-doesnt-apply-with-angle-and-defined-colors
It might be a bit offtopic in this question.
...