beta-style: Margin and transparent setting with style on Deployment or Activity diagram

0 votes
asked Jun 5 in Wanted features by The-Lu (4,900 points)
edited Jun 8 by The-Lu

Hello PlantUML team,

Adapted from ‘padding’ management with new style functionality, as defined in:

We made test (on version 1.2020.11) on margin and transparent setting, with this minimal example:

@startuml
<style>
document {
  BackgroundColor palegreen
  Margin 10
}
</style>
rectangle r
node n
file f
[c]
@enduml

PlantUML diagram

1/ What is the minimal (defined by default) margin of the diagram, when we use <style> functionality?

Because without (or with parameter 'Margin 0') the image is cropped! (for PNG output) as it:

PlantUML diagram

And especialy (for PNG output) when there is only one element, see:

PlantUML diagram

2/ Futhermore, when there is only one element, we discover that the document color is not take in account also!
[see above diagram, where the "BackgroundColor palegreen" is setting, but on the image it is white!]

3/ How to setting ‘transparent’ on the BackgroundColor with the beta-style?

We attempt to do with that, but without succes...

<style>
document {
  BackgroundColor transparent
  Margin 10
}
</style>

PlantUML diagram
[click to see on online server]

Thank for your return and your work,

Regards,
Th.

1 Answer

0 votes
answered Jun 8 by The-Lu (4,900 points)
 
Best answer

Hello PlantUML team,

With the new version 1.2020.12: it seem almost OK;

  1. It remains only this issue, but not for only one element, but for several element.
  2. It is fixe with v 1.2020.12
  3. idem

It remains only the first issue with cropped PNG image: We will can open a specific issue only for that.

Regards,
Th.

...