mind map diagrams BackGroundColor transparent is failing with NullPointerException

0 votes
asked May 22, 2020 in Bug by anonymous
looks like since version 1.2020.7, mind map diagrams are failing because of:

<style>
mindMapDiagram {
  BackGroundColor transparent
}
</style>

BackGroundColor transparent under skinparam still working fine but under mindmapdiagram, it accepts any color except "transparent"

error:

An error has occured : java.lang.NullPointerExceptionWe all must learn from small misfortune, count the blessings that are realDiagram size: 13 lines / 178 characters.PlantUML (1.2020.10) cannot parse result from dot/GraphViz.Please go to http://plantuml.com/graphviz-dot to check your GraphViz version.

1 Answer

0 votes
answered Jun 9, 2020 by The-Lu (63,920 points)

Hello A.,

From the next version V1.2020.12, see: https://plantuml.com/changes

We can use BackGroundColor transparent, with conjonction of adding a default color on node, as:

@startmindmap
<style>
mindmapDiagram {
  BackGroundColor transparent
  node {
    BackGroundColor #FEFECE
  }
}
</style>
* a
** a1
** a2
@endmindmap

But if we use only BackGroundColor, we observe this issue (only on PNG export):

@startmindmap
<style>
mindmapDiagram {
  BackGroundColor transparent
}
</style>
* a
** a1
** a2
@endmindmap

If that can help,
Regards,
Th.

commented Jun 9, 2020 by plantuml (294,960 points)
Thanks again for the report !

We've made improvement in last beta http://beta.plantuml.net/plantuml.jar

This should be working now.
commented Jun 15, 2020 by The-Lu (63,920 points)
edited Jun 15, 2020 by The-Lu

Hello PlantUML team,

With last new version v 1.2020.13, it seems OK.

But if we will adding scale functionality, as:

scale 2

on PNG output, the shadows disappears!

PlantUML diagram
[Click to see on online server]

or:

scale 1.5

PlantUML diagram

Regards,
Th.

...