Style rendering in mindmaps broken

0 votes
asked Oct 30, 2019 in Bug by eleasar (120 points)

First of: I really like the mindmap including styles very much - clean and very simple to write!

The following code is broken - the style is not correctly applied to the level 2 items:

@startmindmap
skinparam shadowing false
skinparam ArrowColor #1ba1e2

<style>

mindmapDiagram {

  RoundCorner 0

  .lvl1 {
    BackGroundColor #dfa9fe
    LineColor #c765ff
    FontColor #7900bf
  }

  .lvl2 {
    BackGroundColor #ffa69e
    LineColor #ff6556
    FontColor #ab0e00
  }

  .lvl3 {
    BackGroundColor #c5e0b3
    LineColor #a8d08d
    FontColor #538135
  }
}

</style>

* aaaaa <<lvl1>>
**:bbb
  cccccc <<lvl2>>;
** ddddddd <<lvl2>>
*** eeeeeeeeee <<lvl3>>
**:bbb
  cccccc <<lvl2>>;
** ddddddd <<lvl2>>
*** eeeeeeeeee <<lvl3>>
**:bbb
  cccccc <<lvl2>>;
** ddddddd <<lvl2>>
*** eeeeeeeeee <<lvl3>>
**:bbb
  cccccc <<lvl2>>;
** ddddddd <<lvl2>>
*** eeeeeeeeee <<lvl3>>
**:bbb
  cccccc <<lvl2>>;
** ddddddd <<lvl2>>
*** eeeeeeeeee <<lvl3>>
**:bbb
  cccccc <<lvl2>>;
** ddddddd <<lvl2>>
*** eeeeeeeeee <<lvl3>>
**:bbb
  cccccc <<lvl2>>;
** ddddddd <<lvl2>>
*** eeeeeeeeee <<lvl3>>

@endmindmap

While a shorter version of it works perfectly fine:

@startmindmap
skinparam shadowing false
skinparam ArrowColor #1ba1e2

<style>

mindmapDiagram {

  RoundCorner 0

  .lvl1 {
    BackGroundColor #dfa9fe
    LineColor #c765ff
    FontColor #7900bf
  }

  .lvl2 {
    BackGroundColor #ffa69e
    LineColor #ff6556
    FontColor #ab0e00
  }

  .lvl3 {
    BackGroundColor #c5e0b3
    LineColor #a8d08d
    FontColor #538135
  }
}

</style>

* aaaaa <<lvl1>>
**:bbb
  cccccc <<lvl2>>;
**:xxx
  yyy <<lvl2>>;
@endmindmap

And if I add some random new lines to it then it breaks again:

@startmindmap

skinparam shadowing false


skinparam ArrowColor #1ba1e2


<style>

mindmapDiagram {

  RoundCorner 0

  .lvl1 {
    BackGroundColor #dfa9fe
    LineColor #c765ff
    FontColor #7900bf
  }

  .lvl2 {
    BackGroundColor #ffa69e
    LineColor #ff6556
    FontColor #ab0e00
  }

  .lvl3 {
    BackGroundColor #c5e0b3
    LineColor #a8d08d
    FontColor #538135
  }
}

</style>

* aaaaa <<lvl1>>
**:bbb
  cccccc <<lvl2>>;
**:xxx
  yyy <<lvl2>>;

@endmindmap

1 Answer

+1 vote
answered Nov 3, 2019 by plantuml (294,960 points)
selected Nov 4, 2019 by eleasar
 
Best answer
Thanks for the feedback.

This should be fixed in last official release 1.2019.12.

Tell us if you find other issues!
commented Nov 4, 2019 by eleasar (120 points)
Thanks for your very quick fix!
...